@authhero/adapter-interfaces 4.7.0 → 4.8.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 +62 -2
- package/dist/adapter-interfaces.mjs +69 -47
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Analytics.d.ts +10 -1
- package/dist/types/types/Analytics.d.ts +45 -0
- package/dist/types/utils/session-retention.d.ts +7 -1
- package/package.json +1 -1
|
@@ -10967,6 +10967,36 @@ interface SessionRetentionResponse {
|
|
|
10967
10967
|
to: string;
|
|
10968
10968
|
cohorts: SessionRetentionCohort[];
|
|
10969
10969
|
}
|
|
10970
|
+
interface RefreshTokenRetentionParams {
|
|
10971
|
+
/** Number of weekly cohorts to include, counting back from the current week */
|
|
10972
|
+
weeks: number;
|
|
10973
|
+
/** Optional filter to one or more client IDs */
|
|
10974
|
+
client_id?: string[];
|
|
10975
|
+
}
|
|
10976
|
+
interface RefreshTokenRetentionCohort {
|
|
10977
|
+
/** ISO date (UTC Monday) the cohort week starts on */
|
|
10978
|
+
cohort: string;
|
|
10979
|
+
/**
|
|
10980
|
+
* Refresh-token families created during the cohort week. Rotating tokens
|
|
10981
|
+
* mint a new row on every exchange, so the retention unit is the rotation
|
|
10982
|
+
* family (a non-rotating token is a family of one).
|
|
10983
|
+
*/
|
|
10984
|
+
tokens: number;
|
|
10985
|
+
/**
|
|
10986
|
+
* active[k] = token families still active k weeks after the cohort week,
|
|
10987
|
+
* i.e. last exchanged during week k or later. active[0] === tokens. The
|
|
10988
|
+
* array is truncated at the current week.
|
|
10989
|
+
*/
|
|
10990
|
+
active: number[];
|
|
10991
|
+
}
|
|
10992
|
+
interface RefreshTokenRetentionResponse {
|
|
10993
|
+
interval: "week";
|
|
10994
|
+
/** Inclusive lower bound of the first cohort week */
|
|
10995
|
+
from: string;
|
|
10996
|
+
/** Timestamp the query ran at; the last cohort week is still in progress */
|
|
10997
|
+
to: string;
|
|
10998
|
+
cohorts: RefreshTokenRetentionCohort[];
|
|
10999
|
+
}
|
|
10970
11000
|
declare const sessionRetentionCohortSchema: z.ZodObject<{
|
|
10971
11001
|
cohort: z.ZodString;
|
|
10972
11002
|
sessions: z.ZodNumber;
|
|
@@ -10982,6 +11012,21 @@ declare const sessionRetentionResponseSchema: z.ZodObject<{
|
|
|
10982
11012
|
active: z.ZodArray<z.ZodNumber>;
|
|
10983
11013
|
}, z.core.$strip>>;
|
|
10984
11014
|
}, z.core.$strip>;
|
|
11015
|
+
declare const refreshTokenRetentionCohortSchema: z.ZodObject<{
|
|
11016
|
+
cohort: z.ZodString;
|
|
11017
|
+
tokens: z.ZodNumber;
|
|
11018
|
+
active: z.ZodArray<z.ZodNumber>;
|
|
11019
|
+
}, z.core.$strip>;
|
|
11020
|
+
declare const refreshTokenRetentionResponseSchema: z.ZodObject<{
|
|
11021
|
+
interval: z.ZodLiteral<"week">;
|
|
11022
|
+
from: z.ZodString;
|
|
11023
|
+
to: z.ZodString;
|
|
11024
|
+
cohorts: z.ZodArray<z.ZodObject<{
|
|
11025
|
+
cohort: z.ZodString;
|
|
11026
|
+
tokens: z.ZodNumber;
|
|
11027
|
+
active: z.ZodArray<z.ZodNumber>;
|
|
11028
|
+
}, z.core.$strip>>;
|
|
11029
|
+
}, z.core.$strip>;
|
|
10985
11030
|
declare const analyticsColumnMetaSchema: z.ZodObject<{
|
|
10986
11031
|
name: z.ZodString;
|
|
10987
11032
|
type: z.ZodString;
|
|
@@ -11523,6 +11568,12 @@ interface SessionRetentionRawRow {
|
|
|
11523
11568
|
* enough to reconstruct the whole retention triangle.
|
|
11524
11569
|
*/
|
|
11525
11570
|
declare function buildSessionRetention(rows: SessionRetentionRawRow[], weeks: number, now?: number): SessionRetentionResponse;
|
|
11571
|
+
/**
|
|
11572
|
+
* Same fold as {@link buildSessionRetention}, but the rows count refresh-token
|
|
11573
|
+
* families (created-week = the family's first token, used-week = its last
|
|
11574
|
+
* exchange) and the per-cohort total is reported as `tokens`.
|
|
11575
|
+
*/
|
|
11576
|
+
declare function buildRefreshTokenRetention(rows: SessionRetentionRawRow[], weeks: number, now?: number): RefreshTokenRetentionResponse;
|
|
11526
11577
|
|
|
11527
11578
|
interface ListActionsResponse extends Totals {
|
|
11528
11579
|
actions: Action[];
|
|
@@ -12242,6 +12293,15 @@ interface AnalyticsAdapter {
|
|
|
12242
12293
|
* route responds 501 when it is absent.
|
|
12243
12294
|
*/
|
|
12244
12295
|
sessionRetention?(tenantId: string, params: SessionRetentionParams): Promise<SessionRetentionResponse>;
|
|
12296
|
+
/**
|
|
12297
|
+
* Weekly refresh-token cohort retention, computed from the refresh_tokens
|
|
12298
|
+
* table. Rotating tokens mint a new row per exchange, so rows are grouped
|
|
12299
|
+
* into rotation families before folding: a family's cohort week comes from
|
|
12300
|
+
* its first token's created_at_ts and its last-active week from the max of
|
|
12301
|
+
* last_exchanged_at_ts/created_at_ts across the family. Optional for the
|
|
12302
|
+
* same reason as sessionRetention.
|
|
12303
|
+
*/
|
|
12304
|
+
refreshTokenRetention?(tenantId: string, params: RefreshTokenRetentionParams): Promise<RefreshTokenRetentionResponse>;
|
|
12245
12305
|
}
|
|
12246
12306
|
|
|
12247
12307
|
interface UniversalLoginTemplate {
|
|
@@ -12690,5 +12750,5 @@ interface DataAdapters {
|
|
|
12690
12750
|
};
|
|
12691
12751
|
}
|
|
12692
12752
|
|
|
12693
|
-
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, DATABASE_CONNECTION_STRATEGY, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, MONDAY_EPOCH_SHIFT_MS, NodeType, RedirectTargetEnum, Strategy, StrategyType, TRIGGER_API_SHAPES, WEEK_MS, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, allowedTriggersForHook, 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, buildSessionRetention, 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, customDomainUpdateSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, decodeBase32, decodeBase64, decodeBase64Url, decodeBase64UrlString, decodeCursor, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, encodeBase32, encodeBase64, encodeBase64Url, encodeBase64UrlString, encodeCursor, encodeHex, 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, hookPageId, hookSchema, hookTemplateId, hookTemplates, identitySchema, importMetadataSchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isDatabaseConnectionStrategy, 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, rolloutInsertSchema, rolloutKindSchema, rolloutSchema, rolloutStatusSchema, rolloutUpdateSchema, sanitizeLuceneQuery, scimConfigurationInsertSchema, scimConfigurationSchema, scimExternalIdInsertSchema, scimExternalIdSchema, scimMappingEntrySchema, scimTokenInsertSchema, scimTokenSchema, screenLinkSchema, sessionInsertSchema, sessionRetentionCohortSchema, sessionRetentionResponseSchema, sessionRetentionWindow, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantOperationEngineSchema, tenantOperationEventInsertSchema, tenantOperationEventOutcomeSchema, tenantOperationEventSchema, tenantOperationInsertSchema, tenantOperationKindSchema, tenantOperationSchema, tenantOperationStatusSchema, tenantOperationUpdateSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userActivitySchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, weekIndex, weekStartMs, widgetComponentSchema, widgetSchema };
|
|
12694
|
-
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, CodeField, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateOptions, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CursorPayload, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainUpdate, 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, HookPageId, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, ImportMetadata, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, LinkCandidate, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRoleUsersResponse, ListRolesResponse, ListRolloutsResult, ListSesssionsResponse, ListTenantOperationEventsResult, ListTenantOperationsParams, ListTenantOperationsResult, 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, OutboxEventInsert, 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, Rollout, RolloutInsert, RolloutKind, RolloutStatus, RolloutUpdate, RolloutsAdapter, RouteMatch, RouterNode, RuntimeComponent, ScimConfiguration, ScimConfigurationInsert, ScimConfigurationsAdapter, ScimExternalId, ScimExternalIdInsert, ScimExternalIdsAdapter, ScimMappingEntry, ScimToken, ScimTokenInsert, ScimTokensAdapter, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionRetentionCohort, SessionRetentionParams, SessionRetentionRawRow, SessionRetentionResponse, SessionRetentionWindow, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantOperation, TenantOperationEngine, TenantOperationEvent, TenantOperationEventInsert, TenantOperationEventOutcome, TenantOperationEventsAdapter, TenantOperationInsert, TenantOperationKind, TenantOperationStatus, TenantOperationUpdate, TenantOperationsAdapter, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserActivity, UserActivityAdapter, UserActivityUpdate, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent, WriteOptions };
|
|
12753
|
+
export { Auth0ActionEnum, Auth0Client, AuthorizationResponseMode, AuthorizationResponseType, CodeChallengeMethod, ComponentCategory, ComponentType, DATABASE_CONNECTION_STRATEGY, EmailActionEnum, FORM_FIELD_TYPES, FlowActionTypeEnum, GrantType, LocationInfo, LogTypes, LoginSessionState, MONDAY_EPOCH_SHIFT_MS, NodeType, RedirectTargetEnum, Strategy, StrategyType, TRIGGER_API_SHAPES, WEEK_MS, actionDependencySchema, actionExecutionErrorSchema, actionExecutionInsertSchema, actionExecutionLogEntrySchema, actionExecutionLogsSchema, actionExecutionResultSchema, actionExecutionSchema, actionExecutionStatusSchema, actionExecutionTriggerIdSchema, actionInsertSchema, actionNodeSchema, actionSchema, actionSecretSchema, actionTriggerSchema, actionUpdateSchema, actionVersionInsertSchema, actionVersionSchema, activeUsersResponseSchema, actorSchema, addressSchema, allowedTriggersForHook, 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, buildRefreshTokenRetention, buildSessionRetention, 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, customDomainUpdateSchema, customDomainWithTenantIdSchema, customTextEntrySchema, customTextSchema, dailyStatsSchema, decodeBase32, decodeBase64, decodeBase64Url, decodeBase64UrlString, decodeCursor, emailProviderSchema, emailTemplateNameSchema, emailTemplateSchema, emailVerificationRulesSchema, emailVerifyActionSchema, encodeBase32, encodeBase64, encodeBase64Url, encodeBase64UrlString, encodeCursor, encodeHex, 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, hookPageId, hookSchema, hookTemplateId, hookTemplates, identitySchema, importMetadataSchema, inviteInsertSchema, inviteSchema, inviteeSchema, inviterSchema, isBlockComponent, isDatabaseConnectionStrategy, 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, refreshTokenRetentionCohortSchema, refreshTokenRetentionResponseSchema, refreshTokenSchema, requestContextSchema, resourceServerInsertSchema, resourceServerListSchema, resourceServerOptionsSchema, resourceServerSchema, resourceServerScopeSchema, responseContextSchema, richTextComponentSchema, roleInsertSchema, roleListSchema, rolePermissionInsertSchema, rolePermissionListSchema, rolePermissionSchema, roleSchema, rolloutInsertSchema, rolloutKindSchema, rolloutSchema, rolloutStatusSchema, rolloutUpdateSchema, sanitizeLuceneQuery, scimConfigurationInsertSchema, scimConfigurationSchema, scimExternalIdInsertSchema, scimExternalIdSchema, scimMappingEntrySchema, scimTokenInsertSchema, scimTokenSchema, screenLinkSchema, sessionInsertSchema, sessionRetentionCohortSchema, sessionRetentionResponseSchema, sessionRetentionWindow, sessionSchema, signingKeySchema, smsProviderSchema, smsSendParamsSchema, startSchema, suspiciousIpThrottlingSchema, targetSchema, tenantInsertSchema, tenantOperationEngineSchema, tenantOperationEventInsertSchema, tenantOperationEventOutcomeSchema, tenantOperationEventSchema, tenantOperationInsertSchema, tenantOperationKindSchema, tenantOperationSchema, tenantOperationStatusSchema, tenantOperationUpdateSchema, tenantSchema, tenantSettingsSchema, themeInsertSchema, themeSchema, tokenResponseSchema, totalsSchema, uiScreenSchema, userActivitySchema, userInsertSchema, userOrganizationInsertSchema, userOrganizationSchema, userPermissionInsertSchema, userPermissionListSchema, userPermissionSchema, userPermissionWithDetailsListSchema, userPermissionWithDetailsSchema, userResponseSchema, userRoleInsertSchema, userRoleListSchema, userRoleSchema, userSchema, verificationMethodsSchema, weekIndex, weekStartMs, widgetComponentSchema, widgetSchema };
|
|
12754
|
+
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, CodeField, CodeInsert, CodeResponse, CodeType, CodesAdapter, Component, ComponentMessage, Connection, ConnectionInsert, ConnectionsAdapter, ContinuationScope, Coordinates, CountryField, CreateOptions, CreateServiceTokenFn, CreateServiceTokenParams, CreateTenantParams, CursorPayload, CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainUpdate, 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, HookPageId, HookTemplateId, HooksAdapter, HtmlComponent, Identity, ImageComponent, ImportMetadata, Invite, InviteInsert, Invitee, Inviter, InvitesAdapter, JumpButtonComponent, Jwk, Jwks, KeysAdapter, LegalComponent, LegalField, LinkCandidate, ListActionVersionsResponse, ListActionsResponse, ListClientGrantsResponse, ListCodesResponse, ListConnectionsResponse, ListFailedEventsResponse, ListFlowsResponse, ListFormsResponse, ListGrantsResponse, ListHooksResponse, ListInvitesResponse, ListKeysResponse, ListOrganizationsResponse, ListParams, ListProxyRoutesParams, ListProxyRoutesResult, ListRefreshTokenResponse, ListResourceServersResponse, ListRoleUsersResponse, ListRolesResponse, ListRolloutsResult, ListSesssionsResponse, ListTenantOperationEventsResult, ListTenantOperationsParams, ListTenantOperationsResult, 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, OutboxEventInsert, PassthroughConfig, Password, PasswordField, PasswordInsert, PasswordsAdapter, PaymentField, PostUsersBody, PreviousButtonComponent, PromptScreen, PromptSetting, PromptSettingsAdapter, ProxyRoute, ProxyRouteInsert, ProxyRouteUpdate, ProxyRoutesAdapter, RateLimitAdapter, RateLimitDecision, RateLimitScope, RecaptchaWidget, RedirectAction, RedirectTarget, RefreshToken, RefreshTokenInsert, RefreshTokenRetentionCohort, RefreshTokenRetentionParams, RefreshTokenRetentionResponse, RefreshTokensAdapter, RequestContext, ResendButtonComponent, ResourceServer, ResourceServerInsert, ResourceServerList, ResourceServerOptions, ResourceServerScope, ResourceServersAdapter, ResponseContext, RichTextComponent, Role, RoleInsert, RoleList, RolePermission, RolePermissionInsert, RolePermissionList, RolePermissionsAdapter, RolesAdapter, Rollout, RolloutInsert, RolloutKind, RolloutStatus, RolloutUpdate, RolloutsAdapter, RouteMatch, RouterNode, RuntimeComponent, ScimConfiguration, ScimConfigurationInsert, ScimConfigurationsAdapter, ScimExternalId, ScimExternalIdInsert, ScimExternalIdsAdapter, ScimMappingEntry, ScimToken, ScimTokenInsert, ScimTokensAdapter, ScreenLink, SecondaryAdapterConfig, Session, SessionCleanupParams, SessionInsert, SessionRetentionCohort, SessionRetentionParams, SessionRetentionRawRow, SessionRetentionResponse, SessionRetentionWindow, SessionsAdapter, SigningKey, SmsProvider, SmsSendParams, SmsServiceAdapter, SmsServiceSendParams, SocialField, Start, StatsAdapter, StatsListParams, StepNode, SuspiciousIpThrottling, Target, TelField, Tenant, TenantOperation, TenantOperationEngine, TenantOperationEvent, TenantOperationEventInsert, TenantOperationEventOutcome, TenantOperationEventsAdapter, TenantOperationInsert, TenantOperationKind, TenantOperationStatus, TenantOperationUpdate, TenantOperationsAdapter, TenantSettings, TenantSettingsAdapter, TenantsDataAdapter, TextField, Theme, ThemeInsert, ThemesAdapter, TokenResponse, Totals, UiScreen, UniversalLoginTemplate, UniversalLoginTemplatesAdapter, UpdateRefreshTokenOptions, UrlField, User, UserActivity, UserActivityAdapter, UserActivityUpdate, UserDataAdapter, UserInsert, UserOrganization, UserOrganizationInsert, UserOrganizationsAdapter, UserPermission, UserPermissionInsert, UserPermissionList, UserPermissionWithDetails, UserPermissionWithDetailsList, UserPermissionsAdapter, UserResponse, UserRole, UserRoleInsert, UserRoleList, UserRolesAdapter, VerifiableCredentialsWidget, VerificationMethods, WidgetComponent, WriteOptions };
|
|
@@ -2725,29 +2725,38 @@ var Tr = e.object({
|
|
|
2725
2725
|
to: e.string(),
|
|
2726
2726
|
cohorts: e.array(Ii)
|
|
2727
2727
|
}), Ri = e.object({
|
|
2728
|
+
cohort: e.string(),
|
|
2729
|
+
tokens: e.number(),
|
|
2730
|
+
active: e.array(e.number())
|
|
2731
|
+
}), zi = e.object({
|
|
2732
|
+
interval: e.literal("week"),
|
|
2733
|
+
from: e.string(),
|
|
2734
|
+
to: e.string(),
|
|
2735
|
+
cohorts: e.array(Ri)
|
|
2736
|
+
}), Bi = e.object({
|
|
2728
2737
|
name: e.string(),
|
|
2729
2738
|
type: e.string()
|
|
2730
|
-
}),
|
|
2739
|
+
}), Vi = e.object({
|
|
2731
2740
|
elapsed: e.number(),
|
|
2732
2741
|
rows_read: e.number().optional(),
|
|
2733
2742
|
bytes_read: e.number().optional()
|
|
2734
|
-
}),
|
|
2735
|
-
meta: e.array(
|
|
2743
|
+
}), Hi = e.object({
|
|
2744
|
+
meta: e.array(Bi),
|
|
2736
2745
|
data: e.array(e.record(e.string(), e.any())),
|
|
2737
2746
|
rows: e.number(),
|
|
2738
2747
|
rows_before_limit_at_least: e.number().optional(),
|
|
2739
|
-
statistics:
|
|
2740
|
-
}),
|
|
2748
|
+
statistics: Vi.optional()
|
|
2749
|
+
}), Ui = 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(".")), Wi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2741
2750
|
type: "object",
|
|
2742
2751
|
additionalProperties: {
|
|
2743
2752
|
type: "object",
|
|
2744
2753
|
additionalProperties: { type: "string" }
|
|
2745
2754
|
}
|
|
2746
|
-
}),
|
|
2747
|
-
prompt:
|
|
2755
|
+
}), Gi = e.object({
|
|
2756
|
+
prompt: Ui,
|
|
2748
2757
|
language: e.string(),
|
|
2749
|
-
custom_text:
|
|
2750
|
-
}),
|
|
2758
|
+
custom_text: Wi
|
|
2759
|
+
}), Ki = {
|
|
2751
2760
|
EMAIL: "email",
|
|
2752
2761
|
SMS: "sms",
|
|
2753
2762
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2763,17 +2772,17 @@ var Tr = e.object({
|
|
|
2763
2772
|
WAAD: "waad",
|
|
2764
2773
|
ADFS: "adfs",
|
|
2765
2774
|
OKTA: "okta"
|
|
2766
|
-
},
|
|
2775
|
+
}, qi = {
|
|
2767
2776
|
DATABASE: "database",
|
|
2768
2777
|
SOCIAL: "social",
|
|
2769
2778
|
PASSWORDLESS: "passwordless"
|
|
2770
|
-
},
|
|
2771
|
-
function
|
|
2772
|
-
return e === "auth0" || e ===
|
|
2779
|
+
}, Ji = "auth0";
|
|
2780
|
+
function Yi(e) {
|
|
2781
|
+
return e === "auth0" || e === Ki.USERNAME_PASSWORD || e === "auth2";
|
|
2773
2782
|
}
|
|
2774
2783
|
//#endregion
|
|
2775
2784
|
//#region src/types/AuthenticationMethod.ts
|
|
2776
|
-
var
|
|
2785
|
+
var Xi = e.enum([
|
|
2777
2786
|
"phone",
|
|
2778
2787
|
"totp",
|
|
2779
2788
|
"email",
|
|
@@ -2781,9 +2790,9 @@ var Ji = e.enum([
|
|
|
2781
2790
|
"webauthn-roaming",
|
|
2782
2791
|
"webauthn-platform",
|
|
2783
2792
|
"passkey"
|
|
2784
|
-
]),
|
|
2793
|
+
]), Zi = e.object({
|
|
2785
2794
|
user_id: e.string(),
|
|
2786
|
-
type:
|
|
2795
|
+
type: Xi,
|
|
2787
2796
|
phone_number: e.string().optional(),
|
|
2788
2797
|
totp_secret: e.string().optional(),
|
|
2789
2798
|
credential_id: e.string().optional(),
|
|
@@ -2794,7 +2803,7 @@ var Ji = e.enum([
|
|
|
2794
2803
|
friendly_name: e.string().optional(),
|
|
2795
2804
|
confirmed: e.boolean().default(!1)
|
|
2796
2805
|
});
|
|
2797
|
-
function
|
|
2806
|
+
function Qi(t, n) {
|
|
2798
2807
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2799
2808
|
code: e.ZodIssueCode.custom,
|
|
2800
2809
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2817,15 +2826,15 @@ function Xi(t, n) {
|
|
|
2817
2826
|
path: ["public_key"]
|
|
2818
2827
|
}));
|
|
2819
2828
|
}
|
|
2820
|
-
var
|
|
2829
|
+
var $i = Zi.superRefine(Qi), ea = Zi.extend({
|
|
2821
2830
|
id: e.string(),
|
|
2822
2831
|
created_at: e.string(),
|
|
2823
2832
|
updated_at: e.string()
|
|
2824
|
-
}).superRefine(
|
|
2833
|
+
}).superRefine(Qi), ta = e.object({
|
|
2825
2834
|
id: e.string().optional(),
|
|
2826
2835
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2827
2836
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2828
|
-
}),
|
|
2837
|
+
}), na = {
|
|
2829
2838
|
"post-user-login": {
|
|
2830
2839
|
accessToken: ["setCustomClaim"],
|
|
2831
2840
|
idToken: ["setCustomClaim"],
|
|
@@ -2847,7 +2856,7 @@ var Zi = Yi.superRefine(Xi), Qi = Yi.extend({
|
|
|
2847
2856
|
};
|
|
2848
2857
|
//#endregion
|
|
2849
2858
|
//#region src/utils/user-id.ts
|
|
2850
|
-
function
|
|
2859
|
+
function ra(e) {
|
|
2851
2860
|
let [t, n] = e.split("|");
|
|
2852
2861
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2853
2862
|
return {
|
|
@@ -2857,7 +2866,7 @@ function ta(e) {
|
|
|
2857
2866
|
}
|
|
2858
2867
|
//#endregion
|
|
2859
2868
|
//#region src/utils/passthrough.ts
|
|
2860
|
-
function
|
|
2869
|
+
function ia(e) {
|
|
2861
2870
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2862
2871
|
"create",
|
|
2863
2872
|
"rawCreate",
|
|
@@ -2891,12 +2900,12 @@ function na(e) {
|
|
|
2891
2900
|
} : i.bind(e) : i;
|
|
2892
2901
|
} });
|
|
2893
2902
|
}
|
|
2894
|
-
function
|
|
2903
|
+
function aa(e) {
|
|
2895
2904
|
return e;
|
|
2896
2905
|
}
|
|
2897
2906
|
//#endregion
|
|
2898
2907
|
//#region src/utils/connection-attributes.ts
|
|
2899
|
-
function
|
|
2908
|
+
function oa(e) {
|
|
2900
2909
|
let t = e?.options;
|
|
2901
2910
|
if (!t) return {
|
|
2902
2911
|
usernameIdentifierActive: !1,
|
|
@@ -2919,35 +2928,35 @@ function ia(e) {
|
|
|
2919
2928
|
}
|
|
2920
2929
|
//#endregion
|
|
2921
2930
|
//#region src/utils/guards.ts
|
|
2922
|
-
function
|
|
2931
|
+
function sa(e) {
|
|
2923
2932
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2924
2933
|
}
|
|
2925
2934
|
//#endregion
|
|
2926
2935
|
//#region src/utils/base64url.ts
|
|
2927
|
-
function
|
|
2936
|
+
function ca(e) {
|
|
2928
2937
|
let t = "";
|
|
2929
2938
|
for (let n of e) t += String.fromCharCode(n);
|
|
2930
2939
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2931
2940
|
}
|
|
2932
|
-
function
|
|
2941
|
+
function la(e) {
|
|
2933
2942
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2934
2943
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2935
2944
|
return r;
|
|
2936
2945
|
}
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
2946
|
+
function ua(e) {
|
|
2947
|
+
return ca(new TextEncoder().encode(e));
|
|
2939
2948
|
}
|
|
2940
|
-
function
|
|
2941
|
-
return new TextDecoder().decode(
|
|
2949
|
+
function da(e) {
|
|
2950
|
+
return new TextDecoder().decode(la(e));
|
|
2942
2951
|
}
|
|
2943
2952
|
//#endregion
|
|
2944
2953
|
//#region src/utils/base64.ts
|
|
2945
|
-
function
|
|
2954
|
+
function fa(e) {
|
|
2946
2955
|
let t = "";
|
|
2947
2956
|
for (let n of e) t += String.fromCharCode(n);
|
|
2948
2957
|
return btoa(t);
|
|
2949
2958
|
}
|
|
2950
|
-
function
|
|
2959
|
+
function pa(e) {
|
|
2951
2960
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2952
2961
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2953
2962
|
return n;
|
|
@@ -2955,12 +2964,12 @@ function da(e) {
|
|
|
2955
2964
|
//#endregion
|
|
2956
2965
|
//#region src/utils/base32.ts
|
|
2957
2966
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2958
|
-
function
|
|
2967
|
+
function ma(e) {
|
|
2959
2968
|
let t = "", n = 0, r = 0;
|
|
2960
2969
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
2961
2970
|
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
2962
2971
|
}
|
|
2963
|
-
function
|
|
2972
|
+
function ha(e) {
|
|
2964
2973
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2965
2974
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2966
2975
|
let r = [], i = 0, a = 0;
|
|
@@ -2974,19 +2983,19 @@ function pa(e) {
|
|
|
2974
2983
|
}
|
|
2975
2984
|
//#endregion
|
|
2976
2985
|
//#region src/utils/hex.ts
|
|
2977
|
-
function
|
|
2986
|
+
function ga(e) {
|
|
2978
2987
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2979
2988
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2980
2989
|
return n;
|
|
2981
2990
|
}
|
|
2982
2991
|
//#endregion
|
|
2983
2992
|
//#region src/utils/cursor.ts
|
|
2984
|
-
function
|
|
2985
|
-
return
|
|
2993
|
+
function _a(e) {
|
|
2994
|
+
return ua(JSON.stringify(e));
|
|
2986
2995
|
}
|
|
2987
|
-
function
|
|
2996
|
+
function va(e) {
|
|
2988
2997
|
try {
|
|
2989
|
-
let t = JSON.parse(
|
|
2998
|
+
let t = JSON.parse(da(e));
|
|
2990
2999
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
2991
3000
|
} catch {
|
|
2992
3001
|
return null;
|
|
@@ -2994,7 +3003,7 @@ function ga(e) {
|
|
|
2994
3003
|
}
|
|
2995
3004
|
//#endregion
|
|
2996
3005
|
//#region src/utils/lucene.ts
|
|
2997
|
-
function
|
|
3006
|
+
function ya(e, t) {
|
|
2998
3007
|
let n = new Set(t), r = (e) => {
|
|
2999
3008
|
let t = [], r = "", i = !1;
|
|
3000
3009
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3013,22 +3022,22 @@ function _a(e, t) {
|
|
|
3013
3022
|
//#endregion
|
|
3014
3023
|
//#region src/utils/session-retention.ts
|
|
3015
3024
|
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3016
|
-
function
|
|
3025
|
+
function ba(e) {
|
|
3017
3026
|
return Math.floor((e + Q) / Z);
|
|
3018
3027
|
}
|
|
3019
3028
|
function $(e) {
|
|
3020
3029
|
return e * Z - Q;
|
|
3021
3030
|
}
|
|
3022
|
-
function
|
|
3023
|
-
let n =
|
|
3031
|
+
function xa(e, t = Date.now()) {
|
|
3032
|
+
let n = ba(t), r = n - e + 1;
|
|
3024
3033
|
return {
|
|
3025
3034
|
currentWeek: n,
|
|
3026
3035
|
firstWeek: r,
|
|
3027
3036
|
sinceMs: $(r)
|
|
3028
3037
|
};
|
|
3029
3038
|
}
|
|
3030
|
-
function
|
|
3031
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3039
|
+
function Sa(e, t, n = Date.now()) {
|
|
3040
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = xa(t, n), o = /* @__PURE__ */ new Map();
|
|
3032
3041
|
for (let t of e) {
|
|
3033
3042
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3034
3043
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3051,5 +3060,18 @@ function ba(e, t, n = Date.now()) {
|
|
|
3051
3060
|
cohorts: s
|
|
3052
3061
|
};
|
|
3053
3062
|
}
|
|
3063
|
+
function Ca(e, t, n = Date.now()) {
|
|
3064
|
+
let r = Sa(e, t, n);
|
|
3065
|
+
return {
|
|
3066
|
+
interval: r.interval,
|
|
3067
|
+
from: r.from,
|
|
3068
|
+
to: r.to,
|
|
3069
|
+
cohorts: r.cohorts.map(({ cohort: e, sessions: t, active: n }) => ({
|
|
3070
|
+
cohort: e,
|
|
3071
|
+
tokens: t,
|
|
3072
|
+
active: n
|
|
3073
|
+
}))
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3054
3076
|
//#endregion
|
|
3055
|
-
export { ve as Auth0ActionEnum, Bn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, Ze as CodeChallengeMethod, h as ComponentCategory, m as ComponentType,
|
|
3077
|
+
export { ve as Auth0ActionEnum, Bn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, Ze as CodeChallengeMethod, h as ComponentCategory, m as ComponentType, Ji as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, Gt as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, Cr as GrantType, Vn as LocationInfo, G as LogTypes, An as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Ge as NodeType, Ce as RedirectTargetEnum, Ki as Strategy, qi as StrategyType, na as TRIGGER_API_SHAPES, Z as WEEK_MS, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, ee as actionExecutionTriggerIdSchema, a as actionInsertSchema, T as actionNodeSchema, s as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, ji as activeUsersResponseSchema, le as actorSchema, Me as addressSchema, sn as allowedTriggersForHook, Bi as analyticsColumnMetaSchema, Pi as analyticsGroupBySchema, Ni as analyticsIntervalSchema, Hi as analyticsQueryResponseSchema, Mi as analyticsResourceSchema, Vi as analyticsStatisticsSchema, Fi as analyticsUserTypeSchema, er as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Xe as auth0FlowInsertSchema, Ye as auth0FlowSchema, Oe as auth0QuerySchema, xe as auth0UpdateUserActionSchema, Fe as auth0UserResponseSchema, et as authParamsSchema, $i as authenticationMethodInsertSchema, ea as authenticationMethodSchema, Xi as authenticationMethodTypeSchema, u as baseUserSchema, Ht as blockComponentSchema, Tr as bordersSchema, tt as brandingSchema, Zn as breachedPasswordDetectionSchema, Qn as bruteForceProtectionSchema, Ca as buildRefreshTokenRetention, Sa as buildSessionRetention, v as buttonComponentSchema, $e as claimsRequestSchema, Ve as clientGrantInsertSchema, Ue as clientGrantListSchema, He as clientGrantSchema, ze as clientInsertSchema, f as clientRegistrationTokenInsertSchema, We as clientRegistrationTokenSchema, d as clientRegistrationTokenTypeSchema, Be as clientSchema, rt as codeInsertSchema, it as codeSchema, nt as codeTypeSchema, Er as colorsSchema, $t as componentMessageSchema, S as componentSchema, ot as connectionInsertSchema, at as connectionOptionsSchema, st as connectionSchema, p as coordinatesSchema, ia as createPassthroughAdapter, aa as createWriteOnlyAdapter, ft as customDomainCertificateUploadSchema, A as customDomainInsertSchema, lt as customDomainSchema, ut as customDomainUpdateSchema, dt as customDomainWithTenantIdSchema, Gi as customTextEntrySchema, Wi as customTextSchema, Ai as dailyStatsSchema, ha as decodeBase32, pa as decodeBase64, la as decodeBase64Url, da as decodeBase64UrlString, va as decodeCursor, Wr as emailProviderSchema, Gr as emailTemplateNameSchema, Kr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, ma as encodeBase32, fa as encodeBase64, ca as encodeBase64Url, ua as encodeBase64UrlString, _a as encodeCursor, ga as encodeHex, Je as endingSchema, Wt as fieldComponentSchema, Te as flowActionStepSchema, Ee as flowInsertSchema, De as flowSchema, b as flowsFieldComponentSchema, w as flowsFlowNodeSchema, C as flowsStepNodeSchema, J as fontDetailsSchema, Dr as fontsSchema, Kt as formControlSchema, Zt as formInsertSchema, F as formNodeComponentDefinition, Xt as formNodeSchema, Qt as formSchema, x as genericComponentSchema, E as genericNodeSchema, oa as getConnectionIdentifierConfig, zn as getLogTypeCategory, Rn as getLogTypeDescription, ai as grantInsertSchema, oi as grantSchema, Pr as handlerConfigSchema, xn as hookCodeInsertSchema, Sn as hookCodeSchema, mn as hookInsertSchema, H as hookPageId, bn as hookSchema, U as hookTemplateId, cn as hookTemplates, je as identitySchema, ta as importMetadataSchema, Tn as inviteInsertSchema, En as inviteSchema, wn as inviteeSchema, Cn as inviterSchema, nn as isBlockComponent, Yi as isDatabaseConnectionStrategy, an as isFieldComponent, sa as isPlainObject, rn as isWidgetComponent, On as jwksKeySchema, Dn as jwksSchema, y as legalComponentSchema, pe as locationInfoSchema, K as logInsertSchema, Hn as logSchema, Wn as logStreamFilterSchema, Gn as logStreamInsertSchema, Kn as logStreamSchema, q as logStreamStatusSchema, Un as logStreamTypeSchema, Ln as logTypeCategories, In as logTypeDescriptions, Mn as loginSessionAuthStrategySchema, Nn as loginSessionInsertSchema, Pn as loginSessionSchema, jn as loginSessionStateSchema, Nr as matchSchema, qn as migrationProviderTypeSchema, Jn as migrationSourceCredentialsSchema, Yn as migrationSourceInsertSchema, Xn as migrationSourceSchema, Ke as nodeSchema, kn as openIDConfigurationSchema, yi as organizationBrandingSchema, wi as organizationConnectionInsertSchema, Ei as organizationConnectionListSchema, Ti as organizationConnectionSchema, bi as organizationEnabledConnectionSchema, Si as organizationInsertSchema, Ci as organizationSchema, xi as organizationTokenQuotaSchema, Or as pageBackgroundSchema, ra as parseUserId, tr as passwordInsertSchema, nr as passwordSchema, Ae as profileDataSchema, Ui as promptScreenSchema, Mr as promptSettingSchema, Y as proxyRouteInsertSchema, Fr as proxyRouteSchema, Ir as proxyRouteUpdateSchema, we as redirectActionSchema, qr as refreshTokenInsertSchema, Ri as refreshTokenRetentionCohortSchema, zi as refreshTokenRetentionResponseSchema, Jr as refreshTokenSchema, de as requestContextSchema, $r as resourceServerInsertSchema, ti as resourceServerListSchema, Qr as resourceServerOptionsSchema, ei as resourceServerSchema, Zr as resourceServerScopeSchema, fe as responseContextSchema, _ as richTextComponentSchema, gi as roleInsertSchema, vi as roleListSchema, ni as rolePermissionInsertSchema, ii as rolePermissionListSchema, ri as rolePermissionSchema, _i as roleSchema, br as rolloutInsertSchema, vr as rolloutKindSchema, xr as rolloutSchema, yr as rolloutStatusSchema, Sr as rolloutUpdateSchema, ya as sanitizeLuceneQuery, Rr as scimConfigurationInsertSchema, zr as scimConfigurationSchema, Hr as scimExternalIdInsertSchema, Ur as scimExternalIdSchema, Lr as scimMappingEntrySchema, Br as scimTokenInsertSchema, Vr as scimTokenSchema, en as screenLinkSchema, ir as sessionInsertSchema, Ii as sessionRetentionCohortSchema, Li as sessionRetentionResponseSchema, xa as sessionRetentionWindow, ar as sessionSchema, or as signingKeySchema, Xr as smsProviderSchema, Yr as smsSendParamsSchema, qe as startSchema, $n as suspiciousIpThrottlingSchema, ue as targetSchema, sr as tenantInsertSchema, dr as tenantOperationEngineSchema, gr as tenantOperationEventInsertSchema, hr as tenantOperationEventOutcomeSchema, _r as tenantOperationEventSchema, fr as tenantOperationInsertSchema, lr as tenantOperationKindSchema, pr as tenantOperationSchema, ur as tenantOperationStatusSchema, mr as tenantOperationUpdateSchema, cr as tenantSchema, ki as tenantSettingsSchema, Ar as themeInsertSchema, jr as themeSchema, wr as tokenResponseSchema, ke as totalsSchema, tn as uiScreenSchema, si as userActivitySchema, Ne as userInsertSchema, Di as userOrganizationInsertSchema, Oi as userOrganizationSchema, ci as userPermissionInsertSchema, ui as userPermissionListSchema, li as userPermissionSchema, fi as userPermissionWithDetailsListSchema, di as userPermissionWithDetailsSchema, Ie as userResponseSchema, pi as userRoleInsertSchema, hi as userRoleListSchema, mi as userRoleSchema, Pe as userSchema, ct as verificationMethodsSchema, ba as weekIndex, $ as weekStartMs, Ut as widgetComponentSchema, kr as widgetSchema };
|