30
30
)
31
31
from ...._wrappers import ResultWrapper
32
32
from ....pagination import SyncSinglePage , AsyncSinglePage
33
- from ....types .rules import RuleList , ListDeleteResponse , list_create_params , list_delete_params , list_update_params
33
+ from ....types .rules import ListsList , ListDeleteResponse , list_create_params , list_delete_params , list_update_params
34
34
from ...._base_client import (
35
35
AsyncPaginator ,
36
36
make_request_options ,
@@ -77,7 +77,7 @@ def create(
77
77
extra_query : Query | None = None ,
78
78
extra_body : Body | None = None ,
79
79
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
80
- ) -> Optional [RuleList ]:
80
+ ) -> Optional [ListsList ]:
81
81
"""
82
82
Creates a new list of the specified type.
83
83
@@ -118,7 +118,7 @@ def create(
118
118
timeout = timeout ,
119
119
post_parser = ResultWrapper ._unwrapper ,
120
120
),
121
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
121
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
122
122
)
123
123
124
124
def update (
@@ -133,7 +133,7 @@ def update(
133
133
extra_query : Query | None = None ,
134
134
extra_body : Body | None = None ,
135
135
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
136
- ) -> Optional [RuleList ]:
136
+ ) -> Optional [ListsList ]:
137
137
"""
138
138
Updates the description of a list.
139
139
@@ -166,7 +166,7 @@ def update(
166
166
timeout = timeout ,
167
167
post_parser = ResultWrapper ._unwrapper ,
168
168
),
169
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
169
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
170
170
)
171
171
172
172
def list (
@@ -179,7 +179,7 @@ def list(
179
179
extra_query : Query | None = None ,
180
180
extra_body : Body | None = None ,
181
181
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
182
- ) -> SyncSinglePage [RuleList ]:
182
+ ) -> SyncSinglePage [ListsList ]:
183
183
"""
184
184
Fetches all lists in the account.
185
185
@@ -198,11 +198,11 @@ def list(
198
198
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
199
199
return self ._get_api_list (
200
200
f"/accounts/{ account_id } /rules/lists" ,
201
- page = SyncSinglePage [RuleList ],
201
+ page = SyncSinglePage [ListsList ],
202
202
options = make_request_options (
203
203
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
204
204
),
205
- model = RuleList ,
205
+ model = ListsList ,
206
206
)
207
207
208
208
def delete (
@@ -262,7 +262,7 @@ def get(
262
262
extra_query : Query | None = None ,
263
263
extra_body : Body | None = None ,
264
264
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
265
- ) -> Optional [RuleList ]:
265
+ ) -> Optional [ListsList ]:
266
266
"""
267
267
Fetches the details of a list.
268
268
@@ -292,7 +292,7 @@ def get(
292
292
timeout = timeout ,
293
293
post_parser = ResultWrapper ._unwrapper ,
294
294
),
295
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
295
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
296
296
)
297
297
298
298
@@ -326,7 +326,7 @@ async def create(
326
326
extra_query : Query | None = None ,
327
327
extra_body : Body | None = None ,
328
328
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
329
- ) -> Optional [RuleList ]:
329
+ ) -> Optional [ListsList ]:
330
330
"""
331
331
Creates a new list of the specified type.
332
332
@@ -367,7 +367,7 @@ async def create(
367
367
timeout = timeout ,
368
368
post_parser = ResultWrapper ._unwrapper ,
369
369
),
370
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
370
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
371
371
)
372
372
373
373
async def update (
@@ -382,7 +382,7 @@ async def update(
382
382
extra_query : Query | None = None ,
383
383
extra_body : Body | None = None ,
384
384
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
385
- ) -> Optional [RuleList ]:
385
+ ) -> Optional [ListsList ]:
386
386
"""
387
387
Updates the description of a list.
388
388
@@ -415,7 +415,7 @@ async def update(
415
415
timeout = timeout ,
416
416
post_parser = ResultWrapper ._unwrapper ,
417
417
),
418
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
418
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
419
419
)
420
420
421
421
def list (
@@ -428,7 +428,7 @@ def list(
428
428
extra_query : Query | None = None ,
429
429
extra_body : Body | None = None ,
430
430
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
431
- ) -> AsyncPaginator [RuleList , AsyncSinglePage [RuleList ]]:
431
+ ) -> AsyncPaginator [ListsList , AsyncSinglePage [ListsList ]]:
432
432
"""
433
433
Fetches all lists in the account.
434
434
@@ -447,11 +447,11 @@ def list(
447
447
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
448
448
return self ._get_api_list (
449
449
f"/accounts/{ account_id } /rules/lists" ,
450
- page = AsyncSinglePage [RuleList ],
450
+ page = AsyncSinglePage [ListsList ],
451
451
options = make_request_options (
452
452
extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
453
453
),
454
- model = RuleList ,
454
+ model = ListsList ,
455
455
)
456
456
457
457
async def delete (
@@ -511,7 +511,7 @@ async def get(
511
511
extra_query : Query | None = None ,
512
512
extra_body : Body | None = None ,
513
513
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
514
- ) -> Optional [RuleList ]:
514
+ ) -> Optional [ListsList ]:
515
515
"""
516
516
Fetches the details of a list.
517
517
@@ -541,7 +541,7 @@ async def get(
541
541
timeout = timeout ,
542
542
post_parser = ResultWrapper ._unwrapper ,
543
543
),
544
- cast_to = cast (Type [Optional [RuleList ]], ResultWrapper [RuleList ]),
544
+ cast_to = cast (Type [Optional [ListsList ]], ResultWrapper [ListsList ]),
545
545
)
546
546
547
547
0 commit comments