@authhero/adapter-interfaces 0.64.0 → 0.65.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 t=require("@hono/zod-openapi"),zt=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),r=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),m=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),u=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:m.optional()}),l=t.z.object({email:t.z.string().optional().transform(e=>e&&e.toLowerCase()),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),_=l.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),h=t.z.object({..._.shape,...r.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number().default(0),identities:t.z.array(u).optional()}),pt=h,dt=l.extend({login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),gt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let mt=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=gt[a[e]&63];return i};const b=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),S=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.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:t.z.array(t.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:t.z.array(t.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:t.z.array(t.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:t.z.object({samlp:b.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:t.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:t.z.string().default(()=>mt()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),f=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...S.shape}),o=t.z.object({x:t.z.number(),y:t.z.number()});var c=(e=>(e.RICH_TEXT="RICH_TEXT",e.NEXT_BUTTON="NEXT_BUTTON",e.BACK_BUTTON="BACK_BUTTON",e.SUBMIT_BUTTON="SUBMIT_BUTTON",e.DIVIDER="DIVIDER",e.TEXT="TEXT",e.EMAIL="EMAIL",e.PASSWORD="PASSWORD",e.NUMBER="NUMBER",e.PHONE="PHONE",e.DATE="DATE",e.CHECKBOX="CHECKBOX",e.RADIO="RADIO",e.SELECT="SELECT",e.HIDDEN="HIDDEN",e.LEGAL="LEGAL",e))(c||{}),z=(e=>(e.BLOCK="BLOCK",e.FIELD="FIELD",e))(z||{});const s=t.z.object({id:t.z.string(),category:t.z.nativeEnum(z),type:t.z.nativeEnum(c)}),E=s.extend({category:t.z.literal("BLOCK"),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}).passthrough()}),y=s.extend({category:t.z.literal("BLOCK"),type:t.z.union([t.z.literal("NEXT_BUTTON"),t.z.literal("BACK_BUTTON"),t.z.literal("SUBMIT_BUTTON")]),config:t.z.object({text:t.z.string()}).passthrough()}),I=s.extend({category:t.z.literal("FIELD"),type:t.z.literal("LEGAL"),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({text:t.z.string()}).passthrough()}),j=s.extend({category:t.z.literal("FIELD"),type:t.z.union([t.z.literal("TEXT"),t.z.literal("EMAIL"),t.z.literal("PASSWORD"),t.z.literal("NUMBER"),t.z.literal("PHONE"),t.z.literal("DATE"),t.z.literal("CHECKBOX"),t.z.literal("RADIO"),t.z.literal("SELECT"),t.z.literal("HIDDEN")]),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({label:t.z.string().optional(),placeholder:t.z.string().optional()}).passthrough()}),C=t.z.object({id:t.z.string(),category:t.z.string(),type:t.z.string()}).passthrough(),w=t.z.union([E,y,I,j,C]);var k=(e=>(e.STEP="STEP",e.FLOW="FLOW",e.CONDITION="CONDITION",e.ACTION="ACTION",e))(k||{});const O=t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({components:t.z.array(w),next_node:t.z.string()}).passthrough()}),T=t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({flow_id:t.z.string(),next_node:t.z.string()})}),v=t.z.object({id:t.z.string(),type:t.z.string(),coordinates:o}).passthrough(),A=t.z.union([O,T,v]),N=t.z.object({next_node:t.z.string(),coordinates:o}).passthrough(),D=t.z.object({resume_flow:t.z.boolean().optional(),coordinates:o}).passthrough(),U=t.z.object({id:t.z.string(),name:t.z.string(),languages:t.z.object({primary:t.z.string()}).passthrough(),nodes:t.z.array(A),start:N,ending:D,created_at:t.z.string(),updated_at:t.z.string(),links:t.z.object({sdkSrc:t.z.string().optional(),sdk_src:t.z.string().optional()}).passthrough()}).passthrough(),ut=U.omit({id:!0,created_at:!0,updated_at:!0});var p=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(p||{}),d=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(d||{}),g=(e=>(e.S256="S256",e.Plain="plain",e))(g||{});const x=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(p).optional(),response_mode:t.z.nativeEnum(d).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(g).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),_t=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),R=t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().optional(),token_endpoint:t.z.string().optional(),userinfo_endpoint:t.z.string().optional(),jwks_uri:t.z.string().optional(),discovery_url:t.z.string().optional(),issuer:t.z.string().optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}),P=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:R.default({}),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),L=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(P.shape),B=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),F=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...B.shape,id:t.z.string()}),ht=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...f.shape,tenant:F,connections:t.z.array(L)});const H=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),K=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:H,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),bt=t.z.object({...K.shape,created_at:t.z.string()}),M=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),G=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),W=t.z.object({...M.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(G)}).optional(),tls_policy:t.z.string().optional()}),St=W.extend({tenant_id:t.z.string()}),ft=t.z.object({id:t.z.string(),type:t.z.literal("submit"),label:t.z.string(),className:t.z.string().optional(),disabled:t.z.boolean().optional().default(!1),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0),customizations:t.z.record(t.z.string(),t.z.any()).optional()}),X=t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("LEGAL"),config:t.z.object({text:t.z.string(),html:t.z.boolean().optional()}),required:t.z.boolean().optional(),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("NEXT_BUTTON"),config:t.z.object({text:t.z.string().optional()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)})]),q=t.z.object({name:t.z.string().openapi({description:"The name of the form"}),messages:t.z.object({errors:t.z.record(t.z.string(),t.z.any()).optional(),custom:t.z.record(t.z.string(),t.z.any()).optional()}).optional(),languages:t.z.object({primary:t.z.string().optional(),default:t.z.string().optional()}).optional(),translations:t.z.record(t.z.string(),t.z.any()).optional(),nodes:t.z.array(t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({flow_id:t.z.string().max(30),next_node:t.z.string()})}),t.z.object({id:t.z.string(),type:t.z.literal("ROUTER"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150),config:t.z.object({rules:t.z.array(t.z.object({id:t.z.string(),alias:t.z.string().min(1).max(150).optional(),condition:t.z.any(),next_node:t.z.string()})),fallback:t.z.array(t.z.string())})}),t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({components:t.z.array(X),next_node:t.z.string()})})])).optional(),start:t.z.object({hidden_fields:t.z.array(t.z.object({key:t.z.string(),value:t.z.string()})).optional(),next_node:t.z.string().optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional()}).optional(),ending:t.z.object({redirection:t.z.object({delay:t.z.number().optional(),target:t.z.string().optional()}).optional(),after_submit:t.z.object({flow_id:t.z.string().optional()}).optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional(),resume_flow:t.z.boolean().optional()}).optional(),style:t.z.object({css:t.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Et=t.z.object({...r.shape,...q.shape,id:t.z.string()}),V=t.z.object({trigger_id:t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),enabled:t.z.boolean().default(!1),url:t.z.string(),hook_id:t.z.string().optional(),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional()}),yt=V.extend({...r.shape,hook_id:t.z.string()}),Q=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),It=t.z.object({keys:t.z.array(Q)}),jt=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),Y=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:x,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional()}).openapi({description:"This represents a login sesion"}),Ct=t.z.object({...Y.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var J=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))(J||{});const wt=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),Z=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),kt=t.z.object({type:wt,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:Z.optional()}),$=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),Ot=t.z.object({...$.shape,created_at:t.z.string(),updated_at:t.z.string()}),tt=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),et=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),device:tt.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),Tt=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...et.shape}),vt=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var nt=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(nt||{});const At=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const ot=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),it=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),at=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),st=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),rt=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),lt=t.z.object({borders:ot,colors:it,displayName:t.z.string(),fonts:at,page_background:st,widget:rt}),Nt=lt.extend({themeId:t.z.string()}),Dt=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),Ut=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),ct=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:tt,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),xt=t.z.object({created_at:t.z.string(),...ct.shape}),Rt=t.z.object({to:t.z.string(),message:t.z.string()}),Pt=t.z.object({name:t.z.string(),options:t.z.object({})});function Lt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=Z;exports.AuthorizationResponseMode=d;exports.AuthorizationResponseType=p;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=nt;exports.LogTypes=J;exports.NodeType=k;exports.applicationInsertSchema=S;exports.applicationSchema=f;exports.auth0FlowInsertSchema=ut;exports.auth0FlowSchema=U;exports.auth0UserResponseSchema=pt;exports.authParamsSchema=x;exports.baseUserSchema=l;exports.bordersSchema=ot;exports.brandingSchema=_t;exports.buttonComponentSchema=y;exports.codeInsertSchema=K;exports.codeSchema=bt;exports.codeTypeSchema=H;exports.colorsSchema=it;exports.componentSchema=w;exports.connectionInsertSchema=P;exports.connectionOptionsSchema=R;exports.connectionSchema=L;exports.coordinatesSchema=o;exports.customDomainInsertSchema=M;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=St;exports.emailProviderSchema=Ut;exports.endingSchema=D;exports.fieldComponentSchema=j;exports.flowNodeSchema=T;exports.fontDetailsSchema=n;exports.fontsSchema=at;exports.formControlSchema=ft;exports.formInsertSchema=q;exports.formNodeComponentDefinition=X;exports.formSchema=Et;exports.genericComponentSchema=C;exports.genericNodeSchema=v;exports.hookInsertSchema=V;exports.hookSchema=yt;exports.identitySchema=u;exports.jwksKeySchema=It;exports.jwksSchema=Q;exports.legalComponentSchema=I;exports.logSchema=kt;exports.loginSessionInsertSchema=Y;exports.loginSessionSchema=Ct;exports.nodeSchema=A;exports.openIDConfigurationSchema=jt;exports.pageBackgroundSchema=st;exports.parseUserId=Lt;exports.passwordInsertSchema=$;exports.passwordSchema=Ot;exports.profileDataSchema=m;exports.promptSettingSchema=Dt;exports.refreshTokenInsertSchema=ct;exports.refreshTokenSchema=xt;exports.richTextComponentSchema=E;exports.samlpAddon=b;exports.sessionInsertSchema=et;exports.sessionSchema=Tt;exports.signingKeySchema=vt;exports.smsProviderSchema=Pt;exports.smsSendParamsSchema=Rt;exports.startSchema=N;exports.stepNodeSchema=O;exports.tenantInsertSchema=B;exports.tenantSchema=F;exports.themeInsertSchema=lt;exports.themeSchema=Nt;exports.tokenResponseSchema=At;exports.totalsSchema=zt;exports.userInsertSchema=_;exports.userResponseSchema=dt;exports.userSchema=h;exports.vendorSettingsSchema=ht;exports.verificationMethodsSchema=G;exports.widgetSchema=rt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),gt=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),s=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),u=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),_=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:u.optional()}),c=t.z.object({email:t.z.string().optional().transform(e=>e&&e.toLowerCase()),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),h=c.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),b=t.z.object({...h.shape,...s.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number().default(0),identities:t.z.array(_).optional()}),dt=b,mt=c.extend({login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),ut="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let _t=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=ut[a[e]&63];return i};const S=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),f=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.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:t.z.array(t.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:t.z.array(t.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:t.z.array(t.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:t.z.object({samlp:S.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:t.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:t.z.string().default(()=>_t()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),E=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...f.shape}),o=t.z.object({x:t.z.number(),y:t.z.number()});var z=(e=>(e.RICH_TEXT="RICH_TEXT",e.NEXT_BUTTON="NEXT_BUTTON",e.BACK_BUTTON="BACK_BUTTON",e.SUBMIT_BUTTON="SUBMIT_BUTTON",e.DIVIDER="DIVIDER",e.TEXT="TEXT",e.EMAIL="EMAIL",e.PASSWORD="PASSWORD",e.NUMBER="NUMBER",e.PHONE="PHONE",e.DATE="DATE",e.CHECKBOX="CHECKBOX",e.RADIO="RADIO",e.SELECT="SELECT",e.HIDDEN="HIDDEN",e.LEGAL="LEGAL",e))(z||{}),p=(e=>(e.BLOCK="BLOCK",e.FIELD="FIELD",e))(p||{});const r=t.z.object({id:t.z.string(),category:t.z.nativeEnum(p),type:t.z.nativeEnum(z)}),y=r.extend({category:t.z.literal("BLOCK"),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}).passthrough()}),I=r.extend({category:t.z.literal("BLOCK"),type:t.z.union([t.z.literal("NEXT_BUTTON"),t.z.literal("BACK_BUTTON"),t.z.literal("SUBMIT_BUTTON")]),config:t.z.object({text:t.z.string()}).passthrough()}),j=r.extend({category:t.z.literal("FIELD"),type:t.z.literal("LEGAL"),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({text:t.z.string()}).passthrough()}),C=r.extend({category:t.z.literal("FIELD"),type:t.z.union([t.z.literal("TEXT"),t.z.literal("EMAIL"),t.z.literal("PASSWORD"),t.z.literal("NUMBER"),t.z.literal("PHONE"),t.z.literal("DATE"),t.z.literal("CHECKBOX"),t.z.literal("RADIO"),t.z.literal("SELECT"),t.z.literal("HIDDEN")]),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({label:t.z.string().optional(),placeholder:t.z.string().optional()}).passthrough()}),w=t.z.object({id:t.z.string(),category:t.z.string(),type:t.z.string()}).passthrough(),k=t.z.union([y,I,j,C,w]);var O=(e=>(e.STEP="STEP",e.FLOW="FLOW",e.CONDITION="CONDITION",e.ACTION="ACTION",e))(O||{});const T=t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({components:t.z.array(k),next_node:t.z.string()}).passthrough()}),A=t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({flow_id:t.z.string(),next_node:t.z.string()})}),v=t.z.object({id:t.z.string(),type:t.z.string(),coordinates:o}).passthrough(),N=t.z.union([T,A,v]),D=t.z.object({next_node:t.z.string(),coordinates:o}).passthrough(),U=t.z.object({resume_flow:t.z.boolean().optional(),coordinates:o}).passthrough(),R=t.z.object({id:t.z.string(),name:t.z.string(),languages:t.z.object({primary:t.z.string()}).passthrough(),nodes:t.z.array(N),start:D,ending:U,created_at:t.z.string(),updated_at:t.z.string(),links:t.z.object({sdkSrc:t.z.string().optional(),sdk_src:t.z.string().optional()}).passthrough()}).passthrough(),ht=R.omit({id:!0,created_at:!0,updated_at:!0});var g=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(g||{}),d=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(d||{}),m=(e=>(e.S256="S256",e.Plain="plain",e))(m||{});const x=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(g).optional(),response_mode:t.z.nativeEnum(d).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(m).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),bt=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),P=t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().optional(),token_endpoint:t.z.string().optional(),userinfo_endpoint:t.z.string().optional(),jwks_uri:t.z.string().optional(),discovery_url:t.z.string().optional(),issuer:t.z.string().optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}),L=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:P.default({}),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),B=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(L.shape),H=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),F=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...H.shape,id:t.z.string()}),St=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...E.shape,tenant:F,connections:t.z.array(B)});const K=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),M=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),ft=t.z.object({...M.shape,created_at:t.z.string()}),G=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),W=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),X=t.z.object({...G.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(W)}).optional(),tls_policy:t.z.string().optional()}),Et=X.extend({tenant_id:t.z.string()}),yt=t.z.object({id:t.z.string(),type:t.z.literal("submit"),label:t.z.string(),className:t.z.string().optional(),disabled:t.z.boolean().optional().default(!1),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0),customizations:t.z.record(t.z.string(),t.z.any()).optional()}),q=t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("LEGAL"),config:t.z.object({text:t.z.string(),html:t.z.boolean().optional()}),required:t.z.boolean().optional(),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("NEXT_BUTTON"),config:t.z.object({text:t.z.string().optional()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)})]),V=t.z.object({name:t.z.string().openapi({description:"The name of the form"}),messages:t.z.object({errors:t.z.record(t.z.string(),t.z.any()).optional(),custom:t.z.record(t.z.string(),t.z.any()).optional()}).optional(),languages:t.z.object({primary:t.z.string().optional(),default:t.z.string().optional()}).optional(),translations:t.z.record(t.z.string(),t.z.any()).optional(),nodes:t.z.array(t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({flow_id:t.z.string().max(30),next_node:t.z.string()})}),t.z.object({id:t.z.string(),type:t.z.literal("ROUTER"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150),config:t.z.object({rules:t.z.array(t.z.object({id:t.z.string(),alias:t.z.string().min(1).max(150).optional(),condition:t.z.any(),next_node:t.z.string()})),fallback:t.z.array(t.z.string())})}),t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({components:t.z.array(q),next_node:t.z.string()})})])).optional(),start:t.z.object({hidden_fields:t.z.array(t.z.object({key:t.z.string(),value:t.z.string()})).optional(),next_node:t.z.string().optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional()}).optional(),ending:t.z.object({redirection:t.z.object({delay:t.z.number().optional(),target:t.z.string().optional()}).optional(),after_submit:t.z.object({flow_id:t.z.string().optional()}).optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional(),resume_flow:t.z.boolean().optional()}).optional(),style:t.z.object({css:t.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),It=t.z.object({...s.shape,...V.shape,id:t.z.string()}),Q=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Y=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:t.z.boolean().default(!1),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional(),hook_id:t.z.string().optional()},jt=t.z.object({...l,trigger_id:Q,url:t.z.string()}),Ct=t.z.object({...l,trigger_id:Y,form_id:t.z.string()}),wt=t.z.union([jt,Ct]),kt=t.z.object({...l,trigger_id:Q,...s.shape,hook_id:t.z.string(),url:t.z.string()}),Ot=t.z.object({...l,trigger_id:Y,...s.shape,hook_id:t.z.string(),form_id:t.z.string()}),Tt=t.z.union([kt,Ot]),J=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),At=t.z.object({keys:t.z.array(J)}),vt=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),Z=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:x,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional()}).openapi({description:"This represents a login sesion"}),Nt=t.z.object({...Z.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var $=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))($||{});const Dt=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),tt=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),Ut=t.z.object({type:Dt,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:tt.optional()}),et=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),Rt=t.z.object({...et.shape,created_at:t.z.string(),updated_at:t.z.string()}),nt=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),ot=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),device:nt.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),xt=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...ot.shape}),Pt=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var it=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(it||{});const Lt=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const at=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),st=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),rt=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),lt=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),ct=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),zt=t.z.object({borders:at,colors:st,displayName:t.z.string(),fonts:rt,page_background:lt,widget:ct}),Bt=zt.extend({themeId:t.z.string()}),Ht=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),Ft=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),pt=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:nt,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),Kt=t.z.object({created_at:t.z.string(),...pt.shape}),Mt=t.z.object({to:t.z.string(),message:t.z.string()}),Gt=t.z.object({name:t.z.string(),options:t.z.object({})});function Wt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=tt;exports.AuthorizationResponseMode=d;exports.AuthorizationResponseType=g;exports.CodeChallengeMethod=m;exports.ComponentCategory=p;exports.ComponentType=z;exports.GrantType=it;exports.LogTypes=$;exports.NodeType=O;exports.applicationInsertSchema=f;exports.applicationSchema=E;exports.auth0FlowInsertSchema=ht;exports.auth0FlowSchema=R;exports.auth0UserResponseSchema=dt;exports.authParamsSchema=x;exports.baseUserSchema=c;exports.bordersSchema=at;exports.brandingSchema=bt;exports.buttonComponentSchema=I;exports.codeInsertSchema=M;exports.codeSchema=ft;exports.codeTypeSchema=K;exports.colorsSchema=st;exports.componentSchema=k;exports.connectionInsertSchema=L;exports.connectionOptionsSchema=P;exports.connectionSchema=B;exports.coordinatesSchema=o;exports.customDomainInsertSchema=G;exports.customDomainSchema=X;exports.customDomainWithTenantIdSchema=Et;exports.emailProviderSchema=Ft;exports.endingSchema=U;exports.fieldComponentSchema=C;exports.flowNodeSchema=A;exports.fontDetailsSchema=n;exports.fontsSchema=rt;exports.formControlSchema=yt;exports.formInsertSchema=V;exports.formNodeComponentDefinition=q;exports.formSchema=It;exports.genericComponentSchema=w;exports.genericNodeSchema=v;exports.hookInsertSchema=wt;exports.hookSchema=Tt;exports.identitySchema=_;exports.jwksKeySchema=At;exports.jwksSchema=J;exports.legalComponentSchema=j;exports.logSchema=Ut;exports.loginSessionInsertSchema=Z;exports.loginSessionSchema=Nt;exports.nodeSchema=N;exports.openIDConfigurationSchema=vt;exports.pageBackgroundSchema=lt;exports.parseUserId=Wt;exports.passwordInsertSchema=et;exports.passwordSchema=Rt;exports.profileDataSchema=u;exports.promptSettingSchema=Ht;exports.refreshTokenInsertSchema=pt;exports.refreshTokenSchema=Kt;exports.richTextComponentSchema=y;exports.samlpAddon=S;exports.sessionInsertSchema=ot;exports.sessionSchema=xt;exports.signingKeySchema=Pt;exports.smsProviderSchema=Gt;exports.smsSendParamsSchema=Mt;exports.startSchema=D;exports.stepNodeSchema=T;exports.tenantInsertSchema=H;exports.tenantSchema=F;exports.themeInsertSchema=zt;exports.themeSchema=Bt;exports.tokenResponseSchema=Lt;exports.totalsSchema=gt;exports.userInsertSchema=h;exports.userResponseSchema=mt;exports.userSchema=b;exports.vendorSettingsSchema=St;exports.verificationMethodsSchema=W;exports.widgetSchema=ct;
@@ -10790,66 +10790,127 @@ export declare const formSchema: z.ZodObject<{
10790
10790
  translations?: Record<string, any> | undefined;
10791
10791
  }>;
10792
10792
  export type Form = z.infer<typeof formSchema>;
10793
- export declare const hookInsertSchema: z.ZodObject<{
10794
- trigger_id: z.ZodEnum<[
10795
- "pre-user-signup",
10796
- "post-user-registration",
10797
- "post-user-login"
10798
- ]>;
10799
- enabled: z.ZodDefault<z.ZodBoolean>;
10800
- url: z.ZodString;
10801
- hook_id: z.ZodOptional<z.ZodString>;
10802
- synchronous: z.ZodDefault<z.ZodBoolean>;
10803
- priority: z.ZodOptional<z.ZodNumber>;
10804
- }, "strip", z.ZodTypeAny, {
10805
- enabled: boolean;
10806
- url: string;
10807
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10808
- synchronous: boolean;
10809
- hook_id?: string | undefined;
10810
- priority?: number | undefined;
10811
- }, {
10812
- url: string;
10813
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10814
- enabled?: boolean | undefined;
10815
- hook_id?: string | undefined;
10816
- synchronous?: boolean | undefined;
10817
- priority?: number | undefined;
10818
- }>;
10793
+ export declare const hookInsertSchema: z.ZodUnion<[
10794
+ z.ZodObject<{
10795
+ trigger_id: z.ZodEnum<[
10796
+ "pre-user-signup",
10797
+ "post-user-registration",
10798
+ "post-user-login"
10799
+ ]>;
10800
+ url: z.ZodString;
10801
+ enabled: z.ZodDefault<z.ZodBoolean>;
10802
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10803
+ priority: z.ZodOptional<z.ZodNumber>;
10804
+ hook_id: z.ZodOptional<z.ZodString>;
10805
+ }, "strip", z.ZodTypeAny, {
10806
+ enabled: boolean;
10807
+ url: string;
10808
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10809
+ synchronous: boolean;
10810
+ priority?: number | undefined;
10811
+ hook_id?: string | undefined;
10812
+ }, {
10813
+ url: string;
10814
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10815
+ enabled?: boolean | undefined;
10816
+ synchronous?: boolean | undefined;
10817
+ priority?: number | undefined;
10818
+ hook_id?: string | undefined;
10819
+ }>,
10820
+ z.ZodObject<{
10821
+ trigger_id: z.ZodEnum<[
10822
+ "pre-user-signup",
10823
+ "post-user-registration",
10824
+ "post-user-login"
10825
+ ]>;
10826
+ form_id: z.ZodString;
10827
+ enabled: z.ZodDefault<z.ZodBoolean>;
10828
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10829
+ priority: z.ZodOptional<z.ZodNumber>;
10830
+ hook_id: z.ZodOptional<z.ZodString>;
10831
+ }, "strip", z.ZodTypeAny, {
10832
+ enabled: boolean;
10833
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10834
+ synchronous: boolean;
10835
+ form_id: string;
10836
+ priority?: number | undefined;
10837
+ hook_id?: string | undefined;
10838
+ }, {
10839
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10840
+ form_id: string;
10841
+ enabled?: boolean | undefined;
10842
+ synchronous?: boolean | undefined;
10843
+ priority?: number | undefined;
10844
+ hook_id?: string | undefined;
10845
+ }>
10846
+ ]>;
10819
10847
  export type HookInsert = z.infer<typeof hookInsertSchema>;
10820
- export declare const hookSchema: z.ZodObject<{
10821
- trigger_id: z.ZodEnum<[
10822
- "pre-user-signup",
10823
- "post-user-registration",
10824
- "post-user-login"
10825
- ]>;
10826
- enabled: z.ZodDefault<z.ZodBoolean>;
10827
- url: z.ZodString;
10828
- synchronous: z.ZodDefault<z.ZodBoolean>;
10829
- priority: z.ZodOptional<z.ZodNumber>;
10830
- } & {
10831
- hook_id: z.ZodString;
10832
- created_at: z.ZodString;
10833
- updated_at: z.ZodString;
10834
- }, "strip", z.ZodTypeAny, {
10835
- created_at: string;
10836
- updated_at: string;
10837
- enabled: boolean;
10838
- url: string;
10839
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10840
- hook_id: string;
10841
- synchronous: boolean;
10842
- priority?: number | undefined;
10843
- }, {
10844
- created_at: string;
10845
- updated_at: string;
10846
- url: string;
10847
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10848
- hook_id: string;
10849
- enabled?: boolean | undefined;
10850
- synchronous?: boolean | undefined;
10851
- priority?: number | undefined;
10852
- }>;
10848
+ export declare const hookSchema: z.ZodUnion<[
10849
+ z.ZodObject<{
10850
+ hook_id: z.ZodString;
10851
+ url: z.ZodString;
10852
+ created_at: z.ZodString;
10853
+ updated_at: z.ZodString;
10854
+ trigger_id: z.ZodEnum<[
10855
+ "pre-user-signup",
10856
+ "post-user-registration",
10857
+ "post-user-login"
10858
+ ]>;
10859
+ enabled: z.ZodDefault<z.ZodBoolean>;
10860
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10861
+ priority: z.ZodOptional<z.ZodNumber>;
10862
+ }, "strip", z.ZodTypeAny, {
10863
+ created_at: string;
10864
+ updated_at: string;
10865
+ enabled: boolean;
10866
+ url: string;
10867
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10868
+ synchronous: boolean;
10869
+ hook_id: string;
10870
+ priority?: number | undefined;
10871
+ }, {
10872
+ created_at: string;
10873
+ updated_at: string;
10874
+ url: string;
10875
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10876
+ hook_id: string;
10877
+ enabled?: boolean | undefined;
10878
+ synchronous?: boolean | undefined;
10879
+ priority?: number | undefined;
10880
+ }>,
10881
+ z.ZodObject<{
10882
+ hook_id: z.ZodString;
10883
+ form_id: z.ZodString;
10884
+ created_at: z.ZodString;
10885
+ updated_at: z.ZodString;
10886
+ trigger_id: z.ZodEnum<[
10887
+ "pre-user-signup",
10888
+ "post-user-registration",
10889
+ "post-user-login"
10890
+ ]>;
10891
+ enabled: z.ZodDefault<z.ZodBoolean>;
10892
+ synchronous: z.ZodDefault<z.ZodBoolean>;
10893
+ priority: z.ZodOptional<z.ZodNumber>;
10894
+ }, "strip", z.ZodTypeAny, {
10895
+ created_at: string;
10896
+ updated_at: string;
10897
+ enabled: boolean;
10898
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10899
+ synchronous: boolean;
10900
+ hook_id: string;
10901
+ form_id: string;
10902
+ priority?: number | undefined;
10903
+ }, {
10904
+ created_at: string;
10905
+ updated_at: string;
10906
+ trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
10907
+ hook_id: string;
10908
+ form_id: string;
10909
+ enabled?: boolean | undefined;
10910
+ synchronous?: boolean | undefined;
10911
+ priority?: number | undefined;
10912
+ }>
10913
+ ]>;
10853
10914
  export type Hook = z.infer<typeof hookSchema>;
10854
10915
  export declare const profileDataSchema: z.ZodObject<{
10855
10916
  email: z.ZodOptional<z.ZodString>;
@@ -1,12 +1,12 @@
1
1
  import { z as t } from "@hono/zod-openapi";
2
- const _t = t.object({
2
+ const Et = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
6
- }), r = t.object({
6
+ }), s = t.object({
7
7
  created_at: t.string(),
8
8
  updated_at: t.string()
9
- }), m = t.object({
9
+ }), f = t.object({
10
10
  email: t.string().optional(),
11
11
  email_verified: t.boolean().optional(),
12
12
  name: t.string().optional(),
@@ -15,7 +15,7 @@ const _t = t.object({
15
15
  phone_number: t.string().optional(),
16
16
  phone_verified: t.boolean().optional(),
17
17
  family_name: t.string().optional()
18
- }).catchall(t.any()), b = t.object({
18
+ }).catchall(t.any()), S = t.object({
19
19
  connection: t.string(),
20
20
  user_id: t.string(),
21
21
  provider: t.string(),
@@ -23,8 +23,8 @@ const _t = t.object({
23
23
  access_token: t.string().optional(),
24
24
  access_token_secret: t.string().optional(),
25
25
  refresh_token: t.string().optional(),
26
- profileData: m.optional()
27
- }), l = t.object({
26
+ profileData: f.optional()
27
+ }), c = t.object({
28
28
  email: t.string().optional().transform((e) => e && e.toLowerCase()),
29
29
  username: t.string().optional(),
30
30
  phone_number: t.string().optional(),
@@ -39,7 +39,7 @@ const _t = t.object({
39
39
  user_id: t.string().optional(),
40
40
  app_metadata: t.any().default({}).optional(),
41
41
  user_metadata: t.any().default({}).optional()
42
- }), h = l.extend({
42
+ }), E = c.extend({
43
43
  email_verified: t.boolean().default(!1),
44
44
  verify_email: t.boolean().optional(),
45
45
  last_ip: t.string().optional(),
@@ -48,28 +48,28 @@ const _t = t.object({
48
48
  provider: t.string().default("email"),
49
49
  connection: t.string().default("email"),
50
50
  is_social: t.boolean().optional()
51
- }), f = t.object({
52
- ...h.shape,
53
- ...r.shape,
51
+ }), j = t.object({
52
+ ...E.shape,
53
+ ...s.shape,
54
54
  user_id: t.string(),
55
55
  is_social: t.boolean(),
56
56
  email: t.string().optional(),
57
57
  login_count: t.number().default(0),
58
- identities: t.array(b).optional()
59
- }), mt = f, bt = l.extend({
58
+ identities: t.array(S).optional()
59
+ }), jt = j, yt = c.extend({
60
60
  login_count: t.number(),
61
61
  multifactor: t.array(t.string()).optional(),
62
62
  last_ip: t.string().optional(),
63
63
  last_login: t.string().optional(),
64
64
  user_id: t.string()
65
- }).catchall(t.any()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let E = (e = 21) => {
67
- let i = "", a = crypto.getRandomValues(new Uint8Array(e));
65
+ }).catchall(t.any()), y = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
+ let I = (e = 21) => {
67
+ let o = "", a = crypto.getRandomValues(new Uint8Array(e));
68
68
  for (; e--; )
69
- i += S[a[e] & 63];
70
- return i;
69
+ o += y[a[e] & 63];
70
+ return o;
71
71
  };
72
- const j = t.object({
72
+ const w = t.object({
73
73
  audience: t.string().optional(),
74
74
  recipient: t.string().optional(),
75
75
  createUpnClaim: t.boolean().optional(),
@@ -86,7 +86,7 @@ const j = t.object({
86
86
  nameIdentifierProbes: t.array(t.string()).optional(),
87
87
  authnContextClassRef: t.string().optional(),
88
88
  mappings: t.record(t.string()).optional()
89
- }), y = t.object({
89
+ }), k = t.object({
90
90
  id: t.string(),
91
91
  name: t.string(),
92
92
  callbacks: t.array(t.string()).default([]).optional().openapi({
@@ -105,31 +105,31 @@ const j = t.object({
105
105
  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"
106
106
  }),
107
107
  addons: t.object({
108
- samlp: j.optional()
108
+ samlp: w.optional()
109
109
  }).default({}).optional().openapi({
110
110
  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."
111
111
  }),
112
112
  email_validation: t.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
113
113
  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"
114
114
  }),
115
- client_secret: t.string().default(() => E()).optional(),
115
+ client_secret: t.string().default(() => I()).optional(),
116
116
  disable_sign_ups: t.boolean().optional().default(!1).openapi({
117
117
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
118
118
  })
119
- }), I = t.object({
119
+ }), C = t.object({
120
120
  created_at: t.string().transform((e) => e === null ? "" : e),
121
121
  updated_at: t.string().transform((e) => e === null ? "" : e),
122
- ...y.shape
123
- }), o = t.object({
122
+ ...k.shape
123
+ }), i = t.object({
124
124
  x: t.number(),
125
125
  y: t.number()
126
126
  });
127
- var c = /* @__PURE__ */ ((e) => (e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e))(c || {}), p = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(p || {});
128
- const s = t.object({
127
+ var p = /* @__PURE__ */ ((e) => (e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e))(p || {}), g = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(g || {});
128
+ const r = t.object({
129
129
  id: t.string(),
130
- category: t.nativeEnum(p),
131
- type: t.nativeEnum(c)
132
- }), w = s.extend({
130
+ category: t.nativeEnum(g),
131
+ type: t.nativeEnum(p)
132
+ }), O = r.extend({
133
133
  category: t.literal(
134
134
  "BLOCK"
135
135
  /* BLOCK */
@@ -141,7 +141,7 @@ const s = t.object({
141
141
  config: t.object({
142
142
  content: t.string()
143
143
  }).passthrough()
144
- }), C = s.extend({
144
+ }), A = r.extend({
145
145
  category: t.literal(
146
146
  "BLOCK"
147
147
  /* BLOCK */
@@ -163,7 +163,7 @@ const s = t.object({
163
163
  config: t.object({
164
164
  text: t.string()
165
165
  }).passthrough()
166
- }), k = s.extend({
166
+ }), v = r.extend({
167
167
  category: t.literal(
168
168
  "FIELD"
169
169
  /* FIELD */
@@ -177,7 +177,7 @@ const s = t.object({
177
177
  config: t.object({
178
178
  text: t.string()
179
179
  }).passthrough()
180
- }), O = s.extend({
180
+ }), N = r.extend({
181
181
  category: t.literal(
182
182
  "FIELD"
183
183
  /* FIELD */
@@ -230,82 +230,82 @@ const s = t.object({
230
230
  label: t.string().optional(),
231
231
  placeholder: t.string().optional()
232
232
  }).passthrough()
233
- }), v = t.object({
233
+ }), T = t.object({
234
234
  id: t.string(),
235
235
  category: t.string(),
236
236
  type: t.string()
237
- }).passthrough(), A = t.union([
238
- w,
239
- C,
240
- k,
237
+ }).passthrough(), U = t.union([
241
238
  O,
242
- v
239
+ A,
240
+ v,
241
+ N,
242
+ T
243
243
  ]);
244
- var N = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(N || {});
245
- const T = t.object({
244
+ var D = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(D || {});
245
+ const x = t.object({
246
246
  id: t.string(),
247
247
  type: t.literal(
248
248
  "STEP"
249
249
  /* STEP */
250
250
  ),
251
- coordinates: o,
251
+ coordinates: i,
252
252
  alias: t.string().optional(),
253
253
  config: t.object({
254
- components: t.array(A),
254
+ components: t.array(U),
255
255
  next_node: t.string()
256
256
  }).passthrough()
257
- }), U = t.object({
257
+ }), R = t.object({
258
258
  id: t.string(),
259
259
  type: t.literal(
260
260
  "FLOW"
261
261
  /* FLOW */
262
262
  ),
263
- coordinates: o,
263
+ coordinates: i,
264
264
  alias: t.string().optional(),
265
265
  config: t.object({
266
266
  flow_id: t.string(),
267
267
  next_node: t.string()
268
268
  })
269
- }), x = t.object({
269
+ }), L = t.object({
270
270
  id: t.string(),
271
271
  type: t.string(),
272
- coordinates: o
273
- }).passthrough(), D = t.union([
274
- T,
275
- U,
276
- x
277
- ]), R = t.object({
272
+ coordinates: i
273
+ }).passthrough(), P = t.union([
274
+ x,
275
+ R,
276
+ L
277
+ ]), B = t.object({
278
278
  next_node: t.string(),
279
- coordinates: o
280
- }).passthrough(), L = t.object({
279
+ coordinates: i
280
+ }).passthrough(), H = t.object({
281
281
  resume_flow: t.boolean().optional(),
282
- coordinates: o
283
- }).passthrough(), P = t.object({
282
+ coordinates: i
283
+ }).passthrough(), F = t.object({
284
284
  id: t.string(),
285
285
  name: t.string(),
286
286
  languages: t.object({
287
287
  primary: t.string()
288
288
  }).passthrough(),
289
- nodes: t.array(D),
290
- start: R,
291
- ending: L,
289
+ nodes: t.array(P),
290
+ start: B,
291
+ ending: H,
292
292
  created_at: t.string(),
293
293
  updated_at: t.string(),
294
294
  links: t.object({
295
295
  sdkSrc: t.string().optional(),
296
296
  sdk_src: t.string().optional()
297
297
  }).passthrough()
298
- }).passthrough(), ht = P.omit({
298
+ }).passthrough(), It = F.omit({
299
299
  id: !0,
300
300
  created_at: !0,
301
301
  updated_at: !0
302
302
  });
303
- var g = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(g || {}), d = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(d || {}), u = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(u || {});
304
- const B = t.object({
303
+ var d = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(d || {}), u = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(u || {}), _ = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(_ || {});
304
+ const K = t.object({
305
305
  client_id: t.string(),
306
306
  act_as: t.string().optional(),
307
- response_type: t.nativeEnum(g).optional(),
308
- response_mode: t.nativeEnum(d).optional(),
307
+ response_type: t.nativeEnum(d).optional(),
308
+ response_mode: t.nativeEnum(u).optional(),
309
309
  redirect_uri: t.string().optional(),
310
310
  audience: t.string().optional(),
311
311
  organization: t.string().optional(),
@@ -313,13 +313,13 @@ const B = t.object({
313
313
  nonce: t.string().optional(),
314
314
  scope: t.string().optional(),
315
315
  prompt: t.string().optional(),
316
- code_challenge_method: t.nativeEnum(u).optional(),
316
+ code_challenge_method: t.nativeEnum(_).optional(),
317
317
  code_challenge: t.string().optional(),
318
318
  username: t.string().optional(),
319
319
  ui_locales: t.string().optional(),
320
320
  // The following fields are not available in Auth0
321
321
  vendor_id: t.string().optional()
322
- }), ft = t.object({
322
+ }), wt = t.object({
323
323
  colors: t.object({
324
324
  primary: t.string(),
325
325
  page_background: t.object({
@@ -334,7 +334,7 @@ const B = t.object({
334
334
  font: t.object({
335
335
  url: t.string()
336
336
  }).optional()
337
- }), F = t.object({
337
+ }), M = t.object({
338
338
  kid: t.string().optional(),
339
339
  team_id: t.string().optional(),
340
340
  realms: t.string().optional(),
@@ -352,19 +352,19 @@ const B = t.object({
352
352
  from: t.string().optional(),
353
353
  twilio_sid: t.string().optional(),
354
354
  twilio_token: t.string().optional()
355
- }), H = t.object({
355
+ }), G = t.object({
356
356
  id: t.string().optional(),
357
357
  name: t.string(),
358
358
  strategy: t.string(),
359
- options: F.default({}),
359
+ options: M.default({}),
360
360
  enabled_clients: t.array(t.string()).default([]).optional(),
361
361
  response_type: t.custom().optional(),
362
362
  response_mode: t.custom().optional()
363
- }), K = t.object({
363
+ }), X = t.object({
364
364
  id: t.string(),
365
365
  created_at: t.string().transform((e) => e === null ? "" : e),
366
366
  updated_at: t.string().transform((e) => e === null ? "" : e)
367
- }).extend(H.shape), M = t.object({
367
+ }).extend(G.shape), W = t.object({
368
368
  name: t.string(),
369
369
  audience: t.string(),
370
370
  sender_email: t.string().email(),
@@ -375,12 +375,12 @@ const B = t.object({
375
375
  secondary_color: t.string().optional(),
376
376
  language: t.string().optional(),
377
377
  id: t.string().optional()
378
- }), G = t.object({
378
+ }), q = t.object({
379
379
  created_at: t.string().transform((e) => e === null ? "" : e),
380
380
  updated_at: t.string().transform((e) => e === null ? "" : e),
381
- ...M.shape,
381
+ ...W.shape,
382
382
  id: t.string()
383
- }), St = t.object({
383
+ }), kt = t.object({
384
384
  logoUrl: t.string(),
385
385
  loginBackgroundImage: t.string().nullish(),
386
386
  style: t.object({
@@ -399,18 +399,18 @@ const B = t.object({
399
399
  manageSubscriptionsUrl: t.string().optional()
400
400
  });
401
401
  t.object({
402
- ...I.shape,
403
- tenant: G,
404
- connections: t.array(K)
402
+ ...C.shape,
403
+ tenant: q,
404
+ connections: t.array(X)
405
405
  });
406
- const X = t.enum([
406
+ const V = t.enum([
407
407
  "password_reset",
408
408
  "email_verification",
409
409
  "otp",
410
410
  "authorization_code",
411
411
  "oauth2_state",
412
412
  "ticket"
413
- ]), W = t.object({
413
+ ]), z = t.object({
414
414
  code_id: t.string().openapi({
415
415
  description: "The code that will be used in for instance an email verification flow"
416
416
  }),
@@ -420,17 +420,17 @@ const X = t.enum([
420
420
  connection_id: t.string().optional().openapi({
421
421
  description: "The connection that the code is connected to"
422
422
  }),
423
- code_type: X,
423
+ code_type: V,
424
424
  code_verifier: t.string().optional().openapi({
425
425
  description: "The code verifier used in PKCE in outbound flows"
426
426
  }),
427
427
  expires_at: t.string(),
428
428
  used_at: t.string().optional(),
429
429
  user_id: t.string().optional()
430
- }), Et = t.object({
431
- ...W.shape,
430
+ }), Ct = t.object({
431
+ ...z.shape,
432
432
  created_at: t.string()
433
- }), q = t.object({
433
+ }), Q = t.object({
434
434
  domain: t.string(),
435
435
  custom_domain_id: t.string().optional(),
436
436
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -444,23 +444,23 @@ const X = t.enum([
444
444
  "null"
445
445
  ]).optional(),
446
446
  domain_metadata: t.record(t.string().max(255)).optional()
447
- }), V = t.object({
447
+ }), Y = t.object({
448
448
  name: t.literal("txt"),
449
449
  record: t.string(),
450
450
  domain: t.string()
451
- }), z = t.object({
452
- ...q.shape,
451
+ }), J = t.object({
452
+ ...Q.shape,
453
453
  custom_domain_id: t.string(),
454
454
  primary: t.boolean(),
455
455
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
456
456
  origin_domain_name: t.string().optional(),
457
457
  verification: t.object({
458
- methods: t.array(V)
458
+ methods: t.array(Y)
459
459
  }).optional(),
460
460
  tls_policy: t.string().optional()
461
- }), jt = z.extend({
461
+ }), Ot = J.extend({
462
462
  tenant_id: t.string()
463
- }), yt = t.object({
463
+ }), At = t.object({
464
464
  id: t.string(),
465
465
  type: t.literal("submit"),
466
466
  label: t.string(),
@@ -469,7 +469,7 @@ const X = t.enum([
469
469
  order: t.number().optional(),
470
470
  visible: t.boolean().optional().default(!0),
471
471
  customizations: t.record(t.string(), t.any()).optional()
472
- }), Q = t.discriminatedUnion("type", [
472
+ }), Z = t.discriminatedUnion("type", [
473
473
  t.object({
474
474
  id: t.string(),
475
475
  type: t.literal("RICH_TEXT"),
@@ -500,7 +500,7 @@ const X = t.enum([
500
500
  visible: t.boolean().optional().default(!0)
501
501
  })
502
502
  // Add more component types as needed
503
- ]), Y = t.object({
503
+ ]), $ = t.object({
504
504
  name: t.string().openapi({
505
505
  description: "The name of the form"
506
506
  }),
@@ -551,7 +551,7 @@ const X = t.enum([
551
551
  coordinates: t.object({ x: t.number(), y: t.number() }),
552
552
  alias: t.string().min(1).max(150).optional(),
553
553
  config: t.object({
554
- components: t.array(Q),
554
+ components: t.array(Z),
555
555
  next_node: t.string()
556
556
  })
557
557
  })
@@ -574,25 +574,48 @@ const X = t.enum([
574
574
  style: t.object({ css: t.string().optional() }).optional()
575
575
  }).openapi({
576
576
  description: "Schema for flow-based forms (matches new JSON structure)"
577
- }), It = t.object({
578
- ...r.shape,
579
- ...Y.shape,
577
+ }), vt = t.object({
578
+ ...s.shape,
579
+ ...$.shape,
580
580
  id: t.string()
581
- }), J = t.object({
582
- trigger_id: t.enum([
583
- "pre-user-signup",
584
- "post-user-registration",
585
- "post-user-login"
586
- ]),
581
+ }), m = t.enum([
582
+ "pre-user-signup",
583
+ "post-user-registration",
584
+ "post-user-login"
585
+ // Potentially other triggers specific to webhooks in the future
586
+ ]), b = t.enum([
587
+ "pre-user-signup",
588
+ "post-user-registration",
589
+ "post-user-login"
590
+ ]), l = {
587
591
  enabled: t.boolean().default(!1),
588
- url: t.string(),
589
- hook_id: t.string().optional(),
590
592
  synchronous: t.boolean().default(!1),
591
- priority: t.number().optional()
592
- }), wt = J.extend({
593
- ...r.shape,
594
- hook_id: t.string()
595
- }), Z = t.object({
593
+ priority: t.number().optional(),
594
+ hook_id: t.string().optional()
595
+ }, tt = t.object({
596
+ ...l,
597
+ trigger_id: m,
598
+ url: t.string()
599
+ }), et = t.object({
600
+ ...l,
601
+ trigger_id: b,
602
+ form_id: t.string()
603
+ }), Nt = t.union([
604
+ tt,
605
+ et
606
+ ]), nt = t.object({
607
+ ...l,
608
+ trigger_id: m,
609
+ ...s.shape,
610
+ hook_id: t.string(),
611
+ url: t.string()
612
+ }), ot = t.object({
613
+ ...l,
614
+ trigger_id: b,
615
+ ...s.shape,
616
+ hook_id: t.string(),
617
+ form_id: t.string()
618
+ }), Tt = t.union([nt, ot]), it = t.object({
596
619
  alg: t.enum([
597
620
  "RS256",
598
621
  "RS384",
@@ -611,9 +634,9 @@ const X = t.enum([
611
634
  x5t: t.string().optional(),
612
635
  x5c: t.array(t.string()).optional(),
613
636
  use: t.enum(["sig", "enc"]).optional()
614
- }), Ct = t.object({
615
- keys: t.array(Z)
616
- }), kt = t.object({
637
+ }), Ut = t.object({
638
+ keys: t.array(it)
639
+ }), Dt = t.object({
617
640
  issuer: t.string(),
618
641
  authorization_endpoint: t.string(),
619
642
  token_endpoint: t.string(),
@@ -634,10 +657,10 @@ const X = t.enum([
634
657
  request_uri_parameter_supported: t.boolean(),
635
658
  request_parameter_supported: t.boolean(),
636
659
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
637
- }), $ = t.object({
660
+ }), at = t.object({
638
661
  csrf_token: t.string(),
639
662
  auth0Client: t.string().optional(),
640
- authParams: B,
663
+ authParams: K,
641
664
  expires_at: t.string(),
642
665
  deleted_at: t.string().optional(),
643
666
  ip: t.string().optional(),
@@ -646,16 +669,16 @@ const X = t.enum([
646
669
  authorization_url: t.string().optional()
647
670
  }).openapi({
648
671
  description: "This represents a login sesion"
649
- }), Ot = t.object({
650
- ...$.shape,
672
+ }), xt = t.object({
673
+ ...at.shape,
651
674
  id: t.string().openapi({
652
675
  description: "This is is used as the state in the universal login"
653
676
  }),
654
677
  created_at: t.string(),
655
678
  updated_at: t.string()
656
679
  });
657
- var tt = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(tt || {});
658
- const et = t.enum([
680
+ var st = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(st || {});
681
+ const rt = t.enum([
659
682
  "cls",
660
683
  // CODE_LINK_SENT
661
684
  "fsa",
@@ -704,14 +727,14 @@ const et = t.enum([
704
727
  // SUCCESS_VERIFICATION_EMAIL
705
728
  "svr"
706
729
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
707
- ]), nt = t.object({
730
+ ]), lt = t.object({
708
731
  name: t.string(),
709
732
  version: t.string(),
710
733
  env: t.object({
711
734
  node: t.string().optional()
712
735
  }).optional()
713
- }), vt = t.object({
714
- type: et,
736
+ }), Rt = t.object({
737
+ type: rt,
715
738
  date: t.string(),
716
739
  description: t.string().optional(),
717
740
  log_id: t.string().optional(),
@@ -732,40 +755,40 @@ const et = t.enum([
732
755
  strategy: t.string().optional(),
733
756
  strategy_type: t.string().optional(),
734
757
  hostname: t.string().optional(),
735
- auth0_client: nt.optional()
736
- }), it = t.object({
758
+ auth0_client: lt.optional()
759
+ }), ct = t.object({
737
760
  user_id: t.string(),
738
761
  password: t.string(),
739
762
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
740
- }), At = t.object({
741
- ...it.shape,
763
+ }), Lt = t.object({
764
+ ...ct.shape,
742
765
  created_at: t.string(),
743
766
  updated_at: t.string()
744
- }), _ = t.object({
767
+ }), h = t.object({
745
768
  initial_user_agent: t.string().describe("First user agent of the device from which this user logged in"),
746
769
  initial_ip: t.string().describe("First IP address associated with this session"),
747
770
  initial_asn: t.string().describe("First autonomous system number associated with this session"),
748
771
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
749
772
  last_ip: t.string().describe("Last IP address from which this user logged in"),
750
773
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
751
- }), ot = t.object({
774
+ }), pt = t.object({
752
775
  id: t.string(),
753
776
  revoked_at: t.string().optional(),
754
777
  used_at: t.string().optional(),
755
778
  user_id: t.string().describe("The user ID associated with the session"),
756
779
  expires_at: t.string().optional(),
757
780
  idle_expires_at: t.string().optional(),
758
- device: _.describe(
781
+ device: h.describe(
759
782
  "Metadata related to the device used in the session"
760
783
  ),
761
784
  clients: t.array(t.string()).describe("List of client details for the session")
762
- }), Nt = t.object({
785
+ }), Pt = t.object({
763
786
  created_at: t.string(),
764
787
  updated_at: t.string(),
765
788
  authenticated_at: t.string(),
766
789
  last_interaction_at: t.string(),
767
- ...ot.shape
768
- }), Tt = t.object({
790
+ ...pt.shape
791
+ }), Bt = t.object({
769
792
  kid: t.string().openapi({ description: "The key id of the signing key" }),
770
793
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
771
794
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -785,8 +808,8 @@ const et = t.enum([
785
808
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
786
809
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
787
810
  });
788
- var at = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(at || {});
789
- const Ut = t.object({
811
+ var gt = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(gt || {});
812
+ const Ht = t.object({
790
813
  access_token: t.string(),
791
814
  id_token: t.string().optional(),
792
815
  scope: t.string().optional(),
@@ -799,7 +822,7 @@ t.object({
799
822
  code: t.string(),
800
823
  state: t.string().optional()
801
824
  });
802
- const st = t.object({
825
+ const dt = t.object({
803
826
  button_border_radius: t.number(),
804
827
  button_border_weight: t.number(),
805
828
  buttons_style: t.enum(["pill"]),
@@ -809,7 +832,7 @@ const st = t.object({
809
832
  show_widget_shadow: t.boolean(),
810
833
  widget_border_weight: t.number(),
811
834
  widget_corner_radius: t.number()
812
- }), rt = t.object({
835
+ }), ut = t.object({
813
836
  base_focus_color: t.string(),
814
837
  base_hover_color: t.string(),
815
838
  body_text: t.string(),
@@ -832,7 +855,7 @@ const st = t.object({
832
855
  }), n = t.object({
833
856
  bold: t.boolean(),
834
857
  size: t.number()
835
- }), lt = t.object({
858
+ }), _t = t.object({
836
859
  body_text: n,
837
860
  buttons_text: n,
838
861
  font_url: t.string(),
@@ -842,31 +865,31 @@ const st = t.object({
842
865
  reference_text_size: t.number(),
843
866
  subtitle: n,
844
867
  title: n
845
- }), ct = t.object({
868
+ }), mt = t.object({
846
869
  background_color: t.string(),
847
870
  background_image_url: t.string(),
848
871
  page_layout: t.enum(["center"])
849
- }), pt = t.object({
872
+ }), bt = t.object({
850
873
  header_text_alignment: t.enum(["center"]),
851
874
  logo_height: t.number(),
852
875
  logo_position: t.enum(["center"]),
853
876
  logo_url: t.string(),
854
877
  social_buttons_layout: t.enum(["bottom"])
855
- }), gt = t.object({
856
- borders: st,
857
- colors: rt,
878
+ }), ht = t.object({
879
+ borders: dt,
880
+ colors: ut,
858
881
  displayName: t.string(),
859
- fonts: lt,
860
- page_background: ct,
861
- widget: pt
862
- }), xt = gt.extend({
882
+ fonts: _t,
883
+ page_background: mt,
884
+ widget: bt
885
+ }), Ft = ht.extend({
863
886
  themeId: t.string()
864
- }), Dt = t.object({
887
+ }), Kt = t.object({
865
888
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
866
889
  identifier_first: t.boolean().default(!0),
867
890
  password_first: t.boolean().default(!1),
868
891
  webauthn_platform_first_factor: t.boolean()
869
- }), Rt = t.object({
892
+ }), Mt = t.object({
870
893
  name: t.string(),
871
894
  enabled: t.boolean().optional().default(!0),
872
895
  default_from_address: t.string().optional(),
@@ -896,7 +919,7 @@ const st = t.object({
896
919
  })
897
920
  ]),
898
921
  settings: t.object({}).optional()
899
- }), dt = t.object({
922
+ }), ft = t.object({
900
923
  // The actual refresh token value (primary key).
901
924
  id: t.string(),
902
925
  // Link to the session record
@@ -909,7 +932,7 @@ const st = t.object({
909
932
  idle_expires_at: t.string().optional(),
910
933
  // When the token was last used.
911
934
  last_exchanged_at: t.string().optional(),
912
- device: _,
935
+ device: h,
913
936
  resource_servers: t.array(
914
937
  t.object({
915
938
  audience: t.string(),
@@ -917,106 +940,106 @@ const st = t.object({
917
940
  })
918
941
  ),
919
942
  rotating: t.boolean()
920
- }), Lt = t.object({
943
+ }), Gt = t.object({
921
944
  // When the refresh token record was created.
922
945
  created_at: t.string(),
923
946
  // Spread in the rest of the refresh token properties.
924
- ...dt.shape
925
- }), Pt = t.object({
947
+ ...ft.shape
948
+ }), Xt = t.object({
926
949
  to: t.string(),
927
950
  message: t.string()
928
- }), Bt = t.object({
951
+ }), Wt = t.object({
929
952
  name: t.string(),
930
953
  options: t.object({})
931
954
  });
932
- function Ft(e) {
933
- const [i, a] = e.split("|");
934
- if (!i || !a)
955
+ function qt(e) {
956
+ const [o, a] = e.split("|");
957
+ if (!o || !a)
935
958
  throw new Error(`Invalid user_id: ${e}`);
936
- return { connection: i, id: a };
959
+ return { connection: o, id: a };
937
960
  }
938
961
  export {
939
- nt as Auth0Client,
940
- d as AuthorizationResponseMode,
941
- g as AuthorizationResponseType,
942
- u as CodeChallengeMethod,
943
- p as ComponentCategory,
944
- c as ComponentType,
945
- at as GrantType,
946
- tt as LogTypes,
947
- N as NodeType,
948
- y as applicationInsertSchema,
949
- I as applicationSchema,
950
- ht as auth0FlowInsertSchema,
951
- P as auth0FlowSchema,
952
- mt as auth0UserResponseSchema,
953
- B as authParamsSchema,
954
- l as baseUserSchema,
955
- st as bordersSchema,
956
- ft as brandingSchema,
957
- C as buttonComponentSchema,
958
- W as codeInsertSchema,
959
- Et as codeSchema,
960
- X as codeTypeSchema,
961
- rt as colorsSchema,
962
- A as componentSchema,
963
- H as connectionInsertSchema,
964
- F as connectionOptionsSchema,
965
- K as connectionSchema,
966
- o as coordinatesSchema,
967
- q as customDomainInsertSchema,
968
- z as customDomainSchema,
969
- jt as customDomainWithTenantIdSchema,
970
- Rt as emailProviderSchema,
971
- L as endingSchema,
972
- O as fieldComponentSchema,
973
- U as flowNodeSchema,
962
+ lt as Auth0Client,
963
+ u as AuthorizationResponseMode,
964
+ d as AuthorizationResponseType,
965
+ _ as CodeChallengeMethod,
966
+ g as ComponentCategory,
967
+ p as ComponentType,
968
+ gt as GrantType,
969
+ st as LogTypes,
970
+ D as NodeType,
971
+ k as applicationInsertSchema,
972
+ C as applicationSchema,
973
+ It as auth0FlowInsertSchema,
974
+ F as auth0FlowSchema,
975
+ jt as auth0UserResponseSchema,
976
+ K as authParamsSchema,
977
+ c as baseUserSchema,
978
+ dt as bordersSchema,
979
+ wt as brandingSchema,
980
+ A as buttonComponentSchema,
981
+ z as codeInsertSchema,
982
+ Ct as codeSchema,
983
+ V as codeTypeSchema,
984
+ ut as colorsSchema,
985
+ U as componentSchema,
986
+ G as connectionInsertSchema,
987
+ M as connectionOptionsSchema,
988
+ X as connectionSchema,
989
+ i as coordinatesSchema,
990
+ Q as customDomainInsertSchema,
991
+ J as customDomainSchema,
992
+ Ot as customDomainWithTenantIdSchema,
993
+ Mt as emailProviderSchema,
994
+ H as endingSchema,
995
+ N as fieldComponentSchema,
996
+ R as flowNodeSchema,
974
997
  n as fontDetailsSchema,
975
- lt as fontsSchema,
976
- yt as formControlSchema,
977
- Y as formInsertSchema,
978
- Q as formNodeComponentDefinition,
979
- It as formSchema,
980
- v as genericComponentSchema,
981
- x as genericNodeSchema,
982
- J as hookInsertSchema,
983
- wt as hookSchema,
984
- b as identitySchema,
985
- Ct as jwksKeySchema,
986
- Z as jwksSchema,
987
- k as legalComponentSchema,
988
- vt as logSchema,
989
- $ as loginSessionInsertSchema,
990
- Ot as loginSessionSchema,
991
- D as nodeSchema,
992
- kt as openIDConfigurationSchema,
993
- ct as pageBackgroundSchema,
994
- Ft as parseUserId,
995
- it as passwordInsertSchema,
996
- At as passwordSchema,
997
- m as profileDataSchema,
998
- Dt as promptSettingSchema,
999
- dt as refreshTokenInsertSchema,
1000
- Lt as refreshTokenSchema,
1001
- w as richTextComponentSchema,
1002
- j as samlpAddon,
1003
- ot as sessionInsertSchema,
1004
- Nt as sessionSchema,
1005
- Tt as signingKeySchema,
1006
- Bt as smsProviderSchema,
1007
- Pt as smsSendParamsSchema,
1008
- R as startSchema,
1009
- T as stepNodeSchema,
1010
- M as tenantInsertSchema,
1011
- G as tenantSchema,
1012
- gt as themeInsertSchema,
1013
- xt as themeSchema,
1014
- Ut as tokenResponseSchema,
1015
- _t as totalsSchema,
1016
- h as userInsertSchema,
1017
- bt as userResponseSchema,
1018
- f as userSchema,
1019
- St as vendorSettingsSchema,
1020
- V as verificationMethodsSchema,
1021
- pt as widgetSchema
998
+ _t as fontsSchema,
999
+ At as formControlSchema,
1000
+ $ as formInsertSchema,
1001
+ Z as formNodeComponentDefinition,
1002
+ vt as formSchema,
1003
+ T as genericComponentSchema,
1004
+ L as genericNodeSchema,
1005
+ Nt as hookInsertSchema,
1006
+ Tt as hookSchema,
1007
+ S as identitySchema,
1008
+ Ut as jwksKeySchema,
1009
+ it as jwksSchema,
1010
+ v as legalComponentSchema,
1011
+ Rt as logSchema,
1012
+ at as loginSessionInsertSchema,
1013
+ xt as loginSessionSchema,
1014
+ P as nodeSchema,
1015
+ Dt as openIDConfigurationSchema,
1016
+ mt as pageBackgroundSchema,
1017
+ qt as parseUserId,
1018
+ ct as passwordInsertSchema,
1019
+ Lt as passwordSchema,
1020
+ f as profileDataSchema,
1021
+ Kt as promptSettingSchema,
1022
+ ft as refreshTokenInsertSchema,
1023
+ Gt as refreshTokenSchema,
1024
+ O as richTextComponentSchema,
1025
+ w as samlpAddon,
1026
+ pt as sessionInsertSchema,
1027
+ Pt as sessionSchema,
1028
+ Bt as signingKeySchema,
1029
+ Wt as smsProviderSchema,
1030
+ Xt as smsSendParamsSchema,
1031
+ B as startSchema,
1032
+ x as stepNodeSchema,
1033
+ W as tenantInsertSchema,
1034
+ q as tenantSchema,
1035
+ ht as themeInsertSchema,
1036
+ Ft as themeSchema,
1037
+ Ht as tokenResponseSchema,
1038
+ Et as totalsSchema,
1039
+ E as userInsertSchema,
1040
+ yt as userResponseSchema,
1041
+ j as userSchema,
1042
+ kt as vendorSettingsSchema,
1043
+ Y as verificationMethodsSchema,
1044
+ bt as widgetSchema
1022
1045
  };
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.64.0",
14
+ "version": "0.65.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],