@logto/schemas 1.41.0 → 1.42.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 (59) hide show
  1. package/alterations/1.42.0-1783916980-add-domain-verification-files.ts +20 -0
  2. package/alterations/1.42.0-1784619793-add-service-logs-created-at-index.ts +33 -0
  3. package/alterations/1.42.0-1784620000-add-saml-sso-connector-signing-keys-table.ts +38 -0
  4. package/alterations/utils/1704934999-tables.ts +22 -1
  5. package/alterations-js/1.42.0-1783916980-add-domain-verification-files.js +16 -0
  6. package/alterations-js/1.42.0-1784619793-add-service-logs-created-at-index.js +29 -0
  7. package/alterations-js/1.42.0-1784620000-add-saml-sso-connector-signing-keys-table.js +33 -0
  8. package/alterations-js/utils/1704934999-tables.js +19 -1
  9. package/lib/consts/experience.d.ts +1 -0
  10. package/lib/consts/experience.js +1 -0
  11. package/lib/db-entries/domain.d.ts +4 -2
  12. package/lib/db-entries/domain.js +5 -1
  13. package/lib/db-entries/index.d.ts +1 -0
  14. package/lib/db-entries/index.js +1 -0
  15. package/lib/db-entries/saml-sso-connector-signing-key.d.ts +32 -0
  16. package/lib/db-entries/saml-sso-connector-signing-key.js +49 -0
  17. package/lib/foundations/jsonb-types/custom-domain.d.ts +57 -0
  18. package/lib/foundations/jsonb-types/custom-domain.js +51 -0
  19. package/lib/foundations/jsonb-types/custom-domain.test.d.ts +1 -0
  20. package/lib/foundations/jsonb-types/custom-domain.test.js +38 -0
  21. package/lib/foundations/jsonb-types/hooks.d.ts +4 -4
  22. package/lib/foundations/jsonb-types/hooks.js +1 -0
  23. package/lib/foundations/jsonb-types/one-time-tokens.d.ts +5 -0
  24. package/lib/foundations/jsonb-types/one-time-tokens.js +2 -0
  25. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +16 -1
  26. package/lib/foundations/jsonb-types/sign-in-experience.js +1 -0
  27. package/lib/types/application.d.ts +131 -1
  28. package/lib/types/application.js +8 -0
  29. package/lib/types/custom-profile-fields.d.ts +1 -1
  30. package/lib/types/domain.d.ts +9 -0
  31. package/lib/types/hook.d.ts +9 -2
  32. package/lib/types/interaction-event.d.ts +11 -0
  33. package/lib/types/interaction-event.js +12 -0
  34. package/lib/types/interactions.d.ts +2 -11
  35. package/lib/types/interactions.js +2 -11
  36. package/lib/types/log/action.d.ts +7 -0
  37. package/lib/types/log/action.js +6 -0
  38. package/lib/types/log/index.d.ts +5 -2
  39. package/lib/types/log/index.js +1 -0
  40. package/lib/types/logto-config/action.d.ts +963 -0
  41. package/lib/types/logto-config/action.js +77 -0
  42. package/lib/types/logto-config/index.d.ts +32 -19
  43. package/lib/types/logto-config/index.js +7 -7
  44. package/lib/types/logto-config/index.test.js +9 -9
  45. package/lib/types/logto-config/jwt-customizer.d.ts +29 -0
  46. package/lib/types/organization.d.ts +136 -1
  47. package/lib/types/organization.js +3 -2
  48. package/lib/types/sign-in-experience.d.ts +2 -4
  49. package/lib/types/sign-in-experience.js +1 -1
  50. package/lib/types/sso-connector.d.ts +58 -0
  51. package/lib/types/sso-connector.js +12 -0
  52. package/lib/types/user-sessions.d.ts +78 -29
  53. package/lib/types/verification-records/one-time-token-verification.d.ts +5 -0
  54. package/package.json +5 -5
  55. package/tables/domains.sql +1 -0
  56. package/tables/saml_sso_connector_signing_keys.sql +21 -0
  57. package/tables/service_logs.sql +5 -0
  58. package/lib/types/logto-config/inline-hook.d.ts +0 -76
  59. package/lib/types/logto-config/inline-hook.js +0 -25
