@authhero/adapter-interfaces 0.102.0 → 0.103.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"),Ue=e.z.object({page:e.z.string().min(0).optional().default("0").transform(t=>parseInt(t,10)).openapi({description:"The page number where 0 is the first page"}),per_page:e.z.string().min(1).optional().default("10").transform(t=>parseInt(t,10)).openapi({description:"The number of items per page"}),include_totals:e.z.string().optional().default("false").transform(t=>t==="true").openapi({description:"If the total number of items should be included in the response"}),sort:e.z.string().regex(/^.+:(-1|1)$/).optional().openapi({description:"A property that should have the format 'string:-1' or 'string:1'"}),q:e.z.string().optional().openapi({description:"A lucene query string used to filter the results"})}),Fe=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),m=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:u.optional()}),c=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),h=c.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().optional(),connection:e.z.string(),is_social:e.z.boolean().optional()}),S=e.z.object({...h.shape,...n.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(m).optional()}),Pe=S,Me=c.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),xe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let He=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)a+=xe[s[t]&63];return a};const b=e.z.object({client_id:e.z.string().openapi({description:"ID of this client."}),name:e.z.string().min(1).openapi({description:"Name of this client (min length: 1 character, does not allow < or >)."}),description:e.z.string().max(140).optional().openapi({description:"Free text description of this client (max length: 140 characters)."}),global:e.z.boolean().default(!1).openapi({description:"Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."}),client_secret:e.z.string().default(()=>He()).optional().openapi({description:"Client secret (which you must not make public)."}),app_type:e.z.enum(["native","spa","regular_web","non_interactive","resource_server","express_configuration","rms","box","cloudbees","concur","dropbox","mscrm","echosign","egnyte","newrelic","office365","salesforce","sentry","sharepoint","slack","springcm","zendesk","zoom","sso_integration","oag"]).default("regular_web").optional().openapi({description:"The type of application this client represents"}),logo_uri:e.z.string().url().optional().openapi({description:"URL of the logo to display for this client. Recommended size is 150x150 pixels."}),is_first_party:e.z.boolean().default(!1).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(!1).openapi({description:"Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false)."}),sso_disabled:e.z.boolean().default(!0).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(!1).openapi({description:"Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)."}),cross_origin_loc:e.z.string().url().optional().openapi({description:"URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page."}),custom_login_page_on:e.z.boolean().default(!1).openapi({description:"Whether a custom login page is to be used (true) or the default provided login page (false)."}),custom_login_page:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page."}),custom_login_page_preview:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page. (Used on Previews)"}),form_template:e.z.string().optional().openapi({description:"HTML form template to be used for WS-Federation."}),addons:e.z.record(e.z.any()).default({}).optional().openapi({description:"Addons enabled for this client and their associated configurations."}),token_endpoint_auth_method:e.z.enum(["none","client_secret_post","client_secret_basic"]).default("client_secret_basic").optional().openapi({description:"Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."}),client_metadata:e.z.record(e.z.string().max(255)).default({}).optional().openapi({description:'Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/()<>@ [Tab][Space]'}),mobile:e.z.record(e.z.any()).default({}).optional().openapi({description:"Additional configuration for native mobile apps."}),initiate_login_uri:e.z.string().url().optional().openapi({description:"Initiate login uri, must be https"}),native_social_login:e.z.record(e.z.any()).default({}).optional(),refresh_token:e.z.record(e.z.any()).default({}).optional().openapi({description:"Refresh token configuration"}),default_organization:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines the default Organization ID and flows"}),organization_usage:e.z.enum(["deny","allow","require"]).default("deny").optional().openapi({description:"Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."}),organization_require_behavior:e.z.enum(["no_prompt","pre_login_prompt","post_login_prompt"]).default("no_prompt").optional().openapi({description:"Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."}),client_authentication_methods:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines client authentication methods."}),require_pushed_authorization_requests:e.z.boolean().default(!1).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(!1).openapi({description:"Makes the use of Proof-of-Possession mandatory for this client"}),signed_request_object:e.z.record(e.z.any()).default({}).optional().openapi({description:"JWT-secured Authorization Requests (JAR) settings."}),compliance_level:e.z.enum(["none","fapi1_adv_pkj_par","fapi1_adv_mtls_par","fapi2_sp_pkj_mtls","fapi2_sp_mtls_mtls"]).optional().openapi({description:"Defines the compliance level for this client, which may restrict it's capabilities"}),par_request_expiry:e.z.number().optional().openapi({description:"Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"}),token_quota:e.z.record(e.z.any()).default({}).optional()}),f=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...b.shape}),E=e.z.object({client_id:e.z.string().min(1).openapi({description:"ID of the client."}),audience:e.z.string().min(1).openapi({description:"The audience (API identifier) of this client grant."}),scope:e.z.array(e.z.string()).optional().openapi({description:"Scopes allowed for this client grant."}),organization_usage:e.z.enum(["deny","allow","require"]).optional().openapi({description:"Defines whether organizations can be used with client credentials exchanges for this grant."}),allow_any_organization:e.z.boolean().optional().openapi({description:"If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations."}),is_system:e.z.boolean().optional().openapi({description:"If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."}),subject_type:e.z.enum(["client","user"]).optional().openapi({description:"The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."}),authorization_details_types:e.z.array(e.z.string()).optional().openapi({description:"Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."})}),A=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...E.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Ge=e.z.array(A),i=e.z.object({x:e.z.number(),y:e.z.number()});var _=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(_||{}),p=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(p||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(p),type:e.z.nativeEnum(_)}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),C=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),T=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),y=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([I,C,O,T,y]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),w=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:i}).passthrough(),j=e.z.union([L,D,w]),k=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),v=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),U=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(j),start:k,ending:v,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),Ke=U.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),z=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(z||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const F=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(z).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),Be=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),powered_by_logo_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),M=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),x=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(M.shape),H=e.z.object({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional()}),G=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...H.shape,id:e.z.string()});e.z.object({...f.shape,tenant:G,connections:e.z.array(x)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),B=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),We=e.z.object({...B.shape,created_at:e.z.string()}),W=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...W.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Xe=V.extend({tenant_id:e.z.string()}),Ve=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),q=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(q),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),qe=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),J=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Ye=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Qe=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Je=e.z.union([Ye,Qe]),Ze=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),$e=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),et=e.z.union([Ze,$e]),Z=e.z.object({name:e.z.string().optional()}),$=e.z.object({email:e.z.string().optional()}),ee=e.z.object({organization_id:e.z.string().max(50),inviter:Z,invitee:$,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(!0).optional()}),tt=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(ee.shape),te=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),ot=e.z.object({keys:e.z.array(te)}),nt=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),oe=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:F,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),it=e.z.object({...oe.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),ne={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},at=e.z.string().refine(t=>Object.values(ne).includes(t),{message:"Invalid log type"}),ie=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),ae=e.z.object({country_code:e.z.string().length(2),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),se=e.z.object({type:at,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ie.optional(),log_id:e.z.string().optional(),location_info:ae.optional()}),st=e.z.object({...se.shape,log_id:e.z.string()}),re=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(!0)}),rt=re.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),le=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),ce=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:le.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),lt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ce.shape}),ct=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"}),connection:e.z.string().optional().openapi({description:"The connection identifier associated with the key"}),type:e.z.enum(["jwt_signing","saml_encryption"]).openapi({description:"The type of the signing key"})});var _e=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(_e||{});const _t=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const pe=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),de=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),o=e.z.object({bold:e.z.boolean(),size:e.z.number()}),ze=e.z.object({body_text:o,buttons_text:o,font_url:e.z.string(),input_labels:o,links:o,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:o,title:o}),ge=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),ue=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),me=e.z.object({borders:pe,colors:de,displayName:e.z.string(),fonts:ze,page_background:ge,widget:ue}),pt=me.extend({themeId:e.z.string()}),dt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),zt=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),he=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:le,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),gt=e.z.object({created_at:e.z.string(),...he.shape}),ut=e.z.object({to:e.z.string(),message:e.z.string()}),mt=e.z.object({name:e.z.string(),options:e.z.object({})}),Se=e.z.object({value:e.z.string(),description:e.z.string().optional()}),be=e.z.object({token_dialect:e.z.enum(["access_token","access_token_authz"]).optional(),enforce_policies:e.z.boolean().optional(),allow_skipping_userinfo:e.z.boolean().optional(),skip_userinfo:e.z.boolean().optional(),persist_client_authorization:e.z.boolean().optional(),enable_introspection_endpoint:e.z.boolean().optional(),mtls:e.z.object({bound_access_tokens:e.z.boolean().optional()}).optional()}),fe=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Se).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().optional(),token_lifetime_for_web:e.z.number().optional(),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:be.optional()}),Ee=e.z.object({id:e.z.string().optional(),...fe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ht=e.z.array(Ee),Ae=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Ie=e.z.object({...Ae.shape,created_at:e.z.string()}),St=e.z.array(Ie),Ce=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string(),organization_id:e.z.string().optional()}),Oe=e.z.object({...Ce.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),bt=e.z.array(Oe),Te=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional(),organization_id:e.z.string().optional()}),ft=e.z.array(Te),ye=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ne=e.z.object({...ye.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Et=e.z.array(Ne),Re=e.z.object({name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"})}),Le=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Re.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),At=e.z.array(Le),De=e.z.object({logo_url:e.z.string().optional().openapi({description:"URL of the organization's logo"}),colors:e.z.object({primary:e.z.string().optional().openapi({description:"Primary color in hex format (e.g., #FF0000)"}),page_background:e.z.string().optional().openapi({description:"Page background color in hex format (e.g., #FFFFFF)"})}).optional()}).optional(),we=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(!1).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(!0).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(!0).openapi({description:"Whether signup is enabled for this connection"})}),je=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(!1).openapi({description:"Whether to enforce token quota limits"}),per_day:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per day (0 = unlimited)"}),per_hour:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per hour (0 = unlimited)"})}).optional()}).optional(),ke=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).openapi({description:"The name of the organization"}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:De,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(we).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:je}),It=e.z.object({...ke.shape,...n.shape,id:e.z.string()}),ve=e.z.object({user_id:e.z.string().openapi({description:"ID of the user"}),organization_id:e.z.string().openapi({description:"ID of the organization"})}),Ct=e.z.object({...ve.shape,...n.shape,id:e.z.string()}),Ot=e.z.object({idle_session_lifetime:e.z.number().optional(),session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional()});function Tt(t){const[a,s]=t.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:s}}exports.Auth0Client=ie;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=_e;exports.LocationInfo=ae;exports.LogTypes=ne;exports.NodeType=R;exports.auth0FlowInsertSchema=Ke;exports.auth0FlowSchema=U;exports.auth0QuerySchema=Ue;exports.auth0UserResponseSchema=Pe;exports.authParamsSchema=F;exports.baseUserSchema=c;exports.bordersSchema=pe;exports.brandingSchema=Be;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=E;exports.clientGrantListSchema=Ge;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=f;exports.codeInsertSchema=B;exports.codeSchema=We;exports.codeTypeSchema=K;exports.colorsSchema=de;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=x;exports.coordinatesSchema=i;exports.customDomainInsertSchema=W;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=Xe;exports.emailProviderSchema=zt;exports.endingSchema=v;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=ze;exports.formControlSchema=Ve;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=qe;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Je;exports.hookSchema=et;exports.identitySchema=m;exports.inviteInsertSchema=ee;exports.inviteSchema=tt;exports.inviteeSchema=$;exports.inviterSchema=Z;exports.jwksKeySchema=ot;exports.jwksSchema=te;exports.legalComponentSchema=O;exports.logInsertSchema=se;exports.logSchema=st;exports.loginSessionInsertSchema=oe;exports.loginSessionSchema=it;exports.nodeSchema=j;exports.openIDConfigurationSchema=nt;exports.organizationBrandingSchema=De;exports.organizationEnabledConnectionSchema=we;exports.organizationInsertSchema=ke;exports.organizationSchema=It;exports.organizationTokenQuotaSchema=je;exports.pageBackgroundSchema=ge;exports.parseUserId=Tt;exports.passwordInsertSchema=re;exports.passwordSchema=rt;exports.profileDataSchema=u;exports.promptSettingSchema=dt;exports.refreshTokenInsertSchema=he;exports.refreshTokenSchema=gt;exports.resourceServerInsertSchema=fe;exports.resourceServerListSchema=ht;exports.resourceServerOptionsSchema=be;exports.resourceServerSchema=Ee;exports.resourceServerScopeSchema=Se;exports.richTextComponentSchema=I;exports.roleInsertSchema=Re;exports.roleListSchema=At;exports.rolePermissionInsertSchema=Ae;exports.rolePermissionListSchema=St;exports.rolePermissionSchema=Ie;exports.roleSchema=Le;exports.sessionInsertSchema=ce;exports.sessionSchema=lt;exports.signingKeySchema=ct;exports.smsProviderSchema=mt;exports.smsSendParamsSchema=ut;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=H;exports.tenantSchema=G;exports.tenantSettingsSchema=Ot;exports.themeInsertSchema=me;exports.themeSchema=pt;exports.tokenResponseSchema=_t;exports.totalsSchema=Fe;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=ve;exports.userOrganizationSchema=Ct;exports.userPermissionInsertSchema=Ce;exports.userPermissionListSchema=bt;exports.userPermissionSchema=Oe;exports.userPermissionWithDetailsListSchema=ft;exports.userPermissionWithDetailsSchema=Te;exports.userResponseSchema=Me;exports.userRoleInsertSchema=ye;exports.userRoleListSchema=Et;exports.userRoleSchema=Ne;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=ue;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),Ue=e.z.object({page:e.z.string().min(0).optional().default("0").transform(t=>parseInt(t,10)).openapi({description:"The page number where 0 is the first page"}),per_page:e.z.string().min(1).optional().default("10").transform(t=>parseInt(t,10)).openapi({description:"The number of items per page"}),include_totals:e.z.string().optional().default("false").transform(t=>t==="true").openapi({description:"If the total number of items should be included in the response"}),sort:e.z.string().regex(/^.+:(-1|1)$/).optional().openapi({description:"A property that should have the format 'string:-1' or 'string:1'"}),q:e.z.string().optional().openapi({description:"A lucene query string used to filter the results"})}),Fe=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),n=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),u=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),m=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:u.optional()}),c=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),h=c.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().optional(),connection:e.z.string(),is_social:e.z.boolean().optional()}),S=e.z.object({...h.shape,...n.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(m).optional()}),Pe=S,Me=c.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),xe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let He=(t=21)=>{let a="",s=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)a+=xe[s[t]&63];return a};const b=e.z.object({client_id:e.z.string().openapi({description:"ID of this client."}),name:e.z.string().min(1).openapi({description:"Name of this client (min length: 1 character, does not allow < or >)."}),description:e.z.string().max(140).optional().openapi({description:"Free text description of this client (max length: 140 characters)."}),global:e.z.boolean().default(!1).openapi({description:"Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."}),client_secret:e.z.string().default(()=>He()).optional().openapi({description:"Client secret (which you must not make public)."}),app_type:e.z.enum(["native","spa","regular_web","non_interactive","resource_server","express_configuration","rms","box","cloudbees","concur","dropbox","mscrm","echosign","egnyte","newrelic","office365","salesforce","sentry","sharepoint","slack","springcm","zendesk","zoom","sso_integration","oag"]).default("regular_web").optional().openapi({description:"The type of application this client represents"}),logo_uri:e.z.string().url().optional().openapi({description:"URL of the logo to display for this client. Recommended size is 150x150 pixels."}),is_first_party:e.z.boolean().default(!1).openapi({description:"Whether this client a first party client (true) or not (false)."}),oidc_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(!1).openapi({description:"Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false)."}),sso_disabled:e.z.boolean().default(!0).openapi({description:"Whether Single Sign On is disabled (true) or enabled (true). Defaults to true."}),cross_origin_authentication:e.z.boolean().default(!1).openapi({description:"Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)."}),cross_origin_loc:e.z.string().url().optional().openapi({description:"URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page."}),custom_login_page_on:e.z.boolean().default(!1).openapi({description:"Whether a custom login page is to be used (true) or the default provided login page (false)."}),custom_login_page:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page."}),custom_login_page_preview:e.z.string().optional().openapi({description:"The content (HTML, CSS, JS) of the custom login page. (Used on Previews)"}),form_template:e.z.string().optional().openapi({description:"HTML form template to be used for WS-Federation."}),addons:e.z.record(e.z.any()).default({}).optional().openapi({description:"Addons enabled for this client and their associated configurations."}),token_endpoint_auth_method:e.z.enum(["none","client_secret_post","client_secret_basic"]).default("client_secret_basic").optional().openapi({description:"Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."}),client_metadata:e.z.record(e.z.string().max(255)).default({}).optional().openapi({description:'Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/()<>@ [Tab][Space]'}),mobile:e.z.record(e.z.any()).default({}).optional().openapi({description:"Additional configuration for native mobile apps."}),initiate_login_uri:e.z.string().url().optional().openapi({description:"Initiate login uri, must be https"}),native_social_login:e.z.record(e.z.any()).default({}).optional(),refresh_token:e.z.record(e.z.any()).default({}).optional().openapi({description:"Refresh token configuration"}),default_organization:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines the default Organization ID and flows"}),organization_usage:e.z.enum(["deny","allow","require"]).default("deny").optional().openapi({description:"Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."}),organization_require_behavior:e.z.enum(["no_prompt","pre_login_prompt","post_login_prompt"]).default("no_prompt").optional().openapi({description:"Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."}),client_authentication_methods:e.z.record(e.z.any()).default({}).optional().openapi({description:"Defines client authentication methods."}),require_pushed_authorization_requests:e.z.boolean().default(!1).openapi({description:"Makes the use of Pushed Authorization Requests mandatory for this client"}),require_proof_of_possession:e.z.boolean().default(!1).openapi({description:"Makes the use of Proof-of-Possession mandatory for this client"}),signed_request_object:e.z.record(e.z.any()).default({}).optional().openapi({description:"JWT-secured Authorization Requests (JAR) settings."}),compliance_level:e.z.enum(["none","fapi1_adv_pkj_par","fapi1_adv_mtls_par","fapi2_sp_pkj_mtls","fapi2_sp_mtls_mtls"]).optional().openapi({description:"Defines the compliance level for this client, which may restrict it's capabilities"}),par_request_expiry:e.z.number().optional().openapi({description:"Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"}),token_quota:e.z.record(e.z.any()).default({}).optional()}),f=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...b.shape}),E=e.z.object({client_id:e.z.string().min(1).openapi({description:"ID of the client."}),audience:e.z.string().min(1).openapi({description:"The audience (API identifier) of this client grant."}),scope:e.z.array(e.z.string()).optional().openapi({description:"Scopes allowed for this client grant."}),organization_usage:e.z.enum(["deny","allow","require"]).optional().openapi({description:"Defines whether organizations can be used with client credentials exchanges for this grant."}),allow_any_organization:e.z.boolean().optional().openapi({description:"If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations."}),is_system:e.z.boolean().optional().openapi({description:"If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."}),subject_type:e.z.enum(["client","user"]).optional().openapi({description:"The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."}),authorization_details_types:e.z.array(e.z.string()).optional().openapi({description:"Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."})}),A=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...E.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Ge=e.z.array(A),i=e.z.object({x:e.z.number(),y:e.z.number()});var _=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(_||{}),p=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(p||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(p),type:e.z.nativeEnum(_)}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),C=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),T=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),y=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([I,C,O,T,y]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:i,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),w=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:i}).passthrough(),j=e.z.union([L,D,w]),k=e.z.object({next_node:e.z.string(),coordinates:i}).passthrough(),v=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:i}).passthrough(),U=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(j),start:k,ending:v,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),Ke=U.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),z=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(z||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const F=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(z).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),Be=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),powered_by_logo_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional(),icon_url:e.z.string().optional()}),M=e.z.object({id:e.z.string().optional(),name:e.z.string(),display_name:e.z.string().optional(),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(),is_domain_connection:e.z.boolean().optional(),show_as_button:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional()}),x=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(M.shape),H=e.z.object({id:e.z.string().optional(),audience:e.z.string(),friendly_name:e.z.string(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sender_email:e.z.string().email(),sender_name:e.z.string(),session_lifetime:e.z.number().optional(),idle_session_lifetime:e.z.number().optional(),ephemeral_session_lifetime:e.z.number().optional(),idle_ephemeral_session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),allowed_logout_urls:e.z.array(e.z.string()).optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_changing_enable_sso:e.z.boolean().optional(),allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),change_pwd_flow_v1:e.z.boolean().optional(),custom_domains_provisioning:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),disable_impersonation:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),oidc_logout:e.z.object({rp_logout_end_session_endpoint_discovery:e.z.boolean().optional()}).optional(),allow_organization_name_in_authentication_api:e.z.boolean().optional(),customize_mfa_in_postlogin_action:e.z.boolean().optional(),acr_values_supported:e.z.array(e.z.string()).optional(),mtls:e.z.object({enable_endpoint_aliases:e.z.boolean().optional()}).optional(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional()}),G=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...H.shape,id:e.z.string()});e.z.object({...f.shape,tenant:G,connections:e.z.array(x)});const K=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),B=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),We=e.z.object({...B.shape,created_at:e.z.string()}),W=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),V=e.z.object({...W.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Xe=V.extend({tenant_id:e.z.string()}),Ve=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),q=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(q),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),qe=e.z.object({...n.shape,...Y.shape,id:e.z.string()}),Q=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),J=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),l={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Ye=e.z.object({...l,trigger_id:Q,url:e.z.string()}),Qe=e.z.object({...l,trigger_id:J,form_id:e.z.string()}),Je=e.z.union([Ye,Qe]),Ze=e.z.object({...l,trigger_id:Q,...n.shape,hook_id:e.z.string(),url:e.z.string()}),$e=e.z.object({...l,trigger_id:J,...n.shape,hook_id:e.z.string(),form_id:e.z.string()}),et=e.z.union([Ze,$e]),Z=e.z.object({name:e.z.string().optional()}),$=e.z.object({email:e.z.string().optional()}),ee=e.z.object({organization_id:e.z.string().max(50),inviter:Z,invitee:$,invitation_url:e.z.string().url(),client_id:e.z.string(),connection_id:e.z.string().optional(),app_metadata:e.z.record(e.z.any()).default({}).optional(),user_metadata:e.z.record(e.z.any()).default({}).optional(),ttl_sec:e.z.number().int().max(2592e3).default(604800).optional(),roles:e.z.array(e.z.string()).default([]).optional(),send_invitation_email:e.z.boolean().default(!0).optional()}),tt=e.z.object({id:e.z.string(),organization_id:e.z.string().max(50),created_at:e.z.string().datetime(),expires_at:e.z.string().datetime(),ticket_id:e.z.string().optional()}).extend(ee.shape),te=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),ot=e.z.object({keys:e.z.array(te)}),nt=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),oe=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:F,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),it=e.z.object({...oe.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),ne={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},at=e.z.string().refine(t=>Object.values(ne).includes(t),{message:"Invalid log type"}),ie=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),ae=e.z.object({country_code:e.z.string().length(2),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),se=e.z.object({type:at,date:e.z.string(),description:e.z.string().optional(),ip:e.z.string().optional(),user_agent:e.z.string().optional(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ie.optional(),log_id:e.z.string().optional(),location_info:ae.optional()}),st=e.z.object({...se.shape,log_id:e.z.string()}),re=e.z.object({id:e.z.string().optional(),user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id"),is_current:e.z.boolean().default(!0)}),rt=re.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),le=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),ce=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:le.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),lt=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...ce.shape}),ct=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"}),connection:e.z.string().optional().openapi({description:"The connection identifier associated with the key"}),type:e.z.enum(["jwt_signing","saml_encryption"]).openapi({description:"The type of the signing key"})});var _e=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(_e||{});const _t=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const pe=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),de=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),o=e.z.object({bold:e.z.boolean(),size:e.z.number()}),ze=e.z.object({body_text:o,buttons_text:o,font_url:e.z.string(),input_labels:o,links:o,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:o,title:o}),ge=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),ue=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),me=e.z.object({borders:pe,colors:de,displayName:e.z.string(),fonts:ze,page_background:ge,widget:ue}),pt=me.extend({themeId:e.z.string()}),dt=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),zt=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),he=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:le,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),gt=e.z.object({created_at:e.z.string(),...he.shape}),ut=e.z.object({to:e.z.string(),message:e.z.string()}),mt=e.z.object({name:e.z.string(),options:e.z.object({})}),Se=e.z.object({value:e.z.string(),description:e.z.string().optional()}),be=e.z.object({token_dialect:e.z.enum(["access_token","access_token_authz"]).optional(),enforce_policies:e.z.boolean().optional(),allow_skipping_userinfo:e.z.boolean().optional(),skip_userinfo:e.z.boolean().optional(),persist_client_authorization:e.z.boolean().optional(),enable_introspection_endpoint:e.z.boolean().optional(),mtls:e.z.object({bound_access_tokens:e.z.boolean().optional()}).optional()}),fe=e.z.object({name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(Se).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().optional(),token_lifetime_for_web:e.z.number().optional(),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:be.optional()}),Ee=e.z.object({id:e.z.string().optional(),...fe.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),ht=e.z.array(Ee),Ae=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),Ie=e.z.object({...Ae.shape,created_at:e.z.string()}),St=e.z.array(Ie),Ce=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string(),organization_id:e.z.string().optional()}),Oe=e.z.object({...Ce.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),bt=e.z.array(Oe),Te=e.z.object({user_id:e.z.string(),resource_server_identifier:e.z.string(),resource_server_name:e.z.string(),permission_name:e.z.string(),description:e.z.string().nullable().optional(),created_at:e.z.string().optional(),organization_id:e.z.string().optional()}),ft=e.z.array(Te),ye=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Ne=e.z.object({...ye.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Et=e.z.array(Ne),Re=e.z.object({name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"})}),Le=e.z.object({id:e.z.string().openapi({description:"The unique identifier of the role"}),...Re.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),At=e.z.array(Le),De=e.z.object({logo_url:e.z.string().optional().openapi({description:"URL of the organization's logo"}),colors:e.z.object({primary:e.z.string().optional().openapi({description:"Primary color in hex format (e.g., #FF0000)"}),page_background:e.z.string().optional().openapi({description:"Page background color in hex format (e.g., #FFFFFF)"})}).optional()}).optional(),we=e.z.object({connection_id:e.z.string().openapi({description:"ID of the connection"}),assign_membership_on_login:e.z.boolean().default(!1).openapi({description:"Whether to assign membership to the organization on login"}),show_as_button:e.z.boolean().default(!0).openapi({description:"Whether to show this connection as a button in the login screen"}),is_signup_enabled:e.z.boolean().default(!0).openapi({description:"Whether signup is enabled for this connection"})}),je=e.z.object({client_credentials:e.z.object({enforce:e.z.boolean().default(!1).openapi({description:"Whether to enforce token quota limits"}),per_day:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per day (0 = unlimited)"}),per_hour:e.z.number().min(0).default(0).openapi({description:"Maximum tokens per hour (0 = unlimited)"})}).optional()}).optional(),ke=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).openapi({description:"The name of the organization"}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:De,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(we).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:je}),It=e.z.object({...ke.shape,...n.shape,id:e.z.string()}),ve=e.z.object({user_id:e.z.string().openapi({description:"ID of the user"}),organization_id:e.z.string().openapi({description:"ID of the organization"})}),Ct=e.z.object({...ve.shape,...n.shape,id:e.z.string()}),Ot=e.z.object({idle_session_lifetime:e.z.number().optional(),session_lifetime:e.z.number().optional(),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional()});function Tt(t){const[a,s]=t.split("|");if(!a||!s)throw new Error(`Invalid user_id: ${t}`);return{connection:a,id:s}}exports.Auth0Client=ie;exports.AuthorizationResponseMode=z;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=p;exports.ComponentType=_;exports.GrantType=_e;exports.LocationInfo=ae;exports.LogTypes=ne;exports.NodeType=R;exports.auth0FlowInsertSchema=Ke;exports.auth0FlowSchema=U;exports.auth0QuerySchema=Ue;exports.auth0UserResponseSchema=Pe;exports.authParamsSchema=F;exports.baseUserSchema=c;exports.bordersSchema=pe;exports.brandingSchema=Be;exports.buttonComponentSchema=C;exports.clientGrantInsertSchema=E;exports.clientGrantListSchema=Ge;exports.clientGrantSchema=A;exports.clientInsertSchema=b;exports.clientSchema=f;exports.codeInsertSchema=B;exports.codeSchema=We;exports.codeTypeSchema=K;exports.colorsSchema=de;exports.componentSchema=N;exports.connectionInsertSchema=M;exports.connectionOptionsSchema=P;exports.connectionSchema=x;exports.coordinatesSchema=i;exports.customDomainInsertSchema=W;exports.customDomainSchema=V;exports.customDomainWithTenantIdSchema=Xe;exports.emailProviderSchema=zt;exports.endingSchema=v;exports.fieldComponentSchema=T;exports.flowNodeSchema=D;exports.fontDetailsSchema=o;exports.fontsSchema=ze;exports.formControlSchema=Ve;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=q;exports.formSchema=qe;exports.genericComponentSchema=y;exports.genericNodeSchema=w;exports.hookInsertSchema=Je;exports.hookSchema=et;exports.identitySchema=m;exports.inviteInsertSchema=ee;exports.inviteSchema=tt;exports.inviteeSchema=$;exports.inviterSchema=Z;exports.jwksKeySchema=ot;exports.jwksSchema=te;exports.legalComponentSchema=O;exports.logInsertSchema=se;exports.logSchema=st;exports.loginSessionInsertSchema=oe;exports.loginSessionSchema=it;exports.nodeSchema=j;exports.openIDConfigurationSchema=nt;exports.organizationBrandingSchema=De;exports.organizationEnabledConnectionSchema=we;exports.organizationInsertSchema=ke;exports.organizationSchema=It;exports.organizationTokenQuotaSchema=je;exports.pageBackgroundSchema=ge;exports.parseUserId=Tt;exports.passwordInsertSchema=re;exports.passwordSchema=rt;exports.profileDataSchema=u;exports.promptSettingSchema=dt;exports.refreshTokenInsertSchema=he;exports.refreshTokenSchema=gt;exports.resourceServerInsertSchema=fe;exports.resourceServerListSchema=ht;exports.resourceServerOptionsSchema=be;exports.resourceServerSchema=Ee;exports.resourceServerScopeSchema=Se;exports.richTextComponentSchema=I;exports.roleInsertSchema=Re;exports.roleListSchema=At;exports.rolePermissionInsertSchema=Ae;exports.rolePermissionListSchema=St;exports.rolePermissionSchema=Ie;exports.roleSchema=Le;exports.sessionInsertSchema=ce;exports.sessionSchema=lt;exports.signingKeySchema=ct;exports.smsProviderSchema=mt;exports.smsSendParamsSchema=ut;exports.startSchema=k;exports.stepNodeSchema=L;exports.tenantInsertSchema=H;exports.tenantSchema=G;exports.tenantSettingsSchema=Ot;exports.themeInsertSchema=me;exports.themeSchema=pt;exports.tokenResponseSchema=_t;exports.totalsSchema=Fe;exports.userInsertSchema=h;exports.userOrganizationInsertSchema=ve;exports.userOrganizationSchema=Ct;exports.userPermissionInsertSchema=Ce;exports.userPermissionListSchema=bt;exports.userPermissionSchema=Oe;exports.userPermissionWithDetailsListSchema=ft;exports.userPermissionWithDetailsSchema=Te;exports.userResponseSchema=Me;exports.userRoleInsertSchema=ye;exports.userRoleListSchema=Et;exports.userRoleSchema=Ne;exports.userSchema=S;exports.verificationMethodsSchema=X;exports.widgetSchema=ue;
|
|
@@ -8712,6 +8712,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8712
8712
|
} & {
|
|
8713
8713
|
id: z.ZodOptional<z.ZodString>;
|
|
8714
8714
|
name: z.ZodString;
|
|
8715
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
8715
8716
|
strategy: z.ZodString;
|
|
8716
8717
|
options: z.ZodDefault<z.ZodObject<{
|
|
8717
8718
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -8732,6 +8733,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8732
8733
|
from: z.ZodOptional<z.ZodString>;
|
|
8733
8734
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
8734
8735
|
twilio_token: z.ZodOptional<z.ZodString>;
|
|
8736
|
+
icon_url: z.ZodOptional<z.ZodString>;
|
|
8735
8737
|
}, "strip", z.ZodTypeAny, {
|
|
8736
8738
|
provider?: string | undefined;
|
|
8737
8739
|
client_id?: string | undefined;
|
|
@@ -8751,6 +8753,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8751
8753
|
from?: string | undefined;
|
|
8752
8754
|
twilio_sid?: string | undefined;
|
|
8753
8755
|
twilio_token?: string | undefined;
|
|
8756
|
+
icon_url?: string | undefined;
|
|
8754
8757
|
}, {
|
|
8755
8758
|
provider?: string | undefined;
|
|
8756
8759
|
client_id?: string | undefined;
|
|
@@ -8770,10 +8773,14 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8770
8773
|
from?: string | undefined;
|
|
8771
8774
|
twilio_sid?: string | undefined;
|
|
8772
8775
|
twilio_token?: string | undefined;
|
|
8776
|
+
icon_url?: string | undefined;
|
|
8773
8777
|
}>>;
|
|
8774
8778
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
8775
8779
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
8776
8780
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
8781
|
+
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
8782
|
+
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
8783
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8777
8784
|
}, "strip", z.ZodTypeAny, {
|
|
8778
8785
|
options: {
|
|
8779
8786
|
provider?: string | undefined;
|
|
@@ -8794,6 +8801,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8794
8801
|
from?: string | undefined;
|
|
8795
8802
|
twilio_sid?: string | undefined;
|
|
8796
8803
|
twilio_token?: string | undefined;
|
|
8804
|
+
icon_url?: string | undefined;
|
|
8797
8805
|
};
|
|
8798
8806
|
created_at: string;
|
|
8799
8807
|
updated_at: string;
|
|
@@ -8802,7 +8810,11 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8802
8810
|
id?: string | undefined;
|
|
8803
8811
|
response_type?: AuthorizationResponseType | undefined;
|
|
8804
8812
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
8813
|
+
display_name?: string | undefined;
|
|
8805
8814
|
enabled_clients?: string[] | undefined;
|
|
8815
|
+
is_domain_connection?: boolean | undefined;
|
|
8816
|
+
show_as_button?: boolean | undefined;
|
|
8817
|
+
metadata?: Record<string, any> | undefined;
|
|
8806
8818
|
}, {
|
|
8807
8819
|
created_at: string;
|
|
8808
8820
|
updated_at: string;
|
|
@@ -8827,11 +8839,16 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
8827
8839
|
from?: string | undefined;
|
|
8828
8840
|
twilio_sid?: string | undefined;
|
|
8829
8841
|
twilio_token?: string | undefined;
|
|
8842
|
+
icon_url?: string | undefined;
|
|
8830
8843
|
} | undefined;
|
|
8831
8844
|
id?: string | undefined;
|
|
8832
8845
|
response_type?: AuthorizationResponseType | undefined;
|
|
8833
8846
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
8847
|
+
display_name?: string | undefined;
|
|
8834
8848
|
enabled_clients?: string[] | undefined;
|
|
8849
|
+
is_domain_connection?: boolean | undefined;
|
|
8850
|
+
show_as_button?: boolean | undefined;
|
|
8851
|
+
metadata?: Record<string, any> | undefined;
|
|
8835
8852
|
}>, "many">;
|
|
8836
8853
|
client_id: z.ZodString;
|
|
8837
8854
|
name: z.ZodString;
|
|
@@ -9060,6 +9077,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9060
9077
|
from?: string | undefined;
|
|
9061
9078
|
twilio_sid?: string | undefined;
|
|
9062
9079
|
twilio_token?: string | undefined;
|
|
9080
|
+
icon_url?: string | undefined;
|
|
9063
9081
|
};
|
|
9064
9082
|
created_at: string;
|
|
9065
9083
|
updated_at: string;
|
|
@@ -9068,7 +9086,11 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9068
9086
|
id?: string | undefined;
|
|
9069
9087
|
response_type?: AuthorizationResponseType | undefined;
|
|
9070
9088
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9089
|
+
display_name?: string | undefined;
|
|
9071
9090
|
enabled_clients?: string[] | undefined;
|
|
9091
|
+
is_domain_connection?: boolean | undefined;
|
|
9092
|
+
show_as_button?: boolean | undefined;
|
|
9093
|
+
metadata?: Record<string, any> | undefined;
|
|
9072
9094
|
}[];
|
|
9073
9095
|
description?: string | undefined;
|
|
9074
9096
|
refresh_token?: Record<string, any> | undefined;
|
|
@@ -9235,11 +9257,16 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
9235
9257
|
from?: string | undefined;
|
|
9236
9258
|
twilio_sid?: string | undefined;
|
|
9237
9259
|
twilio_token?: string | undefined;
|
|
9260
|
+
icon_url?: string | undefined;
|
|
9238
9261
|
} | undefined;
|
|
9239
9262
|
id?: string | undefined;
|
|
9240
9263
|
response_type?: AuthorizationResponseType | undefined;
|
|
9241
9264
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9265
|
+
display_name?: string | undefined;
|
|
9242
9266
|
enabled_clients?: string[] | undefined;
|
|
9267
|
+
is_domain_connection?: boolean | undefined;
|
|
9268
|
+
show_as_button?: boolean | undefined;
|
|
9269
|
+
metadata?: Record<string, any> | undefined;
|
|
9243
9270
|
}[];
|
|
9244
9271
|
description?: string | undefined;
|
|
9245
9272
|
refresh_token?: Record<string, any> | undefined;
|
|
@@ -9426,6 +9453,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
|
|
|
9426
9453
|
from: z.ZodOptional<z.ZodString>;
|
|
9427
9454
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
9428
9455
|
twilio_token: z.ZodOptional<z.ZodString>;
|
|
9456
|
+
icon_url: z.ZodOptional<z.ZodString>;
|
|
9429
9457
|
}, "strip", z.ZodTypeAny, {
|
|
9430
9458
|
provider?: string | undefined;
|
|
9431
9459
|
client_id?: string | undefined;
|
|
@@ -9445,6 +9473,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
|
|
|
9445
9473
|
from?: string | undefined;
|
|
9446
9474
|
twilio_sid?: string | undefined;
|
|
9447
9475
|
twilio_token?: string | undefined;
|
|
9476
|
+
icon_url?: string | undefined;
|
|
9448
9477
|
}, {
|
|
9449
9478
|
provider?: string | undefined;
|
|
9450
9479
|
client_id?: string | undefined;
|
|
@@ -9464,10 +9493,12 @@ export declare const connectionOptionsSchema: z.ZodObject<{
|
|
|
9464
9493
|
from?: string | undefined;
|
|
9465
9494
|
twilio_sid?: string | undefined;
|
|
9466
9495
|
twilio_token?: string | undefined;
|
|
9496
|
+
icon_url?: string | undefined;
|
|
9467
9497
|
}>;
|
|
9468
9498
|
export declare const connectionInsertSchema: z.ZodObject<{
|
|
9469
9499
|
id: z.ZodOptional<z.ZodString>;
|
|
9470
9500
|
name: z.ZodString;
|
|
9501
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
9471
9502
|
strategy: z.ZodString;
|
|
9472
9503
|
options: z.ZodDefault<z.ZodObject<{
|
|
9473
9504
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -9488,6 +9519,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
9488
9519
|
from: z.ZodOptional<z.ZodString>;
|
|
9489
9520
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
9490
9521
|
twilio_token: z.ZodOptional<z.ZodString>;
|
|
9522
|
+
icon_url: z.ZodOptional<z.ZodString>;
|
|
9491
9523
|
}, "strip", z.ZodTypeAny, {
|
|
9492
9524
|
provider?: string | undefined;
|
|
9493
9525
|
client_id?: string | undefined;
|
|
@@ -9507,6 +9539,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
9507
9539
|
from?: string | undefined;
|
|
9508
9540
|
twilio_sid?: string | undefined;
|
|
9509
9541
|
twilio_token?: string | undefined;
|
|
9542
|
+
icon_url?: string | undefined;
|
|
9510
9543
|
}, {
|
|
9511
9544
|
provider?: string | undefined;
|
|
9512
9545
|
client_id?: string | undefined;
|
|
@@ -9526,10 +9559,14 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
9526
9559
|
from?: string | undefined;
|
|
9527
9560
|
twilio_sid?: string | undefined;
|
|
9528
9561
|
twilio_token?: string | undefined;
|
|
9562
|
+
icon_url?: string | undefined;
|
|
9529
9563
|
}>>;
|
|
9530
9564
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
9531
9565
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
9532
9566
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
9567
|
+
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
9568
|
+
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
9569
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9533
9570
|
}, "strip", z.ZodTypeAny, {
|
|
9534
9571
|
options: {
|
|
9535
9572
|
provider?: string | undefined;
|
|
@@ -9550,13 +9587,18 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
9550
9587
|
from?: string | undefined;
|
|
9551
9588
|
twilio_sid?: string | undefined;
|
|
9552
9589
|
twilio_token?: string | undefined;
|
|
9590
|
+
icon_url?: string | undefined;
|
|
9553
9591
|
};
|
|
9554
9592
|
name: string;
|
|
9555
9593
|
strategy: string;
|
|
9556
9594
|
id?: string | undefined;
|
|
9557
9595
|
response_type?: AuthorizationResponseType | undefined;
|
|
9558
9596
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9597
|
+
display_name?: string | undefined;
|
|
9559
9598
|
enabled_clients?: string[] | undefined;
|
|
9599
|
+
is_domain_connection?: boolean | undefined;
|
|
9600
|
+
show_as_button?: boolean | undefined;
|
|
9601
|
+
metadata?: Record<string, any> | undefined;
|
|
9560
9602
|
}, {
|
|
9561
9603
|
name: string;
|
|
9562
9604
|
strategy: string;
|
|
@@ -9579,11 +9621,16 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
9579
9621
|
from?: string | undefined;
|
|
9580
9622
|
twilio_sid?: string | undefined;
|
|
9581
9623
|
twilio_token?: string | undefined;
|
|
9624
|
+
icon_url?: string | undefined;
|
|
9582
9625
|
} | undefined;
|
|
9583
9626
|
id?: string | undefined;
|
|
9584
9627
|
response_type?: AuthorizationResponseType | undefined;
|
|
9585
9628
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9629
|
+
display_name?: string | undefined;
|
|
9586
9630
|
enabled_clients?: string[] | undefined;
|
|
9631
|
+
is_domain_connection?: boolean | undefined;
|
|
9632
|
+
show_as_button?: boolean | undefined;
|
|
9633
|
+
metadata?: Record<string, any> | undefined;
|
|
9587
9634
|
}>;
|
|
9588
9635
|
export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
|
|
9589
9636
|
export declare const connectionSchema: z.ZodObject<{
|
|
@@ -9592,6 +9639,7 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9592
9639
|
} & {
|
|
9593
9640
|
id: z.ZodOptional<z.ZodString>;
|
|
9594
9641
|
name: z.ZodString;
|
|
9642
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
9595
9643
|
strategy: z.ZodString;
|
|
9596
9644
|
options: z.ZodDefault<z.ZodObject<{
|
|
9597
9645
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -9612,6 +9660,7 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9612
9660
|
from: z.ZodOptional<z.ZodString>;
|
|
9613
9661
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
9614
9662
|
twilio_token: z.ZodOptional<z.ZodString>;
|
|
9663
|
+
icon_url: z.ZodOptional<z.ZodString>;
|
|
9615
9664
|
}, "strip", z.ZodTypeAny, {
|
|
9616
9665
|
provider?: string | undefined;
|
|
9617
9666
|
client_id?: string | undefined;
|
|
@@ -9631,6 +9680,7 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9631
9680
|
from?: string | undefined;
|
|
9632
9681
|
twilio_sid?: string | undefined;
|
|
9633
9682
|
twilio_token?: string | undefined;
|
|
9683
|
+
icon_url?: string | undefined;
|
|
9634
9684
|
}, {
|
|
9635
9685
|
provider?: string | undefined;
|
|
9636
9686
|
client_id?: string | undefined;
|
|
@@ -9650,10 +9700,14 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9650
9700
|
from?: string | undefined;
|
|
9651
9701
|
twilio_sid?: string | undefined;
|
|
9652
9702
|
twilio_token?: string | undefined;
|
|
9703
|
+
icon_url?: string | undefined;
|
|
9653
9704
|
}>>;
|
|
9654
9705
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
9655
9706
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
9656
9707
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
9708
|
+
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
9709
|
+
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
9710
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9657
9711
|
}, "strip", z.ZodTypeAny, {
|
|
9658
9712
|
options: {
|
|
9659
9713
|
provider?: string | undefined;
|
|
@@ -9674,6 +9728,7 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9674
9728
|
from?: string | undefined;
|
|
9675
9729
|
twilio_sid?: string | undefined;
|
|
9676
9730
|
twilio_token?: string | undefined;
|
|
9731
|
+
icon_url?: string | undefined;
|
|
9677
9732
|
};
|
|
9678
9733
|
created_at: string;
|
|
9679
9734
|
updated_at: string;
|
|
@@ -9682,7 +9737,11 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9682
9737
|
id?: string | undefined;
|
|
9683
9738
|
response_type?: AuthorizationResponseType | undefined;
|
|
9684
9739
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9740
|
+
display_name?: string | undefined;
|
|
9685
9741
|
enabled_clients?: string[] | undefined;
|
|
9742
|
+
is_domain_connection?: boolean | undefined;
|
|
9743
|
+
show_as_button?: boolean | undefined;
|
|
9744
|
+
metadata?: Record<string, any> | undefined;
|
|
9686
9745
|
}, {
|
|
9687
9746
|
created_at: string;
|
|
9688
9747
|
updated_at: string;
|
|
@@ -9707,11 +9766,16 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
9707
9766
|
from?: string | undefined;
|
|
9708
9767
|
twilio_sid?: string | undefined;
|
|
9709
9768
|
twilio_token?: string | undefined;
|
|
9769
|
+
icon_url?: string | undefined;
|
|
9710
9770
|
} | undefined;
|
|
9711
9771
|
id?: string | undefined;
|
|
9712
9772
|
response_type?: AuthorizationResponseType | undefined;
|
|
9713
9773
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
9774
|
+
display_name?: string | undefined;
|
|
9714
9775
|
enabled_clients?: string[] | undefined;
|
|
9776
|
+
is_domain_connection?: boolean | undefined;
|
|
9777
|
+
show_as_button?: boolean | undefined;
|
|
9778
|
+
metadata?: Record<string, any> | undefined;
|
|
9715
9779
|
}>;
|
|
9716
9780
|
export type Connection = z.infer<typeof connectionSchema>;
|
|
9717
9781
|
export declare const customDomainInsertSchema: z.ZodObject<{
|
|
@@ -16444,14 +16508,14 @@ export declare const organizationEnabledConnectionSchema: z.ZodObject<{
|
|
|
16444
16508
|
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
16445
16509
|
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
16446
16510
|
}, "strip", z.ZodTypeAny, {
|
|
16511
|
+
show_as_button: boolean;
|
|
16447
16512
|
connection_id: string;
|
|
16448
16513
|
assign_membership_on_login: boolean;
|
|
16449
|
-
show_as_button: boolean;
|
|
16450
16514
|
is_signup_enabled: boolean;
|
|
16451
16515
|
}, {
|
|
16452
16516
|
connection_id: string;
|
|
16453
|
-
assign_membership_on_login?: boolean | undefined;
|
|
16454
16517
|
show_as_button?: boolean | undefined;
|
|
16518
|
+
assign_membership_on_login?: boolean | undefined;
|
|
16455
16519
|
is_signup_enabled?: boolean | undefined;
|
|
16456
16520
|
}>;
|
|
16457
16521
|
export declare const organizationTokenQuotaSchema: z.ZodOptional<z.ZodObject<{
|
|
@@ -16517,14 +16581,14 @@ export declare const organizationInsertSchema: z.ZodObject<{
|
|
|
16517
16581
|
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
16518
16582
|
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
16519
16583
|
}, "strip", z.ZodTypeAny, {
|
|
16584
|
+
show_as_button: boolean;
|
|
16520
16585
|
connection_id: string;
|
|
16521
16586
|
assign_membership_on_login: boolean;
|
|
16522
|
-
show_as_button: boolean;
|
|
16523
16587
|
is_signup_enabled: boolean;
|
|
16524
16588
|
}, {
|
|
16525
16589
|
connection_id: string;
|
|
16526
|
-
assign_membership_on_login?: boolean | undefined;
|
|
16527
16590
|
show_as_button?: boolean | undefined;
|
|
16591
|
+
assign_membership_on_login?: boolean | undefined;
|
|
16528
16592
|
is_signup_enabled?: boolean | undefined;
|
|
16529
16593
|
}>, "many">>>;
|
|
16530
16594
|
token_quota: z.ZodOptional<z.ZodObject<{
|
|
@@ -16565,6 +16629,7 @@ export declare const organizationInsertSchema: z.ZodObject<{
|
|
|
16565
16629
|
} | undefined;
|
|
16566
16630
|
id?: string | undefined;
|
|
16567
16631
|
display_name?: string | undefined;
|
|
16632
|
+
metadata?: Record<string, any> | undefined;
|
|
16568
16633
|
branding?: {
|
|
16569
16634
|
colors?: {
|
|
16570
16635
|
primary?: string | undefined;
|
|
@@ -16572,11 +16637,10 @@ export declare const organizationInsertSchema: z.ZodObject<{
|
|
|
16572
16637
|
} | undefined;
|
|
16573
16638
|
logo_url?: string | undefined;
|
|
16574
16639
|
} | undefined;
|
|
16575
|
-
metadata?: Record<string, any> | undefined;
|
|
16576
16640
|
enabled_connections?: {
|
|
16641
|
+
show_as_button: boolean;
|
|
16577
16642
|
connection_id: string;
|
|
16578
16643
|
assign_membership_on_login: boolean;
|
|
16579
|
-
show_as_button: boolean;
|
|
16580
16644
|
is_signup_enabled: boolean;
|
|
16581
16645
|
}[] | undefined;
|
|
16582
16646
|
}, {
|
|
@@ -16590,6 +16654,7 @@ export declare const organizationInsertSchema: z.ZodObject<{
|
|
|
16590
16654
|
} | undefined;
|
|
16591
16655
|
id?: string | undefined;
|
|
16592
16656
|
display_name?: string | undefined;
|
|
16657
|
+
metadata?: Record<string, any> | undefined;
|
|
16593
16658
|
branding?: {
|
|
16594
16659
|
colors?: {
|
|
16595
16660
|
primary?: string | undefined;
|
|
@@ -16597,11 +16662,10 @@ export declare const organizationInsertSchema: z.ZodObject<{
|
|
|
16597
16662
|
} | undefined;
|
|
16598
16663
|
logo_url?: string | undefined;
|
|
16599
16664
|
} | undefined;
|
|
16600
|
-
metadata?: Record<string, any> | undefined;
|
|
16601
16665
|
enabled_connections?: {
|
|
16602
16666
|
connection_id: string;
|
|
16603
|
-
assign_membership_on_login?: boolean | undefined;
|
|
16604
16667
|
show_as_button?: boolean | undefined;
|
|
16668
|
+
assign_membership_on_login?: boolean | undefined;
|
|
16605
16669
|
is_signup_enabled?: boolean | undefined;
|
|
16606
16670
|
}[] | undefined;
|
|
16607
16671
|
}>;
|
|
@@ -16644,14 +16708,14 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
16644
16708
|
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
16645
16709
|
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
16646
16710
|
}, "strip", z.ZodTypeAny, {
|
|
16711
|
+
show_as_button: boolean;
|
|
16647
16712
|
connection_id: string;
|
|
16648
16713
|
assign_membership_on_login: boolean;
|
|
16649
|
-
show_as_button: boolean;
|
|
16650
16714
|
is_signup_enabled: boolean;
|
|
16651
16715
|
}, {
|
|
16652
16716
|
connection_id: string;
|
|
16653
|
-
assign_membership_on_login?: boolean | undefined;
|
|
16654
16717
|
show_as_button?: boolean | undefined;
|
|
16718
|
+
assign_membership_on_login?: boolean | undefined;
|
|
16655
16719
|
is_signup_enabled?: boolean | undefined;
|
|
16656
16720
|
}>, "many">>>;
|
|
16657
16721
|
token_quota: z.ZodOptional<z.ZodObject<{
|
|
@@ -16694,6 +16758,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
16694
16758
|
} | undefined;
|
|
16695
16759
|
} | undefined;
|
|
16696
16760
|
display_name?: string | undefined;
|
|
16761
|
+
metadata?: Record<string, any> | undefined;
|
|
16697
16762
|
branding?: {
|
|
16698
16763
|
colors?: {
|
|
16699
16764
|
primary?: string | undefined;
|
|
@@ -16701,11 +16766,10 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
16701
16766
|
} | undefined;
|
|
16702
16767
|
logo_url?: string | undefined;
|
|
16703
16768
|
} | undefined;
|
|
16704
|
-
metadata?: Record<string, any> | undefined;
|
|
16705
16769
|
enabled_connections?: {
|
|
16770
|
+
show_as_button: boolean;
|
|
16706
16771
|
connection_id: string;
|
|
16707
16772
|
assign_membership_on_login: boolean;
|
|
16708
|
-
show_as_button: boolean;
|
|
16709
16773
|
is_signup_enabled: boolean;
|
|
16710
16774
|
}[] | undefined;
|
|
16711
16775
|
}, {
|
|
@@ -16721,6 +16785,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
16721
16785
|
} | undefined;
|
|
16722
16786
|
} | undefined;
|
|
16723
16787
|
display_name?: string | undefined;
|
|
16788
|
+
metadata?: Record<string, any> | undefined;
|
|
16724
16789
|
branding?: {
|
|
16725
16790
|
colors?: {
|
|
16726
16791
|
primary?: string | undefined;
|
|
@@ -16728,11 +16793,10 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
16728
16793
|
} | undefined;
|
|
16729
16794
|
logo_url?: string | undefined;
|
|
16730
16795
|
} | undefined;
|
|
16731
|
-
metadata?: Record<string, any> | undefined;
|
|
16732
16796
|
enabled_connections?: {
|
|
16733
16797
|
connection_id: string;
|
|
16734
|
-
assign_membership_on_login?: boolean | undefined;
|
|
16735
16798
|
show_as_button?: boolean | undefined;
|
|
16799
|
+
assign_membership_on_login?: boolean | undefined;
|
|
16736
16800
|
is_signup_enabled?: boolean | undefined;
|
|
16737
16801
|
}[] | undefined;
|
|
16738
16802
|
}>;
|
|
@@ -17309,10 +17373,11 @@ export interface GeoInfo {
|
|
|
17309
17373
|
}
|
|
17310
17374
|
export interface GeoAdapter {
|
|
17311
17375
|
/**
|
|
17312
|
-
* Get geo information from
|
|
17376
|
+
* Get geo information from request headers
|
|
17377
|
+
* @param headers - Record of HTTP headers (lowercase keys)
|
|
17313
17378
|
* @returns Geo information or null if not available
|
|
17314
17379
|
*/
|
|
17315
|
-
getGeoInfo(): Promise<GeoInfo | null>;
|
|
17380
|
+
getGeoInfo(headers: Record<string, string>): Promise<GeoInfo | null>;
|
|
17316
17381
|
}
|
|
17317
17382
|
export interface DataAdapters {
|
|
17318
17383
|
branding: BrandingAdapter;
|
|
@@ -257,7 +257,7 @@ const O = e.object({
|
|
|
257
257
|
created_at: e.string(),
|
|
258
258
|
updated_at: e.string(),
|
|
259
259
|
...O.shape
|
|
260
|
-
}),
|
|
260
|
+
}), y = e.object({
|
|
261
261
|
client_id: e.string().min(1).openapi({
|
|
262
262
|
description: "ID of the client."
|
|
263
263
|
}),
|
|
@@ -282,14 +282,14 @@ const O = e.object({
|
|
|
282
282
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
283
283
|
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."
|
|
284
284
|
})
|
|
285
|
-
}),
|
|
285
|
+
}), N = e.object({
|
|
286
286
|
id: e.string().openapi({
|
|
287
287
|
description: "ID of the client grant."
|
|
288
288
|
}),
|
|
289
|
-
...
|
|
289
|
+
...y.shape,
|
|
290
290
|
created_at: e.string().optional(),
|
|
291
291
|
updated_at: e.string().optional()
|
|
292
|
-
}), qe = e.array(
|
|
292
|
+
}), qe = e.array(N), a = e.object({
|
|
293
293
|
x: e.number(),
|
|
294
294
|
y: e.number()
|
|
295
295
|
});
|
|
@@ -346,7 +346,7 @@ const r = e.object({
|
|
|
346
346
|
config: e.object({
|
|
347
347
|
text: e.string()
|
|
348
348
|
}).passthrough()
|
|
349
|
-
}),
|
|
349
|
+
}), w = r.extend({
|
|
350
350
|
category: e.literal(
|
|
351
351
|
"FIELD"
|
|
352
352
|
/* FIELD */
|
|
@@ -399,7 +399,7 @@ const r = e.object({
|
|
|
399
399
|
label: e.string().optional(),
|
|
400
400
|
placeholder: e.string().optional()
|
|
401
401
|
}).passthrough()
|
|
402
|
-
}),
|
|
402
|
+
}), j = e.object({
|
|
403
403
|
id: e.string(),
|
|
404
404
|
category: e.string(),
|
|
405
405
|
type: e.string()
|
|
@@ -407,8 +407,8 @@ const r = e.object({
|
|
|
407
407
|
R,
|
|
408
408
|
L,
|
|
409
409
|
D,
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
w,
|
|
411
|
+
j
|
|
412
412
|
]);
|
|
413
413
|
var U = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(U || {});
|
|
414
414
|
const F = e.object({
|
|
@@ -522,15 +522,20 @@ const K = e.object({
|
|
|
522
522
|
provider: e.string().optional(),
|
|
523
523
|
from: e.string().optional(),
|
|
524
524
|
twilio_sid: e.string().optional(),
|
|
525
|
-
twilio_token: e.string().optional()
|
|
525
|
+
twilio_token: e.string().optional(),
|
|
526
|
+
icon_url: e.string().optional()
|
|
526
527
|
}), B = e.object({
|
|
527
528
|
id: e.string().optional(),
|
|
528
529
|
name: e.string(),
|
|
530
|
+
display_name: e.string().optional(),
|
|
529
531
|
strategy: e.string(),
|
|
530
532
|
options: z.default({}),
|
|
531
533
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
532
534
|
response_type: e.custom().optional(),
|
|
533
|
-
response_mode: e.custom().optional()
|
|
535
|
+
response_mode: e.custom().optional(),
|
|
536
|
+
is_domain_connection: e.boolean().optional(),
|
|
537
|
+
show_as_button: e.boolean().optional(),
|
|
538
|
+
metadata: e.record(e.any()).optional()
|
|
534
539
|
}), W = e.object({
|
|
535
540
|
id: e.string(),
|
|
536
541
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
@@ -1411,7 +1416,7 @@ const Ee = e.object({
|
|
|
1411
1416
|
}), Te = e.object({
|
|
1412
1417
|
value: e.string(),
|
|
1413
1418
|
description: e.string().optional()
|
|
1414
|
-
}),
|
|
1419
|
+
}), ye = e.object({
|
|
1415
1420
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1416
1421
|
enforce_policies: e.boolean().optional(),
|
|
1417
1422
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1421,7 +1426,7 @@ const Ee = e.object({
|
|
|
1421
1426
|
mtls: e.object({
|
|
1422
1427
|
bound_access_tokens: e.boolean().optional()
|
|
1423
1428
|
}).optional()
|
|
1424
|
-
}),
|
|
1429
|
+
}), Ne = e.object({
|
|
1425
1430
|
name: e.string(),
|
|
1426
1431
|
identifier: e.string(),
|
|
1427
1432
|
scopes: e.array(Te).optional(),
|
|
@@ -1432,10 +1437,10 @@ const Ee = e.object({
|
|
|
1432
1437
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1433
1438
|
allow_offline_access: e.boolean().optional(),
|
|
1434
1439
|
verificationKey: e.string().optional(),
|
|
1435
|
-
options:
|
|
1440
|
+
options: ye.optional()
|
|
1436
1441
|
}), Re = e.object({
|
|
1437
1442
|
id: e.string().optional(),
|
|
1438
|
-
...
|
|
1443
|
+
...Ne.shape,
|
|
1439
1444
|
created_at: e.string().optional(),
|
|
1440
1445
|
updated_at: e.string().optional()
|
|
1441
1446
|
}), Et = e.array(Re), Le = e.object({
|
|
@@ -1445,16 +1450,16 @@ const Ee = e.object({
|
|
|
1445
1450
|
}), De = e.object({
|
|
1446
1451
|
...Le.shape,
|
|
1447
1452
|
created_at: e.string()
|
|
1448
|
-
}), ft = e.array(De),
|
|
1453
|
+
}), ft = e.array(De), we = e.object({
|
|
1449
1454
|
user_id: e.string(),
|
|
1450
1455
|
resource_server_identifier: e.string(),
|
|
1451
1456
|
permission_name: e.string(),
|
|
1452
1457
|
organization_id: e.string().optional()
|
|
1453
|
-
}),
|
|
1454
|
-
...
|
|
1458
|
+
}), je = e.object({
|
|
1459
|
+
...we.shape,
|
|
1455
1460
|
tenant_id: e.string(),
|
|
1456
1461
|
created_at: e.string().optional()
|
|
1457
|
-
}), St = e.array(
|
|
1462
|
+
}), St = e.array(je), ke = e.object({
|
|
1458
1463
|
user_id: e.string(),
|
|
1459
1464
|
resource_server_identifier: e.string(),
|
|
1460
1465
|
resource_server_name: e.string(),
|
|
@@ -1554,7 +1559,7 @@ const Ee = e.object({
|
|
|
1554
1559
|
...Ke.shape,
|
|
1555
1560
|
...n.shape,
|
|
1556
1561
|
id: e.string()
|
|
1557
|
-
}),
|
|
1562
|
+
}), yt = e.object({
|
|
1558
1563
|
// Session settings
|
|
1559
1564
|
idle_session_lifetime: e.number().optional(),
|
|
1560
1565
|
session_lifetime: e.number().optional(),
|
|
@@ -1624,7 +1629,7 @@ const Ee = e.object({
|
|
|
1624
1629
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1625
1630
|
}).optional()
|
|
1626
1631
|
});
|
|
1627
|
-
function
|
|
1632
|
+
function Nt(t) {
|
|
1628
1633
|
const [i, s] = t.split("|");
|
|
1629
1634
|
if (!i || !s)
|
|
1630
1635
|
throw new Error(`Invalid user_id: ${t}`);
|
|
@@ -1650,9 +1655,9 @@ export {
|
|
|
1650
1655
|
Ee as bordersSchema,
|
|
1651
1656
|
Qe as brandingSchema,
|
|
1652
1657
|
L as buttonComponentSchema,
|
|
1653
|
-
|
|
1658
|
+
y as clientGrantInsertSchema,
|
|
1654
1659
|
qe as clientGrantListSchema,
|
|
1655
|
-
|
|
1660
|
+
N as clientGrantSchema,
|
|
1656
1661
|
O as clientInsertSchema,
|
|
1657
1662
|
T as clientSchema,
|
|
1658
1663
|
Y as codeInsertSchema,
|
|
@@ -1669,7 +1674,7 @@ export {
|
|
|
1669
1674
|
Ze as customDomainWithTenantIdSchema,
|
|
1670
1675
|
ut as emailProviderSchema,
|
|
1671
1676
|
M as endingSchema,
|
|
1672
|
-
|
|
1677
|
+
w as fieldComponentSchema,
|
|
1673
1678
|
v as flowNodeSchema,
|
|
1674
1679
|
o as fontDetailsSchema,
|
|
1675
1680
|
Se as fontsSchema,
|
|
@@ -1677,7 +1682,7 @@ export {
|
|
|
1677
1682
|
ee as formInsertSchema,
|
|
1678
1683
|
$ as formNodeComponentDefinition,
|
|
1679
1684
|
et as formSchema,
|
|
1680
|
-
|
|
1685
|
+
j as genericComponentSchema,
|
|
1681
1686
|
P as genericNodeSchema,
|
|
1682
1687
|
tt as hookInsertSchema,
|
|
1683
1688
|
ot as hookSchema,
|
|
@@ -1701,16 +1706,16 @@ export {
|
|
|
1701
1706
|
Ot as organizationSchema,
|
|
1702
1707
|
Me as organizationTokenQuotaSchema,
|
|
1703
1708
|
Ae as pageBackgroundSchema,
|
|
1704
|
-
|
|
1709
|
+
Nt as parseUserId,
|
|
1705
1710
|
me as passwordInsertSchema,
|
|
1706
1711
|
lt as passwordSchema,
|
|
1707
1712
|
E as profileDataSchema,
|
|
1708
1713
|
gt as promptSettingSchema,
|
|
1709
1714
|
Oe as refreshTokenInsertSchema,
|
|
1710
1715
|
mt as refreshTokenSchema,
|
|
1711
|
-
|
|
1716
|
+
Ne as resourceServerInsertSchema,
|
|
1712
1717
|
Et as resourceServerListSchema,
|
|
1713
|
-
|
|
1718
|
+
ye as resourceServerOptionsSchema,
|
|
1714
1719
|
Re as resourceServerSchema,
|
|
1715
1720
|
Te as resourceServerScopeSchema,
|
|
1716
1721
|
R as richTextComponentSchema,
|
|
@@ -1729,7 +1734,7 @@ export {
|
|
|
1729
1734
|
F as stepNodeSchema,
|
|
1730
1735
|
X as tenantInsertSchema,
|
|
1731
1736
|
V as tenantSchema,
|
|
1732
|
-
|
|
1737
|
+
yt as tenantSettingsSchema,
|
|
1733
1738
|
Ce as themeInsertSchema,
|
|
1734
1739
|
dt as themeSchema,
|
|
1735
1740
|
pt as tokenResponseSchema,
|
|
@@ -1737,9 +1742,9 @@ export {
|
|
|
1737
1742
|
S as userInsertSchema,
|
|
1738
1743
|
Ke as userOrganizationInsertSchema,
|
|
1739
1744
|
Tt as userOrganizationSchema,
|
|
1740
|
-
|
|
1745
|
+
we as userPermissionInsertSchema,
|
|
1741
1746
|
St as userPermissionListSchema,
|
|
1742
|
-
|
|
1747
|
+
je as userPermissionSchema,
|
|
1743
1748
|
At as userPermissionWithDetailsListSchema,
|
|
1744
1749
|
ke as userPermissionWithDetailsSchema,
|
|
1745
1750
|
Ve as userResponseSchema,
|