@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
@@ -431,6 +431,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
431
431
  id: z.ZodString;
432
432
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
433
433
  verified: z.ZodBoolean;
434
+ userId: z.ZodOptional<z.ZodString>;
434
435
  } & {
435
436
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
436
437
  identifier: z.ZodObject<{
@@ -452,6 +453,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
452
453
  };
453
454
  templateType: import("@logto/connector-kit").TemplateType;
454
455
  verified: boolean;
456
+ userId?: string | undefined;
455
457
  }, {
456
458
  type: VerificationType.EmailVerificationCode;
457
459
  id: string;
@@ -461,10 +463,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
461
463
  };
462
464
  templateType: import("@logto/connector-kit").TemplateType;
463
465
  verified: boolean;
466
+ userId?: string | undefined;
464
467
  }>, z.ZodObject<{
465
468
  id: z.ZodString;
466
469
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
467
470
  verified: z.ZodBoolean;
471
+ userId: z.ZodOptional<z.ZodString>;
468
472
  } & {
469
473
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
470
474
  identifier: z.ZodObject<{
@@ -486,6 +490,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
486
490
  };
487
491
  templateType: import("@logto/connector-kit").TemplateType;
488
492
  verified: boolean;
493
+ userId?: string | undefined;
489
494
  }, {
490
495
  type: VerificationType.PhoneVerificationCode;
491
496
  id: string;
@@ -495,10 +500,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
495
500
  };
496
501
  templateType: import("@logto/connector-kit").TemplateType;
497
502
  verified: boolean;
503
+ userId?: string | undefined;
498
504
  }>, z.ZodObject<{
499
505
  id: z.ZodString;
500
506
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
501
507
  verified: z.ZodBoolean;
508
+ userId: z.ZodOptional<z.ZodString>;
502
509
  } & {
503
510
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
504
511
  identifier: z.ZodObject<{
@@ -520,6 +527,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
520
527
  };
521
528
  templateType: import("@logto/connector-kit").TemplateType;
522
529
  verified: boolean;
530
+ userId?: string | undefined;
523
531
  }, {
524
532
  type: VerificationType.MfaEmailVerificationCode;
525
533
  id: string;
@@ -529,10 +537,12 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
529
537
  };
530
538
  templateType: import("@logto/connector-kit").TemplateType;
531
539
  verified: boolean;
540
+ userId?: string | undefined;
532
541
  }>, z.ZodObject<{
533
542
  id: z.ZodString;
534
543
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
535
544
  verified: z.ZodBoolean;
545
+ userId: z.ZodOptional<z.ZodString>;
536
546
  } & {
537
547
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
538
548
  identifier: z.ZodObject<{
@@ -554,6 +564,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
554
564
  };
555
565
  templateType: import("@logto/connector-kit").TemplateType;
556
566
  verified: boolean;
567
+ userId?: string | undefined;
557
568
  }, {
558
569
  type: VerificationType.MfaPhoneVerificationCode;
559
570
  id: string;
@@ -563,6 +574,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
563
574
  };
564
575
  templateType: import("@logto/connector-kit").TemplateType;
565
576
  verified: boolean;
577
+ userId?: string | undefined;
566
578
  }>, z.ZodObject<Omit<{
567
579
  id: z.ZodString;
568
580
  connectorId: z.ZodString;
@@ -951,6 +963,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
951
963
  };
952
964
  templateType: import("@logto/connector-kit").TemplateType;
953
965
  verified: boolean;
966
+ userId?: string | undefined;
954
967
  } | {
955
968
  type: VerificationType.PhoneVerificationCode;
956
969
  id: string;
@@ -960,6 +973,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
960
973
  };
961
974
  templateType: import("@logto/connector-kit").TemplateType;
962
975
  verified: boolean;
976
+ userId?: string | undefined;
963
977
  } | {
964
978
  type: VerificationType.MfaEmailVerificationCode;
965
979
  id: string;
@@ -969,6 +983,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
969
983
  };
970
984
  templateType: import("@logto/connector-kit").TemplateType;
971
985
  verified: boolean;
986
+ userId?: string | undefined;
972
987
  } | {
973
988
  type: VerificationType.MfaPhoneVerificationCode;
974
989
  id: string;
@@ -978,6 +993,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
978
993
  };
