@logto/schemas 1.43.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 (98) hide show
  1. package/alterations/1.44.0-1788946735-add-saml-authn-request-config.ts +18 -0
  2. package/alterations/1.44.0-1789000000-extend-user-id-length.ts +61 -0
  3. package/alterations-js/1.44.0-1788946735-add-saml-authn-request-config.js +14 -0
  4. package/alterations-js/1.44.0-1789000000-extend-user-id-length.js +47 -0
  5. package/lib/consts/experience.d.ts +3 -0
  6. package/lib/consts/experience.js +3 -0
  7. package/lib/consts/index.d.ts +1 -0
  8. package/lib/consts/index.js +1 -0
  9. package/lib/consts/license.d.ts +222 -0
  10. package/lib/consts/license.js +81 -0
  11. package/lib/consts/license.test.d.ts +1 -0
  12. package/lib/consts/license.test.js +96 -0
  13. package/lib/consts/oidc.d.ts +15 -1
  14. package/lib/consts/oidc.js +11 -0
  15. package/lib/consts/oidc.test.d.ts +1 -0
  16. package/lib/consts/oidc.test.js +15 -0
  17. package/lib/consts/subscriptions.d.ts +13 -1
  18. package/lib/consts/subscriptions.js +12 -0
  19. package/lib/db-entries/aggregated-daily-active-user.js +2 -2
  20. package/lib/db-entries/application-access-control-user-relation.js +2 -2
  21. package/lib/db-entries/application-user-consent-organization.js +2 -2
  22. package/lib/db-entries/cimd-grant-organization.js +2 -2
  23. package/lib/db-entries/daily-active-user.js +2 -2
  24. package/lib/db-entries/oidc-session-extension.js +2 -2
  25. package/lib/db-entries/organization-invitation.js +4 -4
  26. package/lib/db-entries/organization-role-user-relation.js +2 -2
  27. package/lib/db-entries/organization-user-relation.js +2 -2
  28. package/lib/db-entries/personal-access-token.js +2 -2
  29. package/lib/db-entries/saml-application-config.d.ts +4 -2
  30. package/lib/db-entries/saml-application-config.js +5 -1
  31. package/lib/db-entries/secret.js +2 -2
  32. package/lib/db-entries/subject-token.js +2 -2
  33. package/lib/db-entries/trusted-device.js +2 -2
  34. package/lib/db-entries/user-geo-location.js +2 -2
  35. package/lib/db-entries/user-sign-in-country.js +2 -2
  36. package/lib/db-entries/user-sso-identity.js +2 -2
  37. package/lib/db-entries/user.js +2 -2
  38. package/lib/db-entries/users-role.js +2 -2
  39. package/lib/db-entries/verification-record.js +2 -2
  40. package/lib/db-entries/verification-status.js +2 -2
  41. package/lib/foundations/jsonb-types/captcha.d.ts +47 -1
  42. package/lib/foundations/jsonb-types/captcha.js +20 -0
  43. package/lib/foundations/jsonb-types/hooks.d.ts +0 -3
  44. package/lib/foundations/jsonb-types/hooks.js +2 -6
  45. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +23 -0
  46. package/lib/foundations/jsonb-types/saml-application-configs.js +16 -0
  47. package/lib/foundations/jsonb-types/saml-application-configs.test.js +24 -1
  48. package/lib/types/authentication-context.d.ts +224 -0
  49. package/lib/types/authentication-context.js +238 -0
  50. package/lib/types/authentication-context.test.d.ts +1 -0
  51. package/lib/types/authentication-context.test.js +186 -0
  52. package/lib/types/cookie.d.ts +4 -0
  53. package/lib/types/cookie.js +6 -1
  54. package/lib/types/index.d.ts +1 -0
  55. package/lib/types/index.js +1 -0
  56. package/lib/types/interactions.d.ts +161 -0
  57. package/lib/types/interactions.js +23 -0
  58. package/lib/types/log/interaction.d.ts +15 -2
  59. package/lib/types/log/interaction.js +5 -0
  60. package/lib/types/logto-config/index.d.ts +47 -0
  61. package/lib/types/logto-config/index.js +1 -0
  62. package/lib/types/logto-config/jwt-customizer.d.ts +92 -0
  63. package/lib/types/saml-application.d.ts +55 -1
  64. package/lib/types/saml-application.js +7 -1
  65. package/lib/types/sign-in-experience.d.ts +11 -7
  66. package/lib/types/sign-in-experience.js +2 -2
  67. package/lib/types/ssr.d.ts +2 -0
  68. package/lib/types/system.d.ts +57 -5
  69. package/lib/types/system.js +36 -0
  70. package/lib/types/system.test.d.ts +1 -0
  71. package/lib/types/system.test.js +26 -0
  72. package/lib/types/user-sessions.d.ts +156 -0
  73. package/lib/types/verification-records/code-verification.d.ts +17 -0
  74. package/lib/types/verification-records/code-verification.js +1 -0
  75. package/lib/utils/oidc-private-key.test.js +44 -0
  76. package/package.json +7 -7
  77. package/tables/aggregated_daily_active_users.sql +1 -1
  78. package/tables/application_access_control_user_relations.sql +1 -1
  79. package/tables/application_user_consent_organizations.sql +1 -1
  80. package/tables/cimd_grant_organizations.sql +1 -1
  81. package/tables/daily_active_users.sql +1 -1
  82. package/tables/oidc_session_extensions.sql +1 -1
  83. package/tables/organization_invitations.sql +2 -2
  84. package/tables/organization_role_user_relations.sql +1 -1
  85. package/tables/organization_user_relations.sql +1 -1
  86. package/tables/personal_access_tokens.sql +1 -1
  87. package/tables/saml_application_configs.sql +1 -0
  88. package/tables/secrets.sql +1 -1
  89. package/tables/subject_tokens.sql +1 -1
  90. package/tables/trusted_devices.sql +1 -1
  91. package/tables/user_geo_locations.sql +1 -1
  92. package/tables/user_sign_in_countries.sql +1 -1
  93. package/tables/user_sso_identities.sql +1 -1
  94. package/tables/users.sql +1 -1
  95. package/tables/users_roles.sql +1 -1
  96. package/tables/verification_records.sql +1 -1
  97. package/tables/verification_statuses.sql +1 -1
  98. package/LICENSE +0 -373
@@ -140,6 +140,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
140
140
  id: z.ZodString;
141
141
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
142
142
  verified: z.ZodBoolean;
143
+ userId: z.ZodOptional<z.ZodString>;
143
144
  } & {
144
145
  type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
145
146
  identifier: z.ZodObject<{
@@ -161,6 +162,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
161
162
  };
162
163
  templateType: import("../foundations/index.js").TemplateType;
163
164
  verified: boolean;
165
+ userId?: string | undefined;
164
166
  }, {
165
167
  type: import("./index.js").VerificationType.EmailVerificationCode;
166
168
  id: string;
@@ -170,10 +172,12 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
170
172
  };
