@logto/schemas 1.28.0 → 1.30.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.29.0-1748832174-add-webauthn-related-origins.ts +20 -0
- package/alterations/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.ts +31 -0
- package/alterations/1.29.0-1749026308-add-oidc-session-extension-table.ts +41 -0
- package/alterations/1.29.0-1749523818-add-custom-profile-fields.ts +58 -0
- package/alterations/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.ts +20 -0
- package/alterations/1.29.0-1750663091-change-user-password-encrypted-length.ts +18 -0
- package/alterations/1.29.0-1750744518-add-secrets-table.ts +50 -0
- package/alterations/1.29.0-1750744539-add-secret-connector-relations-table.ts +109 -0
- package/alterations/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.ts +81 -0
- package/alterations/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.ts +20 -0
- package/alterations/1.30.0-1751255436-split-secret-connector-relatioins-table.ts +359 -0
- package/alterations/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.ts +20 -0
- package/alterations/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.ts +21 -0
- package/alterations/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.ts +20 -0
- package/alterations/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.ts +20 -0
- package/alterations/1.30.0-1753669579-add-organization-user-relations-foreign-key.ts +46 -0
- package/alterations-js/1.29.0-1748832174-add-webauthn-related-origins.js +16 -0
- package/alterations-js/1.29.0-1749005587-user-sso-identities-table-add-updated-at-column.js +25 -0
- package/alterations-js/1.29.0-1749026308-add-oidc-session-extension-table.js +33 -0
- package/alterations-js/1.29.0-1749523818-add-custom-profile-fields.js +52 -0
- package/alterations-js/1.29.0-1749724664-drop-sie-order-constraint-from-custom-profile-fields.js +16 -0
- package/alterations-js/1.29.0-1750663091-change-user-password-encrypted-length.js +14 -0
- package/alterations-js/1.29.0-1750744518-add-secrets-table.js +42 -0
- package/alterations-js/1.29.0-1750744539-add-secret-connector-relations-table.js +99 -0
- package/alterations-js/1.30.0-1750744685-add-triggers-to-delete-secrets-on-social-identities-deletion.js +76 -0
- package/alterations-js/1.30.0-1750748516-add-enable-token-storage-column-to-connectors-table.js +16 -0
- package/alterations-js/1.30.0-1751255436-split-secret-connector-relatioins-table.js +338 -0
- package/alterations-js/1.30.0-1751337183-add-require-mfa-on-sign-in-to-users.js +16 -0
- package/alterations-js/1.30.0-1751400000-move-require-mfa-on-sign-in-to-logto-config.js +17 -0
- package/alterations-js/1.30.0-1751529530-add-enable-token-storage-column-to-sso-connectors-table.js +16 -0
- package/alterations-js/1.30.0-1752630302-alterate-enable-column-default-value-in-account-centers-table.js +16 -0
- package/alterations-js/1.30.0-1753669579-add-organization-user-relations-foreign-key.js +38 -0
- package/lib/consts/oidc.d.ts +9 -1
- package/lib/consts/oidc.js +5 -0
- package/lib/db-entries/account-center.d.ts +4 -2
- package/lib/db-entries/account-center.js +5 -1
- package/lib/db-entries/connector.d.ts +5 -1
- package/lib/db-entries/connector.js +4 -0
- package/lib/db-entries/custom-profile-field.d.ts +32 -0
- package/lib/db-entries/custom-profile-field.js +58 -0
- package/lib/db-entries/index.d.ts +5 -0
- package/lib/db-entries/index.js +5 -0
- package/lib/db-entries/oidc-session-extension.d.ts +24 -0
- package/lib/db-entries/oidc-session-extension.js +42 -0
- package/lib/db-entries/secret-enterprise-sso-connector-relation.d.ts +28 -0
- package/lib/db-entries/secret-enterprise-sso-connector-relation.js +37 -0
- package/lib/db-entries/secret-social-connector-relation.d.ts +28 -0
- package/lib/db-entries/secret-social-connector-relation.js +37 -0
- package/lib/db-entries/secret.d.ts +44 -0
- package/lib/db-entries/secret.js +62 -0
- package/lib/db-entries/sso-connector.d.ts +5 -1
- package/lib/db-entries/sso-connector.js +4 -0
- package/lib/db-entries/user-sso-identity.d.ts +5 -1
- package/lib/db-entries/user-sso-identity.js +4 -0
- package/lib/db-entries/user.js +2 -2
- package/lib/foundations/jsonb-types/account-centers.d.ts +5 -0
- package/lib/foundations/jsonb-types/account-centers.js +2 -0
- package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +441 -0
- package/lib/foundations/jsonb-types/custom-profile-fields.js +44 -0
- package/lib/foundations/jsonb-types/index.d.ts +2 -1
- package/lib/foundations/jsonb-types/index.js +2 -1
- package/lib/foundations/jsonb-types/secrets.d.ts +11 -0
- package/lib/foundations/jsonb-types/secrets.js +15 -0
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +3 -1
- package/lib/foundations/jsonb-types/sign-in-experience.js +2 -0
- package/lib/foundations/jsonb-types/users.d.ts +126 -0
- package/lib/foundations/jsonb-types/users.js +22 -10
- package/lib/types/connector.d.ts +39 -0
- package/lib/types/connector.js +1 -0
- package/lib/types/consent.d.ts +44 -0
- package/lib/types/custom-profile-fields.d.ts +2587 -0
- package/lib/types/custom-profile-fields.js +159 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.js +4 -0
- package/lib/types/interactions.d.ts +181 -1
- package/lib/types/interactions.js +49 -1
- package/lib/types/log/interaction.d.ts +2 -1
- package/lib/types/logto-config/index.d.ts +1139 -18
- package/lib/types/logto-config/jwt-customizer.d.ts +2529 -32
- package/lib/types/logto-config/jwt-customizer.js +55 -1
- package/lib/types/logto-config/oidc-provider.d.ts +6 -6
- package/lib/types/mfa.d.ts +10 -10
- package/lib/types/secrets.d.ts +436 -0
- package/lib/types/secrets.js +73 -0
- package/lib/types/sign-in-experience.d.ts +21 -3
- package/lib/types/sign-in-experience.js +3 -1
- package/lib/types/sso-connector.d.ts +28 -2
- package/lib/types/sso-connector.js +3 -0
- package/lib/types/tenant.d.ts +1 -0
- package/lib/types/tenant.js +1 -0
- package/lib/types/user-logto-config.d.ts +45 -0
- package/lib/types/user-logto-config.js +18 -0
- package/lib/types/user.d.ts +626 -0
- package/lib/types/user.js +17 -1
- package/lib/types/verification-records/backup-code-verification.d.ts +47 -0
- package/lib/types/verification-records/backup-code-verification.js +12 -0
- package/lib/types/verification-records/code-verification.d.ts +89 -0
- package/lib/types/verification-records/code-verification.js +22 -0
- package/lib/types/verification-records/enterprise-sso-verification.d.ts +213 -0
- package/lib/types/verification-records/enterprise-sso-verification.js +15 -0
- package/lib/types/verification-records/index.d.ts +16 -0
- package/lib/types/verification-records/index.js +16 -0
- package/lib/types/verification-records/new-password-identity-verification.d.ts +85 -0
- package/lib/types/verification-records/new-password-identity-verification.js +20 -0
- package/lib/types/verification-records/one-time-token-verification.d.ts +55 -0
- package/lib/types/verification-records/one-time-token-verification.js +13 -0
- package/lib/types/verification-records/password-verification.d.ts +40 -0
- package/lib/types/verification-records/password-verification.js +9 -0
- package/lib/types/verification-records/social-verification.d.ts +270 -0
- package/lib/types/verification-records/social-verification.js +16 -0
- package/lib/types/verification-records/totp-verification.d.ts +47 -0
- package/lib/types/verification-records/totp-verification.js +12 -0
- package/lib/types/verification-records/web-authn-verification.d.ts +124 -0
- package/lib/types/verification-records/web-authn-verification.js +17 -0
- package/package.json +6 -6
- package/tables/account_centers.sql +2 -1
- package/tables/connectors.sql +4 -0
- package/tables/custom_profile_fields.sql +31 -0
- package/tables/oidc_model_instances.sql +2 -0
- package/tables/oidc_session_extensions.sql +18 -0
- package/tables/organization_user_relations.sql +4 -1
- package/tables/secret_enterprise_sso_connector_relations.sql +60 -0
- package/tables/secret_social_connector_relations.sql +75 -0
- package/tables/secrets.sql +26 -0
- package/tables/sso_connectors.sql +2 -0
- package/tables/user_sso_identities.sql +8 -0
- package/tables/users.sql +3 -2
- /package/lib/{foundations/jsonb-types/verification-records.d.ts → types/verification-records/verification-type.d.ts} +0 -0
- /package/lib/{foundations/jsonb-types/verification-records.js → types/verification-records/verification-type.js} +0 -0
package/lib/types/consent.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
77
77
|
publicKey: string;
|
|
78
78
|
counter: number;
|
|
79
79
|
agent: string;
|
|
80
|
+
name?: string | undefined;
|
|
80
81
|
lastUsedAt?: string | undefined;
|
|
81
82
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
82
83
|
} | {
|
|
@@ -88,6 +89,16 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
88
89
|
usedAt?: string | undefined;
|
|
89
90
|
}[];
|
|
90
91
|
lastUsedAt?: string | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
type: import("../index.js").MfaFactor.EmailVerificationCode;
|
|
94
|
+
id: string;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
lastUsedAt?: string | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
type: import("../index.js").MfaFactor.PhoneVerificationCode;
|
|
99
|
+
id: string;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
lastUsedAt?: string | undefined;
|
|
91
102
|
})[], z.ZodTypeDef, ({
|
|
92
103
|
type: import("../index.js").MfaFactor.TOTP;
|
|
93
104
|
id: string;
|
|
@@ -102,6 +113,7 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
102
113
|
publicKey: string;
|
|
103
114
|
counter: number;
|
|
104
115
|
agent: string;
|
|
116
|
+
name?: string | undefined;
|
|
105
117
|
lastUsedAt?: string | undefined;
|
|
106
118
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
107
119
|
} | {
|
|
@@ -113,6 +125,16 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
113
125
|
usedAt?: string | undefined;
|
|
114
126
|
}[];
|
|
115
127
|
lastUsedAt?: string | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
type: import("../index.js").MfaFactor.EmailVerificationCode;
|
|
130
|
+
id: string;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
lastUsedAt?: string | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
type: import("../index.js").MfaFactor.PhoneVerificationCode;
|
|
135
|
+
id: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
lastUsedAt?: string | undefined;
|
|
116
138
|
})[]>;
|
|
117
139
|
isSuspended: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
118
140
|
lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
@@ -643,6 +665,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
643
665
|
publicKey: string;
|
|
644
666
|
counter: number;
|
|
645
667
|
agent: string;
|
|
668
|
+
name?: string | undefined;
|
|
646
669
|
lastUsedAt?: string | undefined;
|
|
647
670
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
648
671
|
} | {
|
|
@@ -654,6 +677,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
654
677
|
usedAt?: string | undefined;
|
|
655
678
|
}[];
|
|
656
679
|
lastUsedAt?: string | undefined;
|
|
680
|
+
} | {
|
|
681
|
+
type: import("../index.js").MfaFactor.EmailVerificationCode;
|
|
682
|
+
id: string;
|
|
683
|
+
createdAt: string;
|
|
684
|
+
lastUsedAt?: string | undefined;
|
|
685
|
+
} | {
|
|
686
|
+
type: import("../index.js").MfaFactor.PhoneVerificationCode;
|
|
687
|
+
id: string;
|
|
688
|
+
createdAt: string;
|
|
689
|
+
lastUsedAt?: string | undefined;
|
|
657
690
|
})[], z.ZodTypeDef, ({
|
|
658
691
|
type: import("../index.js").MfaFactor.TOTP;
|
|
659
692
|
id: string;
|
|
@@ -668,6 +701,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
668
701
|
publicKey: string;
|
|
669
702
|
counter: number;
|
|
670
703
|
agent: string;
|
|
704
|
+
name?: string | undefined;
|
|
671
705
|
lastUsedAt?: string | undefined;
|
|
672
706
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
673
707
|
} | {
|
|
@@ -679,6 +713,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
679
713
|
usedAt?: string | undefined;
|
|
680
714
|
}[];
|
|
681
715
|
lastUsedAt?: string | undefined;
|
|
716
|
+
} | {
|
|
717
|
+
type: import("../index.js").MfaFactor.EmailVerificationCode;
|
|
718
|
+
id: string;
|
|
719
|
+
createdAt: string;
|
|
720
|
+
lastUsedAt?: string | undefined;
|
|
721
|
+
} | {
|
|
722
|
+
type: import("../index.js").MfaFactor.PhoneVerificationCode;
|
|
723
|
+
id: string;
|
|
724
|
+
createdAt: string;
|
|
725
|
+
lastUsedAt?: string | undefined;
|
|
682
726
|
})[]>;
|
|
683
727
|
isSuspended: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
684
728
|
lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|