979
994
  templateType: import("@logto/connector-kit").TemplateType;
980
995
  verified: boolean;
996
+ userId?: string | undefined;
981
997
  } | {
982
998
  type: VerificationType.NewPasswordIdentity;
983
999
  id: string;
@@ -1066,6 +1082,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1066
1082
  };
1067
1083
  templateType: import("@logto/connector-kit").TemplateType;
1068
1084
  verified: boolean;
1085
+ userId?: string | undefined;
1069
1086
  } | {
1070
1087
  type: VerificationType.PhoneVerificationCode;
1071
1088
  id: string;
@@ -1075,6 +1092,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1075
1092
  };
1076
1093
  templateType: import("@logto/connector-kit").TemplateType;
1077
1094
  verified: boolean;
1095
+ userId?: string | undefined;
1078
1096
  } | {
1079
1097
  type: VerificationType.MfaEmailVerificationCode;
1080
1098
  id: string;
@@ -1084,6 +1102,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1084
1102
  };
1085
1103
  templateType: import("@logto/connector-kit").TemplateType;
1086
1104
  verified: boolean;
1105
+ userId?: string | undefined;
1087
1106
  } | {
1088
1107
  type: VerificationType.MfaPhoneVerificationCode;
1089
1108
  id: string;
@@ -1093,6 +1112,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
1093
1112
  };
1094
1113
  templateType: import("@logto/connector-kit").TemplateType;
1095
1114
  verified: boolean;
1115
+ userId?: string | undefined;
1096
1116
  } | {
1097
1117
  type: VerificationType.NewPasswordIdentity;
1098
1118
  id: string;
@@ -1752,6 +1772,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1752
1772
  id: z.ZodString;
1753
1773
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1754
1774
  verified: z.ZodBoolean;
1775
+ userId: z.ZodOptional<z.ZodString>;
1755
1776
  } & {
1756
1777
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
1757
1778
  identifier: z.ZodObject<{
@@ -1773,6 +1794,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1773
1794
  };
1774
1795
  templateType: import("@logto/connector-kit").TemplateType;
1775
1796
  verified: boolean;
1797
+ userId?: string | undefined;
1776
1798
  }, {
1777
1799
  type: VerificationType.EmailVerificationCode;
1778
1800
  id: string;
@@ -1782,10 +1804,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1782
1804
  };
1783
1805
  templateType: import("@logto/connector-kit").TemplateType;
1784
1806
  verified: boolean;
1807
+ userId?: string | undefined;
1785
1808
  }>, z.ZodObject<{
1786
1809
  id: z.ZodString;
1787
1810
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1788
1811
  verified: z.ZodBoolean;
1812
+ userId: z.ZodOptional<z.ZodString>;
1789
1813
  } & {
1790
1814
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
1791
1815
  identifier: z.ZodObject<{
@@ -1807,6 +1831,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1807
1831
  };
1808
1832
  templateType: import("@logto/connector-kit").TemplateType;
1809
1833
  verified: boolean;
1834
+ userId?: string | undefined;
1810
1835
  }, {
1811
1836
  type: VerificationType.PhoneVerificationCode;
1812
1837
  id: string;
@@ -1816,10 +1841,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1816
1841
  };
1817
1842
  templateType: import("@logto/connector-kit").TemplateType;
1818
1843
  verified: boolean;
1844
+ userId?: string | undefined;
1819
1845
  }>, z.ZodObject<{
1820
1846
  id: z.ZodString;
1821
1847
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1822
1848
  verified: z.ZodBoolean;
1849
+ userId: z.ZodOptional<z.ZodString>;
1823
1850
  } & {
1824
1851
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
1825
1852
  identifier: z.ZodObject<{
@@ -1841,6 +1868,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1841
1868
  };
1842
1869
  templateType: import("@logto/connector-kit").TemplateType;
1843
1870
  verified: boolean;
1871
+ userId?: string | undefined;
1844
1872
  }, {
1845
1873
  type: VerificationType.MfaEmailVerificationCode;
1846
1874
  id: string;
@@ -1850,10 +1878,12 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1850
1878
  };
1851
1879
  templateType: import("@logto/connector-kit").TemplateType;
1852
1880
  verified: boolean;
