@authhero/adapter-interfaces 0.101.0 → 0.102.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),ve=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()}),Fe=S,Pe=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()),Me="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let He=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)a+=Me[s[t]&63];return a};const b=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(()=>He()).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()}),E=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...b.shape}),f=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."}),...f.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),xe=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()}),y=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([I,C,O,T,y]);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(N),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(),j=e.z.union([L,D,w]),k=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),U=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),v=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(j),start:k,ending:U,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(),Ge=v.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 F=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()}),Ke=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({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional()}),G=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...x.shape,id:e.z.string()});e.z.object({...E.shape,tenant:G,connections:e.z.array(H)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),B=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()}),Be=e.z.object({...B.shape,created_at:e.z.string()}),W=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({...W.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()}),We=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)"}),Ve=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),J=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},qe=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Ye=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Qe=e.z.union([qe,Ye]),Je=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),Ze=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),$e=e.z.union([Je,Ze]),Z=e.z.object({name:e.z.string().optional()}),$=e.z.object({email:e.z.string().optional()}),ee=e.z.object({organization_id:e.z.string().max(50),inviter:Z,invitee:$,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(!0).optional()}),et=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(ee.shape),te=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),tt=e.z.object({keys:e.z.array(te)}),ot=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())}),oe=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:F,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"}),nt=e.z.object({...oe.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()}),ne={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"},it=e.z.string().refine(t=>Object.values(ne).includes(t),{message:"Invalid log type"}),ie=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),ae=e.z.object({country_code:e.z.string().length(2),country_code3:e.z.string().length(3),country_name:e.z.string(),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),se=e.z.object({type:it,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ie.optional(),log_id:e.z.string().optional(),location_info:ae.optional()}),at=e.z.object({...se.shape,log_id:e.z.string()}),re=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(!0)}),st=re.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),le=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")}),ce=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:le.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),rt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ce.shape}),lt=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 _e=(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))(_e||{});const ct=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 pe=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()}),de=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()}),ze=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}),ge=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),ue=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"])}),me=e.z.object({borders:pe,colors:de,displayName:e.z.string(),fonts:ze,page_background:ge,widget:ue}),_t=me.extend({themeId:e.z.string()}),pt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),dt=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()}),he=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:le,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),zt=e.z.object({created_at:e.z.string(),...he.shape}),gt=e.z.object({to:e.z.string(),message:e.z.string()}),ut=e.z.object({name:e.z.string(),options:e.z.object({})}),Se=e.z.object({value:e.z.string(),description:e.z.string().optional()}),be=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()}),Ee=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Se).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:be.optional()}),fe=e.z.object({id:e.z.string().optional(),...Ee.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),mt=e.z.array(fe),Ae=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Ie=e.z.object({...Ae.shape,created_at:e.z.string()}),ht=e.z.array(Ie),Ce=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()}),Oe=e.z.object({...Ce.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),St=e.z.array(Oe),Te=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()}),bt=e.z.array(Te),ye=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ne=e.z.object({...ye.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Et=e.z.array(Ne),Re=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"})}),Le=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Re.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ft=e.z.array(Le),De=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(),we=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"})}),je=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(),ke=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:De,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(we).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:je}),At=e.z.object({...ke.shape,...n.shape,id:e.z.string()}),Ue=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"})}),It=e.z.object({...Ue.shape,...n.shape,id:e.z.string()}),Ct=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 Ot(t){const[a,s]=t.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:s}}exports.Auth0Client=ie;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=_e;exports.LocationInfo=ae;exports.LogTypes=ne;exports.NodeType=R;exports.auth0FlowInsertSchema=Ge;exports.auth0FlowSchema=v;exports.auth0UserResponseSchema=Fe;exports.authParamsSchema=F;exports.baseUserSchema=c;exports.bordersSchema=pe;exports.brandingSchema=Ke;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=f;exports.clientGrantListSchema=xe;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=E;exports.codeInsertSchema=B;exports.codeSchema=Be;exports.codeTypeSchema=K;exports.colorsSchema=de;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=H;exports.coordinatesSchema=i;exports.customDomainInsertSchema=W;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=We;exports.emailProviderSchema=dt;exports.endingSchema=U;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=ze;exports.formControlSchema=Xe;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=Ve;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Qe;exports.hookSchema=$e;exports.identitySchema=m;exports.inviteInsertSchema=ee;exports.inviteSchema=et;exports.inviteeSchema=$;exports.inviterSchema=Z;exports.jwksKeySchema=tt;exports.jwksSchema=te;exports.legalComponentSchema=O;exports.logInsertSchema=se;exports.logSchema=at;exports.loginSessionInsertSchema=oe;exports.loginSessionSchema=nt;exports.nodeSchema=j;exports.openIDConfigurationSchema=ot;exports.organizationBrandingSchema=De;exports.organizationEnabledConnectionSchema=we;exports.organizationInsertSchema=ke;exports.organizationSchema=At;exports.organizationTokenQuotaSchema=je;exports.pageBackgroundSchema=ge;exports.parseUserId=Ot;exports.passwordInsertSchema=re;exports.passwordSchema=st;exports.profileDataSchema=u;exports.promptSettingSchema=pt;exports.refreshTokenInsertSchema=he;exports.refreshTokenSchema=zt;exports.resourceServerInsertSchema=Ee;exports.resourceServerListSchema=mt;exports.resourceServerOptionsSchema=be;exports.resourceServerSchema=fe;exports.resourceServerScopeSchema=Se;exports.richTextComponentSchema=I;exports.roleInsertSchema=Re;exports.roleListSchema=ft;exports.rolePermissionInsertSchema=Ae;exports.rolePermissionListSchema=ht;exports.rolePermissionSchema=Ie;exports.roleSchema=Le;exports.sessionInsertSchema=ce;exports.sessionSchema=rt;exports.signingKeySchema=lt;exports.smsProviderSchema=ut;exports.smsSendParamsSchema=gt;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=x;exports.tenantSchema=G;exports.tenantSettingsSchema=Ct;exports.themeInsertSchema=me;exports.themeSchema=_t;exports.tokenResponseSchema=ct;exports.totalsSchema=ve;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=Ue;exports.userOrganizationSchema=It;exports.userPermissionInsertSchema=Ce;exports.userPermissionListSchema=St;exports.userPermissionSchema=Oe;exports.userPermissionWithDetailsListSchema=bt;exports.userPermissionWithDetailsSchema=Te;exports.userResponseSchema=Pe;exports.userRoleInsertSchema=ye;exports.userRoleListSchema=Et;exports.userRoleSchema=Ne;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),Ue=e.z.object({page:e.z.string().min(0).optional().default("0").transform(t=>parseInt(t,10)).openapi({description:"The page number where 0 is the first page"}),per_page:e.z.string().min(1).optional().default("10").transform(t=>parseInt(t,10)).openapi({description:"The number of items per page"}),include_totals:e.z.string().optional().default("false").transform(t=>t==="true").openapi({description:"If the total number of items should be included in the response"}),sort:e.z.string().regex(/^.+:(-1|1)$/).optional().openapi({description:"A property that should have the format 'string:-1' or 'string:1'"}),q:e.z.string().optional().openapi({description:"A lucene query string used to filter the results"})}),Fe=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().optional(),connection:e.z.string(),is_social:e.z.boolean().optional()}),S=e.z.object({...h.shape,...n.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(m).optional()}),Pe=S,Me=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()),xe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let He=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)a+=xe[s[t]&63];return a};const b=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(()=>He()).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(),...b.shape}),E=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."}),...E.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Ge=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()}),y=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([I,C,O,T,y]);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(N),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(),j=e.z.union([L,D,w]),k=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),v=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),U=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(j),start:k,ending:v,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(),Ke=U.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 F=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()}),Be=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()}),x=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),H=e.z.object({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional()}),G=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...H.shape,id:e.z.string()});e.z.object({...f.shape,tenant:G,connections:e.z.array(x)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),B=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()}),We=e.z.object({...B.shape,created_at:e.z.string()}),W=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({...W.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()}),Ve=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)"}),qe=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),J=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Ye=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Qe=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Je=e.z.union([Ye,Qe]),Ze=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),$e=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),et=e.z.union([Ze,$e]),Z=e.z.object({name:e.z.string().optional()}),$=e.z.object({email:e.z.string().optional()}),ee=e.z.object({organization_id:e.z.string().max(50),inviter:Z,invitee:$,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(!0).optional()}),tt=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(ee.shape),te=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),ot=e.z.object({keys:e.z.array(te)}),nt=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())}),oe=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:F,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"}),it=e.z.object({...oe.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()}),ne={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"},at=e.z.string().refine(t=>Object.values(ne).includes(t),{message:"Invalid log type"}),ie=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),ae=e.z.object({country_code:e.z.string().length(2),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),se=e.z.object({type:at,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ie.optional(),log_id:e.z.string().optional(),location_info:ae.optional()}),st=e.z.object({...se.shape,log_id:e.z.string()}),re=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(!0)}),rt=re.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),le=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")}),ce=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:le.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")}),lt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ce.shape}),ct=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 _e=(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))(_e||{});const _t=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 pe=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()}),de=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()}),ze=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}),ge=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),ue=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"])}),me=e.z.object({borders:pe,colors:de,displayName:e.z.string(),fonts:ze,page_background:ge,widget:ue}),pt=me.extend({themeId:e.z.string()}),dt=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()}),zt=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()}),he=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:le,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),gt=e.z.object({created_at:e.z.string(),...he.shape}),ut=e.z.object({to:e.z.string(),message:e.z.string()}),mt=e.z.object({name:e.z.string(),options:e.z.object({})}),Se=e.z.object({value:e.z.string(),description:e.z.string().optional()}),be=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()}),fe=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Se).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:be.optional()}),Ee=e.z.object({id:e.z.string().optional(),...fe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ht=e.z.array(Ee),Ae=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Ie=e.z.object({...Ae.shape,created_at:e.z.string()}),St=e.z.array(Ie),Ce=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()}),Oe=e.z.object({...Ce.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),bt=e.z.array(Oe),Te=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()}),ft=e.z.array(Te),ye=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ne=e.z.object({...ye.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Et=e.z.array(Ne),Re=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"})}),Le=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Re.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),At=e.z.array(Le),De=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(),we=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"})}),je=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(),ke=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:De,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(we).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:je}),It=e.z.object({...ke.shape,...n.shape,id:e.z.string()}),ve=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"})}),Ct=e.z.object({...ve.shape,...n.shape,id:e.z.string()}),Ot=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 Tt(t){const[a,s]=t.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:s}}exports.Auth0Client=ie;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=_e;exports.LocationInfo=ae;exports.LogTypes=ne;exports.NodeType=R;exports.auth0FlowInsertSchema=Ke;exports.auth0FlowSchema=U;exports.auth0QuerySchema=Ue;exports.auth0UserResponseSchema=Pe;exports.authParamsSchema=F;exports.baseUserSchema=c;exports.bordersSchema=pe;exports.brandingSchema=Be;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=E;exports.clientGrantListSchema=Ge;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=f;exports.codeInsertSchema=B;exports.codeSchema=We;exports.codeTypeSchema=K;exports.colorsSchema=de;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=x;exports.coordinatesSchema=i;exports.customDomainInsertSchema=W;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=Xe;exports.emailProviderSchema=zt;exports.endingSchema=v;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=ze;exports.formControlSchema=Ve;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=qe;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Je;exports.hookSchema=et;exports.identitySchema=m;exports.inviteInsertSchema=ee;exports.inviteSchema=tt;exports.inviteeSchema=$;exports.inviterSchema=Z;exports.jwksKeySchema=ot;exports.jwksSchema=te;exports.legalComponentSchema=O;exports.logInsertSchema=se;exports.logSchema=st;exports.loginSessionInsertSchema=oe;exports.loginSessionSchema=it;exports.nodeSchema=j;exports.openIDConfigurationSchema=nt;exports.organizationBrandingSchema=De;exports.organizationEnabledConnectionSchema=we;exports.organizationInsertSchema=ke;exports.organizationSchema=It;exports.organizationTokenQuotaSchema=je;exports.pageBackgroundSchema=ge;exports.parseUserId=Tt;exports.passwordInsertSchema=re;exports.passwordSchema=rt;exports.profileDataSchema=u;exports.promptSettingSchema=dt;exports.refreshTokenInsertSchema=he;exports.refreshTokenSchema=gt;exports.resourceServerInsertSchema=fe;exports.resourceServerListSchema=ht;exports.resourceServerOptionsSchema=be;exports.resourceServerSchema=Ee;exports.resourceServerScopeSchema=Se;exports.richTextComponentSchema=I;exports.roleInsertSchema=Re;exports.roleListSchema=At;exports.rolePermissionInsertSchema=Ae;exports.rolePermissionListSchema=St;exports.rolePermissionSchema=Ie;exports.roleSchema=Le;exports.sessionInsertSchema=ce;exports.sessionSchema=lt;exports.signingKeySchema=ct;exports.smsProviderSchema=mt;exports.smsSendParamsSchema=ut;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=H;exports.tenantSchema=G;exports.tenantSettingsSchema=Ot;exports.themeInsertSchema=me;exports.themeSchema=pt;exports.tokenResponseSchema=_t;exports.totalsSchema=Fe;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=ve;exports.userOrganizationSchema=Ct;exports.userPermissionInsertSchema=Ce;exports.userPermissionListSchema=bt;exports.userPermissionSchema=Oe;exports.userPermissionWithDetailsListSchema=ft;exports.userPermissionWithDetailsSchema=Te;exports.userResponseSchema=Me;exports.userRoleInsertSchema=ye;exports.userRoleListSchema=Et;exports.userRoleSchema=Ne;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=ue;
@@ -2,18 +2,37 @@
2
2
 
