@logto/schemas 1.36.0 → 1.37.1

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.
Files changed (44) hide show
  1. package/alterations/1.37.0-1770295353-add-default-id-token-config.ts +30 -0
  2. package/alterations/1.37.0-1770361004-add-oidc-model-instances-session-account-id-indexes.ts +37 -0
  3. package/alterations/1.37.0-1770362227-add-client-id-column-to-oidc-session-extensions-table.ts +20 -0
  4. package/alterations-js/1.37.0-1770295353-add-default-id-token-config.js +23 -0
  5. package/alterations-js/1.37.0-1770361004-add-oidc-model-instances-session-account-id-indexes.js +31 -0
  6. package/alterations-js/1.37.0-1770362227-add-client-id-column-to-oidc-session-extensions-table.js +16 -0
  7. package/lib/db-entries/oidc-session-extension.d.ts +3 -1
  8. package/lib/db-entries/oidc-session-extension.js +4 -0
  9. package/lib/foundations/jsonb-types/account-centers.d.ts +5 -2
  10. package/lib/foundations/jsonb-types/account-centers.js +1 -0
  11. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +8 -8
  12. package/lib/foundations/jsonb-types/hooks.d.ts +4 -3
  13. package/lib/foundations/jsonb-types/hooks.js +2 -0
  14. package/lib/foundations/jsonb-types/logs.d.ts +0 -3
  15. package/lib/foundations/jsonb-types/logs.js +0 -1
  16. package/lib/foundations/jsonb-types/oidc-module.d.ts +328 -0
  17. package/lib/foundations/jsonb-types/oidc-module.js +42 -0
  18. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +1 -1
  19. package/lib/foundations/jsonb-types/sentinel.d.ts +1 -1
  20. package/lib/foundations/jsonb-types/sentinel.js +1 -1
  21. package/lib/seeds/logto-config.d.ts +6 -1
  22. package/lib/seeds/logto-config.js +11 -0
  23. package/lib/types/custom-profile-fields.d.ts +39 -39
  24. package/lib/types/index.d.ts +1 -0
  25. package/lib/types/index.js +1 -0
  26. package/lib/types/interactions.d.ts +2 -2
  27. package/lib/types/logto-config/index.d.ts +1181 -82
  28. package/lib/types/logto-config/index.js +9 -0
  29. package/lib/types/logto-config/jwt-customizer.d.ts +2039 -116
  30. package/lib/types/logto-config/jwt-customizer.js +22 -2
  31. package/lib/types/logto-config/jwt-customizer.test.js +27 -1
  32. package/lib/types/logto-config/oidc-provider.d.ts +8 -8
  33. package/lib/types/saml-application.d.ts +7 -7
  34. package/lib/types/user-logto-config.d.ts +49 -0
  35. package/lib/types/user-logto-config.js +23 -0
  36. package/lib/types/user-sessions.d.ts +3208 -0
  37. package/lib/types/user-sessions.js +26 -0
  38. package/lib/types/verification-records/verification-type.d.ts +1 -0
  39. package/lib/types/verification-records/verification-type.js +1 -0
  40. package/lib/types/verification-records/web-authn-verification.d.ts +145 -8
  41. package/lib/types/verification-records/web-authn-verification.js +17 -3
  42. package/package.json +5 -5
  43. package/tables/oidc_model_instances.sql +7 -0
  44. package/tables/oidc_session_extensions.sql +1 -0
