diff --git a/docs/resource-specific-documentation.md b/docs/resource-specific-documentation.md index 98fa9984..dc2a207d 100644 --- a/docs/resource-specific-documentation.md +++ b/docs/resource-specific-documentation.md @@ -95,10 +95,7 @@ Contents of `promptName_screenName.json` "prompt": "signup-id", "screen": "signup-id", "rendering_mode": "advanced", - "context_configuration": [ - "branding.settings", - "branding.themes.default" - ], + "context_configuration": ["branding.settings", "branding.themes.default"], "default_head_tags_disabled": false, "head_tags": [ { @@ -107,9 +104,7 @@ Contents of `promptName_screenName.json` "src": "URL_TO_YOUR_ASSET", "async": true, "defer": true, - "integrity": [ - "ASSET_SHA" - ] + "integrity": ["ASSET_SHA"] } } ] @@ -281,7 +276,6 @@ Contents of `password_reset.json` } ``` - ## emailTemplates When managing email templates, the values of `options.body` and `options.body` point to specific HTML files relative to the path of the output folder. Otherwise, the payload closely matches that of the [Management API](https://auth0.com/docs/api/management/v2#!/Email_Templates/post_email_templates). @@ -303,33 +297,33 @@ Folder structure when in YAML mode. ```yaml # Contents of ./tenant.yaml emailTemplates: - - template: "verify_email" + - template: 'verify_email' enabled: true - syntax: "liquid" - from: "test@email.com" - subject: "something" - body: "emailTemplates/change_email.html" + syntax: 'liquid' + from: 'test@email.com' + subject: 'something' + body: 'emailTemplates/change_email.html' - - template: "welcome_email" + - template: 'welcome_email' enabled: true - syntax: "liquid" - from: "test@email.com" - subject: "something" - body: "emailTemplates/change_email.html" + syntax: 'liquid' + from: 'test@email.com' + subject: 'something' + body: 'emailTemplates/change_email.html' - - template: "password_reset" + - template: 'password_reset' enabled: true - syntax: "liquid" - from: "test@email.com" - subject: "something" - body: "emailTemplates/change_email.html" + syntax: 'liquid' + from: 'test@email.com' + subject: 'something' + body: 'emailTemplates/change_email.html' - - template: "reset_email_by_code" + - template: 'reset_email_by_code' enabled: true - syntax: "liquid" - from: "test@email.com" - subject: "something" - body: "emailTemplates/change_email.html" + syntax: 'liquid' + from: 'test@email.com' + subject: 'something' + body: 'emailTemplates/change_email.html' ``` **Directory Example** diff --git a/src/index.ts b/src/index.ts index 74fd6fdd..d7f3ce55 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,9 +29,7 @@ async function run(params: CliParams): Promise { log.debug(`Setting proxy to ${proxy}`); // moving from `global-agent` to undici due to update on SDK 4.x.x - setGlobalDispatcher( - new ProxyAgent(process.env.HTTP_PROXY) - ); + setGlobalDispatcher(new ProxyAgent(process.env.HTTP_PROXY)); } log.debug(`Start command ${command}`); diff --git a/src/tools/constants.ts b/src/tools/constants.ts index 142a3013..79242839 100644 --- a/src/tools/constants.ts +++ b/src/tools/constants.ts @@ -224,8 +224,27 @@ const constants = { captcha: ['interstitial-captcha'], login: ['login'], signup: ['signup'], - 'reset-password': ['reset-password-request', 'reset-password-email', 'reset-password', 'reset-password-success', 'reset-password-error'], - + 'reset-password': [ + 'reset-password-request', + 'reset-password-email', + 'reset-password', + 'reset-password-success', + 'reset-password-error', + ], + mfa: [ + 'mfa-detect-browser-capabilities', + 'mfa-enroll-result', + 'mfa-begin-enroll-options', + 'mfa-login-options', + ], + 'mfa-email': ['mfa-email-challenge', 'mfa-email-list'], + 'mfa-sms': ['mfa-country-codes', 'mfa-sms-challenge', 'mfa-sms-enrollment', 'mfa-sms-list'], + 'mfa-push': [ + 'mfa-push-challenge-push', + 'mfa-push-enrollment-qr', + 'mfa-push-list', + 'mfa-push-welcome', + ], } as PromptScreenMapping, };