@logto/schemas 1.42.0 → 1.44.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 (189) hide show
  1. package/alterations/1.43.0-1785393731-add-oidc-model-instances-account-id-partial-index.ts +33 -0
  2. package/alterations/1.43.0-1785481546-add-tenant-aware-scope-indexes.ts +33 -0
  3. package/alterations/1.43.0-1785488115-add-cimd-permission-ceiling-tables.ts +77 -0
  4. package/alterations/1.43.0-1785722831-add-oidc-session-extensions-account-id-index.ts +27 -0
  5. package/alterations/1.43.0-1785835991-add-cimd-client-identifier-columns.ts +31 -0
  6. package/alterations/1.43.0-1786325989-add-cimd-grant-organizations-table.ts +54 -0
  7. package/alterations/1.43.0-1786333495-add-trusted-devices.ts +57 -0
  8. package/alterations/1.43.0-1786373004-tighten-cimd-grant-organizations-pkey.ts +28 -0
  9. package/alterations/1.43.0-1786414712-add-service-logs-email-indexes.ts +34 -0
  10. package/alterations/1.43.0-1786431364-add-cimd-grant-client-snapshots-table.ts +43 -0
  11. package/alterations/1.44.0-1788946735-add-saml-authn-request-config.ts +18 -0
  12. package/alterations/1.44.0-1789000000-extend-user-id-length.ts +61 -0
  13. package/alterations-js/1.43.0-1785393731-add-oidc-model-instances-account-id-partial-index.js +28 -0
  14. package/alterations-js/1.43.0-1785481546-add-tenant-aware-scope-indexes.js +28 -0
  15. package/alterations-js/1.43.0-1785488115-add-cimd-permission-ceiling-tables.js +69 -0
  16. package/alterations-js/1.43.0-1785722831-add-oidc-session-extensions-account-id-index.js +23 -0
  17. package/alterations-js/1.43.0-1785835991-add-cimd-client-identifier-columns.js +27 -0
  18. package/alterations-js/1.43.0-1786325989-add-cimd-grant-organizations-table.js +49 -0
  19. package/alterations-js/1.43.0-1786333495-add-trusted-devices.js +50 -0
  20. package/alterations-js/1.43.0-1786373004-tighten-cimd-grant-organizations-pkey.js +24 -0
  21. package/alterations-js/1.43.0-1786414712-add-service-logs-email-indexes.js +30 -0
  22. package/alterations-js/1.43.0-1786431364-add-cimd-grant-client-snapshots-table.js +38 -0
  23. package/alterations-js/1.44.0-1788946735-add-saml-authn-request-config.js +14 -0
  24. package/alterations-js/1.44.0-1789000000-extend-user-id-length.js +47 -0
  25. package/lib/consts/experience.d.ts +3 -0
  26. package/lib/consts/experience.js +3 -0
  27. package/lib/consts/index.d.ts +2 -0
  28. package/lib/consts/index.js +2 -0
  29. package/lib/consts/license.d.ts +222 -0
  30. package/lib/consts/license.js +81 -0
  31. package/lib/consts/license.test.d.ts +1 -0
  32. package/lib/consts/license.test.js +96 -0
  33. package/lib/consts/oidc.d.ts +15 -1
  34. package/lib/consts/oidc.js +11 -0
  35. package/lib/consts/oidc.test.d.ts +1 -0
  36. package/lib/consts/oidc.test.js +15 -0
  37. package/lib/consts/product-event.d.ts +5 -1
  38. package/lib/consts/product-event.js +4 -0
  39. package/lib/consts/social-state.d.ts +12 -0
  40. package/lib/consts/social-state.js +12 -0
  41. package/lib/consts/subscriptions.d.ts +13 -1
  42. package/lib/consts/subscriptions.js +12 -0
  43. package/lib/db-entries/aggregated-daily-active-user.js +2 -2
  44. package/lib/db-entries/application-access-control-user-relation.js +2 -2
  45. package/lib/db-entries/application-user-consent-organization.js +2 -2
  46. package/lib/db-entries/cimd-grant-client-snapshot.d.ts +32 -0
  47. package/lib/db-entries/cimd-grant-client-snapshot.js +45 -0
  48. package/lib/db-entries/cimd-grant-organization.d.ts +30 -0
  49. package/lib/db-entries/cimd-grant-organization.js +37 -0
  50. package/lib/db-entries/cimd-organization-resource-scope.d.ts +20 -0
  51. package/lib/db-entries/cimd-organization-resource-scope.js +25 -0
  52. package/lib/db-entries/cimd-organization-scope.d.ts +20 -0
  53. package/lib/db-entries/cimd-organization-scope.js +25 -0
  54. package/lib/db-entries/cimd-resource-scope.d.ts +20 -0
  55. package/lib/db-entries/cimd-resource-scope.js +25 -0
  56. package/lib/db-entries/cimd-user-scope.d.ts +20 -0
  57. package/lib/db-entries/cimd-user-scope.js +25 -0
  58. package/lib/db-entries/daily-active-user.js +2 -2
  59. package/lib/db-entries/index.d.ts +7 -0
  60. package/lib/db-entries/index.js +7 -0
  61. package/lib/db-entries/oidc-session-extension.d.ts +3 -1
  62. package/lib/db-entries/oidc-session-extension.js +6 -2
  63. package/lib/db-entries/organization-invitation.js +4 -4
  64. package/lib/db-entries/organization-role-user-relation.js +2 -2
  65. package/lib/db-entries/organization-user-relation.js +2 -2
  66. package/lib/db-entries/organization.d.ts +5 -1
  67. package/lib/db-entries/organization.js +4 -0
  68. package/lib/db-entries/personal-access-token.js +2 -2
  69. package/lib/db-entries/saml-application-config.d.ts +4 -2
  70. package/lib/db-entries/saml-application-config.js +5 -1
  71. package/lib/db-entries/secret.js +2 -2
  72. package/lib/db-entries/sign-in-experience.d.ts +4 -2
  73. package/lib/db-entries/sign-in-experience.js +5 -1
  74. package/lib/db-entries/subject-token.js +2 -2
  75. package/lib/db-entries/trusted-device.d.ts +36 -0
  76. package/lib/db-entries/trusted-device.js +62 -0
  77. package/lib/db-entries/user-geo-location.js +2 -2
  78. package/lib/db-entries/user-sign-in-country.js +2 -2
  79. package/lib/db-entries/user-sso-identity.js +2 -2
  80. package/lib/db-entries/user.d.ts +3 -1
  81. package/lib/db-entries/user.js +6 -2
  82. package/lib/db-entries/users-role.js +2 -2
  83. package/lib/db-entries/verification-record.js +2 -2
  84. package/lib/db-entries/verification-status.js +2 -2
  85. package/lib/foundations/jsonb-types/account-centers.d.ts +3 -0
  86. package/lib/foundations/jsonb-types/account-centers.js +1 -0
  87. package/lib/foundations/jsonb-types/account-centers.test.d.ts +1 -0
  88. package/lib/foundations/jsonb-types/account-centers.test.js +13 -0
  89. package/lib/foundations/jsonb-types/captcha.d.ts +47 -1
  90. package/lib/foundations/jsonb-types/captcha.js +20 -0
  91. package/lib/foundations/jsonb-types/hooks.d.ts +5 -4
  92. package/lib/foundations/jsonb-types/hooks.js +3 -0
  93. package/lib/foundations/jsonb-types/logs.d.ts +18 -0
  94. package/lib/foundations/jsonb-types/logs.js +6 -0
  95. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +23 -0
  96. package/lib/foundations/jsonb-types/saml-application-configs.js +16 -0
  97. package/lib/foundations/jsonb-types/saml-application-configs.test.js +24 -1
  98. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +23 -3
  99. package/lib/foundations/jsonb-types/sign-in-experience.js +9 -0
  100. package/lib/foundations/jsonb-types/sign-in-experience.test.js +17 -1
  101. package/lib/types/authentication-context.d.ts +224 -0
  102. package/lib/types/authentication-context.js +238 -0
  103. package/lib/types/authentication-context.test.d.ts +1 -0
  104. package/lib/types/authentication-context.test.js +186 -0
  105. package/lib/types/connector.d.ts +8 -0
  106. package/lib/types/consent.d.ts +16 -190
  107. package/lib/types/consent.js +10 -1
  108. package/lib/types/cookie.d.ts +4 -0
  109. package/lib/types/cookie.js +6 -1
  110. package/lib/types/custom-profile-fields.d.ts +1 -0
  111. package/lib/types/hook.d.ts +31 -6
  112. package/lib/types/index.d.ts +2 -0
  113. package/lib/types/index.js +2 -0
  114. package/lib/types/interactions.d.ts +161 -0
  115. package/lib/types/interactions.js +23 -0
  116. package/lib/types/log/index.d.ts +5 -2
  117. package/lib/types/log/index.js +1 -0
  118. package/lib/types/log/interaction.d.ts +15 -2
  119. package/lib/types/log/interaction.js +5 -0
  120. package/lib/types/log/trusted-device.d.ts +7 -0
  121. package/lib/types/log/trusted-device.js +6 -0
  122. package/lib/types/logto-config/action.d.ts +1 -1
  123. package/lib/types/logto-config/action.js +1 -1
  124. package/lib/types/logto-config/index.d.ts +83 -7
  125. package/lib/types/logto-config/index.js +14 -0
  126. package/lib/types/logto-config/index.test.js +23 -0
  127. package/lib/types/logto-config/jwt-customizer.d.ts +123 -10
  128. package/lib/types/logto-config/jwt-customizer.js +1 -1
  129. package/lib/types/logto-config/oidc-provider.d.ts +2 -2
  130. package/lib/types/saml-application.d.ts +55 -1
  131. package/lib/types/saml-application.js +7 -1
  132. package/lib/types/service-log.d.ts +14 -1
  133. package/lib/types/service-log.js +13 -0
  134. package/lib/types/sign-in-experience.d.ts +20 -6
  135. package/lib/types/sign-in-experience.js +1 -0
  136. package/lib/types/ssr.d.ts +2 -0
  137. package/lib/types/system.d.ts +59 -7
  138. package/lib/types/system.js +36 -0
  139. package/lib/types/system.test.d.ts +1 -0
  140. package/lib/types/system.test.js +26 -0
  141. package/lib/types/trusted-device.d.ts +67 -0
  142. package/lib/types/trusted-device.js +16 -0
  143. package/lib/types/user-sessions.d.ts +195 -209
  144. package/lib/types/user-sessions.js +9 -4
  145. package/lib/types/user.d.ts +10 -3
  146. package/lib/types/user.js +1 -0
  147. package/lib/types/verification-records/code-verification.d.ts +17 -0
  148. package/lib/types/verification-records/code-verification.js +1 -0
  149. package/lib/utils/cimd.d.ts +14 -0
  150. package/lib/utils/cimd.js +14 -0
  151. package/lib/utils/cimd.test.d.ts +1 -0
  152. package/lib/utils/cimd.test.js +9 -0
  153. package/lib/utils/index.d.ts +1 -0
  154. package/lib/utils/index.js +1 -0
  155. package/lib/utils/oidc-private-key.test.js +44 -0
  156. package/package.json +9 -9
  157. package/tables/aggregated_daily_active_users.sql +1 -1
  158. package/tables/application_access_control_user_relations.sql +1 -1
  159. package/tables/application_user_consent_organizations.sql +1 -1
  160. package/tables/cimd_grant_client_snapshots.sql +27 -0
  161. package/tables/cimd_grant_organizations.sql +38 -0
  162. package/tables/cimd_organization_resource_scopes.sql +16 -0
  163. package/tables/cimd_organization_scopes.sql +15 -0
  164. package/tables/cimd_resource_scopes.sql +15 -0
  165. package/tables/cimd_user_scopes.sql +13 -0
  166. package/tables/daily_active_users.sql +1 -1
  167. package/tables/oidc_model_instances.sql +5 -0
  168. package/tables/oidc_session_extensions.sql +6 -1
  169. package/tables/organization_invitations.sql +2 -2
  170. package/tables/organization_role_user_relations.sql +1 -1
  171. package/tables/organization_scopes.sql +4 -0
  172. package/tables/organization_user_relations.sql +1 -1
  173. package/tables/organizations.sql +2 -0
  174. package/tables/personal_access_tokens.sql +1 -1
  175. package/tables/saml_application_configs.sql +1 -0
  176. package/tables/scopes.sql +4 -0
  177. package/tables/secrets.sql +1 -1
  178. package/tables/service_logs.sql +14 -0
  179. package/tables/sign_in_experiences.sql +1 -0
  180. package/tables/subject_tokens.sql +1 -1
  181. package/tables/trusted_devices.sql +25 -0
  182. package/tables/user_geo_locations.sql +1 -1
  183. package/tables/user_sign_in_countries.sql +1 -1
  184. package/tables/user_sso_identities.sql +1 -1
  185. package/tables/users.sql +2 -1
  186. package/tables/users_roles.sql +1 -1
  187. package/tables/verification_records.sql +1 -1
  188. package/tables/verification_statuses.sql +1 -1
  189. package/LICENSE +0 -373
