@authhero/adapter-interfaces 0.95.0 → 0.96.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"),we=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),m=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:u.optional()}),c=e.z.object({email:e.z.string().optional().transform(o=>o&&o.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()}),je=S,ke=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()),Ue="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Fe=(o=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(o));for(;o--;)a+=Ue[s[o]&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(()=>Fe()).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()}),ve=e.z.array(A),i=e.z.object({x:e.z.number(),y:e.z.number()});var _=(o=>(o.RICH_TEXT="RICH_TEXT",o.NEXT_BUTTON="NEXT_BUTTON",o.BACK_BUTTON="BACK_BUTTON",o.SUBMIT_BUTTON="SUBMIT_BUTTON",o.DIVIDER="DIVIDER",o.TEXT="TEXT",o.EMAIL="EMAIL",o.PASSWORD="PASSWORD",o.NUMBER="NUMBER",o.PHONE="PHONE",o.DATE="DATE",o.CHECKBOX="CHECKBOX",o.RADIO="RADIO",o.SELECT="SELECT",o.HIDDEN="HIDDEN",o.LEGAL="LEGAL",o))(_||{}),p=(o=>(o.BLOCK="BLOCK",o.FIELD="FIELD",o))(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=(o=>(o.STEP="STEP",o.FLOW="FLOW",o.CONDITION="CONDITION",o.ACTION="ACTION",o))(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(),F=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(),Pe=F.omit({id:!0,created_at:!0,updated_at:!0});var d=(o=>(o.TOKEN="token",o.TOKEN_ID_TOKEN="token id_token",o.CODE="code",o))(d||{}),z=(o=>(o.QUERY="query",o.FRAGMENT="fragment",o.FORM_POST="form_post",o.WEB_MESSAGE="web_message",o.SAML_POST="saml_post",o))(z||{}),g=(o=>(o.S256="S256",o.Plain="plain",o))(g||{});const v=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(z).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),Me=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),powered_by_logo_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),M=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),H=e.z.object({id:e.z.string(),created_at:e.z.string().transform(o=>o===null?"":o),updated_at:e.z.string().transform(o=>o===null?"":o)}).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(o=>o??""),updated_at:e.z.string().nullable().transform(o=>o??""),...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"]),W=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),He=e.z.object({...W.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),xe=V.extend({tenant_id:e.z.string()}),Ge=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),q=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(q),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ke=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),J=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},We=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Be=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Xe=e.z.union([We,Be]),Ve=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),qe=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),Ye=e.z.union([Ve,qe]),Z=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),Qe=e.z.object({keys:e.z.array(Z)}),Je=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),$=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:v,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ze=e.z.object({...$.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),ee={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},$e=e.z.string().refine(o=>Object.values(ee).includes(o),{message:"Invalid log type"}),oe=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),eo=e.z.object({type:$e,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:oe.optional()}),te=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),oo=e.z.object({...te.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),ie=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ne.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),to=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ie.shape}),no=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"}),connection:e.z.string().optional().openapi({description:"The connection identifier associated with the key"}),type:e.z.enum(["jwt_signing","saml_encryption"]).openapi({description:"The type of the signing key"})});var ae=(o=>(o.RefreshToken="refresh_token",o.AuthorizationCode="authorization_code",o.ClientCredential="client_credentials",o.Passwordless="passwordless",o.Password="password",o.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",o))(ae||{});const io=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const se=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),re=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),t=e.z.object({bold:e.z.boolean(),size:e.z.number()}),le=e.z.object({body_text:t,buttons_text:t,font_url:e.z.string(),input_labels:t,links:t,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:t,title:t}),ce=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),_e=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),pe=e.z.object({borders:se,colors:re,displayName:e.z.string(),fonts:le,page_background:ce,widget:_e}),ao=pe.extend({themeId:e.z.string()}),so=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()}),ro=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),de=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),lo=e.z.object({created_at:e.z.string(),...de.shape}),co=e.z.object({to:e.z.string(),message:e.z.string()}),_o=e.z.object({name:e.z.string(),options:e.z.object({})}),ze=e.z.object({value:e.z.string(),description:e.z.string().optional()}),ge=e.z.object({token_dialect:e.z.enum(["access_token","access_token_authz"]).optional(),enforce_policies:e.z.boolean().optional(),allow_skipping_userinfo:e.z.boolean().optional(),skip_userinfo:e.z.boolean().optional(),persist_client_authorization:e.z.boolean().optional(),enable_introspection_endpoint:e.z.boolean().optional(),mtls:e.z.object({bound_access_tokens:e.z.boolean().optional()}).optional()}),ue=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(ze).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().optional(),token_lifetime_for_web:e.z.number().optional(),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:ge.optional()}),me=e.z.object({id:e.z.string().optional(),...ue.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),po=e.z.array(me),he=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Se=e.z.object({...he.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),zo=e.z.array(Se),be=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional()}),go=e.z.array(be),Ee=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()}),fe=e.z.object({...Ee.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),uo=e.z.array(fe),Ae=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional(),organization_id:e.z.string().optional()}),mo=e.z.array(Ae),Ie=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ce=e.z.object({...Ie.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),ho=e.z.array(Ce),Oe=e.z.object({name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"})}),Te=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Oe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),So=e.z.array(Te),ye=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(),Ne=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(!1).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(!0).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(!0).openapi({description:"Whether signup is enabled for this connection"})}),Re=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(!1).openapi({description:"Whether to enforce token quota limits"}),per_day:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per day (0 = unlimited)"}),per_hour:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per hour (0 = unlimited)"})}).optional()}).optional(),Le=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).openapi({description:"The name of the organization"}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:ye,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(Ne).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:Re}),bo=e.z.object({...Le.shape,...n.shape,id:e.z.string()}),De=e.z.object({user_id:e.z.string().openapi({description:"ID of the user"}),organization_id:e.z.string().openapi({description:"ID of the organization"})}),Eo=e.z.object({...De.shape,...n.shape,id:e.z.string()}),fo=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 Ao(o){const[a,s]=o.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${o}`);return{connection:a,id:s}}exports.Auth0Client=oe;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=ae;exports.LogTypes=ee;exports.NodeType=R;exports.auth0FlowInsertSchema=Pe;exports.auth0FlowSchema=F;exports.auth0UserResponseSchema=je;exports.authParamsSchema=v;exports.baseUserSchema=c;exports.bordersSchema=se;exports.brandingSchema=Me;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=f;exports.clientGrantListSchema=ve;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=E;exports.codeInsertSchema=W;exports.codeSchema=He;exports.codeTypeSchema=K;exports.colorsSchema=re;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=H;exports.coordinatesSchema=i;exports.customDomainInsertSchema=B;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=xe;exports.emailProviderSchema=ro;exports.endingSchema=U;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=t;exports.fontsSchema=le;exports.formControlSchema=Ge;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=Ke;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Xe;exports.hookSchema=Ye;exports.identitySchema=m;exports.jwksKeySchema=Qe;exports.jwksSchema=Z;exports.legalComponentSchema=O;exports.logSchema=eo;exports.loginSessionInsertSchema=$;exports.loginSessionSchema=Ze;exports.nodeSchema=j;exports.openIDConfigurationSchema=Je;exports.organizationBrandingSchema=ye;exports.organizationEnabledConnectionSchema=Ne;exports.organizationInsertSchema=Le;exports.organizationSchema=bo;exports.organizationTokenQuotaSchema=Re;exports.pageBackgroundSchema=ce;exports.parseUserId=Ao;exports.passwordInsertSchema=te;exports.passwordSchema=oo;exports.profileDataSchema=u;exports.promptSettingSchema=so;exports.refreshTokenInsertSchema=de;exports.refreshTokenSchema=lo;exports.resourceServerInsertSchema=ue;exports.resourceServerListSchema=po;exports.resourceServerOptionsSchema=ge;exports.resourceServerSchema=me;exports.resourceServerScopeSchema=ze;exports.richTextComponentSchema=I;exports.roleInsertSchema=Oe;exports.roleListSchema=So;exports.rolePermissionInsertSchema=he;exports.rolePermissionListSchema=zo;exports.rolePermissionSchema=Se;exports.rolePermissionWithDetailsListSchema=go;exports.rolePermissionWithDetailsSchema=be;exports.roleSchema=Te;exports.sessionInsertSchema=ie;exports.sessionSchema=to;exports.signingKeySchema=no;exports.smsProviderSchema=_o;exports.smsSendParamsSchema=co;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=x;exports.tenantSchema=G;exports.tenantSettingsSchema=fo;exports.themeInsertSchema=pe;exports.themeSchema=ao;exports.tokenResponseSchema=io;exports.totalsSchema=we;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=De;exports.userOrganizationSchema=Eo;exports.userPermissionInsertSchema=Ee;exports.userPermissionListSchema=uo;exports.userPermissionSchema=fe;exports.userPermissionWithDetailsListSchema=mo;exports.userPermissionWithDetailsSchema=Ae;exports.userResponseSchema=ke;exports.userRoleInsertSchema=Ie;exports.userRoleListSchema=ho;exports.userRoleSchema=Ce;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=_e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),Ue=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),m=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:u.optional()}),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()}),ve=S,Fe=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()),Pe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Me=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t));for(;t--;)a+=Pe[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(()=>Me()).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()}),He=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(),xe=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()}),Ge=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"]),W=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Ke=e.z.object({...W.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),We=V.extend({tenant_id:e.z.string()}),Be=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)"}),Xe=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),J=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Ve=e.z.object({...l,trigger_id:Q,url:e.z.string()}),qe=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Ye=e.z.union([Ve,qe]),Qe=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),Je=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),Ze=e.z.union([Qe,Je]),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()}),$e=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()}),et=e.z.object({keys:e.z.array(te)}),tt=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"}),ot=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"},nt=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()}),it=e.z.object({type:nt,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ie.optional()}),ae=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),at=e.z.object({...ae.shape,created_at:e.z.string(),updated_at:e.z.string()}),se=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")}),re=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:se.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")}),st=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...re.shape}),rt=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 le=(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))(le||{});const lt=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const ce=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()}),_e=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()}),pe=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}),de=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),ze=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"])}),ge=e.z.object({borders:ce,colors:_e,displayName:e.z.string(),fonts:pe,page_background:de,widget:ze}),ct=ge.extend({themeId:e.z.string()}),_t=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()}),pt=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()}),ue=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:se,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),dt=e.z.object({created_at:e.z.string(),...ue.shape}),zt=e.z.object({to:e.z.string(),message:e.z.string()}),gt=e.z.object({name:e.z.string(),options:e.z.object({})}),me=e.z.object({value:e.z.string(),description:e.z.string().optional()}),he=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()}),Se=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(me).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:he.optional()}),be=e.z.object({id:e.z.string().optional(),...Se.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ut=e.z.array(be),Ee=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),fe=e.z.object({...Ee.shape,tenant_id:e.z.string(),created_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(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional()}),ht=e.z.array(Ae),Ie=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()}),Ce=e.z.object({...Ie.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),St=e.z.array(Ce),Oe=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(Oe),Te=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),ye=e.z.object({...Te.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Et=e.z.array(ye),Ne=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"})}),Re=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Ne.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ft=e.z.array(Re),Le=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(),De=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"})}),we=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(),je=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:Le,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(De).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:we}),At=e.z.object({...je.shape,...n.shape,id:e.z.string()}),ke=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({...ke.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=le;exports.LogTypes=ne;exports.NodeType=R;exports.auth0FlowInsertSchema=xe;exports.auth0FlowSchema=v;exports.auth0UserResponseSchema=ve;exports.authParamsSchema=F;exports.baseUserSchema=c;exports.bordersSchema=ce;exports.brandingSchema=Ge;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=f;exports.clientGrantListSchema=He;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=E;exports.codeInsertSchema=W;exports.codeSchema=Ke;exports.codeTypeSchema=K;exports.colorsSchema=_e;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=H;exports.coordinatesSchema=i;exports.customDomainInsertSchema=B;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=We;exports.emailProviderSchema=pt;exports.endingSchema=U;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=pe;exports.formControlSchema=Be;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=Xe;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Ye;exports.hookSchema=Ze;exports.identitySchema=m;exports.inviteInsertSchema=ee;exports.inviteSchema=$e;exports.inviteeSchema=$;exports.inviterSchema=Z;exports.jwksKeySchema=et;exports.jwksSchema=te;exports.legalComponentSchema=O;exports.logSchema=it;exports.loginSessionInsertSchema=oe;exports.loginSessionSchema=ot;exports.nodeSchema=j;exports.openIDConfigurationSchema=tt;exports.organizationBrandingSchema=Le;exports.organizationEnabledConnectionSchema=De;exports.organizationInsertSchema=je;exports.organizationSchema=At;exports.organizationTokenQuotaSchema=we;exports.pageBackgroundSchema=de;exports.parseUserId=Ot;exports.passwordInsertSchema=ae;exports.passwordSchema=at;exports.profileDataSchema=u;exports.promptSettingSchema=_t;exports.refreshTokenInsertSchema=ue;exports.refreshTokenSchema=dt;exports.resourceServerInsertSchema=Se;exports.resourceServerListSchema=ut;exports.resourceServerOptionsSchema=he;exports.resourceServerSchema=be;exports.resourceServerScopeSchema=me;exports.richTextComponentSchema=I;exports.roleInsertSchema=Ne;exports.roleListSchema=ft;exports.rolePermissionInsertSchema=Ee;exports.rolePermissionListSchema=mt;exports.rolePermissionSchema=fe;exports.rolePermissionWithDetailsListSchema=ht;exports.rolePermissionWithDetailsSchema=Ae;exports.roleSchema=Re;exports.sessionInsertSchema=re;exports.sessionSchema=st;exports.signingKeySchema=rt;exports.smsProviderSchema=gt;exports.smsSendParamsSchema=zt;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=x;exports.tenantSchema=G;exports.tenantSettingsSchema=Ct;exports.themeInsertSchema=ge;exports.themeSchema=ct;exports.tokenResponseSchema=lt;exports.totalsSchema=Ue;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=ke;exports.userOrganizationSchema=It;exports.userPermissionInsertSchema=Ie;exports.userPermissionListSchema=St;exports.userPermissionSchema=Ce;exports.userPermissionWithDetailsListSchema=bt;exports.userPermissionWithDetailsSchema=Oe;exports.userResponseSchema=Fe;exports.userRoleInsertSchema=Te;exports.userRoleListSchema=Et;exports.userRoleSchema=ye;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=ze;
@@ -12018,6 +12018,151 @@ export declare const identitySchema: z.ZodObject<{
12018
12018
  }, z.ZodAny, "strip"> | undefined;
12019
12019
  }>;
12020
12020
  export type Identity = z.infer<typeof identitySchema>;
12021
+ export declare const inviterSchema: z.ZodObject<{
12022
+ name: z.ZodOptional<z.ZodString>;
12023
+ }, "strip", z.ZodTypeAny, {
12024
+ name?: string | undefined;
12025
+ }, {
12026
+ name?: string | undefined;
12027
+ }>;
12028
+ export type Inviter = z.infer<typeof inviterSchema>;
12029
+ export declare const inviteeSchema: z.ZodObject<{
12030
+ email: z.ZodOptional<z.ZodString>;
12031
+ }, "strip", z.ZodTypeAny, {
12032
+ email?: string | undefined;
12033
+ }, {
12034
+ email?: string | undefined;
12035
+ }>;
12036
+ export type Invitee = z.infer<typeof inviteeSchema>;
12037
+ export declare const inviteInsertSchema: z.ZodObject<{
12038
+ organization_id: z.ZodString;
12039
+ inviter: z.ZodObject<{
12040
+ name: z.ZodOptional<z.ZodString>;
12041
+ }, "strip", z.ZodTypeAny, {
12042
+ name?: string | undefined;
12043
+ }, {
12044
+ name?: string | undefined;
12045
+ }>;
12046
+ invitee: z.ZodObject<{
12047
+ email: z.ZodOptional<z.ZodString>;
12048
+ }, "strip", z.ZodTypeAny, {
12049
+ email?: string | undefined;
12050
+ }, {
12051
+ email?: string | undefined;
12052
+ }>;
12053
+ invitation_url: z.ZodString;
12054
+ client_id: z.ZodString;
12055
+ connection_id: z.ZodOptional<z.ZodString>;
12056
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
12057
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
12058
+ ttl_sec: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
12059
+ roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
12060
+ send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12061
+ }, "strip", z.ZodTypeAny, {
12062
+ client_id: string;
12063
+ organization_id: string;
12064
+ inviter: {
12065
+ name?: string | undefined;
12066
+ };
12067
+ invitee: {
12068
+ email?: string | undefined;
12069
+ };
12070
+ invitation_url: string;
12071
+ app_metadata?: Record<string, any> | undefined;
12072
+ user_metadata?: Record<string, any> | undefined;
12073
+ connection_id?: string | undefined;
12074
+ ttl_sec?: number | undefined;
12075
+ roles?: string[] | undefined;
12076
+ send_invitation_email?: boolean | undefined;
12077
+ }, {
12078
+ client_id: string;
12079
+ organization_id: string;
12080
+ inviter: {
12081
+ name?: string | undefined;
12082
+ };
12083
+ invitee: {
12084
+ email?: string | undefined;
12085
+ };
12086
+ invitation_url: string;
12087
+ app_metadata?: Record<string, any> | undefined;
12088
+ user_metadata?: Record<string, any> | undefined;
12089
+ connection_id?: string | undefined;
12090
+ ttl_sec?: number | undefined;
12091
+ roles?: string[] | undefined;
12092
+ send_invitation_email?: boolean | undefined;
12093
+ }>;
12094
+ export type InviteInsert = z.infer<typeof inviteInsertSchema>;
12095
+ export declare const inviteSchema: z.ZodObject<{
12096
+ id: z.ZodString;
12097
+ created_at: z.ZodString;
12098
+ expires_at: z.ZodString;
12099
+ ticket_id: z.ZodOptional<z.ZodString>;
12100
+ } & {
12101
+ organization_id: z.ZodString;
12102
+ inviter: z.ZodObject<{
12103
+ name: z.ZodOptional<z.ZodString>;
12104
+ }, "strip", z.ZodTypeAny, {
12105
+ name?: string | undefined;
12106
+ }, {
12107
+ name?: string | undefined;
12108
+ }>;
12109
+ invitee: z.ZodObject<{
12110
+ email: z.ZodOptional<z.ZodString>;
12111
+ }, "strip", z.ZodTypeAny, {
12112
+ email?: string | undefined;
12113
+ }, {
12114
+ email?: string | undefined;
12115
+ }>;
12116
+ invitation_url: z.ZodString;
12117
+ client_id: z.ZodString;
12118
+ connection_id: z.ZodOptional<z.ZodString>;
12119
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
12120
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
12121
+ ttl_sec: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
12122
+ roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
12123
+ send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12124
+ }, "strip", z.ZodTypeAny, {
12125
+ created_at: string;
12126
+ client_id: string;
12127
+ id: string;
12128
+ expires_at: string;
12129
+ organization_id: string;
12130
+ inviter: {
12131
+ name?: string | undefined;
12132
+ };
12133
+ invitee: {
12134
+ email?: string | undefined;
12135
+ };
12136
+ invitation_url: string;
12137
+ app_metadata?: Record<string, any> | undefined;
12138
+ user_metadata?: Record<string, any> | undefined;
12139
+ connection_id?: string | undefined;
12140
+ ttl_sec?: number | undefined;
12141
+ roles?: string[] | undefined;
12142
+ send_invitation_email?: boolean | undefined;
12143
+ ticket_id?: string | undefined;
12144
+ }, {
12145
+ created_at: string;
12146
+ client_id: string;
12147
+ id: string;
12148
+ expires_at: string;
12149
+ organization_id: string;
12150
+ inviter: {
12151
+ name?: string | undefined;
12152
+ };
12153
+ invitee: {
12154
+ email?: string | undefined;
12155
+ };
12156
+ invitation_url: string;
12157
+ app_metadata?: Record<string, any> | undefined;
12158
+ user_metadata?: Record<string, any> | undefined;
12159
+ connection_id?: string | undefined;
12160
+ ttl_sec?: number | undefined;
12161
+ roles?: string[] | undefined;
12162
+ send_invitation_email?: boolean | undefined;
12163
+ ticket_id?: string | undefined;
12164
+ }>;
12165
+ export type Invite = z.infer<typeof inviteSchema>;
12021
12166
  export declare const jwksSchema: z.ZodObject<{
12022
12167
  alg: z.ZodEnum<[
12023
12168
  "RS256",
@@ -16961,6 +17106,16 @@ export interface UserOrganizationsAdapter {
16961
17106
  } & Totals>;
16962
17107
  update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
16963
17108
  }
17109
+ export interface ListInvitesResponse extends Totals {
17110
+ invites: Invite[];
17111
+ }
17112
+ export interface InvitesAdapter {
17113
+ create(tenant_id: string, params: InviteInsert): Promise<Invite>;
17114
+ get(tenant_id: string, id: string): Promise<Invite | null>;
17115
+ remove(tenant_id: string, id: string): Promise<boolean>;
17116
+ list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
17117
+ update(tenant_id: string, id: string, params: Partial<InviteInsert>): Promise<boolean>;
17118
+ }
16964
17119
  export interface DataAdapters {
16965
17120
  branding: BrandingAdapter;
16966
17121
  cache?: CacheAdapter;
@@ -16973,6 +17128,7 @@ export interface DataAdapters {
16973
17128
  emailProviders: EmailProvidersAdapter;
16974
17129
  forms: FormsAdapter;
16975
17130
  hooks: HooksAdapter;
17131
+ invites: InvitesAdapter;
16976
17132
  keys: KeysAdapter;
16977
17133
  loginSessions: LoginSessionsAdapter;
16978
17134
  logs: LogsDataAdapter;
@@ -1,5 +1,5 @@
1
1
  import { z as e } from "@hono/zod-openapi";
2
- const xe = e.object({
2
+ const ze = e.object({
3
3
  start: e.number(),
4
4
  limit: e.number(),
5
5
  length: e.number()
@@ -25,7 +25,7 @@ const xe = e.object({
25
25
  refresh_token: e.string().optional(),
26
26
  profileData: E.optional()
27
27
  }), _ = e.object({
28
- email: e.string().optional().transform((o) => o && o.toLowerCase()),
28
+ email: e.string().optional().transform((t) => t && t.toLowerCase()),
29
29
  username: e.string().optional(),
30
30
  phone_number: e.string().optional(),
31
31
  given_name: e.string().optional(),
@@ -56,17 +56,17 @@ const xe = e.object({
56
56
  email: e.string().optional(),
57
57
  login_count: e.number().default(0),
58
58
  identities: e.array(f).optional()
59
- }), Ge = A, Ke = _.extend({
59
+ }), Be = A, We = _.extend({
60
60
  login_count: e.number(),
61
61
  multifactor: e.array(e.string()).optional(),
62
62
  last_ip: e.string().optional(),
63
63
  last_login: e.string().optional(),
64
64
  user_id: e.string()
65
65
  }).catchall(e.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let C = (o = 21) => {
67
- let i = "", s = crypto.getRandomValues(new Uint8Array(o));
68
- for (; o--; )
69
- i += I[s[o] & 63];
66
+ let C = (t = 21) => {
67
+ let i = "", s = crypto.getRandomValues(new Uint8Array(t));
68
+ for (; t--; )
69
+ i += I[s[t] & 63];
70
70
  return i;
71
71
  };
72
72
  const O = e.object({
@@ -272,11 +272,11 @@ const O = e.object({
272
272
  ...N.shape,
273
273
  created_at: e.string().optional(),
274
274
  updated_at: e.string().optional()
275
- }), Be = e.array(y), a = e.object({
275
+ }), Xe = e.array(y), a = e.object({
276
276
  x: e.number(),
277
277
  y: e.number()
278
278
  });
279
- var c = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(c || {}), p = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(p || {});
279
+ var c = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(c || {}), p = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(p || {});
280
280
  const r = e.object({
281
281
  id: e.string(),
282
282
  category: e.nativeEnum(p),
@@ -329,7 +329,7 @@ const r = e.object({
329
329
  config: e.object({
330
330
  text: e.string()
331
331
  }).passthrough()
332
- }), w = r.extend({
332
+ }), j = r.extend({
333
333
  category: e.literal(
334
334
  "FIELD"
335
335
  /* FIELD */
@@ -382,7 +382,7 @@ const r = e.object({
382
382
  label: e.string().optional(),
383
383
  placeholder: e.string().optional()
384
384
  }).passthrough()
385
- }), j = e.object({
385
+ }), w = e.object({
386
386
  id: e.string(),
387
387
  category: e.string(),
388
388
  type: e.string()
@@ -390,10 +390,10 @@ const r = e.object({
390
390
  R,
391
391
  L,
392
392
  D,
393
- w,
394
- j
393
+ j,
394
+ w
395
395
  ]);
396
- var U = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(U || {});
396
+ var U = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(U || {});
397
397
  const F = e.object({
398
398
  id: e.string(),
399
399
  type: e.literal(
@@ -447,12 +447,12 @@ const F = e.object({
447
447
  sdkSrc: e.string().optional(),
448
448
  sdk_src: e.string().optional()
449
449
  }).passthrough()
450
- }).passthrough(), ze = G.omit({
450
+ }).passthrough(), Ve = G.omit({
451
451
  id: !0,
452
452
  created_at: !0,
453
453
  updated_at: !0
454
454
  });
455
- var d = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(d || {}), g = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(g || {}), u = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(u || {});
455
+ var d = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(d || {}), g = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(g || {}), u = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(u || {});
456
456
  const K = e.object({
457
457
  client_id: e.string(),
458
458
  act_as: e.string().optional(),
@@ -471,7 +471,7 @@ const K = e.object({
471
471
  ui_locales: e.string().optional(),
472
472
  // The following fields are not available in Auth0
473
473
  vendor_id: e.string().optional()
474
- }), We = e.object({
474
+ }), qe = e.object({
475
475
  colors: e.object({
476
476
  primary: e.string(),
477
477
  page_background: e.object({
@@ -487,7 +487,7 @@ const K = e.object({
487
487
  font: e.object({
488
488
  url: e.string()
489
489
  }).optional()
490
- }), B = e.object({
490
+ }), z = e.object({
491
491
  kid: e.string().optional(),
492
492
  team_id: e.string().optional(),
493
493
  realms: e.string().optional(),
@@ -506,19 +506,19 @@ const K = e.object({
506
506
  from: e.string().optional(),
507
507
  twilio_sid: e.string().optional(),
508
508
  twilio_token: e.string().optional()
509
- }), z = e.object({
509
+ }), B = e.object({
510
510
  id: e.string().optional(),
511
511
  name: e.string(),
512
512
  strategy: e.string(),
513
- options: B.default({}),
513
+ options: z.default({}),
514
514
  enabled_clients: e.array(e.string()).default([]).optional(),
515
515
  response_type: e.custom().optional(),
516
516
  response_mode: e.custom().optional()
517
517
  }), W = e.object({
518
518
  id: e.string(),
519
- created_at: e.string().transform((o) => o === null ? "" : o),
520
- updated_at: e.string().transform((o) => o === null ? "" : o)
521
- }).extend(z.shape), X = e.object({
519
+ created_at: e.string().transform((t) => t === null ? "" : t),
520
+ updated_at: e.string().transform((t) => t === null ? "" : t)
521
+ }).extend(B.shape), X = e.object({
522
522
  id: e.string().optional(),
523
523
  // Basic settings
524
524
  audience: e.string(),
@@ -639,8 +639,8 @@ const K = e.object({
639
639
  pushed_authorization_requests_supported: e.boolean().optional(),
640
640
  authorization_response_iss_parameter_supported: e.boolean().optional()
641
641
  }), V = e.object({
642
- created_at: e.string().nullable().transform((o) => o ?? ""),
643
- updated_at: e.string().nullable().transform((o) => o ?? ""),
642
+ created_at: e.string().nullable().transform((t) => t ?? ""),
643
+ updated_at: e.string().nullable().transform((t) => t ?? ""),
644
644
  ...X.shape,
645
645
  id: e.string()
646
646
  });
@@ -688,7 +688,7 @@ const q = e.enum([
688
688
  expires_at: e.string(),
689
689
  used_at: e.string().optional(),
690
690
  user_id: e.string().optional()
691
- }), Xe = e.object({
691
+ }), Ye = e.object({
692
692
  ...Y.shape,
693
693
  created_at: e.string()
694
694
  }), Q = e.object({
@@ -719,9 +719,9 @@ const q = e.enum([
719
719
  methods: e.array(J)
720
720
  }).optional(),
721
721
  tls_policy: e.string().optional()
722
- }), Ve = Z.extend({
722
+ }), Qe = Z.extend({
723
723
  tenant_id: e.string()
724
- }), qe = e.object({
724
+ }), Je = e.object({
725
725
  id: e.string(),
726
726
  type: e.literal("submit"),
727
727
  label: e.string(),
@@ -847,7 +847,7 @@ const q = e.enum([
847
847
  style: e.object({ css: e.string().optional() }).optional()
848
848
  }).openapi({
849
849
  description: "Schema for flow-based forms (matches new JSON structure)"
850
- }), Ye = e.object({
850
+ }), Ze = e.object({
851
851
  ...n.shape,
852
852
  ...ee.shape,
853
853
  id: e.string()
@@ -865,17 +865,17 @@ const q = e.enum([
865
865
  synchronous: e.boolean().default(!1),
866
866
  priority: e.number().optional(),
867
867
  hook_id: e.string().optional()
868
- }, oe = e.object({
868
+ }, te = e.object({
869
869
  ...l,
870
870
  trigger_id: m,
871
871
  url: e.string()
872
- }), te = e.object({
872
+ }), oe = e.object({
873
873
  ...l,
874
874
  trigger_id: h,
875
875
  form_id: e.string()
876
- }), Qe = e.union([
877
- oe,
878
- te
876
+ }), $e = e.union([
877
+ te,
878
+ oe
879
879
  ]), ne = e.object({
880
880
  ...l,
881
881
  trigger_id: m,
@@ -888,7 +888,29 @@ const q = e.enum([
888
888
  ...n.shape,
889
889
  hook_id: e.string(),
890
890
  form_id: e.string()
891
- }), Je = e.union([ne, ie]), ae = e.object({
891
+ }), et = e.union([ne, ie]), ae = e.object({
892
+ name: e.string().optional()
893
+ }), se = e.object({
894
+ email: e.string().optional()
895
+ }), re = e.object({
896
+ organization_id: e.string().max(50),
897
+ inviter: ae,
898
+ invitee: se,
899
+ invitation_url: e.string().url(),
900
+ client_id: e.string(),
901
+ connection_id: e.string().optional(),
902
+ app_metadata: e.record(e.any()).default({}).optional(),
903
+ user_metadata: e.record(e.any()).default({}).optional(),
904
+ ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
905
+ roles: e.array(e.string()).default([]).optional(),
906
+ send_invitation_email: e.boolean().default(!0).optional()
907
+ }), tt = e.object({
908
+ id: e.string(),
909
+ organization_id: e.string().max(50),
910
+ created_at: e.string().datetime(),
911
+ expires_at: e.string().datetime(),
912
+ ticket_id: e.string().optional()
913
+ }).extend(re.shape), le = e.object({
892
914
  alg: e.enum([
893
915
  "RS256",
894
916
  "RS384",
@@ -907,9 +929,9 @@ const q = e.enum([
907
929
  x5t: e.string().optional(),
908
930
  x5c: e.array(e.string()).optional(),
909
931
  use: e.enum(["sig", "enc"]).optional()
910
- }), Ze = e.object({
911
- keys: e.array(ae)
912
- }), $e = e.object({
932
+ }), ot = e.object({
933
+ keys: e.array(le)
934
+ }), nt = e.object({
913
935
  issuer: e.string(),
914
936
  authorization_endpoint: e.string(),
915
937
  token_endpoint: e.string(),
@@ -930,7 +952,7 @@ const q = e.enum([
930
952
  request_uri_parameter_supported: e.boolean(),
931
953
  request_parameter_supported: e.boolean(),
932
954
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
933
- }), se = e.object({
955
+ }), _e = e.object({
934
956
  csrf_token: e.string(),
935
957
  auth0Client: e.string().optional(),
936
958
  authParams: K,
@@ -943,14 +965,14 @@ const q = e.enum([
943
965
  login_completed: e.boolean().optional().default(!1)
944
966
  }).openapi({
945
967
  description: "This represents a login sesion"
946
- }), eo = e.object({
947
- ...se.shape,
968
+ }), it = e.object({
969
+ ..._e.shape,
948
970
  id: e.string().openapi({
949
971
  description: "This is is used as the state in the universal login"
950
972
  }),
951
973
  created_at: e.string(),
952
974
  updated_at: e.string()
953
- }), re = {
975
+ }), ce = {
954
976
  // Network & System
955
977
  ACLS_SUMMARY: "acls_summary",
956
978
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1117,17 +1139,17 @@ const q = e.enum([
1117
1139
  WARNING_DURING_LOGIN: "w",
1118
1140
  WARNING_SENDING_NOTIFICATION: "wn",
1119
1141
  WARNING_USER_MANAGEMENT: "wum"
1120
- }, le = e.string().refine(
1121
- (o) => Object.values(re).includes(o),
1142
+ }, pe = e.string().refine(
1143
+ (t) => Object.values(ce).includes(t),
1122
1144
  { message: "Invalid log type" }
1123
- ), _e = e.object({
1145
+ ), de = e.object({
1124
1146
  name: e.string(),
1125
1147
  version: e.string(),
1126
1148
  env: e.object({
1127
1149
  node: e.string().optional()
1128
1150
  }).optional()
1129
- }), oo = e.object({
1130
- type: le,
1151
+ }), at = e.object({
1152
+ type: pe,
1131
1153
  date: e.string(),
1132
1154
  description: e.string().optional(),
1133
1155
  log_id: e.string().optional(),
@@ -1148,13 +1170,13 @@ const q = e.enum([
1148
1170
  strategy: e.string().optional(),
1149
1171
  strategy_type: e.string().optional(),
1150
1172
  hostname: e.string().optional(),
1151
- auth0_client: _e.optional()
1152
- }), ce = e.object({
1173
+ auth0_client: de.optional()
1174
+ }), ge = e.object({
1153
1175
  user_id: e.string(),
1154
1176
  password: e.string(),
1155
1177
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id")
1156
- }), to = e.object({
1157
- ...ce.shape,
1178
+ }), st = e.object({
1179
+ ...ge.shape,
1158
1180
  created_at: e.string(),
1159
1181
  updated_at: e.string()
1160
1182
  }), b = e.object({
@@ -1164,7 +1186,7 @@ const q = e.enum([
1164
1186
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1165
1187
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1166
1188
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1167
- }), pe = e.object({
1189
+ }), ue = e.object({
1168
1190
  id: e.string(),
1169
1191
  revoked_at: e.string().optional(),
1170
1192
  used_at: e.string().optional(),
@@ -1176,13 +1198,13 @@ const q = e.enum([
1176
1198
  "Metadata related to the device used in the session"
1177
1199
  ),
1178
1200
  clients: e.array(e.string()).describe("List of client details for the session")
1179
- }), no = e.object({
1201
+ }), rt = e.object({
1180
1202
  created_at: e.string(),
1181
1203
  updated_at: e.string(),
1182
1204
  authenticated_at: e.string(),
1183
1205
  last_interaction_at: e.string(),
1184
- ...pe.shape
1185
- }), io = e.object({
1206
+ ...ue.shape
1207
+ }), lt = e.object({
1186
1208
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1187
1209
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1188
1210
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1208,8 +1230,8 @@ const q = e.enum([
1208
1230
  description: "The type of the signing key"
1209
1231
  })
1210
1232
  });
1211
- var de = /* @__PURE__ */ ((o) => (o.RefreshToken = "refresh_token", o.AuthorizationCode = "authorization_code", o.ClientCredential = "client_credentials", o.Passwordless = "passwordless", o.Password = "password", o.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", o))(de || {});
1212
- const ao = e.object({
1233
+ var me = /* @__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))(me || {});
1234
+ const _t = e.object({
1213
1235
  access_token: e.string(),
1214
1236
  id_token: e.string().optional(),
1215
1237
  scope: e.string().optional(),
@@ -1222,7 +1244,7 @@ e.object({
1222
1244
  code: e.string(),
1223
1245
  state: e.string().optional()
1224
1246
  });
1225
- const ge = e.object({
1247
+ const he = e.object({
1226
1248
  button_border_radius: e.number(),
1227
1249
  button_border_weight: e.number(),
1228
1250
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -1232,7 +1254,7 @@ const ge = e.object({
1232
1254
  show_widget_shadow: e.boolean(),
1233
1255
  widget_border_weight: e.number(),
1234
1256
  widget_corner_radius: e.number()
1235
- }), ue = e.object({
1257
+ }), be = e.object({
1236
1258
  base_focus_color: e.string(),
1237
1259
  base_hover_color: e.string(),
1238
1260
  body_text: e.string(),
@@ -1252,44 +1274,44 @@ const ge = e.object({
1252
1274
  success: e.string(),
1253
1275
  widget_background: e.string(),
1254
1276
  widget_border: e.string()
1255
- }), t = e.object({
1277
+ }), o = e.object({
1256
1278
  bold: e.boolean(),
1257
1279
  size: e.number()
1258
- }), me = e.object({
1259
- body_text: t,
1260
- buttons_text: t,
1280
+ }), Ee = e.object({
1281
+ body_text: o,
1282
+ buttons_text: o,
1261
1283
  font_url: e.string(),
1262
- input_labels: t,
1263
- links: t,
1284
+ input_labels: o,
1285
+ links: o,
1264
1286
  links_style: e.enum(["normal", "underlined"]),
1265
1287
  reference_text_size: e.number(),
1266
- subtitle: t,
1267
- title: t
1268
- }), he = e.object({
1288
+ subtitle: o,
1289
+ title: o
1290
+ }), fe = e.object({
1269
1291
  background_color: e.string(),
1270
1292
  background_image_url: e.string(),
1271
1293
  page_layout: e.enum(["center", "left", "right"])
1272
- }), be = e.object({
1294
+ }), Se = e.object({
1273
1295
  header_text_alignment: e.enum(["center", "left", "right"]),
1274
1296
  logo_height: e.number(),
1275
1297
  logo_position: e.enum(["center", "left", "none", "right"]),
1276
1298
  logo_url: e.string(),
1277
1299
  social_buttons_layout: e.enum(["bottom", "top"])
1278
- }), Ee = e.object({
1279
- borders: ge,
1280
- colors: ue,
1300
+ }), Ae = e.object({
1301
+ borders: he,
1302
+ colors: be,
1281
1303
  displayName: e.string(),
1282
- fonts: me,
1283
- page_background: he,
1284
- widget: be
1285
- }), so = Ee.extend({
1304
+ fonts: Ee,
1305
+ page_background: fe,
1306
+ widget: Se
1307
+ }), ct = Ae.extend({
1286
1308
  themeId: e.string()
1287
- }), ro = e.object({
1309
+ }), pt = e.object({
1288
1310
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1289
1311
  identifier_first: e.boolean().default(!0),
1290
1312
  password_first: e.boolean().default(!1),
1291
1313
  webauthn_platform_first_factor: e.boolean()
1292
- }), lo = e.object({
1314
+ }), dt = e.object({
1293
1315
  name: e.string(),
1294
1316
  enabled: e.boolean().optional().default(!0),
1295
1317
  default_from_address: e.string().optional(),
@@ -1319,7 +1341,7 @@ const ge = e.object({
1319
1341
  })
1320
1342
  ]),
1321
1343
  settings: e.object({}).optional()
1322
- }), fe = e.object({
1344
+ }), Ie = e.object({
1323
1345
  // The actual refresh token value (primary key).
1324
1346
  id: e.string(),
1325
1347
  // Link to the session record
@@ -1340,21 +1362,21 @@ const ge = e.object({
1340
1362
  })
1341
1363
  ),
1342
1364
  rotating: e.boolean()
1343
- }), _o = e.object({
1365
+ }), gt = e.object({
1344
1366
  // When the refresh token record was created.
1345
1367
  created_at: e.string(),
1346
1368
  // Spread in the rest of the refresh token properties.
1347
- ...fe.shape
1348
- }), co = e.object({
1369
+ ...Ie.shape
1370
+ }), ut = e.object({
1349
1371
  to: e.string(),
1350
1372
  message: e.string()
1351
- }), po = e.object({
1373
+ }), mt = e.object({
1352
1374
  name: e.string(),
1353
1375
  options: e.object({})
1354
- }), Se = e.object({
1376
+ }), Ce = e.object({
1355
1377
  value: e.string(),
1356
1378
  description: e.string().optional()
1357
- }), Ae = e.object({
1379
+ }), Oe = e.object({
1358
1380
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
1359
1381
  enforce_policies: e.boolean().optional(),
1360
1382
  allow_skipping_userinfo: e.boolean().optional(),
@@ -1364,10 +1386,10 @@ const ge = e.object({
1364
1386
  mtls: e.object({
1365
1387
  bound_access_tokens: e.boolean().optional()
1366
1388
  }).optional()
1367
- }), Ie = e.object({
1389
+ }), Te = e.object({
1368
1390
  name: e.string(),
1369
1391
  identifier: e.string(),
1370
- scopes: e.array(Se).optional(),
1392
+ scopes: e.array(Ce).optional(),
1371
1393
  signing_alg: e.string().optional(),
1372
1394
  signing_secret: e.string().optional(),
1373
1395
  token_lifetime: e.number().optional(),
@@ -1375,39 +1397,39 @@ const ge = e.object({
1375
1397
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
1376
1398
  allow_offline_access: e.boolean().optional(),
1377
1399
  verificationKey: e.string().optional(),
1378
- options: Ae.optional()
1379
- }), Ce = e.object({
1400
+ options: Oe.optional()
1401
+ }), Ne = e.object({
1380
1402
  id: e.string().optional(),
1381
- ...Ie.shape,
1403
+ ...Te.shape,
1382
1404
  created_at: e.string().optional(),
1383
1405
  updated_at: e.string().optional()
1384
- }), go = e.array(Ce), Oe = e.object({
1406
+ }), ht = e.array(Ne), ye = e.object({
1385
1407
  role_id: e.string(),
1386
1408
  resource_server_identifier: e.string(),
1387
1409
  permission_name: e.string()
1388
- }), Te = e.object({
1389
- ...Oe.shape,
1410
+ }), Re = e.object({
1411
+ ...ye.shape,
1390
1412
  tenant_id: e.string(),
1391
1413
  created_at: e.string().optional()
1392
- }), uo = e.array(Te), Ne = e.object({
1414
+ }), bt = e.array(Re), Le = e.object({
1393
1415
  role_id: e.string(),
1394
1416
  resource_server_identifier: e.string(),
1395
1417
  resource_server_name: e.string(),
1396
1418
  permission_name: e.string(),
1397
1419
  description: e.string().nullable().optional(),
1398
1420
  created_at: e.string().optional()
1399
- }), mo = e.array(
1400
- Ne
1401
- ), ye = e.object({
1421
+ }), Et = e.array(
1422
+ Le
1423
+ ), De = e.object({
1402
1424
  user_id: e.string(),
1403
1425
  resource_server_identifier: e.string(),
1404
1426
  permission_name: e.string(),
1405
1427
  organization_id: e.string().optional()
1406
- }), Re = e.object({
1407
- ...ye.shape,
1428
+ }), je = e.object({
1429
+ ...De.shape,
1408
1430
  tenant_id: e.string(),
1409
1431
  created_at: e.string().optional()
1410
- }), ho = e.array(Re), Le = e.object({
1432
+ }), ft = e.array(je), we = e.object({
1411
1433
  user_id: e.string(),
1412
1434
  resource_server_identifier: e.string(),
1413
1435
  resource_server_name: e.string(),
@@ -1415,31 +1437,31 @@ const ge = e.object({
1415
1437
  description: e.string().nullable().optional(),
1416
1438
  created_at: e.string().optional(),
1417
1439
  organization_id: e.string().optional()
1418
- }), bo = e.array(
1419
- Le
1420
- ), De = e.object({
1440
+ }), St = e.array(
1441
+ we
1442
+ ), ke = e.object({
1421
1443
  user_id: e.string(),
1422
1444
  role_id: e.string(),
1423
1445
  organization_id: e.string().optional()
1424
- }), we = e.object({
1425
- ...De.shape,
1446
+ }), Ue = e.object({
1447
+ ...ke.shape,
1426
1448
  tenant_id: e.string(),
1427
1449
  created_at: e.string().optional()
1428
- }), Eo = e.array(we), je = e.object({
1450
+ }), At = e.array(Ue), Fe = e.object({
1429
1451
  name: e.string().min(1).max(50).openapi({
1430
1452
  description: "The name of the role. Cannot include '<' or '>'"
1431
1453
  }),
1432
1454
  description: e.string().max(255).optional().openapi({
1433
1455
  description: "The description of the role"
1434
1456
  })
1435
- }), ke = e.object({
1457
+ }), ve = e.object({
1436
1458
  id: e.string().openapi({
1437
1459
  description: "The unique identifier of the role"
1438
1460
  }),
1439
- ...je.shape,
1461
+ ...Fe.shape,
1440
1462
  created_at: e.string().optional(),
1441
1463
  updated_at: e.string().optional()
1442
- }), fo = e.array(ke), Ue = e.object({
1464
+ }), It = e.array(ve), Pe = e.object({
1443
1465
  logo_url: e.string().optional().openapi({
1444
1466
  description: "URL of the organization's logo"
1445
1467
  }),
@@ -1451,7 +1473,7 @@ const ge = e.object({
1451
1473
  description: "Page background color in hex format (e.g., #FFFFFF)"
1452
1474
  })
1453
1475
  }).optional()
1454
- }).optional(), Fe = e.object({
1476
+ }).optional(), He = e.object({
1455
1477
  connection_id: e.string().openapi({
1456
1478
  description: "ID of the connection"
1457
1479
  }),
@@ -1464,7 +1486,7 @@ const ge = e.object({
1464
1486
  is_signup_enabled: e.boolean().default(!0).openapi({
1465
1487
  description: "Whether signup is enabled for this connection"
1466
1488
  })
1467
- }), ve = e.object({
1489
+ }), Me = e.object({
1468
1490
  client_credentials: e.object({
1469
1491
  enforce: e.boolean().default(!1).openapi({
1470
1492
  description: "Whether to enforce token quota limits"
@@ -1476,7 +1498,7 @@ const ge = e.object({
1476
1498
  description: "Maximum tokens per hour (0 = unlimited)"
1477
1499
  })
1478
1500
  }).optional()
1479
- }).optional(), Pe = e.object({
1501
+ }).optional(), xe = e.object({
1480
1502
  id: e.string().optional(),
1481
1503
  name: e.string().min(1).openapi({
1482
1504
  description: "The name of the organization"
@@ -1484,30 +1506,30 @@ const ge = e.object({
1484
1506
  display_name: e.string().optional().openapi({
1485
1507
  description: "The display name of the organization"
1486
1508
  }),
1487
- branding: Ue,
1509
+ branding: Pe,
1488
1510
  metadata: e.record(e.any()).default({}).optional().openapi({
1489
1511
  description: "Custom metadata for the organization"
1490
1512
  }),
1491
- enabled_connections: e.array(Fe).default([]).optional().openapi({
1513
+ enabled_connections: e.array(He).default([]).optional().openapi({
1492
1514
  description: "List of enabled connections for the organization"
1493
1515
  }),
1494
- token_quota: ve
1495
- }), So = e.object({
1496
- ...Pe.shape,
1516
+ token_quota: Me
1517
+ }), Ct = e.object({
1518
+ ...xe.shape,
1497
1519
  ...n.shape,
1498
1520
  id: e.string()
1499
- }), He = e.object({
1521
+ }), Ge = e.object({
1500
1522
  user_id: e.string().openapi({
1501
1523
  description: "ID of the user"
1502
1524
  }),
1503
1525
  organization_id: e.string().openapi({
1504
1526
  description: "ID of the organization"
1505
1527
  })
1506
- }), Ao = e.object({
1507
- ...He.shape,
1528
+ }), Ot = e.object({
1529
+ ...Ge.shape,
1508
1530
  ...n.shape,
1509
1531
  id: e.string()
1510
- }), Io = e.object({
1532
+ }), Tt = e.object({
1511
1533
  // Session settings
1512
1534
  idle_session_lifetime: e.number().optional(),
1513
1535
  session_lifetime: e.number().optional(),
@@ -1577,124 +1599,128 @@ const ge = e.object({
1577
1599
  oidc_logout_prompt_enabled: e.boolean().optional()
1578
1600
  }).optional()
1579
1601
  });
1580
- function Co(o) {
1581
- const [i, s] = o.split("|");
1602
+ function Nt(t) {
1603
+ const [i, s] = t.split("|");
1582
1604
  if (!i || !s)
1583
- throw new Error(`Invalid user_id: ${o}`);
1605
+ throw new Error(`Invalid user_id: ${t}`);
1584
1606
  return { connection: i, id: s };
1585
1607
  }
1586
1608
  export {
1587
- _e as Auth0Client,
1609
+ de as Auth0Client,
1588
1610
  g as AuthorizationResponseMode,
1589
1611
  d as AuthorizationResponseType,
1590
1612
  u as CodeChallengeMethod,
1591
1613
  p as ComponentCategory,
1592
1614
  c as ComponentType,
1593
- de as GrantType,
1594
- re as LogTypes,
1615
+ me as GrantType,
1616
+ ce as LogTypes,
1595
1617
  U as NodeType,
1596
- ze as auth0FlowInsertSchema,
1618
+ Ve as auth0FlowInsertSchema,
1597
1619
  G as auth0FlowSchema,
1598
- Ge as auth0UserResponseSchema,
1620
+ Be as auth0UserResponseSchema,
1599
1621
  K as authParamsSchema,
1600
1622
  _ as baseUserSchema,
1601
- ge as bordersSchema,
1602
- We as brandingSchema,
1623
+ he as bordersSchema,
1624
+ qe as brandingSchema,
1603
1625
  L as buttonComponentSchema,
1604
1626
  N as clientGrantInsertSchema,
1605
- Be as clientGrantListSchema,
1627
+ Xe as clientGrantListSchema,
1606
1628
  y as clientGrantSchema,
1607
1629
  O as clientInsertSchema,
1608
1630
  T as clientSchema,
1609
1631
  Y as codeInsertSchema,
1610
- Xe as codeSchema,
1632
+ Ye as codeSchema,
1611
1633
  q as codeTypeSchema,
1612
- ue as colorsSchema,
1634
+ be as colorsSchema,
1613
1635
  k as componentSchema,
1614
- z as connectionInsertSchema,
1615
- B as connectionOptionsSchema,
1636
+ B as connectionInsertSchema,
1637
+ z as connectionOptionsSchema,
1616
1638
  W as connectionSchema,
1617
1639
  a as coordinatesSchema,
1618
1640
  Q as customDomainInsertSchema,
1619
1641
  Z as customDomainSchema,
1620
- Ve as customDomainWithTenantIdSchema,
1621
- lo as emailProviderSchema,
1642
+ Qe as customDomainWithTenantIdSchema,
1643
+ dt as emailProviderSchema,
1622
1644
  x as endingSchema,
1623
- w as fieldComponentSchema,
1645
+ j as fieldComponentSchema,
1624
1646
  v as flowNodeSchema,
1625
- t as fontDetailsSchema,
1626
- me as fontsSchema,
1627
- qe as formControlSchema,
1647
+ o as fontDetailsSchema,
1648
+ Ee as fontsSchema,
1649
+ Je as formControlSchema,
1628
1650
  ee as formInsertSchema,
1629
1651
  $ as formNodeComponentDefinition,
1630
- Ye as formSchema,
1631
- j as genericComponentSchema,
1652
+ Ze as formSchema,
1653
+ w as genericComponentSchema,
1632
1654
  P as genericNodeSchema,
1633
- Qe as hookInsertSchema,
1634
- Je as hookSchema,
1655
+ $e as hookInsertSchema,
1656
+ et as hookSchema,
1635
1657
  f as identitySchema,
1636
- Ze as jwksKeySchema,
1637
- ae as jwksSchema,
1658
+ re as inviteInsertSchema,
1659
+ tt as inviteSchema,
1660
+ se as inviteeSchema,
1661
+ ae as inviterSchema,
1662
+ ot as jwksKeySchema,
1663
+ le as jwksSchema,
1638
1664
  D as legalComponentSchema,
1639
- oo as logSchema,
1640
- se as loginSessionInsertSchema,
1641
- eo as loginSessionSchema,
1665
+ at as logSchema,
1666
+ _e as loginSessionInsertSchema,
1667
+ it as loginSessionSchema,
1642
1668
  H as nodeSchema,
1643
- $e as openIDConfigurationSchema,
1644
- Ue as organizationBrandingSchema,
1645
- Fe as organizationEnabledConnectionSchema,
1646
- Pe as organizationInsertSchema,
1647
- So as organizationSchema,
1648
- ve as organizationTokenQuotaSchema,
1649
- he as pageBackgroundSchema,
1650
- Co as parseUserId,
1651
- ce as passwordInsertSchema,
1652
- to as passwordSchema,
1669
+ nt as openIDConfigurationSchema,
1670
+ Pe as organizationBrandingSchema,
1671
+ He as organizationEnabledConnectionSchema,
1672
+ xe as organizationInsertSchema,
1673
+ Ct as organizationSchema,
1674
+ Me as organizationTokenQuotaSchema,
1675
+ fe as pageBackgroundSchema,
1676
+ Nt as parseUserId,
1677
+ ge as passwordInsertSchema,
1678
+ st as passwordSchema,
1653
1679
  E as profileDataSchema,
1654
- ro as promptSettingSchema,
1655
- fe as refreshTokenInsertSchema,
1656
- _o as refreshTokenSchema,
1657
- Ie as resourceServerInsertSchema,
1658
- go as resourceServerListSchema,
1659
- Ae as resourceServerOptionsSchema,
1660
- Ce as resourceServerSchema,
1661
- Se as resourceServerScopeSchema,
1680
+ pt as promptSettingSchema,
1681
+ Ie as refreshTokenInsertSchema,
1682
+ gt as refreshTokenSchema,
1683
+ Te as resourceServerInsertSchema,
1684
+ ht as resourceServerListSchema,
1685
+ Oe as resourceServerOptionsSchema,
1686
+ Ne as resourceServerSchema,
1687
+ Ce as resourceServerScopeSchema,
1662
1688
  R as richTextComponentSchema,
1663
- je as roleInsertSchema,
1664
- fo as roleListSchema,
1665
- Oe as rolePermissionInsertSchema,
1666
- uo as rolePermissionListSchema,
1667
- Te as rolePermissionSchema,
1668
- mo as rolePermissionWithDetailsListSchema,
1669
- Ne as rolePermissionWithDetailsSchema,
1670
- ke as roleSchema,
1671
- pe as sessionInsertSchema,
1672
- no as sessionSchema,
1673
- io as signingKeySchema,
1674
- po as smsProviderSchema,
1675
- co as smsSendParamsSchema,
1689
+ Fe as roleInsertSchema,
1690
+ It as roleListSchema,
1691
+ ye as rolePermissionInsertSchema,
1692
+ bt as rolePermissionListSchema,
1693
+ Re as rolePermissionSchema,
1694
+ Et as rolePermissionWithDetailsListSchema,
1695
+ Le as rolePermissionWithDetailsSchema,
1696
+ ve as roleSchema,
1697
+ ue as sessionInsertSchema,
1698
+ rt as sessionSchema,
1699
+ lt as signingKeySchema,
1700
+ mt as smsProviderSchema,
1701
+ ut as smsSendParamsSchema,
1676
1702
  M as startSchema,
1677
1703
  F as stepNodeSchema,
1678
1704
  X as tenantInsertSchema,
1679
1705
  V as tenantSchema,
1680
- Io as tenantSettingsSchema,
1681
- Ee as themeInsertSchema,
1682
- so as themeSchema,
1683
- ao as tokenResponseSchema,
1684
- xe as totalsSchema,
1706
+ Tt as tenantSettingsSchema,
1707
+ Ae as themeInsertSchema,
1708
+ ct as themeSchema,
1709
+ _t as tokenResponseSchema,
1710
+ ze as totalsSchema,
1685
1711
  S as userInsertSchema,
1686
- He as userOrganizationInsertSchema,
1687
- Ao as userOrganizationSchema,
1688
- ye as userPermissionInsertSchema,
1689
- ho as userPermissionListSchema,
1690
- Re as userPermissionSchema,
1691
- bo as userPermissionWithDetailsListSchema,
1692
- Le as userPermissionWithDetailsSchema,
1693
- Ke as userResponseSchema,
1694
- De as userRoleInsertSchema,
1695
- Eo as userRoleListSchema,
1696
- we as userRoleSchema,
1712
+ Ge as userOrganizationInsertSchema,
1713
+ Ot as userOrganizationSchema,
1714
+ De as userPermissionInsertSchema,
1715
+ ft as userPermissionListSchema,
1716
+ je as userPermissionSchema,
1717
+ St as userPermissionWithDetailsListSchema,
1718
+ we as userPermissionWithDetailsSchema,
1719
+ We as userResponseSchema,
1720
+ ke as userRoleInsertSchema,
1721
+ At as userRoleListSchema,
1722
+ Ue as userRoleSchema,
1697
1723
  A as userSchema,
1698
1724
  J as verificationMethodsSchema,
1699
- be as widgetSchema
1725
+ Se as widgetSchema
1700
1726
  };
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.95.0",
14
+ "version": "0.96.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],