3
3
  import { z } from '@hono/zod-openapi';
4
4
 
5
+ export declare const auth0QuerySchema: z.ZodObject<{
6
+ page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
7
+ per_page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
8
+ include_totals: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, boolean, string | undefined>;
9
+ sort: z.ZodOptional<z.ZodString>;
10
+ q: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ page: number;
13
+ per_page: number;
14
+ include_totals: boolean;
15
+ sort?: string | undefined;
16
+ q?: string | undefined;
17
+ }, {
18
+ page?: string | undefined;
19
+ sort?: string | undefined;
20
+ per_page?: string | undefined;
21
+ include_totals?: string | undefined;
22
+ q?: string | undefined;
23
+ }>;
5
24
  export declare const totalsSchema: z.ZodObject<{
6
25
  start: z.ZodNumber;
7
26
  limit: z.ZodNumber;
8
27
  length: z.ZodNumber;
9
28
  }, "strip", z.ZodTypeAny, {
29
+ length: number;
10
30
  start: number;
11
31
  limit: number;
12
- length: number;
13
32
  }, {
33
+ length: number;
14
34
  start: number;
15
35
  limit: number;
16
- length: number;
17
36
  }>;
18
37
  export interface Totals {
19
38
  start: number;
@@ -87,13 +106,12 @@ export declare const userInsertSchema: z.ZodObject<{
87
106
  last_ip: z.ZodOptional<z.ZodString>;
88
107
  last_login: z.ZodOptional<z.ZodString>;
89
108
  user_id: z.ZodOptional<z.ZodString>;
90
- provider: z.ZodDefault<z.ZodString>;
91
- connection: z.ZodDefault<z.ZodString>;
109
+ provider: z.ZodOptional<z.ZodString>;
110
+ connection: z.ZodString;
92
111
  is_social: z.ZodOptional<z.ZodBoolean>;
93
112
  }, "strip", z.ZodTypeAny, {
94
113
  email_verified: boolean;
95
114
  connection: string;
96
- provider: string;
97
115
  email?: string | undefined;
98
116
  name?: string | undefined;
99
117
  username?: string | undefined;
@@ -101,6 +119,7 @@ export declare const userInsertSchema: z.ZodObject<{
101
119
  phone_number?: string | undefined;
102
120
  family_name?: string | undefined;
103
121
  user_id?: string | undefined;
122
+ provider?: string | undefined;
104
123
  profileData?: string | undefined;
105
124
  nickname?: string | undefined;
106
125
  picture?: string | undefined;
@@ -113,6 +132,7 @@ export declare const userInsertSchema: z.ZodObject<{
113
132
  last_login?: string | undefined;
114
133
  is_social?: boolean | undefined;
115
134
  }, {
135
+ connection: string;
116
136
  email?: string | undefined;
117
137
  email_verified?: boolean | undefined;
118
138
  name?: string | undefined;
@@ -120,7 +140,6 @@ export declare const userInsertSchema: z.ZodObject<{
120
140
  given_name?: string | undefined;
121
141
  phone_number?: string | undefined;
122
142
  family_name?: string | undefined;
123
- connection?: string | undefined;
124
143
  user_id?: string | undefined;
125
144
  provider?: string | undefined;
126
145
  profileData?: string | undefined;
@@ -138,6 +157,7 @@ export declare const userInsertSchema: z.ZodObject<{
138
157
  export type UserInsert = z.infer<typeof userInsertSchema>;
139
158
  export declare const userSchema: z.ZodObject<{
140
159
  user_id: z.ZodString;
160
+ provider: z.ZodString;
141
161
  is_social: z.ZodBoolean;
142
162
  email: z.ZodOptional<z.ZodString>;
143
163
  login_count: z.ZodDefault<z.ZodNumber>;
@@ -232,8 +252,7 @@ export declare const userSchema: z.ZodObject<{
232
252
  verify_email: z.ZodOptional<z.ZodBoolean>;
233
253
  last_ip: z.ZodOptional<z.ZodString>;
234
254
  last_login: z.ZodOptional<z.ZodString>;
235
- provider: z.ZodDefault<z.ZodString>;
236
- connection: z.ZodDefault<z.ZodString>;
255
+ connection: z.ZodString;
237
256
  }, "strip", z.ZodTypeAny, {
238
257
  created_at: string;
239
258
  updated_at: string;
@@ -281,7 +300,9 @@ export declare const userSchema: z.ZodObject<{
281
300
  }, {
282
301
  created_at: string;
283
302
  updated_at: string;
303
+ connection: string;
284
304
  user_id: string;
305
+ provider: string;
285
306
  is_social: boolean;
286
307
  email?: string | undefined;
287
308
  email_verified?: boolean | undefined;
@@ -290,8 +311,6 @@ export declare const userSchema: z.ZodObject<{
290
311
  given_name?: string | undefined;
291
312
  phone_number?: string | undefined;
292
313
  family_name?: string | undefined;
293
- connection?: string | undefined;
294
- provider?: string | undefined;
295
314
  profileData?: string | undefined;
296
315
  nickname?: string | undefined;
297
316
  picture?: string | undefined;
@@ -326,6 +345,7 @@ export declare const userSchema: z.ZodObject<{
326
345
  export type User = z.infer<typeof userSchema>;
327
346
  export declare const auth0UserResponseSchema: z.ZodObject<{
328
347
  user_id: z.ZodString;
348
+ provider: z.ZodString;
329
349
  is_social: z.ZodBoolean;
330
350
  email: z.ZodOptional<z.ZodString>;
331
351
  login_count: z.ZodDefault<z.ZodNumber>;
@@ -420,8 +440,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
420
440
  verify_email: z.ZodOptional<z.ZodBoolean>;
421
441
  last_ip: z.ZodOptional<z.ZodString>;
422
442
  last_login: z.ZodOptional<z.ZodString>;
423
- provider: z.ZodDefault<z.ZodString>;
424
- connection: z.ZodDefault<z.ZodString>;
443
+ connection: z.ZodString;
425
444
  }, "strip", z.ZodTypeAny, {
426
445
  created_at: string;
427
446
  updated_at: string;
@@ -469,7 +488,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
469
488
  }, {
470
489
  created_at: string;
471
490
  updated_at: string;
491
+ connection: string;
472
492
  user_id: string;
493
+ provider: string;
473
494
  is_social: boolean;
474
495
  email?: string | undefined;
475
496
  email_verified?: boolean | undefined;
@@ -478,8 +499,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
478
499
  given_name?: string | undefined;
479
500
  phone_number?: string | undefined;
480
501
  family_name?: string | undefined;
481
- connection?: string | undefined;
482
- provider?: string | undefined;
483
502
  profileData?: string | undefined;
484
503
  nickname?: string | undefined;
485
504
  picture?: string | undefined;
@@ -8178,29 +8197,29 @@ export declare const brandingSchema: z.ZodObject<{
8178
8197
  end: z.ZodOptional<z.ZodString>;
8179
8198
  angle_deg: z.ZodOptional<z.ZodNumber>;
8180
8199
  }, "strip", z.ZodTypeAny, {
8181
- start?: string | undefined;
8182
8200
  type?: string | undefined;
8201
+ start?: string | undefined;
8183
8202
  end?: string | undefined;
8184
8203
  angle_deg?: number | undefined;
8185
8204
  }, {
8186
- start?: string | undefined;
8187
8205
  type?: string | undefined;
8206
+ start?: string | undefined;
8188
8207
  end?: string | undefined;
8189
8208
  angle_deg?: number | undefined;
8190
8209
  }>>;
8191
8210
  }, "strip", z.ZodTypeAny, {
8192
8211
  primary: string;
8193
8212
  page_background?: {
8194
- start?: string | undefined;
8195
8213
  type?: string | undefined;
8214
+ start?: string | undefined;
8196
8215
  end?: string | undefined;
8197
8216
  angle_deg?: number | undefined;
8198
8217
  } | undefined;
8199
8218
  }, {
8200
8219
  primary: string;
8201
8220
  page_background?: {
8202
- start?: string | undefined;
8203
8221
  type?: string | undefined;
8222
+ start?: string | undefined;
8204
8223
  end?: string | undefined;
8205
8224
  angle_deg?: number | undefined;
8206
8225
  } | undefined;
@@ -8219,8 +8238,8 @@ export declare const brandingSchema: z.ZodObject<{
8219
8238
  colors?: {
8220
8239
  primary: string;
8221
8240
  page_background?: {
8222
- start?: string | undefined;
8223
8241
  type?: string | undefined;
8242
+ start?: string | undefined;
8224
8243
  end?: string | undefined;
8225
8244
  angle_deg?: number | undefined;
8226
8245
  } | undefined;
@@ -8235,8 +8254,8 @@ export declare const brandingSchema: z.ZodObject<{
8235
8254
  colors?: {
8236
8255
  primary: string;
8237
8256
  page_background?: {
8238
- start?: string | undefined;
8239
8257
  type?: string | undefined;
8258
+ start?: string | undefined;
8240
8259
  end?: string | undefined;
8241
8260
  angle_deg?: number | undefined;
8242
8261
  } | undefined;
@@ -12790,8 +12809,6 @@ export declare const Auth0Client: z.ZodObject<{
12790
12809
  }>;
12791
12810
  export declare const LocationInfo: z.ZodObject<{
12792
12811
  country_code: z.ZodString;
12793
- country_code3: z.ZodString;
12794
- country_name: z.ZodString;
12795
12812
  city_name: z.ZodString;
12796
12813
  latitude: z.ZodString;
12797
12814
  longitude: z.ZodString;
@@ -12799,8 +12816,6 @@ export declare const LocationInfo: z.ZodObject<{
12799
12816
  continent_code: z.ZodString;
12800
12817
  }, "strip", z.ZodTypeAny, {
12801
12818
  country_code: string;
12802
- country_code3: string;
12803
- country_name: string;
12804
12819
  city_name: string;
12805
12820
  latitude: string;
12806
12821
  longitude: string;
@@ -12808,8 +12823,6 @@ export declare const LocationInfo: z.ZodObject<{
12808
12823
  continent_code: string;
12809
12824
  }, {
12810
12825
  country_code: string;
12811
- country_code3: string;
12812
- country_name: string;
12813
12826
  city_name: string;
12814
12827
  latitude: string;
12815
12828
  longitude: string;
@@ -12861,8 +12874,6 @@ export declare const logInsertSchema: z.ZodObject<{
12861
12874
  log_id: z.ZodOptional<z.ZodString>;
12862
12875
  location_info: z.ZodOptional<z.ZodObject<{
12863
12876
  country_code: z.ZodString;
12864
- country_code3: z.ZodString;
12865
- country_name: z.ZodString;
12866
12877
  city_name: z.ZodString;
12867
12878
  latitude: z.ZodString;
12868
12879
  longitude: z.ZodString;
@@ -12870,8 +12881,6 @@ export declare const logInsertSchema: z.ZodObject<{
12870
12881
  continent_code: z.ZodString;
12871
12882
  }, "strip", z.ZodTypeAny, {
12872
12883
  country_code: string;
12873
- country_code3: string;
12874
- country_name: string;
12875
12884
  city_name: string;
12876
12885
  latitude: string;
12877
12886
  longitude: string;
@@ -12879,8 +12888,6 @@ export declare const logInsertSchema: z.ZodObject<{
12879
12888
  continent_code: string;
12880
12889
  }, {
12881
12890
  country_code: string;
12882
- country_code3: string;
12883
- country_name: string;
12884
12891
  city_name: string;
12885
12892
  latitude: string;
12886
12893
  longitude: string;
@@ -12916,8 +12923,6 @@ export declare const logInsertSchema: z.ZodObject<{
12916
12923
  log_id?: string | undefined;
12917
12924
  location_info?: {
12918
12925
  country_code: string;
12919
- country_code3: string;
12920
- country_name: string;
12921
12926
  city_name: string;
12922
12927
  latitude: string;
12923
12928
  longitude: string;
@@ -12953,8 +12958,6 @@ export declare const logInsertSchema: z.ZodObject<{
12953
12958
  log_id?: string | undefined;
12954
12959
  location_info?: {
12955
12960
  country_code: string;
12956
- country_code3: string;
12957
- country_name: string;
12958
12961
  city_name: string;
12959
12962
  latitude: string;
12960
12963
  longitude: string;
@@ -13008,8 +13011,6 @@ export declare const logSchema: z.ZodObject<{
13008
13011
  }>>;
13009
13012
  location_info: z.ZodOptional<z.ZodObject<{
13010
13013
  country_code: z.ZodString;
13011
- country_code3: z.ZodString;
13012
- country_name: z.ZodString;
13013
13014
  city_name: z.ZodString;
13014
13015
  latitude: z.ZodString;
13015
13016
  longitude: z.ZodString;
@@ -13017,8 +13018,6 @@ export declare const logSchema: z.ZodObject<{
13017
13018
  continent_code: z.ZodString;
13018
13019
  }, "strip", z.ZodTypeAny, {
13019
13020
  country_code: string;
13020
- country_code3: string;
13021
- country_name: string;
13022
13021
  city_name: string;
13023
13022
  latitude: string;
13024
13023
  longitude: string;
@@ -13026,8 +13025,6 @@ export declare const logSchema: z.ZodObject<{
13026
13025
  continent_code: string;
13027
13026
  }, {
13028
13027
  country_code: string;
13029
- country_code3: string;
13030
- country_name: string;
13031
13028
  city_name: string;
13032
13029
  latitude: string;
13033
13030
  longitude: string;
@@ -13063,8 +13060,6 @@ export declare const logSchema: z.ZodObject<{
13063
13060
  } | undefined;
13064
13061
  location_info?: {
13065
13062
  country_code: string;
13066
- country_code3: string;
13067
- country_name: string;
13068
13063
  city_name: string;
13069
13064
  latitude: string;
13070
13065
  longitude: string;
@@ -13100,8 +13095,6 @@ export declare const logSchema: z.ZodObject<{
13100
13095
  } | undefined;
13101
13096
  location_info?: {
13102
13097
  country_code: string;
13103
- country_code3: string;
13104
- country_name: string;
13105
13098
  city_name: string;
13106
13099
  latitude: string;
13107
13100
  longitude: string;
@@ -17308,8 +17301,6 @@ export interface InvitesAdapter {
17308
17301
  }
17309
17302
  export interface GeoInfo {
17310
17303
  country_code: string;
17311
- country_code3: string;
17312
- country_name: string;
17313
17304
  city_name: string;
17314
17305
  latitude: string;
17315
17306
  longitude: string;
@@ -1,5 +1,21 @@
1
1
  import { z as e } from "@hono/zod-openapi";
2
2
  const Be = e.object({
3
+ page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
4
+ description: "The page number where 0 is the first page"
5
+ }),
6
+ per_page: e.string().min(1).optional().default("10").transform((t) => parseInt(t, 10)).openapi({
7
+ description: "The number of items per page"
8
+ }),
9
+ include_totals: e.string().optional().default("false").transform((t) => t === "true").openapi({
10
+ description: "If the total number of items should be included in the response"
11
+ }),
12
+ sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({
13
+ description: "A property that should have the format 'string:-1' or 'string:1'"
14
+ }),
15
+ q: e.string().optional().openapi({
16
+ description: "A lucene query string used to filter the results"
17
+ })
18
+ }), We = e.object({
3
19
  start: e.number(),
4
20
  limit: e.number(),
5
21
  length: e.number()
@@ -45,18 +61,19 @@ const Be = e.object({
45
61
  last_ip: e.string().optional(),
46
62
  last_login: e.string().optional(),
47
63
  user_id: e.string().optional(),
48
- provider: e.string().default("email"),
49
- connection: e.string().default("email"),
64
+ provider: e.string().optional(),
65
+ connection: e.string(),
50
66
  is_social: e.boolean().optional()
51
67
  }), A = e.object({
52
68
  ...S.shape,
53
69
  ...n.shape,
54
70
  user_id: e.string(),
71
+ provider: e.string(),
55
72
  is_social: e.boolean(),
56
73
  email: e.string().optional(),
57
74
  login_count: e.number().default(0),
58
75
  identities: e.array(f).optional()
59
- }), We = A, Xe = _.extend({
76
+ }), Xe = A, Ve = _.extend({
60
77
  login_count: e.number(),
61
78
  multifactor: e.array(e.string()).optional(),
62
79
  last_ip: e.string().optional(),
@@ -272,7 +289,7 @@ const O = e.object({
272
289
  ...N.shape,
273
290
  created_at: e.string().optional(),
274
291
  updated_at: e.string().optional()
275
- }), Ve = e.array(y), a = e.object({
292
+ }), qe = e.array(y), a = e.object({
276
293
  x: e.number(),
277
294
  y: e.number()
278
295
  });
@@ -422,14 +439,14 @@ const F = e.object({
422
439
  id: e.string(),
423
440
  type: e.string(),
424
441
  coordinates: a
425
- }).passthrough(), H = e.union([
442
+ }).passthrough(), x = e.union([
426
443
  F,
427
444
  v,
428
445
  P
429
- ]), M = e.object({
446
+ ]), H = e.object({
430
447
  next_node: e.string(),
431
448
  coordinates: a
432
- }).passthrough(), x = e.object({
449
+ }).passthrough(), M = e.object({
433
450
  resume_flow: e.boolean().optional(),
434
451
  coordinates: a
435
452
  }).passthrough(), G = e.object({
@@ -438,16 +455,16 @@ const F = e.object({
438
455
  languages: e.object({
439
456
  primary: e.string()
440
457
  }).passthrough(),
441
- nodes: e.array(H),
442
- start: M,
443
- ending: x,
458
+ nodes: e.array(x),
459
+ start: H,
460
+ ending: M,
444
461
  created_at: e.string(),
445
462
  updated_at: e.string(),
446
463
  links: e.object({
447
464
  sdkSrc: e.string().optional(),
448
465
  sdk_src: e.string().optional()
449
466
  }).passthrough()
450
- }).passthrough(), qe = G.omit({
467
+ }).passthrough(), Ye = G.omit({
451
468
  id: !0,
452
469
  created_at: !0,
453
470
  updated_at: !0
@@ -471,7 +488,7 @@ const K = e.object({
471
488
  ui_locales: e.string().optional(),
472
489
  // The following fields are not available in Auth0
473
490
  vendor_id: e.string().optional()
474
- }), Ye = e.object({
491
+ }), Qe = e.object({
475
492
  colors: e.object({
476
493
  primary: e.string(),
477
494
  page_background: e.object({
@@ -688,7 +705,7 @@ const q = e.enum([
688
705
  expires_at: e.string(),
689
706
  used_at: e.string().optional(),
690
707
  user_id: e.string().optional()
691
- }), Qe = e.object({
708
+ }), Je = e.object({
692
709
  ...Y.shape,
693
710
  created_at: e.string()
694
711
  }), Q = e.object({
@@ -719,9 +736,9 @@ const q = e.enum([
719
736
  methods: e.array(J)
720
737
  }).optional(),
721
738
  tls_policy: e.string().optional()
722
- }), Je = Z.extend({
739
+ }), Ze = Z.extend({
723
740
  tenant_id: e.string()
724
- }), Ze = e.object({
741
+ }), $e = e.object({
725
742
  id: e.string(),
726
743
  type: e.literal("submit"),
727
744
  label: e.string(),
@@ -847,7 +864,7 @@ const q = e.enum([
847
864
  style: e.object({ css: e.string().optional() }).optional()
848
865
  }).openapi({
849
866
  description: "Schema for flow-based forms (matches new JSON structure)"
850
- }), $e = e.object({
867
+ }), et = e.object({
851
868
  ...n.shape,
852
869
  ...ee.shape,
853
870
  id: e.string()
@@ -879,7 +896,7 @@ const q = e.enum([
879
896
  ...l,
880
897
  trigger_id: h,
881
898
  form_id: e.string()
882
- }), et = e.union([
899
+ }), tt = e.union([
883
900
  te,
884
901
  oe
885
902
  ]), ne = e.object({
@@ -894,7 +911,7 @@ const q = e.enum([
894
911
  ...n.shape,
895
912
  hook_id: e.string(),
896
913
  form_id: e.string()
897
- }), tt = e.union([ne, ie]), ae = e.object({
914
+ }), ot = e.union([ne, ie]), ae = e.object({
898
915
  name: e.string().optional()
899
916
  }), se = e.object({
900
917
  email: e.string().optional()
@@ -910,7 +927,7 @@ const q = e.enum([
910
927
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
911
928
  roles: e.array(e.string()).default([]).optional(),
912
929
  send_invitation_email: e.boolean().default(!0).optional()
913
- }), ot = e.object({
930
+ }), nt = e.object({
914
931
  id: e.string(),
915
932
  organization_id: e.string().max(50),
916
933
  created_at: e.string().datetime(),
@@ -935,9 +952,9 @@ const q = e.enum([
935
952
  x5t: e.string().optional(),
936
953
  x5c: e.array(e.string()).optional(),
937
954
  use: e.enum(["sig", "enc"]).optional()
938
- }), nt = e.object({
939
- keys: e.array(le)
940
955
  }), it = e.object({
956
+ keys: e.array(le)
957
+ }), at = e.object({
941
958
  issuer: e.string(),
942
959
  authorization_endpoint: e.string(),
943
960
  token_endpoint: e.string(),
@@ -971,7 +988,7 @@ const q = e.enum([
971
988
  login_completed: e.boolean().optional().default(!1)
972
989
  }).openapi({
973
990
  description: "This represents a login sesion"
974
- }), at = e.object({
991
+ }), st = e.object({
975
992
  ..._e.shape,
976
993
  id: e.string().openapi({
977
994
  description: "This is is used as the state in the universal login"
@@ -1156,8 +1173,6 @@ const q = e.enum([
1156
1173
  }).optional()
1157
1174
  }), ge = e.object({
1158
1175
  country_code: e.string().length(2),
1159
- country_code3: e.string().length(3),
1160
- country_name: e.string(),
1161
1176
  city_name: e.string(),
1162
1177
  latitude: e.string(),
1163
1178
  longitude: e.string(),
@@ -1186,7 +1201,7 @@ const q = e.enum([
1186
1201
  auth0_client: de.optional(),
1187
1202
  log_id: e.string().optional(),
1188
1203
  location_info: ge.optional()
1189
- }), st = e.object({
1204
+ }), rt = e.object({
1190
1205
  ...ue.shape,
1191
1206
  log_id: e.string()
1192
1207
  }), me = e.object({
@@ -1195,7 +1210,7 @@ const q = e.enum([
1195
1210
  password: e.string(),
1196
1211
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1197
1212
  is_current: e.boolean().default(!0)
1198
- }), rt = me.extend({
1213
+ }), lt = me.extend({
1199
1214
  id: e.string(),
1200
1215
  created_at: e.string(),
1201
1216
  updated_at: e.string()
@@ -1218,13 +1233,13 @@ const q = e.enum([
1218
1233
  "Metadata related to the device used in the session"
1219
1234
  ),
1220
1235
  clients: e.array(e.string()).describe("List of client details for the session")
1221
- }), lt = e.object({
1236
+ }), _t = e.object({
1222
1237
  created_at: e.string(),
1223
1238
  updated_at: e.string(),
1224
1239
  authenticated_at: e.string(),
1225
1240
  last_interaction_at: e.string(),
1226
1241
  ...he.shape
1227
- }), _t = e.object({
1242
+ }), ct = e.object({
1228
1243
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1229
1244
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1230
1245
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1251,7 +1266,7 @@ const q = e.enum([
1251
1266
  })
1252
1267
  });
1253
1268
  var be = /* @__PURE__ */ ((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))(be || {});
1254
- const ct = e.object({
1269
+ const pt = e.object({
1255
1270
  access_token: e.string(),
1256
1271
  id_token: e.string().optional(),
1257
1272
  scope: e.string().optional(),
@@ -1324,14 +1339,14 @@ const Ee = e.object({
1324
1339
  fonts: Se,
1325
1340
  page_background: Ae,
1326
1341
  widget: Ie
1327
- }), pt = Ce.extend({
1342
+ }), dt = Ce.extend({
1328
1343
  themeId: e.string()
1329
- }), dt = e.object({
1344
+ }), gt = e.object({
1330
1345
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1331
1346
  identifier_first: e.boolean().default(!0),
1332
1347
  password_first: e.boolean().default(!1),
1333
1348
  webauthn_platform_first_factor: e.boolean()
1334
- }), gt = e.object({
1349
+ }), ut = e.object({
1335
1350
  name: e.string(),
1336
1351
  enabled: e.boolean().optional().default(!0),
1337
1352
  default_from_address: e.string().optional(),
@@ -1382,15 +1397,15 @@ const Ee = e.object({
1382
1397
  })
1383
1398
  ),
1384
1399
  rotating: e.boolean()
1385
- }), ut = e.object({
1400
+ }), mt = e.object({
1386
1401
  // When the refresh token record was created.
1387
1402
  created_at: e.string(),
1388
1403
  // Spread in the rest of the refresh token properties.
1389
1404
  ...Oe.shape
1390
- }), mt = e.object({
1405
+ }), ht = e.object({
1391
1406
  to: e.string(),
1392
1407
  message: e.string()
1393
- }), ht = e.object({
1408
+ }), bt = e.object({
1394
1409
  name: e.string(),
1395
1410
  options: e.object({})
1396
1411
  }), Te = e.object({
@@ -1423,14 +1438,14 @@ const Ee = e.object({
1423
1438
  ...ye.shape,
1424
1439
  created_at: e.string().optional(),
1425
1440
  updated_at: e.string().optional()
1426
- }), bt = e.array(Re), Le = e.object({
1441
+ }), Et = e.array(Re), Le = e.object({
1427
1442
  role_id: e.string(),
1428
1443
  resource_server_identifier: e.string(),
1429
1444
  permission_name: e.string()
1430
1445
  }), De = e.object({
1431
1446
  ...Le.shape,
1432
1447
  created_at: e.string()
1433
- }), Et = e.array(De), je = e.object({
1448
+ }), ft = e.array(De), je = e.object({
1434
1449
  user_id: e.string(),
1435
1450
  resource_server_identifier: e.string(),
1436
1451
  permission_name: e.string(),
@@ -1439,7 +1454,7 @@ const Ee = e.object({
1439
1454
  ...je.shape,
1440
1455
  tenant_id: e.string(),
1441
1456
  created_at: e.string().optional()
1442
- }), ft = e.array(we), ke = e.object({
1457
+ }), St = e.array(we), ke = e.object({
1443
1458
  user_id: e.string(),
1444
1459
  resource_server_identifier: e.string(),
1445
1460
  resource_server_name: e.string(),
@@ -1447,7 +1462,7 @@ const Ee = e.object({
1447
1462
  description: e.string().nullable().optional(),
1448
1463
  created_at: e.string().optional(),
1449
1464
  organization_id: e.string().optional()
1450
- }), St = e.array(
1465
+ }), At = e.array(
1451
1466
  ke
1452
1467
  ), Ue = e.object({
1453
1468
  user_id: e.string(),
@@ -1457,7 +1472,7 @@ const Ee = e.object({
1457
1472
  ...Ue.shape,
1458
1473
  tenant_id: e.string(),
1459
1474
  created_at: e.string().optional()
1460
- }), At = e.array(Fe), ve = e.object({
1475
+ }), It = e.array(Fe), ve = e.object({
1461
1476
  name: e.string().min(1).max(50).openapi({
1462
1477
  description: "The name of the role. Cannot include '<' or '>'"
1463
1478
  }),
@@ -1471,7 +1486,7 @@ const Ee = e.object({
1471
1486
  ...ve.shape,
1472
1487
  created_at: e.string().optional(),
1473
1488
  updated_at: e.string().optional()
1474
- }), It = e.array(Pe), He = e.object({
1489
+ }), Ct = e.array(Pe), xe = e.object({
1475
1490
  logo_url: e.string().optional().openapi({
1476
1491
  description: "URL of the organization's logo"
1477
1492
  }),
@@ -1483,7 +1498,7 @@ const Ee = e.object({
1483
1498
  description: "Page background color in hex format (e.g., #FFFFFF)"
1484
1499
  })
1485
1500
  }).optional()
1486
- }).optional(), Me = e.object({
1501
+ }).optional(), He = e.object({
1487
1502
  connection_id: e.string().openapi({
1488
1503
  description: "ID of the connection"
1489
1504
  }),
@@ -1496,7 +1511,7 @@ const Ee = e.object({
1496
1511
  is_signup_enabled: e.boolean().default(!0).openapi({
1497
1512
  description: "Whether signup is enabled for this connection"
1498
1513
  })
1499
- }), xe = e.object({
1514
+ }), Me = e.object({
1500
1515
  client_credentials: e.object({
1501
1516
  enforce: e.boolean().default(!1).openapi({
1502
1517
  description: "Whether to enforce token quota limits"
@@ -1516,15 +1531,15 @@ const Ee = e.object({
1516
1531
  display_name: e.string().optional().openapi({
1517
1532
  description: "The display name of the organization"
1518
1533
  }),
1519
- branding: He,
1534
+ branding: xe,
1520
1535
  metadata: e.record(e.any()).default({}).optional().openapi({
1521
1536
  description: "Custom metadata for the organization"
1522
1537
  }),
1523
- enabled_connections: e.array(Me).default([]).optional().openapi({
1538
+ enabled_connections: e.array(He).default([]).optional().openapi({
1524
1539
  description: "List of enabled connections for the organization"
1525
1540
  }),
1526
- token_quota: xe
1527
- }), Ct = e.object({
1541
+ token_quota: Me
1542
+ }), Ot = e.object({
1528
1543
  ...Ge.shape,
1529
1544
  ...n.shape,
1530
1545
  id: e.string()
@@ -1535,11 +1550,11 @@ const Ee = e.object({
1535
1550
  organization_id: e.string().openapi({
1536
1551
  description: "ID of the organization"
1537
1552
  })
1538
- }), Ot = e.object({
1553
+ }), Tt = e.object({
1539
1554
  ...Ke.shape,
1540
1555
  ...n.shape,
1541
1556
  id: e.string()
1542
- }), Tt = e.object({
1557
+ }), Nt = e.object({
1543
1558
  // Session settings
1544
1559
  idle_session_lifetime: e.number().optional(),
1545
1560
  session_lifetime: e.number().optional(),
@@ -1609,7 +1624,7 @@ const Ee = e.object({
1609
1624
  oidc_logout_prompt_enabled: e.boolean().optional()
1610
1625
  }).optional()
1611
1626
  });
1612
- function Nt(t) {
1627
+ function yt(t) {
1613
1628
  const [i, s] = t.split("|");
1614
1629
  if (!i || !s)
1615
1630
  throw new Error(`Invalid user_id: ${t}`);
@@ -1626,21 +1641,22 @@ export {
1626
1641
  ge as LocationInfo,
1627
1642
  ce as LogTypes,
1628
1643
  U as NodeType,
1629
- qe as auth0FlowInsertSchema,
1644
+ Ye as auth0FlowInsertSchema,
1630
1645
  G as auth0FlowSchema,
1631
- We as auth0UserResponseSchema,
1646
+ Be as auth0QuerySchema,
1647
+ Xe as auth0UserResponseSchema,
1632
1648
  K as authParamsSchema,
1633
1649
  _ as baseUserSchema,
1634
1650
  Ee as bordersSchema,
1635
- Ye as brandingSchema,
1651
+ Qe as brandingSchema,
1636
1652
  L as buttonComponentSchema,
1637
1653
  N as clientGrantInsertSchema,
1638
- Ve as clientGrantListSchema,
1654
+ qe as clientGrantListSchema,
1639
1655
  y as clientGrantSchema,
1640
1656
  O as clientInsertSchema,
1641
1657
  T as clientSchema,
1642
1658
  Y as codeInsertSchema,
1643
- Qe as codeSchema,
1659
+ Je as codeSchema,
1644
1660
  q as codeTypeSchema,
1645
1661
  fe as colorsSchema,
1646
1662
  k as componentSchema,
@@ -1650,85 +1666,85 @@ export {
1650
1666
  a as coordinatesSchema,
1651
1667
  Q as customDomainInsertSchema,
1652
1668
  Z as customDomainSchema,
1653
- Je as customDomainWithTenantIdSchema,
1654
- gt as emailProviderSchema,
1655
- x as endingSchema,
1669
+ Ze as customDomainWithTenantIdSchema,
1670
+ ut as emailProviderSchema,
1671
+ M as endingSchema,
1656
1672
  j as fieldComponentSchema,
1657
1673
  v as flowNodeSchema,
1658
1674
  o as fontDetailsSchema,
1659
1675
  Se as fontsSchema,
1660
- Ze as formControlSchema,
1676
+ $e as formControlSchema,
1661
1677
  ee as formInsertSchema,
1662
1678
  $ as formNodeComponentDefinition,
1663
- $e as formSchema,
1679
+ et as formSchema,
1664
1680
  w as genericComponentSchema,
1665
1681
  P as genericNodeSchema,
1666
- et as hookInsertSchema,
1667
- tt as hookSchema,
1682
+ tt as hookInsertSchema,
1683
+ ot as hookSchema,
1668
1684
  f as identitySchema,
1669
1685
  re as inviteInsertSchema,
1670
- ot as inviteSchema,
1686
+ nt as inviteSchema,
1671
1687
  se as inviteeSchema,
1672
1688
  ae as inviterSchema,
1673
- nt as jwksKeySchema,
1689
+ it as jwksKeySchema,
1674
1690
  le as jwksSchema,
1675
1691
  D as legalComponentSchema,
1676
1692
  ue as logInsertSchema,
1677
- st as logSchema,
1693
+ rt as logSchema,
1678
1694
  _e as loginSessionInsertSchema,
1679
- at as loginSessionSchema,
1680
- H as nodeSchema,
1681
- it as openIDConfigurationSchema,
1682
- He as organizationBrandingSchema,
1683
- Me as organizationEnabledConnectionSchema,
1695
+ st as loginSessionSchema,
1696
+ x as nodeSchema,
1697
+ at as openIDConfigurationSchema,
1698
+ xe as organizationBrandingSchema,
1699
+ He as organizationEnabledConnectionSchema,
1684
1700
  Ge as organizationInsertSchema,
1685
- Ct as organizationSchema,
1686
- xe as organizationTokenQuotaSchema,
1701
+ Ot as organizationSchema,
1702
+ Me as organizationTokenQuotaSchema,
1687
1703
  Ae as pageBackgroundSchema,
1688
- Nt as parseUserId,
1704
+ yt as parseUserId,
1689
1705
  me as passwordInsertSchema,
1690
- rt as passwordSchema,
1706
+ lt as passwordSchema,
1691
1707
  E as profileDataSchema,
1692
- dt as promptSettingSchema,
1708
+ gt as promptSettingSchema,
1693
1709
  Oe as refreshTokenInsertSchema,
1694
- ut as refreshTokenSchema,
1710
+ mt as refreshTokenSchema,
1695
1711
  ye as resourceServerInsertSchema,
1696
- bt as resourceServerListSchema,
1712
+ Et as resourceServerListSchema,
1697
1713
  Ne as resourceServerOptionsSchema,
1698
1714
  Re as resourceServerSchema,
1699
1715
  Te as resourceServerScopeSchema,
1700
1716
  R as richTextComponentSchema,
1701
1717
  ve as roleInsertSchema,
1702
- It as roleListSchema,
1718
+ Ct as roleListSchema,
1703
1719
  Le as rolePermissionInsertSchema,
1704
- Et as rolePermissionListSchema,
1720
+ ft as rolePermissionListSchema,
1705
1721
  De as rolePermissionSchema,
1706
1722
  Pe as roleSchema,
1707
1723
  he as sessionInsertSchema,
1708
- lt as sessionSchema,
1709
- _t as signingKeySchema,
1710
- ht as smsProviderSchema,
1711
- mt as smsSendParamsSchema,
1712
- M as startSchema,
1724
+ _t as sessionSchema,
1725
+ ct as signingKeySchema,
1726
+ bt as smsProviderSchema,
1727
+ ht as smsSendParamsSchema,
1728
+ H as startSchema,
1713
1729
  F as stepNodeSchema,
1714
1730
  X as tenantInsertSchema,
1715
1731
  V as tenantSchema,
1716
- Tt as tenantSettingsSchema,
1732
+ Nt as tenantSettingsSchema,
1717
1733
  Ce as themeInsertSchema,
1718
- pt as themeSchema,
1719
- ct as tokenResponseSchema,
1720
- Be as totalsSchema,
1734
+ dt as themeSchema,
1735
+ pt as tokenResponseSchema,
1736
+ We as totalsSchema,
1721
1737
  S as userInsertSchema,
1722
1738
  Ke as userOrganizationInsertSchema,
1723
- Ot as userOrganizationSchema,
1739
+ Tt as userOrganizationSchema,
1724
1740
  je as userPermissionInsertSchema,
1725
- ft as userPermissionListSchema,
1741
+ St as userPermissionListSchema,
1726
1742
  we as userPermissionSchema,
1727
- St as userPermissionWithDetailsListSchema,
1743
+ At as userPermissionWithDetailsListSchema,
1728
1744
  ke as userPermissionWithDetailsSchema,
1729
- Xe as userResponseSchema,
1745
+ Ve as userResponseSchema,
1730
1746
  Ue as userRoleInsertSchema,
1731
- At as userRoleListSchema,
1747
+ It as userRoleListSchema,
1732
1748
  Fe as userRoleSchema,
1733
1749
  A as userSchema,
1734
1750
  J as verificationMethodsSchema,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.101.0",
14
+ "version": "0.102.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],