@@ -92,6 +92,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
92
92
  }>;
93
93
  }>>;
94
94
  applicationId: ZodType<string | null, z.ZodTypeDef, string | null>;
95
+ cimdClientId: ZodType<string | null, z.ZodTypeDef, string | null>;
95
96
  identities: ZodType<Record<string, {
96
97
  userId: string;
97
98
  details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
@@ -164,7 +165,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
164
165
  passwordUpdatedAt: ZodType<number | null, z.ZodTypeDef, number | null>;
165
166
  createdAt: ZodType<number, z.ZodTypeDef, number>;
166
167
  updatedAt: ZodType<number, z.ZodTypeDef, number>;
167
- }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
168
+ }, "name" | "id" | "applicationId" | "cimdClientId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
168
169
  hasPassword: z.ZodBoolean;
169
170
  ssoIdentities: z.ZodArray<z.ZodObject<Pick<{
170
171
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -246,6 +247,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
246
247
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
247
248
  customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
248
249
  isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
250
+ isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
249
251
  color: ZodType<Partial<{
250
252
  primaryColor: string;
251
253
  isDarkModeEnabled: boolean;
@@ -294,6 +296,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
294
296
  name: string | null;
295
297
  id: string;
296
298
  applicationId: string | null;
299
+ cimdClientId: string | null;
297
300
  username: string | null;
298
301
  createdAt: number;
299
302
  profile: import("../../foundations/index.js").UserProfile;
@@ -338,6 +341,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
338
341
  name: string | null;
339
342
  id: string;
340
343
  applicationId: string | null;
344
+ cimdClientId: string | null;
341
345
  username: string | null;
342
346
  createdAt: number;
343
347
  profile: import("../../foundations/index.js").UserProfile;
@@ -427,6 +431,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
427
431
  id: z.ZodString;
428
432
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
429
433
  verified: z.ZodBoolean;
434
+ userId: z.ZodOptional<z.ZodString>;
430
435
  } & {
431
436
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
432
437
  identifier: z.ZodObject<{
@@ -448,6 +453,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
448
453
  };
449
454
  templateType: import("@logto/connector-kit").TemplateType;
450
455
  verified: boolean;
456
+ userId?: string | undefined;
451
457
  }, {
452
458
  type: VerificationType.EmailVerificationCode;
453
459
  id: string;
@@ -457,10 +463,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
457
463
  };
458
464
  templateType: import("@logto/connector-kit").TemplateType;
459
465
  verified: boolean;
466
+ userId?: string | undefined;
460
467
  }>, z.ZodObject<{
461
468
  id: z.ZodString;
462
469
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
463
470
  verified: z.ZodBoolean;
471
+ userId: z.ZodOptional<z.ZodString>;
464
472
  } & {
465
473
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
466
474
  identifier: z.ZodObject<{
@@ -482,6 +490,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
482
490
  };
483
491
  templateType: import("@logto/connector-kit").TemplateType;
484
492
  verified: boolean;
493
+ userId?: string | undefined;
485
494
  }, {
486
495
  type: VerificationType.PhoneVerificationCode;
487
496
  id: string;
@@ -491,10 +500,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
491
500
  };
