Skip to content

Commit ab49254

Browse files
SDK regeneration
1 parent e506d73 commit ab49254

92 files changed

Lines changed: 1436 additions & 423 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: 253 additions & 88 deletions
Large diffs are not rendered by default.

src/auth0/management/branding/phone/templates/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def test(
260260
Destination of the testing phone notification
261261
262262
delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum]
263+
Medium to use to send the notification
263264
264265
request_options : typing.Optional[RequestOptions]
265266
Request-specific configuration.
@@ -572,6 +573,7 @@ async def test(
572573
Destination of the testing phone notification
573574
574575
delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum]
576+
Medium to use to send the notification
575577
576578
request_options : typing.Optional[RequestOptions]
577579
Request-specific configuration.

src/auth0/management/branding/phone/templates/raw_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ def test(
625625
Destination of the testing phone notification
626626
627627
delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum]
628+
Medium to use to send the notification
628629
629630
request_options : typing.Optional[RequestOptions]
630631
Request-specific configuration.
@@ -1311,6 +1312,7 @@ async def test(
13111312
Destination of the testing phone notification
13121313
13131314
delivery_method : typing.Optional[PhoneProviderDeliveryMethodEnum]
1315+
Medium to use to send the notification
13141316
13151317
request_options : typing.Optional[RequestOptions]
13161318
Request-specific configuration.

src/auth0/management/clients/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ def create(
288288
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
289289
290290
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
291+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
291292
292293
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
293294
@@ -677,6 +678,7 @@ def update(
677678
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
678679
679680
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
681+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
680682
681683
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
682684
@@ -699,8 +701,10 @@ def update(
699701
URLs that are valid to redirect to after logout from Auth0
700702
701703
jwt_configuration : typing.Optional[ClientJwtConfiguration]
704+
An object that holds settings related to how JWTs are created
702705
703706
encryption_key : typing.Optional[ClientEncryptionKey]
707+
The client's encryption key
704708
705709
sso : typing.Optional[bool]
706710
<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)
@@ -745,6 +749,7 @@ def update(
745749
client_metadata : typing.Optional[ClientMetadata]
746750
747751
mobile : typing.Optional[ClientMobile]
752+
Configuration related to native mobile apps
748753
749754
initiate_login_uri : typing.Optional[str]
750755
Initiate login uri, must be https
@@ -1157,6 +1162,7 @@ async def create(
11571162
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
11581163
11591164
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
1165+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
11601166
11611167
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
11621168
@@ -1570,6 +1576,7 @@ async def update(
15701576
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
15711577
15721578
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
1579+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
15731580
15741581
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
15751582
@@ -1592,8 +1599,10 @@ async def update(
15921599
URLs that are valid to redirect to after logout from Auth0
15931600
15941601
jwt_configuration : typing.Optional[ClientJwtConfiguration]
1602+
An object that holds settings related to how JWTs are created
15951603
15961604
encryption_key : typing.Optional[ClientEncryptionKey]
1605+
The client's encryption key
15971606
15981607
sso : typing.Optional[bool]
15991608
<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)
@@ -1638,6 +1647,7 @@ async def update(
16381647
client_metadata : typing.Optional[ClientMetadata]
16391648
16401649
mobile : typing.Optional[ClientMobile]
1650+
Configuration related to native mobile apps
16411651
16421652
initiate_login_uri : typing.Optional[str]
16431653
Initiate login uri, must be https

src/auth0/management/clients/raw_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ def create(
334334
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
335335
336336
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
337+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
337338
338339
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
339340
@@ -930,6 +931,7 @@ def update(
930931
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
931932
932933
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
934+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
933935
934936
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
935937
@@ -952,8 +954,10 @@ def update(
952954
URLs that are valid to redirect to after logout from Auth0
953955
954956
jwt_configuration : typing.Optional[ClientJwtConfiguration]
957+
An object that holds settings related to how JWTs are created
955958
956959
encryption_key : typing.Optional[ClientEncryptionKey]
960+
The client's encryption key
957961
958962
sso : typing.Optional[bool]
959963
<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)
@@ -998,6 +1002,7 @@ def update(
9981002
client_metadata : typing.Optional[ClientMetadata]
9991003
10001004
mobile : typing.Optional[ClientMobile]
1005+
Configuration related to native mobile apps
10011006
10021007
initiate_login_uri : typing.Optional[str]
10031008
Initiate login uri, must be https
@@ -1597,6 +1602,7 @@ async def create(
15971602
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
15981603
15991604
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
1605+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
16001606
16011607
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
16021608
@@ -2195,6 +2201,7 @@ async def update(
21952201
oidc_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
21962202
21972203
oidc_backchannel_logout : typing.Optional[ClientOidcBackchannelLogoutSettings]
2204+
Configuration for OIDC backchannel logout (deprecated, in favor of oidc_logout)
21982205
21992206
session_transfer : typing.Optional[ClientSessionTransferConfiguration]
22002207
@@ -2217,8 +2224,10 @@ async def update(
22172224
URLs that are valid to redirect to after logout from Auth0
22182225
22192226
jwt_configuration : typing.Optional[ClientJwtConfiguration]
2227+
An object that holds settings related to how JWTs are created
22202228
22212229
encryption_key : typing.Optional[ClientEncryptionKey]
2230+
The client's encryption key
22222231
22232232
sso : typing.Optional[bool]
22242233
<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)
@@ -2263,6 +2272,7 @@ async def update(
22632272
client_metadata : typing.Optional[ClientMetadata]
22642273
22652274
mobile : typing.Optional[ClientMobile]
2275+
Configuration related to native mobile apps
22662276
22672277
initiate_login_uri : typing.Optional[str]
22682278
Initiate login uri, must be https

src/auth0/management/connections/client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
3838
self._raw_client = RawConnectionsClient(client_wrapper=client_wrapper)
3939
self._client_wrapper = client_wrapper
4040
self._directory_provisioning: typing.Optional[DirectoryProvisioningClient] = None
41+
self._scim_configuration: typing.Optional[ScimConfigurationClient] = None
4142
self._clients: typing.Optional[ClientsClient] = None
4243
self._keys: typing.Optional[KeysClient] = None
43-
self._scim_configuration: typing.Optional[ScimConfigurationClient] = None
4444
self._users: typing.Optional[UsersClient] = None
4545

4646
@property
@@ -431,6 +431,14 @@ def directory_provisioning(self):
431431
self._directory_provisioning = DirectoryProvisioningClient(client_wrapper=self._client_wrapper)
432432
return self._directory_provisioning
433433

434+
@property
435+
def scim_configuration(self):
436+
if self._scim_configuration is None:
437+
from .scim_configuration.client import ScimConfigurationClient # noqa: E402
438+
439+
self._scim_configuration = ScimConfigurationClient(client_wrapper=self._client_wrapper)
440+
return self._scim_configuration
441+
434442
@property
435443
def clients(self):
436444
if self._clients is None:
@@ -447,14 +455,6 @@ def keys(self):
447455
self._keys = KeysClient(client_wrapper=self._client_wrapper)
448456
return self._keys
449457

450-
@property
451-
def scim_configuration(self):
452-
if self._scim_configuration is None:
453-
from .scim_configuration.client import ScimConfigurationClient # noqa: E402
454-
455-
self._scim_configuration = ScimConfigurationClient(client_wrapper=self._client_wrapper)
456-
return self._scim_configuration
457-
458458
@property
459459
def users(self):
460460
if self._users is None:
@@ -469,9 +469,9 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
469469
self._raw_client = AsyncRawConnectionsClient(client_wrapper=client_wrapper)
470470
self._client_wrapper = client_wrapper
471471
self._directory_provisioning: typing.Optional[AsyncDirectoryProvisioningClient] = None
472+
self._scim_configuration: typing.Optional[AsyncScimConfigurationClient] = None
472473
self._clients: typing.Optional[AsyncClientsClient] = None
473474
self._keys: typing.Optional[AsyncKeysClient] = None
474-
self._scim_configuration: typing.Optional[AsyncScimConfigurationClient] = None
475475
self._users: typing.Optional[AsyncUsersClient] = None
476476

477477
@property
@@ -911,6 +911,14 @@ def directory_provisioning(self):
911911
self._directory_provisioning = AsyncDirectoryProvisioningClient(client_wrapper=self._client_wrapper)
912912
return self._directory_provisioning
913913

914+
@property
915+
def scim_configuration(self):
916+
if self._scim_configuration is None:
917+
from .scim_configuration.client import AsyncScimConfigurationClient # noqa: E402
918+
919+
self._scim_configuration = AsyncScimConfigurationClient(client_wrapper=self._client_wrapper)
920+
return self._scim_configuration
921+
914922
@property
915923
def clients(self):
916924
if self._clients is None:
@@ -927,14 +935,6 @@ def keys(self):
927935
self._keys = AsyncKeysClient(client_wrapper=self._client_wrapper)
928936
return self._keys
929937

930-
@property
931-
def scim_configuration(self):
932-
if self._scim_configuration is None:
933-
from .scim_configuration.client import AsyncScimConfigurationClient # noqa: E402
934-
935-
self._scim_configuration = AsyncScimConfigurationClient(client_wrapper=self._client_wrapper)
936-
return self._scim_configuration
937-
938938
@property
939939
def users(self):
940940
if self._users is None:

src/auth0/management/connections/keys/client.py

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
66
from ...core.request_options import RequestOptions
77
from ...types.connection_key import ConnectionKey
8+
from ...types.post_connection_keys_request_content import PostConnectionKeysRequestContent
9+
from ...types.post_connections_keys_response_content import PostConnectionsKeysResponseContent
810
from ...types.rotate_connection_keys_request_content import RotateConnectionKeysRequestContent
911
from ...types.rotate_connections_keys_response_content import RotateConnectionsKeysResponseContent
1012
from .raw_client import AsyncRawKeysClient, RawKeysClient
@@ -59,6 +61,46 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non
5961
_response = self._raw_client.get(id, request_options=request_options)
6062
return _response.data
6163

64+
def create(
65+
self,
66+
id: str,
67+
*,
68+
request: typing.Optional[PostConnectionKeysRequestContent] = None,
69+
request_options: typing.Optional[RequestOptions] = None,
70+
) -> PostConnectionsKeysResponseContent:
71+
"""
72+
Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
73+
74+
Parameters
75+
----------
76+
id : str
77+
ID of the connection
78+
79+
request : typing.Optional[PostConnectionKeysRequestContent]
80+
81+
request_options : typing.Optional[RequestOptions]
82+
Request-specific configuration.
83+
84+
Returns
85+
-------
86+
PostConnectionsKeysResponseContent
87+
Connection keys successfully created.
88+
89+
Examples
90+
--------
91+
from auth0 import Auth0, PostConnectionKeysRequestContent
92+
93+
client = Auth0(
94+
token="YOUR_TOKEN",
95+
)
96+
client.connections.keys.create(
97+
id="id",
98+
request=PostConnectionKeysRequestContent(),
99+
)
100+
"""
101+
_response = self._raw_client.create(id, request=request, request_options=request_options)
102+
return _response.data
103+
62104
def rotate(
63105
self,
64106
id: str,
@@ -156,6 +198,54 @@ async def main() -> None:
156198
_response = await self._raw_client.get(id, request_options=request_options)
157199
return _response.data
158200

201+
async def create(
202+
self,
203+
id: str,
204+
*,
205+
request: typing.Optional[PostConnectionKeysRequestContent] = None,
206+
request_options: typing.Optional[RequestOptions] = None,
207+
) -> PostConnectionsKeysResponseContent:
208+
"""
209+
Provision initial connection keys for Okta or OIDC connection strategies. This endpoint allows you to create keys before configuring the connection to use Private Key JWT authentication, enabling zero-downtime transitions.
210+
211+
Parameters
212+
----------
213+
id : str
214+
ID of the connection
215+
216+
request : typing.Optional[PostConnectionKeysRequestContent]
217+
218+
request_options : typing.Optional[RequestOptions]
219+
Request-specific configuration.
220+
221+
Returns
222+
-------
223+
PostConnectionsKeysResponseContent
224+
Connection keys successfully created.
225+
226+
Examples
227+
--------
228+
import asyncio
229+
230+
from auth0 import AsyncAuth0, PostConnectionKeysRequestContent
231+
232+
client = AsyncAuth0(
233+
token="YOUR_TOKEN",
234+
)
235+
236+
237+
async def main() -> None:
238+
await client.connections.keys.create(
239+
id="id",
240+
request=PostConnectionKeysRequestContent(),
241+
)
242+
243+
244+
asyncio.run(main())
245+
"""
246+
_response = await self._raw_client.create(id, request=request, request_options=request_options)
247+
return _response.data
248+
159249
async def rotate(
160250
self,
161251
id: str,

0 commit comments

Comments
 (0)