Skip to content

Commit cf996a8

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

31 files changed

Lines changed: 605 additions & 38 deletions

reference.md

Lines changed: 83 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10953,6 +10953,14 @@ client.refresh_tokens.revoke()
1095310953
<dl>
1095410954
<dd>
1095510955

10956+
**audience:** `typing.Optional[str]` — Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`.
10957+
10958+
</dd>
10959+
</dl>
10960+
10961+
<dl>
10962+
<dd>
10963+
1095610964
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1095710965

1095810966
</dd>
@@ -11413,6 +11421,14 @@ client.resource_servers.create(
1141311421
<dl>
1141411422
<dd>
1141511423

11424+
**allow_online_access_with_ephemeral_sessions:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false).
11425+
11426+
</dd>
11427+
</dl>
11428+
11429+
<dl>
11430+
<dd>
11431+
1141611432
**token_lifetime:** `typing.Optional[int]` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
1141711433

1141811434
</dd>
@@ -11777,6 +11793,14 @@ client.resource_servers.update(
1177711793
<dl>
1177811794
<dd>
1177911795

11796+
**allow_online_access_with_ephemeral_sessions:** `typing.Optional[bool]` — Whether Online Refresh Tokens can be issued even when sessions are configured as ephemeral (true) or not (false).
11797+
11798+
</dd>
11799+
</dl>
11800+
11801+
<dl>
11802+
<dd>
11803+
1178011804
**token_lifetime:** `typing.Optional[int]` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
1178111805

1178211806
</dd>
@@ -14222,7 +14246,7 @@ client.tickets.change_password()
1422214246
<dl>
1422314247
<dd>
1422414248

14225-
**result_url:** `typing.Optional[str]` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id.
14249+
**result_url:** `typing.Optional[str]` — URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using organization_id. May be specified together with client_id when the tenant has a custom password reset page enabled and a password-reset-post-challenge Action bound.
1422614250

1422714251
</dd>
1422814252
</dl>
@@ -34782,15 +34806,23 @@ client.users.authentication_methods.create(
3478234806
<dl>
3478334807
<dd>
3478434808

34785-
**key_id:** `typing.Optional[str]` — Applies to webauthn authentication methods only. The id of the credential.
34809+
**key_id:** `typing.Optional[str]` — Applies to webauthn/passkey authentication methods only. The id of the credential.
34810+
34811+
</dd>
34812+
</dl>
34813+
34814+
<dl>
34815+
<dd>
34816+
34817+
**public_key:** `typing.Optional[str]` — Applies to webauthn/passkey authentication methods only. The public key, which is encoded as base64.
3478634818

3478734819
</dd>
3478834820
</dl>
3478934821

3479034822
<dl>
3479134823
<dd>
3479234824

34793-
**public_key:** `typing.Optional[str]` — Applies to webauthn authentication methods only. The public key, which is encoded as base64.
34825+
**aaguid:** `typing.Optional[str]` — Applies to passkeys only. Authenticator Attestation Globally Unique Identifier
3479434826

3479534827
</dd>
3479634828
</dl>
@@ -34806,6 +34838,54 @@ client.users.authentication_methods.create(
3480634838
<dl>
3480734839
<dd>
3480834840

34841+
**credential_device_type:** `typing.Optional[CredentialDeviceTypeEnum]`
34842+
34843+
</dd>
34844+
</dl>
34845+
34846+
<dl>
34847+
<dd>
34848+
34849+
**credential_backed_up:** `typing.Optional[bool]` — Applies to passkeys only. Whether the credential was backed up.
34850+
34851+
</dd>
34852+
</dl>
34853+
34854+
<dl>
34855+
<dd>
34856+
34857+
**identity_user_id:** `typing.Optional[str]` — Applies to passkeys only. The ID of the user identity linked with the authentication method.
34858+
34859+
</dd>
34860+
</dl>
34861+
34862+
<dl>
34863+
<dd>
34864+
34865+
**user_agent:** `typing.Optional[str]` — Applies to passkeys only. The user-agent of the browser used to create the passkey.
34866+
34867+
</dd>
34868+
</dl>
34869+
34870+
<dl>
34871+
<dd>
34872+
34873+
**user_handle:** `typing.Optional[str]` — Applies to passkeys only. The user handle of the user identity.
34874+
34875+
</dd>
34876+
</dl>
34877+
34878+
<dl>
34879+
<dd>
34880+
34881+
**transports:** `typing.Optional[typing.List[str]]` — Applies to passkeys only. The transports used by clients to communicate with the authenticator.
34882+
34883+
</dd>
34884+
</dl>
34885+
34886+
<dl>
34887+
<dd>
34888+
3480934889
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
3481034890

3481134891
</dd>

src/auth0/management/__init__.py

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
AttackProtectionUpdateCaptchaRecaptchaV2,
8282
AuthenticationMethodTypeEnum,
8383
AuthenticationTypeEnum,
84+
BadRequestSchema,
85+
BadRequestSchemaError,
8486
BotDetectionAllowlist,
8587
BotDetectionChallengePolicyPasswordFlowEnum,
8688
BotDetectionChallengePolicyPasswordResetFlowEnum,
@@ -1013,6 +1015,7 @@
10131015
CreateVerificationEmailResponseContent,
10141016
CreatedAuthenticationMethodTypeEnum,
10151017
CreatedUserAuthenticationMethodTypeEnum,
1018+
CredentialDeviceTypeEnum,
10161019
CredentialId,
10171020
CustomDomain,
10181021
CustomDomainCustomClientIpHeader,
@@ -1866,6 +1869,8 @@
18661869
FlowsVaultConnectionSetupTypeBasicAuthEnum,
18671870
FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum,
18681871
FlowsVaultConnectionSummary,
1872+
ForbiddenSchema,
1873+
ForbiddenSchemaError,
18691874
FormBlock,
18701875
FormBlockDivider,
18711876
FormBlockDividerConfig,
@@ -2486,9 +2491,13 @@
24862491
TokenQuota,
24872492
TokenQuotaClientCredentials,
24882493
TokenQuotaConfiguration,
2494+
TooManyRequestsSchema,
2495+
TooManyRequestsSchemaError,
24892496
TwilioProviderConfiguration,
24902497
TwilioProviderCredentials,
24912498
TwilioProviderDeliveryMethodEnum,
2499+
UnauthorizedSchema,
2500+
UnauthorizedSchemaError,
24922501
UniversalLoginExperienceEnum,
24932502
UpdateActionBindingsResponseContent,
24942503
UpdateActionModuleResponseContent,
@@ -2732,8 +2741,6 @@
27322741
from .environment import Auth0Environment
27332742
from .event_streams import EventStreamsCreateRequest
27342743
from .version import __version__
2735-
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
2736-
from .token_provider import AsyncTokenProvider, TokenProvider
27372744
_dynamic_imports: typing.Dict[str, str] = {
27382745
"Action": ".types",
27392746
"ActionBase": ".types",
@@ -2794,8 +2801,6 @@
27942801
"AssociateOrganizationClientGrantResponseContent": ".types",
27952802
"AsyncApprovalNotificationsChannelsEnum": ".types",
27962803
"AsyncAuth0": ".client",
2797-
"AsyncManagementClient": ".management_client",
2798-
"AsyncTokenProvider": ".token_provider",
27992804
"AttackProtectionCaptchaArkoseResponseContent": ".types",
28002805
"AttackProtectionCaptchaAuthChallengeRequest": ".types",
28012806
"AttackProtectionCaptchaAuthChallengeResponseContent": ".types",
@@ -2815,6 +2820,8 @@
28152820
"AuthenticationMethodTypeEnum": ".types",
28162821
"AuthenticationTypeEnum": ".types",
28172822
"BadRequestError": ".errors",
2823+
"BadRequestSchema": ".types",
2824+
"BadRequestSchemaError": ".types",
28182825
"BotDetectionAllowlist": ".types",
28192826
"BotDetectionChallengePolicyPasswordFlowEnum": ".types",
28202827
"BotDetectionChallengePolicyPasswordResetFlowEnum": ".types",
@@ -3749,9 +3756,9 @@
37493756
"CreateVerificationEmailResponseContent": ".types",
37503757
"CreatedAuthenticationMethodTypeEnum": ".types",
37513758
"CreatedUserAuthenticationMethodTypeEnum": ".types",
3759+
"CredentialDeviceTypeEnum": ".types",
37523760
"CredentialId": ".types",
37533761
"CustomDomain": ".types",
3754-
"CustomDomainHeader": ".management_client",
37553762
"CustomDomainCustomClientIpHeader": ".types",
37563763
"CustomDomainCustomClientIpHeaderEnum": ".types",
37573764
"CustomDomainProvisioningTypeEnum": ".types",
@@ -4607,6 +4614,8 @@
46074614
"FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum": ".types",
46084615
"FlowsVaultConnectionSummary": ".types",
46094616
"ForbiddenError": ".errors",
4617+
"ForbiddenSchema": ".types",
4618+
"ForbiddenSchemaError": ".types",
46104619
"FormBlock": ".types",
46114620
"FormBlockDivider": ".types",
46124621
"FormBlockDividerConfig": ".types",
@@ -5007,7 +5016,6 @@
50075016
"LogStreamSumoEnum": ".types",
50085017
"LogStreamSumoResponseSchema": ".types",
50095018
"LogStreamSumoSink": ".types",
5010-
"ManagementClient": ".management_client",
50115019
"MdlPresentationProperties": ".types",
50125020
"MdlPresentationRequest": ".types",
50135021
"MdlPresentationRequestProperties": ".types",
@@ -5234,12 +5242,15 @@
52345242
"TokenQuota": ".types",
52355243
"TokenQuotaClientCredentials": ".types",
52365244
"TokenQuotaConfiguration": ".types",
5237-
"TokenProvider": ".token_provider",
52385245
"TooManyRequestsError": ".errors",
5246+
"TooManyRequestsSchema": ".types",
5247+
"TooManyRequestsSchemaError": ".types",
52395248
"TwilioProviderConfiguration": ".types",
52405249
"TwilioProviderCredentials": ".types",
52415250
"TwilioProviderDeliveryMethodEnum": ".types",
52425251
"UnauthorizedError": ".errors",
5252+
"UnauthorizedSchema": ".types",
5253+
"UnauthorizedSchemaError": ".types",
52435254
"UniversalLoginExperienceEnum": ".types",
52445255
"UpdateActionBindingsResponseContent": ".types",
52455256
"UpdateActionModuleResponseContent": ".types",
@@ -5546,8 +5557,6 @@ def __dir__():
55465557
"AssociateOrganizationClientGrantResponseContent",
55475558
"AsyncApprovalNotificationsChannelsEnum",
55485559
"AsyncAuth0",
5549-
"AsyncManagementClient",
5550-
"AsyncTokenProvider",
55515560
"AttackProtectionCaptchaArkoseResponseContent",
55525561
"AttackProtectionCaptchaAuthChallengeRequest",
55535562
"AttackProtectionCaptchaAuthChallengeResponseContent",
@@ -5567,6 +5576,8 @@ def __dir__():
55675576
"AuthenticationMethodTypeEnum",
55685577
"AuthenticationTypeEnum",
55695578
"BadRequestError",
5579+
"BadRequestSchema",
5580+
"BadRequestSchemaError",
55705581
"BotDetectionAllowlist",
55715582
"BotDetectionChallengePolicyPasswordFlowEnum",
55725583
"BotDetectionChallengePolicyPasswordResetFlowEnum",
@@ -6501,9 +6512,9 @@ def __dir__():
65016512
"CreateVerificationEmailResponseContent",
65026513
"CreatedAuthenticationMethodTypeEnum",
65036514
"CreatedUserAuthenticationMethodTypeEnum",
6515+
"CredentialDeviceTypeEnum",
65046516
"CredentialId",
65056517
"CustomDomain",
6506-
"CustomDomainHeader",
65076518
"CustomDomainCustomClientIpHeader",
65086519
"CustomDomainCustomClientIpHeaderEnum",
65096520
"CustomDomainProvisioningTypeEnum",
@@ -7359,6 +7370,8 @@ def __dir__():
73597370
"FlowsVaultConnectionSetupTypeOauthClientCredentialsEnum",
73607371
"FlowsVaultConnectionSummary",
73617372
"ForbiddenError",
7373+
"ForbiddenSchema",
7374+
"ForbiddenSchemaError",
73627375
"FormBlock",
73637376
"FormBlockDivider",
73647377
"FormBlockDividerConfig",
@@ -7759,7 +7772,6 @@ def __dir__():
77597772
"LogStreamSumoEnum",
77607773
"LogStreamSumoResponseSchema",
77617774
"LogStreamSumoSink",
7762-
"ManagementClient",
77637775
"MdlPresentationProperties",
77647776
"MdlPresentationRequest",
77657777
"MdlPresentationRequestProperties",
@@ -7983,15 +7995,18 @@ def __dir__():
79837995
"TestEventDataContent",
79847996
"TokenExchangeProfileResponseContent",
79857997
"TokenExchangeProfileTypeEnum",
7986-
"TokenProvider",
79877998
"TokenQuota",
79887999
"TokenQuotaClientCredentials",
79898000
"TokenQuotaConfiguration",
79908001
"TooManyRequestsError",
8002+
"TooManyRequestsSchema",
8003+
"TooManyRequestsSchemaError",
79918004
"TwilioProviderConfiguration",
79928005
"TwilioProviderCredentials",
79938006
"TwilioProviderDeliveryMethodEnum",
79948007
"UnauthorizedError",
8008+
"UnauthorizedSchema",
8009+
"UnauthorizedSchemaError",
79958010
"UniversalLoginExperienceEnum",
79968011
"UpdateActionBindingsResponseContent",
79978012
"UpdateActionModuleResponseContent",

src/auth0/management/refresh_tokens/client.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def revoke(
110110
ids: typing.Optional[typing.Sequence[str]] = OMIT,
111111
user_id: typing.Optional[str] = OMIT,
112112
client_id: typing.Optional[str] = OMIT,
113+
audience: typing.Optional[str] = OMIT,
113114
request_options: typing.Optional[RequestOptions] = None,
114115
) -> None:
115116
"""
@@ -126,6 +127,9 @@ def revoke(
126127
client_id : typing.Optional[str]
127128
Revoke all refresh tokens for this client.
128129
130+
audience : typing.Optional[str]
131+
Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`.
132+
129133
request_options : typing.Optional[RequestOptions]
130134
Request-specific configuration.
131135
@@ -143,7 +147,7 @@ def revoke(
143147
client.refresh_tokens.revoke()
144148
"""
145149
_response = self._raw_client.revoke(
146-
ids=ids, user_id=user_id, client_id=client_id, request_options=request_options
150+
ids=ids, user_id=user_id, client_id=client_id, audience=audience, request_options=request_options
147151
)
148152
return _response.data
149153

@@ -356,6 +360,7 @@ async def revoke(
356360
ids: typing.Optional[typing.Sequence[str]] = OMIT,
357361
user_id: typing.Optional[str] = OMIT,
358362
client_id: typing.Optional[str] = OMIT,
363+
audience: typing.Optional[str] = OMIT,
359364
request_options: typing.Optional[RequestOptions] = None,
360365
) -> None:
361366
"""
@@ -372,6 +377,9 @@ async def revoke(
372377
client_id : typing.Optional[str]
373378
Revoke all refresh tokens for this client.
374379
380+
audience : typing.Optional[str]
381+
Resource server identifier (audience) to scope the revocation. Must be used with both `user_id` and `client_id`.
382+
375383
request_options : typing.Optional[RequestOptions]
376384
Request-specific configuration.
377385
@@ -397,7 +405,7 @@ async def main() -> None:
397405
asyncio.run(main())
398406
"""
399407
_response = await self._raw_client.revoke(
400-
ids=ids, user_id=user_id, client_id=client_id, request_options=request_options
408+
ids=ids, user_id=user_id, client_id=client_id, audience=audience, request_options=request_options
401409
)
402410
return _response.data
403411

0 commit comments

Comments
 (0)