492
501
  templateType: import("@logto/connector-kit").TemplateType;
493
502
  verified: boolean;
503
+ userId?: string | undefined;
494
504
  }>, z.ZodObject<{
495
505
  id: z.ZodString;
496
506
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
497
507
  verified: z.ZodBoolean;
508
+ userId: z.ZodOptional<z.ZodString>;
498
509
  } & {
499
510
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
500
511
  identifier: z.ZodObject<{
@@ -516,6 +527,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
516
527
  };
517
528
  templateType: import("@logto/connector-kit").TemplateType;
518
529
  verified: boolean;
530
+ userId?: string | undefined;
519
531
  }, {
520
532
  type: VerificationType.MfaEmailVerificationCode;
521
533
  id: string;
@@ -525,10 +537,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
525
537
  };
526
538
  templateType: import("@logto/connector-kit").TemplateType;
527
539
  verified: boolean;
540
+ userId?: string | undefined;
528
541
  }>, z.ZodObject<{
529
542
  id: z.ZodString;
530
543
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
531
544
  verified: z.ZodBoolean;
545
+ userId: z.ZodOptional<z.ZodString>;
532
546
  } & {
533
547
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
534
548
  identifier: z.ZodObject<{
@@ -550,6 +564,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
550
564
  };
551
565
  templateType: import("@logto/connector-kit").TemplateType;
552
566
  verified: boolean;
567
+ userId?: string | undefined;
553
568
  }, {
554
569
  type: VerificationType.MfaPhoneVerificationCode;
555
570
  id: string;
@@ -559,6 +574,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
559
574
  };
560
575
  templateType: import("@logto/connector-kit").TemplateType;
561
576
  verified: boolean;
577
+ userId?: string | undefined;
562
578
  }>, z.ZodObject<Omit<{
563
579
  id: z.ZodString;
564
580
  connectorId: z.ZodString;
@@ -947,6 +963,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
947
963
  };
948
964
  templateType: import("@logto/connector-kit").TemplateType;
949
965
  verified: boolean;
966
+ userId?: string | undefined;
950
967
  } | {
951
968
  type: VerificationType.PhoneVerificationCode;
952
969
  id: string;
@@ -956,6 +973,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
956
973
  };
957
974
  templateType: import("@logto/connector-kit").TemplateType;
958
975
  verified: boolean;
976
+ userId?: string | undefined;
959
977
  } | {
960
978
  type: VerificationType.MfaEmailVerificationCode;
961
979
  id: string;
@@ -965,6 +983,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
965
983
  };
966
984
  templateType: import("@logto/connector-kit").TemplateType;
967
985
  verified: boolean;
986
+ userId?: string | undefined;
968
987
  } | {
969
988
  type: VerificationType.MfaPhoneVerificationCode;
970
989
  id: string;
@@ -974,6 +993,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
974
993
  };
975
994
  templateType: import("@logto/connector-kit").TemplateType;
976
995
  verified: boolean;
996
+ userId?: string | undefined;
977
997
  } | {
978
998
  type: VerificationType.NewPasswordIdentity;
979
999
  id: string;
@@ -1062,6 +1082,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1062
1082
  };
1063
1083
  templateType: import("@logto/connector-kit").TemplateType;
1064
1084
  verified: boolean;
1085
+ userId?: string | undefined;
1065
1086
  } | {
1066
1087
  type: VerificationType.PhoneVerificationCode;
1067
1088
  id: string;
@@ -1071,6 +1092,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1071
1092
  };
1072
1093
  templateType: import("@logto/connector-kit").TemplateType;
1073
1094
  verified: boolean;
1095
+ userId?: string | undefined;
1074
1096
  } | {
1075
1097
  type: VerificationType.MfaEmailVerificationCode;
1076
1098
  id: string;
@@ -1080,6 +1102,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1080
1102
  };
1081
1103
  templateType: import("@logto/connector-kit").TemplateType;
1082
1104
  verified: boolean;
1105
+ userId?: string | undefined;
1083
1106
  } | {
1084
1107
  type: VerificationType.MfaPhoneVerificationCode;
1085
1108
  id: string;
@@ -1089,6 +1112,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1089
1112
  };
