@logto/schemas 1.37.1 → 1.38.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.38.0-1772615848-add-oidc-model-instances-grant-id-partial-index.ts +26 -0
- package/alterations/1.38.0-1772619963-tune-oidc-model-instances-autovacuum.ts +28 -0
- package/alterations/1.38.0-1772621060-add-oidc-model-instances-grant-account-id-index.ts +26 -0
- package/alterations-js/1.38.0-1772615848-add-oidc-model-instances-grant-id-partial-index.js +22 -0
- package/alterations-js/1.38.0-1772619963-tune-oidc-model-instances-autovacuum.js +24 -0
- package/alterations-js/1.38.0-1772621060-add-oidc-model-instances-grant-account-id-index.js +22 -0
- package/lib/consts/cookie.d.ts +1 -0
- package/lib/consts/cookie.js +1 -0
- package/lib/consts/experience.d.ts +1 -0
- package/lib/consts/experience.js +1 -0
- package/lib/consts/oidc.d.ts +3 -0
- package/lib/consts/oidc.js +3 -0
- package/lib/consts/system.d.ts +4 -0
- package/lib/consts/system.js +4 -0
- package/lib/foundations/jsonb-types/oidc-module.d.ts +26 -7
- package/lib/foundations/jsonb-types/oidc-module.js +16 -1
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +10 -6
- package/lib/foundations/jsonb-types/sign-in-experience.js +6 -2
- package/lib/seeds/application.d.ts +3 -1
- package/lib/seeds/application.js +26 -1
- package/lib/types/application.d.ts +12 -0
- package/lib/types/connector.d.ts +8 -0
- package/lib/types/consent.d.ts +11 -3
- package/lib/types/consent.js +2 -1
- package/lib/types/log/interaction.d.ts +4 -2
- package/lib/types/log/interaction.js +2 -0
- package/lib/types/log/token.d.ts +5 -3
- package/lib/types/log/token.js +2 -0
- package/lib/types/logto-config/index.d.ts +276 -13
- package/lib/types/logto-config/index.js +6 -0
- package/lib/types/logto-config/jwt-customizer.d.ts +778 -253
- package/lib/types/logto-config/jwt-customizer.js +7 -3
- package/lib/types/oidc-config.d.ts +2 -1
- package/lib/types/oidc-config.js +1 -0
- package/lib/types/sign-in-experience.d.ts +6 -2
- package/lib/types/user-logto-config.d.ts +38 -0
- package/lib/types/user-logto-config.js +13 -0
- package/lib/types/user-sessions.d.ts +712 -112
- package/lib/types/user-sessions.js +33 -2
- package/lib/types/verification-records/verification-type.d.ts +1 -1
- package/lib/types/verification-records/verification-type.js +1 -1
- package/lib/types/verification-records/web-authn-verification.d.ts +11 -11
- package/lib/types/verification-records/web-authn-verification.js +3 -3
- package/package.json +8 -7
- package/tables/oidc_model_instances.sql +16 -0
|
@@ -28,13 +28,17 @@ export declare const userSessionSignInContextGuard: z.ZodObject<{
|
|
|
28
28
|
botVerified: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, z.ZodString, "strip">>;
|
|
30
30
|
export type UserSessionSignInContext = z.infer<typeof userSessionSignInContextGuard>;
|
|
31
|
+
export declare enum SessionGrantRevokeTarget {
|
|
32
|
+
All = "all",
|
|
33
|
+
FirstParty = "firstParty"
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Public session shape for session management APIs.
|
|
37
|
+
*
|
|
38
|
+
* We intentionally expose only fields needed by management/account-center session views and actions.
|
|
39
|
+
* Internal OIDC storage fields (e.g. `tenantId`, `id`, `consumedAt`) are omitted on purpose.
|
|
40
|
+
*/
|
|
31
41
|
export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
32
|
-
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
33
|
-
modelName: z.ZodType<string, z.ZodTypeDef, string>;
|
|
34
|
-
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
35
|
-
expiresAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
36
|
-
consumedAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
37
|
-
} & {
|
|
38
42
|
payload: z.ZodObject<{
|
|
39
43
|
exp: z.ZodNumber;
|
|
40
44
|
iat: z.ZodNumber;
|
|
@@ -43,7 +47,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
43
47
|
kind: z.ZodLiteral<"Session">;
|
|
44
48
|
loginTs: z.ZodNumber;
|
|
45
49
|
accountId: z.ZodString;
|
|
46
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
50
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
47
51
|
sid: z.ZodOptional<z.ZodString>;
|
|
48
52
|
grantId: z.ZodOptional<z.ZodString>;
|
|
49
53
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -55,7 +59,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
55
59
|
sid: z.ZodOptional<z.ZodString>;
|
|
56
60
|
grantId: z.ZodOptional<z.ZodString>;
|
|
57
61
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
}, z.ZodUnknown, "strip"
|
|
62
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
59
63
|
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
60
64
|
exp: z.ZodNumber;
|
|
61
65
|
iat: z.ZodNumber;
|
|
@@ -64,7 +68,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
64
68
|
kind: z.ZodLiteral<"Session">;
|
|
65
69
|
loginTs: z.ZodNumber;
|
|
66
70
|
accountId: z.ZodString;
|
|
67
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
71
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
68
72
|
sid: z.ZodOptional<z.ZodString>;
|
|
69
73
|
grantId: z.ZodOptional<z.ZodString>;
|
|
70
74
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -76,7 +80,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
76
80
|
sid: z.ZodOptional<z.ZodString>;
|
|
77
81
|
grantId: z.ZodOptional<z.ZodString>;
|
|
78
82
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
}, z.ZodUnknown, "strip"
|
|
83
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
80
84
|
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
81
85
|
exp: z.ZodNumber;
|
|
82
86
|
iat: z.ZodNumber;
|
|
@@ -85,7 +89,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
85
89
|
kind: z.ZodLiteral<"Session">;
|
|
86
90
|
loginTs: z.ZodNumber;
|
|
87
91
|
accountId: z.ZodString;
|
|
88
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
92
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
93
|
sid: z.ZodOptional<z.ZodString>;
|
|
90
94
|
grantId: z.ZodOptional<z.ZodString>;
|
|
91
95
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -97,7 +101,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
97
101
|
sid: z.ZodOptional<z.ZodString>;
|
|
98
102
|
grantId: z.ZodOptional<z.ZodString>;
|
|
99
103
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
}, z.ZodUnknown, "strip"
|
|
104
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
101
105
|
}, z.ZodUnknown, "strip">>;
|
|
102
106
|
lastSubmission: z.ZodNullable<z.ZodObject<{
|
|
103
107
|
interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
|
|
@@ -200,6 +204,74 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
200
204
|
};
|
|
201
205
|
templateType: import("../foundations/index.js").TemplateType;
|
|
202
206
|
verified: boolean;
|
|
207
|
+
}>, z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
210
|
+
verified: z.ZodBoolean;
|
|
211
|
+
} & {
|
|
212
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
|
|
213
|
+
identifier: z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
|
|
215
|
+
value: z.ZodString;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
value: string;
|
|
218
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
219
|
+
}, {
|
|
220
|
+
value: string;
|
|
221
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
222
|
+
}>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
225
|
+
id: string;
|
|
226
|
+
identifier: {
|
|
227
|
+
value: string;
|
|
228
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
229
|
+
};
|
|
230
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
231
|
+
verified: boolean;
|
|
232
|
+
}, {
|
|
233
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
234
|
+
id: string;
|
|
235
|
+
identifier: {
|
|
236
|
+
value: string;
|
|
237
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
238
|
+
};
|
|
239
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
240
|
+
verified: boolean;
|
|
241
|
+
}>, z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
244
|
+
verified: z.ZodBoolean;
|
|
245
|
+
} & {
|
|
246
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
|
|
247
|
+
identifier: z.ZodObject<{
|
|
248
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
|
|
249
|
+
value: z.ZodString;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
value: string;
|
|
252
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
253
|
+
}, {
|
|
254
|
+
value: string;
|
|
255
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
256
|
+
}>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
259
|
+
id: string;
|
|
260
|
+
identifier: {
|
|
261
|
+
value: string;
|
|
262
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
263
|
+
};
|
|
264
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
265
|
+
verified: boolean;
|
|
266
|
+
}, {
|
|
267
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
268
|
+
id: string;
|
|
269
|
+
identifier: {
|
|
270
|
+
value: string;
|
|
271
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
272
|
+
};
|
|
273
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
274
|
+
verified: boolean;
|
|
203
275
|
}>, z.ZodObject<Omit<{
|
|
204
276
|
id: z.ZodString;
|
|
205
277
|
connectorId: z.ZodString;
|
|
@@ -477,17 +549,17 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
477
549
|
name?: string | undefined;
|
|
478
550
|
}>>;
|
|
479
551
|
} & {
|
|
480
|
-
type: z.ZodLiteral<import("./index.js").VerificationType.
|
|
552
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.SignInPasskey>;
|
|
481
553
|
userId: z.ZodOptional<z.ZodString>;
|
|
482
554
|
authenticationRpId: z.ZodOptional<z.ZodString>;
|
|
483
555
|
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
|
|
484
|
-
type: import("./index.js").VerificationType.
|
|
556
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
485
557
|
id: string;
|
|
486
558
|
verified: boolean;
|
|
487
559
|
userId?: string | undefined;
|
|
488
560
|
registrationRpId?: string | undefined;
|
|
489
561
|
}, {
|
|
490
|
-
type: import("./index.js").VerificationType.
|
|
562
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
491
563
|
id: string;
|
|
492
564
|
verified: boolean;
|
|
493
565
|
userId?: string | undefined;
|
|
@@ -592,6 +664,24 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
592
664
|
};
|
|
593
665
|
templateType: import("../foundations/index.js").TemplateType;
|
|
594
666
|
verified: boolean;
|
|
667
|
+
} | {
|
|
668
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
669
|
+
id: string;
|
|
670
|
+
identifier: {
|
|
671
|
+
value: string;
|
|
672
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
673
|
+
};
|
|
674
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
675
|
+
verified: boolean;
|
|
676
|
+
} | {
|
|
677
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
678
|
+
id: string;
|
|
679
|
+
identifier: {
|
|
680
|
+
value: string;
|
|
681
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
682
|
+
};
|
|
683
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
684
|
+
verified: boolean;
|
|
595
685
|
} | {
|
|
596
686
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
597
687
|
id: string;
|
|
@@ -655,7 +745,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
655
745
|
verified: boolean;
|
|
656
746
|
registrationRpId?: string | undefined;
|
|
657
747
|
} | {
|
|
658
|
-
type: import("./index.js").VerificationType.
|
|
748
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
659
749
|
id: string;
|
|
660
750
|
verified: boolean;
|
|
661
751
|
userId?: string | undefined;
|
|
@@ -688,6 +778,24 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
688
778
|
};
|
|
689
779
|
templateType: import("../foundations/index.js").TemplateType;
|
|
690
780
|
verified: boolean;
|
|
781
|
+
} | {
|
|
782
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
783
|
+
id: string;
|
|
784
|
+
identifier: {
|
|
785
|
+
value: string;
|
|
786
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
787
|
+
};
|
|
788
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
789
|
+
verified: boolean;
|
|
790
|
+
} | {
|
|
791
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
792
|
+
id: string;
|
|
793
|
+
identifier: {
|
|
794
|
+
value: string;
|
|
795
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
796
|
+
};
|
|
797
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
798
|
+
verified: boolean;
|
|
691
799
|
} | {
|
|
692
800
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
693
801
|
id: string;
|
|
@@ -751,7 +859,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
751
859
|
verified: boolean;
|
|
752
860
|
registrationRpId?: string | undefined;
|
|
753
861
|
} | {
|
|
754
|
-
type: import("./index.js").VerificationType.
|
|
862
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
755
863
|
id: string;
|
|
756
864
|
verified: boolean;
|
|
757
865
|
userId?: string | undefined;
|
|
@@ -761,9 +869,8 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
761
869
|
}>>;
|
|
762
870
|
clientId: z.ZodNullable<z.ZodString>;
|
|
763
871
|
accountId: z.ZodNullable<z.ZodString>;
|
|
872
|
+
expiresAt: z.ZodNumber;
|
|
764
873
|
}, "strip", z.ZodTypeAny, {
|
|
765
|
-
id: string;
|
|
766
|
-
tenantId: string;
|
|
767
874
|
accountId: string | null;
|
|
768
875
|
expiresAt: number;
|
|
769
876
|
payload: {
|
|
@@ -774,16 +881,14 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
774
881
|
kind: "Session";
|
|
775
882
|
loginTs: number;
|
|
776
883
|
accountId: string;
|
|
777
|
-
authorizations
|
|
884
|
+
authorizations?: Record<string, z.objectOutputType<{
|
|
778
885
|
sid: z.ZodOptional<z.ZodString>;
|
|
779
886
|
grantId: z.ZodOptional<z.ZodString>;
|
|
780
887
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
781
|
-
}, z.ZodUnknown, "strip"
|
|
888
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
782
889
|
} & {
|
|
783
890
|
[k: string]: unknown;
|
|
784
891
|
};
|
|
785
|
-
modelName: string;
|
|
786
|
-
consumedAt: number | null;
|
|
787
892
|
lastSubmission: {
|
|
788
893
|
userId: string;
|
|
789
894
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -810,6 +915,24 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
810
915
|
};
|
|
811
916
|
templateType: import("../foundations/index.js").TemplateType;
|
|
812
917
|
verified: boolean;
|
|
918
|
+
} | {
|
|
919
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
920
|
+
id: string;
|
|
921
|
+
identifier: {
|
|
922
|
+
value: string;
|
|
923
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
924
|
+
};
|
|
925
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
926
|
+
verified: boolean;
|
|
927
|
+
} | {
|
|
928
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
929
|
+
id: string;
|
|
930
|
+
identifier: {
|
|
931
|
+
value: string;
|
|
932
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
933
|
+
};
|
|
934
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
935
|
+
verified: boolean;
|
|
813
936
|
} | {
|
|
814
937
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
815
938
|
id: string;
|
|
@@ -873,7 +996,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
873
996
|
verified: boolean;
|
|
874
997
|
registrationRpId?: string | undefined;
|
|
875
998
|
} | {
|
|
876
|
-
type: import("./index.js").VerificationType.
|
|
999
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
877
1000
|
id: string;
|
|
878
1001
|
verified: boolean;
|
|
879
1002
|
userId?: string | undefined;
|
|
@@ -883,8 +1006,6 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
883
1006
|
} | null;
|
|
884
1007
|
clientId: string | null;
|
|
885
1008
|
}, {
|
|
886
|
-
id: string;
|
|
887
|
-
tenantId: string;
|
|
888
1009
|
accountId: string | null;
|
|
889
1010
|
expiresAt: number;
|
|
890
1011
|
payload: {
|
|
@@ -895,16 +1016,14 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
895
1016
|
kind: "Session";
|
|
896
1017
|
loginTs: number;
|
|
897
1018
|
accountId: string;
|
|
898
|
-
authorizations
|
|
1019
|
+
authorizations?: Record<string, z.objectInputType<{
|
|
899
1020
|
sid: z.ZodOptional<z.ZodString>;
|
|
900
1021
|
grantId: z.ZodOptional<z.ZodString>;
|
|
901
1022
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
-
}, z.ZodUnknown, "strip"
|
|
1023
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
903
1024
|
} & {
|
|
904
1025
|
[k: string]: unknown;
|
|
905
1026
|
};
|
|
906
|
-
modelName: string;
|
|
907
|
-
consumedAt: number | null;
|
|
908
1027
|
lastSubmission: {
|
|
909
1028
|
userId: string;
|
|
910
1029
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -931,6 +1050,24 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
931
1050
|
};
|
|
932
1051
|
templateType: import("../foundations/index.js").TemplateType;
|
|
933
1052
|
verified: boolean;
|
|
1053
|
+
} | {
|
|
1054
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1055
|
+
id: string;
|
|
1056
|
+
identifier: {
|
|
1057
|
+
value: string;
|
|
1058
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1059
|
+
};
|
|
1060
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1061
|
+
verified: boolean;
|
|
1062
|
+
} | {
|
|
1063
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1064
|
+
id: string;
|
|
1065
|
+
identifier: {
|
|
1066
|
+
value: string;
|
|
1067
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1068
|
+
};
|
|
1069
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1070
|
+
verified: boolean;
|
|
934
1071
|
} | {
|
|
935
1072
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
936
1073
|
id: string;
|
|
@@ -994,7 +1131,7 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
994
1131
|
verified: boolean;
|
|
995
1132
|
registrationRpId?: string | undefined;
|
|
996
1133
|
} | {
|
|
997
|
-
type: import("./index.js").VerificationType.
|
|
1134
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
998
1135
|
id: string;
|
|
999
1136
|
verified: boolean;
|
|
1000
1137
|
userId?: string | undefined;
|
|
@@ -1006,12 +1143,6 @@ export declare const userExtendedSessionGuard: z.ZodObject<{
|
|
|
1006
1143
|
}>;
|
|
1007
1144
|
export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
1008
1145
|
sessions: z.ZodArray<z.ZodObject<{
|
|
1009
|
-
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1010
|
-
modelName: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1011
|
-
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1012
|
-
expiresAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
1013
|
-
consumedAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
1014
|
-
} & {
|
|
1015
1146
|
payload: z.ZodObject<{
|
|
1016
1147
|
exp: z.ZodNumber;
|
|
1017
1148
|
iat: z.ZodNumber;
|
|
@@ -1020,7 +1151,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1020
1151
|
kind: z.ZodLiteral<"Session">;
|
|
1021
1152
|
loginTs: z.ZodNumber;
|
|
1022
1153
|
accountId: z.ZodString;
|
|
1023
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1154
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1024
1155
|
sid: z.ZodOptional<z.ZodString>;
|
|
1025
1156
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1026
1157
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1032,7 +1163,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1032
1163
|
sid: z.ZodOptional<z.ZodString>;
|
|
1033
1164
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1034
1165
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
1035
|
-
}, z.ZodUnknown, "strip"
|
|
1166
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
1036
1167
|
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
1037
1168
|
exp: z.ZodNumber;
|
|
1038
1169
|
iat: z.ZodNumber;
|
|
@@ -1041,7 +1172,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1041
1172
|
kind: z.ZodLiteral<"Session">;
|
|
1042
1173
|
loginTs: z.ZodNumber;
|
|
1043
1174
|
accountId: z.ZodString;
|
|
1044
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1175
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1045
1176
|
sid: z.ZodOptional<z.ZodString>;
|
|
1046
1177
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1047
1178
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1053,7 +1184,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1053
1184
|
sid: z.ZodOptional<z.ZodString>;
|
|
1054
1185
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1055
1186
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
1056
|
-
}, z.ZodUnknown, "strip"
|
|
1187
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
1057
1188
|
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
1058
1189
|
exp: z.ZodNumber;
|
|
1059
1190
|
iat: z.ZodNumber;
|
|
@@ -1062,7 +1193,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1062
1193
|
kind: z.ZodLiteral<"Session">;
|
|
1063
1194
|
loginTs: z.ZodNumber;
|
|
1064
1195
|
accountId: z.ZodString;
|
|
1065
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1196
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1066
1197
|
sid: z.ZodOptional<z.ZodString>;
|
|
1067
1198
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1068
1199
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1074,7 +1205,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1074
1205
|
sid: z.ZodOptional<z.ZodString>;
|
|
1075
1206
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1076
1207
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
1077
|
-
}, z.ZodUnknown, "strip"
|
|
1208
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
1078
1209
|
}, z.ZodUnknown, "strip">>;
|
|
1079
1210
|
lastSubmission: z.ZodNullable<z.ZodObject<{
|
|
1080
1211
|
interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
|
|
@@ -1177,6 +1308,74 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1177
1308
|
};
|
|
1178
1309
|
templateType: import("../foundations/index.js").TemplateType;
|
|
1179
1310
|
verified: boolean;
|
|
1311
|
+
}>, z.ZodObject<{
|
|
1312
|
+
id: z.ZodString;
|
|
1313
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
1314
|
+
verified: z.ZodBoolean;
|
|
1315
|
+
} & {
|
|
1316
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
|
|
1317
|
+
identifier: z.ZodObject<{
|
|
1318
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
|
|
1319
|
+
value: z.ZodString;
|
|
1320
|
+
}, "strip", z.ZodTypeAny, {
|
|
1321
|
+
value: string;
|
|
1322
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1323
|
+
}, {
|
|
1324
|
+
value: string;
|
|
1325
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1326
|
+
}>;
|
|
1327
|
+
}, "strip", z.ZodTypeAny, {
|
|
1328
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1329
|
+
id: string;
|
|
1330
|
+
identifier: {
|
|
1331
|
+
value: string;
|
|
1332
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1333
|
+
};
|
|
1334
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1335
|
+
verified: boolean;
|
|
1336
|
+
}, {
|
|
1337
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1338
|
+
id: string;
|
|
1339
|
+
identifier: {
|
|
1340
|
+
value: string;
|
|
1341
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1342
|
+
};
|
|
1343
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1344
|
+
verified: boolean;
|
|
1345
|
+
}>, z.ZodObject<{
|
|
1346
|
+
id: z.ZodString;
|
|
1347
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
1348
|
+
verified: z.ZodBoolean;
|
|
1349
|
+
} & {
|
|
1350
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
|
|
1351
|
+
identifier: z.ZodObject<{
|
|
1352
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
|
|
1353
|
+
value: z.ZodString;
|
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
|
1355
|
+
value: string;
|
|
1356
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1357
|
+
}, {
|
|
1358
|
+
value: string;
|
|
1359
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1360
|
+
}>;
|
|
1361
|
+
}, "strip", z.ZodTypeAny, {
|
|
1362
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1363
|
+
id: string;
|
|
1364
|
+
identifier: {
|
|
1365
|
+
value: string;
|
|
1366
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1367
|
+
};
|
|
1368
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1369
|
+
verified: boolean;
|
|
1370
|
+
}, {
|
|
1371
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1372
|
+
id: string;
|
|
1373
|
+
identifier: {
|
|
1374
|
+
value: string;
|
|
1375
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1376
|
+
};
|
|
1377
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1378
|
+
verified: boolean;
|
|
1180
1379
|
}>, z.ZodObject<Omit<{
|
|
1181
1380
|
id: z.ZodString;
|
|
1182
1381
|
connectorId: z.ZodString;
|
|
@@ -1454,17 +1653,17 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1454
1653
|
name?: string | undefined;
|
|
1455
1654
|
}>>;
|
|
1456
1655
|
} & {
|
|
1457
|
-
type: z.ZodLiteral<import("./index.js").VerificationType.
|
|
1656
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.SignInPasskey>;
|
|
1458
1657
|
userId: z.ZodOptional<z.ZodString>;
|
|
1459
1658
|
authenticationRpId: z.ZodOptional<z.ZodString>;
|
|
1460
1659
|
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
|
|
1461
|
-
type: import("./index.js").VerificationType.
|
|
1660
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1462
1661
|
id: string;
|
|
1463
1662
|
verified: boolean;
|
|
1464
1663
|
userId?: string | undefined;
|
|
1465
1664
|
registrationRpId?: string | undefined;
|
|
1466
1665
|
}, {
|
|
1467
|
-
type: import("./index.js").VerificationType.
|
|
1666
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1468
1667
|
id: string;
|
|
1469
1668
|
verified: boolean;
|
|
1470
1669
|
userId?: string | undefined;
|
|
@@ -1569,6 +1768,24 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1569
1768
|
};
|
|
1570
1769
|
templateType: import("../foundations/index.js").TemplateType;
|
|
1571
1770
|
verified: boolean;
|
|
1771
|
+
} | {
|
|
1772
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1773
|
+
id: string;
|
|
1774
|
+
identifier: {
|
|
1775
|
+
value: string;
|
|
1776
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1777
|
+
};
|
|
1778
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1779
|
+
verified: boolean;
|
|
1780
|
+
} | {
|
|
1781
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1782
|
+
id: string;
|
|
1783
|
+
identifier: {
|
|
1784
|
+
value: string;
|
|
1785
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1786
|
+
};
|
|
1787
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1788
|
+
verified: boolean;
|
|
1572
1789
|
} | {
|
|
1573
1790
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
1574
1791
|
id: string;
|
|
@@ -1632,7 +1849,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1632
1849
|
verified: boolean;
|
|
1633
1850
|
registrationRpId?: string | undefined;
|
|
1634
1851
|
} | {
|
|
1635
|
-
type: import("./index.js").VerificationType.
|
|
1852
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1636
1853
|
id: string;
|
|
1637
1854
|
verified: boolean;
|
|
1638
1855
|
userId?: string | undefined;
|
|
@@ -1665,6 +1882,24 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1665
1882
|
};
|
|
1666
1883
|
templateType: import("../foundations/index.js").TemplateType;
|
|
1667
1884
|
verified: boolean;
|
|
1885
|
+
} | {
|
|
1886
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1887
|
+
id: string;
|
|
1888
|
+
identifier: {
|
|
1889
|
+
value: string;
|
|
1890
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1891
|
+
};
|
|
1892
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1893
|
+
verified: boolean;
|
|
1894
|
+
} | {
|
|
1895
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1896
|
+
id: string;
|
|
1897
|
+
identifier: {
|
|
1898
|
+
value: string;
|
|
1899
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1900
|
+
};
|
|
1901
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1902
|
+
verified: boolean;
|
|
1668
1903
|
} | {
|
|
1669
1904
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
1670
1905
|
id: string;
|
|
@@ -1728,7 +1963,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1728
1963
|
verified: boolean;
|
|
1729
1964
|
registrationRpId?: string | undefined;
|
|
1730
1965
|
} | {
|
|
1731
|
-
type: import("./index.js").VerificationType.
|
|
1966
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1732
1967
|
id: string;
|
|
1733
1968
|
verified: boolean;
|
|
1734
1969
|
userId?: string | undefined;
|
|
@@ -1738,9 +1973,8 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1738
1973
|
}>>;
|
|
1739
1974
|
clientId: z.ZodNullable<z.ZodString>;
|
|
1740
1975
|
accountId: z.ZodNullable<z.ZodString>;
|
|
1976
|
+
expiresAt: z.ZodNumber;
|
|
1741
1977
|
}, "strip", z.ZodTypeAny, {
|
|
1742
|
-
id: string;
|
|
1743
|
-
tenantId: string;
|
|
1744
1978
|
accountId: string | null;
|
|
1745
1979
|
expiresAt: number;
|
|
1746
1980
|
payload: {
|
|
@@ -1751,16 +1985,14 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1751
1985
|
kind: "Session";
|
|
1752
1986
|
loginTs: number;
|
|
1753
1987
|
accountId: string;
|
|
1754
|
-
authorizations
|
|
1988
|
+
authorizations?: Record<string, z.objectOutputType<{
|
|
1755
1989
|
sid: z.ZodOptional<z.ZodString>;
|
|
1756
1990
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1757
1991
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
1758
|
-
}, z.ZodUnknown, "strip"
|
|
1992
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
1759
1993
|
} & {
|
|
1760
1994
|
[k: string]: unknown;
|
|
1761
1995
|
};
|
|
1762
|
-
modelName: string;
|
|
1763
|
-
consumedAt: number | null;
|
|
1764
1996
|
lastSubmission: {
|
|
1765
1997
|
userId: string;
|
|
1766
1998
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -1787,6 +2019,24 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1787
2019
|
};
|
|
1788
2020
|
templateType: import("../foundations/index.js").TemplateType;
|
|
1789
2021
|
verified: boolean;
|
|
2022
|
+
} | {
|
|
2023
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
2024
|
+
id: string;
|
|
2025
|
+
identifier: {
|
|
2026
|
+
value: string;
|
|
2027
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2028
|
+
};
|
|
2029
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2030
|
+
verified: boolean;
|
|
2031
|
+
} | {
|
|
2032
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2033
|
+
id: string;
|
|
2034
|
+
identifier: {
|
|
2035
|
+
value: string;
|
|
2036
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2037
|
+
};
|
|
2038
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2039
|
+
verified: boolean;
|
|
1790
2040
|
} | {
|
|
1791
2041
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
1792
2042
|
id: string;
|
|
@@ -1850,7 +2100,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1850
2100
|
verified: boolean;
|
|
1851
2101
|
registrationRpId?: string | undefined;
|
|
1852
2102
|
} | {
|
|
1853
|
-
type: import("./index.js").VerificationType.
|
|
2103
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1854
2104
|
id: string;
|
|
1855
2105
|
verified: boolean;
|
|
1856
2106
|
userId?: string | undefined;
|
|
@@ -1860,8 +2110,6 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1860
2110
|
} | null;
|
|
1861
2111
|
clientId: string | null;
|
|
1862
2112
|
}, {
|
|
1863
|
-
id: string;
|
|
1864
|
-
tenantId: string;
|
|
1865
2113
|
accountId: string | null;
|
|
1866
2114
|
expiresAt: number;
|
|
1867
2115
|
payload: {
|
|
@@ -1872,16 +2120,14 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1872
2120
|
kind: "Session";
|
|
1873
2121
|
loginTs: number;
|
|
1874
2122
|
accountId: string;
|
|
1875
|
-
authorizations
|
|
2123
|
+
authorizations?: Record<string, z.objectInputType<{
|
|
1876
2124
|
sid: z.ZodOptional<z.ZodString>;
|
|
1877
2125
|
grantId: z.ZodOptional<z.ZodString>;
|
|
1878
2126
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
1879
|
-
}, z.ZodUnknown, "strip"
|
|
2127
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
1880
2128
|
} & {
|
|
1881
2129
|
[k: string]: unknown;
|
|
1882
2130
|
};
|
|
1883
|
-
modelName: string;
|
|
1884
|
-
consumedAt: number | null;
|
|
1885
2131
|
lastSubmission: {
|
|
1886
2132
|
userId: string;
|
|
1887
2133
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -1909,21 +2155,39 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1909
2155
|
templateType: import("../foundations/index.js").TemplateType;
|
|
1910
2156
|
verified: boolean;
|
|
1911
2157
|
} | {
|
|
1912
|
-
type: import("./index.js").VerificationType.
|
|
2158
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
1913
2159
|
id: string;
|
|
1914
2160
|
identifier: {
|
|
1915
2161
|
value: string;
|
|
1916
|
-
type: import("../foundations/index.js").SignInIdentifier;
|
|
2162
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
1917
2163
|
};
|
|
2164
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2165
|
+
verified: boolean;
|
|
1918
2166
|
} | {
|
|
1919
|
-
type: import("./index.js").VerificationType.
|
|
2167
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
1920
2168
|
id: string;
|
|
1921
2169
|
identifier: {
|
|
1922
2170
|
value: string;
|
|
1923
|
-
type: import("../foundations/index.js").SignInIdentifier.
|
|
2171
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
1924
2172
|
};
|
|
2173
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
1925
2174
|
verified: boolean;
|
|
1926
|
-
|
|
2175
|
+
} | {
|
|
2176
|
+
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
2177
|
+
id: string;
|
|
2178
|
+
identifier: {
|
|
2179
|
+
value: string;
|
|
2180
|
+
type: import("../foundations/index.js").SignInIdentifier;
|
|
2181
|
+
};
|
|
2182
|
+
} | {
|
|
2183
|
+
type: import("./index.js").VerificationType.OneTimeToken;
|
|
2184
|
+
id: string;
|
|
2185
|
+
identifier: {
|
|
2186
|
+
value: string;
|
|
2187
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2188
|
+
};
|
|
2189
|
+
verified: boolean;
|
|
2190
|
+
oneTimeTokenContext?: {
|
|
1927
2191
|
jitOrganizationIds?: string[] | undefined;
|
|
1928
2192
|
} | undefined;
|
|
1929
2193
|
} | {
|
|
@@ -1971,7 +2235,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1971
2235
|
verified: boolean;
|
|
1972
2236
|
registrationRpId?: string | undefined;
|
|
1973
2237
|
} | {
|
|
1974
|
-
type: import("./index.js").VerificationType.
|
|
2238
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
1975
2239
|
id: string;
|
|
1976
2240
|
verified: boolean;
|
|
1977
2241
|
userId?: string | undefined;
|
|
@@ -1983,8 +2247,6 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1983
2247
|
}>, "many">;
|
|
1984
2248
|
}, "strip", z.ZodTypeAny, {
|
|
1985
2249
|
sessions: {
|
|
1986
|
-
id: string;
|
|
1987
|
-
tenantId: string;
|
|
1988
2250
|
accountId: string | null;
|
|
1989
2251
|
expiresAt: number;
|
|
1990
2252
|
payload: {
|
|
@@ -1995,16 +2257,14 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
1995
2257
|
kind: "Session";
|
|
1996
2258
|
loginTs: number;
|
|
1997
2259
|
accountId: string;
|
|
1998
|
-
authorizations
|
|
2260
|
+
authorizations?: Record<string, z.objectOutputType<{
|
|
1999
2261
|
sid: z.ZodOptional<z.ZodString>;
|
|
2000
2262
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2001
2263
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2002
|
-
}, z.ZodUnknown, "strip"
|
|
2264
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
2003
2265
|
} & {
|
|
2004
2266
|
[k: string]: unknown;
|
|
2005
2267
|
};
|
|
2006
|
-
modelName: string;
|
|
2007
|
-
consumedAt: number | null;
|
|
2008
2268
|
lastSubmission: {
|
|
2009
2269
|
userId: string;
|
|
2010
2270
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -2031,6 +2291,24 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2031
2291
|
};
|
|
2032
2292
|
templateType: import("../foundations/index.js").TemplateType;
|
|
2033
2293
|
verified: boolean;
|
|
2294
|
+
} | {
|
|
2295
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
2296
|
+
id: string;
|
|
2297
|
+
identifier: {
|
|
2298
|
+
value: string;
|
|
2299
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2300
|
+
};
|
|
2301
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2302
|
+
verified: boolean;
|
|
2303
|
+
} | {
|
|
2304
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2305
|
+
id: string;
|
|
2306
|
+
identifier: {
|
|
2307
|
+
value: string;
|
|
2308
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2309
|
+
};
|
|
2310
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2311
|
+
verified: boolean;
|
|
2034
2312
|
} | {
|
|
2035
2313
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
2036
2314
|
id: string;
|
|
@@ -2094,7 +2372,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2094
2372
|
verified: boolean;
|
|
2095
2373
|
registrationRpId?: string | undefined;
|
|
2096
2374
|
} | {
|
|
2097
|
-
type: import("./index.js").VerificationType.
|
|
2375
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2098
2376
|
id: string;
|
|
2099
2377
|
verified: boolean;
|
|
2100
2378
|
userId?: string | undefined;
|
|
@@ -2106,8 +2384,6 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2106
2384
|
}[];
|
|
2107
2385
|
}, {
|
|
2108
2386
|
sessions: {
|
|
2109
|
-
id: string;
|
|
2110
|
-
tenantId: string;
|
|
2111
2387
|
accountId: string | null;
|
|
2112
2388
|
expiresAt: number;
|
|
2113
2389
|
payload: {
|
|
@@ -2118,16 +2394,14 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2118
2394
|
kind: "Session";
|
|
2119
2395
|
loginTs: number;
|
|
2120
2396
|
accountId: string;
|
|
2121
|
-
authorizations
|
|
2397
|
+
authorizations?: Record<string, z.objectInputType<{
|
|
2122
2398
|
sid: z.ZodOptional<z.ZodString>;
|
|
2123
2399
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2124
2400
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2125
|
-
}, z.ZodUnknown, "strip"
|
|
2401
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
2126
2402
|
} & {
|
|
2127
2403
|
[k: string]: unknown;
|
|
2128
2404
|
};
|
|
2129
|
-
modelName: string;
|
|
2130
|
-
consumedAt: number | null;
|
|
2131
2405
|
lastSubmission: {
|
|
2132
2406
|
userId: string;
|
|
2133
2407
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -2154,6 +2428,24 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2154
2428
|
};
|
|
2155
2429
|
templateType: import("../foundations/index.js").TemplateType;
|
|
2156
2430
|
verified: boolean;
|
|
2431
|
+
} | {
|
|
2432
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
2433
|
+
id: string;
|
|
2434
|
+
identifier: {
|
|
2435
|
+
value: string;
|
|
2436
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2437
|
+
};
|
|
2438
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2439
|
+
verified: boolean;
|
|
2440
|
+
} | {
|
|
2441
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2442
|
+
id: string;
|
|
2443
|
+
identifier: {
|
|
2444
|
+
value: string;
|
|
2445
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2446
|
+
};
|
|
2447
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2448
|
+
verified: boolean;
|
|
2157
2449
|
} | {
|
|
2158
2450
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
2159
2451
|
id: string;
|
|
@@ -2217,7 +2509,7 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2217
2509
|
verified: boolean;
|
|
2218
2510
|
registrationRpId?: string | undefined;
|
|
2219
2511
|
} | {
|
|
2220
|
-
type: import("./index.js").VerificationType.
|
|
2512
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2221
2513
|
id: string;
|
|
2222
2514
|
verified: boolean;
|
|
2223
2515
|
userId?: string | undefined;
|
|
@@ -2228,14 +2520,9 @@ export declare const getUserSessionsResponseGuard: z.ZodObject<{
|
|
|
2228
2520
|
clientId: string | null;
|
|
2229
2521
|
}[];
|
|
2230
2522
|
}>;
|
|
2523
|
+
/** Response type for `GET /users/:userId/sessions`. */
|
|
2231
2524
|
export type GetUserSessionsResponse = z.infer<typeof getUserSessionsResponseGuard>;
|
|
2232
2525
|
export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
2233
|
-
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
2234
|
-
modelName: z.ZodType<string, z.ZodTypeDef, string>;
|
|
2235
|
-
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
2236
|
-
expiresAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
2237
|
-
consumedAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
|
|
2238
|
-
} & {
|
|
2239
2526
|
payload: z.ZodObject<{
|
|
2240
2527
|
exp: z.ZodNumber;
|
|
2241
2528
|
iat: z.ZodNumber;
|
|
@@ -2244,7 +2531,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2244
2531
|
kind: z.ZodLiteral<"Session">;
|
|
2245
2532
|
loginTs: z.ZodNumber;
|
|
2246
2533
|
accountId: z.ZodString;
|
|
2247
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2534
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2248
2535
|
sid: z.ZodOptional<z.ZodString>;
|
|
2249
2536
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2250
2537
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2256,7 +2543,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2256
2543
|
sid: z.ZodOptional<z.ZodString>;
|
|
2257
2544
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2258
2545
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2259
|
-
}, z.ZodUnknown, "strip"
|
|
2546
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
2260
2547
|
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2261
2548
|
exp: z.ZodNumber;
|
|
2262
2549
|
iat: z.ZodNumber;
|
|
@@ -2265,7 +2552,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2265
2552
|
kind: z.ZodLiteral<"Session">;
|
|
2266
2553
|
loginTs: z.ZodNumber;
|
|
2267
2554
|
accountId: z.ZodString;
|
|
2268
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2555
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2269
2556
|
sid: z.ZodOptional<z.ZodString>;
|
|
2270
2557
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2271
2558
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2277,7 +2564,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2277
2564
|
sid: z.ZodOptional<z.ZodString>;
|
|
2278
2565
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2279
2566
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2280
|
-
}, z.ZodUnknown, "strip"
|
|
2567
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
2281
2568
|
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2282
2569
|
exp: z.ZodNumber;
|
|
2283
2570
|
iat: z.ZodNumber;
|
|
@@ -2286,7 +2573,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2286
2573
|
kind: z.ZodLiteral<"Session">;
|
|
2287
2574
|
loginTs: z.ZodNumber;
|
|
2288
2575
|
accountId: z.ZodString;
|
|
2289
|
-
authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2576
|
+
authorizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2290
2577
|
sid: z.ZodOptional<z.ZodString>;
|
|
2291
2578
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2292
2579
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2298,7 +2585,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2298
2585
|
sid: z.ZodOptional<z.ZodString>;
|
|
2299
2586
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2300
2587
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2301
|
-
}, z.ZodUnknown, "strip"
|
|
2588
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
2302
2589
|
}, z.ZodUnknown, "strip">>;
|
|
2303
2590
|
lastSubmission: z.ZodNullable<z.ZodObject<{
|
|
2304
2591
|
interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
|
|
@@ -2401,6 +2688,74 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2401
2688
|
};
|
|
2402
2689
|
templateType: import("../foundations/index.js").TemplateType;
|
|
2403
2690
|
verified: boolean;
|
|
2691
|
+
}>, z.ZodObject<{
|
|
2692
|
+
id: z.ZodString;
|
|
2693
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
2694
|
+
verified: z.ZodBoolean;
|
|
2695
|
+
} & {
|
|
2696
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaEmailVerificationCode>;
|
|
2697
|
+
identifier: z.ZodObject<{
|
|
2698
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
|
|
2699
|
+
value: z.ZodString;
|
|
2700
|
+
}, "strip", z.ZodTypeAny, {
|
|
2701
|
+
value: string;
|
|
2702
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2703
|
+
}, {
|
|
2704
|
+
value: string;
|
|
2705
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2706
|
+
}>;
|
|
2707
|
+
}, "strip", z.ZodTypeAny, {
|
|
2708
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
2709
|
+
id: string;
|
|
2710
|
+
identifier: {
|
|
2711
|
+
value: string;
|
|
2712
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2713
|
+
};
|
|
2714
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2715
|
+
verified: boolean;
|
|
2716
|
+
}, {
|
|
2717
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
2718
|
+
id: string;
|
|
2719
|
+
identifier: {
|
|
2720
|
+
value: string;
|
|
2721
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
2722
|
+
};
|
|
2723
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2724
|
+
verified: boolean;
|
|
2725
|
+
}>, z.ZodObject<{
|
|
2726
|
+
id: z.ZodString;
|
|
2727
|
+
templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
|
|
2728
|
+
verified: z.ZodBoolean;
|
|
2729
|
+
} & {
|
|
2730
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.MfaPhoneVerificationCode>;
|
|
2731
|
+
identifier: z.ZodObject<{
|
|
2732
|
+
type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
|
|
2733
|
+
value: z.ZodString;
|
|
2734
|
+
}, "strip", z.ZodTypeAny, {
|
|
2735
|
+
value: string;
|
|
2736
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2737
|
+
}, {
|
|
2738
|
+
value: string;
|
|
2739
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2740
|
+
}>;
|
|
2741
|
+
}, "strip", z.ZodTypeAny, {
|
|
2742
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2743
|
+
id: string;
|
|
2744
|
+
identifier: {
|
|
2745
|
+
value: string;
|
|
2746
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2747
|
+
};
|
|
2748
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2749
|
+
verified: boolean;
|
|
2750
|
+
}, {
|
|
2751
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
2752
|
+
id: string;
|
|
2753
|
+
identifier: {
|
|
2754
|
+
value: string;
|
|
2755
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
2756
|
+
};
|
|
2757
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
2758
|
+
verified: boolean;
|
|
2404
2759
|
}>, z.ZodObject<Omit<{
|
|
2405
2760
|
id: z.ZodString;
|
|
2406
2761
|
connectorId: z.ZodString;
|
|
@@ -2678,17 +3033,17 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2678
3033
|
name?: string | undefined;
|
|
2679
3034
|
}>>;
|
|
2680
3035
|
} & {
|
|
2681
|
-
type: z.ZodLiteral<import("./index.js").VerificationType.
|
|
3036
|
+
type: z.ZodLiteral<import("./index.js").VerificationType.SignInPasskey>;
|
|
2682
3037
|
userId: z.ZodOptional<z.ZodString>;
|
|
2683
3038
|
authenticationRpId: z.ZodOptional<z.ZodString>;
|
|
2684
3039
|
}, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
|
|
2685
|
-
type: import("./index.js").VerificationType.
|
|
3040
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2686
3041
|
id: string;
|
|
2687
3042
|
verified: boolean;
|
|
2688
3043
|
userId?: string | undefined;
|
|
2689
3044
|
registrationRpId?: string | undefined;
|
|
2690
3045
|
}, {
|
|
2691
|
-
type: import("./index.js").VerificationType.
|
|
3046
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2692
3047
|
id: string;
|
|
2693
3048
|
verified: boolean;
|
|
2694
3049
|
userId?: string | undefined;
|
|
@@ -2793,6 +3148,24 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2793
3148
|
};
|
|
2794
3149
|
templateType: import("../foundations/index.js").TemplateType;
|
|
2795
3150
|
verified: boolean;
|
|
3151
|
+
} | {
|
|
3152
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
3153
|
+
id: string;
|
|
3154
|
+
identifier: {
|
|
3155
|
+
value: string;
|
|
3156
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
3157
|
+
};
|
|
3158
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3159
|
+
verified: boolean;
|
|
3160
|
+
} | {
|
|
3161
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
3162
|
+
id: string;
|
|
3163
|
+
identifier: {
|
|
3164
|
+
value: string;
|
|
3165
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
3166
|
+
};
|
|
3167
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3168
|
+
verified: boolean;
|
|
2796
3169
|
} | {
|
|
2797
3170
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
2798
3171
|
id: string;
|
|
@@ -2856,7 +3229,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2856
3229
|
verified: boolean;
|
|
2857
3230
|
registrationRpId?: string | undefined;
|
|
2858
3231
|
} | {
|
|
2859
|
-
type: import("./index.js").VerificationType.
|
|
3232
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2860
3233
|
id: string;
|
|
2861
3234
|
verified: boolean;
|
|
2862
3235
|
userId?: string | undefined;
|
|
@@ -2889,6 +3262,24 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2889
3262
|
};
|
|
2890
3263
|
templateType: import("../foundations/index.js").TemplateType;
|
|
2891
3264
|
verified: boolean;
|
|
3265
|
+
} | {
|
|
3266
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
3267
|
+
id: string;
|
|
3268
|
+
identifier: {
|
|
3269
|
+
value: string;
|
|
3270
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
3271
|
+
};
|
|
3272
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3273
|
+
verified: boolean;
|
|
3274
|
+
} | {
|
|
3275
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
3276
|
+
id: string;
|
|
3277
|
+
identifier: {
|
|
3278
|
+
value: string;
|
|
3279
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
3280
|
+
};
|
|
3281
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3282
|
+
verified: boolean;
|
|
2892
3283
|
} | {
|
|
2893
3284
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
2894
3285
|
id: string;
|
|
@@ -2952,7 +3343,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2952
3343
|
verified: boolean;
|
|
2953
3344
|
registrationRpId?: string | undefined;
|
|
2954
3345
|
} | {
|
|
2955
|
-
type: import("./index.js").VerificationType.
|
|
3346
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
2956
3347
|
id: string;
|
|
2957
3348
|
verified: boolean;
|
|
2958
3349
|
userId?: string | undefined;
|
|
@@ -2962,9 +3353,8 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2962
3353
|
}>>;
|
|
2963
3354
|
clientId: z.ZodNullable<z.ZodString>;
|
|
2964
3355
|
accountId: z.ZodNullable<z.ZodString>;
|
|
3356
|
+
expiresAt: z.ZodNumber;
|
|
2965
3357
|
}, "strip", z.ZodTypeAny, {
|
|
2966
|
-
id: string;
|
|
2967
|
-
tenantId: string;
|
|
2968
3358
|
accountId: string | null;
|
|
2969
3359
|
expiresAt: number;
|
|
2970
3360
|
payload: {
|
|
@@ -2975,16 +3365,14 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
2975
3365
|
kind: "Session";
|
|
2976
3366
|
loginTs: number;
|
|
2977
3367
|
accountId: string;
|
|
2978
|
-
authorizations
|
|
3368
|
+
authorizations?: Record<string, z.objectOutputType<{
|
|
2979
3369
|
sid: z.ZodOptional<z.ZodString>;
|
|
2980
3370
|
grantId: z.ZodOptional<z.ZodString>;
|
|
2981
3371
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
2982
|
-
}, z.ZodUnknown, "strip"
|
|
3372
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
2983
3373
|
} & {
|
|
2984
3374
|
[k: string]: unknown;
|
|
2985
3375
|
};
|
|
2986
|
-
modelName: string;
|
|
2987
|
-
consumedAt: number | null;
|
|
2988
3376
|
lastSubmission: {
|
|
2989
3377
|
userId: string;
|
|
2990
3378
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -3011,6 +3399,24 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3011
3399
|
};
|
|
3012
3400
|
templateType: import("../foundations/index.js").TemplateType;
|
|
3013
3401
|
verified: boolean;
|
|
3402
|
+
} | {
|
|
3403
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
3404
|
+
id: string;
|
|
3405
|
+
identifier: {
|
|
3406
|
+
value: string;
|
|
3407
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
3408
|
+
};
|
|
3409
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3410
|
+
verified: boolean;
|
|
3411
|
+
} | {
|
|
3412
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
3413
|
+
id: string;
|
|
3414
|
+
identifier: {
|
|
3415
|
+
value: string;
|
|
3416
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
3417
|
+
};
|
|
3418
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3419
|
+
verified: boolean;
|
|
3014
3420
|
} | {
|
|
3015
3421
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
3016
3422
|
id: string;
|
|
@@ -3074,7 +3480,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3074
3480
|
verified: boolean;
|
|
3075
3481
|
registrationRpId?: string | undefined;
|
|
3076
3482
|
} | {
|
|
3077
|
-
type: import("./index.js").VerificationType.
|
|
3483
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
3078
3484
|
id: string;
|
|
3079
3485
|
verified: boolean;
|
|
3080
3486
|
userId?: string | undefined;
|
|
@@ -3084,8 +3490,6 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3084
3490
|
} | null;
|
|
3085
3491
|
clientId: string | null;
|
|
3086
3492
|
}, {
|
|
3087
|
-
id: string;
|
|
3088
|
-
tenantId: string;
|
|
3089
3493
|
accountId: string | null;
|
|
3090
3494
|
expiresAt: number;
|
|
3091
3495
|
payload: {
|
|
@@ -3096,16 +3500,14 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3096
3500
|
kind: "Session";
|
|
3097
3501
|
loginTs: number;
|
|
3098
3502
|
accountId: string;
|
|
3099
|
-
authorizations
|
|
3503
|
+
authorizations?: Record<string, z.objectInputType<{
|
|
3100
3504
|
sid: z.ZodOptional<z.ZodString>;
|
|
3101
3505
|
grantId: z.ZodOptional<z.ZodString>;
|
|
3102
3506
|
persistsLogout: z.ZodOptional<z.ZodBoolean>;
|
|
3103
|
-
}, z.ZodUnknown, "strip"
|
|
3507
|
+
}, z.ZodUnknown, "strip">> | undefined;
|
|
3104
3508
|
} & {
|
|
3105
3509
|
[k: string]: unknown;
|
|
3106
3510
|
};
|
|
3107
|
-
modelName: string;
|
|
3108
|
-
consumedAt: number | null;
|
|
3109
3511
|
lastSubmission: {
|
|
3110
3512
|
userId: string;
|
|
3111
3513
|
interactionEvent: import("./interactions.js").InteractionEvent;
|
|
@@ -3132,6 +3534,24 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3132
3534
|
};
|
|
3133
3535
|
templateType: import("../foundations/index.js").TemplateType;
|
|
3134
3536
|
verified: boolean;
|
|
3537
|
+
} | {
|
|
3538
|
+
type: import("./index.js").VerificationType.MfaEmailVerificationCode;
|
|
3539
|
+
id: string;
|
|
3540
|
+
identifier: {
|
|
3541
|
+
value: string;
|
|
3542
|
+
type: import("../foundations/index.js").SignInIdentifier.Email;
|
|
3543
|
+
};
|
|
3544
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3545
|
+
verified: boolean;
|
|
3546
|
+
} | {
|
|
3547
|
+
type: import("./index.js").VerificationType.MfaPhoneVerificationCode;
|
|
3548
|
+
id: string;
|
|
3549
|
+
identifier: {
|
|
3550
|
+
value: string;
|
|
3551
|
+
type: import("../foundations/index.js").SignInIdentifier.Phone;
|
|
3552
|
+
};
|
|
3553
|
+
templateType: import("../foundations/index.js").TemplateType;
|
|
3554
|
+
verified: boolean;
|
|
3135
3555
|
} | {
|
|
3136
3556
|
type: import("./index.js").VerificationType.NewPasswordIdentity;
|
|
3137
3557
|
id: string;
|
|
@@ -3195,7 +3615,7 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3195
3615
|
verified: boolean;
|
|
3196
3616
|
registrationRpId?: string | undefined;
|
|
3197
3617
|
} | {
|
|
3198
|
-
type: import("./index.js").VerificationType.
|
|
3618
|
+
type: import("./index.js").VerificationType.SignInPasskey;
|
|
3199
3619
|
id: string;
|
|
3200
3620
|
verified: boolean;
|
|
3201
3621
|
userId?: string | undefined;
|
|
@@ -3205,4 +3625,184 @@ export declare const getUserSessionResponseGuard: z.ZodObject<{
|
|
|
3205
3625
|
} | null;
|
|
3206
3626
|
clientId: string | null;
|
|
3207
3627
|
}>;
|
|
3628
|
+
/** Response type for `GET /users/:userId/sessions/:sessionId`. */
|
|
3208
3629
|
export type GetUserSessionResponse = z.infer<typeof getUserSessionResponseGuard>;
|
|
3630
|
+
export declare const userApplicationGrantPayloadGuard: z.ZodObject<{
|
|
3631
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3632
|
+
exp: z.ZodNumber;
|
|
3633
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3634
|
+
iat: z.ZodNumber;
|
|
3635
|
+
jti: z.ZodString;
|
|
3636
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3637
|
+
clientId: z.ZodString;
|
|
3638
|
+
accountId: z.ZodString;
|
|
3639
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
3640
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3641
|
+
exp: z.ZodNumber;
|
|
3642
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3643
|
+
iat: z.ZodNumber;
|
|
3644
|
+
jti: z.ZodString;
|
|
3645
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3646
|
+
clientId: z.ZodString;
|
|
3647
|
+
accountId: z.ZodString;
|
|
3648
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
3649
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3650
|
+
exp: z.ZodNumber;
|
|
3651
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3652
|
+
iat: z.ZodNumber;
|
|
3653
|
+
jti: z.ZodString;
|
|
3654
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3655
|
+
clientId: z.ZodString;
|
|
3656
|
+
accountId: z.ZodString;
|
|
3657
|
+
}, z.ZodUnknown, "strip">>;
|
|
3658
|
+
export type UserApplicationGrantPayload = z.infer<typeof userApplicationGrantPayloadGuard>;
|
|
3659
|
+
export declare const userApplicationGrantGuard: z.ZodObject<{
|
|
3660
|
+
id: z.ZodString;
|
|
3661
|
+
payload: z.ZodObject<{
|
|
3662
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3663
|
+
exp: z.ZodNumber;
|
|
3664
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3665
|
+
iat: z.ZodNumber;
|
|
3666
|
+
jti: z.ZodString;
|
|
3667
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3668
|
+
clientId: z.ZodString;
|
|
3669
|
+
accountId: z.ZodString;
|
|
3670
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
3671
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3672
|
+
exp: z.ZodNumber;
|
|
3673
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3674
|
+
iat: z.ZodNumber;
|
|
3675
|
+
jti: z.ZodString;
|
|
3676
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3677
|
+
clientId: z.ZodString;
|
|
3678
|
+
accountId: z.ZodString;
|
|
3679
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
3680
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3681
|
+
exp: z.ZodNumber;
|
|
3682
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3683
|
+
iat: z.ZodNumber;
|
|
3684
|
+
jti: z.ZodString;
|
|
3685
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3686
|
+
clientId: z.ZodString;
|
|
3687
|
+
accountId: z.ZodString;
|
|
3688
|
+
}, z.ZodUnknown, "strip">>;
|
|
3689
|
+
expiresAt: z.ZodNumber;
|
|
3690
|
+
}, "strip", z.ZodTypeAny, {
|
|
3691
|
+
id: string;
|
|
3692
|
+
expiresAt: number;
|
|
3693
|
+
payload: {
|
|
3694
|
+
exp: number;
|
|
3695
|
+
iat: number;
|
|
3696
|
+
jti: string;
|
|
3697
|
+
kind: "Grant";
|
|
3698
|
+
accountId: string;
|
|
3699
|
+
clientId: string;
|
|
3700
|
+
} & {
|
|
3701
|
+
[k: string]: unknown;
|
|
3702
|
+
};
|
|
3703
|
+
}, {
|
|
3704
|
+
id: string;
|
|
3705
|
+
expiresAt: number;
|
|
3706
|
+
payload: {
|
|
3707
|
+
exp: number;
|
|
3708
|
+
iat: number;
|
|
3709
|
+
jti: string;
|
|
3710
|
+
kind: "Grant";
|
|
3711
|
+
accountId: string;
|
|
3712
|
+
clientId: string;
|
|
3713
|
+
} & {
|
|
3714
|
+
[k: string]: unknown;
|
|
3715
|
+
};
|
|
3716
|
+
}>;
|
|
3717
|
+
export type UserApplicationGrant = z.infer<typeof userApplicationGrantGuard>;
|
|
3718
|
+
export declare const getUserApplicationGrantsResponseGuard: z.ZodObject<{
|
|
3719
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
3720
|
+
id: z.ZodString;
|
|
3721
|
+
payload: z.ZodObject<{
|
|
3722
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3723
|
+
exp: z.ZodNumber;
|
|
3724
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3725
|
+
iat: z.ZodNumber;
|
|
3726
|
+
jti: z.ZodString;
|
|
3727
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3728
|
+
clientId: z.ZodString;
|
|
3729
|
+
accountId: z.ZodString;
|
|
3730
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
3731
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3732
|
+
exp: z.ZodNumber;
|
|
3733
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3734
|
+
iat: z.ZodNumber;
|
|
3735
|
+
jti: z.ZodString;
|
|
3736
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3737
|
+
clientId: z.ZodString;
|
|
3738
|
+
accountId: z.ZodString;
|
|
3739
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
3740
|
+
/** Expiration time of the grant in seconds since the epoch */
|
|
3741
|
+
exp: z.ZodNumber;
|
|
3742
|
+
/** Issued at time of the grant in seconds since the epoch */
|
|
3743
|
+
iat: z.ZodNumber;
|
|
3744
|
+
jti: z.ZodString;
|
|
3745
|
+
kind: z.ZodLiteral<"Grant">;
|
|
3746
|
+
clientId: z.ZodString;
|
|
3747
|
+
accountId: z.ZodString;
|
|
3748
|
+
}, z.ZodUnknown, "strip">>;
|
|
3749
|
+
expiresAt: z.ZodNumber;
|
|
3750
|
+
}, "strip", z.ZodTypeAny, {
|
|
3751
|
+
id: string;
|
|
3752
|
+
expiresAt: number;
|
|
3753
|
+
payload: {
|
|
3754
|
+
exp: number;
|
|
3755
|
+
iat: number;
|
|
3756
|
+
jti: string;
|
|
3757
|
+
kind: "Grant";
|
|
3758
|
+
accountId: string;
|
|
3759
|
+
clientId: string;
|
|
3760
|
+
} & {
|
|
3761
|
+
[k: string]: unknown;
|
|
3762
|
+
};
|
|
3763
|
+
}, {
|
|
3764
|
+
id: string;
|
|
3765
|
+
expiresAt: number;
|
|
3766
|
+
payload: {
|
|
3767
|
+
exp: number;
|
|
3768
|
+
iat: number;
|
|
3769
|
+
jti: string;
|
|
3770
|
+
kind: "Grant";
|
|
3771
|
+
accountId: string;
|
|
3772
|
+
clientId: string;
|
|
3773
|
+
} & {
|
|
3774
|
+
[k: string]: unknown;
|
|
3775
|
+
};
|
|
3776
|
+
}>, "many">;
|
|
3777
|
+
}, "strip", z.ZodTypeAny, {
|
|
3778
|
+
grants: {
|
|
3779
|
+
id: string;
|
|
3780
|
+
expiresAt: number;
|
|
3781
|
+
payload: {
|
|
3782
|
+
exp: number;
|
|
3783
|
+
iat: number;
|
|
3784
|
+
jti: string;
|
|
3785
|
+
kind: "Grant";
|
|
3786
|
+
accountId: string;
|
|
3787
|
+
clientId: string;
|
|
3788
|
+
} & {
|
|
3789
|
+
[k: string]: unknown;
|
|
3790
|
+
};
|
|
3791
|
+
}[];
|
|
3792
|
+
}, {
|
|
3793
|
+
grants: {
|
|
3794
|
+
id: string;
|
|
3795
|
+
expiresAt: number;
|
|
3796
|
+
payload: {
|
|
3797
|
+
exp: number;
|
|
3798
|
+
iat: number;
|
|
3799
|
+
jti: string;
|
|
3800
|
+
kind: "Grant";
|
|
3801
|
+
accountId: string;
|
|
3802
|
+
clientId: string;
|
|
3803
|
+
} & {
|
|
3804
|
+
[k: string]: unknown;
|
|
3805
|
+
};
|
|
3806
|
+
}[];
|
|
3807
|
+
}>;
|
|
3808
|
+
export type GetUserApplicationGrantsResponse = z.infer<typeof getUserApplicationGrantsResponseGuard>;
|