@authhero/adapter-interfaces 1.11.0 → 1.12.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"),r=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),P=e.z.object({id:e.z.string(),version:e.z.string().optional()}),M=e.z.object({name:e.z.string(),version:e.z.string()}),H=e.z.object({name:e.z.string(),value:e.z.string()}),T=e.z.object({name:e.z.string().max(255),code:e.z.string().max(1e5),supported_triggers:e.z.array(P).optional(),runtime:e.z.string().max(50).optional(),dependencies:e.z.array(M).optional(),secrets:e.z.array(H).optional()}),Jt=T.partial().extend({status:e.z.enum(["draft","built"]).optional(),deployed_at:e.z.string().optional()}),eo=T.extend({id:e.z.string(),tenant_id:e.z.string(),status:e.z.enum(["draft","built"]).default("built"),deployed_at:e.z.string().optional(),secrets:e.z.array(e.z.object({name:e.z.string(),value:e.z.string().optional()})).optional(),...r.shape}),G=e.z.enum(["user_action","admin_action","system","api"]),B=e.z.object({type:e.z.enum(["user","admin","system","api_key","client_credentials"]),id:e.z.string().optional(),email:e.z.string().optional(),org_id:e.z.string().optional(),org_name:e.z.string().optional(),scopes:e.z.array(e.z.string()).optional(),client_id:e.z.string().optional()}),W=e.z.object({type:e.z.string(),id:e.z.string(),before:e.z.record(e.z.unknown()).optional(),after:e.z.record(e.z.unknown()).optional(),diff:e.z.record(e.z.object({old:e.z.unknown(),new:e.z.unknown()})).optional()}),K=e.z.object({method:e.z.string(),path:e.z.string(),query:e.z.record(e.z.string()).optional(),body:e.z.unknown().optional(),ip:e.z.string(),user_agent:e.z.string().optional(),correlation_id:e.z.string().optional()}),q=e.z.object({status_code:e.z.number(),body:e.z.unknown().optional()}),V=e.z.object({country_code:e.z.string(),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),X=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.record(e.z.string()).optional()}),Y=e.z.object({tenant_id:e.z.string(),event_type:e.z.string(),log_type:e.z.string(),description:e.z.string().optional(),category:G,actor:B,target:W,request:K,response:q.optional(),connection:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),location:V.optional(),auth0_client:X.optional(),hostname:e.z.string(),is_mobile:e.z.boolean().optional(),timestamp:e.z.string()}),to=Y.extend({id:e.z.string()}),oo=e.z.enum(["AUTH0","EMAIL","REDIRECT"]),no=e.z.enum(["CREATE_USER","GET_USER","UPDATE_USER","SEND_REQUEST","SEND_EMAIL"]),io=e.z.enum(["VERIFY_EMAIL"]),Q=e.z.object({require_mx_record:e.z.boolean().optional(),block_aliases:e.z.boolean().optional(),block_free_emails:e.z.boolean().optional(),block_disposable_emails:e.z.boolean().optional(),blocklist:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional()}),Z=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("AUTH0"),action:e.z.literal("UPDATE_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({connection_id:e.z.string().optional(),user_id:e.z.string(),changes:e.z.record(e.z.string(),e.z.any())})}),$=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("EMAIL"),action:e.z.literal("VERIFY_EMAIL"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({email:e.z.string(),rules:Q.optional()})}),J=e.z.enum(["change-email","account","custom"]),ee=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("REDIRECT"),action:e.z.literal("REDIRECT_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({target:J.openapi({description:"The predefined target to redirect to, or 'custom' for a custom URL"}),custom_url:e.z.string().optional().openapi({description:"Custom URL to redirect to when target is 'custom'"})})}),te=e.z.union([Z,$,ee]),oe=e.z.object({name:e.z.string().min(1).max(150).openapi({description:"The name of the flow"}),actions:e.z.array(te).optional().default([]).openapi({description:"The list of actions to execute in sequence"})}),ao=oe.extend({...r.shape,id:e.z.string().openapi({description:"Unique identifier for the flow",example:"af_12tMpdJ3iek7svMyZkSh5M"})}),ro=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"})}),so=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number(),total:e.z.number().optional()}),ne=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()),ie=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),email:e.z.string().optional(),email_verified:e.z.boolean().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),username:e.z.string().optional(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:ne.optional()}),ae=e.z.object({formatted:e.z.string().optional(),street_address:e.z.string().optional(),locality:e.z.string().optional(),region:e.z.string().optional(),postal_code:e.z.string().optional(),country:e.z.string().optional()}).optional(),O=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().refine(t=>!t.includes("@"),{message:'Usernames must not contain "@". Use the email field for email addresses.'}).optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional(),middle_name:e.z.string().optional(),preferred_username:e.z.string().optional(),profile:e.z.string().optional(),website:e.z.string().optional(),gender:e.z.string().optional(),birthdate:e.z.string().optional(),zoneinfo:e.z.string().optional(),address:ae}),re=O.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(),registration_completed_at:e.z.string().optional(),password:e.z.object({hash:e.z.string(),algorithm:e.z.string()}).optional()}),se=e.z.object({...re.omit({password:!0}).shape,...r.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(ie).optional()}),lo=se.omit({registration_completed_at:!0}),co=O.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());let po="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_o=(t=21)=>{let o="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)o+=po[i[t]&63];return o};const le=e.z.object({client_id:e.z.string().optional().openapi({description:"ID of this client. Generated server-side if omitted (Auth0 behavior)."}),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(()=>_o()).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)."}),auth0_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),connections:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of connection IDs enabled for this client. The order determines the display order on the login page."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(!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(!1).openapi({description:"Whether Single Sign On is disabled for this client. When true, existing SSO sessions will not be reused and users must authenticate every time."}),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.object({rotation_type:e.z.enum(["rotating","non-rotating"]).optional().openapi({description:"Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset."}),leeway:e.z.number().int().min(0).max(600).optional().openapi({description:"Seconds after a parent token's first rotation during which presenting it again still mints a fresh sibling child instead of triggering reuse-detection. Defaults to 30s when unset."}),expiration_type:e.z.enum(["expiring","non-expiring"]).optional().openapi({description:"Auth0-compatible: whether refresh tokens expire."}),token_lifetime:e.z.number().int().min(0).optional().openapi({description:"Auth0-compatible: refresh-token absolute lifetime in seconds."}),infinite_token_lifetime:e.z.boolean().optional().openapi({description:"Auth0-compatible: when true, refresh tokens have no absolute expiry."}),idle_token_lifetime:e.z.number().int().min(0).optional().openapi({description:"Auth0-compatible: refresh-token idle (sliding) lifetime in seconds."}),infinite_idle_token_lifetime:e.z.boolean().optional().openapi({description:"Auth0-compatible: when true, refresh tokens have no idle expiry."})}).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(),owner_user_id:e.z.string().optional().openapi({description:"User ID of the consenting user when this client was created via IAT-gated Dynamic Client Registration. NULL for clients created via the Management API or open DCR."}),registration_type:e.z.enum(["manual","open_dcr","iat_dcr"]).optional().openapi({description:"Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token."}),registration_metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability."}),user_linking_mode:e.z.enum(["builtin","off"]).optional().openapi({description:"Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."})}),zo=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...le.shape,client_id:e.z.string()}),ce=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."})}),pe=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...ce.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),go=e.z.array(pe),de=e.z.enum(["iat","rat"]),_e=e.z.object({id:e.z.string(),token_hash:e.z.string(),type:de,client_id:e.z.string().optional(),sub:e.z.string().optional(),constraints:e.z.record(e.z.unknown()).optional(),single_use:e.z.boolean().default(!1),expires_at:e.z.string().optional()}),mo=e.z.object({created_at:e.z.string(),used_at:e.z.string().optional(),revoked_at:e.z.string().optional(),..._e.shape}),z=e.z.object({x:e.z.number(),y:e.z.number()});var N=(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))(N||{}),w=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(w||{});const I=e.z.object({id:e.z.string(),category:e.z.nativeEnum(w),type:e.z.nativeEnum(N)}),ze=I.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),ge=I.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()}),me=I.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()}),ue=I.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()}),he=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),be=e.z.union([ze,ge,me,ue,he]);var fe=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(fe||{});const Se=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(be),next_node:e.z.string()}).passthrough()}),Ee=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),ye=e.z.object({id:e.z.string(),type:e.z.literal("ACTION"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({action_type:e.z.enum(["REDIRECT"]).openapi({description:"The type of action to perform"}),target:e.z.enum(["change-email","account","custom"]).openapi({description:"The predefined target to redirect to"}),custom_url:e.z.string().optional().openapi({description:"Custom URL when target is 'custom'"}),next_node:e.z.string().openapi({description:"The next node to navigate to after action (for non-redirect actions)"})}).passthrough()}),Ae=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:z}).passthrough(),Ie=e.z.union([Se,Ee,ye,Ae]),Ce=e.z.object({next_node:e.z.string(),coordinates:z}).passthrough(),Te=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:z}).passthrough(),Oe=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(Ie),start:Ce,ending:Te,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(),uo=Oe.omit({id:!0,created_at:!0,updated_at:!0});var j=(t=>(t.TOKEN="token",t.ID_TOKEN="id_token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(j||{}),R=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(R||{}),k=(t=>(t.S256="S256",t.Plain="plain",t))(k||{});const Ne=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(j).optional(),response_mode:e.z.nativeEnum(R).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(k).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),max_age:e.z.number().optional(),acr_values:e.z.string().optional(),vendor_id:e.z.string().optional()}),ho=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.union([e.z.string(),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()}),we=e.z.enum(["password_reset","email_verification","otp","mfa_otp","authorization_code","oauth2_state","ticket"]),je=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:we,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"}),otp:e.z.string().optional().openapi({description:"The one-time password value for OTP-based flows"}),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()}),bo=e.z.object({...je.shape,created_at:e.z.string()}),Re=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional(),icon_url:e.z.string().optional(),passwordPolicy:e.z.enum(["none","low","fair","good","excellent"]).optional(),password_complexity_options:e.z.object({min_length:e.z.number().optional()}).optional(),password_history:e.z.object({enable:e.z.boolean().optional(),size:e.z.number().optional()}).optional(),password_no_personal_info:e.z.object({enable:e.z.boolean().optional()}).optional(),password_dictionary:e.z.object({enable:e.z.boolean().optional(),dictionary:e.z.array(e.z.string()).optional()}).optional(),disable_signup:e.z.boolean().optional(),brute_force_protection:e.z.boolean().optional(),import_mode:e.z.boolean().optional(),attributes:e.z.object({email:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional(),verification:e.z.object({active:e.z.boolean().optional()}).optional()}).optional(),validation:e.z.object({allowed:e.z.boolean().optional()}).optional(),unique:e.z.boolean().optional(),profile_required:e.z.boolean().optional(),verification_method:e.z.enum(["link","code"]).optional()}).optional(),username:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional()}).optional(),validation:e.z.object({max_length:e.z.number().optional(),min_length:e.z.number().optional(),allowed_types:e.z.object({email:e.z.boolean().optional(),phone_number:e.z.boolean().optional()}).optional()}).optional(),profile_required:e.z.boolean().optional()}).optional(),phone_number:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional()}).optional()}).optional()}).optional(),authentication_methods:e.z.object({password:e.z.object({enabled:e.z.boolean().optional()}).optional(),passkey:e.z.object({enabled:e.z.boolean().optional()}).optional()}).optional(),passkey_options:e.z.object({challenge_ui:e.z.enum(["both","autofill","button"]).optional(),local_enrollment_enabled:e.z.boolean().optional(),progressive_enrollment_enabled:e.z.boolean().optional()}).optional(),requires_username:e.z.boolean().optional(),validation:e.z.object({username:e.z.object({min:e.z.number().optional(),max:e.z.number().optional()}).optional()}).optional(),set_user_root_attributes:e.z.enum(["on_each_login","on_first_login","never_on_login"]).optional()});function C(t){if(t!==null){if(Array.isArray(t))return t.filter(o=>o!==null).map(C);if(t&&typeof t=="object"){const o={};for(const[i,u]of Object.entries(t))u!==null&&(o[i]=C(u));return o}return t}}const ke=e.z.object({id:e.z.string().optional(),name:e.z.string(),display_name:e.z.string().optional(),strategy:e.z.string(),options:e.z.preprocess(t=>t===null?{}:C(t),Re).default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional(),is_domain_connection:e.z.boolean().optional(),show_as_button:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional(),is_system:e.z.boolean().optional()}),fo=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(ke.shape),ve=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),De=e.z.discriminatedUnion("name",[e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),e.z.object({name:e.z.literal("http"),http_body:e.z.string(),http_url:e.z.string()})]),Le=e.z.object({...ve.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(De)}).optional(),tls_policy:e.z.string().optional()}),So=Le.extend({tenant_id:e.z.string()}),v=e.z.object({id:e.z.string(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),l=v.extend({category:e.z.literal("BLOCK").optional()}),Eo=l.extend({type:e.z.literal("DIVIDER"),config:e.z.object({text:e.z.string().optional()}).optional()}),yo=l.extend({type:e.z.literal("HTML"),config:e.z.object({content:e.z.string().optional()}).optional()}),Ao=l.extend({type:e.z.literal("IMAGE"),config:e.z.object({src:e.z.string().optional(),alt:e.z.string().optional(),width:e.z.number().optional(),height:e.z.number().optional()}).optional()}),Io=l.extend({type:e.z.literal("JUMP_BUTTON"),config:e.z.object({text:e.z.string().optional(),target_step:e.z.string().optional()})}),Co=l.extend({type:e.z.literal("RESEND_BUTTON"),config:e.z.object({text:e.z.string().optional(),resend_action:e.z.string().optional()})}),To=l.extend({type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Oo=l.extend({type:e.z.literal("PREVIOUS_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),No=l.extend({type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string().optional()}).optional()}),D=v.extend({category:e.z.literal("WIDGET").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),wo=D.extend({type:e.z.literal("AUTH0_VERIFIABLE_CREDENTIALS"),config:e.z.object({credential_type:e.z.string().optional()})}),jo=D.extend({type:e.z.literal("GMAPS_ADDRESS"),config:e.z.object({api_key:e.z.string().optional()})}),Ro=D.extend({type:e.z.literal("RECAPTCHA"),config:e.z.object({site_key:e.z.string().optional()})}),n=v.extend({category:e.z.literal("FIELD").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),messages:e.z.array(e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])})).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),ko=n.extend({type:e.z.literal("BOOLEAN"),config:e.z.object({default_value:e.z.boolean().optional()}).optional()}),vo=n.extend({type:e.z.literal("CARDS"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string(),description:e.z.string().optional(),image:e.z.string().optional()})).optional(),multi_select:e.z.boolean().optional()}).optional()}),Do=n.extend({type:e.z.literal("CHOICE"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),display:e.z.enum(["radio","checkbox"]).optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),Lo=n.extend({type:e.z.literal("CUSTOM"),config:e.z.object({component:e.z.string().optional(),props:e.z.record(e.z.any()).optional(),schema:e.z.record(e.z.any()).optional(),code:e.z.string().optional()})}),Uo=n.extend({type:e.z.literal("DATE"),config:e.z.object({format:e.z.string().optional(),min:e.z.string().optional(),max:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Fo=n.extend({type:e.z.literal("DROPDOWN"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),placeholder:e.z.string().optional(),searchable:e.z.boolean().optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),xo=n.extend({type:e.z.literal("EMAIL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Po=n.extend({type:e.z.literal("FILE"),config:e.z.object({accept:e.z.string().optional(),max_size:e.z.number().optional(),multiple:e.z.boolean().optional()}).optional()}),Mo=n.extend({type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}).optional()}),Ho=n.extend({type:e.z.literal("NUMBER"),config:e.z.object({placeholder:e.z.string().optional(),min:e.z.number().optional(),max:e.z.number().optional(),step:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),Go=n.extend({type:e.z.literal("PASSWORD"),config:e.z.object({placeholder:e.z.string().optional(),min_length:e.z.number().optional(),show_toggle:e.z.boolean().optional(),forgot_password_link:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Bo=n.extend({type:e.z.literal("PAYMENT"),config:e.z.object({provider:e.z.string().optional(),currency:e.z.string().optional()}).optional()}),Wo=n.extend({type:e.z.literal("SOCIAL"),config:e.z.object({providers:e.z.array(e.z.string()).optional(),provider_details:e.z.array(e.z.object({name:e.z.string(),strategy:e.z.string().optional(),display_name:e.z.string().optional(),icon_url:e.z.string().optional(),href:e.z.string().optional()})).optional()}).optional()}),Ko=n.extend({type:e.z.literal("TEL"),config:e.z.object({placeholder:e.z.string().optional(),default_country:e.z.string().optional(),default_value:e.z.string().optional(),allow_email:e.z.boolean().optional()}).optional()}),qo=n.extend({type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional(),max_length:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),Vo=n.extend({type:e.z.literal("COUNTRY"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Xo=n.extend({type:e.z.literal("URL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Ue=e.z.discriminatedUnion("type",[Eo,yo,Ao,Io,Co,To,Oo,No]),Fe=e.z.discriminatedUnion("type",[wo,jo,Ro]),xe=e.z.discriminatedUnion("type",[ko,vo,Do,Vo,Lo,Uo,Fo,xo,Po,Mo,Ho,Go,Bo,Wo,Ko,qo,Xo]),L=e.z.union([Ue,Fe,xe]),Yo=new Set(["BOOLEAN","CARDS","CHOICE","COUNTRY","DATE","DROPDOWN","EMAIL","LEGAL","NUMBER","PASSWORD","TEL","TEXT","URL"]),Qo=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()}),f=e.z.object({x:e.z.number(),y:e.z.number()}),Zo=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:f,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string().optional()})}),$o=e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:f,alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.string()})}),Jo=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:f,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(L),next_node:e.z.string().optional()})}),Pe=e.z.discriminatedUnion("type",[Zo,$o,Jo]),Me=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(Pe).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:f.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:f.optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches Auth0 Forms structure)"}),en=e.z.object({...r.shape,...Me.shape,id:e.z.string()}),He=e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])}),Ge=e.z.object({id:e.z.string().optional(),text:e.z.string(),href:e.z.string(),linkText:e.z.string().optional()}),tn=e.z.object({name:e.z.string().optional(),action:e.z.string(),method:e.z.enum(["POST","GET"]),title:e.z.string().optional(),description:e.z.string().optional(),components:e.z.array(L),messages:e.z.array(He).optional(),links:e.z.array(Ge).optional(),footer:e.z.string().optional()});function on(t){return t.category==="BLOCK"}function nn(t){return t.category==="WIDGET"}function an(t){return t.category==="FIELD"}const Be=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","post-user-update","validate-registration-username","pre-user-deletion","post-user-deletion"]),We=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),Ke=e.z.enum(["post-user-login","post-user-registration","post-user-update","credentials-exchange"]),qe=e.z.enum(["post-user-login","credentials-exchange","pre-user-registration","post-user-registration"]),U=e.z.enum(["ensure-username","set-preferred-username","account-linking"]),rn={"ensure-username":{name:"Ensure Username",description:"Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",trigger_ids:["post-user-login"]},"set-preferred-username":{name:"Set Preferred Username",description:"Sets the preferred_username claim on tokens based on the username from the primary or linked user.",trigger_ids:["credentials-exchange"]},"account-linking":{name:"Account Linking",description:"Links a user to an existing primary account with the same verified email. Idempotent — safe to run on every login, registration, and email update.",trigger_ids:["post-user-login","post-user-registration","post-user-update"]}},c={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional(),metadata:e.z.record(e.z.unknown()).optional()},sn=e.z.object({...c,trigger_id:Be,url:e.z.string()}),ln=e.z.object({...c,trigger_id:We,form_id:e.z.string()}),cn=e.z.object({...c,trigger_id:Ke,template_id:U}),pn=e.z.object({...c,trigger_id:qe,code_id:e.z.string()}),dn=e.z.union([sn,ln,cn,pn]),_n=e.z.object({...c,trigger_id:Be,...r.shape,hook_id:e.z.string(),url:e.z.string()}),zn=e.z.object({...c,trigger_id:We,...r.shape,hook_id:e.z.string(),form_id:e.z.string()}),gn=e.z.object({...c,trigger_id:Ke,...r.shape,hook_id:e.z.string(),template_id:U}),mn=e.z.object({...c,trigger_id:qe,...r.shape,hook_id:e.z.string(),code_id:e.z.string()}),un=e.z.union([_n,zn,gn,mn]),Ve=e.z.object({code:e.z.string().max(1e5),secrets:e.z.record(e.z.string()).optional()}),hn=Ve.extend({id:e.z.string(),tenant_id:e.z.string(),...r.shape}),Xe=e.z.object({name:e.z.string().optional()}),Ye=e.z.object({email:e.z.string().optional()}),Qe=e.z.object({organization_id:e.z.string().max(50),inviter:Xe,invitee:Ye,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()}),bn=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(Qe.shape),Ze=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()}),fn=e.z.object({keys:e.z.array(Ze)}),Sn=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().optional(),revocation_endpoint:e.z.string(),end_session_endpoint:e.z.string().optional(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),grant_types_supported:e.z.array(e.z.string()).optional(),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())});var F=(t=>(t.PENDING="pending",t.AUTHENTICATED="authenticated",t.AWAITING_EMAIL_VERIFICATION="awaiting_email_verification",t.AWAITING_MFA="awaiting_mfa",t.AWAITING_HOOK="awaiting_hook",t.AWAITING_CONTINUATION="awaiting_continuation",t.COMPLETED="completed",t.FAILED="failed",t.EXPIRED="expired",t))(F||{});const $e=e.z.nativeEnum(F),Je=e.z.object({strategy:e.z.string(),strategy_type:e.z.string()}),et=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:Ne,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),state:$e.optional().default("pending"),state_data:e.z.string().optional(),failure_reason:e.z.string().optional(),user_id:e.z.string().optional(),auth_connection:e.z.string().optional(),auth_strategy:Je.optional(),authenticated_at:e.z.string().optional()}).openapi({description:"This represents a login sesion"}),En=e.z.object({...et.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()}),tt={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_IMPERSONATION:"fimp",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",FAILED_API_OPERATION:"fapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESS_IMPERSONATION:"simp",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},yn=e.z.string().refine(t=>Object.values(tt).includes(t),{message:"Invalid log type"}),ot=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),nt=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()}),it=e.z.object({type:yn,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:ot.optional(),log_id:e.z.string().optional(),location_info:nt.optional()}),An=e.z.object({...it.shape,log_id:e.z.string()}),at=e.z.enum(["http","eventbridge","eventgrid","splunk","datadog","sumo"]),x=e.z.enum(["active","paused","suspended"]),rt=e.z.object({type:e.z.string(),name:e.z.string()}),st=e.z.object({name:e.z.string(),type:at,status:x.optional(),sink:e.z.record(e.z.string(),e.z.unknown()),filters:e.z.array(rt).optional(),isPriority:e.z.boolean().optional()}),In=st.extend({id:e.z.string(),status:x,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),lt=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),admin_notification_frequency:e.z.array(e.z.string()).optional(),method:e.z.string().optional(),stage:e.z.object({"pre-user-registration":e.z.object({shields:e.z.array(e.z.string()).optional()}).optional(),"pre-change-password":e.z.object({shields:e.z.array(e.z.string()).optional()}).optional()}).optional()}),ct=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional(),mode:e.z.string().optional(),max_attempts:e.z.number().optional()}),pt=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional(),stage:e.z.object({"pre-login":e.z.object({max_attempts:e.z.number().optional(),rate:e.z.number().optional()}).optional(),"pre-user-registration":e.z.object({max_attempts:e.z.number().optional(),rate:e.z.number().optional()}).optional()}).optional()}),dt=e.z.object({breached_password_detection:lt.optional(),brute_force_protection:ct.optional(),suspicious_ip_throttling:pt.optional()}),_t=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)}),Cn=_t.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),zt=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")}),gt=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:zt.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")}),Tn=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...gt.shape}),On=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"})}),mt=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()}).nullish(),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(),dcr_require_initial_access_token:e.z.boolean().optional(),dcr_allowed_grant_types:e.z.array(e.z.string()).optional(),allow_http_return_to:e.z.array(e.z.string().refine(t=>{try{const o=new URL(t);return o.protocol==="http:"&&(o.pathname===""||o.pathname==="/")&&!o.search&&!o.hash&&t===o.origin}catch{return!1}},{message:"must be a fully-qualified http origin (scheme + host + port, no path)"})).optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),inherit_global_permissions_in_organizations:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).nullish(),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()}).nullish(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional(),attack_protection:dt.optional(),mfa:e.z.object({policy:e.z.enum(["never","always"]).default("never").optional(),factors:e.z.object({sms:e.z.boolean().default(!1),otp:e.z.boolean().default(!1),email:e.z.boolean().default(!1),push_notification:e.z.boolean().default(!1),webauthn_roaming:e.z.boolean().default(!1),webauthn_platform:e.z.boolean().default(!1),recovery_code:e.z.boolean().default(!1),duo:e.z.boolean().default(!1)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),Nn=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...mt.shape,id:e.z.string()});var ut=(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))(ut||{});const wn=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 ht=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()}),bt=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()}),_=e.z.object({bold:e.z.boolean(),size:e.z.number()}),ft=e.z.object({body_text:_,buttons_text:_,font_url:e.z.string(),input_labels:_,links:_,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:_,title:_}),St=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),Et=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"])}),yt=e.z.object({borders:ht,colors:bt,displayName:e.z.string(),fonts:ft,page_background:St,widget:Et}),jn=yt.extend({themeId:e.z.string()}),Rn=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()}),kn=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.record(e.z.string(),e.z.unknown()),settings:e.z.object({}).optional()}),At=e.z.object({id:e.z.string(),login_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:zt,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean(),token_lookup:e.z.string().optional(),token_hash:e.z.string().optional(),family_id:e.z.string().optional(),rotated_to:e.z.string().optional(),rotated_at:e.z.string().optional()}),vn=e.z.object({created_at:e.z.string(),revoked_at:e.z.string().optional(),...At.shape}),Dn=e.z.object({to:e.z.string(),message:e.z.string()}),Ln=e.z.object({name:e.z.string(),options:e.z.object({})}),It=e.z.object({value:e.z.string(),description:e.z.string().optional()}),Ct=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()}),Tt=e.z.object({id:e.z.string().optional(),name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(It).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().default(86400),token_lifetime_for_web:e.z.number().default(7200),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:Ct.optional(),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional()}),Ot=e.z.object({...Tt.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Un=e.z.array(Ot),Nt=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),wt=e.z.object({...Nt.shape,created_at:e.z.string()}),Fn=e.z.array(wt),jt=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()}),Rt=e.z.object({...jt.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),xn=e.z.array(Rt),kt=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()}),Pn=e.z.array(kt),vt=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Dt=e.z.object({...vt.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Mn=e.z.array(Dt),Lt=e.z.object({id:e.z.string().optional().openapi({description:"The unique identifier of the role. If not provided, one will be generated."}),name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"}),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional().openapi({description:"Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."})}),Ut=Lt.extend({id:e.z.string().openapi({description:"The unique identifier of the role"}),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Hn=e.z.array(Ut),Ft=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(),xt=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"})}),Pt=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(),Mt=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).regex(/^[a-z0-9_-]+$/,{message:"Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"}).openapi({description:"The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores."}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:Ft,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(xt).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:Pt}),Gn=e.z.object({...Mt.shape,...r.shape,id:e.z.string(),name:e.z.string().min(1).openapi({description:"The name of the organization"})}),Ht=e.z.object({connection_id:e.z.string().openapi({description:"ID of the tenant-level connection to enable for the org."}),assign_membership_on_login:e.z.boolean().optional().default(!1),show_as_button:e.z.boolean().optional().default(!0),is_signup_enabled:e.z.boolean().optional().default(!0)}),Gt=e.z.object({...Ht.shape,connection:e.z.object({name:e.z.string().optional(),strategy:e.z.string().optional()}).optional(),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Bn=e.z.array(Gt),Bt=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"})}),Wn=e.z.object({...Bt.shape,...r.shape,id:e.z.string()}),Kn=e.z.object({idle_session_lifetime:e.z.number().default(72),session_lifetime:e.z.number().default(168),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),mfa:e.z.object({policy:e.z.enum(["never","always"]).default("never").optional(),factors:e.z.object({sms:e.z.boolean().default(!1),otp:e.z.boolean().default(!1),email:e.z.boolean().default(!1),push_notification:e.z.boolean().default(!1),webauthn_roaming:e.z.boolean().default(!1),webauthn_platform:e.z.boolean().default(!1),recovery_code:e.z.boolean().default(!1),duo:e.z.boolean().default(!1)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),qn=e.z.object({date:e.z.string().openapi({description:"Date these events occurred in ISO 8601 format",example:"2025-12-19"}),logins:e.z.number().openapi({description:"Number of logins on this date",example:150}),signups:e.z.number().openapi({description:"Number of signups on this date",example:25}),leaked_passwords:e.z.number().openapi({description:"Number of breached-password detections on this date (subscription required)",example:0}),updated_at:e.z.string().openapi({description:"Date and time this stats entry was last updated in ISO 8601 format",example:"2025-12-19T10:30:00.000Z"}),created_at:e.z.string().openapi({description:"Approximate date and time the first event occurred in ISO 8601 format",example:"2025-12-19T00:00:00.000Z"})}),Vn=e.z.number().openapi({description:"Number of active users in the last 30 days",example:1234}),Wt=e.z.enum(["login","login-id","login-password","signup","signup-id","signup-password","reset-password","consent","mfa","mfa-push","mfa-otp","mfa-voice","mfa-phone","mfa-webauthn","mfa-email","mfa-recovery-code","status","device-flow","email-verification","email-otp-challenge","organizations","invitation","common","passkeys","captcha","custom-form","login-passwordless","mfa-login-options"]),Kt=e.z.record(e.z.string(),e.z.record(e.z.string(),e.z.string())).openapi({type:"object",additionalProperties:{type:"object",additionalProperties:{type:"string"}}}),Xn=e.z.object({prompt:Wt,language:e.z.string(),custom_text:Kt}),Yn={EMAIL:"email",SMS:"sms",USERNAME_PASSWORD:"Username-Password-Authentication",GOOGLE_OAUTH2:"google-oauth2",APPLE:"apple",FACEBOOK:"facebook",GITHUB:"github",MICROSOFT:"microsoft",VIPPS:"vipps",OIDC:"oidc",OAUTH2:"oauth2",SAMLP:"samlp",WAAD:"waad",ADFS:"adfs"},Qn={DATABASE:"database",SOCIAL:"social",PASSWORDLESS:"passwordless"},qt=e.z.enum(["phone","totp","email","push","webauthn-roaming","webauthn-platform","passkey"]),Vt=e.z.object({user_id:e.z.string(),type:qt,phone_number:e.z.string().optional(),totp_secret:e.z.string().optional(),credential_id:e.z.string().optional(),public_key:e.z.string().optional(),sign_count:e.z.number().int().nonnegative().optional(),credential_backed_up:e.z.boolean().optional(),transports:e.z.array(e.z.string()).optional(),friendly_name:e.z.string().optional(),confirmed:e.z.boolean().default(!1)});function Xt(t,o){t.type==="phone"&&!t.phone_number&&o.addIssue({code:e.z.ZodIssueCode.custom,message:"phone_number is required when type is 'phone'",path:["phone_number"]}),t.type==="totp"&&!t.totp_secret&&o.addIssue({code:e.z.ZodIssueCode.custom,message:"totp_secret is required when type is 'totp'",path:["totp_secret"]}),["webauthn-roaming","webauthn-platform","passkey"].includes(t.type)&&(t.credential_id||o.addIssue({code:e.z.ZodIssueCode.custom,message:`credential_id is required when type is '${t.type}'`,path:["credential_id"]}),t.public_key||o.addIssue({code:e.z.ZodIssueCode.custom,message:`public_key is required when type is '${t.type}'`,path:["public_key"]}))}const Zn=Vt.superRefine(Xt),$n=e.z.object({...Vt.shape,id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}).superRefine(Xt);function Jn(t){const[o,i]=t.split("|");if(!o||!i)throw new Error(`Invalid user_id: ${t}`);return{connection:o,id:i}}function ei(t){const{primary:o,secondaries:i,syncMethods:u=["create","rawCreate","update","remove","delete","set"]}=t,S={get(p,a){if(typeof a=="symbol")return p[a];const d=p[a];return typeof d!="function"?d:u.includes(a)?async(...g)=>{const E=await d.apply(p,g),m=[];for(const s of i){const h=s.adapter[a];if(typeof h!="function")continue;const y=(async()=>{try{await h.apply(s.adapter,g)}catch(b){try{s.onError?s.onError(b,a,g):console.error(`Passthrough adapter: secondary write failed for ${a}:`,b)}catch(A){console.error(`Passthrough adapter: onError handler threw for ${a}:`,A)}}})();s.blocking&&m.push(y)}return m.length>0&&await Promise.all(m),E}:d.bind(p)}};return new Proxy(o,S)}function ti(t){return t}function oi(t){var S,p,a,d,g,E,m,s,h,y,b,A;const o=t==null?void 0:t.options;if(!o)return{usernameIdentifierActive:!1,emailIdentifierActive:!0,usernameMinLength:1,usernameMaxLength:15};const i=o.attributes;if(i){const Yt=((p=(S=i.username)==null?void 0:S.identifier)==null?void 0:p.active)===!0,Qt=((d=(a=i.email)==null?void 0:a.identifier)==null?void 0:d.active)!==!1,Zt=((E=(g=i.username)==null?void 0:g.validation)==null?void 0:E.min_length)??1,$t=((s=(m=i.username)==null?void 0:m.validation)==null?void 0:s.max_length)??15;return{usernameIdentifierActive:Yt,emailIdentifierActive:Qt,usernameMinLength:Zt,usernameMaxLength:$t}}return{usernameIdentifierActive:o.requires_username===!0,emailIdentifierActive:!0,usernameMinLength:((y=(h=o.validation)==null?void 0:h.username)==null?void 0:y.min)??1,usernameMaxLength:((A=(b=o.validation)==null?void 0:b.username)==null?void 0:A.max)??15}}function ni(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}exports.Auth0ActionEnum=no;exports.Auth0Client=ot;exports.AuthorizationResponseMode=R;exports.AuthorizationResponseType=j;exports.CodeChallengeMethod=k;exports.ComponentCategory=w;exports.ComponentType=N;exports.EmailActionEnum=io;exports.FORM_FIELD_TYPES=Yo;exports.FlowActionTypeEnum=oo;exports.GrantType=ut;exports.LocationInfo=nt;exports.LogTypes=tt;exports.LoginSessionState=F;exports.NodeType=fe;exports.RedirectTargetEnum=J;exports.Strategy=Yn;exports.StrategyType=Qn;exports.actionDependencySchema=M;exports.actionInsertSchema=T;exports.actionNodeSchema=ye;exports.actionSchema=eo;exports.actionSecretSchema=H;exports.actionTriggerSchema=P;exports.actionUpdateSchema=Jt;exports.activeUsersResponseSchema=Vn;exports.actorSchema=B;exports.addressSchema=ae;exports.attackProtectionSchema=dt;exports.auditCategorySchema=G;exports.auditEventInsertSchema=Y;exports.auditEventSchema=to;exports.auth0ClientSchema=X;exports.auth0FlowInsertSchema=uo;exports.auth0FlowSchema=Oe;exports.auth0QuerySchema=ro;exports.auth0UpdateUserActionSchema=Z;exports.auth0UserResponseSchema=lo;exports.authParamsSchema=Ne;exports.authenticationMethodInsertSchema=Zn;exports.authenticationMethodSchema=$n;exports.authenticationMethodTypeSchema=qt;exports.baseUserSchema=O;exports.blockComponentSchema=Ue;exports.bordersSchema=ht;exports.brandingSchema=ho;exports.breachedPasswordDetectionSchema=lt;exports.bruteForceProtectionSchema=ct;exports.buttonComponentSchema=ge;exports.clientGrantInsertSchema=ce;exports.clientGrantListSchema=go;exports.clientGrantSchema=pe;exports.clientInsertSchema=le;exports.clientRegistrationTokenInsertSchema=_e;exports.clientRegistrationTokenSchema=mo;exports.clientRegistrationTokenTypeSchema=de;exports.clientSchema=zo;exports.codeInsertSchema=je;exports.codeSchema=bo;exports.codeTypeSchema=we;exports.colorsSchema=bt;exports.componentMessageSchema=He;exports.componentSchema=be;exports.connectionInsertSchema=ke;exports.connectionOptionsSchema=Re;exports.connectionSchema=fo;exports.coordinatesSchema=z;exports.createPassthroughAdapter=ei;exports.createWriteOnlyAdapter=ti;exports.customDomainInsertSchema=ve;exports.customDomainSchema=Le;exports.customDomainWithTenantIdSchema=So;exports.customTextEntrySchema=Xn;exports.customTextSchema=Kt;exports.dailyStatsSchema=qn;exports.emailProviderSchema=kn;exports.emailVerificationRulesSchema=Q;exports.emailVerifyActionSchema=$;exports.endingSchema=Te;exports.fieldComponentSchema=xe;exports.flowActionStepSchema=te;exports.flowInsertSchema=oe;exports.flowSchema=ao;exports.flowsFieldComponentSchema=ue;exports.flowsFlowNodeSchema=Ee;exports.flowsStepNodeSchema=Se;exports.fontDetailsSchema=_;exports.fontsSchema=ft;exports.formControlSchema=Qo;exports.formInsertSchema=Me;exports.formNodeComponentDefinition=L;exports.formNodeSchema=Pe;exports.formSchema=en;exports.genericComponentSchema=he;exports.genericNodeSchema=Ae;exports.getConnectionIdentifierConfig=oi;exports.hookCodeInsertSchema=Ve;exports.hookCodeSchema=hn;exports.hookInsertSchema=dn;exports.hookSchema=un;exports.hookTemplateId=U;exports.hookTemplates=rn;exports.identitySchema=ie;exports.inviteInsertSchema=Qe;exports.inviteSchema=bn;exports.inviteeSchema=Ye;exports.inviterSchema=Xe;exports.isBlockComponent=on;exports.isFieldComponent=an;exports.isPlainObject=ni;exports.isWidgetComponent=nn;exports.jwksKeySchema=fn;exports.jwksSchema=Ze;exports.legalComponentSchema=me;exports.locationInfoSchema=V;exports.logInsertSchema=it;exports.logSchema=An;exports.logStreamFilterSchema=rt;exports.logStreamInsertSchema=st;exports.logStreamSchema=In;exports.logStreamStatusSchema=x;exports.logStreamTypeSchema=at;exports.loginSessionAuthStrategySchema=Je;exports.loginSessionInsertSchema=et;exports.loginSessionSchema=En;exports.loginSessionStateSchema=$e;exports.nodeSchema=Ie;exports.openIDConfigurationSchema=Sn;exports.organizationBrandingSchema=Ft;exports.organizationConnectionInsertSchema=Ht;exports.organizationConnectionListSchema=Bn;exports.organizationConnectionSchema=Gt;exports.organizationEnabledConnectionSchema=xt;exports.organizationInsertSchema=Mt;exports.organizationSchema=Gn;exports.organizationTokenQuotaSchema=Pt;exports.pageBackgroundSchema=St;exports.parseUserId=Jn;exports.passwordInsertSchema=_t;exports.passwordSchema=Cn;exports.profileDataSchema=ne;exports.promptScreenSchema=Wt;exports.promptSettingSchema=Rn;exports.redirectActionSchema=ee;exports.refreshTokenInsertSchema=At;exports.refreshTokenSchema=vn;exports.requestContextSchema=K;exports.resourceServerInsertSchema=Tt;exports.resourceServerListSchema=Un;exports.resourceServerOptionsSchema=Ct;exports.resourceServerSchema=Ot;exports.resourceServerScopeSchema=It;exports.responseContextSchema=q;exports.richTextComponentSchema=ze;exports.roleInsertSchema=Lt;exports.roleListSchema=Hn;exports.rolePermissionInsertSchema=Nt;exports.rolePermissionListSchema=Fn;exports.rolePermissionSchema=wt;exports.roleSchema=Ut;exports.screenLinkSchema=Ge;exports.sessionInsertSchema=gt;exports.sessionSchema=Tn;exports.signingKeySchema=On;exports.smsProviderSchema=Ln;exports.smsSendParamsSchema=Dn;exports.startSchema=Ce;exports.suspiciousIpThrottlingSchema=pt;exports.targetSchema=W;exports.tenantInsertSchema=mt;exports.tenantSchema=Nn;exports.tenantSettingsSchema=Kn;exports.themeInsertSchema=yt;exports.themeSchema=jn;exports.tokenResponseSchema=wn;exports.totalsSchema=so;exports.uiScreenSchema=tn;exports.userInsertSchema=re;exports.userOrganizationInsertSchema=Bt;exports.userOrganizationSchema=Wn;exports.userPermissionInsertSchema=jt;exports.userPermissionListSchema=xn;exports.userPermissionSchema=Rt;exports.userPermissionWithDetailsListSchema=Pn;exports.userPermissionWithDetailsSchema=kt;exports.userResponseSchema=co;exports.userRoleInsertSchema=vt;exports.userRoleListSchema=Mn;exports.userRoleSchema=Dt;exports.userSchema=se;exports.verificationMethodsSchema=De;exports.widgetComponentSchema=Fe;exports.widgetSchema=Et;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),r=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),P=e.z.object({id:e.z.string(),version:e.z.string().optional()}),M=e.z.object({name:e.z.string(),version:e.z.string()}),H=e.z.object({name:e.z.string(),value:e.z.string().optional()}),T=e.z.object({name:e.z.string().max(255),code:e.z.string().max(1e5),supported_triggers:e.z.array(P).optional(),runtime:e.z.string().max(50).optional(),dependencies:e.z.array(M).optional(),secrets:e.z.array(H).optional()}),Jt=T.partial().extend({status:e.z.enum(["draft","built"]).optional(),deployed_at:e.z.string().optional()}),eo=T.extend({id:e.z.string(),tenant_id:e.z.string(),status:e.z.enum(["draft","built"]).default("built"),deployed_at:e.z.string().optional(),secrets:e.z.array(e.z.object({name:e.z.string(),value:e.z.string().optional()})).optional(),...r.shape}),G=e.z.enum(["user_action","admin_action","system","api"]),B=e.z.object({type:e.z.enum(["user","admin","system","api_key","client_credentials"]),id:e.z.string().optional(),email:e.z.string().optional(),org_id:e.z.string().optional(),org_name:e.z.string().optional(),scopes:e.z.array(e.z.string()).optional(),client_id:e.z.string().optional()}),W=e.z.object({type:e.z.string(),id:e.z.string(),before:e.z.record(e.z.unknown()).optional(),after:e.z.record(e.z.unknown()).optional(),diff:e.z.record(e.z.object({old:e.z.unknown(),new:e.z.unknown()})).optional()}),K=e.z.object({method:e.z.string(),path:e.z.string(),query:e.z.record(e.z.string()).optional(),body:e.z.unknown().optional(),ip:e.z.string(),user_agent:e.z.string().optional(),correlation_id:e.z.string().optional()}),q=e.z.object({status_code:e.z.number(),body:e.z.unknown().optional()}),V=e.z.object({country_code:e.z.string(),city_name:e.z.string(),latitude:e.z.string(),longitude:e.z.string(),time_zone:e.z.string(),continent_code:e.z.string()}),X=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.record(e.z.string()).optional()}),Y=e.z.object({tenant_id:e.z.string(),event_type:e.z.string(),log_type:e.z.string(),description:e.z.string().optional(),category:G,actor:B,target:W,request:K,response:q.optional(),connection:e.z.string().optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.string().optional(),location:V.optional(),auth0_client:X.optional(),hostname:e.z.string(),is_mobile:e.z.boolean().optional(),timestamp:e.z.string()}),to=Y.extend({id:e.z.string()}),oo=e.z.enum(["AUTH0","EMAIL","REDIRECT"]),no=e.z.enum(["CREATE_USER","GET_USER","UPDATE_USER","SEND_REQUEST","SEND_EMAIL"]),io=e.z.enum(["VERIFY_EMAIL"]),Q=e.z.object({require_mx_record:e.z.boolean().optional(),block_aliases:e.z.boolean().optional(),block_free_emails:e.z.boolean().optional(),block_disposable_emails:e.z.boolean().optional(),blocklist:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional()}),Z=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("AUTH0"),action:e.z.literal("UPDATE_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({connection_id:e.z.string().optional(),user_id:e.z.string(),changes:e.z.record(e.z.string(),e.z.any())})}),$=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("EMAIL"),action:e.z.literal("VERIFY_EMAIL"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({email:e.z.string(),rules:Q.optional()})}),J=e.z.enum(["change-email","account","custom"]),ee=e.z.object({id:e.z.string(),alias:e.z.string().max(100).optional(),type:e.z.literal("REDIRECT"),action:e.z.literal("REDIRECT_USER"),allow_failure:e.z.boolean().optional(),mask_output:e.z.boolean().optional(),params:e.z.object({target:J.openapi({description:"The predefined target to redirect to, or 'custom' for a custom URL"}),custom_url:e.z.string().optional().openapi({description:"Custom URL to redirect to when target is 'custom'"})})}),te=e.z.union([Z,$,ee]),oe=e.z.object({name:e.z.string().min(1).max(150).openapi({description:"The name of the flow"}),actions:e.z.array(te).optional().default([]).openapi({description:"The list of actions to execute in sequence"})}),ao=oe.extend({...r.shape,id:e.z.string().openapi({description:"Unique identifier for the flow",example:"af_12tMpdJ3iek7svMyZkSh5M"})}),ro=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"})}),so=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number(),total:e.z.number().optional()}),ne=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()),ie=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),email:e.z.string().optional(),email_verified:e.z.boolean().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),username:e.z.string().optional(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:ne.optional()}),ae=e.z.object({formatted:e.z.string().optional(),street_address:e.z.string().optional(),locality:e.z.string().optional(),region:e.z.string().optional(),postal_code:e.z.string().optional(),country:e.z.string().optional()}).optional(),O=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().refine(t=>!t.includes("@"),{message:'Usernames must not contain "@". Use the email field for email addresses.'}).optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional(),middle_name:e.z.string().optional(),preferred_username:e.z.string().optional(),profile:e.z.string().optional(),website:e.z.string().optional(),gender:e.z.string().optional(),birthdate:e.z.string().optional(),zoneinfo:e.z.string().optional(),address:ae}),re=O.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(),registration_completed_at:e.z.string().optional(),password:e.z.object({hash:e.z.string(),algorithm:e.z.string()}).optional()}),se=e.z.object({...re.omit({password:!0}).shape,...r.shape,user_id:e.z.string(),provider:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(ie).optional()}),lo=se.omit({registration_completed_at:!0}),co=O.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());let po="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_o=(t=21)=>{let o="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)o+=po[i[t]&63];return o};const le=e.z.object({client_id:e.z.string().optional().openapi({description:"ID of this client. Generated server-side if omitted (Auth0 behavior)."}),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(()=>_o()).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)."}),auth0_conformant:e.z.boolean().default(!0).openapi({description:"Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)."}),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),client_aliases:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of audiences/realms for SAML protocol. Used by the wsfed addon."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."}),connections:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of connection IDs enabled for this client. The order determines the display order on the login page."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),session_transfer:e.z.record(e.z.any()).default({}).optional().openapi({description:"Native to Web SSO Configuration"}),oidc_logout:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration for OIDC backchannel logout"}),grant_types:e.z.array(e.z.string()).default([]).optional().openapi({description:"List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."}),jwt_configuration:e.z.record(e.z.any()).default({}).optional().openapi({description:"Configuration related to JWTs for the client."}),signing_keys:e.z.array(e.z.record(e.z.any())).default([]).optional().openapi({description:"Signing certificates associated with this client."}),encryption_key:e.z.record(e.z.any()).default({}).optional().openapi({description:"Encryption used for WsFed responses with this client."}),sso:e.z.boolean().default(!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(!1).openapi({description:"Whether Single Sign On is disabled for this client. When true, existing SSO sessions will not be reused and users must authenticate every time."}),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.object({rotation_type:e.z.enum(["rotating","non-rotating"]).optional().openapi({description:"Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset."}),leeway:e.z.number().int().min(0).max(600).optional().openapi({description:"Seconds after a parent token's first rotation during which presenting it again still mints a fresh sibling child instead of triggering reuse-detection. Defaults to 30s when unset."}),expiration_type:e.z.enum(["expiring","non-expiring"]).optional().openapi({description:"Auth0-compatible: whether refresh tokens expire."}),token_lifetime:e.z.number().int().min(0).optional().openapi({description:"Auth0-compatible: refresh-token absolute lifetime in seconds."}),infinite_token_lifetime:e.z.boolean().optional().openapi({description:"Auth0-compatible: when true, refresh tokens have no absolute expiry."}),idle_token_lifetime:e.z.number().int().min(0).optional().openapi({description:"Auth0-compatible: refresh-token idle (sliding) lifetime in seconds."}),infinite_idle_token_lifetime:e.z.boolean().optional().openapi({description:"Auth0-compatible: when true, refresh tokens have no idle expiry."})}).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(),owner_user_id:e.z.string().optional().openapi({description:"User ID of the consenting user when this client was created via IAT-gated Dynamic Client Registration. NULL for clients created via the Management API or open DCR."}),registration_type:e.z.enum(["manual","open_dcr","iat_dcr"]).optional().openapi({description:"Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token."}),registration_metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability."}),user_linking_mode:e.z.enum(["builtin","off"]).optional().openapi({description:"Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."})}),zo=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),...le.shape,client_id:e.z.string()}),ce=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."})}),pe=e.z.object({id:e.z.string().openapi({description:"ID of the client grant."}),...ce.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),go=e.z.array(pe),de=e.z.enum(["iat","rat"]),_e=e.z.object({id:e.z.string(),token_hash:e.z.string(),type:de,client_id:e.z.string().optional(),sub:e.z.string().optional(),constraints:e.z.record(e.z.unknown()).optional(),single_use:e.z.boolean().default(!1),expires_at:e.z.string().optional()}),mo=e.z.object({created_at:e.z.string(),used_at:e.z.string().optional(),revoked_at:e.z.string().optional(),..._e.shape}),z=e.z.object({x:e.z.number(),y:e.z.number()});var N=(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))(N||{}),w=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(w||{});const I=e.z.object({id:e.z.string(),category:e.z.nativeEnum(w),type:e.z.nativeEnum(N)}),ze=I.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),ge=I.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()}),me=I.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()}),ue=I.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()}),he=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),be=e.z.union([ze,ge,me,ue,he]);var fe=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(fe||{});const Se=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(be),next_node:e.z.string()}).passthrough()}),Ee=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),ye=e.z.object({id:e.z.string(),type:e.z.literal("ACTION"),coordinates:z,alias:e.z.string().optional(),config:e.z.object({action_type:e.z.enum(["REDIRECT"]).openapi({description:"The type of action to perform"}),target:e.z.enum(["change-email","account","custom"]).openapi({description:"The predefined target to redirect to"}),custom_url:e.z.string().optional().openapi({description:"Custom URL when target is 'custom'"}),next_node:e.z.string().openapi({description:"The next node to navigate to after action (for non-redirect actions)"})}).passthrough()}),Ae=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:z}).passthrough(),Ie=e.z.union([Se,Ee,ye,Ae]),Ce=e.z.object({next_node:e.z.string(),coordinates:z}).passthrough(),Te=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:z}).passthrough(),Oe=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(Ie),start:Ce,ending:Te,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(),uo=Oe.omit({id:!0,created_at:!0,updated_at:!0});var j=(t=>(t.TOKEN="token",t.ID_TOKEN="id_token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(j||{}),R=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(R||{}),k=(t=>(t.S256="S256",t.Plain="plain",t))(k||{});const Ne=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(j).optional(),response_mode:e.z.nativeEnum(R).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(k).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),max_age:e.z.number().optional(),acr_values:e.z.string().optional(),vendor_id:e.z.string().optional()}),ho=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.union([e.z.string(),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()}),we=e.z.enum(["password_reset","email_verification","otp","mfa_otp","authorization_code","oauth2_state","ticket"]),je=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:we,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"}),otp:e.z.string().optional().openapi({description:"The one-time password value for OTP-based flows"}),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()}),bo=e.z.object({...je.shape,created_at:e.z.string()}),Re=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional(),icon_url:e.z.string().optional(),passwordPolicy:e.z.enum(["none","low","fair","good","excellent"]).optional(),password_complexity_options:e.z.object({min_length:e.z.number().optional()}).optional(),password_history:e.z.object({enable:e.z.boolean().optional(),size:e.z.number().optional()}).optional(),password_no_personal_info:e.z.object({enable:e.z.boolean().optional()}).optional(),password_dictionary:e.z.object({enable:e.z.boolean().optional(),dictionary:e.z.array(e.z.string()).optional()}).optional(),disable_signup:e.z.boolean().optional(),brute_force_protection:e.z.boolean().optional(),import_mode:e.z.boolean().optional(),attributes:e.z.object({email:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional(),verification:e.z.object({active:e.z.boolean().optional()}).optional()}).optional(),validation:e.z.object({allowed:e.z.boolean().optional()}).optional(),unique:e.z.boolean().optional(),profile_required:e.z.boolean().optional(),verification_method:e.z.enum(["link","code"]).optional()}).optional(),username:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional()}).optional(),validation:e.z.object({max_length:e.z.number().optional(),min_length:e.z.number().optional(),allowed_types:e.z.object({email:e.z.boolean().optional(),phone_number:e.z.boolean().optional()}).optional()}).optional(),profile_required:e.z.boolean().optional()}).optional(),phone_number:e.z.object({identifier:e.z.object({active:e.z.boolean().optional()}).optional(),signup:e.z.object({status:e.z.enum(["required","optional","disabled"]).optional()}).optional()}).optional()}).optional(),authentication_methods:e.z.object({password:e.z.object({enabled:e.z.boolean().optional()}).optional(),passkey:e.z.object({enabled:e.z.boolean().optional()}).optional()}).optional(),passkey_options:e.z.object({challenge_ui:e.z.enum(["both","autofill","button"]).optional(),local_enrollment_enabled:e.z.boolean().optional(),progressive_enrollment_enabled:e.z.boolean().optional()}).optional(),requires_username:e.z.boolean().optional(),validation:e.z.object({username:e.z.object({min:e.z.number().optional(),max:e.z.number().optional()}).optional()}).optional(),set_user_root_attributes:e.z.enum(["on_each_login","on_first_login","never_on_login"]).optional()});function C(t){if(t!==null){if(Array.isArray(t))return t.filter(o=>o!==null).map(C);if(t&&typeof t=="object"){const o={};for(const[i,u]of Object.entries(t))u!==null&&(o[i]=C(u));return o}return t}}const ke=e.z.object({id:e.z.string().optional(),name:e.z.string(),display_name:e.z.string().optional(),strategy:e.z.string(),options:e.z.preprocess(t=>t===null?{}:C(t),Re).default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional(),is_domain_connection:e.z.boolean().optional(),show_as_button:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional(),is_system:e.z.boolean().optional()}),fo=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(ke.shape),ve=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),De=e.z.discriminatedUnion("name",[e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),e.z.object({name:e.z.literal("http"),http_body:e.z.string(),http_url:e.z.string()})]),Le=e.z.object({...ve.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(De)}).optional(),tls_policy:e.z.string().optional()}),So=Le.extend({tenant_id:e.z.string()}),v=e.z.object({id:e.z.string(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),l=v.extend({category:e.z.literal("BLOCK").optional()}),Eo=l.extend({type:e.z.literal("DIVIDER"),config:e.z.object({text:e.z.string().optional()}).optional()}),yo=l.extend({type:e.z.literal("HTML"),config:e.z.object({content:e.z.string().optional()}).optional()}),Ao=l.extend({type:e.z.literal("IMAGE"),config:e.z.object({src:e.z.string().optional(),alt:e.z.string().optional(),width:e.z.number().optional(),height:e.z.number().optional()}).optional()}),Io=l.extend({type:e.z.literal("JUMP_BUTTON"),config:e.z.object({text:e.z.string().optional(),target_step:e.z.string().optional()})}),Co=l.extend({type:e.z.literal("RESEND_BUTTON"),config:e.z.object({text:e.z.string().optional(),resend_action:e.z.string().optional()})}),To=l.extend({type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),Oo=l.extend({type:e.z.literal("PREVIOUS_BUTTON"),config:e.z.object({text:e.z.string().optional()})}),No=l.extend({type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string().optional()}).optional()}),D=v.extend({category:e.z.literal("WIDGET").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),wo=D.extend({type:e.z.literal("AUTH0_VERIFIABLE_CREDENTIALS"),config:e.z.object({credential_type:e.z.string().optional()})}),jo=D.extend({type:e.z.literal("GMAPS_ADDRESS"),config:e.z.object({api_key:e.z.string().optional()})}),Ro=D.extend({type:e.z.literal("RECAPTCHA"),config:e.z.object({site_key:e.z.string().optional()})}),n=v.extend({category:e.z.literal("FIELD").optional(),label:e.z.string().min(1).optional(),hint:e.z.string().min(1).max(500).optional(),messages:e.z.array(e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])})).optional(),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional()}),ko=n.extend({type:e.z.literal("BOOLEAN"),config:e.z.object({default_value:e.z.boolean().optional()}).optional()}),vo=n.extend({type:e.z.literal("CARDS"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string(),description:e.z.string().optional(),image:e.z.string().optional()})).optional(),multi_select:e.z.boolean().optional()}).optional()}),Do=n.extend({type:e.z.literal("CHOICE"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),display:e.z.enum(["radio","checkbox"]).optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),Lo=n.extend({type:e.z.literal("CUSTOM"),config:e.z.object({component:e.z.string().optional(),props:e.z.record(e.z.any()).optional(),schema:e.z.record(e.z.any()).optional(),code:e.z.string().optional()})}),Uo=n.extend({type:e.z.literal("DATE"),config:e.z.object({format:e.z.string().optional(),min:e.z.string().optional(),max:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Fo=n.extend({type:e.z.literal("DROPDOWN"),config:e.z.object({options:e.z.array(e.z.object({value:e.z.string(),label:e.z.string()})).optional(),placeholder:e.z.string().optional(),searchable:e.z.boolean().optional(),multiple:e.z.boolean().optional(),default_value:e.z.union([e.z.string(),e.z.array(e.z.string())]).optional()}).optional()}),xo=n.extend({type:e.z.literal("EMAIL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Po=n.extend({type:e.z.literal("FILE"),config:e.z.object({accept:e.z.string().optional(),max_size:e.z.number().optional(),multiple:e.z.boolean().optional()}).optional()}),Mo=n.extend({type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}).optional()}),Ho=n.extend({type:e.z.literal("NUMBER"),config:e.z.object({placeholder:e.z.string().optional(),min:e.z.number().optional(),max:e.z.number().optional(),step:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),Go=n.extend({type:e.z.literal("PASSWORD"),config:e.z.object({placeholder:e.z.string().optional(),min_length:e.z.number().optional(),show_toggle:e.z.boolean().optional(),forgot_password_link:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Bo=n.extend({type:e.z.literal("PAYMENT"),config:e.z.object({provider:e.z.string().optional(),currency:e.z.string().optional()}).optional()}),Wo=n.extend({type:e.z.literal("SOCIAL"),config:e.z.object({providers:e.z.array(e.z.string()).optional(),provider_details:e.z.array(e.z.object({name:e.z.string(),strategy:e.z.string().optional(),display_name:e.z.string().optional(),icon_url:e.z.string().optional(),href:e.z.string().optional()})).optional()}).optional()}),Ko=n.extend({type:e.z.literal("TEL"),config:e.z.object({placeholder:e.z.string().optional(),default_country:e.z.string().optional(),default_value:e.z.string().optional(),allow_email:e.z.boolean().optional()}).optional()}),qo=n.extend({type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional(),max_length:e.z.number().optional(),default_value:e.z.string().optional()}).optional()}),Vo=n.extend({type:e.z.literal("COUNTRY"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Xo=n.extend({type:e.z.literal("URL"),config:e.z.object({placeholder:e.z.string().optional(),default_value:e.z.string().optional()}).optional()}),Ue=e.z.discriminatedUnion("type",[Eo,yo,Ao,Io,Co,To,Oo,No]),Fe=e.z.discriminatedUnion("type",[wo,jo,Ro]),xe=e.z.discriminatedUnion("type",[ko,vo,Do,Vo,Lo,Uo,Fo,xo,Po,Mo,Ho,Go,Bo,Wo,Ko,qo,Xo]),L=e.z.union([Ue,Fe,xe]),Yo=new Set(["BOOLEAN","CARDS","CHOICE","COUNTRY","DATE","DROPDOWN","EMAIL","LEGAL","NUMBER","PASSWORD","TEL","TEXT","URL"]),Qo=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()}),f=e.z.object({x:e.z.number(),y:e.z.number()}),Zo=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:f,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string().optional()})}),$o=e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:f,alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.string()})}),Jo=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:f,alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(L),next_node:e.z.string().optional()})}),Pe=e.z.discriminatedUnion("type",[Zo,$o,Jo]),Me=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(Pe).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:f.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:f.optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches Auth0 Forms structure)"}),en=e.z.object({...r.shape,...Me.shape,id:e.z.string()}),He=e.z.object({id:e.z.number().optional(),text:e.z.string(),type:e.z.enum(["info","error","success","warning"])}),Ge=e.z.object({id:e.z.string().optional(),text:e.z.string(),href:e.z.string(),linkText:e.z.string().optional()}),tn=e.z.object({name:e.z.string().optional(),action:e.z.string(),method:e.z.enum(["POST","GET"]),title:e.z.string().optional(),description:e.z.string().optional(),components:e.z.array(L),messages:e.z.array(He).optional(),links:e.z.array(Ge).optional(),footer:e.z.string().optional()});function on(t){return t.category==="BLOCK"}function nn(t){return t.category==="WIDGET"}function an(t){return t.category==="FIELD"}const Be=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","post-user-update","validate-registration-username","pre-user-deletion","post-user-deletion"]),We=e.z.enum(["pre-user-registration","post-user-registration","post-user-login","validate-registration-username","pre-user-deletion","post-user-deletion"]),Ke=e.z.enum(["post-user-login","post-user-registration","post-user-update","credentials-exchange"]),qe=e.z.enum(["post-user-login","credentials-exchange","pre-user-registration","post-user-registration"]),U=e.z.enum(["ensure-username","set-preferred-username","account-linking"]),rn={"ensure-username":{name:"Ensure Username",description:"Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",trigger_ids:["post-user-login"]},"set-preferred-username":{name:"Set Preferred Username",description:"Sets the preferred_username claim on tokens based on the username from the primary or linked user.",trigger_ids:["credentials-exchange"]},"account-linking":{name:"Account Linking",description:"Links a user to an existing primary account with the same verified email. Idempotent — safe to run on every login, registration, and email update.",trigger_ids:["post-user-login","post-user-registration","post-user-update"]}},c={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional(),metadata:e.z.record(e.z.unknown()).optional()},sn=e.z.object({...c,trigger_id:Be,url:e.z.string()}),ln=e.z.object({...c,trigger_id:We,form_id:e.z.string()}),cn=e.z.object({...c,trigger_id:Ke,template_id:U}),pn=e.z.object({...c,trigger_id:qe,code_id:e.z.string()}),dn=e.z.union([sn,ln,cn,pn]),_n=e.z.object({...c,trigger_id:Be,...r.shape,hook_id:e.z.string(),url:e.z.string()}),zn=e.z.object({...c,trigger_id:We,...r.shape,hook_id:e.z.string(),form_id:e.z.string()}),gn=e.z.object({...c,trigger_id:Ke,...r.shape,hook_id:e.z.string(),template_id:U}),mn=e.z.object({...c,trigger_id:qe,...r.shape,hook_id:e.z.string(),code_id:e.z.string()}),un=e.z.union([_n,zn,gn,mn]),Ve=e.z.object({code:e.z.string().max(1e5),secrets:e.z.record(e.z.string()).optional()}),hn=Ve.extend({id:e.z.string(),tenant_id:e.z.string(),...r.shape}),Xe=e.z.object({name:e.z.string().optional()}),Ye=e.z.object({email:e.z.string().optional()}),Qe=e.z.object({organization_id:e.z.string().max(50),inviter:Xe,invitee:Ye,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()}),bn=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(Qe.shape),Ze=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()}),fn=e.z.object({keys:e.z.array(Ze)}),Sn=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().optional(),revocation_endpoint:e.z.string(),end_session_endpoint:e.z.string().optional(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),grant_types_supported:e.z.array(e.z.string()).optional(),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())});var F=(t=>(t.PENDING="pending",t.AUTHENTICATED="authenticated",t.AWAITING_EMAIL_VERIFICATION="awaiting_email_verification",t.AWAITING_MFA="awaiting_mfa",t.AWAITING_HOOK="awaiting_hook",t.AWAITING_CONTINUATION="awaiting_continuation",t.COMPLETED="completed",t.FAILED="failed",t.EXPIRED="expired",t))(F||{});const $e=e.z.nativeEnum(F),Je=e.z.object({strategy:e.z.string(),strategy_type:e.z.string()}),et=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:Ne,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),state:$e.optional().default("pending"),state_data:e.z.string().optional(),failure_reason:e.z.string().optional(),user_id:e.z.string().optional(),auth_connection:e.z.string().optional(),auth_strategy:Je.optional(),authenticated_at:e.z.string().optional()}).openapi({description:"This represents a login sesion"}),En=e.z.object({...et.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()}),tt={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_IMPERSONATION:"fimp",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",FAILED_API_OPERATION:"fapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESS_IMPERSONATION:"simp",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_HOOK:"sh",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"},yn=e.z.string().refine(t=>Object.values(tt).includes(t),{message:"Invalid log type"}),ot=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),nt=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()}),it=e.z.object({type:yn,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:ot.optional(),log_id:e.z.string().optional(),location_info:nt.optional()}),An=e.z.object({...it.shape,log_id:e.z.string()}),at=e.z.enum(["http","eventbridge","eventgrid","splunk","datadog","sumo"]),x=e.z.enum(["active","paused","suspended"]),rt=e.z.object({type:e.z.string(),name:e.z.string()}),st=e.z.object({name:e.z.string(),type:at,status:x.optional(),sink:e.z.record(e.z.string(),e.z.unknown()),filters:e.z.array(rt).optional(),isPriority:e.z.boolean().optional()}),In=st.extend({id:e.z.string(),status:x,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),lt=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),admin_notification_frequency:e.z.array(e.z.string()).optional(),method:e.z.string().optional(),stage:e.z.object({"pre-user-registration":e.z.object({shields:e.z.array(e.z.string()).optional()}).optional(),"pre-change-password":e.z.object({shields:e.z.array(e.z.string()).optional()}).optional()}).optional()}),ct=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional(),mode:e.z.string().optional(),max_attempts:e.z.number().optional()}),pt=e.z.object({enabled:e.z.boolean().optional(),shields:e.z.array(e.z.string()).optional(),allowlist:e.z.array(e.z.string()).optional(),stage:e.z.object({"pre-login":e.z.object({max_attempts:e.z.number().optional(),rate:e.z.number().optional()}).optional(),"pre-user-registration":e.z.object({max_attempts:e.z.number().optional(),rate:e.z.number().optional()}).optional()}).optional()}),dt=e.z.object({breached_password_detection:lt.optional(),brute_force_protection:ct.optional(),suspicious_ip_throttling:pt.optional()}),_t=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)}),Cn=_t.extend({id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}),zt=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")}),gt=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:zt.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")}),Tn=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...gt.shape}),On=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"})}),mt=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(),default_client_id: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()}).nullish(),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(),dcr_require_initial_access_token:e.z.boolean().optional(),dcr_allowed_grant_types:e.z.array(e.z.string()).optional(),allow_http_return_to:e.z.array(e.z.string().refine(t=>{try{const o=new URL(t);return o.protocol==="http:"&&(o.pathname===""||o.pathname==="/")&&!o.search&&!o.hash&&t===o.origin}catch{return!1}},{message:"must be a fully-qualified http origin (scheme + host + port, no path)"})).optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),enable_sso:e.z.boolean().optional(),enforce_client_authentication_on_passwordless_start:e.z.boolean().optional(),genai_trial:e.z.boolean().optional(),improved_signup_bot_detection_in_classic:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional(),no_disclose_enterprise_connections:e.z.boolean().optional(),remove_alg_from_jwks:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),trust_azure_adfs_email_verified_connection_property:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),inherit_global_permissions_in_organizations:e.z.boolean().optional()}).optional(),sandbox_version:e.z.string().optional(),legacy_sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean().optional(),html:e.z.string().optional()}).optional(),device_flow:e.z.object({charset:e.z.enum(["base20","digits"]).optional(),mask:e.z.string().max(20).optional()}).optional(),default_token_quota:e.z.object({clients:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional(),organizations:e.z.object({client_credentials:e.z.record(e.z.any()).optional()}).optional()}).nullish(),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()}).nullish(),pushed_authorization_requests_supported:e.z.boolean().optional(),authorization_response_iss_parameter_supported:e.z.boolean().optional(),attack_protection:dt.optional(),mfa:e.z.object({policy:e.z.enum(["never","always"]).default("never").optional(),factors:e.z.object({sms:e.z.boolean().default(!1),otp:e.z.boolean().default(!1),email:e.z.boolean().default(!1),push_notification:e.z.boolean().default(!1),webauthn_roaming:e.z.boolean().default(!1),webauthn_platform:e.z.boolean().default(!1),recovery_code:e.z.boolean().default(!1),duo:e.z.boolean().default(!1)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),Nn=e.z.object({created_at:e.z.string().nullable().transform(t=>t??""),updated_at:e.z.string().nullable().transform(t=>t??""),...mt.shape,id:e.z.string()});var ut=(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))(ut||{});const wn=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 ht=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()}),bt=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()}),_=e.z.object({bold:e.z.boolean(),size:e.z.number()}),ft=e.z.object({body_text:_,buttons_text:_,font_url:e.z.string(),input_labels:_,links:_,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:_,title:_}),St=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"]),logo_placement:e.z.enum(["widget","chip","none"]).optional()}),Et=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"])}),yt=e.z.object({borders:ht,colors:bt,displayName:e.z.string(),fonts:ft,page_background:St,widget:Et}),jn=yt.extend({themeId:e.z.string()}),Rn=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()}),kn=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.record(e.z.string(),e.z.unknown()),settings:e.z.object({}).optional()}),At=e.z.object({id:e.z.string(),login_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:zt,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean(),token_lookup:e.z.string().optional(),token_hash:e.z.string().optional(),family_id:e.z.string().optional(),rotated_to:e.z.string().optional(),rotated_at:e.z.string().optional()}),vn=e.z.object({created_at:e.z.string(),revoked_at:e.z.string().optional(),...At.shape}),Dn=e.z.object({to:e.z.string(),message:e.z.string()}),Ln=e.z.object({name:e.z.string(),options:e.z.object({})}),It=e.z.object({value:e.z.string(),description:e.z.string().optional()}),Ct=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()}),Tt=e.z.object({id:e.z.string().optional(),name:e.z.string(),identifier:e.z.string(),scopes:e.z.array(It).optional(),signing_alg:e.z.string().optional(),signing_secret:e.z.string().optional(),token_lifetime:e.z.number().default(86400),token_lifetime_for_web:e.z.number().default(7200),skip_consent_for_verifiable_first_party_clients:e.z.boolean().optional(),allow_offline_access:e.z.boolean().optional(),verificationKey:e.z.string().optional(),options:Ct.optional(),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional()}),Ot=e.z.object({...Tt.shape,created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Un=e.z.array(Ot),Nt=e.z.object({role_id:e.z.string(),resource_server_identifier:e.z.string(),permission_name:e.z.string()}),wt=e.z.object({...Nt.shape,created_at:e.z.string()}),Fn=e.z.array(wt),jt=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()}),Rt=e.z.object({...jt.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),xn=e.z.array(Rt),kt=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()}),Pn=e.z.array(kt),vt=e.z.object({user_id:e.z.string(),role_id:e.z.string(),organization_id:e.z.string().optional()}),Dt=e.z.object({...vt.shape,tenant_id:e.z.string(),created_at:e.z.string().optional()}),Mn=e.z.array(Dt),Lt=e.z.object({id:e.z.string().optional().openapi({description:"The unique identifier of the role. If not provided, one will be generated."}),name:e.z.string().min(1).max(50).openapi({description:"The name of the role. Cannot include '<' or '>'"}),description:e.z.string().max(255).optional().openapi({description:"The description of the role"}),is_system:e.z.boolean().optional(),metadata:e.z.record(e.z.any()).optional().openapi({description:"Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."})}),Ut=Lt.extend({id:e.z.string().openapi({description:"The unique identifier of the role"}),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Hn=e.z.array(Ut),Ft=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(),xt=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"})}),Pt=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(),Mt=e.z.object({id:e.z.string().optional(),name:e.z.string().min(1).regex(/^[a-z0-9_-]+$/,{message:"Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"}).openapi({description:"The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores."}),display_name:e.z.string().optional().openapi({description:"The display name of the organization"}),branding:Ft,metadata:e.z.record(e.z.any()).default({}).optional().openapi({description:"Custom metadata for the organization"}),enabled_connections:e.z.array(xt).default([]).optional().openapi({description:"List of enabled connections for the organization"}),token_quota:Pt}),Gn=e.z.object({...Mt.shape,...r.shape,id:e.z.string(),name:e.z.string().min(1).openapi({description:"The name of the organization"})}),Ht=e.z.object({connection_id:e.z.string().openapi({description:"ID of the tenant-level connection to enable for the org."}),assign_membership_on_login:e.z.boolean().optional().default(!1),show_as_button:e.z.boolean().optional().default(!0),is_signup_enabled:e.z.boolean().optional().default(!0)}),Gt=e.z.object({...Ht.shape,connection:e.z.object({name:e.z.string().optional(),strategy:e.z.string().optional()}).optional(),created_at:e.z.string().optional(),updated_at:e.z.string().optional()}),Bn=e.z.array(Gt),Bt=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"})}),Wn=e.z.object({...Bt.shape,...r.shape,id:e.z.string()}),Kn=e.z.object({idle_session_lifetime:e.z.number().default(72),session_lifetime:e.z.number().default(168),session_cookie:e.z.object({mode:e.z.enum(["persistent","non-persistent"]).optional()}).optional(),enable_client_connections:e.z.boolean().optional(),default_redirection_uri:e.z.string().optional(),enabled_locales:e.z.array(e.z.string()).optional(),default_directory:e.z.string().optional(),error_page:e.z.object({html:e.z.string().optional(),show_log_link:e.z.boolean().optional(),url:e.z.string().optional()}).optional(),flags:e.z.object({allow_legacy_delegation_grant_types:e.z.boolean().optional(),allow_legacy_ro_grant_types:e.z.boolean().optional(),allow_legacy_tokeninfo_endpoint:e.z.boolean().optional(),disable_clickjack_protection_headers:e.z.boolean().optional(),enable_apis_section:e.z.boolean().optional(),enable_client_connections:e.z.boolean().optional(),enable_custom_domain_in_emails:e.z.boolean().optional(),enable_dynamic_client_registration:e.z.boolean().optional(),enable_idtoken_api2:e.z.boolean().optional(),enable_legacy_logs_search_v2:e.z.boolean().optional(),enable_legacy_profile:e.z.boolean().optional(),enable_pipeline2:e.z.boolean().optional(),enable_public_signup_user_exists_error:e.z.boolean().optional(),use_scope_descriptions_for_consent:e.z.boolean().optional(),disable_management_api_sms_obfuscation:e.z.boolean().optional(),enable_adfs_waad_email_verification:e.z.boolean().optional(),revoke_refresh_token_grant:e.z.boolean().optional(),dashboard_log_streams_next:e.z.boolean().optional(),dashboard_insights_view:e.z.boolean().optional(),disable_fields_map_fix:e.z.boolean().optional(),mfa_show_factor_list_on_enrollment:e.z.boolean().optional()}).optional(),friendly_name:e.z.string().optional(),picture_url:e.z.string().optional(),support_email:e.z.string().optional(),support_url:e.z.string().optional(),sandbox_version:e.z.string().optional(),sandbox_versions_available:e.z.array(e.z.string()).optional(),change_password:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),guardian_mfa_page:e.z.object({enabled:e.z.boolean(),html:e.z.string()}).optional(),default_audience:e.z.string().optional(),default_organization:e.z.string().optional(),sessions:e.z.object({oidc_logout_prompt_enabled:e.z.boolean().optional()}).optional(),mfa:e.z.object({policy:e.z.enum(["never","always"]).default("never").optional(),factors:e.z.object({sms:e.z.boolean().default(!1),otp:e.z.boolean().default(!1),email:e.z.boolean().default(!1),push_notification:e.z.boolean().default(!1),webauthn_roaming:e.z.boolean().default(!1),webauthn_platform:e.z.boolean().default(!1),recovery_code:e.z.boolean().default(!1),duo:e.z.boolean().default(!1)}).optional(),sms_provider:e.z.object({provider:e.z.enum(["twilio","vonage","aws_sns","phone_message_hook"]).optional()}).optional(),twilio:e.z.object({sid:e.z.string().optional(),auth_token:e.z.string().optional(),from:e.z.string().optional(),messaging_service_sid:e.z.string().optional()}).optional(),phone_message:e.z.object({message:e.z.string().optional()}).optional()}).optional()}),qn=e.z.object({date:e.z.string().openapi({description:"Date these events occurred in ISO 8601 format",example:"2025-12-19"}),logins:e.z.number().openapi({description:"Number of logins on this date",example:150}),signups:e.z.number().openapi({description:"Number of signups on this date",example:25}),leaked_passwords:e.z.number().openapi({description:"Number of breached-password detections on this date (subscription required)",example:0}),updated_at:e.z.string().openapi({description:"Date and time this stats entry was last updated in ISO 8601 format",example:"2025-12-19T10:30:00.000Z"}),created_at:e.z.string().openapi({description:"Approximate date and time the first event occurred in ISO 8601 format",example:"2025-12-19T00:00:00.000Z"})}),Vn=e.z.number().openapi({description:"Number of active users in the last 30 days",example:1234}),Wt=e.z.enum(["login","login-id","login-password","signup","signup-id","signup-password","reset-password","consent","mfa","mfa-push","mfa-otp","mfa-voice","mfa-phone","mfa-webauthn","mfa-email","mfa-recovery-code","status","device-flow","email-verification","email-otp-challenge","organizations","invitation","common","passkeys","captcha","custom-form","login-passwordless","mfa-login-options"]),Kt=e.z.record(e.z.string(),e.z.record(e.z.string(),e.z.string())).openapi({type:"object",additionalProperties:{type:"object",additionalProperties:{type:"string"}}}),Xn=e.z.object({prompt:Wt,language:e.z.string(),custom_text:Kt}),Yn={EMAIL:"email",SMS:"sms",USERNAME_PASSWORD:"Username-Password-Authentication",GOOGLE_OAUTH2:"google-oauth2",APPLE:"apple",FACEBOOK:"facebook",GITHUB:"github",MICROSOFT:"microsoft",VIPPS:"vipps",OIDC:"oidc",OAUTH2:"oauth2",SAMLP:"samlp",WAAD:"waad",ADFS:"adfs"},Qn={DATABASE:"database",SOCIAL:"social",PASSWORDLESS:"passwordless"},qt=e.z.enum(["phone","totp","email","push","webauthn-roaming","webauthn-platform","passkey"]),Vt=e.z.object({user_id:e.z.string(),type:qt,phone_number:e.z.string().optional(),totp_secret:e.z.string().optional(),credential_id:e.z.string().optional(),public_key:e.z.string().optional(),sign_count:e.z.number().int().nonnegative().optional(),credential_backed_up:e.z.boolean().optional(),transports:e.z.array(e.z.string()).optional(),friendly_name:e.z.string().optional(),confirmed:e.z.boolean().default(!1)});function Xt(t,o){t.type==="phone"&&!t.phone_number&&o.addIssue({code:e.z.ZodIssueCode.custom,message:"phone_number is required when type is 'phone'",path:["phone_number"]}),t.type==="totp"&&!t.totp_secret&&o.addIssue({code:e.z.ZodIssueCode.custom,message:"totp_secret is required when type is 'totp'",path:["totp_secret"]}),["webauthn-roaming","webauthn-platform","passkey"].includes(t.type)&&(t.credential_id||o.addIssue({code:e.z.ZodIssueCode.custom,message:`credential_id is required when type is '${t.type}'`,path:["credential_id"]}),t.public_key||o.addIssue({code:e.z.ZodIssueCode.custom,message:`public_key is required when type is '${t.type}'`,path:["public_key"]}))}const Zn=Vt.superRefine(Xt),$n=e.z.object({...Vt.shape,id:e.z.string(),created_at:e.z.string(),updated_at:e.z.string()}).superRefine(Xt);function Jn(t){const[o,i]=t.split("|");if(!o||!i)throw new Error(`Invalid user_id: ${t}`);return{connection:o,id:i}}function ei(t){const{primary:o,secondaries:i,syncMethods:u=["create","rawCreate","update","remove","delete","set"]}=t,S={get(p,a){if(typeof a=="symbol")return p[a];const d=p[a];return typeof d!="function"?d:u.includes(a)?async(...g)=>{const E=await d.apply(p,g),m=[];for(const s of i){const h=s.adapter[a];if(typeof h!="function")continue;const y=(async()=>{try{await h.apply(s.adapter,g)}catch(b){try{s.onError?s.onError(b,a,g):console.error(`Passthrough adapter: secondary write failed for ${a}:`,b)}catch(A){console.error(`Passthrough adapter: onError handler threw for ${a}:`,A)}}})();s.blocking&&m.push(y)}return m.length>0&&await Promise.all(m),E}:d.bind(p)}};return new Proxy(o,S)}function ti(t){return t}function oi(t){var S,p,a,d,g,E,m,s,h,y,b,A;const o=t==null?void 0:t.options;if(!o)return{usernameIdentifierActive:!1,emailIdentifierActive:!0,usernameMinLength:1,usernameMaxLength:15};const i=o.attributes;if(i){const Yt=((p=(S=i.username)==null?void 0:S.identifier)==null?void 0:p.active)===!0,Qt=((d=(a=i.email)==null?void 0:a.identifier)==null?void 0:d.active)!==!1,Zt=((E=(g=i.username)==null?void 0:g.validation)==null?void 0:E.min_length)??1,$t=((s=(m=i.username)==null?void 0:m.validation)==null?void 0:s.max_length)??15;return{usernameIdentifierActive:Yt,emailIdentifierActive:Qt,usernameMinLength:Zt,usernameMaxLength:$t}}return{usernameIdentifierActive:o.requires_username===!0,emailIdentifierActive:!0,usernameMinLength:((y=(h=o.validation)==null?void 0:h.username)==null?void 0:y.min)??1,usernameMaxLength:((A=(b=o.validation)==null?void 0:b.username)==null?void 0:A.max)??15}}function ni(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}exports.Auth0ActionEnum=no;exports.Auth0Client=ot;exports.AuthorizationResponseMode=R;exports.AuthorizationResponseType=j;exports.CodeChallengeMethod=k;exports.ComponentCategory=w;exports.ComponentType=N;exports.EmailActionEnum=io;exports.FORM_FIELD_TYPES=Yo;exports.FlowActionTypeEnum=oo;exports.GrantType=ut;exports.LocationInfo=nt;exports.LogTypes=tt;exports.LoginSessionState=F;exports.NodeType=fe;exports.RedirectTargetEnum=J;exports.Strategy=Yn;exports.StrategyType=Qn;exports.actionDependencySchema=M;exports.actionInsertSchema=T;exports.actionNodeSchema=ye;exports.actionSchema=eo;exports.actionSecretSchema=H;exports.actionTriggerSchema=P;exports.actionUpdateSchema=Jt;exports.activeUsersResponseSchema=Vn;exports.actorSchema=B;exports.addressSchema=ae;exports.attackProtectionSchema=dt;exports.auditCategorySchema=G;exports.auditEventInsertSchema=Y;exports.auditEventSchema=to;exports.auth0ClientSchema=X;exports.auth0FlowInsertSchema=uo;exports.auth0FlowSchema=Oe;exports.auth0QuerySchema=ro;exports.auth0UpdateUserActionSchema=Z;exports.auth0UserResponseSchema=lo;exports.authParamsSchema=Ne;exports.authenticationMethodInsertSchema=Zn;exports.authenticationMethodSchema=$n;exports.authenticationMethodTypeSchema=qt;exports.baseUserSchema=O;exports.blockComponentSchema=Ue;exports.bordersSchema=ht;exports.brandingSchema=ho;exports.breachedPasswordDetectionSchema=lt;exports.bruteForceProtectionSchema=ct;exports.buttonComponentSchema=ge;exports.clientGrantInsertSchema=ce;exports.clientGrantListSchema=go;exports.clientGrantSchema=pe;exports.clientInsertSchema=le;exports.clientRegistrationTokenInsertSchema=_e;exports.clientRegistrationTokenSchema=mo;exports.clientRegistrationTokenTypeSchema=de;exports.clientSchema=zo;exports.codeInsertSchema=je;exports.codeSchema=bo;exports.codeTypeSchema=we;exports.colorsSchema=bt;exports.componentMessageSchema=He;exports.componentSchema=be;exports.connectionInsertSchema=ke;exports.connectionOptionsSchema=Re;exports.connectionSchema=fo;exports.coordinatesSchema=z;exports.createPassthroughAdapter=ei;exports.createWriteOnlyAdapter=ti;exports.customDomainInsertSchema=ve;exports.customDomainSchema=Le;exports.customDomainWithTenantIdSchema=So;exports.customTextEntrySchema=Xn;exports.customTextSchema=Kt;exports.dailyStatsSchema=qn;exports.emailProviderSchema=kn;exports.emailVerificationRulesSchema=Q;exports.emailVerifyActionSchema=$;exports.endingSchema=Te;exports.fieldComponentSchema=xe;exports.flowActionStepSchema=te;exports.flowInsertSchema=oe;exports.flowSchema=ao;exports.flowsFieldComponentSchema=ue;exports.flowsFlowNodeSchema=Ee;exports.flowsStepNodeSchema=Se;exports.fontDetailsSchema=_;exports.fontsSchema=ft;exports.formControlSchema=Qo;exports.formInsertSchema=Me;exports.formNodeComponentDefinition=L;exports.formNodeSchema=Pe;exports.formSchema=en;exports.genericComponentSchema=he;exports.genericNodeSchema=Ae;exports.getConnectionIdentifierConfig=oi;exports.hookCodeInsertSchema=Ve;exports.hookCodeSchema=hn;exports.hookInsertSchema=dn;exports.hookSchema=un;exports.hookTemplateId=U;exports.hookTemplates=rn;exports.identitySchema=ie;exports.inviteInsertSchema=Qe;exports.inviteSchema=bn;exports.inviteeSchema=Ye;exports.inviterSchema=Xe;exports.isBlockComponent=on;exports.isFieldComponent=an;exports.isPlainObject=ni;exports.isWidgetComponent=nn;exports.jwksKeySchema=fn;exports.jwksSchema=Ze;exports.legalComponentSchema=me;exports.locationInfoSchema=V;exports.logInsertSchema=it;exports.logSchema=An;exports.logStreamFilterSchema=rt;exports.logStreamInsertSchema=st;exports.logStreamSchema=In;exports.logStreamStatusSchema=x;exports.logStreamTypeSchema=at;exports.loginSessionAuthStrategySchema=Je;exports.loginSessionInsertSchema=et;exports.loginSessionSchema=En;exports.loginSessionStateSchema=$e;exports.nodeSchema=Ie;exports.openIDConfigurationSchema=Sn;exports.organizationBrandingSchema=Ft;exports.organizationConnectionInsertSchema=Ht;exports.organizationConnectionListSchema=Bn;exports.organizationConnectionSchema=Gt;exports.organizationEnabledConnectionSchema=xt;exports.organizationInsertSchema=Mt;exports.organizationSchema=Gn;exports.organizationTokenQuotaSchema=Pt;exports.pageBackgroundSchema=St;exports.parseUserId=Jn;exports.passwordInsertSchema=_t;exports.passwordSchema=Cn;exports.profileDataSchema=ne;exports.promptScreenSchema=Wt;exports.promptSettingSchema=Rn;exports.redirectActionSchema=ee;exports.refreshTokenInsertSchema=At;exports.refreshTokenSchema=vn;exports.requestContextSchema=K;exports.resourceServerInsertSchema=Tt;exports.resourceServerListSchema=Un;exports.resourceServerOptionsSchema=Ct;exports.resourceServerSchema=Ot;exports.resourceServerScopeSchema=It;exports.responseContextSchema=q;exports.richTextComponentSchema=ze;exports.roleInsertSchema=Lt;exports.roleListSchema=Hn;exports.rolePermissionInsertSchema=Nt;exports.rolePermissionListSchema=Fn;exports.rolePermissionSchema=wt;exports.roleSchema=Ut;exports.screenLinkSchema=Ge;exports.sessionInsertSchema=gt;exports.sessionSchema=Tn;exports.signingKeySchema=On;exports.smsProviderSchema=Ln;exports.smsSendParamsSchema=Dn;exports.startSchema=Ce;exports.suspiciousIpThrottlingSchema=pt;exports.targetSchema=W;exports.tenantInsertSchema=mt;exports.tenantSchema=Nn;exports.tenantSettingsSchema=Kn;exports.themeInsertSchema=yt;exports.themeSchema=jn;exports.tokenResponseSchema=wn;exports.totalsSchema=so;exports.uiScreenSchema=tn;exports.userInsertSchema=re;exports.userOrganizationInsertSchema=Bt;exports.userOrganizationSchema=Wn;exports.userPermissionInsertSchema=jt;exports.userPermissionListSchema=xn;exports.userPermissionSchema=Rt;exports.userPermissionWithDetailsListSchema=Pn;exports.userPermissionWithDetailsSchema=kt;exports.userResponseSchema=co;exports.userRoleInsertSchema=vt;exports.userRoleListSchema=Mn;exports.userRoleSchema=Dt;exports.userSchema=se;exports.verificationMethodsSchema=De;exports.widgetComponentSchema=Fe;exports.widgetSchema=Et;
|
|
@@ -24,13 +24,13 @@ export declare const actionDependencySchema: z.ZodObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export declare const actionSecretSchema: z.ZodObject<{
|
|
26
26
|
name: z.ZodString;
|
|
27
|
-
value: z.ZodString
|
|
27
|
+
value: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
value: string;
|
|
30
29
|
name: string;
|
|
30
|
+
value?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
value: string;
|
|
33
32
|
name: string;
|
|
33
|
+
value?: string | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const actionInsertSchema: z.ZodObject<{
|
|
36
36
|
name: z.ZodString;
|
|
@@ -58,13 +58,13 @@ export declare const actionInsertSchema: z.ZodObject<{
|
|
|
58
58
|
}>, "many">>;
|
|
59
59
|
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
60
|
name: z.ZodString;
|
|
61
|
-
value: z.ZodString
|
|
61
|
+
value: z.ZodOptional<z.ZodString>;
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
value: string;
|
|
64
63
|
name: string;
|
|
64
|
+
value?: string | undefined;
|
|
65
65
|
}, {
|
|
66
|
-
value: string;
|
|
67
66
|
name: string;
|
|
67
|
+
value?: string | undefined;
|
|
68
68
|
}>, "many">>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
code: string;
|
|
@@ -79,8 +79,8 @@ export declare const actionInsertSchema: z.ZodObject<{
|
|
|
79
79
|
name: string;
|
|
80
80
|
}[] | undefined;
|
|
81
81
|
secrets?: {
|
|
82
|
-
value: string;
|
|
83
82
|
name: string;
|
|
83
|
+
value?: string | undefined;
|
|
84
84
|
}[] | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
code: string;
|
|
@@ -95,8 +95,8 @@ export declare const actionInsertSchema: z.ZodObject<{
|
|
|
95
95
|
name: string;
|
|
96
96
|
}[] | undefined;
|
|
97
97
|
secrets?: {
|
|
98
|
-
value: string;
|
|
99
98
|
name: string;
|
|
99
|
+
value?: string | undefined;
|
|
100
100
|
}[] | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
export type ActionInsert = z.infer<typeof actionInsertSchema>;
|
|
@@ -126,13 +126,13 @@ export declare const actionUpdateSchema: z.ZodObject<{
|
|
|
126
126
|
}>, "many">>>;
|
|
127
127
|
secrets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
128
|
name: z.ZodString;
|
|
129
|
-
value: z.ZodString
|
|
129
|
+
value: z.ZodOptional<z.ZodString>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
value: string;
|
|
132
131
|
name: string;
|
|
132
|
+
value?: string | undefined;
|
|
133
133
|
}, {
|
|
134
|
-
value: string;
|
|
135
134
|
name: string;
|
|
135
|
+
value?: string | undefined;
|
|
136
136
|
}>, "many">>>;
|
|
137
137
|
} & {
|
|
138
138
|
status: z.ZodOptional<z.ZodEnum<[
|
|
@@ -154,8 +154,8 @@ export declare const actionUpdateSchema: z.ZodObject<{
|
|
|
154
154
|
name: string;
|
|
155
155
|
}[] | undefined;
|
|
156
156
|
secrets?: {
|
|
157
|
-
value: string;
|
|
158
157
|
name: string;
|
|
158
|
+
value?: string | undefined;
|
|
159
159
|
}[] | undefined;
|
|
160
160
|
deployed_at?: string | undefined;
|
|
161
161
|
}, {
|
|
@@ -172,8 +172,8 @@ export declare const actionUpdateSchema: z.ZodObject<{
|
|
|
172
172
|
name: string;
|
|
173
173
|
}[] | undefined;
|
|
174
174
|
secrets?: {
|
|
175
|
-
value: string;
|
|
176
175
|
name: string;
|
|
176
|
+
value?: string | undefined;
|
|
177
177
|
}[] | undefined;
|
|
178
178
|
deployed_at?: string | undefined;
|
|
179
179
|
}>;
|
|
@@ -43843,6 +43843,7 @@ export declare const LogTypes: {
|
|
|
43843
43843
|
readonly SUCCESSFULLY_ACCEPTED_USER_INVITE: "si";
|
|
43844
43844
|
readonly BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak";
|
|
43845
43845
|
readonly SUCCESS_LOGOUT: "slo";
|
|
43846
|
+
readonly SUCCESS_HOOK: "sh";
|
|
43846
43847
|
readonly SUCCESS_REVOCATION: "srrt";
|
|
43847
43848
|
readonly SUCCESS_SIGNUP: "ss";
|
|
43848
43849
|
readonly FAILED_SS_SSO_OPERATION: "ss_sso_failure";
|
|
@@ -43908,7 +43909,7 @@ export declare const LocationInfo: z.ZodObject<{
|
|
|
43908
43909
|
continent_code: string;
|
|
43909
43910
|
}>;
|
|
43910
43911
|
export declare const logInsertSchema: z.ZodObject<{
|
|
43911
|
-
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
43912
|
+
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
43912
43913
|
date: z.ZodString;
|
|
43913
43914
|
description: z.ZodOptional<z.ZodString>;
|
|
43914
43915
|
ip: z.ZodOptional<z.ZodString>;
|
|
@@ -43973,7 +43974,7 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
43973
43974
|
continent_code: string;
|
|
43974
43975
|
}>>;
|
|
43975
43976
|
}, "strip", z.ZodTypeAny, {
|
|
43976
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
43977
|
+
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
43977
43978
|
date: string;
|
|
43978
43979
|
isMobile: boolean;
|
|
43979
43980
|
description?: string | undefined;
|
|
@@ -44046,7 +44047,7 @@ export declare const logInsertSchema: z.ZodObject<{
|
|
|
44046
44047
|
export type LogInsert = z.infer<typeof logInsertSchema>;
|
|
44047
44048
|
export declare const logSchema: z.ZodObject<{
|
|
44048
44049
|
log_id: z.ZodString;
|
|
44049
|
-
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
44050
|
+
type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
|
|
44050
44051
|
date: z.ZodString;
|
|
44051
44052
|
description: z.ZodOptional<z.ZodString>;
|
|
44052
44053
|
ip: z.ZodOptional<z.ZodString>;
|
|
@@ -44110,7 +44111,7 @@ export declare const logSchema: z.ZodObject<{
|
|
|
44110
44111
|
continent_code: string;
|
|
44111
44112
|
}>>;
|
|
44112
44113
|
}, "strip", z.ZodTypeAny, {
|
|
44113
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
44114
|
+
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
44114
44115
|
date: string;
|
|
44115
44116
|
isMobile: boolean;
|
|
44116
44117
|
log_id: string;
|
|
@@ -44974,6 +44975,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
44974
44975
|
}>>;
|
|
44975
44976
|
allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
44976
44977
|
default_redirection_uri: z.ZodOptional<z.ZodString>;
|
|
44978
|
+
default_client_id: z.ZodOptional<z.ZodString>;
|
|
44977
44979
|
enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
44978
44980
|
default_directory: z.ZodOptional<z.ZodString>;
|
|
44979
44981
|
error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -45564,6 +45566,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
45564
45566
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
45565
45567
|
} | undefined;
|
|
45566
45568
|
default_redirection_uri?: string | undefined;
|
|
45569
|
+
default_client_id?: string | undefined;
|
|
45567
45570
|
enabled_locales?: string[] | undefined;
|
|
45568
45571
|
default_directory?: string | undefined;
|
|
45569
45572
|
error_page?: {
|
|
@@ -45729,6 +45732,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
45729
45732
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
45730
45733
|
} | undefined;
|
|
45731
45734
|
default_redirection_uri?: string | undefined;
|
|
45735
|
+
default_client_id?: string | undefined;
|
|
45732
45736
|
enabled_locales?: string[] | undefined;
|
|
45733
45737
|
default_directory?: string | undefined;
|
|
45734
45738
|
error_page?: {
|
|
@@ -45898,6 +45902,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
45898
45902
|
}>>;
|
|
45899
45903
|
allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45900
45904
|
default_redirection_uri: z.ZodOptional<z.ZodString>;
|
|
45905
|
+
default_client_id: z.ZodOptional<z.ZodString>;
|
|
45901
45906
|
enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45902
45907
|
default_directory: z.ZodOptional<z.ZodString>;
|
|
45903
45908
|
error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -46492,6 +46497,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
46492
46497
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
46493
46498
|
} | undefined;
|
|
46494
46499
|
default_redirection_uri?: string | undefined;
|
|
46500
|
+
default_client_id?: string | undefined;
|
|
46495
46501
|
enabled_locales?: string[] | undefined;
|
|
46496
46502
|
default_directory?: string | undefined;
|
|
46497
46503
|
error_page?: {
|
|
@@ -46659,6 +46665,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
46659
46665
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
46660
46666
|
} | undefined;
|
|
46661
46667
|
default_redirection_uri?: string | undefined;
|
|
46668
|
+
default_client_id?: string | undefined;
|
|
46662
46669
|
enabled_locales?: string[] | undefined;
|
|
46663
46670
|
default_directory?: string | undefined;
|
|
46664
46671
|
error_page?: {
|
|
@@ -47095,14 +47102,29 @@ export declare const pageBackgroundSchema: z.ZodObject<{
|
|
|
47095
47102
|
"left",
|
|
47096
47103
|
"right"
|
|
47097
47104
|
]>;
|
|
47105
|
+
/**
|
|
47106
|
+
* Where the tenant logo renders on the page.
|
|
47107
|
+
* - "widget" (default): inside the widget card via the widget's own header.
|
|
47108
|
+
* - "chip": as a floating pill in the top-left page corner. The widget's
|
|
47109
|
+
* internal logo is suppressed when this is selected.
|
|
47110
|
+
* - "none": no logo on the page or in the widget.
|
|
47111
|
+
* Optional for backwards compatibility; absent values mean "widget".
|
|
47112
|
+
*/
|
|
47113
|
+
logo_placement: z.ZodOptional<z.ZodEnum<[
|
|
47114
|
+
"widget",
|
|
47115
|
+
"chip",
|
|
47116
|
+
"none"
|
|
47117
|
+
]>>;
|
|
47098
47118
|
}, "strip", z.ZodTypeAny, {
|
|
47099
47119
|
background_color: string;
|
|
47100
47120
|
background_image_url: string;
|
|
47101
47121
|
page_layout: "center" | "left" | "right";
|
|
47122
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47102
47123
|
}, {
|
|
47103
47124
|
background_color: string;
|
|
47104
47125
|
background_image_url: string;
|
|
47105
47126
|
page_layout: "center" | "left" | "right";
|
|
47127
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47106
47128
|
}>;
|
|
47107
47129
|
export declare const widgetSchema: z.ZodObject<{
|
|
47108
47130
|
header_text_alignment: z.ZodEnum<[
|
|
@@ -47373,14 +47395,29 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47373
47395
|
"left",
|
|
47374
47396
|
"right"
|
|
47375
47397
|
]>;
|
|
47398
|
+
/**
|
|
47399
|
+
* Where the tenant logo renders on the page.
|
|
47400
|
+
* - "widget" (default): inside the widget card via the widget's own header.
|
|
47401
|
+
* - "chip": as a floating pill in the top-left page corner. The widget's
|
|
47402
|
+
* internal logo is suppressed when this is selected.
|
|
47403
|
+
* - "none": no logo on the page or in the widget.
|
|
47404
|
+
* Optional for backwards compatibility; absent values mean "widget".
|
|
47405
|
+
*/
|
|
47406
|
+
logo_placement: z.ZodOptional<z.ZodEnum<[
|
|
47407
|
+
"widget",
|
|
47408
|
+
"chip",
|
|
47409
|
+
"none"
|
|
47410
|
+
]>>;
|
|
47376
47411
|
}, "strip", z.ZodTypeAny, {
|
|
47377
47412
|
background_color: string;
|
|
47378
47413
|
background_image_url: string;
|
|
47379
47414
|
page_layout: "center" | "left" | "right";
|
|
47415
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47380
47416
|
}, {
|
|
47381
47417
|
background_color: string;
|
|
47382
47418
|
background_image_url: string;
|
|
47383
47419
|
page_layout: "center" | "left" | "right";
|
|
47420
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47384
47421
|
}>;
|
|
47385
47422
|
widget: z.ZodObject<{
|
|
47386
47423
|
header_text_alignment: z.ZodEnum<[
|
|
@@ -47418,6 +47455,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47418
47455
|
background_color: string;
|
|
47419
47456
|
background_image_url: string;
|
|
47420
47457
|
page_layout: "center" | "left" | "right";
|
|
47458
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47421
47459
|
};
|
|
47422
47460
|
colors: {
|
|
47423
47461
|
error: string;
|
|
@@ -47440,6 +47478,13 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47440
47478
|
widget_background: string;
|
|
47441
47479
|
widget_border: string;
|
|
47442
47480
|
};
|
|
47481
|
+
widget: {
|
|
47482
|
+
logo_url: string;
|
|
47483
|
+
header_text_alignment: "center" | "left" | "right";
|
|
47484
|
+
logo_height: number;
|
|
47485
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
47486
|
+
social_buttons_layout: "bottom" | "top";
|
|
47487
|
+
};
|
|
47443
47488
|
borders: {
|
|
47444
47489
|
button_border_radius: number;
|
|
47445
47490
|
button_border_weight: number;
|
|
@@ -47481,18 +47526,12 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47481
47526
|
bold: boolean;
|
|
47482
47527
|
};
|
|
47483
47528
|
};
|
|
47484
|
-
widget: {
|
|
47485
|
-
logo_url: string;
|
|
47486
|
-
header_text_alignment: "center" | "left" | "right";
|
|
47487
|
-
logo_height: number;
|
|
47488
|
-
logo_position: "none" | "center" | "left" | "right";
|
|
47489
|
-
social_buttons_layout: "bottom" | "top";
|
|
47490
|
-
};
|
|
47491
47529
|
}, {
|
|
47492
47530
|
page_background: {
|
|
47493
47531
|
background_color: string;
|
|
47494
47532
|
background_image_url: string;
|
|
47495
47533
|
page_layout: "center" | "left" | "right";
|
|
47534
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47496
47535
|
};
|
|
47497
47536
|
colors: {
|
|
47498
47537
|
error: string;
|
|
@@ -47515,6 +47554,13 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47515
47554
|
widget_background: string;
|
|
47516
47555
|
widget_border: string;
|
|
47517
47556
|
};
|
|
47557
|
+
widget: {
|
|
47558
|
+
logo_url: string;
|
|
47559
|
+
header_text_alignment: "center" | "left" | "right";
|
|
47560
|
+
logo_height: number;
|
|
47561
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
47562
|
+
social_buttons_layout: "bottom" | "top";
|
|
47563
|
+
};
|
|
47518
47564
|
borders: {
|
|
47519
47565
|
button_border_radius: number;
|
|
47520
47566
|
button_border_weight: number;
|
|
@@ -47556,13 +47602,6 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47556
47602
|
bold: boolean;
|
|
47557
47603
|
};
|
|
47558
47604
|
};
|
|
47559
|
-
widget: {
|
|
47560
|
-
logo_url: string;
|
|
47561
|
-
header_text_alignment: "center" | "left" | "right";
|
|
47562
|
-
logo_height: number;
|
|
47563
|
-
logo_position: "none" | "center" | "left" | "right";
|
|
47564
|
-
social_buttons_layout: "bottom" | "top";
|
|
47565
|
-
};
|
|
47566
47605
|
}>;
|
|
47567
47606
|
export type ThemeInsert = z.input<typeof themeInsertSchema>;
|
|
47568
47607
|
export declare const themeSchema: z.ZodObject<{
|
|
@@ -47803,14 +47842,29 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47803
47842
|
"left",
|
|
47804
47843
|
"right"
|
|
47805
47844
|
]>;
|
|
47845
|
+
/**
|
|
47846
|
+
* Where the tenant logo renders on the page.
|
|
47847
|
+
* - "widget" (default): inside the widget card via the widget's own header.
|
|
47848
|
+
* - "chip": as a floating pill in the top-left page corner. The widget's
|
|
47849
|
+
* internal logo is suppressed when this is selected.
|
|
47850
|
+
* - "none": no logo on the page or in the widget.
|
|
47851
|
+
* Optional for backwards compatibility; absent values mean "widget".
|
|
47852
|
+
*/
|
|
47853
|
+
logo_placement: z.ZodOptional<z.ZodEnum<[
|
|
47854
|
+
"widget",
|
|
47855
|
+
"chip",
|
|
47856
|
+
"none"
|
|
47857
|
+
]>>;
|
|
47806
47858
|
}, "strip", z.ZodTypeAny, {
|
|
47807
47859
|
background_color: string;
|
|
47808
47860
|
background_image_url: string;
|
|
47809
47861
|
page_layout: "center" | "left" | "right";
|
|
47862
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47810
47863
|
}, {
|
|
47811
47864
|
background_color: string;
|
|
47812
47865
|
background_image_url: string;
|
|
47813
47866
|
page_layout: "center" | "left" | "right";
|
|
47867
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47814
47868
|
}>;
|
|
47815
47869
|
widget: z.ZodObject<{
|
|
47816
47870
|
header_text_alignment: z.ZodEnum<[
|
|
@@ -47850,6 +47904,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47850
47904
|
background_color: string;
|
|
47851
47905
|
background_image_url: string;
|
|
47852
47906
|
page_layout: "center" | "left" | "right";
|
|
47907
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47853
47908
|
};
|
|
47854
47909
|
colors: {
|
|
47855
47910
|
error: string;
|
|
@@ -47872,6 +47927,13 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47872
47927
|
widget_background: string;
|
|
47873
47928
|
widget_border: string;
|
|
47874
47929
|
};
|
|
47930
|
+
widget: {
|
|
47931
|
+
logo_url: string;
|
|
47932
|
+
header_text_alignment: "center" | "left" | "right";
|
|
47933
|
+
logo_height: number;
|
|
47934
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
47935
|
+
social_buttons_layout: "bottom" | "top";
|
|
47936
|
+
};
|
|
47875
47937
|
borders: {
|
|
47876
47938
|
button_border_radius: number;
|
|
47877
47939
|
button_border_weight: number;
|
|
@@ -47913,19 +47975,13 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47913
47975
|
bold: boolean;
|
|
47914
47976
|
};
|
|
47915
47977
|
};
|
|
47916
|
-
widget: {
|
|
47917
|
-
logo_url: string;
|
|
47918
|
-
header_text_alignment: "center" | "left" | "right";
|
|
47919
|
-
logo_height: number;
|
|
47920
|
-
logo_position: "none" | "center" | "left" | "right";
|
|
47921
|
-
social_buttons_layout: "bottom" | "top";
|
|
47922
|
-
};
|
|
47923
47978
|
themeId: string;
|
|
47924
47979
|
}, {
|
|
47925
47980
|
page_background: {
|
|
47926
47981
|
background_color: string;
|
|
47927
47982
|
background_image_url: string;
|
|
47928
47983
|
page_layout: "center" | "left" | "right";
|
|
47984
|
+
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
47929
47985
|
};
|
|
47930
47986
|
colors: {
|
|
47931
47987
|
error: string;
|
|
@@ -47948,6 +48004,13 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47948
48004
|
widget_background: string;
|
|
47949
48005
|
widget_border: string;
|
|
47950
48006
|
};
|
|
48007
|
+
widget: {
|
|
48008
|
+
logo_url: string;
|
|
48009
|
+
header_text_alignment: "center" | "left" | "right";
|
|
48010
|
+
logo_height: number;
|
|
48011
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
48012
|
+
social_buttons_layout: "bottom" | "top";
|
|
48013
|
+
};
|
|
47951
48014
|
borders: {
|
|
47952
48015
|
button_border_radius: number;
|
|
47953
48016
|
button_border_weight: number;
|
|
@@ -47989,13 +48052,6 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47989
48052
|
bold: boolean;
|
|
47990
48053
|
};
|
|
47991
48054
|
};
|
|
47992
|
-
widget: {
|
|
47993
|
-
logo_url: string;
|
|
47994
|
-
header_text_alignment: "center" | "left" | "right";
|
|
47995
|
-
logo_height: number;
|
|
47996
|
-
logo_position: "none" | "center" | "left" | "right";
|
|
47997
|
-
social_buttons_layout: "bottom" | "top";
|
|
47998
|
-
};
|
|
47999
48055
|
themeId: string;
|
|
48000
48056
|
}>;
|
|
48001
48057
|
export type Theme = z.infer<typeof themeSchema>;
|
|
@@ -50843,6 +50899,37 @@ export interface OutboxAdapter {
|
|
|
50843
50899
|
/** Delete processed events older than the given ISO date. Returns count deleted. */
|
|
50844
50900
|
cleanup(olderThan: string): Promise<number>;
|
|
50845
50901
|
}
|
|
50902
|
+
/**
|
|
50903
|
+
* Logical buckets that consumers can rate-limit against. Backends decide
|
|
50904
|
+
* how each scope is enforced (e.g. mapping to a separate Cloudflare Workers
|
|
50905
|
+
* Rate Limiter binding with its own deploy-time limit/period).
|
|
50906
|
+
*/
|
|
50907
|
+
export type RateLimitScope = "pre-login" | "pre-user-registration" | "brute-force";
|
|
50908
|
+
export interface RateLimitDecision {
|
|
50909
|
+
/** True if the request is allowed; false if the limit was exceeded. */
|
|
50910
|
+
allowed: boolean;
|
|
50911
|
+
/** Optional retry-after hint in seconds (omitted if the backend can't tell). */
|
|
50912
|
+
retryAfterSeconds?: number;
|
|
50913
|
+
}
|
|
50914
|
+
export interface RateLimitAdapter {
|
|
50915
|
+
/**
|
|
50916
|
+
* Consume one unit of quota for the given scope and key.
|
|
50917
|
+
*
|
|
50918
|
+
* The numeric threshold and window are backend-specific; the
|
|
50919
|
+
* Cloudflare Workers Rate Limiter binding bakes them in at deploy
|
|
50920
|
+
* time and cannot honor a per-tenant override. Callers that need
|
|
50921
|
+
* per-tenant `max_attempts` should layer their own counter on top.
|
|
50922
|
+
*
|
|
50923
|
+
* Returns `{ allowed: true }` if the scope is not configured, so
|
|
50924
|
+
* callers can opt in by configuring backends without changing call
|
|
50925
|
+
* sites.
|
|
50926
|
+
*/
|
|
50927
|
+
consume(scope: RateLimitScope, key: string): Promise<RateLimitDecision>;
|
|
50928
|
+
}
|
|
50929
|
+
export interface CodeExecutionLog {
|
|
50930
|
+
level: "log" | "info" | "warn" | "error" | "debug";
|
|
50931
|
+
message: string;
|
|
50932
|
+
}
|
|
50846
50933
|
export interface CodeExecutionResult {
|
|
50847
50934
|
success: boolean;
|
|
50848
50935
|
error?: string;
|
|
@@ -50851,6 +50938,12 @@ export interface CodeExecutionResult {
|
|
|
50851
50938
|
method: string;
|
|
50852
50939
|
args: unknown[];
|
|
50853
50940
|
}>;
|
|
50941
|
+
/**
|
|
50942
|
+
* Console output captured from the user code during execution. Populated by
|
|
50943
|
+
* executors that shadow `console.*` inside the sandbox; absent on executors
|
|
50944
|
+
* that don't support capture.
|
|
50945
|
+
*/
|
|
50946
|
+
logs?: CodeExecutionLog[];
|
|
50854
50947
|
}
|
|
50855
50948
|
export interface CodeExecutor {
|
|
50856
50949
|
execute(params: {
|
|
@@ -50934,6 +51027,13 @@ export interface DataAdapters {
|
|
|
50934
51027
|
smsService?: SmsServiceAdapter;
|
|
50935
51028
|
/** Optional outbox adapter for transactional audit event capture */
|
|
50936
51029
|
outbox?: OutboxAdapter;
|
|
51030
|
+
/**
|
|
51031
|
+
* Optional rate-limit adapter for short-window abuse protection
|
|
51032
|
+
* (e.g. backed by the Cloudflare Workers Rate Limiter binding).
|
|
51033
|
+
* Auth flows treat this as opt-in: when undefined, no extra
|
|
51034
|
+
* throttling is applied.
|
|
51035
|
+
*/
|
|
51036
|
+
rateLimit?: RateLimitAdapter;
|
|
50937
51037
|
/**
|
|
50938
51038
|
* Execute a callback within a database transaction.
|
|
50939
51039
|
* The callback receives a set of adapters scoped to the transaction.
|
|
@@ -10,7 +10,9 @@ const r = e.object({
|
|
|
10
10
|
version: e.string()
|
|
11
11
|
}), $ = e.object({
|
|
12
12
|
name: e.string(),
|
|
13
|
-
value
|
|
13
|
+
// Optional on writes so PATCH callers can omit the value to preserve the
|
|
14
|
+
// existing secret. The adapter merges by name when value is missing.
|
|
15
|
+
value: e.string().optional()
|
|
14
16
|
}), w = e.object({
|
|
15
17
|
name: e.string().max(255),
|
|
16
18
|
code: e.string().max(1e5),
|
|
@@ -1829,6 +1831,8 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1829
1831
|
SUCCESSFULLY_ACCEPTED_USER_INVITE: "si",
|
|
1830
1832
|
BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak",
|
|
1831
1833
|
SUCCESS_LOGOUT: "slo",
|
|
1834
|
+
SUCCESS_HOOK: "sh",
|
|
1835
|
+
// Custom AuthHero-specific
|
|
1832
1836
|
SUCCESS_REVOCATION: "srrt",
|
|
1833
1837
|
SUCCESS_SIGNUP: "ss",
|
|
1834
1838
|
FAILED_SS_SSO_OPERATION: "ss_sso_failure",
|
|
@@ -2036,6 +2040,11 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2036
2040
|
allowed_logout_urls: e.array(e.string()).optional(),
|
|
2037
2041
|
// Universal Login settings
|
|
2038
2042
|
default_redirection_uri: e.string().optional(),
|
|
2043
|
+
// Anchor client used for tenant-level flows that aren't tied to a specific
|
|
2044
|
+
// application (e.g. /connect/start DCR consent). When unset, /connect/start
|
|
2045
|
+
// falls back to the first available client. Roughly analogous to Auth0's
|
|
2046
|
+
// "Default App" / Global Client.
|
|
2047
|
+
default_client_id: e.string().optional(),
|
|
2039
2048
|
// Advanced settings
|
|
2040
2049
|
enabled_locales: e.array(e.string()).optional(),
|
|
2041
2050
|
default_directory: e.string().optional(),
|
|
@@ -2258,7 +2267,16 @@ const _o = e.object({
|
|
|
2258
2267
|
}), mo = e.object({
|
|
2259
2268
|
background_color: e.string(),
|
|
2260
2269
|
background_image_url: e.string(),
|
|
2261
|
-
page_layout: e.enum(["center", "left", "right"])
|
|
2270
|
+
page_layout: e.enum(["center", "left", "right"]),
|
|
2271
|
+
/**
|
|
2272
|
+
* Where the tenant logo renders on the page.
|
|
2273
|
+
* - "widget" (default): inside the widget card via the widget's own header.
|
|
2274
|
+
* - "chip": as a floating pill in the top-left page corner. The widget's
|
|
2275
|
+
* internal logo is suppressed when this is selected.
|
|
2276
|
+
* - "none": no logo on the page or in the widget.
|
|
2277
|
+
* Optional for backwards compatibility; absent values mean "widget".
|
|
2278
|
+
*/
|
|
2279
|
+
logo_placement: e.enum(["widget", "chip", "none"]).optional()
|
|
2262
2280
|
}), ho = e.object({
|
|
2263
2281
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
2264
2282
|
logo_height: e.number(),
|