1090
1113
  templateType: import("@logto/connector-kit").TemplateType;
1091
1114
  verified: boolean;
1115
+ userId?: string | undefined;
1092
1116
  } | {
1093
1117
  type: VerificationType.NewPasswordIdentity;
1094
1118
  id: string;
@@ -1298,6 +1322,7 @@ export declare const jwtCustomizerOrganizationContextGuard: z.ZodObject<Pick<{
1298
1322
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
1299
1323
  customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
1300
1324
  isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
1325
+ isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
1301
1326
  color: ZodType<Partial<{
1302
1327
  primaryColor: string;
1303
1328
  isDarkModeEnabled: boolean;
@@ -1356,8 +1381,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1356
1381
  kind?: "AccessToken" | undefined;
1357
1382
  accountId?: string | undefined;
1358
1383
  scope?: string | undefined;
1359
- sessionUid?: string | undefined;
1360
1384
  clientId?: string | undefined;
1385
+ sessionUid?: string | undefined;
1361
1386
  expiresWithSession?: boolean | undefined;
1362
1387
  gty?: string | undefined;
1363
1388
  aud?: string | string[] | undefined;
@@ -1368,8 +1393,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1368
1393
  kind?: "AccessToken" | undefined;
1369
1394
  accountId?: string | undefined;
1370
1395
  scope?: string | undefined;
1371
- sessionUid?: string | undefined;
1372
1396
  clientId?: string | undefined;
1397
+ sessionUid?: string | undefined;
1373
1398
  expiresWithSession?: boolean | undefined;
1374
1399
  gty?: string | undefined;
1375
1400
  aud?: string | string[] | undefined;
@@ -1379,6 +1404,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1379
1404
  name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1380
1405
  id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
1381
1406
  applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1407
+ cimdClientId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1382
1408
  username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
1383
1409
  createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
1384
1410
  profile: z.ZodOptional<ZodType<Partial<{
@@ -1517,6 +1543,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1517
1543
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
1518
1544
  customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
1519
1545
  isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
1546
+ isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
1520
1547
  color: ZodType<Partial<{
1521
1548
  primaryColor: string;
1522
1549
  isDarkModeEnabled: boolean;
@@ -1565,6 +1592,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1565
1592
  name?: string | null | undefined;
1566
1593
  id?: string | undefined;
1567
1594
  applicationId?: string | null | undefined;
1595
+ cimdClientId?: string | null | undefined;
1568
1596
  username?: string | null | undefined;
1569
1597
  createdAt?: number | undefined;
1570
1598
  profile?: Partial<{
@@ -1632,6 +1660,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1632
1660
  name?: string | null | undefined;
1633
1661
  id?: string | undefined;
1634
1662
  applicationId?: string | null | undefined;
1663
+ cimdClientId?: string | null | undefined;
1635
1664
  username?: string | null | undefined;
1636
1665
  createdAt?: number | undefined;
1637
1666
  profile?: Partial<{
@@ -1743,6 +1772,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1743
1772
  id: z.ZodString;
1744
1773
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1745
1774
  verified: z.ZodBoolean;
1775
+ userId: z.ZodOptional<z.ZodString>;
1746
1776
  } & {
1747
1777
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
1748
1778
  identifier: z.ZodObject<{
@@ -1764,6 +1794,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1764
1794
  };
1765
1795
  templateType: import("@logto/connector-kit").TemplateType;
1766
1796
  verified: boolean;
1797
+ userId?: string | undefined;
1767
1798
  }, {
1768
1799
  type: VerificationType.EmailVerificationCode;
1769
1800
  id: string;
@@ -1773,10 +1804,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1773
1804
  };
1774
1805
  templateType: import("@logto/connector-kit").TemplateType;
1775
1806
  verified: boolean;
1807
+ userId?: string | undefined;
1776
1808
  }>, z.ZodObject<{
1777
1809
  id: z.ZodString;
1778
1810
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1779
1811
  verified: z.ZodBoolean;
1812
+ userId: z.ZodOptional<z.ZodString>;
1780
1813
  } & {
1781
1814
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
1782
1815
  identifier: z.ZodObject<{
@@ -1798,6 +1831,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1798
1831
  };
1799
1832
  templateType: import("@logto/connector-kit").TemplateType;
1800
1833
  verified: boolean;
1834
+ userId?: string | undefined;
1801
1835
  }, {
1802
1836
  type: VerificationType.PhoneVerificationCode;
1803
1837
  id: string;
@@ -1807,10 +1841,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1807
1841
  };
1808
1842
  templateType: import("@logto/connector-kit").TemplateType;
1809
1843
  verified: boolean;
1844
+ userId?: string | undefined;
1810
1845
  }>, z.ZodObject<{
1811
1846
  id: z.ZodString;
1812
1847
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1813
1848
  verified: z.ZodBoolean;
1849
+ userId: z.ZodOptional<z.ZodString>;
1814
1850
  } & {
1815
1851
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
1816
1852
  identifier: z.ZodObject<{
@@ -1832,6 +1868,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1832
1868
  };
1833
1869
  templateType: import("@logto/connector-kit").TemplateType;
1834
1870
  verified: boolean;
1871
+ userId?: string | undefined;
1835
1872
  }, {
1836
1873
  type: VerificationType.MfaEmailVerificationCode;
1837
1874
  id: string;
@@ -1841,10 +1878,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1841
1878
  };
1842
1879
  templateType: import("@logto/connector-kit").TemplateType;
1843
1880
  verified: boolean;
1881
+ userId?: string | undefined;
1844
1882
  }>, z.ZodObject<{
1845
1883
  id: z.ZodString;
1846
1884
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1847
1885
  verified: z.ZodBoolean;
1886
+ userId: z.ZodOptional<z.ZodString>;
1848
1887
  } & {
1849
1888
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
1850
1889
  identifier: z.ZodObject<{
@@ -1866,6 +1905,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1866
1905
  };
1867
1906
  templateType: import("@logto/connector-kit").TemplateType;
1868
1907
  verified: boolean;
1908
+ userId?: string | undefined;
1869
1909
  }, {
1870
1910
  type: VerificationType.MfaPhoneVerificationCode;
1871
1911
  id: string;
@@ -1875,6 +1915,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1875
1915
  };
1876
1916
  templateType: import("@logto/connector-kit").TemplateType;
1877
1917
  verified: boolean;
1918
+ userId?: string | undefined;
1878
1919
  }>, z.ZodObject<Omit<{
1879
1920
  id: z.ZodString;
1880
1921
  connectorId: z.ZodString;
@@ -2263,6 +2304,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2263
2304
  };
2264
2305
  templateType: import("@logto/connector-kit").TemplateType;
2265
2306
  verified: boolean;
2307
+ userId?: string | undefined;
2266
2308
  } | {
2267
2309
  type: VerificationType.PhoneVerificationCode;
2268
2310
  id: string;
@@ -2272,6 +2314,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2272
2314
  };
2273
2315
  templateType: import("@logto/connector-kit").TemplateType;
2274
2316
  verified: boolean;
2317
+ userId?: string | undefined;
2275
2318
  } | {
2276
2319
  type: VerificationType.MfaEmailVerificationCode;
2277
2320
  id: string;
@@ -2281,6 +2324,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2281
2324
  };