1881
+ userId?: string | undefined;
1853
1882
  }>, z.ZodObject<{
1854
1883
  id: z.ZodString;
1855
1884
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
1856
1885
  verified: z.ZodBoolean;
1886
+ userId: z.ZodOptional<z.ZodString>;
1857
1887
  } & {
1858
1888
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
1859
1889
  identifier: z.ZodObject<{
@@ -1875,6 +1905,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1875
1905
  };
1876
1906
  templateType: import("@logto/connector-kit").TemplateType;
1877
1907
  verified: boolean;
1908
+ userId?: string | undefined;
1878
1909
  }, {
1879
1910
  type: VerificationType.MfaPhoneVerificationCode;
1880
1911
  id: string;
@@ -1884,6 +1915,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
1884
1915
  };
1885
1916
  templateType: import("@logto/connector-kit").TemplateType;
1886
1917
  verified: boolean;
1918
+ userId?: string | undefined;
1887
1919
  }>, z.ZodObject<Omit<{
1888
1920
  id: z.ZodString;
1889
1921
  connectorId: z.ZodString;
@@ -2272,6 +2304,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2272
2304
  };
2273
2305
  templateType: import("@logto/connector-kit").TemplateType;
2274
2306
  verified: boolean;
2307
+ userId?: string | undefined;
2275
2308
  } | {
2276
2309
  type: VerificationType.PhoneVerificationCode;
2277
2310
  id: string;
@@ -2281,6 +2314,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2281
2314
  };
2282
2315
  templateType: import("@logto/connector-kit").TemplateType;
2283
2316
  verified: boolean;
2317
+ userId?: string | undefined;
2284
2318
  } | {
2285
2319
  type: VerificationType.MfaEmailVerificationCode;
2286
2320
  id: string;
@@ -2290,6 +2324,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2290
2324
  };
2291
2325
  templateType: import("@logto/connector-kit").TemplateType;
2292
2326
  verified: boolean;
2327
+ userId?: string | undefined;
2293
2328
  } | {
2294
2329
  type: VerificationType.MfaPhoneVerificationCode;
2295
2330
  id: string;
@@ -2299,6 +2334,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2299
2334
  };
2300
2335
  templateType: import("@logto/connector-kit").TemplateType;
2301
2336
  verified: boolean;
2337
+ userId?: string | undefined;
2302
2338
  } | {
2303
2339
  type: VerificationType.NewPasswordIdentity;
2304
2340
  id: string;
@@ -2387,6 +2423,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2387
2423
  };
2388
2424
  templateType: import("@logto/connector-kit").TemplateType;
2389
2425
  verified: boolean;
2426
+ userId?: string | undefined;
2390
2427
  } | {
2391
2428
  type: VerificationType.PhoneVerificationCode;
2392
2429
  id: string;
@@ -2396,6 +2433,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2396
2433
  };
2397
2434
  templateType: import("@logto/connector-kit").TemplateType;
2398
2435
  verified: boolean;
2436
+ userId?: string | undefined;
2399
2437
  } | {
2400
2438
  type: VerificationType.MfaEmailVerificationCode;
2401
2439
  id: string;
@@ -2405,6 +2443,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2405
2443
  };
2406
2444
  templateType: import("@logto/connector-kit").TemplateType;
2407
2445
  verified: boolean;
2446
+ userId?: string | undefined;
2408
2447
  } | {
2409
2448
  type: VerificationType.MfaPhoneVerificationCode;
2410
2449
  id: string;
@@ -2414,6 +2453,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2414
2453
  };
2415
2454
  templateType: import("@logto/connector-kit").TemplateType;
2416
2455
  verified: boolean;
2456
+ userId?: string | undefined;
2417
2457
  } | {
2418
2458
  type: VerificationType.NewPasswordIdentity;
2419
2459
  id: string;
@@ -2853,6 +2893,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2853
2893
  };
2854
2894
  templateType: import("@logto/connector-kit").TemplateType;
2855
2895
  verified: boolean;
2896
+ userId?: string | undefined;
2856
2897
  } | {
2857
2898
  type: VerificationType.PhoneVerificationCode;
2858
2899
  id: string;
@@ -2862,6 +2903,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2862
2903
  };
2863
2904
  templateType: import("@logto/connector-kit").TemplateType;
2864
2905
  verified: boolean;
