Skip to content

Commit 9398d1d

Browse files
SDK regeneration (#836)
Automated SDK generation by Fern --- ✅ Customizations automatically preserved in this update. --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 6e9c9a6 commit 9398d1d

305 files changed

Lines changed: 9648 additions & 1058 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/replay.lock

Lines changed: 8316 additions & 2 deletions
Large diffs are not rendered by default.

reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18978,7 +18978,7 @@ client.attack_protection.captcha.update()
1897818978
<dl>
1897918979
<dd>
1898018980

18981-
**recaptcha_v2:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]`
18981+
**recaptcha_v_2:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]`
1898218982

1898318983
</dd>
1898418984
</dl>
@@ -26266,7 +26266,7 @@ client.guardian.factors.push_notification.set_apns_provider()
2626626266
<dl>
2626726267
<dd>
2626826268

26269-
**p12:** `typing.Optional[str]`
26269+
**p_12:** `typing.Optional[str]`
2627026270

2627126271
</dd>
2627226272
</dl>
@@ -26353,7 +26353,7 @@ client.guardian.factors.push_notification.update_apns_provider()
2635326353
<dl>
2635426354
<dd>
2635526355

26356-
**p12:** `typing.Optional[str]`
26356+
**p_12:** `typing.Optional[str]`
2635726357

2635826358
</dd>
2635926359
</dl>
@@ -26515,7 +26515,7 @@ client.guardian.factors.push_notification.update_fcm_provider()
2651526515
</dl>
2651626516
</details>
2651726517

26518-
<details><summary><code>client.guardian.factors.push_notification.<a href="src/auth0.management/guardian/factors/push_notification/client.py">set_fcmv1provider</a>(...) -> SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent</code></summary>
26518+
<details><summary><code>client.guardian.factors.push_notification.<a href="src/auth0.management/guardian/factors/push_notification/client.py">set_fcmv_1_provider</a>(...) -> SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent</code></summary>
2651926519
<dl>
2652026520
<dd>
2652126521

@@ -26586,7 +26586,7 @@ client.guardian.factors.push_notification.set_fcmv_1_provider()
2658626586
</dl>
2658726587
</details>
2658826588

26589-
<details><summary><code>client.guardian.factors.push_notification.<a href="src/auth0.management/guardian/factors/push_notification/client.py">update_fcmv1provider</a>(...) -> UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent</code></summary>
26589+
<details><summary><code>client.guardian.factors.push_notification.<a href="src/auth0.management/guardian/factors/push_notification/client.py">update_fcmv_1_provider</a>(...) -> UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent</code></summary>
2659026590
<dl>
2659126591
<dd>
2659226592

src/auth0/management/attack_protection/captcha/client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ...types.attack_protection_update_captcha_recaptcha_enterprise import (
1616
AttackProtectionUpdateCaptchaRecaptchaEnterprise,
1717
)
18-
from ...types.attack_protection_update_captcha_recaptcha_v2 import AttackProtectionUpdateCaptchaRecaptchaV2
18+
from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2
1919
from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent
2020
from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent
2121
from .raw_client import AsyncRawCaptchaClient, RawCaptchaClient
@@ -76,7 +76,7 @@ def update(
7676
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
7777
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
7878
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
79-
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
79+
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
8080
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
8181
request_options: typing.Optional[RequestOptions] = None,
8282
) -> UpdateAttackProtectionCaptchaResponseContent:
@@ -97,7 +97,7 @@ def update(
9797
9898
recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]
9999
100-
recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
100+
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
101101
102102
simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]
103103
@@ -125,7 +125,7 @@ def update(
125125
hcaptcha=hcaptcha,
126126
friendly_captcha=friendly_captcha,
127127
recaptcha_enterprise=recaptcha_enterprise,
128-
recaptcha_v2=recaptcha_v2,
128+
recaptcha_v_2=recaptcha_v_2,
129129
simple_captcha=simple_captcha,
130130
request_options=request_options,
131131
)
@@ -192,7 +192,7 @@ async def update(
192192
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
193193
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
194194
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
195-
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
195+
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
196196
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
197197
request_options: typing.Optional[RequestOptions] = None,
198198
) -> UpdateAttackProtectionCaptchaResponseContent:
@@ -213,7 +213,7 @@ async def update(
213213
214214
recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]
215215
216-
recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
216+
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
217217
218218
simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]
219219
@@ -249,7 +249,7 @@ async def main() -> None:
249249
hcaptcha=hcaptcha,
250250
friendly_captcha=friendly_captcha,
251251
recaptcha_enterprise=recaptcha_enterprise,
252-
recaptcha_v2=recaptcha_v2,
252+
recaptcha_v_2=recaptcha_v_2,
253253
simple_captcha=simple_captcha,
254254
request_options=request_options,
255255
)