2282
2325
  templateType: import("@logto/connector-kit").TemplateType;
2283
2326
  verified: boolean;
2327
+ userId?: string | undefined;
2284
2328
  } | {
2285
2329
  type: VerificationType.MfaPhoneVerificationCode;
2286
2330
  id: string;
@@ -2290,6 +2334,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2290
2334
  };
2291
2335
  templateType: import("@logto/connector-kit").TemplateType;
2292
2336
  verified: boolean;
2337
+ userId?: string | undefined;
2293
2338
  } | {
2294
2339
  type: VerificationType.NewPasswordIdentity;
2295
2340
  id: string;
@@ -2378,6 +2423,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2378
2423
  };
2379
2424
  templateType: import("@logto/connector-kit").TemplateType;
2380
2425
  verified: boolean;
2426
+ userId?: string | undefined;
2381
2427
  } | {
2382
2428
  type: VerificationType.PhoneVerificationCode;
2383
2429
  id: string;
@@ -2387,6 +2433,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2387
2433
  };
2388
2434
  templateType: import("@logto/connector-kit").TemplateType;
2389
2435
  verified: boolean;
2436
+ userId?: string | undefined;
2390
2437
  } | {
2391
2438
  type: VerificationType.MfaEmailVerificationCode;
2392
2439
  id: string;
@@ -2396,6 +2443,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2396
2443
  };
2397
2444
  templateType: import("@logto/connector-kit").TemplateType;
2398
2445
  verified: boolean;
2446
+ userId?: string | undefined;
2399
2447
  } | {
2400
2448
  type: VerificationType.MfaPhoneVerificationCode;
2401
2449
  id: string;
@@ -2405,6 +2453,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2405
2453
  };
2406
2454
  templateType: import("@logto/connector-kit").TemplateType;
2407
2455
  verified: boolean;
2456
+ userId?: string | undefined;
2408
2457
  } | {
2409
2458
  type: VerificationType.NewPasswordIdentity;
2410
2459
  id: string;
@@ -2698,6 +2747,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2698
2747
  name?: string | null | undefined;
2699
2748
  id?: string | undefined;
2700
2749
  applicationId?: string | null | undefined;
2750
+ cimdClientId?: string | null | undefined;
2701
2751
  username?: string | null | undefined;
2702
2752
  createdAt?: number | undefined;
2703
2753
  profile?: Partial<{
@@ -2843,6 +2893,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2843
2893
  };
2844
2894
  templateType: import("@logto/connector-kit").TemplateType;
2845
2895
  verified: boolean;
2896
+ userId?: string | undefined;
2846
2897
  } | {
2847
2898
  type: VerificationType.PhoneVerificationCode;
2848
2899
  id: string;
@@ -2852,6 +2903,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2852
2903
  };
2853
2904
  templateType: import("@logto/connector-kit").TemplateType;
2854
2905
  verified: boolean;
2906
+ userId?: string | undefined;
2855
2907
  } | {
2856
2908
  type: VerificationType.MfaEmailVerificationCode;
2857
2909
  id: string;
@@ -2861,6 +2913,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2861
2913
  };
2862
2914
  templateType: import("@logto/connector-kit").TemplateType;
2863
2915
  verified: boolean;
2916
+ userId?: string | undefined;
2864
2917
  } | {
2865
2918
  type: VerificationType.MfaPhoneVerificationCode;
2866
2919
  id: string;
@@ -2870,6 +2923,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2870
2923
  };
2871
2924
  templateType: import("@logto/connector-kit").TemplateType;
2872
2925
  verified: boolean;
2926
+ userId?: string | undefined;
2873
2927
  } | {
2874
2928
  type: VerificationType.NewPasswordIdentity;
2875
2929
  id: string;
@@ -2947,6 +3001,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2947
3001
  name?: string | null | undefined;
2948
3002
  id?: string | undefined;
2949
3003
  applicationId?: string | null | undefined;
3004
+ cimdClientId?: string | null | undefined;
2950
3005
  username?: string | null | undefined;
2951
3006
  createdAt?: number | undefined;
2952
3007
  profile?: Partial<{
@@ -3092,6 +3147,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3092
3147
  };
3093
3148
  templateType: import("@logto/connector-kit").TemplateType;
3094
3149
  verified: boolean;
3150
+ userId?: string | undefined;
3095
3151
  } | {
3096
3152
  type: VerificationType.PhoneVerificationCode;
3097
3153
  id: string;
@@ -3101,6 +3157,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3101
3157
  };
3102
3158
  templateType: import("@logto/connector-kit").TemplateType;
3103
3159
  verified: boolean;
3160
+ userId?: string | undefined;
3104
3161
  } | {
3105
3162
  type: VerificationType.MfaEmailVerificationCode;
3106
3163
  id: string;
@@ -3110,6 +3167,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3110
3167
  };
3111
3168
  templateType: import("@logto/connector-kit").TemplateType;
3112
3169
  verified: boolean;
3170
+ userId?: string | undefined;
3113
3171
  } | {
3114
3172
  type: VerificationType.MfaPhoneVerificationCode;
3115
3173
  id: string;
@@ -3119,6 +3177,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3119
3177
  };
3120
3178
  templateType: import("@logto/connector-kit").TemplateType;
3121
3179
  verified: boolean;
3180
+ userId?: string | undefined;
3122
3181
  } | {
3123
3182
  type: VerificationType.NewPasswordIdentity;
3124
3183
  id: string;
@@ -3200,6 +3259,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3200
3259
  name?: string | null | undefined;
3201
3260
  id?: string | undefined;
3202
3261
  applicationId?: string | null | undefined;
3262
+ cimdClientId?: string | null | undefined;
3203
3263
  username?: string | null | undefined;
3204
3264
  createdAt?: number | undefined;
3205
3265
  profile?: Partial<{
@@ -3345,6 +3405,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3345
3405
  };
3346
3406
  templateType: import("@logto/connector-kit").TemplateType;
3347
3407
  verified: boolean;
3408
+ userId?: string | undefined;
3348
3409
  } | {
3349
3410
  type: VerificationType.PhoneVerificationCode;
3350
3411
  id: string;
@@ -3354,6 +3415,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3354
3415
  };
3355
3416
  templateType: import("@logto/connector-kit").TemplateType;
3356
3417
  verified: boolean;
