@logto/schemas 1.34.0 → 1.36.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.
Files changed (89) hide show
  1. package/alterations/1.35.0-1764580455-remove-daily-active-users-foreign-key.ts +69 -0
  2. package/alterations/1.35.0-1764580589-create-aggregated-daily-active-users-table.ts +51 -0
  3. package/alterations/1.35.0-1764653048-update-daily-token-usage-mau-support.ts +37 -0
  4. package/alterations/1.35.0-1765183934-add-logs-created-at-id-index.ts +39 -0
  5. package/alterations/1.35.0-1765255453-update-saml-session-relay-state-to-varchar-512.ts +31 -0
  6. package/alterations/1.35.0-1765631949-drop-redundant-logs-id-index.ts +47 -0
  7. package/alterations/1.35.0-1766028646-grant-tenants-table-tag-column-read-permission.ts +39 -0
  8. package/alterations/1.36.0-1767193412-allow-token-exchange.ts +34 -0
  9. package/alterations/1.36.0-1767859553-passkey-sign-in.ts +21 -0
  10. package/alterations/1.36.0-1768192304-enable-account-center-for-admin-tenant.ts +32 -0
  11. package/alterations/1.36.0-1768464306-enable-mfa-for-admin-tenant.ts +30 -0
  12. package/alterations/1.36.0-1768758295-add-user-geo-location.ts +32 -0
  13. package/alterations/1.36.0-1768891516-add-user-sign-in-countries-table.ts +33 -0
  14. package/alterations/1.36.0-1769067642-add-adaptive-mfa-configuration.ts +19 -0
  15. package/alterations/1.36.0-1769172677-enable-organization-mfa-policy-for-admin-tenant.ts +31 -0
  16. package/alterations-js/1.35.0-1764580455-remove-daily-active-users-foreign-key.js +57 -0
  17. package/alterations-js/1.35.0-1764580589-create-aggregated-daily-active-users-table.js +40 -0
  18. package/alterations-js/1.35.0-1764653048-update-daily-token-usage-mau-support.js +31 -0
  19. package/alterations-js/1.35.0-1765183934-add-logs-created-at-id-index.js +35 -0
  20. package/alterations-js/1.35.0-1765255453-update-saml-session-relay-state-to-varchar-512.js +25 -0
  21. package/alterations-js/1.35.0-1765631949-drop-redundant-logs-id-index.js +43 -0
  22. package/alterations-js/1.35.0-1766028646-grant-tenants-table-tag-column-read-permission.js +31 -0
  23. package/alterations-js/1.36.0-1767193412-allow-token-exchange.js +30 -0
  24. package/alterations-js/1.36.0-1767859553-passkey-sign-in.js +17 -0
  25. package/alterations-js/1.36.0-1768192304-enable-account-center-for-admin-tenant.js +27 -0
  26. package/alterations-js/1.36.0-1768464306-enable-mfa-for-admin-tenant.js +25 -0
  27. package/alterations-js/1.36.0-1768758295-add-user-geo-location.js +27 -0
  28. package/alterations-js/1.36.0-1768891516-add-user-sign-in-countries-table.js +28 -0
  29. package/alterations-js/1.36.0-1769067642-add-adaptive-mfa-configuration.js +15 -0
  30. package/alterations-js/1.36.0-1769172677-enable-organization-mfa-policy-for-admin-tenant.js +26 -0
  31. package/lib/consts/product-event.d.ts +0 -12
  32. package/lib/consts/product-event.js +0 -13
  33. package/lib/db-entries/aggregated-daily-active-user.d.ts +22 -0
  34. package/lib/db-entries/aggregated-daily-active-user.js +33 -0
  35. package/lib/db-entries/daily-token-usage.d.ts +5 -1
  36. package/lib/db-entries/daily-token-usage.js +8 -0
  37. package/lib/db-entries/index.d.ts +3 -0
  38. package/lib/db-entries/index.js +3 -0
  39. package/lib/db-entries/saml-application-session.js +2 -2
  40. package/lib/db-entries/sign-in-experience.d.ts +6 -2
  41. package/lib/db-entries/sign-in-experience.js +9 -1
  42. package/lib/db-entries/user-geo-location.d.ts +24 -0
  43. package/lib/db-entries/user-geo-location.js +37 -0
  44. package/lib/db-entries/user-sign-in-country.d.ts +24 -0
  45. package/lib/db-entries/user-sign-in-country.js +33 -0
  46. package/lib/foundations/jsonb-types/account-centers.d.ts +2 -2
  47. package/lib/foundations/jsonb-types/captcha.d.ts +16 -0
  48. package/lib/foundations/jsonb-types/captcha.js +7 -0
  49. package/lib/foundations/jsonb-types/logs.d.ts +703 -0
  50. package/lib/foundations/jsonb-types/logs.js +52 -0
  51. package/lib/foundations/jsonb-types/oidc-module.d.ts +15 -3
  52. package/lib/foundations/jsonb-types/oidc-module.js +15 -3
  53. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +1 -1
  54. package/lib/foundations/jsonb-types/sentinel.d.ts +13 -1
  55. package/lib/foundations/jsonb-types/sentinel.js +12 -0
  56. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +59 -0
  57. package/lib/foundations/jsonb-types/sign-in-experience.js +11 -0
  58. package/lib/seeds/account-center.d.ts +6 -0
  59. package/lib/seeds/account-center.js +24 -0
  60. package/lib/seeds/cloud-api.d.ts +3 -1
  61. package/lib/seeds/cloud-api.js +2 -0
  62. package/lib/seeds/sign-in-experience.js +6 -1
  63. package/lib/types/alteration.d.ts +11 -1
  64. package/lib/types/application.d.ts +6 -0
  65. package/lib/types/consent.d.ts +4 -0
  66. package/lib/types/custom-profile-fields.d.ts +3 -3
  67. package/lib/types/hook.d.ts +2 -2
  68. package/lib/types/interactions.d.ts +16 -7
  69. package/lib/types/interactions.js +10 -4
  70. package/lib/types/log/index.d.ts +12 -6
  71. package/lib/types/log/interaction.d.ts +5 -1
  72. package/lib/types/logto-config/index.d.ts +9 -9
  73. package/lib/types/logto-config/jwt-customizer.d.ts +17 -17
  74. package/lib/types/saml-application.d.ts +7 -7
  75. package/lib/types/sign-in-experience.d.ts +19 -1
  76. package/lib/types/sign-in-experience.js +3 -1
  77. package/lib/types/user.d.ts +10 -7
  78. package/lib/types/user.js +1 -0
  79. package/package.json +6 -6
  80. package/tables/_after_all.sql +1 -1
  81. package/tables/aggregated_daily_active_users.sql +16 -0
  82. package/tables/daily_active_users.sql +9 -4
  83. package/tables/daily_token_usage.sql +3 -2
  84. package/tables/logs.sql +3 -3
  85. package/tables/saml_application_sessions.sql +1 -1
  86. package/tables/sign_in_experiences.sql +2 -0
  87. package/tables/user_geo_locations.sql +14 -0
  88. package/tables/user_sign_in_countries.sql +16 -0
  89. package/tables/users.sql +3 -0
