|
19 | 19 | from ...._wrappers import ResultWrapper |
20 | 20 | from ....pagination import SyncCursorPagination, AsyncCursorPagination |
21 | 21 | from ...._base_client import AsyncPaginator, make_request_options |
22 | | -from ....types.rules.lists import item_list_params, item_create_params, item_update_params |
| 22 | +from ....types.rules.lists import item_list_params, item_create_params, item_delete_params, item_update_params |
23 | 23 | from ....types.rules.lists.item_get_response import ItemGetResponse |
24 | 24 | from ....types.rules.lists.item_list_response import ItemListResponse |
25 | 25 | from ....types.rules.lists.item_create_response import ItemCreateResponse |
@@ -222,6 +222,7 @@ def delete( |
222 | 222 | list_id: str, |
223 | 223 | *, |
224 | 224 | account_id: str, |
| 225 | + items: Iterable[item_delete_params.Item] | NotGiven = NOT_GIVEN, |
225 | 226 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
226 | 227 | # The extra values given here take precedence over values defined on the client or passed to this method. |
227 | 228 | extra_headers: Headers | None = None, |
@@ -255,6 +256,7 @@ def delete( |
255 | 256 | raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}") |
256 | 257 | return self._delete( |
257 | 258 | f"/accounts/{account_id}/rules/lists/{list_id}/items", |
| 259 | + body=maybe_transform({"items": items}, item_delete_params.ItemDeleteParams), |
258 | 260 | options=make_request_options( |
259 | 261 | extra_headers=extra_headers, |
260 | 262 | extra_query=extra_query, |
@@ -508,6 +510,7 @@ async def delete( |
508 | 510 | list_id: str, |
509 | 511 | *, |
510 | 512 | account_id: str, |
| 513 | + items: Iterable[item_delete_params.Item] | NotGiven = NOT_GIVEN, |
511 | 514 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
512 | 515 | # The extra values given here take precedence over values defined on the client or passed to this method. |
513 | 516 | extra_headers: Headers | None = None, |
@@ -541,6 +544,7 @@ async def delete( |
541 | 544 | raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}") |
542 | 545 | return await self._delete( |
543 | 546 | f"/accounts/{account_id}/rules/lists/{list_id}/items", |
| 547 | + body=await async_maybe_transform({"items": items}, item_delete_params.ItemDeleteParams), |
544 | 548 | options=make_request_options( |
545 | 549 | extra_headers=extra_headers, |
546 | 550 | extra_query=extra_query, |
|
0 commit comments