@@ -0,0 +1,30 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const idTokenConfigKey = 'idToken';
6
+
7
+ const defaultIdTokenConfig = Object.freeze({
8
+ enabledExtendedClaims: ['roles', 'organizations', 'organization_roles'],
9
+ });
10
+
11
+ const alteration: AlterationScript = {
12
+ up: async (pool) => {
13
+ const tenants = await pool.any<{ id: string }>(sql`select id from tenants`);
14
+
15
+ for (const { id: tenantId } of tenants) {
16
+ // eslint-disable-next-line no-await-in-loop
17
+ await pool.query(sql`
18
+ insert into logto_configs (tenant_id, key, value)
19
+ values (${tenantId}, ${idTokenConfigKey}, ${sql.jsonb(defaultIdTokenConfig)})
20
+ `);
21
+ }
22
+ },
23
+ down: async (pool) => {
24
+ await pool.query(sql`
25
+ delete from logto_configs where key = ${idTokenConfigKey}
26
+ `);
27
+ },
28
+ };
29
+
30
+ export default alteration;
@@ -0,0 +1,37 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ beforeUp: async (pool) => {
7
+ // Add index to optimize the query performance for cleaning up expired OIDC model instances.
8
+ await pool.query(sql`
9
+ create index concurrently if not exists oidc_model_instances__expires_at
10
+ on oidc_model_instances (tenant_id, expires_at);
11
+ `);
12
+
13
+ // Add index to optimize the query performance for querying non-expired session instances by accountId.
14
+ await pool.query(sql`
15
+ create index concurrently if not exists oidc_model_instances__session_payload_account_id_expires_at
16
+ on oidc_model_instances (tenant_id, (payload->>'accountId'), expires_at)
17
+ WHERE model_name = 'Session';
18
+ `);
19
+ },
20
+ up: async () => {
21
+ /** 'concurrently' cannot be used inside a transaction, so this up is intentionally left empty. */
22
+ },
23
+ beforeDown: async (pool) => {
24
+ await pool.query(sql`
25
+ drop index concurrently if exists oidc_model_instances__expires_at;
26
+ `);
27
+
28
+ await pool.query(sql`
29
+ drop index concurrently if exists oidc_model_instances__session_payload_account_id_expires_at;
30
+ `);
31
+ },
32
+ down: async () => {
33
+ /** 'concurrently' cannot be used inside a transaction, so this up is intentionally left empty. */
34
+ },
35
+ };
36
+
37
+ export default alteration;
@@ -0,0 +1,20 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table oidc_session_extensions
9
+ add column client_id varchar(21) null
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ await pool.query(sql`
14
+ alter table oidc_session_extensions
15
+ drop column client_id
16
+ `);
17
+ },
18
+ };
19
+
20
+ export default alteration;
@@ -0,0 +1,23 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const idTokenConfigKey = 'idToken';
3
+ const defaultIdTokenConfig = Object.freeze({
4
+ enabledExtendedClaims: ['roles', 'organizations', 'organization_roles'],
5
+ });
6
+ const alteration = {
7
+ up: async (pool) => {
8
+ const tenants = await pool.any(sql `select id from tenants`);
9
+ for (const { id: tenantId } of tenants) {
10
+ // eslint-disable-next-line no-await-in-loop
11
+ await pool.query(sql `
12
+ insert into logto_configs (tenant_id, key, value)
13
+ values (${tenantId}, ${idTokenConfigKey}, ${sql.jsonb(defaultIdTokenConfig)})
14
+ `);
15
+ }
16
+ },
17
+ down: async (pool) => {
18
+ await pool.query(sql `
19
+ delete from logto_configs where key = ${idTokenConfigKey}
20
+ `);
21
+ },
22
+ };
23
+ export default alteration;
@@ -0,0 +1,31 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ beforeUp: async (pool) => {
4
+ // Add index to optimize the query performance for cleaning up expired OIDC model instances.
5
+ await pool.query(sql `
6
+ create index concurrently if not exists oidc_model_instances__expires_at
7
+ on oidc_model_instances (tenant_id, expires_at);
8
+ `);
9
+ // Add index to optimize the query performance for querying non-expired session instances by accountId.
10
+ await pool.query(sql `
11
+ create index concurrently if not exists oidc_model_instances__session_payload_account_id_expires_at
12
+ on oidc_model_instances (tenant_id, (payload->>'accountId'), expires_at)
13
+ WHERE model_name = 'Session';
14
+ `);
15
+ },
16
+ up: async () => {
17
+ /** 'concurrently' cannot be used inside a transaction, so this up is intentionally left empty. */
18
+ },
19
+ beforeDown: async (pool) => {
20
+ await pool.query(sql `
21
+ drop index concurrently if exists oidc_model_instances__expires_at;
22
+ `);
23
+ await pool.query(sql `
24
+ drop index concurrently if exists oidc_model_instances__session_payload_account_id_expires_at;
25
+ `);
26
+ },
27
+ down: async () => {
28
+ /** 'concurrently' cannot be used inside a transaction, so this up is intentionally left empty. */
29
+ },
30
+ };
31
+ export default alteration;
@@ -0,0 +1,16 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table oidc_session_extensions
6
+ add column client_id varchar(21) null
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ await pool.query(sql `
11
+ alter table oidc_session_extensions
12
+ drop column client_id
13
+ `);
14
+ },
15
+ };
16
+ export default alteration;
@@ -9,6 +9,7 @@ export type CreateOidcSessionExtension = {
9
9
  sessionUid: string;
10
10
  accountId: string;
11
11
  lastSubmission?: JsonObject;
12
+ clientId?: string | null;
12
13
  createdAt?: number;
13
14
  updatedAt?: number;
14
15
  };
