@logto/schemas 1.35.0 → 1.37.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.
Files changed (85) hide show
  1. package/alterations/1.36.0-1767193412-allow-token-exchange.ts +34 -0
  2. package/alterations/1.36.0-1767859553-passkey-sign-in.ts +21 -0
  3. package/alterations/1.36.0-1768192304-enable-account-center-for-admin-tenant.ts +32 -0
  4. package/alterations/1.36.0-1768464306-enable-mfa-for-admin-tenant.ts +30 -0
  5. package/alterations/1.36.0-1768758295-add-user-geo-location.ts +32 -0
  6. package/alterations/1.36.0-1768891516-add-user-sign-in-countries-table.ts +33 -0
  7. package/alterations/1.36.0-1769067642-add-adaptive-mfa-configuration.ts +19 -0
  8. package/alterations/1.36.0-1769172677-enable-organization-mfa-policy-for-admin-tenant.ts +31 -0
  9. package/alterations/1.37.0-1770295353-add-default-id-token-config.ts +30 -0
  10. package/alterations/1.37.0-1770361004-add-oidc-model-instances-session-account-id-indexes.ts +37 -0
  11. package/alterations/1.37.0-1770362227-add-client-id-column-to-oidc-session-extensions-table.ts +20 -0
  12. package/alterations-js/1.36.0-1767193412-allow-token-exchange.js +30 -0
  13. package/alterations-js/1.36.0-1767859553-passkey-sign-in.js +17 -0
  14. package/alterations-js/1.36.0-1768192304-enable-account-center-for-admin-tenant.js +27 -0
  15. package/alterations-js/1.36.0-1768464306-enable-mfa-for-admin-tenant.js +25 -0
  16. package/alterations-js/1.36.0-1768758295-add-user-geo-location.js +27 -0
  17. package/alterations-js/1.36.0-1768891516-add-user-sign-in-countries-table.js +28 -0
  18. package/alterations-js/1.36.0-1769067642-add-adaptive-mfa-configuration.js +15 -0
  19. package/alterations-js/1.36.0-1769172677-enable-organization-mfa-policy-for-admin-tenant.js +26 -0
  20. package/alterations-js/1.37.0-1770295353-add-default-id-token-config.js +23 -0
  21. package/alterations-js/1.37.0-1770361004-add-oidc-model-instances-session-account-id-indexes.js +31 -0
  22. package/alterations-js/1.37.0-1770362227-add-client-id-column-to-oidc-session-extensions-table.js +16 -0
  23. package/lib/db-entries/index.d.ts +2 -0
  24. package/lib/db-entries/index.js +2 -0
  25. package/lib/db-entries/oidc-session-extension.d.ts +3 -1
  26. package/lib/db-entries/oidc-session-extension.js +4 -0
  27. package/lib/db-entries/sign-in-experience.d.ts +6 -2
  28. package/lib/db-entries/sign-in-experience.js +9 -1
  29. package/lib/db-entries/user-geo-location.d.ts +24 -0
  30. package/lib/db-entries/user-geo-location.js +37 -0
  31. package/lib/db-entries/user-sign-in-country.d.ts +24 -0
  32. package/lib/db-entries/user-sign-in-country.js +33 -0
  33. package/lib/foundations/jsonb-types/account-centers.d.ts +3 -0
  34. package/lib/foundations/jsonb-types/account-centers.js +1 -0
  35. package/lib/foundations/jsonb-types/custom-profile-fields.d.ts +8 -8
  36. package/lib/foundations/jsonb-types/hooks.d.ts +4 -3
  37. package/lib/foundations/jsonb-types/hooks.js +2 -0
  38. package/lib/foundations/jsonb-types/logs.d.ts +700 -0
  39. package/lib/foundations/jsonb-types/logs.js +51 -0
  40. package/lib/foundations/jsonb-types/oidc-module.d.ts +343 -3
  41. package/lib/foundations/jsonb-types/oidc-module.js +57 -3
  42. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +1 -1
  43. package/lib/foundations/jsonb-types/sentinel.d.ts +13 -1
  44. package/lib/foundations/jsonb-types/sentinel.js +12 -0
  45. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +59 -0
  46. package/lib/foundations/jsonb-types/sign-in-experience.js +11 -0
  47. package/lib/seeds/account-center.d.ts +6 -0
  48. package/lib/seeds/account-center.js +24 -0
  49. package/lib/seeds/cloud-api.d.ts +3 -1
  50. package/lib/seeds/cloud-api.js +2 -0
  51. package/lib/seeds/logto-config.d.ts +6 -1
  52. package/lib/seeds/logto-config.js +11 -0
  53. package/lib/seeds/sign-in-experience.js +6 -1
  54. package/lib/types/application.d.ts +6 -0
  55. package/lib/types/consent.d.ts +4 -0
  56. package/lib/types/custom-profile-fields.d.ts +36 -36
  57. package/lib/types/hook.d.ts +2 -2
  58. package/lib/types/index.d.ts +1 -0
  59. package/lib/types/index.js +1 -0
  60. package/lib/types/log/index.d.ts +12 -6
  61. package/lib/types/log/interaction.d.ts +5 -1
  62. package/lib/types/logto-config/index.d.ts +1190 -91
  63. package/lib/types/logto-config/index.js +9 -0
  64. package/lib/types/logto-config/jwt-customizer.d.ts +2059 -136
  65. package/lib/types/logto-config/jwt-customizer.js +22 -2
  66. package/lib/types/logto-config/jwt-customizer.test.js +27 -1
  67. package/lib/types/logto-config/oidc-provider.d.ts +8 -8
  68. package/lib/types/saml-application.d.ts +7 -7
  69. package/lib/types/sign-in-experience.d.ts +6 -0
  70. package/lib/types/user-logto-config.d.ts +49 -0
  71. package/lib/types/user-logto-config.js +23 -0
  72. package/lib/types/user-sessions.d.ts +3208 -0
  73. package/lib/types/user-sessions.js +26 -0
  74. package/lib/types/user.d.ts +7 -7
  75. package/lib/types/verification-records/verification-type.d.ts +1 -0
  76. package/lib/types/verification-records/verification-type.js +1 -0
  77. package/lib/types/verification-records/web-authn-verification.d.ts +145 -8
  78. package/lib/types/verification-records/web-authn-verification.js +17 -3
  79. package/package.json +5 -5
  80. package/tables/oidc_model_instances.sql +7 -0
  81. package/tables/oidc_session_extensions.sql +1 -0
  82. package/tables/sign_in_experiences.sql +2 -0
  83. package/tables/user_geo_locations.sql +14 -0
  84. package/tables/user_sign_in_countries.sql +16 -0
  85. package/tables/users.sql +3 -0