3418
+ userId?: string | undefined;
3357
3419
  } | {
3358
3420
  type: VerificationType.MfaEmailVerificationCode;
3359
3421
  id: string;
@@ -3363,6 +3425,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3363
3425
  };
3364
3426
  templateType: import("@logto/connector-kit").TemplateType;
3365
3427
  verified: boolean;
3428
+ userId?: string | undefined;
3366
3429
  } | {
3367
3430
  type: VerificationType.MfaPhoneVerificationCode;
3368
3431
  id: string;
@@ -3372,6 +3435,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3372
3435
  };
3373
3436
  templateType: import("@logto/connector-kit").TemplateType;
3374
3437
  verified: boolean;
3438
+ userId?: string | undefined;
3375
3439
  } | {
3376
3440
  type: VerificationType.NewPasswordIdentity;
3377
3441
  id: string;
@@ -3453,8 +3517,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3453
3517
  kind?: "AccessToken" | undefined;
3454
3518
  accountId?: string | undefined;
3455
3519
  scope?: string | undefined;
3456
- sessionUid?: string | undefined;
3457
3520
  clientId?: string | undefined;
3521
+ sessionUid?: string | undefined;
3458
3522
  expiresWithSession?: boolean | undefined;
3459
3523
  gty?: string | undefined;
3460
3524
  aud?: string | string[] | undefined;
@@ -3467,6 +3531,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3467
3531
  name?: string | null | undefined;
3468
3532
  id?: string | undefined;
3469
3533
  applicationId?: string | null | undefined;
3534
+ cimdClientId?: string | null | undefined;
3470
3535
  username?: string | null | undefined;
3471
3536
  createdAt?: number | undefined;
3472
3537
  profile?: Partial<{
@@ -3612,6 +3677,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3612
3677
  };
3613
3678
  templateType: import("@logto/connector-kit").TemplateType;
3614
3679
  verified: boolean;
3680
+ userId?: string | undefined;
3615
3681
  } | {
3616
3682
  type: VerificationType.PhoneVerificationCode;
3617
3683
  id: string;
@@ -3621,6 +3687,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3621
3687
  };
3622
3688
  templateType: import("@logto/connector-kit").TemplateType;
3623
3689
  verified: boolean;
3690
+ userId?: string | undefined;
3624
3691
  } | {
3625
3692
  type: VerificationType.MfaEmailVerificationCode;
3626
3693
  id: string;
@@ -3630,6 +3697,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3630
3697
  };
3631
3698
  templateType: import("@logto/connector-kit").TemplateType;
3632
3699
  verified: boolean;
3700
+ userId?: string | undefined;
3633
3701
  } | {
3634
3702
  type: VerificationType.MfaPhoneVerificationCode;
3635
3703
  id: string;
@@ -3639,6 +3707,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3639
3707
  };
3640
3708
  templateType: import("@logto/connector-kit").TemplateType;
3641
3709
  verified: boolean;
3710
+ userId?: string | undefined;
3642
3711
  } | {
3643
3712
  type: VerificationType.NewPasswordIdentity;
3644
3713
  id: string;
@@ -3720,8 +3789,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3720
3789
  kind?: "AccessToken" | undefined;
3721
3790
  accountId?: string | undefined;
3722
3791
  scope?: string | undefined;
3723
- sessionUid?: string | undefined;
3724
3792
  clientId?: string | undefined;
3793
+ sessionUid?: string | undefined;
3725
3794
  expiresWithSession?: boolean | undefined;
3726
3795
  gty?: string | undefined;
3727
3796
  aud?: string | string[] | undefined;
@@ -4227,8 +4296,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4227
4296
  kind?: "AccessToken" | undefined;
4228
4297
  accountId?: string | undefined;
4229
4298
  scope?: string | undefined;
4230
- sessionUid?: string | undefined;
4231
4299
  clientId?: string | undefined;
4300
+ sessionUid?: string | undefined;
4232
4301
  expiresWithSession?: boolean | undefined;
4233
4302
  gty?: string | undefined;
4234
4303
  aud?: string | string[] | undefined;
@@ -4239,8 +4308,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4239
4308
  kind?: "AccessToken" | undefined;
4240
4309
  accountId?: string | undefined;
4241
4310
  scope?: string | undefined;
4242
- sessionUid?: string | undefined;
4243
4311
  clientId?: string | undefined;
4312
+ sessionUid?: string | undefined;
4244
4313
  expiresWithSession?: boolean | undefined;
4245
4314
  gty?: string | undefined;
4246
4315
  aud?: string | string[] | undefined;
@@ -4250,6 +4319,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4250
4319
  name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
4251
4320
  id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
4252
4321
  applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
4322
+ cimdClientId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
4253
4323
  username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
4254
4324
  createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
4255
4325
  profile: z.ZodOptional<ZodType<Partial<{
@@ -4388,6 +4458,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4388
4458
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
4389
4459
  customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
4390
4460
  isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
4461
+ isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
4391
4462
  color: ZodType<Partial<{
4392
4463
  primaryColor: string;
4393
4464
  isDarkModeEnabled: boolean;
@@ -4436,6 +4507,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4436
4507
  name?: string | null | undefined;
4437
4508
  id?: string | undefined;
4438
4509
  applicationId?: string | null | undefined;
4510
+ cimdClientId?: string | null | undefined;
4439
4511
  username?: string | null | undefined;
4440
4512
  createdAt?: number | undefined;
4441
4513
  profile?: Partial<{
@@ -4503,6 +4575,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4503
4575
  name?: string | null | undefined;
4504
4576
  id?: string | undefined;
4505
4577
  applicationId?: string | null | undefined;
4578
+ cimdClientId?: string | null | undefined;
4506
4579
  username?: string | null | undefined;
4507
4580
  createdAt?: number | undefined;
4508
4581
  profile?: Partial<{
@@ -4614,6 +4687,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4614
4687
  id: z.ZodString;
4615
4688
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4616
4689
  verified: z.ZodBoolean;
4690
+ userId: z.ZodOptional<z.ZodString>;
4617
4691
  } & {
4618
4692
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
4619
4693
  identifier: z.ZodObject<{
@@ -4635,6 +4709,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4635
4709
  };
4636
4710
  templateType: import("@logto/connector-kit").TemplateType;
4637
4711
  verified: boolean;
4712
+ userId?: string | undefined;
4638
4713
  }, {
4639
4714
  type: VerificationType.EmailVerificationCode;
4640
4715
  id: string;
@@ -4644,10 +4719,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4644
4719
  };
4645
4720
  templateType: import("@logto/connector-kit").TemplateType;
4646
4721
  verified: boolean;
4722
+ userId?: string | undefined;
4647
4723
  }>, z.ZodObject<{
4648
4724
  id: z.ZodString;
4649
4725
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4650
4726
  verified: z.ZodBoolean;
4727
+ userId: z.ZodOptional<z.ZodString>;
4651
4728
  } & {
4652
4729
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
4653
4730
  identifier: z.ZodObject<{
@@ -4669,6 +4746,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4669
4746
  };
4670
4747
  templateType: import("@logto/connector-kit").TemplateType;
4671
4748
  verified: boolean;
4749
+ userId?: string | undefined;
4672
4750
  }, {
4673
4751
  type: VerificationType.PhoneVerificationCode;
4674
4752
  id: string;
@@ -4678,10 +4756,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4678
4756
  };
4679
4757
  templateType: import("@logto/connector-kit").TemplateType;
4680
4758
  verified: boolean;
4759
+ userId?: string | undefined;
4681
4760
  }>, z.ZodObject<{
4682
4761
  id: z.ZodString;
4683
4762
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4684
4763
  verified: z.ZodBoolean;
4764
+ userId: z.ZodOptional<z.ZodString>;
4685
4765
  } & {
4686
4766
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
4687
4767
  identifier: z.ZodObject<{
@@ -4703,6 +4783,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4703
4783
  };
4704
4784
  templateType: import("@logto/connector-kit").TemplateType;
4705
4785
  verified: boolean;
4786
+ userId?: string | undefined;
4706
4787
  }, {
4707
4788
  type: VerificationType.MfaEmailVerificationCode;
4708
4789
  id: string;
@@ -4712,10 +4793,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4712
4793
  };
4713
4794
  templateType: import("@logto/connector-kit").TemplateType;
4714
4795
  verified: boolean;
4796
+ userId?: string | undefined;
4715
4797
  }>, z.ZodObject<{
4716
4798
  id: z.ZodString;
4717
4799
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4718
4800
  verified: z.ZodBoolean;
4801
+ userId: z.ZodOptional<z.ZodString>;
4719
4802
  } & {
4720
4803
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
4721
4804
  identifier: z.ZodObject<{
@@ -4737,6 +4820,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4737
4820
  };
4738
4821
  templateType: import("@logto/connector-kit").TemplateType;
4739
4822
  verified: boolean;
4823
+ userId?: string | undefined;
4740
4824
  }, {
4741
4825
  type: VerificationType.MfaPhoneVerificationCode;
4742
4826
  id: string;
@@ -4746,6 +4830,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4746
4830
  };
4747
4831
  templateType: import("@logto/connector-kit").TemplateType;
4748
4832
  verified: boolean;
4833
+ userId?: string | undefined;
4749
4834
  }>, z.ZodObject<Omit<{
4750
4835
  id: z.ZodString;
4751
4836
  connectorId: z.ZodString;
@@ -5134,6 +5219,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5134
5219
  };