@@ -17,8 +18,9 @@ export type OidcSessionExtension = {
17
18
  sessionUid: string;
18
19
  accountId: string;
19
20
  lastSubmission: JsonObject;
21
+ clientId: string | null;
20
22
  createdAt: number;
21
23
  updatedAt: number;
22
24
  };
23
- export type OidcSessionExtensionKeys = 'tenantId' | 'sessionUid' | 'accountId' | 'lastSubmission' | 'createdAt' | 'updatedAt';
25
+ export type OidcSessionExtensionKeys = 'tenantId' | 'sessionUid' | 'accountId' | 'lastSubmission' | 'clientId' | 'createdAt' | 'updatedAt';
24
26
  export declare const OidcSessionExtensions: GeneratedSchema<OidcSessionExtensionKeys, CreateOidcSessionExtension, OidcSessionExtension, 'oidc_session_extensions', 'oidc_session_extension'>;
@@ -6,6 +6,7 @@ const createGuard = z.object({
6
6
  sessionUid: z.string().min(1).max(128),
7
7
  accountId: z.string().min(1).max(12),
8
8
  lastSubmission: jsonObjectGuard.optional(),
9
+ clientId: z.string().max(21).nullable().optional(),
9
10
  createdAt: z.number().optional(),
10
11
  updatedAt: z.number().optional(),
11
12
  });
@@ -14,6 +15,7 @@ const guard = z.object({
14
15
  sessionUid: z.string().min(1).max(128),
15
16
  accountId: z.string().min(1).max(12),
16
17
  lastSubmission: jsonObjectGuard,
18
+ clientId: z.string().max(21).nullable(),
17
19
  createdAt: z.number(),
18
20
  updatedAt: z.number(),
19
21
  });