171
173
  templateType: import("../foundations/index.js").TemplateType;
172
174
  verified: boolean;
175
+ userId?: string | undefined;
173
176
  }>, z.ZodObject<{
174
177
  id: z.ZodString;
175
178
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
176
179
  verified: z.ZodBoolean;
180
+ userId: z.ZodOptional<z.ZodString>;
177
181
  } & {
178
182
  type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
179
183
  identifier: z.ZodObject<{
@@ -195,6 +199,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
195
199
  };
196
200
  templateType: import("../foundations/index.js").TemplateType;
197
201
  verified: boolean;
202
+ userId?: string | undefined;
198
203
  }, {
199
204
  type: import("./index.js").VerificationType.PhoneVerificationCode;
200
205
  id: string;
@@ -204,10 +209,12 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
204
209
  };
205
210
  templateType: import("../foundations/index.js").TemplateType;
206
211
  verified: boolean;
212
+ userId?: string | undefined;
207
213
  }>, z.ZodObject<{
208
214
  id: z.ZodString;
209
215
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
210
216
  verified: z.ZodBoolean;
217
+ userId: z.ZodOptional<z.ZodString>;
211
218
  } & {
212
219
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
213
220
  identifier: z.ZodObject<{
@@ -229,6 +236,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
229
236
  };
230
237
  templateType: import("../foundations/index.js").TemplateType;
231
238
  verified: boolean;
239
+ userId?: string | undefined;
232
240
  }, {
233
241
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
234
242
  id: string;
@@ -238,10 +246,12 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
238
246
  };
239
247
  templateType: import("../foundations/index.js").TemplateType;
240
248
  verified: boolean;
249
+ userId?: string | undefined;
241
250
  }>, z.ZodObject<{
242
251
  id: z.ZodString;
243
252
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
244
253
  verified: z.ZodBoolean;
254
+ userId: z.ZodOptional<z.ZodString>;
245
255
  } & {
246
256
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
247
257
  identifier: z.ZodObject<{
@@ -263,6 +273,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
263
273
  };
264
274
  templateType: import("../foundations/index.js").TemplateType;
265
275
  verified: boolean;
276
+ userId?: string | undefined;
266
277
  }, {
267
278
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
268
279
  id: string;
@@ -272,6 +283,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
272
283
  };
273
284
  templateType: import("../foundations/index.js").TemplateType;
274
285
  verified: boolean;
286
+ userId?: string | undefined;
275
287
  }>, z.ZodObject<Omit<{
276
288
  id: z.ZodString;
277
289
  connectorId: z.ZodString;
@@ -660,6 +672,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
660
672
  };
661
673
  templateType: import("../foundations/index.js").TemplateType;
662
674
  verified: boolean;
675
+ userId?: string | undefined;
663
676
  } | {
664
677
  type: import("./index.js").VerificationType.PhoneVerificationCode;
665
678
  id: string;
@@ -669,6 +682,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
669
682
  };
670
683
  templateType: import("../foundations/index.js").TemplateType;
671
684
  verified: boolean;
685
+ userId?: string | undefined;
672
686
  } | {
673
687
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
674
688
  id: string;
@@ -678,6 +692,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
678
692
  };
679
693
  templateType: import("../foundations/index.js").TemplateType;
680
694
  verified: boolean;
695
+ userId?: string | undefined;
681
696
  } | {
682
697
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
683
698
  id: string;
@@ -687,6 +702,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
687
702
  };
688
703
  templateType: import("../foundations/index.js").TemplateType;
689
704
  verified: boolean;
705
+ userId?: string | undefined;
690
706
  } | {
691
707
  type: import("./index.js").VerificationType.NewPasswordIdentity;
692
708
  id: string;
@@ -775,6 +791,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
775
791
  };
776
792
  templateType: import("../foundations/index.js").TemplateType;
777
793
  verified: boolean;
794
+ userId?: string | undefined;
778
795
  } | {
779
796
  type: import("./index.js").VerificationType.PhoneVerificationCode;
780
797
  id: string;
@@ -784,6 +801,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
784
801
  };
785
802
  templateType: import("../foundations/index.js").TemplateType;
786
803
  verified: boolean;
804
+ userId?: string | undefined;
787
805
  } | {
788
806
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
789
807
  id: string;
@@ -793,6 +811,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
793
811
  };
794
812
  templateType: import("../foundations/index.js").TemplateType;
795
813
  verified: boolean;
814
+ userId?: string | undefined;
796
815
  } | {
797
816
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
798
817
  id: string;
@@ -802,6 +821,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
802
821
  };
803
822
  templateType: import("../foundations/index.js").TemplateType;
804
823
  verified: boolean;
824
+ userId?: string | undefined;
805
825
  } | {
806
826
  type: import("./index.js").VerificationType.NewPasswordIdentity;
807
827
  id: string;
@@ -914,6 +934,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
914
934
  };
915
935
  templateType: import("../foundations/index.js").TemplateType;
916
936
  verified: boolean;
937
+ userId?: string | undefined;
917
938
  } | {
918
939
  type: import("./index.js").VerificationType.PhoneVerificationCode;
919
940
  id: string;
@@ -923,6 +944,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
923
944
  };
924
945
  templateType: import("../foundations/index.js").TemplateType;
925
946
  verified: boolean;
947
+ userId?: string | undefined;
926
948
  } | {
927
949
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
928
950
  id: string;
@@ -932,6 +954,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
932
954
  };
933
955
  templateType: import("../foundations/index.js").TemplateType;
934
956
  verified: boolean;
957
+ userId?: string | undefined;
935
958
  } | {
936
959
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
937
960
  id: string;
@@ -941,6 +964,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
941
964
  };
942
965
  templateType: import("../foundations/index.js").TemplateType;
943
966
  verified: boolean;
967
+ userId?: string | undefined;
944
968
  } | {
945
969
  type: import("./index.js").VerificationType.NewPasswordIdentity;
946
970
  id: string;
@@ -1050,6 +1074,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1050
1074
  };
1051
1075
  templateType: import("../foundations/index.js").TemplateType;
1052
1076
  verified: boolean;
1077
+ userId?: string | undefined;
1053
1078
  } | {
1054
1079
  type: import("./index.js").VerificationType.PhoneVerificationCode;
1055
1080
  id: string;
@@ -1059,6 +1084,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1059
1084
  };
1060
1085
  templateType: import("../foundations/index.js").TemplateType;
1061
1086
  verified: boolean;