5135
5220
  templateType: import("@logto/connector-kit").TemplateType;
5136
5221
  verified: boolean;
5222
+ userId?: string | undefined;
5137
5223
  } | {
5138
5224
  type: VerificationType.PhoneVerificationCode;
5139
5225
  id: string;
@@ -5143,6 +5229,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5143
5229
  };
5144
5230
  templateType: import("@logto/connector-kit").TemplateType;
5145
5231
  verified: boolean;
5232
+ userId?: string | undefined;
5146
5233
  } | {
5147
5234
  type: VerificationType.MfaEmailVerificationCode;
5148
5235
  id: string;
@@ -5152,6 +5239,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5152
5239
  };
5153
5240
  templateType: import("@logto/connector-kit").TemplateType;
5154
5241
  verified: boolean;
5242
+ userId?: string | undefined;
5155
5243
  } | {
5156
5244
  type: VerificationType.MfaPhoneVerificationCode;
5157
5245
  id: string;
@@ -5161,6 +5249,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5161
5249
  };
5162
5250
  templateType: import("@logto/connector-kit").TemplateType;
5163
5251
  verified: boolean;
5252
+ userId?: string | undefined;
5164
5253
  } | {
5165
5254
  type: VerificationType.NewPasswordIdentity;
5166
5255
  id: string;
@@ -5249,6 +5338,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5249
5338
  };
5250
5339
  templateType: import("@logto/connector-kit").TemplateType;
5251
5340
  verified: boolean;
5341
+ userId?: string | undefined;
5252
5342
  } | {
5253
5343
  type: VerificationType.PhoneVerificationCode;
5254
5344
  id: string;
@@ -5258,6 +5348,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5258
5348
  };
5259
5349
  templateType: import("@logto/connector-kit").TemplateType;
5260
5350
  verified: boolean;
5351
+ userId?: string | undefined;
5261
5352
  } | {
5262
5353
  type: VerificationType.MfaEmailVerificationCode;
5263
5354
  id: string;
@@ -5267,6 +5358,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5267
5358
  };
5268
5359
  templateType: import("@logto/connector-kit").TemplateType;
5269
5360
  verified: boolean;
5361
+ userId?: string | undefined;
5270
5362
  } | {
5271
5363
  type: VerificationType.MfaPhoneVerificationCode;
5272
5364
  id: string;
@@ -5276,6 +5368,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5276
5368
  };
5277
5369
  templateType: import("@logto/connector-kit").TemplateType;
5278
5370
  verified: boolean;
5371
+ userId?: string | undefined;
5279
5372
  } | {
5280
5373
  type: VerificationType.NewPasswordIdentity;
5281
5374
  id: string;
@@ -5569,6 +5662,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5569
5662
  name?: string | null | undefined;
5570
5663
  id?: string | undefined;
5571
5664
  applicationId?: string | null | undefined;
5665
+ cimdClientId?: string | null | undefined;
5572
5666
  username?: string | null | undefined;
5573
5667
  createdAt?: number | undefined;
5574
5668
  profile?: Partial<{
@@ -5714,6 +5808,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5714
5808
  };
5715
5809
  templateType: import("@logto/connector-kit").TemplateType;
5716
5810
  verified: boolean;
5811
+ userId?: string | undefined;
5717
5812
  } | {
5718
5813
  type: VerificationType.PhoneVerificationCode;
5719
5814
  id: string;
@@ -5723,6 +5818,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5723
5818
  };
5724
5819
  templateType: import("@logto/connector-kit").TemplateType;
5725
5820
  verified: boolean;
5821
+ userId?: string | undefined;
5726
5822
  } | {
5727
5823
  type: VerificationType.MfaEmailVerificationCode;
5728
5824
  id: string;
@@ -5732,6 +5828,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5732
5828
  };
5733
5829
  templateType: import("@logto/connector-kit").TemplateType;
5734
5830
  verified: boolean;
5831
+ userId?: string | undefined;
5735
5832
  } | {
5736
5833
  type: VerificationType.MfaPhoneVerificationCode;
5737
5834
  id: string;
@@ -5741,6 +5838,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5741
5838
  };
5742
5839
  templateType: import("@logto/connector-kit").TemplateType;