@@ -32,6 +32,10 @@ export declare enum Action {
32
32
  /** Change an entity to the end state. (E.g. end an interaction) */
33
33
  End = "End"
34
34
  }
35
+ /**
36
+ * @deprecated Deprecated interaction log keys used in legacy interaction endpoints.
37
+ */
38
+ export type DeprecatedInteractionLogKey = `${Prefix}.${InteractionEvent}.${Field.Profile}.${Action.Create | Action.Delete}` | `${Prefix}.${Exclude<InteractionEvent, InteractionEvent.ForgotPassword>}.${Field.Identifier}.${Exclude<Method, Method.Password>}.${Action.Create | Action.Submit}` | `${Prefix}.${Exclude<InteractionEvent, InteractionEvent.ForgotPassword>}.${Field.Identifier}.${Method.Password}.${Action.Submit}` | `${Prefix}.${InteractionEvent.ForgotPassword}.${Field.Identifier}.${Method.VerificationCode}.${Action.Create | Action.Submit}` | `${Prefix}.${InteractionEvent}.${Field.BindMfa}.${MfaFactor}.${Action.Create}` | `${Prefix}.${InteractionEvent.SignIn}.${Field.Mfa}.${MfaFactor}.${Action.Submit | Action.Create}`;
35
39
  /**
36
40
  * The union type of all available log keys for interaction.
37
41
  * The key MUST describe an {@link Action}.
@@ -69,4 +73,4 @@ export declare enum Action {
69
73
  * - When {@link Method} is `VerificationCode`, {@link Action} can be `Create` (generate and send a code) or `Submit` (verify and submit to the identifiers);
70
74
  * - Otherwise, {@link Action} is fixed to `Submit` (other methods can be verified on submitting).
71
75
  */
72
- export type LogKey = `${Prefix}.${Action.Create | Action.End}` | `${Prefix}.${Action.Create}.${Field.Captcha}` | `${Prefix}.${InteractionEvent}.${Action.Create | Action.Update | Action.Submit}` | `${Prefix}.${InteractionEvent}.${Field.Profile}.${Action.Update | Action.Create | Action.Delete}` | `${Prefix}.${Exclude<InteractionEvent, InteractionEvent.ForgotPassword>}.${Field.Identifier}.${Exclude<Method, Method.Password>}.${Action.Create | Action.Submit}` | `${Prefix}.${Exclude<InteractionEvent, InteractionEvent.ForgotPassword>}.${Field.Identifier}.${Method.Password}.${Action.Submit}` | `${Prefix}.${InteractionEvent.ForgotPassword}.${Field.Identifier}.${Method.VerificationCode}.${Action.Create | Action.Submit}` | `${Prefix}.${InteractionEvent}.${Field.BindMfa}.${MfaFactor}.${Action.Submit | Action.Create}` | `${Prefix}.${InteractionEvent.SignIn}.${Field.Mfa}.${MfaFactor}.${Action.Submit | Action.Create}` | `${Prefix}.${InteractionEvent}.${Field.Verification}.${VerificationType}.${Action}` | `${Prefix}.${InteractionEvent}.${Field.Identifier}.${Action.Submit}` | `${Prefix}.${InteractionEvent.SignIn}.${Field.Verification}.IdpInitiatedSso.${Action.Create}`;
76
+ export type LogKey = `${Prefix}.${Action.Create | Action.End}` | `${Prefix}.${Action.Create}.${Field.Captcha}` | `${Prefix}.${InteractionEvent}.${Action.Create | Action.Update | Action.Submit}` | `${Prefix}.${InteractionEvent}.${Field.Profile}.${Action.Update}` | `${Prefix}.${InteractionEvent}.${Field.BindMfa}.${MfaFactor}.${Action.Submit}` | `${Prefix}.${InteractionEvent}.${Field.Verification}.${VerificationType}.${Action}` | `${Prefix}.${InteractionEvent}.${Field.Identifier}.${Action.Submit}` | `${Prefix}.${InteractionEvent.SignIn}.${Field.Verification}.IdpInitiatedSso.${Action.Create}` | DeprecatedInteractionLogKey;
@@ -157,10 +157,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
157
157
  details?: Record<string, import("@withtyped/server").Json> | undefined;
