@authhero/adapter-interfaces 0.48.0 → 0.50.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"),G=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()}),L=g,B=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()),M="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let q=(e=21)=>{let i="",o=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=M[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()}),u=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"})}),m=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...u.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(),vendor_id:t.z.string().optional(),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(),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()}),W=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()}).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()}),Q=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({...m.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()}),V=t.z.object({...k.shape,created_at:t.z.string()}),w=t.z.object({domain:t.z.string(),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()}),Y=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({}).optional(),tls_policy:t.z.string().optional()}),E=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()}),X=E.extend({...c.shape,hook_id:t.z.string()}),C=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()}),J=t.z.object({keys:t.z.array(C)}),Z=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())}),j=t.z.object({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()}).openapi({description:"This represents a login sesion"}),$=t.z.object({...j.shape,login_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 v=(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))(v||{});const tt=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"]),A=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),et=t.z.object({type:tt,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:A.optional()}),O=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),nt=t.z.object({...O.shape,created_at:t.z.string(),updated_at:t.z.string()}),U=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")}),N=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:U.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")}),it=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...N.shape}),ot=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 R=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e))(R||{});const at=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 D=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()}),T=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()}),x=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}),P=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),F=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"])}),H=t.z.object({borders:D,colors:T,displayName:t.z.string(),fonts:x,page_background:P,widget:F}),st=H.extend({themeId:t.z.string()}),rt=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()}),lt=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()}),K=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:U,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),ct=t.z.object({created_at:t.z.string(),...K.shape});function pt(e){const[i,o]=e.split("|");if(!i||!o)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:o}}exports.Auth0Client=A;exports.AuthorizationResponseMode=r;exports.AuthorizationResponseType=s;exports.CodeChallengeMethod=l;exports.GrantType=R;exports.LogTypes=v;exports.applicationInsertSchema=u;exports.applicationSchema=m;exports.auth0UserResponseSchema=L;exports.authParamsSchema=h;exports.baseUserSchema=a;exports.bordersSchema=D;exports.brandingSchema=W;exports.codeInsertSchema=k;exports.codeSchema=V;exports.codeTypeSchema=I;exports.colorsSchema=T;exports.connectionInsertSchema=b;exports.connectionSchema=S;exports.customDomainInsertSchema=w;exports.customDomainSchema=Y;exports.emailProviderSchema=lt;exports.fontDetailsSchema=n;exports.fontsSchema=x;exports.hookInsertSchema=E;exports.hookSchema=X;exports.identitySchema=z;exports.jwksKeySchema=J;exports.jwksSchema=C;exports.logSchema=et;exports.loginInsertSchema=j;exports.loginSchema=$;exports.openIDConfigurationSchema=Z;exports.pageBackgroundSchema=P;exports.parseUserId=pt;exports.passwordInsertSchema=O;exports.passwordSchema=nt;exports.profileDataSchema=p;exports.promptSettingSchema=rt;exports.refreshTokenInsertSchema=K;exports.refreshTokenSchema=ct;exports.samlpAddon=_;exports.sessionInsertSchema=N;exports.sessionSchema=it;exports.signingKeySchema=ot;exports.tenantInsertSchema=f;exports.tenantSchema=y;exports.themeInsertSchema=H;exports.themeSchema=st;exports.tokenResponseSchema=at;exports.totalsSchema=G;exports.userInsertSchema=d;exports.userResponseSchema=B;exports.userSchema=g;exports.vendorSettingsSchema=Q;exports.widgetSchema=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@hono/zod-openapi"),G=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()}),L=g,B=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()),M="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let q=(e=21)=>{let i="",o=crypto.getRandomValues(new Uint8Array(e));for(;e--;)i+=M[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()}),u=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"})}),m=t.z.object({created_at:t.z.string().transform(e=>e===null?"":e),updated_at:t.z.string().transform(e=>e===null?"":e),...u.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()}),W=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()}).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()}),Q=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({...m.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()}),V=t.z.object({...k.shape,created_at:t.z.string()}),w=t.z.object({domain:t.z.string(),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()}),Y=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({}).optional(),tls_policy:t.z.string().optional()}),E=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()}),X=E.extend({...c.shape,hook_id:t.z.string()}),C=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()}),J=t.z.object({keys:t.z.array(C)}),Z=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())}),j=t.z.object({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:t.z.string().optional(),authorization_url:t.z.string().optional()}).openapi({description:"This represents a login sesion"}),$=t.z.object({...j.shape,login_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 v=(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))(v||{});const tt=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"]),A=t.z.object({name:t.z.string(),version:t.z.string(),env:t.z.object({node:t.z.string().optional()}).optional()}),et=t.z.object({type:tt,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:A.optional()}),O=t.z.object({user_id:t.z.string(),password:t.z.string(),algorithm:t.z.enum(["bcrypt","argon2id"]).default("argon2id")}),nt=t.z.object({...O.shape,created_at:t.z.string(),updated_at:t.z.string()}),U=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")}),N=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:U.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")}),it=t.z.object({created_at:t.z.string(),updated_at:t.z.string(),authenticated_at:t.z.string(),last_interaction_at:t.z.string(),...N.shape}),ot=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 R=(e=>(e.RefreshToken="refresh_token",e.AuthorizationCode="authorization_code",e.ClientCredential="client_credentials",e.Passwordless="passwordless",e.Password="password",e))(R||{});const at=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 D=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()}),T=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()}),x=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}),P=t.z.object({background_color:t.z.string(),background_image_url:t.z.string(),page_layout:t.z.enum(["center"])}),F=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"])}),H=t.z.object({borders:D,colors:T,displayName:t.z.string(),fonts:x,page_background:P,widget:F}),st=H.extend({themeId:t.z.string()}),rt=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()}),lt=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()}),K=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:U,resource_servers:t.z.array(t.z.object({audience:t.z.string(),scopes:t.z.string()})),rotating:t.z.boolean()}),ct=t.z.object({created_at:t.z.string(),...K.shape});function pt(e){const[i,o]=e.split("|");if(!i||!o)throw new Error(`Invalid user_id: ${e}`);return{connection:i,id:o}}exports.Auth0Client=A;exports.AuthorizationResponseMode=r;exports.AuthorizationResponseType=s;exports.CodeChallengeMethod=l;exports.GrantType=R;exports.LogTypes=v;exports.applicationInsertSchema=u;exports.applicationSchema=m;exports.auth0UserResponseSchema=L;exports.authParamsSchema=h;exports.baseUserSchema=a;exports.bordersSchema=D;exports.brandingSchema=W;exports.codeInsertSchema=k;exports.codeSchema=V;exports.codeTypeSchema=I;exports.colorsSchema=T;exports.connectionInsertSchema=b;exports.connectionSchema=S;exports.customDomainInsertSchema=w;exports.customDomainSchema=Y;exports.emailProviderSchema=lt;exports.fontDetailsSchema=n;exports.fontsSchema=x;exports.hookInsertSchema=E;exports.hookSchema=X;exports.identitySchema=z;exports.jwksKeySchema=J;exports.jwksSchema=C;exports.logSchema=et;exports.loginSessionInsertSchema=j;exports.loginSessionSchema=$;exports.openIDConfigurationSchema=Z;exports.pageBackgroundSchema=P;exports.parseUserId=pt;exports.passwordInsertSchema=O;exports.passwordSchema=nt;exports.profileDataSchema=p;exports.promptSettingSchema=rt;exports.refreshTokenInsertSchema=K;exports.refreshTokenSchema=ct;exports.samlpAddon=_;exports.sessionInsertSchema=N;exports.sessionSchema=it;exports.signingKeySchema=ot;exports.tenantInsertSchema=f;exports.tenantSchema=y;exports.themeInsertSchema=H;exports.themeSchema=st;exports.tokenResponseSchema=at;exports.totalsSchema=G;exports.userInsertSchema=d;exports.userResponseSchema=B;exports.userSchema=g;exports.vendorSettingsSchema=Q;exports.widgetSchema=F;
@@ -990,12 +990,12 @@ export declare enum CodeChallengeMethod {
990
990
  }
