@authhero/adapter-interfaces 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),dt=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),s=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),u=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),h=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:u.optional()}),c=t.z.object({email:t.z.string().optional().transform(e=>e&&e.toLowerCase()),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),_=c.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),b=t.z.object({..._.shape,...s.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number().default(0),identities:t.z.array(h).optional()}),gt=b,mt=c.extend({login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),ut="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ht=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=ut[a[e]&63];return i};const S=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),f=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:t.z.array(t.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:t.z.object({samlp:S.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:t.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:t.z.string().default(()=>ht()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),E=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...f.shape}),o=t.z.object({x:t.z.number(),y:t.z.number()});var z=(e=>(e.RICH_TEXT="RICH_TEXT",e.NEXT_BUTTON="NEXT_BUTTON",e.BACK_BUTTON="BACK_BUTTON",e.SUBMIT_BUTTON="SUBMIT_BUTTON",e.DIVIDER="DIVIDER",e.TEXT="TEXT",e.EMAIL="EMAIL",e.PASSWORD="PASSWORD",e.NUMBER="NUMBER",e.PHONE="PHONE",e.DATE="DATE",e.CHECKBOX="CHECKBOX",e.RADIO="RADIO",e.SELECT="SELECT",e.HIDDEN="HIDDEN",e.LEGAL="LEGAL",e))(z||{}),p=(e=>(e.BLOCK="BLOCK",e.FIELD="FIELD",e))(p||{});const r=t.z.object({id:t.z.string(),category:t.z.nativeEnum(p),type:t.z.nativeEnum(z)}),I=r.extend({category:t.z.literal("BLOCK"),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}).passthrough()}),y=r.extend({category:t.z.literal("BLOCK"),type:t.z.union([t.z.literal("NEXT_BUTTON"),t.z.literal("BACK_BUTTON"),t.z.literal("SUBMIT_BUTTON")]),config:t.z.object({text:t.z.string()}).passthrough()}),j=r.extend({category:t.z.literal("FIELD"),type:t.z.literal("LEGAL"),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({text:t.z.string()}).passthrough()}),w=r.extend({category:t.z.literal("FIELD"),type:t.z.union([t.z.literal("TEXT"),t.z.literal("EMAIL"),t.z.literal("PASSWORD"),t.z.literal("NUMBER"),t.z.literal("PHONE"),t.z.literal("DATE"),t.z.literal("CHECKBOX"),t.z.literal("RADIO"),t.z.literal("SELECT"),t.z.literal("HIDDEN")]),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({label:t.z.string().optional(),placeholder:t.z.string().optional()}).passthrough()}),C=t.z.object({id:t.z.string(),category:t.z.string(),type:t.z.string()}).passthrough(),k=t.z.union([I,y,j,w,C]);var O=(e=>(e.STEP="STEP",e.FLOW="FLOW",e.CONDITION="CONDITION",e.ACTION="ACTION",e))(O||{});const T=t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({components:t.z.array(k),next_node:t.z.string()}).passthrough()}),A=t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({flow_id:t.z.string(),next_node:t.z.string()})}),v=t.z.object({id:t.z.string(),type:t.z.string(),coordinates:o}).passthrough(),N=t.z.union([T,A,v]),D=t.z.object({next_node:t.z.string(),coordinates:o}).passthrough(),U=t.z.object({resume_flow:t.z.boolean().optional(),coordinates:o}).passthrough(),R=t.z.object({id:t.z.string(),name:t.z.string(),languages:t.z.object({primary:t.z.string()}).passthrough(),nodes:t.z.array(N),start:D,ending:U,created_at:t.z.string(),updated_at:t.z.string(),links:t.z.object({sdkSrc:t.z.string().optional(),sdk_src:t.z.string().optional()}).passthrough()}).passthrough(),_t=R.omit({id:!0,created_at:!0,updated_at:!0});var d=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(d||{}),g=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(g||{}),m=(e=>(e.S256="S256",e.Plain="plain",e))(m||{});const x=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(d).optional(),response_mode:t.z.nativeEnum(g).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(m).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),bt=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),P=t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),authentication_method:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().optional(),token_endpoint:t.z.string().optional(),userinfo_endpoint:t.z.string().optional(),jwks_uri:t.z.string().optional(),discovery_url:t.z.string().optional(),issuer:t.z.string().optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}),L=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:P.default({}),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),B=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(L.shape),H=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),F=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...H.shape,id:t.z.string()}),St=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...E.shape,tenant:F,connections:t.z.array(B)});const K=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),M=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:t.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:t.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:t.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:t.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:t.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),ft=t.z.object({...M.shape,created_at:t.z.string()}),G=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),W=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),X=t.z.object({...G.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(W)}).optional(),tls_policy:t.z.string().optional()}),Et=X.extend({tenant_id:t.z.string()}),It=t.z.object({id:t.z.string(),type:t.z.literal("submit"),label:t.z.string(),className:t.z.string().optional(),disabled:t.z.boolean().optional().default(!1),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0),customizations:t.z.record(t.z.string(),t.z.any()).optional()}),q=t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("LEGAL"),config:t.z.object({text:t.z.string(),html:t.z.boolean().optional()}),required:t.z.boolean().optional(),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("NEXT_BUTTON"),config:t.z.object({text:t.z.string().optional()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)})]),V=t.z.object({name:t.z.string().openapi({description:"The name of the form"}),messages:t.z.object({errors:t.z.record(t.z.string(),t.z.any()).optional(),custom:t.z.record(t.z.string(),t.z.any()).optional()}).optional(),languages:t.z.object({primary:t.z.string().optional(),default:t.z.string().optional()}).optional(),translations:t.z.record(t.z.string(),t.z.any()).optional(),nodes:t.z.array(t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({flow_id:t.z.string().max(30),next_node:t.z.string()})}),t.z.object({id:t.z.string(),type:t.z.literal("ROUTER"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150),config:t.z.object({rules:t.z.array(t.z.object({id:t.z.string(),alias:t.z.string().min(1).max(150).optional(),condition:t.z.any(),next_node:t.z.string()})),fallback:t.z.array(t.z.string())})}),t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({components:t.z.array(q),next_node:t.z.string()})})])).optional(),start:t.z.object({hidden_fields:t.z.array(t.z.object({key:t.z.string(),value:t.z.string()})).optional(),next_node:t.z.string().optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional()}).optional(),ending:t.z.object({redirection:t.z.object({delay:t.z.number().optional(),target:t.z.string().optional()}).optional(),after_submit:t.z.object({flow_id:t.z.string().optional()}).optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional(),resume_flow:t.z.boolean().optional()}).optional(),style:t.z.object({css:t.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),yt=t.z.object({...s.shape,...V.shape,id:t.z.string()}),Q=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Y=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:t.z.boolean().default(!1),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional(),hook_id:t.z.string().optional()},jt=t.z.object({...l,trigger_id:Q,url:t.z.string()}),wt=t.z.object({...l,trigger_id:Y,form_id:t.z.string()}),Ct=t.z.union([jt,wt]),kt=t.z.object({...l,trigger_id:Q,...s.shape,hook_id:t.z.string(),url:t.z.string()}),Ot=t.z.object({...l,trigger_id:Y,...s.shape,hook_id:t.z.string(),form_id:t.z.string()}),Tt=t.z.union([kt,Ot]),J=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),At=t.z.object({keys:t.z.array(J)}),vt=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),Z=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:x,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional(),login_completed:t.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Nt=t.z.object({...Z.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var $=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))($||{});const Dt=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),tt=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),Ut=t.z.object({type:Dt,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:tt.optional()}),et=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),Rt=t.z.object({...et.shape,created_at:t.z.string(),updated_at:t.z.string()}),nt=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),ot=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),login_session_id:t.z.string(),idle_expires_at:t.z.string().optional(),device:nt.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),xt=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...ot.shape}),Pt=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var it=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(it||{});const Lt=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const at=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),st=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),rt=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),lt=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),ct=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),zt=t.z.object({borders:at,colors:st,displayName:t.z.string(),fonts:rt,page_background:lt,widget:ct}),Bt=zt.extend({themeId:t.z.string()}),Ht=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),Ft=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),pt=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:nt,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),Kt=t.z.object({created_at:t.z.string(),...pt.shape}),Mt=t.z.object({to:t.z.string(),message:t.z.string()}),Gt=t.z.object({name:t.z.string(),options:t.z.object({})});function Wt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=tt;exports.AuthorizationResponseMode=g;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=m;exports.ComponentCategory=p;exports.ComponentType=z;exports.GrantType=it;exports.LogTypes=$;exports.NodeType=O;exports.applicationInsertSchema=f;exports.applicationSchema=E;exports.auth0FlowInsertSchema=_t;exports.auth0FlowSchema=R;exports.auth0UserResponseSchema=gt;exports.authParamsSchema=x;exports.baseUserSchema=c;exports.bordersSchema=at;exports.brandingSchema=bt;exports.buttonComponentSchema=y;exports.codeInsertSchema=M;exports.codeSchema=ft;exports.codeTypeSchema=K;exports.colorsSchema=st;exports.componentSchema=k;exports.connectionInsertSchema=L;exports.connectionOptionsSchema=P;exports.connectionSchema=B;exports.coordinatesSchema=o;exports.customDomainInsertSchema=G;exports.customDomainSchema=X;exports.customDomainWithTenantIdSchema=Et;exports.emailProviderSchema=Ft;exports.endingSchema=U;exports.fieldComponentSchema=w;exports.flowNodeSchema=A;exports.fontDetailsSchema=n;exports.fontsSchema=rt;exports.formControlSchema=It;exports.formInsertSchema=V;exports.formNodeComponentDefinition=q;exports.formSchema=yt;exports.genericComponentSchema=C;exports.genericNodeSchema=v;exports.hookInsertSchema=Ct;exports.hookSchema=Tt;exports.identitySchema=h;exports.jwksKeySchema=At;exports.jwksSchema=J;exports.legalComponentSchema=j;exports.logSchema=Ut;exports.loginSessionInsertSchema=Z;exports.loginSessionSchema=Nt;exports.nodeSchema=N;exports.openIDConfigurationSchema=vt;exports.pageBackgroundSchema=lt;exports.parseUserId=Wt;exports.passwordInsertSchema=et;exports.passwordSchema=Rt;exports.profileDataSchema=u;exports.promptSettingSchema=Ht;exports.refreshTokenInsertSchema=pt;exports.refreshTokenSchema=Kt;exports.richTextComponentSchema=I;exports.samlpAddon=S;exports.sessionInsertSchema=ot;exports.sessionSchema=xt;exports.signingKeySchema=Pt;exports.smsProviderSchema=Gt;exports.smsSendParamsSchema=Mt;exports.startSchema=D;exports.stepNodeSchema=T;exports.tenantInsertSchema=H;exports.tenantSchema=F;exports.themeInsertSchema=zt;exports.themeSchema=Bt;exports.tokenResponseSchema=Lt;exports.totalsSchema=dt;exports.userInsertSchema=_;exports.userResponseSchema=mt;exports.userSchema=b;exports.vendorSettingsSchema=St;exports.verificationMethodsSchema=W;exports.widgetSchema=ct;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),dt=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),s=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),u=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),h=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:u.optional()}),c=t.z.object({email:t.z.string().optional().transform(e=>e&&e.toLowerCase()),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),_=c.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),b=t.z.object({..._.shape,...s.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number().default(0),identities:t.z.array(h).optional()}),gt=b,mt=c.extend({login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),ut="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ht=(e=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=ut[a[e]&63];return i};const S=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),f=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:t.z.array(t.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:t.z.object({samlp:S.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:t.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:t.z.string().default(()=>ht()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),E=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...f.shape}),o=t.z.object({x:t.z.number(),y:t.z.number()});var z=(e=>(e.RICH_TEXT="RICH_TEXT",e.NEXT_BUTTON="NEXT_BUTTON",e.BACK_BUTTON="BACK_BUTTON",e.SUBMIT_BUTTON="SUBMIT_BUTTON",e.DIVIDER="DIVIDER",e.TEXT="TEXT",e.EMAIL="EMAIL",e.PASSWORD="PASSWORD",e.NUMBER="NUMBER",e.PHONE="PHONE",e.DATE="DATE",e.CHECKBOX="CHECKBOX",e.RADIO="RADIO",e.SELECT="SELECT",e.HIDDEN="HIDDEN",e.LEGAL="LEGAL",e))(z||{}),p=(e=>(e.BLOCK="BLOCK",e.FIELD="FIELD",e))(p||{});const r=t.z.object({id:t.z.string(),category:t.z.nativeEnum(p),type:t.z.nativeEnum(z)}),y=r.extend({category:t.z.literal("BLOCK"),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}).passthrough()}),I=r.extend({category:t.z.literal("BLOCK"),type:t.z.union([t.z.literal("NEXT_BUTTON"),t.z.literal("BACK_BUTTON"),t.z.literal("SUBMIT_BUTTON")]),config:t.z.object({text:t.z.string()}).passthrough()}),j=r.extend({category:t.z.literal("FIELD"),type:t.z.literal("LEGAL"),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({text:t.z.string()}).passthrough()}),w=r.extend({category:t.z.literal("FIELD"),type:t.z.union([t.z.literal("TEXT"),t.z.literal("EMAIL"),t.z.literal("PASSWORD"),t.z.literal("NUMBER"),t.z.literal("PHONE"),t.z.literal("DATE"),t.z.literal("CHECKBOX"),t.z.literal("RADIO"),t.z.literal("SELECT"),t.z.literal("HIDDEN")]),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),config:t.z.object({label:t.z.string().optional(),placeholder:t.z.string().optional()}).passthrough()}),C=t.z.object({id:t.z.string(),category:t.z.string(),type:t.z.string()}).passthrough(),k=t.z.union([y,I,j,w,C]);var O=(e=>(e.STEP="STEP",e.FLOW="FLOW",e.CONDITION="CONDITION",e.ACTION="ACTION",e))(O||{});const T=t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:o,alias:t.z.string().optional(),config:t.z.object({components:t.z.array(k),next_node:t.z.string()}).passthrough()}),v=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()})}),A=t.z.object({id:t.z.string(),type:t.z.string(),coordinates:o}).passthrough(),N=t.z.union([T,v,A]),D=t.z.object({next_node:t.z.string(),coordinates:o}).passthrough(),U=t.z.object({resume_flow:t.z.boolean().optional(),coordinates:o}).passthrough(),R=t.z.object({id:t.z.string(),name:t.z.string(),languages:t.z.object({primary:t.z.string()}).passthrough(),nodes:t.z.array(N),start:D,ending:U,created_at:t.z.string(),updated_at:t.z.string(),links:t.z.object({sdkSrc:t.z.string().optional(),sdk_src:t.z.string().optional()}).passthrough()}).passthrough(),_t=R.omit({id:!0,created_at:!0,updated_at:!0});var d=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(d||{}),g=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(g||{}),m=(e=>(e.S256="S256",e.Plain="plain",e))(m||{});const x=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(d).optional(),response_mode:t.z.nativeEnum(g).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(m).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),bt=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),P=t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),authentication_method:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().optional(),token_endpoint:t.z.string().optional(),userinfo_endpoint:t.z.string().optional(),jwks_uri:t.z.string().optional(),discovery_url:t.z.string().optional(),issuer:t.z.string().optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}),L=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:P.default({}),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),B=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(L.shape),H=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),F=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...H.shape,id:t.z.string()}),St=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...E.shape,tenant:F,connections:t.z.array(B)});const K=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),M=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:K,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:t.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:t.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:t.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:t.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:t.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),ft=t.z.object({...M.shape,created_at:t.z.string()}),G=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),X=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),W=t.z.object({...G.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(X)}).optional(),tls_policy:t.z.string().optional()}),Et=W.extend({tenant_id:t.z.string()}),yt=t.z.object({id:t.z.string(),type:t.z.literal("submit"),label:t.z.string(),className:t.z.string().optional(),disabled:t.z.boolean().optional().default(!1),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0),customizations:t.z.record(t.z.string(),t.z.any()).optional()}),q=t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("RICH_TEXT"),config:t.z.object({content:t.z.string()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("LEGAL"),config:t.z.object({text:t.z.string(),html:t.z.boolean().optional()}),required:t.z.boolean().optional(),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("TEXT"),config:t.z.object({placeholder:t.z.string().optional(),multiline:t.z.boolean().optional()}),required:t.z.boolean().optional(),sensitive:t.z.boolean().optional(),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)}),t.z.object({id:t.z.string(),type:t.z.literal("NEXT_BUTTON"),config:t.z.object({text:t.z.string().optional()}),order:t.z.number().optional(),visible:t.z.boolean().optional().default(!0)})]),V=t.z.object({name:t.z.string().openapi({description:"The name of the form"}),messages:t.z.object({errors:t.z.record(t.z.string(),t.z.any()).optional(),custom:t.z.record(t.z.string(),t.z.any()).optional()}).optional(),languages:t.z.object({primary:t.z.string().optional(),default:t.z.string().optional()}).optional(),translations:t.z.record(t.z.string(),t.z.any()).optional(),nodes:t.z.array(t.z.discriminatedUnion("type",[t.z.object({id:t.z.string(),type:t.z.literal("FLOW"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({flow_id:t.z.string().max(30),next_node:t.z.string()})}),t.z.object({id:t.z.string(),type:t.z.literal("ROUTER"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150),config:t.z.object({rules:t.z.array(t.z.object({id:t.z.string(),alias:t.z.string().min(1).max(150).optional(),condition:t.z.any(),next_node:t.z.string()})),fallback:t.z.array(t.z.string())})}),t.z.object({id:t.z.string(),type:t.z.literal("STEP"),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}),alias:t.z.string().min(1).max(150).optional(),config:t.z.object({components:t.z.array(q),next_node:t.z.string()})})])).optional(),start:t.z.object({hidden_fields:t.z.array(t.z.object({key:t.z.string(),value:t.z.string()})).optional(),next_node:t.z.string().optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional()}).optional(),ending:t.z.object({redirection:t.z.object({delay:t.z.number().optional(),target:t.z.string().optional()}).optional(),after_submit:t.z.object({flow_id:t.z.string().optional()}).optional(),coordinates:t.z.object({x:t.z.number(),y:t.z.number()}).optional(),resume_flow:t.z.boolean().optional()}).optional(),style:t.z.object({css:t.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),It=t.z.object({...s.shape,...V.shape,id:t.z.string()}),Q=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Y=t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),l={enabled:t.z.boolean().default(!1),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional(),hook_id:t.z.string().optional()},jt=t.z.object({...l,trigger_id:Q,url:t.z.string()}),wt=t.z.object({...l,trigger_id:Y,form_id:t.z.string()}),Ct=t.z.union([jt,wt]),kt=t.z.object({...l,trigger_id:Q,...s.shape,hook_id:t.z.string(),url:t.z.string()}),Ot=t.z.object({...l,trigger_id:Y,...s.shape,hook_id:t.z.string(),form_id:t.z.string()}),Tt=t.z.union([kt,Ot]),J=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),vt=t.z.object({keys:t.z.array(J)}),At=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),Z=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:x,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional(),login_completed:t.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Nt=t.z.object({...Z.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var $=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))($||{});const Dt=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),tt=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),Ut=t.z.object({type:Dt,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:tt.optional()}),et=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),Rt=t.z.object({...et.shape,created_at:t.z.string(),updated_at:t.z.string()}),nt=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),ot=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),login_session_id:t.z.string(),idle_expires_at:t.z.string().optional(),device:nt.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),xt=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...ot.shape}),Pt=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var it=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(it||{});const Lt=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const at=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),st=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),rt=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),lt=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),ct=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),zt=t.z.object({borders:at,colors:st,displayName:t.z.string(),fonts:rt,page_background:lt,widget:ct}),Bt=zt.extend({themeId:t.z.string()}),Ht=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),Ft=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),pt=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:nt,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),Kt=t.z.object({created_at:t.z.string(),...pt.shape}),Mt=t.z.object({to:t.z.string(),message:t.z.string()}),Gt=t.z.object({name:t.z.string(),options:t.z.object({})});function Xt(e){const[i,a]=e.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:a}}exports.Auth0Client=tt;exports.AuthorizationResponseMode=g;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=m;exports.ComponentCategory=p;exports.ComponentType=z;exports.GrantType=it;exports.LogTypes=$;exports.NodeType=O;exports.applicationInsertSchema=f;exports.applicationSchema=E;exports.auth0FlowInsertSchema=_t;exports.auth0FlowSchema=R;exports.auth0UserResponseSchema=gt;exports.authParamsSchema=x;exports.baseUserSchema=c;exports.bordersSchema=at;exports.brandingSchema=bt;exports.buttonComponentSchema=I;exports.codeInsertSchema=M;exports.codeSchema=ft;exports.codeTypeSchema=K;exports.colorsSchema=st;exports.componentSchema=k;exports.connectionInsertSchema=L;exports.connectionOptionsSchema=P;exports.connectionSchema=B;exports.coordinatesSchema=o;exports.customDomainInsertSchema=G;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=Et;exports.emailProviderSchema=Ft;exports.endingSchema=U;exports.fieldComponentSchema=w;exports.flowNodeSchema=v;exports.fontDetailsSchema=n;exports.fontsSchema=rt;exports.formControlSchema=yt;exports.formInsertSchema=V;exports.formNodeComponentDefinition=q;exports.formSchema=It;exports.genericComponentSchema=C;exports.genericNodeSchema=A;exports.hookInsertSchema=Ct;exports.hookSchema=Tt;exports.identitySchema=h;exports.jwksKeySchema=vt;exports.jwksSchema=J;exports.legalComponentSchema=j;exports.logSchema=Ut;exports.loginSessionInsertSchema=Z;exports.loginSessionSchema=Nt;exports.nodeSchema=N;exports.openIDConfigurationSchema=At;exports.pageBackgroundSchema=lt;exports.parseUserId=Xt;exports.passwordInsertSchema=et;exports.passwordSchema=Rt;exports.profileDataSchema=u;exports.promptSettingSchema=Ht;exports.refreshTokenInsertSchema=pt;exports.refreshTokenSchema=Kt;exports.richTextComponentSchema=y;exports.samlpAddon=S;exports.sessionInsertSchema=ot;exports.sessionSchema=xt;exports.signingKeySchema=Pt;exports.smsProviderSchema=Gt;exports.smsSendParamsSchema=Mt;exports.startSchema=D;exports.stepNodeSchema=T;exports.tenantInsertSchema=H;exports.tenantSchema=F;exports.themeInsertSchema=zt;exports.themeSchema=Bt;exports.tokenResponseSchema=Lt;exports.totalsSchema=dt;exports.userInsertSchema=_;exports.userResponseSchema=mt;exports.userSchema=b;exports.vendorSettingsSchema=St;exports.verificationMethodsSchema=X;exports.widgetSchema=ct;
|
|
@@ -9342,6 +9342,46 @@ export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type"
|
|
|
9342
9342
|
order?: number | undefined;
|
|
9343
9343
|
visible?: boolean | undefined;
|
|
9344
9344
|
}>,
|
|
9345
|
+
z.ZodObject<{
|
|
9346
|
+
id: z.ZodString;
|
|
9347
|
+
type: z.ZodLiteral<"TEXT">;
|
|
9348
|
+
config: z.ZodObject<{
|
|
9349
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
9350
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
9351
|
+
}, "strip", z.ZodTypeAny, {
|
|
9352
|
+
placeholder?: string | undefined;
|
|
9353
|
+
multiline?: boolean | undefined;
|
|
9354
|
+
}, {
|
|
9355
|
+
placeholder?: string | undefined;
|
|
9356
|
+
multiline?: boolean | undefined;
|
|
9357
|
+
}>;
|
|
9358
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
9359
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
9360
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9361
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9362
|
+
}, "strip", z.ZodTypeAny, {
|
|
9363
|
+
type: "TEXT";
|
|
9364
|
+
id: string;
|
|
9365
|
+
config: {
|
|
9366
|
+
placeholder?: string | undefined;
|
|
9367
|
+
multiline?: boolean | undefined;
|
|
9368
|
+
};
|
|
9369
|
+
visible: boolean;
|
|
9370
|
+
required?: boolean | undefined;
|
|
9371
|
+
sensitive?: boolean | undefined;
|
|
9372
|
+
order?: number | undefined;
|
|
9373
|
+
}, {
|
|
9374
|
+
type: "TEXT";
|
|
9375
|
+
id: string;
|
|
9376
|
+
config: {
|
|
9377
|
+
placeholder?: string | undefined;
|
|
9378
|
+
multiline?: boolean | undefined;
|
|
9379
|
+
};
|
|
9380
|
+
required?: boolean | undefined;
|
|
9381
|
+
sensitive?: boolean | undefined;
|
|
9382
|
+
order?: number | undefined;
|
|
9383
|
+
visible?: boolean | undefined;
|
|
9384
|
+
}>,
|
|
9345
9385
|
z.ZodObject<{
|
|
9346
9386
|
id: z.ZodString;
|
|
9347
9387
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
@@ -9615,6 +9655,46 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9615
9655
|
order?: number | undefined;
|
|
9616
9656
|
visible?: boolean | undefined;
|
|
9617
9657
|
}>,
|
|
9658
|
+
z.ZodObject<{
|
|
9659
|
+
id: z.ZodString;
|
|
9660
|
+
type: z.ZodLiteral<"TEXT">;
|
|
9661
|
+
config: z.ZodObject<{
|
|
9662
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
9663
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
9664
|
+
}, "strip", z.ZodTypeAny, {
|
|
9665
|
+
placeholder?: string | undefined;
|
|
9666
|
+
multiline?: boolean | undefined;
|
|
9667
|
+
}, {
|
|
9668
|
+
placeholder?: string | undefined;
|
|
9669
|
+
multiline?: boolean | undefined;
|
|
9670
|
+
}>;
|
|
9671
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
9672
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
9673
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9674
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9675
|
+
}, "strip", z.ZodTypeAny, {
|
|
9676
|
+
type: "TEXT";
|
|
9677
|
+
id: string;
|
|
9678
|
+
config: {
|
|
9679
|
+
placeholder?: string | undefined;
|
|
9680
|
+
multiline?: boolean | undefined;
|
|
9681
|
+
};
|
|
9682
|
+
visible: boolean;
|
|
9683
|
+
required?: boolean | undefined;
|
|
9684
|
+
sensitive?: boolean | undefined;
|
|
9685
|
+
order?: number | undefined;
|
|
9686
|
+
}, {
|
|
9687
|
+
type: "TEXT";
|
|
9688
|
+
id: string;
|
|
9689
|
+
config: {
|
|
9690
|
+
placeholder?: string | undefined;
|
|
9691
|
+
multiline?: boolean | undefined;
|
|
9692
|
+
};
|
|
9693
|
+
required?: boolean | undefined;
|
|
9694
|
+
sensitive?: boolean | undefined;
|
|
9695
|
+
order?: number | undefined;
|
|
9696
|
+
visible?: boolean | undefined;
|
|
9697
|
+
}>,
|
|
9618
9698
|
z.ZodObject<{
|
|
9619
9699
|
id: z.ZodString;
|
|
9620
9700
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
@@ -9665,6 +9745,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9665
9745
|
visible: boolean;
|
|
9666
9746
|
required?: boolean | undefined;
|
|
9667
9747
|
order?: number | undefined;
|
|
9748
|
+
} | {
|
|
9749
|
+
type: "TEXT";
|
|
9750
|
+
id: string;
|
|
9751
|
+
config: {
|
|
9752
|
+
placeholder?: string | undefined;
|
|
9753
|
+
multiline?: boolean | undefined;
|
|
9754
|
+
};
|
|
9755
|
+
visible: boolean;
|
|
9756
|
+
required?: boolean | undefined;
|
|
9757
|
+
sensitive?: boolean | undefined;
|
|
9758
|
+
order?: number | undefined;
|
|
9668
9759
|
} | {
|
|
9669
9760
|
type: "NEXT_BUTTON";
|
|
9670
9761
|
id: string;
|
|
@@ -9694,6 +9785,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9694
9785
|
required?: boolean | undefined;
|
|
9695
9786
|
order?: number | undefined;
|
|
9696
9787
|
visible?: boolean | undefined;
|
|
9788
|
+
} | {
|
|
9789
|
+
type: "TEXT";
|
|
9790
|
+
id: string;
|
|
9791
|
+
config: {
|
|
9792
|
+
placeholder?: string | undefined;
|
|
9793
|
+
multiline?: boolean | undefined;
|
|
9794
|
+
};
|
|
9795
|
+
required?: boolean | undefined;
|
|
9796
|
+
sensitive?: boolean | undefined;
|
|
9797
|
+
order?: number | undefined;
|
|
9798
|
+
visible?: boolean | undefined;
|
|
9697
9799
|
} | {
|
|
9698
9800
|
type: "NEXT_BUTTON";
|
|
9699
9801
|
id: string;
|
|
@@ -9727,6 +9829,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9727
9829
|
visible: boolean;
|
|
9728
9830
|
required?: boolean | undefined;
|
|
9729
9831
|
order?: number | undefined;
|
|
9832
|
+
} | {
|
|
9833
|
+
type: "TEXT";
|
|
9834
|
+
id: string;
|
|
9835
|
+
config: {
|
|
9836
|
+
placeholder?: string | undefined;
|
|
9837
|
+
multiline?: boolean | undefined;
|
|
9838
|
+
};
|
|
9839
|
+
visible: boolean;
|
|
9840
|
+
required?: boolean | undefined;
|
|
9841
|
+
sensitive?: boolean | undefined;
|
|
9842
|
+
order?: number | undefined;
|
|
9730
9843
|
} | {
|
|
9731
9844
|
type: "NEXT_BUTTON";
|
|
9732
9845
|
id: string;
|
|
@@ -9765,6 +9878,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9765
9878
|
required?: boolean | undefined;
|
|
9766
9879
|
order?: number | undefined;
|
|
9767
9880
|
visible?: boolean | undefined;
|
|
9881
|
+
} | {
|
|
9882
|
+
type: "TEXT";
|
|
9883
|
+
id: string;
|
|
9884
|
+
config: {
|
|
9885
|
+
placeholder?: string | undefined;
|
|
9886
|
+
multiline?: boolean | undefined;
|
|
9887
|
+
};
|
|
9888
|
+
required?: boolean | undefined;
|
|
9889
|
+
sensitive?: boolean | undefined;
|
|
9890
|
+
order?: number | undefined;
|
|
9891
|
+
visible?: boolean | undefined;
|
|
9768
9892
|
} | {
|
|
9769
9893
|
type: "NEXT_BUTTON";
|
|
9770
9894
|
id: string;
|
|
@@ -9960,6 +10084,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9960
10084
|
visible: boolean;
|
|
9961
10085
|
required?: boolean | undefined;
|
|
9962
10086
|
order?: number | undefined;
|
|
10087
|
+
} | {
|
|
10088
|
+
type: "TEXT";
|
|
10089
|
+
id: string;
|
|
10090
|
+
config: {
|
|
10091
|
+
placeholder?: string | undefined;
|
|
10092
|
+
multiline?: boolean | undefined;
|
|
10093
|
+
};
|
|
10094
|
+
visible: boolean;
|
|
10095
|
+
required?: boolean | undefined;
|
|
10096
|
+
sensitive?: boolean | undefined;
|
|
10097
|
+
order?: number | undefined;
|
|
9963
10098
|
} | {
|
|
9964
10099
|
type: "NEXT_BUTTON";
|
|
9965
10100
|
id: string;
|
|
@@ -10067,6 +10202,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
10067
10202
|
required?: boolean | undefined;
|
|
10068
10203
|
order?: number | undefined;
|
|
10069
10204
|
visible?: boolean | undefined;
|
|
10205
|
+
} | {
|
|
10206
|
+
type: "TEXT";
|
|
10207
|
+
id: string;
|
|
10208
|
+
config: {
|
|
10209
|
+
placeholder?: string | undefined;
|
|
10210
|
+
multiline?: boolean | undefined;
|
|
10211
|
+
};
|
|
10212
|
+
required?: boolean | undefined;
|
|
10213
|
+
sensitive?: boolean | undefined;
|
|
10214
|
+
order?: number | undefined;
|
|
10215
|
+
visible?: boolean | undefined;
|
|
10070
10216
|
} | {
|
|
10071
10217
|
type: "NEXT_BUTTON";
|
|
10072
10218
|
id: string;
|
|
@@ -10348,6 +10494,46 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10348
10494
|
order?: number | undefined;
|
|
10349
10495
|
visible?: boolean | undefined;
|
|
10350
10496
|
}>,
|
|
10497
|
+
z.ZodObject<{
|
|
10498
|
+
id: z.ZodString;
|
|
10499
|
+
type: z.ZodLiteral<"TEXT">;
|
|
10500
|
+
config: z.ZodObject<{
|
|
10501
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
10502
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
10503
|
+
}, "strip", z.ZodTypeAny, {
|
|
10504
|
+
placeholder?: string | undefined;
|
|
10505
|
+
multiline?: boolean | undefined;
|
|
10506
|
+
}, {
|
|
10507
|
+
placeholder?: string | undefined;
|
|
10508
|
+
multiline?: boolean | undefined;
|
|
10509
|
+
}>;
|
|
10510
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10511
|
+
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10512
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10513
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10514
|
+
}, "strip", z.ZodTypeAny, {
|
|
10515
|
+
type: "TEXT";
|
|
10516
|
+
id: string;
|
|
10517
|
+
config: {
|
|
10518
|
+
placeholder?: string | undefined;
|
|
10519
|
+
multiline?: boolean | undefined;
|
|
10520
|
+
};
|
|
10521
|
+
visible: boolean;
|
|
10522
|
+
required?: boolean | undefined;
|
|
10523
|
+
sensitive?: boolean | undefined;
|
|
10524
|
+
order?: number | undefined;
|
|
10525
|
+
}, {
|
|
10526
|
+
type: "TEXT";
|
|
10527
|
+
id: string;
|
|
10528
|
+
config: {
|
|
10529
|
+
placeholder?: string | undefined;
|
|
10530
|
+
multiline?: boolean | undefined;
|
|
10531
|
+
};
|
|
10532
|
+
required?: boolean | undefined;
|
|
10533
|
+
sensitive?: boolean | undefined;
|
|
10534
|
+
order?: number | undefined;
|
|
10535
|
+
visible?: boolean | undefined;
|
|
10536
|
+
}>,
|
|
10351
10537
|
z.ZodObject<{
|
|
10352
10538
|
id: z.ZodString;
|
|
10353
10539
|
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
@@ -10398,6 +10584,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10398
10584
|
visible: boolean;
|
|
10399
10585
|
required?: boolean | undefined;
|
|
10400
10586
|
order?: number | undefined;
|
|
10587
|
+
} | {
|
|
10588
|
+
type: "TEXT";
|
|
10589
|
+
id: string;
|
|
10590
|
+
config: {
|
|
10591
|
+
placeholder?: string | undefined;
|
|
10592
|
+
multiline?: boolean | undefined;
|
|
10593
|
+
};
|
|
10594
|
+
visible: boolean;
|
|
10595
|
+
required?: boolean | undefined;
|
|
10596
|
+
sensitive?: boolean | undefined;
|
|
10597
|
+
order?: number | undefined;
|
|
10401
10598
|
} | {
|
|
10402
10599
|
type: "NEXT_BUTTON";
|
|
10403
10600
|
id: string;
|
|
@@ -10427,6 +10624,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10427
10624
|
required?: boolean | undefined;
|
|
10428
10625
|
order?: number | undefined;
|
|
10429
10626
|
visible?: boolean | undefined;
|
|
10627
|
+
} | {
|
|
10628
|
+
type: "TEXT";
|
|
10629
|
+
id: string;
|
|
10630
|
+
config: {
|
|
10631
|
+
placeholder?: string | undefined;
|
|
10632
|
+
multiline?: boolean | undefined;
|
|
10633
|
+
};
|
|
10634
|
+
required?: boolean | undefined;
|
|
10635
|
+
sensitive?: boolean | undefined;
|
|
10636
|
+
order?: number | undefined;
|
|
10637
|
+
visible?: boolean | undefined;
|
|
10430
10638
|
} | {
|
|
10431
10639
|
type: "NEXT_BUTTON";
|
|
10432
10640
|
id: string;
|
|
@@ -10460,6 +10668,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10460
10668
|
visible: boolean;
|
|
10461
10669
|
required?: boolean | undefined;
|
|
10462
10670
|
order?: number | undefined;
|
|
10671
|
+
} | {
|
|
10672
|
+
type: "TEXT";
|
|
10673
|
+
id: string;
|
|
10674
|
+
config: {
|
|
10675
|
+
placeholder?: string | undefined;
|
|
10676
|
+
multiline?: boolean | undefined;
|
|
10677
|
+
};
|
|
10678
|
+
visible: boolean;
|
|
10679
|
+
required?: boolean | undefined;
|
|
10680
|
+
sensitive?: boolean | undefined;
|
|
10681
|
+
order?: number | undefined;
|
|
10463
10682
|
} | {
|
|
10464
10683
|
type: "NEXT_BUTTON";
|
|
10465
10684
|
id: string;
|
|
@@ -10498,6 +10717,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10498
10717
|
required?: boolean | undefined;
|
|
10499
10718
|
order?: number | undefined;
|
|
10500
10719
|
visible?: boolean | undefined;
|
|
10720
|
+
} | {
|
|
10721
|
+
type: "TEXT";
|
|
10722
|
+
id: string;
|
|
10723
|
+
config: {
|
|
10724
|
+
placeholder?: string | undefined;
|
|
10725
|
+
multiline?: boolean | undefined;
|
|
10726
|
+
};
|
|
10727
|
+
required?: boolean | undefined;
|
|
10728
|
+
sensitive?: boolean | undefined;
|
|
10729
|
+
order?: number | undefined;
|
|
10730
|
+
visible?: boolean | undefined;
|
|
10501
10731
|
} | {
|
|
10502
10732
|
type: "NEXT_BUTTON";
|
|
10503
10733
|
id: string;
|
|
@@ -10698,6 +10928,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10698
10928
|
visible: boolean;
|
|
10699
10929
|
required?: boolean | undefined;
|
|
10700
10930
|
order?: number | undefined;
|
|
10931
|
+
} | {
|
|
10932
|
+
type: "TEXT";
|
|
10933
|
+
id: string;
|
|
10934
|
+
config: {
|
|
10935
|
+
placeholder?: string | undefined;
|
|
10936
|
+
multiline?: boolean | undefined;
|
|
10937
|
+
};
|
|
10938
|
+
visible: boolean;
|
|
10939
|
+
required?: boolean | undefined;
|
|
10940
|
+
sensitive?: boolean | undefined;
|
|
10941
|
+
order?: number | undefined;
|
|
10701
10942
|
} | {
|
|
10702
10943
|
type: "NEXT_BUTTON";
|
|
10703
10944
|
id: string;
|
|
@@ -10808,6 +11049,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10808
11049
|
required?: boolean | undefined;
|
|
10809
11050
|
order?: number | undefined;
|
|
10810
11051
|
visible?: boolean | undefined;
|
|
11052
|
+
} | {
|
|
11053
|
+
type: "TEXT";
|
|
11054
|
+
id: string;
|
|
11055
|
+
config: {
|
|
11056
|
+
placeholder?: string | undefined;
|
|
11057
|
+
multiline?: boolean | undefined;
|
|
11058
|
+
};
|
|
11059
|
+
required?: boolean | undefined;
|
|
11060
|
+
sensitive?: boolean | undefined;
|
|
11061
|
+
order?: number | undefined;
|
|
11062
|
+
visible?: boolean | undefined;
|
|
10811
11063
|
} | {
|
|
10812
11064
|
type: "NEXT_BUTTON";
|
|
10813
11065
|
id: string;
|
|
@@ -124,10 +124,10 @@ const w = t.object({
|
|
|
124
124
|
x: t.number(),
|
|
125
125
|
y: t.number()
|
|
126
126
|
});
|
|
127
|
-
var p = /* @__PURE__ */ ((e) => (e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e))(p || {}),
|
|
127
|
+
var p = /* @__PURE__ */ ((e) => (e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e))(p || {}), d = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(d || {});
|
|
128
128
|
const r = t.object({
|
|
129
129
|
id: t.string(),
|
|
130
|
-
category: t.nativeEnum(
|
|
130
|
+
category: t.nativeEnum(d),
|
|
131
131
|
type: t.nativeEnum(p)
|
|
132
132
|
}), O = r.extend({
|
|
133
133
|
category: t.literal(
|
|
@@ -141,7 +141,7 @@ const r = t.object({
|
|
|
141
141
|
config: t.object({
|
|
142
142
|
content: t.string()
|
|
143
143
|
}).passthrough()
|
|
144
|
-
}),
|
|
144
|
+
}), T = r.extend({
|
|
145
145
|
category: t.literal(
|
|
146
146
|
"BLOCK"
|
|
147
147
|
/* BLOCK */
|
|
@@ -163,7 +163,7 @@ const r = t.object({
|
|
|
163
163
|
config: t.object({
|
|
164
164
|
text: t.string()
|
|
165
165
|
}).passthrough()
|
|
166
|
-
}),
|
|
166
|
+
}), v = r.extend({
|
|
167
167
|
category: t.literal(
|
|
168
168
|
"FIELD"
|
|
169
169
|
/* FIELD */
|
|
@@ -177,7 +177,7 @@ const r = t.object({
|
|
|
177
177
|
config: t.object({
|
|
178
178
|
text: t.string()
|
|
179
179
|
}).passthrough()
|
|
180
|
-
}),
|
|
180
|
+
}), A = r.extend({
|
|
181
181
|
category: t.literal(
|
|
182
182
|
"FIELD"
|
|
183
183
|
/* FIELD */
|
|
@@ -236,9 +236,9 @@ const r = t.object({
|
|
|
236
236
|
type: t.string()
|
|
237
237
|
}).passthrough(), U = t.union([
|
|
238
238
|
O,
|
|
239
|
-
A,
|
|
240
239
|
T,
|
|
241
240
|
v,
|
|
241
|
+
A,
|
|
242
242
|
N
|
|
243
243
|
]);
|
|
244
244
|
var D = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(D || {});
|
|
@@ -300,11 +300,11 @@ const x = t.object({
|
|
|
300
300
|
created_at: !0,
|
|
301
301
|
updated_at: !0
|
|
302
302
|
});
|
|
303
|
-
var
|
|
303
|
+
var g = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(g || {}), u = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(u || {}), _ = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(_ || {});
|
|
304
304
|
const K = t.object({
|
|
305
305
|
client_id: t.string(),
|
|
306
306
|
act_as: t.string().optional(),
|
|
307
|
-
response_type: t.nativeEnum(
|
|
307
|
+
response_type: t.nativeEnum(g).optional(),
|
|
308
308
|
response_mode: t.nativeEnum(u).optional(),
|
|
309
309
|
redirect_uri: t.string().optional(),
|
|
310
310
|
audience: t.string().optional(),
|
|
@@ -476,7 +476,7 @@ const V = t.enum([
|
|
|
476
476
|
tls_policy: t.string().optional()
|
|
477
477
|
}), Ot = J.extend({
|
|
478
478
|
tenant_id: t.string()
|
|
479
|
-
}),
|
|
479
|
+
}), Tt = t.object({
|
|
480
480
|
id: t.string(),
|
|
481
481
|
type: t.literal("submit"),
|
|
482
482
|
label: t.string(),
|
|
@@ -506,6 +506,18 @@ const V = t.enum([
|
|
|
506
506
|
order: t.number().optional(),
|
|
507
507
|
visible: t.boolean().optional().default(!0)
|
|
508
508
|
}),
|
|
509
|
+
t.object({
|
|
510
|
+
id: t.string(),
|
|
511
|
+
type: t.literal("TEXT"),
|
|
512
|
+
config: t.object({
|
|
513
|
+
placeholder: t.string().optional(),
|
|
514
|
+
multiline: t.boolean().optional()
|
|
515
|
+
}),
|
|
516
|
+
required: t.boolean().optional(),
|
|
517
|
+
sensitive: t.boolean().optional(),
|
|
518
|
+
order: t.number().optional(),
|
|
519
|
+
visible: t.boolean().optional().default(!0)
|
|
520
|
+
}),
|
|
509
521
|
t.object({
|
|
510
522
|
id: t.string(),
|
|
511
523
|
type: t.literal("NEXT_BUTTON"),
|
|
@@ -590,7 +602,7 @@ const V = t.enum([
|
|
|
590
602
|
style: t.object({ css: t.string().optional() }).optional()
|
|
591
603
|
}).openapi({
|
|
592
604
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
593
|
-
}),
|
|
605
|
+
}), vt = t.object({
|
|
594
606
|
...s.shape,
|
|
595
607
|
...$.shape,
|
|
596
608
|
id: t.string()
|
|
@@ -616,7 +628,7 @@ const V = t.enum([
|
|
|
616
628
|
...l,
|
|
617
629
|
trigger_id: h,
|
|
618
630
|
form_id: t.string()
|
|
619
|
-
}),
|
|
631
|
+
}), At = t.union([
|
|
620
632
|
tt,
|
|
621
633
|
et
|
|
622
634
|
]), nt = t.object({
|
|
@@ -826,7 +838,7 @@ const rt = t.enum([
|
|
|
826
838
|
revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
827
839
|
revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
828
840
|
});
|
|
829
|
-
var
|
|
841
|
+
var dt = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(dt || {});
|
|
830
842
|
const Ht = t.object({
|
|
831
843
|
access_token: t.string(),
|
|
832
844
|
id_token: t.string().optional(),
|
|
@@ -840,7 +852,7 @@ t.object({
|
|
|
840
852
|
code: t.string(),
|
|
841
853
|
state: t.string().optional()
|
|
842
854
|
});
|
|
843
|
-
const
|
|
855
|
+
const gt = t.object({
|
|
844
856
|
button_border_radius: t.number(),
|
|
845
857
|
button_border_weight: t.number(),
|
|
846
858
|
buttons_style: t.enum(["pill"]),
|
|
@@ -894,7 +906,7 @@ const dt = t.object({
|
|
|
894
906
|
logo_url: t.string(),
|
|
895
907
|
social_buttons_layout: t.enum(["bottom"])
|
|
896
908
|
}), bt = t.object({
|
|
897
|
-
borders:
|
|
909
|
+
borders: gt,
|
|
898
910
|
colors: ut,
|
|
899
911
|
displayName: t.string(),
|
|
900
912
|
fonts: _t,
|
|
@@ -979,11 +991,11 @@ function qt(e) {
|
|
|
979
991
|
export {
|
|
980
992
|
lt as Auth0Client,
|
|
981
993
|
u as AuthorizationResponseMode,
|
|
982
|
-
|
|
994
|
+
g as AuthorizationResponseType,
|
|
983
995
|
_ as CodeChallengeMethod,
|
|
984
|
-
|
|
996
|
+
d as ComponentCategory,
|
|
985
997
|
p as ComponentType,
|
|
986
|
-
|
|
998
|
+
dt as GrantType,
|
|
987
999
|
st as LogTypes,
|
|
988
1000
|
D as NodeType,
|
|
989
1001
|
C as applicationInsertSchema,
|
|
@@ -993,9 +1005,9 @@ export {
|
|
|
993
1005
|
jt as auth0UserResponseSchema,
|
|
994
1006
|
K as authParamsSchema,
|
|
995
1007
|
c as baseUserSchema,
|
|
996
|
-
|
|
1008
|
+
gt as bordersSchema,
|
|
997
1009
|
wt as brandingSchema,
|
|
998
|
-
|
|
1010
|
+
T as buttonComponentSchema,
|
|
999
1011
|
z as codeInsertSchema,
|
|
1000
1012
|
kt as codeSchema,
|
|
1001
1013
|
V as codeTypeSchema,
|
|
@@ -1010,22 +1022,22 @@ export {
|
|
|
1010
1022
|
Ot as customDomainWithTenantIdSchema,
|
|
1011
1023
|
Mt as emailProviderSchema,
|
|
1012
1024
|
H as endingSchema,
|
|
1013
|
-
|
|
1025
|
+
A as fieldComponentSchema,
|
|
1014
1026
|
R as flowNodeSchema,
|
|
1015
1027
|
n as fontDetailsSchema,
|
|
1016
1028
|
_t as fontsSchema,
|
|
1017
|
-
|
|
1029
|
+
Tt as formControlSchema,
|
|
1018
1030
|
$ as formInsertSchema,
|
|
1019
1031
|
Z as formNodeComponentDefinition,
|
|
1020
|
-
|
|
1032
|
+
vt as formSchema,
|
|
1021
1033
|
N as genericComponentSchema,
|
|
1022
1034
|
P as genericNodeSchema,
|
|
1023
|
-
|
|
1035
|
+
At as hookInsertSchema,
|
|
1024
1036
|
Nt as hookSchema,
|
|
1025
1037
|
S as identitySchema,
|
|
1026
1038
|
Ut as jwksKeySchema,
|
|
1027
1039
|
it as jwksSchema,
|
|
1028
|
-
|
|
1040
|
+
v as legalComponentSchema,
|
|
1029
1041
|
Rt as logSchema,
|
|
1030
1042
|
at as loginSessionInsertSchema,
|
|
1031
1043
|
xt as loginSessionSchema,
|