158
158
  }>>>;
159
159
  updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
160
+ lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
160
161
  primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
161
162
  primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
162
163
  isSuspended: z.ZodOptional<ZodType<boolean, z.ZodTypeDef, boolean>>;
163
- lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
164
164
  hasPassword: z.ZodOptional<z.ZodBoolean>;
165
165
  ssoIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
166
166
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -337,10 +337,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
337
337
  details?: Record<string, import("@withtyped/server").Json> | undefined;
338
338
  }> | undefined;
339
339
  updatedAt?: number | undefined;
340
+ lastSignInAt?: number | null | undefined;
340
341
  primaryEmail?: string | null | undefined;
341
342
  primaryPhone?: string | null | undefined;
342
343
  isSuspended?: boolean | undefined;
343
- lastSignInAt?: number | null | undefined;
344
344
  hasPassword?: boolean | undefined;
345
345
  ssoIdentities?: {
346
346
  issuer: string;
@@ -404,10 +404,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
404
404
  details?: Record<string, import("@withtyped/server").Json> | undefined;
405
405
  }> | undefined;
406
406
  updatedAt?: number | undefined;
407
+ lastSignInAt?: number | null | undefined;
407
408
  primaryEmail?: string | null | undefined;
408
409
  primaryPhone?: string | null | undefined;
409
410
  isSuspended?: boolean | undefined;
410
- lastSignInAt?: number | null | undefined;
411
411
  hasPassword?: boolean | undefined;
412
412
  ssoIdentities?: {
413
413
  issuer: string;
@@ -1077,10 +1077,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1077
1077
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1078
1078
  }> | undefined;
1079
1079
  updatedAt?: number | undefined;
1080
+ lastSignInAt?: number | null | undefined;
1080
1081
  primaryEmail?: string | null | undefined;
1081
1082
  primaryPhone?: string | null | undefined;
1082
1083
  isSuspended?: boolean | undefined;
1083
- lastSignInAt?: number | null | undefined;
1084
1084
  hasPassword?: boolean | undefined;
1085
1085
  ssoIdentities?: {
1086
1086
  issuer: string;
@@ -1240,10 +1240,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1240
1240
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1241
1241
  }> | undefined;
1242
1242
  updatedAt?: number | undefined;
1243
+ lastSignInAt?: number | null | undefined;
1243
1244
  primaryEmail?: string | null | undefined;
1244
1245
  primaryPhone?: string | null | undefined;
1245
1246
  isSuspended?: boolean | undefined;
1246
- lastSignInAt?: number | null | undefined;
1247
1247
  hasPassword?: boolean | undefined;
1248
1248
  ssoIdentities?: {
1249
1249
  issuer: string;
@@ -1407,10 +1407,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1407
1407
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1408
1408
  }> | undefined;
1409
1409
  updatedAt?: number | undefined;
1410
+ lastSignInAt?: number | null | undefined;
1410
1411
  primaryEmail?: string | null | undefined;
1411
1412
  primaryPhone?: string | null | undefined;
1412
1413
  isSuspended?: boolean | undefined;
1413
- lastSignInAt?: number | null | undefined;
1414
1414
  hasPassword?: boolean | undefined;
1415
1415
  ssoIdentities?: {
1416
1416
  issuer: string;
@@ -1587,10 +1587,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1587
1587
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1588
1588
  }> | undefined;
1589
1589
  updatedAt?: number | undefined;
1590
+ lastSignInAt?: number | null | undefined;
1590
1591
  primaryEmail?: string | null | undefined;
1591
1592
  primaryPhone?: string | null | undefined;
1592
1593
  isSuspended?: boolean | undefined;
1593
- lastSignInAt?: number | null | undefined;
1594
1594
  hasPassword?: boolean | undefined;
1595
1595
  ssoIdentities?: {
1596
1596
  issuer: string;
@@ -1769,10 +1769,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1769
1769
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1770
1770
  }> | undefined;
1771
1771
  updatedAt?: number | undefined;
1772
+ lastSignInAt?: number | null | undefined;
1772
1773
  primaryEmail?: string | null | undefined;
1773
1774
  primaryPhone?: string | null | undefined;
1774
1775
  isSuspended?: boolean | undefined;
1775
- lastSignInAt?: number | null | undefined;
1776
1776
  hasPassword?: boolean | undefined;
1777
1777
  ssoIdentities?: {
1778
1778
  issuer: string;
@@ -1952,10 +1952,10 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
1952
1952
  details?: Record<string, import("@withtyped/server").Json> | undefined;
1953
1953
  }> | undefined;
