@authhero/adapter-interfaces 0.58.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),L=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),c=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),p=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),z=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:p.optional()}),s=t.z.object({email:t.z.string().optional(),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),d=s.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),g=t.z.object({...d.shape,...c.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number(),identities:t.z.array(z).optional()}),B=g,W=s.extend({email:t.z.string(),login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),q="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Q=(e=21)=>{let i="",o=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=q[o[e]&63];return i};const _=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),m=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:t.z.array(t.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:t.z.object({samlp:_.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:t.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:t.z.string().default(()=>Q()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),u=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...m.shape});var a=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(a||{}),r=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(r||{}),l=(e=>(e.S256="S256",e.Plain="plain",e))(l||{});const h=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(a).optional(),response_mode:t.z.nativeEnum(r).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(l).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),V=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),b=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().default("").optional(),token_endpoint:t.z.string().default("").optional(),userinfo_endpoint:t.z.string().default("").optional(),jwks_uri:t.z.string().default("").optional(),discovery_url:t.z.string().default("").optional(),issuer:t.z.string().default("").optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}).default({}).optional(),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),S=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(b.shape),f=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),y=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...f.shape,id:t.z.string()}),Y=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...u.shape,tenant:y,connections:t.z.array(S)});const I=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),k=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:I,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),X=t.z.object({...k.shape,created_at:t.z.string()}),w=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),E=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),C=t.z.object({...w.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(E)}).optional(),tls_policy:t.z.string().optional()}),J=C.extend({tenant_id:t.z.string()}),j=t.z.object({trigger_id:t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),enabled:t.z.boolean().default(!1),url:t.z.string(),hook_id:t.z.string().optional(),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional()}),Z=j.extend({...c.shape,hook_id:t.z.string()}),v=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),$=t.z.object({keys:t.z.array(v)}),tt=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),A=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:h,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional()}).openapi({description:"This represents a login sesion"}),et=t.z.object({...A.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var O=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))(O||{});const nt=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),U=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),it=t.z.object({type:nt,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:U.optional()}),N=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),ot=t.z.object({...N.shape,created_at:t.z.string(),updated_at:t.z.string()}),R=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),D=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),device:R.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),st=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...D.shape}),at=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var T=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(T||{});const rt=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const x=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),P=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),F=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),H=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),K=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),G=t.z.object({borders:x,colors:P,displayName:t.z.string(),fonts:F,page_background:H,widget:K}),lt=G.extend({themeId:t.z.string()}),ct=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),pt=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),M=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:R,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),zt=t.z.object({created_at:t.z.string(),...M.shape}),dt=t.z.object({to:t.z.string(),message:t.z.string()}),gt=t.z.object({name:t.z.string(),options:t.z.object({})});function _t(e){const[i,o]=e.split("|");if(!i||!o)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:o}}exports.Auth0Client=U;exports.AuthorizationResponseMode=r;exports.AuthorizationResponseType=a;exports.CodeChallengeMethod=l;exports.GrantType=T;exports.LogTypes=O;exports.applicationInsertSchema=m;exports.applicationSchema=u;exports.auth0UserResponseSchema=B;exports.authParamsSchema=h;exports.baseUserSchema=s;exports.bordersSchema=x;exports.brandingSchema=V;exports.codeInsertSchema=k;exports.codeSchema=X;exports.codeTypeSchema=I;exports.colorsSchema=P;exports.connectionInsertSchema=b;exports.connectionSchema=S;exports.customDomainInsertSchema=w;exports.customDomainSchema=C;exports.customDomainWithTenantIdSchema=J;exports.emailProviderSchema=pt;exports.fontDetailsSchema=n;exports.fontsSchema=F;exports.hookInsertSchema=j;exports.hookSchema=Z;exports.identitySchema=z;exports.jwksKeySchema=$;exports.jwksSchema=v;exports.logSchema=it;exports.loginSessionInsertSchema=A;exports.loginSessionSchema=et;exports.openIDConfigurationSchema=tt;exports.pageBackgroundSchema=H;exports.parseUserId=_t;exports.passwordInsertSchema=N;exports.passwordSchema=ot;exports.profileDataSchema=p;exports.promptSettingSchema=ct;exports.refreshTokenInsertSchema=M;exports.refreshTokenSchema=zt;exports.samlpAddon=_;exports.sessionInsertSchema=D;exports.sessionSchema=st;exports.signingKeySchema=at;exports.smsProviderSchema=gt;exports.smsSendParamsSchema=dt;exports.tenantInsertSchema=f;exports.tenantSchema=y;exports.themeInsertSchema=G;exports.themeSchema=lt;exports.tokenResponseSchema=rt;exports.totalsSchema=L;exports.userInsertSchema=d;exports.userResponseSchema=W;exports.userSchema=g;exports.vendorSettingsSchema=Y;exports.verificationMethodsSchema=E;exports.widgetSchema=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),B=t.z.object({start:t.z.number(),limit:t.z.number(),length:t.z.number()}),c=t.z.object({created_at:t.z.string(),updated_at:t.z.string()}),p=t.z.object({email:t.z.string().optional(),email_verified:t.z.boolean().optional(),name:t.z.string().optional(),username:t.z.string().optional(),given_name:t.z.string().optional(),phone_number:t.z.string().optional(),phone_verified:t.z.boolean().optional(),family_name:t.z.string().optional()}).catchall(t.z.any()),z=t.z.object({connection:t.z.string(),user_id:t.z.string(),provider:t.z.string(),isSocial:t.z.boolean(),access_token:t.z.string().optional(),access_token_secret:t.z.string().optional(),refresh_token:t.z.string().optional(),profileData:p.optional()}),s=t.z.object({email:t.z.string().optional().transform(e=>e&&e.toLowerCase()),username:t.z.string().optional(),phone_number:t.z.string().optional(),given_name:t.z.string().optional(),family_name:t.z.string().optional(),nickname:t.z.string().optional(),name:t.z.string().optional(),picture:t.z.string().optional(),locale:t.z.string().optional(),linked_to:t.z.string().optional(),profileData:t.z.string().optional(),user_id:t.z.string().optional(),app_metadata:t.z.any().default({}).optional(),user_metadata:t.z.any().default({}).optional()}),d=s.extend({email_verified:t.z.boolean().default(!1),verify_email:t.z.boolean().optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string().optional(),provider:t.z.string().default("email"),connection:t.z.string().default("email"),is_social:t.z.boolean().optional()}),g=t.z.object({...d.shape,...c.shape,user_id:t.z.string(),is_social:t.z.boolean(),email:t.z.string().optional(),login_count:t.z.number().default(0),identities:t.z.array(z).optional()}),W=g,q=s.extend({login_count:t.z.number(),multifactor:t.z.array(t.z.string()).optional(),last_ip:t.z.string().optional(),last_login:t.z.string().optional(),user_id:t.z.string()}).catchall(t.z.any()),Q="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let V=(e=21)=>{let i="",o=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=Q[o[e]&63];return i};const _=t.z.object({audience:t.z.string().optional(),recipient:t.z.string().optional(),createUpnClaim:t.z.boolean().optional(),mapUnknownClaimsAsIs:t.z.boolean().optional(),passthroughClaimsWithNoMapping:t.z.boolean().optional(),mapIdentities:t.z.boolean().optional(),signatureAlgorithm:t.z.string().optional(),digestAlgorithm:t.z.string().optional(),issuer:t.z.string().optional(),destination:t.z.string().optional(),lifetimeInSeconds:t.z.number().optional(),signResponse:t.z.boolean().optional(),nameIdentifierFormat:t.z.string().optional(),nameIdentifierProbes:t.z.array(t.z.string()).optional(),authnContextClassRef:t.z.string().optional(),mappings:t.z.record(t.z.string()).optional()}),m=t.z.object({id:t.z.string(),name:t.z.string(),callbacks:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."}),allowed_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."}),web_origins:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."}),allowed_logout_urls:t.z.array(t.z.string()).default([]).optional().openapi({description:"Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."}),allowed_clients:t.z.array(t.z.string()).default([]).optional().openapi({description:"Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"}),addons:t.z.object({samlp:_.optional()}).default({}).optional().openapi({description:"Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."}),email_validation:t.z.enum(["enabled","disabled","enforced"]).default("enforced").optional().openapi({description:"Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"}),client_secret:t.z.string().default(()=>V()).optional(),disable_sign_ups:t.z.boolean().optional().default(!1).openapi({description:"Prevents users from signing up using the hosted login page. This is not available in auth0"})}),u=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...m.shape});var a=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(a||{}),r=(e=>(e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post",e.WEB_MESSAGE="web_message",e.SAML_POST="saml_post",e))(r||{}),l=(e=>(e.S256="S256",e.Plain="plain",e))(l||{});const h=t.z.object({client_id:t.z.string(),act_as:t.z.string().optional(),response_type:t.z.nativeEnum(a).optional(),response_mode:t.z.nativeEnum(r).optional(),redirect_uri:t.z.string().optional(),audience:t.z.string().optional(),organization:t.z.string().optional(),state:t.z.string().optional(),nonce:t.z.string().optional(),scope:t.z.string().optional(),prompt:t.z.string().optional(),code_challenge_method:t.z.nativeEnum(l).optional(),code_challenge:t.z.string().optional(),username:t.z.string().optional(),ui_locales:t.z.string().optional(),vendor_id:t.z.string().optional()}),Y=t.z.object({colors:t.z.object({primary:t.z.string(),page_background:t.z.object({type:t.z.string().optional(),start:t.z.string().optional(),end:t.z.string().optional(),angle_deg:t.z.number().optional()}).optional()}).optional(),logo_url:t.z.string().optional(),favicon_url:t.z.string().optional(),font:t.z.object({url:t.z.string()}).optional()}),b=t.z.object({kid:t.z.string().optional(),team_id:t.z.string().optional(),realms:t.z.string().optional(),client_id:t.z.string().optional(),client_secret:t.z.string().optional(),app_secret:t.z.string().optional(),scope:t.z.string().optional(),authorization_endpoint:t.z.string().optional(),token_endpoint:t.z.string().optional(),userinfo_endpoint:t.z.string().optional(),jwks_uri:t.z.string().optional(),discovery_url:t.z.string().optional(),issuer:t.z.string().optional(),provider:t.z.string().optional(),from:t.z.string().optional(),twilio_sid:t.z.string().optional(),twilio_token:t.z.string().optional()}),S=t.z.object({id:t.z.string().optional(),name:t.z.string(),strategy:t.z.string(),options:b.default({}),enabled_clients:t.z.array(t.z.string()).default([]).optional(),response_type:t.z.custom().optional(),response_mode:t.z.custom().optional()}),f=t.z.object({id:t.z.string(),created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e)}).extend(S.shape),y=t.z.object({name:t.z.string(),audience:t.z.string(),sender_email:t.z.string().email(),sender_name:t.z.string(),support_url:t.z.string().url().optional(),logo:t.z.string().url().optional(),primary_color:t.z.string().optional(),secondary_color:t.z.string().optional(),language:t.z.string().optional(),id:t.z.string().optional()}),I=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...y.shape,id:t.z.string()}),X=t.z.object({logoUrl:t.z.string(),loginBackgroundImage:t.z.string().nullish(),style:t.z.object({primaryColor:t.z.string(),buttonTextColor:t.z.string(),primaryHoverColor:t.z.string()}),supportEmail:t.z.string().nullable(),supportUrl:t.z.string().nullable(),name:t.z.string(),showGreyishBackground:t.z.boolean().optional(),termsAndConditionsUrl:t.z.string().nullable(),companyName:t.z.string().optional(),checkoutHideSocial:t.z.boolean().optional(),siteUrl:t.z.string().nullable(),manageSubscriptionsUrl:t.z.string().optional()});t.z.object({...u.shape,tenant:I,connections:t.z.array(f)});const k=t.z.enum(["password_reset","email_verification","otp","authorization_code","oauth2_state","ticket"]),w=t.z.object({code_id:t.z.string().openapi({description:"The code that will be used in for instance an email verification flow"}),login_id:t.z.string().openapi({description:"The id of the login session that the code is connected to"}),connection_id:t.z.string().optional().openapi({description:"The connection that the code is connected to"}),code_type:k,code_verifier:t.z.string().optional().openapi({description:"The code verifier used in PKCE in outbound flows"}),expires_at:t.z.string(),used_at:t.z.string().optional(),user_id:t.z.string().optional()}),J=t.z.object({...w.shape,created_at:t.z.string()}),E=t.z.object({domain:t.z.string(),custom_domain_id:t.z.string().optional(),type:t.z.enum(["auth0_managed_certs","self_managed_certs"]),verification_method:t.z.enum(["txt"]).optional(),tls_policy:t.z.enum(["recommended"]).optional(),custom_client_ip_header:t.z.enum(["true-client-ip","cf-connecting-ip","x-forwarded-for","x-azure-clientip","null"]).optional(),domain_metadata:t.z.record(t.z.string().max(255)).optional()}),C=t.z.object({name:t.z.literal("txt"),record:t.z.string(),domain:t.z.string()}),j=t.z.object({...E.shape,custom_domain_id:t.z.string(),primary:t.z.boolean(),status:t.z.enum(["disabled","pending","pending_verification","ready"]),origin_domain_name:t.z.string().optional(),verification:t.z.object({methods:t.z.array(C)}).optional(),tls_policy:t.z.string().optional()}),Z=j.extend({tenant_id:t.z.string()}),v=t.z.object({trigger_id:t.z.enum(["pre-user-signup","post-user-registration","post-user-login"]),enabled:t.z.boolean().default(!1),url:t.z.string(),hook_id:t.z.string().optional(),synchronous:t.z.boolean().default(!1),priority:t.z.number().optional()}),$=v.extend({...c.shape,hook_id:t.z.string()}),A=t.z.object({alg:t.z.enum(["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512"]),e:t.z.string(),kid:t.z.string(),kty:t.z.enum(["RSA","EC","oct"]),n:t.z.string(),x5t:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),use:t.z.enum(["sig","enc"]).optional()}),tt=t.z.object({keys:t.z.array(A)}),et=t.z.object({issuer:t.z.string(),authorization_endpoint:t.z.string(),token_endpoint:t.z.string(),device_authorization_endpoint:t.z.string(),userinfo_endpoint:t.z.string(),mfa_challenge_endpoint:t.z.string(),jwks_uri:t.z.string(),registration_endpoint:t.z.string(),revocation_endpoint:t.z.string(),scopes_supported:t.z.array(t.z.string()),response_types_supported:t.z.array(t.z.string()),code_challenge_methods_supported:t.z.array(t.z.string()),response_modes_supported:t.z.array(t.z.string()),subject_types_supported:t.z.array(t.z.string()),id_token_signing_alg_values_supported:t.z.array(t.z.string()),token_endpoint_auth_methods_supported:t.z.array(t.z.string()),claims_supported:t.z.array(t.z.string()),request_uri_parameter_supported:t.z.boolean(),request_parameter_supported:t.z.boolean(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string())}),O=t.z.object({csrf_token:t.z.string(),auth0Client:t.z.string().optional(),authParams:h,expires_at:t.z.string(),deleted_at:t.z.string().optional(),ip:t.z.string().optional(),useragent:t.z.string().optional(),session_id:t.z.string().optional(),authorization_url:t.z.string().optional()}).openapi({description:"This represents a login sesion"}),nt=t.z.object({...O.shape,id:t.z.string().openapi({description:"This is is used as the state in the universal login"}),created_at:t.z.string(),updated_at:t.z.string()});var U=(e=>(e.FAILED_SILENT_AUTH="fsa",e.FAILED_SIGNUP="fs",e.FAILED_LOGIN="f",e.FAILED_LOGIN_INCORRECT_PASSWORD="fp",e.FAILED_CHANGE_PASSWORD="fcp",e.FAILED_BY_CONNECTOR="fc",e.FAILED_LOGIN_INVALID_EMAIL_USERNAME="fu",e.FAILED_HOOK="fh",e.FAILED_CROSS_ORIGIN_AUTHENTICATION="fcoa",e.SUCCESS_API_OPERATION="sapi",e.SUCCESS_CHANGE_PASSWORD="scp",e.SUCCESS_CHANGE_PASSWORD_REQUEST="scpr",e.SUCCESS_CHANGE_USERNAME="scu",e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION="scoa",e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN="seacft",e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN="serft",e.SUCCESS_LOGIN="s",e.SUCCESS_LOGOUT="slo",e.SUCCESS_SIGNUP="ss",e.SUCCESS_SILENT_AUTH="ssa",e.SUCCESS_VERIFICATION_EMAIL="sv",e.SUCCESS_VERIFICATION_EMAIL_REQUEST="svr",e.CODE_LINK_SENT="cls",e.BLOCKED_ACCOUNT_EMAIL="limit_wc",e.BLOCKED_ACCOUNT_IP="limit_sul",e.BLOCKED_IP_ADDRESS="limit_mu",e))(U||{});const it=t.z.enum(["cls","fsa","fs","f","fc","fcoa","fcp","fh","fp","fs","fu","s","sapi","scoa","scp","scpr","scu","seacft","serft","slo","ss","ssa","sv","svr"]),N=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),ot=t.z.object({type:it,date:t.z.string(),description:t.z.string().optional(),log_id:t.z.string().optional(),_id:t.z.string().optional(),ip:t.z.string(),user_agent:t.z.string(),details:t.z.any().optional(),isMobile:t.z.boolean(),user_id:t.z.string().optional(),user_name:t.z.string().optional(),connection:t.z.string().optional(),connection_id:t.z.string().optional(),client_id:t.z.string().optional(),client_name:t.z.string().optional(),audience:t.z.string().optional(),scope:t.z.array(t.z.string()).optional(),strategy:t.z.string().optional(),strategy_type:t.z.string().optional(),hostname:t.z.string().optional(),auth0_client:N.optional()}),R=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),st=t.z.object({...R.shape,created_at:t.z.string(),updated_at:t.z.string()}),D=t.z.object({initial_user_agent:t.z.string().describe("First user agent of the device from which this user logged in"),initial_ip:t.z.string().describe("First IP address associated with this session"),initial_asn:t.z.string().describe("First autonomous system number associated with this session"),last_user_agent:t.z.string().describe("Last user agent of the device from which this user logged in"),last_ip:t.z.string().describe("Last IP address from which this user logged in"),last_asn:t.z.string().describe("Last autonomous system number from which this user logged in")}),T=t.z.object({id:t.z.string(),revoked_at:t.z.string().optional(),used_at:t.z.string().optional(),user_id:t.z.string().describe("The user ID associated with the session"),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),device:D.describe("Metadata related to the device used in the session"),clients:t.z.array(t.z.string()).describe("List of client details for the session")}),at=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...T.shape}),rt=t.z.object({kid:t.z.string().openapi({description:"The key id of the signing key"}),cert:t.z.string().openapi({description:"The public certificate of the signing key"}),fingerprint:t.z.string().openapi({description:"The cert fingerprint"}),thumbprint:t.z.string().openapi({description:"The cert thumbprint"}),pkcs7:t.z.string().optional().openapi({description:"The private key in pkcs7 format"}),current:t.z.boolean().optional().openapi({description:"True if the key is the current key"}),next:t.z.boolean().optional().openapi({description:"True if the key is the next key"}),previous:t.z.boolean().optional().openapi({description:"True if the key is the previous key"}),current_since:t.z.string().optional().openapi({description:"The date and time when the key became the current key"}),current_until:t.z.string().optional().openapi({description:"The date and time when the current key was rotated"}),revoked:t.z.boolean().optional().openapi({description:"True if the key is revoked"}),revoked_at:t.z.string().optional().openapi({description:"The date and time when the key was revoked"})});var x=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e.OTP="http://auth0.com/oauth/grant-type/passwordless/otp",e))(x||{});const lt=t.z.object({access_token:t.z.string(),id_token:t.z.string().optional(),scope:t.z.string().optional(),state:t.z.string().optional(),refresh_token:t.z.string().optional(),token_type:t.z.string(),expires_in:t.z.number()});t.z.object({code:t.z.string(),state:t.z.string().optional()});const P=t.z.object({button_border_radius:t.z.number(),button_border_weight:t.z.number(),buttons_style:t.z.enum(["pill"]),input_border_radius:t.z.number(),input_border_weight:t.z.number(),inputs_style:t.z.enum(["pill"]),show_widget_shadow:t.z.boolean(),widget_border_weight:t.z.number(),widget_corner_radius:t.z.number()}),F=t.z.object({base_focus_color:t.z.string(),base_hover_color:t.z.string(),body_text:t.z.string(),captcha_widget_theme:t.z.enum(["auto"]),error:t.z.string(),header:t.z.string(),icons:t.z.string(),input_background:t.z.string(),input_border:t.z.string(),input_filled_text:t.z.string(),input_labels_placeholders:t.z.string(),links_focused_components:t.z.string(),primary_button:t.z.string(),primary_button_label:t.z.string(),secondary_button_border:t.z.string(),secondary_button_label:t.z.string(),success:t.z.string(),widget_background:t.z.string(),widget_border:t.z.string()}),n=t.z.object({bold:t.z.boolean(),size:t.z.number()}),H=t.z.object({body_text:n,buttons_text:n,font_url:t.z.string(),input_labels:n,links:n,links_style:t.z.enum(["normal"]),reference_text_size:t.z.number(),subtitle:n,title:n}),K=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),G=t.z.object({header_text_alignment:t.z.enum(["center"]),logo_height:t.z.number(),logo_position:t.z.enum(["center"]),logo_url:t.z.string(),social_buttons_layout:t.z.enum(["bottom"])}),L=t.z.object({borders:P,colors:F,displayName:t.z.string(),fonts:H,page_background:K,widget:G}),ct=L.extend({themeId:t.z.string()}),pt=t.z.object({universal_login_experience:t.z.enum(["new","classic"]).default("new"),identifier_first:t.z.boolean().default(!0),password_first:t.z.boolean().default(!1),webauthn_platform_first_factor:t.z.boolean()}),zt=t.z.object({name:t.z.string(),enabled:t.z.boolean().optional().default(!0),default_from_address:t.z.string().optional(),credentials:t.z.union([t.z.object({accessKeyId:t.z.string(),secretAccessKey:t.z.string(),region:t.z.string()}),t.z.object({smtp_host:t.z.array(t.z.string()),smtp_port:t.z.number(),smtp_user:t.z.string(),smtp_pass:t.z.string()}),t.z.object({api_key:t.z.string(),domain:t.z.string().optional()}),t.z.object({connectionString:t.z.string()}),t.z.object({tenantId:t.z.string(),clientId:t.z.string(),clientSecret:t.z.string()})]),settings:t.z.object({}).optional()}),M=t.z.object({id:t.z.string(),session_id:t.z.string(),user_id:t.z.string(),client_id:t.z.string(),expires_at:t.z.string().optional(),idle_expires_at:t.z.string().optional(),last_exchanged_at:t.z.string().optional(),device:D,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),dt=t.z.object({created_at:t.z.string(),...M.shape}),gt=t.z.object({to:t.z.string(),message:t.z.string()}),_t=t.z.object({name:t.z.string(),options:t.z.object({})});function mt(e){const[i,o]=e.split("|");if(!i||!o)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:o}}exports.Auth0Client=N;exports.AuthorizationResponseMode=r;exports.AuthorizationResponseType=a;exports.CodeChallengeMethod=l;exports.GrantType=x;exports.LogTypes=U;exports.applicationInsertSchema=m;exports.applicationSchema=u;exports.auth0UserResponseSchema=W;exports.authParamsSchema=h;exports.baseUserSchema=s;exports.bordersSchema=P;exports.brandingSchema=Y;exports.codeInsertSchema=w;exports.codeSchema=J;exports.codeTypeSchema=k;exports.colorsSchema=F;exports.connectionInsertSchema=S;exports.connectionOptionsSchema=b;exports.connectionSchema=f;exports.customDomainInsertSchema=E;exports.customDomainSchema=j;exports.customDomainWithTenantIdSchema=Z;exports.emailProviderSchema=zt;exports.fontDetailsSchema=n;exports.fontsSchema=H;exports.hookInsertSchema=v;exports.hookSchema=$;exports.identitySchema=z;exports.jwksKeySchema=tt;exports.jwksSchema=A;exports.logSchema=ot;exports.loginSessionInsertSchema=O;exports.loginSessionSchema=nt;exports.openIDConfigurationSchema=et;exports.pageBackgroundSchema=K;exports.parseUserId=mt;exports.passwordInsertSchema=R;exports.passwordSchema=st;exports.profileDataSchema=p;exports.promptSettingSchema=pt;exports.refreshTokenInsertSchema=M;exports.refreshTokenSchema=dt;exports.samlpAddon=_;exports.sessionInsertSchema=T;exports.sessionSchema=at;exports.signingKeySchema=rt;exports.smsProviderSchema=_t;exports.smsSendParamsSchema=gt;exports.tenantInsertSchema=y;exports.tenantSchema=I;exports.themeInsertSchema=L;exports.themeSchema=ct;exports.tokenResponseSchema=lt;exports.totalsSchema=B;exports.userInsertSchema=d;exports.userResponseSchema=q;exports.userSchema=g;exports.vendorSettingsSchema=X;exports.verificationMethodsSchema=C;exports.widgetSchema=G;
@@ -21,7 +21,7 @@ export interface Totals {
21
21
  length: number;
22
22
  }
