2727 make_request_options ,
2828)
2929from ...types .challenges import (
30- NcChallengesAdminWidgetList ,
31- NcChallengesAdminWidgetDetail ,
30+ ChallengesWidget ,
31+ ChallengesWidgetList ,
3232 widget_list_params ,
3333 widget_create_params ,
3434 widget_update_params ,
@@ -68,7 +68,7 @@ def create(
6868 extra_query : Query | None = None ,
6969 extra_body : Body | None = None ,
7070 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
71- ) -> Optional [NcChallengesAdminWidgetDetail ]:
71+ ) -> Optional [ChallengesWidget ]:
7272 """
7373 Lists challenge widgets.
7474
@@ -139,7 +139,7 @@ def create(
139139 ),
140140 post_parser = ResultWrapper ._unwrapper ,
141141 ),
142- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
142+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
143143 )
144144
145145 def update (
@@ -159,7 +159,7 @@ def update(
159159 extra_query : Query | None = None ,
160160 extra_body : Body | None = None ,
161161 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
162- ) -> Optional [NcChallengesAdminWidgetDetail ]:
162+ ) -> Optional [ChallengesWidget ]:
163163 """
164164 Update the configuration of a widget.
165165
@@ -214,7 +214,7 @@ def update(
214214 timeout = timeout ,
215215 post_parser = ResultWrapper ._unwrapper ,
216216 ),
217- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
217+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
218218 )
219219
220220 def list (
@@ -231,7 +231,7 @@ def list(
231231 extra_query : Query | None = None ,
232232 extra_body : Body | None = None ,
233233 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
234- ) -> SyncV4PagePaginationArray [NcChallengesAdminWidgetList ]:
234+ ) -> SyncV4PagePaginationArray [ChallengesWidgetList ]:
235235 """
236236 Lists all turnstile widgets of an account.
237237
@@ -258,7 +258,7 @@ def list(
258258 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
259259 return self ._get_api_list (
260260 f"/accounts/{ account_id } /challenges/widgets" ,
261- page = SyncV4PagePaginationArray [NcChallengesAdminWidgetList ],
261+ page = SyncV4PagePaginationArray [ChallengesWidgetList ],
262262 options = make_request_options (
263263 extra_headers = extra_headers ,
264264 extra_query = extra_query ,
@@ -274,7 +274,7 @@ def list(
274274 widget_list_params .WidgetListParams ,
275275 ),
276276 ),
277- model = NcChallengesAdminWidgetList ,
277+ model = ChallengesWidgetList ,
278278 )
279279
280280 def delete (
@@ -288,7 +288,7 @@ def delete(
288288 extra_query : Query | None = None ,
289289 extra_body : Body | None = None ,
290290 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
291- ) -> Optional [NcChallengesAdminWidgetDetail ]:
291+ ) -> Optional [ChallengesWidget ]:
292292 """
293293 Destroy a Turnstile Widget.
294294
@@ -318,7 +318,7 @@ def delete(
318318 timeout = timeout ,
319319 post_parser = ResultWrapper ._unwrapper ,
320320 ),
321- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
321+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
322322 )
323323
324324 def get (
@@ -332,7 +332,7 @@ def get(
332332 extra_query : Query | None = None ,
333333 extra_body : Body | None = None ,
334334 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
335- ) -> Optional [NcChallengesAdminWidgetDetail ]:
335+ ) -> Optional [ChallengesWidget ]:
336336 """
337337 Show a single challenge widget configuration.
338338
@@ -362,7 +362,7 @@ def get(
362362 timeout = timeout ,
363363 post_parser = ResultWrapper ._unwrapper ,
364364 ),
365- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
365+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
366366 )
367367
368368 def rotate_secret (
@@ -377,7 +377,7 @@ def rotate_secret(
377377 extra_query : Query | None = None ,
378378 extra_body : Body | None = None ,
379379 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
380- ) -> Optional [NcChallengesAdminWidgetDetail ]:
380+ ) -> Optional [ChallengesWidget ]:
381381 """Generate a new secret key for this widget.
382382
383383 If `invalidate_immediately` is set to
@@ -418,7 +418,7 @@ def rotate_secret(
418418 timeout = timeout ,
419419 post_parser = ResultWrapper ._unwrapper ,
420420 ),
421- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
421+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
422422 )
423423
424424
@@ -452,7 +452,7 @@ async def create(
452452 extra_query : Query | None = None ,
453453 extra_body : Body | None = None ,
454454 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
455- ) -> Optional [NcChallengesAdminWidgetDetail ]:
455+ ) -> Optional [ChallengesWidget ]:
456456 """
457457 Lists challenge widgets.
458458
@@ -523,7 +523,7 @@ async def create(
523523 ),
524524 post_parser = ResultWrapper ._unwrapper ,
525525 ),
526- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
526+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
527527 )
528528
529529 async def update (
@@ -543,7 +543,7 @@ async def update(
543543 extra_query : Query | None = None ,
544544 extra_body : Body | None = None ,
545545 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
546- ) -> Optional [NcChallengesAdminWidgetDetail ]:
546+ ) -> Optional [ChallengesWidget ]:
547547 """
548548 Update the configuration of a widget.
549549
@@ -598,7 +598,7 @@ async def update(
598598 timeout = timeout ,
599599 post_parser = ResultWrapper ._unwrapper ,
600600 ),
601- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
601+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
602602 )
603603
604604 def list (
@@ -615,7 +615,7 @@ def list(
615615 extra_query : Query | None = None ,
616616 extra_body : Body | None = None ,
617617 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
618- ) -> AsyncPaginator [NcChallengesAdminWidgetList , AsyncV4PagePaginationArray [NcChallengesAdminWidgetList ]]:
618+ ) -> AsyncPaginator [ChallengesWidgetList , AsyncV4PagePaginationArray [ChallengesWidgetList ]]:
619619 """
620620 Lists all turnstile widgets of an account.
621621
@@ -642,7 +642,7 @@ def list(
642642 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
643643 return self ._get_api_list (
644644 f"/accounts/{ account_id } /challenges/widgets" ,
645- page = AsyncV4PagePaginationArray [NcChallengesAdminWidgetList ],
645+ page = AsyncV4PagePaginationArray [ChallengesWidgetList ],
646646 options = make_request_options (
647647 extra_headers = extra_headers ,
648648 extra_query = extra_query ,
@@ -658,7 +658,7 @@ def list(
658658 widget_list_params .WidgetListParams ,
659659 ),
660660 ),
661- model = NcChallengesAdminWidgetList ,
661+ model = ChallengesWidgetList ,
662662 )
663663
664664 async def delete (
@@ -672,7 +672,7 @@ async def delete(
672672 extra_query : Query | None = None ,
673673 extra_body : Body | None = None ,
674674 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
675- ) -> Optional [NcChallengesAdminWidgetDetail ]:
675+ ) -> Optional [ChallengesWidget ]:
676676 """
677677 Destroy a Turnstile Widget.
678678
@@ -702,7 +702,7 @@ async def delete(
702702 timeout = timeout ,
703703 post_parser = ResultWrapper ._unwrapper ,
704704 ),
705- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
705+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
706706 )
707707
708708 async def get (
@@ -716,7 +716,7 @@ async def get(
716716 extra_query : Query | None = None ,
717717 extra_body : Body | None = None ,
718718 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
719- ) -> Optional [NcChallengesAdminWidgetDetail ]:
719+ ) -> Optional [ChallengesWidget ]:
720720 """
721721 Show a single challenge widget configuration.
722722
@@ -746,7 +746,7 @@ async def get(
746746 timeout = timeout ,
747747 post_parser = ResultWrapper ._unwrapper ,
748748 ),
749- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
749+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
750750 )
751751
752752 async def rotate_secret (
@@ -761,7 +761,7 @@ async def rotate_secret(
761761 extra_query : Query | None = None ,
762762 extra_body : Body | None = None ,
763763 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
764- ) -> Optional [NcChallengesAdminWidgetDetail ]:
764+ ) -> Optional [ChallengesWidget ]:
765765 """Generate a new secret key for this widget.
766766
767767 If `invalidate_immediately` is set to
@@ -802,7 +802,7 @@ async def rotate_secret(
802802 timeout = timeout ,
803803 post_parser = ResultWrapper ._unwrapper ,
804804 ),
805- cast_to = cast (Type [Optional [NcChallengesAdminWidgetDetail ]], ResultWrapper [NcChallengesAdminWidgetDetail ]),
805+ cast_to = cast (Type [Optional [ChallengesWidget ]], ResultWrapper [ChallengesWidget ]),
806806 )
807807
808808
0 commit comments