@authhero/adapter-interfaces 0.75.0 → 0.77.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 +159 -105
- package/dist/adapter-interfaces.mjs +10 -9
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),de=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),E=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),S=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:E.optional()}),l=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),m=l.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),u=e.z.object({...m.shape,...s.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(S).optional()}),pe=u,ge=l.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),Ee="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Se=(t=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(t));for(;t--;)i+=Ee[a[t]&63];return i};const h=e.z.object({audience:e.z.string().optional(),recipient:e.z.string().optional(),createUpnClaim:e.z.boolean().optional(),mapUnknownClaimsAsIs:e.z.boolean().optional(),passthroughClaimsWithNoMapping:e.z.boolean().optional(),mapIdentities:e.z.boolean().optional(),signatureAlgorithm:e.z.string().optional(),digestAlgorithm:e.z.string().optional(),issuer:e.z.string().optional(),destination:e.z.string().optional(),lifetimeInSeconds:e.z.number().optional(),signResponse:e.z.boolean().optional(),nameIdentifierFormat:e.z.string().optional(),nameIdentifierProbes:e.z.array(e.z.string()).optional(),authnContextClassRef:e.z.string().optional(),mappings:e.z.record(e.z.string()).optional()}),A=e.z.object({id:e.z.string(),name:e.z.string(),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:e.z.object({samlp:h.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:e.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:e.z.string().default(()=>Se()).optional(),disable_sign_ups:e.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),C=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...A.shape}),o=e.z.object({x:e.z.number(),y:e.z.number()});var c=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(c||{}),z=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(z||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(z),type:e.z.nativeEnum(c)}),b=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),f=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),T=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([b,I,O,f,T]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),y=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:o}).passthrough(),U=e.z.union([L,D,y]),F=e.z.object({next_node:e.z.string(),coordinates:o}).passthrough(),j=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:o}).passthrough(),w=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(U),start:F,ending:j,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),me=w.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),p=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(p||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const k=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(p).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),ue=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),H=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),v=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(H.shape),M=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),G=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...M.shape,id:e.z.string()}),he=e.z.object({logoUrl:e.z.string(),loginBackgroundImage:e.z.string().nullish(),style:e.z.object({primaryColor:e.z.string(),buttonTextColor:e.z.string(),primaryHoverColor:e.z.string()}),country:e.z.string().optional(),supportEmail:e.z.string().nullable(),supportUrl:e.z.string().nullable(),name:e.z.string(),showGreyishBackground:e.z.boolean().optional(),termsAndConditionsUrl:e.z.string().nullable(),companyName:e.z.string().optional(),checkoutHideSocial:e.z.boolean().optional(),siteUrl:e.z.string().nullable(),manageSubscriptionsUrl:e.z.string().optional()});e.z.object({...C.shape,tenant:G,connections:e.z.array(v)});const x=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),K=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:x,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Ae=e.z.object({...K.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),W=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Ce=W.extend({tenant_id:e.z.string()}),be=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),V=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(V),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ie=e.z.object({...s.shape,...Y.shape,id:e.z.string()}),q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),_={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},Oe=e.z.object({..._,trigger_id:q,url:e.z.string()}),fe=e.z.object({..._,trigger_id:Q,form_id:e.z.string()}),Te=e.z.union([Oe,fe]),Ne=e.z.object({..._,trigger_id:q,...s.shape,hook_id:e.z.string(),url:e.z.string()}),Re=e.z.object({..._,trigger_id:Q,...s.shape,hook_id:e.z.string(),form_id:e.z.string()}),Le=e.z.union([Ne,Re]),Z=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),De=e.z.object({keys:e.z.array(Z)}),ye=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),J=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:k,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ue=e.z.object({...J.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),$={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Fe=e.z.string().refine(t=>Object.values($).includes(t),{message:"Invalid log type"}),ee=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),je=e.z.object({type:Fe,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ee.optional()}),te=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),we=e.z.object({...te.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),oe=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ne.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),ke=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...oe.shape}),Pe=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var ie=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(ie||{});const He=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const ae=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),se=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),n=e.z.object({bold:e.z.boolean(),size:e.z.number()}),re=e.z.object({body_text:n,buttons_text:n,font_url:e.z.string(),input_labels:n,links:n,links_style:e.z.enum(["normal"]),reference_text_size:e.z.number(),subtitle:n,title:n}),_e=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center"])}),le=e.z.object({header_text_alignment:e.z.enum(["center"]),logo_height:e.z.number(),logo_position:e.z.enum(["center"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom"])}),ce=e.z.object({borders:ae,colors:se,displayName:e.z.string(),fonts:re,page_background:_e,widget:le}),ve=ce.extend({themeId:e.z.string()}),Me=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),Ge=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),ze=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),xe=e.z.object({created_at:e.z.string(),...ze.shape}),Ke=e.z.object({to:e.z.string(),message:e.z.string()}),Be=e.z.object({name:e.z.string(),options:e.z.object({})});function Xe(t){const[i,a]=t.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${t}`);return{connection:i,id:a}}exports.Auth0Client=ee;exports.AuthorizationResponseMode=p;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=ie;exports.LogTypes=$;exports.NodeType=R;exports.applicationInsertSchema=A;exports.applicationSchema=C;exports.auth0FlowInsertSchema=me;exports.auth0FlowSchema=w;exports.auth0UserResponseSchema=pe;exports.authParamsSchema=k;exports.baseUserSchema=l;exports.bordersSchema=ae;exports.brandingSchema=ue;exports.buttonComponentSchema=I;exports.codeInsertSchema=K;exports.codeSchema=Ae;exports.codeTypeSchema=x;exports.colorsSchema=se;exports.componentSchema=N;exports.connectionInsertSchema=H;exports.connectionOptionsSchema=P;exports.connectionSchema=v;exports.coordinatesSchema=o;exports.customDomainInsertSchema=B;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=Ce;exports.emailProviderSchema=Ge;exports.endingSchema=j;exports.fieldComponentSchema=f;exports.flowNodeSchema=D;exports.fontDetailsSchema=n;exports.fontsSchema=re;exports.formControlSchema=be;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=V;exports.formSchema=Ie;exports.genericComponentSchema=T;exports.genericNodeSchema=y;exports.hookInsertSchema=Te;exports.hookSchema=Le;exports.identitySchema=S;exports.jwksKeySchema=De;exports.jwksSchema=Z;exports.legalComponentSchema=O;exports.logSchema=je;exports.loginSessionInsertSchema=J;exports.loginSessionSchema=Ue;exports.nodeSchema=U;exports.openIDConfigurationSchema=ye;exports.pageBackgroundSchema=_e;exports.parseUserId=Xe;exports.passwordInsertSchema=te;exports.passwordSchema=we;exports.profileDataSchema=E;exports.promptSettingSchema=Me;exports.refreshTokenInsertSchema=ze;exports.refreshTokenSchema=xe;exports.richTextComponentSchema=b;exports.samlpAddon=h;exports.sessionInsertSchema=oe;exports.sessionSchema=ke;exports.signingKeySchema=Pe;exports.smsProviderSchema=Be;exports.smsSendParamsSchema=Ke;exports.startSchema=F;exports.stepNodeSchema=L;exports.tenantInsertSchema=M;exports.tenantSchema=G;exports.themeInsertSchema=ce;exports.themeSchema=ve;exports.tokenResponseSchema=He;exports.totalsSchema=de;exports.userInsertSchema=m;exports.userResponseSchema=ge;exports.userSchema=u;exports.vendorSettingsSchema=he;exports.verificationMethodsSchema=X;exports.widgetSchema=le;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@hono/zod-openapi"),de=e.z.object({start:e.z.number(),limit:e.z.number(),length:e.z.number()}),s=e.z.object({created_at:e.z.string(),updated_at:e.z.string()}),E=e.z.object({email:e.z.string().optional(),email_verified:e.z.boolean().optional(),name:e.z.string().optional(),username:e.z.string().optional(),given_name:e.z.string().optional(),phone_number:e.z.string().optional(),phone_verified:e.z.boolean().optional(),family_name:e.z.string().optional()}).catchall(e.z.any()),S=e.z.object({connection:e.z.string(),user_id:e.z.string(),provider:e.z.string(),isSocial:e.z.boolean(),access_token:e.z.string().optional(),access_token_secret:e.z.string().optional(),refresh_token:e.z.string().optional(),profileData:E.optional()}),l=e.z.object({email:e.z.string().optional().transform(t=>t&&t.toLowerCase()),username:e.z.string().optional(),phone_number:e.z.string().optional(),given_name:e.z.string().optional(),family_name:e.z.string().optional(),nickname:e.z.string().optional(),name:e.z.string().optional(),picture:e.z.string().optional(),locale:e.z.string().optional(),linked_to:e.z.string().optional(),profileData:e.z.string().optional(),user_id:e.z.string().optional(),app_metadata:e.z.any().default({}).optional(),user_metadata:e.z.any().default({}).optional()}),m=l.extend({email_verified:e.z.boolean().default(!1),verify_email:e.z.boolean().optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string().optional(),provider:e.z.string().default("email"),connection:e.z.string().default("email"),is_social:e.z.boolean().optional()}),u=e.z.object({...m.shape,...s.shape,user_id:e.z.string(),is_social:e.z.boolean(),email:e.z.string().optional(),login_count:e.z.number().default(0),identities:e.z.array(S).optional()}),pe=u,ge=l.extend({login_count:e.z.number(),multifactor:e.z.array(e.z.string()).optional(),last_ip:e.z.string().optional(),last_login:e.z.string().optional(),user_id:e.z.string()}).catchall(e.z.any()),Ee="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Se=(t=21)=>{let i="",a=crypto.getRandomValues(new Uint8Array(t));for(;t--;)i+=Ee[a[t]&63];return i};const h=e.z.object({audience:e.z.string().optional(),recipient:e.z.string().optional(),createUpnClaim:e.z.boolean().optional(),mapUnknownClaimsAsIs:e.z.boolean().optional(),passthroughClaimsWithNoMapping:e.z.boolean().optional(),mapIdentities:e.z.boolean().optional(),signatureAlgorithm:e.z.string().optional(),digestAlgorithm:e.z.string().optional(),issuer:e.z.string().optional(),destination:e.z.string().optional(),lifetimeInSeconds:e.z.number().optional(),signResponse:e.z.boolean().optional(),nameIdentifierFormat:e.z.string().optional(),nameIdentifierProbes:e.z.array(e.z.string()).optional(),authnContextClassRef:e.z.string().optional(),mappings:e.z.record(e.z.string()).optional()}),A=e.z.object({id:e.z.string(),name:e.z.string(),callbacks:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:e.z.array(e.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:e.z.array(e.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:e.z.object({samlp:h.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:e.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:e.z.string().default(()=>Se()).optional(),disable_sign_ups:e.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"}),client_metadata:e.z.record(e.z.string().length(255)).optional()}),C=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...A.shape}),o=e.z.object({x:e.z.number(),y:e.z.number()});var c=(t=>(t.RICH_TEXT="RICH_TEXT",t.NEXT_BUTTON="NEXT_BUTTON",t.BACK_BUTTON="BACK_BUTTON",t.SUBMIT_BUTTON="SUBMIT_BUTTON",t.DIVIDER="DIVIDER",t.TEXT="TEXT",t.EMAIL="EMAIL",t.PASSWORD="PASSWORD",t.NUMBER="NUMBER",t.PHONE="PHONE",t.DATE="DATE",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t.SELECT="SELECT",t.HIDDEN="HIDDEN",t.LEGAL="LEGAL",t))(c||{}),z=(t=>(t.BLOCK="BLOCK",t.FIELD="FIELD",t))(z||{});const r=e.z.object({id:e.z.string(),category:e.z.nativeEnum(z),type:e.z.nativeEnum(c)}),b=r.extend({category:e.z.literal("BLOCK"),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}).passthrough()}),I=r.extend({category:e.z.literal("BLOCK"),type:e.z.union([e.z.literal("NEXT_BUTTON"),e.z.literal("BACK_BUTTON"),e.z.literal("SUBMIT_BUTTON")]),config:e.z.object({text:e.z.string()}).passthrough()}),f=r.extend({category:e.z.literal("FIELD"),type:e.z.literal("LEGAL"),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({text:e.z.string()}).passthrough()}),O=r.extend({category:e.z.literal("FIELD"),type:e.z.union([e.z.literal("TEXT"),e.z.literal("EMAIL"),e.z.literal("PASSWORD"),e.z.literal("NUMBER"),e.z.literal("PHONE"),e.z.literal("DATE"),e.z.literal("CHECKBOX"),e.z.literal("RADIO"),e.z.literal("SELECT"),e.z.literal("HIDDEN")]),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),config:e.z.object({label:e.z.string().optional(),placeholder:e.z.string().optional()}).passthrough()}),T=e.z.object({id:e.z.string(),category:e.z.string(),type:e.z.string()}).passthrough(),N=e.z.union([b,I,f,O,T]);var R=(t=>(t.STEP="STEP",t.FLOW="FLOW",t.CONDITION="CONDITION",t.ACTION="ACTION",t))(R||{});const L=e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({components:e.z.array(N),next_node:e.z.string()}).passthrough()}),D=e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:o,alias:e.z.string().optional(),config:e.z.object({flow_id:e.z.string(),next_node:e.z.string()})}),y=e.z.object({id:e.z.string(),type:e.z.string(),coordinates:o}).passthrough(),U=e.z.union([L,D,y]),F=e.z.object({next_node:e.z.string(),coordinates:o}).passthrough(),j=e.z.object({resume_flow:e.z.boolean().optional(),coordinates:o}).passthrough(),w=e.z.object({id:e.z.string(),name:e.z.string(),languages:e.z.object({primary:e.z.string()}).passthrough(),nodes:e.z.array(U),start:F,ending:j,created_at:e.z.string(),updated_at:e.z.string(),links:e.z.object({sdkSrc:e.z.string().optional(),sdk_src:e.z.string().optional()}).passthrough()}).passthrough(),me=w.omit({id:!0,created_at:!0,updated_at:!0});var d=(t=>(t.TOKEN="token",t.TOKEN_ID_TOKEN="token id_token",t.CODE="code",t))(d||{}),p=(t=>(t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post",t.WEB_MESSAGE="web_message",t.SAML_POST="saml_post",t))(p||{}),g=(t=>(t.S256="S256",t.Plain="plain",t))(g||{});const k=e.z.object({client_id:e.z.string(),act_as:e.z.string().optional(),response_type:e.z.nativeEnum(d).optional(),response_mode:e.z.nativeEnum(p).optional(),redirect_uri:e.z.string().optional(),audience:e.z.string().optional(),organization:e.z.string().optional(),state:e.z.string().optional(),nonce:e.z.string().optional(),scope:e.z.string().optional(),prompt:e.z.string().optional(),code_challenge_method:e.z.nativeEnum(g).optional(),code_challenge:e.z.string().optional(),username:e.z.string().optional(),ui_locales:e.z.string().optional(),vendor_id:e.z.string().optional()}),ue=e.z.object({colors:e.z.object({primary:e.z.string(),page_background:e.z.object({type:e.z.string().optional(),start:e.z.string().optional(),end:e.z.string().optional(),angle_deg:e.z.number().optional()}).optional()}).optional(),logo_url:e.z.string().optional(),favicon_url:e.z.string().optional(),font:e.z.object({url:e.z.string()}).optional()}),P=e.z.object({kid:e.z.string().optional(),team_id:e.z.string().optional(),realms:e.z.string().optional(),authentication_method:e.z.string().optional(),client_id:e.z.string().optional(),client_secret:e.z.string().optional(),app_secret:e.z.string().optional(),scope:e.z.string().optional(),authorization_endpoint:e.z.string().optional(),token_endpoint:e.z.string().optional(),userinfo_endpoint:e.z.string().optional(),jwks_uri:e.z.string().optional(),discovery_url:e.z.string().optional(),issuer:e.z.string().optional(),provider:e.z.string().optional(),from:e.z.string().optional(),twilio_sid:e.z.string().optional(),twilio_token:e.z.string().optional()}),H=e.z.object({id:e.z.string().optional(),name:e.z.string(),strategy:e.z.string(),options:P.default({}),enabled_clients:e.z.array(e.z.string()).default([]).optional(),response_type:e.z.custom().optional(),response_mode:e.z.custom().optional()}),v=e.z.object({id:e.z.string(),created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t)}).extend(H.shape),M=e.z.object({name:e.z.string(),audience:e.z.string(),sender_email:e.z.string().email(),sender_name:e.z.string(),support_url:e.z.string().url().optional(),logo:e.z.string().url().optional(),primary_color:e.z.string().optional(),secondary_color:e.z.string().optional(),language:e.z.string().optional(),id:e.z.string().optional()}),G=e.z.object({created_at:e.z.string().transform(t=>t===null?"":t),updated_at:e.z.string().transform(t=>t===null?"":t),...M.shape,id:e.z.string()}),he=e.z.object({logoUrl:e.z.string(),loginBackgroundImage:e.z.string().nullish(),style:e.z.object({primaryColor:e.z.string(),buttonTextColor:e.z.string(),primaryHoverColor:e.z.string()}),country:e.z.string().optional(),supportEmail:e.z.string().nullable(),supportUrl:e.z.string().nullable(),name:e.z.string(),showGreyishBackground:e.z.boolean().optional(),termsAndConditionsUrl:e.z.string().nullable(),companyName:e.z.string().optional(),checkoutHideSocial:e.z.boolean().optional(),siteUrl:e.z.string().nullable(),manageSubscriptionsUrl:e.z.string().optional()});e.z.object({...C.shape,tenant:G,connections:e.z.array(v)});const x=e.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),K=e.z.object({code_id:e.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:e.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:e.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:x,code_verifier:e.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),code_challenge:e.z.string().optional().openapi({description:"The code challenge used in PKCE in outbound flows"}),code_challenge_method:e.z.enum(["plain","S256"]).optional().openapi({description:"The code challenge method used in PKCE in outbound flows"}),redirect_uri:e.z.string().optional().openapi({description:"The redirect URI associated with the code"}),nonce:e.z.string().optional().openapi({description:"The nonce value used for security in OIDC flows"}),state:e.z.string().optional().openapi({description:"The state parameter used for CSRF protection in OAuth flows"}),expires_at:e.z.string(),used_at:e.z.string().optional(),user_id:e.z.string().optional()}),Ae=e.z.object({...K.shape,created_at:e.z.string()}),B=e.z.object({domain:e.z.string(),custom_domain_id:e.z.string().optional(),type:e.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:e.z.enum(["txt"]).optional(),tls_policy:e.z.enum(["recommended"]).optional(),custom_client_ip_header:e.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:e.z.record(e.z.string().max(255)).optional()}),X=e.z.object({name:e.z.literal("txt"),record:e.z.string(),domain:e.z.string()}),W=e.z.object({...B.shape,custom_domain_id:e.z.string(),primary:e.z.boolean(),status:e.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:e.z.string().optional(),verification:e.z.object({methods:e.z.array(X)}).optional(),tls_policy:e.z.string().optional()}),Ce=W.extend({tenant_id:e.z.string()}),be=e.z.object({id:e.z.string(),type:e.z.literal("submit"),label:e.z.string(),className:e.z.string().optional(),disabled:e.z.boolean().optional().default(!1),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0),customizations:e.z.record(e.z.string(),e.z.any()).optional()}),V=e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("RICH_TEXT"),config:e.z.object({content:e.z.string()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("LEGAL"),config:e.z.object({text:e.z.string(),html:e.z.boolean().optional()}),required:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("TEXT"),config:e.z.object({placeholder:e.z.string().optional(),multiline:e.z.boolean().optional()}),required:e.z.boolean().optional(),sensitive:e.z.boolean().optional(),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)}),e.z.object({id:e.z.string(),type:e.z.literal("NEXT_BUTTON"),config:e.z.object({text:e.z.string().optional()}),order:e.z.number().optional(),visible:e.z.boolean().optional().default(!0)})]),Y=e.z.object({name:e.z.string().openapi({description:"The name of the form"}),messages:e.z.object({errors:e.z.record(e.z.string(),e.z.any()).optional(),custom:e.z.record(e.z.string(),e.z.any()).optional()}).optional(),languages:e.z.object({primary:e.z.string().optional(),default:e.z.string().optional()}).optional(),translations:e.z.record(e.z.string(),e.z.any()).optional(),nodes:e.z.array(e.z.discriminatedUnion("type",[e.z.object({id:e.z.string(),type:e.z.literal("FLOW"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({flow_id:e.z.string().max(30),next_node:e.z.string()})}),e.z.object({id:e.z.string(),type:e.z.literal("ROUTER"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150),config:e.z.object({rules:e.z.array(e.z.object({id:e.z.string(),alias:e.z.string().min(1).max(150).optional(),condition:e.z.any(),next_node:e.z.string()})),fallback:e.z.array(e.z.string())})}),e.z.object({id:e.z.string(),type:e.z.literal("STEP"),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}),alias:e.z.string().min(1).max(150).optional(),config:e.z.object({components:e.z.array(V),next_node:e.z.string()})})])).optional(),start:e.z.object({hidden_fields:e.z.array(e.z.object({key:e.z.string(),value:e.z.string()})).optional(),next_node:e.z.string().optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional()}).optional(),ending:e.z.object({redirection:e.z.object({delay:e.z.number().optional(),target:e.z.string().optional()}).optional(),after_submit:e.z.object({flow_id:e.z.string().optional()}).optional(),coordinates:e.z.object({x:e.z.number(),y:e.z.number()}).optional(),resume_flow:e.z.boolean().optional()}).optional(),style:e.z.object({css:e.z.string().optional()}).optional()}).openapi({description:"Schema for flow-based forms (matches new JSON structure)"}),Ie=e.z.object({...s.shape,...Y.shape,id:e.z.string()}),q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),Q=e.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),_={enabled:e.z.boolean().default(!1),synchronous:e.z.boolean().default(!1),priority:e.z.number().optional(),hook_id:e.z.string().optional()},fe=e.z.object({..._,trigger_id:q,url:e.z.string()}),Oe=e.z.object({..._,trigger_id:Q,form_id:e.z.string()}),Te=e.z.union([fe,Oe]),Ne=e.z.object({..._,trigger_id:q,...s.shape,hook_id:e.z.string(),url:e.z.string()}),Re=e.z.object({..._,trigger_id:Q,...s.shape,hook_id:e.z.string(),form_id:e.z.string()}),Le=e.z.union([Ne,Re]),Z=e.z.object({alg:e.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:e.z.string(),kid:e.z.string(),kty:e.z.enum(["RSA","EC","oct"]),n:e.z.string(),x5t:e.z.string().optional(),x5c:e.z.array(e.z.string()).optional(),use:e.z.enum(["sig","enc"]).optional()}),De=e.z.object({keys:e.z.array(Z)}),ye=e.z.object({issuer:e.z.string(),authorization_endpoint:e.z.string(),token_endpoint:e.z.string(),device_authorization_endpoint:e.z.string(),userinfo_endpoint:e.z.string(),mfa_challenge_endpoint:e.z.string(),jwks_uri:e.z.string(),registration_endpoint:e.z.string(),revocation_endpoint:e.z.string(),scopes_supported:e.z.array(e.z.string()),response_types_supported:e.z.array(e.z.string()),code_challenge_methods_supported:e.z.array(e.z.string()),response_modes_supported:e.z.array(e.z.string()),subject_types_supported:e.z.array(e.z.string()),id_token_signing_alg_values_supported:e.z.array(e.z.string()),token_endpoint_auth_methods_supported:e.z.array(e.z.string()),claims_supported:e.z.array(e.z.string()),request_uri_parameter_supported:e.z.boolean(),request_parameter_supported:e.z.boolean(),token_endpoint_auth_signing_alg_values_supported:e.z.array(e.z.string())}),J=e.z.object({csrf_token:e.z.string(),auth0Client:e.z.string().optional(),authParams:k,expires_at:e.z.string(),deleted_at:e.z.string().optional(),ip:e.z.string().optional(),useragent:e.z.string().optional(),session_id:e.z.string().optional(),authorization_url:e.z.string().optional(),login_completed:e.z.boolean().optional().default(!1)}).openapi({description:"This represents a login sesion"}),Ue=e.z.object({...J.shape,id:e.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:e.z.string(),updated_at:e.z.string()}),$={ACLS_SUMMARY:"acls_summary",ACTIONS_EXECUTION_FAILED:"actions_execution_failed",API_LIMIT:"api_limit",API_LIMIT_WARNING:"api_limit_warning",APPI:"appi",CIBA_EXCHANGE_FAILED:"ciba_exchange_failed",CIBA_EXCHANGE_SUCCEEDED:"ciba_exchange_succeeded",CIBA_START_FAILED:"ciba_start_failed",CIBA_START_SUCCEEDED:"ciba_start_succeeded",CODE_LINK_SENT:"cls",CODE_SENT:"cs",DEPRECATION_NOTICE:"depnote",FAILED_LOGIN:"f",FAILED_BY_CONNECTOR:"fc",FAILED_CHANGE_EMAIL:"fce",FAILED_BY_CORS:"fco",FAILED_CROSS_ORIGIN_AUTHENTICATION:"fcoa",FAILED_CHANGE_PASSWORD:"fcp",FAILED_POST_CHANGE_PASSWORD_HOOK:"fcph",FAILED_CHANGE_PHONE_NUMBER:"fcpn",FAILED_CHANGE_PASSWORD_REQUEST:"fcpr",FAILED_CONNECTOR_PROVISIONING:"fcpro",FAILED_CHANGE_USERNAME:"fcu",FAILED_DELEGATION:"fd",FAILED_DEVICE_ACTIVATION:"fdeac",FAILED_DEVICE_AUTHORIZATION_REQUEST:"fdeaz",USER_CANCELED_DEVICE_CONFIRMATION:"fdecc",FAILED_USER_DELETION:"fdu",FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"feacft",FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"feccft",FAILED_EXCHANGE_CUSTOM_TOKEN:"fecte",FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"fede",FAILED_FEDERATED_LOGOUT:"federated_logout_failed",FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN:"fens",FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"feoobft",FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"feotpft",FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"fepft",FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN:"fepotpft",FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"fercft",FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN:"ferrt",FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"fertft",FAILED_HOOK:"fh",FAILED_INVITE_ACCEPT:"fi",FAILED_LOGOUT:"flo",FLOWS_EXECUTION_COMPLETED:"flows_execution_completed",FLOWS_EXECUTION_FAILED:"flows_execution_failed",FAILED_SENDING_NOTIFICATION:"fn",FORMS_SUBMISSION_FAILED:"forms_submission_failed",FORMS_SUBMISSION_SUCCEEDED:"forms_submission_succeeded",FAILED_LOGIN_INCORRECT_PASSWORD:"fp",FAILED_PUSHED_AUTHORIZATION_REQUEST:"fpar",FAILED_POST_USER_REGISTRATION_HOOK:"fpurh",FAILED_SIGNUP:"fs",FAILED_SILENT_AUTH:"fsa",FAILED_LOGIN_INVALID_EMAIL_USERNAME:"fu",FAILED_USERS_IMPORT:"fui",FAILED_VERIFICATION_EMAIL:"fv",FAILED_VERIFICATION_EMAIL_REQUEST:"fvr",EMAIL_VERIFICATION_CONFIRMED:"gd_auth_email_verification",EMAIL_VERIFICATION_FAILED:"gd_auth_fail_email_verification",MFA_AUTH_FAILED:"gd_auth_failed",MFA_AUTH_REJECTED:"gd_auth_rejected",MFA_AUTH_SUCCESS:"gd_auth_succeed",MFA_ENROLLMENT_COMPLETE:"gd_enrollment_complete",TOO_MANY_MFA_FAILURES:"gd_otp_rate_limit_exceed",MFA_RECOVERY_FAILED:"gd_recovery_failed",MFA_RECOVERY_RATE_LIMIT_EXCEED:"gd_recovery_rate_limit_exceed",MFA_RECOVERY_SUCCESS:"gd_recovery_succeed",MFA_EMAIL_SENT:"gd_send_email",EMAIL_VERIFICATION_SENT:"gd_send_email_verification",EMAIL_VERIFICATION_SEND_FAILURE:"gd_send_email_verification_failure",PUSH_NOTIFICATION_SENT:"gd_send_pn",ERROR_SENDING_MFA_PUSH_NOTIFICATION:"gd_send_pn_failure",MFA_SMS_SENT:"gd_send_sms",ERROR_SENDING_MFA_SMS:"gd_send_sms_failure",MFA_VOICE_CALL_SUCCESS:"gd_send_voice",MFA_VOICE_CALL_FAILED:"gd_send_voice_failure",SECOND_FACTOR_STARTED:"gd_start_auth",MFA_ENROLL_STARTED:"gd_start_enroll",MFA_ENROLLMENT_FAILED:"gd_start_enroll_failed",GUARDIAN_TENANT_UPDATE:"gd_tenant_update",UNENROLL_DEVICE_ACCOUNT:"gd_unenroll",UPDATE_DEVICE_ACCOUNT:"gd_update_device_account",WEBAUTHN_CHALLENGE_FAILED:"gd_webauthn_challenge_failed",WEBAUTHN_ENROLLMENT_FAILED:"gd_webauthn_enrollment_failed",FAILED_KMS_API_OPERATION:"kms_key_management_failure",SUCCESS_KMS_API_OPERATION:"kms_key_management_success",KMS_KEY_STATE_CHANGED:"kms_key_state_changed",TOO_MANY_CALLS_TO_DELEGATION:"limit_delegation",BLOCKED_IP_ADDRESS:"limit_mu",BLOCKED_ACCOUNT_IP:"limit_sul",BLOCKED_ACCOUNT_EMAIL:"limit_wc",MFA_REQUIRED:"mfar",MANAGEMENT_API_READ_OPERATION:"mgmt_api_read",FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_failed",SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT:"my_account_authentication_method_succeeded",FAILED_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_failed",SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT:"oidc_backchannel_logout_succeeded",ORGANIZATION_MEMBER_ADDED:"organization_member_added",PASSKEY_CHALLENGE_FAILED:"passkey_challenge_failed",PASSKEY_CHALLENGE_STARTED:"passkey_challenge_started",PRE_LOGIN_ASSESSMENT:"pla",BREACHED_PASSWORD:"pwd_leak",BREACHED_PASSWORD_ON_RESET:"reset_pwd_leak",SUCCESS_RESOURCE_CLEANUP:"resource_cleanup",RICH_CONSENTS_ACCESS_ERROR:"rich_consents_access_error",SUCCESS_LOGIN:"s",SUCCESS_API_OPERATION:"sapi",SUCCESS_CHANGE_EMAIL:"sce",SUCCESS_CROSS_ORIGIN_AUTHENTICATION:"scoa",SUCCESS_CHANGE_PASSWORD:"scp",SUCCESS_CHANGE_PHONE_NUMBER:"scpn",SUCCESS_CHANGE_PASSWORD_REQUEST:"scpr",SUCCESS_CHANGE_USERNAME:"scu",SUCCESS_CREDENTIAL_VALIDATION:"scv",SUCCESS_DELEGATION:"sd",SUCCESS_USER_DELETION:"sdu",SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN:"seacft",SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS:"seccft",SUCCESS_EXCHANGE_CUSTOM_TOKEN:"secte",SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN:"sede",SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN:"sens",SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN:"seoobft",SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN:"seotpft",SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN:"sepft",SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN:"sepkoobft",SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN:"sepkotpft",SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sepkrcft",SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN:"sercft",SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN:"sertft",SUCCESSFULLY_ACCEPTED_USER_INVITE:"si",BREACHED_PASSWORD_ON_SIGNUP:"signup_pwd_leak",SUCCESS_LOGOUT:"slo",SUCCESS_REVOCATION:"srrt",SUCCESS_SIGNUP:"ss",FAILED_SS_SSO_OPERATION:"ss_sso_failure",INFORMATION_FROM_SS_SSO_OPERATION:"ss_sso_info",SUCCESS_SS_SSO_OPERATION:"ss_sso_success",SUCCESS_SILENT_AUTH:"ssa",SUCCESSFUL_SCIM_OPERATION:"sscim",SUCCESSFULLY_IMPORTED_USERS:"sui",SUCCESS_VERIFICATION_EMAIL:"sv",SUCCESS_VERIFICATION_EMAIL_REQUEST:"svr",MAX_AMOUNT_OF_AUTHENTICATORS:"too_many_records",USER_LOGIN_BLOCK_RELEASED:"ublkdu",FAILED_UNIVERSAL_LOGOUT:"universal_logout_failed",SUCCESSFUL_UNIVERSAL_LOGOUT:"universal_logout_succeeded",WARNING_DURING_LOGIN:"w",WARNING_SENDING_NOTIFICATION:"wn",WARNING_USER_MANAGEMENT:"wum"},Fe=e.z.string().refine(t=>Object.values($).includes(t),{message:"Invalid log type"}),ee=e.z.object({name:e.z.string(),version:e.z.string(),env:e.z.object({node:e.z.string().optional()}).optional()}),je=e.z.object({type:Fe,date:e.z.string(),description:e.z.string().optional(),log_id:e.z.string().optional(),_id:e.z.string().optional(),ip:e.z.string(),user_agent:e.z.string(),details:e.z.any().optional(),isMobile:e.z.boolean(),user_id:e.z.string().optional(),user_name:e.z.string().optional(),connection:e.z.string().optional(),connection_id:e.z.string().optional(),client_id:e.z.string().optional(),client_name:e.z.string().optional(),audience:e.z.string().optional(),scope:e.z.array(e.z.string()).optional(),strategy:e.z.string().optional(),strategy_type:e.z.string().optional(),hostname:e.z.string().optional(),auth0_client:ee.optional()}),te=e.z.object({user_id:e.z.string(),password:e.z.string(),algorithm:e.z.enum(["bcrypt","argon2id"]).default("argon2id")}),we=e.z.object({...te.shape,created_at:e.z.string(),updated_at:e.z.string()}),ne=e.z.object({initial_user_agent:e.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:e.z.string().describe("First IP address associated with this session"),initial_asn:e.z.string().describe("First autonomous system number associated with this session"),last_user_agent:e.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:e.z.string().describe("Last IP address from which this user logged in"),last_asn:e.z.string().describe("Last autonomous system number from which this user logged in")}),oe=e.z.object({id:e.z.string(),revoked_at:e.z.string().optional(),used_at:e.z.string().optional(),user_id:e.z.string().describe("The user ID associated with the session"),expires_at:e.z.string().optional(),login_session_id:e.z.string(),idle_expires_at:e.z.string().optional(),device:ne.describe("Metadata related to the device used in the session"),clients:e.z.array(e.z.string()).describe("List of client details for the session")}),ke=e.z.object({created_at:e.z.string(),updated_at:e.z.string(),authenticated_at:e.z.string(),last_interaction_at:e.z.string(),...oe.shape}),Pe=e.z.object({kid:e.z.string().openapi({description:"The key id of the signing key"}),cert:e.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:e.z.string().openapi({description:"The cert fingerprint"}),thumbprint:e.z.string().openapi({description:"The cert thumbprint"}),pkcs7:e.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:e.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:e.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:e.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:e.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:e.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:e.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:e.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var ie=(t=>(t.RefreshToken="refresh_token",t.AuthorizationCode="authorization_code",t.ClientCredential="client_credentials",t.Passwordless="passwordless",t.Password="password",t.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",t))(ie||{});const He=e.z.object({access_token:e.z.string(),id_token:e.z.string().optional(),scope:e.z.string().optional(),state:e.z.string().optional(),refresh_token:e.z.string().optional(),token_type:e.z.string(),expires_in:e.z.number()});e.z.object({code:e.z.string(),state:e.z.string().optional()});const ae=e.z.object({button_border_radius:e.z.number(),button_border_weight:e.z.number(),buttons_style:e.z.enum(["pill","rounded","sharp"]),input_border_radius:e.z.number(),input_border_weight:e.z.number(),inputs_style:e.z.enum(["pill","rounded","sharp"]),show_widget_shadow:e.z.boolean(),widget_border_weight:e.z.number(),widget_corner_radius:e.z.number()}),se=e.z.object({base_focus_color:e.z.string(),base_hover_color:e.z.string(),body_text:e.z.string(),captcha_widget_theme:e.z.enum(["auto","dark","light"]),error:e.z.string(),header:e.z.string(),icons:e.z.string(),input_background:e.z.string(),input_border:e.z.string(),input_filled_text:e.z.string(),input_labels_placeholders:e.z.string(),links_focused_components:e.z.string(),primary_button:e.z.string(),primary_button_label:e.z.string(),secondary_button_border:e.z.string(),secondary_button_label:e.z.string(),success:e.z.string(),widget_background:e.z.string(),widget_border:e.z.string()}),n=e.z.object({bold:e.z.boolean(),size:e.z.number()}),re=e.z.object({body_text:n,buttons_text:n,font_url:e.z.string(),input_labels:n,links:n,links_style:e.z.enum(["normal","underlined"]),reference_text_size:e.z.number(),subtitle:n,title:n}),_e=e.z.object({background_color:e.z.string(),background_image_url:e.z.string(),page_layout:e.z.enum(["center","left","right"])}),le=e.z.object({header_text_alignment:e.z.enum(["center","left","right"]),logo_height:e.z.number(),logo_position:e.z.enum(["center","left","none","right"]),logo_url:e.z.string(),social_buttons_layout:e.z.enum(["bottom","top"])}),ce=e.z.object({borders:ae,colors:se,displayName:e.z.string(),fonts:re,page_background:_e,widget:le}),ve=ce.extend({themeId:e.z.string()}),Me=e.z.object({universal_login_experience:e.z.enum(["new","classic"]).default("new"),identifier_first:e.z.boolean().default(!0),password_first:e.z.boolean().default(!1),webauthn_platform_first_factor:e.z.boolean()}),Ge=e.z.object({name:e.z.string(),enabled:e.z.boolean().optional().default(!0),default_from_address:e.z.string().optional(),credentials:e.z.union([e.z.object({accessKeyId:e.z.string(),secretAccessKey:e.z.string(),region:e.z.string()}),e.z.object({smtp_host:e.z.array(e.z.string()),smtp_port:e.z.number(),smtp_user:e.z.string(),smtp_pass:e.z.string()}),e.z.object({api_key:e.z.string(),domain:e.z.string().optional()}),e.z.object({connectionString:e.z.string()}),e.z.object({tenantId:e.z.string(),clientId:e.z.string(),clientSecret:e.z.string()})]),settings:e.z.object({}).optional()}),ze=e.z.object({id:e.z.string(),session_id:e.z.string(),user_id:e.z.string(),client_id:e.z.string(),expires_at:e.z.string().optional(),idle_expires_at:e.z.string().optional(),last_exchanged_at:e.z.string().optional(),device:ne,resource_servers:e.z.array(e.z.object({audience:e.z.string(),scopes:e.z.string()})),rotating:e.z.boolean()}),xe=e.z.object({created_at:e.z.string(),...ze.shape}),Ke=e.z.object({to:e.z.string(),message:e.z.string()}),Be=e.z.object({name:e.z.string(),options:e.z.object({})});function Xe(t){const[i,a]=t.split("|");if(!i||!a)throw new Error(`Invalid user_id: ${t}`);return{connection:i,id:a}}exports.Auth0Client=ee;exports.AuthorizationResponseMode=p;exports.AuthorizationResponseType=d;exports.CodeChallengeMethod=g;exports.ComponentCategory=z;exports.ComponentType=c;exports.GrantType=ie;exports.LogTypes=$;exports.NodeType=R;exports.applicationInsertSchema=A;exports.applicationSchema=C;exports.auth0FlowInsertSchema=me;exports.auth0FlowSchema=w;exports.auth0UserResponseSchema=pe;exports.authParamsSchema=k;exports.baseUserSchema=l;exports.bordersSchema=ae;exports.brandingSchema=ue;exports.buttonComponentSchema=I;exports.codeInsertSchema=K;exports.codeSchema=Ae;exports.codeTypeSchema=x;exports.colorsSchema=se;exports.componentSchema=N;exports.connectionInsertSchema=H;exports.connectionOptionsSchema=P;exports.connectionSchema=v;exports.coordinatesSchema=o;exports.customDomainInsertSchema=B;exports.customDomainSchema=W;exports.customDomainWithTenantIdSchema=Ce;exports.emailProviderSchema=Ge;exports.endingSchema=j;exports.fieldComponentSchema=O;exports.flowNodeSchema=D;exports.fontDetailsSchema=n;exports.fontsSchema=re;exports.formControlSchema=be;exports.formInsertSchema=Y;exports.formNodeComponentDefinition=V;exports.formSchema=Ie;exports.genericComponentSchema=T;exports.genericNodeSchema=y;exports.hookInsertSchema=Te;exports.hookSchema=Le;exports.identitySchema=S;exports.jwksKeySchema=De;exports.jwksSchema=Z;exports.legalComponentSchema=f;exports.logSchema=je;exports.loginSessionInsertSchema=J;exports.loginSessionSchema=Ue;exports.nodeSchema=U;exports.openIDConfigurationSchema=ye;exports.pageBackgroundSchema=_e;exports.parseUserId=Xe;exports.passwordInsertSchema=te;exports.passwordSchema=we;exports.profileDataSchema=E;exports.promptSettingSchema=Me;exports.refreshTokenInsertSchema=ze;exports.refreshTokenSchema=xe;exports.richTextComponentSchema=b;exports.samlpAddon=h;exports.sessionInsertSchema=oe;exports.sessionSchema=ke;exports.signingKeySchema=Pe;exports.smsProviderSchema=Be;exports.smsSendParamsSchema=Ke;exports.startSchema=F;exports.stepNodeSchema=L;exports.tenantInsertSchema=M;exports.tenantSchema=G;exports.themeInsertSchema=ce;exports.themeSchema=ve;exports.tokenResponseSchema=He;exports.totalsSchema=de;exports.userInsertSchema=m;exports.userResponseSchema=ge;exports.userSchema=u;exports.vendorSettingsSchema=he;exports.verificationMethodsSchema=X;exports.widgetSchema=le;
|
|
@@ -739,6 +739,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
739
739
|
]>>>;
|
|
740
740
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
741
741
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
742
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
742
743
|
}, "strip", z.ZodTypeAny, {
|
|
743
744
|
name: string;
|
|
744
745
|
id: string;
|
|
@@ -770,6 +771,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
770
771
|
} | undefined;
|
|
771
772
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
772
773
|
client_secret?: string | undefined;
|
|
774
|
+
client_metadata?: Record<string, string> | undefined;
|
|
773
775
|
}, {
|
|
774
776
|
name: string;
|
|
775
777
|
id: string;
|
|
@@ -801,8 +803,9 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
801
803
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
802
804
|
client_secret?: string | undefined;
|
|
803
805
|
disable_sign_ups?: boolean | undefined;
|
|
806
|
+
client_metadata?: Record<string, string> | undefined;
|
|
804
807
|
}>;
|
|
805
|
-
export type ApplicationInsert = z.
|
|
808
|
+
export type ApplicationInsert = z.input<typeof applicationInsertSchema>;
|
|
806
809
|
export declare const applicationSchema: z.ZodObject<{
|
|
807
810
|
id: z.ZodString;
|
|
808
811
|
name: z.ZodString;
|
|
@@ -910,6 +913,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
910
913
|
]>>>;
|
|
911
914
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
912
915
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
916
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
913
917
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
914
918
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
915
919
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -945,6 +949,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
945
949
|
} | undefined;
|
|
946
950
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
947
951
|
client_secret?: string | undefined;
|
|
952
|
+
client_metadata?: Record<string, string> | undefined;
|
|
948
953
|
}, {
|
|
949
954
|
created_at: string;
|
|
950
955
|
updated_at: string;
|
|
@@ -978,6 +983,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
978
983
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
979
984
|
client_secret?: string | undefined;
|
|
980
985
|
disable_sign_ups?: boolean | undefined;
|
|
986
|
+
client_metadata?: Record<string, string> | undefined;
|
|
981
987
|
}>;
|
|
982
988
|
export type Application = z.infer<typeof applicationSchema>;
|
|
983
989
|
/**
|
|
@@ -8414,6 +8420,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8414
8420
|
]>>>;
|
|
8415
8421
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8416
8422
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8423
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8417
8424
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
8418
8425
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
8419
8426
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8493,6 +8500,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8493
8500
|
} | undefined;
|
|
8494
8501
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
8495
8502
|
client_secret?: string | undefined;
|
|
8503
|
+
client_metadata?: Record<string, string> | undefined;
|
|
8496
8504
|
}, {
|
|
8497
8505
|
created_at: string;
|
|
8498
8506
|
updated_at: string;
|
|
@@ -8570,6 +8578,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8570
8578
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
8571
8579
|
client_secret?: string | undefined;
|
|
8572
8580
|
disable_sign_ups?: boolean | undefined;
|
|
8581
|
+
client_metadata?: Record<string, string> | undefined;
|
|
8573
8582
|
}>;
|
|
8574
8583
|
export type Client = z.infer<typeof ClientSchema>;
|
|
8575
8584
|
export declare const codeTypeSchema: z.ZodEnum<[
|
|
@@ -12456,12 +12465,16 @@ export declare const bordersSchema: z.ZodObject<{
|
|
|
12456
12465
|
button_border_radius: z.ZodNumber;
|
|
12457
12466
|
button_border_weight: z.ZodNumber;
|
|
12458
12467
|
buttons_style: z.ZodEnum<[
|
|
12459
|
-
"pill"
|
|
12468
|
+
"pill",
|
|
12469
|
+
"rounded",
|
|
12470
|
+
"sharp"
|
|
12460
12471
|
]>;
|
|
12461
12472
|
input_border_radius: z.ZodNumber;
|
|
12462
12473
|
input_border_weight: z.ZodNumber;
|
|
12463
12474
|
inputs_style: z.ZodEnum<[
|
|
12464
|
-
"pill"
|
|
12475
|
+
"pill",
|
|
12476
|
+
"rounded",
|
|
12477
|
+
"sharp"
|
|
12465
12478
|
]>;
|
|
12466
12479
|
show_widget_shadow: z.ZodBoolean;
|
|
12467
12480
|
widget_border_weight: z.ZodNumber;
|
|
@@ -12469,20 +12482,20 @@ export declare const bordersSchema: z.ZodObject<{
|
|
|
12469
12482
|
}, "strip", z.ZodTypeAny, {
|
|
12470
12483
|
button_border_radius: number;
|
|
12471
12484
|
button_border_weight: number;
|
|
12472
|
-
buttons_style: "pill";
|
|
12485
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
12473
12486
|
input_border_radius: number;
|
|
12474
12487
|
input_border_weight: number;
|
|
12475
|
-
inputs_style: "pill";
|
|
12488
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
12476
12489
|
show_widget_shadow: boolean;
|
|
12477
12490
|
widget_border_weight: number;
|
|
12478
12491
|
widget_corner_radius: number;
|
|
12479
12492
|
}, {
|
|
12480
12493
|
button_border_radius: number;
|
|
12481
12494
|
button_border_weight: number;
|
|
12482
|
-
buttons_style: "pill";
|
|
12495
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
12483
12496
|
input_border_radius: number;
|
|
12484
12497
|
input_border_weight: number;
|
|
12485
|
-
inputs_style: "pill";
|
|
12498
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
12486
12499
|
show_widget_shadow: boolean;
|
|
12487
12500
|
widget_border_weight: number;
|
|
12488
12501
|
widget_corner_radius: number;
|
|
@@ -12492,7 +12505,9 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
12492
12505
|
base_hover_color: z.ZodString;
|
|
12493
12506
|
body_text: z.ZodString;
|
|
12494
12507
|
captcha_widget_theme: z.ZodEnum<[
|
|
12495
|
-
"auto"
|
|
12508
|
+
"auto",
|
|
12509
|
+
"dark",
|
|
12510
|
+
"light"
|
|
12496
12511
|
]>;
|
|
12497
12512
|
error: z.ZodString;
|
|
12498
12513
|
header: z.ZodString;
|
|
@@ -12513,7 +12528,7 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
12513
12528
|
base_focus_color: string;
|
|
12514
12529
|
base_hover_color: string;
|
|
12515
12530
|
body_text: string;
|
|
12516
|
-
captcha_widget_theme: "auto";
|
|
12531
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
12517
12532
|
error: string;
|
|
12518
12533
|
header: string;
|
|
12519
12534
|
icons: string;
|
|
@@ -12533,7 +12548,7 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
12533
12548
|
base_focus_color: string;
|
|
12534
12549
|
base_hover_color: string;
|
|
12535
12550
|
body_text: string;
|
|
12536
|
-
captcha_widget_theme: "auto";
|
|
12551
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
12537
12552
|
error: string;
|
|
12538
12553
|
header: string;
|
|
12539
12554
|
icons: string;
|
|
@@ -12603,7 +12618,8 @@ export declare const fontsSchema: z.ZodObject<{
|
|
|
12603
12618
|
size: number;
|
|
12604
12619
|
}>;
|
|
12605
12620
|
links_style: z.ZodEnum<[
|
|
12606
|
-
"normal"
|
|
12621
|
+
"normal",
|
|
12622
|
+
"underlined"
|
|
12607
12623
|
]>;
|
|
12608
12624
|
reference_text_size: z.ZodNumber;
|
|
12609
12625
|
subtitle: z.ZodObject<{
|
|
@@ -12648,7 +12664,7 @@ export declare const fontsSchema: z.ZodObject<{
|
|
|
12648
12664
|
bold: boolean;
|
|
12649
12665
|
size: number;
|
|
12650
12666
|
};
|
|
12651
|
-
links_style: "normal";
|
|
12667
|
+
links_style: "normal" | "underlined";
|
|
12652
12668
|
reference_text_size: number;
|
|
12653
12669
|
subtitle: {
|
|
12654
12670
|
bold: boolean;
|
|
@@ -12676,7 +12692,7 @@ export declare const fontsSchema: z.ZodObject<{
|
|
|
12676
12692
|
bold: boolean;
|
|
12677
12693
|
size: number;
|
|
12678
12694
|
};
|
|
12679
|
-
links_style: "normal";
|
|
12695
|
+
links_style: "normal" | "underlined";
|
|
12680
12696
|
reference_text_size: number;
|
|
12681
12697
|
subtitle: {
|
|
12682
12698
|
bold: boolean;
|
|
@@ -12687,53 +12703,65 @@ export declare const pageBackgroundSchema: z.ZodObject<{
|
|
|
12687
12703
|
background_color: z.ZodString;
|
|
12688
12704
|
background_image_url: z.ZodString;
|
|
12689
12705
|
page_layout: z.ZodEnum<[
|
|
12690
|
-
"center"
|
|
12706
|
+
"center",
|
|
12707
|
+
"left",
|
|
12708
|
+
"right"
|
|
12691
12709
|
]>;
|
|
12692
12710
|
}, "strip", z.ZodTypeAny, {
|
|
12693
12711
|
background_color: string;
|
|
12694
12712
|
background_image_url: string;
|
|
12695
|
-
page_layout: "center";
|
|
12713
|
+
page_layout: "center" | "left" | "right";
|
|
12696
12714
|
}, {
|
|
12697
12715
|
background_color: string;
|
|
12698
12716
|
background_image_url: string;
|
|
12699
|
-
page_layout: "center";
|
|
12717
|
+
page_layout: "center" | "left" | "right";
|
|
12700
12718
|
}>;
|
|
12701
12719
|
export declare const widgetSchema: z.ZodObject<{
|
|
12702
12720
|
header_text_alignment: z.ZodEnum<[
|
|
12703
|
-
"center"
|
|
12721
|
+
"center",
|
|
12722
|
+
"left",
|
|
12723
|
+
"right"
|
|
12704
12724
|
]>;
|
|
12705
12725
|
logo_height: z.ZodNumber;
|
|
12706
12726
|
logo_position: z.ZodEnum<[
|
|
12707
|
-
"center"
|
|
12727
|
+
"center",
|
|
12728
|
+
"left",
|
|
12729
|
+
"none",
|
|
12730
|
+
"right"
|
|
12708
12731
|
]>;
|
|
12709
12732
|
logo_url: z.ZodString;
|
|
12710
12733
|
social_buttons_layout: z.ZodEnum<[
|
|
12711
|
-
"bottom"
|
|
12734
|
+
"bottom",
|
|
12735
|
+
"top"
|
|
12712
12736
|
]>;
|
|
12713
12737
|
}, "strip", z.ZodTypeAny, {
|
|
12714
12738
|
logo_url: string;
|
|
12715
|
-
header_text_alignment: "center";
|
|
12739
|
+
header_text_alignment: "center" | "left" | "right";
|
|
12716
12740
|
logo_height: number;
|
|
12717
|
-
logo_position: "center";
|
|
12718
|
-
social_buttons_layout: "bottom";
|
|
12741
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
12742
|
+
social_buttons_layout: "bottom" | "top";
|
|
12719
12743
|
}, {
|
|
12720
12744
|
logo_url: string;
|
|
12721
|
-
header_text_alignment: "center";
|
|
12745
|
+
header_text_alignment: "center" | "left" | "right";
|
|
12722
12746
|
logo_height: number;
|
|
12723
|
-
logo_position: "center";
|
|
12724
|
-
social_buttons_layout: "bottom";
|
|
12747
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
12748
|
+
social_buttons_layout: "bottom" | "top";
|
|
12725
12749
|
}>;
|
|
12726
12750
|
export declare const themeInsertSchema: z.ZodObject<{
|
|
12727
12751
|
borders: z.ZodObject<{
|
|
12728
12752
|
button_border_radius: z.ZodNumber;
|
|
12729
12753
|
button_border_weight: z.ZodNumber;
|
|
12730
12754
|
buttons_style: z.ZodEnum<[
|
|
12731
|
-
"pill"
|
|
12755
|
+
"pill",
|
|
12756
|
+
"rounded",
|
|
12757
|
+
"sharp"
|
|
12732
12758
|
]>;
|
|
12733
12759
|
input_border_radius: z.ZodNumber;
|
|
12734
12760
|
input_border_weight: z.ZodNumber;
|
|
12735
12761
|
inputs_style: z.ZodEnum<[
|
|
12736
|
-
"pill"
|
|
12762
|
+
"pill",
|
|
12763
|
+
"rounded",
|
|
12764
|
+
"sharp"
|
|
12737
12765
|
]>;
|
|
12738
12766
|
show_widget_shadow: z.ZodBoolean;
|
|
12739
12767
|
widget_border_weight: z.ZodNumber;
|
|
@@ -12741,20 +12769,20 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12741
12769
|
}, "strip", z.ZodTypeAny, {
|
|
12742
12770
|
button_border_radius: number;
|
|
12743
12771
|
button_border_weight: number;
|
|
12744
|
-
buttons_style: "pill";
|
|
12772
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
12745
12773
|
input_border_radius: number;
|
|
12746
12774
|
input_border_weight: number;
|
|
12747
|
-
inputs_style: "pill";
|
|
12775
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
12748
12776
|
show_widget_shadow: boolean;
|
|
12749
12777
|
widget_border_weight: number;
|
|
12750
12778
|
widget_corner_radius: number;
|
|
12751
12779
|
}, {
|
|
12752
12780
|
button_border_radius: number;
|
|
12753
12781
|
button_border_weight: number;
|
|
12754
|
-
buttons_style: "pill";
|
|
12782
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
12755
12783
|
input_border_radius: number;
|
|
12756
12784
|
input_border_weight: number;
|
|
12757
|
-
inputs_style: "pill";
|
|
12785
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
12758
12786
|
show_widget_shadow: boolean;
|
|
12759
12787
|
widget_border_weight: number;
|
|
12760
12788
|
widget_corner_radius: number;
|
|
@@ -12764,7 +12792,9 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12764
12792
|
base_hover_color: z.ZodString;
|
|
12765
12793
|
body_text: z.ZodString;
|
|
12766
12794
|
captcha_widget_theme: z.ZodEnum<[
|
|
12767
|
-
"auto"
|
|
12795
|
+
"auto",
|
|
12796
|
+
"dark",
|
|
12797
|
+
"light"
|
|
12768
12798
|
]>;
|
|
12769
12799
|
error: z.ZodString;
|
|
12770
12800
|
header: z.ZodString;
|
|
@@ -12785,7 +12815,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12785
12815
|
base_focus_color: string;
|
|
12786
12816
|
base_hover_color: string;
|
|
12787
12817
|
body_text: string;
|
|
12788
|
-
captcha_widget_theme: "auto";
|
|
12818
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
12789
12819
|
error: string;
|
|
12790
12820
|
header: string;
|
|
12791
12821
|
icons: string;
|
|
@@ -12805,7 +12835,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12805
12835
|
base_focus_color: string;
|
|
12806
12836
|
base_hover_color: string;
|
|
12807
12837
|
body_text: string;
|
|
12808
|
-
captcha_widget_theme: "auto";
|
|
12838
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
12809
12839
|
error: string;
|
|
12810
12840
|
header: string;
|
|
12811
12841
|
icons: string;
|
|
@@ -12866,7 +12896,8 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12866
12896
|
size: number;
|
|
12867
12897
|
}>;
|
|
12868
12898
|
links_style: z.ZodEnum<[
|
|
12869
|
-
"normal"
|
|
12899
|
+
"normal",
|
|
12900
|
+
"underlined"
|
|
12870
12901
|
]>;
|
|
12871
12902
|
reference_text_size: z.ZodNumber;
|
|
12872
12903
|
subtitle: z.ZodObject<{
|
|
@@ -12911,7 +12942,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12911
12942
|
bold: boolean;
|
|
12912
12943
|
size: number;
|
|
12913
12944
|
};
|
|
12914
|
-
links_style: "normal";
|
|
12945
|
+
links_style: "normal" | "underlined";
|
|
12915
12946
|
reference_text_size: number;
|
|
12916
12947
|
subtitle: {
|
|
12917
12948
|
bold: boolean;
|
|
@@ -12939,7 +12970,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12939
12970
|
bold: boolean;
|
|
12940
12971
|
size: number;
|
|
12941
12972
|
};
|
|
12942
|
-
links_style: "normal";
|
|
12973
|
+
links_style: "normal" | "underlined";
|
|
12943
12974
|
reference_text_size: number;
|
|
12944
12975
|
subtitle: {
|
|
12945
12976
|
bold: boolean;
|
|
@@ -12950,53 +12981,61 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
12950
12981
|
background_color: z.ZodString;
|
|
12951
12982
|
background_image_url: z.ZodString;
|
|
12952
12983
|
page_layout: z.ZodEnum<[
|
|
12953
|
-
"center"
|
|
12984
|
+
"center",
|
|
12985
|
+
"left",
|
|
12986
|
+
"right"
|
|
12954
12987
|
]>;
|
|
12955
12988
|
}, "strip", z.ZodTypeAny, {
|
|
12956
12989
|
background_color: string;
|
|
12957
12990
|
background_image_url: string;
|
|
12958
|
-
page_layout: "center";
|
|
12991
|
+
page_layout: "center" | "left" | "right";
|
|
12959
12992
|
}, {
|
|
12960
12993
|
background_color: string;
|
|
12961
12994
|
background_image_url: string;
|
|
12962
|
-
page_layout: "center";
|
|
12995
|
+
page_layout: "center" | "left" | "right";
|
|
12963
12996
|
}>;
|
|
12964
12997
|
widget: z.ZodObject<{
|
|
12965
12998
|
header_text_alignment: z.ZodEnum<[
|
|
12966
|
-
"center"
|
|
12999
|
+
"center",
|
|
13000
|
+
"left",
|
|
13001
|
+
"right"
|
|
12967
13002
|
]>;
|
|
12968
13003
|
logo_height: z.ZodNumber;
|
|
12969
13004
|
logo_position: z.ZodEnum<[
|
|
12970
|
-
"center"
|
|
13005
|
+
"center",
|
|
13006
|
+
"left",
|
|
13007
|
+
"none",
|
|
13008
|
+
"right"
|
|
12971
13009
|
]>;
|
|
12972
13010
|
logo_url: z.ZodString;
|
|
12973
13011
|
social_buttons_layout: z.ZodEnum<[
|
|
12974
|
-
"bottom"
|
|
13012
|
+
"bottom",
|
|
13013
|
+
"top"
|
|
12975
13014
|
]>;
|
|
12976
13015
|
}, "strip", z.ZodTypeAny, {
|
|
12977
13016
|
logo_url: string;
|
|
12978
|
-
header_text_alignment: "center";
|
|
13017
|
+
header_text_alignment: "center" | "left" | "right";
|
|
12979
13018
|
logo_height: number;
|
|
12980
|
-
logo_position: "center";
|
|
12981
|
-
social_buttons_layout: "bottom";
|
|
13019
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13020
|
+
social_buttons_layout: "bottom" | "top";
|
|
12982
13021
|
}, {
|
|
12983
13022
|
logo_url: string;
|
|
12984
|
-
header_text_alignment: "center";
|
|
13023
|
+
header_text_alignment: "center" | "left" | "right";
|
|
12985
13024
|
logo_height: number;
|
|
12986
|
-
logo_position: "center";
|
|
12987
|
-
social_buttons_layout: "bottom";
|
|
13025
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13026
|
+
social_buttons_layout: "bottom" | "top";
|
|
12988
13027
|
}>;
|
|
12989
13028
|
}, "strip", z.ZodTypeAny, {
|
|
12990
13029
|
page_background: {
|
|
12991
13030
|
background_color: string;
|
|
12992
13031
|
background_image_url: string;
|
|
12993
|
-
page_layout: "center";
|
|
13032
|
+
page_layout: "center" | "left" | "right";
|
|
12994
13033
|
};
|
|
12995
13034
|
colors: {
|
|
12996
13035
|
base_focus_color: string;
|
|
12997
13036
|
base_hover_color: string;
|
|
12998
13037
|
body_text: string;
|
|
12999
|
-
captcha_widget_theme: "auto";
|
|
13038
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13000
13039
|
error: string;
|
|
13001
13040
|
header: string;
|
|
13002
13041
|
icons: string;
|
|
@@ -13016,10 +13055,10 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13016
13055
|
borders: {
|
|
13017
13056
|
button_border_radius: number;
|
|
13018
13057
|
button_border_weight: number;
|
|
13019
|
-
buttons_style: "pill";
|
|
13058
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13020
13059
|
input_border_radius: number;
|
|
13021
13060
|
input_border_weight: number;
|
|
13022
|
-
inputs_style: "pill";
|
|
13061
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13023
13062
|
show_widget_shadow: boolean;
|
|
13024
13063
|
widget_border_weight: number;
|
|
13025
13064
|
widget_corner_radius: number;
|
|
@@ -13047,7 +13086,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13047
13086
|
bold: boolean;
|
|
13048
13087
|
size: number;
|
|
13049
13088
|
};
|
|
13050
|
-
links_style: "normal";
|
|
13089
|
+
links_style: "normal" | "underlined";
|
|
13051
13090
|
reference_text_size: number;
|
|
13052
13091
|
subtitle: {
|
|
13053
13092
|
bold: boolean;
|
|
@@ -13056,22 +13095,22 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13056
13095
|
};
|
|
13057
13096
|
widget: {
|
|
13058
13097
|
logo_url: string;
|
|
13059
|
-
header_text_alignment: "center";
|
|
13098
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13060
13099
|
logo_height: number;
|
|
13061
|
-
logo_position: "center";
|
|
13062
|
-
social_buttons_layout: "bottom";
|
|
13100
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13101
|
+
social_buttons_layout: "bottom" | "top";
|
|
13063
13102
|
};
|
|
13064
13103
|
}, {
|
|
13065
13104
|
page_background: {
|
|
13066
13105
|
background_color: string;
|
|
13067
13106
|
background_image_url: string;
|
|
13068
|
-
page_layout: "center";
|
|
13107
|
+
page_layout: "center" | "left" | "right";
|
|
13069
13108
|
};
|
|
13070
13109
|
colors: {
|
|
13071
13110
|
base_focus_color: string;
|
|
13072
13111
|
base_hover_color: string;
|
|
13073
13112
|
body_text: string;
|
|
13074
|
-
captcha_widget_theme: "auto";
|
|
13113
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13075
13114
|
error: string;
|
|
13076
13115
|
header: string;
|
|
13077
13116
|
icons: string;
|
|
@@ -13091,10 +13130,10 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13091
13130
|
borders: {
|
|
13092
13131
|
button_border_radius: number;
|
|
13093
13132
|
button_border_weight: number;
|
|
13094
|
-
buttons_style: "pill";
|
|
13133
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13095
13134
|
input_border_radius: number;
|
|
13096
13135
|
input_border_weight: number;
|
|
13097
|
-
inputs_style: "pill";
|
|
13136
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13098
13137
|
show_widget_shadow: boolean;
|
|
13099
13138
|
widget_border_weight: number;
|
|
13100
13139
|
widget_corner_radius: number;
|
|
@@ -13122,7 +13161,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13122
13161
|
bold: boolean;
|
|
13123
13162
|
size: number;
|
|
13124
13163
|
};
|
|
13125
|
-
links_style: "normal";
|
|
13164
|
+
links_style: "normal" | "underlined";
|
|
13126
13165
|
reference_text_size: number;
|
|
13127
13166
|
subtitle: {
|
|
13128
13167
|
bold: boolean;
|
|
@@ -13131,10 +13170,10 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
13131
13170
|
};
|
|
13132
13171
|
widget: {
|
|
13133
13172
|
logo_url: string;
|
|
13134
|
-
header_text_alignment: "center";
|
|
13173
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13135
13174
|
logo_height: number;
|
|
13136
|
-
logo_position: "center";
|
|
13137
|
-
social_buttons_layout: "bottom";
|
|
13175
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13176
|
+
social_buttons_layout: "bottom" | "top";
|
|
13138
13177
|
};
|
|
13139
13178
|
}>;
|
|
13140
13179
|
export type ThemeInsert = z.input<typeof themeInsertSchema>;
|
|
@@ -13143,12 +13182,16 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13143
13182
|
button_border_radius: z.ZodNumber;
|
|
13144
13183
|
button_border_weight: z.ZodNumber;
|
|
13145
13184
|
buttons_style: z.ZodEnum<[
|
|
13146
|
-
"pill"
|
|
13185
|
+
"pill",
|
|
13186
|
+
"rounded",
|
|
13187
|
+
"sharp"
|
|
13147
13188
|
]>;
|
|
13148
13189
|
input_border_radius: z.ZodNumber;
|
|
13149
13190
|
input_border_weight: z.ZodNumber;
|
|
13150
13191
|
inputs_style: z.ZodEnum<[
|
|
13151
|
-
"pill"
|
|
13192
|
+
"pill",
|
|
13193
|
+
"rounded",
|
|
13194
|
+
"sharp"
|
|
13152
13195
|
]>;
|
|
13153
13196
|
show_widget_shadow: z.ZodBoolean;
|
|
13154
13197
|
widget_border_weight: z.ZodNumber;
|
|
@@ -13156,20 +13199,20 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13156
13199
|
}, "strip", z.ZodTypeAny, {
|
|
13157
13200
|
button_border_radius: number;
|
|
13158
13201
|
button_border_weight: number;
|
|
13159
|
-
buttons_style: "pill";
|
|
13202
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13160
13203
|
input_border_radius: number;
|
|
13161
13204
|
input_border_weight: number;
|
|
13162
|
-
inputs_style: "pill";
|
|
13205
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13163
13206
|
show_widget_shadow: boolean;
|
|
13164
13207
|
widget_border_weight: number;
|
|
13165
13208
|
widget_corner_radius: number;
|
|
13166
13209
|
}, {
|
|
13167
13210
|
button_border_radius: number;
|
|
13168
13211
|
button_border_weight: number;
|
|
13169
|
-
buttons_style: "pill";
|
|
13212
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13170
13213
|
input_border_radius: number;
|
|
13171
13214
|
input_border_weight: number;
|
|
13172
|
-
inputs_style: "pill";
|
|
13215
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13173
13216
|
show_widget_shadow: boolean;
|
|
13174
13217
|
widget_border_weight: number;
|
|
13175
13218
|
widget_corner_radius: number;
|
|
@@ -13179,7 +13222,9 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13179
13222
|
base_hover_color: z.ZodString;
|
|
13180
13223
|
body_text: z.ZodString;
|
|
13181
13224
|
captcha_widget_theme: z.ZodEnum<[
|
|
13182
|
-
"auto"
|
|
13225
|
+
"auto",
|
|
13226
|
+
"dark",
|
|
13227
|
+
"light"
|
|
13183
13228
|
]>;
|
|
13184
13229
|
error: z.ZodString;
|
|
13185
13230
|
header: z.ZodString;
|
|
@@ -13200,7 +13245,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13200
13245
|
base_focus_color: string;
|
|
13201
13246
|
base_hover_color: string;
|
|
13202
13247
|
body_text: string;
|
|
13203
|
-
captcha_widget_theme: "auto";
|
|
13248
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13204
13249
|
error: string;
|
|
13205
13250
|
header: string;
|
|
13206
13251
|
icons: string;
|
|
@@ -13220,7 +13265,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13220
13265
|
base_focus_color: string;
|
|
13221
13266
|
base_hover_color: string;
|
|
13222
13267
|
body_text: string;
|
|
13223
|
-
captcha_widget_theme: "auto";
|
|
13268
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13224
13269
|
error: string;
|
|
13225
13270
|
header: string;
|
|
13226
13271
|
icons: string;
|
|
@@ -13281,7 +13326,8 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13281
13326
|
size: number;
|
|
13282
13327
|
}>;
|
|
13283
13328
|
links_style: z.ZodEnum<[
|
|
13284
|
-
"normal"
|
|
13329
|
+
"normal",
|
|
13330
|
+
"underlined"
|
|
13285
13331
|
]>;
|
|
13286
13332
|
reference_text_size: z.ZodNumber;
|
|
13287
13333
|
subtitle: z.ZodObject<{
|
|
@@ -13326,7 +13372,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13326
13372
|
bold: boolean;
|
|
13327
13373
|
size: number;
|
|
13328
13374
|
};
|
|
13329
|
-
links_style: "normal";
|
|
13375
|
+
links_style: "normal" | "underlined";
|
|
13330
13376
|
reference_text_size: number;
|
|
13331
13377
|
subtitle: {
|
|
13332
13378
|
bold: boolean;
|
|
@@ -13354,7 +13400,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13354
13400
|
bold: boolean;
|
|
13355
13401
|
size: number;
|
|
13356
13402
|
};
|
|
13357
|
-
links_style: "normal";
|
|
13403
|
+
links_style: "normal" | "underlined";
|
|
13358
13404
|
reference_text_size: number;
|
|
13359
13405
|
subtitle: {
|
|
13360
13406
|
bold: boolean;
|
|
@@ -13365,41 +13411,49 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13365
13411
|
background_color: z.ZodString;
|
|
13366
13412
|
background_image_url: z.ZodString;
|
|
13367
13413
|
page_layout: z.ZodEnum<[
|
|
13368
|
-
"center"
|
|
13414
|
+
"center",
|
|
13415
|
+
"left",
|
|
13416
|
+
"right"
|
|
13369
13417
|
]>;
|
|
13370
13418
|
}, "strip", z.ZodTypeAny, {
|
|
13371
13419
|
background_color: string;
|
|
13372
13420
|
background_image_url: string;
|
|
13373
|
-
page_layout: "center";
|
|
13421
|
+
page_layout: "center" | "left" | "right";
|
|
13374
13422
|
}, {
|
|
13375
13423
|
background_color: string;
|
|
13376
13424
|
background_image_url: string;
|
|
13377
|
-
page_layout: "center";
|
|
13425
|
+
page_layout: "center" | "left" | "right";
|
|
13378
13426
|
}>;
|
|
13379
13427
|
widget: z.ZodObject<{
|
|
13380
13428
|
header_text_alignment: z.ZodEnum<[
|
|
13381
|
-
"center"
|
|
13429
|
+
"center",
|
|
13430
|
+
"left",
|
|
13431
|
+
"right"
|
|
13382
13432
|
]>;
|
|
13383
13433
|
logo_height: z.ZodNumber;
|
|
13384
13434
|
logo_position: z.ZodEnum<[
|
|
13385
|
-
"center"
|
|
13435
|
+
"center",
|
|
13436
|
+
"left",
|
|
13437
|
+
"none",
|
|
13438
|
+
"right"
|
|
13386
13439
|
]>;
|
|
13387
13440
|
logo_url: z.ZodString;
|
|
13388
13441
|
social_buttons_layout: z.ZodEnum<[
|
|
13389
|
-
"bottom"
|
|
13442
|
+
"bottom",
|
|
13443
|
+
"top"
|
|
13390
13444
|
]>;
|
|
13391
13445
|
}, "strip", z.ZodTypeAny, {
|
|
13392
13446
|
logo_url: string;
|
|
13393
|
-
header_text_alignment: "center";
|
|
13447
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13394
13448
|
logo_height: number;
|
|
13395
|
-
logo_position: "center";
|
|
13396
|
-
social_buttons_layout: "bottom";
|
|
13449
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13450
|
+
social_buttons_layout: "bottom" | "top";
|
|
13397
13451
|
}, {
|
|
13398
13452
|
logo_url: string;
|
|
13399
|
-
header_text_alignment: "center";
|
|
13453
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13400
13454
|
logo_height: number;
|
|
13401
|
-
logo_position: "center";
|
|
13402
|
-
social_buttons_layout: "bottom";
|
|
13455
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13456
|
+
social_buttons_layout: "bottom" | "top";
|
|
13403
13457
|
}>;
|
|
13404
13458
|
} & {
|
|
13405
13459
|
themeId: z.ZodString;
|
|
@@ -13407,13 +13461,13 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13407
13461
|
page_background: {
|
|
13408
13462
|
background_color: string;
|
|
13409
13463
|
background_image_url: string;
|
|
13410
|
-
page_layout: "center";
|
|
13464
|
+
page_layout: "center" | "left" | "right";
|
|
13411
13465
|
};
|
|
13412
13466
|
colors: {
|
|
13413
13467
|
base_focus_color: string;
|
|
13414
13468
|
base_hover_color: string;
|
|
13415
13469
|
body_text: string;
|
|
13416
|
-
captcha_widget_theme: "auto";
|
|
13470
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13417
13471
|
error: string;
|
|
13418
13472
|
header: string;
|
|
13419
13473
|
icons: string;
|
|
@@ -13433,10 +13487,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13433
13487
|
borders: {
|
|
13434
13488
|
button_border_radius: number;
|
|
13435
13489
|
button_border_weight: number;
|
|
13436
|
-
buttons_style: "pill";
|
|
13490
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13437
13491
|
input_border_radius: number;
|
|
13438
13492
|
input_border_weight: number;
|
|
13439
|
-
inputs_style: "pill";
|
|
13493
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13440
13494
|
show_widget_shadow: boolean;
|
|
13441
13495
|
widget_border_weight: number;
|
|
13442
13496
|
widget_corner_radius: number;
|
|
@@ -13464,7 +13518,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13464
13518
|
bold: boolean;
|
|
13465
13519
|
size: number;
|
|
13466
13520
|
};
|
|
13467
|
-
links_style: "normal";
|
|
13521
|
+
links_style: "normal" | "underlined";
|
|
13468
13522
|
reference_text_size: number;
|
|
13469
13523
|
subtitle: {
|
|
13470
13524
|
bold: boolean;
|
|
@@ -13473,23 +13527,23 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13473
13527
|
};
|
|
13474
13528
|
widget: {
|
|
13475
13529
|
logo_url: string;
|
|
13476
|
-
header_text_alignment: "center";
|
|
13530
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13477
13531
|
logo_height: number;
|
|
13478
|
-
logo_position: "center";
|
|
13479
|
-
social_buttons_layout: "bottom";
|
|
13532
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13533
|
+
social_buttons_layout: "bottom" | "top";
|
|
13480
13534
|
};
|
|
13481
13535
|
themeId: string;
|
|
13482
13536
|
}, {
|
|
13483
13537
|
page_background: {
|
|
13484
13538
|
background_color: string;
|
|
13485
13539
|
background_image_url: string;
|
|
13486
|
-
page_layout: "center";
|
|
13540
|
+
page_layout: "center" | "left" | "right";
|
|
13487
13541
|
};
|
|
13488
13542
|
colors: {
|
|
13489
13543
|
base_focus_color: string;
|
|
13490
13544
|
base_hover_color: string;
|
|
13491
13545
|
body_text: string;
|
|
13492
|
-
captcha_widget_theme: "auto";
|
|
13546
|
+
captcha_widget_theme: "auto" | "dark" | "light";
|
|
13493
13547
|
error: string;
|
|
13494
13548
|
header: string;
|
|
13495
13549
|
icons: string;
|
|
@@ -13509,10 +13563,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13509
13563
|
borders: {
|
|
13510
13564
|
button_border_radius: number;
|
|
13511
13565
|
button_border_weight: number;
|
|
13512
|
-
buttons_style: "pill";
|
|
13566
|
+
buttons_style: "pill" | "rounded" | "sharp";
|
|
13513
13567
|
input_border_radius: number;
|
|
13514
13568
|
input_border_weight: number;
|
|
13515
|
-
inputs_style: "pill";
|
|
13569
|
+
inputs_style: "pill" | "rounded" | "sharp";
|
|
13516
13570
|
show_widget_shadow: boolean;
|
|
13517
13571
|
widget_border_weight: number;
|
|
13518
13572
|
widget_corner_radius: number;
|
|
@@ -13540,7 +13594,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13540
13594
|
bold: boolean;
|
|
13541
13595
|
size: number;
|
|
13542
13596
|
};
|
|
13543
|
-
links_style: "normal";
|
|
13597
|
+
links_style: "normal" | "underlined";
|
|
13544
13598
|
reference_text_size: number;
|
|
13545
13599
|
subtitle: {
|
|
13546
13600
|
bold: boolean;
|
|
@@ -13549,10 +13603,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
13549
13603
|
};
|
|
13550
13604
|
widget: {
|
|
13551
13605
|
logo_url: string;
|
|
13552
|
-
header_text_alignment: "center";
|
|
13606
|
+
header_text_alignment: "center" | "left" | "right";
|
|
13553
13607
|
logo_height: number;
|
|
13554
|
-
logo_position: "center";
|
|
13555
|
-
social_buttons_layout: "bottom";
|
|
13608
|
+
logo_position: "center" | "left" | "right" | "none";
|
|
13609
|
+
social_buttons_layout: "bottom" | "top";
|
|
13556
13610
|
};
|
|
13557
13611
|
themeId: string;
|
|
13558
13612
|
}>;
|
|
@@ -115,7 +115,8 @@ const f = t.object({
|
|
|
115
115
|
client_secret: t.string().default(() => O()).optional(),
|
|
116
116
|
disable_sign_ups: t.boolean().optional().default(!1).openapi({
|
|
117
117
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
118
|
-
})
|
|
118
|
+
}),
|
|
119
|
+
client_metadata: t.record(t.string().length(255)).optional()
|
|
119
120
|
}), T = t.object({
|
|
120
121
|
created_at: t.string().transform((e) => e === null ? "" : e),
|
|
121
122
|
updated_at: t.string().transform((e) => e === null ? "" : e),
|
|
@@ -975,10 +976,10 @@ t.object({
|
|
|
975
976
|
const pt = t.object({
|
|
976
977
|
button_border_radius: t.number(),
|
|
977
978
|
button_border_weight: t.number(),
|
|
978
|
-
buttons_style: t.enum(["pill"]),
|
|
979
|
+
buttons_style: t.enum(["pill", "rounded", "sharp"]),
|
|
979
980
|
input_border_radius: t.number(),
|
|
980
981
|
input_border_weight: t.number(),
|
|
981
|
-
inputs_style: t.enum(["pill"]),
|
|
982
|
+
inputs_style: t.enum(["pill", "rounded", "sharp"]),
|
|
982
983
|
show_widget_shadow: t.boolean(),
|
|
983
984
|
widget_border_weight: t.number(),
|
|
984
985
|
widget_corner_radius: t.number()
|
|
@@ -986,7 +987,7 @@ const pt = t.object({
|
|
|
986
987
|
base_focus_color: t.string(),
|
|
987
988
|
base_hover_color: t.string(),
|
|
988
989
|
body_text: t.string(),
|
|
989
|
-
captcha_widget_theme: t.enum(["auto"]),
|
|
990
|
+
captcha_widget_theme: t.enum(["auto", "dark", "light"]),
|
|
990
991
|
error: t.string(),
|
|
991
992
|
header: t.string(),
|
|
992
993
|
icons: t.string(),
|
|
@@ -1011,20 +1012,20 @@ const pt = t.object({
|
|
|
1011
1012
|
font_url: t.string(),
|
|
1012
1013
|
input_labels: n,
|
|
1013
1014
|
links: n,
|
|
1014
|
-
links_style: t.enum(["normal"]),
|
|
1015
|
+
links_style: t.enum(["normal", "underlined"]),
|
|
1015
1016
|
reference_text_size: t.number(),
|
|
1016
1017
|
subtitle: n,
|
|
1017
1018
|
title: n
|
|
1018
1019
|
}), ut = t.object({
|
|
1019
1020
|
background_color: t.string(),
|
|
1020
1021
|
background_image_url: t.string(),
|
|
1021
|
-
page_layout: t.enum(["center"])
|
|
1022
|
+
page_layout: t.enum(["center", "left", "right"])
|
|
1022
1023
|
}), St = t.object({
|
|
1023
|
-
header_text_alignment: t.enum(["center"]),
|
|
1024
|
+
header_text_alignment: t.enum(["center", "left", "right"]),
|
|
1024
1025
|
logo_height: t.number(),
|
|
1025
|
-
logo_position: t.enum(["center"]),
|
|
1026
|
+
logo_position: t.enum(["center", "left", "none", "right"]),
|
|
1026
1027
|
logo_url: t.string(),
|
|
1027
|
-
social_buttons_layout: t.enum(["bottom"])
|
|
1028
|
+
social_buttons_layout: t.enum(["bottom", "top"])
|
|
1028
1029
|
}), mt = t.object({
|
|
1029
1030
|
borders: pt,
|
|
1030
1031
|
colors: gt,
|