@authhero/adapter-interfaces 0.93.0 → 0.94.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/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +253 -0
- package/dist/adapter-interfaces.mjs +137 -67
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),Ue=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=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()),m=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:u.optional()}),l=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().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()}),h=l.extend({email_verified:e.z.boolean().default(!1),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().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),S=e.z.object({...h.shape,...n.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(m).optional()}),we=S,Fe=l.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()),je="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ke=(t=21)=>{let a="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;)a+=je[r[t]&63];return a};const E=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(!1).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(()=>ke()).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(!1).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),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."}),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(!1).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(!0).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(!1).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(!1).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(!1).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(!1).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()}),f=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...E.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."})}),A=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()}),Pe=e.z.array(A),i=e.z.object({x:e.z.number(),y:e.z.number()});var _=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(_||{}),p=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(p||{});const s=e.z.object({id:e.z.string(),category:e.z.nativeEnum(p),type:e.z.nativeEnum(_)}),I=s.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),C=s.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()}),O=s.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()}),T=s.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()}),N=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),y=e.z.union([I,C,O,T,N]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(y),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),U=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:i}).passthrough(),w=e.z.union([L,D,U]),F=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),j=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),k=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(w),start:F,ending:j,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(),ve=k.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),z=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(z||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const P=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(z).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(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),Me=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()}),v=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()}),M=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:v.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),H=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(M.shape),G=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),x=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...G.shape,id:e.z.string()});e.z.object({...f.shape,tenant:x,connections:e.z.array(H)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),W=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:K,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()}),He=e.z.object({...W.shape,created_at:e.z.string()}),B=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()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...B.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(X)}).optional(),tls_policy:e.z.string().optional()}),Ge=V.extend({tenant_id:e.z.string()}),xe=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(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),q=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=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(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),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()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),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.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(q),next_node:e.z.string()})})])).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:e.z.object({x:e.z.number(),y:e.z.number()}).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:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ke=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),J=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),c={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},We=e.z.object({...c,trigger_id:Q,url:e.z.string()}),Be=e.z.object({...c,trigger_id:J,form_id:e.z.string()}),Xe=e.z.union([We,Be]),Ve=e.z.object({...c,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),qe=e.z.object({...c,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),Ye=e.z.union([Ve,qe]),Z=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()}),Qe=e.z.object({keys:e.z.array(Z)}),Je=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())}),$=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:P,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(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ze=e.z.object({...$.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()}),ee={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_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",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"},$e=e.z.string().refine(t=>Object.values(ee).includes(t),{message:"Invalid log type"}),te=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),et=e.z.object({type:$e,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),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.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:te.optional()}),oe=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),tt=e.z.object({...oe.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=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")}),ie=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:ne.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")}),ot=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ie.shape}),nt=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"})});var ae=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(ae||{});const it=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 re=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()}),se=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()}),o=e.z.object({bold:e.z.boolean(),size:e.z.number()}),ce=e.z.object({body_text:o,buttons_text:o,font_url:e.z.string(),input_labels:o,links:o,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:o,title:o}),le=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),_e=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"])}),pe=e.z.object({borders:re,colors:se,displayName:e.z.string(),fonts:ce,page_background:le,widget:_e}),at=pe.extend({themeId:e.z.string()}),rt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),st=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),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()}),de=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:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),ct=e.z.object({created_at:e.z.string(),...de.shape}),lt=e.z.object({to:e.z.string(),message:e.z.string()}),_t=e.z.object({name:e.z.string(),options:e.z.object({})}),ze=e.z.object({value:e.z.string(),description:e.z.string().optional()}),ge=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()}),ue=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(ze).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:ge.optional()}),me=e.z.object({id:e.z.string().optional(),...ue.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),pt=e.z.array(me),he=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Se=e.z.object({...he.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),dt=e.z.array(Se),Ee=e.z.object({role_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()}),zt=e.z.array(Ee),fe=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()}),be=e.z.object({...fe.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),gt=e.z.array(be),Ae=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()}),ut=e.z.array(Ae),Ie=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ce=e.z.object({...Ie.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),mt=e.z.array(Ce),Oe=e.z.object({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"})}),Te=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Oe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ht=e.z.array(Te),Ne=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(),ye=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(!1).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(!0).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(!0).openapi({description:"Whether signup is enabled for this connection"})}),Re=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(!1).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(),Le=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).openapi({description:"The name of the organization"}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:Ne,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(ye).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:Re}),St=e.z.object({...Le.shape,...n.shape,id:e.z.string()}),De=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"})}),Et=e.z.object({...De.shape,...n.shape,id:e.z.string()});function ft(t){const[a,r]=t.split("|");if(!a||!r)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:r}}exports.Auth0Client=te;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=ae;exports.LogTypes=ee;exports.NodeType=R;exports.auth0FlowInsertSchema=ve;exports.auth0FlowSchema=k;exports.auth0UserResponseSchema=we;exports.authParamsSchema=P;exports.baseUserSchema=l;exports.bordersSchema=re;exports.brandingSchema=Me;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=b;exports.clientGrantListSchema=Pe;exports.clientGrantSchema=A;exports.clientInsertSchema=E;exports.clientSchema=f;exports.codeInsertSchema=W;exports.codeSchema=He;exports.codeTypeSchema=K;exports.colorsSchema=se;exports.componentSchema=y;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=v;exports.connectionSchema=H;exports.coordinatesSchema=i;exports.customDomainInsertSchema=B;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=Ge;exports.emailProviderSchema=st;exports.endingSchema=j;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=ce;exports.formControlSchema=xe;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=Ke;exports.genericComponentSchema=N;exports.genericNodeSchema=U;exports.hookInsertSchema=Xe;exports.hookSchema=Ye;exports.identitySchema=m;exports.jwksKeySchema=Qe;exports.jwksSchema=Z;exports.legalComponentSchema=O;exports.logSchema=et;exports.loginSessionInsertSchema=$;exports.loginSessionSchema=Ze;exports.nodeSchema=w;exports.openIDConfigurationSchema=Je;exports.organizationBrandingSchema=Ne;exports.organizationEnabledConnectionSchema=ye;exports.organizationInsertSchema=Le;exports.organizationSchema=St;exports.organizationTokenQuotaSchema=Re;exports.pageBackgroundSchema=le;exports.parseUserId=ft;exports.passwordInsertSchema=oe;exports.passwordSchema=tt;exports.profileDataSchema=u;exports.promptSettingSchema=rt;exports.refreshTokenInsertSchema=de;exports.refreshTokenSchema=ct;exports.resourceServerInsertSchema=ue;exports.resourceServerListSchema=pt;exports.resourceServerOptionsSchema=ge;exports.resourceServerSchema=me;exports.resourceServerScopeSchema=ze;exports.richTextComponentSchema=I;exports.roleInsertSchema=Oe;exports.roleListSchema=ht;exports.rolePermissionInsertSchema=he;exports.rolePermissionListSchema=dt;exports.rolePermissionSchema=Se;exports.rolePermissionWithDetailsListSchema=zt;exports.rolePermissionWithDetailsSchema=Ee;exports.roleSchema=Te;exports.sessionInsertSchema=ie;exports.sessionSchema=ot;exports.signingKeySchema=nt;exports.smsProviderSchema=_t;exports.smsSendParamsSchema=lt;exports.startSchema=F;exports.stepNodeSchema=L;exports.tenantInsertSchema=G;exports.tenantSchema=x;exports.themeInsertSchema=pe;exports.themeSchema=at;exports.tokenResponseSchema=it;exports.totalsSchema=Ue;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=De;exports.userOrganizationSchema=Et;exports.userPermissionInsertSchema=fe;exports.userPermissionListSchema=gt;exports.userPermissionSchema=be;exports.userPermissionWithDetailsListSchema=ut;exports.userPermissionWithDetailsSchema=Ae;exports.userResponseSchema=Fe;exports.userRoleInsertSchema=Ie;exports.userRoleListSchema=mt;exports.userRoleSchema=Ce;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=_e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),we=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=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()),m=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:u.optional()}),c=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().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()}),h=c.extend({email_verified:e.z.boolean().default(!1),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().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),S=e.z.object({...h.shape,...n.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(m).optional()}),Ue=S,je=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()),Fe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ke=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t));for(;t--;)a+=Fe[s[t]&63];return a};const E=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(!1).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(()=>ke()).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(!1).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),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."}),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(!1).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(!0).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(!1).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(!1).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(!1).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(!1).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()}),f=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...E.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."})}),A=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()}),ve=e.z.array(A),i=e.z.object({x:e.z.number(),y:e.z.number()});var _=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(_||{}),p=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(p||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(p),type:e.z.nativeEnum(_)}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),C=r.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()}),O=r.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()}),T=r.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()}),N=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),y=e.z.union([I,C,O,T,N]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(y),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),w=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:i}).passthrough(),U=e.z.union([L,D,w]),j=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),F=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),k=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(U),start:j,ending:F,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(),Pe=k.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),z=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(z||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const v=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(z).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(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),Me=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()}),P=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()}),M=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),H=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(M.shape),x=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),G=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...x.shape,id:e.z.string()});e.z.object({...f.shape,tenant:G,connections:e.z.array(H)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),W=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:K,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()}),He=e.z.object({...W.shape,created_at:e.z.string()}),B=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()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...B.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(X)}).optional(),tls_policy:e.z.string().optional()}),xe=V.extend({tenant_id:e.z.string()}),Ge=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(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),q=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=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(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),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()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),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.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(q),next_node:e.z.string()})})])).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:e.z.object({x:e.z.number(),y:e.z.number()}).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:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ke=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),J=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},We=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Be=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Xe=e.z.union([We,Be]),Ve=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),qe=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),Ye=e.z.union([Ve,qe]),Z=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()}),Qe=e.z.object({keys:e.z.array(Z)}),Je=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())}),$=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:v,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(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ze=e.z.object({...$.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()}),ee={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_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",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"},$e=e.z.string().refine(t=>Object.values(ee).includes(t),{message:"Invalid log type"}),te=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),et=e.z.object({type:$e,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),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.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:te.optional()}),oe=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),tt=e.z.object({...oe.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=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")}),ie=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:ne.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")}),ot=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ie.shape}),nt=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"})});var ae=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(ae||{});const it=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 se=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()}),re=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()}),o=e.z.object({bold:e.z.boolean(),size:e.z.number()}),le=e.z.object({body_text:o,buttons_text:o,font_url:e.z.string(),input_labels:o,links:o,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:o,title:o}),ce=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),_e=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"])}),pe=e.z.object({borders:se,colors:re,displayName:e.z.string(),fonts:le,page_background:ce,widget:_e}),at=pe.extend({themeId:e.z.string()}),st=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),rt=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),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()}),de=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:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),lt=e.z.object({created_at:e.z.string(),...de.shape}),ct=e.z.object({to:e.z.string(),message:e.z.string()}),_t=e.z.object({name:e.z.string(),options:e.z.object({})}),ze=e.z.object({value:e.z.string(),description:e.z.string().optional()}),ge=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()}),ue=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(ze).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:ge.optional()}),me=e.z.object({id:e.z.string().optional(),...ue.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),pt=e.z.array(me),he=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Se=e.z.object({...he.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),dt=e.z.array(Se),Ee=e.z.object({role_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()}),zt=e.z.array(Ee),fe=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()}),be=e.z.object({...fe.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),gt=e.z.array(be),Ae=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()}),ut=e.z.array(Ae),Ie=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ce=e.z.object({...Ie.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),mt=e.z.array(Ce),Oe=e.z.object({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"})}),Te=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Oe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ht=e.z.array(Te),Ne=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(),ye=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(!1).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(!0).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(!0).openapi({description:"Whether signup is enabled for this connection"})}),Re=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(!1).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(),Le=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).openapi({description:"The name of the organization"}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:Ne,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(ye).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:Re}),St=e.z.object({...Le.shape,...n.shape,id:e.z.string()}),De=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"})}),Et=e.z.object({...De.shape,...n.shape,id:e.z.string()}),ft=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()});function bt(t){const[a,s]=t.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:s}}exports.Auth0Client=te;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=ae;exports.LogTypes=ee;exports.NodeType=R;exports.auth0FlowInsertSchema=Pe;exports.auth0FlowSchema=k;exports.auth0UserResponseSchema=Ue;exports.authParamsSchema=v;exports.baseUserSchema=c;exports.bordersSchema=se;exports.brandingSchema=Me;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=b;exports.clientGrantListSchema=ve;exports.clientGrantSchema=A;exports.clientInsertSchema=E;exports.clientSchema=f;exports.codeInsertSchema=W;exports.codeSchema=He;exports.codeTypeSchema=K;exports.colorsSchema=re;exports.componentSchema=y;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=H;exports.coordinatesSchema=i;exports.customDomainInsertSchema=B;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=xe;exports.emailProviderSchema=rt;exports.endingSchema=F;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=le;exports.formControlSchema=Ge;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=Ke;exports.genericComponentSchema=N;exports.genericNodeSchema=w;exports.hookInsertSchema=Xe;exports.hookSchema=Ye;exports.identitySchema=m;exports.jwksKeySchema=Qe;exports.jwksSchema=Z;exports.legalComponentSchema=O;exports.logSchema=et;exports.loginSessionInsertSchema=$;exports.loginSessionSchema=Ze;exports.nodeSchema=U;exports.openIDConfigurationSchema=Je;exports.organizationBrandingSchema=Ne;exports.organizationEnabledConnectionSchema=ye;exports.organizationInsertSchema=Le;exports.organizationSchema=St;exports.organizationTokenQuotaSchema=Re;exports.pageBackgroundSchema=ce;exports.parseUserId=bt;exports.passwordInsertSchema=oe;exports.passwordSchema=tt;exports.profileDataSchema=u;exports.promptSettingSchema=st;exports.refreshTokenInsertSchema=de;exports.refreshTokenSchema=lt;exports.resourceServerInsertSchema=ue;exports.resourceServerListSchema=pt;exports.resourceServerOptionsSchema=ge;exports.resourceServerSchema=me;exports.resourceServerScopeSchema=ze;exports.richTextComponentSchema=I;exports.roleInsertSchema=Oe;exports.roleListSchema=ht;exports.rolePermissionInsertSchema=he;exports.rolePermissionListSchema=dt;exports.rolePermissionSchema=Se;exports.rolePermissionWithDetailsListSchema=zt;exports.rolePermissionWithDetailsSchema=Ee;exports.roleSchema=Te;exports.sessionInsertSchema=ie;exports.sessionSchema=ot;exports.signingKeySchema=nt;exports.smsProviderSchema=_t;exports.smsSendParamsSchema=ct;exports.startSchema=j;exports.stepNodeSchema=L;exports.tenantInsertSchema=x;exports.tenantSchema=G;exports.tenantSettingsSchema=ft;exports.themeInsertSchema=pe;exports.themeSchema=at;exports.tokenResponseSchema=it;exports.totalsSchema=we;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=De;exports.userOrganizationSchema=Et;exports.userPermissionInsertSchema=fe;exports.userPermissionListSchema=gt;exports.userPermissionSchema=be;exports.userPermissionWithDetailsListSchema=ut;exports.userPermissionWithDetailsSchema=Ae;exports.userResponseSchema=je;exports.userRoleInsertSchema=Ie;exports.userRoleListSchema=mt;exports.userRoleSchema=Ce;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=_e;
|
|
@@ -15076,6 +15076,254 @@ export declare const userOrganizationSchema: z.ZodObject<{
|
|
|
15076
15076
|
organization_id: string;
|
|
15077
15077
|
}>;
|
|
15078
15078
|
export type UserOrganization = z.infer<typeof userOrganizationSchema>;
|
|
15079
|
+
export declare const tenantSettingsSchema: z.ZodObject<{
|
|
15080
|
+
idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
15081
|
+
session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
15082
|
+
session_cookie: z.ZodOptional<z.ZodObject<{
|
|
15083
|
+
mode: z.ZodOptional<z.ZodEnum<[
|
|
15084
|
+
"persistent",
|
|
15085
|
+
"non-persistent"
|
|
15086
|
+
]>>;
|
|
15087
|
+
}, "strip", z.ZodTypeAny, {
|
|
15088
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
15089
|
+
}, {
|
|
15090
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
15091
|
+
}>>;
|
|
15092
|
+
enable_client_connections: z.ZodOptional<z.ZodBoolean>;
|
|
15093
|
+
default_redirection_uri: z.ZodOptional<z.ZodString>;
|
|
15094
|
+
enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15095
|
+
default_directory: z.ZodOptional<z.ZodString>;
|
|
15096
|
+
error_page: z.ZodOptional<z.ZodObject<{
|
|
15097
|
+
html: z.ZodOptional<z.ZodString>;
|
|
15098
|
+
show_log_link: z.ZodOptional<z.ZodBoolean>;
|
|
15099
|
+
url: z.ZodOptional<z.ZodString>;
|
|
15100
|
+
}, "strip", z.ZodTypeAny, {
|
|
15101
|
+
url?: string | undefined;
|
|
15102
|
+
html?: string | undefined;
|
|
15103
|
+
show_log_link?: boolean | undefined;
|
|
15104
|
+
}, {
|
|
15105
|
+
url?: string | undefined;
|
|
15106
|
+
html?: string | undefined;
|
|
15107
|
+
show_log_link?: boolean | undefined;
|
|
15108
|
+
}>>;
|
|
15109
|
+
flags: z.ZodOptional<z.ZodObject<{
|
|
15110
|
+
allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
|
|
15111
|
+
allow_legacy_ro_grant_types: z.ZodOptional<z.ZodBoolean>;
|
|
15112
|
+
allow_legacy_tokeninfo_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
15113
|
+
disable_clickjack_protection_headers: z.ZodOptional<z.ZodBoolean>;
|
|
15114
|
+
enable_apis_section: z.ZodOptional<z.ZodBoolean>;
|
|
15115
|
+
enable_client_connections: z.ZodOptional<z.ZodBoolean>;
|
|
15116
|
+
enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
|
|
15117
|
+
enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
|
|
15118
|
+
enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
|
|
15119
|
+
enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
|
|
15120
|
+
enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
|
|
15121
|
+
enable_pipeline2: z.ZodOptional<z.ZodBoolean>;
|
|
15122
|
+
enable_public_signup_user_exists_error: z.ZodOptional<z.ZodBoolean>;
|
|
15123
|
+
use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
|
|
15124
|
+
disable_management_api_sms_obfuscation: z.ZodOptional<z.ZodBoolean>;
|
|
15125
|
+
enable_adfs_waad_email_verification: z.ZodOptional<z.ZodBoolean>;
|
|
15126
|
+
revoke_refresh_token_grant: z.ZodOptional<z.ZodBoolean>;
|
|
15127
|
+
dashboard_log_streams_next: z.ZodOptional<z.ZodBoolean>;
|
|
15128
|
+
dashboard_insights_view: z.ZodOptional<z.ZodBoolean>;
|
|
15129
|
+
disable_fields_map_fix: z.ZodOptional<z.ZodBoolean>;
|
|
15130
|
+
mfa_show_factor_list_on_enrollment: z.ZodOptional<z.ZodBoolean>;
|
|
15131
|
+
}, "strip", z.ZodTypeAny, {
|
|
15132
|
+
enable_client_connections?: boolean | undefined;
|
|
15133
|
+
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
15134
|
+
allow_legacy_ro_grant_types?: boolean | undefined;
|
|
15135
|
+
allow_legacy_tokeninfo_endpoint?: boolean | undefined;
|
|
15136
|
+
disable_clickjack_protection_headers?: boolean | undefined;
|
|
15137
|
+
enable_apis_section?: boolean | undefined;
|
|
15138
|
+
enable_custom_domain_in_emails?: boolean | undefined;
|
|
15139
|
+
enable_dynamic_client_registration?: boolean | undefined;
|
|
15140
|
+
enable_idtoken_api2?: boolean | undefined;
|
|
15141
|
+
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
15142
|
+
enable_legacy_profile?: boolean | undefined;
|
|
15143
|
+
enable_pipeline2?: boolean | undefined;
|
|
15144
|
+
enable_public_signup_user_exists_error?: boolean | undefined;
|
|
15145
|
+
use_scope_descriptions_for_consent?: boolean | undefined;
|
|
15146
|
+
disable_management_api_sms_obfuscation?: boolean | undefined;
|
|
15147
|
+
enable_adfs_waad_email_verification?: boolean | undefined;
|
|
15148
|
+
revoke_refresh_token_grant?: boolean | undefined;
|
|
15149
|
+
dashboard_log_streams_next?: boolean | undefined;
|
|
15150
|
+
dashboard_insights_view?: boolean | undefined;
|
|
15151
|
+
disable_fields_map_fix?: boolean | undefined;
|
|
15152
|
+
mfa_show_factor_list_on_enrollment?: boolean | undefined;
|
|
15153
|
+
}, {
|
|
15154
|
+
enable_client_connections?: boolean | undefined;
|
|
15155
|
+
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
15156
|
+
allow_legacy_ro_grant_types?: boolean | undefined;
|
|
15157
|
+
allow_legacy_tokeninfo_endpoint?: boolean | undefined;
|
|
15158
|
+
disable_clickjack_protection_headers?: boolean | undefined;
|
|
15159
|
+
enable_apis_section?: boolean | undefined;
|
|
15160
|
+
enable_custom_domain_in_emails?: boolean | undefined;
|
|
15161
|
+
enable_dynamic_client_registration?: boolean | undefined;
|
|
15162
|
+
enable_idtoken_api2?: boolean | undefined;
|
|
15163
|
+
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
15164
|
+
enable_legacy_profile?: boolean | undefined;
|
|
15165
|
+
enable_pipeline2?: boolean | undefined;
|
|
15166
|
+
enable_public_signup_user_exists_error?: boolean | undefined;
|
|
15167
|
+
use_scope_descriptions_for_consent?: boolean | undefined;
|
|
15168
|
+
disable_management_api_sms_obfuscation?: boolean | undefined;
|
|
15169
|
+
enable_adfs_waad_email_verification?: boolean | undefined;
|
|
15170
|
+
revoke_refresh_token_grant?: boolean | undefined;
|
|
15171
|
+
dashboard_log_streams_next?: boolean | undefined;
|
|
15172
|
+
dashboard_insights_view?: boolean | undefined;
|
|
15173
|
+
disable_fields_map_fix?: boolean | undefined;
|
|
15174
|
+
mfa_show_factor_list_on_enrollment?: boolean | undefined;
|
|
15175
|
+
}>>;
|
|
15176
|
+
friendly_name: z.ZodOptional<z.ZodString>;
|
|
15177
|
+
picture_url: z.ZodOptional<z.ZodString>;
|
|
15178
|
+
support_email: z.ZodOptional<z.ZodString>;
|
|
15179
|
+
support_url: z.ZodOptional<z.ZodString>;
|
|
15180
|
+
sandbox_version: z.ZodOptional<z.ZodString>;
|
|
15181
|
+
sandbox_versions_available: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15182
|
+
change_password: z.ZodOptional<z.ZodObject<{
|
|
15183
|
+
enabled: z.ZodBoolean;
|
|
15184
|
+
html: z.ZodString;
|
|
15185
|
+
}, "strip", z.ZodTypeAny, {
|
|
15186
|
+
html: string;
|
|
15187
|
+
enabled: boolean;
|
|
15188
|
+
}, {
|
|
15189
|
+
html: string;
|
|
15190
|
+
enabled: boolean;
|
|
15191
|
+
}>>;
|
|
15192
|
+
guardian_mfa_page: z.ZodOptional<z.ZodObject<{
|
|
15193
|
+
enabled: z.ZodBoolean;
|
|
15194
|
+
html: z.ZodString;
|
|
15195
|
+
}, "strip", z.ZodTypeAny, {
|
|
15196
|
+
html: string;
|
|
15197
|
+
enabled: boolean;
|
|
15198
|
+
}, {
|
|
15199
|
+
html: string;
|
|
15200
|
+
enabled: boolean;
|
|
15201
|
+
}>>;
|
|
15202
|
+
default_audience: z.ZodOptional<z.ZodString>;
|
|
15203
|
+
default_organization: z.ZodOptional<z.ZodString>;
|
|
15204
|
+
sessions: z.ZodOptional<z.ZodObject<{
|
|
15205
|
+
oidc_logout_prompt_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
15206
|
+
}, "strip", z.ZodTypeAny, {
|
|
15207
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
15208
|
+
}, {
|
|
15209
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
15210
|
+
}>>;
|
|
15211
|
+
}, "strip", z.ZodTypeAny, {
|
|
15212
|
+
default_organization?: string | undefined;
|
|
15213
|
+
support_url?: string | undefined;
|
|
15214
|
+
idle_session_lifetime?: number | undefined;
|
|
15215
|
+
session_lifetime?: number | undefined;
|
|
15216
|
+
session_cookie?: {
|
|
15217
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
15218
|
+
} | undefined;
|
|
15219
|
+
enable_client_connections?: boolean | undefined;
|
|
15220
|
+
default_redirection_uri?: string | undefined;
|
|
15221
|
+
enabled_locales?: string[] | undefined;
|
|
15222
|
+
default_directory?: string | undefined;
|
|
15223
|
+
error_page?: {
|
|
15224
|
+
url?: string | undefined;
|
|
15225
|
+
html?: string | undefined;
|
|
15226
|
+
show_log_link?: boolean | undefined;
|
|
15227
|
+
} | undefined;
|
|
15228
|
+
flags?: {
|
|
15229
|
+
enable_client_connections?: boolean | undefined;
|
|
15230
|
+
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
15231
|
+
allow_legacy_ro_grant_types?: boolean | undefined;
|
|
15232
|
+
allow_legacy_tokeninfo_endpoint?: boolean | undefined;
|
|
15233
|
+
disable_clickjack_protection_headers?: boolean | undefined;
|
|
15234
|
+
enable_apis_section?: boolean | undefined;
|
|
15235
|
+
enable_custom_domain_in_emails?: boolean | undefined;
|
|
15236
|
+
enable_dynamic_client_registration?: boolean | undefined;
|
|
15237
|
+
enable_idtoken_api2?: boolean | undefined;
|
|
15238
|
+
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
15239
|
+
enable_legacy_profile?: boolean | undefined;
|
|
15240
|
+
enable_pipeline2?: boolean | undefined;
|
|
15241
|
+
enable_public_signup_user_exists_error?: boolean | undefined;
|
|
15242
|
+
use_scope_descriptions_for_consent?: boolean | undefined;
|
|
15243
|
+
disable_management_api_sms_obfuscation?: boolean | undefined;
|
|
15244
|
+
enable_adfs_waad_email_verification?: boolean | undefined;
|
|
15245
|
+
revoke_refresh_token_grant?: boolean | undefined;
|
|
15246
|
+
dashboard_log_streams_next?: boolean | undefined;
|
|
15247
|
+
dashboard_insights_view?: boolean | undefined;
|
|
15248
|
+
disable_fields_map_fix?: boolean | undefined;
|
|
15249
|
+
mfa_show_factor_list_on_enrollment?: boolean | undefined;
|
|
15250
|
+
} | undefined;
|
|
15251
|
+
friendly_name?: string | undefined;
|
|
15252
|
+
picture_url?: string | undefined;
|
|
15253
|
+
support_email?: string | undefined;
|
|
15254
|
+
sandbox_version?: string | undefined;
|
|
15255
|
+
sandbox_versions_available?: string[] | undefined;
|
|
15256
|
+
change_password?: {
|
|
15257
|
+
html: string;
|
|
15258
|
+
enabled: boolean;
|
|
15259
|
+
} | undefined;
|
|
15260
|
+
guardian_mfa_page?: {
|
|
15261
|
+
html: string;
|
|
15262
|
+
enabled: boolean;
|
|
15263
|
+
} | undefined;
|
|
15264
|
+
default_audience?: string | undefined;
|
|
15265
|
+
sessions?: {
|
|
15266
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
15267
|
+
} | undefined;
|
|
15268
|
+
}, {
|
|
15269
|
+
default_organization?: string | undefined;
|
|
15270
|
+
support_url?: string | undefined;
|
|
15271
|
+
idle_session_lifetime?: number | undefined;
|
|
15272
|
+
session_lifetime?: number | undefined;
|
|
15273
|
+
session_cookie?: {
|
|
15274
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
15275
|
+
} | undefined;
|
|
15276
|
+
enable_client_connections?: boolean | undefined;
|
|
15277
|
+
default_redirection_uri?: string | undefined;
|
|
15278
|
+
enabled_locales?: string[] | undefined;
|
|
15279
|
+
default_directory?: string | undefined;
|
|
15280
|
+
error_page?: {
|
|
15281
|
+
url?: string | undefined;
|
|
15282
|
+
html?: string | undefined;
|
|
15283
|
+
show_log_link?: boolean | undefined;
|
|
15284
|
+
} | undefined;
|
|
15285
|
+
flags?: {
|
|
15286
|
+
enable_client_connections?: boolean | undefined;
|
|
15287
|
+
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
15288
|
+
allow_legacy_ro_grant_types?: boolean | undefined;
|
|
15289
|
+
allow_legacy_tokeninfo_endpoint?: boolean | undefined;
|
|
15290
|
+
disable_clickjack_protection_headers?: boolean | undefined;
|
|
15291
|
+
enable_apis_section?: boolean | undefined;
|
|
15292
|
+
enable_custom_domain_in_emails?: boolean | undefined;
|
|
15293
|
+
enable_dynamic_client_registration?: boolean | undefined;
|
|
15294
|
+
enable_idtoken_api2?: boolean | undefined;
|
|
15295
|
+
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
15296
|
+
enable_legacy_profile?: boolean | undefined;
|
|
15297
|
+
enable_pipeline2?: boolean | undefined;
|
|
15298
|
+
enable_public_signup_user_exists_error?: boolean | undefined;
|
|
15299
|
+
use_scope_descriptions_for_consent?: boolean | undefined;
|
|
15300
|
+
disable_management_api_sms_obfuscation?: boolean | undefined;
|
|
15301
|
+
enable_adfs_waad_email_verification?: boolean | undefined;
|
|
15302
|
+
revoke_refresh_token_grant?: boolean | undefined;
|
|
15303
|
+
dashboard_log_streams_next?: boolean | undefined;
|
|
15304
|
+
dashboard_insights_view?: boolean | undefined;
|
|
15305
|
+
disable_fields_map_fix?: boolean | undefined;
|
|
15306
|
+
mfa_show_factor_list_on_enrollment?: boolean | undefined;
|
|
15307
|
+
} | undefined;
|
|
15308
|
+
friendly_name?: string | undefined;
|
|
15309
|
+
picture_url?: string | undefined;
|
|
15310
|
+
support_email?: string | undefined;
|
|
15311
|
+
sandbox_version?: string | undefined;
|
|
15312
|
+
sandbox_versions_available?: string[] | undefined;
|
|
15313
|
+
change_password?: {
|
|
15314
|
+
html: string;
|
|
15315
|
+
enabled: boolean;
|
|
15316
|
+
} | undefined;
|
|
15317
|
+
guardian_mfa_page?: {
|
|
15318
|
+
html: string;
|
|
15319
|
+
enabled: boolean;
|
|
15320
|
+
} | undefined;
|
|
15321
|
+
default_audience?: string | undefined;
|
|
15322
|
+
sessions?: {
|
|
15323
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
15324
|
+
} | undefined;
|
|
15325
|
+
}>;
|
|
15326
|
+
export type TenantSettings = z.infer<typeof tenantSettingsSchema>;
|
|
15079
15327
|
export declare function parseUserId(user_id: string): {
|
|
15080
15328
|
connection: string;
|
|
15081
15329
|
id: string;
|
|
@@ -15348,6 +15596,10 @@ export interface UserOrganizationsAdapter {
|
|
|
15348
15596
|
} & Totals>;
|
|
15349
15597
|
update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
|
|
15350
15598
|
}
|
|
15599
|
+
export interface TenantSettingsAdapter {
|
|
15600
|
+
set: (tenant_id: string, settings: TenantSettings) => Promise<void>;
|
|
15601
|
+
get: (tenant_id: string) => Promise<TenantSettings | null>;
|
|
15602
|
+
}
|
|
15351
15603
|
export interface DataAdapters {
|
|
15352
15604
|
branding: BrandingAdapter;
|
|
15353
15605
|
cache?: CacheAdapter;
|
|
@@ -15372,6 +15624,7 @@ export interface DataAdapters {
|
|
|
15372
15624
|
roles: RolesAdapter;
|
|
15373
15625
|
sessions: SessionsAdapter;
|
|
15374
15626
|
tenants: TenantsDataAdapter;
|
|
15627
|
+
tenantSettings: TenantSettingsAdapter;
|
|
15375
15628
|
themes: ThemesAdapter;
|
|
15376
15629
|
users: UserDataAdapter;
|
|
15377
15630
|
userRoles: UserRolesAdapter;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const xe = e.object({
|
|
3
3
|
start: e.number(),
|
|
4
4
|
limit: e.number(),
|
|
5
5
|
length: e.number()
|
|
6
|
-
}),
|
|
6
|
+
}), n = e.object({
|
|
7
7
|
created_at: e.string(),
|
|
8
8
|
updated_at: e.string()
|
|
9
9
|
}), S = e.object({
|
|
@@ -50,13 +50,13 @@ const Ge = e.object({
|
|
|
50
50
|
is_social: e.boolean().optional()
|
|
51
51
|
}), A = e.object({
|
|
52
52
|
...b.shape,
|
|
53
|
-
...
|
|
53
|
+
...n.shape,
|
|
54
54
|
user_id: e.string(),
|
|
55
55
|
is_social: e.boolean(),
|
|
56
56
|
email: e.string().optional(),
|
|
57
57
|
login_count: e.number().default(0),
|
|
58
58
|
identities: e.array(f).optional()
|
|
59
|
-
}),
|
|
59
|
+
}), Ge = A, Ke = c.extend({
|
|
60
60
|
login_count: e.number(),
|
|
61
61
|
multifactor: e.array(e.string()).optional(),
|
|
62
62
|
last_ip: e.string().optional(),
|
|
@@ -64,10 +64,10 @@ const Ge = e.object({
|
|
|
64
64
|
user_id: e.string()
|
|
65
65
|
}).catchall(e.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
66
66
|
let C = (t = 21) => {
|
|
67
|
-
let
|
|
67
|
+
let i = "", s = crypto.getRandomValues(new Uint8Array(t));
|
|
68
68
|
for (; t--; )
|
|
69
|
-
|
|
70
|
-
return
|
|
69
|
+
i += I[s[t] & 63];
|
|
70
|
+
return i;
|
|
71
71
|
};
|
|
72
72
|
const O = e.object({
|
|
73
73
|
client_id: e.string().openapi({
|
|
@@ -277,11 +277,11 @@ const O = e.object({
|
|
|
277
277
|
y: e.number()
|
|
278
278
|
});
|
|
279
279
|
var _ = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(_ || {}), p = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(p || {});
|
|
280
|
-
const
|
|
280
|
+
const r = e.object({
|
|
281
281
|
id: e.string(),
|
|
282
282
|
category: e.nativeEnum(p),
|
|
283
283
|
type: e.nativeEnum(_)
|
|
284
|
-
}), R =
|
|
284
|
+
}), R = r.extend({
|
|
285
285
|
category: e.literal(
|
|
286
286
|
"BLOCK"
|
|
287
287
|
/* BLOCK */
|
|
@@ -293,7 +293,7 @@ const s = e.object({
|
|
|
293
293
|
config: e.object({
|
|
294
294
|
content: e.string()
|
|
295
295
|
}).passthrough()
|
|
296
|
-
}), L =
|
|
296
|
+
}), L = r.extend({
|
|
297
297
|
category: e.literal(
|
|
298
298
|
"BLOCK"
|
|
299
299
|
/* BLOCK */
|
|
@@ -315,7 +315,7 @@ const s = e.object({
|
|
|
315
315
|
config: e.object({
|
|
316
316
|
text: e.string()
|
|
317
317
|
}).passthrough()
|
|
318
|
-
}), D =
|
|
318
|
+
}), D = r.extend({
|
|
319
319
|
category: e.literal(
|
|
320
320
|
"FIELD"
|
|
321
321
|
/* FIELD */
|
|
@@ -329,7 +329,7 @@ const s = e.object({
|
|
|
329
329
|
config: e.object({
|
|
330
330
|
text: e.string()
|
|
331
331
|
}).passthrough()
|
|
332
|
-
}),
|
|
332
|
+
}), w = r.extend({
|
|
333
333
|
category: e.literal(
|
|
334
334
|
"FIELD"
|
|
335
335
|
/* FIELD */
|
|
@@ -382,18 +382,18 @@ const s = e.object({
|
|
|
382
382
|
label: e.string().optional(),
|
|
383
383
|
placeholder: e.string().optional()
|
|
384
384
|
}).passthrough()
|
|
385
|
-
}),
|
|
385
|
+
}), U = e.object({
|
|
386
386
|
id: e.string(),
|
|
387
387
|
category: e.string(),
|
|
388
388
|
type: e.string()
|
|
389
|
-
}).passthrough(),
|
|
389
|
+
}).passthrough(), j = e.union([
|
|
390
390
|
R,
|
|
391
391
|
L,
|
|
392
392
|
D,
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
w,
|
|
394
|
+
U
|
|
395
395
|
]);
|
|
396
|
-
var
|
|
396
|
+
var F = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(F || {});
|
|
397
397
|
const k = e.object({
|
|
398
398
|
id: e.string(),
|
|
399
399
|
type: e.literal(
|
|
@@ -403,7 +403,7 @@ const k = e.object({
|
|
|
403
403
|
coordinates: a,
|
|
404
404
|
alias: e.string().optional(),
|
|
405
405
|
config: e.object({
|
|
406
|
-
components: e.array(
|
|
406
|
+
components: e.array(j),
|
|
407
407
|
next_node: e.string()
|
|
408
408
|
}).passthrough()
|
|
409
409
|
}), v = e.object({
|
|
@@ -429,10 +429,10 @@ const k = e.object({
|
|
|
429
429
|
]), M = e.object({
|
|
430
430
|
next_node: e.string(),
|
|
431
431
|
coordinates: a
|
|
432
|
-
}).passthrough(),
|
|
432
|
+
}).passthrough(), x = e.object({
|
|
433
433
|
resume_flow: e.boolean().optional(),
|
|
434
434
|
coordinates: a
|
|
435
|
-
}).passthrough(),
|
|
435
|
+
}).passthrough(), G = e.object({
|
|
436
436
|
id: e.string(),
|
|
437
437
|
name: e.string(),
|
|
438
438
|
languages: e.object({
|
|
@@ -440,14 +440,14 @@ const k = e.object({
|
|
|
440
440
|
}).passthrough(),
|
|
441
441
|
nodes: e.array(H),
|
|
442
442
|
start: M,
|
|
443
|
-
ending:
|
|
443
|
+
ending: x,
|
|
444
444
|
created_at: e.string(),
|
|
445
445
|
updated_at: e.string(),
|
|
446
446
|
links: e.object({
|
|
447
447
|
sdkSrc: e.string().optional(),
|
|
448
448
|
sdk_src: e.string().optional()
|
|
449
449
|
}).passthrough()
|
|
450
|
-
}).passthrough(), We =
|
|
450
|
+
}).passthrough(), We = G.omit({
|
|
451
451
|
id: !0,
|
|
452
452
|
created_at: !0,
|
|
453
453
|
updated_at: !0
|
|
@@ -739,7 +739,7 @@ const q = e.enum([
|
|
|
739
739
|
}).openapi({
|
|
740
740
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
741
741
|
}), Ye = e.object({
|
|
742
|
-
...
|
|
742
|
+
...n.shape,
|
|
743
743
|
...ee.shape,
|
|
744
744
|
id: e.string()
|
|
745
745
|
}), m = e.enum([
|
|
@@ -767,19 +767,19 @@ const q = e.enum([
|
|
|
767
767
|
}), Qe = e.union([
|
|
768
768
|
te,
|
|
769
769
|
oe
|
|
770
|
-
]),
|
|
770
|
+
]), ne = e.object({
|
|
771
771
|
...l,
|
|
772
772
|
trigger_id: m,
|
|
773
|
-
...
|
|
773
|
+
...n.shape,
|
|
774
774
|
hook_id: e.string(),
|
|
775
775
|
url: e.string()
|
|
776
|
-
}),
|
|
776
|
+
}), ie = e.object({
|
|
777
777
|
...l,
|
|
778
778
|
trigger_id: h,
|
|
779
|
-
...
|
|
779
|
+
...n.shape,
|
|
780
780
|
hook_id: e.string(),
|
|
781
781
|
form_id: e.string()
|
|
782
|
-
}), Je = e.union([
|
|
782
|
+
}), Je = e.union([ne, ie]), ae = e.object({
|
|
783
783
|
alg: e.enum([
|
|
784
784
|
"RS256",
|
|
785
785
|
"RS384",
|
|
@@ -821,7 +821,7 @@ const q = e.enum([
|
|
|
821
821
|
request_uri_parameter_supported: e.boolean(),
|
|
822
822
|
request_parameter_supported: e.boolean(),
|
|
823
823
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
824
|
-
}),
|
|
824
|
+
}), se = e.object({
|
|
825
825
|
csrf_token: e.string(),
|
|
826
826
|
auth0Client: e.string().optional(),
|
|
827
827
|
authParams: K,
|
|
@@ -835,13 +835,13 @@ const q = e.enum([
|
|
|
835
835
|
}).openapi({
|
|
836
836
|
description: "This represents a login sesion"
|
|
837
837
|
}), et = e.object({
|
|
838
|
-
...
|
|
838
|
+
...se.shape,
|
|
839
839
|
id: e.string().openapi({
|
|
840
840
|
description: "This is is used as the state in the universal login"
|
|
841
841
|
}),
|
|
842
842
|
created_at: e.string(),
|
|
843
843
|
updated_at: e.string()
|
|
844
|
-
}),
|
|
844
|
+
}), re = {
|
|
845
845
|
// Network & System
|
|
846
846
|
ACLS_SUMMARY: "acls_summary",
|
|
847
847
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1009,7 +1009,7 @@ const q = e.enum([
|
|
|
1009
1009
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1010
1010
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1011
1011
|
}, le = e.string().refine(
|
|
1012
|
-
(t) => Object.values(
|
|
1012
|
+
(t) => Object.values(re).includes(t),
|
|
1013
1013
|
{ message: "Invalid log type" }
|
|
1014
1014
|
), ce = e.object({
|
|
1015
1015
|
name: e.string(),
|
|
@@ -1067,13 +1067,13 @@ const q = e.enum([
|
|
|
1067
1067
|
"Metadata related to the device used in the session"
|
|
1068
1068
|
),
|
|
1069
1069
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1070
|
-
}),
|
|
1070
|
+
}), nt = e.object({
|
|
1071
1071
|
created_at: e.string(),
|
|
1072
1072
|
updated_at: e.string(),
|
|
1073
1073
|
authenticated_at: e.string(),
|
|
1074
1074
|
last_interaction_at: e.string(),
|
|
1075
1075
|
...pe.shape
|
|
1076
|
-
}),
|
|
1076
|
+
}), it = e.object({
|
|
1077
1077
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1078
1078
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1079
1079
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1173,9 +1173,9 @@ const ge = e.object({
|
|
|
1173
1173
|
fonts: me,
|
|
1174
1174
|
page_background: he,
|
|
1175
1175
|
widget: Ee
|
|
1176
|
-
}),
|
|
1176
|
+
}), st = Se.extend({
|
|
1177
1177
|
themeId: e.string()
|
|
1178
|
-
}),
|
|
1178
|
+
}), rt = e.object({
|
|
1179
1179
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1180
1180
|
identifier_first: e.boolean().default(!0),
|
|
1181
1181
|
password_first: e.boolean().default(!1),
|
|
@@ -1312,25 +1312,25 @@ const ge = e.object({
|
|
|
1312
1312
|
user_id: e.string(),
|
|
1313
1313
|
role_id: e.string(),
|
|
1314
1314
|
organization_id: e.string().optional()
|
|
1315
|
-
}),
|
|
1315
|
+
}), we = e.object({
|
|
1316
1316
|
...De.shape,
|
|
1317
1317
|
tenant_id: e.string(),
|
|
1318
1318
|
created_at: e.string().optional()
|
|
1319
|
-
}), Et = e.array(
|
|
1319
|
+
}), Et = e.array(we), Ue = e.object({
|
|
1320
1320
|
name: e.string().min(1).max(50).openapi({
|
|
1321
1321
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1322
1322
|
}),
|
|
1323
1323
|
description: e.string().max(255).optional().openapi({
|
|
1324
1324
|
description: "The description of the role"
|
|
1325
1325
|
})
|
|
1326
|
-
}),
|
|
1326
|
+
}), je = e.object({
|
|
1327
1327
|
id: e.string().openapi({
|
|
1328
1328
|
description: "The unique identifier of the role"
|
|
1329
1329
|
}),
|
|
1330
|
-
...
|
|
1330
|
+
...Ue.shape,
|
|
1331
1331
|
created_at: e.string().optional(),
|
|
1332
1332
|
updated_at: e.string().optional()
|
|
1333
|
-
}), St = e.array(
|
|
1333
|
+
}), St = e.array(je), Fe = e.object({
|
|
1334
1334
|
logo_url: e.string().optional().openapi({
|
|
1335
1335
|
description: "URL of the organization's logo"
|
|
1336
1336
|
}),
|
|
@@ -1375,7 +1375,7 @@ const ge = e.object({
|
|
|
1375
1375
|
display_name: e.string().optional().openapi({
|
|
1376
1376
|
description: "The display name of the organization"
|
|
1377
1377
|
}),
|
|
1378
|
-
branding:
|
|
1378
|
+
branding: Fe,
|
|
1379
1379
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1380
1380
|
description: "Custom metadata for the organization"
|
|
1381
1381
|
}),
|
|
@@ -1385,7 +1385,7 @@ const ge = e.object({
|
|
|
1385
1385
|
token_quota: ve
|
|
1386
1386
|
}), ft = e.object({
|
|
1387
1387
|
...Pe.shape,
|
|
1388
|
-
...
|
|
1388
|
+
...n.shape,
|
|
1389
1389
|
id: e.string()
|
|
1390
1390
|
}), He = e.object({
|
|
1391
1391
|
user_id: e.string().openapi({
|
|
@@ -1396,14 +1396,83 @@ const ge = e.object({
|
|
|
1396
1396
|
})
|
|
1397
1397
|
}), bt = e.object({
|
|
1398
1398
|
...He.shape,
|
|
1399
|
-
...
|
|
1399
|
+
...n.shape,
|
|
1400
1400
|
id: e.string()
|
|
1401
|
+
}), At = e.object({
|
|
1402
|
+
// Session settings
|
|
1403
|
+
idle_session_lifetime: e.number().optional(),
|
|
1404
|
+
session_lifetime: e.number().optional(),
|
|
1405
|
+
session_cookie: e.object({
|
|
1406
|
+
mode: e.enum(["persistent", "non-persistent"]).optional()
|
|
1407
|
+
}).optional(),
|
|
1408
|
+
// MFA settings
|
|
1409
|
+
enable_client_connections: e.boolean().optional(),
|
|
1410
|
+
// Universal Login settings
|
|
1411
|
+
default_redirection_uri: e.string().optional(),
|
|
1412
|
+
// Advanced settings
|
|
1413
|
+
enabled_locales: e.array(e.string()).optional(),
|
|
1414
|
+
default_directory: e.string().optional(),
|
|
1415
|
+
error_page: e.object({
|
|
1416
|
+
html: e.string().optional(),
|
|
1417
|
+
show_log_link: e.boolean().optional(),
|
|
1418
|
+
url: e.string().optional()
|
|
1419
|
+
}).optional(),
|
|
1420
|
+
// Flags
|
|
1421
|
+
flags: e.object({
|
|
1422
|
+
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
1423
|
+
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
1424
|
+
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
1425
|
+
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
1426
|
+
enable_apis_section: e.boolean().optional(),
|
|
1427
|
+
enable_client_connections: e.boolean().optional(),
|
|
1428
|
+
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
1429
|
+
enable_dynamic_client_registration: e.boolean().optional(),
|
|
1430
|
+
enable_idtoken_api2: e.boolean().optional(),
|
|
1431
|
+
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
1432
|
+
enable_legacy_profile: e.boolean().optional(),
|
|
1433
|
+
enable_pipeline2: e.boolean().optional(),
|
|
1434
|
+
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
1435
|
+
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
1436
|
+
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
1437
|
+
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
1438
|
+
revoke_refresh_token_grant: e.boolean().optional(),
|
|
1439
|
+
dashboard_log_streams_next: e.boolean().optional(),
|
|
1440
|
+
dashboard_insights_view: e.boolean().optional(),
|
|
1441
|
+
disable_fields_map_fix: e.boolean().optional(),
|
|
1442
|
+
mfa_show_factor_list_on_enrollment: e.boolean().optional()
|
|
1443
|
+
}).optional(),
|
|
1444
|
+
// Additional settings
|
|
1445
|
+
friendly_name: e.string().optional(),
|
|
1446
|
+
picture_url: e.string().optional(),
|
|
1447
|
+
support_email: e.string().optional(),
|
|
1448
|
+
support_url: e.string().optional(),
|
|
1449
|
+
// Sandbox settings
|
|
1450
|
+
sandbox_version: e.string().optional(),
|
|
1451
|
+
sandbox_versions_available: e.array(e.string()).optional(),
|
|
1452
|
+
// Change password settings
|
|
1453
|
+
change_password: e.object({
|
|
1454
|
+
enabled: e.boolean(),
|
|
1455
|
+
html: e.string()
|
|
1456
|
+
}).optional(),
|
|
1457
|
+
// Guardian MFA settings
|
|
1458
|
+
guardian_mfa_page: e.object({
|
|
1459
|
+
enabled: e.boolean(),
|
|
1460
|
+
html: e.string()
|
|
1461
|
+
}).optional(),
|
|
1462
|
+
// Default audience
|
|
1463
|
+
default_audience: e.string().optional(),
|
|
1464
|
+
// Default directory
|
|
1465
|
+
default_organization: e.string().optional(),
|
|
1466
|
+
// Session management
|
|
1467
|
+
sessions: e.object({
|
|
1468
|
+
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1469
|
+
}).optional()
|
|
1401
1470
|
});
|
|
1402
|
-
function
|
|
1403
|
-
const [
|
|
1404
|
-
if (!
|
|
1471
|
+
function It(t) {
|
|
1472
|
+
const [i, s] = t.split("|");
|
|
1473
|
+
if (!i || !s)
|
|
1405
1474
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1406
|
-
return { connection:
|
|
1475
|
+
return { connection: i, id: s };
|
|
1407
1476
|
}
|
|
1408
1477
|
export {
|
|
1409
1478
|
ce as Auth0Client,
|
|
@@ -1413,11 +1482,11 @@ export {
|
|
|
1413
1482
|
p as ComponentCategory,
|
|
1414
1483
|
_ as ComponentType,
|
|
1415
1484
|
de as GrantType,
|
|
1416
|
-
|
|
1417
|
-
|
|
1485
|
+
re as LogTypes,
|
|
1486
|
+
F as NodeType,
|
|
1418
1487
|
We as auth0FlowInsertSchema,
|
|
1419
|
-
|
|
1420
|
-
|
|
1488
|
+
G as auth0FlowSchema,
|
|
1489
|
+
Ge as auth0UserResponseSchema,
|
|
1421
1490
|
K as authParamsSchema,
|
|
1422
1491
|
c as baseUserSchema,
|
|
1423
1492
|
ge as bordersSchema,
|
|
@@ -1432,7 +1501,7 @@ export {
|
|
|
1432
1501
|
Xe as codeSchema,
|
|
1433
1502
|
q as codeTypeSchema,
|
|
1434
1503
|
ue as colorsSchema,
|
|
1435
|
-
|
|
1504
|
+
j as componentSchema,
|
|
1436
1505
|
W as connectionInsertSchema,
|
|
1437
1506
|
B as connectionOptionsSchema,
|
|
1438
1507
|
z as connectionSchema,
|
|
@@ -1441,8 +1510,8 @@ export {
|
|
|
1441
1510
|
Z as customDomainSchema,
|
|
1442
1511
|
Ve as customDomainWithTenantIdSchema,
|
|
1443
1512
|
lt as emailProviderSchema,
|
|
1444
|
-
|
|
1445
|
-
|
|
1513
|
+
x as endingSchema,
|
|
1514
|
+
w as fieldComponentSchema,
|
|
1446
1515
|
v as flowNodeSchema,
|
|
1447
1516
|
o as fontDetailsSchema,
|
|
1448
1517
|
me as fontsSchema,
|
|
@@ -1450,7 +1519,7 @@ export {
|
|
|
1450
1519
|
ee as formInsertSchema,
|
|
1451
1520
|
$ as formNodeComponentDefinition,
|
|
1452
1521
|
Ye as formSchema,
|
|
1453
|
-
|
|
1522
|
+
U as genericComponentSchema,
|
|
1454
1523
|
P as genericNodeSchema,
|
|
1455
1524
|
Qe as hookInsertSchema,
|
|
1456
1525
|
Je as hookSchema,
|
|
@@ -1459,21 +1528,21 @@ export {
|
|
|
1459
1528
|
ae as jwksSchema,
|
|
1460
1529
|
D as legalComponentSchema,
|
|
1461
1530
|
tt as logSchema,
|
|
1462
|
-
|
|
1531
|
+
se as loginSessionInsertSchema,
|
|
1463
1532
|
et as loginSessionSchema,
|
|
1464
1533
|
H as nodeSchema,
|
|
1465
1534
|
$e as openIDConfigurationSchema,
|
|
1466
|
-
|
|
1535
|
+
Fe as organizationBrandingSchema,
|
|
1467
1536
|
ke as organizationEnabledConnectionSchema,
|
|
1468
1537
|
Pe as organizationInsertSchema,
|
|
1469
1538
|
ft as organizationSchema,
|
|
1470
1539
|
ve as organizationTokenQuotaSchema,
|
|
1471
1540
|
he as pageBackgroundSchema,
|
|
1472
|
-
|
|
1541
|
+
It as parseUserId,
|
|
1473
1542
|
_e as passwordInsertSchema,
|
|
1474
1543
|
ot as passwordSchema,
|
|
1475
1544
|
S as profileDataSchema,
|
|
1476
|
-
|
|
1545
|
+
rt as promptSettingSchema,
|
|
1477
1546
|
fe as refreshTokenInsertSchema,
|
|
1478
1547
|
ct as refreshTokenSchema,
|
|
1479
1548
|
Ie as resourceServerInsertSchema,
|
|
@@ -1482,27 +1551,28 @@ export {
|
|
|
1482
1551
|
Ce as resourceServerSchema,
|
|
1483
1552
|
be as resourceServerScopeSchema,
|
|
1484
1553
|
R as richTextComponentSchema,
|
|
1485
|
-
|
|
1554
|
+
Ue as roleInsertSchema,
|
|
1486
1555
|
St as roleListSchema,
|
|
1487
1556
|
Oe as rolePermissionInsertSchema,
|
|
1488
1557
|
gt as rolePermissionListSchema,
|
|
1489
1558
|
Te as rolePermissionSchema,
|
|
1490
1559
|
ut as rolePermissionWithDetailsListSchema,
|
|
1491
1560
|
Ne as rolePermissionWithDetailsSchema,
|
|
1492
|
-
|
|
1561
|
+
je as roleSchema,
|
|
1493
1562
|
pe as sessionInsertSchema,
|
|
1494
|
-
|
|
1495
|
-
|
|
1563
|
+
nt as sessionSchema,
|
|
1564
|
+
it as signingKeySchema,
|
|
1496
1565
|
pt as smsProviderSchema,
|
|
1497
1566
|
_t as smsSendParamsSchema,
|
|
1498
1567
|
M as startSchema,
|
|
1499
1568
|
k as stepNodeSchema,
|
|
1500
1569
|
X as tenantInsertSchema,
|
|
1501
1570
|
V as tenantSchema,
|
|
1571
|
+
At as tenantSettingsSchema,
|
|
1502
1572
|
Se as themeInsertSchema,
|
|
1503
|
-
|
|
1573
|
+
st as themeSchema,
|
|
1504
1574
|
at as tokenResponseSchema,
|
|
1505
|
-
|
|
1575
|
+
xe as totalsSchema,
|
|
1506
1576
|
b as userInsertSchema,
|
|
1507
1577
|
He as userOrganizationInsertSchema,
|
|
1508
1578
|
bt as userOrganizationSchema,
|
|
@@ -1514,7 +1584,7 @@ export {
|
|
|
1514
1584
|
Ke as userResponseSchema,
|
|
1515
1585
|
De as userRoleInsertSchema,
|
|
1516
1586
|
Et as userRoleListSchema,
|
|
1517
|
-
|
|
1587
|
+
we as userRoleSchema,
|
|
1518
1588
|
A as userSchema,
|
|
1519
1589
|
J as verificationMethodsSchema,
|
|
1520
1590
|
Ee as widgetSchema
|