@schemavaults/auth-common 0.25.0 → 0.25.1

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 (55) hide show
  1. package/dist/audience-schema.d.ts +2 -2
  2. package/dist/audience-schema.js +0 -1
  3. package/dist/audience-schema.js.map +1 -1
  4. package/dist/auth_acquire_tokens_grant_types.d.ts +12 -42
  5. package/dist/auth_acquire_tokens_grant_types.js +1 -1
  6. package/dist/auth_acquire_tokens_grant_types.js.map +1 -1
  7. package/dist/authenticate_result.d.ts +29 -144
  8. package/dist/authenticate_result.js +2 -2
  9. package/dist/authenticate_result.js.map +1 -1
  10. package/dist/authorize-client-application-form-type.d.ts +2 -6
  11. package/dist/credentials/email_credentials.d.ts +3 -9
  12. package/dist/credentials/normalize-email.d.ts +1 -1
  13. package/dist/credentials/normalize-email.js +5 -1
  14. package/dist/credentials/normalize-email.js.map +1 -1
  15. package/dist/credentials/password_requirements.d.ts +1 -1
  16. package/dist/credentials/register_credentials.d.ts +6 -26
  17. package/dist/invite-code/invite-code-definition.d.ts +5 -17
  18. package/dist/invite-code/invite-code-definition.js +1 -1
  19. package/dist/invite-code/invite-code-definition.js.map +1 -1
  20. package/dist/mfa/mfa-challenge.d.ts +2 -8
  21. package/dist/mfa/mfa-challenge.js +1 -1
  22. package/dist/mfa/mfa-challenge.js.map +1 -1
  23. package/dist/mfa/mfa-factor-type.d.ts +4 -1
  24. package/dist/mfa/mfa-verify-body.d.ts +57 -315
  25. package/dist/mfa/mfa-verify-body.js +9 -9
  26. package/dist/mfa/mfa-verify-body.js.map +1 -1
  27. package/dist/mfa/webauthn.d.ts +21 -145
  28. package/dist/mfa/webauthn.js +3 -3
  29. package/dist/mfa/webauthn.js.map +1 -1
  30. package/dist/middleware/auth-middleware-error.d.ts +1 -1
  31. package/dist/middleware/middleware-rules.d.ts +11 -15
  32. package/dist/organizations/invite_member_form.d.ts +8 -21
  33. package/dist/organizations/invite_member_form.js +5 -5
  34. package/dist/organizations/invite_member_form.js.map +1 -1
  35. package/dist/organizations/organization-membership-role-type.d.ts +1 -1
  36. package/dist/organizations/organization_definition.d.ts +5 -15
  37. package/dist/organizations/organization_definition.js +1 -1
  38. package/dist/organizations/organization_definition.js.map +1 -1
  39. package/dist/organizations/organization_invitation.d.ts +21 -33
  40. package/dist/organizations/organization_invitation.js +5 -5
  41. package/dist/organizations/organization_invitation.js.map +1 -1
  42. package/dist/organizations/organization_membership_role_details.d.ts +6 -18
  43. package/dist/pagination.d.ts +1 -7
  44. package/dist/pkce/code_challenge.d.ts +5 -13
  45. package/dist/pkce/code_verifier.d.ts +6 -16
  46. package/dist/pkce/pkce.d.ts +11 -29
  47. package/dist/request_tokens_result.d.ts +54 -524
  48. package/dist/token-data/token-data.d.ts +23 -73
  49. package/dist/token-data/token-data.js +1 -1
  50. package/dist/token-data/token-data.js.map +1 -1
  51. package/dist/user_data/user_data.d.ts +7 -71
  52. package/dist/user_data/user_data.js +3 -3
  53. package/dist/user_data/user_data.js.map +1 -1
  54. package/dist/user_data/user_profile.d.ts +4 -58
  55. package/package.json +3 -3