1087
+ userId?: string | undefined;
1062
1088
  } | {
1063
1089
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
1064
1090
  id: string;
@@ -1068,6 +1094,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1068
1094
  };
1069
1095
  templateType: import("../foundations/index.js").TemplateType;
1070
1096
  verified: boolean;
1097
+ userId?: string | undefined;
1071
1098
  } | {
1072
1099
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
1073
1100
  id: string;
@@ -1077,6 +1104,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1077
1104
  };
1078
1105
  templateType: import("../foundations/index.js").TemplateType;
1079
1106
  verified: boolean;
1107
+ userId?: string | undefined;
1080
1108
  } | {
1081
1109
  type: import("./index.js").VerificationType.NewPasswordIdentity;
1082
1110
  id: string;
@@ -1253,6 +1281,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1253
1281
  id: z.ZodString;
1254
1282
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1255
1283
  verified: z.ZodBoolean;
1284
+ userId: z.ZodOptional<z.ZodString>;
1256
1285
  } & {
1257
1286
  type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
1258
1287
  identifier: z.ZodObject<{
@@ -1274,6 +1303,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1274
1303
  };
1275
1304
  templateType: import("../foundations/index.js").TemplateType;
1276
1305
  verified: boolean;
1306
+ userId?: string | undefined;
1277
1307
  }, {
1278
1308
  type: import("./index.js").VerificationType.EmailVerificationCode;
1279
1309
  id: string;
@@ -1283,10 +1313,12 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1283
1313
  };
1284
1314
  templateType: import("../foundations/index.js").TemplateType;
1285
1315
  verified: boolean;
1316
+ userId?: string | undefined;
1286
1317
  }>, z.ZodObject<{
1287
1318
  id: z.ZodString;
1288
1319
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1289
1320
  verified: z.ZodBoolean;
1321
+ userId: z.ZodOptional<z.ZodString>;
1290
1322
  } & {
1291
1323
  type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
1292
1324
  identifier: z.ZodObject<{
@@ -1308,6 +1340,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1308
1340
  };
1309
1341
  templateType: import("../foundations/index.js").TemplateType;
1310
1342
  verified: boolean;
1343
+ userId?: string | undefined;
1311
1344
  }, {
1312
1345
  type: import("./index.js").VerificationType.PhoneVerificationCode;
1313
1346
  id: string;
@@ -1317,10 +1350,12 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1317
1350
  };
1318
1351
  templateType: import("../foundations/index.js").TemplateType;
1319
1352
  verified: boolean;
1353
+ userId?: string | undefined;
1320
1354
  }>, z.ZodObject<{
1321
1355
  id: z.ZodString;
1322
1356
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1323
1357
  verified: z.ZodBoolean;
1358
+ userId: z.ZodOptional<z.ZodString>;
1324
1359
  } & {
1325
1360
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
1326
1361
  identifier: z.ZodObject<{
@@ -1342,6 +1377,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1342
1377
  };
1343
1378
  templateType: import("../foundations/index.js").TemplateType;
1344
1379
  verified: boolean;
1380
+ userId?: string | undefined;
1345
1381
  }, {
1346
1382
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
1347
1383
  id: string;
@@ -1351,10 +1387,12 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1351
1387
  };
1352
1388
  templateType: import("../foundations/index.js").TemplateType;
1353
1389
  verified: boolean;
1390
+ userId?: string | undefined;
1354
1391
  }>, z.ZodObject<{
1355
1392
  id: z.ZodString;
1356
1393
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1357
1394
  verified: z.ZodBoolean;
1395
+ userId: z.ZodOptional<z.ZodString>;
1358
1396
  } & {
1359
1397
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
1360
1398
  identifier: z.ZodObject<{
@@ -1376,6 +1414,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1376
1414
  };
1377
1415
  templateType: import("../foundations/index.js").TemplateType;
1378
1416
  verified: boolean;
1417
+ userId?: string | undefined;
1379
1418
  }, {
1380
1419
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
1381
1420
  id: string;
@@ -1385,6 +1424,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1385
1424
  };
1386
1425
  templateType: import("../foundations/index.js").TemplateType;
1387
1426
  verified: boolean;
1427
+ userId?: string | undefined;
1388
1428
  }>, z.ZodObject<Omit<{
1389
1429
  id: z.ZodString;
1390
1430
  connectorId: z.ZodString;
@@ -1773,6 +1813,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1773
1813
  };
1774
1814
  templateType: import("../foundations/index.js").TemplateType;
1775
1815
  verified: boolean;
1816
+ userId?: string | undefined;
1776
1817
  } | {
1777
1818
  type: import("./index.js").VerificationType.PhoneVerificationCode;
1778
1819
  id: string;
@@ -1782,6 +1823,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1782
1823
  };
1783
1824
  templateType: import("../foundations/index.js").TemplateType;
1784
1825
  verified: boolean;
1826
+ userId?: string | undefined;
1785
1827
  } | {
1786
1828
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
1787
1829
  id: string;
@@ -1791,6 +1833,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1791
1833
  };
1792
1834
  templateType: import("../foundations/index.js").TemplateType;
1793
1835
  verified: boolean;
1836
+ userId?: string | undefined;
1794
1837
  } | {
1795
1838
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
1796
1839
  id: string;
@@ -1800,6 +1843,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1800
1843
  };
1801
1844
  templateType: import("../foundations/index.js").TemplateType;
1802
1845
  verified: boolean;
1846
+ userId?: string | undefined;
1803
1847
  } | {
1804
1848
  type: import("./index.js").VerificationType.NewPasswordIdentity;
1805
1849
  id: string;
@@ -1888,6 +1932,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1888
1932
  };
1889
1933
  templateType: import("../foundations/index.js").TemplateType;
1890
1934
  verified: boolean;
1935
+ userId?: string | undefined;
1891
1936
  } | {
1892
1937
  type: import("./index.js").VerificationType.PhoneVerificationCode;
1893
1938
  id: string;
@@ -1897,6 +1942,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1897
1942
  };
1898
1943
  templateType: import("../foundations/index.js").TemplateType;
1899
1944
  verified: boolean;
1945
+ userId?: string | undefined;
1900
1946
  } | {
1901
1947
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
1902
1948
  id: string;
@@ -1906,6 +1952,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1906
1952
  };
1907
1953
  templateType: import("../foundations/index.js").TemplateType;
1908
1954
  verified: boolean;
1955
+ userId?: string | undefined;
1909
1956
  } | {
1910
1957
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
1911
1958
  id: string;
@@ -1915,6 +1962,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1915
1962
  };
1916
1963
  templateType: import("../foundations/index.js").TemplateType;
1917
1964
  verified: boolean;
