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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,160 changes: 317 additions & 843 deletions .fern/replay.lock

Large diffs are not rendered by default.

5,499 changes: 3,703 additions & 1,796 deletions reference.md

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions src/auth0/management/__init__.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/auth0/management/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def update(
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateActionResponseContent:
"""
Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed.

Parameters
----------
Expand Down Expand Up @@ -734,7 +734,7 @@ async def update(
request_options: typing.Optional[RequestOptions] = None,
) -> UpdateActionResponseContent:
"""
Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions src/auth0/management/actions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def update(
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[UpdateActionResponseContent]:
"""
Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed.

Parameters
----------
Expand Down Expand Up @@ -1325,7 +1325,7 @@ async def update(
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[UpdateActionResponseContent]:
"""
Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed.
Update an existing action. If this action is currently bound to a trigger, updating it will **not** affect any user flows until the action is deployed.

Parameters
----------
Expand Down
6 changes: 0 additions & 6 deletions src/auth0/management/actions/versions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ def deploy(
json=convert_and_respect_annotation_metadata(
object_=request, annotation=typing.Optional[DeployActionVersionRequestContent], direction="write"
),
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -605,9 +602,6 @@ async def deploy(
json=convert_and_respect_annotation_metadata(
object_=request, annotation=typing.Optional[DeployActionVersionRequestContent], direction="write"
),
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
6 changes: 0 additions & 6 deletions src/auth0/management/branding/phone/templates/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,6 @@ def reset(
f"branding/phone/templates/{encode_path_param(id)}/reset",
method="PATCH",
json=request,
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -1280,9 +1277,6 @@ async def reset(
f"branding/phone/templates/{encode_path_param(id)}/reset",
method="PATCH",
json=request,
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
64 changes: 32 additions & 32 deletions src/auth0/management/branding/templates/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@ def update_universal_login(
"""
Update the Universal Login branding template.

<p>When <code>content-type</code> header is set to <code>application/json</code>:</p>
<pre>
When `content-type` header is set to `application/json`:

```json
{
"template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
"template": "<!DOCTYPE html>{% assign resolved_dir = dir | default: \\"auto\\" %}<html lang=\\"{{locale}}\\" dir=\\"{{resolved_dir}}\\"><head>{%- auth0:head -%}</head><body class=\\"_widget-auto-layout\\">{%- auth0:widget -%}</body></html>"
}
</pre>
```

When `content-type` header is set to `text/html`:

<p>
When <code>content-type</code> header is set to <code>text/html</code>:
</p>
<pre>
&lt!DOCTYPE html&gt;
```html
<!DOCTYPE html>
{% assign resolved_dir = dir | default: "auto" %}
&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
&lt;head&gt;
<html lang="{{locale}}" dir="{{resolved_dir}}">
<head>
{%- auth0:head -%}
&lt;/head&gt;
&lt;body class="_widget-auto-layout"&gt;
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
&lt;/body&gt;
&lt;/html&gt;
</pre>
</body>
</html>
```

Parameters
----------
Expand Down Expand Up @@ -192,28 +192,28 @@ async def update_universal_login(
"""
Update the Universal Login branding template.

<p>When <code>content-type</code> header is set to <code>application/json</code>:</p>
<pre>
When `content-type` header is set to `application/json`:

```json
{
"template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
"template": "<!DOCTYPE html>{% assign resolved_dir = dir | default: \\"auto\\" %}<html lang=\\"{{locale}}\\" dir=\\"{{resolved_dir}}\\"><head>{%- auth0:head -%}</head><body class=\\"_widget-auto-layout\\">{%- auth0:widget -%}</body></html>"
}
</pre>
```

When `content-type` header is set to `text/html`:

<p>
When <code>content-type</code> header is set to <code>text/html</code>:
</p>
<pre>
&lt!DOCTYPE html&gt;
```html
<!DOCTYPE html>
{% assign resolved_dir = dir | default: "auto" %}
&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
&lt;head&gt;
<html lang="{{locale}}" dir="{{resolved_dir}}">
<head>
{%- auth0:head -%}
&lt;/head&gt;
&lt;body class="_widget-auto-layout"&gt;
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
&lt;/body&gt;
&lt;/html&gt;
</pre>
</body>
</html>
```

Parameters
----------
Expand Down
70 changes: 32 additions & 38 deletions src/auth0/management/branding/templates/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,28 @@ def update_universal_login(
"""
Update the Universal Login branding template.

<p>When <code>content-type</code> header is set to <code>application/json</code>:</p>
<pre>
When `content-type` header is set to `application/json`:

```json
{
"template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
"template": "<!DOCTYPE html>{% assign resolved_dir = dir | default: \\"auto\\" %}<html lang=\\"{{locale}}\\" dir=\\"{{resolved_dir}}\\"><head>{%- auth0:head -%}</head><body class=\\"_widget-auto-layout\\">{%- auth0:widget -%}</body></html>"
}
</pre>
```

When `content-type` header is set to `text/html`:

<p>
When <code>content-type</code> header is set to <code>text/html</code>:
</p>
<pre>
&lt!DOCTYPE html&gt;
```html
<!DOCTYPE html>
{% assign resolved_dir = dir | default: "auto" %}
&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
&lt;head&gt;
<html lang="{{locale}}" dir="{{resolved_dir}}">
<head>
{%- auth0:head -%}
&lt;/head&gt;
&lt;body class="_widget-auto-layout"&gt;
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
&lt;/body&gt;
&lt;/html&gt;
</pre>
</body>
</html>
```

Parameters
----------
Expand All @@ -171,9 +171,6 @@ def update_universal_login(
json=convert_and_respect_annotation_metadata(
object_=request, annotation=UpdateUniversalLoginTemplateRequestContent, direction="write"
),
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down Expand Up @@ -434,28 +431,28 @@ async def update_universal_login(
"""
Update the Universal Login branding template.

<p>When <code>content-type</code> header is set to <code>application/json</code>:</p>
<pre>
When `content-type` header is set to `application/json`:

```json
{
"template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
"template": "<!DOCTYPE html>{% assign resolved_dir = dir | default: \\"auto\\" %}<html lang=\\"{{locale}}\\" dir=\\"{{resolved_dir}}\\"><head>{%- auth0:head -%}</head><body class=\\"_widget-auto-layout\\">{%- auth0:widget -%}</body></html>"
}
</pre>
```

When `content-type` header is set to `text/html`:

<p>
When <code>content-type</code> header is set to <code>text/html</code>:
</p>
<pre>
&lt!DOCTYPE html&gt;
```html
<!DOCTYPE html>
{% assign resolved_dir = dir | default: "auto" %}
&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
&lt;head&gt;
<html lang="{{locale}}" dir="{{resolved_dir}}">
<head>
{%- auth0:head -%}
&lt;/head&gt;
&lt;body class="_widget-auto-layout"&gt;
</head>
<body class="_widget-auto-layout">
{%- auth0:widget -%}
&lt;/body&gt;
&lt;/html&gt;
</pre>
</body>
</html>
```

Parameters
----------
Expand All @@ -474,9 +471,6 @@ async def update_universal_login(
json=convert_and_respect_annotation_metadata(
object_=request, annotation=UpdateUniversalLoginTemplateRequestContent, direction="write"
),
headers={
"content-type": "application/json",
},
request_options=request_options,
omit=OMIT,
)
Expand Down
19 changes: 19 additions & 0 deletions src/auth0/management/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from .network_acls.client import AsyncNetworkAclsClient, NetworkAclsClient
from .organizations.client import AsyncOrganizationsClient, OrganizationsClient
from .prompts.client import AsyncPromptsClient, PromptsClient
from .rate_limit_policies.client import AsyncRateLimitPoliciesClient, RateLimitPoliciesClient
from .refresh_tokens.client import AsyncRefreshTokensClient, RefreshTokensClient
from .resource_servers.client import AsyncResourceServersClient, ResourceServersClient
from .risk_assessments.client import AsyncRiskAssessmentsClient, RiskAssessmentsClient
Expand Down Expand Up @@ -161,6 +162,7 @@ def __init__(
self._network_acls: typing.Optional[NetworkAclsClient] = None
self._organizations: typing.Optional[OrganizationsClient] = None
self._prompts: typing.Optional[PromptsClient] = None
self._rate_limit_policies: typing.Optional[RateLimitPoliciesClient] = None
self._refresh_tokens: typing.Optional[RefreshTokensClient] = None
self._resource_servers: typing.Optional[ResourceServersClient] = None
self._roles: typing.Optional[RolesClient] = None
Expand Down Expand Up @@ -360,6 +362,14 @@ def prompts(self):
self._prompts = PromptsClient(client_wrapper=self._client_wrapper)
return self._prompts

@property
def rate_limit_policies(self):
if self._rate_limit_policies is None:
from .rate_limit_policies.client import RateLimitPoliciesClient # noqa: E402

self._rate_limit_policies = RateLimitPoliciesClient(client_wrapper=self._client_wrapper)
return self._rate_limit_policies

@property
def refresh_tokens(self):
if self._refresh_tokens is None:
Expand Down Expand Up @@ -663,6 +673,7 @@ def __init__(
self._network_acls: typing.Optional[AsyncNetworkAclsClient] = None
self._organizations: typing.Optional[AsyncOrganizationsClient] = None
self._prompts: typing.Optional[AsyncPromptsClient] = None
self._rate_limit_policies: typing.Optional[AsyncRateLimitPoliciesClient] = None
self._refresh_tokens: typing.Optional[AsyncRefreshTokensClient] = None
self._resource_servers: typing.Optional[AsyncResourceServersClient] = None
self._roles: typing.Optional[AsyncRolesClient] = None
Expand Down Expand Up @@ -862,6 +873,14 @@ def prompts(self):
self._prompts = AsyncPromptsClient(client_wrapper=self._client_wrapper)
return self._prompts

@property
def rate_limit_policies(self):
if self._rate_limit_policies is None:
from .rate_limit_policies.client import AsyncRateLimitPoliciesClient # noqa: E402

self._rate_limit_policies = AsyncRateLimitPoliciesClient(client_wrapper=self._client_wrapper)
return self._rate_limit_policies

@property
def refresh_tokens(self):
if self._refresh_tokens is None:
Expand Down
Loading
Loading