@@ -29,37 +29,19 @@ export declare class PKCE_ProofKeyManager {
29
29
  getCodeChallenge(): Promise<CodeChallengeWithDetails>;
30
30
  get challenge_time(): number;
31
31
  get expiry_time(): number;
32
- static get codeVerifierSchema(): import("zod").ZodEffects<import("zod").ZodString, string, string>;
32
+ static get codeVerifierSchema(): import("zod").ZodString;
33
33
  static get codeVerifierWithDetailsSchema(): import("zod").ZodObject<{
34
- challenge_time: import("zod").ZodNumber;
35
- code_verifier: import("zod").ZodEffects<import("zod").ZodString, string, string>;
36
- expires_at: import("zod").ZodNumber;
37
- max_age: import("zod").ZodNumber;
38
- }, "strict", import("zod").ZodTypeAny, {
39
- challenge_time: number;
40
- code_verifier: string;
41
- expires_at: number;
42
- max_age: number;
43
- }, {
44
- challenge_time: number;
45
- code_verifier: string;
46
- expires_at: number;
47
- max_age: number;
48
- }>;
49
- static get codeChallengeSchema(): import("zod").ZodEffects<import("zod").ZodString, string, string>;
34
+ code_verifier: import("zod").ZodNonOptional<import("zod").ZodString>;
35
+ challenge_time: import("zod").ZodNonOptional<import("zod").ZodNumber>;
36
+ expires_at: import("zod").ZodNonOptional<import("zod").ZodNumber>;
37
+ max_age: import("zod").ZodNonOptional<import("zod").ZodNumber>;
38
+ }, import("zod/v4/core").$strict>;
39
+ static get codeChallengeSchema(): import("zod").ZodString;
50
40
  static get codeChallengeWithOptionsSchema(): import("zod").ZodObject<{
51
- code_challenge: import("zod").ZodEffects<import("zod").ZodString, string, string>;
52
- code_challenge_method: import("zod").ZodLiteral<"S256">;
53
- challenge_time: import("zod").ZodNumber;
54
- }, "strict", import("zod").ZodTypeAny, {
55
- challenge_time: number;
56
- code_challenge: string;
57
- code_challenge_method: "S256";
58
- }, {
59
- challenge_time: number;
60
- code_challenge: string;
61
- code_challenge_method: "S256";
62
- }>;
41
+ code_challenge: import("zod").ZodNonOptional<import("zod").ZodString>;
42
+ code_challenge_method: import("zod").ZodNonOptional<import("zod").ZodLiteral<"S256">>;
43
+ challenge_time: import("zod").ZodNonOptional<import("zod").ZodNumber>;
44
+ }, import("zod/v4/core").$strict>;
63
45
  static get max_age(): number;
64
46
  static get codeChallengeMethod(): typeof code_challenge_method;
65
47
  static isValidCodeVerifierFormat(maybe_code_verifier: unknown): maybe_code_verifier is CodeVerifierWithDetails;
@@ -1,546 +1,76 @@
1
1
  import type { z as zod } from "zod";
2
2
  import { type AudienceSchemaOverrides } from "./audience-schema";
3
3
  import { type SchemaVaultsAppEnvironment } from "@schemavaults/app-definitions";