1965
+ userId?: string | undefined;
1918
1966
  } | {
1919
1967
  type: import("./index.js").VerificationType.NewPasswordIdentity;
1920
1968
  id: string;
@@ -2027,6 +2075,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2027
2075
  };
2028
2076
  templateType: import("../foundations/index.js").TemplateType;
2029
2077
  verified: boolean;
2078
+ userId?: string | undefined;
2030
2079
  } | {
2031
2080
  type: import("./index.js").VerificationType.PhoneVerificationCode;
2032
2081
  id: string;
@@ -2036,6 +2085,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2036
2085
  };
2037
2086
  templateType: import("../foundations/index.js").TemplateType;
2038
2087
  verified: boolean;
2088
+ userId?: string | undefined;
2039
2089
  } | {
2040
2090
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
2041
2091
  id: string;
@@ -2045,6 +2095,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2045
2095
  };
2046
2096
  templateType: import("../foundations/index.js").TemplateType;
2047
2097
  verified: boolean;
2098
+ userId?: string | undefined;
2048
2099
  } | {
2049
2100
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
2050
2101
  id: string;
@@ -2054,6 +2105,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2054
2105
  };
2055
2106
  templateType: import("../foundations/index.js").TemplateType;
2056
2107
  verified: boolean;
2108
+ userId?: string | undefined;
2057
2109
  } | {
2058
2110
  type: import("./index.js").VerificationType.NewPasswordIdentity;
2059
2111
  id: string;
@@ -2163,6 +2215,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2163
2215
  };
2164
2216
  templateType: import("../foundations/index.js").TemplateType;
2165
2217
  verified: boolean;
2218
+ userId?: string | undefined;
2166
2219
  } | {
2167
2220
  type: import("./index.js").VerificationType.PhoneVerificationCode;
2168
2221
  id: string;
@@ -2172,6 +2225,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2172
2225
  };
2173
2226
  templateType: import("../foundations/index.js").TemplateType;
2174
2227
  verified: boolean;
2228
+ userId?: string | undefined;
2175
2229
  } | {
2176
2230
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
2177
2231
  id: string;
@@ -2181,6 +2235,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2181
2235
  };
2182
2236
  templateType: import("../foundations/index.js").TemplateType;
2183
2237
  verified: boolean;
2238
+ userId?: string | undefined;
2184
2239
  } | {
2185
2240
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
2186
2241
  id: string;
@@ -2190,6 +2245,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2190
2245
  };
2191
2246
  templateType: import("../foundations/index.js").TemplateType;
2192
2247
  verified: boolean;
2248
+ userId?: string | undefined;
2193
2249
  } | {
2194
2250
  type: import("./index.js").VerificationType.NewPasswordIdentity;
2195
2251
  id: string;
@@ -2301,6 +2357,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2301
2357
  };
2302
2358
  templateType: import("../foundations/index.js").TemplateType;
2303
2359
  verified: boolean;
2360
+ userId?: string | undefined;
2304
2361
  } | {
2305
2362
  type: import("./index.js").VerificationType.PhoneVerificationCode;
2306
2363
  id: string;
@@ -2310,6 +2367,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2310
2367
  };
2311
2368
  templateType: import("../foundations/index.js").TemplateType;
2312
2369
  verified: boolean;
2370
+ userId?: string | undefined;
2313
2371
  } | {
2314
2372
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
2315
2373
  id: string;
@@ -2319,6 +2377,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2319
2377
  };
2320
2378
  templateType: import("../foundations/index.js").TemplateType;
2321
2379
  verified: boolean;
2380
+ userId?: string | undefined;
2322
2381
  } | {
2323
2382
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
2324
2383
  id: string;
@@ -2328,6 +2387,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2328
2387
  };
2329
2388
  templateType: import("../foundations/index.js").TemplateType;
2330
2389
  verified: boolean;
2390
+ userId?: string | undefined;
2331
2391
  } | {
2332
2392
  type: import("./index.js").VerificationType.NewPasswordIdentity;
2333
2393
  id: string;
@@ -2439,6 +2499,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2439
2499
  };
2440
2500
  templateType: import("../foundations/index.js").TemplateType;
2441
2501
  verified: boolean;
2502
+ userId?: string | undefined;
2442
2503
  } | {
2443
2504
  type: import("./index.js").VerificationType.PhoneVerificationCode;
2444
2505
  id: string;
@@ -2448,6 +2509,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2448
2509
  };
2449
2510
  templateType: import("../foundations/index.js").TemplateType;
2450
2511
  verified: boolean;
2512
+ userId?: string | undefined;
2451
2513
  } | {
2452
2514
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
2453
2515
  id: string;
@@ -2457,6 +2519,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2457
2519
  };
2458
2520
  templateType: import("../foundations/index.js").TemplateType;
2459
2521
  verified: boolean;
2522
+ userId?: string | undefined;
2460
2523
  } | {
2461
2524
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
2462
2525
  id: string;
@@ -2466,6 +2529,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2466
2529
  };
2467
2530
  templateType: import("../foundations/index.js").TemplateType;
2468
2531
  verified: boolean;
2532
+ userId?: string | undefined;
2469
2533
  } | {
2470
2534
  type: import("./index.js").VerificationType.NewPasswordIdentity;
2471
2535
  id: string;
@@ -2644,6 +2708,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2644
2708
  id: z.ZodString;
2645
2709
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2646
2710
  verified: z.ZodBoolean;
2711
+ userId: z.ZodOptional<z.ZodString>;
2647
2712
  } & {
2648
2713
  type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
2649
2714
  identifier: z.ZodObject<{
@@ -2665,6 +2730,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2665
2730
  };
2666
2731
  templateType: import("../foundations/index.js").TemplateType;
2667
2732
  verified: boolean;
2733
+ userId?: string | undefined;
2668
2734
  }, {
2669
2735
  type: import("./index.js").VerificationType.EmailVerificationCode;
2670
2736
  id: string;
@@ -2674,10 +2740,12 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2674
2740
  };
2675
2741
  templateType: import("../foundations/index.js").TemplateType;
2676
2742
  verified: boolean;
2743
+ userId?: string | undefined;
2677
2744
  }>, z.ZodObject<{
2678
2745
  id: z.ZodString;
2679
2746
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2680
2747
  verified: z.ZodBoolean;
2748
+ userId: z.ZodOptional<z.ZodString>;
2681
2749
  } & {
2682
2750
  type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
2683
2751
  identifier: z.ZodObject<{
@@ -2699,6 +2767,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2699
2767
  };
2700
2768
  templateType: import("../foundations/index.js").TemplateType;
2701
2769
  verified: boolean;
2770
+ userId?: string | undefined;
2702
2771
  }, {
2703
2772
  type: import("./index.js").VerificationType.PhoneVerificationCode;
2704
2773
  id: string;
@@ -2708,10 +2777,12 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2708
2777
  };
