@authhero/adapter-interfaces 0.47.0 → 0.49.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(),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
|
|
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,24 @@ 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
|
+
authorization_url: z.ZodOptional<z.ZodString>;
|
|
2297
2304
|
}, "strip", z.ZodTypeAny, {
|
|
2298
2305
|
expires_at: string;
|
|
2299
2306
|
authParams: {
|
|
2300
2307
|
client_id: string;
|
|
2301
2308
|
username?: string | undefined;
|
|
2302
2309
|
audience?: string | undefined;
|
|
2303
|
-
vendor_id?: string | undefined;
|
|
2304
2310
|
act_as?: string | undefined;
|
|
2305
2311
|
response_type?: AuthorizationResponseType | undefined;
|
|
2306
2312
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2307
2313
|
redirect_uri?: string | undefined;
|
|
2314
|
+
organization?: string | undefined;
|
|
2308
2315
|
state?: string | undefined;
|
|
2309
2316
|
nonce?: string | undefined;
|
|
2310
2317
|
scope?: string | undefined;
|
|
@@ -2312,22 +2319,24 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2312
2319
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2313
2320
|
code_challenge?: string | undefined;
|
|
2314
2321
|
ui_locales?: string | undefined;
|
|
2322
|
+
vendor_id?: string | undefined;
|
|
2315
2323
|
};
|
|
2316
2324
|
auth0Client?: string | undefined;
|
|
2317
2325
|
deleted_at?: string | undefined;
|
|
2318
2326
|
ip?: string | undefined;
|
|
2319
2327
|
useragent?: string | undefined;
|
|
2328
|
+
authorization_url?: string | undefined;
|
|
2320
2329
|
}, {
|
|
2321
2330
|
expires_at: string;
|
|
2322
2331
|
authParams: {
|
|
2323
2332
|
client_id: string;
|
|
2324
2333
|
username?: string | undefined;
|
|
2325
2334
|
audience?: string | undefined;
|
|
2326
|
-
vendor_id?: string | undefined;
|
|
2327
2335
|
act_as?: string | undefined;
|
|
2328
2336
|
response_type?: AuthorizationResponseType | undefined;
|
|
2329
2337
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2330
2338
|
redirect_uri?: string | undefined;
|
|
2339
|
+
organization?: string | undefined;
|
|
2331
2340
|
state?: string | undefined;
|
|
2332
2341
|
nonce?: string | undefined;
|
|
2333
2342
|
scope?: string | undefined;
|
|
@@ -2335,26 +2344,28 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2335
2344
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2336
2345
|
code_challenge?: string | undefined;
|
|
2337
2346
|
ui_locales?: string | undefined;
|
|
2347
|
+
vendor_id?: string | undefined;
|
|
2338
2348
|
};
|
|
2339
2349
|
auth0Client?: string | undefined;
|
|
2340
2350
|
deleted_at?: string | undefined;
|
|
2341
2351
|
ip?: string | undefined;
|
|
2342
2352
|
useragent?: string | undefined;
|
|
2353
|
+
authorization_url?: string | undefined;
|
|
2343
2354
|
}>;
|
|
2344
|
-
export type
|
|
2345
|
-
export declare const
|
|
2355
|
+
export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
|
|
2356
|
+
export declare const loginSessionSchema: z.ZodObject<{
|
|
2346
2357
|
login_id: z.ZodString;
|
|
2347
2358
|
created_at: z.ZodString;
|
|
2348
2359
|
updated_at: z.ZodString;
|
|
2349
2360
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2350
2361
|
authParams: z.ZodObject<{
|
|
2351
2362
|
client_id: z.ZodString;
|
|
2352
|
-
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2353
2363
|
act_as: z.ZodOptional<z.ZodString>;
|
|
2354
2364
|
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
2355
2365
|
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
2356
2366
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
2357
2367
|
audience: z.ZodOptional<z.ZodString>;
|
|
2368
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
2358
2369
|
state: z.ZodOptional<z.ZodString>;
|
|
2359
2370
|
nonce: z.ZodOptional<z.ZodString>;
|
|
2360
2371
|
scope: z.ZodOptional<z.ZodString>;
|
|
@@ -2363,15 +2374,16 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2363
2374
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2364
2375
|
username: z.ZodOptional<z.ZodString>;
|
|
2365
2376
|
ui_locales: z.ZodOptional<z.ZodString>;
|
|
2377
|
+
vendor_id: z.ZodOptional<z.ZodString>;
|
|
2366
2378
|
}, "strip", z.ZodTypeAny, {
|
|
2367
2379
|
client_id: string;
|
|
2368
2380
|
username?: string | undefined;
|
|
2369
2381
|
audience?: string | undefined;
|
|
2370
|
-
vendor_id?: string | undefined;
|
|
2371
2382
|
act_as?: string | undefined;
|
|
2372
2383
|
response_type?: AuthorizationResponseType | undefined;
|
|
2373
2384
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2374
2385
|
redirect_uri?: string | undefined;
|
|
2386
|
+
organization?: string | undefined;
|
|
2375
2387
|
state?: string | undefined;
|
|
2376
2388
|
nonce?: string | undefined;
|
|
2377
2389
|
scope?: string | undefined;
|
|
@@ -2379,15 +2391,16 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2379
2391
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2380
2392
|
code_challenge?: string | undefined;
|
|
2381
2393
|
ui_locales?: string | undefined;
|
|
2394
|
+
vendor_id?: string | undefined;
|
|
2382
2395
|
}, {
|
|
2383
2396
|
client_id: string;
|
|
2384
2397
|
username?: string | undefined;
|
|
2385
2398
|
audience?: string | undefined;
|
|
2386
|
-
vendor_id?: string | undefined;
|
|
2387
2399
|
act_as?: string | undefined;
|
|
2388
2400
|
response_type?: AuthorizationResponseType | undefined;
|
|
2389
2401
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2390
2402
|
redirect_uri?: string | undefined;
|
|
2403
|
+
organization?: string | undefined;
|
|
2391
2404
|
state?: string | undefined;
|
|
2392
2405
|
nonce?: string | undefined;
|
|
2393
2406
|
scope?: string | undefined;
|
|
@@ -2395,11 +2408,13 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2395
2408
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2396
2409
|
code_challenge?: string | undefined;
|
|
2397
2410
|
ui_locales?: string | undefined;
|
|
2411
|
+
vendor_id?: string | undefined;
|
|
2398
2412
|
}>;
|
|
2399
2413
|
expires_at: z.ZodString;
|
|
2400
2414
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2401
2415
|
ip: z.ZodOptional<z.ZodString>;
|
|
2402
2416
|
useragent: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
authorization_url: z.ZodOptional<z.ZodString>;
|
|
2403
2418
|
}, "strip", z.ZodTypeAny, {
|
|
2404
2419
|
created_at: string;
|
|
2405
2420
|
updated_at: string;
|
|
@@ -2409,11 +2424,11 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2409
2424
|
client_id: string;
|
|
2410
2425
|
username?: string | undefined;
|
|
2411
2426
|
audience?: string | undefined;
|
|
2412
|
-
vendor_id?: string | undefined;
|
|
2413
2427
|
act_as?: string | undefined;
|
|
2414
2428
|
response_type?: AuthorizationResponseType | undefined;
|
|
2415
2429
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2416
2430
|
redirect_uri?: string | undefined;
|
|
2431
|
+
organization?: string | undefined;
|
|
2417
2432
|
state?: string | undefined;
|
|
2418
2433
|
nonce?: string | undefined;
|
|
2419
2434
|
scope?: string | undefined;
|
|
@@ -2421,11 +2436,13 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2421
2436
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2422
2437
|
code_challenge?: string | undefined;
|
|
2423
2438
|
ui_locales?: string | undefined;
|
|
2439
|
+
vendor_id?: string | undefined;
|
|
2424
2440
|
};
|
|
2425
2441
|
auth0Client?: string | undefined;
|
|
2426
2442
|
deleted_at?: string | undefined;
|
|
2427
2443
|
ip?: string | undefined;
|
|
2428
2444
|
useragent?: string | undefined;
|
|
2445
|
+
authorization_url?: string | undefined;
|
|
2429
2446
|
}, {
|
|
2430
2447
|
created_at: string;
|
|
2431
2448
|
updated_at: string;
|
|
@@ -2435,11 +2452,11 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2435
2452
|
client_id: string;
|
|
2436
2453
|
username?: string | undefined;
|
|
2437
2454
|
audience?: string | undefined;
|
|
2438
|
-
vendor_id?: string | undefined;
|
|
2439
2455
|
act_as?: string | undefined;
|
|
2440
2456
|
response_type?: AuthorizationResponseType | undefined;
|
|
2441
2457
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
2442
2458
|
redirect_uri?: string | undefined;
|
|
2459
|
+
organization?: string | undefined;
|
|
2443
2460
|
state?: string | undefined;
|
|
2444
2461
|
nonce?: string | undefined;
|
|
2445
2462
|
scope?: string | undefined;
|
|
@@ -2447,13 +2464,15 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2447
2464
|
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
2448
2465
|
code_challenge?: string | undefined;
|
|
2449
2466
|
ui_locales?: string | undefined;
|
|
2467
|
+
vendor_id?: string | undefined;
|
|
2450
2468
|
};
|
|
2451
2469
|
auth0Client?: string | undefined;
|
|
2452
2470
|
deleted_at?: string | undefined;
|
|
2453
2471
|
ip?: string | undefined;
|
|
2454
2472
|
useragent?: string | undefined;
|
|
2473
|
+
authorization_url?: string | undefined;
|
|
2455
2474
|
}>;
|
|
2456
|
-
export type
|
|
2475
|
+
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
2457
2476
|
export declare enum LogTypes {
|
|
2458
2477
|
FAILED_SILENT_AUTH = "fsa",
|
|
2459
2478
|
FAILED_SIGNUP = "fs",
|
|
@@ -4495,7 +4514,7 @@ export interface CodesAdapter {
|
|
|
4495
4514
|
export interface PasswordsAdapter {
|
|
4496
4515
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
4497
4516
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
4498
|
-
get: (tenant_id: string, user_id: string) => Promise<Password>;
|
|
4517
|
+
get: (tenant_id: string, user_id: string) => Promise<Password | null>;
|
|
4499
4518
|
}
|
|
4500
4519
|
export interface ListSesssionsResponse extends Totals {
|
|
4501
4520
|
sessions: Session[];
|
|
@@ -4598,10 +4617,10 @@ export interface ThemesAdapter {
|
|
|
4598
4617
|
get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
|
|
4599
4618
|
update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
|
|
4600
4619
|
}
|
|
4601
|
-
export interface
|
|
4602
|
-
create: (tenant_id: string, session:
|
|
4603
|
-
update: (tenant_id: string, login_id: string, session: Partial<
|
|
4604
|
-
get: (tenant_id: string, login_id: string) => Promise<
|
|
4620
|
+
export interface LoginSessionsAdapter {
|
|
4621
|
+
create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
|
|
4622
|
+
update: (tenant_id: string, login_id: string, session: Partial<LoginSession>) => Promise<boolean>;
|
|
4623
|
+
get: (tenant_id: string, login_id: string) => Promise<LoginSession | null>;
|
|
4605
4624
|
remove: (tenant_id: string, login_id: string) => Promise<boolean>;
|
|
4606
4625
|
}
|
|
4607
4626
|
export interface PromptSettingsAdapter {
|
|
@@ -4633,7 +4652,7 @@ export interface DataAdapters {
|
|
|
4633
4652
|
emailProviders: EmailProvidersAdapter;
|
|
4634
4653
|
hooks: HooksAdapter;
|
|
4635
4654
|
keys: KeysAdapter;
|
|
4636
|
-
|
|
4655
|
+
loginSessions: LoginSessionsAdapter;
|
|
4637
4656
|
logs: LogsDataAdapter;
|
|
4638
4657
|
passwords: PasswordsAdapter;
|
|
4639
4658
|
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
|
-
}),
|
|
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
|
-
|
|
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
|
-
}),
|
|
201
|
+
}), Y = t.object({
|
|
200
202
|
logoUrl: t.string(),
|
|
201
203
|
loginBackgroundImage: t.string().nullish(),
|
|
202
204
|
style: t.object({
|
|
@@ -329,7 +331,8 @@ 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
|
+
authorization_url: t.string().optional()
|
|
333
336
|
}).openapi({
|
|
334
337
|
description: "This represents a login sesion"
|
|
335
338
|
}), et = t.object({
|
|
@@ -624,11 +627,11 @@ export {
|
|
|
624
627
|
U as LogTypes,
|
|
625
628
|
f as applicationInsertSchema,
|
|
626
629
|
S as applicationSchema,
|
|
627
|
-
|
|
630
|
+
z as auth0UserResponseSchema,
|
|
628
631
|
y as authParamsSchema,
|
|
629
632
|
a as baseUserSchema,
|
|
630
633
|
F as bordersSchema,
|
|
631
|
-
|
|
634
|
+
V as brandingSchema,
|
|
632
635
|
j as codeInsertSchema,
|
|
633
636
|
X as codeSchema,
|
|
634
637
|
I as codeTypeSchema,
|
|
@@ -646,8 +649,8 @@ export {
|
|
|
646
649
|
$ as jwksKeySchema,
|
|
647
650
|
O as jwksSchema,
|
|
648
651
|
nt as logSchema,
|
|
649
|
-
N as
|
|
650
|
-
et as
|
|
652
|
+
N as loginSessionInsertSchema,
|
|
653
|
+
et as loginSessionSchema,
|
|
651
654
|
tt as openIDConfigurationSchema,
|
|
652
655
|
G as pageBackgroundSchema,
|
|
653
656
|
dt as parseUserId,
|
|
@@ -668,8 +671,8 @@ export {
|
|
|
668
671
|
at as tokenResponseSchema,
|
|
669
672
|
q as totalsSchema,
|
|
670
673
|
_ as userInsertSchema,
|
|
671
|
-
|
|
674
|
+
Q as userResponseSchema,
|
|
672
675
|
u as userSchema,
|
|
673
|
-
|
|
676
|
+
Y as vendorSettingsSchema,
|
|
674
677
|
L as widgetSchema
|
|
675
678
|
};
|