Skip to content

Commit b61c6fa

Browse files
committed
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.9.1
1 parent 6e9c9a6 commit b61c6fa

305 files changed

Lines changed: 1332 additions & 1068 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.

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/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,8 +2732,6 @@
27322732
from .environment import Auth0Environment
27332733
from .event_streams import EventStreamsCreateRequest
27342734
from .version import __version__
2735-
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
2736-
from .token_provider import AsyncTokenProvider, TokenProvider
27372735
_dynamic_imports: typing.Dict[str, str] = {
27382736
"Action": ".types",
27392737
"ActionBase": ".types",
@@ -2794,8 +2792,6 @@
27942792
"AssociateOrganizationClientGrantResponseContent": ".types",
27952793
"AsyncApprovalNotificationsChannelsEnum": ".types",
27962794
"AsyncAuth0": ".client",
2797-
"AsyncManagementClient": ".management_client",
2798-
"AsyncTokenProvider": ".token_provider",
27992795
"AttackProtectionCaptchaArkoseResponseContent": ".types",
28002796
"AttackProtectionCaptchaAuthChallengeRequest": ".types",
28012797
"AttackProtectionCaptchaAuthChallengeResponseContent": ".types",
@@ -3751,7 +3747,6 @@
37513747
"CreatedUserAuthenticationMethodTypeEnum": ".types",
37523748
"CredentialId": ".types",
37533749
"CustomDomain": ".types",
3754-
"CustomDomainHeader": ".management_client",
37553750
"CustomDomainCustomClientIpHeader": ".types",
37563751
"CustomDomainCustomClientIpHeaderEnum": ".types",
37573752
"CustomDomainProvisioningTypeEnum": ".types",
@@ -5007,7 +5002,6 @@
50075002
"LogStreamSumoEnum": ".types",
50085003
"LogStreamSumoResponseSchema": ".types",
50095004
"LogStreamSumoSink": ".types",
5010-
"ManagementClient": ".management_client",
50115005
"MdlPresentationProperties": ".types",
50125006
"MdlPresentationRequest": ".types",
50135007
"MdlPresentationRequestProperties": ".types",
@@ -5234,7 +5228,6 @@
52345228
"TokenQuota": ".types",
52355229
"TokenQuotaClientCredentials": ".types",
52365230
"TokenQuotaConfiguration": ".types",
5237-
"TokenProvider": ".token_provider",
52385231
"TooManyRequestsError": ".errors",
52395232
"TwilioProviderConfiguration": ".types",
52405233
"TwilioProviderCredentials": ".types",
@@ -5546,8 +5539,6 @@ def __dir__():
55465539
"AssociateOrganizationClientGrantResponseContent",
55475540
"AsyncApprovalNotificationsChannelsEnum",
55485541
"AsyncAuth0",
5549-
"AsyncManagementClient",
5550-
"AsyncTokenProvider",
55515542
"AttackProtectionCaptchaArkoseResponseContent",
55525543
"AttackProtectionCaptchaAuthChallengeRequest",
55535544
"AttackProtectionCaptchaAuthChallengeResponseContent",
@@ -6503,7 +6494,6 @@ def __dir__():
65036494
"CreatedUserAuthenticationMethodTypeEnum",
65046495
"CredentialId",
65056496
"CustomDomain",
6506-
"CustomDomainHeader",
65076497
"CustomDomainCustomClientIpHeader",
65086498
"CustomDomainCustomClientIpHeaderEnum",
65096499
"CustomDomainProvisioningTypeEnum",
@@ -7759,7 +7749,6 @@ def __dir__():
77597749
"LogStreamSumoEnum",
77607750
"LogStreamSumoResponseSchema",
77617751
"LogStreamSumoSink",
7762-
"ManagementClient",
77637752
"MdlPresentationProperties",
77647753
"MdlPresentationRequest",
77657754
"MdlPresentationRequestProperties",
@@ -7983,7 +7972,6 @@ def __dir__():
79837972
"TestEventDataContent",
79847973
"TokenExchangeProfileResponseContent",
79857974
"TokenExchangeProfileTypeEnum",
7986-
"TokenProvider",
79877975
"TokenQuota",
79887976
"TokenQuotaClientCredentials",
79897977
"TokenQuotaConfiguration",

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(

0 commit comments

Comments
 (0)