2709
2778
  templateType: import("../foundations/index.js").TemplateType;
2710
2779
  verified: boolean;
2780
+ userId?: string | undefined;
2711
2781
  }>, z.ZodObject<{
2712
2782
  id: z.ZodString;
2713
2783
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2714
2784
  verified: z.ZodBoolean;
2785
+ userId: z.ZodOptional<z.ZodString>;
2715
2786
  } & {
2716
2787
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
2717
2788
  identifier: z.ZodObject<{
@@ -2733,6 +2804,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2733
2804
  };
2734
2805
  templateType: import("../foundations/index.js").TemplateType;
2735
2806
  verified: boolean;
2807
+ userId?: string | undefined;
2736
2808
  }, {
2737
2809
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
2738
2810
  id: string;
@@ -2742,10 +2814,12 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2742
2814
  };
2743
2815
  templateType: import("../foundations/index.js").TemplateType;
2744
2816
  verified: boolean;
2817
+ userId?: string | undefined;
2745
2818
  }>, z.ZodObject<{
2746
2819
  id: z.ZodString;
2747
2820
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2748
2821
  verified: z.ZodBoolean;
2822
+ userId: z.ZodOptional<z.ZodString>;
2749
2823
  } & {
2750
2824
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
2751
2825
  identifier: z.ZodObject<{
@@ -2767,6 +2841,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2767
2841
  };
2768
2842
  templateType: import("../foundations/index.js").TemplateType;
2769
2843
  verified: boolean;
2844
+ userId?: string | undefined;
2770
2845
  }, {
2771
2846
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
2772
2847
  id: string;
@@ -2776,6 +2851,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2776
2851
  };
2777
2852
  templateType: import("../foundations/index.js").TemplateType;
2778
2853
  verified: boolean;
2854
+ userId?: string | undefined;
2779
2855
  }>, z.ZodObject<Omit<{
2780
2856
  id: z.ZodString;
2781
2857
  connectorId: z.ZodString;
@@ -3164,6 +3240,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3164
3240
  };
3165
3241
  templateType: import("../foundations/index.js").TemplateType;
3166
3242
  verified: boolean;
3243
+ userId?: string | undefined;
3167
3244
  } | {
3168
3245
  type: import("./index.js").VerificationType.PhoneVerificationCode;
3169
3246
  id: string;
@@ -3173,6 +3250,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3173
3250
  };
3174
3251
  templateType: import("../foundations/index.js").TemplateType;
3175
3252
  verified: boolean;
3253
+ userId?: string | undefined;
3176
3254
  } | {
3177
3255
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
3178
3256
  id: string;
@@ -3182,6 +3260,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3182
3260
  };
3183
3261
  templateType: import("../foundations/index.js").TemplateType;
3184
3262
  verified: boolean;
3263
+ userId?: string | undefined;
3185
3264
  } | {
3186
3265
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
3187
3266
  id: string;
@@ -3191,6 +3270,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3191
3270
  };
3192
3271
  templateType: import("../foundations/index.js").TemplateType;
3193
3272
  verified: boolean;
3273
+ userId?: string | undefined;
3194
3274
  } | {
3195
3275
  type: import("./index.js").VerificationType.NewPasswordIdentity;
3196
3276
  id: string;
@@ -3279,6 +3359,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3279
3359
  };
3280
3360
  templateType: import("../foundations/index.js").TemplateType;
3281
3361
  verified: boolean;
3362
+ userId?: string | undefined;
3282
3363
  } | {
3283
3364
  type: import("./index.js").VerificationType.PhoneVerificationCode;
3284
3365
  id: string;
@@ -3288,6 +3369,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3288
3369
  };
3289
3370
  templateType: import("../foundations/index.js").TemplateType;
3290
3371
  verified: boolean;
3372
+ userId?: string | undefined;
3291
3373
  } | {
3292
3374
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
3293
3375
  id: string;
@@ -3297,6 +3379,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3297
3379
  };
3298
3380
  templateType: import("../foundations/index.js").TemplateType;
3299
3381
  verified: boolean;
3382
+ userId?: string | undefined;
3300
3383
  } | {
3301
3384
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
3302
3385
  id: string;
@@ -3306,6 +3389,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3306
3389
  };
3307
3390
  templateType: import("../foundations/index.js").TemplateType;
3308
3391
  verified: boolean;
3392
+ userId?: string | undefined;
3309
3393
  } | {
3310
3394
  type: import("./index.js").VerificationType.NewPasswordIdentity;
3311
3395
  id: string;
@@ -3418,6 +3502,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3418
3502
  };
3419
3503
  templateType: import("../foundations/index.js").TemplateType;
3420
3504
  verified: boolean;
3505
+ userId?: string | undefined;
3421
3506
  } | {
3422
3507
  type: import("./index.js").VerificationType.PhoneVerificationCode;
3423
3508
  id: string;
@@ -3427,6 +3512,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3427
3512
  };
3428
3513
  templateType: import("../foundations/index.js").TemplateType;
3429
3514
  verified: boolean;
3515
+ userId?: string | undefined;
3430
3516
  } | {
3431
3517
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
3432
3518
  id: string;
@@ -3436,6 +3522,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3436
3522
  };
3437
3523
  templateType: import("../foundations/index.js").TemplateType;
3438
3524
  verified: boolean;
3525
+ userId?: string | undefined;
3439
3526
  } | {
3440
3527
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
3441
3528
  id: string;
@@ -3445,6 +3532,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3445
3532
  };
3446
3533
  templateType: import("../foundations/index.js").TemplateType;
3447
3534
  verified: boolean;
3535
+ userId?: string | undefined;
3448
3536
  } | {
3449
3537
  type: import("./index.js").VerificationType.NewPasswordIdentity;
3450
3538
  id: string;
@@ -3554,6 +3642,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3554
3642
  };
3555
3643
  templateType: import("../foundations/index.js").TemplateType;
3556
3644
  verified: boolean;
3645
+ userId?: string | undefined;
3557
3646
  } | {
3558
3647
  type: import("./index.js").VerificationType.PhoneVerificationCode;
3559
3648
  id: string;
@@ -3563,6 +3652,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3563
3652
  };
3564
3653
  templateType: import("../foundations/index.js").TemplateType;
3565
3654
  verified: boolean;
3655
+ userId?: string | undefined;
3566
3656
  } | {
3567
3657
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
3568
3658
  id: string;
@@ -3572,6 +3662,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3572
3662
  };
3573
3663
  templateType: import("../foundations/index.js").TemplateType;
3574
3664
  verified: boolean;
3665
+ userId?: string | undefined;
3575
3666
  } | {
3576
3667
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
3577
3668
  id: string;
@@ -3581,6 +3672,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3581
3672
  };