991
991
  export declare const authParamsSchema: z.ZodObject<{
992
992
  client_id: z.ZodString;
993
- vendor_id: z.ZodOptional<z.ZodString>;
994
993
  act_as: z.ZodOptional<z.ZodString>;
995
994
  response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
996
995
  response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
997
996
  redirect_uri: z.ZodOptional<z.ZodString>;
998
997
  audience: z.ZodOptional<z.ZodString>;
998
+ organization: z.ZodOptional<z.ZodString>;
999
999
  state: z.ZodOptional<z.ZodString>;
1000
1000
  nonce: z.ZodOptional<z.ZodString>;
1001
1001
  scope: z.ZodOptional<z.ZodString>;
@@ -1004,15 +1004,16 @@ export declare const authParamsSchema: z.ZodObject<{
1004
1004
  code_challenge: z.ZodOptional<z.ZodString>;
1005
1005
  username: z.ZodOptional<z.ZodString>;
1006
1006
  ui_locales: z.ZodOptional<z.ZodString>;
1007
+ vendor_id: z.ZodOptional<z.ZodString>;
1007
1008
  }, "strip", z.ZodTypeAny, {
1008
1009
  client_id: string;
1009
1010
  username?: string | undefined;
1010
1011
  audience?: string | undefined;
1011
- vendor_id?: string | undefined;
1012
1012
  act_as?: string | undefined;
1013
1013
  response_type?: AuthorizationResponseType | undefined;
1014
1014
  response_mode?: AuthorizationResponseMode | undefined;
1015
1015
  redirect_uri?: string | undefined;
1016
+ organization?: string | undefined;
1016
1017
  state?: string | undefined;
1017
1018
  nonce?: string | undefined;
1018
1019
  scope?: string | undefined;
@@ -1020,15 +1021,16 @@ export declare const authParamsSchema: z.ZodObject<{
1020
1021
  code_challenge_method?: CodeChallengeMethod | undefined;
1021
1022
  code_challenge?: string | undefined;
1022
1023
  ui_locales?: string | undefined;
1024
+ vendor_id?: string | undefined;
1023
1025
  }, {
1024
1026
  client_id: string;
1025
1027
  username?: string | undefined;
1026
1028
  audience?: string | undefined;
1027
- vendor_id?: string | undefined;
1028
1029
  act_as?: string | undefined;
1029
1030
  response_type?: AuthorizationResponseType | undefined;
1030
1031
  response_mode?: AuthorizationResponseMode | undefined;
1031
1032
  redirect_uri?: string | undefined;
1033
+ organization?: string | undefined;
1032
1034
  state?: string | undefined;
1033
1035
  nonce?: string | undefined;
1034
1036
  scope?: string | undefined;
@@ -1036,6 +1038,7 @@ export declare const authParamsSchema: z.ZodObject<{
1036
1038
  code_challenge_method?: CodeChallengeMethod | undefined;
1037
1039
  code_challenge?: string | undefined;
1038
1040
  ui_locales?: string | undefined;
1041
+ vendor_id?: string | undefined;
1039
1042
  }>;
1040
1043
  export type AuthParams = z.infer<typeof authParamsSchema>;
1041
1044
  export declare const brandingSchema: z.ZodObject<{
@@ -2239,16 +2242,16 @@ export interface ListParams {
2239
2242
  sort_order: "asc" | "desc";
2240
2243
  };
2241
2244
  }
2242
- export declare const loginInsertSchema: z.ZodObject<{
2245
+ export declare const loginSessionInsertSchema: z.ZodObject<{
2243
2246
  auth0Client: z.ZodOptional<z.ZodString>;
2244
2247
  authParams: z.ZodObject<{
2245
2248
  client_id: z.ZodString;
2246
- vendor_id: z.ZodOptional<z.ZodString>;
2247
2249
  act_as: z.ZodOptional<z.ZodString>;
2248
2250
  response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2249
2251
  response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2250
2252
  redirect_uri: z.ZodOptional<z.ZodString>;
2251
2253
  audience: z.ZodOptional<z.ZodString>;
2254
+ organization: z.ZodOptional<z.ZodString>;
2252
2255
  state: z.ZodOptional<z.ZodString>;
2253
2256
  nonce: z.ZodOptional<z.ZodString>;
2254
2257
  scope: z.ZodOptional<z.ZodString>;
@@ -2257,15 +2260,16 @@ export declare const loginInsertSchema: z.ZodObject<{
2257
2260
  code_challenge: z.ZodOptional<z.ZodString>;
2258
2261
  username: z.ZodOptional<z.ZodString>;
2259
2262
  ui_locales: z.ZodOptional<z.ZodString>;
2263
+ vendor_id: z.ZodOptional<z.ZodString>;
2260
2264
  }, "strip", z.ZodTypeAny, {
2261
2265
  client_id: string;
2262
2266
  username?: string | undefined;
2263
2267
  audience?: string | undefined;
2264
- vendor_id?: string | undefined;
2265
2268
  act_as?: string | undefined;
2266
2269
  response_type?: AuthorizationResponseType | undefined;
2267
2270
  response_mode?: AuthorizationResponseMode | undefined;
2268
2271
  redirect_uri?: string | undefined;
2272
+ organization?: string | undefined;
2269
2273
  state?: string | undefined;
2270
2274
  nonce?: string | undefined;
2271
2275
  scope?: string | undefined;
@@ -2273,15 +2277,16 @@ export declare const loginInsertSchema: z.ZodObject<{
2273
2277
  code_challenge_method?: CodeChallengeMethod | undefined;
2274
2278
  code_challenge?: string | undefined;
2275
2279
  ui_locales?: string | undefined;
2280
+ vendor_id?: string | undefined;
2276
2281
  }, {
2277
2282
  client_id: string;
2278
2283
  username?: string | undefined;
2279
2284
  audience?: string | undefined;
2280
- vendor_id?: string | undefined;
2281
2285
  act_as?: string | undefined;
2282
2286
  response_type?: AuthorizationResponseType | undefined;
2283
2287
  response_mode?: AuthorizationResponseMode | undefined;
2284
2288
  redirect_uri?: string | undefined;
2289
+ organization?: string | undefined;
2285
2290
  state?: string | undefined;
2286
2291
  nonce?: string | undefined;
2287
2292
  scope?: string | undefined;
@@ -2289,22 +2294,25 @@ export declare const loginInsertSchema: z.ZodObject<{
2289
2294
  code_challenge_method?: CodeChallengeMethod | undefined;
2290
2295
  code_challenge?: string | undefined;
2291
2296
  ui_locales?: string | undefined;
2297
+ vendor_id?: string | undefined;
2292
2298
  }>;
2293
2299
  expires_at: z.ZodString;
2294
2300
  deleted_at: z.ZodOptional<z.ZodString>;
2295
2301
  ip: z.ZodOptional<z.ZodString>;
2296
2302
  useragent: z.ZodOptional<z.ZodString>;
2303
+ session: z.ZodOptional<z.ZodString>;
2304
+ authorization_url: z.ZodOptional<z.ZodString>;
2297
2305
  }, "strip", z.ZodTypeAny, {
2298
2306
  expires_at: string;
2299
2307
  authParams: {
2300
2308
  client_id: string;
2301
2309
  username?: string | undefined;
2302
2310
  audience?: string | undefined;
2303
- vendor_id?: string | undefined;
2304
2311
  act_as?: string | undefined;
2305
2312
  response_type?: AuthorizationResponseType | undefined;
2306
2313
  response_mode?: AuthorizationResponseMode | undefined;
2307
2314
  redirect_uri?: string | undefined;
2315
+ organization?: string | undefined;
2308
2316
  state?: string | undefined;
2309
2317
  nonce?: string | undefined;
2310
2318
  scope?: string | undefined;
@@ -2312,22 +2320,25 @@ export declare const loginInsertSchema: z.ZodObject<{
2312
2320
  code_challenge_method?: CodeChallengeMethod | undefined;
2313
2321
  code_challenge?: string | undefined;
2314
2322
  ui_locales?: string | undefined;
2323
+ vendor_id?: string | undefined;
2315
2324
  };
2316
2325
  auth0Client?: string | undefined;
2317
2326
  deleted_at?: string | undefined;
2318
2327
  ip?: string | undefined;
2319
2328
  useragent?: string | undefined;
2329
+ session?: string | undefined;
2330
+ authorization_url?: string | undefined;
2320
2331
  }, {
2321
2332
  expires_at: string;
2322
2333
  authParams: {
2323
2334
  client_id: string;
2324
2335
  username?: string | undefined;
2325
2336
  audience?: string | undefined;
2326
- vendor_id?: string | undefined;
2327
2337
  act_as?: string | undefined;
2328
2338
  response_type?: AuthorizationResponseType | undefined;
2329
2339
  response_mode?: AuthorizationResponseMode | undefined;
2330
2340
  redirect_uri?: string | undefined;
2341
+ organization?: string | undefined;
2331
2342
  state?: string | undefined;
2332
2343
  nonce?: string | undefined;
2333
2344
  scope?: string | undefined;
@@ -2335,26 +2346,29 @@ export declare const loginInsertSchema: z.ZodObject<{
2335
2346
  code_challenge_method?: CodeChallengeMethod | undefined;
2336
2347
  code_challenge?: string | undefined;
2337
2348
  ui_locales?: string | undefined;
2349
+ vendor_id?: string | undefined;
2338
2350
  };
2339
2351
  auth0Client?: string | undefined;
2340
2352
  deleted_at?: string | undefined;
2341
2353
  ip?: string | undefined;
2342
2354
  useragent?: string | undefined;
2355
+ session?: string | undefined;
2356
+ authorization_url?: string | undefined;
2343
2357
  }>;
2344
- export type LoginInsert = z.infer<typeof loginInsertSchema>;
2345
- export declare const loginSchema: z.ZodObject<{
2358
+ export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
2359
+ export declare const loginSessionSchema: z.ZodObject<{
2346
2360
  login_id: z.ZodString;
2347
2361
  created_at: z.ZodString;
2348
2362
  updated_at: z.ZodString;
2349
2363
  auth0Client: z.ZodOptional<z.ZodString>;
2350
2364
  authParams: z.ZodObject<{
2351
2365
  client_id: z.ZodString;
2352
- vendor_id: z.ZodOptional<z.ZodString>;
2353
2366
  act_as: z.ZodOptional<z.ZodString>;
2354
2367
  response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2355
2368
  response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2356
2369
  redirect_uri: z.ZodOptional<z.ZodString>;
2357
2370
  audience: z.ZodOptional<z.ZodString>;
2371
+ organization: z.ZodOptional<z.ZodString>;
2358
2372
  state: z.ZodOptional<z.ZodString>;
2359
2373
  nonce: z.ZodOptional<z.ZodString>;
2360
2374
  scope: z.ZodOptional<z.ZodString>;
@@ -2363,15 +2377,16 @@ export declare const loginSchema: z.ZodObject<{
2363
2377
  code_challenge: z.ZodOptional<z.ZodString>;
2364
2378
  username: z.ZodOptional<z.ZodString>;
2365
2379
  ui_locales: z.ZodOptional<z.ZodString>;
2380
+ vendor_id: z.ZodOptional<z.ZodString>;
2366
2381
  }, "strip", z.ZodTypeAny, {
2367
2382
  client_id: string;
2368
2383
  username?: string | undefined;
2369
2384
  audience?: string | undefined;
2370
- vendor_id?: string | undefined;
2371
2385
  act_as?: string | undefined;
2372
2386
  response_type?: AuthorizationResponseType | undefined;
2373
2387
  response_mode?: AuthorizationResponseMode | undefined;
2374
2388
  redirect_uri?: string | undefined;
2389
+ organization?: string | undefined;
2375
2390
  state?: string | undefined;
2376
2391
  nonce?: string | undefined;
2377
2392
  scope?: string | undefined;
@@ -2379,15 +2394,16 @@ export declare const loginSchema: z.ZodObject<{
2379
2394
  code_challenge_method?: CodeChallengeMethod | undefined;
2380
2395
  code_challenge?: string | undefined;
2381
2396
  ui_locales?: string | undefined;
2397
+ vendor_id?: string | undefined;
2382
2398
  }, {
2383
2399
  client_id: string;
2384
2400
  username?: string | undefined;
2385
2401
  audience?: string | undefined;
2386
- vendor_id?: string | undefined;
2387
2402
  act_as?: string | undefined;
2388
2403
  response_type?: AuthorizationResponseType | undefined;
2389
2404
  response_mode?: AuthorizationResponseMode | undefined;
2390
2405
  redirect_uri?: string | undefined;
2406
+ organization?: string | undefined;
2391
2407
  state?: string | undefined;
2392
2408
  nonce?: string | undefined;
2393
2409
  scope?: string | undefined;
@@ -2395,11 +2411,14 @@ export declare const loginSchema: z.ZodObject<{
2395
2411
  code_challenge_method?: CodeChallengeMethod | undefined;
2396
2412
  code_challenge?: string | undefined;
2397
2413
  ui_locales?: string | undefined;
2414
+ vendor_id?: string | undefined;
2398
2415
  }>;
2399
2416
  expires_at: z.ZodString;
2400
2417
  deleted_at: z.ZodOptional<z.ZodString>;
2401
2418
  ip: z.ZodOptional<z.ZodString>;
2402
2419
  useragent: z.ZodOptional<z.ZodString>;
2420
+ session: z.ZodOptional<z.ZodString>;
2421
+ authorization_url: z.ZodOptional<z.ZodString>;
2403
2422
  }, "strip", z.ZodTypeAny, {
2404
2423
  created_at: string;
2405
2424
  updated_at: string;
@@ -2409,11 +2428,11 @@ export declare const loginSchema: z.ZodObject<{
2409
2428
  client_id: string;
2410
2429
  username?: string | undefined;
2411
2430
  audience?: string | undefined;
2412
- vendor_id?: string | undefined;
2413
2431
  act_as?: string | undefined;
2414
2432
  response_type?: AuthorizationResponseType | undefined;
2415
2433
  response_mode?: AuthorizationResponseMode | undefined;
2416
2434
  redirect_uri?: string | undefined;
2435
+ organization?: string | undefined;
2417
2436
  state?: string | undefined;
2418
2437
  nonce?: string | undefined;
2419
2438
  scope?: string | undefined;
@@ -2421,11 +2440,14 @@ export declare const loginSchema: z.ZodObject<{
2421
2440
  code_challenge_method?: CodeChallengeMethod | undefined;
2422
2441
  code_challenge?: string | undefined;
2423
2442
  ui_locales?: string | undefined;
2443
+ vendor_id?: string | undefined;
2424
2444
  };
2425
2445
  auth0Client?: string | undefined;
2426
2446
  deleted_at?: string | undefined;
2427
2447
  ip?: string | undefined;
2428
2448
  useragent?: string | undefined;
2449
+ session?: string | undefined;
2450
+ authorization_url?: string | undefined;
2429
2451
  }, {
2430
2452
  created_at: string;
2431
2453
  updated_at: string;
@@ -2435,11 +2457,11 @@ export declare const loginSchema: z.ZodObject<{
2435
2457
  client_id: string;
2436
2458
  username?: string | undefined;
2437
2459
  audience?: string | undefined;
2438
- vendor_id?: string | undefined;
2439
2460
  act_as?: string | undefined;
2440
2461
  response_type?: AuthorizationResponseType | undefined;
2441
2462
  response_mode?: AuthorizationResponseMode | undefined;
2442
2463
  redirect_uri?: string | undefined;
2464
+ organization?: string | undefined;
2443
2465
  state?: string | undefined;
2444
2466
  nonce?: string | undefined;
2445
2467
  scope?: string | undefined;
@@ -2447,13 +2469,16 @@ export declare const loginSchema: z.ZodObject<{
2447
2469
  code_challenge_method?: CodeChallengeMethod | undefined;
2448
2470
  code_challenge?: string | undefined;
2449
2471
  ui_locales?: string | undefined;
2472
+ vendor_id?: string | undefined;
2450
2473
  };
2451
2474
  auth0Client?: string | undefined;
2452
2475
  deleted_at?: string | undefined;
2453
2476
  ip?: string | undefined;
2454
2477
  useragent?: string | undefined;
2478
+ session?: string | undefined;
2479
+ authorization_url?: string | undefined;
2455
2480
  }>;
2456
- export type Login = z.infer<typeof loginSchema>;
2481
+ export type LoginSession = z.infer<typeof loginSessionSchema>;
2457
2482
  export declare enum LogTypes {
2458
2483
  FAILED_SILENT_AUTH = "fsa",
2459
2484
  FAILED_SIGNUP = "fs",
@@ -4598,10 +4623,10 @@ export interface ThemesAdapter {
4598
4623
  get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
4599
4624
  update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
4600
4625
  }
4601
- export interface LoginsAdapter {
4602
- create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
4603
- update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
4604
- get: (tenant_id: string, login_id: string) => Promise<Login | null>;
4626
+ export interface LoginSessionsAdapter {
4627
+ create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
4628
+ update: (tenant_id: string, login_id: string, session: Partial<LoginSession>) => Promise<boolean>;
4629
+ get: (tenant_id: string, login_id: string) => Promise<LoginSession | null>;
4605
4630
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
4606
4631
  }
4607
4632
  export interface PromptSettingsAdapter {
@@ -4633,7 +4658,7 @@ export interface DataAdapters {
4633
4658
  emailProviders: EmailProvidersAdapter;
4634
4659
  hooks: HooksAdapter;
4635
4660
  keys: KeysAdapter;
4636
- logins: LoginsAdapter;
4661
+ loginSessions: LoginSessionsAdapter;
4637
4662
  logs: LogsDataAdapter;
4638
4663
  passwords: PasswordsAdapter;
4639
4664
  promptSettings: PromptSettingsAdapter;
@@ -56,7 +56,7 @@ const q = t.object({
56
56
  email: t.string(),
57
57
  login_count: t.number(),
58
58
  identities: t.array(g).optional()
59
- }), Q = u, V = a.extend({
59
+ }), z = u, Q = a.extend({
60
60
  email: t.string(),
61
61
  login_count: t.number(),
62
62
  multifactor: t.array(t.string()).optional(),
@@ -125,12 +125,12 @@ const b = t.object({
125
125
  var r = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(r || {}), l = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(l || {}), c = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(c || {});
126
126
  const y = t.object({
127
127
  client_id: t.string(),
128
- vendor_id: t.string().optional(),
129
128
  act_as: t.string().optional(),
130
129
  response_type: t.nativeEnum(r).optional(),
131
130
  response_mode: t.nativeEnum(l).optional(),
132
131
  redirect_uri: t.string().optional(),
133
132
  audience: t.string().optional(),
133
+ organization: t.string().optional(),
134
134
  state: t.string().optional(),
135
135
  nonce: t.string().optional(),
136
136
  scope: t.string().optional(),
@@ -138,8 +138,10 @@ const y = t.object({
138
138
  code_challenge_method: t.nativeEnum(c).optional(),
139
139
  code_challenge: t.string().optional(),
140
140
  username: t.string().optional(),
141
- ui_locales: t.string().optional()
142
- }), Y = t.object({
141
+ ui_locales: t.string().optional(),
142
+ // The following fields are not available in Auth0
143
+ vendor_id: t.string().optional()
144
+ }), V = t.object({
143
145
  colors: t.object({
144
146
  primary: t.string(),
145
147
  page_background: t.object({
@@ -196,7 +198,7 @@ const y = t.object({
196
198
  updated_at: t.string().transform((e) => e === null ? "" : e),
197
199
  ...w.shape,
198
200
  id: t.string()
199
- }), z = t.object({
201
+ }), Y = t.object({
200
202
  logoUrl: t.string(),
201
203
  loginBackgroundImage: t.string().nullish(),
202
204
  style: t.object({
@@ -329,7 +331,9 @@ const I = t.enum([
329
331
  expires_at: t.string(),
330
332
  deleted_at: t.string().optional(),
331
333
  ip: t.string().optional(),
332
- useragent: t.string().optional()
334
+ useragent: t.string().optional(),
335
+ session: t.string().optional(),
336
+ authorization_url: t.string().optional()
333
337
  }).openapi({
334
338
  description: "This represents a login sesion"
335
339
  }), et = t.object({
@@ -624,11 +628,11 @@ export {
624
628
  U as LogTypes,
625
629
  f as applicationInsertSchema,
626
630
  S as applicationSchema,
627
- Q as auth0UserResponseSchema,
631
+ z as auth0UserResponseSchema,
628
632
  y as authParamsSchema,
629
633
  a as baseUserSchema,
630
634
  F as bordersSchema,
631
- Y as brandingSchema,
635
+ V as brandingSchema,
632
636
  j as codeInsertSchema,
633
637
  X as codeSchema,
634
638
  I as codeTypeSchema,
@@ -646,8 +650,8 @@ export {
646
650
  $ as jwksKeySchema,
647
651
  O as jwksSchema,
648
652
  nt as logSchema,
649
- N as loginInsertSchema,
650
- et as loginSchema,
653
+ N as loginSessionInsertSchema,
654
+ et as loginSessionSchema,
651
655
  tt as openIDConfigurationSchema,
652
656
  G as pageBackgroundSchema,
653
657
  dt as parseUserId,
@@ -668,8 +672,8 @@ export {
668
672
  at as tokenResponseSchema,
669
673
  q as totalsSchema,
670
674
  _ as userInsertSchema,
671
- V as userResponseSchema,
675
+ Q as userResponseSchema,
672
676
  u as userSchema,
673
- z as vendorSettingsSchema,
677
+ Y as vendorSettingsSchema,
674
678
  L as widgetSchema
675
679
  };
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.48.0",
14
+ "version": "0.50.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],