2906
+ userId?: string | undefined;
2865
2907
  } | {
2866
2908
  type: VerificationType.MfaEmailVerificationCode;
2867
2909
  id: string;
@@ -2871,6 +2913,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2871
2913
  };
2872
2914
  templateType: import("@logto/connector-kit").TemplateType;
2873
2915
  verified: boolean;
2916
+ userId?: string | undefined;
2874
2917
  } | {
2875
2918
  type: VerificationType.MfaPhoneVerificationCode;
2876
2919
  id: string;
@@ -2880,6 +2923,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
2880
2923
  };
2881
2924
  templateType: import("@logto/connector-kit").TemplateType;
2882
2925
  verified: boolean;
2926
+ userId?: string | undefined;
2883
2927
  } | {
2884
2928
  type: VerificationType.NewPasswordIdentity;
2885
2929
  id: string;
@@ -3103,6 +3147,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3103
3147
  };
3104
3148
  templateType: import("@logto/connector-kit").TemplateType;
3105
3149
  verified: boolean;
3150
+ userId?: string | undefined;
3106
3151
  } | {
3107
3152
  type: VerificationType.PhoneVerificationCode;
3108
3153
  id: string;
@@ -3112,6 +3157,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3112
3157
  };
3113
3158
  templateType: import("@logto/connector-kit").TemplateType;
3114
3159
  verified: boolean;
3160
+ userId?: string | undefined;
3115
3161
  } | {
3116
3162
  type: VerificationType.MfaEmailVerificationCode;
3117
3163
  id: string;
@@ -3121,6 +3167,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3121
3167
  };
3122
3168
  templateType: import("@logto/connector-kit").TemplateType;
3123
3169
  verified: boolean;
3170
+ userId?: string | undefined;
3124
3171
  } | {
3125
3172
  type: VerificationType.MfaPhoneVerificationCode;
3126
3173
  id: string;
@@ -3130,6 +3177,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3130
3177
  };
3131
3178
  templateType: import("@logto/connector-kit").TemplateType;
3132
3179
  verified: boolean;
3180
+ userId?: string | undefined;
3133
3181
  } | {
3134
3182
  type: VerificationType.NewPasswordIdentity;
3135
3183
  id: string;
@@ -3357,6 +3405,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3357
3405
  };
3358
3406
  templateType: import("@logto/connector-kit").TemplateType;
3359
3407
  verified: boolean;
3408
+ userId?: string | undefined;
3360
3409
  } | {
3361
3410
  type: VerificationType.PhoneVerificationCode;
3362
3411
  id: string;
@@ -3366,6 +3415,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3366
3415
  };
3367
3416
  templateType: import("@logto/connector-kit").TemplateType;
3368
3417
  verified: boolean;
3418
+ userId?: string | undefined;
3369
3419
  } | {
3370
3420
  type: VerificationType.MfaEmailVerificationCode;
3371
3421
  id: string;
@@ -3375,6 +3425,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3375
3425
  };
3376
3426
  templateType: import("@logto/connector-kit").TemplateType;
3377
3427
  verified: boolean;
3428
+ userId?: string | undefined;
3378
3429
  } | {
3379
3430
  type: VerificationType.MfaPhoneVerificationCode;
3380
3431
  id: string;
@@ -3384,6 +3435,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3384
3435
  };
3385
3436
  templateType: import("@logto/connector-kit").TemplateType;
3386
3437
  verified: boolean;
3438
+ userId?: string | undefined;
3387
3439
  } | {
3388
3440
  type: VerificationType.NewPasswordIdentity;
3389
3441
  id: string;
@@ -3625,6 +3677,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3625
3677
  };
3626
3678
  templateType: import("@logto/connector-kit").TemplateType;
3627
3679
  verified: boolean;
3680
+ userId?: string | undefined;
3628
3681
  } | {
3629
3682
  type: VerificationType.PhoneVerificationCode;
3630
3683
  id: string;
@@ -3634,6 +3687,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3634
3687
  };
3635
3688
  templateType: import("@logto/connector-kit").TemplateType;
3636
3689
  verified: boolean;
3690
+ userId?: string | undefined;
3637
3691
  } | {
3638
3692
  type: VerificationType.MfaEmailVerificationCode;
3639
3693
  id: string;
@@ -3643,6 +3697,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3643
3697
  };
