@authhero/adapter-interfaces 0.75.0 → 0.76.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"),de=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),E=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()),S=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:E.optional()}),l=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),m=l.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),u=e.z.object({...m.shape,...s.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(S).optional()}),pe=u,ge=l.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),Ee="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Se=(t=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(t));for(;t--;)i+=Ee[a[t]&63];return i};const h=e.z.object({audience:e.z.string().optional(),recipient:e.z.string().optional(),createUpnClaim:e.z.boolean().optional(),mapUnknownClaimsAsIs:e.z.boolean().optional(),passthroughClaimsWithNoMapping:e.z.boolean().optional(),mapIdentities:e.z.boolean().optional(),signatureAlgorithm:e.z.string().optional(),digestAlgorithm:e.z.string().optional(),issuer:e.z.string().optional(),destination:e.z.string().optional(),lifetimeInSeconds:e.z.number().optional(),signResponse:e.z.boolean().optional(),nameIdentifierFormat:e.z.string().optional(),nameIdentifierProbes:e.z.array(e.z.string()).optional(),authnContextClassRef:e.z.string().optional(),mappings:e.z.record(e.z.string()).optional()}),A=e.z.object({id:e.z.string(),name:e.z.string(),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted 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. 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."}),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."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:e.z.object({samlp:h.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:e.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:e.z.string().default(()=>Se()).optional(),disable_sign_ups:e.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),C=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...A.shape}),o=e.z.object({x:e.z.number(),y:e.z.number()});var c=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(c||{}),z=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(z||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(z),type:e.z.nativeEnum(c)}),b=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),f=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),T=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([b,I,O,f,T]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),y=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:o}).passthrough(),U=e.z.union([L,D,y]),F=e.z.object({next_node:e.z.string(),coordinates:o}).passthrough(),j=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:o}).passthrough(),w=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(U),start:F,ending:j,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),me=w.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),p=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(p||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const k=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(p).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),ue=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),H=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),v=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(H.shape),M=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),G=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...M.shape,id:e.z.string()}),he=e.z.object({logoUrl:e.z.string(),loginBackgroundImage:e.z.string().nullish(),style:e.z.object({primaryColor:e.z.string(),buttonTextColor:e.z.string(),primaryHoverColor:e.z.string()}),country:e.z.string().optional(),supportEmail:e.z.string().nullable(),supportUrl:e.z.string().nullable(),name:e.z.string(),showGreyishBackground:e.z.boolean().optional(),termsAndConditionsUrl:e.z.string().nullable(),companyName:e.z.string().optional(),checkoutHideSocial:e.z.boolean().optional(),siteUrl:e.z.string().nullable(),manageSubscriptionsUrl:e.z.string().optional()});e.z.object({...C.shape,tenant:G,connections:e.z.array(v)});const x=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),K=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:x,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Ae=e.z.object({...K.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),W=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Ce=W.extend({tenant_id:e.z.string()}),be=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),V=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(V),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ie=e.z.object({...s.shape,...Y.shape,id:e.z.string()}),q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),_={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Oe=e.z.object({..._,trigger_id:q,url:e.z.string()}),fe=e.z.object({..._,trigger_id:Q,form_id:e.z.string()}),Te=e.z.union([Oe,fe]),Ne=e.z.object({..._,trigger_id:q,...s.shape,hook_id:e.z.string(),url:e.z.string()}),Re=e.z.object({..._,trigger_id:Q,...s.shape,hook_id:e.z.string(),form_id:e.z.string()}),Le=e.z.union([Ne,Re]),Z=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),De=e.z.object({keys:e.z.array(Z)}),ye=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),J=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:k,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ue=e.z.object({...J.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()}),$={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Fe=e.z.string().refine(t=>Object.values($).includes(t),{message:"Invalid log type"}),ee=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),je=e.z.object({type:Fe,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ee.optional()}),te=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),we=e.z.object({...te.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),oe=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ne.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),ke=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...oe.shape}),Pe=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"})});var ie=(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))(ie||{});const He=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 ae=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),se=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto"]),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()}),n=e.z.object({bold:e.z.boolean(),size:e.z.number()}),re=e.z.object({body_text:n,buttons_text:n,font_url:e.z.string(),input_labels:n,links:n,links_style:e.z.enum(["normal"]),reference_text_size:e.z.number(),subtitle:n,title:n}),_e=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center"])}),le=e.z.object({header_text_alignment:e.z.enum(["center"]),logo_height:e.z.number(),logo_position:e.z.enum(["center"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom"])}),ce=e.z.object({borders:ae,colors:se,displayName:e.z.string(),fonts:re,page_background:_e,widget:le}),ve=ce.extend({themeId:e.z.string()}),Me=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()}),Ge=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),ze=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),xe=e.z.object({created_at:e.z.string(),...ze.shape}),Ke=e.z.object({to:e.z.string(),message:e.z.string()}),Be=e.z.object({name:e.z.string(),options:e.z.object({})});function Xe(t){const[i,a]=t.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${t}`);return{connection:i,id:a}}exports.Auth0Client=ee;exports.AuthorizationResponseMode=p;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=ie;exports.LogTypes=$;exports.NodeType=R;exports.applicationInsertSchema=A;exports.applicationSchema=C;exports.auth0FlowInsertSchema=me;exports.auth0FlowSchema=w;exports.auth0UserResponseSchema=pe;exports.authParamsSchema=k;exports.baseUserSchema=l;exports.bordersSchema=ae;exports.brandingSchema=ue;exports.buttonComponentSchema=I;exports.codeInsertSchema=K;exports.codeSchema=Ae;exports.codeTypeSchema=x;exports.colorsSchema=se;exports.componentSchema=N;exports.connectionInsertSchema=H;exports.connectionOptionsSchema=P;exports.connectionSchema=v;exports.coordinatesSchema=o;exports.customDomainInsertSchema=B;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=Ce;exports.emailProviderSchema=Ge;exports.endingSchema=j;exports.fieldComponentSchema=f;exports.flowNodeSchema=D;exports.fontDetailsSchema=n;exports.fontsSchema=re;exports.formControlSchema=be;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=V;exports.formSchema=Ie;exports.genericComponentSchema=T;exports.genericNodeSchema=y;exports.hookInsertSchema=Te;exports.hookSchema=Le;exports.identitySchema=S;exports.jwksKeySchema=De;exports.jwksSchema=Z;exports.legalComponentSchema=O;exports.logSchema=je;exports.loginSessionInsertSchema=J;exports.loginSessionSchema=Ue;exports.nodeSchema=U;exports.openIDConfigurationSchema=ye;exports.pageBackgroundSchema=_e;exports.parseUserId=Xe;exports.passwordInsertSchema=te;exports.passwordSchema=we;exports.profileDataSchema=E;exports.promptSettingSchema=Me;exports.refreshTokenInsertSchema=ze;exports.refreshTokenSchema=xe;exports.richTextComponentSchema=b;exports.samlpAddon=h;exports.sessionInsertSchema=oe;exports.sessionSchema=ke;exports.signingKeySchema=Pe;exports.smsProviderSchema=Be;exports.smsSendParamsSchema=Ke;exports.startSchema=F;exports.stepNodeSchema=L;exports.tenantInsertSchema=M;exports.tenantSchema=G;exports.themeInsertSchema=ce;exports.themeSchema=ve;exports.tokenResponseSchema=He;exports.totalsSchema=de;exports.userInsertSchema=m;exports.userResponseSchema=ge;exports.userSchema=u;exports.vendorSettingsSchema=he;exports.verificationMethodsSchema=X;exports.widgetSchema=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),de=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),E=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()),S=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:E.optional()}),l=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),m=l.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),u=e.z.object({...m.shape,...s.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(S).optional()}),pe=u,ge=l.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),Ee="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Se=(t=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(t));for(;t--;)i+=Ee[a[t]&63];return i};const h=e.z.object({audience:e.z.string().optional(),recipient:e.z.string().optional(),createUpnClaim:e.z.boolean().optional(),mapUnknownClaimsAsIs:e.z.boolean().optional(),passthroughClaimsWithNoMapping:e.z.boolean().optional(),mapIdentities:e.z.boolean().optional(),signatureAlgorithm:e.z.string().optional(),digestAlgorithm:e.z.string().optional(),issuer:e.z.string().optional(),destination:e.z.string().optional(),lifetimeInSeconds:e.z.number().optional(),signResponse:e.z.boolean().optional(),nameIdentifierFormat:e.z.string().optional(),nameIdentifierProbes:e.z.array(e.z.string()).optional(),authnContextClassRef:e.z.string().optional(),mappings:e.z.record(e.z.string()).optional()}),A=e.z.object({id:e.z.string(),name:e.z.string(),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted 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. 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."}),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."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:e.z.object({samlp:h.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:e.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:e.z.string().default(()=>Se()).optional(),disable_sign_ups:e.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),C=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...A.shape}),o=e.z.object({x:e.z.number(),y:e.z.number()});var c=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(c||{}),z=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(z||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(z),type:e.z.nativeEnum(c)}),b=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),f=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),T=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([b,I,f,O,T]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),y=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:o}).passthrough(),U=e.z.union([L,D,y]),F=e.z.object({next_node:e.z.string(),coordinates:o}).passthrough(),j=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:o}).passthrough(),w=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(U),start:F,ending:j,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),me=w.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),p=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(p||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const k=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(p).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),ue=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),H=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),v=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(H.shape),M=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),G=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...M.shape,id:e.z.string()}),he=e.z.object({logoUrl:e.z.string(),loginBackgroundImage:e.z.string().nullish(),style:e.z.object({primaryColor:e.z.string(),buttonTextColor:e.z.string(),primaryHoverColor:e.z.string()}),country:e.z.string().optional(),supportEmail:e.z.string().nullable(),supportUrl:e.z.string().nullable(),name:e.z.string(),showGreyishBackground:e.z.boolean().optional(),termsAndConditionsUrl:e.z.string().nullable(),companyName:e.z.string().optional(),checkoutHideSocial:e.z.boolean().optional(),siteUrl:e.z.string().nullable(),manageSubscriptionsUrl:e.z.string().optional()});e.z.object({...C.shape,tenant:G,connections:e.z.array(v)});const x=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),K=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:x,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Ae=e.z.object({...K.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),W=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Ce=W.extend({tenant_id:e.z.string()}),be=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),V=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(V),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ie=e.z.object({...s.shape,...Y.shape,id:e.z.string()}),q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),_={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},fe=e.z.object({..._,trigger_id:q,url:e.z.string()}),Oe=e.z.object({..._,trigger_id:Q,form_id:e.z.string()}),Te=e.z.union([fe,Oe]),Ne=e.z.object({..._,trigger_id:q,...s.shape,hook_id:e.z.string(),url:e.z.string()}),Re=e.z.object({..._,trigger_id:Q,...s.shape,hook_id:e.z.string(),form_id:e.z.string()}),Le=e.z.union([Ne,Re]),Z=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),De=e.z.object({keys:e.z.array(Z)}),ye=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),J=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:k,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ue=e.z.object({...J.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()}),$={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Fe=e.z.string().refine(t=>Object.values($).includes(t),{message:"Invalid log type"}),ee=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),je=e.z.object({type:Fe,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ee.optional()}),te=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),we=e.z.object({...te.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),oe=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ne.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),ke=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...oe.shape}),Pe=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"})});var ie=(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))(ie||{});const He=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 ae=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),se=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),n=e.z.object({bold:e.z.boolean(),size:e.z.number()}),re=e.z.object({body_text:n,buttons_text:n,font_url:e.z.string(),input_labels:n,links:n,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:n,title:n}),_e=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),le=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"])}),ce=e.z.object({borders:ae,colors:se,displayName:e.z.string(),fonts:re,page_background:_e,widget:le}),ve=ce.extend({themeId:e.z.string()}),Me=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()}),Ge=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),ze=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),xe=e.z.object({created_at:e.z.string(),...ze.shape}),Ke=e.z.object({to:e.z.string(),message:e.z.string()}),Be=e.z.object({name:e.z.string(),options:e.z.object({})});function Xe(t){const[i,a]=t.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${t}`);return{connection:i,id:a}}exports.Auth0Client=ee;exports.AuthorizationResponseMode=p;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=ie;exports.LogTypes=$;exports.NodeType=R;exports.applicationInsertSchema=A;exports.applicationSchema=C;exports.auth0FlowInsertSchema=me;exports.auth0FlowSchema=w;exports.auth0UserResponseSchema=pe;exports.authParamsSchema=k;exports.baseUserSchema=l;exports.bordersSchema=ae;exports.brandingSchema=ue;exports.buttonComponentSchema=I;exports.codeInsertSchema=K;exports.codeSchema=Ae;exports.codeTypeSchema=x;exports.colorsSchema=se;exports.componentSchema=N;exports.connectionInsertSchema=H;exports.connectionOptionsSchema=P;exports.connectionSchema=v;exports.coordinatesSchema=o;exports.customDomainInsertSchema=B;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=Ce;exports.emailProviderSchema=Ge;exports.endingSchema=j;exports.fieldComponentSchema=O;exports.flowNodeSchema=D;exports.fontDetailsSchema=n;exports.fontsSchema=re;exports.formControlSchema=be;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=V;exports.formSchema=Ie;exports.genericComponentSchema=T;exports.genericNodeSchema=y;exports.hookInsertSchema=Te;exports.hookSchema=Le;exports.identitySchema=S;exports.jwksKeySchema=De;exports.jwksSchema=Z;exports.legalComponentSchema=f;exports.logSchema=je;exports.loginSessionInsertSchema=J;exports.loginSessionSchema=Ue;exports.nodeSchema=U;exports.openIDConfigurationSchema=ye;exports.pageBackgroundSchema=_e;exports.parseUserId=Xe;exports.passwordInsertSchema=te;exports.passwordSchema=we;exports.profileDataSchema=E;exports.promptSettingSchema=Me;exports.refreshTokenInsertSchema=ze;exports.refreshTokenSchema=xe;exports.richTextComponentSchema=b;exports.samlpAddon=h;exports.sessionInsertSchema=oe;exports.sessionSchema=ke;exports.signingKeySchema=Pe;exports.smsProviderSchema=Be;exports.smsSendParamsSchema=Ke;exports.startSchema=F;exports.stepNodeSchema=L;exports.tenantInsertSchema=M;exports.tenantSchema=G;exports.themeInsertSchema=ce;exports.themeSchema=ve;exports.tokenResponseSchema=He;exports.totalsSchema=de;exports.userInsertSchema=m;exports.userResponseSchema=ge;exports.userSchema=u;exports.vendorSettingsSchema=he;exports.verificationMethodsSchema=X;exports.widgetSchema=le;
@@ -12456,12 +12456,16 @@ export declare const bordersSchema: z.ZodObject<{
12456
12456
  button_border_radius: z.ZodNumber;
12457
12457
  button_border_weight: z.ZodNumber;
12458
12458
  buttons_style: z.ZodEnum<[
12459
- "pill"
12459
+ "pill",
12460
+ "rounded",
12461
+ "sharp"
12460
12462
  ]>;
12461
12463
  input_border_radius: z.ZodNumber;
12462
12464
  input_border_weight: z.ZodNumber;
12463
12465
  inputs_style: z.ZodEnum<[
12464
- "pill"
12466
+ "pill",
12467
+ "rounded",
12468
+ "sharp"
12465
12469
  ]>;
12466
12470
  show_widget_shadow: z.ZodBoolean;
12467
12471
  widget_border_weight: z.ZodNumber;
@@ -12469,20 +12473,20 @@ export declare const bordersSchema: z.ZodObject<{
12469
12473
  }, "strip", z.ZodTypeAny, {
12470
12474
  button_border_radius: number;
12471
12475
  button_border_weight: number;
12472
- buttons_style: "pill";
12476
+ buttons_style: "pill" | "rounded" | "sharp";
12473
12477
  input_border_radius: number;
12474
12478
  input_border_weight: number;
12475
- inputs_style: "pill";
12479
+ inputs_style: "pill" | "rounded" | "sharp";
12476
12480
  show_widget_shadow: boolean;
12477
12481
  widget_border_weight: number;
12478
12482
  widget_corner_radius: number;
12479
12483
  }, {
12480
12484
  button_border_radius: number;
12481
12485
  button_border_weight: number;
12482
- buttons_style: "pill";
12486
+ buttons_style: "pill" | "rounded" | "sharp";
12483
12487
  input_border_radius: number;
12484
12488
  input_border_weight: number;
12485
- inputs_style: "pill";
12489
+ inputs_style: "pill" | "rounded" | "sharp";
12486
12490
  show_widget_shadow: boolean;
12487
12491
  widget_border_weight: number;
12488
12492
  widget_corner_radius: number;
@@ -12492,7 +12496,9 @@ export declare const colorsSchema: z.ZodObject<{
12492
12496
  base_hover_color: z.ZodString;
12493
12497
  body_text: z.ZodString;
12494
12498
  captcha_widget_theme: z.ZodEnum<[
12495
- "auto"
12499
+ "auto",
12500
+ "dark",
12501
+ "light"
12496
12502
  ]>;
12497
12503
  error: z.ZodString;
12498
12504
  header: z.ZodString;
@@ -12513,7 +12519,7 @@ export declare const colorsSchema: z.ZodObject<{
12513
12519
  base_focus_color: string;
12514
12520
  base_hover_color: string;
12515
12521
  body_text: string;
12516
- captcha_widget_theme: "auto";
12522
+ captcha_widget_theme: "auto" | "dark" | "light";
12517
12523
  error: string;
12518
12524
  header: string;
12519
12525
  icons: string;
@@ -12533,7 +12539,7 @@ export declare const colorsSchema: z.ZodObject<{
12533
12539
  base_focus_color: string;
12534
12540
  base_hover_color: string;
12535
12541
  body_text: string;
12536
- captcha_widget_theme: "auto";
12542
+ captcha_widget_theme: "auto" | "dark" | "light";
12537
12543
  error: string;
12538
12544
  header: string;
12539
12545
  icons: string;
@@ -12603,7 +12609,8 @@ export declare const fontsSchema: z.ZodObject<{
12603
12609
  size: number;
12604
12610
  }>;
12605
12611
  links_style: z.ZodEnum<[
12606
- "normal"
12612
+ "normal",
12613
+ "underlined"
12607
12614
  ]>;
12608
12615
  reference_text_size: z.ZodNumber;
12609
12616
  subtitle: z.ZodObject<{
@@ -12648,7 +12655,7 @@ export declare const fontsSchema: z.ZodObject<{
12648
12655
  bold: boolean;
12649
12656
  size: number;
12650
12657
  };
12651
- links_style: "normal";
12658
+ links_style: "normal" | "underlined";
12652
12659
  reference_text_size: number;
12653
12660
  subtitle: {
12654
12661
  bold: boolean;
@@ -12676,7 +12683,7 @@ export declare const fontsSchema: z.ZodObject<{
12676
12683
  bold: boolean;
12677
12684
  size: number;
12678
12685
  };
12679
- links_style: "normal";
12686
+ links_style: "normal" | "underlined";
12680
12687
  reference_text_size: number;
12681
12688
  subtitle: {
12682
12689
  bold: boolean;
@@ -12687,53 +12694,65 @@ export declare const pageBackgroundSchema: z.ZodObject<{
12687
12694
  background_color: z.ZodString;
12688
12695
  background_image_url: z.ZodString;
12689
12696
  page_layout: z.ZodEnum<[
12690
- "center"
12697
+ "center",
12698
+ "left",
12699
+ "right"
12691
12700
  ]>;
12692
12701
  }, "strip", z.ZodTypeAny, {
12693
12702
  background_color: string;
12694
12703
  background_image_url: string;
12695
- page_layout: "center";
12704
+ page_layout: "center" | "left" | "right";
12696
12705
  }, {
12697
12706
  background_color: string;
12698
12707
  background_image_url: string;
12699
- page_layout: "center";
12708
+ page_layout: "center" | "left" | "right";
12700
12709
  }>;
12701
12710
  export declare const widgetSchema: z.ZodObject<{
12702
12711
  header_text_alignment: z.ZodEnum<[
12703
- "center"
12712
+ "center",
12713
+ "left",
12714
+ "right"
12704
12715
  ]>;
12705
12716
  logo_height: z.ZodNumber;
12706
12717
  logo_position: z.ZodEnum<[
12707
- "center"
12718
+ "center",
12719
+ "left",
12720
+ "none",
12721
+ "right"
12708
12722
  ]>;
12709
12723
  logo_url: z.ZodString;
12710
12724
  social_buttons_layout: z.ZodEnum<[
12711
- "bottom"
12725
+ "bottom",
12726
+ "top"
12712
12727
  ]>;
12713
12728
  }, "strip", z.ZodTypeAny, {
12714
12729
  logo_url: string;
12715
- header_text_alignment: "center";
12730
+ header_text_alignment: "center" | "left" | "right";
12716
12731
  logo_height: number;
12717
- logo_position: "center";
12718
- social_buttons_layout: "bottom";
12732
+ logo_position: "center" | "left" | "right" | "none";
12733
+ social_buttons_layout: "bottom" | "top";
12719
12734
  }, {
12720
12735
  logo_url: string;
12721
- header_text_alignment: "center";
12736
+ header_text_alignment: "center" | "left" | "right";
12722
12737
  logo_height: number;
12723
- logo_position: "center";
12724
- social_buttons_layout: "bottom";
12738
+ logo_position: "center" | "left" | "right" | "none";
12739
+ social_buttons_layout: "bottom" | "top";
12725
12740
  }>;
12726
12741
  export declare const themeInsertSchema: z.ZodObject<{
12727
12742
  borders: z.ZodObject<{
12728
12743
  button_border_radius: z.ZodNumber;
12729
12744
  button_border_weight: z.ZodNumber;
12730
12745
  buttons_style: z.ZodEnum<[
12731
- "pill"
12746
+ "pill",
12747
+ "rounded",
12748
+ "sharp"
12732
12749
  ]>;
12733
12750
  input_border_radius: z.ZodNumber;
12734
12751
  input_border_weight: z.ZodNumber;
12735
12752
  inputs_style: z.ZodEnum<[
12736
- "pill"
12753
+ "pill",
12754
+ "rounded",
12755
+ "sharp"
12737
12756
  ]>;
12738
12757
  show_widget_shadow: z.ZodBoolean;
12739
12758
  widget_border_weight: z.ZodNumber;
@@ -12741,20 +12760,20 @@ export declare const themeInsertSchema: z.ZodObject<{
12741
12760
  }, "strip", z.ZodTypeAny, {
12742
12761
  button_border_radius: number;
12743
12762
  button_border_weight: number;
12744
- buttons_style: "pill";
12763
+ buttons_style: "pill" | "rounded" | "sharp";
12745
12764
  input_border_radius: number;
12746
12765
  input_border_weight: number;
12747
- inputs_style: "pill";
12766
+ inputs_style: "pill" | "rounded" | "sharp";
12748
12767
  show_widget_shadow: boolean;
12749
12768
  widget_border_weight: number;
12750
12769
  widget_corner_radius: number;
12751
12770
  }, {
12752
12771
  button_border_radius: number;
12753
12772
  button_border_weight: number;
12754
- buttons_style: "pill";
12773
+ buttons_style: "pill" | "rounded" | "sharp";
12755
12774
  input_border_radius: number;
12756
12775
  input_border_weight: number;
12757
- inputs_style: "pill";
12776
+ inputs_style: "pill" | "rounded" | "sharp";
12758
12777
  show_widget_shadow: boolean;
12759
12778
  widget_border_weight: number;
12760
12779
  widget_corner_radius: number;
@@ -12764,7 +12783,9 @@ export declare const themeInsertSchema: z.ZodObject<{
12764
12783
  base_hover_color: z.ZodString;
12765
12784
  body_text: z.ZodString;
12766
12785
  captcha_widget_theme: z.ZodEnum<[
12767
- "auto"
12786
+ "auto",
12787
+ "dark",
12788
+ "light"
12768
12789
  ]>;
12769
12790
  error: z.ZodString;
12770
12791
  header: z.ZodString;
@@ -12785,7 +12806,7 @@ export declare const themeInsertSchema: z.ZodObject<{
12785
12806
  base_focus_color: string;
12786
12807
  base_hover_color: string;
12787
12808
  body_text: string;
12788
- captcha_widget_theme: "auto";
12809
+ captcha_widget_theme: "auto" | "dark" | "light";
12789
12810
  error: string;
12790
12811
  header: string;
12791
12812
  icons: string;
@@ -12805,7 +12826,7 @@ export declare const themeInsertSchema: z.ZodObject<{
12805
12826
  base_focus_color: string;
12806
12827
  base_hover_color: string;
12807
12828
  body_text: string;
12808
- captcha_widget_theme: "auto";
12829
+ captcha_widget_theme: "auto" | "dark" | "light";
12809
12830
  error: string;
12810
12831
  header: string;
12811
12832
  icons: string;
@@ -12866,7 +12887,8 @@ export declare const themeInsertSchema: z.ZodObject<{
12866
12887
  size: number;
12867
12888
  }>;
12868
12889
  links_style: z.ZodEnum<[
12869
- "normal"
12890
+ "normal",
12891
+ "underlined"
12870
12892
  ]>;
12871
12893
  reference_text_size: z.ZodNumber;
12872
12894
  subtitle: z.ZodObject<{
@@ -12911,7 +12933,7 @@ export declare const themeInsertSchema: z.ZodObject<{
12911
12933
  bold: boolean;
12912
12934
  size: number;
12913
12935
  };
12914
- links_style: "normal";
12936
+ links_style: "normal" | "underlined";
12915
12937
  reference_text_size: number;
12916
12938
  subtitle: {
12917
12939
  bold: boolean;
@@ -12939,7 +12961,7 @@ export declare const themeInsertSchema: z.ZodObject<{
12939
12961
  bold: boolean;
12940
12962
  size: number;
12941
12963
  };
12942
- links_style: "normal";
12964
+ links_style: "normal" | "underlined";
12943
12965
  reference_text_size: number;
12944
12966
  subtitle: {
12945
12967
  bold: boolean;
@@ -12950,53 +12972,61 @@ export declare const themeInsertSchema: z.ZodObject<{
12950
12972
  background_color: z.ZodString;
12951
12973
  background_image_url: z.ZodString;
12952
12974
  page_layout: z.ZodEnum<[
12953
- "center"
12975
+ "center",
12976
+ "left",
12977
+ "right"
12954
12978
  ]>;
12955
12979
  }, "strip", z.ZodTypeAny, {
12956
12980
  background_color: string;
12957
12981
  background_image_url: string;
12958
- page_layout: "center";
12982
+ page_layout: "center" | "left" | "right";
12959
12983
  }, {
12960
12984
  background_color: string;
12961
12985
  background_image_url: string;
12962
- page_layout: "center";
12986
+ page_layout: "center" | "left" | "right";
12963
12987
  }>;
12964
12988
  widget: z.ZodObject<{
12965
12989
  header_text_alignment: z.ZodEnum<[
12966
- "center"
12990
+ "center",
12991
+ "left",
12992
+ "right"
12967
12993
  ]>;
12968
12994
  logo_height: z.ZodNumber;
12969
12995
  logo_position: z.ZodEnum<[
12970
- "center"
12996
+ "center",
12997
+ "left",
12998
+ "none",
12999
+ "right"
12971
13000
  ]>;
12972
13001
  logo_url: z.ZodString;
12973
13002
  social_buttons_layout: z.ZodEnum<[
12974
- "bottom"
13003
+ "bottom",
13004
+ "top"
12975
13005
  ]>;
12976
13006
  }, "strip", z.ZodTypeAny, {
12977
13007
  logo_url: string;
12978
- header_text_alignment: "center";
13008
+ header_text_alignment: "center" | "left" | "right";
12979
13009
  logo_height: number;
12980
- logo_position: "center";
12981
- social_buttons_layout: "bottom";
13010
+ logo_position: "center" | "left" | "right" | "none";
13011
+ social_buttons_layout: "bottom" | "top";
12982
13012
  }, {
12983
13013
  logo_url: string;
12984
- header_text_alignment: "center";
13014
+ header_text_alignment: "center" | "left" | "right";
12985
13015
  logo_height: number;
12986
- logo_position: "center";
12987
- social_buttons_layout: "bottom";
13016
+ logo_position: "center" | "left" | "right" | "none";
13017
+ social_buttons_layout: "bottom" | "top";
12988
13018
  }>;
12989
13019
  }, "strip", z.ZodTypeAny, {
12990
13020
  page_background: {
12991
13021
  background_color: string;
12992
13022
  background_image_url: string;
12993
- page_layout: "center";
13023
+ page_layout: "center" | "left" | "right";
12994
13024
  };
12995
13025
  colors: {
12996
13026
  base_focus_color: string;
12997
13027
  base_hover_color: string;
12998
13028
  body_text: string;
12999
- captcha_widget_theme: "auto";
13029
+ captcha_widget_theme: "auto" | "dark" | "light";
13000
13030
  error: string;
13001
13031
  header: string;
13002
13032
  icons: string;
@@ -13016,10 +13046,10 @@ export declare const themeInsertSchema: z.ZodObject<{
13016
13046
  borders: {
13017
13047
  button_border_radius: number;
13018
13048
  button_border_weight: number;
13019
- buttons_style: "pill";
13049
+ buttons_style: "pill" | "rounded" | "sharp";
13020
13050
  input_border_radius: number;
13021
13051
  input_border_weight: number;
13022
- inputs_style: "pill";
13052
+ inputs_style: "pill" | "rounded" | "sharp";
13023
13053
  show_widget_shadow: boolean;
13024
13054
  widget_border_weight: number;
13025
13055
  widget_corner_radius: number;
@@ -13047,7 +13077,7 @@ export declare const themeInsertSchema: z.ZodObject<{
13047
13077
  bold: boolean;
13048
13078
  size: number;
13049
13079
  };
13050
- links_style: "normal";
13080
+ links_style: "normal" | "underlined";
13051
13081
  reference_text_size: number;
13052
13082
  subtitle: {
13053
13083
  bold: boolean;
@@ -13056,22 +13086,22 @@ export declare const themeInsertSchema: z.ZodObject<{
13056
13086
  };
13057
13087
  widget: {
13058
13088
  logo_url: string;
13059
- header_text_alignment: "center";
13089
+ header_text_alignment: "center" | "left" | "right";
13060
13090
  logo_height: number;
13061
- logo_position: "center";
13062
- social_buttons_layout: "bottom";
13091
+ logo_position: "center" | "left" | "right" | "none";
13092
+ social_buttons_layout: "bottom" | "top";
13063
13093
  };
13064
13094
  }, {
13065
13095
  page_background: {
13066
13096
  background_color: string;
13067
13097
  background_image_url: string;
13068
- page_layout: "center";
13098
+ page_layout: "center" | "left" | "right";
13069
13099
  };
13070
13100
  colors: {
13071
13101
  base_focus_color: string;
13072
13102
  base_hover_color: string;
13073
13103
  body_text: string;
13074
- captcha_widget_theme: "auto";
13104
+ captcha_widget_theme: "auto" | "dark" | "light";
13075
13105
  error: string;
13076
13106
  header: string;
13077
13107
  icons: string;
@@ -13091,10 +13121,10 @@ export declare const themeInsertSchema: z.ZodObject<{
13091
13121
  borders: {
13092
13122
  button_border_radius: number;
13093
13123
  button_border_weight: number;
13094
- buttons_style: "pill";
13124
+ buttons_style: "pill" | "rounded" | "sharp";
13095
13125
  input_border_radius: number;
13096
13126
  input_border_weight: number;
13097
- inputs_style: "pill";
13127
+ inputs_style: "pill" | "rounded" | "sharp";
13098
13128
  show_widget_shadow: boolean;
13099
13129
  widget_border_weight: number;
13100
13130
  widget_corner_radius: number;
@@ -13122,7 +13152,7 @@ export declare const themeInsertSchema: z.ZodObject<{
13122
13152
  bold: boolean;
13123
13153
  size: number;
13124
13154
  };
13125
- links_style: "normal";
13155
+ links_style: "normal" | "underlined";
13126
13156
  reference_text_size: number;
13127
13157
  subtitle: {
13128
13158
  bold: boolean;
@@ -13131,10 +13161,10 @@ export declare const themeInsertSchema: z.ZodObject<{
13131
13161
  };
13132
13162
  widget: {
13133
13163
  logo_url: string;
13134
- header_text_alignment: "center";
13164
+ header_text_alignment: "center" | "left" | "right";
13135
13165
  logo_height: number;
13136
- logo_position: "center";
13137
- social_buttons_layout: "bottom";
13166
+ logo_position: "center" | "left" | "right" | "none";
13167
+ social_buttons_layout: "bottom" | "top";
13138
13168
  };
13139
13169
  }>;
13140
13170
  export type ThemeInsert = z.input<typeof themeInsertSchema>;
@@ -13143,12 +13173,16 @@ export declare const themeSchema: z.ZodObject<{
13143
13173
  button_border_radius: z.ZodNumber;
13144
13174
  button_border_weight: z.ZodNumber;
13145
13175
  buttons_style: z.ZodEnum<[
13146
- "pill"
13176
+ "pill",
13177
+ "rounded",
13178
+ "sharp"
13147
13179
  ]>;
13148
13180
  input_border_radius: z.ZodNumber;
13149
13181
  input_border_weight: z.ZodNumber;
13150
13182
  inputs_style: z.ZodEnum<[
13151
- "pill"
13183
+ "pill",
13184
+ "rounded",
13185
+ "sharp"
13152
13186
  ]>;
13153
13187
  show_widget_shadow: z.ZodBoolean;
13154
13188
  widget_border_weight: z.ZodNumber;
@@ -13156,20 +13190,20 @@ export declare const themeSchema: z.ZodObject<{
13156
13190
  }, "strip", z.ZodTypeAny, {
13157
13191
  button_border_radius: number;
13158
13192
  button_border_weight: number;
13159
- buttons_style: "pill";
13193
+ buttons_style: "pill" | "rounded" | "sharp";
13160
13194
  input_border_radius: number;
13161
13195
  input_border_weight: number;
13162
- inputs_style: "pill";
13196
+ inputs_style: "pill" | "rounded" | "sharp";
13163
13197
  show_widget_shadow: boolean;
13164
13198
  widget_border_weight: number;
13165
13199
  widget_corner_radius: number;
13166
13200
  }, {
13167
13201
  button_border_radius: number;
13168
13202
  button_border_weight: number;
13169
- buttons_style: "pill";
13203
+ buttons_style: "pill" | "rounded" | "sharp";
13170
13204
  input_border_radius: number;
13171
13205
  input_border_weight: number;
13172
- inputs_style: "pill";
13206
+ inputs_style: "pill" | "rounded" | "sharp";
13173
13207
  show_widget_shadow: boolean;
13174
13208
  widget_border_weight: number;
13175
13209
  widget_corner_radius: number;
@@ -13179,7 +13213,9 @@ export declare const themeSchema: z.ZodObject<{
13179
13213
  base_hover_color: z.ZodString;
13180
13214
  body_text: z.ZodString;
13181
13215
  captcha_widget_theme: z.ZodEnum<[
13182
- "auto"
13216
+ "auto",
13217
+ "dark",
13218
+ "light"
13183
13219
  ]>;
13184
13220
  error: z.ZodString;
13185
13221
  header: z.ZodString;
@@ -13200,7 +13236,7 @@ export declare const themeSchema: z.ZodObject<{
13200
13236
  base_focus_color: string;
13201
13237
  base_hover_color: string;
13202
13238
  body_text: string;
13203
- captcha_widget_theme: "auto";
13239
+ captcha_widget_theme: "auto" | "dark" | "light";
13204
13240
  error: string;
13205
13241
  header: string;
13206
13242
  icons: string;
@@ -13220,7 +13256,7 @@ export declare const themeSchema: z.ZodObject<{
13220
13256
  base_focus_color: string;
13221
13257
  base_hover_color: string;
13222
13258
  body_text: string;
13223
- captcha_widget_theme: "auto";
13259
+ captcha_widget_theme: "auto" | "dark" | "light";
13224
13260
  error: string;
13225
13261
  header: string;
13226
13262
  icons: string;
@@ -13281,7 +13317,8 @@ export declare const themeSchema: z.ZodObject<{
13281
13317
  size: number;
13282
13318
  }>;
13283
13319
  links_style: z.ZodEnum<[
13284
- "normal"
13320
+ "normal",
13321
+ "underlined"
13285
13322
  ]>;
13286
13323
  reference_text_size: z.ZodNumber;
13287
13324
  subtitle: z.ZodObject<{
@@ -13326,7 +13363,7 @@ export declare const themeSchema: z.ZodObject<{
13326
13363
  bold: boolean;
13327
13364
  size: number;
13328
13365
  };
13329
- links_style: "normal";
13366
+ links_style: "normal" | "underlined";
13330
13367
  reference_text_size: number;
13331
13368
  subtitle: {
13332
13369
  bold: boolean;
@@ -13354,7 +13391,7 @@ export declare const themeSchema: z.ZodObject<{
13354
13391
  bold: boolean;
13355
13392
  size: number;
13356
13393
  };
13357
- links_style: "normal";
13394
+ links_style: "normal" | "underlined";
13358
13395
  reference_text_size: number;
13359
13396
  subtitle: {
13360
13397
  bold: boolean;
@@ -13365,41 +13402,49 @@ export declare const themeSchema: z.ZodObject<{
13365
13402
  background_color: z.ZodString;
13366
13403
  background_image_url: z.ZodString;
13367
13404
  page_layout: z.ZodEnum<[
13368
- "center"
13405
+ "center",
13406
+ "left",
13407
+ "right"
13369
13408
  ]>;
13370
13409
  }, "strip", z.ZodTypeAny, {
13371
13410
  background_color: string;
13372
13411
  background_image_url: string;
13373
- page_layout: "center";
13412
+ page_layout: "center" | "left" | "right";
13374
13413
  }, {
13375
13414
  background_color: string;
13376
13415
  background_image_url: string;
13377
- page_layout: "center";
13416
+ page_layout: "center" | "left" | "right";
13378
13417
  }>;
13379
13418
  widget: z.ZodObject<{
13380
13419
  header_text_alignment: z.ZodEnum<[
13381
- "center"
13420
+ "center",
13421
+ "left",
13422
+ "right"
13382
13423
  ]>;
13383
13424
  logo_height: z.ZodNumber;
13384
13425
  logo_position: z.ZodEnum<[
13385
- "center"
13426
+ "center",
13427
+ "left",
13428
+ "none",
13429
+ "right"
13386
13430
  ]>;
13387
13431
  logo_url: z.ZodString;
13388
13432
  social_buttons_layout: z.ZodEnum<[
13389
- "bottom"
13433
+ "bottom",
13434
+ "top"
13390
13435
  ]>;
13391
13436
  }, "strip", z.ZodTypeAny, {
13392
13437
  logo_url: string;
13393
- header_text_alignment: "center";
13438
+ header_text_alignment: "center" | "left" | "right";
13394
13439
  logo_height: number;
13395
- logo_position: "center";
13396
- social_buttons_layout: "bottom";
13440
+ logo_position: "center" | "left" | "right" | "none";
13441
+ social_buttons_layout: "bottom" | "top";
13397
13442
  }, {
13398
13443
  logo_url: string;
13399
- header_text_alignment: "center";
13444
+ header_text_alignment: "center" | "left" | "right";
13400
13445
  logo_height: number;
13401
- logo_position: "center";
13402
- social_buttons_layout: "bottom";
13446
+ logo_position: "center" | "left" | "right" | "none";
13447
+ social_buttons_layout: "bottom" | "top";
13403
13448
  }>;
13404
13449
  } & {
13405
13450
  themeId: z.ZodString;
@@ -13407,13 +13452,13 @@ export declare const themeSchema: z.ZodObject<{
13407
13452
  page_background: {
13408
13453
  background_color: string;
13409
13454
  background_image_url: string;
13410
- page_layout: "center";
13455
+ page_layout: "center" | "left" | "right";
13411
13456
  };
13412
13457
  colors: {
13413
13458
  base_focus_color: string;
13414
13459
  base_hover_color: string;
13415
13460
  body_text: string;
13416
- captcha_widget_theme: "auto";
13461
+ captcha_widget_theme: "auto" | "dark" | "light";
13417
13462
  error: string;
13418
13463
  header: string;
13419
13464
  icons: string;
@@ -13433,10 +13478,10 @@ export declare const themeSchema: z.ZodObject<{
13433
13478
  borders: {
13434
13479
  button_border_radius: number;
13435
13480
  button_border_weight: number;
13436
- buttons_style: "pill";
13481
+ buttons_style: "pill" | "rounded" | "sharp";
13437
13482
  input_border_radius: number;
13438
13483
  input_border_weight: number;
13439
- inputs_style: "pill";
13484
+ inputs_style: "pill" | "rounded" | "sharp";
13440
13485
  show_widget_shadow: boolean;
13441
13486
  widget_border_weight: number;
13442
13487
  widget_corner_radius: number;
@@ -13464,7 +13509,7 @@ export declare const themeSchema: z.ZodObject<{
13464
13509
  bold: boolean;
13465
13510
  size: number;
13466
13511
  };
13467
- links_style: "normal";
13512
+ links_style: "normal" | "underlined";
13468
13513
  reference_text_size: number;
13469
13514
  subtitle: {
13470
13515
  bold: boolean;
@@ -13473,23 +13518,23 @@ export declare const themeSchema: z.ZodObject<{
13473
13518
  };
13474
13519
  widget: {
13475
13520
  logo_url: string;
13476
- header_text_alignment: "center";
13521
+ header_text_alignment: "center" | "left" | "right";
13477
13522
  logo_height: number;
13478
- logo_position: "center";
13479
- social_buttons_layout: "bottom";
13523
+ logo_position: "center" | "left" | "right" | "none";
13524
+ social_buttons_layout: "bottom" | "top";
13480
13525
  };
13481
13526
  themeId: string;
13482
13527
  }, {
13483
13528
  page_background: {
13484
13529
  background_color: string;
13485
13530
  background_image_url: string;
13486
- page_layout: "center";
13531
+ page_layout: "center" | "left" | "right";
13487
13532
  };
13488
13533
  colors: {
13489
13534
  base_focus_color: string;
13490
13535
  base_hover_color: string;
13491
13536
  body_text: string;
13492
- captcha_widget_theme: "auto";
13537
+ captcha_widget_theme: "auto" | "dark" | "light";
13493
13538
  error: string;
13494
13539
  header: string;
13495
13540
  icons: string;
@@ -13509,10 +13554,10 @@ export declare const themeSchema: z.ZodObject<{
13509
13554
  borders: {
13510
13555
  button_border_radius: number;
13511
13556
  button_border_weight: number;
13512
- buttons_style: "pill";
13557
+ buttons_style: "pill" | "rounded" | "sharp";
13513
13558
  input_border_radius: number;
13514
13559
  input_border_weight: number;
13515
- inputs_style: "pill";
13560
+ inputs_style: "pill" | "rounded" | "sharp";
13516
13561
  show_widget_shadow: boolean;
13517
13562
  widget_border_weight: number;
13518
13563
  widget_corner_radius: number;
@@ -13540,7 +13585,7 @@ export declare const themeSchema: z.ZodObject<{
13540
13585
  bold: boolean;
13541
13586
  size: number;
13542
13587
  };
13543
- links_style: "normal";
13588
+ links_style: "normal" | "underlined";
13544
13589
  reference_text_size: number;
13545
13590
  subtitle: {
13546
13591
  bold: boolean;
@@ -13549,10 +13594,10 @@ export declare const themeSchema: z.ZodObject<{
13549
13594
  };
13550
13595
  widget: {
13551
13596
  logo_url: string;
13552
- header_text_alignment: "center";
13597
+ header_text_alignment: "center" | "left" | "right";
13553
13598
  logo_height: number;
13554
- logo_position: "center";
13555
- social_buttons_layout: "bottom";
13599
+ logo_position: "center" | "left" | "right" | "none";
13600
+ social_buttons_layout: "bottom" | "top";
13556
13601
  };
13557
13602
  themeId: string;
13558
13603
  }>;
@@ -975,10 +975,10 @@ t.object({
975
975
  const pt = t.object({
976
976
  button_border_radius: t.number(),
977
977
  button_border_weight: t.number(),
978
- buttons_style: t.enum(["pill"]),
978
+ buttons_style: t.enum(["pill", "rounded", "sharp"]),
979
979
  input_border_radius: t.number(),
980
980
  input_border_weight: t.number(),
981
- inputs_style: t.enum(["pill"]),
981
+ inputs_style: t.enum(["pill", "rounded", "sharp"]),
982
982
  show_widget_shadow: t.boolean(),
983
983
  widget_border_weight: t.number(),
984
984
  widget_corner_radius: t.number()
@@ -986,7 +986,7 @@ const pt = t.object({
986
986
  base_focus_color: t.string(),
987
987
  base_hover_color: t.string(),
988
988
  body_text: t.string(),
989
- captcha_widget_theme: t.enum(["auto"]),
989
+ captcha_widget_theme: t.enum(["auto", "dark", "light"]),
990
990
  error: t.string(),
991
991
  header: t.string(),
992
992
  icons: t.string(),
@@ -1011,20 +1011,20 @@ const pt = t.object({
1011
1011
  font_url: t.string(),
1012
1012
  input_labels: n,
1013
1013
  links: n,
1014
- links_style: t.enum(["normal"]),
1014
+ links_style: t.enum(["normal", "underlined"]),
1015
1015
  reference_text_size: t.number(),
1016
1016
  subtitle: n,
1017
1017
  title: n
1018
1018
  }), ut = t.object({
1019
1019
  background_color: t.string(),
1020
1020
  background_image_url: t.string(),
1021
- page_layout: t.enum(["center"])
1021
+ page_layout: t.enum(["center", "left", "right"])
1022
1022
  }), St = t.object({
1023
- header_text_alignment: t.enum(["center"]),
1023
+ header_text_alignment: t.enum(["center", "left", "right"]),
1024
1024
  logo_height: t.number(),
1025
- logo_position: t.enum(["center"]),
1025
+ logo_position: t.enum(["center", "left", "none", "right"]),
1026
1026
  logo_url: t.string(),
1027
- social_buttons_layout: t.enum(["bottom"])
1027
+ social_buttons_layout: t.enum(["bottom", "top"])
1028
1028
  }), mt = t.object({
1029
1029
  borders: pt,
1030
1030
  colors: gt,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.75.0",
14
+ "version": "0.76.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],