src/auth0/management/attack_protection/captcha/raw_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from ...types.attack_protection_update_captcha_recaptcha_enterprise import (
2626
AttackProtectionUpdateCaptchaRecaptchaEnterprise,
2727
)
28-
from ...types.attack_protection_update_captcha_recaptcha_v2 import AttackProtectionUpdateCaptchaRecaptchaV2
28+
from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2
2929
from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent
3030
from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent
3131
from pydantic import ValidationError
@@ -131,7 +131,7 @@ def update(
131131
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
132132
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
133133
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
134-
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
134+
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
135135
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
136136
request_options: typing.Optional[RequestOptions] = None,
137137
) -> HttpResponse[UpdateAttackProtectionCaptchaResponseContent]:
@@ -152,7 +152,7 @@ def update(
152152
153153
recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]
154154
155-
recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
155+
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
156156
157157
simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]
158158
@@ -187,7 +187,7 @@ def update(
187187
direction="write",
188188
),
189189
"recaptcha_v2": convert_and_respect_annotation_metadata(
190-
object_=recaptcha_v2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
190+
object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
191191
),
192192
"simple_captcha": simple_captcha,
193193
},
@@ -358,7 +358,7 @@ async def update(
358358
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
359359
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
360360
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
361-
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
361+
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
362362
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
363363
request_options: typing.Optional[RequestOptions] = None,
364364
) -> AsyncHttpResponse[UpdateAttackProtectionCaptchaResponseContent]:
@@ -379,7 +379,7 @@ async def update(
379379
380380
recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]
381381
382-
recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
382+
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
383383
384384
simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]
385385
@@ -414,7 +414,7 @@ async def update(
414414
direction="write",
415415
),
416416
"recaptcha_v2": convert_and_respect_annotation_metadata(
417-
object_=recaptcha_v2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
417+
object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
418418
),
419419
"simple_captcha": simple_captcha,
420420
},

src/auth0/management/core/http_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ def _retry_timeout_from_retries(retries: int) -> float:
125125

126126

127127
def _should_retry(response: httpx.Response) -> bool:
128-
retryable_400s = [429, 408, 409]
129-
return response.status_code >= 500 or response.status_code in retryable_400s
128+
return response.status_code >= 500 or response.status_code in [429, 408, 409]
130129

131130

