@authhero/adapter-interfaces 0.62.0 → 0.63.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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +118 -94
- package/dist/adapter-interfaces.mjs +51 -51
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),ct=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()}),zt=h,pt=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()),dt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let gt=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=dt[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(()=>gt()).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()}),A=t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:o,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(),T=t.z.union([O,A,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(T),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(),mt=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 R=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()}),ut=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()}),x=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:x.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()}),_t=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()}),ht=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()}),bt=W.extend({tenant_id:t.z.string()}),St=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.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),config:t.z.object({flow_id:t.z.string().max(30),next_node:t.z.array(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),condition:t.z.any(),next_node:t.z.array(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),config:t.z.object({components:t.z.array(t.z.any()),next_node:t.z.array(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.array(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)"}),ft=t.z.object({...r.shape,...X.shape,id:t.z.string()}),q=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()}),Et=q.extend({...r.shape,hook_id:t.z.string()}),V=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()}),yt=t.z.object({keys:t.z.array(V)}),It=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())}),Q=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:R,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"}),jt=t.z.object({...Q.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 Y=(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))(Y||{});const Ct=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"]),J=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),wt=t.z.object({type:Ct,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:J.optional()}),Z=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),kt=t.z.object({...Z.shape,created_at:t.z.string(),updated_at:t.z.string()}),$=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")}),tt=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:$.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")}),Ot=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...tt.shape}),At=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 et=(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))(et||{});const vt=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 nt=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()}),ot=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()}),it=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}),at=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),st=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"])}),rt=t.z.object({borders:nt,colors:ot,displayName:t.z.string(),fonts:it,page_background:at,widget:st}),Tt=rt.extend({themeId:t.z.string()}),Nt=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()}),Dt=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()}),lt=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:$,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),Ut=t.z.object({created_at:t.z.string(),...lt.shape}),Rt=t.z.object({to:t.z.string(),message:t.z.string()}),xt=t.z.object({name:t.z.string(),options:t.z.object({})});function Pt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=J;exports.AuthorizationResponseMode=d;exports.AuthorizationResponseType=p;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=et;exports.LogTypes=Y;exports.NodeType=k;exports.applicationInsertSchema=S;exports.applicationSchema=f;exports.auth0FlowInsertSchema=mt;exports.auth0FlowSchema=U;exports.auth0UserResponseSchema=zt;exports.authParamsSchema=R;exports.baseUserSchema=l;exports.bordersSchema=nt;exports.brandingSchema=ut;exports.buttonComponentSchema=y;exports.codeInsertSchema=K;exports.codeSchema=ht;exports.codeTypeSchema=H;exports.colorsSchema=ot;exports.componentSchema=w;exports.connectionInsertSchema=P;exports.connectionOptionsSchema=x;exports.connectionSchema=L;exports.coordinatesSchema=o;exports.customDomainInsertSchema=M;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=bt;exports.emailProviderSchema=Dt;exports.endingSchema=D;exports.fieldComponentSchema=j;exports.flowNodeSchema=A;exports.fontDetailsSchema=n;exports.fontsSchema=it;exports.formControlSchema=St;exports.formInsertSchema=X;exports.formSchema=ft;exports.genericComponentSchema=C;exports.genericNodeSchema=v;exports.hookInsertSchema=q;exports.hookSchema=Et;exports.identitySchema=u;exports.jwksKeySchema=yt;exports.jwksSchema=V;exports.legalComponentSchema=I;exports.logSchema=wt;exports.loginSessionInsertSchema=Q;exports.loginSessionSchema=jt;exports.nodeSchema=T;exports.openIDConfigurationSchema=It;exports.pageBackgroundSchema=at;exports.parseUserId=Pt;exports.passwordInsertSchema=Z;exports.passwordSchema=kt;exports.profileDataSchema=m;exports.promptSettingSchema=Nt;exports.refreshTokenInsertSchema=lt;exports.refreshTokenSchema=Ut;exports.richTextComponentSchema=E;exports.samlpAddon=b;exports.sessionInsertSchema=tt;exports.sessionSchema=Ot;exports.signingKeySchema=At;exports.smsProviderSchema=xt;exports.smsSendParamsSchema=Rt;exports.startSchema=N;exports.stepNodeSchema=O;exports.tenantInsertSchema=B;exports.tenantSchema=F;exports.themeInsertSchema=rt;exports.themeSchema=Tt;exports.tokenResponseSchema=vt;exports.totalsSchema=ct;exports.userInsertSchema=_;exports.userResponseSchema=pt;exports.userSchema=h;exports.vendorSettingsSchema=_t;exports.verificationMethodsSchema=G;exports.widgetSchema=st;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),ct=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()}),zt=h,pt=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()),dt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let gt=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=dt[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(()=>gt()).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()}),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(),T=t.z.union([O,A,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(T),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(),mt=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 R=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()}),ut=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()}),x=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:x.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()}),_t=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()}),ht=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()}),bt=W.extend({tenant_id:t.z.string()}),St=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.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(t.z.any()),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)"}),ft=t.z.object({...r.shape,...X.shape,id:t.z.string()}),q=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()}),Et=q.extend({...r.shape,hook_id:t.z.string()}),V=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()}),yt=t.z.object({keys:t.z.array(V)}),It=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())}),Q=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:R,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"}),jt=t.z.object({...Q.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 Y=(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))(Y||{});const Ct=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"]),J=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),wt=t.z.object({type:Ct,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:J.optional()}),Z=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),kt=t.z.object({...Z.shape,created_at:t.z.string(),updated_at:t.z.string()}),$=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")}),tt=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:$.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")}),Ot=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...tt.shape}),At=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 et=(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))(et||{});const vt=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 nt=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()}),ot=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()}),it=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}),at=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),st=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"])}),rt=t.z.object({borders:nt,colors:ot,displayName:t.z.string(),fonts:it,page_background:at,widget:st}),Tt=rt.extend({themeId:t.z.string()}),Nt=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()}),Dt=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()}),lt=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:$,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),Ut=t.z.object({created_at:t.z.string(),...lt.shape}),Rt=t.z.object({to:t.z.string(),message:t.z.string()}),xt=t.z.object({name:t.z.string(),options:t.z.object({})});function Pt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=J;exports.AuthorizationResponseMode=d;exports.AuthorizationResponseType=p;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=et;exports.LogTypes=Y;exports.NodeType=k;exports.applicationInsertSchema=S;exports.applicationSchema=f;exports.auth0FlowInsertSchema=mt;exports.auth0FlowSchema=U;exports.auth0UserResponseSchema=zt;exports.authParamsSchema=R;exports.baseUserSchema=l;exports.bordersSchema=nt;exports.brandingSchema=ut;exports.buttonComponentSchema=y;exports.codeInsertSchema=K;exports.codeSchema=ht;exports.codeTypeSchema=H;exports.colorsSchema=ot;exports.componentSchema=w;exports.connectionInsertSchema=P;exports.connectionOptionsSchema=x;exports.connectionSchema=L;exports.coordinatesSchema=o;exports.customDomainInsertSchema=M;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=bt;exports.emailProviderSchema=Dt;exports.endingSchema=D;exports.fieldComponentSchema=j;exports.flowNodeSchema=A;exports.fontDetailsSchema=n;exports.fontsSchema=it;exports.formControlSchema=St;exports.formInsertSchema=X;exports.formSchema=ft;exports.genericComponentSchema=C;exports.genericNodeSchema=v;exports.hookInsertSchema=q;exports.hookSchema=Et;exports.identitySchema=u;exports.jwksKeySchema=yt;exports.jwksSchema=V;exports.legalComponentSchema=I;exports.logSchema=wt;exports.loginSessionInsertSchema=Q;exports.loginSessionSchema=jt;exports.nodeSchema=T;exports.openIDConfigurationSchema=It;exports.pageBackgroundSchema=at;exports.parseUserId=Pt;exports.passwordInsertSchema=Z;exports.passwordSchema=kt;exports.profileDataSchema=m;exports.promptSettingSchema=Nt;exports.refreshTokenInsertSchema=lt;exports.refreshTokenSchema=Ut;exports.richTextComponentSchema=E;exports.samlpAddon=b;exports.sessionInsertSchema=tt;exports.sessionSchema=Ot;exports.signingKeySchema=At;exports.smsProviderSchema=xt;exports.smsSendParamsSchema=Rt;exports.startSchema=N;exports.stepNodeSchema=O;exports.tenantInsertSchema=B;exports.tenantSchema=F;exports.themeInsertSchema=rt;exports.themeSchema=Tt;exports.tokenResponseSchema=vt;exports.totalsSchema=ct;exports.userInsertSchema=_;exports.userResponseSchema=pt;exports.userSchema=h;exports.vendorSettingsSchema=_t;exports.verificationMethodsSchema=G;exports.widgetSchema=st;
|
|
@@ -2035,6 +2035,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2035
2035
|
x: number;
|
|
2036
2036
|
y: number;
|
|
2037
2037
|
}>;
|
|
2038
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
2038
2039
|
config: z.ZodObject<{
|
|
2039
2040
|
flow_id: z.ZodString;
|
|
2040
2041
|
next_node: z.ZodString;
|
|
@@ -2056,6 +2057,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2056
2057
|
x: number;
|
|
2057
2058
|
y: number;
|
|
2058
2059
|
};
|
|
2060
|
+
alias?: string | undefined;
|
|
2059
2061
|
}, {
|
|
2060
2062
|
type: NodeType.FLOW;
|
|
2061
2063
|
id: string;
|
|
@@ -2067,6 +2069,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2067
2069
|
x: number;
|
|
2068
2070
|
y: number;
|
|
2069
2071
|
};
|
|
2072
|
+
alias?: string | undefined;
|
|
2070
2073
|
}>;
|
|
2071
2074
|
export declare const genericNodeSchema: z.ZodObject<{
|
|
2072
2075
|
id: z.ZodString;
|
|
@@ -2775,6 +2778,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2775
2778
|
x: number;
|
|
2776
2779
|
y: number;
|
|
2777
2780
|
}>;
|
|
2781
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
2778
2782
|
config: z.ZodObject<{
|
|
2779
2783
|
flow_id: z.ZodString;
|
|
2780
2784
|
next_node: z.ZodString;
|
|
@@ -2796,6 +2800,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2796
2800
|
x: number;
|
|
2797
2801
|
y: number;
|
|
2798
2802
|
};
|
|
2803
|
+
alias?: string | undefined;
|
|
2799
2804
|
}, {
|
|
2800
2805
|
type: NodeType.FLOW;
|
|
2801
2806
|
id: string;
|
|
@@ -2807,6 +2812,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2807
2812
|
x: number;
|
|
2808
2813
|
y: number;
|
|
2809
2814
|
};
|
|
2815
|
+
alias?: string | undefined;
|
|
2810
2816
|
}>,
|
|
2811
2817
|
z.ZodObject<{
|
|
2812
2818
|
id: z.ZodString;
|
|
@@ -3606,6 +3612,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3606
3612
|
x: number;
|
|
3607
3613
|
y: number;
|
|
3608
3614
|
}>;
|
|
3615
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
3609
3616
|
config: z.ZodObject<{
|
|
3610
3617
|
flow_id: z.ZodString;
|
|
3611
3618
|
next_node: z.ZodString;
|
|
@@ -3627,6 +3634,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3627
3634
|
x: number;
|
|
3628
3635
|
y: number;
|
|
3629
3636
|
};
|
|
3637
|
+
alias?: string | undefined;
|
|
3630
3638
|
}, {
|
|
3631
3639
|
type: NodeType.FLOW;
|
|
3632
3640
|
id: string;
|
|
@@ -3638,6 +3646,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3638
3646
|
x: number;
|
|
3639
3647
|
y: number;
|
|
3640
3648
|
};
|
|
3649
|
+
alias?: string | undefined;
|
|
3641
3650
|
}>,
|
|
3642
3651
|
z.ZodObject<{
|
|
3643
3652
|
id: z.ZodString;
|
|
@@ -4443,6 +4452,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4443
4452
|
x: number;
|
|
4444
4453
|
y: number;
|
|
4445
4454
|
}>;
|
|
4455
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
4446
4456
|
config: z.ZodObject<{
|
|
4447
4457
|
flow_id: z.ZodString;
|
|
4448
4458
|
next_node: z.ZodString;
|
|
@@ -4464,6 +4474,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4464
4474
|
x: number;
|
|
4465
4475
|
y: number;
|
|
4466
4476
|
};
|
|
4477
|
+
alias?: string | undefined;
|
|
4467
4478
|
}, {
|
|
4468
4479
|
type: NodeType.FLOW;
|
|
4469
4480
|
id: string;
|
|
@@ -4475,6 +4486,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4475
4486
|
x: number;
|
|
4476
4487
|
y: number;
|
|
4477
4488
|
};
|
|
4489
|
+
alias?: string | undefined;
|
|
4478
4490
|
}>,
|
|
4479
4491
|
z.ZodObject<{
|
|
4480
4492
|
id: z.ZodString;
|
|
@@ -5280,6 +5292,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5280
5292
|
x: number;
|
|
5281
5293
|
y: number;
|
|
5282
5294
|
}>;
|
|
5295
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
5283
5296
|
config: z.ZodObject<{
|
|
5284
5297
|
flow_id: z.ZodString;
|
|
5285
5298
|
next_node: z.ZodString;
|
|
@@ -5301,6 +5314,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5301
5314
|
x: number;
|
|
5302
5315
|
y: number;
|
|
5303
5316
|
};
|
|
5317
|
+
alias?: string | undefined;
|
|
5304
5318
|
}, {
|
|
5305
5319
|
type: NodeType.FLOW;
|
|
5306
5320
|
id: string;
|
|
@@ -5312,6 +5326,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5312
5326
|
x: number;
|
|
5313
5327
|
y: number;
|
|
5314
5328
|
};
|
|
5329
|
+
alias?: string | undefined;
|
|
5315
5330
|
}>,
|
|
5316
5331
|
z.ZodObject<{
|
|
5317
5332
|
id: z.ZodString;
|
|
@@ -6119,6 +6134,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6119
6134
|
x: number;
|
|
6120
6135
|
y: number;
|
|
6121
6136
|
}>;
|
|
6137
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6122
6138
|
config: z.ZodObject<{
|
|
6123
6139
|
flow_id: z.ZodString;
|
|
6124
6140
|
next_node: z.ZodString;
|
|
@@ -6140,6 +6156,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6140
6156
|
x: number;
|
|
6141
6157
|
y: number;
|
|
6142
6158
|
};
|
|
6159
|
+
alias?: string | undefined;
|
|
6143
6160
|
}, {
|
|
6144
6161
|
type: NodeType.FLOW;
|
|
6145
6162
|
id: string;
|
|
@@ -6151,6 +6168,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6151
6168
|
x: number;
|
|
6152
6169
|
y: number;
|
|
6153
6170
|
};
|
|
6171
|
+
alias?: string | undefined;
|
|
6154
6172
|
}>,
|
|
6155
6173
|
z.ZodObject<{
|
|
6156
6174
|
id: z.ZodString;
|
|
@@ -6956,6 +6974,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6956
6974
|
x: number;
|
|
6957
6975
|
y: number;
|
|
6958
6976
|
}>;
|
|
6977
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6959
6978
|
config: z.ZodObject<{
|
|
6960
6979
|
flow_id: z.ZodString;
|
|
6961
6980
|
next_node: z.ZodString;
|
|
@@ -6977,6 +6996,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6977
6996
|
x: number;
|
|
6978
6997
|
y: number;
|
|
6979
6998
|
};
|
|
6999
|
+
alias?: string | undefined;
|
|
6980
7000
|
}, {
|
|
6981
7001
|
type: NodeType.FLOW;
|
|
6982
7002
|
id: string;
|
|
@@ -6988,6 +7008,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6988
7008
|
x: number;
|
|
6989
7009
|
y: number;
|
|
6990
7010
|
};
|
|
7011
|
+
alias?: string | undefined;
|
|
6991
7012
|
}>,
|
|
6992
7013
|
z.ZodObject<{
|
|
6993
7014
|
id: z.ZodString;
|
|
@@ -7793,6 +7814,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7793
7814
|
x: number;
|
|
7794
7815
|
y: number;
|
|
7795
7816
|
}>;
|
|
7817
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
7796
7818
|
config: z.ZodObject<{
|
|
7797
7819
|
flow_id: z.ZodString;
|
|
7798
7820
|
next_node: z.ZodString;
|
|
@@ -7814,6 +7836,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7814
7836
|
x: number;
|
|
7815
7837
|
y: number;
|
|
7816
7838
|
};
|
|
7839
|
+
alias?: string | undefined;
|
|
7817
7840
|
}, {
|
|
7818
7841
|
type: NodeType.FLOW;
|
|
7819
7842
|
id: string;
|
|
@@ -7825,6 +7848,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7825
7848
|
x: number;
|
|
7826
7849
|
y: number;
|
|
7827
7850
|
};
|
|
7851
|
+
alias?: string | undefined;
|
|
7828
7852
|
}>,
|
|
7829
7853
|
z.ZodObject<{
|
|
7830
7854
|
id: z.ZodString;
|
|
@@ -9232,41 +9256,41 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9232
9256
|
x: number;
|
|
9233
9257
|
y: number;
|
|
9234
9258
|
}>;
|
|
9235
|
-
alias: z.ZodString
|
|
9259
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9236
9260
|
config: z.ZodObject<{
|
|
9237
9261
|
flow_id: z.ZodString;
|
|
9238
|
-
next_node: z.
|
|
9262
|
+
next_node: z.ZodString;
|
|
9239
9263
|
}, "strip", z.ZodTypeAny, {
|
|
9240
|
-
next_node: string
|
|
9264
|
+
next_node: string;
|
|
9241
9265
|
flow_id: string;
|
|
9242
9266
|
}, {
|
|
9243
|
-
next_node: string
|
|
9267
|
+
next_node: string;
|
|
9244
9268
|
flow_id: string;
|
|
9245
9269
|
}>;
|
|
9246
9270
|
}, "strip", z.ZodTypeAny, {
|
|
9247
9271
|
type: "FLOW";
|
|
9248
9272
|
id: string;
|
|
9249
9273
|
config: {
|
|
9250
|
-
next_node: string
|
|
9274
|
+
next_node: string;
|
|
9251
9275
|
flow_id: string;
|
|
9252
9276
|
};
|
|
9253
9277
|
coordinates: {
|
|
9254
9278
|
x: number;
|
|
9255
9279
|
y: number;
|
|
9256
9280
|
};
|
|
9257
|
-
alias
|
|
9281
|
+
alias?: string | undefined;
|
|
9258
9282
|
}, {
|
|
9259
9283
|
type: "FLOW";
|
|
9260
9284
|
id: string;
|
|
9261
9285
|
config: {
|
|
9262
|
-
next_node: string
|
|
9286
|
+
next_node: string;
|
|
9263
9287
|
flow_id: string;
|
|
9264
9288
|
};
|
|
9265
9289
|
coordinates: {
|
|
9266
9290
|
x: number;
|
|
9267
9291
|
y: number;
|
|
9268
9292
|
};
|
|
9269
|
-
alias
|
|
9293
|
+
alias?: string | undefined;
|
|
9270
9294
|
}>,
|
|
9271
9295
|
z.ZodObject<{
|
|
9272
9296
|
id: z.ZodString;
|
|
@@ -9285,34 +9309,34 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9285
9309
|
config: z.ZodObject<{
|
|
9286
9310
|
rules: z.ZodArray<z.ZodObject<{
|
|
9287
9311
|
id: z.ZodString;
|
|
9288
|
-
alias: z.ZodString
|
|
9312
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9289
9313
|
condition: z.ZodAny;
|
|
9290
|
-
next_node: z.
|
|
9314
|
+
next_node: z.ZodString;
|
|
9291
9315
|
}, "strip", z.ZodTypeAny, {
|
|
9292
9316
|
id: string;
|
|
9293
|
-
|
|
9294
|
-
|
|
9317
|
+
next_node: string;
|
|
9318
|
+
alias?: string | undefined;
|
|
9295
9319
|
condition?: any;
|
|
9296
9320
|
}, {
|
|
9297
9321
|
id: string;
|
|
9298
|
-
|
|
9299
|
-
|
|
9322
|
+
next_node: string;
|
|
9323
|
+
alias?: string | undefined;
|
|
9300
9324
|
condition?: any;
|
|
9301
9325
|
}>, "many">;
|
|
9302
9326
|
fallback: z.ZodArray<z.ZodString, "many">;
|
|
9303
9327
|
}, "strip", z.ZodTypeAny, {
|
|
9304
9328
|
rules: {
|
|
9305
9329
|
id: string;
|
|
9306
|
-
|
|
9307
|
-
|
|
9330
|
+
next_node: string;
|
|
9331
|
+
alias?: string | undefined;
|
|
9308
9332
|
condition?: any;
|
|
9309
9333
|
}[];
|
|
9310
9334
|
fallback: string[];
|
|
9311
9335
|
}, {
|
|
9312
9336
|
rules: {
|
|
9313
9337
|
id: string;
|
|
9314
|
-
|
|
9315
|
-
|
|
9338
|
+
next_node: string;
|
|
9339
|
+
alias?: string | undefined;
|
|
9316
9340
|
condition?: any;
|
|
9317
9341
|
}[];
|
|
9318
9342
|
fallback: string[];
|
|
@@ -9323,8 +9347,8 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9323
9347
|
config: {
|
|
9324
9348
|
rules: {
|
|
9325
9349
|
id: string;
|
|
9326
|
-
|
|
9327
|
-
|
|
9350
|
+
next_node: string;
|
|
9351
|
+
alias?: string | undefined;
|
|
9328
9352
|
condition?: any;
|
|
9329
9353
|
}[];
|
|
9330
9354
|
fallback: string[];
|
|
@@ -9340,8 +9364,8 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9340
9364
|
config: {
|
|
9341
9365
|
rules: {
|
|
9342
9366
|
id: string;
|
|
9343
|
-
|
|
9344
|
-
|
|
9367
|
+
next_node: string;
|
|
9368
|
+
alias?: string | undefined;
|
|
9345
9369
|
condition?: any;
|
|
9346
9370
|
}[];
|
|
9347
9371
|
fallback: string[];
|
|
@@ -9365,41 +9389,41 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9365
9389
|
x: number;
|
|
9366
9390
|
y: number;
|
|
9367
9391
|
}>;
|
|
9368
|
-
alias: z.ZodString
|
|
9392
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9369
9393
|
config: z.ZodObject<{
|
|
9370
9394
|
components: z.ZodArray<z.ZodAny, "many">;
|
|
9371
|
-
next_node: z.
|
|
9395
|
+
next_node: z.ZodString;
|
|
9372
9396
|
}, "strip", z.ZodTypeAny, {
|
|
9373
9397
|
components: any[];
|
|
9374
|
-
next_node: string
|
|
9398
|
+
next_node: string;
|
|
9375
9399
|
}, {
|
|
9376
9400
|
components: any[];
|
|
9377
|
-
next_node: string
|
|
9401
|
+
next_node: string;
|
|
9378
9402
|
}>;
|
|
9379
9403
|
}, "strip", z.ZodTypeAny, {
|
|
9380
9404
|
type: "STEP";
|
|
9381
9405
|
id: string;
|
|
9382
9406
|
config: {
|
|
9383
9407
|
components: any[];
|
|
9384
|
-
next_node: string
|
|
9408
|
+
next_node: string;
|
|
9385
9409
|
};
|
|
9386
9410
|
coordinates: {
|
|
9387
9411
|
x: number;
|
|
9388
9412
|
y: number;
|
|
9389
9413
|
};
|
|
9390
|
-
alias
|
|
9414
|
+
alias?: string | undefined;
|
|
9391
9415
|
}, {
|
|
9392
9416
|
type: "STEP";
|
|
9393
9417
|
id: string;
|
|
9394
9418
|
config: {
|
|
9395
9419
|
components: any[];
|
|
9396
|
-
next_node: string
|
|
9420
|
+
next_node: string;
|
|
9397
9421
|
};
|
|
9398
9422
|
coordinates: {
|
|
9399
9423
|
x: number;
|
|
9400
9424
|
y: number;
|
|
9401
9425
|
};
|
|
9402
|
-
alias
|
|
9426
|
+
alias?: string | undefined;
|
|
9403
9427
|
}>
|
|
9404
9428
|
]>, "many">>;
|
|
9405
9429
|
start: z.ZodOptional<z.ZodObject<{
|
|
@@ -9413,7 +9437,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9413
9437
|
value: string;
|
|
9414
9438
|
key: string;
|
|
9415
9439
|
}>, "many">>;
|
|
9416
|
-
next_node: z.ZodOptional<z.
|
|
9440
|
+
next_node: z.ZodOptional<z.ZodString>;
|
|
9417
9441
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
9418
9442
|
x: z.ZodNumber;
|
|
9419
9443
|
y: z.ZodNumber;
|
|
@@ -9429,7 +9453,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9429
9453
|
x: number;
|
|
9430
9454
|
y: number;
|
|
9431
9455
|
} | undefined;
|
|
9432
|
-
next_node?: string
|
|
9456
|
+
next_node?: string | undefined;
|
|
9433
9457
|
hidden_fields?: {
|
|
9434
9458
|
value: string;
|
|
9435
9459
|
key: string;
|
|
@@ -9439,7 +9463,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9439
9463
|
x: number;
|
|
9440
9464
|
y: number;
|
|
9441
9465
|
} | undefined;
|
|
9442
|
-
next_node?: string
|
|
9466
|
+
next_node?: string | undefined;
|
|
9443
9467
|
hidden_fields?: {
|
|
9444
9468
|
value: string;
|
|
9445
9469
|
key: string;
|
|
@@ -9515,7 +9539,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9515
9539
|
x: number;
|
|
9516
9540
|
y: number;
|
|
9517
9541
|
} | undefined;
|
|
9518
|
-
next_node?: string
|
|
9542
|
+
next_node?: string | undefined;
|
|
9519
9543
|
hidden_fields?: {
|
|
9520
9544
|
value: string;
|
|
9521
9545
|
key: string;
|
|
@@ -9532,22 +9556,22 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9532
9556
|
type: "FLOW";
|
|
9533
9557
|
id: string;
|
|
9534
9558
|
config: {
|
|
9535
|
-
next_node: string
|
|
9559
|
+
next_node: string;
|
|
9536
9560
|
flow_id: string;
|
|
9537
9561
|
};
|
|
9538
9562
|
coordinates: {
|
|
9539
9563
|
x: number;
|
|
9540
9564
|
y: number;
|
|
9541
9565
|
};
|
|
9542
|
-
alias
|
|
9566
|
+
alias?: string | undefined;
|
|
9543
9567
|
} | {
|
|
9544
9568
|
type: "ROUTER";
|
|
9545
9569
|
id: string;
|
|
9546
9570
|
config: {
|
|
9547
9571
|
rules: {
|
|
9548
9572
|
id: string;
|
|
9549
|
-
|
|
9550
|
-
|
|
9573
|
+
next_node: string;
|
|
9574
|
+
alias?: string | undefined;
|
|
9551
9575
|
condition?: any;
|
|
9552
9576
|
}[];
|
|
9553
9577
|
fallback: string[];
|
|
@@ -9562,13 +9586,13 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9562
9586
|
id: string;
|
|
9563
9587
|
config: {
|
|
9564
9588
|
components: any[];
|
|
9565
|
-
next_node: string
|
|
9589
|
+
next_node: string;
|
|
9566
9590
|
};
|
|
9567
9591
|
coordinates: {
|
|
9568
9592
|
x: number;
|
|
9569
9593
|
y: number;
|
|
9570
9594
|
};
|
|
9571
|
-
alias
|
|
9595
|
+
alias?: string | undefined;
|
|
9572
9596
|
})[] | undefined;
|
|
9573
9597
|
ending?: {
|
|
9574
9598
|
coordinates?: {
|
|
@@ -9596,7 +9620,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9596
9620
|
x: number;
|
|
9597
9621
|
y: number;
|
|
9598
9622
|
} | undefined;
|
|
9599
|
-
next_node?: string
|
|
9623
|
+
next_node?: string | undefined;
|
|
9600
9624
|
hidden_fields?: {
|
|
9601
9625
|
value: string;
|
|
9602
9626
|
key: string;
|
|
@@ -9613,22 +9637,22 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9613
9637
|
type: "FLOW";
|
|
9614
9638
|
id: string;
|
|
9615
9639
|
config: {
|
|
9616
|
-
next_node: string
|
|
9640
|
+
next_node: string;
|
|
9617
9641
|
flow_id: string;
|
|
9618
9642
|
};
|
|
9619
9643
|
coordinates: {
|
|
9620
9644
|
x: number;
|
|
9621
9645
|
y: number;
|
|
9622
9646
|
};
|
|
9623
|
-
alias
|
|
9647
|
+
alias?: string | undefined;
|
|
9624
9648
|
} | {
|
|
9625
9649
|
type: "ROUTER";
|
|
9626
9650
|
id: string;
|
|
9627
9651
|
config: {
|
|
9628
9652
|
rules: {
|
|
9629
9653
|
id: string;
|
|
9630
|
-
|
|
9631
|
-
|
|
9654
|
+
next_node: string;
|
|
9655
|
+
alias?: string | undefined;
|
|
9632
9656
|
condition?: any;
|
|
9633
9657
|
}[];
|
|
9634
9658
|
fallback: string[];
|
|
@@ -9643,13 +9667,13 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9643
9667
|
id: string;
|
|
9644
9668
|
config: {
|
|
9645
9669
|
components: any[];
|
|
9646
|
-
next_node: string
|
|
9670
|
+
next_node: string;
|
|
9647
9671
|
};
|
|
9648
9672
|
coordinates: {
|
|
9649
9673
|
x: number;
|
|
9650
9674
|
y: number;
|
|
9651
9675
|
};
|
|
9652
|
-
alias
|
|
9676
|
+
alias?: string | undefined;
|
|
9653
9677
|
})[] | undefined;
|
|
9654
9678
|
ending?: {
|
|
9655
9679
|
coordinates?: {
|
|
@@ -9713,41 +9737,41 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9713
9737
|
x: number;
|
|
9714
9738
|
y: number;
|
|
9715
9739
|
}>;
|
|
9716
|
-
alias: z.ZodString
|
|
9740
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9717
9741
|
config: z.ZodObject<{
|
|
9718
9742
|
flow_id: z.ZodString;
|
|
9719
|
-
next_node: z.
|
|
9743
|
+
next_node: z.ZodString;
|
|
9720
9744
|
}, "strip", z.ZodTypeAny, {
|
|
9721
|
-
next_node: string
|
|
9745
|
+
next_node: string;
|
|
9722
9746
|
flow_id: string;
|
|
9723
9747
|
}, {
|
|
9724
|
-
next_node: string
|
|
9748
|
+
next_node: string;
|
|
9725
9749
|
flow_id: string;
|
|
9726
9750
|
}>;
|
|
9727
9751
|
}, "strip", z.ZodTypeAny, {
|
|
9728
9752
|
type: "FLOW";
|
|
9729
9753
|
id: string;
|
|
9730
9754
|
config: {
|
|
9731
|
-
next_node: string
|
|
9755
|
+
next_node: string;
|
|
9732
9756
|
flow_id: string;
|
|
9733
9757
|
};
|
|
9734
9758
|
coordinates: {
|
|
9735
9759
|
x: number;
|
|
9736
9760
|
y: number;
|
|
9737
9761
|
};
|
|
9738
|
-
alias
|
|
9762
|
+
alias?: string | undefined;
|
|
9739
9763
|
}, {
|
|
9740
9764
|
type: "FLOW";
|
|
9741
9765
|
id: string;
|
|
9742
9766
|
config: {
|
|
9743
|
-
next_node: string
|
|
9767
|
+
next_node: string;
|
|
9744
9768
|
flow_id: string;
|
|
9745
9769
|
};
|
|
9746
9770
|
coordinates: {
|
|
9747
9771
|
x: number;
|
|
9748
9772
|
y: number;
|
|
9749
9773
|
};
|
|
9750
|
-
alias
|
|
9774
|
+
alias?: string | undefined;
|
|
9751
9775
|
}>,
|
|
9752
9776
|
z.ZodObject<{
|
|
9753
9777
|
id: z.ZodString;
|
|
@@ -9766,34 +9790,34 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9766
9790
|
config: z.ZodObject<{
|
|
9767
9791
|
rules: z.ZodArray<z.ZodObject<{
|
|
9768
9792
|
id: z.ZodString;
|
|
9769
|
-
alias: z.ZodString
|
|
9793
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9770
9794
|
condition: z.ZodAny;
|
|
9771
|
-
next_node: z.
|
|
9795
|
+
next_node: z.ZodString;
|
|
9772
9796
|
}, "strip", z.ZodTypeAny, {
|
|
9773
9797
|
id: string;
|
|
9774
|
-
|
|
9775
|
-
|
|
9798
|
+
next_node: string;
|
|
9799
|
+
alias?: string | undefined;
|
|
9776
9800
|
condition?: any;
|
|
9777
9801
|
}, {
|
|
9778
9802
|
id: string;
|
|
9779
|
-
|
|
9780
|
-
|
|
9803
|
+
next_node: string;
|
|
9804
|
+
alias?: string | undefined;
|
|
9781
9805
|
condition?: any;
|
|
9782
9806
|
}>, "many">;
|
|
9783
9807
|
fallback: z.ZodArray<z.ZodString, "many">;
|
|
9784
9808
|
}, "strip", z.ZodTypeAny, {
|
|
9785
9809
|
rules: {
|
|
9786
9810
|
id: string;
|
|
9787
|
-
|
|
9788
|
-
|
|
9811
|
+
next_node: string;
|
|
9812
|
+
alias?: string | undefined;
|
|
9789
9813
|
condition?: any;
|
|
9790
9814
|
}[];
|
|
9791
9815
|
fallback: string[];
|
|
9792
9816
|
}, {
|
|
9793
9817
|
rules: {
|
|
9794
9818
|
id: string;
|
|
9795
|
-
|
|
9796
|
-
|
|
9819
|
+
next_node: string;
|
|
9820
|
+
alias?: string | undefined;
|
|
9797
9821
|
condition?: any;
|
|
9798
9822
|
}[];
|
|
9799
9823
|
fallback: string[];
|
|
@@ -9804,8 +9828,8 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9804
9828
|
config: {
|
|
9805
9829
|
rules: {
|
|
9806
9830
|
id: string;
|
|
9807
|
-
|
|
9808
|
-
|
|
9831
|
+
next_node: string;
|
|
9832
|
+
alias?: string | undefined;
|
|
9809
9833
|
condition?: any;
|
|
9810
9834
|
}[];
|
|
9811
9835
|
fallback: string[];
|
|
@@ -9821,8 +9845,8 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9821
9845
|
config: {
|
|
9822
9846
|
rules: {
|
|
9823
9847
|
id: string;
|
|
9824
|
-
|
|
9825
|
-
|
|
9848
|
+
next_node: string;
|
|
9849
|
+
alias?: string | undefined;
|
|
9826
9850
|
condition?: any;
|
|
9827
9851
|
}[];
|
|
9828
9852
|
fallback: string[];
|
|
@@ -9846,41 +9870,41 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9846
9870
|
x: number;
|
|
9847
9871
|
y: number;
|
|
9848
9872
|
}>;
|
|
9849
|
-
alias: z.ZodString
|
|
9873
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9850
9874
|
config: z.ZodObject<{
|
|
9851
9875
|
components: z.ZodArray<z.ZodAny, "many">;
|
|
9852
|
-
next_node: z.
|
|
9876
|
+
next_node: z.ZodString;
|
|
9853
9877
|
}, "strip", z.ZodTypeAny, {
|
|
9854
9878
|
components: any[];
|
|
9855
|
-
next_node: string
|
|
9879
|
+
next_node: string;
|
|
9856
9880
|
}, {
|
|
9857
9881
|
components: any[];
|
|
9858
|
-
next_node: string
|
|
9882
|
+
next_node: string;
|
|
9859
9883
|
}>;
|
|
9860
9884
|
}, "strip", z.ZodTypeAny, {
|
|
9861
9885
|
type: "STEP";
|
|
9862
9886
|
id: string;
|
|
9863
9887
|
config: {
|
|
9864
9888
|
components: any[];
|
|
9865
|
-
next_node: string
|
|
9889
|
+
next_node: string;
|
|
9866
9890
|
};
|
|
9867
9891
|
coordinates: {
|
|
9868
9892
|
x: number;
|
|
9869
9893
|
y: number;
|
|
9870
9894
|
};
|
|
9871
|
-
alias
|
|
9895
|
+
alias?: string | undefined;
|
|
9872
9896
|
}, {
|
|
9873
9897
|
type: "STEP";
|
|
9874
9898
|
id: string;
|
|
9875
9899
|
config: {
|
|
9876
9900
|
components: any[];
|
|
9877
|
-
next_node: string
|
|
9901
|
+
next_node: string;
|
|
9878
9902
|
};
|
|
9879
9903
|
coordinates: {
|
|
9880
9904
|
x: number;
|
|
9881
9905
|
y: number;
|
|
9882
9906
|
};
|
|
9883
|
-
alias
|
|
9907
|
+
alias?: string | undefined;
|
|
9884
9908
|
}>
|
|
9885
9909
|
]>, "many">>;
|
|
9886
9910
|
start: z.ZodOptional<z.ZodObject<{
|
|
@@ -9894,7 +9918,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9894
9918
|
value: string;
|
|
9895
9919
|
key: string;
|
|
9896
9920
|
}>, "many">>;
|
|
9897
|
-
next_node: z.ZodOptional<z.
|
|
9921
|
+
next_node: z.ZodOptional<z.ZodString>;
|
|
9898
9922
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
9899
9923
|
x: z.ZodNumber;
|
|
9900
9924
|
y: z.ZodNumber;
|
|
@@ -9910,7 +9934,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9910
9934
|
x: number;
|
|
9911
9935
|
y: number;
|
|
9912
9936
|
} | undefined;
|
|
9913
|
-
next_node?: string
|
|
9937
|
+
next_node?: string | undefined;
|
|
9914
9938
|
hidden_fields?: {
|
|
9915
9939
|
value: string;
|
|
9916
9940
|
key: string;
|
|
@@ -9920,7 +9944,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9920
9944
|
x: number;
|
|
9921
9945
|
y: number;
|
|
9922
9946
|
} | undefined;
|
|
9923
|
-
next_node?: string
|
|
9947
|
+
next_node?: string | undefined;
|
|
9924
9948
|
hidden_fields?: {
|
|
9925
9949
|
value: string;
|
|
9926
9950
|
key: string;
|
|
@@ -10001,7 +10025,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10001
10025
|
x: number;
|
|
10002
10026
|
y: number;
|
|
10003
10027
|
} | undefined;
|
|
10004
|
-
next_node?: string
|
|
10028
|
+
next_node?: string | undefined;
|
|
10005
10029
|
hidden_fields?: {
|
|
10006
10030
|
value: string;
|
|
10007
10031
|
key: string;
|
|
@@ -10018,22 +10042,22 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10018
10042
|
type: "FLOW";
|
|
10019
10043
|
id: string;
|
|
10020
10044
|
config: {
|
|
10021
|
-
next_node: string
|
|
10045
|
+
next_node: string;
|
|
10022
10046
|
flow_id: string;
|
|
10023
10047
|
};
|
|
10024
10048
|
coordinates: {
|
|
10025
10049
|
x: number;
|
|
10026
10050
|
y: number;
|
|
10027
10051
|
};
|
|
10028
|
-
alias
|
|
10052
|
+
alias?: string | undefined;
|
|
10029
10053
|
} | {
|
|
10030
10054
|
type: "ROUTER";
|
|
10031
10055
|
id: string;
|
|
10032
10056
|
config: {
|
|
10033
10057
|
rules: {
|
|
10034
10058
|
id: string;
|
|
10035
|
-
|
|
10036
|
-
|
|
10059
|
+
next_node: string;
|
|
10060
|
+
alias?: string | undefined;
|
|
10037
10061
|
condition?: any;
|
|
10038
10062
|
}[];
|
|
10039
10063
|
fallback: string[];
|
|
@@ -10048,13 +10072,13 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10048
10072
|
id: string;
|
|
10049
10073
|
config: {
|
|
10050
10074
|
components: any[];
|
|
10051
|
-
next_node: string
|
|
10075
|
+
next_node: string;
|
|
10052
10076
|
};
|
|
10053
10077
|
coordinates: {
|
|
10054
10078
|
x: number;
|
|
10055
10079
|
y: number;
|
|
10056
10080
|
};
|
|
10057
|
-
alias
|
|
10081
|
+
alias?: string | undefined;
|
|
10058
10082
|
})[] | undefined;
|
|
10059
10083
|
ending?: {
|
|
10060
10084
|
coordinates?: {
|
|
@@ -10085,7 +10109,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10085
10109
|
x: number;
|
|
10086
10110
|
y: number;
|
|
10087
10111
|
} | undefined;
|
|
10088
|
-
next_node?: string
|
|
10112
|
+
next_node?: string | undefined;
|
|
10089
10113
|
hidden_fields?: {
|
|
10090
10114
|
value: string;
|
|
10091
10115
|
key: string;
|
|
@@ -10102,22 +10126,22 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10102
10126
|
type: "FLOW";
|
|
10103
10127
|
id: string;
|
|
10104
10128
|
config: {
|
|
10105
|
-
next_node: string
|
|
10129
|
+
next_node: string;
|
|
10106
10130
|
flow_id: string;
|
|
10107
10131
|
};
|
|
10108
10132
|
coordinates: {
|
|
10109
10133
|
x: number;
|
|
10110
10134
|
y: number;
|
|
10111
10135
|
};
|
|
10112
|
-
alias
|
|
10136
|
+
alias?: string | undefined;
|
|
10113
10137
|
} | {
|
|
10114
10138
|
type: "ROUTER";
|
|
10115
10139
|
id: string;
|
|
10116
10140
|
config: {
|
|
10117
10141
|
rules: {
|
|
10118
10142
|
id: string;
|
|
10119
|
-
|
|
10120
|
-
|
|
10143
|
+
next_node: string;
|
|
10144
|
+
alias?: string | undefined;
|
|
10121
10145
|
condition?: any;
|
|
10122
10146
|
}[];
|
|
10123
10147
|
fallback: string[];
|
|
@@ -10132,13 +10156,13 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10132
10156
|
id: string;
|
|
10133
10157
|
config: {
|
|
10134
10158
|
components: any[];
|
|
10135
|
-
next_node: string
|
|
10159
|
+
next_node: string;
|
|
10136
10160
|
};
|
|
10137
10161
|
coordinates: {
|
|
10138
10162
|
x: number;
|
|
10139
10163
|
y: number;
|
|
10140
10164
|
};
|
|
10141
|
-
alias
|
|
10165
|
+
alias?: string | undefined;
|
|
10142
10166
|
})[] | undefined;
|
|
10143
10167
|
ending?: {
|
|
10144
10168
|
coordinates?: {
|
|
@@ -25,7 +25,7 @@ const ut = t.object({
|
|
|
25
25
|
refresh_token: t.string().optional(),
|
|
26
26
|
profileData: m.optional()
|
|
27
27
|
}), l = t.object({
|
|
28
|
-
email: t.string().optional().transform((
|
|
28
|
+
email: t.string().optional().transform((n) => n && n.toLowerCase()),
|
|
29
29
|
username: t.string().optional(),
|
|
30
30
|
phone_number: t.string().optional(),
|
|
31
31
|
given_name: t.string().optional(),
|
|
@@ -63,13 +63,13 @@ const ut = t.object({
|
|
|
63
63
|
last_login: t.string().optional(),
|
|
64
64
|
user_id: t.string()
|
|
65
65
|
}).catchall(t.any()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
66
|
-
let E = (
|
|
67
|
-
let i = "", a = crypto.getRandomValues(new Uint8Array(
|
|
68
|
-
for (;
|
|
69
|
-
i += S[a[
|
|
66
|
+
let E = (n = 21) => {
|
|
67
|
+
let i = "", a = crypto.getRandomValues(new Uint8Array(n));
|
|
68
|
+
for (; n--; )
|
|
69
|
+
i += S[a[n] & 63];
|
|
70
70
|
return i;
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const j = 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 y = 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
|
-
}),
|
|
89
|
+
}), y = t.object({
|
|
90
90
|
id: t.string(),
|
|
91
91
|
name: t.string(),
|
|
92
92
|
callbacks: t.array(t.string()).default([]).optional().openapi({
|
|
@@ -105,7 +105,7 @@ const y = 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:
|
|
108
|
+
samlp: j.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
|
}),
|
|
@@ -117,14 +117,14 @@ const y = t.object({
|
|
|
117
117
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
118
118
|
})
|
|
119
119
|
}), I = t.object({
|
|
120
|
-
created_at: t.string().transform((
|
|
121
|
-
updated_at: t.string().transform((
|
|
122
|
-
...
|
|
120
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
121
|
+
updated_at: t.string().transform((n) => n === null ? "" : n),
|
|
122
|
+
...y.shape
|
|
123
123
|
}), o = t.object({
|
|
124
124
|
x: t.number(),
|
|
125
125
|
y: t.number()
|
|
126
126
|
});
|
|
127
|
-
var c = /* @__PURE__ */ ((
|
|
127
|
+
var c = /* @__PURE__ */ ((n) => (n.RICH_TEXT = "RICH_TEXT", n.NEXT_BUTTON = "NEXT_BUTTON", n.BACK_BUTTON = "BACK_BUTTON", n.SUBMIT_BUTTON = "SUBMIT_BUTTON", n.DIVIDER = "DIVIDER", n.TEXT = "TEXT", n.EMAIL = "EMAIL", n.PASSWORD = "PASSWORD", n.NUMBER = "NUMBER", n.PHONE = "PHONE", n.DATE = "DATE", n.CHECKBOX = "CHECKBOX", n.RADIO = "RADIO", n.SELECT = "SELECT", n.HIDDEN = "HIDDEN", n.LEGAL = "LEGAL", n))(c || {}), p = /* @__PURE__ */ ((n) => (n.BLOCK = "BLOCK", n.FIELD = "FIELD", n))(p || {});
|
|
128
128
|
const s = t.object({
|
|
129
129
|
id: t.string(),
|
|
130
130
|
category: t.nativeEnum(p),
|
|
@@ -241,7 +241,7 @@ const s = t.object({
|
|
|
241
241
|
O,
|
|
242
242
|
A
|
|
243
243
|
]);
|
|
244
|
-
var N = /* @__PURE__ */ ((
|
|
244
|
+
var N = /* @__PURE__ */ ((n) => (n.STEP = "STEP", n.FLOW = "FLOW", n.CONDITION = "CONDITION", n.ACTION = "ACTION", n))(N || {});
|
|
245
245
|
const T = t.object({
|
|
246
246
|
id: t.string(),
|
|
247
247
|
type: t.literal(
|
|
@@ -261,6 +261,7 @@ const T = t.object({
|
|
|
261
261
|
/* FLOW */
|
|
262
262
|
),
|
|
263
263
|
coordinates: o,
|
|
264
|
+
alias: t.string().optional(),
|
|
264
265
|
config: t.object({
|
|
265
266
|
flow_id: t.string(),
|
|
266
267
|
next_node: t.string()
|
|
@@ -299,7 +300,7 @@ const T = t.object({
|
|
|
299
300
|
created_at: !0,
|
|
300
301
|
updated_at: !0
|
|
301
302
|
});
|
|
302
|
-
var g = /* @__PURE__ */ ((
|
|
303
|
+
var g = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(g || {}), d = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(d || {}), u = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(u || {});
|
|
303
304
|
const B = t.object({
|
|
304
305
|
client_id: t.string(),
|
|
305
306
|
act_as: t.string().optional(),
|
|
@@ -361,8 +362,8 @@ const B = t.object({
|
|
|
361
362
|
response_mode: t.custom().optional()
|
|
362
363
|
}), K = t.object({
|
|
363
364
|
id: t.string(),
|
|
364
|
-
created_at: t.string().transform((
|
|
365
|
-
updated_at: t.string().transform((
|
|
365
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
366
|
+
updated_at: t.string().transform((n) => n === null ? "" : n)
|
|
366
367
|
}).extend(H.shape), M = t.object({
|
|
367
368
|
name: t.string(),
|
|
368
369
|
audience: t.string(),
|
|
@@ -375,8 +376,8 @@ const B = t.object({
|
|
|
375
376
|
language: t.string().optional(),
|
|
376
377
|
id: t.string().optional()
|
|
377
378
|
}), G = t.object({
|
|
378
|
-
created_at: t.string().transform((
|
|
379
|
-
updated_at: t.string().transform((
|
|
379
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
380
|
+
updated_at: t.string().transform((n) => n === null ? "" : n),
|
|
380
381
|
...M.shape,
|
|
381
382
|
id: t.string()
|
|
382
383
|
}), ft = t.object({
|
|
@@ -459,7 +460,7 @@ const W = t.enum([
|
|
|
459
460
|
tls_policy: t.string().optional()
|
|
460
461
|
}), Et = z.extend({
|
|
461
462
|
tenant_id: t.string()
|
|
462
|
-
}),
|
|
463
|
+
}), jt = t.object({
|
|
463
464
|
id: t.string(),
|
|
464
465
|
type: t.literal("submit"),
|
|
465
466
|
label: t.string(),
|
|
@@ -488,11 +489,10 @@ const W = t.enum([
|
|
|
488
489
|
id: t.string(),
|
|
489
490
|
type: t.literal("FLOW"),
|
|
490
491
|
coordinates: t.object({ x: t.number(), y: t.number() }),
|
|
491
|
-
alias: t.string().min(1).max(150),
|
|
492
|
+
alias: t.string().min(1).max(150).optional(),
|
|
492
493
|
config: t.object({
|
|
493
494
|
flow_id: t.string().max(30),
|
|
494
|
-
next_node: t.
|
|
495
|
-
// Accepts string[] (forms-custom-identifier or "$ending")
|
|
495
|
+
next_node: t.string()
|
|
496
496
|
})
|
|
497
497
|
}),
|
|
498
498
|
// ROUTER node
|
|
@@ -505,10 +505,10 @@ const W = t.enum([
|
|
|
505
505
|
rules: t.array(
|
|
506
506
|
t.object({
|
|
507
507
|
id: t.string(),
|
|
508
|
-
alias: t.string().min(1).max(150),
|
|
508
|
+
alias: t.string().min(1).max(150).optional(),
|
|
509
509
|
condition: t.any(),
|
|
510
510
|
// condition is required but type is not specified
|
|
511
|
-
next_node: t.
|
|
511
|
+
next_node: t.string()
|
|
512
512
|
})
|
|
513
513
|
),
|
|
514
514
|
fallback: t.array(t.string())
|
|
@@ -519,18 +519,18 @@ const W = t.enum([
|
|
|
519
519
|
id: t.string(),
|
|
520
520
|
type: t.literal("STEP"),
|
|
521
521
|
coordinates: t.object({ x: t.number(), y: t.number() }),
|
|
522
|
-
alias: t.string().min(1).max(150),
|
|
522
|
+
alias: t.string().min(1).max(150).optional(),
|
|
523
523
|
config: t.object({
|
|
524
524
|
components: t.array(t.any()),
|
|
525
525
|
// components is an array of objects, structure not specified
|
|
526
|
-
next_node: t.
|
|
526
|
+
next_node: t.string()
|
|
527
527
|
})
|
|
528
528
|
})
|
|
529
529
|
])
|
|
530
530
|
).optional(),
|
|
531
531
|
start: t.object({
|
|
532
532
|
hidden_fields: t.array(t.object({ key: t.string(), value: t.string() })).optional(),
|
|
533
|
-
next_node: t.
|
|
533
|
+
next_node: t.string().optional(),
|
|
534
534
|
coordinates: t.object({ x: t.number(), y: t.number() }).optional()
|
|
535
535
|
}).optional(),
|
|
536
536
|
ending: t.object({
|
|
@@ -545,7 +545,7 @@ const W = t.enum([
|
|
|
545
545
|
style: t.object({ css: t.string().optional() }).optional()
|
|
546
546
|
}).openapi({
|
|
547
547
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
548
|
-
}),
|
|
548
|
+
}), yt = t.object({
|
|
549
549
|
...r.shape,
|
|
550
550
|
...Q.shape,
|
|
551
551
|
id: t.string()
|
|
@@ -625,7 +625,7 @@ const W = t.enum([
|
|
|
625
625
|
created_at: t.string(),
|
|
626
626
|
updated_at: t.string()
|
|
627
627
|
});
|
|
628
|
-
var $ = /* @__PURE__ */ ((
|
|
628
|
+
var $ = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))($ || {});
|
|
629
629
|
const tt = t.enum([
|
|
630
630
|
"cls",
|
|
631
631
|
// CODE_LINK_SENT
|
|
@@ -675,7 +675,7 @@ const tt = t.enum([
|
|
|
675
675
|
// SUCCESS_VERIFICATION_EMAIL
|
|
676
676
|
"svr"
|
|
677
677
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
678
|
-
]),
|
|
678
|
+
]), nt = t.object({
|
|
679
679
|
name: t.string(),
|
|
680
680
|
version: t.string(),
|
|
681
681
|
env: t.object({
|
|
@@ -703,13 +703,13 @@ const tt = t.enum([
|
|
|
703
703
|
strategy: t.string().optional(),
|
|
704
704
|
strategy_type: t.string().optional(),
|
|
705
705
|
hostname: t.string().optional(),
|
|
706
|
-
auth0_client:
|
|
707
|
-
}),
|
|
706
|
+
auth0_client: nt.optional()
|
|
707
|
+
}), et = t.object({
|
|
708
708
|
user_id: t.string(),
|
|
709
709
|
password: t.string(),
|
|
710
710
|
algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
711
711
|
}), At = t.object({
|
|
712
|
-
...
|
|
712
|
+
...et.shape,
|
|
713
713
|
created_at: t.string(),
|
|
714
714
|
updated_at: t.string()
|
|
715
715
|
}), _ = t.object({
|
|
@@ -756,7 +756,7 @@ const tt = t.enum([
|
|
|
756
756
|
revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
757
757
|
revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
758
758
|
});
|
|
759
|
-
var ot = /* @__PURE__ */ ((
|
|
759
|
+
var ot = /* @__PURE__ */ ((n) => (n.RefreshToken = "refresh_token", n.AuthorizationCode = "authorization_code", n.ClientCredential = "client_credentials", n.Passwordless = "passwordless", n.Password = "password", n.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", n))(ot || {});
|
|
760
760
|
const Tt = t.object({
|
|
761
761
|
access_token: t.string(),
|
|
762
762
|
id_token: t.string().optional(),
|
|
@@ -800,19 +800,19 @@ const at = t.object({
|
|
|
800
800
|
success: t.string(),
|
|
801
801
|
widget_background: t.string(),
|
|
802
802
|
widget_border: t.string()
|
|
803
|
-
}),
|
|
803
|
+
}), e = t.object({
|
|
804
804
|
bold: t.boolean(),
|
|
805
805
|
size: t.number()
|
|
806
806
|
}), rt = t.object({
|
|
807
|
-
body_text:
|
|
808
|
-
buttons_text:
|
|
807
|
+
body_text: e,
|
|
808
|
+
buttons_text: e,
|
|
809
809
|
font_url: t.string(),
|
|
810
|
-
input_labels:
|
|
811
|
-
links:
|
|
810
|
+
input_labels: e,
|
|
811
|
+
links: e,
|
|
812
812
|
links_style: t.enum(["normal"]),
|
|
813
813
|
reference_text_size: t.number(),
|
|
814
|
-
subtitle:
|
|
815
|
-
title:
|
|
814
|
+
subtitle: e,
|
|
815
|
+
title: e
|
|
816
816
|
}), lt = t.object({
|
|
817
817
|
background_color: t.string(),
|
|
818
818
|
background_image_url: t.string(),
|
|
@@ -900,14 +900,14 @@ const at = t.object({
|
|
|
900
900
|
name: t.string(),
|
|
901
901
|
options: t.object({})
|
|
902
902
|
});
|
|
903
|
-
function Bt(
|
|
904
|
-
const [i, a] =
|
|
903
|
+
function Bt(n) {
|
|
904
|
+
const [i, a] = n.split("|");
|
|
905
905
|
if (!i || !a)
|
|
906
|
-
throw new Error(`Invalid user_id: ${
|
|
906
|
+
throw new Error(`Invalid user_id: ${n}`);
|
|
907
907
|
return { connection: i, id: a };
|
|
908
908
|
}
|
|
909
909
|
export {
|
|
910
|
-
|
|
910
|
+
nt as Auth0Client,
|
|
911
911
|
d as AuthorizationResponseMode,
|
|
912
912
|
g as AuthorizationResponseType,
|
|
913
913
|
u as CodeChallengeMethod,
|
|
@@ -916,7 +916,7 @@ export {
|
|
|
916
916
|
ot as GrantType,
|
|
917
917
|
$ as LogTypes,
|
|
918
918
|
N as NodeType,
|
|
919
|
-
|
|
919
|
+
y as applicationInsertSchema,
|
|
920
920
|
I as applicationSchema,
|
|
921
921
|
ht as auth0FlowInsertSchema,
|
|
922
922
|
L as auth0FlowSchema,
|
|
@@ -942,11 +942,11 @@ export {
|
|
|
942
942
|
P as endingSchema,
|
|
943
943
|
O as fieldComponentSchema,
|
|
944
944
|
U as flowNodeSchema,
|
|
945
|
-
|
|
945
|
+
e as fontDetailsSchema,
|
|
946
946
|
rt as fontsSchema,
|
|
947
|
-
|
|
947
|
+
jt as formControlSchema,
|
|
948
948
|
Q as formInsertSchema,
|
|
949
|
-
|
|
949
|
+
yt as formSchema,
|
|
950
950
|
A as genericComponentSchema,
|
|
951
951
|
D as genericNodeSchema,
|
|
952
952
|
Y as hookInsertSchema,
|
|
@@ -962,14 +962,14 @@ export {
|
|
|
962
962
|
Ct as openIDConfigurationSchema,
|
|
963
963
|
lt as pageBackgroundSchema,
|
|
964
964
|
Bt as parseUserId,
|
|
965
|
-
|
|
965
|
+
et as passwordInsertSchema,
|
|
966
966
|
At as passwordSchema,
|
|
967
967
|
m as profileDataSchema,
|
|
968
968
|
Dt as promptSettingSchema,
|
|
969
969
|
gt as refreshTokenInsertSchema,
|
|
970
970
|
Rt as refreshTokenSchema,
|
|
971
971
|
w as richTextComponentSchema,
|
|
972
|
-
|
|
972
|
+
j as samlpAddon,
|
|
973
973
|
it as sessionInsertSchema,
|
|
974
974
|
vt as sessionSchema,
|
|
975
975
|
Nt as signingKeySchema,
|