1954
1954
  updatedAt?: number | undefined;
1955
+ lastSignInAt?: number | null | undefined;
1955
1956
  primaryEmail?: string | null | undefined;
1956
1957
  primaryPhone?: string | null | undefined;
1957
1958
  isSuspended?: boolean | undefined;
1958
- lastSignInAt?: number | null | undefined;
1959
1959
  hasPassword?: boolean | undefined;
1960
1960
  ssoIdentities?: {
1961
1961
  issuer: string;
@@ -156,7 +156,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
156
156
  lastSignInAt: ZodType<number | null, z.ZodTypeDef, number | null>;
157
157
  createdAt: ZodType<number, z.ZodTypeDef, number>;
158
158
  updatedAt: ZodType<number, z.ZodTypeDef, number>;
159
- }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt"> & {
159
+ }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
160
160
  hasPassword: z.ZodBoolean;
161
161
  ssoIdentities: z.ZodArray<z.ZodObject<Pick<{
162
162
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -310,10 +310,10 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
310
310
  }[];
311
311
  identities: import("../../foundations/index.js").Identities;
312
312
  updatedAt: number;
313
+ lastSignInAt: number | null;
313
314
  primaryEmail: string | null;
314
315
  primaryPhone: string | null;
315
316
  isSuspended: boolean;
316
- lastSignInAt: number | null;
317
317
  hasPassword: boolean;
318
318
  ssoIdentities: {
319
319
  issuer: string;
@@ -354,10 +354,10 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
354
354
  }[];
355
355
  identities: import("../../foundations/index.js").Identities;
356
356
  updatedAt: number;
357
+ lastSignInAt: number | null;
357
358
  primaryEmail: string | null;
358
359
  primaryPhone: string | null;
359
360
  isSuspended: boolean;
360
- lastSignInAt: number | null;
361
361
  hasPassword: boolean;
362
362
  ssoIdentities: {
363
363
  issuer: string;
@@ -1076,10 +1076,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1076
1076
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1077
1077
  }>>>;
1078
1078
  updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
1079
+ lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
1079
1080
  primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1080
1081
  primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1081
1082
  isSuspended: z.ZodOptional<ZodType<boolean, z.ZodTypeDef, boolean>>;
1082
- lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
1083
1083
  hasPassword: z.ZodOptional<z.ZodBoolean>;
1084
1084
  ssoIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
1085
1085
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -1256,10 +1256,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1256
1256
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1257
1257
  }> | undefined;
1258
1258
  updatedAt?: number | undefined;
1259
+ lastSignInAt?: number | null | undefined;
1259
1260
  primaryEmail?: string | null | undefined;
1260
1261
  primaryPhone?: string | null | undefined;
1261
1262
  isSuspended?: boolean | undefined;
1262
- lastSignInAt?: number | null | undefined;
1263
1263
  hasPassword?: boolean | undefined;
1264
1264
  ssoIdentities?: {
1265
1265
  issuer: string;
@@ -1323,10 +1323,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1323
1323
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1324
1324
  }> | undefined;
1325
1325
  updatedAt?: number | undefined;
1326
+ lastSignInAt?: number | null | undefined;
1326
1327
  primaryEmail?: string | null | undefined;
1327
1328
  primaryPhone?: string | null | undefined;
1328
1329
  isSuspended?: boolean | undefined;
1329
- lastSignInAt?: number | null | undefined;
1330
1330
  hasPassword?: boolean | undefined;
1331
1331
  ssoIdentities?: {
1332
1332
  issuer: string;
@@ -1996,10 +1996,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1996
1996
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
1997
1997
  }> | undefined;
1998
1998
  updatedAt?: number | undefined;
1999
+ lastSignInAt?: number | null | undefined;
1999
2000
  primaryEmail?: string | null | undefined;
2000
2001
  primaryPhone?: string | null | undefined;
2001
2002
  isSuspended?: boolean | undefined;
2002
- lastSignInAt?: number | null | undefined;
2003
2003
  hasPassword?: boolean | undefined;
2004
2004
  ssoIdentities?: {
2005
2005
  issuer: string;
@@ -2159,10 +2159,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2159
2159
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2160
2160
  }> | undefined;
2161
2161
  updatedAt?: number | undefined;
2162
+ lastSignInAt?: number | null | undefined;
2162
2163
  primaryEmail?: string | null | undefined;
2163
2164
  primaryPhone?: string | null | undefined;
2164
2165
  isSuspended?: boolean | undefined;
2165
- lastSignInAt?: number | null | undefined;
2166
2166
  hasPassword?: boolean | undefined;
2167
2167
  ssoIdentities?: {
2168
2168
  issuer: string;
@@ -2326,10 +2326,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2326
2326
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2327
2327
  }> | undefined;
2328
2328
  updatedAt?: number | undefined;
2329
+ lastSignInAt?: number | null | undefined;
2329
2330
  primaryEmail?: string | null | undefined;
2330
2331
  primaryPhone?: string | null | undefined;
2331
2332
  isSuspended?: boolean | undefined;
2332
- lastSignInAt?: number | null | undefined;
2333
2333
  hasPassword?: boolean | undefined;
2334
2334
  ssoIdentities?: {
2335
2335
  issuer: string;
@@ -2506,10 +2506,10 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2506
2506
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2507
2507
  }> | undefined;
