@authhero/widget 0.13.3 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authhero-widget/authhero-widget.esm.js +1 -1
- package/dist/authhero-widget/index.esm.js +1 -1
- package/dist/authhero-widget/p-a4fd5f18.entry.js +1 -0
- package/dist/authhero-widget/p-df99a4ad.entry.js +1 -0
- package/dist/cjs/authhero-node.cjs.entry.js +53 -15
- package/dist/cjs/authhero-widget.cjs.entry.js +36 -9
- package/dist/cjs/index.cjs.js +40 -22
- package/dist/collection/components/authhero-node/authhero-node.css +20 -4
- package/dist/collection/components/authhero-node/authhero-node.js +53 -15
- package/dist/collection/components/authhero-widget/authhero-widget.css +3 -2
- package/dist/collection/components/authhero-widget/authhero-widget.js +37 -10
- package/dist/components/authhero-node.js +1 -1
- package/dist/components/authhero-widget.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-CA--5Mag.js +1 -0
- package/dist/esm/authhero-node.entry.js +53 -15
- package/dist/esm/authhero-widget.entry.js +36 -9
- package/dist/esm/index.js +40 -22
- package/dist/types/components/authhero-node/authhero-node.d.ts +10 -0
- package/dist/types/components/authhero-widget/authhero-widget.d.ts +6 -0
- package/hydrate/index.js +89 -24
- package/hydrate/index.mjs +89 -24
- package/package.json +2 -2
- package/dist/authhero-widget/p-1107d60e.entry.js +0 -1
- package/dist/authhero-widget/p-b2d3d319.entry.js +0 -1
- package/dist/components/p-CWVARG2s.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2187,6 +2187,7 @@ var setDefaultContentType = (contentType, headers) => {
|
|
|
2187
2187
|
...headers
|
|
2188
2188
|
};
|
|
2189
2189
|
};
|
|
2190
|
+
var createResponseInstance = (body, init) => new Response(body, init);
|
|
2190
2191
|
var Context = class {
|
|
2191
2192
|
#rawRequest;
|
|
2192
2193
|
#req;
|
|
@@ -2285,7 +2286,7 @@ var Context = class {
|
|
|
2285
2286
|
* The Response object for the current request.
|
|
2286
2287
|
*/
|
|
2287
2288
|
get res() {
|
|
2288
|
-
return this.#res ||=
|
|
2289
|
+
return this.#res ||= createResponseInstance(null, {
|
|
2289
2290
|
headers: this.#preparedHeaders ??= new Headers()
|
|
2290
2291
|
});
|
|
2291
2292
|
}
|
|
@@ -2296,7 +2297,7 @@ var Context = class {
|
|
|
2296
2297
|
*/
|
|
2297
2298
|
set res(_res) {
|
|
2298
2299
|
if (this.#res && _res) {
|
|
2299
|
-
_res =
|
|
2300
|
+
_res = createResponseInstance(_res.body, _res);
|
|
2300
2301
|
for (const [k, v] of this.#res.headers.entries()) {
|
|
2301
2302
|
if (k === "content-type") {
|
|
2302
2303
|
continue;
|
|
@@ -2386,7 +2387,7 @@ var Context = class {
|
|
|
2386
2387
|
*/
|
|
2387
2388
|
header = (name, value, options) => {
|
|
2388
2389
|
if (this.finalized) {
|
|
2389
|
-
this.#res =
|
|
2390
|
+
this.#res = createResponseInstance(this.#res.body, this.#res);
|
|
2390
2391
|
}
|
|
2391
2392
|
const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers();
|
|
2392
2393
|
if (value === void 0) {
|
|
@@ -2475,7 +2476,7 @@ var Context = class {
|
|
|
2475
2476
|
}
|
|
2476
2477
|
}
|
|
2477
2478
|
const status = typeof arg === "number" ? arg : arg?.status ?? this.#status;
|
|
2478
|
-
return
|
|
2479
|
+
return createResponseInstance(data, { status, headers: responseHeaders });
|
|
2479
2480
|
}
|
|
2480
2481
|
newResponse = (...args) => this.#newResponse(...args);
|
|
2481
2482
|
/**
|
|
@@ -2580,7 +2581,7 @@ var Context = class {
|
|
|
2580
2581
|
* ```
|
|
2581
2582
|
*/
|
|
2582
2583
|
notFound = () => {
|
|
2583
|
-
this.#notFoundHandler ??= () =>
|
|
2584
|
+
this.#notFoundHandler ??= () => createResponseInstance();
|
|
2584
2585
|
return this.#notFoundHandler(this);
|
|
2585
2586
|
};
|
|
2586
2587
|
};
|
|
@@ -3387,6 +3388,12 @@ var SmartRouter = class {
|
|
|
3387
3388
|
|
|
3388
3389
|
// src/router/trie-router/node.ts
|
|
3389
3390
|
var emptyParams = /* @__PURE__ */ Object.create(null);
|
|
3391
|
+
var hasChildren = (children) => {
|
|
3392
|
+
for (const _ in children) {
|
|
3393
|
+
return true;
|
|
3394
|
+
}
|
|
3395
|
+
return false;
|
|
3396
|
+
};
|
|
3390
3397
|
var Node = class _Node {
|
|
3391
3398
|
#methods;
|
|
3392
3399
|
#children;
|
|
@@ -3436,8 +3443,7 @@ var Node = class _Node {
|
|
|
3436
3443
|
});
|
|
3437
3444
|
return curNode;
|
|
3438
3445
|
}
|
|
3439
|
-
#
|
|
3440
|
-
const handlerSets = [];
|
|
3446
|
+
#pushHandlerSets(handlerSets, node, method, nodeParams, params) {
|
|
3441
3447
|
for (let i = 0, len = node.#methods.length; i < len; i++) {
|
|
3442
3448
|
const m = node.#methods[i];
|
|
3443
3449
|
const handlerSet = m[method] || m[METHOD_NAME_ALL];
|
|
@@ -3455,7 +3461,6 @@ var Node = class _Node {
|
|
|
3455
3461
|
}
|
|
3456
3462
|
}
|
|
3457
3463
|
}
|
|
3458
|
-
return handlerSets;
|
|
3459
3464
|
}
|
|
3460
3465
|
search(method, path) {
|
|
3461
3466
|
const handlerSets = [];
|
|
@@ -3464,7 +3469,9 @@ var Node = class _Node {
|
|
|
3464
3469
|
let curNodes = [curNode];
|
|
3465
3470
|
const parts = splitPath(path);
|
|
3466
3471
|
const curNodesQueue = [];
|
|
3467
|
-
|
|
3472
|
+
const len = parts.length;
|
|
3473
|
+
let partOffsets = null;
|
|
3474
|
+
for (let i = 0; i < len; i++) {
|
|
3468
3475
|
const part = parts[i];
|
|
3469
3476
|
const isLast = i === len - 1;
|
|
3470
3477
|
const tempNodes = [];
|
|
@@ -3475,11 +3482,9 @@ var Node = class _Node {
|
|
|
3475
3482
|
nextNode.#params = node.#params;
|
|
3476
3483
|
if (isLast) {
|
|
3477
3484
|
if (nextNode.#children["*"]) {
|
|
3478
|
-
handlerSets
|
|
3479
|
-
...this.#getHandlerSets(nextNode.#children["*"], method, node.#params)
|
|
3480
|
-
);
|
|
3485
|
+
this.#pushHandlerSets(handlerSets, nextNode.#children["*"], method, node.#params);
|
|
3481
3486
|
}
|
|
3482
|
-
|
|
3487
|
+
this.#pushHandlerSets(handlerSets, nextNode, method, node.#params);
|
|
3483
3488
|
} else {
|
|
3484
3489
|
tempNodes.push(nextNode);
|
|
3485
3490
|
}
|
|
@@ -3490,7 +3495,7 @@ var Node = class _Node {
|
|
|
3490
3495
|
if (pattern === "*") {
|
|
3491
3496
|
const astNode = node.#children["*"];
|
|
3492
3497
|
if (astNode) {
|
|
3493
|
-
|
|
3498
|
+
this.#pushHandlerSets(handlerSets, astNode, method, node.#params);
|
|
3494
3499
|
astNode.#params = params;
|
|
3495
3500
|
tempNodes.push(astNode);
|
|
3496
3501
|
}
|
|
@@ -3501,13 +3506,21 @@ var Node = class _Node {
|
|
|
3501
3506
|
continue;
|
|
3502
3507
|
}
|
|
3503
3508
|
const child = node.#children[key];
|
|
3504
|
-
const restPathString = parts.slice(i).join("/");
|
|
3505
3509
|
if (matcher instanceof RegExp) {
|
|
3510
|
+
if (partOffsets === null) {
|
|
3511
|
+
partOffsets = new Array(len);
|
|
3512
|
+
let offset = path[0] === "/" ? 1 : 0;
|
|
3513
|
+
for (let p = 0; p < len; p++) {
|
|
3514
|
+
partOffsets[p] = offset;
|
|
3515
|
+
offset += parts[p].length + 1;
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
const restPathString = path.substring(partOffsets[i]);
|
|
3506
3519
|
const m = matcher.exec(restPathString);
|
|
3507
3520
|
if (m) {
|
|
3508
3521
|
params[name] = m[0];
|
|
3509
|
-
|
|
3510
|
-
if (
|
|
3522
|
+
this.#pushHandlerSets(handlerSets, child, method, node.#params, params);
|
|
3523
|
+
if (hasChildren(child.#children)) {
|
|
3511
3524
|
child.#params = params;
|
|
3512
3525
|
const componentCount = m[0].match(/\//)?.length ?? 0;
|
|
3513
3526
|
const targetCurNodes = curNodesQueue[componentCount] ||= [];
|
|
@@ -3519,10 +3532,14 @@ var Node = class _Node {
|
|
|
3519
3532
|
if (matcher === true || matcher.test(part)) {
|
|
3520
3533
|
params[name] = part;
|
|
3521
3534
|
if (isLast) {
|
|
3522
|
-
|
|
3535
|
+
this.#pushHandlerSets(handlerSets, child, method, params, node.#params);
|
|
3523
3536
|
if (child.#children["*"]) {
|
|
3524
|
-
|
|
3525
|
-
|
|
3537
|
+
this.#pushHandlerSets(
|
|
3538
|
+
handlerSets,
|
|
3539
|
+
child.#children["*"],
|
|
3540
|
+
method,
|
|
3541
|
+
params,
|
|
3542
|
+
node.#params
|
|
3526
3543
|
);
|
|
3527
3544
|
}
|
|
3528
3545
|
} else {
|
|
@@ -3532,7 +3549,8 @@ var Node = class _Node {
|
|
|
3532
3549
|
}
|
|
3533
3550
|
}
|
|
3534
3551
|
}
|
|
3535
|
-
|
|
3552
|
+
const shifted = curNodesQueue.shift();
|
|
3553
|
+
curNodes = shifted ? tempNodes.concat(shifted) : tempNodes;
|
|
3536
3554
|
}
|
|
3537
3555
|
if (handlerSets.length > 1) {
|
|
3538
3556
|
handlerSets.sort((a, b) => {
|
|
@@ -8113,7 +8131,7 @@ function requireAdapterInterfaces () {
|
|
|
8113
8131
|
if (hasRequiredAdapterInterfaces) return adapterInterfaces;
|
|
8114
8132
|
hasRequiredAdapterInterfaces = 1;
|
|
8115
8133
|
(function (exports) {
|
|
8116
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require$$0,r=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),ho=e.z.enum(["AUTH0","EMAIL","REDIRECT"]),bo=e.z.enum(["CREATE_USER","GET_USER","UPDATE_USER","SEND_REQUEST","SEND_EMAIL"]),fo=e.z.enum(["VERIFY_EMAIL"]),w=e.z.object({require_mx_record:e.z.boolean().optional(),block_aliases:e.z.boolean().optional(),block_free_emails:e.z.boolean().optional(),block_disposable_emails:e.z.boolean().optional(),blocklist:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional()}),D=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("AUTH0"),action:e.z.literal("UPDATE_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({connection_id:e.z.string().optional(),user_id:e.z.string(),changes:e.z.record(e.z.string(),e.z.any())})}),L=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("EMAIL"),action:e.z.literal("VERIFY_EMAIL"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({email:e.z.string(),rules:w.optional()})}),j=e.z.enum(["change-email","account","custom"]),k=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("REDIRECT"),action:e.z.literal("REDIRECT_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({target:j.openapi({description:"The predefined target to redirect to, or 'custom' for a custom URL"}),custom_url:e.z.string().optional().openapi({description:"Custom URL to redirect to when target is 'custom'"})})}),v=e.z.union([D,L,k]),U=e.z.object({name:e.z.string().min(1).max(150).openapi({description:"The name of the flow"}),actions:e.z.array(v).optional().default([]).openapi({description:"The list of actions to execute in sequence"})}),So=U.extend({...r.shape,id:e.z.string().openapi({description:"Unique identifier for the flow",example:"af_12tMpdJ3iek7svMyZkSh5M"})}),Eo=e.z.object({page:e.z.string().min(0).optional().default("0").transform(o=>parseInt(o,10)).openapi({description:"The page number where 0 is the first page"}),per_page:e.z.string().min(1).optional().default("10").transform(o=>parseInt(o,10)).openapi({description:"The number of items per page"}),include_totals:e.z.string().optional().default("false").transform(o=>o==="true").openapi({description:"If the total number of items should be included in the response"}),sort:e.z.string().regex(/^.+:(-1|1)$/).optional().openapi({description:"A property that should have the format 'string:-1' or 'string:1'"}),q:e.z.string().optional().openapi({description:"A lucene query string used to filter the results"})}),Ao=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number(),total:e.z.number().optional()}),F=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),x=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:F.optional()}),P=e.z.object({formatted:e.z.string().optional(),street_address:e.z.string().optional(),locality:e.z.string().optional(),region:e.z.string().optional(),postal_code:e.z.string().optional(),country:e.z.string().optional()}).optional(),b=e.z.object({email:e.z.string().optional().transform(o=>o&&o.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional(),middle_name:e.z.string().optional(),preferred_username:e.z.string().optional(),profile:e.z.string().optional(),website:e.z.string().optional(),gender:e.z.string().optional(),birthdate:e.z.string().optional(),zoneinfo:e.z.string().optional(),address:P}),M=b.extend({email_verified:e.z.boolean().default(false),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().optional(),connection:e.z.string(),is_social:e.z.boolean().optional(),password:e.z.object({hash:e.z.string(),algorithm:e.z.string()}).optional()}),H=e.z.object({...M.omit({password:true}).shape,...r.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(x).optional()}),Io=H,Co=b.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),yo="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let To=(o=21)=>{let a="",c=crypto.getRandomValues(new Uint8Array(o|=0));for(;o--;)a+=yo[c[o]&63];return a};const G=e.z.object({client_id:e.z.string().openapi({description:"ID of this client."}),name:e.z.string().min(1).openapi({description:"Name of this client (min length: 1 character, does not allow < or >)."}),description:e.z.string().max(140).optional().openapi({description:"Free text description of this client (max length: 140 characters)."}),global:e.z.boolean().default(false).openapi({description:"Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."}),client_secret:e.z.string().default(()=>To()).optional().openapi({description:"Client secret (which you must not make public)."}),app_type:e.z.enum(["native","spa","regular_web","non_interactive","resource_server","express_configuration","rms","box","cloudbees","concur","dropbox","mscrm","echosign","egnyte","newrelic","office365","salesforce","sentry","sharepoint","slack","springcm","zendesk","zoom","sso_integration","oag"]).default("regular_web").optional().openapi({description:"The type of application this client represents"}),logo_uri:e.z.string().url().optional().openapi({description:"URL of the logo to display for this client. Recommended size is 150x150 pixels."}),is_first_party:e.z.boolean().default(false).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(true).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),auth0_conformant:e.z.boolean().default(true).openapi({description:"Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),connections:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of connection IDs enabled for this client. The order determines the display order on the login page."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(false).openapi({description:"Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false)."}),sso_disabled:e.z.boolean().default(true).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(false).openapi({description:"Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)."}),cross_origin_loc:e.z.string().url().optional().openapi({description:"URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page."}),custom_login_page_on:e.z.boolean().default(false).openapi({description:"Whether a custom login page is to be used (true) or the default provided login page (false)."}),custom_login_page:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page."}),custom_login_page_preview:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page. (Used on Previews)"}),form_template:e.z.string().optional().openapi({description:"HTML form template to be used for WS-Federation."}),addons:e.z.record(e.z.any()).default({}).optional().openapi({description:"Addons enabled for this client and their associated configurations."}),token_endpoint_auth_method:e.z.enum(["none","client_secret_post","client_secret_basic"]).default("client_secret_basic").optional().openapi({description:"Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."}),client_metadata:e.z.record(e.z.string().max(255)).default({}).optional().openapi({description:'Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/()<>@ [Tab][Space]'}),mobile:e.z.record(e.z.any()).default({}).optional().openapi({description:"Additional configuration for native mobile apps."}),initiate_login_uri:e.z.string().url().optional().openapi({description:"Initiate login uri, must be https"}),native_social_login:e.z.record(e.z.any()).default({}).optional(),refresh_token:e.z.record(e.z.any()).default({}).optional().openapi({description:"Refresh token configuration"}),default_organization:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines the default Organization ID and flows"}),organization_usage:e.z.enum(["deny","allow","require"]).default("deny").optional().openapi({description:"Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."}),organization_require_behavior:e.z.enum(["no_prompt","pre_login_prompt","post_login_prompt"]).default("no_prompt").optional().openapi({description:"Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."}),client_authentication_methods:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines client authentication methods."}),require_pushed_authorization_requests:e.z.boolean().default(false).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(false).openapi({description:"Makes the use of Proof-of-Possession mandatory for this client"}),signed_request_object:e.z.record(e.z.any()).default({}).optional().openapi({description:"JWT-secured Authorization Requests (JAR) settings."}),compliance_level:e.z.enum(["none","fapi1_adv_pkj_par","fapi1_adv_mtls_par","fapi2_sp_pkj_mtls","fapi2_sp_mtls_mtls"]).optional().openapi({description:"Defines the compliance level for this client, which may restrict it's capabilities"}),par_request_expiry:e.z.number().optional().openapi({description:"Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"}),token_quota:e.z.record(e.z.any()).default({}).optional()}),Oo=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...G.shape}),B=e.z.object({client_id:e.z.string().min(1).openapi({description:"ID of the client."}),audience:e.z.string().min(1).openapi({description:"The audience (API identifier) of this client grant."}),scope:e.z.array(e.z.string()).optional().openapi({description:"Scopes allowed for this client grant."}),organization_usage:e.z.enum(["deny","allow","require"]).optional().openapi({description:"Defines whether organizations can be used with client credentials exchanges for this grant."}),allow_any_organization:e.z.boolean().optional().openapi({description:"If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations."}),is_system:e.z.boolean().optional().openapi({description:"If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."}),subject_type:e.z.enum(["client","user"]).optional().openapi({description:"The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."}),authorization_details_types:e.z.array(e.z.string()).optional().openapi({description:"Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."})}),W=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...B.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),No=e.z.array(W),l=e.z.object({x:e.z.number(),y:e.z.number()});var f=(o=>(o.RICH_TEXT="RICH_TEXT",o.NEXT_BUTTON="NEXT_BUTTON",o.BACK_BUTTON="BACK_BUTTON",o.SUBMIT_BUTTON="SUBMIT_BUTTON",o.DIVIDER="DIVIDER",o.TEXT="TEXT",o.EMAIL="EMAIL",o.PASSWORD="PASSWORD",o.NUMBER="NUMBER",o.PHONE="PHONE",o.DATE="DATE",o.CHECKBOX="CHECKBOX",o.RADIO="RADIO",o.SELECT="SELECT",o.HIDDEN="HIDDEN",o.LEGAL="LEGAL",o))(f||{}),S=(o=>(o.BLOCK="BLOCK",o.FIELD="FIELD",o))(S||{});const g=e.z.object({id:e.z.string(),category:e.z.nativeEnum(S),type:e.z.nativeEnum(f)}),K=g.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),V=g.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),X=g.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),q=g.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),Y=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),Q=e.z.union([K,V,X,q,Y]);var J=(o=>(o.STEP="STEP",o.FLOW="FLOW",o.CONDITION="CONDITION",o.ACTION="ACTION",o))(J||{});const Z=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:l,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(Q),next_node:e.z.string()}).passthrough()}),$=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:l,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),ee=e.z.object({id:e.z.string(),type:e.z.literal("ACTION"),coordinates:l,alias:e.z.string().optional(),config:e.z.object({action_type:e.z.enum(["REDIRECT"]).openapi({description:"The type of action to perform"}),target:e.z.enum(["change-email","account","custom"]).openapi({description:"The predefined target to redirect to"}),custom_url:e.z.string().optional().openapi({description:"Custom URL when target is 'custom'"}),next_node:e.z.string().openapi({description:"The next node to navigate to after action (for non-redirect actions)"})}).passthrough()}),oe=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:l}).passthrough(),te=e.z.union([Z,$,ee,oe]),ne=e.z.object({next_node:e.z.string(),coordinates:l}).passthrough(),ie=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:l}).passthrough(),ae=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(te),start:ne,ending:ie,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),Ro=ae.omit({id:true,created_at:true,updated_at:true});var E=(o=>(o.TOKEN="token",o.ID_TOKEN="id_token",o.TOKEN_ID_TOKEN="token id_token",o.CODE="code",o))(E||{}),A=(o=>(o.QUERY="query",o.FRAGMENT="fragment",o.FORM_POST="form_post",o.WEB_MESSAGE="web_message",o.SAML_POST="saml_post",o))(A||{}),I=(o=>(o.S256="S256",o.Plain="plain",o))(I||{});const se=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(E).optional(),response_mode:e.z.nativeEnum(A).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(I).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),max_age:e.z.number().optional(),acr_values:e.z.string().optional(),vendor_id:e.z.string().optional()}),wo=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),powered_by_logo_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),re=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),le=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:re,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Do=e.z.object({...le.shape,created_at:e.z.string()}),ce=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional(),icon_url:e.z.string().optional(),passwordPolicy:e.z.enum(["none","low","fair","good","excellent"]).optional(),password_complexity_options:e.z.object({min_length:e.z.number().optional()}).optional(),password_history:e.z.object({enable:e.z.boolean().optional(),size:e.z.number().optional()}).optional(),password_no_personal_info:e.z.object({enable:e.z.boolean().optional()}).optional(),password_dictionary:e.z.object({enable:e.z.boolean().optional(),dictionary:e.z.array(e.z.string()).optional()}).optional()}),pe=e.z.object({id:e.z.string().optional(),name:e.z.string(),display_name:e.z.string().optional(),strategy:e.z.string(),options:ce.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional(),is_domain_connection:e.z.boolean().optional(),show_as_button:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional(),is_system:e.z.boolean().optional()}),Lo=e.z.object({id:e.z.string(),created_at:e.z.string().transform(o=>o===null?"":o),updated_at:e.z.string().transform(o=>o===null?"":o)}).extend(pe.shape),_e=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),de=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),ze=e.z.object({..._e.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(de)}).optional(),tls_policy:e.z.string().optional()}),jo=ze.extend({tenant_id:e.z.string()}),C=e.z.object({id:e.z.string(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(true)}),i=C.extend({category:e.z.literal("BLOCK").optional()}),ko=i.extend({type:e.z.literal("DIVIDER"),config:e.z.object({}).optional()}),vo=i.extend({type:e.z.literal("HTML"),config:e.z.object({content:e.z.string().optional()}).optional()}),Uo=i.extend({type:e.z.literal("IMAGE"),config:e.z.object({src:e.z.string().optional(),alt:e.z.string().optional(),width:e.z.number().optional(),height:e.z.number().optional()}).optional()}),Fo=i.extend({type:e.z.literal("JUMP_BUTTON"),config:e.z.object({text:e.z.string().optional(),target_step:e.z.string().optional()})}),xo=i.extend({type:e.z.literal("RESEND_BUTTON"),config:e.z.object({text:e.z.string().optional(),resend_action:e.z.string().optional()})}),Po=i.extend({type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Mo=i.extend({type:e.z.literal("PREVIOUS_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Ho=i.extend({type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string().optional()}).optional()}),y=C.extend({category:e.z.literal("WIDGET").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),Go=y.extend({type:e.z.literal("AUTH0_VERIFIABLE_CREDENTIALS"),config:e.z.object({credential_type:e.z.string().optional()})}),Bo=y.extend({type:e.z.literal("GMAPS_ADDRESS"),config:e.z.object({api_key:e.z.string().optional()})}),Wo=y.extend({type:e.z.literal("RECAPTCHA"),config:e.z.object({site_key:e.z.string().optional()})}),t=C.extend({category:e.z.literal("FIELD").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),Ko=t.extend({type:e.z.literal("BOOLEAN"),config:e.z.object({default_value:e.z.boolean().optional()}).optional()}),Vo=t.extend({type:e.z.literal("CARDS"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string(),description:e.z.string().optional(),image:e.z.string().optional()})).optional(),multi_select:e.z.boolean().optional()}).optional()}),Xo=t.extend({type:e.z.literal("CHOICE"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),display:e.z.enum(["radio","checkbox"]).optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),qo=t.extend({type:e.z.literal("CUSTOM"),config:e.z.object({component:e.z.string().optional(),props:e.z.record(e.z.any()).optional(),schema:e.z.record(e.z.any()).optional(),code:e.z.string().optional()})}),Yo=t.extend({type:e.z.literal("DATE"),config:e.z.object({format:e.z.string().optional(),min:e.z.string().optional(),max:e.z.string().optional()}).optional()}),Qo=t.extend({type:e.z.literal("DROPDOWN"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),placeholder:e.z.string().optional(),searchable:e.z.boolean().optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),Jo=t.extend({type:e.z.literal("EMAIL"),config:e.z.object({placeholder:e.z.string().optional()}).optional()}),Zo=t.extend({type:e.z.literal("FILE"),config:e.z.object({accept:e.z.string().optional(),max_size:e.z.number().optional(),multiple:e.z.boolean().optional()}).optional()}),$o=t.extend({type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}).optional()}),et=t.extend({type:e.z.literal("NUMBER"),config:e.z.object({placeholder:e.z.string().optional(),min:e.z.number().optional(),max:e.z.number().optional(),step:e.z.number().optional()}).optional()}),ot=t.extend({type:e.z.literal("PASSWORD"),config:e.z.object({placeholder:e.z.string().optional(),min_length:e.z.number().optional(),show_toggle:e.z.boolean().optional(),forgot_password_link:e.z.string().optional()}).optional()}),tt=t.extend({type:e.z.literal("PAYMENT"),config:e.z.object({provider:e.z.string().optional(),currency:e.z.string().optional()}).optional()}),nt=t.extend({type:e.z.literal("SOCIAL"),config:e.z.object({providers:e.z.array(e.z.string()).optional(),provider_details:e.z.array(e.z.object({name:e.z.string(),strategy:e.z.string().optional(),display_name:e.z.string().optional(),icon_url:e.z.string().optional()})).optional()}).optional()}),it=t.extend({type:e.z.literal("TEL"),config:e.z.object({placeholder:e.z.string().optional(),default_country:e.z.string().optional()}).optional()}),at=t.extend({type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional(),max_length:e.z.number().optional()}).optional()}),st=t.extend({type:e.z.literal("URL"),config:e.z.object({placeholder:e.z.string().optional()}).optional()}),ge=e.z.discriminatedUnion("type",[ko,vo,Uo,Fo,xo,Po,Mo,Ho]),me=e.z.discriminatedUnion("type",[Go,Bo,Wo]),ue=e.z.discriminatedUnion("type",[Ko,Vo,Xo,qo,Yo,Qo,Jo,Zo,$o,et,ot,tt,nt,it,at,st]),T=e.z.union([ge,me,ue]),rt=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(false),order:e.z.number().optional(),visible:e.z.boolean().optional().default(true),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),_=e.z.object({x:e.z.number(),y:e.z.number()}),lt=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:_,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string().optional()})}),ct=e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:_,alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.string()})}),pt=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:_,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(T),next_node:e.z.string().optional()})}),he=e.z.discriminatedUnion("type",[lt,ct,pt]),be=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(he).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:_.optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:_.optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches Auth0 Forms structure)"}),_t=e.z.object({...r.shape,...be.shape,id:e.z.string()}),fe=e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])}),Se=e.z.object({id:e.z.string().optional(),text:e.z.string(),href:e.z.string(),linkText:e.z.string().optional()}),dt=e.z.object({name:e.z.string().optional(),action:e.z.string(),method:e.z.enum(["POST","GET"]),title:e.z.string().optional(),description:e.z.string().optional(),components:e.z.array(T),messages:e.z.array(fe).optional(),links:e.z.array(Se).optional(),footer:e.z.string().optional()});function zt(o){return o.category==="BLOCK"}function gt(o){return o.category==="WIDGET"}function mt(o){return o.category==="FIELD"}const Ee=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),Ae=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),m={enabled:e.z.boolean().default(false),synchronous:e.z.boolean().default(false),priority:e.z.number().optional(),hook_id:e.z.string().optional()},ut=e.z.object({...m,trigger_id:Ee,url:e.z.string()}),ht=e.z.object({...m,trigger_id:Ae,form_id:e.z.string()}),bt=e.z.union([ut,ht]),ft=e.z.object({...m,trigger_id:Ee,...r.shape,hook_id:e.z.string(),url:e.z.string()}),St=e.z.object({...m,trigger_id:Ae,...r.shape,hook_id:e.z.string(),form_id:e.z.string()}),Et=e.z.union([ft,St]),Ie=e.z.object({name:e.z.string().optional()}),Ce=e.z.object({email:e.z.string().optional()}),ye=e.z.object({organization_id:e.z.string().max(50),inviter:Ie,invitee:Ce,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(true).optional()}),At=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(ye.shape),Te=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),It=e.z.object({keys:e.z.array(Te)}),Ct=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())});var O=(o=>(o.PENDING="pending",o.AUTHENTICATED="authenticated",o.AWAITING_EMAIL_VERIFICATION="awaiting_email_verification",o.AWAITING_HOOK="awaiting_hook",o.AWAITING_CONTINUATION="awaiting_continuation",o.COMPLETED="completed",o.FAILED="failed",o.EXPIRED="expired",o))(O||{});const Oe=e.z.nativeEnum(O),Ne=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:se,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),state:Oe.optional().default("pending"),state_data:e.z.string().optional(),failure_reason:e.z.string().optional(),user_id:e.z.string().optional()}).openapi({description:"This represents a login sesion"}),yt=e.z.object({...Ne.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),Re={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_IMPERSONATION:"fimp",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESS_IMPERSONATION:"simp",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Tt=e.z.string().refine(o=>Object.values(Re).includes(o),{message:"Invalid log type"}),we=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),De=e.z.object({country_code:e.z.string().length(2),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),Le=e.z.object({type:Tt,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:we.optional(),log_id:e.z.string().optional(),location_info:De.optional()}),Ot=e.z.object({...Le.shape,log_id:e.z.string()}),je=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(true)}),Nt=je.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),ke=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),ve=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ke.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),Rt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ve.shape}),wt=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"}),connection:e.z.string().optional().openapi({description:"The connection identifier associated with the key"}),type:e.z.enum(["jwt_signing","saml_encryption"]).openapi({description:"The type of the signing key"})}),Ue=e.z.object({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),inherit_global_permissions_in_organizations:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional(),mfa:e.z.object({factors:e.z.object({sms:e.z.boolean().default(false),otp:e.z.boolean().default(false),email:e.z.boolean().default(false),push_notification:e.z.boolean().default(false),webauthn_roaming:e.z.boolean().default(false),webauthn_platform:e.z.boolean().default(false),recovery_code:e.z.boolean().default(false),duo:e.z.boolean().default(false)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),Dt=e.z.object({created_at:e.z.string().nullable().transform(o=>o??""),updated_at:e.z.string().nullable().transform(o=>o??""),...Ue.shape,id:e.z.string()});var Fe=(o=>(o.RefreshToken="refresh_token",o.AuthorizationCode="authorization_code",o.ClientCredential="client_credentials",o.Passwordless="passwordless",o.Password="password",o.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",o))(Fe||{});const Lt=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const xe=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),Pe=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),s=e.z.object({bold:e.z.boolean(),size:e.z.number()}),Me=e.z.object({body_text:s,buttons_text:s,font_url:e.z.string(),input_labels:s,links:s,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:s,title:s}),He=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),Ge=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),Be=e.z.object({borders:xe,colors:Pe,displayName:e.z.string(),fonts:Me,page_background:He,widget:Ge}),jt=Be.extend({themeId:e.z.string()}),kt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(true),password_first:e.z.boolean().default(false),webauthn_platform_first_factor:e.z.boolean()}),vt=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(true),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),We=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ke,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),Ut=e.z.object({created_at:e.z.string(),...We.shape}),Ft=e.z.object({to:e.z.string(),message:e.z.string()}),xt=e.z.object({name:e.z.string(),options:e.z.object({})}),Ke=e.z.object({value:e.z.string(),description:e.z.string().optional()}),Ve=e.z.object({token_dialect:e.z.enum(["access_token","access_token_authz"]).optional(),enforce_policies:e.z.boolean().optional(),allow_skipping_userinfo:e.z.boolean().optional(),skip_userinfo:e.z.boolean().optional(),persist_client_authorization:e.z.boolean().optional(),enable_introspection_endpoint:e.z.boolean().optional(),mtls:e.z.object({bound_access_tokens:e.z.boolean().optional()}).optional()}),Xe=e.z.object({id:e.z.string().optional(),name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Ke).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().optional(),token_lifetime_for_web:e.z.number().optional(),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:Ve.optional(),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional()}),qe=e.z.object({...Xe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Pt=e.z.array(qe),Ye=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Qe=e.z.object({...Ye.shape,created_at:e.z.string()}),Mt=e.z.array(Qe),Je=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string(),organization_id:e.z.string().optional()}),Ze=e.z.object({...Je.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Ht=e.z.array(Ze),$e=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional(),organization_id:e.z.string().optional()}),Gt=e.z.array($e),eo=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),oo=e.z.object({...eo.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Bt=e.z.array(oo),to=e.z.object({id:e.z.string().optional().openapi({description:"The unique identifier of the role. If not provided, one will be generated."}),name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"}),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional().openapi({description:"Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."})}),no=to.extend({id:e.z.string().openapi({description:"The unique identifier of the role"}),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Wt=e.z.array(no),io=e.z.object({logo_url:e.z.string().optional().openapi({description:"URL of the organization's logo"}),colors:e.z.object({primary:e.z.string().optional().openapi({description:"Primary color in hex format (e.g., #FF0000)"}),page_background:e.z.string().optional().openapi({description:"Page background color in hex format (e.g., #FFFFFF)"})}).optional()}).optional(),ao=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(false).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(true).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(true).openapi({description:"Whether signup is enabled for this connection"})}),so=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(false).openapi({description:"Whether to enforce token quota limits"}),per_day:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per day (0 = unlimited)"}),per_hour:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per hour (0 = unlimited)"})}).optional()}).optional(),ro=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).regex(/^[a-z0-9_-]+$/,{message:"Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"}).openapi({description:"The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores."}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:io,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(ao).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:so}),Kt=e.z.object({...ro.shape,...r.shape,id:e.z.string(),name:e.z.string().min(1).openapi({description:"The name of the organization"})}),lo=e.z.object({user_id:e.z.string().openapi({description:"ID of the user"}),organization_id:e.z.string().openapi({description:"ID of the organization"})}),Vt=e.z.object({...lo.shape,...r.shape,id:e.z.string()}),Xt=e.z.object({idle_session_lifetime:e.z.number().optional(),session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),mfa:e.z.object({factors:e.z.object({sms:e.z.boolean().default(false),otp:e.z.boolean().default(false),email:e.z.boolean().default(false),push_notification:e.z.boolean().default(false),webauthn_roaming:e.z.boolean().default(false),webauthn_platform:e.z.boolean().default(false),recovery_code:e.z.boolean().default(false),duo:e.z.boolean().default(false)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),qt=e.z.object({date:e.z.string().openapi({description:"Date these events occurred in ISO 8601 format",example:"2025-12-19"}),logins:e.z.number().openapi({description:"Number of logins on this date",example:150}),signups:e.z.number().openapi({description:"Number of signups on this date",example:25}),leaked_passwords:e.z.number().openapi({description:"Number of breached-password detections on this date (subscription required)",example:0}),updated_at:e.z.string().openapi({description:"Date and time this stats entry was last updated in ISO 8601 format",example:"2025-12-19T10:30:00.000Z"}),created_at:e.z.string().openapi({description:"Approximate date and time the first event occurred in ISO 8601 format",example:"2025-12-19T00:00:00.000Z"})}),Yt=e.z.number().openapi({description:"Number of active users in the last 30 days",example:1234}),co=e.z.enum(["login","login-id","login-password","signup","signup-id","signup-password","reset-password","consent","mfa","mfa-push","mfa-otp","mfa-voice","mfa-phone","mfa-webauthn","mfa-sms","mfa-email","mfa-recovery-code","status","device-flow","email-verification","email-otp-challenge","organizations","invitation","common","passkeys","captcha","custom-form"]),po=e.z.record(e.z.string(),e.z.string()).openapi({type:"object",additionalProperties:{type:"string"}}),Qt=e.z.object({prompt:co,language:e.z.string(),custom_text:po});function Jt(o){const[a,c]=o.split("|");if(!a||!c)throw new Error(`Invalid user_id: ${o}`);return {connection:a,id:c}}function Zt(o){const{primary:a,secondaries:c,syncMethods:_o=["create","update","remove","delete","set"]}=o,zo={get(d,n){if(typeof n=="symbol")return d[n];const z=d[n];return typeof z!="function"?z:_o.includes(n)?async(...u)=>{const go=await z.apply(d,u),h=[];for(const p of c){const N=p.adapter[n];if(typeof N!="function")continue;const mo=(async()=>{try{await N.apply(p.adapter,u);}catch(R){try{p.onError?p.onError(R,n,u):console.error(`Passthrough adapter: secondary write failed for ${n}:`,R);}catch(uo){console.error(`Passthrough adapter: onError handler threw for ${n}:`,uo);}}})();p.blocking&&h.push(mo);}return h.length>0&&await Promise.all(h),go}:z.bind(d)}};return new Proxy(a,zo)}function $t(o){return o}exports.Auth0ActionEnum=bo;exports.Auth0Client=we;exports.AuthorizationResponseMode=A;exports.AuthorizationResponseType=E;exports.CodeChallengeMethod=I;exports.ComponentCategory=S;exports.ComponentType=f;exports.EmailActionEnum=fo;exports.FlowActionTypeEnum=ho;exports.GrantType=Fe;exports.LocationInfo=De;exports.LogTypes=Re;exports.LoginSessionState=O;exports.NodeType=J;exports.RedirectTargetEnum=j;exports.actionNodeSchema=ee;exports.activeUsersResponseSchema=Yt;exports.addressSchema=P;exports.auth0FlowInsertSchema=Ro;exports.auth0FlowSchema=ae;exports.auth0QuerySchema=Eo;exports.auth0UpdateUserActionSchema=D;exports.auth0UserResponseSchema=Io;exports.authParamsSchema=se;exports.baseUserSchema=b;exports.blockComponentSchema=ge;exports.bordersSchema=xe;exports.brandingSchema=wo;exports.buttonComponentSchema=V;exports.clientGrantInsertSchema=B;exports.clientGrantListSchema=No;exports.clientGrantSchema=W;exports.clientInsertSchema=G;exports.clientSchema=Oo;exports.codeInsertSchema=le;exports.codeSchema=Do;exports.codeTypeSchema=re;exports.colorsSchema=Pe;exports.componentMessageSchema=fe;exports.componentSchema=Q;exports.connectionInsertSchema=pe;exports.connectionOptionsSchema=ce;exports.connectionSchema=Lo;exports.coordinatesSchema=l;exports.createPassthroughAdapter=Zt;exports.createWriteOnlyAdapter=$t;exports.customDomainInsertSchema=_e;exports.customDomainSchema=ze;exports.customDomainWithTenantIdSchema=jo;exports.customTextEntrySchema=Qt;exports.customTextSchema=po;exports.dailyStatsSchema=qt;exports.emailProviderSchema=vt;exports.emailVerificationRulesSchema=w;exports.emailVerifyActionSchema=L;exports.endingSchema=ie;exports.fieldComponentSchema=ue;exports.flowActionStepSchema=v;exports.flowInsertSchema=U;exports.flowSchema=So;exports.flowsFieldComponentSchema=q;exports.flowsFlowNodeSchema=$;exports.flowsStepNodeSchema=Z;exports.fontDetailsSchema=s;exports.fontsSchema=Me;exports.formControlSchema=rt;exports.formInsertSchema=be;exports.formNodeComponentDefinition=T;exports.formNodeSchema=he;exports.formSchema=_t;exports.genericComponentSchema=Y;exports.genericNodeSchema=oe;exports.hookInsertSchema=bt;exports.hookSchema=Et;exports.identitySchema=x;exports.inviteInsertSchema=ye;exports.inviteSchema=At;exports.inviteeSchema=Ce;exports.inviterSchema=Ie;exports.isBlockComponent=zt;exports.isFieldComponent=mt;exports.isWidgetComponent=gt;exports.jwksKeySchema=It;exports.jwksSchema=Te;exports.legalComponentSchema=X;exports.logInsertSchema=Le;exports.logSchema=Ot;exports.loginSessionInsertSchema=Ne;exports.loginSessionSchema=yt;exports.loginSessionStateSchema=Oe;exports.nodeSchema=te;exports.openIDConfigurationSchema=Ct;exports.organizationBrandingSchema=io;exports.organizationEnabledConnectionSchema=ao;exports.organizationInsertSchema=ro;exports.organizationSchema=Kt;exports.organizationTokenQuotaSchema=so;exports.pageBackgroundSchema=He;exports.parseUserId=Jt;exports.passwordInsertSchema=je;exports.passwordSchema=Nt;exports.profileDataSchema=F;exports.promptScreenSchema=co;exports.promptSettingSchema=kt;exports.redirectActionSchema=k;exports.refreshTokenInsertSchema=We;exports.refreshTokenSchema=Ut;exports.resourceServerInsertSchema=Xe;exports.resourceServerListSchema=Pt;exports.resourceServerOptionsSchema=Ve;exports.resourceServerSchema=qe;exports.resourceServerScopeSchema=Ke;exports.richTextComponentSchema=K;exports.roleInsertSchema=to;exports.roleListSchema=Wt;exports.rolePermissionInsertSchema=Ye;exports.rolePermissionListSchema=Mt;exports.rolePermissionSchema=Qe;exports.roleSchema=no;exports.screenLinkSchema=Se;exports.sessionInsertSchema=ve;exports.sessionSchema=Rt;exports.signingKeySchema=wt;exports.smsProviderSchema=xt;exports.smsSendParamsSchema=Ft;exports.startSchema=ne;exports.tenantInsertSchema=Ue;exports.tenantSchema=Dt;exports.tenantSettingsSchema=Xt;exports.themeInsertSchema=Be;exports.themeSchema=jt;exports.tokenResponseSchema=Lt;exports.totalsSchema=Ao;exports.uiScreenSchema=dt;exports.userInsertSchema=M;exports.userOrganizationInsertSchema=lo;exports.userOrganizationSchema=Vt;exports.userPermissionInsertSchema=Je;exports.userPermissionListSchema=Ht;exports.userPermissionSchema=Ze;exports.userPermissionWithDetailsListSchema=Gt;exports.userPermissionWithDetailsSchema=$e;exports.userResponseSchema=Co;exports.userRoleInsertSchema=eo;exports.userRoleListSchema=Bt;exports.userRoleSchema=oo;exports.userSchema=H;exports.verificationMethodsSchema=de;exports.widgetComponentSchema=me;exports.widgetSchema=Ge;
|
|
8134
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require$$0,_=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),Eo=e.z.enum(["AUTH0","EMAIL","REDIRECT"]),Ao=e.z.enum(["CREATE_USER","GET_USER","UPDATE_USER","SEND_REQUEST","SEND_EMAIL"]),Io=e.z.enum(["VERIFY_EMAIL"]),k=e.z.object({require_mx_record:e.z.boolean().optional(),block_aliases:e.z.boolean().optional(),block_free_emails:e.z.boolean().optional(),block_disposable_emails:e.z.boolean().optional(),blocklist:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional()}),U=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("AUTH0"),action:e.z.literal("UPDATE_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({connection_id:e.z.string().optional(),user_id:e.z.string(),changes:e.z.record(e.z.string(),e.z.any())})}),F=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("EMAIL"),action:e.z.literal("VERIFY_EMAIL"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({email:e.z.string(),rules:k.optional()})}),x=e.z.enum(["change-email","account","custom"]),P=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("REDIRECT"),action:e.z.literal("REDIRECT_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({target:x.openapi({description:"The predefined target to redirect to, or 'custom' for a custom URL"}),custom_url:e.z.string().optional().openapi({description:"Custom URL to redirect to when target is 'custom'"})})}),M=e.z.union([U,F,P]),H=e.z.object({name:e.z.string().min(1).max(150).openapi({description:"The name of the flow"}),actions:e.z.array(M).optional().default([]).openapi({description:"The list of actions to execute in sequence"})}),Co=H.extend({..._.shape,id:e.z.string().openapi({description:"Unique identifier for the flow",example:"af_12tMpdJ3iek7svMyZkSh5M"})}),yo=e.z.object({page:e.z.string().min(0).optional().default("0").transform(o=>parseInt(o,10)).openapi({description:"The page number where 0 is the first page"}),per_page:e.z.string().min(1).optional().default("10").transform(o=>parseInt(o,10)).openapi({description:"The number of items per page"}),include_totals:e.z.string().optional().default("false").transform(o=>o==="true").openapi({description:"If the total number of items should be included in the response"}),sort:e.z.string().regex(/^.+:(-1|1)$/).optional().openapi({description:"A property that should have the format 'string:-1' or 'string:1'"}),q:e.z.string().optional().openapi({description:"A lucene query string used to filter the results"})}),To=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number(),total:e.z.number().optional()}),G=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),B=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:G.optional()}),W=e.z.object({formatted:e.z.string().optional(),street_address:e.z.string().optional(),locality:e.z.string().optional(),region:e.z.string().optional(),postal_code:e.z.string().optional(),country:e.z.string().optional()}).optional(),C=e.z.object({email:e.z.string().optional().transform(o=>o&&o.toLowerCase()),username:e.z.string().refine(o=>!o.includes("@"),{message:'Usernames must not contain "@". Use the email field for email addresses.'}).optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional(),middle_name:e.z.string().optional(),preferred_username:e.z.string().optional(),profile:e.z.string().optional(),website:e.z.string().optional(),gender:e.z.string().optional(),birthdate:e.z.string().optional(),zoneinfo:e.z.string().optional(),address:W}),K=C.extend({email_verified:e.z.boolean().default(false),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().optional(),connection:e.z.string(),is_social:e.z.boolean().optional(),password:e.z.object({hash:e.z.string(),algorithm:e.z.string()}).optional()}),X=e.z.object({...K.omit({password:true}).shape,..._.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(B).optional()}),Oo=X,No=C.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),Ro="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let wo=(o=21)=>{let n="",i=crypto.getRandomValues(new Uint8Array(o|=0));for(;o--;)n+=Ro[i[o]&63];return n};const V=e.z.object({client_id:e.z.string().openapi({description:"ID of this client."}),name:e.z.string().min(1).openapi({description:"Name of this client (min length: 1 character, does not allow < or >)."}),description:e.z.string().max(140).optional().openapi({description:"Free text description of this client (max length: 140 characters)."}),global:e.z.boolean().default(false).openapi({description:"Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."}),client_secret:e.z.string().default(()=>wo()).optional().openapi({description:"Client secret (which you must not make public)."}),app_type:e.z.enum(["native","spa","regular_web","non_interactive","resource_server","express_configuration","rms","box","cloudbees","concur","dropbox","mscrm","echosign","egnyte","newrelic","office365","salesforce","sentry","sharepoint","slack","springcm","zendesk","zoom","sso_integration","oag"]).default("regular_web").optional().openapi({description:"The type of application this client represents"}),logo_uri:e.z.string().url().optional().openapi({description:"URL of the logo to display for this client. Recommended size is 150x150 pixels."}),is_first_party:e.z.boolean().default(false).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(true).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),auth0_conformant:e.z.boolean().default(true).openapi({description:"Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),connections:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of connection IDs enabled for this client. The order determines the display order on the login page."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(false).openapi({description:"Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false)."}),sso_disabled:e.z.boolean().default(true).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(false).openapi({description:"Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)."}),cross_origin_loc:e.z.string().url().optional().openapi({description:"URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page."}),custom_login_page_on:e.z.boolean().default(false).openapi({description:"Whether a custom login page is to be used (true) or the default provided login page (false)."}),custom_login_page:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page."}),custom_login_page_preview:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page. (Used on Previews)"}),form_template:e.z.string().optional().openapi({description:"HTML form template to be used for WS-Federation."}),addons:e.z.record(e.z.any()).default({}).optional().openapi({description:"Addons enabled for this client and their associated configurations."}),token_endpoint_auth_method:e.z.enum(["none","client_secret_post","client_secret_basic"]).default("client_secret_basic").optional().openapi({description:"Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."}),client_metadata:e.z.record(e.z.string().max(255)).default({}).optional().openapi({description:'Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/()<>@ [Tab][Space]'}),mobile:e.z.record(e.z.any()).default({}).optional().openapi({description:"Additional configuration for native mobile apps."}),initiate_login_uri:e.z.string().url().optional().openapi({description:"Initiate login uri, must be https"}),native_social_login:e.z.record(e.z.any()).default({}).optional(),refresh_token:e.z.record(e.z.any()).default({}).optional().openapi({description:"Refresh token configuration"}),default_organization:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines the default Organization ID and flows"}),organization_usage:e.z.enum(["deny","allow","require"]).default("deny").optional().openapi({description:"Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."}),organization_require_behavior:e.z.enum(["no_prompt","pre_login_prompt","post_login_prompt"]).default("no_prompt").optional().openapi({description:"Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."}),client_authentication_methods:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines client authentication methods."}),require_pushed_authorization_requests:e.z.boolean().default(false).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(false).openapi({description:"Makes the use of Proof-of-Possession mandatory for this client"}),signed_request_object:e.z.record(e.z.any()).default({}).optional().openapi({description:"JWT-secured Authorization Requests (JAR) settings."}),compliance_level:e.z.enum(["none","fapi1_adv_pkj_par","fapi1_adv_mtls_par","fapi2_sp_pkj_mtls","fapi2_sp_mtls_mtls"]).optional().openapi({description:"Defines the compliance level for this client, which may restrict it's capabilities"}),par_request_expiry:e.z.number().optional().openapi({description:"Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"}),token_quota:e.z.record(e.z.any()).default({}).optional()}),Lo=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...V.shape}),q=e.z.object({client_id:e.z.string().min(1).openapi({description:"ID of the client."}),audience:e.z.string().min(1).openapi({description:"The audience (API identifier) of this client grant."}),scope:e.z.array(e.z.string()).optional().openapi({description:"Scopes allowed for this client grant."}),organization_usage:e.z.enum(["deny","allow","require"]).optional().openapi({description:"Defines whether organizations can be used with client credentials exchanges for this grant."}),allow_any_organization:e.z.boolean().optional().openapi({description:"If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations."}),is_system:e.z.boolean().optional().openapi({description:"If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."}),subject_type:e.z.enum(["client","user"]).optional().openapi({description:"The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."}),authorization_details_types:e.z.array(e.z.string()).optional().openapi({description:"Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."})}),Y=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...q.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Do=e.z.array(Y),d=e.z.object({x:e.z.number(),y:e.z.number()});var y=(o=>(o.RICH_TEXT="RICH_TEXT",o.NEXT_BUTTON="NEXT_BUTTON",o.BACK_BUTTON="BACK_BUTTON",o.SUBMIT_BUTTON="SUBMIT_BUTTON",o.DIVIDER="DIVIDER",o.TEXT="TEXT",o.EMAIL="EMAIL",o.PASSWORD="PASSWORD",o.NUMBER="NUMBER",o.PHONE="PHONE",o.DATE="DATE",o.CHECKBOX="CHECKBOX",o.RADIO="RADIO",o.SELECT="SELECT",o.HIDDEN="HIDDEN",o.LEGAL="LEGAL",o))(y||{}),T=(o=>(o.BLOCK="BLOCK",o.FIELD="FIELD",o))(T||{});const A=e.z.object({id:e.z.string(),category:e.z.nativeEnum(T),type:e.z.nativeEnum(y)}),Q=A.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),J=A.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),Z=A.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),$=A.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),ee=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),oe=e.z.union([Q,J,Z,$,ee]);var te=(o=>(o.STEP="STEP",o.FLOW="FLOW",o.CONDITION="CONDITION",o.ACTION="ACTION",o))(te||{});const ne=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:d,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(oe),next_node:e.z.string()}).passthrough()}),ie=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:d,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),ae=e.z.object({id:e.z.string(),type:e.z.literal("ACTION"),coordinates:d,alias:e.z.string().optional(),config:e.z.object({action_type:e.z.enum(["REDIRECT"]).openapi({description:"The type of action to perform"}),target:e.z.enum(["change-email","account","custom"]).openapi({description:"The predefined target to redirect to"}),custom_url:e.z.string().optional().openapi({description:"Custom URL when target is 'custom'"}),next_node:e.z.string().openapi({description:"The next node to navigate to after action (for non-redirect actions)"})}).passthrough()}),se=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:d}).passthrough(),re=e.z.union([ne,ie,ae,se]),le=e.z.object({next_node:e.z.string(),coordinates:d}).passthrough(),ce=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:d}).passthrough(),pe=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(re),start:le,ending:ce,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),jo=pe.omit({id:true,created_at:true,updated_at:true});var O=(o=>(o.TOKEN="token",o.ID_TOKEN="id_token",o.TOKEN_ID_TOKEN="token id_token",o.CODE="code",o))(O||{}),N=(o=>(o.QUERY="query",o.FRAGMENT="fragment",o.FORM_POST="form_post",o.WEB_MESSAGE="web_message",o.SAML_POST="saml_post",o))(N||{}),R=(o=>(o.S256="S256",o.Plain="plain",o))(R||{});const _e=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(O).optional(),response_mode:e.z.nativeEnum(N).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(R).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),max_age:e.z.number().optional(),acr_values:e.z.string().optional(),vendor_id:e.z.string().optional()}),vo=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),powered_by_logo_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),de=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),ze=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:de,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),ko=e.z.object({...ze.shape,created_at:e.z.string()}),ge=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional(),icon_url:e.z.string().optional(),passwordPolicy:e.z.enum(["none","low","fair","good","excellent"]).optional(),password_complexity_options:e.z.object({min_length:e.z.number().optional()}).optional(),password_history:e.z.object({enable:e.z.boolean().optional(),size:e.z.number().optional()}).optional(),password_no_personal_info:e.z.object({enable:e.z.boolean().optional()}).optional(),password_dictionary:e.z.object({enable:e.z.boolean().optional(),dictionary:e.z.array(e.z.string()).optional()}).optional(),disable_signup:e.z.boolean().optional(),brute_force_protection:e.z.boolean().optional(),import_mode:e.z.boolean().optional(),attributes:e.z.object({email:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional(),verification:e.z.object({active:e.z.boolean().optional()}).optional()}).optional(),validation:e.z.object({allowed:e.z.boolean().optional()}).optional()}).optional(),username:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional()}).optional(),validation:e.z.object({max_length:e.z.number().optional(),min_length:e.z.number().optional(),allowed_types:e.z.object({email:e.z.boolean().optional(),phone_number:e.z.boolean().optional()}).optional()}).optional()}).optional()}).optional(),requires_username:e.z.boolean().optional(),validation:e.z.object({username:e.z.object({min:e.z.number().optional(),max:e.z.number().optional()}).optional()}).optional()}),me=e.z.object({id:e.z.string().optional(),name:e.z.string(),display_name:e.z.string().optional(),strategy:e.z.string(),options:ge.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional(),is_domain_connection:e.z.boolean().optional(),show_as_button:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional(),is_system:e.z.boolean().optional()}),Uo=e.z.object({id:e.z.string(),created_at:e.z.string().transform(o=>o===null?"":o),updated_at:e.z.string().transform(o=>o===null?"":o)}).extend(me.shape),ue=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),he=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),be=e.z.object({...ue.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(he)}).optional(),tls_policy:e.z.string().optional()}),Fo=be.extend({tenant_id:e.z.string()}),w=e.z.object({id:e.z.string(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(true)}),r=w.extend({category:e.z.literal("BLOCK").optional()}),xo=r.extend({type:e.z.literal("DIVIDER"),config:e.z.object({}).optional()}),Po=r.extend({type:e.z.literal("HTML"),config:e.z.object({content:e.z.string().optional()}).optional()}),Mo=r.extend({type:e.z.literal("IMAGE"),config:e.z.object({src:e.z.string().optional(),alt:e.z.string().optional(),width:e.z.number().optional(),height:e.z.number().optional()}).optional()}),Ho=r.extend({type:e.z.literal("JUMP_BUTTON"),config:e.z.object({text:e.z.string().optional(),target_step:e.z.string().optional()})}),Go=r.extend({type:e.z.literal("RESEND_BUTTON"),config:e.z.object({text:e.z.string().optional(),resend_action:e.z.string().optional()})}),Bo=r.extend({type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Wo=r.extend({type:e.z.literal("PREVIOUS_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Ko=r.extend({type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string().optional()}).optional()}),L=w.extend({category:e.z.literal("WIDGET").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),Xo=L.extend({type:e.z.literal("AUTH0_VERIFIABLE_CREDENTIALS"),config:e.z.object({credential_type:e.z.string().optional()})}),Vo=L.extend({type:e.z.literal("GMAPS_ADDRESS"),config:e.z.object({api_key:e.z.string().optional()})}),qo=L.extend({type:e.z.literal("RECAPTCHA"),config:e.z.object({site_key:e.z.string().optional()})}),t=w.extend({category:e.z.literal("FIELD").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),Yo=t.extend({type:e.z.literal("BOOLEAN"),config:e.z.object({default_value:e.z.boolean().optional()}).optional()}),Qo=t.extend({type:e.z.literal("CARDS"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string(),description:e.z.string().optional(),image:e.z.string().optional()})).optional(),multi_select:e.z.boolean().optional()}).optional()}),Jo=t.extend({type:e.z.literal("CHOICE"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),display:e.z.enum(["radio","checkbox"]).optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),Zo=t.extend({type:e.z.literal("CUSTOM"),config:e.z.object({component:e.z.string().optional(),props:e.z.record(e.z.any()).optional(),schema:e.z.record(e.z.any()).optional(),code:e.z.string().optional()})}),$o=t.extend({type:e.z.literal("DATE"),config:e.z.object({format:e.z.string().optional(),min:e.z.string().optional(),max:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),et=t.extend({type:e.z.literal("DROPDOWN"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),placeholder:e.z.string().optional(),searchable:e.z.boolean().optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),ot=t.extend({type:e.z.literal("EMAIL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),tt=t.extend({type:e.z.literal("FILE"),config:e.z.object({accept:e.z.string().optional(),max_size:e.z.number().optional(),multiple:e.z.boolean().optional()}).optional()}),nt=t.extend({type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}).optional()}),it=t.extend({type:e.z.literal("NUMBER"),config:e.z.object({placeholder:e.z.string().optional(),min:e.z.number().optional(),max:e.z.number().optional(),step:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),at=t.extend({type:e.z.literal("PASSWORD"),config:e.z.object({placeholder:e.z.string().optional(),min_length:e.z.number().optional(),show_toggle:e.z.boolean().optional(),forgot_password_link:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),st=t.extend({type:e.z.literal("PAYMENT"),config:e.z.object({provider:e.z.string().optional(),currency:e.z.string().optional()}).optional()}),rt=t.extend({type:e.z.literal("SOCIAL"),config:e.z.object({providers:e.z.array(e.z.string()).optional(),provider_details:e.z.array(e.z.object({name:e.z.string(),strategy:e.z.string().optional(),display_name:e.z.string().optional(),icon_url:e.z.string().optional()})).optional()}).optional()}),lt=t.extend({type:e.z.literal("TEL"),config:e.z.object({placeholder:e.z.string().optional(),default_country:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),ct=t.extend({type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional(),max_length:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),pt=t.extend({type:e.z.literal("URL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),fe=e.z.discriminatedUnion("type",[xo,Po,Mo,Ho,Go,Bo,Wo,Ko]),Se=e.z.discriminatedUnion("type",[Xo,Vo,qo]),Ee=e.z.discriminatedUnion("type",[Yo,Qo,Jo,Zo,$o,et,ot,tt,nt,it,at,st,rt,lt,ct,pt]),D=e.z.union([fe,Se,Ee]),_t=new Set(["BOOLEAN","CARDS","CHOICE","DATE","DROPDOWN","EMAIL","LEGAL","NUMBER","PASSWORD","TEL","TEXT","URL"]),dt=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(false),order:e.z.number().optional(),visible:e.z.boolean().optional().default(true),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),h=e.z.object({x:e.z.number(),y:e.z.number()}),zt=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:h,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string().optional()})}),gt=e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:h,alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.string()})}),mt=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:h,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(D),next_node:e.z.string().optional()})}),Ae=e.z.discriminatedUnion("type",[zt,gt,mt]),Ie=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(Ae).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:h.optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:h.optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches Auth0 Forms structure)"}),ut=e.z.object({..._.shape,...Ie.shape,id:e.z.string()}),Ce=e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])}),ye=e.z.object({id:e.z.string().optional(),text:e.z.string(),href:e.z.string(),linkText:e.z.string().optional()}),ht=e.z.object({name:e.z.string().optional(),action:e.z.string(),method:e.z.enum(["POST","GET"]),title:e.z.string().optional(),description:e.z.string().optional(),components:e.z.array(D),messages:e.z.array(Ce).optional(),links:e.z.array(ye).optional(),footer:e.z.string().optional()});function bt(o){return o.category==="BLOCK"}function ft(o){return o.category==="WIDGET"}function St(o){return o.category==="FIELD"}const Te=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),Oe=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),I={enabled:e.z.boolean().default(false),synchronous:e.z.boolean().default(false),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Et=e.z.object({...I,trigger_id:Te,url:e.z.string()}),At=e.z.object({...I,trigger_id:Oe,form_id:e.z.string()}),It=e.z.union([Et,At]),Ct=e.z.object({...I,trigger_id:Te,..._.shape,hook_id:e.z.string(),url:e.z.string()}),yt=e.z.object({...I,trigger_id:Oe,..._.shape,hook_id:e.z.string(),form_id:e.z.string()}),Tt=e.z.union([Ct,yt]),Ne=e.z.object({name:e.z.string().optional()}),Re=e.z.object({email:e.z.string().optional()}),we=e.z.object({organization_id:e.z.string().max(50),inviter:Ne,invitee:Re,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(true).optional()}),Ot=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(we.shape),Le=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),Nt=e.z.object({keys:e.z.array(Le)}),Rt=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())});var j=(o=>(o.PENDING="pending",o.AUTHENTICATED="authenticated",o.AWAITING_EMAIL_VERIFICATION="awaiting_email_verification",o.AWAITING_HOOK="awaiting_hook",o.AWAITING_CONTINUATION="awaiting_continuation",o.COMPLETED="completed",o.FAILED="failed",o.EXPIRED="expired",o))(j||{});const De=e.z.nativeEnum(j),je=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:_e,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),state:De.optional().default("pending"),state_data:e.z.string().optional(),failure_reason:e.z.string().optional(),user_id:e.z.string().optional()}).openapi({description:"This represents a login sesion"}),wt=e.z.object({...je.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),ve={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_IMPERSONATION:"fimp",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESS_IMPERSONATION:"simp",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Lt=e.z.string().refine(o=>Object.values(ve).includes(o),{message:"Invalid log type"}),ke=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),Ue=e.z.object({country_code:e.z.string().length(2),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),Fe=e.z.object({type:Lt,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ke.optional(),log_id:e.z.string().optional(),location_info:Ue.optional()}),Dt=e.z.object({...Fe.shape,log_id:e.z.string()}),xe=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(true)}),jt=xe.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),Pe=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),Me=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:Pe.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),vt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...Me.shape}),kt=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"}),connection:e.z.string().optional().openapi({description:"The connection identifier associated with the key"}),type:e.z.enum(["jwt_signing","saml_encryption"]).openapi({description:"The type of the signing key"})}),He=e.z.object({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),inherit_global_permissions_in_organizations:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional(),mfa:e.z.object({factors:e.z.object({sms:e.z.boolean().default(false),otp:e.z.boolean().default(false),email:e.z.boolean().default(false),push_notification:e.z.boolean().default(false),webauthn_roaming:e.z.boolean().default(false),webauthn_platform:e.z.boolean().default(false),recovery_code:e.z.boolean().default(false),duo:e.z.boolean().default(false)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),Ut=e.z.object({created_at:e.z.string().nullable().transform(o=>o??""),updated_at:e.z.string().nullable().transform(o=>o??""),...He.shape,id:e.z.string()});var Ge=(o=>(o.RefreshToken="refresh_token",o.AuthorizationCode="authorization_code",o.ClientCredential="client_credentials",o.Passwordless="passwordless",o.Password="password",o.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",o))(Ge||{});const Ft=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const Be=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),We=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),p=e.z.object({bold:e.z.boolean(),size:e.z.number()}),Ke=e.z.object({body_text:p,buttons_text:p,font_url:e.z.string(),input_labels:p,links:p,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:p,title:p}),Xe=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),Ve=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),qe=e.z.object({borders:Be,colors:We,displayName:e.z.string(),fonts:Ke,page_background:Xe,widget:Ve}),xt=qe.extend({themeId:e.z.string()}),Pt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(true),password_first:e.z.boolean().default(false),webauthn_platform_first_factor:e.z.boolean()}),Mt=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(true),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),Ye=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:Pe,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),Ht=e.z.object({created_at:e.z.string(),...Ye.shape}),Gt=e.z.object({to:e.z.string(),message:e.z.string()}),Bt=e.z.object({name:e.z.string(),options:e.z.object({})}),Qe=e.z.object({value:e.z.string(),description:e.z.string().optional()}),Je=e.z.object({token_dialect:e.z.enum(["access_token","access_token_authz"]).optional(),enforce_policies:e.z.boolean().optional(),allow_skipping_userinfo:e.z.boolean().optional(),skip_userinfo:e.z.boolean().optional(),persist_client_authorization:e.z.boolean().optional(),enable_introspection_endpoint:e.z.boolean().optional(),mtls:e.z.object({bound_access_tokens:e.z.boolean().optional()}).optional()}),Ze=e.z.object({id:e.z.string().optional(),name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Qe).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().optional(),token_lifetime_for_web:e.z.number().optional(),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:Je.optional(),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional()}),$e=e.z.object({...Ze.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Wt=e.z.array($e),eo=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),oo=e.z.object({...eo.shape,created_at:e.z.string()}),Kt=e.z.array(oo),to=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string(),organization_id:e.z.string().optional()}),no=e.z.object({...to.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Xt=e.z.array(no),io=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional(),organization_id:e.z.string().optional()}),Vt=e.z.array(io),ao=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),so=e.z.object({...ao.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),qt=e.z.array(so),ro=e.z.object({id:e.z.string().optional().openapi({description:"The unique identifier of the role. If not provided, one will be generated."}),name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"}),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional().openapi({description:"Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."})}),lo=ro.extend({id:e.z.string().openapi({description:"The unique identifier of the role"}),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Yt=e.z.array(lo),co=e.z.object({logo_url:e.z.string().optional().openapi({description:"URL of the organization's logo"}),colors:e.z.object({primary:e.z.string().optional().openapi({description:"Primary color in hex format (e.g., #FF0000)"}),page_background:e.z.string().optional().openapi({description:"Page background color in hex format (e.g., #FFFFFF)"})}).optional()}).optional(),po=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(false).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(true).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(true).openapi({description:"Whether signup is enabled for this connection"})}),_o=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(false).openapi({description:"Whether to enforce token quota limits"}),per_day:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per day (0 = unlimited)"}),per_hour:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per hour (0 = unlimited)"})}).optional()}).optional(),zo=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).regex(/^[a-z0-9_-]+$/,{message:"Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"}).openapi({description:"The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores."}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:co,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(po).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:_o}),Qt=e.z.object({...zo.shape,..._.shape,id:e.z.string(),name:e.z.string().min(1).openapi({description:"The name of the organization"})}),go=e.z.object({user_id:e.z.string().openapi({description:"ID of the user"}),organization_id:e.z.string().openapi({description:"ID of the organization"})}),Jt=e.z.object({...go.shape,..._.shape,id:e.z.string()}),Zt=e.z.object({idle_session_lifetime:e.z.number().optional(),session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),mfa:e.z.object({factors:e.z.object({sms:e.z.boolean().default(false),otp:e.z.boolean().default(false),email:e.z.boolean().default(false),push_notification:e.z.boolean().default(false),webauthn_roaming:e.z.boolean().default(false),webauthn_platform:e.z.boolean().default(false),recovery_code:e.z.boolean().default(false),duo:e.z.boolean().default(false)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),$t=e.z.object({date:e.z.string().openapi({description:"Date these events occurred in ISO 8601 format",example:"2025-12-19"}),logins:e.z.number().openapi({description:"Number of logins on this date",example:150}),signups:e.z.number().openapi({description:"Number of signups on this date",example:25}),leaked_passwords:e.z.number().openapi({description:"Number of breached-password detections on this date (subscription required)",example:0}),updated_at:e.z.string().openapi({description:"Date and time this stats entry was last updated in ISO 8601 format",example:"2025-12-19T10:30:00.000Z"}),created_at:e.z.string().openapi({description:"Approximate date and time the first event occurred in ISO 8601 format",example:"2025-12-19T00:00:00.000Z"})}),en=e.z.number().openapi({description:"Number of active users in the last 30 days",example:1234}),mo=e.z.enum(["login","login-id","login-password","signup","signup-id","signup-password","reset-password","consent","mfa","mfa-push","mfa-otp","mfa-voice","mfa-phone","mfa-webauthn","mfa-sms","mfa-email","mfa-recovery-code","status","device-flow","email-verification","email-otp-challenge","organizations","invitation","common","passkeys","captcha","custom-form"]),uo=e.z.record(e.z.string(),e.z.string()).openapi({type:"object",additionalProperties:{type:"string"}}),on=e.z.object({prompt:mo,language:e.z.string(),custom_text:uo});function tn(o){const[n,i]=o.split("|");if(!n||!i)throw new Error(`Invalid user_id: ${o}`);return {connection:n,id:i}}function nn(o){const{primary:n,secondaries:i,syncMethods:v=["create","update","remove","delete","set"]}=o,b={get(l,a){if(typeof a=="symbol")return l[a];const c=l[a];return typeof c!="function"?c:v.includes(a)?async(...z)=>{const f=await c.apply(l,z),g=[];for(const s of i){const m=s.adapter[a];if(typeof m!="function")continue;const S=(async()=>{try{await m.apply(s.adapter,z);}catch(u){try{s.onError?s.onError(u,a,z):console.error(`Passthrough adapter: secondary write failed for ${a}:`,u);}catch(E){console.error(`Passthrough adapter: onError handler threw for ${a}:`,E);}}})();s.blocking&&g.push(S);}return g.length>0&&await Promise.all(g),f}:c.bind(l)}};return new Proxy(n,b)}function an(o){return o}function sn(o){var b,l,a,c,z,f,g,s,m,S,u,E;const n=o==null?void 0:o.options;if(!n)return {usernameIdentifierActive:false,emailIdentifierActive:true,usernameMinLength:1,usernameMaxLength:15};const i=n.attributes;if(i){const ho=((l=(b=i.username)==null?void 0:b.identifier)==null?void 0:l.active)===true,bo=((c=(a=i.email)==null?void 0:a.identifier)==null?void 0:c.active)!==false,fo=((f=(z=i.username)==null?void 0:z.validation)==null?void 0:f.min_length)??1,So=((s=(g=i.username)==null?void 0:g.validation)==null?void 0:s.max_length)??15;return {usernameIdentifierActive:ho,emailIdentifierActive:bo,usernameMinLength:fo,usernameMaxLength:So}}return {usernameIdentifierActive:n.requires_username===true,emailIdentifierActive:true,usernameMinLength:((S=(m=n.validation)==null?void 0:m.username)==null?void 0:S.min)??1,usernameMaxLength:((E=(u=n.validation)==null?void 0:u.username)==null?void 0:E.max)??15}}exports.Auth0ActionEnum=Ao;exports.Auth0Client=ke;exports.AuthorizationResponseMode=N;exports.AuthorizationResponseType=O;exports.CodeChallengeMethod=R;exports.ComponentCategory=T;exports.ComponentType=y;exports.EmailActionEnum=Io;exports.FORM_FIELD_TYPES=_t;exports.FlowActionTypeEnum=Eo;exports.GrantType=Ge;exports.LocationInfo=Ue;exports.LogTypes=ve;exports.LoginSessionState=j;exports.NodeType=te;exports.RedirectTargetEnum=x;exports.actionNodeSchema=ae;exports.activeUsersResponseSchema=en;exports.addressSchema=W;exports.auth0FlowInsertSchema=jo;exports.auth0FlowSchema=pe;exports.auth0QuerySchema=yo;exports.auth0UpdateUserActionSchema=U;exports.auth0UserResponseSchema=Oo;exports.authParamsSchema=_e;exports.baseUserSchema=C;exports.blockComponentSchema=fe;exports.bordersSchema=Be;exports.brandingSchema=vo;exports.buttonComponentSchema=J;exports.clientGrantInsertSchema=q;exports.clientGrantListSchema=Do;exports.clientGrantSchema=Y;exports.clientInsertSchema=V;exports.clientSchema=Lo;exports.codeInsertSchema=ze;exports.codeSchema=ko;exports.codeTypeSchema=de;exports.colorsSchema=We;exports.componentMessageSchema=Ce;exports.componentSchema=oe;exports.connectionInsertSchema=me;exports.connectionOptionsSchema=ge;exports.connectionSchema=Uo;exports.coordinatesSchema=d;exports.createPassthroughAdapter=nn;exports.createWriteOnlyAdapter=an;exports.customDomainInsertSchema=ue;exports.customDomainSchema=be;exports.customDomainWithTenantIdSchema=Fo;exports.customTextEntrySchema=on;exports.customTextSchema=uo;exports.dailyStatsSchema=$t;exports.emailProviderSchema=Mt;exports.emailVerificationRulesSchema=k;exports.emailVerifyActionSchema=F;exports.endingSchema=ce;exports.fieldComponentSchema=Ee;exports.flowActionStepSchema=M;exports.flowInsertSchema=H;exports.flowSchema=Co;exports.flowsFieldComponentSchema=$;exports.flowsFlowNodeSchema=ie;exports.flowsStepNodeSchema=ne;exports.fontDetailsSchema=p;exports.fontsSchema=Ke;exports.formControlSchema=dt;exports.formInsertSchema=Ie;exports.formNodeComponentDefinition=D;exports.formNodeSchema=Ae;exports.formSchema=ut;exports.genericComponentSchema=ee;exports.genericNodeSchema=se;exports.getConnectionIdentifierConfig=sn;exports.hookInsertSchema=It;exports.hookSchema=Tt;exports.identitySchema=B;exports.inviteInsertSchema=we;exports.inviteSchema=Ot;exports.inviteeSchema=Re;exports.inviterSchema=Ne;exports.isBlockComponent=bt;exports.isFieldComponent=St;exports.isWidgetComponent=ft;exports.jwksKeySchema=Nt;exports.jwksSchema=Le;exports.legalComponentSchema=Z;exports.logInsertSchema=Fe;exports.logSchema=Dt;exports.loginSessionInsertSchema=je;exports.loginSessionSchema=wt;exports.loginSessionStateSchema=De;exports.nodeSchema=re;exports.openIDConfigurationSchema=Rt;exports.organizationBrandingSchema=co;exports.organizationEnabledConnectionSchema=po;exports.organizationInsertSchema=zo;exports.organizationSchema=Qt;exports.organizationTokenQuotaSchema=_o;exports.pageBackgroundSchema=Xe;exports.parseUserId=tn;exports.passwordInsertSchema=xe;exports.passwordSchema=jt;exports.profileDataSchema=G;exports.promptScreenSchema=mo;exports.promptSettingSchema=Pt;exports.redirectActionSchema=P;exports.refreshTokenInsertSchema=Ye;exports.refreshTokenSchema=Ht;exports.resourceServerInsertSchema=Ze;exports.resourceServerListSchema=Wt;exports.resourceServerOptionsSchema=Je;exports.resourceServerSchema=$e;exports.resourceServerScopeSchema=Qe;exports.richTextComponentSchema=Q;exports.roleInsertSchema=ro;exports.roleListSchema=Yt;exports.rolePermissionInsertSchema=eo;exports.rolePermissionListSchema=Kt;exports.rolePermissionSchema=oo;exports.roleSchema=lo;exports.screenLinkSchema=ye;exports.sessionInsertSchema=Me;exports.sessionSchema=vt;exports.signingKeySchema=kt;exports.smsProviderSchema=Bt;exports.smsSendParamsSchema=Gt;exports.startSchema=le;exports.tenantInsertSchema=He;exports.tenantSchema=Ut;exports.tenantSettingsSchema=Zt;exports.themeInsertSchema=qe;exports.themeSchema=xt;exports.tokenResponseSchema=Ft;exports.totalsSchema=To;exports.uiScreenSchema=ht;exports.userInsertSchema=K;exports.userOrganizationInsertSchema=go;exports.userOrganizationSchema=Jt;exports.userPermissionInsertSchema=to;exports.userPermissionListSchema=Xt;exports.userPermissionSchema=no;exports.userPermissionWithDetailsListSchema=Vt;exports.userPermissionWithDetailsSchema=io;exports.userResponseSchema=No;exports.userRoleInsertSchema=ao;exports.userRoleListSchema=qt;exports.userRoleSchema=so;exports.userSchema=X;exports.verificationMethodsSchema=he;exports.widgetComponentSchema=Se;exports.widgetSchema=Ve;
|
|
8117
8135
|
} (adapterInterfaces));
|
|
8118
8136
|
return adapterInterfaces;
|
|
8119
8137
|
}
|
|
@@ -49,8 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.input-label.floating,
|
|
52
|
-
.input-field:focus
|
|
53
|
-
.input-field:not(:placeholder-shown)
|
|
52
|
+
.input-field:focus+.input-label,
|
|
53
|
+
.input-field:not(:placeholder-shown)+.input-label,
|
|
54
|
+
/* select and date inputs always display content, so always float */
|
|
55
|
+
select.input-field+.input-label,
|
|
56
|
+
input[type="date"].input-field+.input-label {
|
|
54
57
|
top: -8px;
|
|
55
58
|
transform: translateY(0);
|
|
56
59
|
font-size: 12px;
|
|
@@ -60,7 +63,7 @@
|
|
|
60
63
|
color: var(--ah-color-text-muted, #65676e);
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
.input-field:focus
|
|
66
|
+
.input-field:focus+.input-label {
|
|
64
67
|
color: var(--ah-color-primary, #635dff);
|
|
65
68
|
}
|
|
66
69
|
|
|
@@ -344,6 +347,7 @@
|
|
|
344
347
|
|
|
345
348
|
/* Small screen: collapse social buttons to icon-only in a row only if 3+ buttons */
|
|
346
349
|
@media (max-width: 480px) {
|
|
350
|
+
|
|
347
351
|
/* Only apply icon-only layout when there are 3 or more social buttons */
|
|
348
352
|
.social-buttons:has(.btn-social:nth-child(3)) {
|
|
349
353
|
flex-direction: row;
|
|
@@ -532,10 +536,22 @@
|
|
|
532
536
|
font-size: 12px;
|
|
533
537
|
}
|
|
534
538
|
|
|
539
|
+
/* Forgot password link styling */
|
|
540
|
+
.rich-text .forgot-password-link {
|
|
541
|
+
text-align: right;
|
|
542
|
+
font-size: 13px;
|
|
543
|
+
margin-top: 4px;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.rich-text .forgot-password-link a {
|
|
547
|
+
font-size: 13px;
|
|
548
|
+
color: var(--ah-color-link, #635dff);
|
|
549
|
+
}
|
|
550
|
+
|
|
535
551
|
/* Signup link styling */
|
|
536
552
|
.rich-text .signup-link {
|
|
537
553
|
margin-top: 16px;
|
|
538
554
|
text-align: center;
|
|
539
555
|
font-size: 14px;
|
|
540
556
|
color: var(--ah-color-text, #1e212a);
|
|
541
|
-
}
|
|
557
|
+
}
|