@@ -25,6 +27,7 @@ export const OidcSessionExtensions = Object.freeze({
25
27
  sessionUid: 'session_uid',
26
28
  accountId: 'account_id',
27
29
  lastSubmission: 'last_submission',
30
+ clientId: 'client_id',
28
31
  createdAt: 'created_at',
29
32
  updatedAt: 'updated_at',
30
33
  },
@@ -33,6 +36,7 @@ export const OidcSessionExtensions = Object.freeze({
33
36
  'sessionUid',
34
37
  'accountId',
35
38
  'lastSubmission',
39
+ 'clientId',
36
40
  'createdAt',
37
41
  'updatedAt',
38
42
  ],
@@ -20,10 +20,11 @@ export declare const accountCenterFieldControlGuard: z.ZodObject<{
20
20
  social: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
21
21
  customData: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
22
22
  mfa: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
23
+ session: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
23
24
  }, "strip", z.ZodTypeAny, {
24
25
  name?: AccountCenterControlValue | undefined;
25
- email?: AccountCenterControlValue | undefined;
26
26
  username?: AccountCenterControlValue | undefined;
27
+ email?: AccountCenterControlValue | undefined;
27
28
  phone?: AccountCenterControlValue | undefined;
28
29
  password?: AccountCenterControlValue | undefined;
29
30
  profile?: AccountCenterControlValue | undefined;
@@ -31,10 +32,11 @@ export declare const accountCenterFieldControlGuard: z.ZodObject<{
31
32
  social?: AccountCenterControlValue | undefined;
32
33
  customData?: AccountCenterControlValue | undefined;
33
34
  mfa?: AccountCenterControlValue | undefined;
35
+ session?: AccountCenterControlValue | undefined;
34
36
  }, {
35
37
  name?: AccountCenterControlValue | undefined;
36
- email?: AccountCenterControlValue | undefined;
37
38
  username?: AccountCenterControlValue | undefined;
39
+ email?: AccountCenterControlValue | undefined;
38
40
  phone?: AccountCenterControlValue | undefined;
39
41
  password?: AccountCenterControlValue | undefined;
40
42
  profile?: AccountCenterControlValue | undefined;
@@ -42,6 +44,7 @@ export declare const accountCenterFieldControlGuard: z.ZodObject<{
42
44
  social?: AccountCenterControlValue | undefined;
43
45
  customData?: AccountCenterControlValue | undefined;
44
46
  mfa?: AccountCenterControlValue | undefined;
47
+ session?: AccountCenterControlValue | undefined;
45
48
  }>;
46
49
  export type AccountCenterFieldControl = z.infer<typeof accountCenterFieldControlGuard>;
47
50
  export declare const webauthnRelatedOriginsGuard: z.ZodArray<z.ZodString, "many">;
@@ -22,6 +22,7 @@ export const accountCenterFieldControlGuard = z
22
22
  social: z.nativeEnum(AccountCenterControlValue),
23
23
  customData: z.nativeEnum(AccountCenterControlValue),
24
24
  mfa: z.nativeEnum(AccountCenterControlValue),
25
+ session: z.nativeEnum(AccountCenterControlValue),
25
26
  })
26
27
  .partial();
27
28
  export const webauthnRelatedOriginsGuard = z.array(z.string());
@@ -135,8 +135,8 @@ export declare const fieldPartGuard: z.ZodObject<{
135
135
  }, "strip", z.ZodTypeAny, {
136
136
  type: CustomProfileFieldType;
137
137
  name: string;
138
- enabled: boolean;
139
138
  required: boolean;
139
+ enabled: boolean;
140
140
  label?: string | undefined;
141
141
  description?: string | undefined;
142
142
  config?: {
@@ -156,8 +156,8 @@ export declare const fieldPartGuard: z.ZodObject<{
156
156
  }, {
157
157
  type: CustomProfileFieldType;
158
158
  name: string;
159
- enabled: boolean;
160
159
  required: boolean;
160
+ enabled: boolean;
161
161
  label?: string | undefined;
162
162
  description?: string | undefined;
163
163
  config?: {
@@ -232,8 +232,8 @@ export declare const fieldPartsGuard: z.ZodArray<z.ZodObject<{
232
232
  }, "strip", z.ZodTypeAny, {
233
233
  type: CustomProfileFieldType;
234
234
  name: string;
235
- enabled: boolean;
236
235
  required: boolean;
236
+ enabled: boolean;
237
237
  label?: string | undefined;
238
238
  description?: string | undefined;
239
239
  config?: {
@@ -253,8 +253,8 @@ export declare const fieldPartsGuard: z.ZodArray<z.ZodObject<{
253
253
  }, {
254
254
  type: CustomProfileFieldType;
255
255
  name: string;
256
- enabled: boolean;
257
256
  required: boolean;
257
+ enabled: boolean;
258
258
  label?: string | undefined;
259
259
  description?: string | undefined;
260
260
  config?: {
@@ -349,8 +349,8 @@ export declare const customProfileFieldConfigGuard: z.ZodObject<{
349
349
  }, "strip", z.ZodTypeAny, {
350
350
  type: CustomProfileFieldType;
351
351
  name: string;
352
- enabled: boolean;
353
352
  required: boolean;
353
+ enabled: boolean;
354
354
  label?: string | undefined;
355
355
  description?: string | undefined;
356
356
  config?: {
@@ -370,8 +370,8 @@ export declare const customProfileFieldConfigGuard: z.ZodObject<{
370
370
  }, {
371
371
  type: CustomProfileFieldType;
372
372
  name: string;
373
- enabled: boolean;
374
373
  required: boolean;
374
+ enabled: boolean;
375
375
  label?: string | undefined;
376
376
  description?: string | undefined;
377
377
  config?: {
@@ -405,8 +405,8 @@ export declare const customProfileFieldConfigGuard: z.ZodObject<{
405
405
  parts?: {
406
406
  type: CustomProfileFieldType;
407
407
  name: string;
408
- enabled: boolean;
409
408
  required: boolean;
409
+ enabled: boolean;
410
410
  label?: string | undefined;
411
411
  description?: string | undefined;
412
412
  config?: {
@@ -440,8 +440,8 @@ export declare const customProfileFieldConfigGuard: z.ZodObject<{
440
440
  parts?: {
441
441
  type: CustomProfileFieldType;
442
442
  name: string;
443
- enabled: boolean;
444
443
  required: boolean;
444
+ enabled: boolean;
445
445
  label?: string | undefined;
446
446
  description?: string | undefined;
447
447
  config?: {
@@ -9,6 +9,7 @@ import { z } from 'zod';
9
9
  export declare enum InteractionHookEvent {
10
10
  PostRegister = "PostRegister",
11
11
  PostSignIn = "PostSignIn",
12
+ PostSignInAdaptiveMfaTriggered = "PostSignInAdaptiveMfaTriggered",
12
13
  PostResetPassword = "PostResetPassword"
13
14
  }
14
15
  export declare enum DataHookSchema {
@@ -32,11 +33,11 @@ type DataHookPropertyUpdateEvent = `${CustomDataHookMutableSchema}.${DataHookDet
32
33
  export type ExceptionHookEvent = 'Identifier.Lockout';
33
34
  export type DataHookEvent = BasicDataHookEvent | DataHookPropertyUpdateEvent;
34
35
  /** The hook event values that can be registered. */
35
- export declare const hookEvents: readonly [InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"];
36
+ export declare const hookEvents: readonly [InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostSignInAdaptiveMfaTriggered, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"];
36
37
  /** The type of hook event values that can be registered. */
37
38
  export type HookEvent = (typeof hookEvents)[number];
38
- export declare const hookEventGuard: z.ZodEnum<[InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"]>;
39
- export declare const hookEventsGuard: z.ZodArray<z.ZodEnum<[InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"]>, "many">;
39
+ export declare const hookEventGuard: z.ZodEnum<[InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostSignInAdaptiveMfaTriggered, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"]>;
40
+ export declare const hookEventsGuard: z.ZodArray<z.ZodEnum<[InteractionHookEvent.PostRegister, InteractionHookEvent.PostSignIn, InteractionHookEvent.PostSignInAdaptiveMfaTriggered, InteractionHookEvent.PostResetPassword, "User.Created", "User.Deleted", "User.Data.Updated", "User.SuspensionStatus.Updated", "Role.Created", "Role.Deleted", "Role.Data.Updated", "Role.Scopes.Updated", "Scope.Created", "Scope.Deleted", "Scope.Data.Updated", "Organization.Created", "Organization.Deleted", "Organization.Data.Updated", "Organization.Membership.Updated", "OrganizationRole.Created", "OrganizationRole.Deleted", "OrganizationRole.Data.Updated", "OrganizationRole.Scopes.Updated", "OrganizationScope.Created", "OrganizationScope.Deleted", "OrganizationScope.Data.Updated", "Identifier.Lockout"]>, "many">;
40
41
  export type HookEvents = z.infer<typeof hookEventsGuard>;
41
42
  export declare const interactionHookEventGuard: z.ZodNativeEnum<typeof InteractionHookEvent>;
42
43
  /**
@@ -11,6 +11,7 @@ export var InteractionHookEvent;
11
11
  (function (InteractionHookEvent) {
12
12
  InteractionHookEvent["PostRegister"] = "PostRegister";
13
13
  InteractionHookEvent["PostSignIn"] = "PostSignIn";
14
+ InteractionHookEvent["PostSignInAdaptiveMfaTriggered"] = "PostSignInAdaptiveMfaTriggered";
14
15
  InteractionHookEvent["PostResetPassword"] = "PostResetPassword";
15
16
  })(InteractionHookEvent || (InteractionHookEvent = {}));
16
17
  // DataHookEvent
@@ -36,6 +37,7 @@ var DataHookDetailMutationType;
36
37
  export const hookEvents = Object.freeze([
37
38
  InteractionHookEvent.PostRegister,
38
39
  InteractionHookEvent.PostSignIn,
40
+ InteractionHookEvent.PostSignInAdaptiveMfaTriggered,
39
41
  InteractionHookEvent.PostResetPassword,
40
42
  'User.Created',
41
43
  'User.Deleted',
@@ -361,7 +361,6 @@ export declare const logContextPayloadGuard: z.ZodObject<{
361
361
  architecture: z.ZodOptional<z.ZodString>;
362
362
  }, z.ZodUnknown, "strip">>>;
363
363
  }, z.ZodUnknown, "strip">>>;
364
- injectedHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
365
364
  userId: z.ZodOptional<z.ZodString>;
366
365
  applicationId: z.ZodOptional<z.ZodString>;
367
366
  sessionId: z.ZodOptional<z.ZodString>;
@@ -547,7 +546,6 @@ export declare const logContextPayloadGuard: z.ZodObject<{
547
546
  architecture: z.ZodOptional<z.ZodString>;
548
547
  }, z.ZodUnknown, "strip">>>;
549
548
  }, z.ZodUnknown, "strip">>>;
550
- injectedHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
551
549
  userId: z.ZodOptional<z.ZodString>;
552
550
  applicationId: z.ZodOptional<z.ZodString>;
553
551
  sessionId: z.ZodOptional<z.ZodString>;
@@ -733,7 +731,6 @@ export declare const logContextPayloadGuard: z.ZodObject<{
733
731
  architecture: z.ZodOptional<z.ZodString>;
734
732
  }, z.ZodUnknown, "strip">>>;
735
733
  }, z.ZodUnknown, "strip">>>;
736
- injectedHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
737
734
  userId: z.ZodOptional<z.ZodString>;
738
735
  applicationId: z.ZodOptional<z.ZodString>;
739
736
  sessionId: z.ZodOptional<z.ZodString>;
@@ -63,7 +63,6 @@ export const logContextPayloadGuard = z
63
63
  ip: z.string().optional(),
64
64
  userAgent: z.string().optional(),
65
65
  userAgentParsed: userAgentParsedGuard.optional(),
66
- injectedHeaders: z.record(z.string(), z.string()).optional(),
67
66
  userId: z.string().optional(),
68
67
  applicationId: z.string().optional(),
69
68
  sessionId: z.string().optional(),