23
23
  export declare const baseUserSchema: z.ZodObject<{
24
- email: z.ZodOptional<z.ZodString>;
24
+ email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
25
25
  username: z.ZodOptional<z.ZodString>;
26
26
  phone_number: z.ZodOptional<z.ZodString>;
27
27
  given_name: z.ZodOptional<z.ZodString>;
@@ -67,8 +67,8 @@ export declare const baseUserSchema: z.ZodObject<{
67
67
  user_metadata?: any;
68
68
  }>;
69
69
  export type BaseUser = z.infer<typeof baseUserSchema>;
70
- export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
71
- email: z.ZodOptional<z.ZodString>;
70
+ export declare const userInsertSchema: z.ZodObject<{
71
+ email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
72
72
  username: z.ZodOptional<z.ZodString>;
73
73
  phone_number: z.ZodOptional<z.ZodString>;
74
74
  given_name: z.ZodOptional<z.ZodString>;
@@ -79,10 +79,9 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
79
79
  locale: z.ZodOptional<z.ZodString>;
80
80
  linked_to: z.ZodOptional<z.ZodString>;
81
81
  profileData: z.ZodOptional<z.ZodString>;
82
- user_id: z.ZodOptional<z.ZodString>;
83
82
  app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
84
83
  user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
85
- }, {
84
+ } & {
86
85
  email_verified: z.ZodDefault<z.ZodBoolean>;
87
86
  verify_email: z.ZodOptional<z.ZodBoolean>;
88
87
  last_ip: z.ZodOptional<z.ZodString>;
@@ -91,7 +90,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
91
90
  provider: z.ZodDefault<z.ZodString>;
92
91
  connection: z.ZodDefault<z.ZodString>;
93
92
  is_social: z.ZodOptional<z.ZodBoolean>;
94
- }>, "strip", z.ZodTypeAny, {
93
+ }, "strip", z.ZodTypeAny, {
95
94
  email_verified: boolean;
96
95
  connection: string;
97
96
  provider: string;
@@ -141,7 +140,7 @@ export declare const userSchema: z.ZodObject<{
141
140
  user_id: z.ZodString;
142
141
  is_social: z.ZodBoolean;
143
142
  email: z.ZodOptional<z.ZodString>;
144
- login_count: z.ZodNumber;
143
+ login_count: z.ZodDefault<z.ZodNumber>;
145
144
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
145
  connection: z.ZodString;
147
146
  user_id: z.ZodString;
@@ -284,7 +283,6 @@ export declare const userSchema: z.ZodObject<{
284
283
  updated_at: string;
285
284
  user_id: string;
286
285
  is_social: boolean;
287
- login_count: number;
288
286
  email?: string | undefined;
289
287
  email_verified?: boolean | undefined;
290
288
  name?: string | undefined;
@@ -304,6 +302,7 @@ export declare const userSchema: z.ZodObject<{
304
302
  verify_email?: boolean | undefined;
305
303
  last_ip?: string | undefined;
306
304
  last_login?: string | undefined;
305
+ login_count?: number | undefined;
307
306
  identities?: {
308
307
  connection: string;
309
308
  user_id: string;
@@ -329,7 +328,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
329
328
  user_id: z.ZodString;
330
329
  is_social: z.ZodBoolean;
331
330
  email: z.ZodOptional<z.ZodString>;
332
- login_count: z.ZodNumber;
331
+ login_count: z.ZodDefault<z.ZodNumber>;
333
332
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
333
  connection: z.ZodString;
335
334
  user_id: z.ZodString;
@@ -472,7 +471,6 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
472
471
  updated_at: string;
473
472
  user_id: string;
474
473
  is_social: boolean;
475
- login_count: number;
476
474
  email?: string | undefined;
477
475
  email_verified?: boolean | undefined;
478
476
  name?: string | undefined;
@@ -492,6 +490,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
492
490
  verify_email?: boolean | undefined;
493
491
  last_ip?: string | undefined;
494
492
  last_login?: string | undefined;
493
+ login_count?: number | undefined;
495
494
  identities?: {
496
495
  connection: string;
497
496
  user_id: string;
@@ -519,8 +518,8 @@ export interface PostUsersBody extends BaseUser {
519
518
  connection?: string;
520
519
  email_verified?: boolean;
521
520
  }
522
- export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
523
- email: z.ZodOptional<z.ZodString>;
521
+ export declare const userResponseSchema: z.ZodObject<{
522
+ email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
524
523
  username: z.ZodOptional<z.ZodString>;
525
524
  phone_number: z.ZodOptional<z.ZodString>;
526
525
  given_name: z.ZodOptional<z.ZodString>;
@@ -531,18 +530,16 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
531
530
  locale: z.ZodOptional<z.ZodString>;
532
531
  linked_to: z.ZodOptional<z.ZodString>;
533
532
  profileData: z.ZodOptional<z.ZodString>;
534
- user_id: z.ZodOptional<z.ZodString>;
535
533
  app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
536
534
  user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
537
- }, {
538
- email: z.ZodString;
535
+ } & {
539
536
  login_count: z.ZodNumber;
540
537
  multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
538
  last_ip: z.ZodOptional<z.ZodString>;
542
539
  last_login: z.ZodOptional<z.ZodString>;
543
540
  user_id: z.ZodString;
544
- }>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
545
- email: z.ZodOptional<z.ZodString>;
541
+ }, "strip", z.ZodAny, z.objectOutputType<{
542
+ email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
546
543
  username: z.ZodOptional<z.ZodString>;
547
544
  phone_number: z.ZodOptional<z.ZodString>;
548
545
  given_name: z.ZodOptional<z.ZodString>;
@@ -553,18 +550,16 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
553
550
  locale: z.ZodOptional<z.ZodString>;
554
551
  linked_to: z.ZodOptional<z.ZodString>;
555
552
  profileData: z.ZodOptional<z.ZodString>;
556
- user_id: z.ZodOptional<z.ZodString>;
557
553
  app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
558
554
  user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
559
- }, {
560
- email: z.ZodString;
555
+ } & {
561
556
  login_count: z.ZodNumber;
562
557
  multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
558
  last_ip: z.ZodOptional<z.ZodString>;
564
559
  last_login: z.ZodOptional<z.ZodString>;
565
560
  user_id: z.ZodString;
566
- }>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
567
- email: z.ZodOptional<z.ZodString>;
561
+ }, z.ZodAny, "strip">, z.objectInputType<{
562
+ email: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
568
563
  username: z.ZodOptional<z.ZodString>;
569
564
  phone_number: z.ZodOptional<z.ZodString>;
570
565
  given_name: z.ZodOptional<z.ZodString>;
@@ -575,17 +570,15 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
575
570
  locale: z.ZodOptional<z.ZodString>;
576
571
  linked_to: z.ZodOptional<z.ZodString>;
577
572
  profileData: z.ZodOptional<z.ZodString>;
578
- user_id: z.ZodOptional<z.ZodString>;
579
573
  app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
580
574
  user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
581
- }, {
582
- email: z.ZodString;
575
+ } & {
583
576
  login_count: z.ZodNumber;
584
577
  multifactor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
585
578
  last_ip: z.ZodOptional<z.ZodString>;
586
579
  last_login: z.ZodOptional<z.ZodString>;
587
580
  user_id: z.ZodString;
588
- }>, z.ZodAny, "strip">>;
581
+ }, z.ZodAny, "strip">>;
589
582
  export type UserResponse = z.infer<typeof userResponseSchema>;
590
583
  export declare const samlpAddon: z.ZodObject<{
591
584
  audience: z.ZodOptional<z.ZodString>;
@@ -1174,15 +1167,14 @@ declare const ClientSchema: z.ZodObject<{
1174
1167
  secondary_color?: string | undefined;
1175
1168
  language?: string | undefined;
1176
1169
  }>;
1177
- connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1178
- id: z.ZodString;
1170
+ connections: z.ZodArray<z.ZodObject<{
1179
1171
  created_at: z.ZodEffects<z.ZodString, string, string>;
1180
1172
  updated_at: z.ZodEffects<z.ZodString, string, string>;
1181
- }, {
1173
+ } & {
1182
1174
  id: z.ZodOptional<z.ZodString>;
1183
1175
  name: z.ZodString;
1184
1176
  strategy: z.ZodString;
1185
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1177
+ options: z.ZodDefault<z.ZodObject<{
1186
1178
  kid: z.ZodOptional<z.ZodString>;
1187
1179
  team_id: z.ZodOptional<z.ZodString>;
1188
1180
  realms: z.ZodOptional<z.ZodString>;
@@ -1190,12 +1182,12 @@ declare const ClientSchema: z.ZodObject<{
1190
1182
  client_secret: z.ZodOptional<z.ZodString>;
1191
1183
  app_secret: z.ZodOptional<z.ZodString>;
1192
1184
  scope: z.ZodOptional<z.ZodString>;
1193
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1194
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1195
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1196
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1197
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1198
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1185
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1186
+ token_endpoint: z.ZodOptional<z.ZodString>;
1187
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1188
+ jwks_uri: z.ZodOptional<z.ZodString>;
1189
+ discovery_url: z.ZodOptional<z.ZodString>;
1190
+ issuer: z.ZodOptional<z.ZodString>;
1199
1191
  provider: z.ZodOptional<z.ZodString>;
1200
1192
  from: z.ZodOptional<z.ZodString>;
1201
1193
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1236,16 +1228,12 @@ declare const ClientSchema: z.ZodObject<{
1236
1228
  from?: string | undefined;
1237
1229
  twilio_sid?: string | undefined;
1238
1230
  twilio_token?: string | undefined;
1239
- }>>>;
1231
+ }>>;
1240
1232
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1241
1233
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1242
1234
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1243
- }>, "strip", z.ZodTypeAny, {
1244
- created_at: string;
1245
- updated_at: string;
1246
- name: string;
1247
- strategy: string;
1248
- options?: {
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ options: {
1249
1237
  provider?: string | undefined;
1250
1238
  issuer?: string | undefined;
1251
1239
  client_secret?: string | undefined;
@@ -1263,7 +1251,11 @@ declare const ClientSchema: z.ZodObject<{
1263
1251
  from?: string | undefined;
1264
1252
  twilio_sid?: string | undefined;
1265
1253
  twilio_token?: string | undefined;
1266
- } | undefined;
1254
+ };
1255
+ created_at: string;
1256
+ updated_at: string;
1257
+ name: string;
1258
+ strategy: string;
1267
1259
  id?: string | undefined;
1268
1260
  response_type?: AuthorizationResponseType | undefined;
1269
1261
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1426,11 +1418,7 @@ declare const ClientSchema: z.ZodObject<{
1426
1418
  language?: string | undefined;
1427
1419
  };
1428
1420
  connections: {
1429
- created_at: string;
1430
- updated_at: string;
1431
- name: string;
1432
- strategy: string;
1433
- options?: {
1421
+ options: {
1434
1422
  provider?: string | undefined;
1435
1423
  issuer?: string | undefined;
1436
1424
  client_secret?: string | undefined;
@@ -1448,7 +1436,11 @@ declare const ClientSchema: z.ZodObject<{
1448
1436
  from?: string | undefined;
1449
1437
  twilio_sid?: string | undefined;
1450
1438
  twilio_token?: string | undefined;
1451
- } | undefined;
1439
+ };
1440
+ created_at: string;
1441
+ updated_at: string;
1442
+ name: string;
1443
+ strategy: string;
1452
1444
  id?: string | undefined;
1453
1445
  response_type?: AuthorizationResponseType | undefined;
1454
1446
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1643,11 +1635,66 @@ export declare const codeSchema: z.ZodObject<{
1643
1635
  used_at?: string | undefined;
1644
1636
  }>;
1645
1637
  export type Code = z.infer<typeof codeSchema>;
1638
+ export declare const connectionOptionsSchema: z.ZodObject<{
1639
+ kid: z.ZodOptional<z.ZodString>;
1640
+ team_id: z.ZodOptional<z.ZodString>;
1641
+ realms: z.ZodOptional<z.ZodString>;
1642
+ client_id: z.ZodOptional<z.ZodString>;
1643
+ client_secret: z.ZodOptional<z.ZodString>;
1644
+ app_secret: z.ZodOptional<z.ZodString>;
1645
+ scope: z.ZodOptional<z.ZodString>;
1646
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1647
+ token_endpoint: z.ZodOptional<z.ZodString>;
1648
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1649
+ jwks_uri: z.ZodOptional<z.ZodString>;
1650
+ discovery_url: z.ZodOptional<z.ZodString>;
1651
+ issuer: z.ZodOptional<z.ZodString>;
1652
+ provider: z.ZodOptional<z.ZodString>;
1653
+ from: z.ZodOptional<z.ZodString>;
1654
+ twilio_sid: z.ZodOptional<z.ZodString>;
1655
+ twilio_token: z.ZodOptional<z.ZodString>;
1656
+ }, "strip", z.ZodTypeAny, {
1657
+ provider?: string | undefined;
1658
+ issuer?: string | undefined;
1659
+ client_secret?: string | undefined;
1660
+ client_id?: string | undefined;
1661
+ scope?: string | undefined;
1662
+ kid?: string | undefined;
1663
+ team_id?: string | undefined;
1664
+ realms?: string | undefined;
1665
+ app_secret?: string | undefined;
1666
+ authorization_endpoint?: string | undefined;
1667
+ token_endpoint?: string | undefined;
1668
+ userinfo_endpoint?: string | undefined;
1669
+ jwks_uri?: string | undefined;
1670
+ discovery_url?: string | undefined;
1671
+ from?: string | undefined;
1672
+ twilio_sid?: string | undefined;
1673
+ twilio_token?: string | undefined;
1674
+ }, {
1675
+ provider?: string | undefined;
1676
+ issuer?: string | undefined;
1677
+ client_secret?: string | undefined;
1678
+ client_id?: string | undefined;
1679
+ scope?: string | undefined;
1680
+ kid?: string | undefined;
1681
+ team_id?: string | undefined;
1682
+ realms?: string | undefined;
1683
+ app_secret?: string | undefined;
1684
+ authorization_endpoint?: string | undefined;
1685
+ token_endpoint?: string | undefined;
1686
+ userinfo_endpoint?: string | undefined;
1687
+ jwks_uri?: string | undefined;
1688
+ discovery_url?: string | undefined;
1689
+ from?: string | undefined;
1690
+ twilio_sid?: string | undefined;
1691
+ twilio_token?: string | undefined;
1692
+ }>;
1646
1693
  export declare const connectionInsertSchema: z.ZodObject<{
1647
1694
  id: z.ZodOptional<z.ZodString>;
1648
1695
  name: z.ZodString;
1649
1696
  strategy: z.ZodString;
1650
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1697
+ options: z.ZodDefault<z.ZodObject<{
1651
1698
  kid: z.ZodOptional<z.ZodString>;
1652
1699
  team_id: z.ZodOptional<z.ZodString>;
1653
1700
  realms: z.ZodOptional<z.ZodString>;
@@ -1655,12 +1702,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
1655
1702
  client_secret: z.ZodOptional<z.ZodString>;
1656
1703
  app_secret: z.ZodOptional<z.ZodString>;
1657
1704
  scope: z.ZodOptional<z.ZodString>;
1658
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1659
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1660
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1661
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1662
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1663
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1705
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1706
+ token_endpoint: z.ZodOptional<z.ZodString>;
1707
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1708
+ jwks_uri: z.ZodOptional<z.ZodString>;
1709
+ discovery_url: z.ZodOptional<z.ZodString>;
1710
+ issuer: z.ZodOptional<z.ZodString>;
1664
1711
  provider: z.ZodOptional<z.ZodString>;
1665
1712
  from: z.ZodOptional<z.ZodString>;
1666
1713
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1701,14 +1748,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
1701
1748
  from?: string | undefined;
1702
1749
  twilio_sid?: string | undefined;
1703
1750
  twilio_token?: string | undefined;
1704
- }>>>;
1751
+ }>>;
1705
1752
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1706
1753
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1707
1754
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1708
1755
  }, "strip", z.ZodTypeAny, {
1709
- name: string;
1710
- strategy: string;
1711
- options?: {
1756
+ options: {
1712
1757
  provider?: string | undefined;
1713
1758
  issuer?: string | undefined;
1714
1759
  client_secret?: string | undefined;
@@ -1726,7 +1771,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1726
1771
  from?: string | undefined;
1727
1772
  twilio_sid?: string | undefined;
1728
1773
  twilio_token?: string | undefined;
1729
- } | undefined;
1774
+ };
1775
+ name: string;
1776
+ strategy: string;
1730
1777
  id?: string | undefined;
1731
1778
  response_type?: AuthorizationResponseType | undefined;
1732
1779
  response_mode?: AuthorizationResponseMode | undefined;
@@ -1759,15 +1806,14 @@ export declare const connectionInsertSchema: z.ZodObject<{
1759
1806
  enabled_clients?: string[] | undefined;
1760
1807
  }>;
1761
1808
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
1762
- export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1763
- id: z.ZodString;
1809
+ export declare const connectionSchema: z.ZodObject<{
1764
1810
  created_at: z.ZodEffects<z.ZodString, string, string>;
1765
1811
  updated_at: z.ZodEffects<z.ZodString, string, string>;
1766
- }, {
1812
+ } & {
1767
1813
  id: z.ZodOptional<z.ZodString>;
1768
1814
  name: z.ZodString;
1769
1815
  strategy: z.ZodString;
1770
- options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
1816
+ options: z.ZodDefault<z.ZodObject<{
1771
1817
  kid: z.ZodOptional<z.ZodString>;
1772
1818
  team_id: z.ZodOptional<z.ZodString>;
1773
1819
  realms: z.ZodOptional<z.ZodString>;
@@ -1775,12 +1821,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1775
1821
  client_secret: z.ZodOptional<z.ZodString>;
1776
1822
  app_secret: z.ZodOptional<z.ZodString>;
1777
1823
  scope: z.ZodOptional<z.ZodString>;
1778
- authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1779
- token_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1780
- userinfo_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1781
- jwks_uri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1782
- discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1783
- issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1824
+ authorization_endpoint: z.ZodOptional<z.ZodString>;
1825
+ token_endpoint: z.ZodOptional<z.ZodString>;
1826
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
1827
+ jwks_uri: z.ZodOptional<z.ZodString>;
1828
+ discovery_url: z.ZodOptional<z.ZodString>;
1829
+ issuer: z.ZodOptional<z.ZodString>;
1784
1830
  provider: z.ZodOptional<z.ZodString>;
1785
1831
  from: z.ZodOptional<z.ZodString>;
1786
1832
  twilio_sid: z.ZodOptional<z.ZodString>;
@@ -1821,16 +1867,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1821
1867
  from?: string | undefined;
1822
1868
  twilio_sid?: string | undefined;
1823
1869
  twilio_token?: string | undefined;
1824
- }>>>;
1870
+ }>>;
1825
1871
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1826
1872
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1827
1873
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1828
- }>, "strip", z.ZodTypeAny, {
1829
- created_at: string;
1830
- updated_at: string;
1831
- name: string;
1832
- strategy: string;
1833
- options?: {
1874
+ }, "strip", z.ZodTypeAny, {
1875
+ options: {
1834
1876
  provider?: string | undefined;
1835
1877
  issuer?: string | undefined;
1836
1878
  client_secret?: string | undefined;
@@ -1848,7 +1890,11 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1848
1890
  from?: string | undefined;
1849
1891
  twilio_sid?: string | undefined;
1850
1892
  twilio_token?: string | undefined;
1851
- } | undefined;
1893
+ };
1894
+ created_at: string;
1895
+ updated_at: string;
1896
+ name: string;
1897
+ strategy: string;
1852
1898
  id?: string | undefined;
1853
1899
  response_type?: AuthorizationResponseType | undefined;
1854
1900
  response_mode?: AuthorizationResponseMode | undefined;
@@ -2028,7 +2074,7 @@ export declare const customDomainSchema: z.ZodObject<{
2028
2074
  } | undefined;
2029
2075
  }>;
2030
2076
  export type CustomDomain = z.infer<typeof customDomainSchema>;
2031
- export declare const customDomainWithTenantIdSchema: z.ZodObject<z.objectUtil.extendShape<{
2077
+ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
2032
2078
  custom_domain_id: z.ZodString;
2033
2079
  primary: z.ZodBoolean;
2034
2080
  status: z.ZodEnum<[
@@ -2082,9 +2128,9 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<z.objectUtil.ex
2082
2128
  "null"
2083
2129
  ]>>;
2084
2130
  domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2085
- }, {
2131
+ } & {
2086
2132
  tenant_id: z.ZodString;
2087
- }>, "strip", z.ZodTypeAny, {
2133
+ }, "strip", z.ZodTypeAny, {
2088
2134
  type: "auth0_managed_certs" | "self_managed_certs";
2089
2135
  status: "disabled" | "pending" | "pending_verification" | "ready";
2090
2136
  primary: boolean;
@@ -2151,7 +2197,7 @@ export declare const hookInsertSchema: z.ZodObject<{
2151
2197
  priority?: number | undefined;
2152
2198
  }>;
2153
2199
  export type HookInsert = z.infer<typeof hookInsertSchema>;
2154
- export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
2200
+ export declare const hookSchema: z.ZodObject<{
2155
2201
  trigger_id: z.ZodEnum<[
2156
2202
  "pre-user-signup",
2157
2203
  "post-user-registration",
@@ -2159,14 +2205,13 @@ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
2159
2205
  ]>;
2160
2206
  enabled: z.ZodDefault<z.ZodBoolean>;
2161
2207
  url: z.ZodString;
2162
- hook_id: z.ZodOptional<z.ZodString>;
2163
2208
  synchronous: z.ZodDefault<z.ZodBoolean>;
2164
2209
  priority: z.ZodOptional<z.ZodNumber>;
2165
- }, {
2210
+ } & {
2166
2211
  hook_id: z.ZodString;
2167
2212
  created_at: z.ZodString;
2168
2213
  updated_at: z.ZodString;
2169
- }>, "strip", z.ZodTypeAny, {
2214
+ }, "strip", z.ZodTypeAny, {
2170
2215
  created_at: string;
2171
2216
  updated_at: string;
2172
2217
  enabled: boolean;
@@ -4016,7 +4061,7 @@ export declare const themeInsertSchema: z.ZodObject<{
4016
4061
  };
4017
4062
  }>;
4018
4063
  export type ThemeInsert = z.infer<typeof themeInsertSchema>;
4019
- export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
4064
+ export declare const themeSchema: z.ZodObject<{
4020
4065
  borders: z.ZodObject<{
4021
4066
  button_border_radius: z.ZodNumber;
4022
4067
  button_border_weight: z.ZodNumber;
@@ -4279,9 +4324,9 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
4279
4324
  logo_position: "center";
4280
4325
  social_buttons_layout: "bottom";
4281
4326
  }>;
4282
- }, {
4327
+ } & {
4283
4328
  themeId: z.ZodString;
4284
- }>, "strip", z.ZodTypeAny, {
4329
+ }, "strip", z.ZodTypeAny, {
4285
4330
  page_background: {
4286
4331
  background_color: string;
4287
4332
  background_image_url: string;
@@ -1,5 +1,5 @@
1
1
  import { z as t } from "@hono/zod-openapi";
2
- const Q = t.object({
2
+ const V = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
@@ -25,7 +25,7 @@ const Q = t.object({
25
25
  refresh_token: t.string().optional(),
26
26
  profileData: d.optional()
27
27
  }), a = t.object({
28
- email: t.string().optional(),
28
+ email: t.string().optional().transform((n) => n && n.toLowerCase()),
29
29
  username: t.string().optional(),
30
30
  phone_number: t.string().optional(),
31
31
  given_name: t.string().optional(),
@@ -53,22 +53,20 @@ const Q = t.object({
53
53
  ...s.shape,
54
54
  user_id: t.string(),
55
55
  is_social: t.boolean(),
56
- // TODO: this not might be correct if you use the username
57
56
  email: t.string().optional(),
58
- login_count: t.number(),
57
+ login_count: t.number().default(0),
59
58
  identities: t.array(g).optional()
60
- }), V = u, Y = a.extend({
61
- email: t.string(),
59
+ }), Y = u, X = a.extend({
62
60
  login_count: t.number(),
63
61
  multifactor: t.array(t.string()).optional(),
64
62
  last_ip: t.string().optional(),
65
63
  last_login: t.string().optional(),
66
64
  user_id: t.string()
67
65
  }).catchall(t.any()), m = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
68
- let h = (e = 21) => {
69
- let i = "", o = crypto.getRandomValues(new Uint8Array(e));
70
- for (; e--; )
71
- i += m[o[e] & 63];
66
+ let h = (n = 21) => {
67
+ let i = "", o = crypto.getRandomValues(new Uint8Array(n));
68
+ for (; n--; )
69
+ i += m[o[n] & 63];
72
70
  return i;
73
71
  };
74
72
  const b = t.object({
@@ -119,11 +117,11 @@ const b = t.object({
119
117
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
120
118
  })
121
119
  }), S = t.object({
122
- created_at: t.string().transform((e) => e === null ? "" : e),
123
- updated_at: t.string().transform((e) => e === null ? "" : e),
120
+ created_at: t.string().transform((n) => n === null ? "" : n),
121
+ updated_at: t.string().transform((n) => n === null ? "" : n),
124
122
  ...f.shape
125
123
  });
126
- var r = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(r || {}), l = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(l || {}), c = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(c || {});
124
+ var r = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(r || {}), l = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(l || {}), c = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(c || {});
127
125
  const y = t.object({
128
126
  client_id: t.string(),
129
127
  act_as: t.string().optional(),
@@ -142,7 +140,7 @@ const y = t.object({
142
140
  ui_locales: t.string().optional(),
143
141
  // The following fields are not available in Auth0
144
142
  vendor_id: t.string().optional()
145
- }), X = t.object({
143
+ }), J = t.object({
146
144
  colors: t.object({
147
145
  primary: t.string(),
148
146
  page_background: t.object({
@@ -157,37 +155,37 @@ const y = t.object({
157
155
  font: t.object({
158
156
  url: t.string()
159
157
  }).optional()
158
+ }), w = t.object({
159
+ kid: t.string().optional(),
160
+ team_id: t.string().optional(),
161
+ realms: t.string().optional(),
162
+ client_id: t.string().optional(),
163
+ client_secret: t.string().optional(),
164
+ app_secret: t.string().optional(),
165
+ scope: t.string().optional(),
166
+ authorization_endpoint: t.string().optional(),
167
+ token_endpoint: t.string().optional(),
168
+ userinfo_endpoint: t.string().optional(),
169
+ jwks_uri: t.string().optional(),
170
+ discovery_url: t.string().optional(),
171
+ issuer: t.string().optional(),
172
+ provider: t.string().optional(),
173
+ from: t.string().optional(),
174
+ twilio_sid: t.string().optional(),
175
+ twilio_token: t.string().optional()
160
176
  }), E = t.object({
161
177
  id: t.string().optional(),
162
178
  name: t.string(),
163
179
  strategy: t.string(),
164
- options: t.object({
165
- kid: t.string().optional(),
166
- team_id: t.string().optional(),
167
- realms: t.string().optional(),
168
- client_id: t.string().optional(),
169
- client_secret: t.string().optional(),
170
- app_secret: t.string().optional(),
171
- scope: t.string().optional(),
172
- authorization_endpoint: t.string().default("").optional(),
173
- token_endpoint: t.string().default("").optional(),
174
- userinfo_endpoint: t.string().default("").optional(),
175
- jwks_uri: t.string().default("").optional(),
176
- discovery_url: t.string().default("").optional(),
177
- issuer: t.string().default("").optional(),
178
- provider: t.string().optional(),
179
- from: t.string().optional(),
180
- twilio_sid: t.string().optional(),
181
- twilio_token: t.string().optional()
182
- }).default({}).optional(),
180
+ options: w.default({}),
183
181
  enabled_clients: t.array(t.string()).default([]).optional(),
184
182
  response_type: t.custom().optional(),
185
183
  response_mode: t.custom().optional()
186
- }), w = t.object({
184
+ }), k = t.object({
187
185
  id: t.string(),
188
- created_at: t.string().transform((e) => e === null ? "" : e),
189
- updated_at: t.string().transform((e) => e === null ? "" : e)
190
- }).extend(E.shape), k = t.object({
186
+ created_at: t.string().transform((n) => n === null ? "" : n),
187
+ updated_at: t.string().transform((n) => n === null ? "" : n)
188
+ }).extend(E.shape), C = t.object({
191
189
  name: t.string(),
192
190
  audience: t.string(),
193
191
  sender_email: t.string().email(),
@@ -198,12 +196,12 @@ const y = t.object({
198
196
  secondary_color: t.string().optional(),
199
197
  language: t.string().optional(),
200
198
  id: t.string().optional()
201
- }), C = t.object({
202
- created_at: t.string().transform((e) => e === null ? "" : e),
203
- updated_at: t.string().transform((e) => e === null ? "" : e),
204
- ...k.shape,
199
+ }), I = t.object({
200
+ created_at: t.string().transform((n) => n === null ? "" : n),
201
+ updated_at: t.string().transform((n) => n === null ? "" : n),
202
+ ...C.shape,
205
203
  id: t.string()
206
- }), J = t.object({
204
+ }), Z = t.object({
207
205
  logoUrl: t.string(),
208
206
  loginBackgroundImage: t.string().nullish(),
209
207
  style: t.object({
@@ -223,17 +221,17 @@ const y = t.object({
223
221
  });
224
222
  t.object({
225
223
  ...S.shape,
226
- tenant: C,
227
- connections: t.array(w)
224
+ tenant: I,
225
+ connections: t.array(k)
228
226
  });
229
- const I = t.enum([
227
+ const j = t.enum([
230
228
  "password_reset",
231
229
  "email_verification",
232
230
  "otp",
233
231
  "authorization_code",
234
232
  "oauth2_state",
235
233
  "ticket"
236
- ]), j = t.object({
234
+ ]), v = t.object({
237
235
  code_id: t.string().openapi({
238
236
  description: "The code that will be used in for instance an email verification flow"
239
237
  }),
@@ -243,17 +241,17 @@ const I = t.enum([
243
241
  connection_id: t.string().optional().openapi({
244
242
  description: "The connection that the code is connected to"
245
243
  }),
246
- code_type: I,
244
+ code_type: j,
247
245
  code_verifier: t.string().optional().openapi({
248
246
  description: "The code verifier used in PKCE in outbound flows"
249
247
  }),
250
248
  expires_at: t.string(),
251
249
  used_at: t.string().optional(),
252
250
  user_id: t.string().optional()
253
- }), Z = t.object({
254
- ...j.shape,
251
+ }), $ = t.object({
252
+ ...v.shape,
255
253
  created_at: t.string()
256
- }), v = t.object({
254
+ }), A = t.object({
257
255
  domain: t.string(),
258
256
  custom_domain_id: t.string().optional(),
259
257
  type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -267,23 +265,23 @@ const I = t.enum([
267
265
  "null"
268
266
  ]).optional(),
269
267
  domain_metadata: t.record(t.string().max(255)).optional()
270
- }), A = t.object({
268
+ }), O = t.object({
271
269
  name: t.literal("txt"),
272
270
  record: t.string(),
273
271
  domain: t.string()
274
- }), O = t.object({
275
- ...v.shape,
272
+ }), N = t.object({
273
+ ...A.shape,
276
274
  custom_domain_id: t.string(),
277
275
  primary: t.boolean(),
278
276
  status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
279
277
  origin_domain_name: t.string().optional(),
280
278
  verification: t.object({
281
- methods: t.array(A)
279
+ methods: t.array(O)
282
280
  }).optional(),
283
281
  tls_policy: t.string().optional()
284
- }), $ = O.extend({
282
+ }), tt = N.extend({
285
283
  tenant_id: t.string()
286
- }), N = t.object({
284
+ }), U = t.object({
287
285
  trigger_id: t.enum([
288
286
  "pre-user-signup",
289
287
  "post-user-registration",
@@ -294,10 +292,10 @@ const I = t.enum([
294
292
  hook_id: t.string().optional(),
295
293
  synchronous: t.boolean().default(!1),
296
294
  priority: t.number().optional()
297
- }), tt = N.extend({
295
+ }), nt = U.extend({
298
296
  ...s.shape,
299
297
  hook_id: t.string()
300
- }), U = t.object({
298
+ }), R = t.object({
301
299
  alg: t.enum([
302
300
  "RS256",
303
301
  "RS384",
@@ -317,8 +315,8 @@ const I = t.enum([
317
315
  x5c: t.array(t.string()).optional(),
318
316
  use: t.enum(["sig", "enc"]).optional()
319
317
  }), et = t.object({
320
- keys: t.array(U)
321
- }), nt = t.object({
318
+ keys: t.array(R)
319
+ }), it = t.object({
322
320
  issuer: t.string(),
323
321
  authorization_endpoint: t.string(),
324
322
  token_endpoint: t.string(),
@@ -339,7 +337,7 @@ const I = t.enum([
339
337
  request_uri_parameter_supported: t.boolean(),
340
338
  request_parameter_supported: t.boolean(),
341
339
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
342
- }), R = t.object({
340
+ }), D = t.object({
343
341
  csrf_token: t.string(),
344
342
  auth0Client: t.string().optional(),
345
343
  authParams: y,
@@ -351,16 +349,16 @@ const I = t.enum([
351
349
  authorization_url: t.string().optional()
352
350
  }).openapi({
353
351
  description: "This represents a login sesion"
354
- }), it = t.object({
355
- ...R.shape,
352
+ }), ot = t.object({
353
+ ...D.shape,
356
354
  id: t.string().openapi({
357
355
  description: "This is is used as the state in the universal login"
358
356
  }),
359
357
  created_at: t.string(),
360
358
  updated_at: t.string()
361
359
  });
362
- var D = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(D || {});
363
- const x = t.enum([
360
+ var x = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))(x || {});
361
+ const T = t.enum([
364
362
  "cls",
365
363
  // CODE_LINK_SENT
366
364
  "fsa",
@@ -409,14 +407,14 @@ const x = t.enum([
409
407
  // SUCCESS_VERIFICATION_EMAIL
410
408
  "svr"
411
409
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
412
- ]), T = t.object({
410
+ ]), P = t.object({
413
411
  name: t.string(),
414
412
  version: t.string(),
415
413
  env: t.object({
416
414
  node: t.string().optional()
417
415
  }).optional()
418
- }), ot = t.object({
419
- type: x,
416
+ }), st = t.object({
417
+ type: T,
420
418
  date: t.string(),
421
419
  description: t.string().optional(),
422
420
  log_id: t.string().optional(),
@@ -437,13 +435,13 @@ const x = t.enum([
437
435
  strategy: t.string().optional(),
438
436
  strategy_type: t.string().optional(),
439
437
  hostname: t.string().optional(),
440
- auth0_client: T.optional()
441
- }), P = t.object({
438
+ auth0_client: P.optional()
439
+ }), F = t.object({
442
440
  user_id: t.string(),
443
441
  password: t.string(),
444
442
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
445
- }), st = t.object({
446
- ...P.shape,
443
+ }), at = t.object({
444
+ ...F.shape,
447
445
  created_at: t.string(),
448
446
  updated_at: t.string()
449
447
  }), p = t.object({
@@ -453,7 +451,7 @@ const x = t.enum([
453
451
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
454
452
  last_ip: t.string().describe("Last IP address from which this user logged in"),
455
453
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
456
- }), F = t.object({
454
+ }), H = t.object({
457
455
  id: t.string(),
458
456
  revoked_at: t.string().optional(),
459
457
  used_at: t.string().optional(),
@@ -464,13 +462,13 @@ const x = t.enum([
464
462
  "Metadata related to the device used in the session"
465
463
  ),
466
464
  clients: t.array(t.string()).describe("List of client details for the session")
467
- }), at = t.object({
465
+ }), rt = t.object({
468
466
  created_at: t.string(),
469
467
  updated_at: t.string(),
470
468
  authenticated_at: t.string(),
471
469
  last_interaction_at: t.string(),
472
- ...F.shape
473
- }), rt = t.object({
470
+ ...H.shape
471
+ }), lt = t.object({
474
472
  kid: t.string().openapi({ description: "The key id of the signing key" }),
475
473
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
476
474
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -490,8 +488,8 @@ const x = t.enum([
490
488
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
491
489
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
492
490
  });
493
- var H = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(H || {});
494
- const lt = t.object({
491
+ var K = /* @__PURE__ */ ((n) => (n.RefreshToken = "refresh_token", n.AuthorizationCode = "authorization_code", n.ClientCredential = "client_credentials", n.Passwordless = "passwordless", n.Password = "password", n.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", n))(K || {});
492
+ const ct = t.object({
495
493
  access_token: t.string(),
496
494
  id_token: t.string().optional(),
497
495
  scope: t.string().optional(),
@@ -504,7 +502,7 @@ t.object({
504
502
  code: t.string(),
505
503
  state: t.string().optional()
506
504
  });
507
- const K = t.object({
505
+ const G = t.object({
508
506
  button_border_radius: t.number(),
509
507
  button_border_weight: t.number(),
510
508
  buttons_style: t.enum(["pill"]),
@@ -514,7 +512,7 @@ const K = t.object({
514
512
  show_widget_shadow: t.boolean(),
515
513
  widget_border_weight: t.number(),
516
514
  widget_corner_radius: t.number()
517
- }), G = t.object({
515
+ }), L = t.object({
518
516
  base_focus_color: t.string(),
519
517
  base_hover_color: t.string(),
520
518
  body_text: t.string(),
@@ -534,44 +532,44 @@ const K = t.object({
534
532
  success: t.string(),
535
533
  widget_background: t.string(),
536
534
  widget_border: t.string()
537
- }), n = t.object({
535
+ }), e = t.object({
538
536
  bold: t.boolean(),
539
537
  size: t.number()
540
- }), L = t.object({
541
- body_text: n,
542
- buttons_text: n,
538
+ }), B = t.object({
539
+ body_text: e,
540
+ buttons_text: e,
543
541
  font_url: t.string(),
544
- input_labels: n,
545
- links: n,
542
+ input_labels: e,
543
+ links: e,
546
544
  links_style: t.enum(["normal"]),
547
545
  reference_text_size: t.number(),
548
- subtitle: n,
549
- title: n
550
- }), B = t.object({
546
+ subtitle: e,
547
+ title: e
548
+ }), M = t.object({
551
549
  background_color: t.string(),
552
550
  background_image_url: t.string(),
553
551
  page_layout: t.enum(["center"])
554
- }), M = t.object({
552
+ }), W = t.object({
555
553
  header_text_alignment: t.enum(["center"]),
556
554
  logo_height: t.number(),
557
555
  logo_position: t.enum(["center"]),
558
556
  logo_url: t.string(),
559
557
  social_buttons_layout: t.enum(["bottom"])
560
- }), W = t.object({
561
- borders: K,
562
- colors: G,
558
+ }), q = t.object({
559
+ borders: G,
560
+ colors: L,
563
561
  displayName: t.string(),
564
- fonts: L,
565
- page_background: B,
566
- widget: M
567
- }), ct = W.extend({
562
+ fonts: B,
563
+ page_background: M,
564
+ widget: W
565
+ }), pt = q.extend({
568
566
  themeId: t.string()
569
- }), pt = t.object({
567
+ }), dt = t.object({
570
568
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
571
569
  identifier_first: t.boolean().default(!0),
572
570
  password_first: t.boolean().default(!1),
573
571
  webauthn_platform_first_factor: t.boolean()
574
- }), dt = t.object({
572
+ }), gt = t.object({
575
573
  name: t.string(),
576
574
  enabled: t.boolean().optional().default(!0),
577
575
  default_from_address: t.string().optional(),
@@ -601,7 +599,7 @@ const K = t.object({
601
599
  })
602
600
  ]),
603
601
  settings: t.object({}).optional()
604
- }), q = t.object({
602
+ }), z = t.object({
605
603
  // The actual refresh token value (primary key).
606
604
  id: t.string(),
607
605
  // Link to the session record
@@ -622,83 +620,84 @@ const K = t.object({
622
620
  })
623
621
  ),
624
622
  rotating: t.boolean()
625
- }), gt = t.object({
623
+ }), _t = t.object({
626
624
  // When the refresh token record was created.
627
625
  created_at: t.string(),
628
626
  // Spread in the rest of the refresh token properties.
629
- ...q.shape
630
- }), _t = t.object({
627
+ ...z.shape
628
+ }), ut = t.object({
631
629
  to: t.string(),
632
630
  message: t.string()
633
- }), ut = t.object({
631
+ }), mt = t.object({
634
632
  name: t.string(),
635
633
  options: t.object({})
636
634
  });
637
- function mt(e) {
638
- const [i, o] = e.split("|");
635
+ function ht(n) {
636
+ const [i, o] = n.split("|");
639
637
  if (!i || !o)
640
- throw new Error(`Invalid user_id: ${e}`);
638
+ throw new Error(`Invalid user_id: ${n}`);
641
639
  return { connection: i, id: o };
642
640
  }
643
641
  export {
644
- T as Auth0Client,
642
+ P as Auth0Client,
645
643
  l as AuthorizationResponseMode,
646
644
  r as AuthorizationResponseType,
647
645
  c as CodeChallengeMethod,
648
- H as GrantType,
649
- D as LogTypes,
646
+ K as GrantType,
647
+ x as LogTypes,
650
648
  f as applicationInsertSchema,
651
649
  S as applicationSchema,
652
- V as auth0UserResponseSchema,
650
+ Y as auth0UserResponseSchema,
653
651
  y as authParamsSchema,
654
652
  a as baseUserSchema,
655
- K as bordersSchema,
656
- X as brandingSchema,
657
- j as codeInsertSchema,
658
- Z as codeSchema,
659
- I as codeTypeSchema,
660
- G as colorsSchema,
653
+ G as bordersSchema,
654
+ J as brandingSchema,
655
+ v as codeInsertSchema,
656
+ $ as codeSchema,
657
+ j as codeTypeSchema,
658
+ L as colorsSchema,
661
659
  E as connectionInsertSchema,
662
- w as connectionSchema,
663
- v as customDomainInsertSchema,
664
- O as customDomainSchema,
665
- $ as customDomainWithTenantIdSchema,
666
- dt as emailProviderSchema,
667
- n as fontDetailsSchema,
668
- L as fontsSchema,
669
- N as hookInsertSchema,
670
- tt as hookSchema,
660
+ w as connectionOptionsSchema,
661
+ k as connectionSchema,
662
+ A as customDomainInsertSchema,
663
+ N as customDomainSchema,
664
+ tt as customDomainWithTenantIdSchema,
665
+ gt as emailProviderSchema,
666
+ e as fontDetailsSchema,
667
+ B as fontsSchema,
668
+ U as hookInsertSchema,
669
+ nt as hookSchema,
671
670
  g as identitySchema,
672
671
  et as jwksKeySchema,
673
- U as jwksSchema,
674
- ot as logSchema,
675
- R as loginSessionInsertSchema,
676
- it as loginSessionSchema,
677
- nt as openIDConfigurationSchema,
678
- B as pageBackgroundSchema,
679
- mt as parseUserId,
680
- P as passwordInsertSchema,
681
- st as passwordSchema,
672
+ R as jwksSchema,
673
+ st as logSchema,
674
+ D as loginSessionInsertSchema,
675
+ ot as loginSessionSchema,
676
+ it as openIDConfigurationSchema,
677
+ M as pageBackgroundSchema,
678
+ ht as parseUserId,
679
+ F as passwordInsertSchema,
680
+ at as passwordSchema,
682
681
  d as profileDataSchema,
683
- pt as promptSettingSchema,
684
- q as refreshTokenInsertSchema,
685
- gt as refreshTokenSchema,
682
+ dt as promptSettingSchema,
683
+ z as refreshTokenInsertSchema,
684
+ _t as refreshTokenSchema,
686
685
  b as samlpAddon,
687
- F as sessionInsertSchema,
688
- at as sessionSchema,
689
- rt as signingKeySchema,
690
- ut as smsProviderSchema,
691
- _t as smsSendParamsSchema,
692
- k as tenantInsertSchema,
693
- C as tenantSchema,
694
- W as themeInsertSchema,
695
- ct as themeSchema,
696
- lt as tokenResponseSchema,
697
- Q as totalsSchema,
686
+ H as sessionInsertSchema,
687
+ rt as sessionSchema,
688
+ lt as signingKeySchema,
689
+ mt as smsProviderSchema,
690
+ ut as smsSendParamsSchema,
691
+ C as tenantInsertSchema,
692
+ I as tenantSchema,
693
+ q as themeInsertSchema,
694
+ pt as themeSchema,
695
+ ct as tokenResponseSchema,
696
+ V as totalsSchema,
698
697
  _ as userInsertSchema,
699
- Y as userResponseSchema,
698
+ X as userResponseSchema,
700
699
  u as userSchema,
701
- J as vendorSettingsSchema,
702
- A as verificationMethodsSchema,
703
- M as widgetSchema
700
+ Z as vendorSettingsSchema,
701
+ O as verificationMethodsSchema,
702
+ W as widgetSchema
704
703
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.58.0",
14
+ "version": "0.60.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],