@logto/schemas 1.43.0 → 1.45.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.44.0-1788946735-add-saml-authn-request-config.ts +18 -0
- package/alterations/1.44.0-1789000000-extend-user-id-length.ts +61 -0
- package/alterations/1.45.0-1791531333-add-tenant-viewer-role.ts +38 -0
- package/alterations-js/1.44.0-1788946735-add-saml-authn-request-config.js +14 -0
- package/alterations-js/1.44.0-1789000000-extend-user-id-length.js +47 -0
- package/alterations-js/1.45.0-1791531333-add-tenant-viewer-role.js +32 -0
- package/lib/consts/experience.d.ts +3 -0
- package/lib/consts/experience.js +3 -0
- package/lib/consts/index.d.ts +1 -0
- package/lib/consts/index.js +1 -0
- package/lib/consts/license.d.ts +222 -0
- package/lib/consts/license.js +81 -0
- package/lib/consts/license.test.d.ts +1 -0
- package/lib/consts/license.test.js +96 -0
- package/lib/consts/oidc.d.ts +15 -1
- package/lib/consts/oidc.js +11 -0
- package/lib/consts/oidc.test.d.ts +1 -0
- package/lib/consts/oidc.test.js +15 -0
- package/lib/consts/subscriptions.d.ts +13 -1
- package/lib/consts/subscriptions.js +12 -0
- package/lib/db-entries/aggregated-daily-active-user.js +2 -2
- package/lib/db-entries/application-access-control-user-relation.js +2 -2
- package/lib/db-entries/application-user-consent-organization.js +2 -2
- package/lib/db-entries/cimd-grant-organization.js +2 -2
- package/lib/db-entries/daily-active-user.js +2 -2
- package/lib/db-entries/oidc-session-extension.js +2 -2
- package/lib/db-entries/organization-invitation.js +4 -4
- package/lib/db-entries/organization-role-user-relation.js +2 -2
- package/lib/db-entries/organization-user-relation.js +2 -2
- package/lib/db-entries/personal-access-token.js +2 -2
- package/lib/db-entries/saml-application-config.d.ts +4 -2
- package/lib/db-entries/saml-application-config.js +5 -1
- package/lib/db-entries/secret.js +2 -2
- package/lib/db-entries/subject-token.js +2 -2
- package/lib/db-entries/trusted-device.js +2 -2
- package/lib/db-entries/user-geo-location.js +2 -2
- package/lib/db-entries/user-sign-in-country.js +2 -2
- package/lib/db-entries/user-sso-identity.js +2 -2
- package/lib/db-entries/user.js +2 -2
- package/lib/db-entries/users-role.js +2 -2
- package/lib/db-entries/verification-record.js +2 -2
- package/lib/db-entries/verification-status.js +2 -2
- package/lib/foundations/jsonb-types/captcha.d.ts +47 -1
- package/lib/foundations/jsonb-types/captcha.js +20 -0
- package/lib/foundations/jsonb-types/hooks.d.ts +0 -3
- package/lib/foundations/jsonb-types/hooks.js +2 -6
- package/lib/foundations/jsonb-types/saml-application-configs.d.ts +23 -0
- package/lib/foundations/jsonb-types/saml-application-configs.js +16 -0
- package/lib/foundations/jsonb-types/saml-application-configs.test.js +24 -1
- package/lib/types/authentication-context.d.ts +224 -0
- package/lib/types/authentication-context.js +238 -0
- package/lib/types/authentication-context.test.d.ts +1 -0
- package/lib/types/authentication-context.test.js +186 -0
- package/lib/types/cookie.d.ts +4 -0
- package/lib/types/cookie.js +6 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/interactions.d.ts +161 -0
- package/lib/types/interactions.js +23 -0
- package/lib/types/log/interaction.d.ts +15 -2
- package/lib/types/log/interaction.js +5 -0
- package/lib/types/logto-config/index.d.ts +47 -0
- package/lib/types/logto-config/index.js +1 -0
- package/lib/types/logto-config/jwt-customizer.d.ts +92 -0
- package/lib/types/saml-application.d.ts +55 -1
- package/lib/types/saml-application.js +7 -1
- package/lib/types/sign-in-experience.d.ts +11 -7
- package/lib/types/sign-in-experience.js +2 -2
- package/lib/types/ssr.d.ts +2 -0
- package/lib/types/system.d.ts +57 -5
- package/lib/types/system.js +36 -0
- package/lib/types/system.test.d.ts +1 -0
- package/lib/types/system.test.js +26 -0
- package/lib/types/tenant-organization.d.ts +4 -2
- package/lib/types/tenant-organization.js +6 -2
- package/lib/types/tenant-organization.test.d.ts +1 -0
- package/lib/types/tenant-organization.test.js +16 -0
- package/lib/types/user-sessions.d.ts +156 -0
- package/lib/types/verification-records/code-verification.d.ts +17 -0
- package/lib/types/verification-records/code-verification.js +1 -0
- package/lib/utils/management-api.d.ts +5 -0
- package/lib/utils/management-api.js +7 -1
- package/lib/utils/oidc-private-key.test.js +44 -0
- package/package.json +7 -7
- package/tables/aggregated_daily_active_users.sql +1 -1
- package/tables/application_access_control_user_relations.sql +1 -1
- package/tables/application_user_consent_organizations.sql +1 -1
- package/tables/cimd_grant_organizations.sql +1 -1
- package/tables/daily_active_users.sql +1 -1
- package/tables/oidc_session_extensions.sql +1 -1
- package/tables/organization_invitations.sql +2 -2
- package/tables/organization_role_user_relations.sql +1 -1
- package/tables/organization_user_relations.sql +1 -1
- package/tables/personal_access_tokens.sql +1 -1
- package/tables/saml_application_configs.sql +1 -0
- package/tables/secrets.sql +1 -1
- package/tables/subject_tokens.sql +1 -1
- package/tables/trusted_devices.sql +1 -1
- package/tables/user_geo_locations.sql +1 -1
- package/tables/user_sign_in_countries.sql +1 -1
- package/tables/user_sso_identities.sql +1 -1
- package/tables/users.sql +1 -1
- package/tables/users_roles.sql +1 -1
- package/tables/verification_records.sql +1 -1
- package/tables/verification_statuses.sql +1 -1
- package/LICENSE +0 -373
|
@@ -518,6 +518,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
518
518
|
id: z.ZodString;
|
|
519
519
|
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
520
520
|
verified: z.ZodBoolean;
|
|
521
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
521
522
|
} & {
|
|
522
523
|
type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
|
|
523
524
|
identifier: z.ZodObject<{
|
|
@@ -539,6 +540,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
539
540
|
};
|
|
540
541
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
541
542
|
verified: boolean;
|
|
543
|
+
userId?: string | undefined;
|
|
542
544
|
}, {
|
|
543
545
|
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
544
546
|
id: string;
|
|
@@ -548,10 +550,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
548
550
|
};
|
|
549
551
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
550
552
|
verified: boolean;
|
|
553
|
+
userId?: string | undefined;
|
|
551
554
|
}>, z.ZodObject<{
|
|
552
555
|
id: z.ZodString;
|
|
553
556
|
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
554
557
|
verified: z.ZodBoolean;
|
|
558
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
555
559
|
} & {
|
|
556
560
|
type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
|
|
557
561
|
identifier: z.ZodObject<{
|
|
@@ -573,6 +577,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
573
577
|
};
|
|
574
578
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
575
579
|
verified: boolean;
|
|
580
|
+
userId?: string | undefined;
|
|
576
581
|
}, {
|
|
577
582
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
578
583
|
id: string;
|
|
@@ -582,10 +587,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
582
587
|
};
|
|
583
588
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
584
589
|
verified: boolean;
|
|
590
|
+
userId?: string | undefined;
|
|
585
591
|
}>, z.ZodObject<{
|
|
586
592
|
id: z.ZodString;
|
|
587
593
|
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
588
594
|
verified: z.ZodBoolean;
|
|
595
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
589
596
|
} & {
|
|
590
597
|
type: z.ZodLiteral<import("../index.js").VerificationType.MfaEmailVerificationCode>;
|
|
591
598
|
identifier: z.ZodObject<{
|
|
@@ -607,6 +614,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
607
614
|
};
|
|
608
615
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
609
616
|
verified: boolean;
|
|
617
|
+
userId?: string | undefined;
|
|
610
618
|
}, {
|
|
611
619
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
612
620
|
id: string;
|
|
@@ -616,10 +624,12 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
616
624
|
};
|
|
617
625
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
618
626
|
verified: boolean;
|
|
627
|
+
userId?: string | undefined;
|
|
619
628
|
}>, z.ZodObject<{
|
|
620
629
|
id: z.ZodString;
|
|
621
630
|
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
622
631
|
verified: z.ZodBoolean;
|
|
632
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
623
633
|
} & {
|
|
624
634
|
type: z.ZodLiteral<import("../index.js").VerificationType.MfaPhoneVerificationCode>;
|
|
625
635
|
identifier: z.ZodObject<{
|
|
@@ -641,6 +651,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
641
651
|
};
|
|
642
652
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
643
653
|
verified: boolean;
|
|
654
|
+
userId?: string | undefined;
|
|
644
655
|
}, {
|
|
645
656
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
646
657
|
id: string;
|
|
@@ -650,6 +661,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
650
661
|
};
|
|
651
662
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
652
663
|
verified: boolean;
|
|
664
|
+
userId?: string | undefined;
|
|
653
665
|
}>, z.ZodObject<Omit<{
|
|
654
666
|
id: z.ZodString;
|
|
655
667
|
connectorId: z.ZodString;
|
|
@@ -1038,6 +1050,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1038
1050
|
};
|
|
1039
1051
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1040
1052
|
verified: boolean;
|
|
1053
|
+
userId?: string | undefined;
|
|
1041
1054
|
} | {
|
|
1042
1055
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1043
1056
|
id: string;
|
|
@@ -1047,6 +1060,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1047
1060
|
};
|
|
1048
1061
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1049
1062
|
verified: boolean;
|
|
1063
|
+
userId?: string | undefined;
|
|
1050
1064
|
} | {
|
|
1051
1065
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
1052
1066
|
id: string;
|
|
@@ -1056,6 +1070,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1056
1070
|
};
|
|
1057
1071
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1058
1072
|
verified: boolean;
|
|
1073
|
+
userId?: string | undefined;
|
|
1059
1074
|
} | {
|
|
1060
1075
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1061
1076
|
id: string;
|
|
@@ -1065,6 +1080,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1065
1080
|
};
|
|
1066
1081
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1067
1082
|
verified: boolean;
|
|
1083
|
+
userId?: string | undefined;
|
|
1068
1084
|
} | {
|
|
1069
1085
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1070
1086
|
id: string;
|
|
@@ -1153,6 +1169,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1153
1169
|
};
|
|
1154
1170
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1155
1171
|
verified: boolean;
|
|
1172
|
+
userId?: string | undefined;
|
|
1156
1173
|
} | {
|
|
1157
1174
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1158
1175
|
id: string;
|
|
@@ -1162,6 +1179,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1162
1179
|
};
|
|
1163
1180
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1164
1181
|
verified: boolean;
|
|
1182
|
+
userId?: string | undefined;
|
|
1165
1183
|
} | {
|
|
1166
1184
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
1167
1185
|
id: string;
|
|
@@ -1171,6 +1189,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1171
1189
|
};
|
|
1172
1190
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1173
1191
|
verified: boolean;
|
|
1192
|
+
userId?: string | undefined;
|
|
1174
1193
|
} | {
|
|
1175
1194
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1176
1195
|
id: string;
|
|
@@ -1180,6 +1199,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1180
1199
|
};
|
|
1181
1200
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1182
1201
|
verified: boolean;
|
|
1202
|
+
userId?: string | undefined;
|
|
1183
1203
|
} | {
|
|
1184
1204
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1185
1205
|
id: string;
|
|
@@ -1619,6 +1639,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1619
1639
|
};
|
|
1620
1640
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1621
1641
|
verified: boolean;
|
|
1642
|
+
userId?: string | undefined;
|
|
1622
1643
|
} | {
|
|
1623
1644
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1624
1645
|
id: string;
|
|
@@ -1628,6 +1649,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1628
1649
|
};
|
|
1629
1650
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1630
1651
|
verified: boolean;
|
|
1652
|
+
userId?: string | undefined;
|
|
1631
1653
|
} | {
|
|
1632
1654
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
1633
1655
|
id: string;
|
|
@@ -1637,6 +1659,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1637
1659
|
};
|
|
1638
1660
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1639
1661
|
verified: boolean;
|
|
1662
|
+
userId?: string | undefined;
|
|
1640
1663
|
} | {
|
|
1641
1664
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1642
1665
|
id: string;
|
|
@@ -1646,6 +1669,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1646
1669
|
};
|
|
1647
1670
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1648
1671
|
verified: boolean;
|
|
1672
|
+
userId?: string | undefined;
|
|
1649
1673
|
} | {
|
|
1650
1674
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1651
1675
|
id: string;
|
|
@@ -1869,6 +1893,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1869
1893
|
};
|
|
1870
1894
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1871
1895
|
verified: boolean;
|
|
1896
|
+
userId?: string | undefined;
|
|
1872
1897
|
} | {
|
|
1873
1898
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1874
1899
|
id: string;
|
|
@@ -1878,6 +1903,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1878
1903
|
};
|
|
1879
1904
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1880
1905
|
verified: boolean;
|
|
1906
|
+
userId?: string | undefined;
|
|
1881
1907
|
} | {
|
|
1882
1908
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
1883
1909
|
id: string;
|
|
@@ -1887,6 +1913,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1887
1913
|
};
|
|
1888
1914
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1889
1915
|
verified: boolean;
|
|
1916
|
+
userId?: string | undefined;
|
|
1890
1917
|
} | {
|
|
1891
1918
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1892
1919
|
id: string;
|
|
@@ -1896,6 +1923,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
1896
1923
|
};
|
|
1897
1924
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
1898
1925
|
verified: boolean;
|
|
1926
|
+
userId?: string | undefined;
|
|
1899
1927
|
} | {
|
|
1900
1928
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1901
1929
|
id: string;
|
|
@@ -2123,6 +2151,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2123
2151
|
};
|
|
2124
2152
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2125
2153
|
verified: boolean;
|
|
2154
|
+
userId?: string | undefined;
|
|
2126
2155
|
} | {
|
|
2127
2156
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2128
2157
|
id: string;
|
|
@@ -2132,6 +2161,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2132
2161
|
};
|
|
2133
2162
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2134
2163
|
verified: boolean;
|
|
2164
|
+
userId?: string | undefined;
|
|
2135
2165
|
} | {
|
|
2136
2166
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
2137
2167
|
id: string;
|
|
@@ -2141,6 +2171,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2141
2171
|
};
|
|
2142
2172
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2143
2173
|
verified: boolean;
|
|
2174
|
+
userId?: string | undefined;
|
|
2144
2175
|
} | {
|
|
2145
2176
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2146
2177
|
id: string;
|
|
@@ -2150,6 +2181,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2150
2181
|
};
|
|
2151
2182
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2152
2183
|
verified: boolean;
|
|
2184
|
+
userId?: string | undefined;
|
|
2153
2185
|
} | {
|
|
2154
2186
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2155
2187
|
id: string;
|
|
@@ -2391,6 +2423,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2391
2423
|
};
|
|
2392
2424
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2393
2425
|
verified: boolean;
|
|
2426
|
+
userId?: string | undefined;
|
|
2394
2427
|
} | {
|
|
2395
2428
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2396
2429
|
id: string;
|
|
@@ -2400,6 +2433,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2400
2433
|
};
|
|
2401
2434
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2402
2435
|
verified: boolean;
|
|
2436
|
+
userId?: string | undefined;
|
|
2403
2437
|
} | {
|
|
2404
2438
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
2405
2439
|
id: string;
|
|
@@ -2409,6 +2443,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2409
2443
|
};
|
|
2410
2444
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2411
2445
|
verified: boolean;
|
|
2446
|
+
userId?: string | undefined;
|
|
2412
2447
|
} | {
|
|
2413
2448
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2414
2449
|
id: string;
|
|
@@ -2418,6 +2453,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2418
2453
|
};
|
|
2419
2454
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2420
2455
|
verified: boolean;
|
|
2456
|
+
userId?: string | undefined;
|
|
2421
2457
|
} | {
|
|
2422
2458
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2423
2459
|
id: string;
|
|
@@ -2661,6 +2697,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2661
2697
|
};
|
|
2662
2698
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2663
2699
|
verified: boolean;
|
|
2700
|
+
userId?: string | undefined;
|
|
2664
2701
|
} | {
|
|
2665
2702
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2666
2703
|
id: string;
|
|
@@ -2670,6 +2707,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2670
2707
|
};
|
|
2671
2708
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2672
2709
|
verified: boolean;
|
|
2710
|
+
userId?: string | undefined;
|
|
2673
2711
|
} | {
|
|
2674
2712
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
2675
2713
|
id: string;
|
|
@@ -2679,6 +2717,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2679
2717
|
};
|
|
2680
2718
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2681
2719
|
verified: boolean;
|
|
2720
|
+
userId?: string | undefined;
|
|
2682
2721
|
} | {
|
|
2683
2722
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2684
2723
|
id: string;
|
|
@@ -2688,6 +2727,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2688
2727
|
};
|
|
2689
2728
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2690
2729
|
verified: boolean;
|
|
2730
|
+
userId?: string | undefined;
|
|
2691
2731
|
} | {
|
|
2692
2732
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2693
2733
|
id: string;
|
|
@@ -2932,6 +2972,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2932
2972
|
};
|
|
2933
2973
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2934
2974
|
verified: boolean;
|
|
2975
|
+
userId?: string | undefined;
|
|
2935
2976
|
} | {
|
|
2936
2977
|
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2937
2978
|
id: string;
|
|
@@ -2941,6 +2982,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2941
2982
|
};
|
|
2942
2983
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2943
2984
|
verified: boolean;
|
|
2985
|
+
userId?: string | undefined;
|
|
2944
2986
|
} | {
|
|
2945
2987
|
type: import("../index.js").VerificationType.MfaEmailVerificationCode;
|
|
2946
2988
|
id: string;
|
|
@@ -2950,6 +2992,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2950
2992
|
};
|
|
2951
2993
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2952
2994
|
verified: boolean;
|
|
2995
|
+
userId?: string | undefined;
|
|
2953
2996
|
} | {
|
|
2954
2997
|
type: import("../index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2955
2998
|
id: string;
|
|
@@ -2959,6 +3002,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
|
|
|
2959
3002
|
};
|
|
2960
3003
|
templateType: import("@logto/connector-kit").TemplateType;
|
|
2961
3004
|
verified: boolean;
|
|
3005
|
+
userId?: string | undefined;
|
|
2962
3006
|
} | {
|
|
2963
3007
|
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2964
3008
|
id: string;
|
|
@@ -3770,10 +3814,13 @@ export type SigningKeyRotationState = z.infer<typeof signingKeyRotationStateGuar
|
|
|
3770
3814
|
*/
|
|
3771
3815
|
export declare const cimdConfigGuard: z.ZodObject<{
|
|
3772
3816
|
enabled: z.ZodBoolean;
|
|
3817
|
+
addConsentPromptForOfflineAccess: z.ZodOptional<z.ZodBoolean>;
|
|
3773
3818
|
}, "strip", z.ZodTypeAny, {
|
|
3774
3819
|
enabled: boolean;
|
|
3820
|
+
addConsentPromptForOfflineAccess?: boolean | undefined;
|
|
3775
3821
|
}, {
|
|
3776
3822
|
enabled: boolean;
|
|
3823
|
+
addConsentPromptForOfflineAccess?: boolean | undefined;
|
|
3777
3824
|
}>;
|
|
3778
3825
|
export type CimdConfig = z.infer<typeof cimdConfigGuard>;
|
|
3779
3826
|
/** Applied when the `cimd` row is absent: the feature is opt-in per tenant. */
|
|
@@ -123,6 +123,7 @@ export const signingKeyRotationStateGuard = z.object({
|
|
|
123
123
|
*/
|
|
124
124
|
export const cimdConfigGuard = z.object({
|
|
125
125
|
enabled: z.boolean(),
|
|
126
|
+
addConsentPromptForOfflineAccess: z.boolean().optional(),
|
|
126
127
|
});
|
|
127
128
|
/** Applied when the `cimd` row is absent: the feature is opt-in per tenant. */
|
|
128
129
|
export const defaultCimdConfig = Object.freeze({ enabled: false });
|