4
- export declare function createSuccessfullyGeneratedTokensRecordSchema(z: typeof zod, environment?: SchemaVaultsAppEnvironment, overrides?: AudienceSchemaOverrides): zod.ZodEffects<zod.ZodEffects<zod.ZodObject<{
5
- access: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodEffects<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>, string, string>]>, zod.ZodUnion<[zod.ZodObject<{
6
- uid: zod.ZodString;
7
- iat: zod.ZodNumber;
8
- exp: zod.ZodNumber;
9
- token: zod.ZodString;
10
- aud: zod.ZodString;
11
- jti: zod.ZodOptional<zod.ZodString>;
12
- } & {
4
+ export declare function createSuccessfullyGeneratedTokensRecordSchema(z: typeof zod, environment?: SchemaVaultsAppEnvironment, overrides?: AudienceSchemaOverrides): zod.ZodObject<{
5
+ access: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<readonly [zod.ZodURL & zod.ZodType<string, string, zod.core.$ZodTypeInternals<string, string>>, zod.ZodString]>, zod.ZodUnion<readonly [zod.ZodObject<{
6
+ uid: zod.ZodNonOptional<zod.ZodString>;
7
+ iat: zod.ZodNonOptional<zod.ZodNumber>;
8
+ exp: zod.ZodNonOptional<zod.ZodNumber>;
9
+ token: zod.ZodNonOptional<zod.ZodString>;
10
+ aud: zod.ZodNonOptional<zod.ZodString>;
11
+ jti: zod.ZodOptional<zod.ZodGUID>;
13
12
  type: zod.ZodLiteral<"access">;
14
- }, "strict", zod.ZodTypeAny, {
15
- type: "access";
16
- uid: string;
17
- iat: number;
18
- exp: number;
19
- token: string;
20
- aud: string;
21
- jti?: string | undefined;
22
- }, {
23
- type: "access";
24
- uid: string;
25
- iat: number;
26
- exp: number;
27
- token: string;
28
- aud: string;
29
- jti?: string | undefined;
30
- }>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
31
- refresh: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
32
- uid: zod.ZodString;
33
- iat: zod.ZodNumber;
34
- exp: zod.ZodNumber;
35
- token: zod.ZodString;
36
- aud: zod.ZodString;
37
- jti: zod.ZodOptional<zod.ZodString>;
38
- } & {
13
+ }, zod.core.$strict>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
14
+ refresh: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
15
+ uid: zod.ZodNonOptional<zod.ZodString>;
16
+ iat: zod.ZodNonOptional<zod.ZodNumber>;
17
+ exp: zod.ZodNonOptional<zod.ZodNumber>;
18
+ token: zod.ZodNonOptional<zod.ZodString>;
19
+ aud: zod.ZodNonOptional<zod.ZodString>;
20
+ jti: zod.ZodOptional<zod.ZodGUID>;
39
21
  type: zod.ZodLiteral<"refresh">;
40
- }, "strict", zod.ZodTypeAny, {
41
- type: "refresh";
42
- uid: string;
43
- iat: number;
44
- exp: number;
45
- token: string;
46
- aud: string;
47
- jti?: string | undefined;
48
- }, {
49
- type: "refresh";
50
- uid: string;
51
- iat: number;
52
- exp: number;
53
- token: string;
54
- aud: string;
55
- jti?: string | undefined;
56
- }>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
22
+ }, zod.core.$strict>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
57
23
  refresh_token_expiry: zod.ZodOptional<zod.ZodNumber>;
58
- }, "strict", zod.ZodTypeAny, {
59
- refresh?: {
60
- type: "refresh";
61
- uid: string;
62
- iat: number;
63
- exp: number;
64
- token: string;
65
- aud: string;
66
- jti?: string | undefined;
67
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
68
- access?: Record<string, {
69
- type: "access";
70
- uid: string;
71
- iat: number;
72
- exp: number;
73
- token: string;
74
- aud: string;
75
- jti?: string | undefined;
76
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
77
- refresh_token_expiry?: number | undefined;
78
- }, {
79
- refresh?: {
80
- type: "refresh";
81
- uid: string;
82
- iat: number;
83
- exp: number;
84
- token: string;
85
- aud: string;
86
- jti?: string | undefined;
87
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
88
- access?: Record<string, {
89
- type: "access";
90
- uid: string;
91
- iat: number;
92
- exp: number;
93
- token: string;
94
- aud: string;
95
- jti?: string | undefined;
96
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
97
- refresh_token_expiry?: number | undefined;
98
- }>, {
99
- refresh?: {
100
- type: "refresh";
101
- uid: string;
102
- iat: number;
103
- exp: number;
104
- token: string;
105
- aud: string;
106
- jti?: string | undefined;
107
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
108
- access?: Record<string, {
109
- type: "access";
110
- uid: string;
111
- iat: number;
112
- exp: number;
113
- token: string;
114
- aud: string;
115
- jti?: string | undefined;
116
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
117
- refresh_token_expiry?: number | undefined;
118
- }, {
119
- refresh?: {
120
- type: "refresh";
121
- uid: string;
122
- iat: number;
123
- exp: number;
124
- token: string;
125
- aud: string;
126
- jti?: string | undefined;
127
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
128
- access?: Record<string, {
129
- type: "access";
130
- uid: string;
131
- iat: number;
132
- exp: number;
133
- token: string;
134
- aud: string;
135
- jti?: string | undefined;
136
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
137
- refresh_token_expiry?: number | undefined;
138
- }>, {
139
- refresh?: {
140
- type: "refresh";
141
- uid: string;
142
- iat: number;
143
- exp: number;
144
- token: string;
145
- aud: string;
146
- jti?: string | undefined;
147
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
148
- access?: Record<string, {
149
- type: "access";
150
- uid: string;
151
- iat: number;
152
- exp: number;
153
- token: string;
154
- aud: string;
155
- jti?: string | undefined;
156
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
157
- refresh_token_expiry?: number | undefined;
158
- }, {
159
- refresh?: {
160
- type: "refresh";
161
- uid: string;
162
- iat: number;
163
- exp: number;
164
- token: string;
165
- aud: string;
166
- jti?: string | undefined;
167
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
168
- access?: Record<string, {
169
- type: "access";
170
- uid: string;
171
- iat: number;
172
- exp: number;
173
- token: string;
174
- aud: string;
175
- jti?: string | undefined;
176
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
177
- refresh_token_expiry?: number | undefined;
178
- }>;
24
+ }, zod.core.$strict>;
179
25
  export type SuccessfullyGeneratedTokensRecord = zod.infer<ReturnType<typeof createSuccessfullyGeneratedTokensRecordSchema>>;
180
- export declare function createRequestTokensResultSchema(z: typeof zod, environment?: SchemaVaultsAppEnvironment, overrides?: AudienceSchemaOverrides): zod.ZodUnion<[zod.ZodObject<{
181
- message: zod.ZodString;
182
- success: zod.ZodLiteral<false>;
183
- error: zod.ZodLiteral<true>;
184
- }, "strict", zod.ZodTypeAny, {
185
- message: string;
186
- success: false;
187
- error: true;
188
- }, {
189
- message: string;
190
- success: false;
191
- error: true;
192
- }>, zod.ZodObject<{
193
- message: zod.ZodString;
194
- client_app_id: zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>;
195
- success: zod.ZodLiteral<true>;
196
- error: zod.ZodLiteral<false>;
197
- tokens: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodObject<{
198
- access: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<[zod.ZodEffects<zod.ZodString, string, string>, zod.ZodEffects<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>, string, string>]>, zod.ZodUnion<[zod.ZodObject<{
199
- uid: zod.ZodString;
200
- iat: zod.ZodNumber;
201
- exp: zod.ZodNumber;
202
- token: zod.ZodString;
203
- aud: zod.ZodString;
204
- jti: zod.ZodOptional<zod.ZodString>;
205
- } & {
26
+ export declare function createRequestTokensResultSchema(z: typeof zod, environment?: SchemaVaultsAppEnvironment, overrides?: AudienceSchemaOverrides): zod.ZodUnion<readonly [zod.ZodObject<{
27
+ success: zod.ZodNonOptional<zod.ZodLiteral<false>>;
28
+ error: zod.ZodNonOptional<zod.ZodLiteral<true>>;
29
+ message: zod.ZodNonOptional<zod.ZodString>;
30
+ }, zod.core.$strict>, zod.ZodObject<{
31
+ success: zod.ZodNonOptional<zod.ZodLiteral<true>>;
32
+ error: zod.ZodNonOptional<zod.ZodLiteral<false>>;
33
+ message: zod.ZodNonOptional<zod.ZodString>;
34
+ client_app_id: zod.ZodNonOptional<zod.ZodString>;
35
+ tokens: zod.ZodOptional<zod.ZodObject<{
36
+ access: zod.ZodOptional<zod.ZodRecord<zod.ZodUnion<readonly [zod.ZodURL & zod.ZodType<string, string, zod.core.$ZodTypeInternals<string, string>>, zod.ZodString]>, zod.ZodUnion<readonly [zod.ZodObject<{
37
+ uid: zod.ZodNonOptional<zod.ZodString>;
38
+ iat: zod.ZodNonOptional<zod.ZodNumber>;
39
+ exp: zod.ZodNonOptional<zod.ZodNumber>;
40
+ token: zod.ZodNonOptional<zod.ZodString>;
41
+ aud: zod.ZodNonOptional<zod.ZodString>;
42
+ jti: zod.ZodOptional<zod.ZodGUID>;
206
43
  type: zod.ZodLiteral<"access">;
207
- }, "strict", zod.ZodTypeAny, {
208
- type: "access";
209
- uid: string;
210
- iat: number;
211
- exp: number;
212
- token: string;
213
- aud: string;
214
- jti?: string | undefined;
215
- }, {
216
- type: "access";
217
- uid: string;
218
- iat: number;
219
- exp: number;
220
- token: string;
221
- aud: string;
222
- jti?: string | undefined;
223
- }>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
224
- refresh: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
225
- uid: zod.ZodString;
226
- iat: zod.ZodNumber;
227
- exp: zod.ZodNumber;
228
- token: zod.ZodString;
229
- aud: zod.ZodString;
230
- jti: zod.ZodOptional<zod.ZodString>;
231
- } & {
44
+ }, zod.core.$strict>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>>;
45
+ refresh: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
46
+ uid: zod.ZodNonOptional<zod.ZodString>;
47
+ iat: zod.ZodNonOptional<zod.ZodNumber>;
48
+ exp: zod.ZodNonOptional<zod.ZodNumber>;
49
+ token: zod.ZodNonOptional<zod.ZodString>;
50
+ aud: zod.ZodNonOptional<zod.ZodString>;
51
+ jti: zod.ZodOptional<zod.ZodGUID>;
232
52
  type: zod.ZodLiteral<"refresh">;
233
- }, "strict", zod.ZodTypeAny, {
234
- type: "refresh";
235
- uid: string;
236
- iat: number;
237
- exp: number;
238
- token: string;
239
- aud: string;
240
- jti?: string | undefined;
241
- }, {
242
- type: "refresh";
243
- uid: string;
244
- iat: number;
245
- exp: number;
246
- token: string;
247
- aud: string;
248
- jti?: string | undefined;
249
- }>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
53
+ }, zod.core.$strict>, zod.ZodLiteral<"AS_HTTP_ONLY_COOKIE">]>>;
250
54
  refresh_token_expiry: zod.ZodOptional<zod.ZodNumber>;
251
- }, "strict", zod.ZodTypeAny, {
252
- refresh?: {
253
- type: "refresh";
254
- uid: string;
255
- iat: number;
256
- exp: number;
257
- token: string;
258
- aud: string;
259
- jti?: string | undefined;
260
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
261
- access?: Record<string, {
262
- type: "access";
263
- uid: string;
264
- iat: number;
265
- exp: number;
266
- token: string;
267
- aud: string;
268
- jti?: string | undefined;
269
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
270
- refresh_token_expiry?: number | undefined;
271
- }, {
272
- refresh?: {
273
- type: "refresh";
274
- uid: string;
275
- iat: number;
276
- exp: number;
277
- token: string;
278
- aud: string;
279
- jti?: string | undefined;
280
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
281
- access?: Record<string, {
282
- type: "access";
283
- uid: string;
284
- iat: number;
285
- exp: number;
286
- token: string;
287
- aud: string;
288
- jti?: string | undefined;
289
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
290
- refresh_token_expiry?: number | undefined;
291
- }>, {
292
- refresh?: {
293
- type: "refresh";
294
- uid: string;
295
- iat: number;
296
- exp: number;
297
- token: string;
298
- aud: string;
299
- jti?: string | undefined;
300
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
301
- access?: Record<string, {
302
- type: "access";
303
- uid: string;
304
- iat: number;
305
- exp: number;
306
- token: string;
307
- aud: string;
308
- jti?: string | undefined;
309
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
310
- refresh_token_expiry?: number | undefined;
311
- }, {
312
- refresh?: {
313
- type: "refresh";
314
- uid: string;
315
- iat: number;
316
- exp: number;
317
- token: string;
318
- aud: string;
319
- jti?: string | undefined;
320
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
321
- access?: Record<string, {
322
- type: "access";
323
- uid: string;
324
- iat: number;
325
- exp: number;
326
- token: string;
327
- aud: string;
328
- jti?: string | undefined;
329
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
330
- refresh_token_expiry?: number | undefined;
331
- }>, {
332
- refresh?: {
333
- type: "refresh";
334
- uid: string;
335
- iat: number;
336
- exp: number;
337
- token: string;
338
- aud: string;
339
- jti?: string | undefined;
340
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
341
- access?: Record<string, {
342
- type: "access";
343
- uid: string;
344
- iat: number;
345
- exp: number;
346
- token: string;
347
- aud: string;
348
- jti?: string | undefined;
349
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
350
- refresh_token_expiry?: number | undefined;
351
- }, {
352
- refresh?: {
353
- type: "refresh";
354
- uid: string;
355
- iat: number;
356
- exp: number;
357
- token: string;
358
- aud: string;
359
- jti?: string | undefined;
360
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
361
- access?: Record<string, {
362
- type: "access";
363
- uid: string;
364
- iat: number;
365
- exp: number;
366
- token: string;
367
- aud: string;
368
- jti?: string | undefined;
369
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
370
- refresh_token_expiry?: number | undefined;
371
- }>>;
372
- userData: zod.ZodOptional<zod.ZodEffects<zod.ZodObject<{
373
- uid: zod.ZodString;
55
+ }, zod.core.$strict>>;
56
+ userData: zod.ZodOptional<zod.ZodObject<{
57
+ uid: zod.ZodNonOptional<zod.ZodGUID>;
58
+ sub: zod.ZodNonOptional<zod.ZodGUID>;
59
+ email: zod.ZodNonOptional<zod.ZodEmail>;
60
+ email_verified: zod.ZodOptional<zod.ZodBoolean>;
374
61
  username: zod.ZodOptional<zod.ZodString>;
375
62
  first_name: zod.ZodOptional<zod.ZodString>;
376
63
  middle_name: zod.ZodOptional<zod.ZodString>;
377
64
  last_name: zod.ZodOptional<zod.ZodString>;
378
65
  display_name: zod.ZodOptional<zod.ZodString>;
379
- sub: zod.ZodString;
380
- email: zod.ZodString;
381
- email_verified: zod.ZodOptional<zod.ZodBoolean>;
382
66
  admin: zod.ZodOptional<zod.ZodBoolean>;
383
67
  phone_number: zod.ZodOptional<zod.ZodString>;
384
68
  phone_verified: zod.ZodOptional<zod.ZodBoolean>;
385
69
  disabled: zod.ZodOptional<zod.ZodBoolean>;
386
- created_at: zod.ZodNumber;
70
+ created_at: zod.ZodNonOptional<zod.ZodNumber>;
387
71
  invite_code: zod.ZodOptional<zod.ZodString>;
388
- }, "strict", zod.ZodTypeAny, {
389
- uid: string;
390
- sub: string;
391
- email: string;
392
- created_at: number;
393
- username?: string | undefined;
394
- first_name?: string | undefined;
395
- middle_name?: string | undefined;
396
- last_name?: string | undefined;
397
- display_name?: string | undefined;
398
- email_verified?: boolean | undefined;
399
- admin?: boolean | undefined;
400
- phone_number?: string | undefined;
401
- phone_verified?: boolean | undefined;
402
- disabled?: boolean | undefined;
403
- invite_code?: string | undefined;
404
- }, {
405
- uid: string;
406
- sub: string;
407
- email: string;
408
- created_at: number;
409
- username?: string | undefined;
410
- first_name?: string | undefined;
411
- middle_name?: string | undefined;
412
- last_name?: string | undefined;
413
- display_name?: string | undefined;
414
- email_verified?: boolean | undefined;
415
- admin?: boolean | undefined;
416
- phone_number?: string | undefined;
417
- phone_verified?: boolean | undefined;
418
- disabled?: boolean | undefined;
419
- invite_code?: string | undefined;
420
- }>, {
421
- uid: string;
422
- sub: string;
423
- email: string;
424
- created_at: number;
425
- username?: string | undefined;
426
- first_name?: string | undefined;
427
- middle_name?: string | undefined;
428
- last_name?: string | undefined;
429
- display_name?: string | undefined;
430
- email_verified?: boolean | undefined;
431
- admin?: boolean | undefined;
432
- phone_number?: string | undefined;
433
- phone_verified?: boolean | undefined;
434
- disabled?: boolean | undefined;
435
- invite_code?: string | undefined;
436
- }, {
437
- uid: string;
438
- sub: string;
439
- email: string;
440
- created_at: number;
441
- username?: string | undefined;
442
- first_name?: string | undefined;
443
- middle_name?: string | undefined;
444
- last_name?: string | undefined;
445
- display_name?: string | undefined;
446
- email_verified?: boolean | undefined;
447
- admin?: boolean | undefined;
448
- phone_number?: string | undefined;
449
- phone_verified?: boolean | undefined;
450
- disabled?: boolean | undefined;
451
- invite_code?: string | undefined;
452
- }>>;
453
- userOrgs: zod.ZodOptional<zod.ZodArray<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>, "many">>;
72
+ }, zod.core.$strict>>;
73
+ userOrgs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
454
74
  nonce: zod.ZodOptional<zod.ZodString>;
455
- }, "strict", zod.ZodTypeAny, {
456
- message: string;
457
- client_app_id: string;
458
- success: true;
459
- error: false;
460
- tokens?: {
461
- refresh?: {
462
- type: "refresh";
463
- uid: string;
464
- iat: number;
465
- exp: number;
466
- token: string;
467
- aud: string;
468
- jti?: string | undefined;
469
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
470
- access?: Record<string, {
471
- type: "access";
472
- uid: string;
473
- iat: number;
474
- exp: number;
475
- token: string;
476
- aud: string;
477
- jti?: string | undefined;
478
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
479
- refresh_token_expiry?: number | undefined;
480
- } | undefined;
481
- userData?: {
482
- uid: string;
483
- sub: string;
484
- email: string;
485
- created_at: number;
486
- username?: string | undefined;
487
- first_name?: string | undefined;
488
- middle_name?: string | undefined;
489
- last_name?: string | undefined;
490
- display_name?: string | undefined;
491
- email_verified?: boolean | undefined;
492
- admin?: boolean | undefined;
493
- phone_number?: string | undefined;
494
- phone_verified?: boolean | undefined;
495
- disabled?: boolean | undefined;
496
- invite_code?: string | undefined;
497
- } | undefined;
498
- userOrgs?: string[] | undefined;
499
- nonce?: string | undefined;
500
- }, {
501
- message: string;
502
- client_app_id: string;
503
- success: true;
504
- error: false;
505
- tokens?: {
506
- refresh?: {
507
- type: "refresh";
508
- uid: string;
509
- iat: number;
510
- exp: number;
511
- token: string;
512
- aud: string;
513
- jti?: string | undefined;
514
- } | "AS_HTTP_ONLY_COOKIE" | undefined;
515
- access?: Record<string, {
516
- type: "access";
517
- uid: string;
518
- iat: number;
519
- exp: number;
520
- token: string;
521
- aud: string;
522
- jti?: string | undefined;
523
- } | "AS_HTTP_ONLY_COOKIE"> | undefined;
524
- refresh_token_expiry?: number | undefined;
525
- } | undefined;
526
- userData?: {
527
- uid: string;
528
- sub: string;
529
- email: string;
530
- created_at: number;
531
- username?: string | undefined;
532
- first_name?: string | undefined;
533
- middle_name?: string | undefined;
534
- last_name?: string | undefined;
535
- display_name?: string | undefined;
536
- email_verified?: boolean | undefined;
537
- admin?: boolean | undefined;
538
- phone_number?: string | undefined;
539
- phone_verified?: boolean | undefined;
540
- disabled?: boolean | undefined;
541
- invite_code?: string | undefined;
542
- } | undefined;
543
- userOrgs?: string[] | undefined;
544
- nonce?: string | undefined;
545
- }>]>;
75
+ }, zod.core.$strict>]>;
546
76
  export type RequestTokensResult = zod.infer<ReturnType<typeof createRequestTokensResultSchema>>;