@@ -104,7 +104,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
104
104
  }, z.ZodUnknown, "strip">>>>;
105
105
  }, z.ZodUnknown, "strip">>;
106
106
  lastSubmission: z.ZodNullable<z.ZodObject<{
107
- interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
107
+ interactionEvent: z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>;
108
108
  userId: z.ZodString;
109
109
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
110
110
  id: z.ZodString;
@@ -580,10 +580,13 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
580
580
  }>;
581
581
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
582
582
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
583
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>>;
583
584
  }, "strip", z.ZodTypeAny, {
584
585
  jitOrganizationIds?: string[] | undefined;
586
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
585
587
  }, {
586
588
  jitOrganizationIds?: string[] | undefined;
589
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
587
590
  }>>;
588
591
  }, "strip", z.ZodTypeAny, {
589
592
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -595,6 +598,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
595
598
  verified: boolean;
596
599
  oneTimeTokenContext?: {
597
600
  jitOrganizationIds?: string[] | undefined;
601
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
598
602
  } | undefined;
599
603
  }, {
600
604
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -606,6 +610,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
606
610
  verified: boolean;
607
611
  oneTimeTokenContext?: {
608
612
  jitOrganizationIds?: string[] | undefined;
613
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
609
614
  } | undefined;
610
615
  }>, z.ZodObject<Omit<{
611
616
  id: z.ZodString;
@@ -640,7 +645,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
640
645
  signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
641
646
  }, "strip", z.ZodTypeAny, {
642
647
  userId: string;
643
- interactionEvent: import("./interactions.js").InteractionEvent;
648
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
644
649
  verificationRecords: ({
645
650
  type: import("./index.js").VerificationType.BackupCode;
646
651
  id: string;
@@ -699,6 +704,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
699
704
  verified: boolean;
700
705
  oneTimeTokenContext?: {
701
706
  jitOrganizationIds?: string[] | undefined;
707
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
702
708
  } | undefined;
703
709
  } | {
704
710
  type: import("./index.js").VerificationType.Password;
@@ -754,7 +760,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
754
760
  signInContext?: Record<string, string> | undefined;
755
761
  }, {
756
762
  userId: string;
757
- interactionEvent: import("./interactions.js").InteractionEvent;
763
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
758
764
  verificationRecords: ({
759
765
  type: import("./index.js").VerificationType.BackupCode;
760
766
  id: string;
@@ -813,6 +819,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
813
819
  verified: boolean;
814
820
  oneTimeTokenContext?: {
815
821
  jitOrganizationIds?: string[] | undefined;
822
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
816
823
  } | undefined;
817
824
  } | {
818
825
  type: import("./index.js").VerificationType.Password;
@@ -891,7 +898,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
891
898
  };
892
899
  lastSubmission: {
893
900
  userId: string;
894
- interactionEvent: import("./interactions.js").InteractionEvent;
901
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
895
902
  verificationRecords: ({
896
903
  type: import("./index.js").VerificationType.BackupCode;
897
904
  id: string;
@@ -950,6 +957,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
950
957
  verified: boolean;
951
958
  oneTimeTokenContext?: {
952
959
  jitOrganizationIds?: string[] | undefined;
960
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
953
961
  } | undefined;
954
962
  } | {
955
963
  type: import("./index.js").VerificationType.Password;
@@ -1026,7 +1034,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1026
1034
  };
1027
1035
  lastSubmission: {
1028
1036
  userId: string;
1029
- interactionEvent: import("./interactions.js").InteractionEvent;
1037
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
1030
1038
  verificationRecords: ({
1031
1039
  type: import("./index.js").VerificationType.BackupCode;
1032
1040
  id: string;
@@ -1085,6 +1093,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
1085
1093
  verified: boolean;
1086
1094
  oneTimeTokenContext?: {
1087
1095
  jitOrganizationIds?: string[] | undefined;
1096
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1088
1097
  } | undefined;
1089
1098
  } | {
1090
1099
  type: import("./index.js").VerificationType.Password;
@@ -1208,7 +1217,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1208
1217
  }, z.ZodUnknown, "strip">>>>;
1209
1218
  }, z.ZodUnknown, "strip">>;
1210
1219
  lastSubmission: z.ZodNullable<z.ZodObject<{
1211
- interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
1220
+ interactionEvent: z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>;
1212
1221
  userId: z.ZodString;
1213
1222
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1214
1223
  id: z.ZodString;
@@ -1684,10 +1693,13 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1684
1693
  }>;
1685
1694
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
1686
1695
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1696
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>>;
1687
1697
  }, "strip", z.ZodTypeAny, {
1688
1698
  jitOrganizationIds?: string[] | undefined;
1699
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1689
1700
  }, {
1690
1701
  jitOrganizationIds?: string[] | undefined;
1702
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1691
1703
  }>>;
1692
1704
  }, "strip", z.ZodTypeAny, {
1693
1705
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -1699,6 +1711,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1699
1711
  verified: boolean;
1700
1712
  oneTimeTokenContext?: {
1701
1713
  jitOrganizationIds?: string[] | undefined;
1714
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1702
1715
  } | undefined;
1703
1716
  }, {
1704
1717
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -1710,6 +1723,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1710
1723
  verified: boolean;
1711
1724
  oneTimeTokenContext?: {
1712
1725
  jitOrganizationIds?: string[] | undefined;
1726
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1713
1727
  } | undefined;
1714
1728
  }>, z.ZodObject<Omit<{
1715
1729
  id: z.ZodString;
@@ -1744,7 +1758,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1744
1758
  signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1745
1759
  }, "strip", z.ZodTypeAny, {
1746
1760
  userId: string;
1747
- interactionEvent: import("./interactions.js").InteractionEvent;
1761
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
1748
1762
  verificationRecords: ({
1749
1763
  type: import("./index.js").VerificationType.BackupCode;
1750
1764
  id: string;
@@ -1803,6 +1817,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1803
1817
  verified: boolean;
1804
1818
  oneTimeTokenContext?: {
1805
1819
  jitOrganizationIds?: string[] | undefined;
1820
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1806
1821
  } | undefined;
1807
1822
  } | {
1808
1823
  type: import("./index.js").VerificationType.Password;
@@ -1858,7 +1873,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1858
1873
  signInContext?: Record<string, string> | undefined;
1859
1874
  }, {
1860
1875
  userId: string;
1861
- interactionEvent: import("./interactions.js").InteractionEvent;
1876
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
1862
1877
  verificationRecords: ({
1863
1878
  type: import("./index.js").VerificationType.BackupCode;
1864
1879
  id: string;
@@ -1917,6 +1932,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1917
1932
  verified: boolean;
1918
1933
  oneTimeTokenContext?: {
1919
1934
  jitOrganizationIds?: string[] | undefined;
1935
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
1920
1936
  } | undefined;
1921
1937
  } | {
1922
1938
  type: import("./index.js").VerificationType.Password;
@@ -1995,7 +2011,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1995
2011
  };
1996
2012
  lastSubmission: {
1997
2013
  userId: string;
1998
- interactionEvent: import("./interactions.js").InteractionEvent;
2014
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
1999
2015
  verificationRecords: ({
2000
2016
  type: import("./index.js").VerificationType.BackupCode;
2001
2017
  id: string;
@@ -2054,6 +2070,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2054
2070
  verified: boolean;
2055
2071
  oneTimeTokenContext?: {
2056
2072
  jitOrganizationIds?: string[] | undefined;
2073
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
2057
2074
  } | undefined;
2058
2075
  } | {
2059
2076
  type: import("./index.js").VerificationType.Password;
@@ -2130,7 +2147,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2130
2147
  };
2131
2148
  lastSubmission: {
2132
2149
  userId: string;
2133
- interactionEvent: import("./interactions.js").InteractionEvent;
2150
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
2134
2151
  verificationRecords: ({
2135
2152
  type: import("./index.js").VerificationType.BackupCode;
2136
2153
  id: string;
@@ -2189,6 +2206,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2189
2206
  verified: boolean;
2190
2207
  oneTimeTokenContext?: {
2191
2208
  jitOrganizationIds?: string[] | undefined;
2209
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
2192
2210
  } | undefined;
2193
2211
  } | {
2194
2212
  type: import("./index.js").VerificationType.Password;
@@ -2267,7 +2285,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2267
2285
  };
2268
2286
  lastSubmission: {
2269
2287
  userId: string;
2270
- interactionEvent: import("./interactions.js").InteractionEvent;
2288
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
2271
2289
  verificationRecords: ({
2272
2290
  type: import("./index.js").VerificationType.BackupCode;
2273
2291
  id: string;
@@ -2326,6 +2344,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2326
2344
  verified: boolean;
2327
2345
  oneTimeTokenContext?: {
2328
2346
  jitOrganizationIds?: string[] | undefined;
2347
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
2329
2348
  } | undefined;
2330
2349
  } | {
2331
2350
  type: import("./index.js").VerificationType.Password;
@@ -2404,7 +2423,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2404
2423
  };
2405
2424
  lastSubmission: {
2406
2425
  userId: string;
2407
- interactionEvent: import("./interactions.js").InteractionEvent;
2426
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
2408
2427
  verificationRecords: ({
2409
2428
  type: import("./index.js").VerificationType.BackupCode;
2410
2429
  id: string;
@@ -2463,6 +2482,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
2463
2482
  verified: boolean;
2464
2483
  oneTimeTokenContext?: {
2465
2484
  jitOrganizationIds?: string[] | undefined;
2485
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
2466
2486
  } | undefined;
2467
2487
  } | {
2468
2488
  type: import("./index.js").VerificationType.Password;
@@ -2588,7 +2608,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
2588
2608
  }, z.ZodUnknown, "strip">>>>;
2589
2609
  }, z.ZodUnknown, "strip">>;
2590
2610
  lastSubmission: z.ZodNullable<z.ZodObject<{
2591
- interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
2611
+ interactionEvent: z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>;
2592
2612
  userId: z.ZodString;
2593
2613
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2594
2614
  id: z.ZodString;
@@ -3064,10 +3084,13 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3064
3084
  }>;
3065
3085
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
3066
3086
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3087
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>>;
3067
3088
  }, "strip", z.ZodTypeAny, {
3068
3089
  jitOrganizationIds?: string[] | undefined;
3090
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3069
3091
  }, {
3070
3092
  jitOrganizationIds?: string[] | undefined;
3093
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3071
3094
  }>>;
3072
3095
  }, "strip", z.ZodTypeAny, {
3073
3096
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -3079,6 +3102,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3079
3102
  verified: boolean;
3080
3103
  oneTimeTokenContext?: {
3081
3104
  jitOrganizationIds?: string[] | undefined;
3105
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3082
3106
  } | undefined;
3083
3107
  }, {
3084
3108
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -3090,6 +3114,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3090
3114
  verified: boolean;
3091
3115
  oneTimeTokenContext?: {
3092
3116
  jitOrganizationIds?: string[] | undefined;
3117
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3093
3118
  } | undefined;
3094
3119
  }>, z.ZodObject<Omit<{
3095
3120
  id: z.ZodString;
@@ -3124,7 +3149,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3124
3149
  signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3125
3150
  }, "strip", z.ZodTypeAny, {
3126
3151
  userId: string;
3127
- interactionEvent: import("./interactions.js").InteractionEvent;
3152
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
3128
3153
  verificationRecords: ({
3129
3154
  type: import("./index.js").VerificationType.BackupCode;
3130
3155
  id: string;
@@ -3183,6 +3208,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3183
3208
  verified: boolean;
3184
3209
  oneTimeTokenContext?: {
3185
3210
  jitOrganizationIds?: string[] | undefined;
3211
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3186
3212
  } | undefined;
3187
3213
  } | {
3188
3214
  type: import("./index.js").VerificationType.Password;
@@ -3238,7 +3264,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3238
3264
  signInContext?: Record<string, string> | undefined;
3239
3265
  }, {
3240
3266
  userId: string;
3241
- interactionEvent: import("./interactions.js").InteractionEvent;
3267
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
3242
3268
  verificationRecords: ({
3243
3269
  type: import("./index.js").VerificationType.BackupCode;
3244
3270
  id: string;
@@ -3297,6 +3323,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3297
3323
  verified: boolean;
3298
3324
  oneTimeTokenContext?: {
3299
3325
  jitOrganizationIds?: string[] | undefined;
3326
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3300
3327
  } | undefined;
3301
3328
  } | {
3302
3329
  type: import("./index.js").VerificationType.Password;
@@ -3375,7 +3402,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3375
3402
  };
3376
3403
  lastSubmission: {
3377
3404
  userId: string;
3378
- interactionEvent: import("./interactions.js").InteractionEvent;
3405
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
3379
3406
  verificationRecords: ({
3380
3407
  type: import("./index.js").VerificationType.BackupCode;
3381
3408
  id: string;
@@ -3434,6 +3461,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3434
3461
  verified: boolean;
3435
3462
  oneTimeTokenContext?: {
3436
3463
  jitOrganizationIds?: string[] | undefined;
3464
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3437
3465
  } | undefined;
3438
3466
  } | {
3439
3467
  type: import("./index.js").VerificationType.Password;
@@ -3510,7 +3538,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3510
3538
  };
3511
3539
  lastSubmission: {
3512
3540
  userId: string;
3513
- interactionEvent: import("./interactions.js").InteractionEvent;
3541
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
3514
3542
  verificationRecords: ({
3515
3543
  type: import("./index.js").VerificationType.BackupCode;
3516
3544
  id: string;
@@ -3569,6 +3597,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
3569
3597
  verified: boolean;
3570
3598
  oneTimeTokenContext?: {
3571
3599
  jitOrganizationIds?: string[] | undefined;
3600
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
3572
3601
  } | undefined;
3573
3602
  } | {
3574
3603
  type: import("./index.js").VerificationType.Password;
@@ -3701,7 +3730,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
3701
3730
  }, z.ZodUnknown, "strip">>>>;
3702
3731
  }, z.ZodUnknown, "strip">>;
3703
3732
  lastSubmission: z.ZodNullable<z.ZodObject<{
3704
- interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
3733
+ interactionEvent: z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>;
3705
3734
  userId: z.ZodString;
3706
3735
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3707
3736
  id: z.ZodString;
@@ -4177,10 +4206,13 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4177
4206
  }>;
4178
4207
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
4179
4208
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4209
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>>;
4180
4210
  }, "strip", z.ZodTypeAny, {
4181
4211
  jitOrganizationIds?: string[] | undefined;
4212
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4182
4213
  }, {
4183
4214
  jitOrganizationIds?: string[] | undefined;
4215
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4184
4216
  }>>;
4185
4217
  }, "strip", z.ZodTypeAny, {
4186
4218
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -4192,6 +4224,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4192
4224
  verified: boolean;
4193
4225
  oneTimeTokenContext?: {
4194
4226
  jitOrganizationIds?: string[] | undefined;
4227
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4195
4228
  } | undefined;
4196
4229
  }, {
4197
4230
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -4203,6 +4236,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4203
4236
  verified: boolean;
4204
4237
  oneTimeTokenContext?: {
4205
4238
  jitOrganizationIds?: string[] | undefined;
4239
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4206
4240
  } | undefined;
4207
4241
  }>, z.ZodObject<Omit<{
4208
4242
  id: z.ZodString;
@@ -4237,7 +4271,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4237
4271
  signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4238
4272
  }, "strip", z.ZodTypeAny, {
4239
4273
  userId: string;
4240
- interactionEvent: import("./interactions.js").InteractionEvent;
4274
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
4241
4275
  verificationRecords: ({
4242
4276
  type: import("./index.js").VerificationType.BackupCode;
4243
4277
  id: string;
@@ -4296,6 +4330,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4296
4330
  verified: boolean;
4297
4331
  oneTimeTokenContext?: {
4298
4332
  jitOrganizationIds?: string[] | undefined;
4333
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4299
4334
  } | undefined;
4300
4335
  } | {
4301
4336
  type: import("./index.js").VerificationType.Password;
@@ -4351,7 +4386,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4351
4386
  signInContext?: Record<string, string> | undefined;
4352
4387
  }, {
4353
4388
  userId: string;
4354
- interactionEvent: import("./interactions.js").InteractionEvent;
4389
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
4355
4390
  verificationRecords: ({
4356
4391
  type: import("./index.js").VerificationType.BackupCode;
4357
4392
  id: string;
@@ -4410,6 +4445,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4410
4445
  verified: boolean;
4411
4446
  oneTimeTokenContext?: {
4412
4447
  jitOrganizationIds?: string[] | undefined;
4448
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4413
4449
  } | undefined;
4414
4450
  } | {
4415
4451
  type: import("./index.js").VerificationType.Password;
@@ -4497,7 +4533,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4497
4533
  };
4498
4534
  lastSubmission: {
4499
4535
  userId: string;
4500
- interactionEvent: import("./interactions.js").InteractionEvent;
4536
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
4501
4537
  verificationRecords: ({
4502
4538
  type: import("./index.js").VerificationType.BackupCode;
4503
4539
  id: string;
@@ -4556,6 +4592,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4556
4592
  verified: boolean;
4557
4593
  oneTimeTokenContext?: {
4558
4594
  jitOrganizationIds?: string[] | undefined;
4595
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4559
4596
  } | undefined;
4560
4597
  } | {
4561
4598
  type: import("./index.js").VerificationType.Password;
@@ -4633,7 +4670,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4633
4670
  };
4634
4671
  lastSubmission: {
4635
4672
  userId: string;
4636
- interactionEvent: import("./interactions.js").InteractionEvent;
4673
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
4637
4674
  verificationRecords: ({
4638
4675
  type: import("./index.js").VerificationType.BackupCode;
4639
4676
  id: string;
@@ -4692,6 +4729,7 @@ export declare const accountUserExtendedSessionGuard: z.ZodObject<{
4692
4729
  verified: boolean;
4693
4730
  oneTimeTokenContext?: {
4694
4731
  jitOrganizationIds?: string[] | undefined;
4732
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
4695
4733
  } | undefined;
4696
4734
  } | {
4697
4735
  type: import("./index.js").VerificationType.Password;
@@ -4816,7 +4854,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
4816
4854
  }, z.ZodUnknown, "strip">>>>;
4817
4855
  }, z.ZodUnknown, "strip">>;
4818
4856
  lastSubmission: z.ZodNullable<z.ZodObject<{
4819
- interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
4857
+ interactionEvent: z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>;
4820
4858
  userId: z.ZodString;
4821
4859
  verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4822
4860
  id: z.ZodString;
@@ -5292,10 +5330,13 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5292
5330
  }>;
5293
5331
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
5294
5332
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5333
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("./interaction-event.js").InteractionEvent>>;
5295
5334
  }, "strip", z.ZodTypeAny, {
5296
5335
  jitOrganizationIds?: string[] | undefined;
5336
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5297
5337
  }, {
5298
5338
  jitOrganizationIds?: string[] | undefined;
5339
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5299
5340
  }>>;
5300
5341
  }, "strip", z.ZodTypeAny, {
5301
5342
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -5307,6 +5348,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5307
5348
  verified: boolean;
5308
5349
  oneTimeTokenContext?: {
5309
5350
  jitOrganizationIds?: string[] | undefined;
5351
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5310
5352
  } | undefined;
5311
5353
  }, {
5312
5354
  type: import("./index.js").VerificationType.OneTimeToken;
@@ -5318,6 +5360,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5318
5360
  verified: boolean;
5319
5361
  oneTimeTokenContext?: {
5320
5362
  jitOrganizationIds?: string[] | undefined;
5363
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5321
5364
  } | undefined;
5322
5365
  }>, z.ZodObject<Omit<{
5323
5366
  id: z.ZodString;
@@ -5352,7 +5395,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5352
5395
  signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5353
5396
  }, "strip", z.ZodTypeAny, {
5354
5397
  userId: string;
5355
- interactionEvent: import("./interactions.js").InteractionEvent;
5398
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
5356
5399
  verificationRecords: ({
5357
5400
  type: import("./index.js").VerificationType.BackupCode;
5358
5401
  id: string;
@@ -5411,6 +5454,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5411
5454
  verified: boolean;
5412
5455
  oneTimeTokenContext?: {
5413
5456
  jitOrganizationIds?: string[] | undefined;
5457
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5414
5458
  } | undefined;
5415
5459
  } | {
5416
5460
  type: import("./index.js").VerificationType.Password;
@@ -5466,7 +5510,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5466
5510
  signInContext?: Record<string, string> | undefined;
5467
5511
  }, {
5468
5512
  userId: string;
5469
- interactionEvent: import("./interactions.js").InteractionEvent;
5513
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
5470
5514
  verificationRecords: ({
5471
5515
  type: import("./index.js").VerificationType.BackupCode;
5472
5516
  id: string;
@@ -5525,6 +5569,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5525
5569
  verified: boolean;
5526
5570
  oneTimeTokenContext?: {
5527
5571
  jitOrganizationIds?: string[] | undefined;
5572
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5528
5573
  } | undefined;
5529
5574
  } | {
5530
5575
  type: import("./index.js").VerificationType.Password;
@@ -5612,7 +5657,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5612
5657
  };
5613
5658
  lastSubmission: {
5614
5659
  userId: string;
5615
- interactionEvent: import("./interactions.js").InteractionEvent;
5660
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
5616
5661
  verificationRecords: ({
5617
5662
  type: import("./index.js").VerificationType.BackupCode;
5618
5663
  id: string;
@@ -5671,6 +5716,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5671
5716
  verified: boolean;
5672
5717
  oneTimeTokenContext?: {
5673
5718
  jitOrganizationIds?: string[] | undefined;
5719
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5674
5720
  } | undefined;
5675
5721
  } | {
5676
5722
  type: import("./index.js").VerificationType.Password;
@@ -5748,7 +5794,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5748
5794
  };
5749
5795
  lastSubmission: {
5750
5796
  userId: string;
5751
- interactionEvent: import("./interactions.js").InteractionEvent;
5797
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
5752
5798
  verificationRecords: ({
5753
5799
  type: import("./index.js").VerificationType.BackupCode;
5754
5800
  id: string;
@@ -5807,6 +5853,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5807
5853
  verified: boolean;
5808
5854
  oneTimeTokenContext?: {
5809
5855
  jitOrganizationIds?: string[] | undefined;
5856
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5810
5857
  } | undefined;
5811
5858
  } | {
5812
5859
  type: import("./index.js").VerificationType.Password;
@@ -5886,7 +5933,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5886
5933
  };
5887
5934
  lastSubmission: {
5888
5935
  userId: string;
5889
- interactionEvent: import("./interactions.js").InteractionEvent;
5936
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
5890
5937
  verificationRecords: ({
5891
5938
  type: import("./index.js").VerificationType.BackupCode;
5892
5939
  id: string;
@@ -5945,6 +5992,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
5945
5992
  verified: boolean;
5946
5993
  oneTimeTokenContext?: {
5947
5994
  jitOrganizationIds?: string[] | undefined;
5995
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
5948
5996
  } | undefined;
5949
5997
  } | {
5950
5998
  type: import("./index.js").VerificationType.Password;
@@ -6024,7 +6072,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6024
6072
  };
6025
6073
  lastSubmission: {
6026
6074
  userId: string;
6027
- interactionEvent: import("./interactions.js").InteractionEvent;
6075
+ interactionEvent: import("./interaction-event.js").InteractionEvent;
6028
6076
  verificationRecords: ({
6029
6077
  type: import("./index.js").VerificationType.BackupCode;
6030
6078
  id: string;
@@ -6083,6 +6131,7 @@ export declare const getAccountUserSessionsResponseGuard: z.ZodObject<{
6083
6131
  verified: boolean;
6084
6132
  oneTimeTokenContext?: {
6085
6133
  jitOrganizationIds?: string[] | undefined;
6134
+ interactionEvent?: import("./interaction-event.js").InteractionEvent | undefined;
6086
6135
  } | undefined;
6087
6136
  } | {
6088
6137
  type: import("./index.js").VerificationType.Password;
@@ -25,10 +25,13 @@ export declare const oneTimeTokenVerificationRecordDataGuard: z.ZodObject<{
25
25
  }>;
26
26
  oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
27
27
  jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof import("../interaction-event.js").InteractionEvent>>;
28
29
  }, "strip", z.ZodTypeAny, {
29
30
  jitOrganizationIds?: string[] | undefined;
31
+ interactionEvent?: import("../interaction-event.js").InteractionEvent | undefined;
30
32
  }, {
31
33
  jitOrganizationIds?: string[] | undefined;
34
+ interactionEvent?: import("../interaction-event.js").InteractionEvent | undefined;
32
35
  }>>;
33
36
  }, "strip", z.ZodTypeAny, {
34
37
  type: VerificationType.OneTimeToken;
@@ -40,6 +43,7 @@ export declare const oneTimeTokenVerificationRecordDataGuard: z.ZodObject<{
40
43
  verified: boolean;
41
44
  oneTimeTokenContext?: {
42
45
  jitOrganizationIds?: string[] | undefined;
46
+ interactionEvent?: import("../interaction-event.js").InteractionEvent | undefined;
43
47
  } | undefined;
44
48
  }, {
45
49
  type: VerificationType.OneTimeToken;
@@ -51,5 +55,6 @@ export declare const oneTimeTokenVerificationRecordDataGuard: z.ZodObject<{
51
55
  verified: boolean;
52
56
  oneTimeTokenContext?: {
53
57
  jitOrganizationIds?: string[] | undefined;
58
+ interactionEvent?: import("../interaction-event.js").InteractionEvent | undefined;
54
59
  } | undefined;
55
60
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/schemas",
3
- "version": "1.41.0",
3
+ "version": "1.42.0",
4
4
  "author": "Silverhand Inc. <contact@silverhand.io>",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",
@@ -67,10 +67,10 @@
67
67
  "nanoid": "^5.0.9",
68
68
  "@logto/connector-kit": "^5.1.0",
69
69
  "@logto/language-kit": "^1.3.0",
70
- "@logto/phrases": "^1.29.0",
71
- "@logto/core-kit": "^2.11.0",
72
- "@logto/phrases-experience": "^1.14.0",
73
- "@logto/shared": "^3.4.1"
70
+ "@logto/phrases": "^1.30.0",
71
+ "@logto/core-kit": "^2.12.0",
72
+ "@logto/shared": "^3.4.2",
73
+ "@logto/phrases-experience": "^1.14.1"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "zod": "3.24.3"
@@ -6,6 +6,7 @@ create table domains (
6
6
  status varchar(32) /* @use DomainStatus */ not null default('PendingVerification'),
7
7
  error_message varchar(1024),
8
8
  dns_records jsonb /* @use DomainDnsRecords */ not null default '[]'::jsonb,
9
+ verification_files jsonb /* @use DomainVerificationFiles */ not null default '[]'::jsonb,
9
10
  cloudflare_data jsonb /* @use CloudflareData */,
10
11
  updated_at timestamptz not null default(now()),
11
12
  created_at timestamptz not null default(now()),