3644
3698
  templateType: import("@logto/connector-kit").TemplateType;
3645
3699
  verified: boolean;
3700
+ userId?: string | undefined;
3646
3701
  } | {
3647
3702
  type: VerificationType.MfaPhoneVerificationCode;
3648
3703
  id: string;
@@ -3652,6 +3707,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
3652
3707
  };
3653
3708
  templateType: import("@logto/connector-kit").TemplateType;
3654
3709
  verified: boolean;
3710
+ userId?: string | undefined;
3655
3711
  } | {
3656
3712
  type: VerificationType.NewPasswordIdentity;
3657
3713
  id: string;
@@ -4631,6 +4687,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4631
4687
  id: z.ZodString;
4632
4688
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4633
4689
  verified: z.ZodBoolean;
4690
+ userId: z.ZodOptional<z.ZodString>;
4634
4691
  } & {
4635
4692
  type: z.ZodLiteral<VerificationType.EmailVerificationCode>;
4636
4693
  identifier: z.ZodObject<{
@@ -4652,6 +4709,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4652
4709
  };
4653
4710
  templateType: import("@logto/connector-kit").TemplateType;
4654
4711
  verified: boolean;
4712
+ userId?: string | undefined;
4655
4713
  }, {
4656
4714
  type: VerificationType.EmailVerificationCode;
4657
4715
  id: string;
@@ -4661,10 +4719,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4661
4719
  };
4662
4720
  templateType: import("@logto/connector-kit").TemplateType;
4663
4721
  verified: boolean;
4722
+ userId?: string | undefined;
4664
4723
  }>, z.ZodObject<{
4665
4724
  id: z.ZodString;
4666
4725
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4667
4726
  verified: z.ZodBoolean;
4727
+ userId: z.ZodOptional<z.ZodString>;
4668
4728
  } & {
4669
4729
  type: z.ZodLiteral<VerificationType.PhoneVerificationCode>;
4670
4730
  identifier: z.ZodObject<{
@@ -4686,6 +4746,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4686
4746
  };
4687
4747
  templateType: import("@logto/connector-kit").TemplateType;
4688
4748
  verified: boolean;
4749
+ userId?: string | undefined;
4689
4750
  }, {
4690
4751
  type: VerificationType.PhoneVerificationCode;
4691
4752
  id: string;
@@ -4695,10 +4756,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4695
4756
  };
4696
4757
  templateType: import("@logto/connector-kit").TemplateType;
4697
4758
  verified: boolean;
4759
+ userId?: string | undefined;
4698
4760
  }>, z.ZodObject<{
4699
4761
  id: z.ZodString;
4700
4762
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4701
4763
  verified: z.ZodBoolean;
4764
+ userId: z.ZodOptional<z.ZodString>;
4702
4765
  } & {
4703
4766
  type: z.ZodLiteral<VerificationType.MfaEmailVerificationCode>;
4704
4767
  identifier: z.ZodObject<{
@@ -4720,6 +4783,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4720
4783
  };
4721
4784
  templateType: import("@logto/connector-kit").TemplateType;
4722
4785
  verified: boolean;
4786
+ userId?: string | undefined;
4723
4787
  }, {
4724
4788
  type: VerificationType.MfaEmailVerificationCode;
4725
4789
  id: string;
@@ -4729,10 +4793,12 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4729
4793
  };
4730
4794
  templateType: import("@logto/connector-kit").TemplateType;
4731
4795
  verified: boolean;
4796
+ userId?: string | undefined;
4732
4797
  }>, z.ZodObject<{
4733
4798
  id: z.ZodString;
4734
4799
  templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
4735
4800
  verified: z.ZodBoolean;
4801
+ userId: z.ZodOptional<z.ZodString>;
4736
4802
  } & {
4737
4803
  type: z.ZodLiteral<VerificationType.MfaPhoneVerificationCode>;
4738
4804
  identifier: z.ZodObject<{
@@ -4754,6 +4820,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4754
4820
  };
4755
4821
  templateType: import("@logto/connector-kit").TemplateType;
4756
4822
  verified: boolean;
4823
+ userId?: string | undefined;
4757
4824
  }, {
4758
4825
  type: VerificationType.MfaPhoneVerificationCode;
4759
4826
  id: string;
@@ -4763,6 +4830,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
4763
4830
  };
