@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ZodType, z } from 'zod';
|
|
2
2
|
import { type Organization, type Role, type UserSsoIdentity } from '../../db-entries/index.js';
|
|
3
3
|
import { type MfaFactors } from '../../foundations/index.js';
|
|
4
|
+
import { InteractionEvent } from '../interactions.js';
|
|
4
5
|
import { GrantType } from '../oidc-config.js';
|
|
5
6
|
import { type ScopeResponse } from '../scope.js';
|
|
6
7
|
import { type UserInfo } from '../user.js';
|
|
@@ -110,6 +111,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
110
111
|
publicKey: string;
|
|
111
112
|
counter: number;
|
|
112
113
|
agent: string;
|
|
114
|
+
name?: string | undefined;
|
|
113
115
|
lastUsedAt?: string | undefined;
|
|
114
116
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
115
117
|
} | {
|
|
@@ -121,6 +123,16 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
121
123
|
usedAt?: string | undefined;
|
|
122
124
|
}[];
|
|
123
125
|
lastUsedAt?: string | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: import("../../foundations/index.js").MfaFactor.EmailVerificationCode;
|
|
128
|
+
id: string;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
lastUsedAt?: string | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
type: import("../../foundations/index.js").MfaFactor.PhoneVerificationCode;
|
|
133
|
+
id: string;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
lastUsedAt?: string | undefined;
|
|
124
136
|
})[], z.ZodTypeDef, ({
|
|
125
137
|
type: import("../../foundations/index.js").MfaFactor.TOTP;
|
|
126
138
|
id: string;
|
|
@@ -135,6 +147,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
135
147
|
publicKey: string;
|
|
136
148
|
counter: number;
|
|
137
149
|
agent: string;
|
|
150
|
+
name?: string | undefined;
|
|
138
151
|
lastUsedAt?: string | undefined;
|
|
139
152
|
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
140
153
|
} | {
|
|
@@ -146,6 +159,16 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
146
159
|
usedAt?: string | undefined;
|
|
147
160
|
}[];
|
|
148
161
|
lastUsedAt?: string | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
type: import("../../foundations/index.js").MfaFactor.EmailVerificationCode;
|
|
164
|
+
id: string;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
lastUsedAt?: string | undefined;
|
|
167
|
+
} | {
|
|
168
|
+
type: import("../../foundations/index.js").MfaFactor.PhoneVerificationCode;
|
|
169
|
+
id: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
lastUsedAt?: string | undefined;
|
|
149
172
|
})[]>;
|
|
150
173
|
isSuspended: ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
151
174
|
lastSignInAt: ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
@@ -161,6 +184,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
|
|
|
161
184
|
identityId: ZodType<string, z.ZodTypeDef, string>;
|
|
162
185
|
detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
163
186
|
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
187
|
+
updatedAt: ZodType<number, z.ZodTypeDef, number>;
|
|
164
188
|
ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
|
|
165
189
|
}, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
|
|
166
190
|
issuer: string;
|
|
@@ -366,6 +390,593 @@ export declare const jwtCustomizerGrantContextGuard: z.ZodObject<{
|
|
|
366
390
|
subjectTokenContext: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
367
391
|
}>;
|
|
368
392
|
export type JwtCustomizerGrantContext = z.infer<typeof jwtCustomizerGrantContextGuard>;
|
|
393
|
+
export declare const jwtCustomizerUserInteractionContextGuard: z.ZodObject<{
|
|
394
|
+
interactionEvent: z.ZodNativeEnum<typeof InteractionEvent>;
|
|
395
|
+
userId: z.ZodString;
|
|
396
|
+
verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
397
|
+
id: z.ZodString;
|
|
398
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
|
|
399
|
+
identifier: z.ZodObject<{
|
|
400
|
+
type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
|
|
401
|
+
value: z.ZodString;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
value: string;
|
|
404
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
405
|
+
}, {
|
|
406
|
+
value: string;
|
|
407
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
408
|
+
}>;
|
|
409
|
+
verified: z.ZodBoolean;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
type: import("../index.js").VerificationType.Password;
|
|
412
|
+
id: string;
|
|
413
|
+
identifier: {
|
|
414
|
+
value: string;
|
|
415
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
416
|
+
};
|
|
417
|
+
verified: boolean;
|
|
418
|
+
}, {
|
|
419
|
+
type: import("../index.js").VerificationType.Password;
|
|
420
|
+
id: string;
|
|
421
|
+
identifier: {
|
|
422
|
+
value: string;
|
|
423
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
424
|
+
};
|
|
425
|
+
verified: boolean;
|
|
426
|
+
}>, z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
429
|
+
verified: z.ZodBoolean;
|
|
430
|
+
} & {
|
|
431
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
|
|
432
|
+
identifier: z.ZodObject<{
|
|
433
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
434
|
+
value: z.ZodString;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
value: string;
|
|
437
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
438
|
+
}, {
|
|
439
|
+
value: string;
|
|
440
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
441
|
+
}>;
|
|
442
|
+
}, "strip", z.ZodTypeAny, {
|
|
443
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
444
|
+
id: string;
|
|
445
|
+
identifier: {
|
|
446
|
+
value: string;
|
|
447
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
448
|
+
};
|
|
449
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
450
|
+
verified: boolean;
|
|
451
|
+
}, {
|
|
452
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
453
|
+
id: string;
|
|
454
|
+
identifier: {
|
|
455
|
+
value: string;
|
|
456
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
457
|
+
};
|
|
458
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
459
|
+
verified: boolean;
|
|
460
|
+
}>, z.ZodObject<{
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
463
|
+
verified: z.ZodBoolean;
|
|
464
|
+
} & {
|
|
465
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
|
|
466
|
+
identifier: z.ZodObject<{
|
|
467
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
|
|
468
|
+
value: z.ZodString;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
|
+
value: string;
|
|
471
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
472
|
+
}, {
|
|
473
|
+
value: string;
|
|
474
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
475
|
+
}>;
|
|
476
|
+
}, "strip", z.ZodTypeAny, {
|
|
477
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
478
|
+
id: string;
|
|
479
|
+
identifier: {
|
|
480
|
+
value: string;
|
|
481
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
482
|
+
};
|
|
483
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
484
|
+
verified: boolean;
|
|
485
|
+
}, {
|
|
486
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
487
|
+
id: string;
|
|
488
|
+
identifier: {
|
|
489
|
+
value: string;
|
|
490
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
491
|
+
};
|
|
492
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
493
|
+
verified: boolean;
|
|
494
|
+
}>, z.ZodObject<Omit<{
|
|
495
|
+
id: z.ZodString;
|
|
496
|
+
connectorId: z.ZodString;
|
|
497
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
|
|
498
|
+
socialUserInfo: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
id: z.ZodString;
|
|
500
|
+
email: z.ZodOptional<z.ZodString>;
|
|
501
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
502
|
+
name: z.ZodOptional<z.ZodString>;
|
|
503
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
504
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
id: string;
|
|
507
|
+
name?: string | undefined;
|
|
508
|
+
email?: string | undefined;
|
|
509
|
+
phone?: string | undefined;
|
|
510
|
+
avatar?: string | undefined;
|
|
511
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
512
|
+
}, {
|
|
513
|
+
id: string;
|
|
514
|
+
name?: string | undefined;
|
|
515
|
+
email?: string | undefined;
|
|
516
|
+
phone?: string | undefined;
|
|
517
|
+
avatar?: string | undefined;
|
|
518
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
519
|
+
}>>;
|
|
520
|
+
encryptedTokenSet: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
encryptedTokenSetBase64: z.ZodString;
|
|
522
|
+
metadata: z.ZodObject<{
|
|
523
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
524
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
tokenType: z.ZodOptional<z.ZodString>;
|
|
526
|
+
hasRefreshToken: z.ZodBoolean;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
hasRefreshToken: boolean;
|
|
529
|
+
scope?: string | undefined;
|
|
530
|
+
expiresAt?: number | undefined;
|
|
531
|
+
tokenType?: string | undefined;
|
|
532
|
+
}, {
|
|
533
|
+
hasRefreshToken: boolean;
|
|
534
|
+
scope?: string | undefined;
|
|
535
|
+
expiresAt?: number | undefined;
|
|
536
|
+
tokenType?: string | undefined;
|
|
537
|
+
}>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
metadata: {
|
|
540
|
+
hasRefreshToken: boolean;
|
|
541
|
+
scope?: string | undefined;
|
|
542
|
+
expiresAt?: number | undefined;
|
|
543
|
+
tokenType?: string | undefined;
|
|
544
|
+
};
|
|
545
|
+
encryptedTokenSetBase64: string;
|
|
546
|
+
}, {
|
|
547
|
+
metadata: {
|
|
548
|
+
hasRefreshToken: boolean;
|
|
549
|
+
scope?: string | undefined;
|
|
550
|
+
expiresAt?: number | undefined;
|
|
551
|
+
tokenType?: string | undefined;
|
|
552
|
+
};
|
|
553
|
+
encryptedTokenSetBase64: string;
|
|
554
|
+
}>>;
|
|
555
|
+
connectorSession: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
557
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
558
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
559
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
560
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
561
|
+
state: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
563
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
564
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
565
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
566
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
567
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
568
|
+
state: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
570
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
571
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
572
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
573
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
574
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
575
|
+
state: z.ZodOptional<z.ZodString>;
|
|
576
|
+
}, z.ZodUnknown, "strip">>>;
|
|
577
|
+
}, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
|
|
578
|
+
type: import("../index.js").VerificationType.Social;
|
|
579
|
+
id: string;
|
|
580
|
+
connectorId: string;
|
|
581
|
+
socialUserInfo?: {
|
|
582
|
+
id: string;
|
|
583
|
+
name?: string | undefined;
|
|
584
|
+
email?: string | undefined;
|
|
585
|
+
phone?: string | undefined;
|
|
586
|
+
avatar?: string | undefined;
|
|
587
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
588
|
+
} | undefined;
|
|
589
|
+
}, {
|
|
590
|
+
type: import("../index.js").VerificationType.Social;
|
|
591
|
+
id: string;
|
|
592
|
+
connectorId: string;
|
|
593
|
+
socialUserInfo?: {
|
|
594
|
+
id: string;
|
|
595
|
+
name?: string | undefined;
|
|
596
|
+
email?: string | undefined;
|
|
597
|
+
phone?: string | undefined;
|
|
598
|
+
avatar?: string | undefined;
|
|
599
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
}>, z.ZodObject<{
|
|
602
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
|
|
603
|
+
id: z.ZodString;
|
|
604
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
605
|
+
connectorId: z.ZodString;
|
|
606
|
+
} & {
|
|
607
|
+
enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
id: z.ZodString;
|
|
609
|
+
email: z.ZodOptional<z.ZodString>;
|
|
610
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
611
|
+
name: z.ZodOptional<z.ZodString>;
|
|
612
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
613
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
614
|
+
}, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
|
|
615
|
+
id: string;
|
|
616
|
+
name?: string | undefined;
|
|
617
|
+
email?: string | undefined;
|
|
618
|
+
phone?: string | undefined;
|
|
619
|
+
avatar?: string | undefined;
|
|
620
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
id: string;
|
|
623
|
+
name?: string | undefined;
|
|
624
|
+
email?: string | undefined;
|
|
625
|
+
phone?: string | undefined;
|
|
626
|
+
avatar?: string | undefined;
|
|
627
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
628
|
+
}>>;
|
|
629
|
+
}, "strip", z.ZodTypeAny, {
|
|
630
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
631
|
+
id: string;
|
|
632
|
+
connectorId: string;
|
|
633
|
+
issuer?: string | undefined;
|
|
634
|
+
enterpriseSsoUserInfo?: {
|
|
635
|
+
id: string;
|
|
636
|
+
name?: string | undefined;
|
|
637
|
+
email?: string | undefined;
|
|
638
|
+
phone?: string | undefined;
|
|
639
|
+
avatar?: string | undefined;
|
|
640
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
641
|
+
} | undefined;
|
|
642
|
+
}, {
|
|
643
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
644
|
+
id: string;
|
|
645
|
+
connectorId: string;
|
|
646
|
+
issuer?: string | undefined;
|
|
647
|
+
enterpriseSsoUserInfo?: {
|
|
648
|
+
id: string;
|
|
649
|
+
name?: string | undefined;
|
|
650
|
+
email?: string | undefined;
|
|
651
|
+
phone?: string | undefined;
|
|
652
|
+
avatar?: string | undefined;
|
|
653
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
654
|
+
} | undefined;
|
|
655
|
+
}>, z.ZodObject<Omit<{
|
|
656
|
+
id: z.ZodString;
|
|
657
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
|
|
658
|
+
userId: z.ZodString;
|
|
659
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
660
|
+
verified: z.ZodBoolean;
|
|
661
|
+
}, "secret">, "strip", z.ZodTypeAny, {
|
|
662
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
663
|
+
id: string;
|
|
664
|
+
userId: string;
|
|
665
|
+
verified: boolean;
|
|
666
|
+
}, {
|
|
667
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
668
|
+
id: string;
|
|
669
|
+
userId: string;
|
|
670
|
+
verified: boolean;
|
|
671
|
+
}>, z.ZodObject<Omit<{
|
|
672
|
+
id: z.ZodString;
|
|
673
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
|
|
674
|
+
userId: z.ZodString;
|
|
675
|
+
code: z.ZodOptional<z.ZodString>;
|
|
676
|
+
backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
677
|
+
}, "backupCodes">, "strip", z.ZodTypeAny, {
|
|
678
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
679
|
+
id: string;
|
|
680
|
+
userId: string;
|
|
681
|
+
code?: string | undefined;
|
|
682
|
+
}, {
|
|
683
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
684
|
+
id: string;
|
|
685
|
+
userId: string;
|
|
686
|
+
code?: string | undefined;
|
|
687
|
+
}>, z.ZodObject<Omit<{
|
|
688
|
+
id: z.ZodString;
|
|
689
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
|
|
690
|
+
userId: z.ZodString;
|
|
691
|
+
verified: z.ZodBoolean;
|
|
692
|
+
registrationChallenge: z.ZodOptional<z.ZodString>;
|
|
693
|
+
authenticationChallenge: z.ZodOptional<z.ZodString>;
|
|
694
|
+
registrationInfo: z.ZodOptional<z.ZodObject<{
|
|
695
|
+
type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
|
|
696
|
+
credentialId: z.ZodString;
|
|
697
|
+
publicKey: z.ZodString;
|
|
698
|
+
transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
|
|
699
|
+
counter: z.ZodNumber;
|
|
700
|
+
agent: z.ZodString;
|
|
701
|
+
name: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
704
|
+
credentialId: string;
|
|
705
|
+
publicKey: string;
|
|
706
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
707
|
+
counter: number;
|
|
708
|
+
agent: string;
|
|
709
|
+
name?: string | undefined;
|
|
710
|
+
}, {
|
|
711
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
712
|
+
credentialId: string;
|
|
713
|
+
publicKey: string;
|
|
714
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
715
|
+
counter: number;
|
|
716
|
+
agent: string;
|
|
717
|
+
name?: string | undefined;
|
|
718
|
+
}>>;
|
|
719
|
+
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
|
|
720
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
721
|
+
id: string;
|
|
722
|
+
userId: string;
|
|
723
|
+
verified: boolean;
|
|
724
|
+
}, {
|
|
725
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
726
|
+
id: string;
|
|
727
|
+
userId: string;
|
|
728
|
+
verified: boolean;
|
|
729
|
+
}>, z.ZodObject<{
|
|
730
|
+
id: z.ZodString;
|
|
731
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
|
|
732
|
+
verified: z.ZodBoolean;
|
|
733
|
+
identifier: z.ZodObject<{
|
|
734
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
735
|
+
value: z.ZodString;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
value: string;
|
|
738
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
739
|
+
}, {
|
|
740
|
+
value: string;
|
|
741
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
742
|
+
}>;
|
|
743
|
+
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
744
|
+
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
745
|
+
}, "strip", z.ZodTypeAny, {
|
|
746
|
+
jitOrganizationIds?: string[] | undefined;
|
|
747
|
+
}, {
|
|
748
|
+
jitOrganizationIds?: string[] | undefined;
|
|
749
|
+
}>>;
|
|
750
|
+
}, "strip", z.ZodTypeAny, {
|
|
751
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
752
|
+
id: string;
|
|
753
|
+
identifier: {
|
|
754
|
+
value: string;
|
|
755
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
756
|
+
};
|
|
757
|
+
verified: boolean;
|
|
758
|
+
oneTimeTokenContext?: {
|
|
759
|
+
jitOrganizationIds?: string[] | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
763
|
+
id: string;
|
|
764
|
+
identifier: {
|
|
765
|
+
value: string;
|
|
766
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
767
|
+
};
|
|
768
|
+
verified: boolean;
|
|
769
|
+
oneTimeTokenContext?: {
|
|
770
|
+
jitOrganizationIds?: string[] | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
}>, z.ZodObject<Omit<{
|
|
773
|
+
id: z.ZodString;
|
|
774
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
|
|
775
|
+
identifier: z.ZodObject<{
|
|
776
|
+
type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
|
|
777
|
+
value: z.ZodString;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
value: string;
|
|
780
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
781
|
+
}, {
|
|
782
|
+
value: string;
|
|
783
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
784
|
+
}>;
|
|
785
|
+
passwordEncrypted: z.ZodOptional<z.ZodString>;
|
|
786
|
+
passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
|
|
787
|
+
}, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
|
|
788
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
789
|
+
id: string;
|
|
790
|
+
identifier: {
|
|
791
|
+
value: string;
|
|
792
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
793
|
+
};
|
|
794
|
+
}, {
|
|
795
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
796
|
+
id: string;
|
|
797
|
+
identifier: {
|
|
798
|
+
value: string;
|
|
799
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
800
|
+
};
|
|
801
|
+
}>]>, "many">;
|
|
802
|
+
}, "strip", z.ZodTypeAny, {
|
|
803
|
+
userId: string;
|
|
804
|
+
interactionEvent: InteractionEvent;
|
|
805
|
+
verificationRecords: ({
|
|
806
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
807
|
+
id: string;
|
|
808
|
+
userId: string;
|
|
809
|
+
code?: string | undefined;
|
|
810
|
+
} | {
|
|
811
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
812
|
+
id: string;
|
|
813
|
+
identifier: {
|
|
814
|
+
value: string;
|
|
815
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
816
|
+
};
|
|
817
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
818
|
+
verified: boolean;
|
|
819
|
+
} | {
|
|
820
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
821
|
+
id: string;
|
|
822
|
+
identifier: {
|
|
823
|
+
value: string;
|
|
824
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
825
|
+
};
|
|
826
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
827
|
+
verified: boolean;
|
|
828
|
+
} | {
|
|
829
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
830
|
+
id: string;
|
|
831
|
+
identifier: {
|
|
832
|
+
value: string;
|
|
833
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
834
|
+
};
|
|
835
|
+
} | {
|
|
836
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
837
|
+
id: string;
|
|
838
|
+
identifier: {
|
|
839
|
+
value: string;
|
|
840
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
841
|
+
};
|
|
842
|
+
verified: boolean;
|
|
843
|
+
oneTimeTokenContext?: {
|
|
844
|
+
jitOrganizationIds?: string[] | undefined;
|
|
845
|
+
} | undefined;
|
|
846
|
+
} | {
|
|
847
|
+
type: import("../index.js").VerificationType.Password;
|
|
848
|
+
id: string;
|
|
849
|
+
identifier: {
|
|
850
|
+
value: string;
|
|
851
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
852
|
+
};
|
|
853
|
+
verified: boolean;
|
|
854
|
+
} | {
|
|
855
|
+
type: import("../index.js").VerificationType.Social;
|
|
856
|
+
id: string;
|
|
857
|
+
connectorId: string;
|
|
858
|
+
socialUserInfo?: {
|
|
859
|
+
id: string;
|
|
860
|
+
name?: string | undefined;
|
|
861
|
+
email?: string | undefined;
|
|
862
|
+
phone?: string | undefined;
|
|
863
|
+
avatar?: string | undefined;
|
|
864
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
865
|
+
} | undefined;
|
|
866
|
+
} | {
|
|
867
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
868
|
+
id: string;
|
|
869
|
+
userId: string;
|
|
870
|
+
verified: boolean;
|
|
871
|
+
} | {
|
|
872
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
873
|
+
id: string;
|
|
874
|
+
userId: string;
|
|
875
|
+
verified: boolean;
|
|
876
|
+
} | {
|
|
877
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
878
|
+
id: string;
|
|
879
|
+
connectorId: string;
|
|
880
|
+
issuer?: string | undefined;
|
|
881
|
+
enterpriseSsoUserInfo?: {
|
|
882
|
+
id: string;
|
|
883
|
+
name?: string | undefined;
|
|
884
|
+
email?: string | undefined;
|
|
885
|
+
phone?: string | undefined;
|
|
886
|
+
avatar?: string | undefined;
|
|
887
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
888
|
+
} | undefined;
|
|
889
|
+
})[];
|
|
890
|
+
}, {
|
|
891
|
+
userId: string;
|
|
892
|
+
interactionEvent: InteractionEvent;
|
|
893
|
+
verificationRecords: ({
|
|
894
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
895
|
+
id: string;
|
|
896
|
+
userId: string;
|
|
897
|
+
code?: string | undefined;
|
|
898
|
+
} | {
|
|
899
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
900
|
+
id: string;
|
|
901
|
+
identifier: {
|
|
902
|
+
value: string;
|
|
903
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
904
|
+
};
|
|
905
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
906
|
+
verified: boolean;
|
|
907
|
+
} | {
|
|
908
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
909
|
+
id: string;
|
|
910
|
+
identifier: {
|
|
911
|
+
value: string;
|
|
912
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
913
|
+
};
|
|
914
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
915
|
+
verified: boolean;
|
|
916
|
+
} | {
|
|
917
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
918
|
+
id: string;
|
|
919
|
+
identifier: {
|
|
920
|
+
value: string;
|
|
921
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
922
|
+
};
|
|
923
|
+
} | {
|
|
924
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
925
|
+
id: string;
|
|
926
|
+
identifier: {
|
|
927
|
+
value: string;
|
|
928
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
929
|
+
};
|
|
930
|
+
verified: boolean;
|
|
931
|
+
oneTimeTokenContext?: {
|
|
932
|
+
jitOrganizationIds?: string[] | undefined;
|
|
933
|
+
} | undefined;
|
|
934
|
+
} | {
|
|
935
|
+
type: import("../index.js").VerificationType.Password;
|
|
936
|
+
id: string;
|
|
937
|
+
identifier: {
|
|
938
|
+
value: string;
|
|
939
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
940
|
+
};
|
|
941
|
+
verified: boolean;
|
|
942
|
+
} | {
|
|
943
|
+
type: import("../index.js").VerificationType.Social;
|
|
944
|
+
id: string;
|
|
945
|
+
connectorId: string;
|
|
946
|
+
socialUserInfo?: {
|
|
947
|
+
id: string;
|
|
948
|
+
name?: string | undefined;
|
|
949
|
+
email?: string | undefined;
|
|
950
|
+
phone?: string | undefined;
|
|
951
|
+
avatar?: string | undefined;
|
|
952
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
} | {
|
|
955
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
956
|
+
id: string;
|
|
957
|
+
userId: string;
|
|
958
|
+
verified: boolean;
|
|
959
|
+
} | {
|
|
960
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
961
|
+
id: string;
|
|
962
|
+
userId: string;
|
|
963
|
+
verified: boolean;
|
|
964
|
+
} | {
|
|
965
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
966
|
+
id: string;
|
|
967
|
+
connectorId: string;
|
|
968
|
+
issuer?: string | undefined;
|
|
969
|
+
enterpriseSsoUserInfo?: {
|
|
970
|
+
id: string;
|
|
971
|
+
name?: string | undefined;
|
|
972
|
+
email?: string | undefined;
|
|
973
|
+
phone?: string | undefined;
|
|
974
|
+
avatar?: string | undefined;
|
|
975
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
976
|
+
} | undefined;
|
|
977
|
+
})[];
|
|
978
|
+
}>;
|
|
979
|
+
export type JwtCustomizerUserInteractionContext = z.infer<typeof jwtCustomizerUserInteractionContextGuard>;
|
|
369
980
|
export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
370
981
|
script: z.ZodString;
|
|
371
982
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -385,25 +996,25 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
385
996
|
}, "strict", z.ZodTypeAny, {
|
|
386
997
|
grantId?: string | undefined;
|
|
387
998
|
scope?: string | undefined;
|
|
999
|
+
sessionUid?: string | undefined;
|
|
388
1000
|
accountId?: string | undefined;
|
|
1001
|
+
jti?: string | undefined;
|
|
389
1002
|
expiresWithSession?: boolean | undefined;
|
|
390
1003
|
gty?: string | undefined;
|
|
391
|
-
sessionUid?: string | undefined;
|
|
392
1004
|
sid?: string | undefined;
|
|
393
1005
|
kind?: "AccessToken" | undefined;
|
|
394
|
-
jti?: string | undefined;
|
|
395
1006
|
aud?: string | string[] | undefined;
|
|
396
1007
|
clientId?: string | undefined;
|
|
397
1008
|
}, {
|
|
398
1009
|
grantId?: string | undefined;
|
|
399
1010
|
scope?: string | undefined;
|
|
1011
|
+
sessionUid?: string | undefined;
|
|
400
1012
|
accountId?: string | undefined;
|
|
1013
|
+
jti?: string | undefined;
|
|
401
1014
|
expiresWithSession?: boolean | undefined;
|
|
402
1015
|
gty?: string | undefined;
|
|
403
|
-
sessionUid?: string | undefined;
|
|
404
1016
|
sid?: string | undefined;
|
|
405
1017
|
kind?: "AccessToken" | undefined;
|
|
406
|
-
jti?: string | undefined;
|
|
407
1018
|
aud?: string | string[] | undefined;
|
|
408
1019
|
clientId?: string | undefined;
|
|
409
1020
|
}>>;
|
|
@@ -478,6 +1089,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
478
1089
|
identityId: ZodType<string, z.ZodTypeDef, string>;
|
|
479
1090
|
detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
480
1091
|
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
1092
|
+
updatedAt: ZodType<number, z.ZodTypeDef, number>;
|
|
481
1093
|
ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
|
|
482
1094
|
}, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
|
|
483
1095
|
issuer: string;
|
|
@@ -728,6 +1340,592 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
728
1340
|
type?: GrantType.TokenExchange | undefined;
|
|
729
1341
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
730
1342
|
}>>;
|
|
1343
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
1344
|
+
interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
|
|
1345
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1347
|
+
id: z.ZodString;
|
|
1348
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
|
|
1349
|
+
identifier: z.ZodObject<{
|
|
1350
|
+
type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
|
|
1351
|
+
value: z.ZodString;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
value: string;
|
|
1354
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1355
|
+
}, {
|
|
1356
|
+
value: string;
|
|
1357
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1358
|
+
}>;
|
|
1359
|
+
verified: z.ZodBoolean;
|
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
type: import("../index.js").VerificationType.Password;
|
|
1362
|
+
id: string;
|
|
1363
|
+
identifier: {
|
|
1364
|
+
value: string;
|
|
1365
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1366
|
+
};
|
|
1367
|
+
verified: boolean;
|
|
1368
|
+
}, {
|
|
1369
|
+
type: import("../index.js").VerificationType.Password;
|
|
1370
|
+
id: string;
|
|
1371
|
+
identifier: {
|
|
1372
|
+
value: string;
|
|
1373
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1374
|
+
};
|
|
1375
|
+
verified: boolean;
|
|
1376
|
+
}>, z.ZodObject<{
|
|
1377
|
+
id: z.ZodString;
|
|
1378
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
1379
|
+
verified: z.ZodBoolean;
|
|
1380
|
+
} & {
|
|
1381
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
|
|
1382
|
+
identifier: z.ZodObject<{
|
|
1383
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
1384
|
+
value: z.ZodString;
|
|
1385
|
+
}, "strip", z.ZodTypeAny, {
|
|
1386
|
+
value: string;
|
|
1387
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1388
|
+
}, {
|
|
1389
|
+
value: string;
|
|
1390
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1391
|
+
}>;
|
|
1392
|
+
}, "strip", z.ZodTypeAny, {
|
|
1393
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
1394
|
+
id: string;
|
|
1395
|
+
identifier: {
|
|
1396
|
+
value: string;
|
|
1397
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1398
|
+
};
|
|
1399
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1400
|
+
verified: boolean;
|
|
1401
|
+
}, {
|
|
1402
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
1403
|
+
id: string;
|
|
1404
|
+
identifier: {
|
|
1405
|
+
value: string;
|
|
1406
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1407
|
+
};
|
|
1408
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1409
|
+
verified: boolean;
|
|
1410
|
+
}>, z.ZodObject<{
|
|
1411
|
+
id: z.ZodString;
|
|
1412
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
1413
|
+
verified: z.ZodBoolean;
|
|
1414
|
+
} & {
|
|
1415
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
|
|
1416
|
+
identifier: z.ZodObject<{
|
|
1417
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
|
|
1418
|
+
value: z.ZodString;
|
|
1419
|
+
}, "strip", z.ZodTypeAny, {
|
|
1420
|
+
value: string;
|
|
1421
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1422
|
+
}, {
|
|
1423
|
+
value: string;
|
|
1424
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1425
|
+
}>;
|
|
1426
|
+
}, "strip", z.ZodTypeAny, {
|
|
1427
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1428
|
+
id: string;
|
|
1429
|
+
identifier: {
|
|
1430
|
+
value: string;
|
|
1431
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1432
|
+
};
|
|
1433
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1434
|
+
verified: boolean;
|
|
1435
|
+
}, {
|
|
1436
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1437
|
+
id: string;
|
|
1438
|
+
identifier: {
|
|
1439
|
+
value: string;
|
|
1440
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1441
|
+
};
|
|
1442
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1443
|
+
verified: boolean;
|
|
1444
|
+
}>, z.ZodObject<Omit<{
|
|
1445
|
+
id: z.ZodString;
|
|
1446
|
+
connectorId: z.ZodString;
|
|
1447
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
|
|
1448
|
+
socialUserInfo: z.ZodOptional<z.ZodObject<{
|
|
1449
|
+
id: z.ZodString;
|
|
1450
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
1455
|
+
}, "strip", z.ZodTypeAny, {
|
|
1456
|
+
id: string;
|
|
1457
|
+
name?: string | undefined;
|
|
1458
|
+
email?: string | undefined;
|
|
1459
|
+
phone?: string | undefined;
|
|
1460
|
+
avatar?: string | undefined;
|
|
1461
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1462
|
+
}, {
|
|
1463
|
+
id: string;
|
|
1464
|
+
name?: string | undefined;
|
|
1465
|
+
email?: string | undefined;
|
|
1466
|
+
phone?: string | undefined;
|
|
1467
|
+
avatar?: string | undefined;
|
|
1468
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1469
|
+
}>>;
|
|
1470
|
+
encryptedTokenSet: z.ZodOptional<z.ZodObject<{
|
|
1471
|
+
encryptedTokenSetBase64: z.ZodString;
|
|
1472
|
+
metadata: z.ZodObject<{
|
|
1473
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1474
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1475
|
+
tokenType: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
hasRefreshToken: z.ZodBoolean;
|
|
1477
|
+
}, "strip", z.ZodTypeAny, {
|
|
1478
|
+
hasRefreshToken: boolean;
|
|
1479
|
+
scope?: string | undefined;
|
|
1480
|
+
expiresAt?: number | undefined;
|
|
1481
|
+
tokenType?: string | undefined;
|
|
1482
|
+
}, {
|
|
1483
|
+
hasRefreshToken: boolean;
|
|
1484
|
+
scope?: string | undefined;
|
|
1485
|
+
expiresAt?: number | undefined;
|
|
1486
|
+
tokenType?: string | undefined;
|
|
1487
|
+
}>;
|
|
1488
|
+
}, "strip", z.ZodTypeAny, {
|
|
1489
|
+
metadata: {
|
|
1490
|
+
hasRefreshToken: boolean;
|
|
1491
|
+
scope?: string | undefined;
|
|
1492
|
+
expiresAt?: number | undefined;
|
|
1493
|
+
tokenType?: string | undefined;
|
|
1494
|
+
};
|
|
1495
|
+
encryptedTokenSetBase64: string;
|
|
1496
|
+
}, {
|
|
1497
|
+
metadata: {
|
|
1498
|
+
hasRefreshToken: boolean;
|
|
1499
|
+
scope?: string | undefined;
|
|
1500
|
+
expiresAt?: number | undefined;
|
|
1501
|
+
tokenType?: string | undefined;
|
|
1502
|
+
};
|
|
1503
|
+
encryptedTokenSetBase64: string;
|
|
1504
|
+
}>>;
|
|
1505
|
+
connectorSession: z.ZodOptional<z.ZodObject<{
|
|
1506
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
1509
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
1513
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
1520
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
1522
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
}, z.ZodUnknown, "strip">>>;
|
|
1527
|
+
}, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
|
|
1528
|
+
type: import("../index.js").VerificationType.Social;
|
|
1529
|
+
id: string;
|
|
1530
|
+
connectorId: string;
|
|
1531
|
+
socialUserInfo?: {
|
|
1532
|
+
id: string;
|
|
1533
|
+
name?: string | undefined;
|
|
1534
|
+
email?: string | undefined;
|
|
1535
|
+
phone?: string | undefined;
|
|
1536
|
+
avatar?: string | undefined;
|
|
1537
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1538
|
+
} | undefined;
|
|
1539
|
+
}, {
|
|
1540
|
+
type: import("../index.js").VerificationType.Social;
|
|
1541
|
+
id: string;
|
|
1542
|
+
connectorId: string;
|
|
1543
|
+
socialUserInfo?: {
|
|
1544
|
+
id: string;
|
|
1545
|
+
name?: string | undefined;
|
|
1546
|
+
email?: string | undefined;
|
|
1547
|
+
phone?: string | undefined;
|
|
1548
|
+
avatar?: string | undefined;
|
|
1549
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1550
|
+
} | undefined;
|
|
1551
|
+
}>, z.ZodObject<{
|
|
1552
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
|
|
1553
|
+
id: z.ZodString;
|
|
1554
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
connectorId: z.ZodString;
|
|
1556
|
+
} & {
|
|
1557
|
+
enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
id: z.ZodString;
|
|
1559
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
1564
|
+
}, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
|
|
1565
|
+
id: string;
|
|
1566
|
+
name?: string | undefined;
|
|
1567
|
+
email?: string | undefined;
|
|
1568
|
+
phone?: string | undefined;
|
|
1569
|
+
avatar?: string | undefined;
|
|
1570
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
id: string;
|
|
1573
|
+
name?: string | undefined;
|
|
1574
|
+
email?: string | undefined;
|
|
1575
|
+
phone?: string | undefined;
|
|
1576
|
+
avatar?: string | undefined;
|
|
1577
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1578
|
+
}>>;
|
|
1579
|
+
}, "strip", z.ZodTypeAny, {
|
|
1580
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1581
|
+
id: string;
|
|
1582
|
+
connectorId: string;
|
|
1583
|
+
issuer?: string | undefined;
|
|
1584
|
+
enterpriseSsoUserInfo?: {
|
|
1585
|
+
id: string;
|
|
1586
|
+
name?: string | undefined;
|
|
1587
|
+
email?: string | undefined;
|
|
1588
|
+
phone?: string | undefined;
|
|
1589
|
+
avatar?: string | undefined;
|
|
1590
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1591
|
+
} | undefined;
|
|
1592
|
+
}, {
|
|
1593
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1594
|
+
id: string;
|
|
1595
|
+
connectorId: string;
|
|
1596
|
+
issuer?: string | undefined;
|
|
1597
|
+
enterpriseSsoUserInfo?: {
|
|
1598
|
+
id: string;
|
|
1599
|
+
name?: string | undefined;
|
|
1600
|
+
email?: string | undefined;
|
|
1601
|
+
phone?: string | undefined;
|
|
1602
|
+
avatar?: string | undefined;
|
|
1603
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1604
|
+
} | undefined;
|
|
1605
|
+
}>, z.ZodObject<Omit<{
|
|
1606
|
+
id: z.ZodString;
|
|
1607
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
|
|
1608
|
+
userId: z.ZodString;
|
|
1609
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
verified: z.ZodBoolean;
|
|
1611
|
+
}, "secret">, "strip", z.ZodTypeAny, {
|
|
1612
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
1613
|
+
id: string;
|
|
1614
|
+
userId: string;
|
|
1615
|
+
verified: boolean;
|
|
1616
|
+
}, {
|
|
1617
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
1618
|
+
id: string;
|
|
1619
|
+
userId: string;
|
|
1620
|
+
verified: boolean;
|
|
1621
|
+
}>, z.ZodObject<Omit<{
|
|
1622
|
+
id: z.ZodString;
|
|
1623
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
|
|
1624
|
+
userId: z.ZodString;
|
|
1625
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1627
|
+
}, "backupCodes">, "strip", z.ZodTypeAny, {
|
|
1628
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
1629
|
+
id: string;
|
|
1630
|
+
userId: string;
|
|
1631
|
+
code?: string | undefined;
|
|
1632
|
+
}, {
|
|
1633
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
1634
|
+
id: string;
|
|
1635
|
+
userId: string;
|
|
1636
|
+
code?: string | undefined;
|
|
1637
|
+
}>, z.ZodObject<Omit<{
|
|
1638
|
+
id: z.ZodString;
|
|
1639
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
|
|
1640
|
+
userId: z.ZodString;
|
|
1641
|
+
verified: z.ZodBoolean;
|
|
1642
|
+
registrationChallenge: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
authenticationChallenge: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
registrationInfo: z.ZodOptional<z.ZodObject<{
|
|
1645
|
+
type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
|
|
1646
|
+
credentialId: z.ZodString;
|
|
1647
|
+
publicKey: z.ZodString;
|
|
1648
|
+
transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
|
|
1649
|
+
counter: z.ZodNumber;
|
|
1650
|
+
agent: z.ZodString;
|
|
1651
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
}, "strip", z.ZodTypeAny, {
|
|
1653
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
1654
|
+
credentialId: string;
|
|
1655
|
+
publicKey: string;
|
|
1656
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
1657
|
+
counter: number;
|
|
1658
|
+
agent: string;
|
|
1659
|
+
name?: string | undefined;
|
|
1660
|
+
}, {
|
|
1661
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
1662
|
+
credentialId: string;
|
|
1663
|
+
publicKey: string;
|
|
1664
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
1665
|
+
counter: number;
|
|
1666
|
+
agent: string;
|
|
1667
|
+
name?: string | undefined;
|
|
1668
|
+
}>>;
|
|
1669
|
+
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
|
|
1670
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1671
|
+
id: string;
|
|
1672
|
+
userId: string;
|
|
1673
|
+
verified: boolean;
|
|
1674
|
+
}, {
|
|
1675
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1676
|
+
id: string;
|
|
1677
|
+
userId: string;
|
|
1678
|
+
verified: boolean;
|
|
1679
|
+
}>, z.ZodObject<{
|
|
1680
|
+
id: z.ZodString;
|
|
1681
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
|
|
1682
|
+
verified: z.ZodBoolean;
|
|
1683
|
+
identifier: z.ZodObject<{
|
|
1684
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
1685
|
+
value: z.ZodString;
|
|
1686
|
+
}, "strip", z.ZodTypeAny, {
|
|
1687
|
+
value: string;
|
|
1688
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1689
|
+
}, {
|
|
1690
|
+
value: string;
|
|
1691
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1692
|
+
}>;
|
|
1693
|
+
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
1694
|
+
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1695
|
+
}, "strip", z.ZodTypeAny, {
|
|
1696
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1697
|
+
}, {
|
|
1698
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1699
|
+
}>>;
|
|
1700
|
+
}, "strip", z.ZodTypeAny, {
|
|
1701
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
1702
|
+
id: string;
|
|
1703
|
+
identifier: {
|
|
1704
|
+
value: string;
|
|
1705
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1706
|
+
};
|
|
1707
|
+
verified: boolean;
|
|
1708
|
+
oneTimeTokenContext?: {
|
|
1709
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1710
|
+
} | undefined;
|
|
1711
|
+
}, {
|
|
1712
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
1713
|
+
id: string;
|
|
1714
|
+
identifier: {
|
|
1715
|
+
value: string;
|
|
1716
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1717
|
+
};
|
|
1718
|
+
verified: boolean;
|
|
1719
|
+
oneTimeTokenContext?: {
|
|
1720
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1721
|
+
} | undefined;
|
|
1722
|
+
}>, z.ZodObject<Omit<{
|
|
1723
|
+
id: z.ZodString;
|
|
1724
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
|
|
1725
|
+
identifier: z.ZodObject<{
|
|
1726
|
+
type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
|
|
1727
|
+
value: z.ZodString;
|
|
1728
|
+
}, "strip", z.ZodTypeAny, {
|
|
1729
|
+
value: string;
|
|
1730
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1731
|
+
}, {
|
|
1732
|
+
value: string;
|
|
1733
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1734
|
+
}>;
|
|
1735
|
+
passwordEncrypted: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
|
|
1737
|
+
}, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
|
|
1738
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1739
|
+
id: string;
|
|
1740
|
+
identifier: {
|
|
1741
|
+
value: string;
|
|
1742
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1743
|
+
};
|
|
1744
|
+
}, {
|
|
1745
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1746
|
+
id: string;
|
|
1747
|
+
identifier: {
|
|
1748
|
+
value: string;
|
|
1749
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1750
|
+
};
|
|
1751
|
+
}>]>, "many">>;
|
|
1752
|
+
}, "strip", z.ZodTypeAny, {
|
|
1753
|
+
userId?: string | undefined;
|
|
1754
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
1755
|
+
verificationRecords?: ({
|
|
1756
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
1757
|
+
id: string;
|
|
1758
|
+
userId: string;
|
|
1759
|
+
code?: string | undefined;
|
|
1760
|
+
} | {
|
|
1761
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
1762
|
+
id: string;
|
|
1763
|
+
identifier: {
|
|
1764
|
+
value: string;
|
|
1765
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1766
|
+
};
|
|
1767
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1768
|
+
verified: boolean;
|
|
1769
|
+
} | {
|
|
1770
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1771
|
+
id: string;
|
|
1772
|
+
identifier: {
|
|
1773
|
+
value: string;
|
|
1774
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1775
|
+
};
|
|
1776
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1777
|
+
verified: boolean;
|
|
1778
|
+
} | {
|
|
1779
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1780
|
+
id: string;
|
|
1781
|
+
identifier: {
|
|
1782
|
+
value: string;
|
|
1783
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1784
|
+
};
|
|
1785
|
+
} | {
|
|
1786
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
1787
|
+
id: string;
|
|
1788
|
+
identifier: {
|
|
1789
|
+
value: string;
|
|
1790
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1791
|
+
};
|
|
1792
|
+
verified: boolean;
|
|
1793
|
+
oneTimeTokenContext?: {
|
|
1794
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1795
|
+
} | undefined;
|
|
1796
|
+
} | {
|
|
1797
|
+
type: import("../index.js").VerificationType.Password;
|
|
1798
|
+
id: string;
|
|
1799
|
+
identifier: {
|
|
1800
|
+
value: string;
|
|
1801
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1802
|
+
};
|
|
1803
|
+
verified: boolean;
|
|
1804
|
+
} | {
|
|
1805
|
+
type: import("../index.js").VerificationType.Social;
|
|
1806
|
+
id: string;
|
|
1807
|
+
connectorId: string;
|
|
1808
|
+
socialUserInfo?: {
|
|
1809
|
+
id: string;
|
|
1810
|
+
name?: string | undefined;
|
|
1811
|
+
email?: string | undefined;
|
|
1812
|
+
phone?: string | undefined;
|
|
1813
|
+
avatar?: string | undefined;
|
|
1814
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1815
|
+
} | undefined;
|
|
1816
|
+
} | {
|
|
1817
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
1818
|
+
id: string;
|
|
1819
|
+
userId: string;
|
|
1820
|
+
verified: boolean;
|
|
1821
|
+
} | {
|
|
1822
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1823
|
+
id: string;
|
|
1824
|
+
userId: string;
|
|
1825
|
+
verified: boolean;
|
|
1826
|
+
} | {
|
|
1827
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1828
|
+
id: string;
|
|
1829
|
+
connectorId: string;
|
|
1830
|
+
issuer?: string | undefined;
|
|
1831
|
+
enterpriseSsoUserInfo?: {
|
|
1832
|
+
id: string;
|
|
1833
|
+
name?: string | undefined;
|
|
1834
|
+
email?: string | undefined;
|
|
1835
|
+
phone?: string | undefined;
|
|
1836
|
+
avatar?: string | undefined;
|
|
1837
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1838
|
+
} | undefined;
|
|
1839
|
+
})[] | undefined;
|
|
1840
|
+
}, {
|
|
1841
|
+
userId?: string | undefined;
|
|
1842
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
1843
|
+
verificationRecords?: ({
|
|
1844
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
1845
|
+
id: string;
|
|
1846
|
+
userId: string;
|
|
1847
|
+
code?: string | undefined;
|
|
1848
|
+
} | {
|
|
1849
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
1850
|
+
id: string;
|
|
1851
|
+
identifier: {
|
|
1852
|
+
value: string;
|
|
1853
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1854
|
+
};
|
|
1855
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1856
|
+
verified: boolean;
|
|
1857
|
+
} | {
|
|
1858
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
1859
|
+
id: string;
|
|
1860
|
+
identifier: {
|
|
1861
|
+
value: string;
|
|
1862
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
1863
|
+
};
|
|
1864
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
1865
|
+
verified: boolean;
|
|
1866
|
+
} | {
|
|
1867
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
1868
|
+
id: string;
|
|
1869
|
+
identifier: {
|
|
1870
|
+
value: string;
|
|
1871
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
1872
|
+
};
|
|
1873
|
+
} | {
|
|
1874
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
1875
|
+
id: string;
|
|
1876
|
+
identifier: {
|
|
1877
|
+
value: string;
|
|
1878
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
1879
|
+
};
|
|
1880
|
+
verified: boolean;
|
|
1881
|
+
oneTimeTokenContext?: {
|
|
1882
|
+
jitOrganizationIds?: string[] | undefined;
|
|
1883
|
+
} | undefined;
|
|
1884
|
+
} | {
|
|
1885
|
+
type: import("../index.js").VerificationType.Password;
|
|
1886
|
+
id: string;
|
|
1887
|
+
identifier: {
|
|
1888
|
+
value: string;
|
|
1889
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
1890
|
+
};
|
|
1891
|
+
verified: boolean;
|
|
1892
|
+
} | {
|
|
1893
|
+
type: import("../index.js").VerificationType.Social;
|
|
1894
|
+
id: string;
|
|
1895
|
+
connectorId: string;
|
|
1896
|
+
socialUserInfo?: {
|
|
1897
|
+
id: string;
|
|
1898
|
+
name?: string | undefined;
|
|
1899
|
+
email?: string | undefined;
|
|
1900
|
+
phone?: string | undefined;
|
|
1901
|
+
avatar?: string | undefined;
|
|
1902
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1903
|
+
} | undefined;
|
|
1904
|
+
} | {
|
|
1905
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
1906
|
+
id: string;
|
|
1907
|
+
userId: string;
|
|
1908
|
+
verified: boolean;
|
|
1909
|
+
} | {
|
|
1910
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
1911
|
+
id: string;
|
|
1912
|
+
userId: string;
|
|
1913
|
+
verified: boolean;
|
|
1914
|
+
} | {
|
|
1915
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
1916
|
+
id: string;
|
|
1917
|
+
connectorId: string;
|
|
1918
|
+
issuer?: string | undefined;
|
|
1919
|
+
enterpriseSsoUserInfo?: {
|
|
1920
|
+
id: string;
|
|
1921
|
+
name?: string | undefined;
|
|
1922
|
+
email?: string | undefined;
|
|
1923
|
+
phone?: string | undefined;
|
|
1924
|
+
avatar?: string | undefined;
|
|
1925
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
1926
|
+
} | undefined;
|
|
1927
|
+
})[] | undefined;
|
|
1928
|
+
}>>;
|
|
731
1929
|
}, "strip", z.ZodTypeAny, {
|
|
732
1930
|
user: {
|
|
733
1931
|
name?: string | null | undefined;
|
|
@@ -801,6 +1999,95 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
801
1999
|
type?: GrantType.TokenExchange | undefined;
|
|
802
2000
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
803
2001
|
} | undefined;
|
|
2002
|
+
interaction?: {
|
|
2003
|
+
userId?: string | undefined;
|
|
2004
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2005
|
+
verificationRecords?: ({
|
|
2006
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
2007
|
+
id: string;
|
|
2008
|
+
userId: string;
|
|
2009
|
+
code?: string | undefined;
|
|
2010
|
+
} | {
|
|
2011
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
2012
|
+
id: string;
|
|
2013
|
+
identifier: {
|
|
2014
|
+
value: string;
|
|
2015
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2016
|
+
};
|
|
2017
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2018
|
+
verified: boolean;
|
|
2019
|
+
} | {
|
|
2020
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2021
|
+
id: string;
|
|
2022
|
+
identifier: {
|
|
2023
|
+
value: string;
|
|
2024
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
2025
|
+
};
|
|
2026
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2027
|
+
verified: boolean;
|
|
2028
|
+
} | {
|
|
2029
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2030
|
+
id: string;
|
|
2031
|
+
identifier: {
|
|
2032
|
+
value: string;
|
|
2033
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
2034
|
+
};
|
|
2035
|
+
} | {
|
|
2036
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
2037
|
+
id: string;
|
|
2038
|
+
identifier: {
|
|
2039
|
+
value: string;
|
|
2040
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2041
|
+
};
|
|
2042
|
+
verified: boolean;
|
|
2043
|
+
oneTimeTokenContext?: {
|
|
2044
|
+
jitOrganizationIds?: string[] | undefined;
|
|
2045
|
+
} | undefined;
|
|
2046
|
+
} | {
|
|
2047
|
+
type: import("../index.js").VerificationType.Password;
|
|
2048
|
+
id: string;
|
|
2049
|
+
identifier: {
|
|
2050
|
+
value: string;
|
|
2051
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
2052
|
+
};
|
|
2053
|
+
verified: boolean;
|
|
2054
|
+
} | {
|
|
2055
|
+
type: import("../index.js").VerificationType.Social;
|
|
2056
|
+
id: string;
|
|
2057
|
+
connectorId: string;
|
|
2058
|
+
socialUserInfo?: {
|
|
2059
|
+
id: string;
|
|
2060
|
+
name?: string | undefined;
|
|
2061
|
+
email?: string | undefined;
|
|
2062
|
+
phone?: string | undefined;
|
|
2063
|
+
avatar?: string | undefined;
|
|
2064
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2065
|
+
} | undefined;
|
|
2066
|
+
} | {
|
|
2067
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
2068
|
+
id: string;
|
|
2069
|
+
userId: string;
|
|
2070
|
+
verified: boolean;
|
|
2071
|
+
} | {
|
|
2072
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
2073
|
+
id: string;
|
|
2074
|
+
userId: string;
|
|
2075
|
+
verified: boolean;
|
|
2076
|
+
} | {
|
|
2077
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
2078
|
+
id: string;
|
|
2079
|
+
connectorId: string;
|
|
2080
|
+
issuer?: string | undefined;
|
|
2081
|
+
enterpriseSsoUserInfo?: {
|
|
2082
|
+
id: string;
|
|
2083
|
+
name?: string | undefined;
|
|
2084
|
+
email?: string | undefined;
|
|
2085
|
+
phone?: string | undefined;
|
|
2086
|
+
avatar?: string | undefined;
|
|
2087
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2088
|
+
} | undefined;
|
|
2089
|
+
})[] | undefined;
|
|
2090
|
+
} | undefined;
|
|
804
2091
|
}, {
|
|
805
2092
|
user: {
|
|
806
2093
|
name?: string | null | undefined;
|
|
@@ -874,6 +2161,95 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
874
2161
|
type?: GrantType.TokenExchange | undefined;
|
|
875
2162
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
876
2163
|
} | undefined;
|
|
2164
|
+
interaction?: {
|
|
2165
|
+
userId?: string | undefined;
|
|
2166
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2167
|
+
verificationRecords?: ({
|
|
2168
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
2169
|
+
id: string;
|
|
2170
|
+
userId: string;
|
|
2171
|
+
code?: string | undefined;
|
|
2172
|
+
} | {
|
|
2173
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
2174
|
+
id: string;
|
|
2175
|
+
identifier: {
|
|
2176
|
+
value: string;
|
|
2177
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2178
|
+
};
|
|
2179
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2180
|
+
verified: boolean;
|
|
2181
|
+
} | {
|
|
2182
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2183
|
+
id: string;
|
|
2184
|
+
identifier: {
|
|
2185
|
+
value: string;
|
|
2186
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
2187
|
+
};
|
|
2188
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2189
|
+
verified: boolean;
|
|
2190
|
+
} | {
|
|
2191
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2192
|
+
id: string;
|
|
2193
|
+
identifier: {
|
|
2194
|
+
value: string;
|
|
2195
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
2196
|
+
};
|
|
2197
|
+
} | {
|
|
2198
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
2199
|
+
id: string;
|
|
2200
|
+
identifier: {
|
|
2201
|
+
value: string;
|
|
2202
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2203
|
+
};
|
|
2204
|
+
verified: boolean;
|
|
2205
|
+
oneTimeTokenContext?: {
|
|
2206
|
+
jitOrganizationIds?: string[] | undefined;
|
|
2207
|
+
} | undefined;
|
|
2208
|
+
} | {
|
|
2209
|
+
type: import("../index.js").VerificationType.Password;
|
|
2210
|
+
id: string;
|
|
2211
|
+
identifier: {
|
|
2212
|
+
value: string;
|
|
2213
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
2214
|
+
};
|
|
2215
|
+
verified: boolean;
|
|
2216
|
+
} | {
|
|
2217
|
+
type: import("../index.js").VerificationType.Social;
|
|
2218
|
+
id: string;
|
|
2219
|
+
connectorId: string;
|
|
2220
|
+
socialUserInfo?: {
|
|
2221
|
+
id: string;
|
|
2222
|
+
name?: string | undefined;
|
|
2223
|
+
email?: string | undefined;
|
|
2224
|
+
phone?: string | undefined;
|
|
2225
|
+
avatar?: string | undefined;
|
|
2226
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2227
|
+
} | undefined;
|
|
2228
|
+
} | {
|
|
2229
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
2230
|
+
id: string;
|
|
2231
|
+
userId: string;
|
|
2232
|
+
verified: boolean;
|
|
2233
|
+
} | {
|
|
2234
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
2235
|
+
id: string;
|
|
2236
|
+
userId: string;
|
|
2237
|
+
verified: boolean;
|
|
2238
|
+
} | {
|
|
2239
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
2240
|
+
id: string;
|
|
2241
|
+
connectorId: string;
|
|
2242
|
+
issuer?: string | undefined;
|
|
2243
|
+
enterpriseSsoUserInfo?: {
|
|
2244
|
+
id: string;
|
|
2245
|
+
name?: string | undefined;
|
|
2246
|
+
email?: string | undefined;
|
|
2247
|
+
phone?: string | undefined;
|
|
2248
|
+
avatar?: string | undefined;
|
|
2249
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2250
|
+
} | undefined;
|
|
2251
|
+
})[] | undefined;
|
|
2252
|
+
} | undefined;
|
|
877
2253
|
}>>;
|
|
878
2254
|
}, "strict", z.ZodTypeAny, {
|
|
879
2255
|
script: string;
|
|
@@ -951,17 +2327,106 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
951
2327
|
type?: GrantType.TokenExchange | undefined;
|
|
952
2328
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
953
2329
|
} | undefined;
|
|
2330
|
+
interaction?: {
|
|
2331
|
+
userId?: string | undefined;
|
|
2332
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2333
|
+
verificationRecords?: ({
|
|
2334
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
2335
|
+
id: string;
|
|
2336
|
+
userId: string;
|
|
2337
|
+
code?: string | undefined;
|
|
2338
|
+
} | {
|
|
2339
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
2340
|
+
id: string;
|
|
2341
|
+
identifier: {
|
|
2342
|
+
value: string;
|
|
2343
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2344
|
+
};
|
|
2345
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2346
|
+
verified: boolean;
|
|
2347
|
+
} | {
|
|
2348
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2349
|
+
id: string;
|
|
2350
|
+
identifier: {
|
|
2351
|
+
value: string;
|
|
2352
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
2353
|
+
};
|
|
2354
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2355
|
+
verified: boolean;
|
|
2356
|
+
} | {
|
|
2357
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2358
|
+
id: string;
|
|
2359
|
+
identifier: {
|
|
2360
|
+
value: string;
|
|
2361
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
2362
|
+
};
|
|
2363
|
+
} | {
|
|
2364
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
2365
|
+
id: string;
|
|
2366
|
+
identifier: {
|
|
2367
|
+
value: string;
|
|
2368
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2369
|
+
};
|
|
2370
|
+
verified: boolean;
|
|
2371
|
+
oneTimeTokenContext?: {
|
|
2372
|
+
jitOrganizationIds?: string[] | undefined;
|
|
2373
|
+
} | undefined;
|
|
2374
|
+
} | {
|
|
2375
|
+
type: import("../index.js").VerificationType.Password;
|
|
2376
|
+
id: string;
|
|
2377
|
+
identifier: {
|
|
2378
|
+
value: string;
|
|
2379
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
2380
|
+
};
|
|
2381
|
+
verified: boolean;
|
|
2382
|
+
} | {
|
|
2383
|
+
type: import("../index.js").VerificationType.Social;
|
|
2384
|
+
id: string;
|
|
2385
|
+
connectorId: string;
|
|
2386
|
+
socialUserInfo?: {
|
|
2387
|
+
id: string;
|
|
2388
|
+
name?: string | undefined;
|
|
2389
|
+
email?: string | undefined;
|
|
2390
|
+
phone?: string | undefined;
|
|
2391
|
+
avatar?: string | undefined;
|
|
2392
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2393
|
+
} | undefined;
|
|
2394
|
+
} | {
|
|
2395
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
2396
|
+
id: string;
|
|
2397
|
+
userId: string;
|
|
2398
|
+
verified: boolean;
|
|
2399
|
+
} | {
|
|
2400
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
2401
|
+
id: string;
|
|
2402
|
+
userId: string;
|
|
2403
|
+
verified: boolean;
|
|
2404
|
+
} | {
|
|
2405
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
2406
|
+
id: string;
|
|
2407
|
+
connectorId: string;
|
|
2408
|
+
issuer?: string | undefined;
|
|
2409
|
+
enterpriseSsoUserInfo?: {
|
|
2410
|
+
id: string;
|
|
2411
|
+
name?: string | undefined;
|
|
2412
|
+
email?: string | undefined;
|
|
2413
|
+
phone?: string | undefined;
|
|
2414
|
+
avatar?: string | undefined;
|
|
2415
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2416
|
+
} | undefined;
|
|
2417
|
+
})[] | undefined;
|
|
2418
|
+
} | undefined;
|
|
954
2419
|
} | undefined;
|
|
955
2420
|
tokenSample?: {
|
|
956
2421
|
grantId?: string | undefined;
|
|
957
2422
|
scope?: string | undefined;
|
|
2423
|
+
sessionUid?: string | undefined;
|
|
958
2424
|
accountId?: string | undefined;
|
|
2425
|
+
jti?: string | undefined;
|
|
959
2426
|
expiresWithSession?: boolean | undefined;
|
|
960
2427
|
gty?: string | undefined;
|
|
961
|
-
sessionUid?: string | undefined;
|
|
962
2428
|
sid?: string | undefined;
|
|
963
2429
|
kind?: "AccessToken" | undefined;
|
|
964
|
-
jti?: string | undefined;
|
|
965
2430
|
aud?: string | string[] | undefined;
|
|
966
2431
|
clientId?: string | undefined;
|
|
967
2432
|
} | undefined;
|
|
@@ -1041,17 +2506,106 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
|
|
|
1041
2506
|
type?: GrantType.TokenExchange | undefined;
|
|
1042
2507
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1043
2508
|
} | undefined;
|
|
2509
|
+
interaction?: {
|
|
2510
|
+
userId?: string | undefined;
|
|
2511
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
2512
|
+
verificationRecords?: ({
|
|
2513
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
2514
|
+
id: string;
|
|
2515
|
+
userId: string;
|
|
2516
|
+
code?: string | undefined;
|
|
2517
|
+
} | {
|
|
2518
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
2519
|
+
id: string;
|
|
2520
|
+
identifier: {
|
|
2521
|
+
value: string;
|
|
2522
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2523
|
+
};
|
|
2524
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2525
|
+
verified: boolean;
|
|
2526
|
+
} | {
|
|
2527
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
2528
|
+
id: string;
|
|
2529
|
+
identifier: {
|
|
2530
|
+
value: string;
|
|
2531
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
2532
|
+
};
|
|
2533
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
2534
|
+
verified: boolean;
|
|
2535
|
+
} | {
|
|
2536
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
2537
|
+
id: string;
|
|
2538
|
+
identifier: {
|
|
2539
|
+
value: string;
|
|
2540
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
2541
|
+
};
|
|
2542
|
+
} | {
|
|
2543
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
2544
|
+
id: string;
|
|
2545
|
+
identifier: {
|
|
2546
|
+
value: string;
|
|
2547
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
2548
|
+
};
|
|
2549
|
+
verified: boolean;
|
|
2550
|
+
oneTimeTokenContext?: {
|
|
2551
|
+
jitOrganizationIds?: string[] | undefined;
|
|
2552
|
+
} | undefined;
|
|
2553
|
+
} | {
|
|
2554
|
+
type: import("../index.js").VerificationType.Password;
|
|
2555
|
+
id: string;
|
|
2556
|
+
identifier: {
|
|
2557
|
+
value: string;
|
|
2558
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
2559
|
+
};
|
|
2560
|
+
verified: boolean;
|
|
2561
|
+
} | {
|
|
2562
|
+
type: import("../index.js").VerificationType.Social;
|
|
2563
|
+
id: string;
|
|
2564
|
+
connectorId: string;
|
|
2565
|
+
socialUserInfo?: {
|
|
2566
|
+
id: string;
|
|
2567
|
+
name?: string | undefined;
|
|
2568
|
+
email?: string | undefined;
|
|
2569
|
+
phone?: string | undefined;
|
|
2570
|
+
avatar?: string | undefined;
|
|
2571
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2572
|
+
} | undefined;
|
|
2573
|
+
} | {
|
|
2574
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
2575
|
+
id: string;
|
|
2576
|
+
userId: string;
|
|
2577
|
+
verified: boolean;
|
|
2578
|
+
} | {
|
|
2579
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
2580
|
+
id: string;
|
|
2581
|
+
userId: string;
|
|
2582
|
+
verified: boolean;
|
|
2583
|
+
} | {
|
|
2584
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
2585
|
+
id: string;
|
|
2586
|
+
connectorId: string;
|
|
2587
|
+
issuer?: string | undefined;
|
|
2588
|
+
enterpriseSsoUserInfo?: {
|
|
2589
|
+
id: string;
|
|
2590
|
+
name?: string | undefined;
|
|
2591
|
+
email?: string | undefined;
|
|
2592
|
+
phone?: string | undefined;
|
|
2593
|
+
avatar?: string | undefined;
|
|
2594
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
2595
|
+
} | undefined;
|
|
2596
|
+
})[] | undefined;
|
|
2597
|
+
} | undefined;
|
|
1044
2598
|
} | undefined;
|
|
1045
2599
|
tokenSample?: {
|
|
1046
2600
|
grantId?: string | undefined;
|
|
1047
2601
|
scope?: string | undefined;
|
|
2602
|
+
sessionUid?: string | undefined;
|
|
1048
2603
|
accountId?: string | undefined;
|
|
2604
|
+
jti?: string | undefined;
|
|
1049
2605
|
expiresWithSession?: boolean | undefined;
|
|
1050
2606
|
gty?: string | undefined;
|
|
1051
|
-
sessionUid?: string | undefined;
|
|
1052
2607
|
sid?: string | undefined;
|
|
1053
2608
|
kind?: "AccessToken" | undefined;
|
|
1054
|
-
jti?: string | undefined;
|
|
1055
2609
|
aud?: string | string[] | undefined;
|
|
1056
2610
|
clientId?: string | undefined;
|
|
1057
2611
|
} | undefined;
|
|
@@ -1070,14 +2624,14 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
|
|
|
1070
2624
|
clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1071
2625
|
}, "strict", z.ZodTypeAny, {
|
|
1072
2626
|
scope?: string | undefined;
|
|
1073
|
-
kind?: "ClientCredentials" | undefined;
|
|
1074
2627
|
jti?: string | undefined;
|
|
2628
|
+
kind?: "ClientCredentials" | undefined;
|
|
1075
2629
|
aud?: string | string[] | undefined;
|
|
1076
2630
|
clientId?: string | undefined;
|
|
1077
2631
|
}, {
|
|
1078
2632
|
scope?: string | undefined;
|
|
1079
|
-
kind?: "ClientCredentials" | undefined;
|
|
1080
2633
|
jti?: string | undefined;
|
|
2634
|
+
kind?: "ClientCredentials" | undefined;
|
|
1081
2635
|
aud?: string | string[] | undefined;
|
|
1082
2636
|
clientId?: string | undefined;
|
|
1083
2637
|
}>>;
|
|
@@ -1087,8 +2641,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
|
|
|
1087
2641
|
contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1088
2642
|
tokenSample?: {
|
|
1089
2643
|
scope?: string | undefined;
|
|
1090
|
-
kind?: "ClientCredentials" | undefined;
|
|
1091
2644
|
jti?: string | undefined;
|
|
2645
|
+
kind?: "ClientCredentials" | undefined;
|
|
1092
2646
|
aud?: string | string[] | undefined;
|
|
1093
2647
|
clientId?: string | undefined;
|
|
1094
2648
|
} | undefined;
|
|
@@ -1098,8 +2652,8 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
|
|
|
1098
2652
|
contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1099
2653
|
tokenSample?: {
|
|
1100
2654
|
scope?: string | undefined;
|
|
1101
|
-
kind?: "ClientCredentials" | undefined;
|
|
1102
2655
|
jti?: string | undefined;
|
|
2656
|
+
kind?: "ClientCredentials" | undefined;
|
|
1103
2657
|
aud?: string | string[] | undefined;
|
|
1104
2658
|
clientId?: string | undefined;
|
|
1105
2659
|
} | undefined;
|
|
@@ -1128,25 +2682,25 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1128
2682
|
}, "strict", z.ZodTypeAny, {
|
|
1129
2683
|
grantId?: string | undefined;
|
|
1130
2684
|
scope?: string | undefined;
|
|
2685
|
+
sessionUid?: string | undefined;
|
|
1131
2686
|
accountId?: string | undefined;
|
|
2687
|
+
jti?: string | undefined;
|
|
1132
2688
|
expiresWithSession?: boolean | undefined;
|
|
1133
2689
|
gty?: string | undefined;
|
|
1134
|
-
sessionUid?: string | undefined;
|
|
1135
2690
|
sid?: string | undefined;
|
|
1136
2691
|
kind?: "AccessToken" | undefined;
|
|
1137
|
-
jti?: string | undefined;
|
|
1138
2692
|
aud?: string | string[] | undefined;
|
|
1139
2693
|
clientId?: string | undefined;
|
|
1140
2694
|
}, {
|
|
1141
2695
|
grantId?: string | undefined;
|
|
1142
2696
|
scope?: string | undefined;
|
|
2697
|
+
sessionUid?: string | undefined;
|
|
1143
2698
|
accountId?: string | undefined;
|
|
2699
|
+
jti?: string | undefined;
|
|
1144
2700
|
expiresWithSession?: boolean | undefined;
|
|
1145
2701
|
gty?: string | undefined;
|
|
1146
|
-
sessionUid?: string | undefined;
|
|
1147
2702
|
sid?: string | undefined;
|
|
1148
2703
|
kind?: "AccessToken" | undefined;
|
|
1149
|
-
jti?: string | undefined;
|
|
1150
2704
|
aud?: string | string[] | undefined;
|
|
1151
2705
|
clientId?: string | undefined;
|
|
1152
2706
|
}>;
|
|
@@ -1221,6 +2775,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1221
2775
|
identityId: ZodType<string, z.ZodTypeDef, string>;
|
|
1222
2776
|
detail: ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
|
|
1223
2777
|
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
2778
|
+
updatedAt: ZodType<number, z.ZodTypeDef, number>;
|
|
1224
2779
|
ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
|
|
1225
2780
|
}, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
|
|
1226
2781
|
issuer: string;
|
|
@@ -1471,6 +3026,592 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1471
3026
|
type?: GrantType.TokenExchange | undefined;
|
|
1472
3027
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1473
3028
|
}>>;
|
|
3029
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
3030
|
+
interactionEvent: z.ZodOptional<z.ZodNativeEnum<typeof InteractionEvent>>;
|
|
3031
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
3032
|
+
verificationRecords: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3033
|
+
id: z.ZodString;
|
|
3034
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Password>;
|
|
3035
|
+
identifier: z.ZodObject<{
|
|
3036
|
+
type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../../foundations/index.js").AdditionalIdentifier>]>;
|
|
3037
|
+
value: z.ZodString;
|
|
3038
|
+
}, "strip", z.ZodTypeAny, {
|
|
3039
|
+
value: string;
|
|
3040
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3041
|
+
}, {
|
|
3042
|
+
value: string;
|
|
3043
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3044
|
+
}>;
|
|
3045
|
+
verified: z.ZodBoolean;
|
|
3046
|
+
}, "strip", z.ZodTypeAny, {
|
|
3047
|
+
type: import("../index.js").VerificationType.Password;
|
|
3048
|
+
id: string;
|
|
3049
|
+
identifier: {
|
|
3050
|
+
value: string;
|
|
3051
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3052
|
+
};
|
|
3053
|
+
verified: boolean;
|
|
3054
|
+
}, {
|
|
3055
|
+
type: import("../index.js").VerificationType.Password;
|
|
3056
|
+
id: string;
|
|
3057
|
+
identifier: {
|
|
3058
|
+
value: string;
|
|
3059
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3060
|
+
};
|
|
3061
|
+
verified: boolean;
|
|
3062
|
+
}>, z.ZodObject<{
|
|
3063
|
+
id: z.ZodString;
|
|
3064
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
3065
|
+
verified: z.ZodBoolean;
|
|
3066
|
+
} & {
|
|
3067
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EmailVerificationCode>;
|
|
3068
|
+
identifier: z.ZodObject<{
|
|
3069
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
3070
|
+
value: z.ZodString;
|
|
3071
|
+
}, "strip", z.ZodTypeAny, {
|
|
3072
|
+
value: string;
|
|
3073
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3074
|
+
}, {
|
|
3075
|
+
value: string;
|
|
3076
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3077
|
+
}>;
|
|
3078
|
+
}, "strip", z.ZodTypeAny, {
|
|
3079
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3080
|
+
id: string;
|
|
3081
|
+
identifier: {
|
|
3082
|
+
value: string;
|
|
3083
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3084
|
+
};
|
|
3085
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3086
|
+
verified: boolean;
|
|
3087
|
+
}, {
|
|
3088
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3089
|
+
id: string;
|
|
3090
|
+
identifier: {
|
|
3091
|
+
value: string;
|
|
3092
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3093
|
+
};
|
|
3094
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3095
|
+
verified: boolean;
|
|
3096
|
+
}>, z.ZodObject<{
|
|
3097
|
+
id: z.ZodString;
|
|
3098
|
+
templateType: z.ZodNativeEnum<typeof import("@logto/connector-kit").TemplateType>;
|
|
3099
|
+
verified: z.ZodBoolean;
|
|
3100
|
+
} & {
|
|
3101
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.PhoneVerificationCode>;
|
|
3102
|
+
identifier: z.ZodObject<{
|
|
3103
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Phone>;
|
|
3104
|
+
value: z.ZodString;
|
|
3105
|
+
}, "strip", z.ZodTypeAny, {
|
|
3106
|
+
value: string;
|
|
3107
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3108
|
+
}, {
|
|
3109
|
+
value: string;
|
|
3110
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3111
|
+
}>;
|
|
3112
|
+
}, "strip", z.ZodTypeAny, {
|
|
3113
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3114
|
+
id: string;
|
|
3115
|
+
identifier: {
|
|
3116
|
+
value: string;
|
|
3117
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3118
|
+
};
|
|
3119
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3120
|
+
verified: boolean;
|
|
3121
|
+
}, {
|
|
3122
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3123
|
+
id: string;
|
|
3124
|
+
identifier: {
|
|
3125
|
+
value: string;
|
|
3126
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3127
|
+
};
|
|
3128
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3129
|
+
verified: boolean;
|
|
3130
|
+
}>, z.ZodObject<Omit<{
|
|
3131
|
+
id: z.ZodString;
|
|
3132
|
+
connectorId: z.ZodString;
|
|
3133
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.Social>;
|
|
3134
|
+
socialUserInfo: z.ZodOptional<z.ZodObject<{
|
|
3135
|
+
id: z.ZodString;
|
|
3136
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3137
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
3138
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3139
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3140
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
3141
|
+
}, "strip", z.ZodTypeAny, {
|
|
3142
|
+
id: string;
|
|
3143
|
+
name?: string | undefined;
|
|
3144
|
+
email?: string | undefined;
|
|
3145
|
+
phone?: string | undefined;
|
|
3146
|
+
avatar?: string | undefined;
|
|
3147
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3148
|
+
}, {
|
|
3149
|
+
id: string;
|
|
3150
|
+
name?: string | undefined;
|
|
3151
|
+
email?: string | undefined;
|
|
3152
|
+
phone?: string | undefined;
|
|
3153
|
+
avatar?: string | undefined;
|
|
3154
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3155
|
+
}>>;
|
|
3156
|
+
encryptedTokenSet: z.ZodOptional<z.ZodObject<{
|
|
3157
|
+
encryptedTokenSetBase64: z.ZodString;
|
|
3158
|
+
metadata: z.ZodObject<{
|
|
3159
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
3160
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
3161
|
+
tokenType: z.ZodOptional<z.ZodString>;
|
|
3162
|
+
hasRefreshToken: z.ZodBoolean;
|
|
3163
|
+
}, "strip", z.ZodTypeAny, {
|
|
3164
|
+
hasRefreshToken: boolean;
|
|
3165
|
+
scope?: string | undefined;
|
|
3166
|
+
expiresAt?: number | undefined;
|
|
3167
|
+
tokenType?: string | undefined;
|
|
3168
|
+
}, {
|
|
3169
|
+
hasRefreshToken: boolean;
|
|
3170
|
+
scope?: string | undefined;
|
|
3171
|
+
expiresAt?: number | undefined;
|
|
3172
|
+
tokenType?: string | undefined;
|
|
3173
|
+
}>;
|
|
3174
|
+
}, "strip", z.ZodTypeAny, {
|
|
3175
|
+
metadata: {
|
|
3176
|
+
hasRefreshToken: boolean;
|
|
3177
|
+
scope?: string | undefined;
|
|
3178
|
+
expiresAt?: number | undefined;
|
|
3179
|
+
tokenType?: string | undefined;
|
|
3180
|
+
};
|
|
3181
|
+
encryptedTokenSetBase64: string;
|
|
3182
|
+
}, {
|
|
3183
|
+
metadata: {
|
|
3184
|
+
hasRefreshToken: boolean;
|
|
3185
|
+
scope?: string | undefined;
|
|
3186
|
+
expiresAt?: number | undefined;
|
|
3187
|
+
tokenType?: string | undefined;
|
|
3188
|
+
};
|
|
3189
|
+
encryptedTokenSetBase64: string;
|
|
3190
|
+
}>>;
|
|
3191
|
+
connectorSession: z.ZodOptional<z.ZodObject<{
|
|
3192
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
3193
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
3194
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
3195
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
3196
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3198
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
3199
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
3200
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
3201
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
3202
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
3203
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
3204
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
3206
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
3207
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
connectorFactoryId: z.ZodOptional<z.ZodString>;
|
|
3210
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
3211
|
+
state: z.ZodOptional<z.ZodString>;
|
|
3212
|
+
}, z.ZodUnknown, "strip">>>;
|
|
3213
|
+
}, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
|
|
3214
|
+
type: import("../index.js").VerificationType.Social;
|
|
3215
|
+
id: string;
|
|
3216
|
+
connectorId: string;
|
|
3217
|
+
socialUserInfo?: {
|
|
3218
|
+
id: string;
|
|
3219
|
+
name?: string | undefined;
|
|
3220
|
+
email?: string | undefined;
|
|
3221
|
+
phone?: string | undefined;
|
|
3222
|
+
avatar?: string | undefined;
|
|
3223
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3224
|
+
} | undefined;
|
|
3225
|
+
}, {
|
|
3226
|
+
type: import("../index.js").VerificationType.Social;
|
|
3227
|
+
id: string;
|
|
3228
|
+
connectorId: string;
|
|
3229
|
+
socialUserInfo?: {
|
|
3230
|
+
id: string;
|
|
3231
|
+
name?: string | undefined;
|
|
3232
|
+
email?: string | undefined;
|
|
3233
|
+
phone?: string | undefined;
|
|
3234
|
+
avatar?: string | undefined;
|
|
3235
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3236
|
+
} | undefined;
|
|
3237
|
+
}>, z.ZodObject<{
|
|
3238
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.EnterpriseSso>;
|
|
3239
|
+
id: z.ZodString;
|
|
3240
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
3241
|
+
connectorId: z.ZodString;
|
|
3242
|
+
} & {
|
|
3243
|
+
enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
|
|
3244
|
+
id: z.ZodString;
|
|
3245
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3246
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
3247
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3248
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3249
|
+
rawData: z.ZodOptional<ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
|
|
3250
|
+
}, "strip", ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
|
|
3251
|
+
id: string;
|
|
3252
|
+
name?: string | undefined;
|
|
3253
|
+
email?: string | undefined;
|
|
3254
|
+
phone?: string | undefined;
|
|
3255
|
+
avatar?: string | undefined;
|
|
3256
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3257
|
+
}, {
|
|
3258
|
+
id: string;
|
|
3259
|
+
name?: string | undefined;
|
|
3260
|
+
email?: string | undefined;
|
|
3261
|
+
phone?: string | undefined;
|
|
3262
|
+
avatar?: string | undefined;
|
|
3263
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3264
|
+
}>>;
|
|
3265
|
+
}, "strip", z.ZodTypeAny, {
|
|
3266
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3267
|
+
id: string;
|
|
3268
|
+
connectorId: string;
|
|
3269
|
+
issuer?: string | undefined;
|
|
3270
|
+
enterpriseSsoUserInfo?: {
|
|
3271
|
+
id: string;
|
|
3272
|
+
name?: string | undefined;
|
|
3273
|
+
email?: string | undefined;
|
|
3274
|
+
phone?: string | undefined;
|
|
3275
|
+
avatar?: string | undefined;
|
|
3276
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3277
|
+
} | undefined;
|
|
3278
|
+
}, {
|
|
3279
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3280
|
+
id: string;
|
|
3281
|
+
connectorId: string;
|
|
3282
|
+
issuer?: string | undefined;
|
|
3283
|
+
enterpriseSsoUserInfo?: {
|
|
3284
|
+
id: string;
|
|
3285
|
+
name?: string | undefined;
|
|
3286
|
+
email?: string | undefined;
|
|
3287
|
+
phone?: string | undefined;
|
|
3288
|
+
avatar?: string | undefined;
|
|
3289
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3290
|
+
} | undefined;
|
|
3291
|
+
}>, z.ZodObject<Omit<{
|
|
3292
|
+
id: z.ZodString;
|
|
3293
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.TOTP>;
|
|
3294
|
+
userId: z.ZodString;
|
|
3295
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
3296
|
+
verified: z.ZodBoolean;
|
|
3297
|
+
}, "secret">, "strip", z.ZodTypeAny, {
|
|
3298
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3299
|
+
id: string;
|
|
3300
|
+
userId: string;
|
|
3301
|
+
verified: boolean;
|
|
3302
|
+
}, {
|
|
3303
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3304
|
+
id: string;
|
|
3305
|
+
userId: string;
|
|
3306
|
+
verified: boolean;
|
|
3307
|
+
}>, z.ZodObject<Omit<{
|
|
3308
|
+
id: z.ZodString;
|
|
3309
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.BackupCode>;
|
|
3310
|
+
userId: z.ZodString;
|
|
3311
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3312
|
+
backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3313
|
+
}, "backupCodes">, "strip", z.ZodTypeAny, {
|
|
3314
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3315
|
+
id: string;
|
|
3316
|
+
userId: string;
|
|
3317
|
+
code?: string | undefined;
|
|
3318
|
+
}, {
|
|
3319
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3320
|
+
id: string;
|
|
3321
|
+
userId: string;
|
|
3322
|
+
code?: string | undefined;
|
|
3323
|
+
}>, z.ZodObject<Omit<{
|
|
3324
|
+
id: z.ZodString;
|
|
3325
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.WebAuthn>;
|
|
3326
|
+
userId: z.ZodString;
|
|
3327
|
+
verified: z.ZodBoolean;
|
|
3328
|
+
registrationChallenge: z.ZodOptional<z.ZodString>;
|
|
3329
|
+
authenticationChallenge: z.ZodOptional<z.ZodString>;
|
|
3330
|
+
registrationInfo: z.ZodOptional<z.ZodObject<{
|
|
3331
|
+
type: z.ZodLiteral<import("../../foundations/index.js").MfaFactor.WebAuthn>;
|
|
3332
|
+
credentialId: z.ZodString;
|
|
3333
|
+
publicKey: z.ZodString;
|
|
3334
|
+
transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
|
|
3335
|
+
counter: z.ZodNumber;
|
|
3336
|
+
agent: z.ZodString;
|
|
3337
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3338
|
+
}, "strip", z.ZodTypeAny, {
|
|
3339
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
3340
|
+
credentialId: string;
|
|
3341
|
+
publicKey: string;
|
|
3342
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
3343
|
+
counter: number;
|
|
3344
|
+
agent: string;
|
|
3345
|
+
name?: string | undefined;
|
|
3346
|
+
}, {
|
|
3347
|
+
type: import("../../foundations/index.js").MfaFactor.WebAuthn;
|
|
3348
|
+
credentialId: string;
|
|
3349
|
+
publicKey: string;
|
|
3350
|
+
transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
|
|
3351
|
+
counter: number;
|
|
3352
|
+
agent: string;
|
|
3353
|
+
name?: string | undefined;
|
|
3354
|
+
}>>;
|
|
3355
|
+
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
|
|
3356
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3357
|
+
id: string;
|
|
3358
|
+
userId: string;
|
|
3359
|
+
verified: boolean;
|
|
3360
|
+
}, {
|
|
3361
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3362
|
+
id: string;
|
|
3363
|
+
userId: string;
|
|
3364
|
+
verified: boolean;
|
|
3365
|
+
}>, z.ZodObject<{
|
|
3366
|
+
id: z.ZodString;
|
|
3367
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.OneTimeToken>;
|
|
3368
|
+
verified: z.ZodBoolean;
|
|
3369
|
+
identifier: z.ZodObject<{
|
|
3370
|
+
type: z.ZodLiteral<import("../../foundations/index.js").SignInIdentifier.Email>;
|
|
3371
|
+
value: z.ZodString;
|
|
3372
|
+
}, "strip", z.ZodTypeAny, {
|
|
3373
|
+
value: string;
|
|
3374
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3375
|
+
}, {
|
|
3376
|
+
value: string;
|
|
3377
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3378
|
+
}>;
|
|
3379
|
+
oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
|
|
3380
|
+
jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3381
|
+
}, "strip", z.ZodTypeAny, {
|
|
3382
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3383
|
+
}, {
|
|
3384
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3385
|
+
}>>;
|
|
3386
|
+
}, "strip", z.ZodTypeAny, {
|
|
3387
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3388
|
+
id: string;
|
|
3389
|
+
identifier: {
|
|
3390
|
+
value: string;
|
|
3391
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3392
|
+
};
|
|
3393
|
+
verified: boolean;
|
|
3394
|
+
oneTimeTokenContext?: {
|
|
3395
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3396
|
+
} | undefined;
|
|
3397
|
+
}, {
|
|
3398
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3399
|
+
id: string;
|
|
3400
|
+
identifier: {
|
|
3401
|
+
value: string;
|
|
3402
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3403
|
+
};
|
|
3404
|
+
verified: boolean;
|
|
3405
|
+
oneTimeTokenContext?: {
|
|
3406
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3407
|
+
} | undefined;
|
|
3408
|
+
}>, z.ZodObject<Omit<{
|
|
3409
|
+
id: z.ZodString;
|
|
3410
|
+
type: z.ZodLiteral<import("../index.js").VerificationType.NewPasswordIdentity>;
|
|
3411
|
+
identifier: z.ZodObject<{
|
|
3412
|
+
type: z.ZodNativeEnum<typeof import("../../foundations/index.js").SignInIdentifier>;
|
|
3413
|
+
value: z.ZodString;
|
|
3414
|
+
}, "strip", z.ZodTypeAny, {
|
|
3415
|
+
value: string;
|
|
3416
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3417
|
+
}, {
|
|
3418
|
+
value: string;
|
|
3419
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3420
|
+
}>;
|
|
3421
|
+
passwordEncrypted: z.ZodOptional<z.ZodString>;
|
|
3422
|
+
passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../../db-entries/custom-types.js").UsersPasswordEncryptionMethod.Argon2i>>;
|
|
3423
|
+
}, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
|
|
3424
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3425
|
+
id: string;
|
|
3426
|
+
identifier: {
|
|
3427
|
+
value: string;
|
|
3428
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3429
|
+
};
|
|
3430
|
+
}, {
|
|
3431
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3432
|
+
id: string;
|
|
3433
|
+
identifier: {
|
|
3434
|
+
value: string;
|
|
3435
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3436
|
+
};
|
|
3437
|
+
}>]>, "many">>;
|
|
3438
|
+
}, "strip", z.ZodTypeAny, {
|
|
3439
|
+
userId?: string | undefined;
|
|
3440
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3441
|
+
verificationRecords?: ({
|
|
3442
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3443
|
+
id: string;
|
|
3444
|
+
userId: string;
|
|
3445
|
+
code?: string | undefined;
|
|
3446
|
+
} | {
|
|
3447
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3448
|
+
id: string;
|
|
3449
|
+
identifier: {
|
|
3450
|
+
value: string;
|
|
3451
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3452
|
+
};
|
|
3453
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3454
|
+
verified: boolean;
|
|
3455
|
+
} | {
|
|
3456
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3457
|
+
id: string;
|
|
3458
|
+
identifier: {
|
|
3459
|
+
value: string;
|
|
3460
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3461
|
+
};
|
|
3462
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3463
|
+
verified: boolean;
|
|
3464
|
+
} | {
|
|
3465
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3466
|
+
id: string;
|
|
3467
|
+
identifier: {
|
|
3468
|
+
value: string;
|
|
3469
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3470
|
+
};
|
|
3471
|
+
} | {
|
|
3472
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3473
|
+
id: string;
|
|
3474
|
+
identifier: {
|
|
3475
|
+
value: string;
|
|
3476
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3477
|
+
};
|
|
3478
|
+
verified: boolean;
|
|
3479
|
+
oneTimeTokenContext?: {
|
|
3480
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3481
|
+
} | undefined;
|
|
3482
|
+
} | {
|
|
3483
|
+
type: import("../index.js").VerificationType.Password;
|
|
3484
|
+
id: string;
|
|
3485
|
+
identifier: {
|
|
3486
|
+
value: string;
|
|
3487
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3488
|
+
};
|
|
3489
|
+
verified: boolean;
|
|
3490
|
+
} | {
|
|
3491
|
+
type: import("../index.js").VerificationType.Social;
|
|
3492
|
+
id: string;
|
|
3493
|
+
connectorId: string;
|
|
3494
|
+
socialUserInfo?: {
|
|
3495
|
+
id: string;
|
|
3496
|
+
name?: string | undefined;
|
|
3497
|
+
email?: string | undefined;
|
|
3498
|
+
phone?: string | undefined;
|
|
3499
|
+
avatar?: string | undefined;
|
|
3500
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3501
|
+
} | undefined;
|
|
3502
|
+
} | {
|
|
3503
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3504
|
+
id: string;
|
|
3505
|
+
userId: string;
|
|
3506
|
+
verified: boolean;
|
|
3507
|
+
} | {
|
|
3508
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3509
|
+
id: string;
|
|
3510
|
+
userId: string;
|
|
3511
|
+
verified: boolean;
|
|
3512
|
+
} | {
|
|
3513
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3514
|
+
id: string;
|
|
3515
|
+
connectorId: string;
|
|
3516
|
+
issuer?: string | undefined;
|
|
3517
|
+
enterpriseSsoUserInfo?: {
|
|
3518
|
+
id: string;
|
|
3519
|
+
name?: string | undefined;
|
|
3520
|
+
email?: string | undefined;
|
|
3521
|
+
phone?: string | undefined;
|
|
3522
|
+
avatar?: string | undefined;
|
|
3523
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3524
|
+
} | undefined;
|
|
3525
|
+
})[] | undefined;
|
|
3526
|
+
}, {
|
|
3527
|
+
userId?: string | undefined;
|
|
3528
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3529
|
+
verificationRecords?: ({
|
|
3530
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3531
|
+
id: string;
|
|
3532
|
+
userId: string;
|
|
3533
|
+
code?: string | undefined;
|
|
3534
|
+
} | {
|
|
3535
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3536
|
+
id: string;
|
|
3537
|
+
identifier: {
|
|
3538
|
+
value: string;
|
|
3539
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3540
|
+
};
|
|
3541
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3542
|
+
verified: boolean;
|
|
3543
|
+
} | {
|
|
3544
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3545
|
+
id: string;
|
|
3546
|
+
identifier: {
|
|
3547
|
+
value: string;
|
|
3548
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3549
|
+
};
|
|
3550
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3551
|
+
verified: boolean;
|
|
3552
|
+
} | {
|
|
3553
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3554
|
+
id: string;
|
|
3555
|
+
identifier: {
|
|
3556
|
+
value: string;
|
|
3557
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3558
|
+
};
|
|
3559
|
+
} | {
|
|
3560
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3561
|
+
id: string;
|
|
3562
|
+
identifier: {
|
|
3563
|
+
value: string;
|
|
3564
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3565
|
+
};
|
|
3566
|
+
verified: boolean;
|
|
3567
|
+
oneTimeTokenContext?: {
|
|
3568
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3569
|
+
} | undefined;
|
|
3570
|
+
} | {
|
|
3571
|
+
type: import("../index.js").VerificationType.Password;
|
|
3572
|
+
id: string;
|
|
3573
|
+
identifier: {
|
|
3574
|
+
value: string;
|
|
3575
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3576
|
+
};
|
|
3577
|
+
verified: boolean;
|
|
3578
|
+
} | {
|
|
3579
|
+
type: import("../index.js").VerificationType.Social;
|
|
3580
|
+
id: string;
|
|
3581
|
+
connectorId: string;
|
|
3582
|
+
socialUserInfo?: {
|
|
3583
|
+
id: string;
|
|
3584
|
+
name?: string | undefined;
|
|
3585
|
+
email?: string | undefined;
|
|
3586
|
+
phone?: string | undefined;
|
|
3587
|
+
avatar?: string | undefined;
|
|
3588
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3589
|
+
} | undefined;
|
|
3590
|
+
} | {
|
|
3591
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3592
|
+
id: string;
|
|
3593
|
+
userId: string;
|
|
3594
|
+
verified: boolean;
|
|
3595
|
+
} | {
|
|
3596
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3597
|
+
id: string;
|
|
3598
|
+
userId: string;
|
|
3599
|
+
verified: boolean;
|
|
3600
|
+
} | {
|
|
3601
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3602
|
+
id: string;
|
|
3603
|
+
connectorId: string;
|
|
3604
|
+
issuer?: string | undefined;
|
|
3605
|
+
enterpriseSsoUserInfo?: {
|
|
3606
|
+
id: string;
|
|
3607
|
+
name?: string | undefined;
|
|
3608
|
+
email?: string | undefined;
|
|
3609
|
+
phone?: string | undefined;
|
|
3610
|
+
avatar?: string | undefined;
|
|
3611
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3612
|
+
} | undefined;
|
|
3613
|
+
})[] | undefined;
|
|
3614
|
+
}>>;
|
|
1474
3615
|
}, "strip", z.ZodTypeAny, {
|
|
1475
3616
|
user: {
|
|
1476
3617
|
name?: string | null | undefined;
|
|
@@ -1544,6 +3685,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1544
3685
|
type?: GrantType.TokenExchange | undefined;
|
|
1545
3686
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1546
3687
|
} | undefined;
|
|
3688
|
+
interaction?: {
|
|
3689
|
+
userId?: string | undefined;
|
|
3690
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3691
|
+
verificationRecords?: ({
|
|
3692
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3693
|
+
id: string;
|
|
3694
|
+
userId: string;
|
|
3695
|
+
code?: string | undefined;
|
|
3696
|
+
} | {
|
|
3697
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3698
|
+
id: string;
|
|
3699
|
+
identifier: {
|
|
3700
|
+
value: string;
|
|
3701
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3702
|
+
};
|
|
3703
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3704
|
+
verified: boolean;
|
|
3705
|
+
} | {
|
|
3706
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3707
|
+
id: string;
|
|
3708
|
+
identifier: {
|
|
3709
|
+
value: string;
|
|
3710
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3711
|
+
};
|
|
3712
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3713
|
+
verified: boolean;
|
|
3714
|
+
} | {
|
|
3715
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3716
|
+
id: string;
|
|
3717
|
+
identifier: {
|
|
3718
|
+
value: string;
|
|
3719
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3720
|
+
};
|
|
3721
|
+
} | {
|
|
3722
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3723
|
+
id: string;
|
|
3724
|
+
identifier: {
|
|
3725
|
+
value: string;
|
|
3726
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3727
|
+
};
|
|
3728
|
+
verified: boolean;
|
|
3729
|
+
oneTimeTokenContext?: {
|
|
3730
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3731
|
+
} | undefined;
|
|
3732
|
+
} | {
|
|
3733
|
+
type: import("../index.js").VerificationType.Password;
|
|
3734
|
+
id: string;
|
|
3735
|
+
identifier: {
|
|
3736
|
+
value: string;
|
|
3737
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3738
|
+
};
|
|
3739
|
+
verified: boolean;
|
|
3740
|
+
} | {
|
|
3741
|
+
type: import("../index.js").VerificationType.Social;
|
|
3742
|
+
id: string;
|
|
3743
|
+
connectorId: string;
|
|
3744
|
+
socialUserInfo?: {
|
|
3745
|
+
id: string;
|
|
3746
|
+
name?: string | undefined;
|
|
3747
|
+
email?: string | undefined;
|
|
3748
|
+
phone?: string | undefined;
|
|
3749
|
+
avatar?: string | undefined;
|
|
3750
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
} | {
|
|
3753
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3754
|
+
id: string;
|
|
3755
|
+
userId: string;
|
|
3756
|
+
verified: boolean;
|
|
3757
|
+
} | {
|
|
3758
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3759
|
+
id: string;
|
|
3760
|
+
userId: string;
|
|
3761
|
+
verified: boolean;
|
|
3762
|
+
} | {
|
|
3763
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3764
|
+
id: string;
|
|
3765
|
+
connectorId: string;
|
|
3766
|
+
issuer?: string | undefined;
|
|
3767
|
+
enterpriseSsoUserInfo?: {
|
|
3768
|
+
id: string;
|
|
3769
|
+
name?: string | undefined;
|
|
3770
|
+
email?: string | undefined;
|
|
3771
|
+
phone?: string | undefined;
|
|
3772
|
+
avatar?: string | undefined;
|
|
3773
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3774
|
+
} | undefined;
|
|
3775
|
+
})[] | undefined;
|
|
3776
|
+
} | undefined;
|
|
1547
3777
|
}, {
|
|
1548
3778
|
user: {
|
|
1549
3779
|
name?: string | null | undefined;
|
|
@@ -1617,6 +3847,95 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1617
3847
|
type?: GrantType.TokenExchange | undefined;
|
|
1618
3848
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1619
3849
|
} | undefined;
|
|
3850
|
+
interaction?: {
|
|
3851
|
+
userId?: string | undefined;
|
|
3852
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
3853
|
+
verificationRecords?: ({
|
|
3854
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
3855
|
+
id: string;
|
|
3856
|
+
userId: string;
|
|
3857
|
+
code?: string | undefined;
|
|
3858
|
+
} | {
|
|
3859
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
3860
|
+
id: string;
|
|
3861
|
+
identifier: {
|
|
3862
|
+
value: string;
|
|
3863
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3864
|
+
};
|
|
3865
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3866
|
+
verified: boolean;
|
|
3867
|
+
} | {
|
|
3868
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
3869
|
+
id: string;
|
|
3870
|
+
identifier: {
|
|
3871
|
+
value: string;
|
|
3872
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
3873
|
+
};
|
|
3874
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
3875
|
+
verified: boolean;
|
|
3876
|
+
} | {
|
|
3877
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
3878
|
+
id: string;
|
|
3879
|
+
identifier: {
|
|
3880
|
+
value: string;
|
|
3881
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
3882
|
+
};
|
|
3883
|
+
} | {
|
|
3884
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
3885
|
+
id: string;
|
|
3886
|
+
identifier: {
|
|
3887
|
+
value: string;
|
|
3888
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
3889
|
+
};
|
|
3890
|
+
verified: boolean;
|
|
3891
|
+
oneTimeTokenContext?: {
|
|
3892
|
+
jitOrganizationIds?: string[] | undefined;
|
|
3893
|
+
} | undefined;
|
|
3894
|
+
} | {
|
|
3895
|
+
type: import("../index.js").VerificationType.Password;
|
|
3896
|
+
id: string;
|
|
3897
|
+
identifier: {
|
|
3898
|
+
value: string;
|
|
3899
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
3900
|
+
};
|
|
3901
|
+
verified: boolean;
|
|
3902
|
+
} | {
|
|
3903
|
+
type: import("../index.js").VerificationType.Social;
|
|
3904
|
+
id: string;
|
|
3905
|
+
connectorId: string;
|
|
3906
|
+
socialUserInfo?: {
|
|
3907
|
+
id: string;
|
|
3908
|
+
name?: string | undefined;
|
|
3909
|
+
email?: string | undefined;
|
|
3910
|
+
phone?: string | undefined;
|
|
3911
|
+
avatar?: string | undefined;
|
|
3912
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3913
|
+
} | undefined;
|
|
3914
|
+
} | {
|
|
3915
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
3916
|
+
id: string;
|
|
3917
|
+
userId: string;
|
|
3918
|
+
verified: boolean;
|
|
3919
|
+
} | {
|
|
3920
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
3921
|
+
id: string;
|
|
3922
|
+
userId: string;
|
|
3923
|
+
verified: boolean;
|
|
3924
|
+
} | {
|
|
3925
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
3926
|
+
id: string;
|
|
3927
|
+
connectorId: string;
|
|
3928
|
+
issuer?: string | undefined;
|
|
3929
|
+
enterpriseSsoUserInfo?: {
|
|
3930
|
+
id: string;
|
|
3931
|
+
name?: string | undefined;
|
|
3932
|
+
email?: string | undefined;
|
|
3933
|
+
phone?: string | undefined;
|
|
3934
|
+
avatar?: string | undefined;
|
|
3935
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
3936
|
+
} | undefined;
|
|
3937
|
+
})[] | undefined;
|
|
3938
|
+
} | undefined;
|
|
1620
3939
|
}>;
|
|
1621
3940
|
script: z.ZodString;
|
|
1622
3941
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1625,13 +3944,13 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1625
3944
|
token: {
|
|
1626
3945
|
grantId?: string | undefined;
|
|
1627
3946
|
scope?: string | undefined;
|
|
3947
|
+
sessionUid?: string | undefined;
|
|
1628
3948
|
accountId?: string | undefined;
|
|
3949
|
+
jti?: string | undefined;
|
|
1629
3950
|
expiresWithSession?: boolean | undefined;
|
|
1630
3951
|
gty?: string | undefined;
|
|
1631
|
-
sessionUid?: string | undefined;
|
|
1632
3952
|
sid?: string | undefined;
|
|
1633
3953
|
kind?: "AccessToken" | undefined;
|
|
1634
|
-
jti?: string | undefined;
|
|
1635
3954
|
aud?: string | string[] | undefined;
|
|
1636
3955
|
clientId?: string | undefined;
|
|
1637
3956
|
};
|
|
@@ -1708,21 +4027,110 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1708
4027
|
type?: GrantType.TokenExchange | undefined;
|
|
1709
4028
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1710
4029
|
} | undefined;
|
|
4030
|
+
interaction?: {
|
|
4031
|
+
userId?: string | undefined;
|
|
4032
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
4033
|
+
verificationRecords?: ({
|
|
4034
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
4035
|
+
id: string;
|
|
4036
|
+
userId: string;
|
|
4037
|
+
code?: string | undefined;
|
|
4038
|
+
} | {
|
|
4039
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
4040
|
+
id: string;
|
|
4041
|
+
identifier: {
|
|
4042
|
+
value: string;
|
|
4043
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
4044
|
+
};
|
|
4045
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
4046
|
+
verified: boolean;
|
|
4047
|
+
} | {
|
|
4048
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
4049
|
+
id: string;
|
|
4050
|
+
identifier: {
|
|
4051
|
+
value: string;
|
|
4052
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
4053
|
+
};
|
|
4054
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
4055
|
+
verified: boolean;
|
|
4056
|
+
} | {
|
|
4057
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
4058
|
+
id: string;
|
|
4059
|
+
identifier: {
|
|
4060
|
+
value: string;
|
|
4061
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
4062
|
+
};
|
|
4063
|
+
} | {
|
|
4064
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
4065
|
+
id: string;
|
|
4066
|
+
identifier: {
|
|
4067
|
+
value: string;
|
|
4068
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
4069
|
+
};
|
|
4070
|
+
verified: boolean;
|
|
4071
|
+
oneTimeTokenContext?: {
|
|
4072
|
+
jitOrganizationIds?: string[] | undefined;
|
|
4073
|
+
} | undefined;
|
|
4074
|
+
} | {
|
|
4075
|
+
type: import("../index.js").VerificationType.Password;
|
|
4076
|
+
id: string;
|
|
4077
|
+
identifier: {
|
|
4078
|
+
value: string;
|
|
4079
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
4080
|
+
};
|
|
4081
|
+
verified: boolean;
|
|
4082
|
+
} | {
|
|
4083
|
+
type: import("../index.js").VerificationType.Social;
|
|
4084
|
+
id: string;
|
|
4085
|
+
connectorId: string;
|
|
4086
|
+
socialUserInfo?: {
|
|
4087
|
+
id: string;
|
|
4088
|
+
name?: string | undefined;
|
|
4089
|
+
email?: string | undefined;
|
|
4090
|
+
phone?: string | undefined;
|
|
4091
|
+
avatar?: string | undefined;
|
|
4092
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
4093
|
+
} | undefined;
|
|
4094
|
+
} | {
|
|
4095
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
4096
|
+
id: string;
|
|
4097
|
+
userId: string;
|
|
4098
|
+
verified: boolean;
|
|
4099
|
+
} | {
|
|
4100
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
4101
|
+
id: string;
|
|
4102
|
+
userId: string;
|
|
4103
|
+
verified: boolean;
|
|
4104
|
+
} | {
|
|
4105
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
4106
|
+
id: string;
|
|
4107
|
+
connectorId: string;
|
|
4108
|
+
issuer?: string | undefined;
|
|
4109
|
+
enterpriseSsoUserInfo?: {
|
|
4110
|
+
id: string;
|
|
4111
|
+
name?: string | undefined;
|
|
4112
|
+
email?: string | undefined;
|
|
4113
|
+
phone?: string | undefined;
|
|
4114
|
+
avatar?: string | undefined;
|
|
4115
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
4116
|
+
} | undefined;
|
|
4117
|
+
})[] | undefined;
|
|
4118
|
+
} | undefined;
|
|
1711
4119
|
};
|
|
1712
|
-
script: string;
|
|
1713
4120
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
4121
|
+
script: string;
|
|
1714
4122
|
environmentVariables?: Record<string, string> | undefined;
|
|
1715
4123
|
}, {
|
|
1716
4124
|
token: {
|
|
1717
4125
|
grantId?: string | undefined;
|
|
1718
4126
|
scope?: string | undefined;
|
|
4127
|
+
sessionUid?: string | undefined;
|
|
1719
4128
|
accountId?: string | undefined;
|
|
4129
|
+
jti?: string | undefined;
|
|
1720
4130
|
expiresWithSession?: boolean | undefined;
|
|
1721
4131
|
gty?: string | undefined;
|
|
1722
|
-
sessionUid?: string | undefined;
|
|
1723
4132
|
sid?: string | undefined;
|
|
1724
4133
|
kind?: "AccessToken" | undefined;
|
|
1725
|
-
jti?: string | undefined;
|
|
1726
4134
|
aud?: string | string[] | undefined;
|
|
1727
4135
|
clientId?: string | undefined;
|
|
1728
4136
|
};
|
|
@@ -1799,9 +4207,98 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1799
4207
|
type?: GrantType.TokenExchange | undefined;
|
|
1800
4208
|
subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
|
|
1801
4209
|
} | undefined;
|
|
4210
|
+
interaction?: {
|
|
4211
|
+
userId?: string | undefined;
|
|
4212
|
+
interactionEvent?: InteractionEvent | undefined;
|
|
4213
|
+
verificationRecords?: ({
|
|
4214
|
+
type: import("../index.js").VerificationType.BackupCode;
|
|
4215
|
+
id: string;
|
|
4216
|
+
userId: string;
|
|
4217
|
+
code?: string | undefined;
|
|
4218
|
+
} | {
|
|
4219
|
+
type: import("../index.js").VerificationType.EmailVerificationCode;
|
|
4220
|
+
id: string;
|
|
4221
|
+
identifier: {
|
|
4222
|
+
value: string;
|
|
4223
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
4224
|
+
};
|
|
4225
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
4226
|
+
verified: boolean;
|
|
4227
|
+
} | {
|
|
4228
|
+
type: import("../index.js").VerificationType.PhoneVerificationCode;
|
|
4229
|
+
id: string;
|
|
4230
|
+
identifier: {
|
|
4231
|
+
value: string;
|
|
4232
|
+
type: import("../../foundations/index.js").SignInIdentifier.Phone;
|
|
4233
|
+
};
|
|
4234
|
+
templateType: import("@logto/connector-kit").TemplateType;
|
|
4235
|
+
verified: boolean;
|
|
4236
|
+
} | {
|
|
4237
|
+
type: import("../index.js").VerificationType.NewPasswordIdentity;
|
|
4238
|
+
id: string;
|
|
4239
|
+
identifier: {
|
|
4240
|
+
value: string;
|
|
4241
|
+
type: import("../../foundations/index.js").SignInIdentifier;
|
|
4242
|
+
};
|
|
4243
|
+
} | {
|
|
4244
|
+
type: import("../index.js").VerificationType.OneTimeToken;
|
|
4245
|
+
id: string;
|
|
4246
|
+
identifier: {
|
|
4247
|
+
value: string;
|
|
4248
|
+
type: import("../../foundations/index.js").SignInIdentifier.Email;
|
|
4249
|
+
};
|
|
4250
|
+
verified: boolean;
|
|
4251
|
+
oneTimeTokenContext?: {
|
|
4252
|
+
jitOrganizationIds?: string[] | undefined;
|
|
4253
|
+
} | undefined;
|
|
4254
|
+
} | {
|
|
4255
|
+
type: import("../index.js").VerificationType.Password;
|
|
4256
|
+
id: string;
|
|
4257
|
+
identifier: {
|
|
4258
|
+
value: string;
|
|
4259
|
+
type: import("../../foundations/index.js").SignInIdentifier | import("../../foundations/index.js").AdditionalIdentifier;
|
|
4260
|
+
};
|
|
4261
|
+
verified: boolean;
|
|
4262
|
+
} | {
|
|
4263
|
+
type: import("../index.js").VerificationType.Social;
|
|
4264
|
+
id: string;
|
|
4265
|
+
connectorId: string;
|
|
4266
|
+
socialUserInfo?: {
|
|
4267
|
+
id: string;
|
|
4268
|
+
name?: string | undefined;
|
|
4269
|
+
email?: string | undefined;
|
|
4270
|
+
phone?: string | undefined;
|
|
4271
|
+
avatar?: string | undefined;
|
|
4272
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
4273
|
+
} | undefined;
|
|
4274
|
+
} | {
|
|
4275
|
+
type: import("../index.js").VerificationType.TOTP;
|
|
4276
|
+
id: string;
|
|
4277
|
+
userId: string;
|
|
4278
|
+
verified: boolean;
|
|
4279
|
+
} | {
|
|
4280
|
+
type: import("../index.js").VerificationType.WebAuthn;
|
|
4281
|
+
id: string;
|
|
4282
|
+
userId: string;
|
|
4283
|
+
verified: boolean;
|
|
4284
|
+
} | {
|
|
4285
|
+
type: import("../index.js").VerificationType.EnterpriseSso;
|
|
4286
|
+
id: string;
|
|
4287
|
+
connectorId: string;
|
|
4288
|
+
issuer?: string | undefined;
|
|
4289
|
+
enterpriseSsoUserInfo?: {
|
|
4290
|
+
id: string;
|
|
4291
|
+
name?: string | undefined;
|
|
4292
|
+
email?: string | undefined;
|
|
4293
|
+
phone?: string | undefined;
|
|
4294
|
+
avatar?: string | undefined;
|
|
4295
|
+
rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
|
|
4296
|
+
} | undefined;
|
|
4297
|
+
})[] | undefined;
|
|
4298
|
+
} | undefined;
|
|
1802
4299
|
};
|
|
1803
|
-
script: string;
|
|
1804
4300
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
4301
|
+
script: string;
|
|
1805
4302
|
environmentVariables?: Record<string, string> | undefined;
|
|
1806
4303
|
}>, z.ZodObject<{
|
|
1807
4304
|
token: z.ZodObject<{
|
|
@@ -1812,14 +4309,14 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1812
4309
|
clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1813
4310
|
}, "strict", z.ZodTypeAny, {
|
|
1814
4311
|
scope?: string | undefined;
|
|
1815
|
-
kind?: "ClientCredentials" | undefined;
|
|
1816
4312
|
jti?: string | undefined;
|
|
4313
|
+
kind?: "ClientCredentials" | undefined;
|
|
1817
4314
|
aud?: string | string[] | undefined;
|
|
1818
4315
|
clientId?: string | undefined;
|
|
1819
4316
|
}, {
|
|
1820
4317
|
scope?: string | undefined;
|
|
1821
|
-
kind?: "ClientCredentials" | undefined;
|
|
1822
4318
|
jti?: string | undefined;
|
|
4319
|
+
kind?: "ClientCredentials" | undefined;
|
|
1823
4320
|
aud?: string | string[] | undefined;
|
|
1824
4321
|
clientId?: string | undefined;
|
|
1825
4322
|
}>;
|
|
@@ -1829,24 +4326,24 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
|
|
|
1829
4326
|
}, "strip", z.ZodTypeAny, {
|
|
1830
4327
|
token: {
|
|
1831
4328
|
scope?: string | undefined;
|
|
1832
|
-
kind?: "ClientCredentials" | undefined;
|
|
1833
4329
|
jti?: string | undefined;
|
|
4330
|
+
kind?: "ClientCredentials" | undefined;
|
|
1834
4331
|
aud?: string | string[] | undefined;
|
|
1835
4332
|
clientId?: string | undefined;
|
|
1836
4333
|
};
|
|
1837
|
-
script: string;
|
|
1838
4334
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
4335
|
+
script: string;
|
|
1839
4336
|
environmentVariables?: Record<string, string> | undefined;
|
|
1840
4337
|
}, {
|
|
1841
4338
|
token: {
|
|
1842
4339
|
scope?: string | undefined;
|
|
1843
|
-
kind?: "ClientCredentials" | undefined;
|
|
1844
4340
|
jti?: string | undefined;
|
|
4341
|
+
kind?: "ClientCredentials" | undefined;
|
|
1845
4342
|
aud?: string | string[] | undefined;
|
|
1846
4343
|
clientId?: string | undefined;
|
|
1847
4344
|
};
|
|
1848
|
-
script: string;
|
|
1849
4345
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
4346
|
+
script: string;
|
|
1850
4347
|
environmentVariables?: Record<string, string> | undefined;
|
|
1851
4348
|
}>]>;
|
|
1852
4349
|
export type JwtCustomizerTestRequestBody = z.infer<typeof jwtCustomizerTestRequestBodyGuard>;
|
|
@@ -1861,14 +4358,14 @@ export declare const customJwtFetcherGuard: z.ZodDiscriminatedUnion<"tokenType",
|
|
|
1861
4358
|
}, "strip", z.ZodTypeAny, {
|
|
1862
4359
|
token: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1863
4360
|
context: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1864
|
-
script: string;
|
|
1865
4361
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
4362
|
+
script: string;
|
|
1866
4363
|
environmentVariables?: Record<string, string> | undefined;
|
|
1867
4364
|
}, {
|
|
1868
4365
|
token: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1869
4366
|
context: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1870
|
-
script: string;
|
|
1871
4367
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
4368
|
+
script: string;
|
|
1872
4369
|
environmentVariables?: Record<string, string> | undefined;
|
|
1873
4370
|
}>, z.ZodObject<{
|
|
1874
4371
|
script: z.ZodString;
|
|
@@ -1879,13 +4376,13 @@ export declare const customJwtFetcherGuard: z.ZodDiscriminatedUnion<"tokenType",
|
|
|
1879
4376
|
tokenType: z.ZodLiteral<LogtoJwtTokenKeyType.ClientCredentials>;
|
|
1880
4377
|
}, "strip", z.ZodTypeAny, {
|
|
1881
4378
|
token: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1882
|
-
script: string;
|
|
1883
4379
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
4380
|
+
script: string;
|
|
1884
4381
|
environmentVariables?: Record<string, string> | undefined;
|
|
1885
4382
|
}, {
|
|
1886
4383
|
token: Record<string, import("@withtyped/server/lib/types.js").Json>;
|
|
1887
|
-
script: string;
|
|
1888
4384
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
4385
|
+
script: string;
|
|
1889
4386
|
environmentVariables?: Record<string, string> | undefined;
|
|
1890
4387
|
}>]>;
|
|
1891
4388
|
export type CustomJwtFetcher = z.infer<typeof customJwtFetcherGuard>;
|