2508
2508
  updatedAt?: number | undefined;
2509
+ lastSignInAt?: number | null | undefined;
2509
2510
  primaryEmail?: string | null | undefined;
2510
2511
  primaryPhone?: string | null | undefined;
2511
2512
  isSuspended?: boolean | undefined;
2512
- lastSignInAt?: number | null | undefined;
2513
2513
  hasPassword?: boolean | undefined;
2514
2514
  ssoIdentities?: {
2515
2515
  issuer: string;
@@ -2784,10 +2784,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
2784
2784
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2785
2785
  }>>>;
2786
2786
  updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
2787
+ lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
2787
2788
  primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
2788
2789
  primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
2789
2790
  isSuspended: z.ZodOptional<ZodType<boolean, z.ZodTypeDef, boolean>>;
2790
- lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
2791
2791
  hasPassword: z.ZodOptional<z.ZodBoolean>;
2792
2792
  ssoIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
2793
2793
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -2964,10 +2964,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
2964
2964
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
2965
2965
  }> | undefined;
2966
2966
  updatedAt?: number | undefined;
2967
+ lastSignInAt?: number | null | undefined;
2967
2968
  primaryEmail?: string | null | undefined;
2968
2969
  primaryPhone?: string | null | undefined;
2969
2970
  isSuspended?: boolean | undefined;
2970
- lastSignInAt?: number | null | undefined;
2971
2971
  hasPassword?: boolean | undefined;
2972
2972
  ssoIdentities?: {
2973
2973
  issuer: string;
@@ -3031,10 +3031,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
3031
3031
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
3032
3032
  }> | undefined;
3033
3033
  updatedAt?: number | undefined;
3034
+ lastSignInAt?: number | null | undefined;
3034
3035
  primaryEmail?: string | null | undefined;
3035
3036
  primaryPhone?: string | null | undefined;
3036
3037
  isSuspended?: boolean | undefined;
3037
- lastSignInAt?: number | null | undefined;
3038
3038
  hasPassword?: boolean | undefined;
3039
3039
  ssoIdentities?: {
3040
3040
  issuer: string;
@@ -3704,10 +3704,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
3704
3704
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
3705
3705
  }> | undefined;
3706
3706
  updatedAt?: number | undefined;
3707
+ lastSignInAt?: number | null | undefined;
3707
3708
  primaryEmail?: string | null | undefined;
3708
3709
  primaryPhone?: string | null | undefined;
3709
3710
  isSuspended?: boolean | undefined;
3710
- lastSignInAt?: number | null | undefined;
3711
3711
  hasPassword?: boolean | undefined;
3712
3712
  ssoIdentities?: {
3713
3713
  issuer: string;
@@ -3867,10 +3867,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
3867
3867
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
3868
3868
  }> | undefined;
3869
3869
  updatedAt?: number | undefined;
3870
+ lastSignInAt?: number | null | undefined;
3870
3871
  primaryEmail?: string | null | undefined;
3871
3872
  primaryPhone?: string | null | undefined;
3872
3873
  isSuspended?: boolean | undefined;
3873
- lastSignInAt?: number | null | undefined;
3874
3874
  hasPassword?: boolean | undefined;
3875
3875
  ssoIdentities?: {
3876
3876
  issuer: string;
@@ -4048,10 +4048,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4048
4048
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
4049
4049
  }> | undefined;
4050
4050
  updatedAt?: number | undefined;
4051
+ lastSignInAt?: number | null | undefined;
4051
4052
  primaryEmail?: string | null | undefined;
4052
4053
  primaryPhone?: string | null | undefined;
4053
4054
  isSuspended?: boolean | undefined;
4054
- lastSignInAt?: number | null | undefined;
4055
4055
  hasPassword?: boolean | undefined;
4056
4056
  ssoIdentities?: {
4057
4057
  issuer: string;
@@ -4229,10 +4229,10 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4229
4229
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
4230
4230
  }> | undefined;
4231
4231
  updatedAt?: number | undefined;
4232
+ lastSignInAt?: number | null | undefined;
4232
4233
  primaryEmail?: string | null | undefined;
4233
4234
  primaryPhone?: string | null | undefined;
4234
4235
  isSuspended?: boolean | undefined;
4235
- lastSignInAt?: number | null | undefined;
4236
4236
  hasPassword?: boolean | undefined;