4764
4831
  templateType: import("@logto/connector-kit").TemplateType;
4765
4832
  verified: boolean;
4833
+ userId?: string | undefined;
4766
4834
  }>, z.ZodObject<Omit<{
4767
4835
  id: z.ZodString;
4768
4836
  connectorId: z.ZodString;
@@ -5151,6 +5219,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5151
5219
  };
5152
5220
  templateType: import("@logto/connector-kit").TemplateType;
5153
5221
  verified: boolean;
5222
+ userId?: string | undefined;
5154
5223
  } | {
5155
5224
  type: VerificationType.PhoneVerificationCode;
5156
5225
  id: string;
@@ -5160,6 +5229,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5160
5229
  };
5161
5230
  templateType: import("@logto/connector-kit").TemplateType;
5162
5231
  verified: boolean;
5232
+ userId?: string | undefined;
5163
5233
  } | {
5164
5234
  type: VerificationType.MfaEmailVerificationCode;
5165
5235
  id: string;
@@ -5169,6 +5239,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5169
5239
  };
5170
5240
  templateType: import("@logto/connector-kit").TemplateType;
5171
5241
  verified: boolean;
5242
+ userId?: string | undefined;
5172
5243
  } | {
5173
5244
  type: VerificationType.MfaPhoneVerificationCode;
5174
5245
  id: string;
@@ -5178,6 +5249,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5178
5249
  };
5179
5250
  templateType: import("@logto/connector-kit").TemplateType;
5180
5251
  verified: boolean;
5252
+ userId?: string | undefined;
5181
5253
  } | {
5182
5254
  type: VerificationType.NewPasswordIdentity;
5183
5255
  id: string;
@@ -5266,6 +5338,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5266
5338
  };
5267
5339
  templateType: import("@logto/connector-kit").TemplateType;
5268
5340
  verified: boolean;
5341
+ userId?: string | undefined;
5269
5342
  } | {
5270
5343
  type: VerificationType.PhoneVerificationCode;
5271
5344
  id: string;
@@ -5275,6 +5348,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5275
5348
  };
5276
5349
  templateType: import("@logto/connector-kit").TemplateType;
5277
5350
  verified: boolean;
5351
+ userId?: string | undefined;
5278
5352
  } | {
5279
5353
  type: VerificationType.MfaEmailVerificationCode;
5280
5354
  id: string;
@@ -5284,6 +5358,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5284
5358
  };
5285
5359
  templateType: import("@logto/connector-kit").TemplateType;
5286
5360
  verified: boolean;
5361
+ userId?: string | undefined;
5287
5362
  } | {
5288
5363
  type: VerificationType.MfaPhoneVerificationCode;
5289
5364
  id: string;
@@ -5293,6 +5368,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5293
5368
  };
5294
5369
  templateType: import("@logto/connector-kit").TemplateType;
5295
5370
  verified: boolean;
5371
+ userId?: string | undefined;
5296
5372
  } | {
5297
5373
  type: VerificationType.NewPasswordIdentity;
5298
5374
  id: string;
@@ -5732,6 +5808,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5732
5808
  };
5733
5809
  templateType: import("@logto/connector-kit").TemplateType;
5734
5810
  verified: boolean;
5811
+ userId?: string | undefined;
5735
5812
  } | {
5736
5813
  type: VerificationType.PhoneVerificationCode;
5737
5814
  id: string;
@@ -5741,6 +5818,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5741
5818
  };
5742
5819
  templateType: import("@logto/connector-kit").TemplateType;
5743
5820
  verified: boolean;
5821
+ userId?: string | undefined;
5744
5822
  } | {
5745
5823
  type: VerificationType.MfaEmailVerificationCode;
5746
5824
  id: string;
@@ -5750,6 +5828,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5750
5828
  };
5751
5829
  templateType: import("@logto/connector-kit").TemplateType;
5752
5830
  verified: boolean;
5831
+ userId?: string | undefined;
5753
5832
  } | {
5754
5833
  type: VerificationType.MfaPhoneVerificationCode;
5755
5834
  id: string;
@@ -5759,6 +5838,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5759
5838
  };
5760
5839
  templateType: import("@logto/connector-kit").TemplateType;
5761
5840
  verified: boolean;