132131
_SENSITIVE_HEADERS = frozenset(

src/auth0/management/guardian/factors/push_notification/client.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ....types.set_guardian_factors_provider_push_notification_fcm_response_content import (
1919
SetGuardianFactorsProviderPushNotificationFcmResponseContent,
2020
)
21-
from ....types.set_guardian_factors_provider_push_notification_fcmv1response_content import (
21+
from ....types.set_guardian_factors_provider_push_notification_fcmv_1_response_content import (
2222
SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent,
2323
)
2424
from ....types.set_guardian_factors_provider_push_notification_response_content import (
@@ -33,7 +33,7 @@
3333
from ....types.update_guardian_factors_provider_push_notification_fcm_response_content import (
3434
UpdateGuardianFactorsProviderPushNotificationFcmResponseContent,
3535
)
36-
from ....types.update_guardian_factors_provider_push_notification_fcmv1response_content import (
36+
from ....types.update_guardian_factors_provider_push_notification_fcmv_1_response_content import (
3737
UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent,
3838
)
3939
from ....types.update_guardian_factors_provider_push_notification_sns_response_content import (
@@ -93,7 +93,7 @@ def set_apns_provider(
9393
*,
9494
sandbox: typing.Optional[bool] = OMIT,
9595
bundle_id: typing.Optional[str] = OMIT,
96-
p12: typing.Optional[str] = OMIT,
96+
p_12: typing.Optional[str] = OMIT,
9797
request_options: typing.Optional[RequestOptions] = None,
9898
) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent:
9999
"""
@@ -105,7 +105,7 @@ def set_apns_provider(
105105
106106
bundle_id : typing.Optional[str]
107107
108-
p12 : typing.Optional[str]
108+
p_12 : typing.Optional[str]
109109
110110
request_options : typing.Optional[RequestOptions]
111111
Request-specific configuration.
@@ -125,7 +125,7 @@ def set_apns_provider(
125125
client.guardian.factors.push_notification.set_apns_provider()
126126
"""
127127
_response = self._raw_client.set_apns_provider(
128-
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
128+
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
129129
)
130130
return _response.data
131131

@@ -134,7 +134,7 @@ def update_apns_provider(
134134
*,
135135
sandbox: typing.Optional[bool] = OMIT,
136136
bundle_id: typing.Optional[str] = OMIT,
137-
p12: typing.Optional[str] = OMIT,
137+
p_12: typing.Optional[str] = OMIT,
138138
request_options: typing.Optional[RequestOptions] = None,
139139
) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent:
140140
"""
@@ -146,7 +146,7 @@ def update_apns_provider(
146146
147147
bundle_id : typing.Optional[str]
148148
149-
p12 : typing.Optional[str]
149+
p_12 : typing.Optional[str]
150150
151151
request_options : typing.Optional[RequestOptions]
152152
Request-specific configuration.
@@ -166,7 +166,7 @@ def update_apns_provider(
166166
client.guardian.factors.push_notification.update_apns_provider()
167167
"""
168168
_response = self._raw_client.update_apns_provider(
169-
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
169+
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
170170
)
171171
return _response.data
172172

@@ -230,7 +230,7 @@ def update_fcm_provider(
230230
_response = self._raw_client.update_fcm_provider(server_key=server_key, request_options=request_options)
231231
return _response.data
232232

233-
def set_fcmv1provider(
233+
def set_fcmv_1_provider(
234234
self,
235235
*,
236236
server_credentials: typing.Optional[str] = OMIT,
@@ -258,14 +258,14 @@ def set_fcmv1provider(
258258
client = Auth0(
259259
token="YOUR_TOKEN",
260260
)
261-
client.guardian.factors.push_notification.set_fcmv1provider()
261+
client.guardian.factors.push_notification.set_fcmv_1_provider()
262262
"""
263-
_response = self._raw_client.set_fcmv1provider(
263+
_response = self._raw_client.set_fcmv_1_provider(
264264
server_credentials=server_credentials, request_options=request_options
265265
)
266266
return _response.data
267267

268-
def update_fcmv1provider(
268+
def update_fcmv_1_provider(
269269
self,
270270
*,
271271
server_credentials: typing.Optional[str] = OMIT,
@@ -293,9 +293,9 @@ def update_fcmv1provider(
293293
client = Auth0(
294294
token="YOUR_TOKEN",
295295
)
296-
client.guardian.factors.push_notification.update_fcmv1provider()
296+
client.guardian.factors.push_notification.update_fcmv_1_provider()
297297
"""
298-
_response = self._raw_client.update_fcmv1provider(
298+
_response = self._raw_client.update_fcmv_1_provider(
299299
server_credentials=server_credentials, request_options=request_options
300300
)
301301
return _response.data
@@ -552,7 +552,7 @@ async def set_apns_provider(
552552
*,
553553
sandbox: typing.Optional[bool] = OMIT,
554554
bundle_id: typing.Optional[str] = OMIT,
555-
p12: typing.Optional[str] = OMIT,
555+
p_12: typing.Optional[str] = OMIT,
556556
request_options: typing.Optional[RequestOptions] = None,
557557
) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent:
558558
"""
@@ -564,7 +564,7 @@ async def set_apns_provider(
564564
565565
bundle_id : typing.Optional[str]
566566
567-
p12 : typing.Optional[str]
567+
p_12 : typing.Optional[str]
568568
569569
request_options : typing.Optional[RequestOptions]
570570
Request-specific configuration.
@@ -592,7 +592,7 @@ async def main() -> None:
592592
asyncio.run(main())
593593
"""
594594
_response = await self._raw_client.set_apns_provider(
595-
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
595+
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
596596
)
597597
return _response.data
598598

@@ -601,7 +601,7 @@ async def update_apns_provider(
601601
*,
602602
sandbox: typing.Optional[bool] = OMIT,
603603
bundle_id: typing.Optional[str] = OMIT,
604-
p12: typing.Optional[str] = OMIT,
604+
p_12: typing.Optional[str] = OMIT,
605605
request_options: typing.Optional[RequestOptions] = None,
606606
) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent:
607607
"""
@@ -613,7 +613,7 @@ async def update_apns_provider(
613613
614614
bundle_id : typing.Optional[str]
615615
616-
p12 : typing.Optional[str]
616+
p_12 : typing.Optional[str]
617617
618618
request_options : typing.Optional[RequestOptions]
619619
Request-specific configuration.
@@ -641,7 +641,7 @@ async def main() -> None:
641641
asyncio.run(main())
642642
"""
643643
_response = await self._raw_client.update_apns_provider(
644-
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
644+
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
645645
)
646646
return _response.data
647647

@@ -721,7 +721,7 @@ async def main() -> None:
721721
_response = await self._raw_client.update_fcm_provider(server_key=server_key, request_options=request_options)
722722
return _response.data
723723

724-
async def set_fcmv1provider(
724+
async def set_fcmv_1_provider(
725725
self,
726726
*,
727727
server_credentials: typing.Optional[str] = OMIT,
@@ -754,17 +754,17 @@ async def set_fcmv1provider(
754754
755755
756756
async def main() -> None:
757-
await client.guardian.factors.push_notification.set_fcmv1provider()
757+
await client.guardian.factors.push_notification.set_fcmv_1_provider()
758758
759759
760760
asyncio.run(main())
761761
"""
762-
_response = await self._raw_client.set_fcmv1provider(
762+
_response = await self._raw_client.set_fcmv_1_provider(
763763
server_credentials=server_credentials, request_options=request_options
764764
)
765765
return _response.data
766766

767-
async def update_fcmv1provider(
767+
async def update_fcmv_1_provider(
768768
self,
769769
*,
770770
server_credentials: typing.Optional[str] = OMIT,
@@ -797,12 +797,12 @@ async def update_fcmv1provider(
797797
798798
799799
async def main() -> None:
800-
await client.guardian.factors.push_notification.update_fcmv1provider()
800+
await client.guardian.factors.push_notification.update_fcmv_1_provider()
801801
802802
803803
asyncio.run(main())
804804
"""
805-
_response = await self._raw_client.update_fcmv1provider(
805+
_response = await self._raw_client.update_fcmv_1_provider(
806806
server_credentials=server_credentials, request_options=request_options
807807
)
808808
return _response.data

0 commit comments

Comments
 (0)