@@ -0,0 +1,3208 @@
1
+ import { z } from 'zod';
2
+ export declare const userSessionSignInContextGuard: z.ZodObject<{
3
+ ip: z.ZodOptional<z.ZodString>;
4
+ userAgent: z.ZodOptional<z.ZodString>;
5
+ country: z.ZodOptional<z.ZodString>;
6
+ city: z.ZodOptional<z.ZodString>;
7
+ latitude: z.ZodOptional<z.ZodString>;
8
+ longitude: z.ZodOptional<z.ZodString>;
9
+ botScore: z.ZodOptional<z.ZodString>;
10
+ botVerified: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodString, z.objectOutputType<{
12
+ ip: z.ZodOptional<z.ZodString>;
13
+ userAgent: z.ZodOptional<z.ZodString>;
14
+ country: z.ZodOptional<z.ZodString>;
15
+ city: z.ZodOptional<z.ZodString>;
16
+ latitude: z.ZodOptional<z.ZodString>;
17
+ longitude: z.ZodOptional<z.ZodString>;
18
+ botScore: z.ZodOptional<z.ZodString>;
19
+ botVerified: z.ZodOptional<z.ZodString>;
20
+ }, z.ZodString, "strip">, z.objectInputType<{
21
+ ip: z.ZodOptional<z.ZodString>;
22
+ userAgent: z.ZodOptional<z.ZodString>;
23
+ country: z.ZodOptional<z.ZodString>;
24
+ city: z.ZodOptional<z.ZodString>;
25
+ latitude: z.ZodOptional<z.ZodString>;
26
+ longitude: z.ZodOptional<z.ZodString>;
27
+ botScore: z.ZodOptional<z.ZodString>;
28
+ botVerified: z.ZodOptional<z.ZodString>;
29
+ }, z.ZodString, "strip">>;
30
+ export type UserSessionSignInContext = z.infer<typeof userSessionSignInContextGuard>;
31
+ 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
+ payload: z.ZodObject<{
39
+ exp: z.ZodNumber;
40
+ iat: z.ZodNumber;
41
+ jti: z.ZodString;
42
+ uid: z.ZodString;
43
+ kind: z.ZodLiteral<"Session">;
44
+ loginTs: z.ZodNumber;
45
+ accountId: z.ZodString;
46
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
47
+ sid: z.ZodOptional<z.ZodString>;
48
+ grantId: z.ZodOptional<z.ZodString>;
49
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
50
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
51
+ sid: z.ZodOptional<z.ZodString>;
52
+ grantId: z.ZodOptional<z.ZodString>;
53
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
54
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
55
+ sid: z.ZodOptional<z.ZodString>;
56
+ grantId: z.ZodOptional<z.ZodString>;
57
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
58
+ }, z.ZodUnknown, "strip">>>;
59
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
60
+ exp: z.ZodNumber;
61
+ iat: z.ZodNumber;
62
+ jti: z.ZodString;
63
+ uid: z.ZodString;
64
+ kind: z.ZodLiteral<"Session">;
65
+ loginTs: z.ZodNumber;
66
+ accountId: z.ZodString;
67
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
68
+ sid: z.ZodOptional<z.ZodString>;
69
+ grantId: z.ZodOptional<z.ZodString>;
70
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
71
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
72
+ sid: z.ZodOptional<z.ZodString>;
73
+ grantId: z.ZodOptional<z.ZodString>;
74
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
75
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
76
+ sid: z.ZodOptional<z.ZodString>;
77
+ grantId: z.ZodOptional<z.ZodString>;
78
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
79
+ }, z.ZodUnknown, "strip">>>;
80
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
81
+ exp: z.ZodNumber;
82
+ iat: z.ZodNumber;
83
+ jti: z.ZodString;
84
+ uid: z.ZodString;
85
+ kind: z.ZodLiteral<"Session">;
86
+ loginTs: z.ZodNumber;
87
+ accountId: z.ZodString;
88
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
89
+ sid: z.ZodOptional<z.ZodString>;
90
+ grantId: z.ZodOptional<z.ZodString>;
91
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
92
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
93
+ sid: z.ZodOptional<z.ZodString>;
94
+ grantId: z.ZodOptional<z.ZodString>;
95
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
96
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
97
+ sid: z.ZodOptional<z.ZodString>;
98
+ grantId: z.ZodOptional<z.ZodString>;
99
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
100
+ }, z.ZodUnknown, "strip">>>;
101
+ }, z.ZodUnknown, "strip">>;
102
+ lastSubmission: z.ZodNullable<z.ZodObject<{
103
+ interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
104
+ userId: z.ZodString;
105
+ verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
106
+ id: z.ZodString;
107
+ type: z.ZodLiteral<import("./index.js").VerificationType.Password>;
108
+ identifier: z.ZodObject<{
109
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../foundations/index.js").AdditionalIdentifier>]>;
110
+ value: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ value: string;
113
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
114
+ }, {
115
+ value: string;
116
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
117
+ }>;
118
+ verified: z.ZodBoolean;
119
+ }, "strip", z.ZodTypeAny, {
120
+ type: import("./index.js").VerificationType.Password;
121
+ id: string;
122
+ identifier: {
123
+ value: string;
124
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
125
+ };
126
+ verified: boolean;
127
+ }, {
128
+ type: import("./index.js").VerificationType.Password;
129
+ id: string;
130
+ identifier: {
131
+ value: string;
132
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
133
+ };
134
+ verified: boolean;
135
+ }>, z.ZodObject<{
136
+ id: z.ZodString;
137
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
138
+ verified: z.ZodBoolean;
139
+ } & {
140
+ type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
141
+ identifier: z.ZodObject<{
142
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
143
+ value: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ value: string;
146
+ type: import("../foundations/index.js").SignInIdentifier.Email;
147
+ }, {
148
+ value: string;
149
+ type: import("../foundations/index.js").SignInIdentifier.Email;
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ type: import("./index.js").VerificationType.EmailVerificationCode;
153
+ id: string;
154
+ identifier: {
155
+ value: string;
156
+ type: import("../foundations/index.js").SignInIdentifier.Email;
157
+ };
158
+ templateType: import("../foundations/index.js").TemplateType;
159
+ verified: boolean;
160
+ }, {
161
+ type: import("./index.js").VerificationType.EmailVerificationCode;
162
+ id: string;
163
+ identifier: {
164
+ value: string;
165
+ type: import("../foundations/index.js").SignInIdentifier.Email;
166
+ };
167
+ templateType: import("../foundations/index.js").TemplateType;
168
+ verified: boolean;
169
+ }>, z.ZodObject<{
170
+ id: z.ZodString;
171
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
172
+ verified: z.ZodBoolean;
173
+ } & {
174
+ type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
175
+ identifier: z.ZodObject<{
176
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
177
+ value: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ value: string;
180
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
181
+ }, {
182
+ value: string;
183
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
184
+ }>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
187
+ id: string;
188
+ identifier: {
189
+ value: string;
190
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
191
+ };
192
+ templateType: import("../foundations/index.js").TemplateType;
193
+ verified: boolean;
194
+ }, {
195
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
196
+ id: string;
197
+ identifier: {
198
+ value: string;
199
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
200
+ };
201
+ templateType: import("../foundations/index.js").TemplateType;
202
+ verified: boolean;
203
+ }>, z.ZodObject<Omit<{
204
+ id: z.ZodString;
205
+ connectorId: z.ZodString;
206
+ type: z.ZodLiteral<import("./index.js").VerificationType.Social>;
207
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
208
+ id: z.ZodString;
209
+ email: z.ZodOptional<z.ZodString>;
210
+ phone: z.ZodOptional<z.ZodString>;
211
+ name: z.ZodOptional<z.ZodString>;
212
+ avatar: z.ZodOptional<z.ZodString>;
213
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ id: string;
216
+ name?: string | undefined;
217
+ email?: string | undefined;
218
+ phone?: string | undefined;
219
+ avatar?: string | undefined;
220
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
221
+ }, {
222
+ id: string;
223
+ name?: string | undefined;
224
+ email?: string | undefined;
225
+ phone?: string | undefined;
226
+ avatar?: string | undefined;
227
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
228
+ }>>;
229
+ encryptedTokenSet: z.ZodOptional<z.ZodObject<{
230
+ encryptedTokenSetBase64: z.ZodString;
231
+ metadata: z.ZodObject<{
232
+ scope: z.ZodOptional<z.ZodString>;
233
+ expiresAt: z.ZodOptional<z.ZodNumber>;
234
+ tokenType: z.ZodOptional<z.ZodString>;
235
+ hasRefreshToken: z.ZodBoolean;
236
+ }, "strip", z.ZodTypeAny, {
237
+ hasRefreshToken: boolean;
238
+ scope?: string | undefined;
239
+ expiresAt?: number | undefined;
240
+ tokenType?: string | undefined;
241
+ }, {
242
+ hasRefreshToken: boolean;
243
+ scope?: string | undefined;
244
+ expiresAt?: number | undefined;
245
+ tokenType?: string | undefined;
246
+ }>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ metadata: {
249
+ hasRefreshToken: boolean;
250
+ scope?: string | undefined;
251
+ expiresAt?: number | undefined;
252
+ tokenType?: string | undefined;
253
+ };
254
+ encryptedTokenSetBase64: string;
255
+ }, {
256
+ metadata: {
257
+ hasRefreshToken: boolean;
258
+ scope?: string | undefined;
259
+ expiresAt?: number | undefined;
260
+ tokenType?: string | undefined;
261
+ };
262
+ encryptedTokenSetBase64: string;
263
+ }>>;
264
+ connectorSession: z.ZodOptional<z.ZodObject<{
265
+ nonce: z.ZodOptional<z.ZodString>;
266
+ redirectUri: z.ZodOptional<z.ZodString>;
267
+ connectorId: z.ZodOptional<z.ZodString>;
268
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
269
+ jti: z.ZodOptional<z.ZodString>;
270
+ state: z.ZodOptional<z.ZodString>;
271
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
272
+ nonce: z.ZodOptional<z.ZodString>;
273
+ redirectUri: z.ZodOptional<z.ZodString>;
274
+ connectorId: z.ZodOptional<z.ZodString>;
275
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
276
+ jti: z.ZodOptional<z.ZodString>;
277
+ state: z.ZodOptional<z.ZodString>;
278
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
279
+ nonce: z.ZodOptional<z.ZodString>;
280
+ redirectUri: z.ZodOptional<z.ZodString>;
281
+ connectorId: z.ZodOptional<z.ZodString>;
282
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
283
+ jti: z.ZodOptional<z.ZodString>;
284
+ state: z.ZodOptional<z.ZodString>;
285
+ }, z.ZodUnknown, "strip">>>;
286
+ }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
287
+ type: import("./index.js").VerificationType.Social;
288
+ id: string;
289
+ connectorId: string;
290
+ socialUserInfo?: {
291
+ id: string;
292
+ name?: string | undefined;
293
+ email?: string | undefined;
294
+ phone?: string | undefined;
295
+ avatar?: string | undefined;
296
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
297
+ } | undefined;
298
+ }, {
299
+ type: import("./index.js").VerificationType.Social;
300
+ id: string;
301
+ connectorId: string;
302
+ socialUserInfo?: {
303
+ id: string;
304
+ name?: string | undefined;
305
+ email?: string | undefined;
306
+ phone?: string | undefined;
307
+ avatar?: string | undefined;
308
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
309
+ } | undefined;
310
+ }>, z.ZodObject<{
311
+ type: z.ZodLiteral<import("./index.js").VerificationType.EnterpriseSso>;
312
+ id: z.ZodString;
313
+ issuer: z.ZodOptional<z.ZodString>;
314
+ connectorId: z.ZodString;
315
+ } & {
316
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
317
+ id: z.ZodString;
318
+ email: z.ZodOptional<z.ZodString>;
319
+ phone: z.ZodOptional<z.ZodString>;
320
+ name: z.ZodOptional<z.ZodString>;
321
+ avatar: z.ZodOptional<z.ZodString>;
322
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
323
+ }, "strip", z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
324
+ id: string;
325
+ name?: string | undefined;
326
+ email?: string | undefined;
327
+ phone?: string | undefined;
328
+ avatar?: string | undefined;
329
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
330
+ }, {
331
+ id: string;
332
+ name?: string | undefined;
333
+ email?: string | undefined;
334
+ phone?: string | undefined;
335
+ avatar?: string | undefined;
336
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
337
+ }>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: import("./index.js").VerificationType.EnterpriseSso;
340
+ id: string;
341
+ connectorId: string;
342
+ issuer?: string | undefined;
343
+ enterpriseSsoUserInfo?: {
344
+ id: string;
345
+ name?: string | undefined;
346
+ email?: string | undefined;
347
+ phone?: string | undefined;
348
+ avatar?: string | undefined;
349
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
350
+ } | undefined;
351
+ }, {
352
+ type: import("./index.js").VerificationType.EnterpriseSso;
353
+ id: string;
354
+ connectorId: string;
355
+ issuer?: string | undefined;
356
+ enterpriseSsoUserInfo?: {
357
+ id: string;
358
+ name?: string | undefined;
359
+ email?: string | undefined;
360
+ phone?: string | undefined;
361
+ avatar?: string | undefined;
362
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
363
+ } | undefined;
364
+ }>, z.ZodObject<Omit<{
365
+ id: z.ZodString;
366
+ type: z.ZodLiteral<import("./index.js").VerificationType.TOTP>;
367
+ userId: z.ZodString;
368
+ secret: z.ZodOptional<z.ZodString>;
369
+ verified: z.ZodBoolean;
370
+ }, "secret">, "strip", z.ZodTypeAny, {
371
+ type: import("./index.js").VerificationType.TOTP;
372
+ id: string;
373
+ userId: string;
374
+ verified: boolean;
375
+ }, {
376
+ type: import("./index.js").VerificationType.TOTP;
377
+ id: string;
378
+ userId: string;
379
+ verified: boolean;
380
+ }>, z.ZodObject<Omit<{
381
+ id: z.ZodString;
382
+ type: z.ZodLiteral<import("./index.js").VerificationType.BackupCode>;
383
+ userId: z.ZodString;
384
+ code: z.ZodOptional<z.ZodString>;
385
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
386
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
387
+ type: import("./index.js").VerificationType.BackupCode;
388
+ id: string;
389
+ userId: string;
390
+ code?: string | undefined;
391
+ }, {
392
+ type: import("./index.js").VerificationType.BackupCode;
393
+ id: string;
394
+ userId: string;
395
+ code?: string | undefined;
396
+ }>, z.ZodObject<Omit<{
397
+ id: z.ZodString;
398
+ verified: z.ZodBoolean;
399
+ registrationChallenge: z.ZodOptional<z.ZodString>;
400
+ registrationRpId: z.ZodOptional<z.ZodString>;
401
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
402
+ registrationInfo: z.ZodOptional<z.ZodObject<{
403
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
404
+ rpId: z.ZodString;
405
+ credentialId: z.ZodString;
406
+ publicKey: z.ZodString;
407
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
408
+ counter: z.ZodNumber;
409
+ agent: z.ZodString;
410
+ name: z.ZodOptional<z.ZodString>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
413
+ rpId: string;
414
+ credentialId: string;
415
+ publicKey: string;
416
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
417
+ counter: number;
418
+ agent: string;
419
+ name?: string | undefined;
420
+ }, {
421
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
422
+ rpId: string;
423
+ credentialId: string;
424
+ publicKey: string;
425
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
426
+ counter: number;
427
+ agent: string;
428
+ name?: string | undefined;
429
+ }>>;
430
+ } & {
431
+ type: z.ZodLiteral<import("./index.js").VerificationType.WebAuthn>;
432
+ userId: z.ZodString;
433
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
434
+ type: import("./index.js").VerificationType.WebAuthn;
435
+ id: string;
436
+ userId: string;
437
+ verified: boolean;
438
+ registrationRpId?: string | undefined;
439
+ }, {
440
+ type: import("./index.js").VerificationType.WebAuthn;
441
+ id: string;
442
+ userId: string;
443
+ verified: boolean;
444
+ registrationRpId?: string | undefined;
445
+ }>, z.ZodObject<Omit<{
446
+ id: z.ZodString;
447
+ verified: z.ZodBoolean;
448
+ registrationChallenge: z.ZodOptional<z.ZodString>;
449
+ registrationRpId: z.ZodOptional<z.ZodString>;
450
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
451
+ registrationInfo: z.ZodOptional<z.ZodObject<{
452
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
453
+ rpId: z.ZodString;
454
+ credentialId: z.ZodString;
455
+ publicKey: z.ZodString;
456
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
457
+ counter: z.ZodNumber;
458
+ agent: z.ZodString;
459
+ name: z.ZodOptional<z.ZodString>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
462
+ rpId: string;
463
+ credentialId: string;
464
+ publicKey: string;
465
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
466
+ counter: number;
467
+ agent: string;
468
+ name?: string | undefined;
469
+ }, {
470
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
471
+ rpId: string;
472
+ credentialId: string;
473
+ publicKey: string;
474
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
475
+ counter: number;
476
+ agent: string;
477
+ name?: string | undefined;
478
+ }>>;
479
+ } & {
480
+ type: z.ZodLiteral<import("./index.js").VerificationType.SignInWebAuthn>;
481
+ userId: z.ZodOptional<z.ZodString>;
482
+ authenticationRpId: z.ZodOptional<z.ZodString>;
483
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
484
+ type: import("./index.js").VerificationType.SignInWebAuthn;
485
+ id: string;
486
+ verified: boolean;
487
+ userId?: string | undefined;
488
+ registrationRpId?: string | undefined;
489
+ }, {
490
+ type: import("./index.js").VerificationType.SignInWebAuthn;
491
+ id: string;
492
+ verified: boolean;
493
+ userId?: string | undefined;
494
+ registrationRpId?: string | undefined;
495
+ }>, z.ZodObject<{
496
+ id: z.ZodString;
497
+ type: z.ZodLiteral<import("./index.js").VerificationType.OneTimeToken>;
498
+ verified: z.ZodBoolean;
499
+ identifier: z.ZodObject<{
500
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
501
+ value: z.ZodString;
502
+ }, "strip", z.ZodTypeAny, {
503
+ value: string;
504
+ type: import("../foundations/index.js").SignInIdentifier.Email;
505
+ }, {
506
+ value: string;
507
+ type: import("../foundations/index.js").SignInIdentifier.Email;
508
+ }>;
509
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
510
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ jitOrganizationIds?: string[] | undefined;
513
+ }, {
514
+ jitOrganizationIds?: string[] | undefined;
515
+ }>>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ type: import("./index.js").VerificationType.OneTimeToken;
518
+ id: string;
519
+ identifier: {
520
+ value: string;
521
+ type: import("../foundations/index.js").SignInIdentifier.Email;
522
+ };
523
+ verified: boolean;
524
+ oneTimeTokenContext?: {
525
+ jitOrganizationIds?: string[] | undefined;
526
+ } | undefined;
527
+ }, {
528
+ type: import("./index.js").VerificationType.OneTimeToken;
529
+ id: string;
530
+ identifier: {
531
+ value: string;
532
+ type: import("../foundations/index.js").SignInIdentifier.Email;
533
+ };
534
+ verified: boolean;
535
+ oneTimeTokenContext?: {
536
+ jitOrganizationIds?: string[] | undefined;
537
+ } | undefined;
538
+ }>, z.ZodObject<Omit<{
539
+ id: z.ZodString;
540
+ type: z.ZodLiteral<import("./index.js").VerificationType.NewPasswordIdentity>;
541
+ identifier: z.ZodObject<{
542
+ type: z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>;
543
+ value: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ value: string;
546
+ type: import("../foundations/index.js").SignInIdentifier;
547
+ }, {
548
+ value: string;
549
+ type: import("../foundations/index.js").SignInIdentifier;
550
+ }>;
551
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
552
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../index.js").UsersPasswordEncryptionMethod.Argon2i>>;
553
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
554
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
555
+ id: string;
556
+ identifier: {
557
+ value: string;
558
+ type: import("../foundations/index.js").SignInIdentifier;
559
+ };
560
+ }, {
561
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
562
+ id: string;
563
+ identifier: {
564
+ value: string;
565
+ type: import("../foundations/index.js").SignInIdentifier;
566
+ };
567
+ }>]>, "many">;
568
+ signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ userId: string;
571
+ interactionEvent: import("./interactions.js").InteractionEvent;
572
+ verificationRecords: ({
573
+ type: import("./index.js").VerificationType.BackupCode;
574
+ id: string;
575
+ userId: string;
576
+ code?: string | undefined;
577
+ } | {
578
+ type: import("./index.js").VerificationType.EmailVerificationCode;
579
+ id: string;
580
+ identifier: {
581
+ value: string;
582
+ type: import("../foundations/index.js").SignInIdentifier.Email;
583
+ };
584
+ templateType: import("../foundations/index.js").TemplateType;
585
+ verified: boolean;
586
+ } | {
587
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
588
+ id: string;
589
+ identifier: {
590
+ value: string;
591
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
592
+ };
593
+ templateType: import("../foundations/index.js").TemplateType;
594
+ verified: boolean;
595
+ } | {
596
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
597
+ id: string;
598
+ identifier: {
599
+ value: string;
600
+ type: import("../foundations/index.js").SignInIdentifier;
601
+ };
602
+ } | {
603
+ type: import("./index.js").VerificationType.OneTimeToken;
604
+ id: string;
605
+ identifier: {
606
+ value: string;
607
+ type: import("../foundations/index.js").SignInIdentifier.Email;
608
+ };
609
+ verified: boolean;
610
+ oneTimeTokenContext?: {
611
+ jitOrganizationIds?: string[] | undefined;
612
+ } | undefined;
613
+ } | {
614
+ type: import("./index.js").VerificationType.Password;
615
+ id: string;
616
+ identifier: {
617
+ value: string;
618
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
619
+ };
620
+ verified: boolean;
621
+ } | {
622
+ type: import("./index.js").VerificationType.Social;
623
+ id: string;
624
+ connectorId: string;
625
+ socialUserInfo?: {
626
+ id: string;
627
+ name?: string | undefined;
628
+ email?: string | undefined;
629
+ phone?: string | undefined;
630
+ avatar?: string | undefined;
631
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
632
+ } | undefined;
633
+ } | {
634
+ type: import("./index.js").VerificationType.TOTP;
635
+ id: string;
636
+ userId: string;
637
+ verified: boolean;
638
+ } | {
639
+ type: import("./index.js").VerificationType.EnterpriseSso;
640
+ id: string;
641
+ connectorId: string;
642
+ issuer?: string | undefined;
643
+ enterpriseSsoUserInfo?: {
644
+ id: string;
645
+ name?: string | undefined;
646
+ email?: string | undefined;
647
+ phone?: string | undefined;
648
+ avatar?: string | undefined;
649
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
650
+ } | undefined;
651
+ } | {
652
+ type: import("./index.js").VerificationType.WebAuthn;
653
+ id: string;
654
+ userId: string;
655
+ verified: boolean;
656
+ registrationRpId?: string | undefined;
657
+ } | {
658
+ type: import("./index.js").VerificationType.SignInWebAuthn;
659
+ id: string;
660
+ verified: boolean;
661
+ userId?: string | undefined;
662
+ registrationRpId?: string | undefined;
663
+ })[];
664
+ signInContext?: Record<string, string> | undefined;
665
+ }, {
666
+ userId: string;
667
+ interactionEvent: import("./interactions.js").InteractionEvent;
668
+ verificationRecords: ({
669
+ type: import("./index.js").VerificationType.BackupCode;
670
+ id: string;
671
+ userId: string;
672
+ code?: string | undefined;
673
+ } | {
674
+ type: import("./index.js").VerificationType.EmailVerificationCode;
675
+ id: string;
676
+ identifier: {
677
+ value: string;
678
+ type: import("../foundations/index.js").SignInIdentifier.Email;
679
+ };
680
+ templateType: import("../foundations/index.js").TemplateType;
681
+ verified: boolean;
682
+ } | {
683
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
684
+ id: string;
685
+ identifier: {
686
+ value: string;
687
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
688
+ };
689
+ templateType: import("../foundations/index.js").TemplateType;
690
+ verified: boolean;
691
+ } | {
692
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
693
+ id: string;
694
+ identifier: {
695
+ value: string;
696
+ type: import("../foundations/index.js").SignInIdentifier;
697
+ };
698
+ } | {
699
+ type: import("./index.js").VerificationType.OneTimeToken;
700
+ id: string;
701
+ identifier: {
702
+ value: string;
703
+ type: import("../foundations/index.js").SignInIdentifier.Email;
704
+ };
705
+ verified: boolean;
706
+ oneTimeTokenContext?: {
707
+ jitOrganizationIds?: string[] | undefined;
708
+ } | undefined;
709
+ } | {
710
+ type: import("./index.js").VerificationType.Password;
711
+ id: string;
712
+ identifier: {
713
+ value: string;
714
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
715
+ };
716
+ verified: boolean;
717
+ } | {
718
+ type: import("./index.js").VerificationType.Social;
719
+ id: string;
720
+ connectorId: string;
721
+ socialUserInfo?: {
722
+ id: string;
723
+ name?: string | undefined;
724
+ email?: string | undefined;
725
+ phone?: string | undefined;
726
+ avatar?: string | undefined;
727
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
728
+ } | undefined;
729
+ } | {
730
+ type: import("./index.js").VerificationType.TOTP;
731
+ id: string;
732
+ userId: string;
733
+ verified: boolean;
734
+ } | {
735
+ type: import("./index.js").VerificationType.EnterpriseSso;
736
+ id: string;
737
+ connectorId: string;
738
+ issuer?: string | undefined;
739
+ enterpriseSsoUserInfo?: {
740
+ id: string;
741
+ name?: string | undefined;
742
+ email?: string | undefined;
743
+ phone?: string | undefined;
744
+ avatar?: string | undefined;
745
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
746
+ } | undefined;
747
+ } | {
748
+ type: import("./index.js").VerificationType.WebAuthn;
749
+ id: string;
750
+ userId: string;
751
+ verified: boolean;
752
+ registrationRpId?: string | undefined;
753
+ } | {
754
+ type: import("./index.js").VerificationType.SignInWebAuthn;
755
+ id: string;
756
+ verified: boolean;
757
+ userId?: string | undefined;
758
+ registrationRpId?: string | undefined;
759
+ })[];
760
+ signInContext?: Record<string, string> | undefined;
761
+ }>>;
762
+ clientId: z.ZodNullable<z.ZodString>;
763
+ accountId: z.ZodNullable<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ id: string;
766
+ tenantId: string;
767
+ accountId: string | null;
768
+ expiresAt: number;
769
+ payload: {
770
+ uid: string;
771
+ exp: number;
772
+ iat: number;
773
+ jti: string;
774
+ kind: "Session";
775
+ loginTs: number;
776
+ accountId: string;
777
+ authorizations: Record<string, z.objectOutputType<{
778
+ sid: z.ZodOptional<z.ZodString>;
779
+ grantId: z.ZodOptional<z.ZodString>;
780
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
781
+ }, z.ZodUnknown, "strip">>;
782
+ } & {
783
+ [k: string]: unknown;
784
+ };
785
+ modelName: string;
786
+ consumedAt: number | null;
787
+ lastSubmission: {
788
+ userId: string;
789
+ interactionEvent: import("./interactions.js").InteractionEvent;
790
+ verificationRecords: ({
791
+ type: import("./index.js").VerificationType.BackupCode;
792
+ id: string;
793
+ userId: string;
794
+ code?: string | undefined;
795
+ } | {
796
+ type: import("./index.js").VerificationType.EmailVerificationCode;
797
+ id: string;
798
+ identifier: {
799
+ value: string;
800
+ type: import("../foundations/index.js").SignInIdentifier.Email;
801
+ };
802
+ templateType: import("../foundations/index.js").TemplateType;
803
+ verified: boolean;
804
+ } | {
805
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
806
+ id: string;
807
+ identifier: {
808
+ value: string;
809
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
810
+ };
811
+ templateType: import("../foundations/index.js").TemplateType;
812
+ verified: boolean;
813
+ } | {
814
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
815
+ id: string;
816
+ identifier: {
817
+ value: string;
818
+ type: import("../foundations/index.js").SignInIdentifier;
819
+ };
820
+ } | {
821
+ type: import("./index.js").VerificationType.OneTimeToken;
822
+ id: string;
823
+ identifier: {
824
+ value: string;
825
+ type: import("../foundations/index.js").SignInIdentifier.Email;
826
+ };
827
+ verified: boolean;
828
+ oneTimeTokenContext?: {
829
+ jitOrganizationIds?: string[] | undefined;
830
+ } | undefined;
831
+ } | {
832
+ type: import("./index.js").VerificationType.Password;
833
+ id: string;
834
+ identifier: {
835
+ value: string;
836
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
837
+ };
838
+ verified: boolean;
839
+ } | {
840
+ type: import("./index.js").VerificationType.Social;
841
+ id: string;
842
+ connectorId: string;
843
+ socialUserInfo?: {
844
+ id: string;
845
+ name?: string | undefined;
846
+ email?: string | undefined;
847
+ phone?: string | undefined;
848
+ avatar?: string | undefined;
849
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
850
+ } | undefined;
851
+ } | {
852
+ type: import("./index.js").VerificationType.TOTP;
853
+ id: string;
854
+ userId: string;
855
+ verified: boolean;
856
+ } | {
857
+ type: import("./index.js").VerificationType.EnterpriseSso;
858
+ id: string;
859
+ connectorId: string;
860
+ issuer?: string | undefined;
861
+ enterpriseSsoUserInfo?: {
862
+ id: string;
863
+ name?: string | undefined;
864
+ email?: string | undefined;
865
+ phone?: string | undefined;
866
+ avatar?: string | undefined;
867
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
868
+ } | undefined;
869
+ } | {
870
+ type: import("./index.js").VerificationType.WebAuthn;
871
+ id: string;
872
+ userId: string;
873
+ verified: boolean;
874
+ registrationRpId?: string | undefined;
875
+ } | {
876
+ type: import("./index.js").VerificationType.SignInWebAuthn;
877
+ id: string;
878
+ verified: boolean;
879
+ userId?: string | undefined;
880
+ registrationRpId?: string | undefined;
881
+ })[];
882
+ signInContext?: Record<string, string> | undefined;
883
+ } | null;
884
+ clientId: string | null;
885
+ }, {
886
+ id: string;
887
+ tenantId: string;
888
+ accountId: string | null;
889
+ expiresAt: number;
890
+ payload: {
891
+ uid: string;
892
+ exp: number;
893
+ iat: number;
894
+ jti: string;
895
+ kind: "Session";
896
+ loginTs: number;
897
+ accountId: string;
898
+ authorizations: Record<string, z.objectInputType<{
899
+ sid: z.ZodOptional<z.ZodString>;
900
+ grantId: z.ZodOptional<z.ZodString>;
901
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
902
+ }, z.ZodUnknown, "strip">>;
903
+ } & {
904
+ [k: string]: unknown;
905
+ };
906
+ modelName: string;
907
+ consumedAt: number | null;
908
+ lastSubmission: {
909
+ userId: string;
910
+ interactionEvent: import("./interactions.js").InteractionEvent;
911
+ verificationRecords: ({
912
+ type: import("./index.js").VerificationType.BackupCode;
913
+ id: string;
914
+ userId: string;
915
+ code?: string | undefined;
916
+ } | {
917
+ type: import("./index.js").VerificationType.EmailVerificationCode;
918
+ id: string;
919
+ identifier: {
920
+ value: string;
921
+ type: import("../foundations/index.js").SignInIdentifier.Email;
922
+ };
923
+ templateType: import("../foundations/index.js").TemplateType;
924
+ verified: boolean;
925
+ } | {
926
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
927
+ id: string;
928
+ identifier: {
929
+ value: string;
930
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
931
+ };
932
+ templateType: import("../foundations/index.js").TemplateType;
933
+ verified: boolean;
934
+ } | {
935
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
936
+ id: string;
937
+ identifier: {
938
+ value: string;
939
+ type: import("../foundations/index.js").SignInIdentifier;
940
+ };
941
+ } | {
942
+ type: import("./index.js").VerificationType.OneTimeToken;
943
+ id: string;
944
+ identifier: {
945
+ value: string;
946
+ type: import("../foundations/index.js").SignInIdentifier.Email;
947
+ };
948
+ verified: boolean;
949
+ oneTimeTokenContext?: {
950
+ jitOrganizationIds?: string[] | undefined;
951
+ } | undefined;
952
+ } | {
953
+ type: import("./index.js").VerificationType.Password;
954
+ id: string;
955
+ identifier: {
956
+ value: string;
957
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
958
+ };
959
+ verified: boolean;
960
+ } | {
961
+ type: import("./index.js").VerificationType.Social;
962
+ id: string;
963
+ connectorId: string;
964
+ socialUserInfo?: {
965
+ id: string;
966
+ name?: string | undefined;
967
+ email?: string | undefined;
968
+ phone?: string | undefined;
969
+ avatar?: string | undefined;
970
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
971
+ } | undefined;
972
+ } | {
973
+ type: import("./index.js").VerificationType.TOTP;
974
+ id: string;
975
+ userId: string;
976
+ verified: boolean;
977
+ } | {
978
+ type: import("./index.js").VerificationType.EnterpriseSso;
979
+ id: string;
980
+ connectorId: string;
981
+ issuer?: string | undefined;
982
+ enterpriseSsoUserInfo?: {
983
+ id: string;
984
+ name?: string | undefined;
985
+ email?: string | undefined;
986
+ phone?: string | undefined;
987
+ avatar?: string | undefined;
988
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
989
+ } | undefined;
990
+ } | {
991
+ type: import("./index.js").VerificationType.WebAuthn;
992
+ id: string;
993
+ userId: string;
994
+ verified: boolean;
995
+ registrationRpId?: string | undefined;
996
+ } | {
997
+ type: import("./index.js").VerificationType.SignInWebAuthn;
998
+ id: string;
999
+ verified: boolean;
1000
+ userId?: string | undefined;
1001
+ registrationRpId?: string | undefined;
1002
+ })[];
1003
+ signInContext?: Record<string, string> | undefined;
1004
+ } | null;
1005
+ clientId: string | null;
1006
+ }>;
1007
+ export declare const getUserSessionsResponseGuard: z.ZodObject<{
1008
+ 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
+ payload: z.ZodObject<{
1016
+ exp: z.ZodNumber;
1017
+ iat: z.ZodNumber;
1018
+ jti: z.ZodString;
1019
+ uid: z.ZodString;
1020
+ kind: z.ZodLiteral<"Session">;
1021
+ loginTs: z.ZodNumber;
1022
+ accountId: z.ZodString;
1023
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
1024
+ sid: z.ZodOptional<z.ZodString>;
1025
+ grantId: z.ZodOptional<z.ZodString>;
1026
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1027
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1028
+ sid: z.ZodOptional<z.ZodString>;
1029
+ grantId: z.ZodOptional<z.ZodString>;
1030
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1031
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1032
+ sid: z.ZodOptional<z.ZodString>;
1033
+ grantId: z.ZodOptional<z.ZodString>;
1034
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1035
+ }, z.ZodUnknown, "strip">>>;
1036
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1037
+ exp: z.ZodNumber;
1038
+ iat: z.ZodNumber;
1039
+ jti: z.ZodString;
1040
+ uid: z.ZodString;
1041
+ kind: z.ZodLiteral<"Session">;
1042
+ loginTs: z.ZodNumber;
1043
+ accountId: z.ZodString;
1044
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
1045
+ sid: z.ZodOptional<z.ZodString>;
1046
+ grantId: z.ZodOptional<z.ZodString>;
1047
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1048
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1049
+ sid: z.ZodOptional<z.ZodString>;
1050
+ grantId: z.ZodOptional<z.ZodString>;
1051
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1052
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1053
+ sid: z.ZodOptional<z.ZodString>;
1054
+ grantId: z.ZodOptional<z.ZodString>;
1055
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1056
+ }, z.ZodUnknown, "strip">>>;
1057
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1058
+ exp: z.ZodNumber;
1059
+ iat: z.ZodNumber;
1060
+ jti: z.ZodString;
1061
+ uid: z.ZodString;
1062
+ kind: z.ZodLiteral<"Session">;
1063
+ loginTs: z.ZodNumber;
1064
+ accountId: z.ZodString;
1065
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
1066
+ sid: z.ZodOptional<z.ZodString>;
1067
+ grantId: z.ZodOptional<z.ZodString>;
1068
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1069
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1070
+ sid: z.ZodOptional<z.ZodString>;
1071
+ grantId: z.ZodOptional<z.ZodString>;
1072
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1073
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1074
+ sid: z.ZodOptional<z.ZodString>;
1075
+ grantId: z.ZodOptional<z.ZodString>;
1076
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1077
+ }, z.ZodUnknown, "strip">>>;
1078
+ }, z.ZodUnknown, "strip">>;
1079
+ lastSubmission: z.ZodNullable<z.ZodObject<{
1080
+ interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
1081
+ userId: z.ZodString;
1082
+ verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1083
+ id: z.ZodString;
1084
+ type: z.ZodLiteral<import("./index.js").VerificationType.Password>;
1085
+ identifier: z.ZodObject<{
1086
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../foundations/index.js").AdditionalIdentifier>]>;
1087
+ value: z.ZodString;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ value: string;
1090
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1091
+ }, {
1092
+ value: string;
1093
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1094
+ }>;
1095
+ verified: z.ZodBoolean;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ type: import("./index.js").VerificationType.Password;
1098
+ id: string;
1099
+ identifier: {
1100
+ value: string;
1101
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1102
+ };
1103
+ verified: boolean;
1104
+ }, {
1105
+ type: import("./index.js").VerificationType.Password;
1106
+ id: string;
1107
+ identifier: {
1108
+ value: string;
1109
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1110
+ };
1111
+ verified: boolean;
1112
+ }>, z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1115
+ verified: z.ZodBoolean;
1116
+ } & {
1117
+ type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
1118
+ identifier: z.ZodObject<{
1119
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
1120
+ value: z.ZodString;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ value: string;
1123
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1124
+ }, {
1125
+ value: string;
1126
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1127
+ }>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1130
+ id: string;
1131
+ identifier: {
1132
+ value: string;
1133
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1134
+ };
1135
+ templateType: import("../foundations/index.js").TemplateType;
1136
+ verified: boolean;
1137
+ }, {
1138
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1139
+ id: string;
1140
+ identifier: {
1141
+ value: string;
1142
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1143
+ };
1144
+ templateType: import("../foundations/index.js").TemplateType;
1145
+ verified: boolean;
1146
+ }>, z.ZodObject<{
1147
+ id: z.ZodString;
1148
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
1149
+ verified: z.ZodBoolean;
1150
+ } & {
1151
+ type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
1152
+ identifier: z.ZodObject<{
1153
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
1154
+ value: z.ZodString;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ value: string;
1157
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1158
+ }, {
1159
+ value: string;
1160
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1161
+ }>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1164
+ id: string;
1165
+ identifier: {
1166
+ value: string;
1167
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1168
+ };
1169
+ templateType: import("../foundations/index.js").TemplateType;
1170
+ verified: boolean;
1171
+ }, {
1172
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1173
+ id: string;
1174
+ identifier: {
1175
+ value: string;
1176
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1177
+ };
1178
+ templateType: import("../foundations/index.js").TemplateType;
1179
+ verified: boolean;
1180
+ }>, z.ZodObject<Omit<{
1181
+ id: z.ZodString;
1182
+ connectorId: z.ZodString;
1183
+ type: z.ZodLiteral<import("./index.js").VerificationType.Social>;
1184
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
1185
+ id: z.ZodString;
1186
+ email: z.ZodOptional<z.ZodString>;
1187
+ phone: z.ZodOptional<z.ZodString>;
1188
+ name: z.ZodOptional<z.ZodString>;
1189
+ avatar: z.ZodOptional<z.ZodString>;
1190
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ id: string;
1193
+ name?: string | undefined;
1194
+ email?: string | undefined;
1195
+ phone?: string | undefined;
1196
+ avatar?: string | undefined;
1197
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1198
+ }, {
1199
+ id: string;
1200
+ name?: string | undefined;
1201
+ email?: string | undefined;
1202
+ phone?: string | undefined;
1203
+ avatar?: string | undefined;
1204
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1205
+ }>>;
1206
+ encryptedTokenSet: z.ZodOptional<z.ZodObject<{
1207
+ encryptedTokenSetBase64: z.ZodString;
1208
+ metadata: z.ZodObject<{
1209
+ scope: z.ZodOptional<z.ZodString>;
1210
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1211
+ tokenType: z.ZodOptional<z.ZodString>;
1212
+ hasRefreshToken: z.ZodBoolean;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ hasRefreshToken: boolean;
1215
+ scope?: string | undefined;
1216
+ expiresAt?: number | undefined;
1217
+ tokenType?: string | undefined;
1218
+ }, {
1219
+ hasRefreshToken: boolean;
1220
+ scope?: string | undefined;
1221
+ expiresAt?: number | undefined;
1222
+ tokenType?: string | undefined;
1223
+ }>;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ metadata: {
1226
+ hasRefreshToken: boolean;
1227
+ scope?: string | undefined;
1228
+ expiresAt?: number | undefined;
1229
+ tokenType?: string | undefined;
1230
+ };
1231
+ encryptedTokenSetBase64: string;
1232
+ }, {
1233
+ metadata: {
1234
+ hasRefreshToken: boolean;
1235
+ scope?: string | undefined;
1236
+ expiresAt?: number | undefined;
1237
+ tokenType?: string | undefined;
1238
+ };
1239
+ encryptedTokenSetBase64: string;
1240
+ }>>;
1241
+ connectorSession: z.ZodOptional<z.ZodObject<{
1242
+ nonce: z.ZodOptional<z.ZodString>;
1243
+ redirectUri: z.ZodOptional<z.ZodString>;
1244
+ connectorId: z.ZodOptional<z.ZodString>;
1245
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1246
+ jti: z.ZodOptional<z.ZodString>;
1247
+ state: z.ZodOptional<z.ZodString>;
1248
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1249
+ nonce: z.ZodOptional<z.ZodString>;
1250
+ redirectUri: z.ZodOptional<z.ZodString>;
1251
+ connectorId: z.ZodOptional<z.ZodString>;
1252
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1253
+ jti: z.ZodOptional<z.ZodString>;
1254
+ state: z.ZodOptional<z.ZodString>;
1255
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1256
+ nonce: z.ZodOptional<z.ZodString>;
1257
+ redirectUri: z.ZodOptional<z.ZodString>;
1258
+ connectorId: z.ZodOptional<z.ZodString>;
1259
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
1260
+ jti: z.ZodOptional<z.ZodString>;
1261
+ state: z.ZodOptional<z.ZodString>;
1262
+ }, z.ZodUnknown, "strip">>>;
1263
+ }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
1264
+ type: import("./index.js").VerificationType.Social;
1265
+ id: string;
1266
+ connectorId: string;
1267
+ socialUserInfo?: {
1268
+ id: string;
1269
+ name?: string | undefined;
1270
+ email?: string | undefined;
1271
+ phone?: string | undefined;
1272
+ avatar?: string | undefined;
1273
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1274
+ } | undefined;
1275
+ }, {
1276
+ type: import("./index.js").VerificationType.Social;
1277
+ id: string;
1278
+ connectorId: string;
1279
+ socialUserInfo?: {
1280
+ id: string;
1281
+ name?: string | undefined;
1282
+ email?: string | undefined;
1283
+ phone?: string | undefined;
1284
+ avatar?: string | undefined;
1285
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1286
+ } | undefined;
1287
+ }>, z.ZodObject<{
1288
+ type: z.ZodLiteral<import("./index.js").VerificationType.EnterpriseSso>;
1289
+ id: z.ZodString;
1290
+ issuer: z.ZodOptional<z.ZodString>;
1291
+ connectorId: z.ZodString;
1292
+ } & {
1293
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
1294
+ id: z.ZodString;
1295
+ email: z.ZodOptional<z.ZodString>;
1296
+ phone: z.ZodOptional<z.ZodString>;
1297
+ name: z.ZodOptional<z.ZodString>;
1298
+ avatar: z.ZodOptional<z.ZodString>;
1299
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1300
+ }, "strip", z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
1301
+ id: string;
1302
+ name?: string | undefined;
1303
+ email?: string | undefined;
1304
+ phone?: string | undefined;
1305
+ avatar?: string | undefined;
1306
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1307
+ }, {
1308
+ id: string;
1309
+ name?: string | undefined;
1310
+ email?: string | undefined;
1311
+ phone?: string | undefined;
1312
+ avatar?: string | undefined;
1313
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1314
+ }>>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ type: import("./index.js").VerificationType.EnterpriseSso;
1317
+ id: string;
1318
+ connectorId: string;
1319
+ issuer?: string | undefined;
1320
+ enterpriseSsoUserInfo?: {
1321
+ id: string;
1322
+ name?: string | undefined;
1323
+ email?: string | undefined;
1324
+ phone?: string | undefined;
1325
+ avatar?: string | undefined;
1326
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1327
+ } | undefined;
1328
+ }, {
1329
+ type: import("./index.js").VerificationType.EnterpriseSso;
1330
+ id: string;
1331
+ connectorId: string;
1332
+ issuer?: string | undefined;
1333
+ enterpriseSsoUserInfo?: {
1334
+ id: string;
1335
+ name?: string | undefined;
1336
+ email?: string | undefined;
1337
+ phone?: string | undefined;
1338
+ avatar?: string | undefined;
1339
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1340
+ } | undefined;
1341
+ }>, z.ZodObject<Omit<{
1342
+ id: z.ZodString;
1343
+ type: z.ZodLiteral<import("./index.js").VerificationType.TOTP>;
1344
+ userId: z.ZodString;
1345
+ secret: z.ZodOptional<z.ZodString>;
1346
+ verified: z.ZodBoolean;
1347
+ }, "secret">, "strip", z.ZodTypeAny, {
1348
+ type: import("./index.js").VerificationType.TOTP;
1349
+ id: string;
1350
+ userId: string;
1351
+ verified: boolean;
1352
+ }, {
1353
+ type: import("./index.js").VerificationType.TOTP;
1354
+ id: string;
1355
+ userId: string;
1356
+ verified: boolean;
1357
+ }>, z.ZodObject<Omit<{
1358
+ id: z.ZodString;
1359
+ type: z.ZodLiteral<import("./index.js").VerificationType.BackupCode>;
1360
+ userId: z.ZodString;
1361
+ code: z.ZodOptional<z.ZodString>;
1362
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1363
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
1364
+ type: import("./index.js").VerificationType.BackupCode;
1365
+ id: string;
1366
+ userId: string;
1367
+ code?: string | undefined;
1368
+ }, {
1369
+ type: import("./index.js").VerificationType.BackupCode;
1370
+ id: string;
1371
+ userId: string;
1372
+ code?: string | undefined;
1373
+ }>, z.ZodObject<Omit<{
1374
+ id: z.ZodString;
1375
+ verified: z.ZodBoolean;
1376
+ registrationChallenge: z.ZodOptional<z.ZodString>;
1377
+ registrationRpId: z.ZodOptional<z.ZodString>;
1378
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
1379
+ registrationInfo: z.ZodOptional<z.ZodObject<{
1380
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
1381
+ rpId: z.ZodString;
1382
+ credentialId: z.ZodString;
1383
+ publicKey: z.ZodString;
1384
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
1385
+ counter: z.ZodNumber;
1386
+ agent: z.ZodString;
1387
+ name: z.ZodOptional<z.ZodString>;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
1390
+ rpId: string;
1391
+ credentialId: string;
1392
+ publicKey: string;
1393
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1394
+ counter: number;
1395
+ agent: string;
1396
+ name?: string | undefined;
1397
+ }, {
1398
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
1399
+ rpId: string;
1400
+ credentialId: string;
1401
+ publicKey: string;
1402
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1403
+ counter: number;
1404
+ agent: string;
1405
+ name?: string | undefined;
1406
+ }>>;
1407
+ } & {
1408
+ type: z.ZodLiteral<import("./index.js").VerificationType.WebAuthn>;
1409
+ userId: z.ZodString;
1410
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
1411
+ type: import("./index.js").VerificationType.WebAuthn;
1412
+ id: string;
1413
+ userId: string;
1414
+ verified: boolean;
1415
+ registrationRpId?: string | undefined;
1416
+ }, {
1417
+ type: import("./index.js").VerificationType.WebAuthn;
1418
+ id: string;
1419
+ userId: string;
1420
+ verified: boolean;
1421
+ registrationRpId?: string | undefined;
1422
+ }>, z.ZodObject<Omit<{
1423
+ id: z.ZodString;
1424
+ verified: z.ZodBoolean;
1425
+ registrationChallenge: z.ZodOptional<z.ZodString>;
1426
+ registrationRpId: z.ZodOptional<z.ZodString>;
1427
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
1428
+ registrationInfo: z.ZodOptional<z.ZodObject<{
1429
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
1430
+ rpId: z.ZodString;
1431
+ credentialId: z.ZodString;
1432
+ publicKey: z.ZodString;
1433
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
1434
+ counter: z.ZodNumber;
1435
+ agent: z.ZodString;
1436
+ name: z.ZodOptional<z.ZodString>;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
1439
+ rpId: string;
1440
+ credentialId: string;
1441
+ publicKey: string;
1442
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1443
+ counter: number;
1444
+ agent: string;
1445
+ name?: string | undefined;
1446
+ }, {
1447
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
1448
+ rpId: string;
1449
+ credentialId: string;
1450
+ publicKey: string;
1451
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
1452
+ counter: number;
1453
+ agent: string;
1454
+ name?: string | undefined;
1455
+ }>>;
1456
+ } & {
1457
+ type: z.ZodLiteral<import("./index.js").VerificationType.SignInWebAuthn>;
1458
+ userId: z.ZodOptional<z.ZodString>;
1459
+ authenticationRpId: z.ZodOptional<z.ZodString>;
1460
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
1461
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1462
+ id: string;
1463
+ verified: boolean;
1464
+ userId?: string | undefined;
1465
+ registrationRpId?: string | undefined;
1466
+ }, {
1467
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1468
+ id: string;
1469
+ verified: boolean;
1470
+ userId?: string | undefined;
1471
+ registrationRpId?: string | undefined;
1472
+ }>, z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ type: z.ZodLiteral<import("./index.js").VerificationType.OneTimeToken>;
1475
+ verified: z.ZodBoolean;
1476
+ identifier: z.ZodObject<{
1477
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
1478
+ value: z.ZodString;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ value: string;
1481
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1482
+ }, {
1483
+ value: string;
1484
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1485
+ }>;
1486
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
1487
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ jitOrganizationIds?: string[] | undefined;
1490
+ }, {
1491
+ jitOrganizationIds?: string[] | undefined;
1492
+ }>>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ type: import("./index.js").VerificationType.OneTimeToken;
1495
+ id: string;
1496
+ identifier: {
1497
+ value: string;
1498
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1499
+ };
1500
+ verified: boolean;
1501
+ oneTimeTokenContext?: {
1502
+ jitOrganizationIds?: string[] | undefined;
1503
+ } | undefined;
1504
+ }, {
1505
+ type: import("./index.js").VerificationType.OneTimeToken;
1506
+ id: string;
1507
+ identifier: {
1508
+ value: string;
1509
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1510
+ };
1511
+ verified: boolean;
1512
+ oneTimeTokenContext?: {
1513
+ jitOrganizationIds?: string[] | undefined;
1514
+ } | undefined;
1515
+ }>, z.ZodObject<Omit<{
1516
+ id: z.ZodString;
1517
+ type: z.ZodLiteral<import("./index.js").VerificationType.NewPasswordIdentity>;
1518
+ identifier: z.ZodObject<{
1519
+ type: z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>;
1520
+ value: z.ZodString;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ value: string;
1523
+ type: import("../foundations/index.js").SignInIdentifier;
1524
+ }, {
1525
+ value: string;
1526
+ type: import("../foundations/index.js").SignInIdentifier;
1527
+ }>;
1528
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
1529
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../index.js").UsersPasswordEncryptionMethod.Argon2i>>;
1530
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
1531
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1532
+ id: string;
1533
+ identifier: {
1534
+ value: string;
1535
+ type: import("../foundations/index.js").SignInIdentifier;
1536
+ };
1537
+ }, {
1538
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1539
+ id: string;
1540
+ identifier: {
1541
+ value: string;
1542
+ type: import("../foundations/index.js").SignInIdentifier;
1543
+ };
1544
+ }>]>, "many">;
1545
+ signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ userId: string;
1548
+ interactionEvent: import("./interactions.js").InteractionEvent;
1549
+ verificationRecords: ({
1550
+ type: import("./index.js").VerificationType.BackupCode;
1551
+ id: string;
1552
+ userId: string;
1553
+ code?: string | undefined;
1554
+ } | {
1555
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1556
+ id: string;
1557
+ identifier: {
1558
+ value: string;
1559
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1560
+ };
1561
+ templateType: import("../foundations/index.js").TemplateType;
1562
+ verified: boolean;
1563
+ } | {
1564
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1565
+ id: string;
1566
+ identifier: {
1567
+ value: string;
1568
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1569
+ };
1570
+ templateType: import("../foundations/index.js").TemplateType;
1571
+ verified: boolean;
1572
+ } | {
1573
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1574
+ id: string;
1575
+ identifier: {
1576
+ value: string;
1577
+ type: import("../foundations/index.js").SignInIdentifier;
1578
+ };
1579
+ } | {
1580
+ type: import("./index.js").VerificationType.OneTimeToken;
1581
+ id: string;
1582
+ identifier: {
1583
+ value: string;
1584
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1585
+ };
1586
+ verified: boolean;
1587
+ oneTimeTokenContext?: {
1588
+ jitOrganizationIds?: string[] | undefined;
1589
+ } | undefined;
1590
+ } | {
1591
+ type: import("./index.js").VerificationType.Password;
1592
+ id: string;
1593
+ identifier: {
1594
+ value: string;
1595
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1596
+ };
1597
+ verified: boolean;
1598
+ } | {
1599
+ type: import("./index.js").VerificationType.Social;
1600
+ id: string;
1601
+ connectorId: string;
1602
+ socialUserInfo?: {
1603
+ id: string;
1604
+ name?: string | undefined;
1605
+ email?: string | undefined;
1606
+ phone?: string | undefined;
1607
+ avatar?: string | undefined;
1608
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1609
+ } | undefined;
1610
+ } | {
1611
+ type: import("./index.js").VerificationType.TOTP;
1612
+ id: string;
1613
+ userId: string;
1614
+ verified: boolean;
1615
+ } | {
1616
+ type: import("./index.js").VerificationType.EnterpriseSso;
1617
+ id: string;
1618
+ connectorId: string;
1619
+ issuer?: string | undefined;
1620
+ enterpriseSsoUserInfo?: {
1621
+ id: string;
1622
+ name?: string | undefined;
1623
+ email?: string | undefined;
1624
+ phone?: string | undefined;
1625
+ avatar?: string | undefined;
1626
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1627
+ } | undefined;
1628
+ } | {
1629
+ type: import("./index.js").VerificationType.WebAuthn;
1630
+ id: string;
1631
+ userId: string;
1632
+ verified: boolean;
1633
+ registrationRpId?: string | undefined;
1634
+ } | {
1635
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1636
+ id: string;
1637
+ verified: boolean;
1638
+ userId?: string | undefined;
1639
+ registrationRpId?: string | undefined;
1640
+ })[];
1641
+ signInContext?: Record<string, string> | undefined;
1642
+ }, {
1643
+ userId: string;
1644
+ interactionEvent: import("./interactions.js").InteractionEvent;
1645
+ verificationRecords: ({
1646
+ type: import("./index.js").VerificationType.BackupCode;
1647
+ id: string;
1648
+ userId: string;
1649
+ code?: string | undefined;
1650
+ } | {
1651
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1652
+ id: string;
1653
+ identifier: {
1654
+ value: string;
1655
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1656
+ };
1657
+ templateType: import("../foundations/index.js").TemplateType;
1658
+ verified: boolean;
1659
+ } | {
1660
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1661
+ id: string;
1662
+ identifier: {
1663
+ value: string;
1664
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1665
+ };
1666
+ templateType: import("../foundations/index.js").TemplateType;
1667
+ verified: boolean;
1668
+ } | {
1669
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1670
+ id: string;
1671
+ identifier: {
1672
+ value: string;
1673
+ type: import("../foundations/index.js").SignInIdentifier;
1674
+ };
1675
+ } | {
1676
+ type: import("./index.js").VerificationType.OneTimeToken;
1677
+ id: string;
1678
+ identifier: {
1679
+ value: string;
1680
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1681
+ };
1682
+ verified: boolean;
1683
+ oneTimeTokenContext?: {
1684
+ jitOrganizationIds?: string[] | undefined;
1685
+ } | undefined;
1686
+ } | {
1687
+ type: import("./index.js").VerificationType.Password;
1688
+ id: string;
1689
+ identifier: {
1690
+ value: string;
1691
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1692
+ };
1693
+ verified: boolean;
1694
+ } | {
1695
+ type: import("./index.js").VerificationType.Social;
1696
+ id: string;
1697
+ connectorId: string;
1698
+ socialUserInfo?: {
1699
+ id: string;
1700
+ name?: string | undefined;
1701
+ email?: string | undefined;
1702
+ phone?: string | undefined;
1703
+ avatar?: string | undefined;
1704
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1705
+ } | undefined;
1706
+ } | {
1707
+ type: import("./index.js").VerificationType.TOTP;
1708
+ id: string;
1709
+ userId: string;
1710
+ verified: boolean;
1711
+ } | {
1712
+ type: import("./index.js").VerificationType.EnterpriseSso;
1713
+ id: string;
1714
+ connectorId: string;
1715
+ issuer?: string | undefined;
1716
+ enterpriseSsoUserInfo?: {
1717
+ id: string;
1718
+ name?: string | undefined;
1719
+ email?: string | undefined;
1720
+ phone?: string | undefined;
1721
+ avatar?: string | undefined;
1722
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1723
+ } | undefined;
1724
+ } | {
1725
+ type: import("./index.js").VerificationType.WebAuthn;
1726
+ id: string;
1727
+ userId: string;
1728
+ verified: boolean;
1729
+ registrationRpId?: string | undefined;
1730
+ } | {
1731
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1732
+ id: string;
1733
+ verified: boolean;
1734
+ userId?: string | undefined;
1735
+ registrationRpId?: string | undefined;
1736
+ })[];
1737
+ signInContext?: Record<string, string> | undefined;
1738
+ }>>;
1739
+ clientId: z.ZodNullable<z.ZodString>;
1740
+ accountId: z.ZodNullable<z.ZodString>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ id: string;
1743
+ tenantId: string;
1744
+ accountId: string | null;
1745
+ expiresAt: number;
1746
+ payload: {
1747
+ uid: string;
1748
+ exp: number;
1749
+ iat: number;
1750
+ jti: string;
1751
+ kind: "Session";
1752
+ loginTs: number;
1753
+ accountId: string;
1754
+ authorizations: Record<string, z.objectOutputType<{
1755
+ sid: z.ZodOptional<z.ZodString>;
1756
+ grantId: z.ZodOptional<z.ZodString>;
1757
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1758
+ }, z.ZodUnknown, "strip">>;
1759
+ } & {
1760
+ [k: string]: unknown;
1761
+ };
1762
+ modelName: string;
1763
+ consumedAt: number | null;
1764
+ lastSubmission: {
1765
+ userId: string;
1766
+ interactionEvent: import("./interactions.js").InteractionEvent;
1767
+ verificationRecords: ({
1768
+ type: import("./index.js").VerificationType.BackupCode;
1769
+ id: string;
1770
+ userId: string;
1771
+ code?: string | undefined;
1772
+ } | {
1773
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1774
+ id: string;
1775
+ identifier: {
1776
+ value: string;
1777
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1778
+ };
1779
+ templateType: import("../foundations/index.js").TemplateType;
1780
+ verified: boolean;
1781
+ } | {
1782
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1783
+ id: string;
1784
+ identifier: {
1785
+ value: string;
1786
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1787
+ };
1788
+ templateType: import("../foundations/index.js").TemplateType;
1789
+ verified: boolean;
1790
+ } | {
1791
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1792
+ id: string;
1793
+ identifier: {
1794
+ value: string;
1795
+ type: import("../foundations/index.js").SignInIdentifier;
1796
+ };
1797
+ } | {
1798
+ type: import("./index.js").VerificationType.OneTimeToken;
1799
+ id: string;
1800
+ identifier: {
1801
+ value: string;
1802
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1803
+ };
1804
+ verified: boolean;
1805
+ oneTimeTokenContext?: {
1806
+ jitOrganizationIds?: string[] | undefined;
1807
+ } | undefined;
1808
+ } | {
1809
+ type: import("./index.js").VerificationType.Password;
1810
+ id: string;
1811
+ identifier: {
1812
+ value: string;
1813
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1814
+ };
1815
+ verified: boolean;
1816
+ } | {
1817
+ type: import("./index.js").VerificationType.Social;
1818
+ id: string;
1819
+ connectorId: string;
1820
+ socialUserInfo?: {
1821
+ id: string;
1822
+ name?: string | undefined;
1823
+ email?: string | undefined;
1824
+ phone?: string | undefined;
1825
+ avatar?: string | undefined;
1826
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1827
+ } | undefined;
1828
+ } | {
1829
+ type: import("./index.js").VerificationType.TOTP;
1830
+ id: string;
1831
+ userId: string;
1832
+ verified: boolean;
1833
+ } | {
1834
+ type: import("./index.js").VerificationType.EnterpriseSso;
1835
+ id: string;
1836
+ connectorId: string;
1837
+ issuer?: string | undefined;
1838
+ enterpriseSsoUserInfo?: {
1839
+ id: string;
1840
+ name?: string | undefined;
1841
+ email?: string | undefined;
1842
+ phone?: string | undefined;
1843
+ avatar?: string | undefined;
1844
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1845
+ } | undefined;
1846
+ } | {
1847
+ type: import("./index.js").VerificationType.WebAuthn;
1848
+ id: string;
1849
+ userId: string;
1850
+ verified: boolean;
1851
+ registrationRpId?: string | undefined;
1852
+ } | {
1853
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1854
+ id: string;
1855
+ verified: boolean;
1856
+ userId?: string | undefined;
1857
+ registrationRpId?: string | undefined;
1858
+ })[];
1859
+ signInContext?: Record<string, string> | undefined;
1860
+ } | null;
1861
+ clientId: string | null;
1862
+ }, {
1863
+ id: string;
1864
+ tenantId: string;
1865
+ accountId: string | null;
1866
+ expiresAt: number;
1867
+ payload: {
1868
+ uid: string;
1869
+ exp: number;
1870
+ iat: number;
1871
+ jti: string;
1872
+ kind: "Session";
1873
+ loginTs: number;
1874
+ accountId: string;
1875
+ authorizations: Record<string, z.objectInputType<{
1876
+ sid: z.ZodOptional<z.ZodString>;
1877
+ grantId: z.ZodOptional<z.ZodString>;
1878
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
1879
+ }, z.ZodUnknown, "strip">>;
1880
+ } & {
1881
+ [k: string]: unknown;
1882
+ };
1883
+ modelName: string;
1884
+ consumedAt: number | null;
1885
+ lastSubmission: {
1886
+ userId: string;
1887
+ interactionEvent: import("./interactions.js").InteractionEvent;
1888
+ verificationRecords: ({
1889
+ type: import("./index.js").VerificationType.BackupCode;
1890
+ id: string;
1891
+ userId: string;
1892
+ code?: string | undefined;
1893
+ } | {
1894
+ type: import("./index.js").VerificationType.EmailVerificationCode;
1895
+ id: string;
1896
+ identifier: {
1897
+ value: string;
1898
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1899
+ };
1900
+ templateType: import("../foundations/index.js").TemplateType;
1901
+ verified: boolean;
1902
+ } | {
1903
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
1904
+ id: string;
1905
+ identifier: {
1906
+ value: string;
1907
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
1908
+ };
1909
+ templateType: import("../foundations/index.js").TemplateType;
1910
+ verified: boolean;
1911
+ } | {
1912
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
1913
+ id: string;
1914
+ identifier: {
1915
+ value: string;
1916
+ type: import("../foundations/index.js").SignInIdentifier;
1917
+ };
1918
+ } | {
1919
+ type: import("./index.js").VerificationType.OneTimeToken;
1920
+ id: string;
1921
+ identifier: {
1922
+ value: string;
1923
+ type: import("../foundations/index.js").SignInIdentifier.Email;
1924
+ };
1925
+ verified: boolean;
1926
+ oneTimeTokenContext?: {
1927
+ jitOrganizationIds?: string[] | undefined;
1928
+ } | undefined;
1929
+ } | {
1930
+ type: import("./index.js").VerificationType.Password;
1931
+ id: string;
1932
+ identifier: {
1933
+ value: string;
1934
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
1935
+ };
1936
+ verified: boolean;
1937
+ } | {
1938
+ type: import("./index.js").VerificationType.Social;
1939
+ id: string;
1940
+ connectorId: string;
1941
+ socialUserInfo?: {
1942
+ id: string;
1943
+ name?: string | undefined;
1944
+ email?: string | undefined;
1945
+ phone?: string | undefined;
1946
+ avatar?: string | undefined;
1947
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1948
+ } | undefined;
1949
+ } | {
1950
+ type: import("./index.js").VerificationType.TOTP;
1951
+ id: string;
1952
+ userId: string;
1953
+ verified: boolean;
1954
+ } | {
1955
+ type: import("./index.js").VerificationType.EnterpriseSso;
1956
+ id: string;
1957
+ connectorId: string;
1958
+ issuer?: string | undefined;
1959
+ enterpriseSsoUserInfo?: {
1960
+ id: string;
1961
+ name?: string | undefined;
1962
+ email?: string | undefined;
1963
+ phone?: string | undefined;
1964
+ avatar?: string | undefined;
1965
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
1966
+ } | undefined;
1967
+ } | {
1968
+ type: import("./index.js").VerificationType.WebAuthn;
1969
+ id: string;
1970
+ userId: string;
1971
+ verified: boolean;
1972
+ registrationRpId?: string | undefined;
1973
+ } | {
1974
+ type: import("./index.js").VerificationType.SignInWebAuthn;
1975
+ id: string;
1976
+ verified: boolean;
1977
+ userId?: string | undefined;
1978
+ registrationRpId?: string | undefined;
1979
+ })[];
1980
+ signInContext?: Record<string, string> | undefined;
1981
+ } | null;
1982
+ clientId: string | null;
1983
+ }>, "many">;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ sessions: {
1986
+ id: string;
1987
+ tenantId: string;
1988
+ accountId: string | null;
1989
+ expiresAt: number;
1990
+ payload: {
1991
+ uid: string;
1992
+ exp: number;
1993
+ iat: number;
1994
+ jti: string;
1995
+ kind: "Session";
1996
+ loginTs: number;
1997
+ accountId: string;
1998
+ authorizations: Record<string, z.objectOutputType<{
1999
+ sid: z.ZodOptional<z.ZodString>;
2000
+ grantId: z.ZodOptional<z.ZodString>;
2001
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2002
+ }, z.ZodUnknown, "strip">>;
2003
+ } & {
2004
+ [k: string]: unknown;
2005
+ };
2006
+ modelName: string;
2007
+ consumedAt: number | null;
2008
+ lastSubmission: {
2009
+ userId: string;
2010
+ interactionEvent: import("./interactions.js").InteractionEvent;
2011
+ verificationRecords: ({
2012
+ type: import("./index.js").VerificationType.BackupCode;
2013
+ id: string;
2014
+ userId: string;
2015
+ code?: string | undefined;
2016
+ } | {
2017
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2018
+ id: string;
2019
+ identifier: {
2020
+ value: string;
2021
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2022
+ };
2023
+ templateType: import("../foundations/index.js").TemplateType;
2024
+ verified: boolean;
2025
+ } | {
2026
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2027
+ id: string;
2028
+ identifier: {
2029
+ value: string;
2030
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2031
+ };
2032
+ templateType: import("../foundations/index.js").TemplateType;
2033
+ verified: boolean;
2034
+ } | {
2035
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2036
+ id: string;
2037
+ identifier: {
2038
+ value: string;
2039
+ type: import("../foundations/index.js").SignInIdentifier;
2040
+ };
2041
+ } | {
2042
+ type: import("./index.js").VerificationType.OneTimeToken;
2043
+ id: string;
2044
+ identifier: {
2045
+ value: string;
2046
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2047
+ };
2048
+ verified: boolean;
2049
+ oneTimeTokenContext?: {
2050
+ jitOrganizationIds?: string[] | undefined;
2051
+ } | undefined;
2052
+ } | {
2053
+ type: import("./index.js").VerificationType.Password;
2054
+ id: string;
2055
+ identifier: {
2056
+ value: string;
2057
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2058
+ };
2059
+ verified: boolean;
2060
+ } | {
2061
+ type: import("./index.js").VerificationType.Social;
2062
+ id: string;
2063
+ connectorId: string;
2064
+ socialUserInfo?: {
2065
+ id: string;
2066
+ name?: string | undefined;
2067
+ email?: string | undefined;
2068
+ phone?: string | undefined;
2069
+ avatar?: string | undefined;
2070
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2071
+ } | undefined;
2072
+ } | {
2073
+ type: import("./index.js").VerificationType.TOTP;
2074
+ id: string;
2075
+ userId: string;
2076
+ verified: boolean;
2077
+ } | {
2078
+ type: import("./index.js").VerificationType.EnterpriseSso;
2079
+ id: string;
2080
+ connectorId: string;
2081
+ issuer?: string | undefined;
2082
+ enterpriseSsoUserInfo?: {
2083
+ id: string;
2084
+ name?: string | undefined;
2085
+ email?: string | undefined;
2086
+ phone?: string | undefined;
2087
+ avatar?: string | undefined;
2088
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2089
+ } | undefined;
2090
+ } | {
2091
+ type: import("./index.js").VerificationType.WebAuthn;
2092
+ id: string;
2093
+ userId: string;
2094
+ verified: boolean;
2095
+ registrationRpId?: string | undefined;
2096
+ } | {
2097
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2098
+ id: string;
2099
+ verified: boolean;
2100
+ userId?: string | undefined;
2101
+ registrationRpId?: string | undefined;
2102
+ })[];
2103
+ signInContext?: Record<string, string> | undefined;
2104
+ } | null;
2105
+ clientId: string | null;
2106
+ }[];
2107
+ }, {
2108
+ sessions: {
2109
+ id: string;
2110
+ tenantId: string;
2111
+ accountId: string | null;
2112
+ expiresAt: number;
2113
+ payload: {
2114
+ uid: string;
2115
+ exp: number;
2116
+ iat: number;
2117
+ jti: string;
2118
+ kind: "Session";
2119
+ loginTs: number;
2120
+ accountId: string;
2121
+ authorizations: Record<string, z.objectInputType<{
2122
+ sid: z.ZodOptional<z.ZodString>;
2123
+ grantId: z.ZodOptional<z.ZodString>;
2124
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2125
+ }, z.ZodUnknown, "strip">>;
2126
+ } & {
2127
+ [k: string]: unknown;
2128
+ };
2129
+ modelName: string;
2130
+ consumedAt: number | null;
2131
+ lastSubmission: {
2132
+ userId: string;
2133
+ interactionEvent: import("./interactions.js").InteractionEvent;
2134
+ verificationRecords: ({
2135
+ type: import("./index.js").VerificationType.BackupCode;
2136
+ id: string;
2137
+ userId: string;
2138
+ code?: string | undefined;
2139
+ } | {
2140
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2141
+ id: string;
2142
+ identifier: {
2143
+ value: string;
2144
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2145
+ };
2146
+ templateType: import("../foundations/index.js").TemplateType;
2147
+ verified: boolean;
2148
+ } | {
2149
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2150
+ id: string;
2151
+ identifier: {
2152
+ value: string;
2153
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2154
+ };
2155
+ templateType: import("../foundations/index.js").TemplateType;
2156
+ verified: boolean;
2157
+ } | {
2158
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2159
+ id: string;
2160
+ identifier: {
2161
+ value: string;
2162
+ type: import("../foundations/index.js").SignInIdentifier;
2163
+ };
2164
+ } | {
2165
+ type: import("./index.js").VerificationType.OneTimeToken;
2166
+ id: string;
2167
+ identifier: {
2168
+ value: string;
2169
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2170
+ };
2171
+ verified: boolean;
2172
+ oneTimeTokenContext?: {
2173
+ jitOrganizationIds?: string[] | undefined;
2174
+ } | undefined;
2175
+ } | {
2176
+ type: import("./index.js").VerificationType.Password;
2177
+ id: string;
2178
+ identifier: {
2179
+ value: string;
2180
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2181
+ };
2182
+ verified: boolean;
2183
+ } | {
2184
+ type: import("./index.js").VerificationType.Social;
2185
+ id: string;
2186
+ connectorId: string;
2187
+ socialUserInfo?: {
2188
+ id: string;
2189
+ name?: string | undefined;
2190
+ email?: string | undefined;
2191
+ phone?: string | undefined;
2192
+ avatar?: string | undefined;
2193
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2194
+ } | undefined;
2195
+ } | {
2196
+ type: import("./index.js").VerificationType.TOTP;
2197
+ id: string;
2198
+ userId: string;
2199
+ verified: boolean;
2200
+ } | {
2201
+ type: import("./index.js").VerificationType.EnterpriseSso;
2202
+ id: string;
2203
+ connectorId: string;
2204
+ issuer?: string | undefined;
2205
+ enterpriseSsoUserInfo?: {
2206
+ id: string;
2207
+ name?: string | undefined;
2208
+ email?: string | undefined;
2209
+ phone?: string | undefined;
2210
+ avatar?: string | undefined;
2211
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2212
+ } | undefined;
2213
+ } | {
2214
+ type: import("./index.js").VerificationType.WebAuthn;
2215
+ id: string;
2216
+ userId: string;
2217
+ verified: boolean;
2218
+ registrationRpId?: string | undefined;
2219
+ } | {
2220
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2221
+ id: string;
2222
+ verified: boolean;
2223
+ userId?: string | undefined;
2224
+ registrationRpId?: string | undefined;
2225
+ })[];
2226
+ signInContext?: Record<string, string> | undefined;
2227
+ } | null;
2228
+ clientId: string | null;
2229
+ }[];
2230
+ }>;
2231
+ export type GetUserSessionsResponse = z.infer<typeof getUserSessionsResponseGuard>;
2232
+ 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
+ payload: z.ZodObject<{
2240
+ exp: z.ZodNumber;
2241
+ iat: z.ZodNumber;
2242
+ jti: z.ZodString;
2243
+ uid: z.ZodString;
2244
+ kind: z.ZodLiteral<"Session">;
2245
+ loginTs: z.ZodNumber;
2246
+ accountId: z.ZodString;
2247
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
2248
+ sid: z.ZodOptional<z.ZodString>;
2249
+ grantId: z.ZodOptional<z.ZodString>;
2250
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2251
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2252
+ sid: z.ZodOptional<z.ZodString>;
2253
+ grantId: z.ZodOptional<z.ZodString>;
2254
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2255
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2256
+ sid: z.ZodOptional<z.ZodString>;
2257
+ grantId: z.ZodOptional<z.ZodString>;
2258
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2259
+ }, z.ZodUnknown, "strip">>>;
2260
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2261
+ exp: z.ZodNumber;
2262
+ iat: z.ZodNumber;
2263
+ jti: z.ZodString;
2264
+ uid: z.ZodString;
2265
+ kind: z.ZodLiteral<"Session">;
2266
+ loginTs: z.ZodNumber;
2267
+ accountId: z.ZodString;
2268
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
2269
+ sid: z.ZodOptional<z.ZodString>;
2270
+ grantId: z.ZodOptional<z.ZodString>;
2271
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2272
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2273
+ sid: z.ZodOptional<z.ZodString>;
2274
+ grantId: z.ZodOptional<z.ZodString>;
2275
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2276
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2277
+ sid: z.ZodOptional<z.ZodString>;
2278
+ grantId: z.ZodOptional<z.ZodString>;
2279
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2280
+ }, z.ZodUnknown, "strip">>>;
2281
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2282
+ exp: z.ZodNumber;
2283
+ iat: z.ZodNumber;
2284
+ jti: z.ZodString;
2285
+ uid: z.ZodString;
2286
+ kind: z.ZodLiteral<"Session">;
2287
+ loginTs: z.ZodNumber;
2288
+ accountId: z.ZodString;
2289
+ authorizations: z.ZodRecord<z.ZodString, z.ZodObject<{
2290
+ sid: z.ZodOptional<z.ZodString>;
2291
+ grantId: z.ZodOptional<z.ZodString>;
2292
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2293
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2294
+ sid: z.ZodOptional<z.ZodString>;
2295
+ grantId: z.ZodOptional<z.ZodString>;
2296
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2297
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2298
+ sid: z.ZodOptional<z.ZodString>;
2299
+ grantId: z.ZodOptional<z.ZodString>;
2300
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2301
+ }, z.ZodUnknown, "strip">>>;
2302
+ }, z.ZodUnknown, "strip">>;
2303
+ lastSubmission: z.ZodNullable<z.ZodObject<{
2304
+ interactionEvent: z.ZodNativeEnum<typeof import("./interactions.js").InteractionEvent>;
2305
+ userId: z.ZodString;
2306
+ verificationRecords: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2307
+ id: z.ZodString;
2308
+ type: z.ZodLiteral<import("./index.js").VerificationType.Password>;
2309
+ identifier: z.ZodObject<{
2310
+ type: z.ZodUnion<[z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>, z.ZodNativeEnum<typeof import("../foundations/index.js").AdditionalIdentifier>]>;
2311
+ value: z.ZodString;
2312
+ }, "strip", z.ZodTypeAny, {
2313
+ value: string;
2314
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2315
+ }, {
2316
+ value: string;
2317
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2318
+ }>;
2319
+ verified: z.ZodBoolean;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ type: import("./index.js").VerificationType.Password;
2322
+ id: string;
2323
+ identifier: {
2324
+ value: string;
2325
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2326
+ };
2327
+ verified: boolean;
2328
+ }, {
2329
+ type: import("./index.js").VerificationType.Password;
2330
+ id: string;
2331
+ identifier: {
2332
+ value: string;
2333
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2334
+ };
2335
+ verified: boolean;
2336
+ }>, z.ZodObject<{
2337
+ id: z.ZodString;
2338
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2339
+ verified: z.ZodBoolean;
2340
+ } & {
2341
+ type: z.ZodLiteral<import("./index.js").VerificationType.EmailVerificationCode>;
2342
+ identifier: z.ZodObject<{
2343
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
2344
+ value: z.ZodString;
2345
+ }, "strip", z.ZodTypeAny, {
2346
+ value: string;
2347
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2348
+ }, {
2349
+ value: string;
2350
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2351
+ }>;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2354
+ id: string;
2355
+ identifier: {
2356
+ value: string;
2357
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2358
+ };
2359
+ templateType: import("../foundations/index.js").TemplateType;
2360
+ verified: boolean;
2361
+ }, {
2362
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2363
+ id: string;
2364
+ identifier: {
2365
+ value: string;
2366
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2367
+ };
2368
+ templateType: import("../foundations/index.js").TemplateType;
2369
+ verified: boolean;
2370
+ }>, z.ZodObject<{
2371
+ id: z.ZodString;
2372
+ templateType: z.ZodNativeEnum<typeof import("../foundations/index.js").TemplateType>;
2373
+ verified: z.ZodBoolean;
2374
+ } & {
2375
+ type: z.ZodLiteral<import("./index.js").VerificationType.PhoneVerificationCode>;
2376
+ identifier: z.ZodObject<{
2377
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Phone>;
2378
+ value: z.ZodString;
2379
+ }, "strip", z.ZodTypeAny, {
2380
+ value: string;
2381
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2382
+ }, {
2383
+ value: string;
2384
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2385
+ }>;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2388
+ id: string;
2389
+ identifier: {
2390
+ value: string;
2391
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2392
+ };
2393
+ templateType: import("../foundations/index.js").TemplateType;
2394
+ verified: boolean;
2395
+ }, {
2396
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2397
+ id: string;
2398
+ identifier: {
2399
+ value: string;
2400
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2401
+ };
2402
+ templateType: import("../foundations/index.js").TemplateType;
2403
+ verified: boolean;
2404
+ }>, z.ZodObject<Omit<{
2405
+ id: z.ZodString;
2406
+ connectorId: z.ZodString;
2407
+ type: z.ZodLiteral<import("./index.js").VerificationType.Social>;
2408
+ socialUserInfo: z.ZodOptional<z.ZodObject<{
2409
+ id: z.ZodString;
2410
+ email: z.ZodOptional<z.ZodString>;
2411
+ phone: z.ZodOptional<z.ZodString>;
2412
+ name: z.ZodOptional<z.ZodString>;
2413
+ avatar: z.ZodOptional<z.ZodString>;
2414
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
2415
+ }, "strip", z.ZodTypeAny, {
2416
+ id: string;
2417
+ name?: string | undefined;
2418
+ email?: string | undefined;
2419
+ phone?: string | undefined;
2420
+ avatar?: string | undefined;
2421
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2422
+ }, {
2423
+ id: string;
2424
+ name?: string | undefined;
2425
+ email?: string | undefined;
2426
+ phone?: string | undefined;
2427
+ avatar?: string | undefined;
2428
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2429
+ }>>;
2430
+ encryptedTokenSet: z.ZodOptional<z.ZodObject<{
2431
+ encryptedTokenSetBase64: z.ZodString;
2432
+ metadata: z.ZodObject<{
2433
+ scope: z.ZodOptional<z.ZodString>;
2434
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2435
+ tokenType: z.ZodOptional<z.ZodString>;
2436
+ hasRefreshToken: z.ZodBoolean;
2437
+ }, "strip", z.ZodTypeAny, {
2438
+ hasRefreshToken: boolean;
2439
+ scope?: string | undefined;
2440
+ expiresAt?: number | undefined;
2441
+ tokenType?: string | undefined;
2442
+ }, {
2443
+ hasRefreshToken: boolean;
2444
+ scope?: string | undefined;
2445
+ expiresAt?: number | undefined;
2446
+ tokenType?: string | undefined;
2447
+ }>;
2448
+ }, "strip", z.ZodTypeAny, {
2449
+ metadata: {
2450
+ hasRefreshToken: boolean;
2451
+ scope?: string | undefined;
2452
+ expiresAt?: number | undefined;
2453
+ tokenType?: string | undefined;
2454
+ };
2455
+ encryptedTokenSetBase64: string;
2456
+ }, {
2457
+ metadata: {
2458
+ hasRefreshToken: boolean;
2459
+ scope?: string | undefined;
2460
+ expiresAt?: number | undefined;
2461
+ tokenType?: string | undefined;
2462
+ };
2463
+ encryptedTokenSetBase64: string;
2464
+ }>>;
2465
+ connectorSession: z.ZodOptional<z.ZodObject<{
2466
+ nonce: z.ZodOptional<z.ZodString>;
2467
+ redirectUri: z.ZodOptional<z.ZodString>;
2468
+ connectorId: z.ZodOptional<z.ZodString>;
2469
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
2470
+ jti: z.ZodOptional<z.ZodString>;
2471
+ state: z.ZodOptional<z.ZodString>;
2472
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2473
+ nonce: z.ZodOptional<z.ZodString>;
2474
+ redirectUri: z.ZodOptional<z.ZodString>;
2475
+ connectorId: z.ZodOptional<z.ZodString>;
2476
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
2477
+ jti: z.ZodOptional<z.ZodString>;
2478
+ state: z.ZodOptional<z.ZodString>;
2479
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2480
+ nonce: z.ZodOptional<z.ZodString>;
2481
+ redirectUri: z.ZodOptional<z.ZodString>;
2482
+ connectorId: z.ZodOptional<z.ZodString>;
2483
+ connectorFactoryId: z.ZodOptional<z.ZodString>;
2484
+ jti: z.ZodOptional<z.ZodString>;
2485
+ state: z.ZodOptional<z.ZodString>;
2486
+ }, z.ZodUnknown, "strip">>>;
2487
+ }, "encryptedTokenSet" | "connectorSession">, "strip", z.ZodTypeAny, {
2488
+ type: import("./index.js").VerificationType.Social;
2489
+ id: string;
2490
+ connectorId: string;
2491
+ socialUserInfo?: {
2492
+ id: string;
2493
+ name?: string | undefined;
2494
+ email?: string | undefined;
2495
+ phone?: string | undefined;
2496
+ avatar?: string | undefined;
2497
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2498
+ } | undefined;
2499
+ }, {
2500
+ type: import("./index.js").VerificationType.Social;
2501
+ id: string;
2502
+ connectorId: string;
2503
+ socialUserInfo?: {
2504
+ id: string;
2505
+ name?: string | undefined;
2506
+ email?: string | undefined;
2507
+ phone?: string | undefined;
2508
+ avatar?: string | undefined;
2509
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2510
+ } | undefined;
2511
+ }>, z.ZodObject<{
2512
+ type: z.ZodLiteral<import("./index.js").VerificationType.EnterpriseSso>;
2513
+ id: z.ZodString;
2514
+ issuer: z.ZodOptional<z.ZodString>;
2515
+ connectorId: z.ZodString;
2516
+ } & {
2517
+ enterpriseSsoUserInfo: z.ZodOptional<z.ZodObject<{
2518
+ id: z.ZodString;
2519
+ email: z.ZodOptional<z.ZodString>;
2520
+ phone: z.ZodOptional<z.ZodString>;
2521
+ name: z.ZodOptional<z.ZodString>;
2522
+ avatar: z.ZodOptional<z.ZodString>;
2523
+ rawData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
2524
+ }, "strip", z.ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>, {
2525
+ id: string;
2526
+ name?: string | undefined;
2527
+ email?: string | undefined;
2528
+ phone?: string | undefined;
2529
+ avatar?: string | undefined;
2530
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2531
+ }, {
2532
+ id: string;
2533
+ name?: string | undefined;
2534
+ email?: string | undefined;
2535
+ phone?: string | undefined;
2536
+ avatar?: string | undefined;
2537
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2538
+ }>>;
2539
+ }, "strip", z.ZodTypeAny, {
2540
+ type: import("./index.js").VerificationType.EnterpriseSso;
2541
+ id: string;
2542
+ connectorId: string;
2543
+ issuer?: string | undefined;
2544
+ enterpriseSsoUserInfo?: {
2545
+ id: string;
2546
+ name?: string | undefined;
2547
+ email?: string | undefined;
2548
+ phone?: string | undefined;
2549
+ avatar?: string | undefined;
2550
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2551
+ } | undefined;
2552
+ }, {
2553
+ type: import("./index.js").VerificationType.EnterpriseSso;
2554
+ id: string;
2555
+ connectorId: string;
2556
+ issuer?: string | undefined;
2557
+ enterpriseSsoUserInfo?: {
2558
+ id: string;
2559
+ name?: string | undefined;
2560
+ email?: string | undefined;
2561
+ phone?: string | undefined;
2562
+ avatar?: string | undefined;
2563
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2564
+ } | undefined;
2565
+ }>, z.ZodObject<Omit<{
2566
+ id: z.ZodString;
2567
+ type: z.ZodLiteral<import("./index.js").VerificationType.TOTP>;
2568
+ userId: z.ZodString;
2569
+ secret: z.ZodOptional<z.ZodString>;
2570
+ verified: z.ZodBoolean;
2571
+ }, "secret">, "strip", z.ZodTypeAny, {
2572
+ type: import("./index.js").VerificationType.TOTP;
2573
+ id: string;
2574
+ userId: string;
2575
+ verified: boolean;
2576
+ }, {
2577
+ type: import("./index.js").VerificationType.TOTP;
2578
+ id: string;
2579
+ userId: string;
2580
+ verified: boolean;
2581
+ }>, z.ZodObject<Omit<{
2582
+ id: z.ZodString;
2583
+ type: z.ZodLiteral<import("./index.js").VerificationType.BackupCode>;
2584
+ userId: z.ZodString;
2585
+ code: z.ZodOptional<z.ZodString>;
2586
+ backupCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2587
+ }, "backupCodes">, "strip", z.ZodTypeAny, {
2588
+ type: import("./index.js").VerificationType.BackupCode;
2589
+ id: string;
2590
+ userId: string;
2591
+ code?: string | undefined;
2592
+ }, {
2593
+ type: import("./index.js").VerificationType.BackupCode;
2594
+ id: string;
2595
+ userId: string;
2596
+ code?: string | undefined;
2597
+ }>, z.ZodObject<Omit<{
2598
+ id: z.ZodString;
2599
+ verified: z.ZodBoolean;
2600
+ registrationChallenge: z.ZodOptional<z.ZodString>;
2601
+ registrationRpId: z.ZodOptional<z.ZodString>;
2602
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
2603
+ registrationInfo: z.ZodOptional<z.ZodObject<{
2604
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
2605
+ rpId: z.ZodString;
2606
+ credentialId: z.ZodString;
2607
+ publicKey: z.ZodString;
2608
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
2609
+ counter: z.ZodNumber;
2610
+ agent: z.ZodString;
2611
+ name: z.ZodOptional<z.ZodString>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2614
+ rpId: string;
2615
+ credentialId: string;
2616
+ publicKey: string;
2617
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
2618
+ counter: number;
2619
+ agent: string;
2620
+ name?: string | undefined;
2621
+ }, {
2622
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2623
+ rpId: string;
2624
+ credentialId: string;
2625
+ publicKey: string;
2626
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
2627
+ counter: number;
2628
+ agent: string;
2629
+ name?: string | undefined;
2630
+ }>>;
2631
+ } & {
2632
+ type: z.ZodLiteral<import("./index.js").VerificationType.WebAuthn>;
2633
+ userId: z.ZodString;
2634
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo">, "strip", z.ZodTypeAny, {
2635
+ type: import("./index.js").VerificationType.WebAuthn;
2636
+ id: string;
2637
+ userId: string;
2638
+ verified: boolean;
2639
+ registrationRpId?: string | undefined;
2640
+ }, {
2641
+ type: import("./index.js").VerificationType.WebAuthn;
2642
+ id: string;
2643
+ userId: string;
2644
+ verified: boolean;
2645
+ registrationRpId?: string | undefined;
2646
+ }>, z.ZodObject<Omit<{
2647
+ id: z.ZodString;
2648
+ verified: z.ZodBoolean;
2649
+ registrationChallenge: z.ZodOptional<z.ZodString>;
2650
+ registrationRpId: z.ZodOptional<z.ZodString>;
2651
+ authenticationChallenge: z.ZodOptional<z.ZodString>;
2652
+ registrationInfo: z.ZodOptional<z.ZodObject<{
2653
+ type: z.ZodLiteral<import("../foundations/index.js").MfaFactor.WebAuthn>;
2654
+ rpId: z.ZodString;
2655
+ credentialId: z.ZodString;
2656
+ publicKey: z.ZodString;
2657
+ transports: z.ZodArray<z.ZodEnum<["usb", "nfc", "ble", "internal", "cable", "hybrid", "smart-card"]>, "many">;
2658
+ counter: z.ZodNumber;
2659
+ agent: z.ZodString;
2660
+ name: z.ZodOptional<z.ZodString>;
2661
+ }, "strip", z.ZodTypeAny, {
2662
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2663
+ rpId: string;
2664
+ credentialId: string;
2665
+ publicKey: string;
2666
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
2667
+ counter: number;
2668
+ agent: string;
2669
+ name?: string | undefined;
2670
+ }, {
2671
+ type: import("../foundations/index.js").MfaFactor.WebAuthn;
2672
+ rpId: string;
2673
+ credentialId: string;
2674
+ publicKey: string;
2675
+ transports: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[];
2676
+ counter: number;
2677
+ agent: string;
2678
+ name?: string | undefined;
2679
+ }>>;
2680
+ } & {
2681
+ type: z.ZodLiteral<import("./index.js").VerificationType.SignInWebAuthn>;
2682
+ userId: z.ZodOptional<z.ZodString>;
2683
+ authenticationRpId: z.ZodOptional<z.ZodString>;
2684
+ }, "registrationChallenge" | "authenticationChallenge" | "registrationInfo" | "authenticationRpId">, "strip", z.ZodTypeAny, {
2685
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2686
+ id: string;
2687
+ verified: boolean;
2688
+ userId?: string | undefined;
2689
+ registrationRpId?: string | undefined;
2690
+ }, {
2691
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2692
+ id: string;
2693
+ verified: boolean;
2694
+ userId?: string | undefined;
2695
+ registrationRpId?: string | undefined;
2696
+ }>, z.ZodObject<{
2697
+ id: z.ZodString;
2698
+ type: z.ZodLiteral<import("./index.js").VerificationType.OneTimeToken>;
2699
+ verified: z.ZodBoolean;
2700
+ identifier: z.ZodObject<{
2701
+ type: z.ZodLiteral<import("../foundations/index.js").SignInIdentifier.Email>;
2702
+ value: z.ZodString;
2703
+ }, "strip", z.ZodTypeAny, {
2704
+ value: string;
2705
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2706
+ }, {
2707
+ value: string;
2708
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2709
+ }>;
2710
+ oneTimeTokenContext: z.ZodOptional<z.ZodObject<{
2711
+ jitOrganizationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2712
+ }, "strip", z.ZodTypeAny, {
2713
+ jitOrganizationIds?: string[] | undefined;
2714
+ }, {
2715
+ jitOrganizationIds?: string[] | undefined;
2716
+ }>>;
2717
+ }, "strip", z.ZodTypeAny, {
2718
+ type: import("./index.js").VerificationType.OneTimeToken;
2719
+ id: string;
2720
+ identifier: {
2721
+ value: string;
2722
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2723
+ };
2724
+ verified: boolean;
2725
+ oneTimeTokenContext?: {
2726
+ jitOrganizationIds?: string[] | undefined;
2727
+ } | undefined;
2728
+ }, {
2729
+ type: import("./index.js").VerificationType.OneTimeToken;
2730
+ id: string;
2731
+ identifier: {
2732
+ value: string;
2733
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2734
+ };
2735
+ verified: boolean;
2736
+ oneTimeTokenContext?: {
2737
+ jitOrganizationIds?: string[] | undefined;
2738
+ } | undefined;
2739
+ }>, z.ZodObject<Omit<{
2740
+ id: z.ZodString;
2741
+ type: z.ZodLiteral<import("./index.js").VerificationType.NewPasswordIdentity>;
2742
+ identifier: z.ZodObject<{
2743
+ type: z.ZodNativeEnum<typeof import("../foundations/index.js").SignInIdentifier>;
2744
+ value: z.ZodString;
2745
+ }, "strip", z.ZodTypeAny, {
2746
+ value: string;
2747
+ type: import("../foundations/index.js").SignInIdentifier;
2748
+ }, {
2749
+ value: string;
2750
+ type: import("../foundations/index.js").SignInIdentifier;
2751
+ }>;
2752
+ passwordEncrypted: z.ZodOptional<z.ZodString>;
2753
+ passwordEncryptionMethod: z.ZodOptional<z.ZodLiteral<import("../index.js").UsersPasswordEncryptionMethod.Argon2i>>;
2754
+ }, "passwordEncrypted" | "passwordEncryptionMethod">, "strip", z.ZodTypeAny, {
2755
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2756
+ id: string;
2757
+ identifier: {
2758
+ value: string;
2759
+ type: import("../foundations/index.js").SignInIdentifier;
2760
+ };
2761
+ }, {
2762
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2763
+ id: string;
2764
+ identifier: {
2765
+ value: string;
2766
+ type: import("../foundations/index.js").SignInIdentifier;
2767
+ };
2768
+ }>]>, "many">;
2769
+ signInContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2770
+ }, "strip", z.ZodTypeAny, {
2771
+ userId: string;
2772
+ interactionEvent: import("./interactions.js").InteractionEvent;
2773
+ verificationRecords: ({
2774
+ type: import("./index.js").VerificationType.BackupCode;
2775
+ id: string;
2776
+ userId: string;
2777
+ code?: string | undefined;
2778
+ } | {
2779
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2780
+ id: string;
2781
+ identifier: {
2782
+ value: string;
2783
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2784
+ };
2785
+ templateType: import("../foundations/index.js").TemplateType;
2786
+ verified: boolean;
2787
+ } | {
2788
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2789
+ id: string;
2790
+ identifier: {
2791
+ value: string;
2792
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2793
+ };
2794
+ templateType: import("../foundations/index.js").TemplateType;
2795
+ verified: boolean;
2796
+ } | {
2797
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2798
+ id: string;
2799
+ identifier: {
2800
+ value: string;
2801
+ type: import("../foundations/index.js").SignInIdentifier;
2802
+ };
2803
+ } | {
2804
+ type: import("./index.js").VerificationType.OneTimeToken;
2805
+ id: string;
2806
+ identifier: {
2807
+ value: string;
2808
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2809
+ };
2810
+ verified: boolean;
2811
+ oneTimeTokenContext?: {
2812
+ jitOrganizationIds?: string[] | undefined;
2813
+ } | undefined;
2814
+ } | {
2815
+ type: import("./index.js").VerificationType.Password;
2816
+ id: string;
2817
+ identifier: {
2818
+ value: string;
2819
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2820
+ };
2821
+ verified: boolean;
2822
+ } | {
2823
+ type: import("./index.js").VerificationType.Social;
2824
+ id: string;
2825
+ connectorId: string;
2826
+ socialUserInfo?: {
2827
+ id: string;
2828
+ name?: string | undefined;
2829
+ email?: string | undefined;
2830
+ phone?: string | undefined;
2831
+ avatar?: string | undefined;
2832
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2833
+ } | undefined;
2834
+ } | {
2835
+ type: import("./index.js").VerificationType.TOTP;
2836
+ id: string;
2837
+ userId: string;
2838
+ verified: boolean;
2839
+ } | {
2840
+ type: import("./index.js").VerificationType.EnterpriseSso;
2841
+ id: string;
2842
+ connectorId: string;
2843
+ issuer?: string | undefined;
2844
+ enterpriseSsoUserInfo?: {
2845
+ id: string;
2846
+ name?: string | undefined;
2847
+ email?: string | undefined;
2848
+ phone?: string | undefined;
2849
+ avatar?: string | undefined;
2850
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2851
+ } | undefined;
2852
+ } | {
2853
+ type: import("./index.js").VerificationType.WebAuthn;
2854
+ id: string;
2855
+ userId: string;
2856
+ verified: boolean;
2857
+ registrationRpId?: string | undefined;
2858
+ } | {
2859
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2860
+ id: string;
2861
+ verified: boolean;
2862
+ userId?: string | undefined;
2863
+ registrationRpId?: string | undefined;
2864
+ })[];
2865
+ signInContext?: Record<string, string> | undefined;
2866
+ }, {
2867
+ userId: string;
2868
+ interactionEvent: import("./interactions.js").InteractionEvent;
2869
+ verificationRecords: ({
2870
+ type: import("./index.js").VerificationType.BackupCode;
2871
+ id: string;
2872
+ userId: string;
2873
+ code?: string | undefined;
2874
+ } | {
2875
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2876
+ id: string;
2877
+ identifier: {
2878
+ value: string;
2879
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2880
+ };
2881
+ templateType: import("../foundations/index.js").TemplateType;
2882
+ verified: boolean;
2883
+ } | {
2884
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
2885
+ id: string;
2886
+ identifier: {
2887
+ value: string;
2888
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
2889
+ };
2890
+ templateType: import("../foundations/index.js").TemplateType;
2891
+ verified: boolean;
2892
+ } | {
2893
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
2894
+ id: string;
2895
+ identifier: {
2896
+ value: string;
2897
+ type: import("../foundations/index.js").SignInIdentifier;
2898
+ };
2899
+ } | {
2900
+ type: import("./index.js").VerificationType.OneTimeToken;
2901
+ id: string;
2902
+ identifier: {
2903
+ value: string;
2904
+ type: import("../foundations/index.js").SignInIdentifier.Email;
2905
+ };
2906
+ verified: boolean;
2907
+ oneTimeTokenContext?: {
2908
+ jitOrganizationIds?: string[] | undefined;
2909
+ } | undefined;
2910
+ } | {
2911
+ type: import("./index.js").VerificationType.Password;
2912
+ id: string;
2913
+ identifier: {
2914
+ value: string;
2915
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
2916
+ };
2917
+ verified: boolean;
2918
+ } | {
2919
+ type: import("./index.js").VerificationType.Social;
2920
+ id: string;
2921
+ connectorId: string;
2922
+ socialUserInfo?: {
2923
+ id: string;
2924
+ name?: string | undefined;
2925
+ email?: string | undefined;
2926
+ phone?: string | undefined;
2927
+ avatar?: string | undefined;
2928
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2929
+ } | undefined;
2930
+ } | {
2931
+ type: import("./index.js").VerificationType.TOTP;
2932
+ id: string;
2933
+ userId: string;
2934
+ verified: boolean;
2935
+ } | {
2936
+ type: import("./index.js").VerificationType.EnterpriseSso;
2937
+ id: string;
2938
+ connectorId: string;
2939
+ issuer?: string | undefined;
2940
+ enterpriseSsoUserInfo?: {
2941
+ id: string;
2942
+ name?: string | undefined;
2943
+ email?: string | undefined;
2944
+ phone?: string | undefined;
2945
+ avatar?: string | undefined;
2946
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
2947
+ } | undefined;
2948
+ } | {
2949
+ type: import("./index.js").VerificationType.WebAuthn;
2950
+ id: string;
2951
+ userId: string;
2952
+ verified: boolean;
2953
+ registrationRpId?: string | undefined;
2954
+ } | {
2955
+ type: import("./index.js").VerificationType.SignInWebAuthn;
2956
+ id: string;
2957
+ verified: boolean;
2958
+ userId?: string | undefined;
2959
+ registrationRpId?: string | undefined;
2960
+ })[];
2961
+ signInContext?: Record<string, string> | undefined;
2962
+ }>>;
2963
+ clientId: z.ZodNullable<z.ZodString>;
2964
+ accountId: z.ZodNullable<z.ZodString>;
2965
+ }, "strip", z.ZodTypeAny, {
2966
+ id: string;
2967
+ tenantId: string;
2968
+ accountId: string | null;
2969
+ expiresAt: number;
2970
+ payload: {
2971
+ uid: string;
2972
+ exp: number;
2973
+ iat: number;
2974
+ jti: string;
2975
+ kind: "Session";
2976
+ loginTs: number;
2977
+ accountId: string;
2978
+ authorizations: Record<string, z.objectOutputType<{
2979
+ sid: z.ZodOptional<z.ZodString>;
2980
+ grantId: z.ZodOptional<z.ZodString>;
2981
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
2982
+ }, z.ZodUnknown, "strip">>;
2983
+ } & {
2984
+ [k: string]: unknown;
2985
+ };
2986
+ modelName: string;
2987
+ consumedAt: number | null;
2988
+ lastSubmission: {
2989
+ userId: string;
2990
+ interactionEvent: import("./interactions.js").InteractionEvent;
2991
+ verificationRecords: ({
2992
+ type: import("./index.js").VerificationType.BackupCode;
2993
+ id: string;
2994
+ userId: string;
2995
+ code?: string | undefined;
2996
+ } | {
2997
+ type: import("./index.js").VerificationType.EmailVerificationCode;
2998
+ id: string;
2999
+ identifier: {
3000
+ value: string;
3001
+ type: import("../foundations/index.js").SignInIdentifier.Email;
3002
+ };
3003
+ templateType: import("../foundations/index.js").TemplateType;
3004
+ verified: boolean;
3005
+ } | {
3006
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
3007
+ id: string;
3008
+ identifier: {
3009
+ value: string;
3010
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
3011
+ };
3012
+ templateType: import("../foundations/index.js").TemplateType;
3013
+ verified: boolean;
3014
+ } | {
3015
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
3016
+ id: string;
3017
+ identifier: {
3018
+ value: string;
3019
+ type: import("../foundations/index.js").SignInIdentifier;
3020
+ };
3021
+ } | {
3022
+ type: import("./index.js").VerificationType.OneTimeToken;
3023
+ id: string;
3024
+ identifier: {
3025
+ value: string;
3026
+ type: import("../foundations/index.js").SignInIdentifier.Email;
3027
+ };
3028
+ verified: boolean;
3029
+ oneTimeTokenContext?: {
3030
+ jitOrganizationIds?: string[] | undefined;
3031
+ } | undefined;
3032
+ } | {
3033
+ type: import("./index.js").VerificationType.Password;
3034
+ id: string;
3035
+ identifier: {
3036
+ value: string;
3037
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
3038
+ };
3039
+ verified: boolean;
3040
+ } | {
3041
+ type: import("./index.js").VerificationType.Social;
3042
+ id: string;
3043
+ connectorId: string;
3044
+ socialUserInfo?: {
3045
+ id: string;
3046
+ name?: string | undefined;
3047
+ email?: string | undefined;
3048
+ phone?: string | undefined;
3049
+ avatar?: string | undefined;
3050
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3051
+ } | undefined;
3052
+ } | {
3053
+ type: import("./index.js").VerificationType.TOTP;
3054
+ id: string;
3055
+ userId: string;
3056
+ verified: boolean;
3057
+ } | {
3058
+ type: import("./index.js").VerificationType.EnterpriseSso;
3059
+ id: string;
3060
+ connectorId: string;
3061
+ issuer?: string | undefined;
3062
+ enterpriseSsoUserInfo?: {
3063
+ id: string;
3064
+ name?: string | undefined;
3065
+ email?: string | undefined;
3066
+ phone?: string | undefined;
3067
+ avatar?: string | undefined;
3068
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3069
+ } | undefined;
3070
+ } | {
3071
+ type: import("./index.js").VerificationType.WebAuthn;
3072
+ id: string;
3073
+ userId: string;
3074
+ verified: boolean;
3075
+ registrationRpId?: string | undefined;
3076
+ } | {
3077
+ type: import("./index.js").VerificationType.SignInWebAuthn;
3078
+ id: string;
3079
+ verified: boolean;
3080
+ userId?: string | undefined;
3081
+ registrationRpId?: string | undefined;
3082
+ })[];
3083
+ signInContext?: Record<string, string> | undefined;
3084
+ } | null;
3085
+ clientId: string | null;
3086
+ }, {
3087
+ id: string;
3088
+ tenantId: string;
3089
+ accountId: string | null;
3090
+ expiresAt: number;
3091
+ payload: {
3092
+ uid: string;
3093
+ exp: number;
3094
+ iat: number;
3095
+ jti: string;
3096
+ kind: "Session";
3097
+ loginTs: number;
3098
+ accountId: string;
3099
+ authorizations: Record<string, z.objectInputType<{
3100
+ sid: z.ZodOptional<z.ZodString>;
3101
+ grantId: z.ZodOptional<z.ZodString>;
3102
+ persistsLogout: z.ZodOptional<z.ZodBoolean>;
3103
+ }, z.ZodUnknown, "strip">>;
3104
+ } & {
3105
+ [k: string]: unknown;
3106
+ };
3107
+ modelName: string;
3108
+ consumedAt: number | null;
3109
+ lastSubmission: {
3110
+ userId: string;
3111
+ interactionEvent: import("./interactions.js").InteractionEvent;
3112
+ verificationRecords: ({
3113
+ type: import("./index.js").VerificationType.BackupCode;
3114
+ id: string;
3115
+ userId: string;
3116
+ code?: string | undefined;
3117
+ } | {
3118
+ type: import("./index.js").VerificationType.EmailVerificationCode;
3119
+ id: string;
3120
+ identifier: {
3121
+ value: string;
3122
+ type: import("../foundations/index.js").SignInIdentifier.Email;
3123
+ };
3124
+ templateType: import("../foundations/index.js").TemplateType;
3125
+ verified: boolean;
3126
+ } | {
3127
+ type: import("./index.js").VerificationType.PhoneVerificationCode;
3128
+ id: string;
3129
+ identifier: {
3130
+ value: string;
3131
+ type: import("../foundations/index.js").SignInIdentifier.Phone;
3132
+ };
3133
+ templateType: import("../foundations/index.js").TemplateType;
3134
+ verified: boolean;
3135
+ } | {
3136
+ type: import("./index.js").VerificationType.NewPasswordIdentity;
3137
+ id: string;
3138
+ identifier: {
3139
+ value: string;
3140
+ type: import("../foundations/index.js").SignInIdentifier;
3141
+ };
3142
+ } | {
3143
+ type: import("./index.js").VerificationType.OneTimeToken;
3144
+ id: string;
3145
+ identifier: {
3146
+ value: string;
3147
+ type: import("../foundations/index.js").SignInIdentifier.Email;
3148
+ };
3149
+ verified: boolean;
3150
+ oneTimeTokenContext?: {
3151
+ jitOrganizationIds?: string[] | undefined;
3152
+ } | undefined;
3153
+ } | {
3154
+ type: import("./index.js").VerificationType.Password;
3155
+ id: string;
3156
+ identifier: {
3157
+ value: string;
3158
+ type: import("../foundations/index.js").SignInIdentifier | import("../foundations/index.js").AdditionalIdentifier;
3159
+ };
3160
+ verified: boolean;
3161
+ } | {
3162
+ type: import("./index.js").VerificationType.Social;
3163
+ id: string;
3164
+ connectorId: string;
3165
+ socialUserInfo?: {
3166
+ id: string;
3167
+ name?: string | undefined;
3168
+ email?: string | undefined;
3169
+ phone?: string | undefined;
3170
+ avatar?: string | undefined;
3171
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3172
+ } | undefined;
3173
+ } | {
3174
+ type: import("./index.js").VerificationType.TOTP;
3175
+ id: string;
3176
+ userId: string;
3177
+ verified: boolean;
3178
+ } | {
3179
+ type: import("./index.js").VerificationType.EnterpriseSso;
3180
+ id: string;
3181
+ connectorId: string;
3182
+ issuer?: string | undefined;
3183
+ enterpriseSsoUserInfo?: {
3184
+ id: string;
3185
+ name?: string | undefined;
3186
+ email?: string | undefined;
3187
+ phone?: string | undefined;
3188
+ avatar?: string | undefined;
3189
+ rawData?: import("@withtyped/server/lib/types.js").Json | undefined;
3190
+ } | undefined;
3191
+ } | {
3192
+ type: import("./index.js").VerificationType.WebAuthn;
3193
+ id: string;
3194
+ userId: string;
3195
+ verified: boolean;
3196
+ registrationRpId?: string | undefined;
3197
+ } | {
3198
+ type: import("./index.js").VerificationType.SignInWebAuthn;
3199
+ id: string;
3200
+ verified: boolean;
3201
+ userId?: string | undefined;
3202
+ registrationRpId?: string | undefined;
3203
+ })[];
3204
+ signInContext?: Record<string, string> | undefined;
3205
+ } | null;
3206
+ clientId: string | null;
3207
+ }>;
3208
+ export type GetUserSessionResponse = z.infer<typeof getUserSessionResponseGuard>;