@authhero/adapter-interfaces 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +50 -2
- package/dist/adapter-interfaces.mjs +59 -50
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Grants.d.ts +18 -0
- package/dist/types/adapters/index.d.ts +15 -0
- package/dist/types/types/Grant.d.ts +16 -0
- package/dist/types/types/LoginSession.d.ts +2 -0
- package/dist/types/types/ProxyRoute.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7992,6 +7992,8 @@ declare enum LoginSessionState {
|
|
|
7992
7992
|
AWAITING_HOOK = "awaiting_hook",
|
|
7993
7993
|
/** Waiting for user to complete action on continuation page (change-email, account, etc.) */
|
|
7994
7994
|
AWAITING_CONTINUATION = "awaiting_continuation",
|
|
7995
|
+
/** Waiting for user to approve OAuth consent for a third-party client */
|
|
7996
|
+
AWAITING_CONSENT = "awaiting_consent",
|
|
7995
7997
|
/** Tokens issued successfully */
|
|
7996
7998
|
COMPLETED = "completed",
|
|
7997
7999
|
/** Authentication failed (wrong password, blocked, etc.) */
|
|
@@ -9432,6 +9434,7 @@ declare const handlerConfigSchema: z.ZodObject<{
|
|
|
9432
9434
|
}, z.core.$strip>;
|
|
9433
9435
|
type HandlerConfig = z.infer<typeof handlerConfigSchema>;
|
|
9434
9436
|
declare const proxyRouteInsertSchema: z.ZodObject<{
|
|
9437
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9435
9438
|
custom_domain_id: z.ZodString;
|
|
9436
9439
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
9437
9440
|
match: z.ZodObject<{
|
|
@@ -9748,6 +9751,22 @@ declare const rolePermissionListSchema: z.ZodArray<z.ZodObject<{
|
|
|
9748
9751
|
}, z.core.$strip>>;
|
|
9749
9752
|
type RolePermissionList = z.infer<typeof rolePermissionListSchema>;
|
|
9750
9753
|
|
|
9754
|
+
declare const grantInsertSchema: z.ZodObject<{
|
|
9755
|
+
user_id: z.ZodString;
|
|
9756
|
+
clientID: z.ZodString;
|
|
9757
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
9758
|
+
scope: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9759
|
+
}, z.core.$strip>;
|
|
9760
|
+
type GrantInsert = z.input<typeof grantInsertSchema>;
|
|
9761
|
+
declare const grantSchema: z.ZodObject<{
|
|
9762
|
+
user_id: z.ZodString;
|
|
9763
|
+
clientID: z.ZodString;
|
|
9764
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
9765
|
+
scope: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9766
|
+
id: z.ZodString;
|
|
9767
|
+
}, z.core.$strip>;
|
|
9768
|
+
type Grant = z.infer<typeof grantSchema>;
|
|
9769
|
+
|
|
9751
9770
|
declare const userPermissionInsertSchema: z.ZodObject<{
|
|
9752
9771
|
user_id: z.ZodString;
|
|
9753
9772
|
resource_server_identifier: z.ZodString;
|
|
@@ -10897,6 +10916,22 @@ interface RolePermissionsAdapter {
|
|
|
10897
10916
|
list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
|
|
10898
10917
|
}
|
|
10899
10918
|
|
|
10919
|
+
interface ListGrantsResponse extends Totals {
|
|
10920
|
+
grants: Grant[];
|
|
10921
|
+
}
|
|
10922
|
+
interface GrantsAdapter {
|
|
10923
|
+
/**
|
|
10924
|
+
* Upsert a grant. If a row already exists for
|
|
10925
|
+
* (tenant_id, user_id, clientID, audience) the supplied scopes are unioned
|
|
10926
|
+
* into the stored scope array; otherwise a new row is created.
|
|
10927
|
+
*/
|
|
10928
|
+
create: (tenant_id: string, grant: GrantInsert) => Promise<Grant>;
|
|
10929
|
+
get: (tenant_id: string, user_id: string, clientID: string, audience?: string) => Promise<Grant | null>;
|
|
10930
|
+
list: (tenant_id: string, params?: ListParams) => Promise<ListGrantsResponse>;
|
|
10931
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
10932
|
+
removeByUser: (tenant_id: string, user_id: string) => Promise<boolean>;
|
|
10933
|
+
}
|
|
10934
|
+
|
|
10900
10935
|
interface UserPermissionsAdapter {
|
|
10901
10936
|
create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string): Promise<boolean>;
|
|
10902
10937
|
remove(tenant_id: string, user_id: string, permission: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">, organization_id?: string): Promise<boolean>;
|
|
@@ -11288,6 +11323,19 @@ interface DataAdapters {
|
|
|
11288
11323
|
refreshTokens: RefreshTokensAdapter;
|
|
11289
11324
|
resourceServers: ResourceServersAdapter;
|
|
11290
11325
|
rolePermissions: RolePermissionsAdapter;
|
|
11326
|
+
/**
|
|
11327
|
+
* Optional store for per-(user, client) OAuth grants. When set,
|
|
11328
|
+
* third-party clients (`is_first_party=false`) must have a grant
|
|
11329
|
+
* covering the requested non-basic scopes; without it, silent auth returns
|
|
11330
|
+
* `consent_required` and interactive auth redirects to the consent screen.
|
|
11331
|
+
* When undefined, the consent gate fails closed for third-party clients —
|
|
11332
|
+
* deployments that don't ship this adapter effectively can't run third-party
|
|
11333
|
+
* clients through the standard authorize flow.
|
|
11334
|
+
*
|
|
11335
|
+
* Auth0 parity: surfaced as `/api/v2/grants` (distinct from M2M
|
|
11336
|
+
* `/api/v2/client-grants`, which is `clientGrants` above).
|
|
11337
|
+
*/
|
|
11338
|
+
grants?: GrantsAdapter;
|
|
11291
11339
|
userPermissions: UserPermissionsAdapter;
|
|
11292
11340
|
roles: RolesAdapter;
|
|
11293
11341
|
sessions: SessionsAdapter;
|
|
@@ -11361,5 +11409,5 @@ interface DataAdapters {
|
|
|
11361
11409
|
};
|
|
11362
11410
|
}
|
|
11363
11411
|
|
|
11364
|
-
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, NodeType, RedirectTargetEnum, Strategy, StrategyType, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, analyticsColumnMetaSchema, analyticsGroupBySchema, analyticsIntervalSchema, analyticsQueryResponseSchema, analyticsResourceSchema, analyticsStatisticsSchema, analyticsUserTypeSchema, attackProtectionSchema, auditCategorySchema, auditEventInsertSchema, auditEventSchema, auth0ClientSchema, auth0FlowInsertSchema, auth0FlowSchema, auth0QuerySchema, auth0UpdateUserActionSchema, auth0UserResponseSchema, authParamsSchema, authenticationMethodInsertSchema, authenticationMethodSchema, authenticationMethodTypeSchema, baseUserSchema, blockComponentSchema, bordersSchema, brandingSchema, breachedPasswordDetectionSchema, bruteForceProtectionSchema, buttonComponentSchema, claimsRequestSchema, clientGrantInsertSchema, clientGrantListSchema, clientGrantSchema, clientInsertSchema, clientRegistrationTokenInsertSchema, clientRegistrationTokenSchema, clientRegistrationTokenTypeSchema, clientSchema, codeInsertSchema, codeSchema, codeTypeSchema, colorsSchema, componentMessageSchema, componentSchema, connectionInsertSchema, connectionOptionsSchema, connectionSchema, coordinatesSchema, createPassthroughAdapter, createWriteOnlyAdapter, customDomainCertificateUploadSchema, customDomainInsertSchema, customDomainSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, endingSchema, fieldComponentSchema, flowActionStepSchema, flowInsertSchema, flowSchema, fieldComponentSchema$1 as flowsFieldComponentSchema, flowNodeSchema$1 as flowsFlowNodeSchema, stepNodeSchema$1 as flowsStepNodeSchema, fontDetailsSchema, fontsSchema, formControlSchema, formInsertSchema, formNodeComponentDefinition, formNodeSchema, formSchema, genericComponentSchema, genericNodeSchema, getConnectionIdentifierConfig, getLogTypeCategory, getLogTypeDescription, handlerConfigSchema, hookCodeInsertSchema, hookCodeSchema, hookInsertSchema, hookSchema, hookTemplateId, hookTemplates, identitySchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isFieldComponent, isPlainObject, isWidgetComponent, jwksKeySchema, jwksSchema, legalComponentSchema, locationInfoSchema, logInsertSchema, logSchema, logStreamFilterSchema, logStreamInsertSchema, logStreamSchema, logStreamStatusSchema, logStreamTypeSchema, logTypeCategories, logTypeDescriptions, loginSessionAuthStrategySchema, loginSessionInsertSchema, loginSessionSchema, loginSessionStateSchema, matchSchema, migrationProviderTypeSchema, migrationSourceCredentialsSchema, migrationSourceInsertSchema, migrationSourceSchema, nodeSchema, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, screenLinkSchema, sessionInsertSchema, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, widgetComponentSchema, widgetSchema };
|
|
11365
|
-
export type { Action, ActionExecution, ActionExecutionError, ActionExecutionInsert, ActionExecutionLogEntry, ActionExecutionLogs, ActionExecutionResult, ActionExecutionStatus, ActionExecutionsAdapter, ActionInsert, ActionNode, ActionUpdate, ActionVersion, ActionVersionInsert, ActionVersionsAdapter, ActionsAdapter, ActiveUsersResponse, Actor, Address, AnalyticsAdapter, AnalyticsColumnMeta, AnalyticsFilters, AnalyticsGroupBy, AnalyticsInterval, AnalyticsQueryParams, AnalyticsQueryResponse, AnalyticsResource, AnalyticsUserType, AttackProtection, AuditCategory, AuditEvent, AuditEventInsert, Auth0Flow, Auth0FlowInsert, Auth0UpdateUserAction, AuthParams, AuthenticationMethod, AuthenticationMethodInsert, AuthenticationMethodType, AuthenticationMethodUpdate, AuthenticationMethodsAdapter, BaseUser, BlockComponent, BooleanField, Branding, BrandingAdapter, BreachedPasswordDetection, BruteForceProtection, ButtonComponent, CacheAdapter, CacheItem, CardsField, ChoiceField, ClaimsRequest, Client, ClientConnectionsAdapter, ClientGrant, ClientGrantInsert, ClientGrantList, ClientGrantsAdapter, ClientInsert, ClientRegistrationToken, ClientRegistrationTokenInsert, ClientRegistrationTokenType, ClientRegistrationTokensAdapter, ClientWithTenantId, ClientsAdapter, Code, CodeExecutionLog, CodeExecutionResult, CodeExecutor, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainWithTenantId, CustomDomainsAdapter, CustomField, CustomText, CustomTextAdapter, CustomTextEntry, DailyStats, DataAdapters, DateField, DividerComponent, DropdownField, EmailField, EmailProvider, EmailProvidersAdapter, EmailServiceAdapter, EmailServiceSendParams, EmailTemplate, EmailTemplateName, EmailTemplatesAdapter, EmailVerificationRules, EmailVerifyAction, Ending, FieldComponent, FileField, Flow, FlowActionStep, FlowActionType, FlowInsert, FlowNode, FlowsAdapter, FieldComponent$1 as FlowsFieldComponent, FlowNode$1 as FlowsFlowNode, StepNode$1 as FlowsStepNode, Form, FormControl, FormInsert, FormNode, FormNodeComponent, FormsAdapter, GenericComponent, GenericNode, GeoAdapter, GeoInfo, GmapsAddressWidget, HandlerConfig, Hook, HookCode, HookCodeAdapter, HookCodeInsert, HookInsert, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRolesResponse, ListSesssionsResponse, ListUserRolesResponse, ListUsersResponse, Log, LogCategory, LogInsert, LogStream, LogStreamInsert, LogStreamsAdapter, LogType, LoginSession, LoginSessionAuthStrategy, LoginSessionInsert, LoginSessionsAdapter, LogsDataAdapter, MigrationProviderType, MigrationSource, MigrationSourceCredentials, MigrationSourceInsert, MigrationSourcesAdapter, NextButtonComponent, Node, NumberField, Organization, OrganizationConnection, OrganizationConnectionInsert, OrganizationConnectionList, OrganizationConnectionsAdapter, OrganizationInsert, OrganizationsAdapter, OutboxAdapter, OutboxEvent, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, RouteMatch, RouterNode, RuntimeComponent, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent };
|
|
11412
|
+
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, NodeType, RedirectTargetEnum, Strategy, StrategyType, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, analyticsColumnMetaSchema, analyticsGroupBySchema, analyticsIntervalSchema, analyticsQueryResponseSchema, analyticsResourceSchema, analyticsStatisticsSchema, analyticsUserTypeSchema, attackProtectionSchema, auditCategorySchema, auditEventInsertSchema, auditEventSchema, auth0ClientSchema, auth0FlowInsertSchema, auth0FlowSchema, auth0QuerySchema, auth0UpdateUserActionSchema, auth0UserResponseSchema, authParamsSchema, authenticationMethodInsertSchema, authenticationMethodSchema, authenticationMethodTypeSchema, baseUserSchema, blockComponentSchema, bordersSchema, brandingSchema, breachedPasswordDetectionSchema, bruteForceProtectionSchema, buttonComponentSchema, claimsRequestSchema, clientGrantInsertSchema, clientGrantListSchema, clientGrantSchema, clientInsertSchema, clientRegistrationTokenInsertSchema, clientRegistrationTokenSchema, clientRegistrationTokenTypeSchema, clientSchema, codeInsertSchema, codeSchema, codeTypeSchema, colorsSchema, componentMessageSchema, componentSchema, connectionInsertSchema, connectionOptionsSchema, connectionSchema, coordinatesSchema, createPassthroughAdapter, createWriteOnlyAdapter, customDomainCertificateUploadSchema, customDomainInsertSchema, customDomainSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, endingSchema, fieldComponentSchema, flowActionStepSchema, flowInsertSchema, flowSchema, fieldComponentSchema$1 as flowsFieldComponentSchema, flowNodeSchema$1 as flowsFlowNodeSchema, stepNodeSchema$1 as flowsStepNodeSchema, fontDetailsSchema, fontsSchema, formControlSchema, formInsertSchema, formNodeComponentDefinition, formNodeSchema, formSchema, genericComponentSchema, genericNodeSchema, getConnectionIdentifierConfig, getLogTypeCategory, getLogTypeDescription, grantInsertSchema, grantSchema, handlerConfigSchema, hookCodeInsertSchema, hookCodeSchema, hookInsertSchema, hookSchema, hookTemplateId, hookTemplates, identitySchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isFieldComponent, isPlainObject, isWidgetComponent, jwksKeySchema, jwksSchema, legalComponentSchema, locationInfoSchema, logInsertSchema, logSchema, logStreamFilterSchema, logStreamInsertSchema, logStreamSchema, logStreamStatusSchema, logStreamTypeSchema, logTypeCategories, logTypeDescriptions, loginSessionAuthStrategySchema, loginSessionInsertSchema, loginSessionSchema, loginSessionStateSchema, matchSchema, migrationProviderTypeSchema, migrationSourceCredentialsSchema, migrationSourceInsertSchema, migrationSourceSchema, nodeSchema, openIDConfigurationSchema, organizationBrandingSchema, organizationConnectionInsertSchema, organizationConnectionListSchema, organizationConnectionSchema, organizationEnabledConnectionSchema, organizationInsertSchema, organizationSchema, organizationTokenQuotaSchema, pageBackgroundSchema, parseUserId, passwordInsertSchema, passwordSchema, profileDataSchema, promptScreenSchema, promptSettingSchema, proxyRouteInsertSchema, proxyRouteSchema, proxyRouteUpdateSchema, redirectActionSchema, refreshTokenInsertSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, screenLinkSchema, sessionInsertSchema, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, widgetComponentSchema, widgetSchema };
|
|
11413
|
+
export type { Action, ActionExecution, ActionExecutionError, ActionExecutionInsert, ActionExecutionLogEntry, ActionExecutionLogs, ActionExecutionResult, ActionExecutionStatus, ActionExecutionsAdapter, ActionInsert, ActionNode, ActionUpdate, ActionVersion, ActionVersionInsert, ActionVersionsAdapter, ActionsAdapter, ActiveUsersResponse, Actor, Address, AnalyticsAdapter, AnalyticsColumnMeta, AnalyticsFilters, AnalyticsGroupBy, AnalyticsInterval, AnalyticsQueryParams, AnalyticsQueryResponse, AnalyticsResource, AnalyticsUserType, AttackProtection, AuditCategory, AuditEvent, AuditEventInsert, Auth0Flow, Auth0FlowInsert, Auth0UpdateUserAction, AuthParams, AuthenticationMethod, AuthenticationMethodInsert, AuthenticationMethodType, AuthenticationMethodUpdate, AuthenticationMethodsAdapter, BaseUser, BlockComponent, BooleanField, Branding, BrandingAdapter, BreachedPasswordDetection, BruteForceProtection, ButtonComponent, CacheAdapter, CacheItem, CardsField, ChoiceField, ClaimsRequest, Client, ClientConnectionsAdapter, ClientGrant, ClientGrantInsert, ClientGrantList, ClientGrantsAdapter, ClientInsert, ClientRegistrationToken, ClientRegistrationTokenInsert, ClientRegistrationTokenType, ClientRegistrationTokensAdapter, ClientWithTenantId, ClientsAdapter, Code, CodeExecutionLog, CodeExecutionResult, CodeExecutor, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainWithTenantId, CustomDomainsAdapter, CustomField, CustomText, CustomTextAdapter, CustomTextEntry, DailyStats, DataAdapters, DateField, DividerComponent, DropdownField, EmailField, EmailProvider, EmailProvidersAdapter, EmailServiceAdapter, EmailServiceSendParams, EmailTemplate, EmailTemplateName, EmailTemplatesAdapter, EmailVerificationRules, EmailVerifyAction, Ending, FieldComponent, FileField, Flow, FlowActionStep, FlowActionType, FlowInsert, FlowNode, FlowsAdapter, FieldComponent$1 as FlowsFieldComponent, FlowNode$1 as FlowsFlowNode, StepNode$1 as FlowsStepNode, Form, FormControl, FormInsert, FormNode, FormNodeComponent, FormsAdapter, GenericComponent, GenericNode, GeoAdapter, GeoInfo, GmapsAddressWidget, Grant, GrantInsert, GrantsAdapter, HandlerConfig, Hook, HookCode, HookCodeAdapter, HookCodeInsert, HookInsert, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRolesResponse, ListSesssionsResponse, ListUserRolesResponse, ListUsersResponse, Log, LogCategory, LogInsert, LogStream, LogStreamInsert, LogStreamsAdapter, LogType, LoginSession, LoginSessionAuthStrategy, LoginSessionInsert, LoginSessionsAdapter, LogsDataAdapter, MigrationProviderType, MigrationSource, MigrationSourceCredentials, MigrationSourceInsert, MigrationSourcesAdapter, NextButtonComponent, Node, NumberField, Organization, OrganizationConnection, OrganizationConnectionInsert, OrganizationConnectionList, OrganizationConnectionsAdapter, OrganizationInsert, OrganizationsAdapter, OutboxAdapter, OutboxEvent, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, RouteMatch, RouterNode, RuntimeComponent, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent };
|
|
@@ -351,7 +351,7 @@ var t = e.object({
|
|
|
351
351
|
"oag"
|
|
352
352
|
]).default("regular_web").optional().openapi({ description: "The type of application this client represents" }),
|
|
353
353
|
logo_uri: e.string().url().optional().openapi({ description: "URL of the logo to display for this client. Recommended size is 150x150 pixels." }),
|
|
354
|
-
is_first_party: e.boolean().default(!
|
|
354
|
+
is_first_party: e.boolean().default(!0).openapi({ description: "Whether this client is a first party client (true) or not (false). First-party clients skip the consent screen; third-party clients require explicit user consent for non-basic scopes." }),
|
|
355
355
|
oidc_conformant: e.boolean().default(!0).openapi({ description: "Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)." }),
|
|
356
356
|
auth0_conformant: e.boolean().default(!0).openapi({ description: "Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)." }),
|
|
357
357
|
callbacks: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication." }),
|
|
@@ -1412,7 +1412,7 @@ var Kt = e.enum([
|
|
|
1412
1412
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string()),
|
|
1413
1413
|
client_id_metadata_document_supported: e.boolean().optional()
|
|
1414
1414
|
}), _n = /* @__PURE__ */ function(e) {
|
|
1415
|
-
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1415
|
+
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1416
1416
|
}({}), vn = e.nativeEnum(_n), yn = e.object({
|
|
1417
1417
|
strategy: e.string(),
|
|
1418
1418
|
strategy_type: e.string()
|
|
@@ -2181,6 +2181,7 @@ var $n = e.object({
|
|
|
2181
2181
|
type: e.string(),
|
|
2182
2182
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2183
2183
|
}), $ = e.object({
|
|
2184
|
+
id: e.string().optional(),
|
|
2184
2185
|
custom_domain_id: e.string(),
|
|
2185
2186
|
priority: e.number().int().default(100),
|
|
2186
2187
|
match: sr,
|
|
@@ -2190,7 +2191,10 @@ var $n = e.object({
|
|
|
2190
2191
|
tenant_id: e.string(),
|
|
2191
2192
|
created_at: e.string(),
|
|
2192
2193
|
updated_at: e.string()
|
|
2193
|
-
}), ur = $.partial().omit({
|
|
2194
|
+
}), ur = $.partial().omit({
|
|
2195
|
+
id: !0,
|
|
2196
|
+
custom_domain_id: !0
|
|
2197
|
+
}), dr = e.object({
|
|
2194
2198
|
name: e.string(),
|
|
2195
2199
|
enabled: e.boolean().optional().default(!0),
|
|
2196
2200
|
default_from_address: e.string().optional(),
|
|
@@ -2281,14 +2285,19 @@ var $n = e.object({
|
|
|
2281
2285
|
resource_server_identifier: e.string(),
|
|
2282
2286
|
permission_name: e.string()
|
|
2283
2287
|
}), wr = Cr.extend({ created_at: e.string() }), Tr = e.array(wr), Er = e.object({
|
|
2288
|
+
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2289
|
+
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2290
|
+
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2291
|
+
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2292
|
+
}), Dr = Er.extend({ id: e.string() }), Or = e.object({
|
|
2284
2293
|
user_id: e.string(),
|
|
2285
2294
|
resource_server_identifier: e.string(),
|
|
2286
2295
|
permission_name: e.string(),
|
|
2287
2296
|
organization_id: e.string().optional()
|
|
2288
|
-
}),
|
|
2297
|
+
}), kr = Or.extend({
|
|
2289
2298
|
tenant_id: e.string(),
|
|
2290
2299
|
created_at: e.string().optional()
|
|
2291
|
-
}),
|
|
2300
|
+
}), Ar = e.array(kr), jr = e.object({
|
|
2292
2301
|
user_id: e.string(),
|
|
2293
2302
|
resource_server_identifier: e.string(),
|
|
2294
2303
|
resource_server_name: e.string(),
|
|
@@ -2296,65 +2305,65 @@ var $n = e.object({
|
|
|
2296
2305
|
description: e.string().nullable().optional(),
|
|
2297
2306
|
created_at: e.string().optional(),
|
|
2298
2307
|
organization_id: e.string().optional()
|
|
2299
|
-
}),
|
|
2308
|
+
}), Mr = e.array(jr), Nr = e.object({
|
|
2300
2309
|
user_id: e.string(),
|
|
2301
2310
|
role_id: e.string(),
|
|
2302
2311
|
organization_id: e.string().optional()
|
|
2303
|
-
}),
|
|
2312
|
+
}), Pr = Nr.extend({
|
|
2304
2313
|
tenant_id: e.string(),
|
|
2305
2314
|
created_at: e.string().optional()
|
|
2306
|
-
}),
|
|
2315
|
+
}), Fr = e.array(Pr), Ir = e.object({
|
|
2307
2316
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2308
2317
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2309
2318
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2310
2319
|
is_system: e.boolean().optional(),
|
|
2311
2320
|
metadata: e.record(e.string(), e.any()).optional().openapi({ description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios." })
|
|
2312
|
-
}),
|
|
2321
|
+
}), Lr = Ir.extend({
|
|
2313
2322
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2314
2323
|
created_at: e.string().optional(),
|
|
2315
2324
|
updated_at: e.string().optional()
|
|
2316
|
-
}),
|
|
2325
|
+
}), Rr = e.array(Lr), zr = e.object({
|
|
2317
2326
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2318
2327
|
colors: e.object({
|
|
2319
2328
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2320
2329
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2321
2330
|
}).optional()
|
|
2322
|
-
}).optional(),
|
|
2331
|
+
}).optional(), Br = e.object({
|
|
2323
2332
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2324
2333
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2325
2334
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2326
2335
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2327
|
-
}),
|
|
2336
|
+
}), Vr = e.object({ client_credentials: e.object({
|
|
2328
2337
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2329
2338
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2330
2339
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2331
|
-
}).optional() }).optional(),
|
|
2340
|
+
}).optional() }).optional(), Hr = e.object({
|
|
2332
2341
|
id: e.string().optional(),
|
|
2333
2342
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
2334
2343
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2335
|
-
branding:
|
|
2344
|
+
branding: zr,
|
|
2336
2345
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2337
|
-
enabled_connections: e.array(
|
|
2338
|
-
token_quota:
|
|
2339
|
-
}),
|
|
2346
|
+
enabled_connections: e.array(Br).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2347
|
+
token_quota: Vr
|
|
2348
|
+
}), Ur = Hr.extend(t.shape).extend({
|
|
2340
2349
|
id: e.string(),
|
|
2341
2350
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2342
|
-
}),
|
|
2351
|
+
}), Wr = e.object({
|
|
2343
2352
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2344
2353
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2345
2354
|
show_as_button: e.boolean().optional().default(!0),
|
|
2346
2355
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2347
|
-
}),
|
|
2356
|
+
}), Gr = Wr.extend({
|
|
2348
2357
|
connection: e.object({
|
|
2349
2358
|
name: e.string().optional(),
|
|
2350
2359
|
strategy: e.string().optional()
|
|
2351
2360
|
}).optional(),
|
|
2352
2361
|
created_at: e.string().optional(),
|
|
2353
2362
|
updated_at: e.string().optional()
|
|
2354
|
-
}),
|
|
2363
|
+
}), Kr = e.array(Gr), qr = e.object({
|
|
2355
2364
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2356
2365
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2357
|
-
}),
|
|
2366
|
+
}), Jr = qr.extend(t.shape).extend({ id: e.string() }), Yr = e.object({
|
|
2358
2367
|
idle_session_lifetime: e.number().default(72),
|
|
2359
2368
|
session_lifetime: e.number().default(168),
|
|
2360
2369
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2433,7 +2442,7 @@ var $n = e.object({
|
|
|
2433
2442
|
}).optional(),
|
|
2434
2443
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2435
2444
|
}).optional()
|
|
2436
|
-
}),
|
|
2445
|
+
}), Xr = e.object({
|
|
2437
2446
|
date: e.string().openapi({
|
|
2438
2447
|
description: "Date these events occurred in ISO 8601 format",
|
|
2439
2448
|
example: "2025-12-19"
|
|
@@ -2458,55 +2467,55 @@ var $n = e.object({
|
|
|
2458
2467
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2459
2468
|
example: "2025-12-19T00:00:00.000Z"
|
|
2460
2469
|
})
|
|
2461
|
-
}),
|
|
2470
|
+
}), Zr = e.number().openapi({
|
|
2462
2471
|
description: "Number of active users in the last 30 days",
|
|
2463
2472
|
example: 1234
|
|
2464
|
-
}),
|
|
2473
|
+
}), Qr = e.enum([
|
|
2465
2474
|
"active-users",
|
|
2466
2475
|
"logins",
|
|
2467
2476
|
"signups",
|
|
2468
2477
|
"refresh-tokens",
|
|
2469
2478
|
"sessions"
|
|
2470
|
-
]),
|
|
2479
|
+
]), $r = e.enum([
|
|
2471
2480
|
"hour",
|
|
2472
2481
|
"day",
|
|
2473
2482
|
"week",
|
|
2474
2483
|
"month"
|
|
2475
|
-
]),
|
|
2484
|
+
]), ei = e.enum([
|
|
2476
2485
|
"time",
|
|
2477
2486
|
"connection",
|
|
2478
2487
|
"client_id",
|
|
2479
2488
|
"user_type",
|
|
2480
2489
|
"event"
|
|
2481
|
-
]),
|
|
2490
|
+
]), ti = e.enum([
|
|
2482
2491
|
"password",
|
|
2483
2492
|
"social",
|
|
2484
2493
|
"passwordless",
|
|
2485
2494
|
"enterprise"
|
|
2486
|
-
]),
|
|
2495
|
+
]), ni = e.object({
|
|
2487
2496
|
name: e.string(),
|
|
2488
2497
|
type: e.string()
|
|
2489
|
-
}),
|
|
2498
|
+
}), ri = e.object({
|
|
2490
2499
|
elapsed: e.number(),
|
|
2491
2500
|
rows_read: e.number().optional(),
|
|
2492
2501
|
bytes_read: e.number().optional()
|
|
2493
|
-
}),
|
|
2494
|
-
meta: e.array(
|
|
2502
|
+
}), ii = e.object({
|
|
2503
|
+
meta: e.array(ni),
|
|
2495
2504
|
data: e.array(e.record(e.string(), e.any())),
|
|
2496
2505
|
rows: e.number(),
|
|
2497
2506
|
rows_before_limit_at_least: e.number().optional(),
|
|
2498
|
-
statistics:
|
|
2499
|
-
}),
|
|
2507
|
+
statistics: ri.optional()
|
|
2508
|
+
}), ai = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), oi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2500
2509
|
type: "object",
|
|
2501
2510
|
additionalProperties: {
|
|
2502
2511
|
type: "object",
|
|
2503
2512
|
additionalProperties: { type: "string" }
|
|
2504
2513
|
}
|
|
2505
|
-
}),
|
|
2506
|
-
prompt:
|
|
2514
|
+
}), si = e.object({
|
|
2515
|
+
prompt: ai,
|
|
2507
2516
|
language: e.string(),
|
|
2508
|
-
custom_text:
|
|
2509
|
-
}),
|
|
2517
|
+
custom_text: oi
|
|
2518
|
+
}), ci = {
|
|
2510
2519
|
EMAIL: "email",
|
|
2511
2520
|
SMS: "sms",
|
|
2512
2521
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2521,11 +2530,11 @@ var $n = e.object({
|
|
|
2521
2530
|
SAMLP: "samlp",
|
|
2522
2531
|
WAAD: "waad",
|
|
2523
2532
|
ADFS: "adfs"
|
|
2524
|
-
},
|
|
2533
|
+
}, li = {
|
|
2525
2534
|
DATABASE: "database",
|
|
2526
2535
|
SOCIAL: "social",
|
|
2527
2536
|
PASSWORDLESS: "passwordless"
|
|
2528
|
-
},
|
|
2537
|
+
}, ui = e.enum([
|
|
2529
2538
|
"phone",
|
|
2530
2539
|
"totp",
|
|
2531
2540
|
"email",
|
|
@@ -2533,9 +2542,9 @@ var $n = e.object({
|
|
|
2533
2542
|
"webauthn-roaming",
|
|
2534
2543
|
"webauthn-platform",
|
|
2535
2544
|
"passkey"
|
|
2536
|
-
]),
|
|
2545
|
+
]), di = e.object({
|
|
2537
2546
|
user_id: e.string(),
|
|
2538
|
-
type:
|
|
2547
|
+
type: ui,
|
|
2539
2548
|
phone_number: e.string().optional(),
|
|
2540
2549
|
totp_secret: e.string().optional(),
|
|
2541
2550
|
credential_id: e.string().optional(),
|
|
@@ -2546,7 +2555,7 @@ var $n = e.object({
|
|
|
2546
2555
|
friendly_name: e.string().optional(),
|
|
2547
2556
|
confirmed: e.boolean().default(!1)
|
|
2548
2557
|
});
|
|
2549
|
-
function
|
|
2558
|
+
function fi(t, n) {
|
|
2550
2559
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2551
2560
|
code: e.ZodIssueCode.custom,
|
|
2552
2561
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2569,14 +2578,14 @@ function ui(t, n) {
|
|
|
2569
2578
|
path: ["public_key"]
|
|
2570
2579
|
}));
|
|
2571
2580
|
}
|
|
2572
|
-
var
|
|
2581
|
+
var pi = di.superRefine(fi), mi = di.extend({
|
|
2573
2582
|
id: e.string(),
|
|
2574
2583
|
created_at: e.string(),
|
|
2575
2584
|
updated_at: e.string()
|
|
2576
|
-
}).superRefine(
|
|
2585
|
+
}).superRefine(fi);
|
|
2577
2586
|
//#endregion
|
|
2578
2587
|
//#region src/utils/user-id.ts
|
|
2579
|
-
function
|
|
2588
|
+
function hi(e) {
|
|
2580
2589
|
let [t, n] = e.split("|");
|
|
2581
2590
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2582
2591
|
return {
|
|
@@ -2586,7 +2595,7 @@ function pi(e) {
|
|
|
2586
2595
|
}
|
|
2587
2596
|
//#endregion
|
|
2588
2597
|
//#region src/utils/passthrough.ts
|
|
2589
|
-
function
|
|
2598
|
+
function gi(e) {
|
|
2590
2599
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2591
2600
|
"create",
|
|
2592
2601
|
"rawCreate",
|
|
@@ -2620,12 +2629,12 @@ function mi(e) {
|
|
|
2620
2629
|
} : i.bind(e) : i;
|
|
2621
2630
|
} });
|
|
2622
2631
|
}
|
|
2623
|
-
function
|
|
2632
|
+
function _i(e) {
|
|
2624
2633
|
return e;
|
|
2625
2634
|
}
|
|
2626
2635
|
//#endregion
|
|
2627
2636
|
//#region src/utils/connection-attributes.ts
|
|
2628
|
-
function
|
|
2637
|
+
function vi(e) {
|
|
2629
2638
|
let t = e?.options;
|
|
2630
2639
|
if (!t) return {
|
|
2631
2640
|
usernameIdentifierActive: !1,
|
|
@@ -2648,8 +2657,8 @@ function gi(e) {
|
|
|
2648
2657
|
}
|
|
2649
2658
|
//#endregion
|
|
2650
2659
|
//#region src/utils/guards.ts
|
|
2651
|
-
function
|
|
2660
|
+
function yi(e) {
|
|
2652
2661
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2653
2662
|
}
|
|
2654
2663
|
//#endregion
|
|
2655
|
-
export { he as Auth0ActionEnum, Dn as Auth0Client, Re as AuthorizationResponseMode, Le as AuthorizationResponseType, ze as CodeChallengeMethod, M as ComponentCategory, j as ComponentType, ge as EmailActionEnum, Mt as FORM_FIELD_TYPES, me as FlowActionTypeEnum, Zn as GrantType, On as LocationInfo, X as LogTypes, _n as LoginSessionState, Oe as NodeType, g as RedirectTargetEnum,
|
|
2664
|
+
export { he as Auth0ActionEnum, Dn as Auth0Client, Re as AuthorizationResponseMode, Le as AuthorizationResponseType, ze as CodeChallengeMethod, M as ComponentCategory, j as ComponentType, ge as EmailActionEnum, Mt as FORM_FIELD_TYPES, me as FlowActionTypeEnum, Zn as GrantType, On as LocationInfo, X as LogTypes, _n as LoginSessionState, Oe as NodeType, g as RedirectTargetEnum, ci as Strategy, li as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, Ae as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, u as actionVersionInsertSchema, oe as actionVersionSchema, Zr as activeUsersResponseSchema, ce as actorSchema, x as addressSchema, ni as analyticsColumnMetaSchema, ei as analyticsGroupBySchema, $r as analyticsIntervalSchema, ii as analyticsQueryResponseSchema, Qr as analyticsResourceSchema, ri as analyticsStatisticsSchema, ti as analyticsUserTypeSchema, Hn as attackProtectionSchema, se as auditCategorySchema, f as auditEventInsertSchema, pe as auditEventSchema, d as auth0ClientSchema, Ie as auth0FlowInsertSchema, Fe as auth0FlowSchema, ve as auth0QuerySchema, m as auth0UpdateUserActionSchema, xe as auth0UserResponseSchema, He as authParamsSchema, pi as authenticationMethodInsertSchema, mi as authenticationMethodSchema, ui as authenticationMethodTypeSchema, S as baseUserSchema, kt as blockComponentSchema, $n as bordersSchema, Ue as brandingSchema, zn as breachedPasswordDetectionSchema, Bn as bruteForceProtectionSchema, F as buttonComponentSchema, Ve as claimsRequestSchema, E as clientGrantInsertSchema, Ee as clientGrantListSchema, D as clientGrantSchema, T as clientInsertSchema, k as clientRegistrationTokenInsertSchema, De as clientRegistrationTokenSchema, O as clientRegistrationTokenTypeSchema, Te as clientSchema, Ge as codeInsertSchema, Ke as codeSchema, We as codeTypeSchema, er as colorsSchema, Bt as componentMessageSchema, z as componentSchema, Je as connectionInsertSchema, qe as connectionOptionsSchema, Ye as connectionSchema, A as coordinatesSchema, gi as createPassthroughAdapter, _i as createWriteOnlyAdapter, et as customDomainCertificateUploadSchema, Xe as customDomainInsertSchema, Qe as customDomainSchema, $e as customDomainWithTenantIdSchema, si as customTextEntrySchema, oi as customTextSchema, Xr as dailyStatsSchema, dr as emailProviderSchema, fr as emailTemplateNameSchema, pr as emailTemplateSchema, p as emailVerificationRulesSchema, h as emailVerifyActionSchema, Pe as endingSchema, jt as fieldComponentSchema, v as flowActionStepSchema, y as flowInsertSchema, _e as flowSchema, L as flowsFieldComponentSchema, ke as flowsFlowNodeSchema, B as flowsStepNodeSchema, Q as fontDetailsSchema, tr as fontsSchema, Nt as formControlSchema, Rt as formInsertSchema, K as formNodeComponentDefinition, Lt as formNodeSchema, zt as formSchema, R as genericComponentSchema, je as genericNodeSchema, vi as getConnectionIdentifierConfig, En as getLogTypeCategory, Tn as getLogTypeDescription, Er as grantInsertSchema, Dr as grantSchema, cr as handlerConfigSchema, cn as hookCodeInsertSchema, ln as hookCodeSchema, tn as hookInsertSchema, sn as hookSchema, J as hookTemplateId, Xt as hookTemplates, b as identitySchema, fn as inviteInsertSchema, pn as inviteSchema, dn as inviteeSchema, un as inviterSchema, Ut as isBlockComponent, Gt as isFieldComponent, yi as isPlainObject, Wt as isWidgetComponent, hn as jwksKeySchema, mn as jwksSchema, I as legalComponentSchema, fe as locationInfoSchema, kn as logInsertSchema, An as logSchema, Mn as logStreamFilterSchema, Nn as logStreamInsertSchema, Pn as logStreamSchema, Z as logStreamStatusSchema, jn as logStreamTypeSchema, wn as logTypeCategories, Cn as logTypeDescriptions, yn as loginSessionAuthStrategySchema, bn as loginSessionInsertSchema, xn as loginSessionSchema, vn as loginSessionStateSchema, sr as matchSchema, Fn as migrationProviderTypeSchema, In as migrationSourceCredentialsSchema, Ln as migrationSourceInsertSchema, Rn as migrationSourceSchema, Me as nodeSchema, gn as openIDConfigurationSchema, zr as organizationBrandingSchema, Wr as organizationConnectionInsertSchema, Kr as organizationConnectionListSchema, Gr as organizationConnectionSchema, Br as organizationEnabledConnectionSchema, Hr as organizationInsertSchema, Ur as organizationSchema, Vr as organizationTokenQuotaSchema, nr as pageBackgroundSchema, hi as parseUserId, Un as passwordInsertSchema, Wn as passwordSchema, be as profileDataSchema, ai as promptScreenSchema, or as promptSettingSchema, $ as proxyRouteInsertSchema, lr as proxyRouteSchema, ur as proxyRouteUpdateSchema, _ as redirectActionSchema, mr as refreshTokenInsertSchema, hr as refreshTokenSchema, ue as requestContextSchema, br as resourceServerInsertSchema, Sr as resourceServerListSchema, yr as resourceServerOptionsSchema, xr as resourceServerSchema, vr as resourceServerScopeSchema, de as responseContextSchema, P as richTextComponentSchema, Ir as roleInsertSchema, Rr as roleListSchema, Cr as rolePermissionInsertSchema, Tr as rolePermissionListSchema, wr as rolePermissionSchema, Lr as roleSchema, Vt as screenLinkSchema, Kn as sessionInsertSchema, qn as sessionSchema, Jn as signingKeySchema, _r as smsProviderSchema, gr as smsSendParamsSchema, Ne as startSchema, Vn as suspiciousIpThrottlingSchema, le as targetSchema, Yn as tenantInsertSchema, Xn as tenantSchema, Yr as tenantSettingsSchema, ir as themeInsertSchema, ar as themeSchema, Qn as tokenResponseSchema, ye as totalsSchema, Ht as uiScreenSchema, C as userInsertSchema, qr as userOrganizationInsertSchema, Jr as userOrganizationSchema, Or as userPermissionInsertSchema, Ar as userPermissionListSchema, kr as userPermissionSchema, Mr as userPermissionWithDetailsListSchema, jr as userPermissionWithDetailsSchema, Se as userResponseSchema, Nr as userRoleInsertSchema, Fr as userRoleListSchema, Pr as userRoleSchema, w as userSchema, Ze as verificationMethodsSchema, At as widgetComponentSchema, rr as widgetSchema };
|