@authhero/adapter-interfaces 0.56.0 → 0.58.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()}),a=t.z.object({email:t.z.string().optional(),username: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=a.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(),login_count:t.z.number(),identities:t.z.array(z).optional()}),B=g,W=a.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 s=(e=>(e.TOKEN="token",e.TOKEN_ID_TOKEN="token id_token",e.CODE="code",e))(s||{}),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(s).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()}).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")}),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(),...D.shape}),st=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))(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=s;exports.CodeChallengeMethod=l;exports.GrantType=T;exports.LogTypes=O;exports.applicationInsertSchema=m;exports.applicationSchema=u;exports.auth0UserResponseSchema=B;exports.authParamsSchema=h;exports.baseUserSchema=a;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=at;exports.signingKeySchema=st;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"),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;
@@ -23,6 +23,7 @@ export interface Totals {
23
23
  export declare const baseUserSchema: z.ZodObject<{
24
24
  email: z.ZodOptional<z.ZodString>;
25
25
  username: z.ZodOptional<z.ZodString>;
26
+ phone_number: z.ZodOptional<z.ZodString>;
26
27
  given_name: z.ZodOptional<z.ZodString>;
27
28
  family_name: z.ZodOptional<z.ZodString>;
28
29
  nickname: z.ZodOptional<z.ZodString>;
@@ -39,6 +40,7 @@ export declare const baseUserSchema: z.ZodObject<{
39
40
  name?: string | undefined;
40
41
  username?: string | undefined;
41
42
  given_name?: string | undefined;
43
+ phone_number?: string | undefined;
42
44
  family_name?: string | undefined;
43
45
  user_id?: string | undefined;
44
46
  profileData?: string | undefined;
@@ -53,6 +55,7 @@ export declare const baseUserSchema: z.ZodObject<{
53
55
  name?: string | undefined;
54
56
  username?: string | undefined;
55
57
  given_name?: string | undefined;
58
+ phone_number?: string | undefined;
56
59
  family_name?: string | undefined;
57
60
  user_id?: string | undefined;
58
61
  profileData?: string | undefined;
@@ -67,6 +70,7 @@ export type BaseUser = z.infer<typeof baseUserSchema>;
67
70
  export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
68
71
  email: z.ZodOptional<z.ZodString>;
69
72
  username: z.ZodOptional<z.ZodString>;
73
+ phone_number: z.ZodOptional<z.ZodString>;
70
74
  given_name: z.ZodOptional<z.ZodString>;
71
75
  family_name: z.ZodOptional<z.ZodString>;
72
76
  nickname: z.ZodOptional<z.ZodString>;
@@ -95,6 +99,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
95
99
  name?: string | undefined;
96
100
  username?: string | undefined;
97
101
  given_name?: string | undefined;
102
+ phone_number?: string | undefined;
98
103
  family_name?: string | undefined;
99
104
  user_id?: string | undefined;
100
105
  profileData?: string | undefined;
@@ -114,6 +119,7 @@ export declare const userInsertSchema: z.ZodObject<z.objectUtil.extendShape<{
114
119
  name?: string | undefined;
115
120
  username?: string | undefined;
116
121
  given_name?: string | undefined;
122
+ phone_number?: string | undefined;
117
123
  family_name?: string | undefined;
118
124
  connection?: string | undefined;
119
125
  user_id?: string | undefined;
@@ -134,7 +140,7 @@ export type UserInsert = z.infer<typeof userInsertSchema>;
134
140
  export declare const userSchema: z.ZodObject<{
135
141
  user_id: z.ZodString;
136
142
  is_social: z.ZodBoolean;
137
- email: z.ZodString;
143
+ email: z.ZodOptional<z.ZodString>;
138
144
  login_count: z.ZodNumber;
139
145
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
140
146
  connection: z.ZodString;
@@ -212,6 +218,7 @@ export declare const userSchema: z.ZodObject<{
212
218
  created_at: z.ZodString;
213
219
  updated_at: z.ZodString;
214
220
  username: z.ZodOptional<z.ZodString>;
221
+ phone_number: z.ZodOptional<z.ZodString>;
215
222
  given_name: z.ZodOptional<z.ZodString>;
216
223
  family_name: z.ZodOptional<z.ZodString>;
217
224
  nickname: z.ZodOptional<z.ZodString>;
@@ -231,16 +238,17 @@ export declare const userSchema: z.ZodObject<{
231
238
  }, "strip", z.ZodTypeAny, {
232
239
  created_at: string;
233
240
  updated_at: string;
234
- email: string;
235
241
  email_verified: boolean;
236
242
  connection: string;
237
243
  user_id: string;
238
244
  provider: string;
239
245
  is_social: boolean;
240
246
  login_count: number;
247
+ email?: string | undefined;
241
248
  name?: string | undefined;
242
249
  username?: string | undefined;
243
250
  given_name?: string | undefined;
251
+ phone_number?: string | undefined;
244
252
  family_name?: string | undefined;
245
253
  profileData?: string | undefined;
246
254
  nickname?: string | undefined;
@@ -274,14 +282,15 @@ export declare const userSchema: z.ZodObject<{
274
282
  }, {
275
283
  created_at: string;
276
284
  updated_at: string;
277
- email: string;
278
285
  user_id: string;
279
286
  is_social: boolean;
280
287
  login_count: number;
288
+ email?: string | undefined;
281
289
  email_verified?: boolean | undefined;
282
290
  name?: string | undefined;
283
291
  username?: string | undefined;
284
292
  given_name?: string | undefined;
293
+ phone_number?: string | undefined;
285
294
  family_name?: string | undefined;
286
295
  connection?: string | undefined;
287
296
  provider?: string | undefined;
@@ -319,7 +328,7 @@ export type User = z.infer<typeof userSchema>;
319
328
  export declare const auth0UserResponseSchema: z.ZodObject<{
320
329
  user_id: z.ZodString;
321
330
  is_social: z.ZodBoolean;
322
- email: z.ZodString;
331
+ email: z.ZodOptional<z.ZodString>;
323
332
  login_count: z.ZodNumber;
324
333
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
334
  connection: z.ZodString;
@@ -397,6 +406,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
397
406
  created_at: z.ZodString;
398
407
  updated_at: z.ZodString;
399
408
  username: z.ZodOptional<z.ZodString>;
409
+ phone_number: z.ZodOptional<z.ZodString>;
400
410
  given_name: z.ZodOptional<z.ZodString>;
401
411
  family_name: z.ZodOptional<z.ZodString>;
402
412
  nickname: z.ZodOptional<z.ZodString>;
@@ -416,16 +426,17 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
416
426
  }, "strip", z.ZodTypeAny, {
417
427
  created_at: string;
418
428
  updated_at: string;
419
- email: string;
420
429
  email_verified: boolean;
421
430
  connection: string;
422
431
  user_id: string;
423
432
  provider: string;
424
433
  is_social: boolean;
425
434
  login_count: number;
435
+ email?: string | undefined;
426
436
  name?: string | undefined;
427
437
  username?: string | undefined;
428
438
  given_name?: string | undefined;
439
+ phone_number?: string | undefined;
429
440
  family_name?: string | undefined;
430
441
  profileData?: string | undefined;
431
442
  nickname?: string | undefined;
@@ -459,14 +470,15 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
459
470
  }, {
460
471
  created_at: string;
461
472
  updated_at: string;
462
- email: string;
463
473
  user_id: string;
464
474
  is_social: boolean;
465
475
  login_count: number;
476
+ email?: string | undefined;
466
477
  email_verified?: boolean | undefined;
467
478
  name?: string | undefined;
468
479
  username?: string | undefined;
469
480
  given_name?: string | undefined;
481
+ phone_number?: string | undefined;
470
482
  family_name?: string | undefined;
471
483
  connection?: string | undefined;
472
484
  provider?: string | undefined;
@@ -510,6 +522,7 @@ export interface PostUsersBody extends BaseUser {
510
522
  export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
511
523
  email: z.ZodOptional<z.ZodString>;
512
524
  username: z.ZodOptional<z.ZodString>;
525
+ phone_number: z.ZodOptional<z.ZodString>;
513
526
  given_name: z.ZodOptional<z.ZodString>;
514
527
  family_name: z.ZodOptional<z.ZodString>;
515
528
  nickname: z.ZodOptional<z.ZodString>;
@@ -531,6 +544,7 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
531
544
  }>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
532
545
  email: z.ZodOptional<z.ZodString>;
533
546
  username: z.ZodOptional<z.ZodString>;
547
+ phone_number: z.ZodOptional<z.ZodString>;
534
548
  given_name: z.ZodOptional<z.ZodString>;
535
549
  family_name: z.ZodOptional<z.ZodString>;
536
550
  nickname: z.ZodOptional<z.ZodString>;
@@ -552,6 +566,7 @@ export declare const userResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
552
566
  }>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
553
567
  email: z.ZodOptional<z.ZodString>;
554
568
  username: z.ZodOptional<z.ZodString>;
569
+ phone_number: z.ZodOptional<z.ZodString>;
555
570
  given_name: z.ZodOptional<z.ZodString>;
556
571
  family_name: z.ZodOptional<z.ZodString>;
557
572
  nickname: z.ZodOptional<z.ZodString>;
@@ -1182,6 +1197,9 @@ declare const ClientSchema: z.ZodObject<{
1182
1197
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1183
1198
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1184
1199
  provider: z.ZodOptional<z.ZodString>;
1200
+ from: z.ZodOptional<z.ZodString>;
1201
+ twilio_sid: z.ZodOptional<z.ZodString>;
1202
+ twilio_token: z.ZodOptional<z.ZodString>;
1185
1203
  }, "strip", z.ZodTypeAny, {
1186
1204
  provider?: string | undefined;
1187
1205
  issuer?: string | undefined;
@@ -1197,6 +1215,9 @@ declare const ClientSchema: z.ZodObject<{
1197
1215
  userinfo_endpoint?: string | undefined;
1198
1216
  jwks_uri?: string | undefined;
1199
1217
  discovery_url?: string | undefined;
1218
+ from?: string | undefined;
1219
+ twilio_sid?: string | undefined;
1220
+ twilio_token?: string | undefined;
1200
1221
  }, {
1201
1222
  provider?: string | undefined;
1202
1223
  issuer?: string | undefined;
@@ -1212,6 +1233,9 @@ declare const ClientSchema: z.ZodObject<{
1212
1233
  userinfo_endpoint?: string | undefined;
1213
1234
  jwks_uri?: string | undefined;
1214
1235
  discovery_url?: string | undefined;
1236
+ from?: string | undefined;
1237
+ twilio_sid?: string | undefined;
1238
+ twilio_token?: string | undefined;
1215
1239
  }>>>;
1216
1240
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1217
1241
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
@@ -1236,6 +1260,9 @@ declare const ClientSchema: z.ZodObject<{
1236
1260
  userinfo_endpoint?: string | undefined;
1237
1261
  jwks_uri?: string | undefined;
1238
1262
  discovery_url?: string | undefined;
1263
+ from?: string | undefined;
1264
+ twilio_sid?: string | undefined;
1265
+ twilio_token?: string | undefined;
1239
1266
  } | undefined;
1240
1267
  id?: string | undefined;
1241
1268
  response_type?: AuthorizationResponseType | undefined;
@@ -1261,6 +1288,9 @@ declare const ClientSchema: z.ZodObject<{
1261
1288
  userinfo_endpoint?: string | undefined;
1262
1289
  jwks_uri?: string | undefined;
1263
1290
  discovery_url?: string | undefined;
1291
+ from?: string | undefined;
1292
+ twilio_sid?: string | undefined;
1293
+ twilio_token?: string | undefined;
1264
1294
  } | undefined;
1265
1295
  id?: string | undefined;
1266
1296
  response_type?: AuthorizationResponseType | undefined;
@@ -1415,6 +1445,9 @@ declare const ClientSchema: z.ZodObject<{
1415
1445
  userinfo_endpoint?: string | undefined;
1416
1446
  jwks_uri?: string | undefined;
1417
1447
  discovery_url?: string | undefined;
1448
+ from?: string | undefined;
1449
+ twilio_sid?: string | undefined;
1450
+ twilio_token?: string | undefined;
1418
1451
  } | undefined;
1419
1452
  id?: string | undefined;
1420
1453
  response_type?: AuthorizationResponseType | undefined;
@@ -1487,6 +1520,9 @@ declare const ClientSchema: z.ZodObject<{
1487
1520
  userinfo_endpoint?: string | undefined;
1488
1521
  jwks_uri?: string | undefined;
1489
1522
  discovery_url?: string | undefined;
1523
+ from?: string | undefined;
1524
+ twilio_sid?: string | undefined;
1525
+ twilio_token?: string | undefined;
1490
1526
  } | undefined;
1491
1527
  id?: string | undefined;
1492
1528
  response_type?: AuthorizationResponseType | undefined;
@@ -1626,6 +1662,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1626
1662
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1627
1663
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1628
1664
  provider: z.ZodOptional<z.ZodString>;
1665
+ from: z.ZodOptional<z.ZodString>;
1666
+ twilio_sid: z.ZodOptional<z.ZodString>;
1667
+ twilio_token: z.ZodOptional<z.ZodString>;
1629
1668
  }, "strip", z.ZodTypeAny, {
1630
1669
  provider?: string | undefined;
1631
1670
  issuer?: string | undefined;
@@ -1641,6 +1680,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1641
1680
  userinfo_endpoint?: string | undefined;
1642
1681
  jwks_uri?: string | undefined;
1643
1682
  discovery_url?: string | undefined;
1683
+ from?: string | undefined;
1684
+ twilio_sid?: string | undefined;
1685
+ twilio_token?: string | undefined;
1644
1686
  }, {
1645
1687
  provider?: string | undefined;
1646
1688
  issuer?: string | undefined;
@@ -1656,6 +1698,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1656
1698
  userinfo_endpoint?: string | undefined;
1657
1699
  jwks_uri?: string | undefined;
1658
1700
  discovery_url?: string | undefined;
1701
+ from?: string | undefined;
1702
+ twilio_sid?: string | undefined;
1703
+ twilio_token?: string | undefined;
1659
1704
  }>>>;
1660
1705
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1661
1706
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
@@ -1678,6 +1723,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1678
1723
  userinfo_endpoint?: string | undefined;
1679
1724
  jwks_uri?: string | undefined;
1680
1725
  discovery_url?: string | undefined;
1726
+ from?: string | undefined;
1727
+ twilio_sid?: string | undefined;
1728
+ twilio_token?: string | undefined;
1681
1729
  } | undefined;
1682
1730
  id?: string | undefined;
1683
1731
  response_type?: AuthorizationResponseType | undefined;
@@ -1701,6 +1749,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
1701
1749
  userinfo_endpoint?: string | undefined;
1702
1750
  jwks_uri?: string | undefined;
1703
1751
  discovery_url?: string | undefined;
1752
+ from?: string | undefined;
1753
+ twilio_sid?: string | undefined;
1754
+ twilio_token?: string | undefined;
1704
1755
  } | undefined;
1705
1756
  id?: string | undefined;
1706
1757
  response_type?: AuthorizationResponseType | undefined;
@@ -1731,6 +1782,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1731
1782
  discovery_url: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1732
1783
  issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1733
1784
  provider: z.ZodOptional<z.ZodString>;
1785
+ from: z.ZodOptional<z.ZodString>;
1786
+ twilio_sid: z.ZodOptional<z.ZodString>;
1787
+ twilio_token: z.ZodOptional<z.ZodString>;
1734
1788
  }, "strip", z.ZodTypeAny, {
1735
1789
  provider?: string | undefined;
1736
1790
  issuer?: string | undefined;
@@ -1746,6 +1800,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1746
1800
  userinfo_endpoint?: string | undefined;
1747
1801
  jwks_uri?: string | undefined;
1748
1802
  discovery_url?: string | undefined;
1803
+ from?: string | undefined;
1804
+ twilio_sid?: string | undefined;
1805
+ twilio_token?: string | undefined;
1749
1806
  }, {
1750
1807
  provider?: string | undefined;
1751
1808
  issuer?: string | undefined;
@@ -1761,6 +1818,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1761
1818
  userinfo_endpoint?: string | undefined;
1762
1819
  jwks_uri?: string | undefined;
1763
1820
  discovery_url?: string | undefined;
1821
+ from?: string | undefined;
1822
+ twilio_sid?: string | undefined;
1823
+ twilio_token?: string | undefined;
1764
1824
  }>>>;
1765
1825
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1766
1826
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
@@ -1785,6 +1845,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1785
1845
  userinfo_endpoint?: string | undefined;
1786
1846
  jwks_uri?: string | undefined;
1787
1847
  discovery_url?: string | undefined;
1848
+ from?: string | undefined;
1849
+ twilio_sid?: string | undefined;
1850
+ twilio_token?: string | undefined;
1788
1851
  } | undefined;
1789
1852
  id?: string | undefined;
1790
1853
  response_type?: AuthorizationResponseType | undefined;
@@ -1810,6 +1873,9 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1810
1873
  userinfo_endpoint?: string | undefined;
1811
1874
  jwks_uri?: string | undefined;
1812
1875
  discovery_url?: string | undefined;
1876
+ from?: string | undefined;
1877
+ twilio_sid?: string | undefined;
1878
+ twilio_token?: string | undefined;
1813
1879
  } | undefined;
1814
1880
  id?: string | undefined;
1815
1881
  response_type?: AuthorizationResponseType | undefined;
@@ -3224,7 +3290,8 @@ export declare enum GrantType {
3224
3290
  AuthorizationCode = "authorization_code",
3225
3291
  ClientCredential = "client_credentials",
3226
3292
  Passwordless = "passwordless",
3227
- Password = "password"
3293
+ Password = "password",
3294
+ OTP = "http://auth0.com/oauth/grant-type/passwordless/otp"
3228
3295
  }
3229
3296
  export declare const tokenResponseSchema: z.ZodObject<{
3230
3297
  access_token: z.ZodString;
@@ -27,6 +27,7 @@ const Q = t.object({
27
27
  }), a = t.object({
28
28
  email: t.string().optional(),
29
29
  username: t.string().optional(),
30
+ phone_number: t.string().optional(),
30
31
  given_name: t.string().optional(),
31
32
  family_name: t.string().optional(),
32
33
  nickname: t.string().optional(),
@@ -53,7 +54,7 @@ const Q = t.object({
53
54
  user_id: t.string(),
54
55
  is_social: t.boolean(),
55
56
  // TODO: this not might be correct if you use the username
56
- email: t.string(),
57
+ email: t.string().optional(),
57
58
  login_count: t.number(),
58
59
  identities: t.array(g).optional()
59
60
  }), V = u, Y = a.extend({
@@ -174,16 +175,19 @@ const y = t.object({
174
175
  jwks_uri: t.string().default("").optional(),
175
176
  discovery_url: t.string().default("").optional(),
176
177
  issuer: t.string().default("").optional(),
177
- provider: t.string().optional()
178
+ provider: t.string().optional(),
179
+ from: t.string().optional(),
180
+ twilio_sid: t.string().optional(),
181
+ twilio_token: t.string().optional()
178
182
  }).default({}).optional(),
179
183
  enabled_clients: t.array(t.string()).default([]).optional(),
180
184
  response_type: t.custom().optional(),
181
185
  response_mode: t.custom().optional()
182
- }), k = t.object({
186
+ }), w = t.object({
183
187
  id: t.string(),
184
188
  created_at: t.string().transform((e) => e === null ? "" : e),
185
189
  updated_at: t.string().transform((e) => e === null ? "" : e)
186
- }).extend(E.shape), w = t.object({
190
+ }).extend(E.shape), k = t.object({
187
191
  name: t.string(),
188
192
  audience: t.string(),
189
193
  sender_email: t.string().email(),
@@ -197,7 +201,7 @@ const y = t.object({
197
201
  }), C = t.object({
198
202
  created_at: t.string().transform((e) => e === null ? "" : e),
199
203
  updated_at: t.string().transform((e) => e === null ? "" : e),
200
- ...w.shape,
204
+ ...k.shape,
201
205
  id: t.string()
202
206
  }), J = t.object({
203
207
  logoUrl: t.string(),
@@ -220,7 +224,7 @@ const y = t.object({
220
224
  t.object({
221
225
  ...S.shape,
222
226
  tenant: C,
223
- connections: t.array(k)
227
+ connections: t.array(w)
224
228
  });
225
229
  const I = t.enum([
226
230
  "password_reset",
@@ -486,7 +490,7 @@ const x = t.enum([
486
490
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
487
491
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
488
492
  });
489
- var H = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e))(H || {});
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 || {});
490
494
  const lt = t.object({
491
495
  access_token: t.string(),
492
496
  id_token: t.string().optional(),
@@ -655,7 +659,7 @@ export {
655
659
  I as codeTypeSchema,
656
660
  G as colorsSchema,
657
661
  E as connectionInsertSchema,
658
- k as connectionSchema,
662
+ w as connectionSchema,
659
663
  v as customDomainInsertSchema,
660
664
  O as customDomainSchema,
661
665
  $ as customDomainWithTenantIdSchema,
@@ -685,7 +689,7 @@ export {
685
689
  rt as signingKeySchema,
686
690
  ut as smsProviderSchema,
687
691
  _t as smsSendParamsSchema,
688
- w as tenantInsertSchema,
692
+ k as tenantInsertSchema,
689
693
  C as tenantSchema,
690
694
  W as themeInsertSchema,
691
695
  ct as themeSchema,
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.56.0",
14
+ "version": "0.58.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],