3582
3673
  templateType: import("../foundations/index.js").TemplateType;
3583
3674
  verified: boolean;
3675
+ userId?: string | undefined;
3584
3676
  } | {
3585
3677
  type: import("./index.js").VerificationType.NewPasswordIdentity;
3586
3678
  id: string;
@@ -3766,6 +3858,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3766
3858
  id: z.ZodString;
3767
3859
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
3768
3860
  verified: z.ZodBoolean;
3861
+ userId: z.ZodOptional<z.ZodString>;
3769
3862
  } & {
3770
3863
  type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
3771
3864
  identifier: z.ZodObject<{
@@ -3787,6 +3880,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3787
3880
  };
3788
3881
  templateType: import("../foundations/index.js").TemplateType;
3789
3882
  verified: boolean;
3883
+ userId?: string | undefined;
3790
3884
  }, {
3791
3885
  type: import("./index.js").VerificationType.EmailVerificationCode;
3792
3886
  id: string;
@@ -3796,10 +3890,12 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3796
3890
  };
3797
3891
  templateType: import("../foundations/index.js").TemplateType;
3798
3892
  verified: boolean;
3893
+ userId?: string | undefined;
3799
3894
  }>, z.ZodObject<{
3800
3895
  id: z.ZodString;
3801
3896
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
3802
3897
  verified: z.ZodBoolean;
3898
+ userId: z.ZodOptional<z.ZodString>;
3803
3899
  } & {
3804
3900
  type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
3805
3901
  identifier: z.ZodObject<{
@@ -3821,6 +3917,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3821
3917
  };
3822
3918
  templateType: import("../foundations/index.js").TemplateType;
3823
3919
  verified: boolean;
3920
+ userId?: string | undefined;
3824
3921
  }, {
3825
3922
  type: import("./index.js").VerificationType.PhoneVerificationCode;
3826
3923
  id: string;
@@ -3830,10 +3927,12 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3830
3927
  };
3831
3928
  templateType: import("../foundations/index.js").TemplateType;
3832
3929
  verified: boolean;
3930
+ userId?: string | undefined;
3833
3931
  }>, z.ZodObject<{
3834
3932
  id: z.ZodString;
3835
3933
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
3836
3934
  verified: z.ZodBoolean;
3935
+ userId: z.ZodOptional<z.ZodString>;
3837
3936
  } & {
3838
3937
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
3839
3938
  identifier: z.ZodObject<{
@@ -3855,6 +3954,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3855
3954
  };
3856
3955
  templateType: import("../foundations/index.js").TemplateType;
3857
3956
  verified: boolean;
3957
+ userId?: string | undefined;
3858
3958
  }, {
3859
3959
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
3860
3960
  id: string;
@@ -3864,10 +3964,12 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3864
3964
  };
3865
3965
  templateType: import("../foundations/index.js").TemplateType;
3866
3966
  verified: boolean;
3967
+ userId?: string | undefined;
3867
3968
  }>, z.ZodObject<{
3868
3969
  id: z.ZodString;
3869
3970
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
3870
3971
  verified: z.ZodBoolean;
3972
+ userId: z.ZodOptional<z.ZodString>;
3871
3973
  } & {
3872
3974
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
3873
3975
  identifier: z.ZodObject<{
@@ -3889,6 +3991,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3889
3991
  };
3890
3992
  templateType: import("../foundations/index.js").TemplateType;
3891
3993
  verified: boolean;
3994
+ userId?: string | undefined;
3892
3995
  }, {
3893
3996
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
3894
3997
  id: string;
@@ -3898,6 +4001,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3898
4001
  };
3899
4002
  templateType: import("../foundations/index.js").TemplateType;
3900
4003
  verified: boolean;
4004
+ userId?: string | undefined;
3901
4005
  }>, z.ZodObject<Omit<{
3902
4006
  id: z.ZodString;
3903
4007
  connectorId: z.ZodString;
@@ -4286,6 +4390,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4286
4390
  };
4287
4391
  templateType: import("../foundations/index.js").TemplateType;
4288
4392
  verified: boolean;
4393
+ userId?: string | undefined;
4289
4394
  } | {
4290
4395
  type: import("./index.js").VerificationType.PhoneVerificationCode;
4291
4396
  id: string;
@@ -4295,6 +4400,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4295
4400
  };
4296
4401
  templateType: import("../foundations/index.js").TemplateType;
4297
4402
  verified: boolean;
4403
+ userId?: string | undefined;
4298
4404
  } | {
4299
4405
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
4300
4406
  id: string;
@@ -4304,6 +4410,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4304
4410
  };
4305
4411
  templateType: import("../foundations/index.js").TemplateType;
4306
4412
  verified: boolean;
4413
+ userId?: string | undefined;
4307
4414
  } | {
4308
4415
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
4309
4416
  id: string;
@@ -4313,6 +4420,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4313
4420
  };
4314
4421
  templateType: import("../foundations/index.js").TemplateType;
4315
4422
  verified: boolean;
4423
+ userId?: string | undefined;
4316
4424
  } | {
4317
4425
  type: import("./index.js").VerificationType.NewPasswordIdentity;
4318
4426
  id: string;
@@ -4401,6 +4509,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4401
4509
  };
4402
4510
  templateType: import("../foundations/index.js").TemplateType;
4403
4511
  verified: boolean;
4512
+ userId?: string | undefined;
4404
4513
  } | {
4405
4514
  type: import("./index.js").VerificationType.PhoneVerificationCode;
4406
4515
  id: string;
@@ -4410,6 +4519,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4410
4519
  };
4411
4520
  templateType: import("../foundations/index.js").TemplateType;
4412
4521
  verified: boolean;
4522
+ userId?: string | undefined;
4413
4523
  } | {
4414
4524
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
4415
4525
  id: string;
@@ -4419,6 +4529,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4419
4529
  };
4420
4530
  templateType: import("../foundations/index.js").TemplateType;
4421
4531
  verified: boolean;
4532
+ userId?: string | undefined;
4422
4533
  } | {
4423
4534
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
4424
4535
  id: string;
@@ -4428,6 +4539,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4428
4539
  };
4429
4540
  templateType: import("../foundations/index.js").TemplateType;
4430
4541
  verified: boolean;
4542
+ userId?: string | undefined;
4431
4543
  } | {
4432
4544
  type: import("./index.js").VerificationType.NewPasswordIdentity;
4433
4545
  id: string;
@@ -4549,6 +4661,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4549
4661
  };
4550
4662
  templateType: import("../foundations/index.js").TemplateType;
4551
4663
  verified: boolean;
4664
+ userId?: string | undefined;
4552
4665
  } | {
4553
4666
  type: import("./index.js").VerificationType.PhoneVerificationCode;
4554
4667
  id: string;
@@ -4558,6 +4671,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4558
4671
  };