5743
5840
  verified: boolean;
5841
+ userId?: string | undefined;
5744
5842
  } | {
5745
5843
  type: VerificationType.NewPasswordIdentity;
5746
5844
  id: string;
@@ -5818,6 +5916,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5818
5916
  name?: string | null | undefined;
5819
5917
  id?: string | undefined;
5820
5918
  applicationId?: string | null | undefined;
5919
+ cimdClientId?: string | null | undefined;
5821
5920
  username?: string | null | undefined;
5822
5921
  createdAt?: number | undefined;
5823
5922
  profile?: Partial<{
@@ -5963,6 +6062,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5963
6062
  };
5964
6063
  templateType: import("@logto/connector-kit").TemplateType;
5965
6064
  verified: boolean;
6065
+ userId?: string | undefined;
5966
6066
  } | {
5967
6067
  type: VerificationType.PhoneVerificationCode;
5968
6068
  id: string;
@@ -5972,6 +6072,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5972
6072
  };
5973
6073
  templateType: import("@logto/connector-kit").TemplateType;
5974
6074
  verified: boolean;
6075
+ userId?: string | undefined;
5975
6076
  } | {
5976
6077
  type: VerificationType.MfaEmailVerificationCode;
5977
6078
  id: string;
@@ -5981,6 +6082,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5981
6082
  };
5982
6083
  templateType: import("@logto/connector-kit").TemplateType;
5983
6084
  verified: boolean;
6085
+ userId?: string | undefined;
5984
6086
  } | {
5985
6087
  type: VerificationType.MfaPhoneVerificationCode;
5986
6088
  id: string;
@@ -5990,6 +6092,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5990
6092
  };
5991
6093
  templateType: import("@logto/connector-kit").TemplateType;
5992
6094
  verified: boolean;
6095
+ userId?: string | undefined;
5993
6096
  } | {
5994
6097
  type: VerificationType.NewPasswordIdentity;
5995
6098
  id: string;
@@ -6074,8 +6177,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6074
6177
  kind?: "AccessToken" | undefined;
6075
6178
  accountId?: string | undefined;
6076
6179
  scope?: string | undefined;
6077
- sessionUid?: string | undefined;
6078
6180
  clientId?: string | undefined;
6181
+ sessionUid?: string | undefined;
6079
6182
  expiresWithSession?: boolean | undefined;
6080
6183
  gty?: string | undefined;
6081
6184
  aud?: string | string[] | undefined;
@@ -6085,6 +6188,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6085
6188
  name?: string | null | undefined;
6086
6189
  id?: string | undefined;
6087
6190
  applicationId?: string | null | undefined;
6191
+ cimdClientId?: string | null | undefined;
6088
6192
  username?: string | null | undefined;
6089
6193
  createdAt?: number | undefined;
6090
6194
  profile?: Partial<{
@@ -6230,6 +6334,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6230
6334
  };
6231
6335
  templateType: import("@logto/connector-kit").TemplateType;
6232
6336
  verified: boolean;
6337
+ userId?: string | undefined;
6233
6338
  } | {
6234
6339
  type: VerificationType.PhoneVerificationCode;
6235
6340
  id: string;
@@ -6239,6 +6344,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6239
6344
  };
6240
6345
  templateType: import("@logto/connector-kit").TemplateType;
6241
6346
  verified: boolean;
6347
+ userId?: string | undefined;
6242
6348
  } | {
6243
6349
  type: VerificationType.MfaEmailVerificationCode;
6244
6350
  id: string;
@@ -6248,6 +6354,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6248
6354
  };
6249
6355
  templateType: import("@logto/connector-kit").TemplateType;
6250
6356
  verified: boolean;
6357
+ userId?: string | undefined;
6251
6358
  } | {
6252
6359
  type: VerificationType.MfaPhoneVerificationCode;
6253
6360
  id: string;
@@ -6257,6 +6364,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6257
6364
  };
6258
6365
  templateType: import("@logto/connector-kit").TemplateType;
6259
6366
  verified: boolean;
6367
+ userId?: string | undefined;
6260
6368
  } | {
6261
6369
  type: VerificationType.NewPasswordIdentity;
6262
6370
  id: string;
@@ -6341,8 +6449,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6341
6449
  kind?: "AccessToken" | undefined;
6342
6450
  accountId?: string | undefined;
6343
6451
  scope?: string | undefined;
6344
- sessionUid?: string | undefined;
6345
6452
  clientId?: string | undefined;
6453
+ sessionUid?: string | undefined;
6346
6454
  expiresWithSession?: boolean | undefined;
6347
6455
  gty?: string | undefined;
6348
6456
  aud?: string | string[] | undefined;
@@ -6352,6 +6460,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6352
6460
  name?: string | null | undefined;
6353
6461
  id?: string | undefined;
6354
6462
  applicationId?: string | null | undefined;
6463
+ cimdClientId?: string | null | undefined;
6355
6464
  username?: string | null | undefined;
6356
6465
  createdAt?: number | undefined;
6357
6466
  profile?: Partial<{
@@ -6497,6 +6606,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6497
6606
  };
6498
6607
  templateType: import("@logto/connector-kit").TemplateType;
6499
6608
  verified: boolean;
6609
+ userId?: string | undefined;
6500
6610
  } | {
6501
6611
  type: VerificationType.PhoneVerificationCode;
6502
6612
  id: string;
@@ -6506,6 +6616,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6506
6616
  };
6507
6617
  templateType: import("@logto/connector-kit").TemplateType;
6508
6618
  verified: boolean;
6619
+ userId?: string | undefined;
6509
6620
  } | {
6510
6621
  type: VerificationType.MfaEmailVerificationCode;
6511
6622
  id: string;
@@ -6515,6 +6626,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6515
6626
  };
6516
6627
  templateType: import("@logto/connector-kit").TemplateType;
6517
6628
  verified: boolean;
6629
+ userId?: string | undefined;
6518
6630
  } | {
6519
6631
  type: VerificationType.MfaPhoneVerificationCode;
6520
6632
  id: string;
@@ -6524,6 +6636,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6524
6636
  };
6525
6637
  templateType: import("@logto/connector-kit").TemplateType;
6526
6638
  verified: boolean;
6639
+ userId?: string | undefined;
6527
6640
  } | {
6528
6641
  type: VerificationType.NewPasswordIdentity;
6529
6642
  id: string;
@@ -7121,7 +7234,7 @@ export declare enum CustomJwtErrorCode {
7121
7234
  AccessDenied = "AccessDenied",
7122
7235
  /** General JWT customizer error,
7123
7236
  * this is the fallback custom jwt error code
7124
- * for any internal error thrown by the JWT customizer (localVM, azure function, or CF worker).
7237
+ * for any internal error thrown by the JWT customizer on any runtime.
7125
7238
  */
7126
7239
  General = "General"
7127
7240
  }