@logto/schemas 1.31.0 → 1.32.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.
- package/alterations/1.32.0-1756370721-align-app-and-org-sign-in-exp-configs.ts +28 -0
- package/alterations/1.32.0-1756954492-add-default-to-forgot-password-methods.ts +35 -0
- package/alterations/1.32.0-1759041888-add-tenant-date-index-to-daily-active-users-table.ts +18 -0
- package/alterations-js/1.32.0-1756370721-align-app-and-org-sign-in-exp-configs.js +24 -0
- package/alterations-js/1.32.0-1756954492-add-default-to-forgot-password-methods.js +29 -0
- package/alterations-js/1.32.0-1759041888-add-tenant-date-index-to-daily-active-users-table.js +15 -0
- package/lib/consts/oidc.d.ts +11 -0
- package/lib/consts/oidc.js +8 -0
- package/lib/db-entries/application-sign-in-experience.d.ts +3 -1
- package/lib/db-entries/application-sign-in-experience.js +4 -0
- package/lib/db-entries/organization.d.ts +10 -2
- package/lib/db-entries/organization.js +9 -1
- package/lib/foundations/jsonb-types/users.d.ts +9 -0
- package/lib/foundations/jsonb-types/users.js +1 -0
- package/lib/types/application.d.ts +3 -0
- package/lib/types/consent.d.ts +25 -0
- package/lib/types/cookie.d.ts +4 -0
- package/lib/types/cookie.js +1 -1
- package/lib/types/custom-profile-fields.d.ts +2 -0
- package/lib/types/interactions.d.ts +6 -0
- package/lib/types/interactions.js +1 -0
- package/lib/types/logto-config/index.d.ts +64 -40
- package/lib/types/logto-config/jwt-customizer.d.ts +134 -70
- package/lib/types/mfa.d.ts +2 -2
- package/lib/types/sign-in-experience.d.ts +2 -2
- package/lib/types/ssr.d.ts +1 -0
- package/lib/types/user.d.ts +6 -0
- package/lib/types/verification-records/web-authn-verification.d.ts +16 -2
- package/lib/types/verification-records/web-authn-verification.js +2 -0
- package/package.json +6 -6
- package/tables/application_sign_in_experiences.sql +1 -0
- package/tables/daily_active_users.sql +3 -0
- package/tables/organizations.sql +4 -0
- package/tables/sign_in_experiences.sql +1 -1
|
@@ -242,6 +242,15 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
242
242
|
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
243
243
|
customData: ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
244
244
|
isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
245
|
+
color: ZodType<Partial<{
|
|
246
|
+
primaryColor: string;
|
|
247
|
+
isDarkModeEnabled: boolean;
|
|
248
|
+
darkPrimaryColor: string;
|
|
249
|
+
}>, z.ZodTypeDef, Partial<{
|
|
250
|
+
primaryColor: string;
|
|
251
|
+
isDarkModeEnabled: boolean;
|
|
252
|
+
darkPrimaryColor: string;
|
|
253
|
+
}>>;
|
|
245
254
|
branding: ZodType<{
|
|
246
255
|
logoUrl?: string | undefined;
|
|
247
256
|
darkLogoUrl?: string | undefined;
|
|
@@ -253,6 +262,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
253
262
|
favicon?: string | undefined;
|
|
254
263
|
darkFavicon?: string | undefined;
|
|
255
264
|
}>;
|
|
265
|
+
customCss: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
256
266
|
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
257
267
|
}, "name" | "id" | "description">, "strip", z.ZodTypeAny, {
|
|
258
268
|
name: string;
|
|
@@ -721,9 +731,11 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
721
731
|
userId: z.ZodString;
|
|
722
732
|
verified: z.ZodBoolean;
|
|
723
733
|
registrationChallenge: z.ZodOptional<z.ZodString>;
|
|
734
|
+
registrationRpId: z.ZodOptional<z.ZodString>;
|
|
724
735
|
authenticationChallenge: z.ZodOptional<z.ZodString>;
|
|
725
736
|
registrationInfo: z.ZodOptional<z.ZodObject<{
|
|
726
737
|
type: z.ZodLiteral<import("../../index.js").MfaFactor.WebAuthn>;
|
|
738
|
+
rpId: z.ZodString;
|
|
727
739
|
credentialId: z.ZodString;
|
|
728
740
|
publicKey: z.ZodString;
|
|
729
741
|
transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
|
|
@@ -732,6 +744,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
732
744
|
name: z.ZodOptional<z.ZodString>;
|
|
733
745
|
}, "strip", z.ZodTypeAny, {
|
|
734
746
|
type: import("../../index.js").MfaFactor.WebAuthn;
|
|
747
|
+
rpId: string;
|
|
735
748
|
credentialId: string;
|
|
736
749
|
publicKey: string;
|
|
737
750
|
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
@@ -740,6 +753,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
740
753
|
name?: string | undefined;
|
|
741
754
|
}, {
|
|
742
755
|
type: import("../../index.js").MfaFactor.WebAuthn;
|
|
756
|
+
rpId: string;
|
|
743
757
|
credentialId: string;
|
|
744
758
|
publicKey: string;
|
|
745
759
|
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
@@ -752,11 +766,13 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
752
766
|
id: string;
|
|
753
767
|
userId: string;
|
|
754
768
|
verified: boolean;
|
|
769
|
+
registrationRpId?: string | undefined;
|
|
755
770
|
}, {
|
|
756
771
|
type: import("../index.js").VerificationType.WebAuthn;
|
|
757
772
|
id: string;
|
|
758
773
|
userId: string;
|
|
759
774
|
verified: boolean;
|
|
775
|
+
registrationRpId?: string | undefined;
|
|
760
776
|
}>, z.ZodObject<{
|
|
761
777
|
id: z.ZodString;
|
|
762
778
|
type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
|
|
@@ -899,11 +915,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
899
915
|
id: string;
|
|
900
916
|
userId: string;
|
|
901
917
|
verified: boolean;
|
|
902
|
-
} | {
|
|
903
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
904
|
-
id: string;
|
|
905
|
-
userId: string;
|
|
906
|
-
verified: boolean;
|
|
907
918
|
} | {
|
|
908
919
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
909
920
|
id: string;
|
|
@@ -917,6 +928,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
917
928
|
avatar?: string | undefined;
|
|
918
929
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
919
930
|
} | undefined;
|
|
931
|
+
} | {
|
|
932
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
933
|
+
id: string;
|
|
934
|
+
userId: string;
|
|
935
|
+
verified: boolean;
|
|
936
|
+
registrationRpId?: string | undefined;
|
|
920
937
|
})[] | undefined;
|
|
921
938
|
}, {
|
|
922
939
|
userId?: string | undefined;
|
|
@@ -987,11 +1004,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
987
1004
|
id: string;
|
|
988
1005
|
userId: string;
|
|
989
1006
|
verified: boolean;
|
|
990
|
-
} | {
|
|
991
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
992
|
-
id: string;
|
|
993
|
-
userId: string;
|
|
994
|
-
verified: boolean;
|
|
995
1007
|
} | {
|
|
996
1008
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
997
1009
|
id: string;
|
|
@@ -1005,6 +1017,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1005
1017
|
avatar?: string | undefined;
|
|
1006
1018
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1007
1019
|
} | undefined;
|
|
1020
|
+
} | {
|
|
1021
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1022
|
+
id: string;
|
|
1023
|
+
userId: string;
|
|
1024
|
+
verified: boolean;
|
|
1025
|
+
registrationRpId?: string | undefined;
|
|
1008
1026
|
})[] | undefined;
|
|
1009
1027
|
}>>;
|
|
1010
1028
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1149,11 +1167,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1149
1167
|
id: string;
|
|
1150
1168
|
userId: string;
|
|
1151
1169
|
verified: boolean;
|
|
1152
|
-
} | {
|
|
1153
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
1154
|
-
id: string;
|
|
1155
|
-
userId: string;
|
|
1156
|
-
verified: boolean;
|
|
1157
1170
|
} | {
|
|
1158
1171
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1159
1172
|
id: string;
|
|
@@ -1167,6 +1180,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1167
1180
|
avatar?: string | undefined;
|
|
1168
1181
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1169
1182
|
} | undefined;
|
|
1183
|
+
} | {
|
|
1184
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1185
|
+
id: string;
|
|
1186
|
+
userId: string;
|
|
1187
|
+
verified: boolean;
|
|
1188
|
+
registrationRpId?: string | undefined;
|
|
1170
1189
|
})[] | undefined;
|
|
1171
1190
|
} | undefined;
|
|
1172
1191
|
}, {
|
|
@@ -1311,11 +1330,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1311
1330
|
id: string;
|
|
1312
1331
|
userId: string;
|
|
1313
1332
|
verified: boolean;
|
|
1314
|
-
} | {
|
|
1315
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
1316
|
-
id: string;
|
|
1317
|
-
userId: string;
|
|
1318
|
-
verified: boolean;
|
|
1319
1333
|
} | {
|
|
1320
1334
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1321
1335
|
id: string;
|
|
@@ -1329,6 +1343,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1329
1343
|
avatar?: string | undefined;
|
|
1330
1344
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1331
1345
|
} | undefined;
|
|
1346
|
+
} | {
|
|
1347
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1348
|
+
id: string;
|
|
1349
|
+
userId: string;
|
|
1350
|
+
verified: boolean;
|
|
1351
|
+
registrationRpId?: string | undefined;
|
|
1332
1352
|
})[] | undefined;
|
|
1333
1353
|
} | undefined;
|
|
1334
1354
|
}>>;
|
|
@@ -1477,11 +1497,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1477
1497
|
id: string;
|
|
1478
1498
|
userId: string;
|
|
1479
1499
|
verified: boolean;
|
|
1480
|
-
} | {
|
|
1481
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
1482
|
-
id: string;
|
|
1483
|
-
userId: string;
|
|
1484
|
-
verified: boolean;
|
|
1485
1500
|
} | {
|
|
1486
1501
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1487
1502
|
id: string;
|
|
@@ -1495,6 +1510,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1495
1510
|
avatar?: string | undefined;
|
|
1496
1511
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1497
1512
|
} | undefined;
|
|
1513
|
+
} | {
|
|
1514
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1515
|
+
id: string;
|
|
1516
|
+
userId: string;
|
|
1517
|
+
verified: boolean;
|
|
1518
|
+
registrationRpId?: string | undefined;
|
|
1498
1519
|
})[] | undefined;
|
|
1499
1520
|
} | undefined;
|
|
1500
1521
|
} | undefined;
|
|
@@ -1656,11 +1677,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1656
1677
|
id: string;
|
|
1657
1678
|
userId: string;
|
|
1658
1679
|
verified: boolean;
|
|
1659
|
-
} | {
|
|
1660
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
1661
|
-
id: string;
|
|
1662
|
-
userId: string;
|
|
1663
|
-
verified: boolean;
|
|
1664
1680
|
} | {
|
|
1665
1681
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1666
1682
|
id: string;
|
|
@@ -1674,6 +1690,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1674
1690
|
avatar?: string | undefined;
|
|
1675
1691
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1676
1692
|
} | undefined;
|
|
1693
|
+
} | {
|
|
1694
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1695
|
+
id: string;
|
|
1696
|
+
userId: string;
|
|
1697
|
+
verified: boolean;
|
|
1698
|
+
registrationRpId?: string | undefined;
|
|
1677
1699
|
})[] | undefined;
|
|
1678
1700
|
} | undefined;
|
|
1679
1701
|
} | undefined;
|
|
@@ -1837,11 +1859,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1837
1859
|
id: string;
|
|
1838
1860
|
userId: string;
|
|
1839
1861
|
verified: boolean;
|
|
1840
|
-
} | {
|
|
1841
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
1842
|
-
id: string;
|
|
1843
|
-
userId: string;
|
|
1844
|
-
verified: boolean;
|
|
1845
1862
|
} | {
|
|
1846
1863
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1847
1864
|
id: string;
|
|
@@ -1855,6 +1872,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1855
1872
|
avatar?: string | undefined;
|
|
1856
1873
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
1857
1874
|
} | undefined;
|
|
1875
|
+
} | {
|
|
1876
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1877
|
+
id: string;
|
|
1878
|
+
userId: string;
|
|
1879
|
+
verified: boolean;
|
|
1880
|
+
registrationRpId?: string | undefined;
|
|
1858
1881
|
})[] | undefined;
|
|
1859
1882
|
} | undefined;
|
|
1860
1883
|
} | undefined;
|
|
@@ -2019,11 +2042,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2019
2042
|
id: string;
|
|
2020
2043
|
userId: string;
|
|
2021
2044
|
verified: boolean;
|
|
2022
|
-
} | {
|
|
2023
|
-
type: import("../index.js").VerificationType.WebAuthn;
|
|
2024
|
-
id: string;
|
|
2025
|
-
userId: string;
|
|
2026
|
-
verified: boolean;
|
|
2027
2045
|
} | {
|
|
2028
2046
|
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
2029
2047
|
id: string;
|
|
@@ -2037,6 +2055,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2037
2055
|
avatar?: string | undefined;
|
|
2038
2056
|
rawData?: import("@withtyped/server").Json | undefined;
|
|
2039
2057
|
} | undefined;
|
|
2058
|
+
} | {
|
|
2059
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
2060
|
+
id: string;
|
|
2061
|
+
userId: string;
|
|
2062
|
+
verified: boolean;
|
|
2063
|
+
registrationRpId?: string | undefined;
|
|
2040
2064
|
})[] | undefined;
|
|
2041
2065
|
} | undefined;
|
|
2042
2066
|
} | undefined;
|