4559
4672
  templateType: import("../foundations/index.js").TemplateType;
4560
4673
  verified: boolean;
4674
+ userId?: string | undefined;
4561
4675
  } | {
4562
4676
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
4563
4677
  id: string;
@@ -4567,6 +4681,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4567
4681
  };
4568
4682
  templateType: import("../foundations/index.js").TemplateType;
4569
4683
  verified: boolean;
4684
+ userId?: string | undefined;
4570
4685
  } | {
4571
4686
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
4572
4687
  id: string;
@@ -4576,6 +4691,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4576
4691
  };
4577
4692
  templateType: import("../foundations/index.js").TemplateType;
4578
4693
  verified: boolean;
4694
+ userId?: string | undefined;
4579
4695
  } | {
4580
4696
  type: import("./index.js").VerificationType.NewPasswordIdentity;
4581
4697
  id: string;
@@ -4686,6 +4802,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4686
4802
  };
4687
4803
  templateType: import("../foundations/index.js").TemplateType;
4688
4804
  verified: boolean;
4805
+ userId?: string | undefined;
4689
4806
  } | {
4690
4807
  type: import("./index.js").VerificationType.PhoneVerificationCode;
4691
4808
  id: string;
@@ -4695,6 +4812,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4695
4812
  };
4696
4813
  templateType: import("../foundations/index.js").TemplateType;
4697
4814
  verified: boolean;
4815
+ userId?: string | undefined;
4698
4816
  } | {
4699
4817
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
4700
4818
  id: string;
@@ -4704,6 +4822,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4704
4822
  };
4705
4823
  templateType: import("../foundations/index.js").TemplateType;
4706
4824
  verified: boolean;
4825
+ userId?: string | undefined;
4707
4826
  } | {
4708
4827
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
4709
4828
  id: string;
@@ -4713,6 +4832,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4713
4832
  };
4714
4833
  templateType: import("../foundations/index.js").TemplateType;
4715
4834
  verified: boolean;
4835
+ userId?: string | undefined;
4716
4836
  } | {
4717
4837
  type: import("./index.js").VerificationType.NewPasswordIdentity;
4718
4838
  id: string;
@@ -4890,6 +5010,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4890
5010
  id: z.ZodString;
4891
5011
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
4892
5012
  verified: z.ZodBoolean;
5013
+ userId: z.ZodOptional<z.ZodString>;
4893
5014
  } & {
4894
5015
  type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
4895
5016
  identifier: z.ZodObject<{
@@ -4911,6 +5032,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4911
5032
  };
4912
5033
  templateType: import("../foundations/index.js").TemplateType;
4913
5034
  verified: boolean;
5035
+ userId?: string | undefined;
4914
5036
  }, {
4915
5037
  type: import("./index.js").VerificationType.EmailVerificationCode;
4916
5038
  id: string;
@@ -4920,10 +5042,12 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4920
5042
  };
4921
5043
  templateType: import("../foundations/index.js").TemplateType;
4922
5044
  verified: boolean;
5045
+ userId?: string | undefined;
4923
5046
  }>, z.ZodObject<{
4924
5047
  id: z.ZodString;
4925
5048
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
4926
5049
  verified: z.ZodBoolean;
5050
+ userId: z.ZodOptional<z.ZodString>;
4927
5051
  } & {
4928
5052
  type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
4929
5053
  identifier: z.ZodObject<{
@@ -4945,6 +5069,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4945
5069
  };
4946
5070
  templateType: import("../foundations/index.js").TemplateType;
4947
5071
  verified: boolean;
5072
+ userId?: string | undefined;
4948
5073
  }, {
4949
5074
  type: import("./index.js").VerificationType.PhoneVerificationCode;
4950
5075
  id: string;
@@ -4954,10 +5079,12 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4954
5079
  };
4955
5080
  templateType: import("../foundations/index.js").TemplateType;
4956
5081
  verified: boolean;
5082
+ userId?: string | undefined;
4957
5083
  }>, z.ZodObject<{
4958
5084
  id: z.ZodString;
4959
5085
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
4960
5086
  verified: z.ZodBoolean;
5087
+ userId: z.ZodOptional<z.ZodString>;
4961
5088
  } & {
4962
5089
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
4963
5090
  identifier: z.ZodObject<{
@@ -4979,6 +5106,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4979
5106
  };
4980
5107
  templateType: import("../foundations/index.js").TemplateType;
4981
5108
  verified: boolean;
5109
+ userId?: string | undefined;
4982
5110
  }, {
4983
5111
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
4984
5112
  id: string;
@@ -4988,10 +5116,12 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4988
5116
  };
4989
5117
  templateType: import("../foundations/index.js").TemplateType;
4990
5118
  verified: boolean;
5119
+ userId?: string | undefined;
4991
5120
  }>, z.ZodObject<{
4992
5121
  id: z.ZodString;
4993
5122
  templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
4994
5123
  verified: z.ZodBoolean;
5124
+ userId: z.ZodOptional<z.ZodString>;
4995
5125
  } & {
4996
5126
  type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
4997
5127
  identifier: z.ZodObject<{
@@ -5013,6 +5143,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5013
5143
  };
5014
5144
  templateType: import("../foundations/index.js").TemplateType;
5015
5145
  verified: boolean;
5146
+ userId?: string | undefined;
5016
5147
  }, {
5017
5148
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5018
5149
  id: string;
@@ -5022,6 +5153,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5022
5153
  };
5023
5154
  templateType: import("../foundations/index.js").TemplateType;
5024
5155
  verified: boolean;
5156
+ userId?: string | undefined;
5025
5157
  }>, z.ZodObject<Omit<{
5026
5158
  id: z.ZodString;
5027
5159
  connectorId: z.ZodString;
@@ -5410,6 +5542,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5410
5542
  };
5411
5543
  templateType: import("../foundations/index.js").TemplateType;
5412
5544
  verified: boolean;
5545
+ userId?: string | undefined;
5413
5546
  } | {
5414
5547
  type: import("./index.js").VerificationType.PhoneVerificationCode;
5415
5548
  id: string;
@@ -5419,6 +5552,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5419
5552
  };
5420
5553
  templateType: import("../foundations/index.js").TemplateType;
5421
5554
  verified: boolean;
5555
+ userId?: string | undefined;
5422
5556
  } | {
5423
5557
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
5424
5558
  id: string;
@@ -5428,6 +5562,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5428
5562
  };
5429
5563
  templateType: import("../foundations/index.js").TemplateType;
5430
5564
  verified: boolean;
5565
+ userId?: string | undefined;
5431
5566
  } | {
5432
5567
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5433
5568
  id: string;
@@ -5437,6 +5572,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5437
5572
  };