4237
4237
  ssoIdentities?: {
4238
4238
  issuer: string;
@@ -4,7 +4,7 @@ export declare const samlApplicationCreateGuard: z.ZodObject<{
4
4
  name: z.ZodType<string, z.ZodTypeDef, string>;
5
5
  customData: z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>>;
6
6
  description: z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>;
7
- attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
7
+ attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
8
8
  entityId: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
9
9
  acsUrl: z.ZodOptional<z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>>;
10
10
  encryption: z.ZodOptional<z.ZodType<{
@@ -23,7 +23,7 @@ export declare const samlApplicationCreateGuard: z.ZodObject<{
23
23
  nameIdFormat: NameIdFormat;
24
24
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
25
25
  description?: string | null;
26
- attributeMapping?: Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
26
+ attributeMapping?: Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
27
27
  entityId?: string | null | undefined;
28
28
  acsUrl?: import("../foundations/index.js").SamlAcsUrl | null | undefined;
29
29
  encryption?: {
@@ -35,7 +35,7 @@ export declare const samlApplicationCreateGuard: z.ZodObject<{
35
35
  name: string;
36
36
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
37
37
  description?: string | null;
38
- attributeMapping?: Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
38
+ attributeMapping?: Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
39
39
  entityId?: string | null | undefined;
40
40
  acsUrl?: import("../foundations/index.js").SamlAcsUrl | null | undefined;
41
41
  encryption?: {
@@ -50,7 +50,7 @@ export declare const samlApplicationPatchGuard: z.ZodObject<{
50
50
  name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
51
51
  customData: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>>>;
52
52
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>>;
53
- attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
53
+ attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
54
54
  entityId: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
55
55
  acsUrl: z.ZodOptional<z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>>;
56
56
  encryption: z.ZodOptional<z.ZodType<{
@@ -68,7 +68,7 @@ export declare const samlApplicationPatchGuard: z.ZodObject<{
68
68
  name?: string | undefined;
69
69
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
70
70
  description?: string | null;
71
- attributeMapping?: Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
71
+ attributeMapping?: Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
72
72
  entityId?: string | null | undefined;
73
73
  acsUrl?: import("../foundations/index.js").SamlAcsUrl | null | undefined;
74
74
  encryption?: {
@@ -81,7 +81,7 @@ export declare const samlApplicationPatchGuard: z.ZodObject<{
81
81
  name?: string | undefined;
82
82
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
83
83
  description?: string | null;
84
- attributeMapping?: Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
84
+ attributeMapping?: Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>> | undefined;
85
85
  entityId?: string | null | undefined;
86
86
  acsUrl?: import("../foundations/index.js").SamlAcsUrl | null | undefined;
87
87
  encryption?: {
@@ -101,7 +101,7 @@ export declare const samlApplicationResponseGuard: z.ZodObject<{
101
101
  customData: z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
102
102
  description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
103
103
  isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
104
- attributeMapping: z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>;
104
+ attributeMapping: z.ZodType<Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "email" | "username" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>;
105
105
  entityId: z.ZodType<string | null, z.ZodTypeDef, string | null>;
106
106
  acsUrl: z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>;
107
107
  encryption: z.ZodType<{
@@ -1,7 +1,7 @@
1
1
  import { type ConnectorMetadata, type GoogleOneTapConfig } from '@logto/connector-kit';
2
2
  import { z } from 'zod';
3
3
  import { type CustomProfileField, type SignInExperience } from '../db-entries/index.js';
4
- import { CaptchaType } from '../foundations/jsonb-types/index.js';
4
+ import { CaptchaType, RecaptchaEnterpriseMode } from '../foundations/jsonb-types/index.js';
5
5
  import { type SsoConnectorMetadata } from './sso-connector.js';
6
6
  type ForgotPassword = {
7
7
  phone: boolean;
@@ -32,6 +32,8 @@ export type FullSignInExperience = Omit<SignInExperience, 'forgotPasswordMethods
32
32
  captchaConfig?: {
33
33
  type: CaptchaType;
34
34
  siteKey: string;
35
+ domain?: string;
36
+ mode?: RecaptchaEnterpriseMode;
35
37
  };
36
38
  customProfileFields?: Readonly<CustomProfileField[]>;
37
39
  };
@@ -127,6 +129,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
127
129
  } | undefined;
128
130
  }>;
129
131
  mfa: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").Mfa, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").Mfa>;
132
+ adaptiveMfa: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").AdaptiveMfa, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").AdaptiveMfa>;
130
133
  singleSignOnEnabled: z.ZodType<boolean, z.ZodTypeDef, boolean>;
131
134
  supportEmail: z.ZodType<string | null, z.ZodTypeDef, string | null>;
132
135
  supportWebsiteUrl: z.ZodType<string | null, z.ZodTypeDef, string | null>;
@@ -139,6 +142,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
139
142
  sentinelPolicy: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").SentinelPolicy, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").SentinelPolicy>;
140
143
  emailBlocklistPolicy: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").EmailBlocklistPolicy, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").EmailBlocklistPolicy>;
141
144
  forgotPasswordMethods: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").ForgotPasswordMethod[] | null, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").ForgotPasswordMethod[] | null>;
145
+ passkeySignIn: z.ZodType<import("../foundations/jsonb-types/sign-in-experience.js").PasskeySignIn, z.ZodTypeDef, import("../foundations/jsonb-types/sign-in-experience.js").PasskeySignIn>;
142
146
  }, "forgotPasswordMethods"> & {
143
147
  socialConnectors: z.ZodArray<z.ZodObject<Omit<{
144
148
  id: z.ZodString;
@@ -674,12 +678,18 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
674
678
  captchaConfig: z.ZodOptional<z.ZodObject<{
675
679
  type: z.ZodNativeEnum<typeof CaptchaType>;
676
680
  siteKey: z.ZodString;
681
+ domain: z.ZodOptional<z.ZodString>;
682
+ mode: z.ZodOptional<z.ZodNativeEnum<typeof RecaptchaEnterpriseMode>>;
677
683
  }, "strip", z.ZodTypeAny, {
678
684
  type: CaptchaType;
679
685
  siteKey: string;
686
+ domain?: string | undefined;
687
+ mode?: RecaptchaEnterpriseMode | undefined;
680
688
  }, {
681
689
  type: CaptchaType;
682
690
  siteKey: string;
691
+ domain?: string | undefined;
692
+ mode?: RecaptchaEnterpriseMode | undefined;
683
693
  }>>;
684
694
  customProfileFields: z.ZodArray<import("../index.js").Guard<CustomProfileField>, "many">;
685
695
  }, "strip", z.ZodTypeAny, {
@@ -702,6 +712,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
702
712
  customContent: import("../foundations/jsonb-types/sign-in-experience.js").CustomContent;
703
713
  customUiAssets: import("../foundations/jsonb-types/sign-in-experience.js").CustomUiAssets | null;
704
714
  passwordPolicy: import("../foundations/jsonb-types/logs.js").PartialPasswordPolicy;
715
+ adaptiveMfa: import("../foundations/jsonb-types/sign-in-experience.js").AdaptiveMfa;
705
716
  singleSignOnEnabled: boolean;
706
717
  supportEmail: string | null;
707
718
  supportWebsiteUrl: string | null;
@@ -709,6 +720,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
709
720
  captchaPolicy: import("../foundations/jsonb-types/sign-in-experience.js").CaptchaPolicy;
710
721
  sentinelPolicy: import("../foundations/jsonb-types/sign-in-experience.js").SentinelPolicy;
711
722
  emailBlocklistPolicy: import("../foundations/jsonb-types/sign-in-experience.js").EmailBlocklistPolicy;
723
+ passkeySignIn: import("../foundations/jsonb-types/sign-in-experience.js").PasskeySignIn;
712
724
  socialConnectors: {
713
725
  name: {
714
726
  en: string;
@@ -873,6 +885,8 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
873
885
  captchaConfig?: {
874
886
  type: CaptchaType;
875
887
  siteKey: string;
888
+ domain?: string | undefined;
889
+ mode?: RecaptchaEnterpriseMode | undefined;
876
890
  } | undefined;
877
891
  }, {
878
892
  id: string;
@@ -894,6 +908,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
894
908
  customContent: import("../foundations/jsonb-types/sign-in-experience.js").CustomContent;
895
909
  customUiAssets: import("../foundations/jsonb-types/sign-in-experience.js").CustomUiAssets | null;
896
910
  passwordPolicy: import("../foundations/jsonb-types/logs.js").PartialPasswordPolicy;
911
+ adaptiveMfa: import("../foundations/jsonb-types/sign-in-experience.js").AdaptiveMfa;
897
912
  singleSignOnEnabled: boolean;
898
913
  supportEmail: string | null;
899
914
  supportWebsiteUrl: string | null;
@@ -901,6 +916,7 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
901
916
  captchaPolicy: import("../foundations/jsonb-types/sign-in-experience.js").CaptchaPolicy;
902
917
  sentinelPolicy: import("../foundations/jsonb-types/sign-in-experience.js").SentinelPolicy;
903
918
  emailBlocklistPolicy: import("../foundations/jsonb-types/sign-in-experience.js").EmailBlocklistPolicy;
919
+ passkeySignIn: import("../foundations/jsonb-types/sign-in-experience.js").PasskeySignIn;
904
920
  socialConnectors: {
905
921
  name: {
906
922
  en: string;
@@ -1065,6 +1081,8 @@ export declare const fullSignInExperienceGuard: z.ZodObject<Omit<{
1065
1081
  captchaConfig?: {
1066
1082
  type: CaptchaType;
1067
1083
  siteKey: string;
1084
+ domain?: string | undefined;
1085
+ mode?: RecaptchaEnterpriseMode | undefined;
1068
1086
  } | undefined;
1069
1087
  }>;
1070
1088
  export {};
@@ -1,7 +1,7 @@
1
1
  import { connectorMetadataGuard, googleOneTapConfigGuard, } from '@logto/connector-kit';
2
2
  import { z } from 'zod';
3
3
  import { CustomProfileFields, SignInExperiences, } from '../db-entries/index.js';
4
- import { CaptchaType } from '../foundations/jsonb-types/index.js';
4
+ import { CaptchaType, RecaptchaEnterpriseMode } from '../foundations/jsonb-types/index.js';
5
5
  import { ssoConnectorMetadataGuard } from './sso-connector.js';
6
6
  export const fullSignInExperienceGuard = SignInExperiences.guard
7
7
  .omit({ forgotPasswordMethods: true })
@@ -25,6 +25,8 @@ export const fullSignInExperienceGuard = SignInExperiences.guard
25
25
  .object({
26
26
  type: z.nativeEnum(CaptchaType),
27
27
  siteKey: z.string(),
28
+ domain: z.string().optional(),
29
+ mode: z.nativeEnum(RecaptchaEnterpriseMode).optional(),
28
30
  })
29
31
  .optional(),
30
32
  customProfileFields: CustomProfileFields.guard.array(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { type User } from '../db-entries/index.js';
3
3
  import { MfaFactor } from '../foundations/index.js';
4
- export declare const userInfoSelectFields: readonly ("name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt")[];
4
+ export declare const userInfoSelectFields: readonly ("name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended")[];
5
5
  export declare const userInfoGuard: z.ZodObject<Pick<{
6
6
  tenantId: z.ZodType<string, z.ZodTypeDef, string>;
7
7
  id: z.ZodType<string, z.ZodTypeDef, string>;
@@ -122,7 +122,7 @@ export declare const userInfoGuard: z.ZodObject<Pick<{
122
122
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
123
123
  createdAt: z.ZodType<number, z.ZodTypeDef, number>;
124
124
  updatedAt: z.ZodType<number, z.ZodTypeDef, number>;
125
- }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt">, "strip", z.ZodTypeAny, {
125
+ }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended">, "strip", z.ZodTypeAny, {
126
126
  name: string | null;
127
127
  id: string;
128
128
  applicationId: string | null;
@@ -133,10 +133,10 @@ export declare const userInfoGuard: z.ZodObject<Pick<{
133
133
  customData: import("@withtyped/server/lib/types.js").JsonObject;
134
134
  identities: import("../foundations/index.js").Identities;
135
135
  updatedAt: number;
136
+ lastSignInAt: number | null;
136
137
  primaryEmail: string | null;
137
138
  primaryPhone: string | null;
138
139
  isSuspended: boolean;
139
- lastSignInAt: number | null;
140
140
  }, {
141
141
  name: string | null;
142
142
  id: string;
@@ -148,10 +148,10 @@ export declare const userInfoGuard: z.ZodObject<Pick<{
148
148
  customData: import("@withtyped/server/lib/types.js").JsonObject;
149
149
  identities: import("../foundations/index.js").Identities;
150
150
  updatedAt: number;
151
+ lastSignInAt: number | null;
151
152
  primaryEmail: string | null;
152
153
  primaryPhone: string | null;
153
154
  isSuspended: boolean;
154
- lastSignInAt: number | null;
155
155
  }>;
156
156
  export type UserInfo = z.infer<typeof userInfoGuard>;
157
157
  export declare const userProfileResponseGuard: z.ZodObject<Pick<{
@@ -274,7 +274,7 @@ export declare const userProfileResponseGuard: z.ZodObject<Pick<{
274
274
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
275
275
  createdAt: z.ZodType<number, z.ZodTypeDef, number>;
276
276
  updatedAt: z.ZodType<number, z.ZodTypeDef, number>;
277
- }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt"> & {
277
+ }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
278
278
  hasPassword: z.ZodOptional<z.ZodBoolean>;
279
279
  ssoIdentities: z.ZodOptional<z.ZodArray<import("../foundations/schemas.js").Guard<import("../db-entries/user-sso-identity.js").UserSsoIdentity>, "many">>;
280
280
  }, "strip", z.ZodTypeAny, {
@@ -288,10 +288,10 @@ export declare const userProfileResponseGuard: z.ZodObject<Pick<{
288
288
  customData: import("@withtyped/server/lib/types.js").JsonObject;
289
289
  identities: import("../foundations/index.js").Identities;
290
290
  updatedAt: number;
291
+ lastSignInAt: number | null;
291
292
  primaryEmail: string | null;
292
293
  primaryPhone: string | null;
293
294
  isSuspended: boolean;
294
- lastSignInAt: number | null;
295
295
  hasPassword?: boolean | undefined;
296
296
  ssoIdentities?: import("../db-entries/user-sso-identity.js").UserSsoIdentity[] | undefined;
297
297
  }, {
@@ -305,10 +305,10 @@ export declare const userProfileResponseGuard: z.ZodObject<Pick<{
305
305
  customData: import("@withtyped/server/lib/types.js").JsonObject;
306
306
  identities: import("../foundations/index.js").Identities;
307
307
  updatedAt: number;
308
+ lastSignInAt: number | null;
308
309
  primaryEmail: string | null;
309
310
  primaryPhone: string | null;
310
311
  isSuspended: boolean;
311
- lastSignInAt: number | null;
312
312
  hasPassword?: boolean | undefined;
313
313
  ssoIdentities?: import("../db-entries/user-sso-identity.js").UserSsoIdentity[] | undefined;
314
314
  }>;
@@ -316,6 +316,7 @@ export type UserProfileResponse = z.infer<typeof userProfileResponseGuard>;
316
316
  export declare const userMfaVerificationResponseGuard: z.ZodArray<z.ZodObject<{
317
317
  id: z.ZodString;
318
318
  createdAt: z.ZodString;
319
+ lastUsedAt: z.ZodOptional<z.ZodString>;
319
320
  type: z.ZodNativeEnum<typeof MfaFactor>;
320
321
  agent: z.ZodOptional<z.ZodString>;
321
322
  name: z.ZodOptional<z.ZodString>;
@@ -325,6 +326,7 @@ export declare const userMfaVerificationResponseGuard: z.ZodArray<z.ZodObject<{
325
326
  id: string;
326
327
  createdAt: string;
327
328
  name?: string | undefined;
329
+ lastUsedAt?: string | undefined;
328
330
  agent?: string | undefined;
329
331
  remainCodes?: number | undefined;
330
332
  }, {
@@ -332,6 +334,7 @@ export declare const userMfaVerificationResponseGuard: z.ZodArray<z.ZodObject<{
332
334
  id: string;
333
335
  createdAt: string;
334
336
  name?: string | undefined;
337
+ lastUsedAt?: string | undefined;
335
338
  agent?: string | undefined;
336
339
  remainCodes?: number | undefined;
337
340
  }>, "many">;