Skip to content

Commit 9de9532

Browse files
updated acul PATCH 200 response, updated email template manager, added reset_email_by_code to multiple places (#1071)
1 parent 9028d0d commit 9de9532

File tree

4 files changed

+157
-104
lines changed

4 files changed

+157
-104
lines changed

src/management/__generated/managers/email-templates-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { BaseAPI } = runtime;
1717
*/
1818
export class EmailTemplatesManager extends BaseAPI {
1919
/**
20-
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `reset_email`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, and `user_invitation`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
20+
* Retrieve an email template by pre-defined name. These names are `verify_email`, `verify_email_by_code`, `reset_email`, `reset_email_by_code`, `welcome_email`, `blocked_account`, `stolen_credentials`, `enrollment_email`, `mfa_oob_code`, and `user_invitation`. The names `change_password`, and `password_reset` are also supported for legacy scenarios.
2121
* Get an email template
2222
*
2323
* @throws {RequiredError}

src/management/__generated/managers/emails-manager.ts

Lines changed: 8 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -48,46 +48,10 @@ export class EmailsManager extends BaseAPI {
4848
}
4949

5050
/**
51-
* Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object
52-
* requires different properties depending on the email provider (which is specified using the <code>name</code> property):
53-
* <ul>
54-
* <li><code>mandrill</code> requires <code>api_key</code></li>
55-
* <li><code>sendgrid</code> requires <code>api_key</code></li>
56-
* <li>
57-
* <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use
58-
* the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in
59-
* North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.
60-
* </li>
61-
* <li>
62-
* <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to
63-
* <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or
64-
* <code>null</code> are the only valid values for <code>region</code>.
65-
* </li>
66-
* <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li>
67-
* <li>
68-
* <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and
69-
* <code>smtp_pass</code>
70-
* </li>
71-
* </ul>
72-
* Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration
73-
* options, which will be used when sending an email:
74-
* <ul>
75-
* <li>
76-
* <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object.
77-
* <ul>
78-
* <li>
79-
* When using AWS SES SMTP host, you may provide a name of configuration set in
80-
* <code>X-SES-Configuration-Set</code> header. Value must be a string.
81-
* </li>
82-
* <li>
83-
* When using Sparkpost host, you may provide value for
84-
* <code>X-MSYS_API</code> header. Value must be an object.
85-
* </li>
86-
* </ul>
87-
* for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide
88-
* a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.
89-
* </li>
90-
* </ul>
51+
* Update an <a href="https://auth0.com/docs/email/providers">email provider</a>.
52+
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
53+
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
54+
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
9155
*
9256
* Update the email provider
9357
*
@@ -115,48 +79,10 @@ export class EmailsManager extends BaseAPI {
11579
}
11680

11781
/**
118-
* Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object
119-
* requires different properties depending on the email provider (which is specified using the <code>name</code> property):
120-
* <ul>
121-
* <li><code>mandrill</code> requires <code>api_key</code></li>
122-
* <li><code>sendgrid</code> requires <code>api_key</code></li>
123-
* <li>
124-
* <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use
125-
* the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in
126-
* North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.
127-
* </li>
128-
* <li>
129-
* <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to
130-
* <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or
131-
* <code>null</code> are the only valid values for <code>region</code>.
132-
* </li>
133-
* <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li>
134-
* <li>
135-
* <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and
136-
* <code>smtp_pass</code>
137-
* </li>
138-
* </ul>
139-
* Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration
140-
* options, which will be used when sending an email:
141-
* <ul>
142-
* <li>
143-
* <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object.
144-
* <ul>
145-
* <li>
146-
* When using AWS SES SMTP host, you may provide a name of configuration set in
147-
* <code>X-SES-Configuration-Set</code> header. Value must be a string.
148-
* </li>
149-
* <li>
150-
* When using Sparkpost host, you may provide value for
151-
* <code>X-MSYS_API</code> header. Value must be an object.
152-
* </li>
153-
* </ul>
154-
* </li>
155-
* <li>
156-
* for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide
157-
* a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.
158-
* </li>
159-
* </ul>
82+
* Create an <a href="https://auth0.com/docs/email/providers">email provider</a>.
83+
* The <code>credentials</code> object requires different properties depending on the email provider (which is specified using the <code>name</code> property):
84+
* <ul><li><code>mandrill</code> requires <code>api_key</code></li><li><code>sendgrid</code> requires <code>api_key</code></li><li><code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>.</li><li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li><li><code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and <code>smtp_pass</code></li></ul>Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration options, which will be used when sending an email:
85+
* <ul><li><code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. When using AWS SES SMTP host, you may provide a name of configuration set in <code>X-SES-Configuration-Set</code> header. Value must be a string.</li><li>for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide a name of configuration set in <code>configuration_set_name</code> property. Value must be a string.</li></ul>
16086
*
16187
* Configure the email provider
16288
*

src/management/__generated/managers/prompts-manager.ts

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as runtime from '../../../lib/runtime.js';
22
import type { InitOverride, ApiResponse } from '../../../lib/runtime.js';
33
import type {
44
GetRendering200Response,
5+
PatchRendering200Response,
56
PatchRenderingRequest,
67
PromptsSettings,
78
PromptsSettingsUpdate,
@@ -89,8 +90,8 @@ export class PromptsManager extends BaseAPI {
8990
}
9091

9192
/**
92-
* View the render settings for a specific screen
93-
* Get render settings for a prompt
93+
* Get render settings for a screen.
94+
* Get render settings for a screen
9495
*
9596
* @throws {RequiredError}
9697
*/
@@ -141,16 +142,44 @@ export class PromptsManager extends BaseAPI {
141142
}
142143

143144
/**
144-
* Configure the render settings for a specific screen
145-
* Configure render settings for a prompt
145+
* Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization.
146+
*
147+
* <p>
148+
* Example <code>head_tags</code> array. See our <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>documentation</a> on using Liquid variables within head tags.
149+
* </p>
150+
* <pre>{
151+
* "head_tags": [
152+
* {
153+
* "tag": "script",
154+
* "attributes": {
155+
* "defer": true,
156+
* "src": "URL_TO_ASSET",
157+
* "async": true,
158+
* "integrity": [
159+
* "ASSET_SHA"
160+
* ]
161+
* }
162+
* },
163+
* {
164+
* "tag": "link",
165+
* "attributes": {
166+
* "href": "URL_TO_ASSET",
167+
* "rel": "stylesheet"
168+
* }
169+
* }
170+
* ]
171+
* }
172+
* </pre>
173+
*
174+
* Update render settings for a screen
146175
*
147176
* @throws {RequiredError}
148177
*/
149178
async updateRendering(
150179
requestParameters: PatchRenderingOperationRequest,
151180
bodyParameters: PatchRenderingRequest,
152181
initOverrides?: InitOverride
153-
): Promise<ApiResponse<void>> {
182+
): Promise<ApiResponse<PatchRendering200Response>> {
154183
runtime.validateRequiredRequestParams(requestParameters, ['prompt', 'screen']);
155184

156185
const headerParameters: runtime.HTTPHeaders = {};
@@ -169,7 +198,7 @@ export class PromptsManager extends BaseAPI {
169198
initOverrides
170199
);
171200

172-
return runtime.VoidApiResponse.fromResponse(response);
201+
return runtime.JSONApiResponse.fromResponse(response);
173202
}
174203

175204
/**

0 commit comments

Comments
 (0)