5841
+ userId?: string | undefined;
5762
5842
  } | {
5763
5843
  type: VerificationType.NewPasswordIdentity;
5764
5844
  id: string;
@@ -5982,6 +6062,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5982
6062
  };
5983
6063
  templateType: import("@logto/connector-kit").TemplateType;
5984
6064
  verified: boolean;
6065
+ userId?: string | undefined;
5985
6066
  } | {
5986
6067
  type: VerificationType.PhoneVerificationCode;
5987
6068
  id: string;
@@ -5991,6 +6072,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
5991
6072
  };
5992
6073
  templateType: import("@logto/connector-kit").TemplateType;
5993
6074
  verified: boolean;
6075
+ userId?: string | undefined;
5994
6076
  } | {
5995
6077
  type: VerificationType.MfaEmailVerificationCode;
5996
6078
  id: string;
@@ -6000,6 +6082,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6000
6082
  };
6001
6083
  templateType: import("@logto/connector-kit").TemplateType;
6002
6084
  verified: boolean;
6085
+ userId?: string | undefined;
6003
6086
  } | {
6004
6087
  type: VerificationType.MfaPhoneVerificationCode;
6005
6088
  id: string;
@@ -6009,6 +6092,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6009
6092
  };
6010
6093
  templateType: import("@logto/connector-kit").TemplateType;
6011
6094
  verified: boolean;
6095
+ userId?: string | undefined;
6012
6096
  } | {
6013
6097
  type: VerificationType.NewPasswordIdentity;
6014
6098
  id: string;
@@ -6250,6 +6334,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6250
6334
  };
6251
6335
  templateType: import("@logto/connector-kit").TemplateType;
6252
6336
  verified: boolean;
6337
+ userId?: string | undefined;
6253
6338
  } | {
6254
6339
  type: VerificationType.PhoneVerificationCode;
6255
6340
  id: string;
@@ -6259,6 +6344,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6259
6344
  };
6260
6345
  templateType: import("@logto/connector-kit").TemplateType;
6261
6346
  verified: boolean;
6347
+ userId?: string | undefined;
6262
6348
  } | {
6263
6349
  type: VerificationType.MfaEmailVerificationCode;
6264
6350
  id: string;
@@ -6268,6 +6354,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6268
6354
  };
6269
6355
  templateType: import("@logto/connector-kit").TemplateType;
6270
6356
  verified: boolean;
6357
+ userId?: string | undefined;
6271
6358
  } | {
6272
6359
  type: VerificationType.MfaPhoneVerificationCode;
6273
6360
  id: string;
@@ -6277,6 +6364,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6277
6364
  };
6278
6365
  templateType: import("@logto/connector-kit").TemplateType;
6279
6366
  verified: boolean;
6367
+ userId?: string | undefined;
6280
6368
  } | {
6281
6369
  type: VerificationType.NewPasswordIdentity;
6282
6370
  id: string;
@@ -6518,6 +6606,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6518
6606
  };
6519
6607
  templateType: import("@logto/connector-kit").TemplateType;
6520
6608
  verified: boolean;
6609
+ userId?: string | undefined;
6521
6610
  } | {
6522
6611
  type: VerificationType.PhoneVerificationCode;
6523
6612
  id: string;
@@ -6527,6 +6616,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6527
6616
  };
6528
6617
  templateType: import("@logto/connector-kit").TemplateType;
6529
6618
  verified: boolean;
6619
+ userId?: string | undefined;
6530
6620
  } | {
6531
6621
  type: VerificationType.MfaEmailVerificationCode;
6532
6622
  id: string;
@@ -6536,6 +6626,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6536
6626
  };
6537
6627
  templateType: import("@logto/connector-kit").TemplateType;
6538
6628
  verified: boolean;
6629
+ userId?: string | undefined;
6539
6630
  } | {
6540
6631
  type: VerificationType.MfaPhoneVerificationCode;
6541
6632
  id: string;
@@ -6545,6 +6636,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
6545
6636
  };
6546
6637
  templateType: import("@logto/connector-kit").TemplateType;
6547
6638
  verified: boolean;
6639
+ userId?: string | undefined;
6548
6640
  } | {
6549
6641
  type: VerificationType.NewPasswordIdentity;
6550
6642
  id: string;