5438
5573
  templateType: import("../foundations/index.js").TemplateType;
5439
5574
  verified: boolean;
5575
+ userId?: string | undefined;
5440
5576
  } | {
5441
5577
  type: import("./index.js").VerificationType.NewPasswordIdentity;
5442
5578
  id: string;
@@ -5525,6 +5661,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5525
5661
  };
5526
5662
  templateType: import("../foundations/index.js").TemplateType;
5527
5663
  verified: boolean;
5664
+ userId?: string | undefined;
5528
5665
  } | {
5529
5666
  type: import("./index.js").VerificationType.PhoneVerificationCode;
5530
5667
  id: string;
@@ -5534,6 +5671,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5534
5671
  };
5535
5672
  templateType: import("../foundations/index.js").TemplateType;
5536
5673
  verified: boolean;
5674
+ userId?: string | undefined;
5537
5675
  } | {
5538
5676
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
5539
5677
  id: string;
@@ -5543,6 +5681,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5543
5681
  };
5544
5682
  templateType: import("../foundations/index.js").TemplateType;
5545
5683
  verified: boolean;
5684
+ userId?: string | undefined;
5546
5685
  } | {
5547
5686
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5548
5687
  id: string;
@@ -5552,6 +5691,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5552
5691
  };
5553
5692
  templateType: import("../foundations/index.js").TemplateType;
5554
5693
  verified: boolean;
5694
+ userId?: string | undefined;
5555
5695
  } | {
5556
5696
  type: import("./index.js").VerificationType.NewPasswordIdentity;
5557
5697
  id: string;
@@ -5673,6 +5813,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5673
5813
  };
5674
5814
  templateType: import("../foundations/index.js").TemplateType;
5675
5815
  verified: boolean;
5816
+ userId?: string | undefined;
5676
5817
  } | {
5677
5818
  type: import("./index.js").VerificationType.PhoneVerificationCode;
5678
5819
  id: string;
@@ -5682,6 +5823,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5682
5823
  };
5683
5824
  templateType: import("../foundations/index.js").TemplateType;
5684
5825
  verified: boolean;
5826
+ userId?: string | undefined;
5685
5827
  } | {
5686
5828
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
5687
5829
  id: string;
@@ -5691,6 +5833,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5691
5833
  };
5692
5834
  templateType: import("../foundations/index.js").TemplateType;
5693
5835
  verified: boolean;
5836
+ userId?: string | undefined;
5694
5837
  } | {
5695
5838
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5696
5839
  id: string;
@@ -5700,6 +5843,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5700
5843
  };
5701
5844
  templateType: import("../foundations/index.js").TemplateType;
5702
5845
  verified: boolean;
5846
+ userId?: string | undefined;
5703
5847
  } | {
5704
5848
  type: import("./index.js").VerificationType.NewPasswordIdentity;
5705
5849
  id: string;
@@ -5810,6 +5954,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5810
5954
  };
5811
5955
  templateType: import("../foundations/index.js").TemplateType;
5812
5956
  verified: boolean;
5957
+ userId?: string | undefined;
5813
5958
  } | {
5814
5959
  type: import("./index.js").VerificationType.PhoneVerificationCode;
5815
5960
  id: string;
@@ -5819,6 +5964,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5819
5964
  };
5820
5965
  templateType: import("../foundations/index.js").TemplateType;
5821
5966
  verified: boolean;
5967
+ userId?: string | undefined;
5822
5968
  } | {
5823
5969
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
5824
5970
  id: string;
@@ -5828,6 +5974,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5828
5974
  };
5829
5975
  templateType: import("../foundations/index.js").TemplateType;
5830
5976
  verified: boolean;
5977
+ userId?: string | undefined;
5831
5978
  } | {
5832
5979
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5833
5980
  id: string;
@@ -5837,6 +5984,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5837
5984
  };
5838
5985
  templateType: import("../foundations/index.js").TemplateType;
5839
5986
  verified: boolean;
5987
+ userId?: string | undefined;
5840
5988
  } | {
5841
5989
  type: import("./index.js").VerificationType.NewPasswordIdentity;
5842
5990
  id: string;
@@ -5949,6 +6097,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5949
6097
  };
5950
6098
  templateType: import("../foundations/index.js").TemplateType;
5951
6099
  verified: boolean;
6100
+ userId?: string | undefined;
5952
6101
  } | {
5953
6102
  type: import("./index.js").VerificationType.PhoneVerificationCode;
5954
6103
  id: string;
@@ -5958,6 +6107,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5958
6107
  };
5959
6108
  templateType: import("../foundations/index.js").TemplateType;
5960
6109
  verified: boolean;
6110
+ userId?: string | undefined;
5961
6111
  } | {
5962
6112
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
5963
6113
  id: string;
@@ -5967,6 +6117,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5967
6117
  };
5968
6118
  templateType: import("../foundations/index.js").TemplateType;
5969
6119
  verified: boolean;
6120
+ userId?: string | undefined;
5970
6121
  } | {
5971
6122
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
5972
6123
  id: string;
@@ -5976,6 +6127,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5976
6127
  };
5977
6128
  templateType: import("../foundations/index.js").TemplateType;
5978
6129
  verified: boolean;
6130
+ userId?: string | undefined;
5979
6131
  } | {
5980
6132
  type: import("./index.js").VerificationType.NewPasswordIdentity;
5981
6133
  id: string;
@@ -6088,6 +6240,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6088
6240
  };
6089
6241
  templateType: import("../foundations/index.js").TemplateType;
6090
6242
  verified: boolean;
6243
+ userId?: string | undefined;
6091
6244
  } | {
6092
6245
  type: import("./index.js").VerificationType.PhoneVerificationCode;
6093
6246
  id: string;
@@ -6097,6 +6250,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6097
6250
  };
6098
6251
  templateType: import("../foundations/index.js").TemplateType;
6099
6252
  verified: boolean;
6253
+ userId?: string | undefined;
6100
6254
  } | {
6101
6255
  type: import("./index.js").VerificationType.MfaEmailVerificationCode;
6102
6256
  id: string;
@@ -6106,6 +6260,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6106
6260
  };
6107
6261
  templateType: import("../foundations/index.js").TemplateType;
6108
6262
  verified: boolean;
6263
+ userId?: string | undefined;
6109
6264
  } | {
6110
6265
  type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
6111
6266
  id: string;
@@ -6115,6 +6270,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6115
6270
  };
6116
6271
  templateType: import("../foundations/index.js").TemplateType;
6117
6272
  verified: boolean;
6273
+ userId?: string | undefined;
6118
6274
  } | {
6119
6275
  type: import("./index.js").VerificationType.NewPasswordIdentity;
6120
6276
  id: string;