@authhero/adapter-interfaces 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +122 -52
- package/dist/adapter-interfaces.mjs +153 -151
- package/package.json +1 -1
|
@@ -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(),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(),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(),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()}),W=g,q=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 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"])}),M=t.z.object({borders:P,colors:F,displayName:t.z.string(),fonts:H,page_background:K,widget:G}),ct=M.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()}),L=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(),...L.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=L;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=M;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;
|
|
@@ -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>;
|
|
@@ -1167,7 +1182,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1167
1182
|
id: z.ZodOptional<z.ZodString>;
|
|
1168
1183
|
name: z.ZodString;
|
|
1169
1184
|
strategy: z.ZodString;
|
|
1170
|
-
options: z.
|
|
1185
|
+
options: z.ZodDefault<z.ZodObject<{
|
|
1171
1186
|
kid: z.ZodOptional<z.ZodString>;
|
|
1172
1187
|
team_id: z.ZodOptional<z.ZodString>;
|
|
1173
1188
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -1175,12 +1190,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1175
1190
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
1176
1191
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
1177
1192
|
scope: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
authorization_endpoint: z.ZodOptional<z.
|
|
1179
|
-
token_endpoint: z.ZodOptional<z.
|
|
1180
|
-
userinfo_endpoint: z.ZodOptional<z.
|
|
1181
|
-
jwks_uri: z.ZodOptional<z.
|
|
1182
|
-
discovery_url: z.ZodOptional<z.
|
|
1183
|
-
issuer: z.ZodOptional<z.
|
|
1193
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
discovery_url: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
1184
1199
|
provider: z.ZodOptional<z.ZodString>;
|
|
1185
1200
|
from: z.ZodOptional<z.ZodString>;
|
|
1186
1201
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
@@ -1221,16 +1236,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1221
1236
|
from?: string | undefined;
|
|
1222
1237
|
twilio_sid?: string | undefined;
|
|
1223
1238
|
twilio_token?: string | undefined;
|
|
1224
|
-
}
|
|
1239
|
+
}>>;
|
|
1225
1240
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1226
1241
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1227
1242
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1228
1243
|
}>, "strip", z.ZodTypeAny, {
|
|
1229
|
-
|
|
1230
|
-
updated_at: string;
|
|
1231
|
-
name: string;
|
|
1232
|
-
strategy: string;
|
|
1233
|
-
options?: {
|
|
1244
|
+
options: {
|
|
1234
1245
|
provider?: string | undefined;
|
|
1235
1246
|
issuer?: string | undefined;
|
|
1236
1247
|
client_secret?: string | undefined;
|
|
@@ -1248,7 +1259,11 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1248
1259
|
from?: string | undefined;
|
|
1249
1260
|
twilio_sid?: string | undefined;
|
|
1250
1261
|
twilio_token?: string | undefined;
|
|
1251
|
-
}
|
|
1262
|
+
};
|
|
1263
|
+
created_at: string;
|
|
1264
|
+
updated_at: string;
|
|
1265
|
+
name: string;
|
|
1266
|
+
strategy: string;
|
|
1252
1267
|
id?: string | undefined;
|
|
1253
1268
|
response_type?: AuthorizationResponseType | undefined;
|
|
1254
1269
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
@@ -1411,11 +1426,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1411
1426
|
language?: string | undefined;
|
|
1412
1427
|
};
|
|
1413
1428
|
connections: {
|
|
1414
|
-
|
|
1415
|
-
updated_at: string;
|
|
1416
|
-
name: string;
|
|
1417
|
-
strategy: string;
|
|
1418
|
-
options?: {
|
|
1429
|
+
options: {
|
|
1419
1430
|
provider?: string | undefined;
|
|
1420
1431
|
issuer?: string | undefined;
|
|
1421
1432
|
client_secret?: string | undefined;
|
|
@@ -1433,7 +1444,11 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1433
1444
|
from?: string | undefined;
|
|
1434
1445
|
twilio_sid?: string | undefined;
|
|
1435
1446
|
twilio_token?: string | undefined;
|
|
1436
|
-
}
|
|
1447
|
+
};
|
|
1448
|
+
created_at: string;
|
|
1449
|
+
updated_at: string;
|
|
1450
|
+
name: string;
|
|
1451
|
+
strategy: string;
|
|
1437
1452
|
id?: string | undefined;
|
|
1438
1453
|
response_type?: AuthorizationResponseType | undefined;
|
|
1439
1454
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
@@ -1628,11 +1643,66 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1628
1643
|
used_at?: string | undefined;
|
|
1629
1644
|
}>;
|
|
1630
1645
|
export type Code = z.infer<typeof codeSchema>;
|
|
1646
|
+
export declare const connectionOptionsSchema: z.ZodObject<{
|
|
1647
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
1649
|
+
realms: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1651
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
app_secret: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
discovery_url: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1662
|
+
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
twilio_token: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
}, "strip", z.ZodTypeAny, {
|
|
1665
|
+
provider?: string | undefined;
|
|
1666
|
+
issuer?: string | undefined;
|
|
1667
|
+
client_secret?: string | undefined;
|
|
1668
|
+
client_id?: string | undefined;
|
|
1669
|
+
scope?: string | undefined;
|
|
1670
|
+
kid?: string | undefined;
|
|
1671
|
+
team_id?: string | undefined;
|
|
1672
|
+
realms?: string | undefined;
|
|
1673
|
+
app_secret?: string | undefined;
|
|
1674
|
+
authorization_endpoint?: string | undefined;
|
|
1675
|
+
token_endpoint?: string | undefined;
|
|
1676
|
+
userinfo_endpoint?: string | undefined;
|
|
1677
|
+
jwks_uri?: string | undefined;
|
|
1678
|
+
discovery_url?: string | undefined;
|
|
1679
|
+
from?: string | undefined;
|
|
1680
|
+
twilio_sid?: string | undefined;
|
|
1681
|
+
twilio_token?: string | undefined;
|
|
1682
|
+
}, {
|
|
1683
|
+
provider?: string | undefined;
|
|
1684
|
+
issuer?: string | undefined;
|
|
1685
|
+
client_secret?: string | undefined;
|
|
1686
|
+
client_id?: string | undefined;
|
|
1687
|
+
scope?: string | undefined;
|
|
1688
|
+
kid?: string | undefined;
|
|
1689
|
+
team_id?: string | undefined;
|
|
1690
|
+
realms?: string | undefined;
|
|
1691
|
+
app_secret?: string | undefined;
|
|
1692
|
+
authorization_endpoint?: string | undefined;
|
|
1693
|
+
token_endpoint?: string | undefined;
|
|
1694
|
+
userinfo_endpoint?: string | undefined;
|
|
1695
|
+
jwks_uri?: string | undefined;
|
|
1696
|
+
discovery_url?: string | undefined;
|
|
1697
|
+
from?: string | undefined;
|
|
1698
|
+
twilio_sid?: string | undefined;
|
|
1699
|
+
twilio_token?: string | undefined;
|
|
1700
|
+
}>;
|
|
1631
1701
|
export declare const connectionInsertSchema: z.ZodObject<{
|
|
1632
1702
|
id: z.ZodOptional<z.ZodString>;
|
|
1633
1703
|
name: z.ZodString;
|
|
1634
1704
|
strategy: z.ZodString;
|
|
1635
|
-
options: z.
|
|
1705
|
+
options: z.ZodDefault<z.ZodObject<{
|
|
1636
1706
|
kid: z.ZodOptional<z.ZodString>;
|
|
1637
1707
|
team_id: z.ZodOptional<z.ZodString>;
|
|
1638
1708
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -1640,12 +1710,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1640
1710
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
1641
1711
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
1642
1712
|
scope: z.ZodOptional<z.ZodString>;
|
|
1643
|
-
authorization_endpoint: z.ZodOptional<z.
|
|
1644
|
-
token_endpoint: z.ZodOptional<z.
|
|
1645
|
-
userinfo_endpoint: z.ZodOptional<z.
|
|
1646
|
-
jwks_uri: z.ZodOptional<z.
|
|
1647
|
-
discovery_url: z.ZodOptional<z.
|
|
1648
|
-
issuer: z.ZodOptional<z.
|
|
1713
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1716
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
1717
|
+
discovery_url: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
1649
1719
|
provider: z.ZodOptional<z.ZodString>;
|
|
1650
1720
|
from: z.ZodOptional<z.ZodString>;
|
|
1651
1721
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
@@ -1686,14 +1756,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1686
1756
|
from?: string | undefined;
|
|
1687
1757
|
twilio_sid?: string | undefined;
|
|
1688
1758
|
twilio_token?: string | undefined;
|
|
1689
|
-
}
|
|
1759
|
+
}>>;
|
|
1690
1760
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1691
1761
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1692
1762
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1693
1763
|
}, "strip", z.ZodTypeAny, {
|
|
1694
|
-
|
|
1695
|
-
strategy: string;
|
|
1696
|
-
options?: {
|
|
1764
|
+
options: {
|
|
1697
1765
|
provider?: string | undefined;
|
|
1698
1766
|
issuer?: string | undefined;
|
|
1699
1767
|
client_secret?: string | undefined;
|
|
@@ -1711,7 +1779,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1711
1779
|
from?: string | undefined;
|
|
1712
1780
|
twilio_sid?: string | undefined;
|
|
1713
1781
|
twilio_token?: string | undefined;
|
|
1714
|
-
}
|
|
1782
|
+
};
|
|
1783
|
+
name: string;
|
|
1784
|
+
strategy: string;
|
|
1715
1785
|
id?: string | undefined;
|
|
1716
1786
|
response_type?: AuthorizationResponseType | undefined;
|
|
1717
1787
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
@@ -1752,7 +1822,7 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1752
1822
|
id: z.ZodOptional<z.ZodString>;
|
|
1753
1823
|
name: z.ZodString;
|
|
1754
1824
|
strategy: z.ZodString;
|
|
1755
|
-
options: z.
|
|
1825
|
+
options: z.ZodDefault<z.ZodObject<{
|
|
1756
1826
|
kid: z.ZodOptional<z.ZodString>;
|
|
1757
1827
|
team_id: z.ZodOptional<z.ZodString>;
|
|
1758
1828
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -1760,12 +1830,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1760
1830
|
client_secret: z.ZodOptional<z.ZodString>;
|
|
1761
1831
|
app_secret: z.ZodOptional<z.ZodString>;
|
|
1762
1832
|
scope: z.ZodOptional<z.ZodString>;
|
|
1763
|
-
authorization_endpoint: z.ZodOptional<z.
|
|
1764
|
-
token_endpoint: z.ZodOptional<z.
|
|
1765
|
-
userinfo_endpoint: z.ZodOptional<z.
|
|
1766
|
-
jwks_uri: z.ZodOptional<z.
|
|
1767
|
-
discovery_url: z.ZodOptional<z.
|
|
1768
|
-
issuer: z.ZodOptional<z.
|
|
1833
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
discovery_url: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
1769
1839
|
provider: z.ZodOptional<z.ZodString>;
|
|
1770
1840
|
from: z.ZodOptional<z.ZodString>;
|
|
1771
1841
|
twilio_sid: z.ZodOptional<z.ZodString>;
|
|
@@ -1806,16 +1876,12 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1806
1876
|
from?: string | undefined;
|
|
1807
1877
|
twilio_sid?: string | undefined;
|
|
1808
1878
|
twilio_token?: string | undefined;
|
|
1809
|
-
}
|
|
1879
|
+
}>>;
|
|
1810
1880
|
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1811
1881
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1812
1882
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1813
1883
|
}>, "strip", z.ZodTypeAny, {
|
|
1814
|
-
|
|
1815
|
-
updated_at: string;
|
|
1816
|
-
name: string;
|
|
1817
|
-
strategy: string;
|
|
1818
|
-
options?: {
|
|
1884
|
+
options: {
|
|
1819
1885
|
provider?: string | undefined;
|
|
1820
1886
|
issuer?: string | undefined;
|
|
1821
1887
|
client_secret?: string | undefined;
|
|
@@ -1833,7 +1899,11 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1833
1899
|
from?: string | undefined;
|
|
1834
1900
|
twilio_sid?: string | undefined;
|
|
1835
1901
|
twilio_token?: string | undefined;
|
|
1836
|
-
}
|
|
1902
|
+
};
|
|
1903
|
+
created_at: string;
|
|
1904
|
+
updated_at: string;
|
|
1905
|
+
name: string;
|
|
1906
|
+
strategy: string;
|
|
1837
1907
|
id?: string | undefined;
|
|
1838
1908
|
response_type?: AuthorizationResponseType | undefined;
|
|
1839
1909
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as t } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const V = t.object({
|
|
3
3
|
start: t.number(),
|
|
4
4
|
limit: t.number(),
|
|
5
5
|
length: t.number()
|
|
@@ -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,10 +54,10 @@ 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
|
+
}), Y = u, X = a.extend({
|
|
60
61
|
email: t.string(),
|
|
61
62
|
login_count: t.number(),
|
|
62
63
|
multifactor: t.array(t.string()).optional(),
|
|
@@ -64,10 +65,10 @@ const Q = t.object({
|
|
|
64
65
|
last_login: t.string().optional(),
|
|
65
66
|
user_id: t.string()
|
|
66
67
|
}).catchall(t.any()), m = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
67
|
-
let h = (
|
|
68
|
-
let i = "", o = crypto.getRandomValues(new Uint8Array(
|
|
69
|
-
for (;
|
|
70
|
-
i += m[o[
|
|
68
|
+
let h = (n = 21) => {
|
|
69
|
+
let i = "", o = crypto.getRandomValues(new Uint8Array(n));
|
|
70
|
+
for (; n--; )
|
|
71
|
+
i += m[o[n] & 63];
|
|
71
72
|
return i;
|
|
72
73
|
};
|
|
73
74
|
const b = t.object({
|
|
@@ -118,11 +119,11 @@ const b = t.object({
|
|
|
118
119
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
119
120
|
})
|
|
120
121
|
}), S = t.object({
|
|
121
|
-
created_at: t.string().transform((
|
|
122
|
-
updated_at: t.string().transform((
|
|
122
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
123
|
+
updated_at: t.string().transform((n) => n === null ? "" : n),
|
|
123
124
|
...f.shape
|
|
124
125
|
});
|
|
125
|
-
var r = /* @__PURE__ */ ((
|
|
126
|
+
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 || {});
|
|
126
127
|
const y = t.object({
|
|
127
128
|
client_id: t.string(),
|
|
128
129
|
act_as: t.string().optional(),
|
|
@@ -141,7 +142,7 @@ const y = t.object({
|
|
|
141
142
|
ui_locales: t.string().optional(),
|
|
142
143
|
// The following fields are not available in Auth0
|
|
143
144
|
vendor_id: t.string().optional()
|
|
144
|
-
}),
|
|
145
|
+
}), J = t.object({
|
|
145
146
|
colors: t.object({
|
|
146
147
|
primary: t.string(),
|
|
147
148
|
page_background: t.object({
|
|
@@ -157,36 +158,36 @@ const y = t.object({
|
|
|
157
158
|
url: t.string()
|
|
158
159
|
}).optional()
|
|
159
160
|
}), E = t.object({
|
|
161
|
+
kid: t.string().optional(),
|
|
162
|
+
team_id: t.string().optional(),
|
|
163
|
+
realms: t.string().optional(),
|
|
164
|
+
client_id: t.string().optional(),
|
|
165
|
+
client_secret: t.string().optional(),
|
|
166
|
+
app_secret: t.string().optional(),
|
|
167
|
+
scope: t.string().optional(),
|
|
168
|
+
authorization_endpoint: t.string().optional(),
|
|
169
|
+
token_endpoint: t.string().optional(),
|
|
170
|
+
userinfo_endpoint: t.string().optional(),
|
|
171
|
+
jwks_uri: t.string().optional(),
|
|
172
|
+
discovery_url: t.string().optional(),
|
|
173
|
+
issuer: t.string().optional(),
|
|
174
|
+
provider: t.string().optional(),
|
|
175
|
+
from: t.string().optional(),
|
|
176
|
+
twilio_sid: t.string().optional(),
|
|
177
|
+
twilio_token: t.string().optional()
|
|
178
|
+
}), w = t.object({
|
|
160
179
|
id: t.string().optional(),
|
|
161
180
|
name: t.string(),
|
|
162
181
|
strategy: t.string(),
|
|
163
|
-
options:
|
|
164
|
-
kid: t.string().optional(),
|
|
165
|
-
team_id: t.string().optional(),
|
|
166
|
-
realms: t.string().optional(),
|
|
167
|
-
client_id: t.string().optional(),
|
|
168
|
-
client_secret: t.string().optional(),
|
|
169
|
-
app_secret: t.string().optional(),
|
|
170
|
-
scope: t.string().optional(),
|
|
171
|
-
authorization_endpoint: t.string().default("").optional(),
|
|
172
|
-
token_endpoint: t.string().default("").optional(),
|
|
173
|
-
userinfo_endpoint: t.string().default("").optional(),
|
|
174
|
-
jwks_uri: t.string().default("").optional(),
|
|
175
|
-
discovery_url: t.string().default("").optional(),
|
|
176
|
-
issuer: t.string().default("").optional(),
|
|
177
|
-
provider: t.string().optional(),
|
|
178
|
-
from: t.string().optional(),
|
|
179
|
-
twilio_sid: t.string().optional(),
|
|
180
|
-
twilio_token: t.string().optional()
|
|
181
|
-
}).default({}).optional(),
|
|
182
|
+
options: E.default({}),
|
|
182
183
|
enabled_clients: t.array(t.string()).default([]).optional(),
|
|
183
184
|
response_type: t.custom().optional(),
|
|
184
185
|
response_mode: t.custom().optional()
|
|
185
|
-
}),
|
|
186
|
+
}), k = t.object({
|
|
186
187
|
id: t.string(),
|
|
187
|
-
created_at: t.string().transform((
|
|
188
|
-
updated_at: t.string().transform((
|
|
189
|
-
}).extend(
|
|
188
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
189
|
+
updated_at: t.string().transform((n) => n === null ? "" : n)
|
|
190
|
+
}).extend(w.shape), C = t.object({
|
|
190
191
|
name: t.string(),
|
|
191
192
|
audience: t.string(),
|
|
192
193
|
sender_email: t.string().email(),
|
|
@@ -197,12 +198,12 @@ const y = t.object({
|
|
|
197
198
|
secondary_color: t.string().optional(),
|
|
198
199
|
language: t.string().optional(),
|
|
199
200
|
id: t.string().optional()
|
|
200
|
-
}),
|
|
201
|
-
created_at: t.string().transform((
|
|
202
|
-
updated_at: t.string().transform((
|
|
203
|
-
...
|
|
201
|
+
}), I = t.object({
|
|
202
|
+
created_at: t.string().transform((n) => n === null ? "" : n),
|
|
203
|
+
updated_at: t.string().transform((n) => n === null ? "" : n),
|
|
204
|
+
...C.shape,
|
|
204
205
|
id: t.string()
|
|
205
|
-
}),
|
|
206
|
+
}), Z = t.object({
|
|
206
207
|
logoUrl: t.string(),
|
|
207
208
|
loginBackgroundImage: t.string().nullish(),
|
|
208
209
|
style: t.object({
|
|
@@ -222,17 +223,17 @@ const y = t.object({
|
|
|
222
223
|
});
|
|
223
224
|
t.object({
|
|
224
225
|
...S.shape,
|
|
225
|
-
tenant:
|
|
226
|
-
connections: t.array(
|
|
226
|
+
tenant: I,
|
|
227
|
+
connections: t.array(k)
|
|
227
228
|
});
|
|
228
|
-
const
|
|
229
|
+
const j = t.enum([
|
|
229
230
|
"password_reset",
|
|
230
231
|
"email_verification",
|
|
231
232
|
"otp",
|
|
232
233
|
"authorization_code",
|
|
233
234
|
"oauth2_state",
|
|
234
235
|
"ticket"
|
|
235
|
-
]),
|
|
236
|
+
]), v = t.object({
|
|
236
237
|
code_id: t.string().openapi({
|
|
237
238
|
description: "The code that will be used in for instance an email verification flow"
|
|
238
239
|
}),
|
|
@@ -242,17 +243,17 @@ const I = t.enum([
|
|
|
242
243
|
connection_id: t.string().optional().openapi({
|
|
243
244
|
description: "The connection that the code is connected to"
|
|
244
245
|
}),
|
|
245
|
-
code_type:
|
|
246
|
+
code_type: j,
|
|
246
247
|
code_verifier: t.string().optional().openapi({
|
|
247
248
|
description: "The code verifier used in PKCE in outbound flows"
|
|
248
249
|
}),
|
|
249
250
|
expires_at: t.string(),
|
|
250
251
|
used_at: t.string().optional(),
|
|
251
252
|
user_id: t.string().optional()
|
|
252
|
-
}),
|
|
253
|
-
...
|
|
253
|
+
}), $ = t.object({
|
|
254
|
+
...v.shape,
|
|
254
255
|
created_at: t.string()
|
|
255
|
-
}),
|
|
256
|
+
}), A = t.object({
|
|
256
257
|
domain: t.string(),
|
|
257
258
|
custom_domain_id: t.string().optional(),
|
|
258
259
|
type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -266,23 +267,23 @@ const I = t.enum([
|
|
|
266
267
|
"null"
|
|
267
268
|
]).optional(),
|
|
268
269
|
domain_metadata: t.record(t.string().max(255)).optional()
|
|
269
|
-
}),
|
|
270
|
+
}), O = t.object({
|
|
270
271
|
name: t.literal("txt"),
|
|
271
272
|
record: t.string(),
|
|
272
273
|
domain: t.string()
|
|
273
|
-
}),
|
|
274
|
-
...
|
|
274
|
+
}), N = t.object({
|
|
275
|
+
...A.shape,
|
|
275
276
|
custom_domain_id: t.string(),
|
|
276
277
|
primary: t.boolean(),
|
|
277
278
|
status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
278
279
|
origin_domain_name: t.string().optional(),
|
|
279
280
|
verification: t.object({
|
|
280
|
-
methods: t.array(
|
|
281
|
+
methods: t.array(O)
|
|
281
282
|
}).optional(),
|
|
282
283
|
tls_policy: t.string().optional()
|
|
283
|
-
}),
|
|
284
|
+
}), tt = N.extend({
|
|
284
285
|
tenant_id: t.string()
|
|
285
|
-
}),
|
|
286
|
+
}), U = t.object({
|
|
286
287
|
trigger_id: t.enum([
|
|
287
288
|
"pre-user-signup",
|
|
288
289
|
"post-user-registration",
|
|
@@ -293,10 +294,10 @@ const I = t.enum([
|
|
|
293
294
|
hook_id: t.string().optional(),
|
|
294
295
|
synchronous: t.boolean().default(!1),
|
|
295
296
|
priority: t.number().optional()
|
|
296
|
-
}),
|
|
297
|
+
}), nt = U.extend({
|
|
297
298
|
...s.shape,
|
|
298
299
|
hook_id: t.string()
|
|
299
|
-
}),
|
|
300
|
+
}), R = t.object({
|
|
300
301
|
alg: t.enum([
|
|
301
302
|
"RS256",
|
|
302
303
|
"RS384",
|
|
@@ -316,8 +317,8 @@ const I = t.enum([
|
|
|
316
317
|
x5c: t.array(t.string()).optional(),
|
|
317
318
|
use: t.enum(["sig", "enc"]).optional()
|
|
318
319
|
}), et = t.object({
|
|
319
|
-
keys: t.array(
|
|
320
|
-
}),
|
|
320
|
+
keys: t.array(R)
|
|
321
|
+
}), it = t.object({
|
|
321
322
|
issuer: t.string(),
|
|
322
323
|
authorization_endpoint: t.string(),
|
|
323
324
|
token_endpoint: t.string(),
|
|
@@ -338,7 +339,7 @@ const I = t.enum([
|
|
|
338
339
|
request_uri_parameter_supported: t.boolean(),
|
|
339
340
|
request_parameter_supported: t.boolean(),
|
|
340
341
|
token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
|
|
341
|
-
}),
|
|
342
|
+
}), D = t.object({
|
|
342
343
|
csrf_token: t.string(),
|
|
343
344
|
auth0Client: t.string().optional(),
|
|
344
345
|
authParams: y,
|
|
@@ -350,16 +351,16 @@ const I = t.enum([
|
|
|
350
351
|
authorization_url: t.string().optional()
|
|
351
352
|
}).openapi({
|
|
352
353
|
description: "This represents a login sesion"
|
|
353
|
-
}),
|
|
354
|
-
...
|
|
354
|
+
}), ot = t.object({
|
|
355
|
+
...D.shape,
|
|
355
356
|
id: t.string().openapi({
|
|
356
357
|
description: "This is is used as the state in the universal login"
|
|
357
358
|
}),
|
|
358
359
|
created_at: t.string(),
|
|
359
360
|
updated_at: t.string()
|
|
360
361
|
});
|
|
361
|
-
var
|
|
362
|
-
const
|
|
362
|
+
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 || {});
|
|
363
|
+
const T = t.enum([
|
|
363
364
|
"cls",
|
|
364
365
|
// CODE_LINK_SENT
|
|
365
366
|
"fsa",
|
|
@@ -408,14 +409,14 @@ const x = t.enum([
|
|
|
408
409
|
// SUCCESS_VERIFICATION_EMAIL
|
|
409
410
|
"svr"
|
|
410
411
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
411
|
-
]),
|
|
412
|
+
]), P = t.object({
|
|
412
413
|
name: t.string(),
|
|
413
414
|
version: t.string(),
|
|
414
415
|
env: t.object({
|
|
415
416
|
node: t.string().optional()
|
|
416
417
|
}).optional()
|
|
417
|
-
}),
|
|
418
|
-
type:
|
|
418
|
+
}), st = t.object({
|
|
419
|
+
type: T,
|
|
419
420
|
date: t.string(),
|
|
420
421
|
description: t.string().optional(),
|
|
421
422
|
log_id: t.string().optional(),
|
|
@@ -436,13 +437,13 @@ const x = t.enum([
|
|
|
436
437
|
strategy: t.string().optional(),
|
|
437
438
|
strategy_type: t.string().optional(),
|
|
438
439
|
hostname: t.string().optional(),
|
|
439
|
-
auth0_client:
|
|
440
|
-
}),
|
|
440
|
+
auth0_client: P.optional()
|
|
441
|
+
}), F = t.object({
|
|
441
442
|
user_id: t.string(),
|
|
442
443
|
password: t.string(),
|
|
443
444
|
algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
444
|
-
}),
|
|
445
|
-
...
|
|
445
|
+
}), at = t.object({
|
|
446
|
+
...F.shape,
|
|
446
447
|
created_at: t.string(),
|
|
447
448
|
updated_at: t.string()
|
|
448
449
|
}), p = t.object({
|
|
@@ -452,7 +453,7 @@ const x = t.enum([
|
|
|
452
453
|
last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
|
|
453
454
|
last_ip: t.string().describe("Last IP address from which this user logged in"),
|
|
454
455
|
last_asn: t.string().describe("Last autonomous system number from which this user logged in")
|
|
455
|
-
}),
|
|
456
|
+
}), H = t.object({
|
|
456
457
|
id: t.string(),
|
|
457
458
|
revoked_at: t.string().optional(),
|
|
458
459
|
used_at: t.string().optional(),
|
|
@@ -463,13 +464,13 @@ const x = t.enum([
|
|
|
463
464
|
"Metadata related to the device used in the session"
|
|
464
465
|
),
|
|
465
466
|
clients: t.array(t.string()).describe("List of client details for the session")
|
|
466
|
-
}),
|
|
467
|
+
}), rt = t.object({
|
|
467
468
|
created_at: t.string(),
|
|
468
469
|
updated_at: t.string(),
|
|
469
470
|
authenticated_at: t.string(),
|
|
470
471
|
last_interaction_at: t.string(),
|
|
471
|
-
...
|
|
472
|
-
}),
|
|
472
|
+
...H.shape
|
|
473
|
+
}), lt = t.object({
|
|
473
474
|
kid: t.string().openapi({ description: "The key id of the signing key" }),
|
|
474
475
|
cert: t.string().openapi({ description: "The public certificate of the signing key" }),
|
|
475
476
|
fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -489,8 +490,8 @@ const x = t.enum([
|
|
|
489
490
|
revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
490
491
|
revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
491
492
|
});
|
|
492
|
-
var
|
|
493
|
-
const
|
|
493
|
+
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 || {});
|
|
494
|
+
const ct = t.object({
|
|
494
495
|
access_token: t.string(),
|
|
495
496
|
id_token: t.string().optional(),
|
|
496
497
|
scope: t.string().optional(),
|
|
@@ -503,7 +504,7 @@ t.object({
|
|
|
503
504
|
code: t.string(),
|
|
504
505
|
state: t.string().optional()
|
|
505
506
|
});
|
|
506
|
-
const
|
|
507
|
+
const G = t.object({
|
|
507
508
|
button_border_radius: t.number(),
|
|
508
509
|
button_border_weight: t.number(),
|
|
509
510
|
buttons_style: t.enum(["pill"]),
|
|
@@ -513,7 +514,7 @@ const K = t.object({
|
|
|
513
514
|
show_widget_shadow: t.boolean(),
|
|
514
515
|
widget_border_weight: t.number(),
|
|
515
516
|
widget_corner_radius: t.number()
|
|
516
|
-
}),
|
|
517
|
+
}), L = t.object({
|
|
517
518
|
base_focus_color: t.string(),
|
|
518
519
|
base_hover_color: t.string(),
|
|
519
520
|
body_text: t.string(),
|
|
@@ -533,44 +534,44 @@ const K = t.object({
|
|
|
533
534
|
success: t.string(),
|
|
534
535
|
widget_background: t.string(),
|
|
535
536
|
widget_border: t.string()
|
|
536
|
-
}),
|
|
537
|
+
}), e = t.object({
|
|
537
538
|
bold: t.boolean(),
|
|
538
539
|
size: t.number()
|
|
539
|
-
}),
|
|
540
|
-
body_text:
|
|
541
|
-
buttons_text:
|
|
540
|
+
}), B = t.object({
|
|
541
|
+
body_text: e,
|
|
542
|
+
buttons_text: e,
|
|
542
543
|
font_url: t.string(),
|
|
543
|
-
input_labels:
|
|
544
|
-
links:
|
|
544
|
+
input_labels: e,
|
|
545
|
+
links: e,
|
|
545
546
|
links_style: t.enum(["normal"]),
|
|
546
547
|
reference_text_size: t.number(),
|
|
547
|
-
subtitle:
|
|
548
|
-
title:
|
|
549
|
-
}),
|
|
548
|
+
subtitle: e,
|
|
549
|
+
title: e
|
|
550
|
+
}), M = t.object({
|
|
550
551
|
background_color: t.string(),
|
|
551
552
|
background_image_url: t.string(),
|
|
552
553
|
page_layout: t.enum(["center"])
|
|
553
|
-
}),
|
|
554
|
+
}), W = t.object({
|
|
554
555
|
header_text_alignment: t.enum(["center"]),
|
|
555
556
|
logo_height: t.number(),
|
|
556
557
|
logo_position: t.enum(["center"]),
|
|
557
558
|
logo_url: t.string(),
|
|
558
559
|
social_buttons_layout: t.enum(["bottom"])
|
|
559
|
-
}),
|
|
560
|
-
borders:
|
|
561
|
-
colors:
|
|
560
|
+
}), q = t.object({
|
|
561
|
+
borders: G,
|
|
562
|
+
colors: L,
|
|
562
563
|
displayName: t.string(),
|
|
563
|
-
fonts:
|
|
564
|
-
page_background:
|
|
565
|
-
widget:
|
|
566
|
-
}),
|
|
564
|
+
fonts: B,
|
|
565
|
+
page_background: M,
|
|
566
|
+
widget: W
|
|
567
|
+
}), pt = q.extend({
|
|
567
568
|
themeId: t.string()
|
|
568
|
-
}),
|
|
569
|
+
}), dt = t.object({
|
|
569
570
|
universal_login_experience: t.enum(["new", "classic"]).default("new"),
|
|
570
571
|
identifier_first: t.boolean().default(!0),
|
|
571
572
|
password_first: t.boolean().default(!1),
|
|
572
573
|
webauthn_platform_first_factor: t.boolean()
|
|
573
|
-
}),
|
|
574
|
+
}), gt = t.object({
|
|
574
575
|
name: t.string(),
|
|
575
576
|
enabled: t.boolean().optional().default(!0),
|
|
576
577
|
default_from_address: t.string().optional(),
|
|
@@ -600,7 +601,7 @@ const K = t.object({
|
|
|
600
601
|
})
|
|
601
602
|
]),
|
|
602
603
|
settings: t.object({}).optional()
|
|
603
|
-
}),
|
|
604
|
+
}), z = t.object({
|
|
604
605
|
// The actual refresh token value (primary key).
|
|
605
606
|
id: t.string(),
|
|
606
607
|
// Link to the session record
|
|
@@ -621,83 +622,84 @@ const K = t.object({
|
|
|
621
622
|
})
|
|
622
623
|
),
|
|
623
624
|
rotating: t.boolean()
|
|
624
|
-
}),
|
|
625
|
+
}), _t = t.object({
|
|
625
626
|
// When the refresh token record was created.
|
|
626
627
|
created_at: t.string(),
|
|
627
628
|
// Spread in the rest of the refresh token properties.
|
|
628
|
-
...
|
|
629
|
-
}),
|
|
629
|
+
...z.shape
|
|
630
|
+
}), ut = t.object({
|
|
630
631
|
to: t.string(),
|
|
631
632
|
message: t.string()
|
|
632
|
-
}),
|
|
633
|
+
}), mt = t.object({
|
|
633
634
|
name: t.string(),
|
|
634
635
|
options: t.object({})
|
|
635
636
|
});
|
|
636
|
-
function
|
|
637
|
-
const [i, o] =
|
|
637
|
+
function ht(n) {
|
|
638
|
+
const [i, o] = n.split("|");
|
|
638
639
|
if (!i || !o)
|
|
639
|
-
throw new Error(`Invalid user_id: ${
|
|
640
|
+
throw new Error(`Invalid user_id: ${n}`);
|
|
640
641
|
return { connection: i, id: o };
|
|
641
642
|
}
|
|
642
643
|
export {
|
|
643
|
-
|
|
644
|
+
P as Auth0Client,
|
|
644
645
|
l as AuthorizationResponseMode,
|
|
645
646
|
r as AuthorizationResponseType,
|
|
646
647
|
c as CodeChallengeMethod,
|
|
647
|
-
|
|
648
|
-
|
|
648
|
+
K as GrantType,
|
|
649
|
+
x as LogTypes,
|
|
649
650
|
f as applicationInsertSchema,
|
|
650
651
|
S as applicationSchema,
|
|
651
|
-
|
|
652
|
+
Y as auth0UserResponseSchema,
|
|
652
653
|
y as authParamsSchema,
|
|
653
654
|
a as baseUserSchema,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
655
|
+
G as bordersSchema,
|
|
656
|
+
J as brandingSchema,
|
|
657
|
+
v as codeInsertSchema,
|
|
658
|
+
$ as codeSchema,
|
|
659
|
+
j as codeTypeSchema,
|
|
660
|
+
L as colorsSchema,
|
|
661
|
+
w as connectionInsertSchema,
|
|
662
|
+
E as connectionOptionsSchema,
|
|
663
|
+
k as connectionSchema,
|
|
664
|
+
A as customDomainInsertSchema,
|
|
665
|
+
N as customDomainSchema,
|
|
666
|
+
tt as customDomainWithTenantIdSchema,
|
|
667
|
+
gt as emailProviderSchema,
|
|
668
|
+
e as fontDetailsSchema,
|
|
669
|
+
B as fontsSchema,
|
|
670
|
+
U as hookInsertSchema,
|
|
671
|
+
nt as hookSchema,
|
|
670
672
|
g as identitySchema,
|
|
671
673
|
et as jwksKeySchema,
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
674
|
+
R as jwksSchema,
|
|
675
|
+
st as logSchema,
|
|
676
|
+
D as loginSessionInsertSchema,
|
|
677
|
+
ot as loginSessionSchema,
|
|
678
|
+
it as openIDConfigurationSchema,
|
|
679
|
+
M as pageBackgroundSchema,
|
|
680
|
+
ht as parseUserId,
|
|
681
|
+
F as passwordInsertSchema,
|
|
682
|
+
at as passwordSchema,
|
|
681
683
|
d as profileDataSchema,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
684
|
+
dt as promptSettingSchema,
|
|
685
|
+
z as refreshTokenInsertSchema,
|
|
686
|
+
_t as refreshTokenSchema,
|
|
685
687
|
b as samlpAddon,
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
688
|
+
H as sessionInsertSchema,
|
|
689
|
+
rt as sessionSchema,
|
|
690
|
+
lt as signingKeySchema,
|
|
691
|
+
mt as smsProviderSchema,
|
|
692
|
+
ut as smsSendParamsSchema,
|
|
693
|
+
C as tenantInsertSchema,
|
|
694
|
+
I as tenantSchema,
|
|
695
|
+
q as themeInsertSchema,
|
|
696
|
+
pt as themeSchema,
|
|
697
|
+
ct as tokenResponseSchema,
|
|
698
|
+
V as totalsSchema,
|
|
697
699
|
_ as userInsertSchema,
|
|
698
|
-
|
|
700
|
+
X as userResponseSchema,
|
|
699
701
|
u as userSchema,
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
702
|
+
Z as vendorSettingsSchema,
|
|
703
|
+
O as verificationMethodsSchema,
|
|
704
|
+
W as widgetSchema
|
|
703
705
|
};
|