Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8,318 changes: 8,316 additions & 2 deletions .fern/replay.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -18978,7 +18978,7 @@ client.attack_protection.captcha.update()
<dl>
<dd>

**recaptcha_v2:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]`
**recaptcha_v_2:** `typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]`

</dd>
</dl>
Expand Down Expand Up @@ -26266,7 +26266,7 @@ client.guardian.factors.push_notification.set_apns_provider()
<dl>
<dd>

**p12:** `typing.Optional[str]`
**p_12:** `typing.Optional[str]`

</dd>
</dl>
Expand Down Expand Up @@ -26353,7 +26353,7 @@ client.guardian.factors.push_notification.update_apns_provider()
<dl>
<dd>

**p12:** `typing.Optional[str]`
**p_12:** `typing.Optional[str]`

</dd>
</dl>
Expand Down Expand Up @@ -26515,7 +26515,7 @@ client.guardian.factors.push_notification.update_fcm_provider()
</dl>
</details>

<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>
<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>
<dl>
<dd>

Expand Down Expand Up @@ -26586,7 +26586,7 @@ client.guardian.factors.push_notification.set_fcmv_1_provider()
</dl>
</details>

<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>
<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>
<dl>
<dd>

Expand Down
14 changes: 7 additions & 7 deletions src/auth0/management/attack_protection/captcha/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ...types.attack_protection_update_captcha_recaptcha_enterprise import (
AttackProtectionUpdateCaptchaRecaptchaEnterprise,
)
from ...types.attack_protection_update_captcha_recaptcha_v2 import AttackProtectionUpdateCaptchaRecaptchaV2
from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2
from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent
from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent
from .raw_client import AsyncRawCaptchaClient, RawCaptchaClient
Expand Down Expand Up @@ -76,7 +76,7 @@ def update(
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateAttackProtectionCaptchaResponseContent:
Expand All @@ -97,7 +97,7 @@ def update(

recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]

recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]

simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]

Expand Down Expand Up @@ -125,7 +125,7 @@ def update(
hcaptcha=hcaptcha,
friendly_captcha=friendly_captcha,
recaptcha_enterprise=recaptcha_enterprise,
recaptcha_v2=recaptcha_v2,
recaptcha_v_2=recaptcha_v_2,
simple_captcha=simple_captcha,
request_options=request_options,
)
Expand Down Expand Up @@ -192,7 +192,7 @@ async def update(
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateAttackProtectionCaptchaResponseContent:
Expand All @@ -213,7 +213,7 @@ async def update(

recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]

recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]

simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]

Expand Down Expand Up @@ -249,7 +249,7 @@ async def main() -> None:
hcaptcha=hcaptcha,
friendly_captcha=friendly_captcha,
recaptcha_enterprise=recaptcha_enterprise,
recaptcha_v2=recaptcha_v2,
recaptcha_v_2=recaptcha_v_2,
simple_captcha=simple_captcha,
request_options=request_options,
)
Expand Down
14 changes: 7 additions & 7 deletions src/auth0/management/attack_protection/captcha/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ...types.attack_protection_update_captcha_recaptcha_enterprise import (
AttackProtectionUpdateCaptchaRecaptchaEnterprise,
)
from ...types.attack_protection_update_captcha_recaptcha_v2 import AttackProtectionUpdateCaptchaRecaptchaV2
from ...types.attack_protection_update_captcha_recaptcha_v_2 import AttackProtectionUpdateCaptchaRecaptchaV2
from ...types.get_attack_protection_captcha_response_content import GetAttackProtectionCaptchaResponseContent
from ...types.update_attack_protection_captcha_response_content import UpdateAttackProtectionCaptchaResponseContent
from pydantic import ValidationError
Expand Down Expand Up @@ -131,7 +131,7 @@ def update(
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[UpdateAttackProtectionCaptchaResponseContent]:
Expand All @@ -152,7 +152,7 @@ def update(

recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]

recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]

simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]

Expand Down Expand Up @@ -187,7 +187,7 @@ def update(
direction="write",
),
"recaptcha_v2": convert_and_respect_annotation_metadata(
object_=recaptcha_v2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
),
"simple_captcha": simple_captcha,
},
Expand Down Expand Up @@ -358,7 +358,7 @@ async def update(
hcaptcha: typing.Optional[AttackProtectionUpdateCaptchaHcaptcha] = OMIT,
friendly_captcha: typing.Optional[AttackProtectionUpdateCaptchaFriendlyCaptcha] = OMIT,
recaptcha_enterprise: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise] = OMIT,
recaptcha_v2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
recaptcha_v_2: typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2] = OMIT,
simple_captcha: typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[UpdateAttackProtectionCaptchaResponseContent]:
Expand All @@ -379,7 +379,7 @@ async def update(

recaptcha_enterprise : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaEnterprise]

recaptcha_v2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]
recaptcha_v_2 : typing.Optional[AttackProtectionUpdateCaptchaRecaptchaV2]

simple_captcha : typing.Optional[AttackProtectionCaptchaSimpleCaptchaResponseContent]

Expand Down Expand Up @@ -414,7 +414,7 @@ async def update(
direction="write",
),
"recaptcha_v2": convert_and_respect_annotation_metadata(
object_=recaptcha_v2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
object_=recaptcha_v_2, annotation=AttackProtectionUpdateCaptchaRecaptchaV2, direction="write"
),
"simple_captcha": simple_captcha,
},
Expand Down
3 changes: 1 addition & 2 deletions src/auth0/management/core/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def _retry_timeout_from_retries(retries: int) -> float:


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


_SENSITIVE_HEADERS = frozenset(
Expand Down
52 changes: 26 additions & 26 deletions src/auth0/management/guardian/factors/push_notification/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ....types.set_guardian_factors_provider_push_notification_fcm_response_content import (
SetGuardianFactorsProviderPushNotificationFcmResponseContent,
)
from ....types.set_guardian_factors_provider_push_notification_fcmv1response_content import (
from ....types.set_guardian_factors_provider_push_notification_fcmv_1_response_content import (
SetGuardianFactorsProviderPushNotificationFcmv1ResponseContent,
)
from ....types.set_guardian_factors_provider_push_notification_response_content import (
Expand All @@ -33,7 +33,7 @@
from ....types.update_guardian_factors_provider_push_notification_fcm_response_content import (
UpdateGuardianFactorsProviderPushNotificationFcmResponseContent,
)
from ....types.update_guardian_factors_provider_push_notification_fcmv1response_content import (
from ....types.update_guardian_factors_provider_push_notification_fcmv_1_response_content import (
UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent,
)
from ....types.update_guardian_factors_provider_push_notification_sns_response_content import (
Expand Down Expand Up @@ -93,7 +93,7 @@ def set_apns_provider(
*,
sandbox: typing.Optional[bool] = OMIT,
bundle_id: typing.Optional[str] = OMIT,
p12: typing.Optional[str] = OMIT,
p_12: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent:
"""
Expand All @@ -105,7 +105,7 @@ def set_apns_provider(

bundle_id : typing.Optional[str]

p12 : typing.Optional[str]
p_12 : typing.Optional[str]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -125,7 +125,7 @@ def set_apns_provider(
client.guardian.factors.push_notification.set_apns_provider()
"""
_response = self._raw_client.set_apns_provider(
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
)
return _response.data

Expand All @@ -134,7 +134,7 @@ def update_apns_provider(
*,
sandbox: typing.Optional[bool] = OMIT,
bundle_id: typing.Optional[str] = OMIT,
p12: typing.Optional[str] = OMIT,
p_12: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent:
"""
Expand All @@ -146,7 +146,7 @@ def update_apns_provider(

bundle_id : typing.Optional[str]

p12 : typing.Optional[str]
p_12 : typing.Optional[str]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand All @@ -166,7 +166,7 @@ def update_apns_provider(
client.guardian.factors.push_notification.update_apns_provider()
"""
_response = self._raw_client.update_apns_provider(
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
)
return _response.data

Expand Down Expand Up @@ -230,7 +230,7 @@ def update_fcm_provider(
_response = self._raw_client.update_fcm_provider(server_key=server_key, request_options=request_options)
return _response.data

def set_fcmv1provider(
def set_fcmv_1_provider(
self,
*,
server_credentials: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -258,14 +258,14 @@ def set_fcmv1provider(
client = Auth0(
token="YOUR_TOKEN",
)
client.guardian.factors.push_notification.set_fcmv1provider()
client.guardian.factors.push_notification.set_fcmv_1_provider()
"""
_response = self._raw_client.set_fcmv1provider(
_response = self._raw_client.set_fcmv_1_provider(
server_credentials=server_credentials, request_options=request_options
)
return _response.data

def update_fcmv1provider(
def update_fcmv_1_provider(
self,
*,
server_credentials: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -293,9 +293,9 @@ def update_fcmv1provider(
client = Auth0(
token="YOUR_TOKEN",
)
client.guardian.factors.push_notification.update_fcmv1provider()
client.guardian.factors.push_notification.update_fcmv_1_provider()
"""
_response = self._raw_client.update_fcmv1provider(
_response = self._raw_client.update_fcmv_1_provider(
server_credentials=server_credentials, request_options=request_options
)
return _response.data
Expand Down Expand Up @@ -552,7 +552,7 @@ async def set_apns_provider(
*,
sandbox: typing.Optional[bool] = OMIT,
bundle_id: typing.Optional[str] = OMIT,
p12: typing.Optional[str] = OMIT,
p_12: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> SetGuardianFactorsProviderPushNotificationApnsResponseContent:
"""
Expand All @@ -564,7 +564,7 @@ async def set_apns_provider(

bundle_id : typing.Optional[str]

p12 : typing.Optional[str]
p_12 : typing.Optional[str]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -592,7 +592,7 @@ async def main() -> None:
asyncio.run(main())
"""
_response = await self._raw_client.set_apns_provider(
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
)
return _response.data

Expand All @@ -601,7 +601,7 @@ async def update_apns_provider(
*,
sandbox: typing.Optional[bool] = OMIT,
bundle_id: typing.Optional[str] = OMIT,
p12: typing.Optional[str] = OMIT,
p_12: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateGuardianFactorsProviderPushNotificationApnsResponseContent:
"""
Expand All @@ -613,7 +613,7 @@ async def update_apns_provider(

bundle_id : typing.Optional[str]

p12 : typing.Optional[str]
p_12 : typing.Optional[str]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -641,7 +641,7 @@ async def main() -> None:
asyncio.run(main())
"""
_response = await self._raw_client.update_apns_provider(
sandbox=sandbox, bundle_id=bundle_id, p12=p12, request_options=request_options
sandbox=sandbox, bundle_id=bundle_id, p_12=p_12, request_options=request_options
)
return _response.data

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

async def set_fcmv1provider(
async def set_fcmv_1_provider(
self,
*,
server_credentials: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -754,17 +754,17 @@ async def set_fcmv1provider(


async def main() -> None:
await client.guardian.factors.push_notification.set_fcmv1provider()
await client.guardian.factors.push_notification.set_fcmv_1_provider()


asyncio.run(main())
"""
_response = await self._raw_client.set_fcmv1provider(
_response = await self._raw_client.set_fcmv_1_provider(
server_credentials=server_credentials, request_options=request_options
)
return _response.data

async def update_fcmv1provider(
async def update_fcmv_1_provider(
self,
*,
server_credentials: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -797,12 +797,12 @@ async def update_fcmv1provider(


async def main() -> None:
await client.guardian.factors.push_notification.update_fcmv1provider()
await client.guardian.factors.push_notification.update_fcmv_1_provider()


asyncio.run(main())
"""
_response = await self._raw_client.update_fcmv1provider(
_response = await self._raw_client.update_fcmv_1_provider(
server_credentials=server_credentials, request_options=request_options
)
return _response.data
Expand Down
Loading
Loading