@logto/schemas 1.41.0 → 1.43.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.42.0-1783916980-add-domain-verification-files.ts +20 -0
- package/alterations/1.42.0-1784619793-add-service-logs-created-at-index.ts +33 -0
- package/alterations/1.42.0-1784620000-add-saml-sso-connector-signing-keys-table.ts +38 -0
- package/alterations/1.43.0-1785393731-add-oidc-model-instances-account-id-partial-index.ts +33 -0
- package/alterations/1.43.0-1785481546-add-tenant-aware-scope-indexes.ts +33 -0
- package/alterations/1.43.0-1785488115-add-cimd-permission-ceiling-tables.ts +77 -0
- package/alterations/1.43.0-1785722831-add-oidc-session-extensions-account-id-index.ts +27 -0
- package/alterations/1.43.0-1785835991-add-cimd-client-identifier-columns.ts +31 -0
- package/alterations/1.43.0-1786325989-add-cimd-grant-organizations-table.ts +54 -0
- package/alterations/1.43.0-1786333495-add-trusted-devices.ts +57 -0
- package/alterations/1.43.0-1786373004-tighten-cimd-grant-organizations-pkey.ts +28 -0
- package/alterations/1.43.0-1786414712-add-service-logs-email-indexes.ts +34 -0
- package/alterations/1.43.0-1786431364-add-cimd-grant-client-snapshots-table.ts +43 -0
- package/alterations/utils/1704934999-tables.ts +22 -1
- package/alterations-js/1.42.0-1783916980-add-domain-verification-files.js +16 -0
- package/alterations-js/1.42.0-1784619793-add-service-logs-created-at-index.js +29 -0
- package/alterations-js/1.42.0-1784620000-add-saml-sso-connector-signing-keys-table.js +33 -0
- package/alterations-js/1.43.0-1785393731-add-oidc-model-instances-account-id-partial-index.js +28 -0
- package/alterations-js/1.43.0-1785481546-add-tenant-aware-scope-indexes.js +28 -0
- package/alterations-js/1.43.0-1785488115-add-cimd-permission-ceiling-tables.js +69 -0
- package/alterations-js/1.43.0-1785722831-add-oidc-session-extensions-account-id-index.js +23 -0
- package/alterations-js/1.43.0-1785835991-add-cimd-client-identifier-columns.js +27 -0
- package/alterations-js/1.43.0-1786325989-add-cimd-grant-organizations-table.js +49 -0
- package/alterations-js/1.43.0-1786333495-add-trusted-devices.js +50 -0
- package/alterations-js/1.43.0-1786373004-tighten-cimd-grant-organizations-pkey.js +24 -0
- package/alterations-js/1.43.0-1786414712-add-service-logs-email-indexes.js +30 -0
- package/alterations-js/1.43.0-1786431364-add-cimd-grant-client-snapshots-table.js +38 -0
- package/alterations-js/utils/1704934999-tables.js +19 -1
- package/lib/consts/experience.d.ts +1 -0
- package/lib/consts/experience.js +1 -0
- package/lib/consts/index.d.ts +1 -0
- package/lib/consts/index.js +1 -0
- package/lib/consts/product-event.d.ts +5 -1
- package/lib/consts/product-event.js +4 -0
- package/lib/consts/social-state.d.ts +12 -0
- package/lib/consts/social-state.js +12 -0
- package/lib/db-entries/cimd-grant-client-snapshot.d.ts +32 -0
- package/lib/db-entries/cimd-grant-client-snapshot.js +45 -0
- package/lib/db-entries/cimd-grant-organization.d.ts +30 -0
- package/lib/db-entries/cimd-grant-organization.js +37 -0
- package/lib/db-entries/cimd-organization-resource-scope.d.ts +20 -0
- package/lib/db-entries/cimd-organization-resource-scope.js +25 -0
- package/lib/db-entries/cimd-organization-scope.d.ts +20 -0
- package/lib/db-entries/cimd-organization-scope.js +25 -0
- package/lib/db-entries/cimd-resource-scope.d.ts +20 -0
- package/lib/db-entries/cimd-resource-scope.js +25 -0
- package/lib/db-entries/cimd-user-scope.d.ts +20 -0
- package/lib/db-entries/cimd-user-scope.js +25 -0
- package/lib/db-entries/domain.d.ts +4 -2
- package/lib/db-entries/domain.js +5 -1
- package/lib/db-entries/index.d.ts +8 -0
- package/lib/db-entries/index.js +8 -0
- package/lib/db-entries/oidc-session-extension.d.ts +3 -1
- package/lib/db-entries/oidc-session-extension.js +4 -0
- package/lib/db-entries/organization.d.ts +5 -1
- package/lib/db-entries/organization.js +4 -0
- package/lib/db-entries/saml-sso-connector-signing-key.d.ts +32 -0
- package/lib/db-entries/saml-sso-connector-signing-key.js +49 -0
- package/lib/db-entries/sign-in-experience.d.ts +4 -2
- package/lib/db-entries/sign-in-experience.js +5 -1
- package/lib/db-entries/trusted-device.d.ts +36 -0
- package/lib/db-entries/trusted-device.js +62 -0
- package/lib/db-entries/user.d.ts +3 -1
- package/lib/db-entries/user.js +4 -0
- package/lib/foundations/jsonb-types/account-centers.d.ts +3 -0
- package/lib/foundations/jsonb-types/account-centers.js +1 -0
- package/lib/foundations/jsonb-types/account-centers.test.d.ts +1 -0
- package/lib/foundations/jsonb-types/account-centers.test.js +13 -0
- package/lib/foundations/jsonb-types/custom-domain.d.ts +57 -0
- package/lib/foundations/jsonb-types/custom-domain.js +51 -0
- package/lib/foundations/jsonb-types/custom-domain.test.d.ts +1 -0
- package/lib/foundations/jsonb-types/custom-domain.test.js +38 -0
- package/lib/foundations/jsonb-types/hooks.d.ts +9 -5
- package/lib/foundations/jsonb-types/hooks.js +8 -0
- package/lib/foundations/jsonb-types/logs.d.ts +18 -0
- package/lib/foundations/jsonb-types/logs.js +6 -0
- package/lib/foundations/jsonb-types/one-time-tokens.d.ts +5 -0
- package/lib/foundations/jsonb-types/one-time-tokens.js +2 -0
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +39 -4
- package/lib/foundations/jsonb-types/sign-in-experience.js +10 -0
- package/lib/foundations/jsonb-types/sign-in-experience.test.js +17 -1
- package/lib/types/application.d.ts +131 -1
- package/lib/types/application.js +8 -0
- package/lib/types/connector.d.ts +8 -0
- package/lib/types/consent.d.ts +16 -190
- package/lib/types/consent.js +10 -1
- package/lib/types/custom-profile-fields.d.ts +2 -1
- package/lib/types/domain.d.ts +9 -0
- package/lib/types/hook.d.ts +37 -5
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/interaction-event.d.ts +11 -0
- package/lib/types/interaction-event.js +12 -0
- package/lib/types/interactions.d.ts +2 -11
- package/lib/types/interactions.js +2 -11
- package/lib/types/log/action.d.ts +7 -0
- package/lib/types/log/action.js +6 -0
- package/lib/types/log/index.d.ts +8 -2
- package/lib/types/log/index.js +2 -0
- package/lib/types/log/trusted-device.d.ts +7 -0
- package/lib/types/log/trusted-device.js +6 -0
- package/lib/types/logto-config/action.d.ts +963 -0
- package/lib/types/logto-config/action.js +77 -0
- package/lib/types/logto-config/index.d.ts +68 -26
- package/lib/types/logto-config/index.js +20 -7
- package/lib/types/logto-config/index.test.js +32 -9
- package/lib/types/logto-config/jwt-customizer.d.ts +60 -10
- package/lib/types/logto-config/jwt-customizer.js +1 -1
- package/lib/types/logto-config/oidc-provider.d.ts +2 -2
- package/lib/types/organization.d.ts +136 -1
- package/lib/types/organization.js +3 -2
- package/lib/types/service-log.d.ts +14 -1
- package/lib/types/service-log.js +13 -0
- package/lib/types/sign-in-experience.d.ts +18 -10
- package/lib/types/sign-in-experience.js +2 -1
- package/lib/types/sso-connector.d.ts +58 -0
- package/lib/types/sso-connector.js +12 -0
- package/lib/types/system.d.ts +2 -2
- package/lib/types/trusted-device.d.ts +67 -0
- package/lib/types/trusted-device.js +16 -0
- package/lib/types/user-sessions.d.ts +117 -238
- package/lib/types/user-sessions.js +9 -4
- package/lib/types/user.d.ts +10 -3
- package/lib/types/user.js +1 -0
- package/lib/types/verification-records/one-time-token-verification.d.ts +5 -0
- package/lib/utils/cimd.d.ts +14 -0
- package/lib/utils/cimd.js +14 -0
- package/lib/utils/cimd.test.d.ts +1 -0
- package/lib/utils/cimd.test.js +9 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/package.json +7 -7
- package/tables/cimd_grant_client_snapshots.sql +27 -0
- package/tables/cimd_grant_organizations.sql +38 -0
- package/tables/cimd_organization_resource_scopes.sql +16 -0
- package/tables/cimd_organization_scopes.sql +15 -0
- package/tables/cimd_resource_scopes.sql +15 -0
- package/tables/cimd_user_scopes.sql +13 -0
- package/tables/domains.sql +1 -0
- package/tables/oidc_model_instances.sql +5 -0
- package/tables/oidc_session_extensions.sql +5 -0
- package/tables/organization_scopes.sql +4 -0
- package/tables/organizations.sql +2 -0
- package/tables/saml_sso_connector_signing_keys.sql +21 -0
- package/tables/scopes.sql +4 -0
- package/tables/service_logs.sql +19 -0
- package/tables/sign_in_experiences.sql +1 -0
- package/tables/trusted_devices.sql +25 -0
- package/tables/users.sql +1 -0
- package/lib/types/logto-config/inline-hook.d.ts +0 -76
- package/lib/types/logto-config/inline-hook.js +0 -25
|
@@ -92,6 +92,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
92
92
|
}>;
|
|
93
93
|
}>>;
|
|
94
94
|
applicationId: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
95
|
+
cimdClientId: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
95
96
|
identities: ZodType<Record<string, {
|
|
96
97
|
userId: string;
|
|
97
98
|
details?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
@@ -164,7 +165,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
164
165
|
passwordUpdatedAt: ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
165
166
|
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
166
167
|
updatedAt: ZodType<number, z.ZodTypeDef, number>;
|
|
167
|
-
}, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
|
|
168
|
+
}, "name" | "id" | "applicationId" | "cimdClientId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "lastSignInAt" | "primaryEmail" | "primaryPhone" | "isSuspended"> & {
|
|
168
169
|
hasPassword: z.ZodBoolean;
|
|
169
170
|
ssoIdentities: z.ZodArray<z.ZodObject<Pick<{
|
|
170
171
|
tenantId: ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -246,6 +247,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
246
247
|
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
247
248
|
customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
248
249
|
isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
250
|
+
isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
249
251
|
color: ZodType<Partial<{
|
|
250
252
|
primaryColor: string;
|
|
251
253
|
isDarkModeEnabled: boolean;
|
|
@@ -294,6 +296,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
294
296
|
name: string | null;
|
|
295
297
|
id: string;
|
|
296
298
|
applicationId: string | null;
|
|
299
|
+
cimdClientId: string | null;
|
|
297
300
|
username: string | null;
|
|
298
301
|
createdAt: number;
|
|
299
302
|
profile: import("../../foundations/index.js").UserProfile;
|
|
@@ -338,6 +341,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
338
341
|
name: string | null;
|
|
339
342
|
id: string;
|
|
340
343
|
applicationId: string | null;
|
|
344
|
+
cimdClientId: string | null;
|
|
341
345
|
username: string | null;
|
|
342
346
|
createdAt: number;
|
|
343
347
|
profile: import("../../foundations/index.js").UserProfile;
|
|
@@ -867,10 +871,13 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
|
867
871
|
}>;
|
|
868
872
|
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
869
873
|
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
874
|
+
interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
|
|
870
875
|
}, "strip", z.ZodTypeAny, {
|
|
871
876
|
jitOrganizationIds?: string[] | undefined;
|
|
877
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
872
878
|
}, {
|
|
873
879
|
jitOrganizationIds?: string[] | undefined;
|
|
880
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
874
881
|
}>>;
|
|
875
882
|
}, "strip", z.ZodTypeAny, {
|
|
876
883
|
type: VerificationType.OneTimeToken;
|
|
@@ -882,6 +889,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
|
882
889
|
verified: boolean;
|
|
883
890
|
oneTimeTokenContext?: {
|
|
884
891
|
jitOrganizationIds?: string[] | undefined;
|
|
892
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
885
893
|
} | undefined;
|
|
886
894
|
}, {
|
|
887
895
|
type: VerificationType.OneTimeToken;
|
|
@@ -893,6 +901,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
|
893
901
|
verified: boolean;
|
|
894
902
|
oneTimeTokenContext?: {
|
|
895
903
|
jitOrganizationIds?: string[] | undefined;
|
|
904
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
896
905
|
} | undefined;
|
|
897
906
|
}>, z.ZodObject<Omit<{
|
|
898
907
|
id: z.ZodString;
|
|
@@ -986,6 +995,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
|
986
995
|
verified: boolean;
|
|
987
996
|
oneTimeTokenContext?: {
|
|
988
997
|
jitOrganizationIds?: string[] | undefined;
|
|
998
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
989
999
|
} | undefined;
|
|
990
1000
|
} | {
|
|
991
1001
|
type: VerificationType.Password;
|
|
@@ -1100,6 +1110,7 @@ export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
|
1100
1110
|
verified: boolean;
|
|
1101
1111
|
oneTimeTokenContext?: {
|
|
1102
1112
|
jitOrganizationIds?: string[] | undefined;
|
|
1113
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
1103
1114
|
} | undefined;
|
|
1104
1115
|
} | {
|
|
1105
1116
|
type: VerificationType.Password;
|
|
@@ -1291,6 +1302,7 @@ export declare const jwtCustomizerOrganizationContextGuard: z.ZodObject<Pick<{
|
|
|
1291
1302
|
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
1292
1303
|
customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
1293
1304
|
isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
1305
|
+
isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
1294
1306
|
color: ZodType<Partial<{
|
|
1295
1307
|
primaryColor: string;
|
|
1296
1308
|
isDarkModeEnabled: boolean;
|
|
@@ -1349,8 +1361,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1349
1361
|
kind?: "AccessToken" | undefined;
|
|
1350
1362
|
accountId?: string | undefined;
|
|
1351
1363
|
scope?: string | undefined;
|
|
1352
|
-
sessionUid?: string | undefined;
|
|
1353
1364
|
clientId?: string | undefined;
|
|
1365
|
+
sessionUid?: string | undefined;
|
|
1354
1366
|
expiresWithSession?: boolean | undefined;
|
|
1355
1367
|
gty?: string | undefined;
|
|
1356
1368
|
aud?: string | string[] | undefined;
|
|
@@ -1361,8 +1373,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1361
1373
|
kind?: "AccessToken" | undefined;
|
|
1362
1374
|
accountId?: string | undefined;
|
|
1363
1375
|
scope?: string | undefined;
|
|
1364
|
-
sessionUid?: string | undefined;
|
|
1365
1376
|
clientId?: string | undefined;
|
|
1377
|
+
sessionUid?: string | undefined;
|
|
1366
1378
|
expiresWithSession?: boolean | undefined;
|
|
1367
1379
|
gty?: string | undefined;
|
|
1368
1380
|
aud?: string | string[] | undefined;
|
|
@@ -1372,6 +1384,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1372
1384
|
name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
1373
1385
|
id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
|
|
1374
1386
|
applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
1387
|
+
cimdClientId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
1375
1388
|
username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
1376
1389
|
createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
|
|
1377
1390
|
profile: z.ZodOptional<ZodType<Partial<{
|
|
@@ -1510,6 +1523,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1510
1523
|
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
1511
1524
|
customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
1512
1525
|
isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
1526
|
+
isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
1513
1527
|
color: ZodType<Partial<{
|
|
1514
1528
|
primaryColor: string;
|
|
1515
1529
|
isDarkModeEnabled: boolean;
|
|
@@ -1558,6 +1572,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1558
1572
|
name?: string | null | undefined;
|
|
1559
1573
|
id?: string | undefined;
|
|
1560
1574
|
applicationId?: string | null | undefined;
|
|
1575
|
+
cimdClientId?: string | null | undefined;
|
|
1561
1576
|
username?: string | null | undefined;
|
|
1562
1577
|
createdAt?: number | undefined;
|
|
1563
1578
|
profile?: Partial<{
|
|
@@ -1625,6 +1640,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1625
1640
|
name?: string | null | undefined;
|
|
1626
1641
|
id?: string | undefined;
|
|
1627
1642
|
applicationId?: string | null | undefined;
|
|
1643
|
+
cimdClientId?: string | null | undefined;
|
|
1628
1644
|
username?: string | null | undefined;
|
|
1629
1645
|
createdAt?: number | undefined;
|
|
1630
1646
|
profile?: Partial<{
|
|
@@ -2176,10 +2192,13 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2176
2192
|
}>;
|
|
2177
2193
|
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
2178
2194
|
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2195
|
+
interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
|
|
2179
2196
|
}, "strip", z.ZodTypeAny, {
|
|
2180
2197
|
jitOrganizationIds?: string[] | undefined;
|
|
2198
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2181
2199
|
}, {
|
|
2182
2200
|
jitOrganizationIds?: string[] | undefined;
|
|
2201
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2183
2202
|
}>>;
|
|
2184
2203
|
}, "strip", z.ZodTypeAny, {
|
|
2185
2204
|
type: VerificationType.OneTimeToken;
|
|
@@ -2191,6 +2210,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2191
2210
|
verified: boolean;
|
|
2192
2211
|
oneTimeTokenContext?: {
|
|
2193
2212
|
jitOrganizationIds?: string[] | undefined;
|
|
2213
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2194
2214
|
} | undefined;
|
|
2195
2215
|
}, {
|
|
2196
2216
|
type: VerificationType.OneTimeToken;
|
|
@@ -2202,6 +2222,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2202
2222
|
verified: boolean;
|
|
2203
2223
|
oneTimeTokenContext?: {
|
|
2204
2224
|
jitOrganizationIds?: string[] | undefined;
|
|
2225
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2205
2226
|
} | undefined;
|
|
2206
2227
|
}>, z.ZodObject<Omit<{
|
|
2207
2228
|
id: z.ZodString;
|
|
@@ -2295,6 +2316,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2295
2316
|
verified: boolean;
|
|
2296
2317
|
oneTimeTokenContext?: {
|
|
2297
2318
|
jitOrganizationIds?: string[] | undefined;
|
|
2319
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2298
2320
|
} | undefined;
|
|
2299
2321
|
} | {
|
|
2300
2322
|
type: VerificationType.Password;
|
|
@@ -2409,6 +2431,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2409
2431
|
verified: boolean;
|
|
2410
2432
|
oneTimeTokenContext?: {
|
|
2411
2433
|
jitOrganizationIds?: string[] | undefined;
|
|
2434
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2412
2435
|
} | undefined;
|
|
2413
2436
|
} | {
|
|
2414
2437
|
type: VerificationType.Password;
|
|
@@ -2684,6 +2707,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2684
2707
|
name?: string | null | undefined;
|
|
2685
2708
|
id?: string | undefined;
|
|
2686
2709
|
applicationId?: string | null | undefined;
|
|
2710
|
+
cimdClientId?: string | null | undefined;
|
|
2687
2711
|
username?: string | null | undefined;
|
|
2688
2712
|
createdAt?: number | undefined;
|
|
2689
2713
|
profile?: Partial<{
|
|
@@ -2873,6 +2897,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2873
2897
|
verified: boolean;
|
|
2874
2898
|
oneTimeTokenContext?: {
|
|
2875
2899
|
jitOrganizationIds?: string[] | undefined;
|
|
2900
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2876
2901
|
} | undefined;
|
|
2877
2902
|
} | {
|
|
2878
2903
|
type: VerificationType.Password;
|
|
@@ -2932,6 +2957,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
2932
2957
|
name?: string | null | undefined;
|
|
2933
2958
|
id?: string | undefined;
|
|
2934
2959
|
applicationId?: string | null | undefined;
|
|
2960
|
+
cimdClientId?: string | null | undefined;
|
|
2935
2961
|
username?: string | null | undefined;
|
|
2936
2962
|
createdAt?: number | undefined;
|
|
2937
2963
|
profile?: Partial<{
|
|
@@ -3121,6 +3147,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3121
3147
|
verified: boolean;
|
|
3122
3148
|
oneTimeTokenContext?: {
|
|
3123
3149
|
jitOrganizationIds?: string[] | undefined;
|
|
3150
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3124
3151
|
} | undefined;
|
|
3125
3152
|
} | {
|
|
3126
3153
|
type: VerificationType.Password;
|
|
@@ -3184,6 +3211,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3184
3211
|
name?: string | null | undefined;
|
|
3185
3212
|
id?: string | undefined;
|
|
3186
3213
|
applicationId?: string | null | undefined;
|
|
3214
|
+
cimdClientId?: string | null | undefined;
|
|
3187
3215
|
username?: string | null | undefined;
|
|
3188
3216
|
createdAt?: number | undefined;
|
|
3189
3217
|
profile?: Partial<{
|
|
@@ -3373,6 +3401,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3373
3401
|
verified: boolean;
|
|
3374
3402
|
oneTimeTokenContext?: {
|
|
3375
3403
|
jitOrganizationIds?: string[] | undefined;
|
|
3404
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3376
3405
|
} | undefined;
|
|
3377
3406
|
} | {
|
|
3378
3407
|
type: VerificationType.Password;
|
|
@@ -3436,8 +3465,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3436
3465
|
kind?: "AccessToken" | undefined;
|
|
3437
3466
|
accountId?: string | undefined;
|
|
3438
3467
|
scope?: string | undefined;
|
|
3439
|
-
sessionUid?: string | undefined;
|
|
3440
3468
|
clientId?: string | undefined;
|
|
3469
|
+
sessionUid?: string | undefined;
|
|
3441
3470
|
expiresWithSession?: boolean | undefined;
|
|
3442
3471
|
gty?: string | undefined;
|
|
3443
3472
|
aud?: string | string[] | undefined;
|
|
@@ -3450,6 +3479,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3450
3479
|
name?: string | null | undefined;
|
|
3451
3480
|
id?: string | undefined;
|
|
3452
3481
|
applicationId?: string | null | undefined;
|
|
3482
|
+
cimdClientId?: string | null | undefined;
|
|
3453
3483
|
username?: string | null | undefined;
|
|
3454
3484
|
createdAt?: number | undefined;
|
|
3455
3485
|
profile?: Partial<{
|
|
@@ -3639,6 +3669,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3639
3669
|
verified: boolean;
|
|
3640
3670
|
oneTimeTokenContext?: {
|
|
3641
3671
|
jitOrganizationIds?: string[] | undefined;
|
|
3672
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3642
3673
|
} | undefined;
|
|
3643
3674
|
} | {
|
|
3644
3675
|
type: VerificationType.Password;
|
|
@@ -3702,8 +3733,8 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
3702
3733
|
kind?: "AccessToken" | undefined;
|
|
3703
3734
|
accountId?: string | undefined;
|
|
3704
3735
|
scope?: string | undefined;
|
|
3705
|
-
sessionUid?: string | undefined;
|
|
3706
3736
|
clientId?: string | undefined;
|
|
3737
|
+
sessionUid?: string | undefined;
|
|
3707
3738
|
expiresWithSession?: boolean | undefined;
|
|
3708
3739
|
gty?: string | undefined;
|
|
3709
3740
|
aud?: string | string[] | undefined;
|
|
@@ -4209,8 +4240,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4209
4240
|
kind?: "AccessToken" | undefined;
|
|
4210
4241
|
accountId?: string | undefined;
|
|
4211
4242
|
scope?: string | undefined;
|
|
4212
|
-
sessionUid?: string | undefined;
|
|
4213
4243
|
clientId?: string | undefined;
|
|
4244
|
+
sessionUid?: string | undefined;
|
|
4214
4245
|
expiresWithSession?: boolean | undefined;
|
|
4215
4246
|
gty?: string | undefined;
|
|
4216
4247
|
aud?: string | string[] | undefined;
|
|
@@ -4221,8 +4252,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4221
4252
|
kind?: "AccessToken" | undefined;
|
|
4222
4253
|
accountId?: string | undefined;
|
|
4223
4254
|
scope?: string | undefined;
|
|
4224
|
-
sessionUid?: string | undefined;
|
|
4225
4255
|
clientId?: string | undefined;
|
|
4256
|
+
sessionUid?: string | undefined;
|
|
4226
4257
|
expiresWithSession?: boolean | undefined;
|
|
4227
4258
|
gty?: string | undefined;
|
|
4228
4259
|
aud?: string | string[] | undefined;
|
|
@@ -4232,6 +4263,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4232
4263
|
name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
4233
4264
|
id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
|
|
4234
4265
|
applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
4266
|
+
cimdClientId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
4235
4267
|
username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
4236
4268
|
createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
|
|
4237
4269
|
profile: z.ZodOptional<ZodType<Partial<{
|
|
@@ -4370,6 +4402,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4370
4402
|
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
4371
4403
|
customData: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
4372
4404
|
isMfaRequired: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
4405
|
+
isTrustedDeviceAllowed: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
4373
4406
|
color: ZodType<Partial<{
|
|
4374
4407
|
primaryColor: string;
|
|
4375
4408
|
isDarkModeEnabled: boolean;
|
|
@@ -4418,6 +4451,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4418
4451
|
name?: string | null | undefined;
|
|
4419
4452
|
id?: string | undefined;
|
|
4420
4453
|
applicationId?: string | null | undefined;
|
|
4454
|
+
cimdClientId?: string | null | undefined;
|
|
4421
4455
|
username?: string | null | undefined;
|
|
4422
4456
|
createdAt?: number | undefined;
|
|
4423
4457
|
profile?: Partial<{
|
|
@@ -4485,6 +4519,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
4485
4519
|
name?: string | null | undefined;
|
|
4486
4520
|
id?: string | undefined;
|
|
4487
4521
|
applicationId?: string | null | undefined;
|
|
4522
|
+
cimdClientId?: string | null | undefined;
|
|
4488
4523
|
username?: string | null | undefined;
|
|
4489
4524
|
createdAt?: number | undefined;
|
|
4490
4525
|
profile?: Partial<{
|
|
@@ -5036,10 +5071,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5036
5071
|
}>;
|
|
5037
5072
|
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
5038
5073
|
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5074
|
+
interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
|
|
5039
5075
|
}, "strip", z.ZodTypeAny, {
|
|
5040
5076
|
jitOrganizationIds?: string[] | undefined;
|
|
5077
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5041
5078
|
}, {
|
|
5042
5079
|
jitOrganizationIds?: string[] | undefined;
|
|
5080
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5043
5081
|
}>>;
|
|
5044
5082
|
}, "strip", z.ZodTypeAny, {
|
|
5045
5083
|
type: VerificationType.OneTimeToken;
|
|
@@ -5051,6 +5089,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5051
5089
|
verified: boolean;
|
|
5052
5090
|
oneTimeTokenContext?: {
|
|
5053
5091
|
jitOrganizationIds?: string[] | undefined;
|
|
5092
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5054
5093
|
} | undefined;
|
|
5055
5094
|
}, {
|
|
5056
5095
|
type: VerificationType.OneTimeToken;
|
|
@@ -5062,6 +5101,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5062
5101
|
verified: boolean;
|
|
5063
5102
|
oneTimeTokenContext?: {
|
|
5064
5103
|
jitOrganizationIds?: string[] | undefined;
|
|
5104
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5065
5105
|
} | undefined;
|
|
5066
5106
|
}>, z.ZodObject<Omit<{
|
|
5067
5107
|
id: z.ZodString;
|
|
@@ -5155,6 +5195,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5155
5195
|
verified: boolean;
|
|
5156
5196
|
oneTimeTokenContext?: {
|
|
5157
5197
|
jitOrganizationIds?: string[] | undefined;
|
|
5198
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5158
5199
|
} | undefined;
|
|
5159
5200
|
} | {
|
|
5160
5201
|
type: VerificationType.Password;
|
|
@@ -5269,6 +5310,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5269
5310
|
verified: boolean;
|
|
5270
5311
|
oneTimeTokenContext?: {
|
|
5271
5312
|
jitOrganizationIds?: string[] | undefined;
|
|
5313
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5272
5314
|
} | undefined;
|
|
5273
5315
|
} | {
|
|
5274
5316
|
type: VerificationType.Password;
|
|
@@ -5544,6 +5586,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5544
5586
|
name?: string | null | undefined;
|
|
5545
5587
|
id?: string | undefined;
|
|
5546
5588
|
applicationId?: string | null | undefined;
|
|
5589
|
+
cimdClientId?: string | null | undefined;
|
|
5547
5590
|
username?: string | null | undefined;
|
|
5548
5591
|
createdAt?: number | undefined;
|
|
5549
5592
|
profile?: Partial<{
|
|
@@ -5733,6 +5776,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5733
5776
|
verified: boolean;
|
|
5734
5777
|
oneTimeTokenContext?: {
|
|
5735
5778
|
jitOrganizationIds?: string[] | undefined;
|
|
5779
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5736
5780
|
} | undefined;
|
|
5737
5781
|
} | {
|
|
5738
5782
|
type: VerificationType.Password;
|
|
@@ -5792,6 +5836,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5792
5836
|
name?: string | null | undefined;
|
|
5793
5837
|
id?: string | undefined;
|
|
5794
5838
|
applicationId?: string | null | undefined;
|
|
5839
|
+
cimdClientId?: string | null | undefined;
|
|
5795
5840
|
username?: string | null | undefined;
|
|
5796
5841
|
createdAt?: number | undefined;
|
|
5797
5842
|
profile?: Partial<{
|
|
@@ -5981,6 +6026,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
5981
6026
|
verified: boolean;
|
|
5982
6027
|
oneTimeTokenContext?: {
|
|
5983
6028
|
jitOrganizationIds?: string[] | undefined;
|
|
6029
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
5984
6030
|
} | undefined;
|
|
5985
6031
|
} | {
|
|
5986
6032
|
type: VerificationType.Password;
|
|
@@ -6047,8 +6093,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6047
6093
|
kind?: "AccessToken" | undefined;
|
|
6048
6094
|
accountId?: string | undefined;
|
|
6049
6095
|
scope?: string | undefined;
|
|
6050
|
-
sessionUid?: string | undefined;
|
|
6051
6096
|
clientId?: string | undefined;
|
|
6097
|
+
sessionUid?: string | undefined;
|
|
6052
6098
|
expiresWithSession?: boolean | undefined;
|
|
6053
6099
|
gty?: string | undefined;
|
|
6054
6100
|
aud?: string | string[] | undefined;
|
|
@@ -6058,6 +6104,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6058
6104
|
name?: string | null | undefined;
|
|
6059
6105
|
id?: string | undefined;
|
|
6060
6106
|
applicationId?: string | null | undefined;
|
|
6107
|
+
cimdClientId?: string | null | undefined;
|
|
6061
6108
|
username?: string | null | undefined;
|
|
6062
6109
|
createdAt?: number | undefined;
|
|
6063
6110
|
profile?: Partial<{
|
|
@@ -6247,6 +6294,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6247
6294
|
verified: boolean;
|
|
6248
6295
|
oneTimeTokenContext?: {
|
|
6249
6296
|
jitOrganizationIds?: string[] | undefined;
|
|
6297
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
6250
6298
|
} | undefined;
|
|
6251
6299
|
} | {
|
|
6252
6300
|
type: VerificationType.Password;
|
|
@@ -6313,8 +6361,8 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6313
6361
|
kind?: "AccessToken" | undefined;
|
|
6314
6362
|
accountId?: string | undefined;
|
|
6315
6363
|
scope?: string | undefined;
|
|
6316
|
-
sessionUid?: string | undefined;
|
|
6317
6364
|
clientId?: string | undefined;
|
|
6365
|
+
sessionUid?: string | undefined;
|
|
6318
6366
|
expiresWithSession?: boolean | undefined;
|
|
6319
6367
|
gty?: string | undefined;
|
|
6320
6368
|
aud?: string | string[] | undefined;
|
|
@@ -6324,6 +6372,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6324
6372
|
name?: string | null | undefined;
|
|
6325
6373
|
id?: string | undefined;
|
|
6326
6374
|
applicationId?: string | null | undefined;
|
|
6375
|
+
cimdClientId?: string | null | undefined;
|
|
6327
6376
|
username?: string | null | undefined;
|
|
6328
6377
|
createdAt?: number | undefined;
|
|
6329
6378
|
profile?: Partial<{
|
|
@@ -6513,6 +6562,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
6513
6562
|
verified: boolean;
|
|
6514
6563
|
oneTimeTokenContext?: {
|
|
6515
6564
|
jitOrganizationIds?: string[] | undefined;
|
|
6565
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
6516
6566
|
} | undefined;
|
|
6517
6567
|
} | {
|
|
6518
6568
|
type: VerificationType.Password;
|
|
@@ -7092,7 +7142,7 @@ export declare enum CustomJwtErrorCode {
|
|
|
7092
7142
|
AccessDenied = "AccessDenied",
|
|
7093
7143
|
/** General JWT customizer error,
|
|
7094
7144
|
* this is the fallback custom jwt error code
|
|
7095
|
-
* for any internal error thrown by the JWT customizer
|
|
7145
|
+
* for any internal error thrown by the JWT customizer on any runtime.
|
|
7096
7146
|
*/
|
|
7097
7147
|
General = "General"
|
|
7098
7148
|
}
|
|
@@ -203,7 +203,7 @@ export var CustomJwtErrorCode;
|
|
|
203
203
|
CustomJwtErrorCode["AccessDenied"] = "AccessDenied";
|
|
204
204
|
/** General JWT customizer error,
|
|
205
205
|
* this is the fallback custom jwt error code
|
|
206
|
-
* for any internal error thrown by the JWT customizer
|
|
206
|
+
* for any internal error thrown by the JWT customizer on any runtime.
|
|
207
207
|
*/
|
|
208
208
|
CustomJwtErrorCode["General"] = "General";
|
|
209
209
|
})(CustomJwtErrorCode || (CustomJwtErrorCode = {}));
|
|
@@ -28,8 +28,8 @@ export declare const accessTokenPayloadGuard: z.ZodObject<{
|
|
|
28
28
|
aud: string | string[];
|
|
29
29
|
sid?: string | undefined;
|
|
30
30
|
scope?: string | undefined;
|
|
31
|
-
sessionUid?: string | undefined;
|
|
32
31
|
clientId?: string | undefined;
|
|
32
|
+
sessionUid?: string | undefined;
|
|
33
33
|
expiresWithSession?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
grantId: string;
|
|
@@ -40,8 +40,8 @@ export declare const accessTokenPayloadGuard: z.ZodObject<{
|
|
|
40
40
|
aud: string | string[];
|
|
41
41
|
sid?: string | undefined;
|
|
42
42
|
scope?: string | undefined;
|
|
43
|
-
sessionUid?: string | undefined;
|
|
44
43
|
clientId?: string | undefined;
|
|
44
|
+
sessionUid?: string | undefined;
|
|
45
45
|
expiresWithSession?: boolean | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type AccessTokenPayload = z.infer<typeof accessTokenPayloadGuard>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { type OrganizationRole, type Organization, type OrganizationInvitation, type Application } from '../db-entries/index.js';
|
|
2
3
|
import { type ToZodObject } from '../utils/zod.js';
|
|
3
4
|
import { type UserInfo, type FeaturedUser } from './user.js';
|
|
@@ -66,7 +67,141 @@ export type ApplicationWithOrganizationRoles = Application & {
|
|
|
66
67
|
/** The roles of the application in the organization. */
|
|
67
68
|
organizationRoles: OrganizationRoleEntity[];
|
|
68
69
|
};
|
|
69
|
-
export declare const applicationWithOrganizationRolesGuard:
|
|
70
|
+
export declare const applicationWithOrganizationRolesGuard: z.ZodObject<{
|
|
71
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
72
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
73
|
+
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
74
|
+
description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
75
|
+
type: z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>;
|
|
76
|
+
oidcClientMetadata: z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>;
|
|
77
|
+
customClientMetadata: z.ZodType<{
|
|
78
|
+
corsAllowedOrigins?: string[] | undefined;
|
|
79
|
+
idTokenTtl?: number | undefined;
|
|
80
|
+
refreshTokenTtl?: number | undefined;
|
|
81
|
+
refreshTokenTtlInDays?: number | undefined;
|
|
82
|
+
tenantId?: string | undefined;
|
|
83
|
+
alwaysIssueRefreshToken?: boolean | undefined;
|
|
84
|
+
rotateRefreshToken?: boolean | undefined;
|
|
85
|
+
allowTokenExchange?: boolean | undefined;
|
|
86
|
+
isDeviceFlow?: boolean | undefined;
|
|
87
|
+
maxAllowedGrants?: number | undefined;
|
|
88
|
+
}, z.ZodTypeDef, {
|
|
89
|
+
corsAllowedOrigins?: string[] | undefined;
|
|
90
|
+
idTokenTtl?: number | undefined;
|
|
91
|
+
refreshTokenTtl?: number | undefined;
|
|
92
|
+
refreshTokenTtlInDays?: number | undefined;
|
|
93
|
+
tenantId?: string | undefined;
|
|
94
|
+
alwaysIssueRefreshToken?: boolean | undefined;
|
|
95
|
+
rotateRefreshToken?: boolean | undefined;
|
|
96
|
+
allowTokenExchange?: boolean | undefined;
|
|
97
|
+
isDeviceFlow?: boolean | undefined;
|
|
98
|
+
maxAllowedGrants?: number | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
protectedAppMetadata: z.ZodType<{
|
|
101
|
+
host: string;
|
|
102
|
+
origin: string;
|
|
103
|
+
sessionDuration: number;
|
|
104
|
+
pageRules: {
|
|
105
|
+
path: string;
|
|
106
|
+
}[];
|
|
107
|
+
additionalScopes?: (import("@logto/core-kit").UserScope.CustomData | import("@logto/core-kit").UserScope.Identities | import("@logto/core-kit").UserScope.Roles | import("@logto/core-kit").UserScope.Organizations | import("@logto/core-kit").UserScope.OrganizationRoles)[] | undefined;
|
|
108
|
+
customDomains?: {
|
|
109
|
+
status: import("../index.js").DomainStatus;
|
|
110
|
+
domain: string;
|
|
111
|
+
errorMessage: string | null;
|
|
112
|
+
dnsRecords: {
|
|
113
|
+
value: string;
|
|
114
|
+
type: string;
|
|
115
|
+
name: string;
|
|
116
|
+
}[];
|
|
117
|
+
cloudflareData: {
|
|
118
|
+
status: string;
|
|
119
|
+
id: string;
|
|
120
|
+
ssl: {
|
|
121
|
+
status: string;
|
|
122
|
+
validation_errors?: {
|
|
123
|
+
message: string;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
};
|
|
126
|
+
verification_errors?: string[] | undefined;
|
|
127
|
+
} | null;
|
|
128
|
+
}[] | undefined;
|
|
129
|
+
} | null, z.ZodTypeDef, {
|
|
130
|
+
host: string;
|
|
131
|
+
origin: string;
|
|
132
|
+
sessionDuration: number;
|
|
133
|
+
pageRules: {
|
|
134
|
+
path: string;
|
|
135
|
+
}[];
|
|
136
|
+
additionalScopes?: (import("@logto/core-kit").UserScope.CustomData | import("@logto/core-kit").UserScope.Identities | import("@logto/core-kit").UserScope.Roles | import("@logto/core-kit").UserScope.Organizations | import("@logto/core-kit").UserScope.OrganizationRoles)[] | undefined;
|
|
137
|
+
customDomains?: {
|
|
138
|
+
status: import("../index.js").DomainStatus;
|
|
139
|
+
domain: string;
|
|
140
|
+
errorMessage: string | null;
|
|
141
|
+
dnsRecords: {
|
|
142
|
+
value: string;
|
|
143
|
+
type: string;
|
|
144
|
+
name: string;
|
|
145
|
+
}[];
|
|
146
|
+
cloudflareData: {
|
|
147
|
+
status: string;
|
|
148
|
+
id: string;
|
|
149
|
+
ssl: {
|
|
150
|
+
status: string;
|
|
151
|
+
validation_errors?: {
|
|
152
|
+
message: string;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
};
|
|
155
|
+
verification_errors?: string[] | undefined;
|
|
156
|
+
} | null;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
} | null>;
|
|
159
|
+
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
160
|
+
isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
161
|
+
appLevelAccessControlEnabled: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
162
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
163
|
+
} & {
|
|
164
|
+
secret: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
|
|
165
|
+
} & {
|
|
166
|
+
organizationRoles: z.ZodArray<ToZodObject<OrganizationRoleEntity>, "many">;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
type: import("../db-entries/custom-types.js").ApplicationType;
|
|
169
|
+
name: string;
|
|
170
|
+
id: string;
|
|
171
|
+
tenantId: string;
|
|
172
|
+
createdAt: number;
|
|
173
|
+
customData: import("@withtyped/server").JsonObject;
|
|
174
|
+
description: string | null;
|
|
175
|
+
oidcClientMetadata: import("../index.js").OidcClientMetadata;
|
|
176
|
+
customClientMetadata: import("../index.js").CustomClientMetadata;
|
|
177
|
+
protectedAppMetadata: import("../index.js").ProtectedAppMetadata | null;
|
|
178
|
+
isThirdParty: boolean;
|
|
179
|
+
appLevelAccessControlEnabled: boolean;
|
|
180
|
+
organizationRoles: {
|
|
181
|
+
name: string;
|
|
182
|
+
id: string;
|
|
183
|
+
}[];
|
|
184
|
+
secret?: string | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
type: import("../db-entries/custom-types.js").ApplicationType;
|
|
187
|
+
name: string;
|
|
188
|
+
id: string;
|
|
189
|
+
tenantId: string;
|
|
190
|
+
createdAt: number;
|
|
191
|
+
customData: import("@withtyped/server").JsonObject;
|
|
192
|
+
description: string | null;
|
|
193
|
+
oidcClientMetadata: import("../index.js").OidcClientMetadata;
|
|
194
|
+
customClientMetadata: import("../index.js").CustomClientMetadata;
|
|
195
|
+
protectedAppMetadata: import("../index.js").ProtectedAppMetadata | null;
|
|
196
|
+
isThirdParty: boolean;
|
|
197
|
+
appLevelAccessControlEnabled: boolean;
|
|
198
|
+
organizationRoles: {
|
|
199
|
+
name: string;
|
|
200
|
+
id: string;
|
|
201
|
+
}[];
|
|
202
|
+
secret?: string | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
export type ApplicationWithOrganizationRolesResponse = z.infer<typeof applicationWithOrganizationRolesGuard>;
|
|
70
205
|
/**
|
|
71
206
|
* The organization invitation with additional fields:
|
|
72
207
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { OrganizationRoles, Organizations, OrganizationInvitations,
|
|
2
|
+
import { OrganizationRoles, Organizations, OrganizationInvitations, } from '../db-entries/index.js';
|
|
3
|
+
import { applicationResponseGuard } from './application.js';
|
|
3
4
|
import { userInfoGuard } from './user.js';
|
|
4
5
|
export const organizationRoleWithScopesGuard = OrganizationRoles.guard.extend({
|
|
5
6
|
scopes: z
|
|
@@ -29,7 +30,7 @@ export const organizationWithOrganizationRolesGuard = Organizations.guard.extend
|
|
|
29
30
|
export const userWithOrganizationRolesGuard = userInfoGuard.extend({
|
|
30
31
|
organizationRoles: organizationRoleEntityGuard.array(),
|
|
31
32
|
});
|
|
32
|
-
export const applicationWithOrganizationRolesGuard =
|
|
33
|
+
export const applicationWithOrganizationRolesGuard = applicationResponseGuard.extend({
|
|
33
34
|
organizationRoles: organizationRoleEntityGuard.array(),
|
|
34
35
|
});
|
|
35
36
|
export const organizationInvitationEntityGuard = OrganizationInvitations.guard.extend({
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types of `service_logs` rows. The rows are written by the Logto Cloud service; some members
|
|
3
|
+
* are cloud-only concepts kept here so every type shares this single definition.
|
|
4
|
+
*/
|
|
1
5
|
export declare enum ServiceLogType {
|
|
2
6
|
SendEmail = "sendEmail",
|
|
3
7
|
SendSms = "sendSms",
|
|
4
|
-
|
|
8
|
+
/** Cloud-only: custom JWT worker invocations. */
|
|
9
|
+
FetchCustomJwt = "fetchCustomJwt",
|
|
10
|
+
/**
|
|
11
|
+
* Cloud-only: a hosted-email send that failed at the provider; the payload carries the
|
|
12
|
+
* normalized provider error. Deliberately distinct from {@link ServiceLogType.SendEmail}:
|
|
13
|
+
* usage counting matches on that exact type, so failed sends never count toward email usage.
|
|
14
|
+
*/
|
|
15
|
+
SendEmailFailed = "sendEmailFailed",
|
|
16
|
+
/** Cloud-only: an Actions script run on the script runner. Mirrors the `runAction` entry. */
|
|
17
|
+
RunAction = "runAction"
|
|
5
18
|
}
|