@nauth-toolkit/core 0.1.74 → 0.1.77

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.
@@ -27,110 +27,38 @@ import { z } from 'zod';
27
27
  /**
28
28
  * JWT configuration schema
29
29
  */
30
- export declare const jwtConfigSchema: z.ZodEffects<z.ZodObject<{
31
- algorithm: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512"]>>;
30
+ export declare const jwtConfigSchema: z.ZodObject<{
31
+ algorithm: z.ZodOptional<z.ZodEnum<{
32
+ HS256: "HS256";
33
+ HS384: "HS384";
34
+ HS512: "HS512";
35
+ RS256: "RS256";
36
+ RS384: "RS384";
37
+ RS512: "RS512";
38
+ }>>;
32
39
  accessToken: z.ZodObject<{
33
40
  secret: z.ZodOptional<z.ZodString>;
34
41
  privateKey: z.ZodOptional<z.ZodString>;
35
42
  publicKey: z.ZodOptional<z.ZodString>;
36
- expiresIn: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
37
- }, "strip", z.ZodTypeAny, {
38
- expiresIn: string | number;
39
- secret?: string | undefined;
40
- publicKey?: string | undefined;
41
- privateKey?: string | undefined;
42
- }, {
43
- expiresIn: string | number;
44
- secret?: string | undefined;
45
- publicKey?: string | undefined;
46
- privateKey?: string | undefined;
47
- }>;
43
+ expiresIn: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
44
+ }, z.core.$strip>;
48
45
  refreshToken: z.ZodObject<{
49
46
  secret: z.ZodString;
50
- expiresIn: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
47
+ expiresIn: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
51
48
  rotation: z.ZodOptional<z.ZodBoolean>;
52
49
  reuseDetection: z.ZodOptional<z.ZodBoolean>;
53
- }, "strip", z.ZodTypeAny, {
54
- expiresIn: string | number;
55
- secret: string;
56
- rotation?: boolean | undefined;
57
- reuseDetection?: boolean | undefined;
58
- }, {
59
- expiresIn: string | number;
60
- secret: string;
61
- rotation?: boolean | undefined;
62
- reuseDetection?: boolean | undefined;
63
- }>;
50
+ }, z.core.$strip>;
64
51
  issuer: z.ZodOptional<z.ZodString>;
65
- audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
66
- }, "strip", z.ZodTypeAny, {
67
- accessToken: {
68
- expiresIn: string | number;
69
- secret?: string | undefined;
70
- publicKey?: string | undefined;
71
- privateKey?: string | undefined;
72
- };
73
- refreshToken: {
74
- expiresIn: string | number;
75
- secret: string;
76
- rotation?: boolean | undefined;
77
- reuseDetection?: boolean | undefined;
78
- };
79
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
80
- issuer?: string | undefined;
81
- audience?: string | string[] | undefined;
82
- }, {
83
- accessToken: {
84
- expiresIn: string | number;
85
- secret?: string | undefined;
86
- publicKey?: string | undefined;
87
- privateKey?: string | undefined;
88
- };
89
- refreshToken: {
90
- expiresIn: string | number;
91
- secret: string;
92
- rotation?: boolean | undefined;
93
- reuseDetection?: boolean | undefined;
94
- };
95
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
96
- issuer?: string | undefined;
97
- audience?: string | string[] | undefined;
98
- }>, {
99
- accessToken: {
100
- expiresIn: string | number;
101
- secret?: string | undefined;
102
- publicKey?: string | undefined;
103
- privateKey?: string | undefined;
104
- };
105
- refreshToken: {
106
- expiresIn: string | number;
107
- secret: string;
108
- rotation?: boolean | undefined;
109
- reuseDetection?: boolean | undefined;
110
- };
111
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
112
- issuer?: string | undefined;
113
- audience?: string | string[] | undefined;
114
- }, {
115
- accessToken: {
116
- expiresIn: string | number;
117
- secret?: string | undefined;
118
- publicKey?: string | undefined;
119
- privateKey?: string | undefined;
120
- };
121
- refreshToken: {
122
- expiresIn: string | number;
123
- secret: string;
124
- rotation?: boolean | undefined;
125
- reuseDetection?: boolean | undefined;
126
- };
127
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
128
- issuer?: string | undefined;
129
- audience?: string | string[] | undefined;
130
- }>;
52
+ audience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
53
+ }, z.core.$strip>;
131
54
  export declare const signupConfigSchema: z.ZodObject<{
132
55
  enabled: z.ZodOptional<z.ZodBoolean>;
133
- verificationMethod: z.ZodOptional<z.ZodEnum<["none", "email", "phone", "both"]>>;
56
+ verificationMethod: z.ZodOptional<z.ZodEnum<{
57
+ none: "none";
58
+ email: "email";
59
+ phone: "phone";
60
+ both: "both";
61
+ }>>;
134
62
  allowDuplicatePhones: z.ZodOptional<z.ZodBoolean>;
135
63
  emailVerification: z.ZodOptional<z.ZodObject<{
136
64
  expiresIn: z.ZodOptional<z.ZodNumber>;
@@ -142,27 +70,7 @@ export declare const signupConfigSchema: z.ZodObject<{
142
70
  maxAttemptsPerIP: z.ZodOptional<z.ZodNumber>;
143
71
  attemptWindow: z.ZodOptional<z.ZodNumber>;
144
72
  baseUrl: z.ZodOptional<z.ZodString>;
145
- }, "strip", z.ZodTypeAny, {
146
- expiresIn?: number | undefined;
147
- baseUrl?: string | undefined;
148
- maxAttempts?: number | undefined;
149
- resendDelay?: number | undefined;
150
- rateLimitMax?: number | undefined;
151
- rateLimitWindow?: number | undefined;
152
- maxAttemptsPerUser?: number | undefined;
153
- maxAttemptsPerIP?: number | undefined;
154
- attemptWindow?: number | undefined;
155
- }, {
156
- expiresIn?: number | undefined;
157
- baseUrl?: string | undefined;
158
- maxAttempts?: number | undefined;
159
- resendDelay?: number | undefined;
160
- rateLimitMax?: number | undefined;
161
- rateLimitWindow?: number | undefined;
162
- maxAttemptsPerUser?: number | undefined;
163
- maxAttemptsPerIP?: number | undefined;
164
- attemptWindow?: number | undefined;
165
- }>>;
73
+ }, z.core.$strip>>;
166
74
  phoneVerification: z.ZodOptional<z.ZodObject<{
167
75
  codeLength: z.ZodOptional<z.ZodNumber>;
168
76
  expiresIn: z.ZodOptional<z.ZodNumber>;
@@ -173,92 +81,17 @@ export declare const signupConfigSchema: z.ZodObject<{
173
81
  maxAttemptsPerUser: z.ZodOptional<z.ZodNumber>;
174
82
  maxAttemptsPerIP: z.ZodOptional<z.ZodNumber>;
175
83
  attemptWindow: z.ZodOptional<z.ZodNumber>;
176
- baseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
177
- }, "strip", z.ZodTypeAny, {
178
- expiresIn?: number | undefined;
179
- baseUrl?: string | undefined;
180
- maxAttempts?: number | undefined;
181
- resendDelay?: number | undefined;
182
- rateLimitMax?: number | undefined;
183
- rateLimitWindow?: number | undefined;
184
- maxAttemptsPerUser?: number | undefined;
185
- maxAttemptsPerIP?: number | undefined;
186
- attemptWindow?: number | undefined;
187
- codeLength?: number | undefined;
188
- }, {
189
- expiresIn?: number | undefined;
190
- baseUrl?: string | undefined;
191
- maxAttempts?: number | undefined;
192
- resendDelay?: number | undefined;
193
- rateLimitMax?: number | undefined;
194
- rateLimitWindow?: number | undefined;
195
- maxAttemptsPerUser?: number | undefined;
196
- maxAttemptsPerIP?: number | undefined;
197
- attemptWindow?: number | undefined;
198
- codeLength?: number | undefined;
199
- }>>;
200
- }, "strip", z.ZodTypeAny, {
201
- enabled?: boolean | undefined;
202
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
203
- allowDuplicatePhones?: boolean | undefined;
204
- emailVerification?: {
205
- expiresIn?: number | undefined;
206
- baseUrl?: string | undefined;
207
- maxAttempts?: number | undefined;
208
- resendDelay?: number | undefined;
209
- rateLimitMax?: number | undefined;
210
- rateLimitWindow?: number | undefined;
211
- maxAttemptsPerUser?: number | undefined;
212
- maxAttemptsPerIP?: number | undefined;
213
- attemptWindow?: number | undefined;
214
- } | undefined;
215
- phoneVerification?: {
216
- expiresIn?: number | undefined;
217
- baseUrl?: string | undefined;
218
- maxAttempts?: number | undefined;
219
- resendDelay?: number | undefined;
220
- rateLimitMax?: number | undefined;
221
- rateLimitWindow?: number | undefined;
222
- maxAttemptsPerUser?: number | undefined;
223
- maxAttemptsPerIP?: number | undefined;
224
- attemptWindow?: number | undefined;
225
- codeLength?: number | undefined;
226
- } | undefined;
227
- }, {
228
- enabled?: boolean | undefined;
229
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
230
- allowDuplicatePhones?: boolean | undefined;
231
- emailVerification?: {
232
- expiresIn?: number | undefined;
233
- baseUrl?: string | undefined;
234
- maxAttempts?: number | undefined;
235
- resendDelay?: number | undefined;
236
- rateLimitMax?: number | undefined;
237
- rateLimitWindow?: number | undefined;
238
- maxAttemptsPerUser?: number | undefined;
239
- maxAttemptsPerIP?: number | undefined;
240
- attemptWindow?: number | undefined;
241
- } | undefined;
242
- phoneVerification?: {
243
- expiresIn?: number | undefined;
244
- baseUrl?: string | undefined;
245
- maxAttempts?: number | undefined;
246
- resendDelay?: number | undefined;
247
- rateLimitMax?: number | undefined;
248
- rateLimitWindow?: number | undefined;
249
- maxAttemptsPerUser?: number | undefined;
250
- maxAttemptsPerIP?: number | undefined;
251
- attemptWindow?: number | undefined;
252
- codeLength?: number | undefined;
253
- } | undefined;
254
- }>;
84
+ baseUrl: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ }, z.core.$strip>;
255
87
  export declare const loginConfigSchema: z.ZodObject<{
256
- identifierType: z.ZodOptional<z.ZodEnum<["email", "username", "phone", "email_or_username"]>>;
257
- }, "strip", z.ZodTypeAny, {
258
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
259
- }, {
260
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
261
- }>;
88
+ identifierType: z.ZodOptional<z.ZodEnum<{
89
+ email: "email";
90
+ phone: "phone";
91
+ username: "username";
92
+ email_or_username: "email_or_username";
93
+ }>>;
94
+ }, z.core.$strip>;
262
95
  export declare const passwordConfigSchema: z.ZodObject<{
263
96
  minLength: z.ZodOptional<z.ZodNumber>;
264
97
  maxLength: z.ZodOptional<z.ZodNumber>;
@@ -277,162 +110,38 @@ export declare const passwordConfigSchema: z.ZodObject<{
277
110
  rateLimitMax: z.ZodOptional<z.ZodNumber>;
278
111
  rateLimitWindow: z.ZodOptional<z.ZodNumber>;
279
112
  maxAttempts: z.ZodOptional<z.ZodNumber>;
280
- }, "strip", z.ZodTypeAny, {
281
- expiresIn?: number | undefined;
282
- maxAttempts?: number | undefined;
283
- rateLimitMax?: number | undefined;
284
- rateLimitWindow?: number | undefined;
285
- codeLength?: number | undefined;
286
- }, {
287
- expiresIn?: number | undefined;
288
- maxAttempts?: number | undefined;
289
- rateLimitMax?: number | undefined;
290
- rateLimitWindow?: number | undefined;
291
- codeLength?: number | undefined;
292
- }>>;
293
- }, "strip", z.ZodTypeAny, {
294
- passwordReset?: {
295
- expiresIn?: number | undefined;
296
- maxAttempts?: number | undefined;
297
- rateLimitMax?: number | undefined;
298
- rateLimitWindow?: number | undefined;
299
- codeLength?: number | undefined;
300
- } | undefined;
301
- minLength?: number | undefined;
302
- maxLength?: number | undefined;
303
- requireUppercase?: boolean | undefined;
304
- requireLowercase?: boolean | undefined;
305
- requireNumbers?: boolean | undefined;
306
- requireSpecialChars?: boolean | undefined;
307
- specialChars?: string | undefined;
308
- preventCommon?: boolean | undefined;
309
- preventUserInfo?: boolean | undefined;
310
- historyCount?: number | undefined;
311
- expiryDays?: number | undefined;
312
- }, {
313
- passwordReset?: {
314
- expiresIn?: number | undefined;
315
- maxAttempts?: number | undefined;
316
- rateLimitMax?: number | undefined;
317
- rateLimitWindow?: number | undefined;
318
- codeLength?: number | undefined;
319
- } | undefined;
320
- minLength?: number | undefined;
321
- maxLength?: number | undefined;
322
- requireUppercase?: boolean | undefined;
323
- requireLowercase?: boolean | undefined;
324
- requireNumbers?: boolean | undefined;
325
- requireSpecialChars?: boolean | undefined;
326
- specialChars?: string | undefined;
327
- preventCommon?: boolean | undefined;
328
- preventUserInfo?: boolean | undefined;
329
- historyCount?: number | undefined;
330
- expiryDays?: number | undefined;
331
- }>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>;
332
115
  export declare const lockoutConfigSchema: z.ZodObject<{
333
116
  enabled: z.ZodOptional<z.ZodBoolean>;
334
117
  maxAttempts: z.ZodOptional<z.ZodNumber>;
335
118
  attemptWindow: z.ZodOptional<z.ZodNumber>;
336
119
  duration: z.ZodOptional<z.ZodNumber>;
337
120
  resetOnSuccess: z.ZodOptional<z.ZodBoolean>;
338
- }, "strip", z.ZodTypeAny, {
339
- enabled?: boolean | undefined;
340
- duration?: number | undefined;
341
- maxAttempts?: number | undefined;
342
- attemptWindow?: number | undefined;
343
- resetOnSuccess?: boolean | undefined;
344
- }, {
345
- enabled?: boolean | undefined;
346
- duration?: number | undefined;
347
- maxAttempts?: number | undefined;
348
- attemptWindow?: number | undefined;
349
- resetOnSuccess?: boolean | undefined;
350
- }>;
121
+ }, z.core.$strip>;
351
122
  export declare const sessionConfigSchema: z.ZodObject<{
352
123
  maxConcurrent: z.ZodOptional<z.ZodNumber>;
353
124
  disallowMultipleSessions: z.ZodOptional<z.ZodBoolean>;
354
- maxLifetime: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
355
- }, "strip", z.ZodTypeAny, {
356
- maxConcurrent?: number | undefined;
357
- disallowMultipleSessions?: boolean | undefined;
358
- maxLifetime?: string | number | undefined;
359
- }, {
360
- maxConcurrent?: number | undefined;
361
- disallowMultipleSessions?: boolean | undefined;
362
- maxLifetime?: string | number | undefined;
363
- }>;
125
+ maxLifetime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
126
+ }, z.core.$strip>;
364
127
  export declare const securityConfigSchema: z.ZodObject<{
365
128
  csrf: z.ZodOptional<z.ZodObject<{
366
129
  cookieName: z.ZodOptional<z.ZodString>;
367
130
  headerName: z.ZodOptional<z.ZodString>;
368
131
  tokenLength: z.ZodOptional<z.ZodNumber>;
369
- excludedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ excludedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
370
133
  cookieOptions: z.ZodOptional<z.ZodObject<{
371
134
  secure: z.ZodOptional<z.ZodBoolean>;
372
- sameSite: z.ZodOptional<z.ZodEnum<["strict", "lax", "none"]>>;
135
+ sameSite: z.ZodOptional<z.ZodEnum<{
136
+ strict: "strict";
137
+ lax: "lax";
138
+ none: "none";
139
+ }>>;
373
140
  domain: z.ZodOptional<z.ZodString>;
374
141
  path: z.ZodOptional<z.ZodString>;
375
- }, "strip", z.ZodTypeAny, {
376
- secure?: boolean | undefined;
377
- sameSite?: "strict" | "lax" | "none" | undefined;
378
- domain?: string | undefined;
379
- path?: string | undefined;
380
- }, {
381
- secure?: boolean | undefined;
382
- sameSite?: "strict" | "lax" | "none" | undefined;
383
- domain?: string | undefined;
384
- path?: string | undefined;
385
- }>>;
386
- }, "strip", z.ZodTypeAny, {
387
- cookieName?: string | undefined;
388
- headerName?: string | undefined;
389
- tokenLength?: number | undefined;
390
- excludedPaths?: string[] | undefined;
391
- cookieOptions?: {
392
- secure?: boolean | undefined;
393
- sameSite?: "strict" | "lax" | "none" | undefined;
394
- domain?: string | undefined;
395
- path?: string | undefined;
396
- } | undefined;
397
- }, {
398
- cookieName?: string | undefined;
399
- headerName?: string | undefined;
400
- tokenLength?: number | undefined;
401
- excludedPaths?: string[] | undefined;
402
- cookieOptions?: {
403
- secure?: boolean | undefined;
404
- sameSite?: "strict" | "lax" | "none" | undefined;
405
- domain?: string | undefined;
406
- path?: string | undefined;
407
- } | undefined;
408
- }>>;
409
- }, "strip", z.ZodTypeAny, {
410
- csrf?: {
411
- cookieName?: string | undefined;
412
- headerName?: string | undefined;
413
- tokenLength?: number | undefined;
414
- excludedPaths?: string[] | undefined;
415
- cookieOptions?: {
416
- secure?: boolean | undefined;
417
- sameSite?: "strict" | "lax" | "none" | undefined;
418
- domain?: string | undefined;
419
- path?: string | undefined;
420
- } | undefined;
421
- } | undefined;
422
- }, {
423
- csrf?: {
424
- cookieName?: string | undefined;
425
- headerName?: string | undefined;
426
- tokenLength?: number | undefined;
427
- excludedPaths?: string[] | undefined;
428
- cookieOptions?: {
429
- secure?: boolean | undefined;
430
- sameSite?: "strict" | "lax" | "none" | undefined;
431
- domain?: string | undefined;
432
- path?: string | undefined;
433
- } | undefined;
434
- } | undefined;
435
- }>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>;
436
145
  /**
437
146
  * Email configuration schema
438
147
  */
@@ -446,681 +155,212 @@ export declare const emailConfigSchema: z.ZodObject<{
446
155
  dashboardUrl: z.ZodOptional<z.ZodString>;
447
156
  supportEmail: z.ZodOptional<z.ZodString>;
448
157
  footerDisclaimer: z.ZodOptional<z.ZodString>;
449
- }, "strip", z.ZodUnknown, z.objectOutputType<{
450
- appName: z.ZodOptional<z.ZodString>;
451
- companyName: z.ZodOptional<z.ZodString>;
452
- companyAddress: z.ZodOptional<z.ZodString>;
453
- brandColor: z.ZodOptional<z.ZodString>;
454
- logoUrl: z.ZodOptional<z.ZodString>;
455
- dashboardUrl: z.ZodOptional<z.ZodString>;
456
- supportEmail: z.ZodOptional<z.ZodString>;
457
- footerDisclaimer: z.ZodOptional<z.ZodString>;
458
- }, z.ZodUnknown, "strip">, z.objectInputType<{
459
- appName: z.ZodOptional<z.ZodString>;
460
- companyName: z.ZodOptional<z.ZodString>;
461
- companyAddress: z.ZodOptional<z.ZodString>;
462
- brandColor: z.ZodOptional<z.ZodString>;
463
- logoUrl: z.ZodOptional<z.ZodString>;
464
- dashboardUrl: z.ZodOptional<z.ZodString>;
465
- supportEmail: z.ZodOptional<z.ZodString>;
466
- footerDisclaimer: z.ZodOptional<z.ZodString>;
467
- }, z.ZodUnknown, "strip">>>;
158
+ }, z.core.$catchall<z.ZodUnknown>>>;
468
159
  templates: z.ZodOptional<z.ZodObject<{
469
160
  engine: z.ZodOptional<z.ZodAny>;
470
- customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
161
+ customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
471
162
  htmlPath: z.ZodOptional<z.ZodString>;
472
163
  html: z.ZodOptional<z.ZodString>;
473
164
  textPath: z.ZodOptional<z.ZodString>;
474
165
  text: z.ZodOptional<z.ZodString>;
475
166
  subject: z.ZodOptional<z.ZodString>;
476
- }, "strip", z.ZodTypeAny, {
477
- htmlPath?: string | undefined;
478
- html?: string | undefined;
479
- textPath?: string | undefined;
480
- text?: string | undefined;
481
- subject?: string | undefined;
482
- }, {
483
- htmlPath?: string | undefined;
484
- html?: string | undefined;
485
- textPath?: string | undefined;
486
- text?: string | undefined;
487
- subject?: string | undefined;
488
- }>, {
489
- htmlPath?: string | undefined;
490
- html?: string | undefined;
491
- textPath?: string | undefined;
492
- text?: string | undefined;
493
- subject?: string | undefined;
494
- }, {
495
- htmlPath?: string | undefined;
496
- html?: string | undefined;
497
- textPath?: string | undefined;
498
- text?: string | undefined;
499
- subject?: string | undefined;
500
- }>, {
501
- htmlPath?: string | undefined;
502
- html?: string | undefined;
503
- textPath?: string | undefined;
504
- text?: string | undefined;
505
- subject?: string | undefined;
506
- }, {
507
- htmlPath?: string | undefined;
508
- html?: string | undefined;
509
- textPath?: string | undefined;
510
- text?: string | undefined;
511
- subject?: string | undefined;
512
- }>, {
513
- htmlPath?: string | undefined;
514
- html?: string | undefined;
515
- textPath?: string | undefined;
516
- text?: string | undefined;
517
- subject?: string | undefined;
518
- }, {
519
- htmlPath?: string | undefined;
520
- html?: string | undefined;
521
- textPath?: string | undefined;
522
- text?: string | undefined;
523
- subject?: string | undefined;
524
- }>>>;
525
- }, "strict", z.ZodTypeAny, {
526
- engine?: any;
527
- customTemplates?: Record<string, {
528
- htmlPath?: string | undefined;
529
- html?: string | undefined;
530
- textPath?: string | undefined;
531
- text?: string | undefined;
532
- subject?: string | undefined;
533
- }> | undefined;
534
- }, {
535
- engine?: any;
536
- customTemplates?: Record<string, {
537
- htmlPath?: string | undefined;
538
- html?: string | undefined;
539
- textPath?: string | undefined;
540
- text?: string | undefined;
541
- subject?: string | undefined;
542
- }> | undefined;
543
- }>>;
544
- }, "strict", z.ZodTypeAny, {
545
- globalVariables?: z.objectOutputType<{
546
- appName: z.ZodOptional<z.ZodString>;
547
- companyName: z.ZodOptional<z.ZodString>;
548
- companyAddress: z.ZodOptional<z.ZodString>;
549
- brandColor: z.ZodOptional<z.ZodString>;
550
- logoUrl: z.ZodOptional<z.ZodString>;
551
- dashboardUrl: z.ZodOptional<z.ZodString>;
552
- supportEmail: z.ZodOptional<z.ZodString>;
553
- footerDisclaimer: z.ZodOptional<z.ZodString>;
554
- }, z.ZodUnknown, "strip"> | undefined;
555
- templates?: {
556
- engine?: any;
557
- customTemplates?: Record<string, {
558
- htmlPath?: string | undefined;
559
- html?: string | undefined;
560
- textPath?: string | undefined;
561
- text?: string | undefined;
562
- subject?: string | undefined;
563
- }> | undefined;
564
- } | undefined;
565
- }, {
566
- globalVariables?: z.objectInputType<{
567
- appName: z.ZodOptional<z.ZodString>;
568
- companyName: z.ZodOptional<z.ZodString>;
569
- companyAddress: z.ZodOptional<z.ZodString>;
570
- brandColor: z.ZodOptional<z.ZodString>;
571
- logoUrl: z.ZodOptional<z.ZodString>;
572
- dashboardUrl: z.ZodOptional<z.ZodString>;
573
- supportEmail: z.ZodOptional<z.ZodString>;
574
- footerDisclaimer: z.ZodOptional<z.ZodString>;
575
- }, z.ZodUnknown, "strip"> | undefined;
576
- templates?: {
577
- engine?: any;
578
- customTemplates?: Record<string, {
579
- htmlPath?: string | undefined;
580
- html?: string | undefined;
581
- textPath?: string | undefined;
582
- text?: string | undefined;
583
- subject?: string | undefined;
584
- }> | undefined;
585
- } | undefined;
586
- }>;
167
+ }, z.core.$strip>>>;
168
+ }, z.core.$strict>>;
169
+ }, z.core.$strict>;
587
170
  /**
588
171
  * SMS configuration schema
589
172
  */
590
173
  export declare const smsConfigSchema: z.ZodObject<{
591
174
  templates: z.ZodOptional<z.ZodObject<{
592
175
  engine: z.ZodOptional<z.ZodAny>;
593
- globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
594
- customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
176
+ globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
177
+ customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
595
178
  contentPath: z.ZodOptional<z.ZodString>;
596
179
  content: z.ZodOptional<z.ZodString>;
597
- }, "strip", z.ZodTypeAny, {
598
- contentPath?: string | undefined;
599
- content?: string | undefined;
600
- }, {
601
- contentPath?: string | undefined;
602
- content?: string | undefined;
603
- }>, {
604
- contentPath?: string | undefined;
605
- content?: string | undefined;
606
- }, {
607
- contentPath?: string | undefined;
608
- content?: string | undefined;
609
- }>, {
610
- contentPath?: string | undefined;
611
- content?: string | undefined;
612
- }, {
613
- contentPath?: string | undefined;
614
- content?: string | undefined;
615
- }>>>;
616
- }, "strip", z.ZodTypeAny, {
617
- engine?: any;
618
- customTemplates?: Record<string, {
619
- contentPath?: string | undefined;
620
- content?: string | undefined;
621
- }> | undefined;
622
- globalVariables?: Record<string, string | number | boolean> | undefined;
623
- }, {
624
- engine?: any;
625
- customTemplates?: Record<string, {
626
- contentPath?: string | undefined;
627
- content?: string | undefined;
628
- }> | undefined;
629
- globalVariables?: Record<string, string | number | boolean> | undefined;
630
- }>>;
631
- }, "strip", z.ZodTypeAny, {
632
- templates?: {
633
- engine?: any;
634
- customTemplates?: Record<string, {
635
- contentPath?: string | undefined;
636
- content?: string | undefined;
637
- }> | undefined;
638
- globalVariables?: Record<string, string | number | boolean> | undefined;
639
- } | undefined;
640
- }, {
641
- templates?: {
642
- engine?: any;
643
- customTemplates?: Record<string, {
644
- contentPath?: string | undefined;
645
- content?: string | undefined;
646
- }> | undefined;
647
- globalVariables?: Record<string, string | number | boolean> | undefined;
648
- } | undefined;
649
- }>;
650
- export declare const phoneConfigSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
180
+ }, z.core.$strip>>>;
181
+ }, z.core.$strip>>;
182
+ }, z.core.$strip>;
183
+ export declare const phoneConfigSchema: z.ZodObject<{}, z.core.$strip>;
651
184
  export declare const socialProviderConfigSchema: z.ZodObject<{
652
185
  enabled: z.ZodOptional<z.ZodBoolean>;
653
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
186
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
654
187
  clientSecret: z.ZodOptional<z.ZodString>;
655
188
  callbackUrl: z.ZodOptional<z.ZodString>;
656
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
657
190
  autoLink: z.ZodOptional<z.ZodBoolean>;
658
191
  allowSignup: z.ZodOptional<z.ZodBoolean>;
659
- }, "strip", z.ZodTypeAny, {
660
- clientSecret?: string | undefined;
661
- enabled?: boolean | undefined;
662
- clientId?: string | string[] | undefined;
663
- callbackUrl?: string | undefined;
664
- scopes?: string[] | undefined;
665
- autoLink?: boolean | undefined;
666
- allowSignup?: boolean | undefined;
667
- }, {
668
- clientSecret?: string | undefined;
669
- enabled?: boolean | undefined;
670
- clientId?: string | string[] | undefined;
671
- callbackUrl?: string | undefined;
672
- scopes?: string[] | undefined;
673
- autoLink?: boolean | undefined;
674
- allowSignup?: boolean | undefined;
675
- }>;
192
+ }, z.core.$strip>;
676
193
  /**
677
194
  * Apple-specific social provider configuration schema
678
195
  *
679
196
  * Apple requires teamId, keyId, and privateKeyPem instead of a static clientSecret.
680
197
  * The toolkit will automatically generate and refresh the JWT client secret.
681
198
  */
682
- export declare const appleSocialProviderConfigSchema: z.ZodObject<Omit<{
199
+ export declare const appleSocialProviderConfigSchema: z.ZodObject<{
683
200
  enabled: z.ZodOptional<z.ZodBoolean>;
684
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
685
- clientSecret: z.ZodOptional<z.ZodString>;
201
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
686
202
  callbackUrl: z.ZodOptional<z.ZodString>;
687
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
204
  autoLink: z.ZodOptional<z.ZodBoolean>;
689
205
  allowSignup: z.ZodOptional<z.ZodBoolean>;
690
- }, "clientSecret"> & {
691
206
  teamId: z.ZodOptional<z.ZodString>;
692
207
  keyId: z.ZodOptional<z.ZodString>;
693
208
  privateKeyPem: z.ZodOptional<z.ZodString>;
694
- }, "strip", z.ZodTypeAny, {
695
- enabled?: boolean | undefined;
696
- clientId?: string | string[] | undefined;
697
- callbackUrl?: string | undefined;
698
- scopes?: string[] | undefined;
699
- autoLink?: boolean | undefined;
700
- allowSignup?: boolean | undefined;
701
- teamId?: string | undefined;
702
- keyId?: string | undefined;
703
- privateKeyPem?: string | undefined;
704
- }, {
705
- enabled?: boolean | undefined;
706
- clientId?: string | string[] | undefined;
707
- callbackUrl?: string | undefined;
708
- scopes?: string[] | undefined;
709
- autoLink?: boolean | undefined;
710
- allowSignup?: boolean | undefined;
711
- teamId?: string | undefined;
712
- keyId?: string | undefined;
713
- privateKeyPem?: string | undefined;
714
- }>;
209
+ }, z.core.$strip>;
715
210
  export declare const socialRedirectConfigSchema: z.ZodObject<{
716
211
  frontendBaseUrl: z.ZodOptional<z.ZodString>;
717
212
  allowAbsoluteReturnTo: z.ZodOptional<z.ZodBoolean>;
718
- allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
- }, "strip", z.ZodTypeAny, {
720
- frontendBaseUrl?: string | undefined;
721
- allowAbsoluteReturnTo?: boolean | undefined;
722
- allowedReturnToOrigins?: string[] | undefined;
723
- }, {
724
- frontendBaseUrl?: string | undefined;
725
- allowAbsoluteReturnTo?: boolean | undefined;
726
- allowedReturnToOrigins?: string[] | undefined;
727
- }>;
213
+ allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
+ }, z.core.$strip>;
728
215
  export declare const socialConfigSchema: z.ZodObject<{
729
216
  google: z.ZodOptional<z.ZodObject<{
730
217
  enabled: z.ZodOptional<z.ZodBoolean>;
731
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
218
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
732
219
  clientSecret: z.ZodOptional<z.ZodString>;
733
220
  callbackUrl: z.ZodOptional<z.ZodString>;
734
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
735
222
  autoLink: z.ZodOptional<z.ZodBoolean>;
736
223
  allowSignup: z.ZodOptional<z.ZodBoolean>;
737
- }, "strip", z.ZodTypeAny, {
738
- clientSecret?: string | undefined;
739
- enabled?: boolean | undefined;
740
- clientId?: string | string[] | undefined;
741
- callbackUrl?: string | undefined;
742
- scopes?: string[] | undefined;
743
- autoLink?: boolean | undefined;
744
- allowSignup?: boolean | undefined;
745
- }, {
746
- clientSecret?: string | undefined;
747
- enabled?: boolean | undefined;
748
- clientId?: string | string[] | undefined;
749
- callbackUrl?: string | undefined;
750
- scopes?: string[] | undefined;
751
- autoLink?: boolean | undefined;
752
- allowSignup?: boolean | undefined;
753
- }>>;
754
- apple: z.ZodOptional<z.ZodObject<Omit<{
224
+ }, z.core.$strip>>;
225
+ apple: z.ZodOptional<z.ZodObject<{
755
226
  enabled: z.ZodOptional<z.ZodBoolean>;
756
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
757
- clientSecret: z.ZodOptional<z.ZodString>;
227
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
758
228
  callbackUrl: z.ZodOptional<z.ZodString>;
759
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
230
  autoLink: z.ZodOptional<z.ZodBoolean>;
761
231
  allowSignup: z.ZodOptional<z.ZodBoolean>;
762
- }, "clientSecret"> & {
763
232
  teamId: z.ZodOptional<z.ZodString>;
764
233
  keyId: z.ZodOptional<z.ZodString>;
765
234
  privateKeyPem: z.ZodOptional<z.ZodString>;
766
- }, "strip", z.ZodTypeAny, {
767
- enabled?: boolean | undefined;
768
- clientId?: string | string[] | undefined;
769
- callbackUrl?: string | undefined;
770
- scopes?: string[] | undefined;
771
- autoLink?: boolean | undefined;
772
- allowSignup?: boolean | undefined;
773
- teamId?: string | undefined;
774
- keyId?: string | undefined;
775
- privateKeyPem?: string | undefined;
776
- }, {
777
- enabled?: boolean | undefined;
778
- clientId?: string | string[] | undefined;
779
- callbackUrl?: string | undefined;
780
- scopes?: string[] | undefined;
781
- autoLink?: boolean | undefined;
782
- allowSignup?: boolean | undefined;
783
- teamId?: string | undefined;
784
- keyId?: string | undefined;
785
- privateKeyPem?: string | undefined;
786
- }>>;
235
+ }, z.core.$strip>>;
787
236
  facebook: z.ZodOptional<z.ZodObject<{
788
237
  enabled: z.ZodOptional<z.ZodBoolean>;
789
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
238
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
790
239
  clientSecret: z.ZodOptional<z.ZodString>;
791
240
  callbackUrl: z.ZodOptional<z.ZodString>;
792
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
242
  autoLink: z.ZodOptional<z.ZodBoolean>;
794
243
  allowSignup: z.ZodOptional<z.ZodBoolean>;
795
- }, "strip", z.ZodTypeAny, {
796
- clientSecret?: string | undefined;
797
- enabled?: boolean | undefined;
798
- clientId?: string | string[] | undefined;
799
- callbackUrl?: string | undefined;
800
- scopes?: string[] | undefined;
801
- autoLink?: boolean | undefined;
802
- allowSignup?: boolean | undefined;
803
- }, {
804
- clientSecret?: string | undefined;
805
- enabled?: boolean | undefined;
806
- clientId?: string | string[] | undefined;
807
- callbackUrl?: string | undefined;
808
- scopes?: string[] | undefined;
809
- autoLink?: boolean | undefined;
810
- allowSignup?: boolean | undefined;
811
- }>>;
244
+ }, z.core.$strip>>;
812
245
  redirect: z.ZodOptional<z.ZodObject<{
813
246
  frontendBaseUrl: z.ZodOptional<z.ZodString>;
814
247
  allowAbsoluteReturnTo: z.ZodOptional<z.ZodBoolean>;
815
- allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
816
- }, "strip", z.ZodTypeAny, {
817
- frontendBaseUrl?: string | undefined;
818
- allowAbsoluteReturnTo?: boolean | undefined;
819
- allowedReturnToOrigins?: string[] | undefined;
820
- }, {
821
- frontendBaseUrl?: string | undefined;
822
- allowAbsoluteReturnTo?: boolean | undefined;
823
- allowedReturnToOrigins?: string[] | undefined;
824
- }>>;
825
- }, "strip", z.ZodTypeAny, {
826
- google?: {
827
- clientSecret?: string | undefined;
828
- enabled?: boolean | undefined;
829
- clientId?: string | string[] | undefined;
830
- callbackUrl?: string | undefined;
831
- scopes?: string[] | undefined;
832
- autoLink?: boolean | undefined;
833
- allowSignup?: boolean | undefined;
834
- } | undefined;
835
- apple?: {
836
- enabled?: boolean | undefined;
837
- clientId?: string | string[] | undefined;
838
- callbackUrl?: string | undefined;
839
- scopes?: string[] | undefined;
840
- autoLink?: boolean | undefined;
841
- allowSignup?: boolean | undefined;
842
- teamId?: string | undefined;
843
- keyId?: string | undefined;
844
- privateKeyPem?: string | undefined;
845
- } | undefined;
846
- facebook?: {
847
- clientSecret?: string | undefined;
848
- enabled?: boolean | undefined;
849
- clientId?: string | string[] | undefined;
850
- callbackUrl?: string | undefined;
851
- scopes?: string[] | undefined;
852
- autoLink?: boolean | undefined;
853
- allowSignup?: boolean | undefined;
854
- } | undefined;
855
- redirect?: {
856
- frontendBaseUrl?: string | undefined;
857
- allowAbsoluteReturnTo?: boolean | undefined;
858
- allowedReturnToOrigins?: string[] | undefined;
859
- } | undefined;
860
- }, {
861
- google?: {
862
- clientSecret?: string | undefined;
863
- enabled?: boolean | undefined;
864
- clientId?: string | string[] | undefined;
865
- callbackUrl?: string | undefined;
866
- scopes?: string[] | undefined;
867
- autoLink?: boolean | undefined;
868
- allowSignup?: boolean | undefined;
869
- } | undefined;
870
- apple?: {
871
- enabled?: boolean | undefined;
872
- clientId?: string | string[] | undefined;
873
- callbackUrl?: string | undefined;
874
- scopes?: string[] | undefined;
875
- autoLink?: boolean | undefined;
876
- allowSignup?: boolean | undefined;
877
- teamId?: string | undefined;
878
- keyId?: string | undefined;
879
- privateKeyPem?: string | undefined;
880
- } | undefined;
881
- facebook?: {
882
- clientSecret?: string | undefined;
883
- enabled?: boolean | undefined;
884
- clientId?: string | string[] | undefined;
885
- callbackUrl?: string | undefined;
886
- scopes?: string[] | undefined;
887
- autoLink?: boolean | undefined;
888
- allowSignup?: boolean | undefined;
889
- } | undefined;
890
- redirect?: {
891
- frontendBaseUrl?: string | undefined;
892
- allowAbsoluteReturnTo?: boolean | undefined;
893
- allowedReturnToOrigins?: string[] | undefined;
894
- } | undefined;
895
- }>;
248
+ allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ }, z.core.$strip>>;
250
+ }, z.core.$strip>;
896
251
  export declare const totpConfigSchema: z.ZodObject<{
897
252
  window: z.ZodOptional<z.ZodNumber>;
898
253
  stepSeconds: z.ZodOptional<z.ZodNumber>;
899
254
  digits: z.ZodOptional<z.ZodNumber>;
900
- algorithm: z.ZodOptional<z.ZodEnum<["sha1", "sha256", "sha512"]>>;
901
- }, "strip", z.ZodTypeAny, {
902
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
903
- window?: number | undefined;
904
- stepSeconds?: number | undefined;
905
- digits?: number | undefined;
906
- }, {
907
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
908
- window?: number | undefined;
909
- stepSeconds?: number | undefined;
910
- digits?: number | undefined;
911
- }>;
255
+ algorithm: z.ZodOptional<z.ZodEnum<{
256
+ sha1: "sha1";
257
+ sha256: "sha256";
258
+ sha512: "sha512";
259
+ }>>;
260
+ }, z.core.$strip>;
912
261
  export declare const passkeyConfigSchema: z.ZodObject<{
913
262
  rpName: z.ZodString;
914
263
  rpId: z.ZodString;
915
- origin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
264
+ origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
916
265
  timeout: z.ZodOptional<z.ZodNumber>;
917
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
918
- authenticatorAttachment: z.ZodOptional<z.ZodEnum<["platform", "cross-platform"]>>;
919
- }, "strip", z.ZodTypeAny, {
920
- rpName: string;
921
- rpId: string;
922
- origin?: string | string[] | undefined;
923
- timeout?: number | undefined;
924
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
925
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
926
- }, {
927
- rpName: string;
928
- rpId: string;
929
- origin?: string | string[] | undefined;
930
- timeout?: number | undefined;
931
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
932
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
933
- }>;
266
+ userVerification: z.ZodOptional<z.ZodEnum<{
267
+ required: "required";
268
+ preferred: "preferred";
269
+ discouraged: "discouraged";
270
+ }>>;
271
+ authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
272
+ platform: "platform";
273
+ "cross-platform": "cross-platform";
274
+ }>>;
275
+ }, z.core.$strip>;
934
276
  export declare const backupCodesConfigSchema: z.ZodObject<{
935
277
  enabled: z.ZodOptional<z.ZodBoolean>;
936
278
  codeCount: z.ZodOptional<z.ZodNumber>;
937
279
  codeLength: z.ZodOptional<z.ZodNumber>;
938
- }, "strip", z.ZodTypeAny, {
939
- enabled?: boolean | undefined;
940
- codeLength?: number | undefined;
941
- codeCount?: number | undefined;
942
- }, {
943
- enabled?: boolean | undefined;
944
- codeLength?: number | undefined;
945
- codeCount?: number | undefined;
946
- }>;
280
+ }, z.core.$strip>;
947
281
  export declare const riskLevelConfigSchema: z.ZodObject<{
948
282
  maxScore: z.ZodNumber;
949
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
283
+ action: z.ZodOptional<z.ZodEnum<{
284
+ allow: "allow";
285
+ require_mfa: "require_mfa";
286
+ block_signin: "block_signin";
287
+ }>>;
950
288
  notifyUser: z.ZodOptional<z.ZodBoolean>;
951
- }, "strip", z.ZodTypeAny, {
952
- maxScore: number;
953
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
954
- notifyUser?: boolean | undefined;
955
- }, {
956
- maxScore: number;
957
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
958
- notifyUser?: boolean | undefined;
959
- }>;
289
+ }, z.core.$strip>;
960
290
  export declare const adaptiveMFAConfigSchema: z.ZodObject<{
961
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["new_device", "new_ip", "new_country", "impossible_travel", "suspicious_activity", "recent_password_reset"]>, "many">>;
291
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
292
+ new_device: "new_device";
293
+ new_ip: "new_ip";
294
+ new_country: "new_country";
295
+ impossible_travel: "impossible_travel";
296
+ suspicious_activity: "suspicious_activity";
297
+ recent_password_reset: "recent_password_reset";
298
+ }>>>;
962
299
  riskThreshold: z.ZodOptional<z.ZodNumber>;
963
300
  riskWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
964
301
  riskLevels: z.ZodOptional<z.ZodObject<{
965
302
  low: z.ZodOptional<z.ZodObject<{
966
303
  maxScore: z.ZodNumber;
967
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
304
+ action: z.ZodOptional<z.ZodEnum<{
305
+ allow: "allow";
306
+ require_mfa: "require_mfa";
307
+ block_signin: "block_signin";
308
+ }>>;
968
309
  notifyUser: z.ZodOptional<z.ZodBoolean>;
969
- }, "strip", z.ZodTypeAny, {
970
- maxScore: number;
971
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
972
- notifyUser?: boolean | undefined;
973
- }, {
974
- maxScore: number;
975
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
976
- notifyUser?: boolean | undefined;
977
- }>>;
310
+ }, z.core.$strip>>;
978
311
  medium: z.ZodOptional<z.ZodObject<{
979
312
  maxScore: z.ZodNumber;
980
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
313
+ action: z.ZodOptional<z.ZodEnum<{
314
+ allow: "allow";
315
+ require_mfa: "require_mfa";
316
+ block_signin: "block_signin";
317
+ }>>;
981
318
  notifyUser: z.ZodOptional<z.ZodBoolean>;
982
- }, "strip", z.ZodTypeAny, {
983
- maxScore: number;
984
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
985
- notifyUser?: boolean | undefined;
986
- }, {
987
- maxScore: number;
988
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
989
- notifyUser?: boolean | undefined;
990
- }>>;
319
+ }, z.core.$strip>>;
991
320
  high: z.ZodOptional<z.ZodObject<{
992
321
  maxScore: z.ZodNumber;
993
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
322
+ action: z.ZodOptional<z.ZodEnum<{
323
+ allow: "allow";
324
+ require_mfa: "require_mfa";
325
+ block_signin: "block_signin";
326
+ }>>;
994
327
  notifyUser: z.ZodOptional<z.ZodBoolean>;
995
- }, "strip", z.ZodTypeAny, {
996
- maxScore: number;
997
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
998
- notifyUser?: boolean | undefined;
999
- }, {
1000
- maxScore: number;
1001
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1002
- notifyUser?: boolean | undefined;
1003
- }>>;
1004
- }, "strip", z.ZodTypeAny, {
1005
- low?: {
1006
- maxScore: number;
1007
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1008
- notifyUser?: boolean | undefined;
1009
- } | undefined;
1010
- medium?: {
1011
- maxScore: number;
1012
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1013
- notifyUser?: boolean | undefined;
1014
- } | undefined;
1015
- high?: {
1016
- maxScore: number;
1017
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1018
- notifyUser?: boolean | undefined;
1019
- } | undefined;
1020
- }, {
1021
- low?: {
1022
- maxScore: number;
1023
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1024
- notifyUser?: boolean | undefined;
1025
- } | undefined;
1026
- medium?: {
1027
- maxScore: number;
1028
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1029
- notifyUser?: boolean | undefined;
1030
- } | undefined;
1031
- high?: {
1032
- maxScore: number;
1033
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1034
- notifyUser?: boolean | undefined;
1035
- } | undefined;
1036
- }>>;
328
+ }, z.core.$strip>>;
329
+ }, z.core.$strip>>;
1037
330
  blockedSignIn: z.ZodOptional<z.ZodObject<{
1038
331
  blockDuration: z.ZodOptional<z.ZodNumber>;
1039
332
  message: z.ZodOptional<z.ZodString>;
1040
333
  errorCode: z.ZodOptional<z.ZodString>;
1041
- scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
1042
- }, "strip", z.ZodTypeAny, {
1043
- message?: string | undefined;
1044
- scope?: "user" | "device" | "ip" | undefined;
1045
- blockDuration?: number | undefined;
1046
- errorCode?: string | undefined;
1047
- }, {
1048
- message?: string | undefined;
1049
- scope?: "user" | "device" | "ip" | undefined;
1050
- blockDuration?: number | undefined;
1051
- errorCode?: string | undefined;
1052
- }>>;
334
+ scope: z.ZodOptional<z.ZodEnum<{
335
+ user: "user";
336
+ device: "device";
337
+ ip: "ip";
338
+ }>>;
339
+ }, z.core.$strip>>;
1053
340
  maxTravelSpeed: z.ZodOptional<z.ZodNumber>;
1054
341
  countryChangeThreshold: z.ZodOptional<z.ZodNumber>;
1055
342
  suspiciousActivityWindow: z.ZodOptional<z.ZodNumber>;
1056
- }, "strip", z.ZodTypeAny, {
1057
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1058
- riskThreshold?: number | undefined;
1059
- riskWeights?: Record<string, number> | undefined;
1060
- riskLevels?: {
1061
- low?: {
1062
- maxScore: number;
1063
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1064
- notifyUser?: boolean | undefined;
1065
- } | undefined;
1066
- medium?: {
1067
- maxScore: number;
1068
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1069
- notifyUser?: boolean | undefined;
1070
- } | undefined;
1071
- high?: {
1072
- maxScore: number;
1073
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1074
- notifyUser?: boolean | undefined;
1075
- } | undefined;
1076
- } | undefined;
1077
- blockedSignIn?: {
1078
- message?: string | undefined;
1079
- scope?: "user" | "device" | "ip" | undefined;
1080
- blockDuration?: number | undefined;
1081
- errorCode?: string | undefined;
1082
- } | undefined;
1083
- maxTravelSpeed?: number | undefined;
1084
- countryChangeThreshold?: number | undefined;
1085
- suspiciousActivityWindow?: number | undefined;
1086
- }, {
1087
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1088
- riskThreshold?: number | undefined;
1089
- riskWeights?: Record<string, number> | undefined;
1090
- riskLevels?: {
1091
- low?: {
1092
- maxScore: number;
1093
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1094
- notifyUser?: boolean | undefined;
1095
- } | undefined;
1096
- medium?: {
1097
- maxScore: number;
1098
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1099
- notifyUser?: boolean | undefined;
1100
- } | undefined;
1101
- high?: {
1102
- maxScore: number;
1103
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1104
- notifyUser?: boolean | undefined;
1105
- } | undefined;
1106
- } | undefined;
1107
- blockedSignIn?: {
1108
- message?: string | undefined;
1109
- scope?: "user" | "device" | "ip" | undefined;
1110
- blockDuration?: number | undefined;
1111
- errorCode?: string | undefined;
1112
- } | undefined;
1113
- maxTravelSpeed?: number | undefined;
1114
- countryChangeThreshold?: number | undefined;
1115
- suspiciousActivityWindow?: number | undefined;
1116
- }>;
343
+ }, z.core.$strip>;
1117
344
  export declare const mfaConfigSchema: z.ZodObject<{
1118
345
  enabled: z.ZodOptional<z.ZodBoolean>;
1119
- enforcement: z.ZodOptional<z.ZodEnum<["OPTIONAL", "REQUIRED", "ADAPTIVE"]>>;
346
+ enforcement: z.ZodOptional<z.ZodEnum<{
347
+ OPTIONAL: "OPTIONAL";
348
+ REQUIRED: "REQUIRED";
349
+ ADAPTIVE: "ADAPTIVE";
350
+ }>>;
1120
351
  gracePeriod: z.ZodOptional<z.ZodNumber>;
1121
- allowedMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<["totp", "sms", "email", "passkey"]>, "many">>;
352
+ allowedMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
353
+ totp: "totp";
354
+ sms: "sms";
355
+ email: "email";
356
+ passkey: "passkey";
357
+ }>>>;
1122
358
  requireForSocialLogin: z.ZodOptional<z.ZodBoolean>;
1123
- rememberDevices: z.ZodOptional<z.ZodEnum<["always", "user_opt_in", "never"]>>;
359
+ rememberDevices: z.ZodOptional<z.ZodEnum<{
360
+ always: "always";
361
+ user_opt_in: "user_opt_in";
362
+ never: "never";
363
+ }>>;
1124
364
  rememberDeviceDays: z.ZodOptional<z.ZodNumber>;
1125
365
  bypassMFAForTrustedDevices: z.ZodOptional<z.ZodBoolean>;
1126
366
  issuer: z.ZodOptional<z.ZodString>;
@@ -1128,394 +368,112 @@ export declare const mfaConfigSchema: z.ZodObject<{
1128
368
  window: z.ZodOptional<z.ZodNumber>;
1129
369
  stepSeconds: z.ZodOptional<z.ZodNumber>;
1130
370
  digits: z.ZodOptional<z.ZodNumber>;
1131
- algorithm: z.ZodOptional<z.ZodEnum<["sha1", "sha256", "sha512"]>>;
1132
- }, "strip", z.ZodTypeAny, {
1133
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
1134
- window?: number | undefined;
1135
- stepSeconds?: number | undefined;
1136
- digits?: number | undefined;
1137
- }, {
1138
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
1139
- window?: number | undefined;
1140
- stepSeconds?: number | undefined;
1141
- digits?: number | undefined;
1142
- }>>;
371
+ algorithm: z.ZodOptional<z.ZodEnum<{
372
+ sha1: "sha1";
373
+ sha256: "sha256";
374
+ sha512: "sha512";
375
+ }>>;
376
+ }, z.core.$strip>>;
1143
377
  passkey: z.ZodOptional<z.ZodObject<{
1144
378
  rpName: z.ZodString;
1145
379
  rpId: z.ZodString;
1146
- origin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
380
+ origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1147
381
  timeout: z.ZodOptional<z.ZodNumber>;
1148
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
1149
- authenticatorAttachment: z.ZodOptional<z.ZodEnum<["platform", "cross-platform"]>>;
1150
- }, "strip", z.ZodTypeAny, {
1151
- rpName: string;
1152
- rpId: string;
1153
- origin?: string | string[] | undefined;
1154
- timeout?: number | undefined;
1155
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
1156
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
1157
- }, {
1158
- rpName: string;
1159
- rpId: string;
1160
- origin?: string | string[] | undefined;
1161
- timeout?: number | undefined;
1162
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
1163
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
1164
- }>>;
382
+ userVerification: z.ZodOptional<z.ZodEnum<{
383
+ required: "required";
384
+ preferred: "preferred";
385
+ discouraged: "discouraged";
386
+ }>>;
387
+ authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
388
+ platform: "platform";
389
+ "cross-platform": "cross-platform";
390
+ }>>;
391
+ }, z.core.$strip>>;
1165
392
  backup: z.ZodOptional<z.ZodObject<{
1166
393
  enabled: z.ZodOptional<z.ZodBoolean>;
1167
394
  codeCount: z.ZodOptional<z.ZodNumber>;
1168
395
  codeLength: z.ZodOptional<z.ZodNumber>;
1169
- }, "strip", z.ZodTypeAny, {
1170
- enabled?: boolean | undefined;
1171
- codeLength?: number | undefined;
1172
- codeCount?: number | undefined;
1173
- }, {
1174
- enabled?: boolean | undefined;
1175
- codeLength?: number | undefined;
1176
- codeCount?: number | undefined;
1177
- }>>;
396
+ }, z.core.$strip>>;
1178
397
  adaptive: z.ZodOptional<z.ZodObject<{
1179
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["new_device", "new_ip", "new_country", "impossible_travel", "suspicious_activity", "recent_password_reset"]>, "many">>;
398
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
399
+ new_device: "new_device";
400
+ new_ip: "new_ip";
401
+ new_country: "new_country";
402
+ impossible_travel: "impossible_travel";
403
+ suspicious_activity: "suspicious_activity";
404
+ recent_password_reset: "recent_password_reset";
405
+ }>>>;
1180
406
  riskThreshold: z.ZodOptional<z.ZodNumber>;
1181
407
  riskWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1182
408
  riskLevels: z.ZodOptional<z.ZodObject<{
1183
409
  low: z.ZodOptional<z.ZodObject<{
1184
410
  maxScore: z.ZodNumber;
1185
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
411
+ action: z.ZodOptional<z.ZodEnum<{
412
+ allow: "allow";
413
+ require_mfa: "require_mfa";
414
+ block_signin: "block_signin";
415
+ }>>;
1186
416
  notifyUser: z.ZodOptional<z.ZodBoolean>;
1187
- }, "strip", z.ZodTypeAny, {
1188
- maxScore: number;
1189
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1190
- notifyUser?: boolean | undefined;
1191
- }, {
1192
- maxScore: number;
1193
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1194
- notifyUser?: boolean | undefined;
1195
- }>>;
417
+ }, z.core.$strip>>;
1196
418
  medium: z.ZodOptional<z.ZodObject<{
1197
419
  maxScore: z.ZodNumber;
1198
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
420
+ action: z.ZodOptional<z.ZodEnum<{
421
+ allow: "allow";
422
+ require_mfa: "require_mfa";
423
+ block_signin: "block_signin";
424
+ }>>;
1199
425
  notifyUser: z.ZodOptional<z.ZodBoolean>;
1200
- }, "strip", z.ZodTypeAny, {
1201
- maxScore: number;
1202
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1203
- notifyUser?: boolean | undefined;
1204
- }, {
1205
- maxScore: number;
1206
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1207
- notifyUser?: boolean | undefined;
1208
- }>>;
426
+ }, z.core.$strip>>;
1209
427
  high: z.ZodOptional<z.ZodObject<{
1210
428
  maxScore: z.ZodNumber;
1211
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
429
+ action: z.ZodOptional<z.ZodEnum<{
430
+ allow: "allow";
431
+ require_mfa: "require_mfa";
432
+ block_signin: "block_signin";
433
+ }>>;
1212
434
  notifyUser: z.ZodOptional<z.ZodBoolean>;
1213
- }, "strip", z.ZodTypeAny, {
1214
- maxScore: number;
1215
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1216
- notifyUser?: boolean | undefined;
1217
- }, {
1218
- maxScore: number;
1219
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1220
- notifyUser?: boolean | undefined;
1221
- }>>;
1222
- }, "strip", z.ZodTypeAny, {
1223
- low?: {
1224
- maxScore: number;
1225
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1226
- notifyUser?: boolean | undefined;
1227
- } | undefined;
1228
- medium?: {
1229
- maxScore: number;
1230
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1231
- notifyUser?: boolean | undefined;
1232
- } | undefined;
1233
- high?: {
1234
- maxScore: number;
1235
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1236
- notifyUser?: boolean | undefined;
1237
- } | undefined;
1238
- }, {
1239
- low?: {
1240
- maxScore: number;
1241
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1242
- notifyUser?: boolean | undefined;
1243
- } | undefined;
1244
- medium?: {
1245
- maxScore: number;
1246
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1247
- notifyUser?: boolean | undefined;
1248
- } | undefined;
1249
- high?: {
1250
- maxScore: number;
1251
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1252
- notifyUser?: boolean | undefined;
1253
- } | undefined;
1254
- }>>;
435
+ }, z.core.$strip>>;
436
+ }, z.core.$strip>>;
1255
437
  blockedSignIn: z.ZodOptional<z.ZodObject<{
1256
438
  blockDuration: z.ZodOptional<z.ZodNumber>;
1257
439
  message: z.ZodOptional<z.ZodString>;
1258
440
  errorCode: z.ZodOptional<z.ZodString>;
1259
- scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
1260
- }, "strip", z.ZodTypeAny, {
1261
- message?: string | undefined;
1262
- scope?: "user" | "device" | "ip" | undefined;
1263
- blockDuration?: number | undefined;
1264
- errorCode?: string | undefined;
1265
- }, {
1266
- message?: string | undefined;
1267
- scope?: "user" | "device" | "ip" | undefined;
1268
- blockDuration?: number | undefined;
1269
- errorCode?: string | undefined;
1270
- }>>;
441
+ scope: z.ZodOptional<z.ZodEnum<{
442
+ user: "user";
443
+ device: "device";
444
+ ip: "ip";
445
+ }>>;
446
+ }, z.core.$strip>>;
1271
447
  maxTravelSpeed: z.ZodOptional<z.ZodNumber>;
1272
448
  countryChangeThreshold: z.ZodOptional<z.ZodNumber>;
1273
449
  suspiciousActivityWindow: z.ZodOptional<z.ZodNumber>;
1274
- }, "strip", z.ZodTypeAny, {
1275
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1276
- riskThreshold?: number | undefined;
1277
- riskWeights?: Record<string, number> | undefined;
1278
- riskLevels?: {
1279
- low?: {
1280
- maxScore: number;
1281
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1282
- notifyUser?: boolean | undefined;
1283
- } | undefined;
1284
- medium?: {
1285
- maxScore: number;
1286
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1287
- notifyUser?: boolean | undefined;
1288
- } | undefined;
1289
- high?: {
1290
- maxScore: number;
1291
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1292
- notifyUser?: boolean | undefined;
1293
- } | undefined;
1294
- } | undefined;
1295
- blockedSignIn?: {
1296
- message?: string | undefined;
1297
- scope?: "user" | "device" | "ip" | undefined;
1298
- blockDuration?: number | undefined;
1299
- errorCode?: string | undefined;
1300
- } | undefined;
1301
- maxTravelSpeed?: number | undefined;
1302
- countryChangeThreshold?: number | undefined;
1303
- suspiciousActivityWindow?: number | undefined;
1304
- }, {
1305
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1306
- riskThreshold?: number | undefined;
1307
- riskWeights?: Record<string, number> | undefined;
1308
- riskLevels?: {
1309
- low?: {
1310
- maxScore: number;
1311
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1312
- notifyUser?: boolean | undefined;
1313
- } | undefined;
1314
- medium?: {
1315
- maxScore: number;
1316
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1317
- notifyUser?: boolean | undefined;
1318
- } | undefined;
1319
- high?: {
1320
- maxScore: number;
1321
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1322
- notifyUser?: boolean | undefined;
1323
- } | undefined;
1324
- } | undefined;
1325
- blockedSignIn?: {
1326
- message?: string | undefined;
1327
- scope?: "user" | "device" | "ip" | undefined;
1328
- blockDuration?: number | undefined;
1329
- errorCode?: string | undefined;
1330
- } | undefined;
1331
- maxTravelSpeed?: number | undefined;
1332
- countryChangeThreshold?: number | undefined;
1333
- suspiciousActivityWindow?: number | undefined;
1334
- }>>;
1335
- }, "strip", z.ZodTypeAny, {
1336
- totp?: {
1337
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
1338
- window?: number | undefined;
1339
- stepSeconds?: number | undefined;
1340
- digits?: number | undefined;
1341
- } | undefined;
1342
- passkey?: {
1343
- rpName: string;
1344
- rpId: string;
1345
- origin?: string | string[] | undefined;
1346
- timeout?: number | undefined;
1347
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
1348
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
1349
- } | undefined;
1350
- backup?: {
1351
- enabled?: boolean | undefined;
1352
- codeLength?: number | undefined;
1353
- codeCount?: number | undefined;
1354
- } | undefined;
1355
- enabled?: boolean | undefined;
1356
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
1357
- requireForSocialLogin?: boolean | undefined;
1358
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
1359
- bypassMFAForTrustedDevices?: boolean | undefined;
1360
- rememberDeviceDays?: number | undefined;
1361
- issuer?: string | undefined;
1362
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
1363
- gracePeriod?: number | undefined;
1364
- adaptive?: {
1365
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1366
- riskThreshold?: number | undefined;
1367
- riskWeights?: Record<string, number> | undefined;
1368
- riskLevels?: {
1369
- low?: {
1370
- maxScore: number;
1371
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1372
- notifyUser?: boolean | undefined;
1373
- } | undefined;
1374
- medium?: {
1375
- maxScore: number;
1376
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1377
- notifyUser?: boolean | undefined;
1378
- } | undefined;
1379
- high?: {
1380
- maxScore: number;
1381
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1382
- notifyUser?: boolean | undefined;
1383
- } | undefined;
1384
- } | undefined;
1385
- blockedSignIn?: {
1386
- message?: string | undefined;
1387
- scope?: "user" | "device" | "ip" | undefined;
1388
- blockDuration?: number | undefined;
1389
- errorCode?: string | undefined;
1390
- } | undefined;
1391
- maxTravelSpeed?: number | undefined;
1392
- countryChangeThreshold?: number | undefined;
1393
- suspiciousActivityWindow?: number | undefined;
1394
- } | undefined;
1395
- }, {
1396
- totp?: {
1397
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
1398
- window?: number | undefined;
1399
- stepSeconds?: number | undefined;
1400
- digits?: number | undefined;
1401
- } | undefined;
1402
- passkey?: {
1403
- rpName: string;
1404
- rpId: string;
1405
- origin?: string | string[] | undefined;
1406
- timeout?: number | undefined;
1407
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
1408
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
1409
- } | undefined;
1410
- backup?: {
1411
- enabled?: boolean | undefined;
1412
- codeLength?: number | undefined;
1413
- codeCount?: number | undefined;
1414
- } | undefined;
1415
- enabled?: boolean | undefined;
1416
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
1417
- requireForSocialLogin?: boolean | undefined;
1418
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
1419
- bypassMFAForTrustedDevices?: boolean | undefined;
1420
- rememberDeviceDays?: number | undefined;
1421
- issuer?: string | undefined;
1422
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
1423
- gracePeriod?: number | undefined;
1424
- adaptive?: {
1425
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
1426
- riskThreshold?: number | undefined;
1427
- riskWeights?: Record<string, number> | undefined;
1428
- riskLevels?: {
1429
- low?: {
1430
- maxScore: number;
1431
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1432
- notifyUser?: boolean | undefined;
1433
- } | undefined;
1434
- medium?: {
1435
- maxScore: number;
1436
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1437
- notifyUser?: boolean | undefined;
1438
- } | undefined;
1439
- high?: {
1440
- maxScore: number;
1441
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
1442
- notifyUser?: boolean | undefined;
1443
- } | undefined;
1444
- } | undefined;
1445
- blockedSignIn?: {
1446
- message?: string | undefined;
1447
- scope?: "user" | "device" | "ip" | undefined;
1448
- blockDuration?: number | undefined;
1449
- errorCode?: string | undefined;
1450
- } | undefined;
1451
- maxTravelSpeed?: number | undefined;
1452
- countryChangeThreshold?: number | undefined;
1453
- suspiciousActivityWindow?: number | undefined;
1454
- } | undefined;
1455
- }>;
450
+ }, z.core.$strip>>;
451
+ }, z.core.$strip>;
1456
452
  export declare const tokenDeliveryConfigSchema: z.ZodObject<{
1457
- method: z.ZodOptional<z.ZodEnum<["json", "cookies", "hybrid"]>>;
453
+ method: z.ZodOptional<z.ZodEnum<{
454
+ json: "json";
455
+ cookies: "cookies";
456
+ hybrid: "hybrid";
457
+ }>>;
1458
458
  cookieNamePrefix: z.ZodOptional<z.ZodString>;
1459
459
  cookieOptions: z.ZodOptional<z.ZodObject<{
1460
460
  secure: z.ZodOptional<z.ZodBoolean>;
1461
- sameSite: z.ZodOptional<z.ZodEnum<["strict", "lax", "none"]>>;
461
+ sameSite: z.ZodOptional<z.ZodEnum<{
462
+ strict: "strict";
463
+ lax: "lax";
464
+ none: "none";
465
+ }>>;
1462
466
  path: z.ZodOptional<z.ZodString>;
1463
467
  domain: z.ZodOptional<z.ZodString>;
1464
- }, "strip", z.ZodTypeAny, {
1465
- secure?: boolean | undefined;
1466
- sameSite?: "strict" | "lax" | "none" | undefined;
1467
- domain?: string | undefined;
1468
- path?: string | undefined;
1469
- }, {
1470
- secure?: boolean | undefined;
1471
- sameSite?: "strict" | "lax" | "none" | undefined;
1472
- domain?: string | undefined;
1473
- path?: string | undefined;
1474
- }>>;
468
+ }, z.core.$strip>>;
1475
469
  hybridPolicy: z.ZodOptional<z.ZodObject<{
1476
- webOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1477
- nativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1478
- }, "strip", z.ZodTypeAny, {
1479
- webOrigins?: string[] | undefined;
1480
- nativeOrigins?: string[] | undefined;
1481
- }, {
1482
- webOrigins?: string[] | undefined;
1483
- nativeOrigins?: string[] | undefined;
1484
- }>>;
1485
- }, "strip", z.ZodTypeAny, {
1486
- method?: "json" | "cookies" | "hybrid" | undefined;
1487
- cookieOptions?: {
1488
- secure?: boolean | undefined;
1489
- sameSite?: "strict" | "lax" | "none" | undefined;
1490
- domain?: string | undefined;
1491
- path?: string | undefined;
1492
- } | undefined;
1493
- cookieNamePrefix?: string | undefined;
1494
- hybridPolicy?: {
1495
- webOrigins?: string[] | undefined;
1496
- nativeOrigins?: string[] | undefined;
1497
- } | undefined;
1498
- }, {
1499
- method?: "json" | "cookies" | "hybrid" | undefined;
1500
- cookieOptions?: {
1501
- secure?: boolean | undefined;
1502
- sameSite?: "strict" | "lax" | "none" | undefined;
1503
- domain?: string | undefined;
1504
- path?: string | undefined;
1505
- } | undefined;
1506
- cookieNamePrefix?: string | undefined;
1507
- hybridPolicy?: {
1508
- webOrigins?: string[] | undefined;
1509
- nativeOrigins?: string[] | undefined;
1510
- } | undefined;
1511
- }>;
470
+ webOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
+ nativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
+ }, z.core.$strip>>;
473
+ }, z.core.$strip>;
1512
474
  export declare const challengeConfigSchema: z.ZodObject<{
1513
475
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1514
- }, "strip", z.ZodTypeAny, {
1515
- maxAttempts?: number | undefined;
1516
- }, {
1517
- maxAttempts?: number | undefined;
1518
- }>;
476
+ }, z.core.$strip>;
1519
477
  export declare const geoLocationConfigSchema: z.ZodObject<{
1520
478
  maxMind: z.ZodOptional<z.ZodObject<{
1521
479
  dbPath: z.ZodOptional<z.ZodString>;
@@ -1523,41 +481,9 @@ export declare const geoLocationConfigSchema: z.ZodObject<{
1523
481
  licenseKey: z.ZodOptional<z.ZodString>;
1524
482
  accountId: z.ZodOptional<z.ZodNumber>;
1525
483
  autoDownloadOnStartup: z.ZodOptional<z.ZodBoolean>;
1526
- editions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1527
- }, "strip", z.ZodTypeAny, {
1528
- dbPath?: string | undefined;
1529
- skipDownloads?: boolean | undefined;
1530
- licenseKey?: string | undefined;
1531
- accountId?: number | undefined;
1532
- autoDownloadOnStartup?: boolean | undefined;
1533
- editions?: string[] | undefined;
1534
- }, {
1535
- dbPath?: string | undefined;
1536
- skipDownloads?: boolean | undefined;
1537
- licenseKey?: string | undefined;
1538
- accountId?: number | undefined;
1539
- autoDownloadOnStartup?: boolean | undefined;
1540
- editions?: string[] | undefined;
1541
- }>>;
1542
- }, "strip", z.ZodTypeAny, {
1543
- maxMind?: {
1544
- dbPath?: string | undefined;
1545
- skipDownloads?: boolean | undefined;
1546
- licenseKey?: string | undefined;
1547
- accountId?: number | undefined;
1548
- autoDownloadOnStartup?: boolean | undefined;
1549
- editions?: string[] | undefined;
1550
- } | undefined;
1551
- }, {
1552
- maxMind?: {
1553
- dbPath?: string | undefined;
1554
- skipDownloads?: boolean | undefined;
1555
- licenseKey?: string | undefined;
1556
- accountId?: number | undefined;
1557
- autoDownloadOnStartup?: boolean | undefined;
1558
- editions?: string[] | undefined;
1559
- } | undefined;
1560
- }>;
484
+ editions: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
+ }, z.core.$strip>>;
486
+ }, z.core.$strip>;
1561
487
  /**
1562
488
  * Email notifications configuration schema
1563
489
  *
@@ -1579,66 +505,8 @@ export declare const emailNotificationsConfigSchema: z.ZodOptional<z.ZodObject<{
1579
505
  emailChangedNew: z.ZodOptional<z.ZodBoolean>;
1580
506
  accountLockout: z.ZodOptional<z.ZodBoolean>;
1581
507
  sessionsRevoked: z.ZodOptional<z.ZodBoolean>;
1582
- }, "strip", z.ZodTypeAny, {
1583
- welcome?: boolean | undefined;
1584
- accountLockout?: boolean | undefined;
1585
- passwordChanged?: boolean | undefined;
1586
- mfaDeviceRemoved?: boolean | undefined;
1587
- mfaMethodAdded?: boolean | undefined;
1588
- accountDisabled?: boolean | undefined;
1589
- accountEnabled?: boolean | undefined;
1590
- emailChangedOld?: boolean | undefined;
1591
- emailChangedNew?: boolean | undefined;
1592
- sessionsRevoked?: boolean | undefined;
1593
- mfaFirstEnabled?: boolean | undefined;
1594
- adaptiveMfaRiskDetected?: boolean | undefined;
1595
- }, {
1596
- welcome?: boolean | undefined;
1597
- accountLockout?: boolean | undefined;
1598
- passwordChanged?: boolean | undefined;
1599
- mfaDeviceRemoved?: boolean | undefined;
1600
- mfaMethodAdded?: boolean | undefined;
1601
- accountDisabled?: boolean | undefined;
1602
- accountEnabled?: boolean | undefined;
1603
- emailChangedOld?: boolean | undefined;
1604
- emailChangedNew?: boolean | undefined;
1605
- sessionsRevoked?: boolean | undefined;
1606
- mfaFirstEnabled?: boolean | undefined;
1607
- adaptiveMfaRiskDetected?: boolean | undefined;
1608
- }>>;
1609
- }, "strip", z.ZodTypeAny, {
1610
- enabled?: boolean | undefined;
1611
- suppress?: {
1612
- welcome?: boolean | undefined;
1613
- accountLockout?: boolean | undefined;
1614
- passwordChanged?: boolean | undefined;
1615
- mfaDeviceRemoved?: boolean | undefined;
1616
- mfaMethodAdded?: boolean | undefined;
1617
- accountDisabled?: boolean | undefined;
1618
- accountEnabled?: boolean | undefined;
1619
- emailChangedOld?: boolean | undefined;
1620
- emailChangedNew?: boolean | undefined;
1621
- sessionsRevoked?: boolean | undefined;
1622
- mfaFirstEnabled?: boolean | undefined;
1623
- adaptiveMfaRiskDetected?: boolean | undefined;
1624
- } | undefined;
1625
- }, {
1626
- enabled?: boolean | undefined;
1627
- suppress?: {
1628
- welcome?: boolean | undefined;
1629
- accountLockout?: boolean | undefined;
1630
- passwordChanged?: boolean | undefined;
1631
- mfaDeviceRemoved?: boolean | undefined;
1632
- mfaMethodAdded?: boolean | undefined;
1633
- accountDisabled?: boolean | undefined;
1634
- accountEnabled?: boolean | undefined;
1635
- emailChangedOld?: boolean | undefined;
1636
- emailChangedNew?: boolean | undefined;
1637
- sessionsRevoked?: boolean | undefined;
1638
- mfaFirstEnabled?: boolean | undefined;
1639
- adaptiveMfaRiskDetected?: boolean | undefined;
1640
- } | undefined;
1641
- }>>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>>;
1642
510
  /**
1643
511
  * Root authentication configuration schema
1644
512
  *
@@ -1649,112 +517,40 @@ export declare const emailNotificationsConfigSchema: z.ZodOptional<z.ZodObject<{
1649
517
  * - JWT algorithm requires appropriate keys
1650
518
  * - MaxMind geolocation requires credentials for downloads
1651
519
  */
1652
- export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
520
+ export declare const authConfigSchema: z.ZodObject<{
1653
521
  tablePrefix: z.ZodOptional<z.ZodString>;
1654
- jwt: z.ZodEffects<z.ZodObject<{
1655
- algorithm: z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512"]>>;
522
+ jwt: z.ZodObject<{
523
+ algorithm: z.ZodOptional<z.ZodEnum<{
524
+ HS256: "HS256";
525
+ HS384: "HS384";
526
+ HS512: "HS512";
527
+ RS256: "RS256";
528
+ RS384: "RS384";
529
+ RS512: "RS512";
530
+ }>>;
1656
531
  accessToken: z.ZodObject<{
1657
532
  secret: z.ZodOptional<z.ZodString>;
1658
533
  privateKey: z.ZodOptional<z.ZodString>;
1659
534
  publicKey: z.ZodOptional<z.ZodString>;
1660
- expiresIn: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1661
- }, "strip", z.ZodTypeAny, {
1662
- expiresIn: string | number;
1663
- secret?: string | undefined;
1664
- publicKey?: string | undefined;
1665
- privateKey?: string | undefined;
1666
- }, {
1667
- expiresIn: string | number;
1668
- secret?: string | undefined;
1669
- publicKey?: string | undefined;
1670
- privateKey?: string | undefined;
1671
- }>;
535
+ expiresIn: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
536
+ }, z.core.$strip>;
1672
537
  refreshToken: z.ZodObject<{
1673
538
  secret: z.ZodString;
1674
- expiresIn: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
539
+ expiresIn: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1675
540
  rotation: z.ZodOptional<z.ZodBoolean>;
1676
541
  reuseDetection: z.ZodOptional<z.ZodBoolean>;
1677
- }, "strip", z.ZodTypeAny, {
1678
- expiresIn: string | number;
1679
- secret: string;
1680
- rotation?: boolean | undefined;
1681
- reuseDetection?: boolean | undefined;
1682
- }, {
1683
- expiresIn: string | number;
1684
- secret: string;
1685
- rotation?: boolean | undefined;
1686
- reuseDetection?: boolean | undefined;
1687
- }>;
542
+ }, z.core.$strip>;
1688
543
  issuer: z.ZodOptional<z.ZodString>;
1689
- audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1690
- }, "strip", z.ZodTypeAny, {
1691
- accessToken: {
1692
- expiresIn: string | number;
1693
- secret?: string | undefined;
1694
- publicKey?: string | undefined;
1695
- privateKey?: string | undefined;
1696
- };
1697
- refreshToken: {
1698
- expiresIn: string | number;
1699
- secret: string;
1700
- rotation?: boolean | undefined;
1701
- reuseDetection?: boolean | undefined;
1702
- };
1703
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
1704
- issuer?: string | undefined;
1705
- audience?: string | string[] | undefined;
1706
- }, {
1707
- accessToken: {
1708
- expiresIn: string | number;
1709
- secret?: string | undefined;
1710
- publicKey?: string | undefined;
1711
- privateKey?: string | undefined;
1712
- };
1713
- refreshToken: {
1714
- expiresIn: string | number;
1715
- secret: string;
1716
- rotation?: boolean | undefined;
1717
- reuseDetection?: boolean | undefined;
1718
- };
1719
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
1720
- issuer?: string | undefined;
1721
- audience?: string | string[] | undefined;
1722
- }>, {
1723
- accessToken: {
1724
- expiresIn: string | number;
1725
- secret?: string | undefined;
1726
- publicKey?: string | undefined;
1727
- privateKey?: string | undefined;
1728
- };
1729
- refreshToken: {
1730
- expiresIn: string | number;
1731
- secret: string;
1732
- rotation?: boolean | undefined;
1733
- reuseDetection?: boolean | undefined;
1734
- };
1735
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
1736
- issuer?: string | undefined;
1737
- audience?: string | string[] | undefined;
1738
- }, {
1739
- accessToken: {
1740
- expiresIn: string | number;
1741
- secret?: string | undefined;
1742
- publicKey?: string | undefined;
1743
- privateKey?: string | undefined;
1744
- };
1745
- refreshToken: {
1746
- expiresIn: string | number;
1747
- secret: string;
1748
- rotation?: boolean | undefined;
1749
- reuseDetection?: boolean | undefined;
1750
- };
1751
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
1752
- issuer?: string | undefined;
1753
- audience?: string | string[] | undefined;
1754
- }>;
544
+ audience: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
545
+ }, z.core.$strip>;
1755
546
  signup: z.ZodOptional<z.ZodObject<{
1756
547
  enabled: z.ZodOptional<z.ZodBoolean>;
1757
- verificationMethod: z.ZodOptional<z.ZodEnum<["none", "email", "phone", "both"]>>;
548
+ verificationMethod: z.ZodOptional<z.ZodEnum<{
549
+ none: "none";
550
+ email: "email";
551
+ phone: "phone";
552
+ both: "both";
553
+ }>>;
1758
554
  allowDuplicatePhones: z.ZodOptional<z.ZodBoolean>;
1759
555
  emailVerification: z.ZodOptional<z.ZodObject<{
1760
556
  expiresIn: z.ZodOptional<z.ZodNumber>;
@@ -1766,27 +562,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
1766
562
  maxAttemptsPerIP: z.ZodOptional<z.ZodNumber>;
1767
563
  attemptWindow: z.ZodOptional<z.ZodNumber>;
1768
564
  baseUrl: z.ZodOptional<z.ZodString>;
1769
- }, "strip", z.ZodTypeAny, {
1770
- expiresIn?: number | undefined;
1771
- baseUrl?: string | undefined;
1772
- maxAttempts?: number | undefined;
1773
- resendDelay?: number | undefined;
1774
- rateLimitMax?: number | undefined;
1775
- rateLimitWindow?: number | undefined;
1776
- maxAttemptsPerUser?: number | undefined;
1777
- maxAttemptsPerIP?: number | undefined;
1778
- attemptWindow?: number | undefined;
1779
- }, {
1780
- expiresIn?: number | undefined;
1781
- baseUrl?: string | undefined;
1782
- maxAttempts?: number | undefined;
1783
- resendDelay?: number | undefined;
1784
- rateLimitMax?: number | undefined;
1785
- rateLimitWindow?: number | undefined;
1786
- maxAttemptsPerUser?: number | undefined;
1787
- maxAttemptsPerIP?: number | undefined;
1788
- attemptWindow?: number | undefined;
1789
- }>>;
565
+ }, z.core.$strip>>;
1790
566
  phoneVerification: z.ZodOptional<z.ZodObject<{
1791
567
  codeLength: z.ZodOptional<z.ZodNumber>;
1792
568
  expiresIn: z.ZodOptional<z.ZodNumber>;
@@ -1797,92 +573,17 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
1797
573
  maxAttemptsPerUser: z.ZodOptional<z.ZodNumber>;
1798
574
  maxAttemptsPerIP: z.ZodOptional<z.ZodNumber>;
1799
575
  attemptWindow: z.ZodOptional<z.ZodNumber>;
1800
- baseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1801
- }, "strip", z.ZodTypeAny, {
1802
- expiresIn?: number | undefined;
1803
- baseUrl?: string | undefined;
1804
- maxAttempts?: number | undefined;
1805
- resendDelay?: number | undefined;
1806
- rateLimitMax?: number | undefined;
1807
- rateLimitWindow?: number | undefined;
1808
- maxAttemptsPerUser?: number | undefined;
1809
- maxAttemptsPerIP?: number | undefined;
1810
- attemptWindow?: number | undefined;
1811
- codeLength?: number | undefined;
1812
- }, {
1813
- expiresIn?: number | undefined;
1814
- baseUrl?: string | undefined;
1815
- maxAttempts?: number | undefined;
1816
- resendDelay?: number | undefined;
1817
- rateLimitMax?: number | undefined;
1818
- rateLimitWindow?: number | undefined;
1819
- maxAttemptsPerUser?: number | undefined;
1820
- maxAttemptsPerIP?: number | undefined;
1821
- attemptWindow?: number | undefined;
1822
- codeLength?: number | undefined;
1823
- }>>;
1824
- }, "strip", z.ZodTypeAny, {
1825
- enabled?: boolean | undefined;
1826
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
1827
- allowDuplicatePhones?: boolean | undefined;
1828
- emailVerification?: {
1829
- expiresIn?: number | undefined;
1830
- baseUrl?: string | undefined;
1831
- maxAttempts?: number | undefined;
1832
- resendDelay?: number | undefined;
1833
- rateLimitMax?: number | undefined;
1834
- rateLimitWindow?: number | undefined;
1835
- maxAttemptsPerUser?: number | undefined;
1836
- maxAttemptsPerIP?: number | undefined;
1837
- attemptWindow?: number | undefined;
1838
- } | undefined;
1839
- phoneVerification?: {
1840
- expiresIn?: number | undefined;
1841
- baseUrl?: string | undefined;
1842
- maxAttempts?: number | undefined;
1843
- resendDelay?: number | undefined;
1844
- rateLimitMax?: number | undefined;
1845
- rateLimitWindow?: number | undefined;
1846
- maxAttemptsPerUser?: number | undefined;
1847
- maxAttemptsPerIP?: number | undefined;
1848
- attemptWindow?: number | undefined;
1849
- codeLength?: number | undefined;
1850
- } | undefined;
1851
- }, {
1852
- enabled?: boolean | undefined;
1853
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
1854
- allowDuplicatePhones?: boolean | undefined;
1855
- emailVerification?: {
1856
- expiresIn?: number | undefined;
1857
- baseUrl?: string | undefined;
1858
- maxAttempts?: number | undefined;
1859
- resendDelay?: number | undefined;
1860
- rateLimitMax?: number | undefined;
1861
- rateLimitWindow?: number | undefined;
1862
- maxAttemptsPerUser?: number | undefined;
1863
- maxAttemptsPerIP?: number | undefined;
1864
- attemptWindow?: number | undefined;
1865
- } | undefined;
1866
- phoneVerification?: {
1867
- expiresIn?: number | undefined;
1868
- baseUrl?: string | undefined;
1869
- maxAttempts?: number | undefined;
1870
- resendDelay?: number | undefined;
1871
- rateLimitMax?: number | undefined;
1872
- rateLimitWindow?: number | undefined;
1873
- maxAttemptsPerUser?: number | undefined;
1874
- maxAttemptsPerIP?: number | undefined;
1875
- attemptWindow?: number | undefined;
1876
- codeLength?: number | undefined;
1877
- } | undefined;
1878
- }>>;
576
+ baseUrl: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strip>>;
578
+ }, z.core.$strip>>;
1879
579
  login: z.ZodOptional<z.ZodObject<{
1880
- identifierType: z.ZodOptional<z.ZodEnum<["email", "username", "phone", "email_or_username"]>>;
1881
- }, "strip", z.ZodTypeAny, {
1882
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
1883
- }, {
1884
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
1885
- }>>;
580
+ identifierType: z.ZodOptional<z.ZodEnum<{
581
+ email: "email";
582
+ phone: "phone";
583
+ username: "username";
584
+ email_or_username: "email_or_username";
585
+ }>>;
586
+ }, z.core.$strip>>;
1886
587
  password: z.ZodOptional<z.ZodObject<{
1887
588
  minLength: z.ZodOptional<z.ZodNumber>;
1888
589
  maxLength: z.ZodOptional<z.ZodNumber>;
@@ -1901,172 +602,42 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
1901
602
  rateLimitMax: z.ZodOptional<z.ZodNumber>;
1902
603
  rateLimitWindow: z.ZodOptional<z.ZodNumber>;
1903
604
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1904
- }, "strip", z.ZodTypeAny, {
1905
- expiresIn?: number | undefined;
1906
- maxAttempts?: number | undefined;
1907
- rateLimitMax?: number | undefined;
1908
- rateLimitWindow?: number | undefined;
1909
- codeLength?: number | undefined;
1910
- }, {
1911
- expiresIn?: number | undefined;
1912
- maxAttempts?: number | undefined;
1913
- rateLimitMax?: number | undefined;
1914
- rateLimitWindow?: number | undefined;
1915
- codeLength?: number | undefined;
1916
- }>>;
1917
- }, "strip", z.ZodTypeAny, {
1918
- passwordReset?: {
1919
- expiresIn?: number | undefined;
1920
- maxAttempts?: number | undefined;
1921
- rateLimitMax?: number | undefined;
1922
- rateLimitWindow?: number | undefined;
1923
- codeLength?: number | undefined;
1924
- } | undefined;
1925
- minLength?: number | undefined;
1926
- maxLength?: number | undefined;
1927
- requireUppercase?: boolean | undefined;
1928
- requireLowercase?: boolean | undefined;
1929
- requireNumbers?: boolean | undefined;
1930
- requireSpecialChars?: boolean | undefined;
1931
- specialChars?: string | undefined;
1932
- preventCommon?: boolean | undefined;
1933
- preventUserInfo?: boolean | undefined;
1934
- historyCount?: number | undefined;
1935
- expiryDays?: number | undefined;
1936
- }, {
1937
- passwordReset?: {
1938
- expiresIn?: number | undefined;
1939
- maxAttempts?: number | undefined;
1940
- rateLimitMax?: number | undefined;
1941
- rateLimitWindow?: number | undefined;
1942
- codeLength?: number | undefined;
1943
- } | undefined;
1944
- minLength?: number | undefined;
1945
- maxLength?: number | undefined;
1946
- requireUppercase?: boolean | undefined;
1947
- requireLowercase?: boolean | undefined;
1948
- requireNumbers?: boolean | undefined;
1949
- requireSpecialChars?: boolean | undefined;
1950
- specialChars?: string | undefined;
1951
- preventCommon?: boolean | undefined;
1952
- preventUserInfo?: boolean | undefined;
1953
- historyCount?: number | undefined;
1954
- expiryDays?: number | undefined;
1955
- }>>;
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>>;
1956
607
  lockout: z.ZodOptional<z.ZodObject<{
1957
608
  enabled: z.ZodOptional<z.ZodBoolean>;
1958
609
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1959
610
  attemptWindow: z.ZodOptional<z.ZodNumber>;
1960
611
  duration: z.ZodOptional<z.ZodNumber>;
1961
612
  resetOnSuccess: z.ZodOptional<z.ZodBoolean>;
1962
- }, "strip", z.ZodTypeAny, {
1963
- enabled?: boolean | undefined;
1964
- duration?: number | undefined;
1965
- maxAttempts?: number | undefined;
1966
- attemptWindow?: number | undefined;
1967
- resetOnSuccess?: boolean | undefined;
1968
- }, {
1969
- enabled?: boolean | undefined;
1970
- duration?: number | undefined;
1971
- maxAttempts?: number | undefined;
1972
- attemptWindow?: number | undefined;
1973
- resetOnSuccess?: boolean | undefined;
1974
- }>>;
613
+ }, z.core.$strip>>;
1975
614
  session: z.ZodOptional<z.ZodObject<{
1976
615
  maxConcurrent: z.ZodOptional<z.ZodNumber>;
1977
616
  disallowMultipleSessions: z.ZodOptional<z.ZodBoolean>;
1978
- maxLifetime: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1979
- }, "strip", z.ZodTypeAny, {
1980
- maxConcurrent?: number | undefined;
1981
- disallowMultipleSessions?: boolean | undefined;
1982
- maxLifetime?: string | number | undefined;
1983
- }, {
1984
- maxConcurrent?: number | undefined;
1985
- disallowMultipleSessions?: boolean | undefined;
1986
- maxLifetime?: string | number | undefined;
1987
- }>>;
617
+ maxLifetime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
618
+ }, z.core.$strip>>;
1988
619
  security: z.ZodOptional<z.ZodObject<{
1989
620
  csrf: z.ZodOptional<z.ZodObject<{
1990
621
  cookieName: z.ZodOptional<z.ZodString>;
1991
622
  headerName: z.ZodOptional<z.ZodString>;
1992
623
  tokenLength: z.ZodOptional<z.ZodNumber>;
1993
- excludedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
624
+ excludedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1994
625
  cookieOptions: z.ZodOptional<z.ZodObject<{
1995
626
  secure: z.ZodOptional<z.ZodBoolean>;
1996
- sameSite: z.ZodOptional<z.ZodEnum<["strict", "lax", "none"]>>;
627
+ sameSite: z.ZodOptional<z.ZodEnum<{
628
+ strict: "strict";
629
+ lax: "lax";
630
+ none: "none";
631
+ }>>;
1997
632
  domain: z.ZodOptional<z.ZodString>;
1998
633
  path: z.ZodOptional<z.ZodString>;
1999
- }, "strip", z.ZodTypeAny, {
2000
- secure?: boolean | undefined;
2001
- sameSite?: "strict" | "lax" | "none" | undefined;
2002
- domain?: string | undefined;
2003
- path?: string | undefined;
2004
- }, {
2005
- secure?: boolean | undefined;
2006
- sameSite?: "strict" | "lax" | "none" | undefined;
2007
- domain?: string | undefined;
2008
- path?: string | undefined;
2009
- }>>;
2010
- }, "strip", z.ZodTypeAny, {
2011
- cookieName?: string | undefined;
2012
- headerName?: string | undefined;
2013
- tokenLength?: number | undefined;
2014
- excludedPaths?: string[] | undefined;
2015
- cookieOptions?: {
2016
- secure?: boolean | undefined;
2017
- sameSite?: "strict" | "lax" | "none" | undefined;
2018
- domain?: string | undefined;
2019
- path?: string | undefined;
2020
- } | undefined;
2021
- }, {
2022
- cookieName?: string | undefined;
2023
- headerName?: string | undefined;
2024
- tokenLength?: number | undefined;
2025
- excludedPaths?: string[] | undefined;
2026
- cookieOptions?: {
2027
- secure?: boolean | undefined;
2028
- sameSite?: "strict" | "lax" | "none" | undefined;
2029
- domain?: string | undefined;
2030
- path?: string | undefined;
2031
- } | undefined;
2032
- }>>;
2033
- }, "strip", z.ZodTypeAny, {
2034
- csrf?: {
2035
- cookieName?: string | undefined;
2036
- headerName?: string | undefined;
2037
- tokenLength?: number | undefined;
2038
- excludedPaths?: string[] | undefined;
2039
- cookieOptions?: {
2040
- secure?: boolean | undefined;
2041
- sameSite?: "strict" | "lax" | "none" | undefined;
2042
- domain?: string | undefined;
2043
- path?: string | undefined;
2044
- } | undefined;
2045
- } | undefined;
2046
- }, {
2047
- csrf?: {
2048
- cookieName?: string | undefined;
2049
- headerName?: string | undefined;
2050
- tokenLength?: number | undefined;
2051
- excludedPaths?: string[] | undefined;
2052
- cookieOptions?: {
2053
- secure?: boolean | undefined;
2054
- sameSite?: "strict" | "lax" | "none" | undefined;
2055
- domain?: string | undefined;
2056
- path?: string | undefined;
2057
- } | undefined;
2058
- } | undefined;
2059
- }>>;
634
+ }, z.core.$strip>>;
635
+ }, z.core.$strip>>;
636
+ }, z.core.$strip>>;
2060
637
  auditLogs: z.ZodOptional<z.ZodObject<{
2061
638
  enabled: z.ZodOptional<z.ZodBoolean>;
2062
639
  fireAndForget: z.ZodOptional<z.ZodBoolean>;
2063
- }, "strip", z.ZodTypeAny, {
2064
- enabled?: boolean | undefined;
2065
- fireAndForget?: boolean | undefined;
2066
- }, {
2067
- enabled?: boolean | undefined;
2068
- fireAndForget?: boolean | undefined;
2069
- }>>;
640
+ }, z.core.$strip>>;
2070
641
  emailNotifications: z.ZodOptional<z.ZodObject<{
2071
642
  enabled: z.ZodOptional<z.ZodBoolean>;
2072
643
  suppress: z.ZodOptional<z.ZodObject<{
@@ -2082,66 +653,8 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
2082
653
  emailChangedNew: z.ZodOptional<z.ZodBoolean>;
2083
654
  accountLockout: z.ZodOptional<z.ZodBoolean>;
2084
655
  sessionsRevoked: z.ZodOptional<z.ZodBoolean>;
2085
- }, "strip", z.ZodTypeAny, {
2086
- welcome?: boolean | undefined;
2087
- accountLockout?: boolean | undefined;
2088
- passwordChanged?: boolean | undefined;
2089
- mfaDeviceRemoved?: boolean | undefined;
2090
- mfaMethodAdded?: boolean | undefined;
2091
- accountDisabled?: boolean | undefined;
2092
- accountEnabled?: boolean | undefined;
2093
- emailChangedOld?: boolean | undefined;
2094
- emailChangedNew?: boolean | undefined;
2095
- sessionsRevoked?: boolean | undefined;
2096
- mfaFirstEnabled?: boolean | undefined;
2097
- adaptiveMfaRiskDetected?: boolean | undefined;
2098
- }, {
2099
- welcome?: boolean | undefined;
2100
- accountLockout?: boolean | undefined;
2101
- passwordChanged?: boolean | undefined;
2102
- mfaDeviceRemoved?: boolean | undefined;
2103
- mfaMethodAdded?: boolean | undefined;
2104
- accountDisabled?: boolean | undefined;
2105
- accountEnabled?: boolean | undefined;
2106
- emailChangedOld?: boolean | undefined;
2107
- emailChangedNew?: boolean | undefined;
2108
- sessionsRevoked?: boolean | undefined;
2109
- mfaFirstEnabled?: boolean | undefined;
2110
- adaptiveMfaRiskDetected?: boolean | undefined;
2111
- }>>;
2112
- }, "strip", z.ZodTypeAny, {
2113
- enabled?: boolean | undefined;
2114
- suppress?: {
2115
- welcome?: boolean | undefined;
2116
- accountLockout?: boolean | undefined;
2117
- passwordChanged?: boolean | undefined;
2118
- mfaDeviceRemoved?: boolean | undefined;
2119
- mfaMethodAdded?: boolean | undefined;
2120
- accountDisabled?: boolean | undefined;
2121
- accountEnabled?: boolean | undefined;
2122
- emailChangedOld?: boolean | undefined;
2123
- emailChangedNew?: boolean | undefined;
2124
- sessionsRevoked?: boolean | undefined;
2125
- mfaFirstEnabled?: boolean | undefined;
2126
- adaptiveMfaRiskDetected?: boolean | undefined;
2127
- } | undefined;
2128
- }, {
2129
- enabled?: boolean | undefined;
2130
- suppress?: {
2131
- welcome?: boolean | undefined;
2132
- accountLockout?: boolean | undefined;
2133
- passwordChanged?: boolean | undefined;
2134
- mfaDeviceRemoved?: boolean | undefined;
2135
- mfaMethodAdded?: boolean | undefined;
2136
- accountDisabled?: boolean | undefined;
2137
- accountEnabled?: boolean | undefined;
2138
- emailChangedOld?: boolean | undefined;
2139
- emailChangedNew?: boolean | undefined;
2140
- sessionsRevoked?: boolean | undefined;
2141
- mfaFirstEnabled?: boolean | undefined;
2142
- adaptiveMfaRiskDetected?: boolean | undefined;
2143
- } | undefined;
2144
- }>>;
656
+ }, z.core.$strip>>;
657
+ }, z.core.$strip>>;
2145
658
  emailProvider: z.ZodOptional<z.ZodAny>;
2146
659
  email: z.ZodOptional<z.ZodObject<{
2147
660
  globalVariables: z.ZodOptional<z.ZodObject<{
@@ -2153,382 +666,87 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
2153
666
  dashboardUrl: z.ZodOptional<z.ZodString>;
2154
667
  supportEmail: z.ZodOptional<z.ZodString>;
2155
668
  footerDisclaimer: z.ZodOptional<z.ZodString>;
2156
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2157
- appName: z.ZodOptional<z.ZodString>;
2158
- companyName: z.ZodOptional<z.ZodString>;
2159
- companyAddress: z.ZodOptional<z.ZodString>;
2160
- brandColor: z.ZodOptional<z.ZodString>;
2161
- logoUrl: z.ZodOptional<z.ZodString>;
2162
- dashboardUrl: z.ZodOptional<z.ZodString>;
2163
- supportEmail: z.ZodOptional<z.ZodString>;
2164
- footerDisclaimer: z.ZodOptional<z.ZodString>;
2165
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2166
- appName: z.ZodOptional<z.ZodString>;
2167
- companyName: z.ZodOptional<z.ZodString>;
2168
- companyAddress: z.ZodOptional<z.ZodString>;
2169
- brandColor: z.ZodOptional<z.ZodString>;
2170
- logoUrl: z.ZodOptional<z.ZodString>;
2171
- dashboardUrl: z.ZodOptional<z.ZodString>;
2172
- supportEmail: z.ZodOptional<z.ZodString>;
2173
- footerDisclaimer: z.ZodOptional<z.ZodString>;
2174
- }, z.ZodUnknown, "strip">>>;
669
+ }, z.core.$catchall<z.ZodUnknown>>>;
2175
670
  templates: z.ZodOptional<z.ZodObject<{
2176
671
  engine: z.ZodOptional<z.ZodAny>;
2177
- customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
672
+ customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2178
673
  htmlPath: z.ZodOptional<z.ZodString>;
2179
674
  html: z.ZodOptional<z.ZodString>;
2180
675
  textPath: z.ZodOptional<z.ZodString>;
2181
676
  text: z.ZodOptional<z.ZodString>;
2182
677
  subject: z.ZodOptional<z.ZodString>;
2183
- }, "strip", z.ZodTypeAny, {
2184
- htmlPath?: string | undefined;
2185
- html?: string | undefined;
2186
- textPath?: string | undefined;
2187
- text?: string | undefined;
2188
- subject?: string | undefined;
2189
- }, {
2190
- htmlPath?: string | undefined;
2191
- html?: string | undefined;
2192
- textPath?: string | undefined;
2193
- text?: string | undefined;
2194
- subject?: string | undefined;
2195
- }>, {
2196
- htmlPath?: string | undefined;
2197
- html?: string | undefined;
2198
- textPath?: string | undefined;
2199
- text?: string | undefined;
2200
- subject?: string | undefined;
2201
- }, {
2202
- htmlPath?: string | undefined;
2203
- html?: string | undefined;
2204
- textPath?: string | undefined;
2205
- text?: string | undefined;
2206
- subject?: string | undefined;
2207
- }>, {
2208
- htmlPath?: string | undefined;
2209
- html?: string | undefined;
2210
- textPath?: string | undefined;
2211
- text?: string | undefined;
2212
- subject?: string | undefined;
2213
- }, {
2214
- htmlPath?: string | undefined;
2215
- html?: string | undefined;
2216
- textPath?: string | undefined;
2217
- text?: string | undefined;
2218
- subject?: string | undefined;
2219
- }>, {
2220
- htmlPath?: string | undefined;
2221
- html?: string | undefined;
2222
- textPath?: string | undefined;
2223
- text?: string | undefined;
2224
- subject?: string | undefined;
2225
- }, {
2226
- htmlPath?: string | undefined;
2227
- html?: string | undefined;
2228
- textPath?: string | undefined;
2229
- text?: string | undefined;
2230
- subject?: string | undefined;
2231
- }>>>;
2232
- }, "strict", z.ZodTypeAny, {
2233
- engine?: any;
2234
- customTemplates?: Record<string, {
2235
- htmlPath?: string | undefined;
2236
- html?: string | undefined;
2237
- textPath?: string | undefined;
2238
- text?: string | undefined;
2239
- subject?: string | undefined;
2240
- }> | undefined;
2241
- }, {
2242
- engine?: any;
2243
- customTemplates?: Record<string, {
2244
- htmlPath?: string | undefined;
2245
- html?: string | undefined;
2246
- textPath?: string | undefined;
2247
- text?: string | undefined;
2248
- subject?: string | undefined;
2249
- }> | undefined;
2250
- }>>;
2251
- }, "strict", z.ZodTypeAny, {
2252
- globalVariables?: z.objectOutputType<{
2253
- appName: z.ZodOptional<z.ZodString>;
2254
- companyName: z.ZodOptional<z.ZodString>;
2255
- companyAddress: z.ZodOptional<z.ZodString>;
2256
- brandColor: z.ZodOptional<z.ZodString>;
2257
- logoUrl: z.ZodOptional<z.ZodString>;
2258
- dashboardUrl: z.ZodOptional<z.ZodString>;
2259
- supportEmail: z.ZodOptional<z.ZodString>;
2260
- footerDisclaimer: z.ZodOptional<z.ZodString>;
2261
- }, z.ZodUnknown, "strip"> | undefined;
2262
- templates?: {
2263
- engine?: any;
2264
- customTemplates?: Record<string, {
2265
- htmlPath?: string | undefined;
2266
- html?: string | undefined;
2267
- textPath?: string | undefined;
2268
- text?: string | undefined;
2269
- subject?: string | undefined;
2270
- }> | undefined;
2271
- } | undefined;
2272
- }, {
2273
- globalVariables?: z.objectInputType<{
2274
- appName: z.ZodOptional<z.ZodString>;
2275
- companyName: z.ZodOptional<z.ZodString>;
2276
- companyAddress: z.ZodOptional<z.ZodString>;
2277
- brandColor: z.ZodOptional<z.ZodString>;
2278
- logoUrl: z.ZodOptional<z.ZodString>;
2279
- dashboardUrl: z.ZodOptional<z.ZodString>;
2280
- supportEmail: z.ZodOptional<z.ZodString>;
2281
- footerDisclaimer: z.ZodOptional<z.ZodString>;
2282
- }, z.ZodUnknown, "strip"> | undefined;
2283
- templates?: {
2284
- engine?: any;
2285
- customTemplates?: Record<string, {
2286
- htmlPath?: string | undefined;
2287
- html?: string | undefined;
2288
- textPath?: string | undefined;
2289
- text?: string | undefined;
2290
- subject?: string | undefined;
2291
- }> | undefined;
2292
- } | undefined;
2293
- }>>;
678
+ }, z.core.$strip>>>;
679
+ }, z.core.$strict>>;
680
+ }, z.core.$strict>>;
2294
681
  smsProvider: z.ZodOptional<z.ZodAny>;
2295
682
  sms: z.ZodOptional<z.ZodObject<{
2296
683
  templates: z.ZodOptional<z.ZodObject<{
2297
684
  engine: z.ZodOptional<z.ZodAny>;
2298
- globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2299
- customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
685
+ globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
686
+ customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2300
687
  contentPath: z.ZodOptional<z.ZodString>;
2301
688
  content: z.ZodOptional<z.ZodString>;
2302
- }, "strip", z.ZodTypeAny, {
2303
- contentPath?: string | undefined;
2304
- content?: string | undefined;
2305
- }, {
2306
- contentPath?: string | undefined;
2307
- content?: string | undefined;
2308
- }>, {
2309
- contentPath?: string | undefined;
2310
- content?: string | undefined;
2311
- }, {
2312
- contentPath?: string | undefined;
2313
- content?: string | undefined;
2314
- }>, {
2315
- contentPath?: string | undefined;
2316
- content?: string | undefined;
2317
- }, {
2318
- contentPath?: string | undefined;
2319
- content?: string | undefined;
2320
- }>>>;
2321
- }, "strip", z.ZodTypeAny, {
2322
- engine?: any;
2323
- customTemplates?: Record<string, {
2324
- contentPath?: string | undefined;
2325
- content?: string | undefined;
2326
- }> | undefined;
2327
- globalVariables?: Record<string, string | number | boolean> | undefined;
2328
- }, {
2329
- engine?: any;
2330
- customTemplates?: Record<string, {
2331
- contentPath?: string | undefined;
2332
- content?: string | undefined;
2333
- }> | undefined;
2334
- globalVariables?: Record<string, string | number | boolean> | undefined;
2335
- }>>;
2336
- }, "strip", z.ZodTypeAny, {
2337
- templates?: {
2338
- engine?: any;
2339
- customTemplates?: Record<string, {
2340
- contentPath?: string | undefined;
2341
- content?: string | undefined;
2342
- }> | undefined;
2343
- globalVariables?: Record<string, string | number | boolean> | undefined;
2344
- } | undefined;
2345
- }, {
2346
- templates?: {
2347
- engine?: any;
2348
- customTemplates?: Record<string, {
2349
- contentPath?: string | undefined;
2350
- content?: string | undefined;
2351
- }> | undefined;
2352
- globalVariables?: Record<string, string | number | boolean> | undefined;
2353
- } | undefined;
2354
- }>>;
2355
- phone: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
689
+ }, z.core.$strip>>>;
690
+ }, z.core.$strip>>;
691
+ }, z.core.$strip>>;
692
+ phone: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
2356
693
  storageAdapter: z.ZodOptional<z.ZodAny>;
2357
694
  social: z.ZodOptional<z.ZodObject<{
2358
695
  google: z.ZodOptional<z.ZodObject<{
2359
696
  enabled: z.ZodOptional<z.ZodBoolean>;
2360
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
697
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2361
698
  clientSecret: z.ZodOptional<z.ZodString>;
2362
699
  callbackUrl: z.ZodOptional<z.ZodString>;
2363
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
700
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2364
701
  autoLink: z.ZodOptional<z.ZodBoolean>;
2365
702
  allowSignup: z.ZodOptional<z.ZodBoolean>;
2366
- }, "strip", z.ZodTypeAny, {
2367
- clientSecret?: string | undefined;
2368
- enabled?: boolean | undefined;
2369
- clientId?: string | string[] | undefined;
2370
- callbackUrl?: string | undefined;
2371
- scopes?: string[] | undefined;
2372
- autoLink?: boolean | undefined;
2373
- allowSignup?: boolean | undefined;
2374
- }, {
2375
- clientSecret?: string | undefined;
2376
- enabled?: boolean | undefined;
2377
- clientId?: string | string[] | undefined;
2378
- callbackUrl?: string | undefined;
2379
- scopes?: string[] | undefined;
2380
- autoLink?: boolean | undefined;
2381
- allowSignup?: boolean | undefined;
2382
- }>>;
2383
- apple: z.ZodOptional<z.ZodObject<Omit<{
703
+ }, z.core.$strip>>;
704
+ apple: z.ZodOptional<z.ZodObject<{
2384
705
  enabled: z.ZodOptional<z.ZodBoolean>;
2385
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2386
- clientSecret: z.ZodOptional<z.ZodString>;
706
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2387
707
  callbackUrl: z.ZodOptional<z.ZodString>;
2388
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
708
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2389
709
  autoLink: z.ZodOptional<z.ZodBoolean>;
2390
710
  allowSignup: z.ZodOptional<z.ZodBoolean>;
2391
- }, "clientSecret"> & {
2392
711
  teamId: z.ZodOptional<z.ZodString>;
2393
712
  keyId: z.ZodOptional<z.ZodString>;
2394
713
  privateKeyPem: z.ZodOptional<z.ZodString>;
2395
- }, "strip", z.ZodTypeAny, {
2396
- enabled?: boolean | undefined;
2397
- clientId?: string | string[] | undefined;
2398
- callbackUrl?: string | undefined;
2399
- scopes?: string[] | undefined;
2400
- autoLink?: boolean | undefined;
2401
- allowSignup?: boolean | undefined;
2402
- teamId?: string | undefined;
2403
- keyId?: string | undefined;
2404
- privateKeyPem?: string | undefined;
2405
- }, {
2406
- enabled?: boolean | undefined;
2407
- clientId?: string | string[] | undefined;
2408
- callbackUrl?: string | undefined;
2409
- scopes?: string[] | undefined;
2410
- autoLink?: boolean | undefined;
2411
- allowSignup?: boolean | undefined;
2412
- teamId?: string | undefined;
2413
- keyId?: string | undefined;
2414
- privateKeyPem?: string | undefined;
2415
- }>>;
714
+ }, z.core.$strip>>;
2416
715
  facebook: z.ZodOptional<z.ZodObject<{
2417
716
  enabled: z.ZodOptional<z.ZodBoolean>;
2418
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
717
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2419
718
  clientSecret: z.ZodOptional<z.ZodString>;
2420
719
  callbackUrl: z.ZodOptional<z.ZodString>;
2421
- scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2422
721
  autoLink: z.ZodOptional<z.ZodBoolean>;
2423
722
  allowSignup: z.ZodOptional<z.ZodBoolean>;
2424
- }, "strip", z.ZodTypeAny, {
2425
- clientSecret?: string | undefined;
2426
- enabled?: boolean | undefined;
2427
- clientId?: string | string[] | undefined;
2428
- callbackUrl?: string | undefined;
2429
- scopes?: string[] | undefined;
2430
- autoLink?: boolean | undefined;
2431
- allowSignup?: boolean | undefined;
2432
- }, {
2433
- clientSecret?: string | undefined;
2434
- enabled?: boolean | undefined;
2435
- clientId?: string | string[] | undefined;
2436
- callbackUrl?: string | undefined;
2437
- scopes?: string[] | undefined;
2438
- autoLink?: boolean | undefined;
2439
- allowSignup?: boolean | undefined;
2440
- }>>;
723
+ }, z.core.$strip>>;
2441
724
  redirect: z.ZodOptional<z.ZodObject<{
2442
725
  frontendBaseUrl: z.ZodOptional<z.ZodString>;
2443
726
  allowAbsoluteReturnTo: z.ZodOptional<z.ZodBoolean>;
2444
- allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2445
- }, "strip", z.ZodTypeAny, {
2446
- frontendBaseUrl?: string | undefined;
2447
- allowAbsoluteReturnTo?: boolean | undefined;
2448
- allowedReturnToOrigins?: string[] | undefined;
2449
- }, {
2450
- frontendBaseUrl?: string | undefined;
2451
- allowAbsoluteReturnTo?: boolean | undefined;
2452
- allowedReturnToOrigins?: string[] | undefined;
2453
- }>>;
2454
- }, "strip", z.ZodTypeAny, {
2455
- google?: {
2456
- clientSecret?: string | undefined;
2457
- enabled?: boolean | undefined;
2458
- clientId?: string | string[] | undefined;
2459
- callbackUrl?: string | undefined;
2460
- scopes?: string[] | undefined;
2461
- autoLink?: boolean | undefined;
2462
- allowSignup?: boolean | undefined;
2463
- } | undefined;
2464
- apple?: {
2465
- enabled?: boolean | undefined;
2466
- clientId?: string | string[] | undefined;
2467
- callbackUrl?: string | undefined;
2468
- scopes?: string[] | undefined;
2469
- autoLink?: boolean | undefined;
2470
- allowSignup?: boolean | undefined;
2471
- teamId?: string | undefined;
2472
- keyId?: string | undefined;
2473
- privateKeyPem?: string | undefined;
2474
- } | undefined;
2475
- facebook?: {
2476
- clientSecret?: string | undefined;
2477
- enabled?: boolean | undefined;
2478
- clientId?: string | string[] | undefined;
2479
- callbackUrl?: string | undefined;
2480
- scopes?: string[] | undefined;
2481
- autoLink?: boolean | undefined;
2482
- allowSignup?: boolean | undefined;
2483
- } | undefined;
2484
- redirect?: {
2485
- frontendBaseUrl?: string | undefined;
2486
- allowAbsoluteReturnTo?: boolean | undefined;
2487
- allowedReturnToOrigins?: string[] | undefined;
2488
- } | undefined;
2489
- }, {
2490
- google?: {
2491
- clientSecret?: string | undefined;
2492
- enabled?: boolean | undefined;
2493
- clientId?: string | string[] | undefined;
2494
- callbackUrl?: string | undefined;
2495
- scopes?: string[] | undefined;
2496
- autoLink?: boolean | undefined;
2497
- allowSignup?: boolean | undefined;
2498
- } | undefined;
2499
- apple?: {
2500
- enabled?: boolean | undefined;
2501
- clientId?: string | string[] | undefined;
2502
- callbackUrl?: string | undefined;
2503
- scopes?: string[] | undefined;
2504
- autoLink?: boolean | undefined;
2505
- allowSignup?: boolean | undefined;
2506
- teamId?: string | undefined;
2507
- keyId?: string | undefined;
2508
- privateKeyPem?: string | undefined;
2509
- } | undefined;
2510
- facebook?: {
2511
- clientSecret?: string | undefined;
2512
- enabled?: boolean | undefined;
2513
- clientId?: string | string[] | undefined;
2514
- callbackUrl?: string | undefined;
2515
- scopes?: string[] | undefined;
2516
- autoLink?: boolean | undefined;
2517
- allowSignup?: boolean | undefined;
2518
- } | undefined;
2519
- redirect?: {
2520
- frontendBaseUrl?: string | undefined;
2521
- allowAbsoluteReturnTo?: boolean | undefined;
2522
- allowedReturnToOrigins?: string[] | undefined;
2523
- } | undefined;
2524
- }>>;
727
+ allowedReturnToOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
728
+ }, z.core.$strip>>;
729
+ }, z.core.$strip>>;
2525
730
  mfa: z.ZodOptional<z.ZodObject<{
2526
731
  enabled: z.ZodOptional<z.ZodBoolean>;
2527
- enforcement: z.ZodOptional<z.ZodEnum<["OPTIONAL", "REQUIRED", "ADAPTIVE"]>>;
732
+ enforcement: z.ZodOptional<z.ZodEnum<{
733
+ OPTIONAL: "OPTIONAL";
734
+ REQUIRED: "REQUIRED";
735
+ ADAPTIVE: "ADAPTIVE";
736
+ }>>;
2528
737
  gracePeriod: z.ZodOptional<z.ZodNumber>;
2529
- allowedMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<["totp", "sms", "email", "passkey"]>, "many">>;
738
+ allowedMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
739
+ totp: "totp";
740
+ sms: "sms";
741
+ email: "email";
742
+ passkey: "passkey";
743
+ }>>>;
2530
744
  requireForSocialLogin: z.ZodOptional<z.ZodBoolean>;
2531
- rememberDevices: z.ZodOptional<z.ZodEnum<["always", "user_opt_in", "never"]>>;
745
+ rememberDevices: z.ZodOptional<z.ZodEnum<{
746
+ always: "always";
747
+ user_opt_in: "user_opt_in";
748
+ never: "never";
749
+ }>>;
2532
750
  rememberDeviceDays: z.ZodOptional<z.ZodNumber>;
2533
751
  bypassMFAForTrustedDevices: z.ZodOptional<z.ZodBoolean>;
2534
752
  issuer: z.ZodOptional<z.ZodString>;
@@ -2536,395 +754,113 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
2536
754
  window: z.ZodOptional<z.ZodNumber>;
2537
755
  stepSeconds: z.ZodOptional<z.ZodNumber>;
2538
756
  digits: z.ZodOptional<z.ZodNumber>;
2539
- algorithm: z.ZodOptional<z.ZodEnum<["sha1", "sha256", "sha512"]>>;
2540
- }, "strip", z.ZodTypeAny, {
2541
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
2542
- window?: number | undefined;
2543
- stepSeconds?: number | undefined;
2544
- digits?: number | undefined;
2545
- }, {
2546
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
2547
- window?: number | undefined;
2548
- stepSeconds?: number | undefined;
2549
- digits?: number | undefined;
2550
- }>>;
757
+ algorithm: z.ZodOptional<z.ZodEnum<{
758
+ sha1: "sha1";
759
+ sha256: "sha256";
760
+ sha512: "sha512";
761
+ }>>;
762
+ }, z.core.$strip>>;
2551
763
  passkey: z.ZodOptional<z.ZodObject<{
2552
764
  rpName: z.ZodString;
2553
765
  rpId: z.ZodString;
2554
- origin: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
766
+ origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2555
767
  timeout: z.ZodOptional<z.ZodNumber>;
2556
- userVerification: z.ZodOptional<z.ZodEnum<["required", "preferred", "discouraged"]>>;
2557
- authenticatorAttachment: z.ZodOptional<z.ZodEnum<["platform", "cross-platform"]>>;
2558
- }, "strip", z.ZodTypeAny, {
2559
- rpName: string;
2560
- rpId: string;
2561
- origin?: string | string[] | undefined;
2562
- timeout?: number | undefined;
2563
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
2564
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
2565
- }, {
2566
- rpName: string;
2567
- rpId: string;
2568
- origin?: string | string[] | undefined;
2569
- timeout?: number | undefined;
2570
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
2571
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
2572
- }>>;
768
+ userVerification: z.ZodOptional<z.ZodEnum<{
769
+ required: "required";
770
+ preferred: "preferred";
771
+ discouraged: "discouraged";
772
+ }>>;
773
+ authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
774
+ platform: "platform";
775
+ "cross-platform": "cross-platform";
776
+ }>>;
777
+ }, z.core.$strip>>;
2573
778
  backup: z.ZodOptional<z.ZodObject<{
2574
779
  enabled: z.ZodOptional<z.ZodBoolean>;
2575
780
  codeCount: z.ZodOptional<z.ZodNumber>;
2576
781
  codeLength: z.ZodOptional<z.ZodNumber>;
2577
- }, "strip", z.ZodTypeAny, {
2578
- enabled?: boolean | undefined;
2579
- codeLength?: number | undefined;
2580
- codeCount?: number | undefined;
2581
- }, {
2582
- enabled?: boolean | undefined;
2583
- codeLength?: number | undefined;
2584
- codeCount?: number | undefined;
2585
- }>>;
782
+ }, z.core.$strip>>;
2586
783
  adaptive: z.ZodOptional<z.ZodObject<{
2587
- triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["new_device", "new_ip", "new_country", "impossible_travel", "suspicious_activity", "recent_password_reset"]>, "many">>;
784
+ triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
785
+ new_device: "new_device";
786
+ new_ip: "new_ip";
787
+ new_country: "new_country";
788
+ impossible_travel: "impossible_travel";
789
+ suspicious_activity: "suspicious_activity";
790
+ recent_password_reset: "recent_password_reset";
791
+ }>>>;
2588
792
  riskThreshold: z.ZodOptional<z.ZodNumber>;
2589
793
  riskWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2590
794
  riskLevels: z.ZodOptional<z.ZodObject<{
2591
795
  low: z.ZodOptional<z.ZodObject<{
2592
796
  maxScore: z.ZodNumber;
2593
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
797
+ action: z.ZodOptional<z.ZodEnum<{
798
+ allow: "allow";
799
+ require_mfa: "require_mfa";
800
+ block_signin: "block_signin";
801
+ }>>;
2594
802
  notifyUser: z.ZodOptional<z.ZodBoolean>;
2595
- }, "strip", z.ZodTypeAny, {
2596
- maxScore: number;
2597
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2598
- notifyUser?: boolean | undefined;
2599
- }, {
2600
- maxScore: number;
2601
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2602
- notifyUser?: boolean | undefined;
2603
- }>>;
803
+ }, z.core.$strip>>;
2604
804
  medium: z.ZodOptional<z.ZodObject<{
2605
805
  maxScore: z.ZodNumber;
2606
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
806
+ action: z.ZodOptional<z.ZodEnum<{
807
+ allow: "allow";
808
+ require_mfa: "require_mfa";
809
+ block_signin: "block_signin";
810
+ }>>;
2607
811
  notifyUser: z.ZodOptional<z.ZodBoolean>;
2608
- }, "strip", z.ZodTypeAny, {
2609
- maxScore: number;
2610
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2611
- notifyUser?: boolean | undefined;
2612
- }, {
2613
- maxScore: number;
2614
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2615
- notifyUser?: boolean | undefined;
2616
- }>>;
812
+ }, z.core.$strip>>;
2617
813
  high: z.ZodOptional<z.ZodObject<{
2618
814
  maxScore: z.ZodNumber;
2619
- action: z.ZodOptional<z.ZodEnum<["allow", "require_mfa", "block_signin"]>>;
815
+ action: z.ZodOptional<z.ZodEnum<{
816
+ allow: "allow";
817
+ require_mfa: "require_mfa";
818
+ block_signin: "block_signin";
819
+ }>>;
2620
820
  notifyUser: z.ZodOptional<z.ZodBoolean>;
2621
- }, "strip", z.ZodTypeAny, {
2622
- maxScore: number;
2623
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2624
- notifyUser?: boolean | undefined;
2625
- }, {
2626
- maxScore: number;
2627
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2628
- notifyUser?: boolean | undefined;
2629
- }>>;
2630
- }, "strip", z.ZodTypeAny, {
2631
- low?: {
2632
- maxScore: number;
2633
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2634
- notifyUser?: boolean | undefined;
2635
- } | undefined;
2636
- medium?: {
2637
- maxScore: number;
2638
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2639
- notifyUser?: boolean | undefined;
2640
- } | undefined;
2641
- high?: {
2642
- maxScore: number;
2643
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2644
- notifyUser?: boolean | undefined;
2645
- } | undefined;
2646
- }, {
2647
- low?: {
2648
- maxScore: number;
2649
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2650
- notifyUser?: boolean | undefined;
2651
- } | undefined;
2652
- medium?: {
2653
- maxScore: number;
2654
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2655
- notifyUser?: boolean | undefined;
2656
- } | undefined;
2657
- high?: {
2658
- maxScore: number;
2659
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2660
- notifyUser?: boolean | undefined;
2661
- } | undefined;
2662
- }>>;
821
+ }, z.core.$strip>>;
822
+ }, z.core.$strip>>;
2663
823
  blockedSignIn: z.ZodOptional<z.ZodObject<{
2664
824
  blockDuration: z.ZodOptional<z.ZodNumber>;
2665
825
  message: z.ZodOptional<z.ZodString>;
2666
826
  errorCode: z.ZodOptional<z.ZodString>;
2667
- scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
2668
- }, "strip", z.ZodTypeAny, {
2669
- message?: string | undefined;
2670
- scope?: "user" | "device" | "ip" | undefined;
2671
- blockDuration?: number | undefined;
2672
- errorCode?: string | undefined;
2673
- }, {
2674
- message?: string | undefined;
2675
- scope?: "user" | "device" | "ip" | undefined;
2676
- blockDuration?: number | undefined;
2677
- errorCode?: string | undefined;
2678
- }>>;
827
+ scope: z.ZodOptional<z.ZodEnum<{
828
+ user: "user";
829
+ device: "device";
830
+ ip: "ip";
831
+ }>>;
832
+ }, z.core.$strip>>;
2679
833
  maxTravelSpeed: z.ZodOptional<z.ZodNumber>;
2680
834
  countryChangeThreshold: z.ZodOptional<z.ZodNumber>;
2681
835
  suspiciousActivityWindow: z.ZodOptional<z.ZodNumber>;
2682
- }, "strip", z.ZodTypeAny, {
2683
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
2684
- riskThreshold?: number | undefined;
2685
- riskWeights?: Record<string, number> | undefined;
2686
- riskLevels?: {
2687
- low?: {
2688
- maxScore: number;
2689
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2690
- notifyUser?: boolean | undefined;
2691
- } | undefined;
2692
- medium?: {
2693
- maxScore: number;
2694
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2695
- notifyUser?: boolean | undefined;
2696
- } | undefined;
2697
- high?: {
2698
- maxScore: number;
2699
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2700
- notifyUser?: boolean | undefined;
2701
- } | undefined;
2702
- } | undefined;
2703
- blockedSignIn?: {
2704
- message?: string | undefined;
2705
- scope?: "user" | "device" | "ip" | undefined;
2706
- blockDuration?: number | undefined;
2707
- errorCode?: string | undefined;
2708
- } | undefined;
2709
- maxTravelSpeed?: number | undefined;
2710
- countryChangeThreshold?: number | undefined;
2711
- suspiciousActivityWindow?: number | undefined;
2712
- }, {
2713
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
2714
- riskThreshold?: number | undefined;
2715
- riskWeights?: Record<string, number> | undefined;
2716
- riskLevels?: {
2717
- low?: {
2718
- maxScore: number;
2719
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2720
- notifyUser?: boolean | undefined;
2721
- } | undefined;
2722
- medium?: {
2723
- maxScore: number;
2724
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2725
- notifyUser?: boolean | undefined;
2726
- } | undefined;
2727
- high?: {
2728
- maxScore: number;
2729
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2730
- notifyUser?: boolean | undefined;
2731
- } | undefined;
2732
- } | undefined;
2733
- blockedSignIn?: {
2734
- message?: string | undefined;
2735
- scope?: "user" | "device" | "ip" | undefined;
2736
- blockDuration?: number | undefined;
2737
- errorCode?: string | undefined;
2738
- } | undefined;
2739
- maxTravelSpeed?: number | undefined;
2740
- countryChangeThreshold?: number | undefined;
2741
- suspiciousActivityWindow?: number | undefined;
2742
- }>>;
2743
- }, "strip", z.ZodTypeAny, {
2744
- totp?: {
2745
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
2746
- window?: number | undefined;
2747
- stepSeconds?: number | undefined;
2748
- digits?: number | undefined;
2749
- } | undefined;
2750
- passkey?: {
2751
- rpName: string;
2752
- rpId: string;
2753
- origin?: string | string[] | undefined;
2754
- timeout?: number | undefined;
2755
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
2756
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
2757
- } | undefined;
2758
- backup?: {
2759
- enabled?: boolean | undefined;
2760
- codeLength?: number | undefined;
2761
- codeCount?: number | undefined;
2762
- } | undefined;
2763
- enabled?: boolean | undefined;
2764
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
2765
- requireForSocialLogin?: boolean | undefined;
2766
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
2767
- bypassMFAForTrustedDevices?: boolean | undefined;
2768
- rememberDeviceDays?: number | undefined;
2769
- issuer?: string | undefined;
2770
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
2771
- gracePeriod?: number | undefined;
2772
- adaptive?: {
2773
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
2774
- riskThreshold?: number | undefined;
2775
- riskWeights?: Record<string, number> | undefined;
2776
- riskLevels?: {
2777
- low?: {
2778
- maxScore: number;
2779
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2780
- notifyUser?: boolean | undefined;
2781
- } | undefined;
2782
- medium?: {
2783
- maxScore: number;
2784
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2785
- notifyUser?: boolean | undefined;
2786
- } | undefined;
2787
- high?: {
2788
- maxScore: number;
2789
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2790
- notifyUser?: boolean | undefined;
2791
- } | undefined;
2792
- } | undefined;
2793
- blockedSignIn?: {
2794
- message?: string | undefined;
2795
- scope?: "user" | "device" | "ip" | undefined;
2796
- blockDuration?: number | undefined;
2797
- errorCode?: string | undefined;
2798
- } | undefined;
2799
- maxTravelSpeed?: number | undefined;
2800
- countryChangeThreshold?: number | undefined;
2801
- suspiciousActivityWindow?: number | undefined;
2802
- } | undefined;
2803
- }, {
2804
- totp?: {
2805
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
2806
- window?: number | undefined;
2807
- stepSeconds?: number | undefined;
2808
- digits?: number | undefined;
2809
- } | undefined;
2810
- passkey?: {
2811
- rpName: string;
2812
- rpId: string;
2813
- origin?: string | string[] | undefined;
2814
- timeout?: number | undefined;
2815
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
2816
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
2817
- } | undefined;
2818
- backup?: {
2819
- enabled?: boolean | undefined;
2820
- codeLength?: number | undefined;
2821
- codeCount?: number | undefined;
2822
- } | undefined;
2823
- enabled?: boolean | undefined;
2824
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
2825
- requireForSocialLogin?: boolean | undefined;
2826
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
2827
- bypassMFAForTrustedDevices?: boolean | undefined;
2828
- rememberDeviceDays?: number | undefined;
2829
- issuer?: string | undefined;
2830
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
2831
- gracePeriod?: number | undefined;
2832
- adaptive?: {
2833
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
2834
- riskThreshold?: number | undefined;
2835
- riskWeights?: Record<string, number> | undefined;
2836
- riskLevels?: {
2837
- low?: {
2838
- maxScore: number;
2839
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2840
- notifyUser?: boolean | undefined;
2841
- } | undefined;
2842
- medium?: {
2843
- maxScore: number;
2844
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2845
- notifyUser?: boolean | undefined;
2846
- } | undefined;
2847
- high?: {
2848
- maxScore: number;
2849
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
2850
- notifyUser?: boolean | undefined;
2851
- } | undefined;
2852
- } | undefined;
2853
- blockedSignIn?: {
2854
- message?: string | undefined;
2855
- scope?: "user" | "device" | "ip" | undefined;
2856
- blockDuration?: number | undefined;
2857
- errorCode?: string | undefined;
2858
- } | undefined;
2859
- maxTravelSpeed?: number | undefined;
2860
- countryChangeThreshold?: number | undefined;
2861
- suspiciousActivityWindow?: number | undefined;
2862
- } | undefined;
2863
- }>>;
836
+ }, z.core.$strip>>;
837
+ }, z.core.$strip>>;
2864
838
  logger: z.ZodOptional<z.ZodAny>;
2865
839
  tokenDelivery: z.ZodOptional<z.ZodObject<{
2866
- method: z.ZodOptional<z.ZodEnum<["json", "cookies", "hybrid"]>>;
840
+ method: z.ZodOptional<z.ZodEnum<{
841
+ json: "json";
842
+ cookies: "cookies";
843
+ hybrid: "hybrid";
844
+ }>>;
2867
845
  cookieNamePrefix: z.ZodOptional<z.ZodString>;
2868
846
  cookieOptions: z.ZodOptional<z.ZodObject<{
2869
847
  secure: z.ZodOptional<z.ZodBoolean>;
2870
- sameSite: z.ZodOptional<z.ZodEnum<["strict", "lax", "none"]>>;
848
+ sameSite: z.ZodOptional<z.ZodEnum<{
849
+ strict: "strict";
850
+ lax: "lax";
851
+ none: "none";
852
+ }>>;
2871
853
  path: z.ZodOptional<z.ZodString>;
2872
854
  domain: z.ZodOptional<z.ZodString>;
2873
- }, "strip", z.ZodTypeAny, {
2874
- secure?: boolean | undefined;
2875
- sameSite?: "strict" | "lax" | "none" | undefined;
2876
- domain?: string | undefined;
2877
- path?: string | undefined;
2878
- }, {
2879
- secure?: boolean | undefined;
2880
- sameSite?: "strict" | "lax" | "none" | undefined;
2881
- domain?: string | undefined;
2882
- path?: string | undefined;
2883
- }>>;
855
+ }, z.core.$strip>>;
2884
856
  hybridPolicy: z.ZodOptional<z.ZodObject<{
2885
- webOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2886
- nativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2887
- }, "strip", z.ZodTypeAny, {
2888
- webOrigins?: string[] | undefined;
2889
- nativeOrigins?: string[] | undefined;
2890
- }, {
2891
- webOrigins?: string[] | undefined;
2892
- nativeOrigins?: string[] | undefined;
2893
- }>>;
2894
- }, "strip", z.ZodTypeAny, {
2895
- method?: "json" | "cookies" | "hybrid" | undefined;
2896
- cookieOptions?: {
2897
- secure?: boolean | undefined;
2898
- sameSite?: "strict" | "lax" | "none" | undefined;
2899
- domain?: string | undefined;
2900
- path?: string | undefined;
2901
- } | undefined;
2902
- cookieNamePrefix?: string | undefined;
2903
- hybridPolicy?: {
2904
- webOrigins?: string[] | undefined;
2905
- nativeOrigins?: string[] | undefined;
2906
- } | undefined;
2907
- }, {
2908
- method?: "json" | "cookies" | "hybrid" | undefined;
2909
- cookieOptions?: {
2910
- secure?: boolean | undefined;
2911
- sameSite?: "strict" | "lax" | "none" | undefined;
2912
- domain?: string | undefined;
2913
- path?: string | undefined;
2914
- } | undefined;
2915
- cookieNamePrefix?: string | undefined;
2916
- hybridPolicy?: {
2917
- webOrigins?: string[] | undefined;
2918
- nativeOrigins?: string[] | undefined;
2919
- } | undefined;
2920
- }>>;
857
+ webOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
858
+ nativeOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
859
+ }, z.core.$strip>>;
860
+ }, z.core.$strip>>;
2921
861
  challenge: z.ZodOptional<z.ZodObject<{
2922
862
  maxAttempts: z.ZodOptional<z.ZodNumber>;
2923
- }, "strip", z.ZodTypeAny, {
2924
- maxAttempts?: number | undefined;
2925
- }, {
2926
- maxAttempts?: number | undefined;
2927
- }>>;
863
+ }, z.core.$strip>>;
2928
864
  geoLocation: z.ZodOptional<z.ZodObject<{
2929
865
  maxMind: z.ZodOptional<z.ZodObject<{
2930
866
  dbPath: z.ZodOptional<z.ZodString>;
@@ -2932,1154 +868,10 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
2932
868
  licenseKey: z.ZodOptional<z.ZodString>;
2933
869
  accountId: z.ZodOptional<z.ZodNumber>;
2934
870
  autoDownloadOnStartup: z.ZodOptional<z.ZodBoolean>;
2935
- editions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2936
- }, "strip", z.ZodTypeAny, {
2937
- dbPath?: string | undefined;
2938
- skipDownloads?: boolean | undefined;
2939
- licenseKey?: string | undefined;
2940
- accountId?: number | undefined;
2941
- autoDownloadOnStartup?: boolean | undefined;
2942
- editions?: string[] | undefined;
2943
- }, {
2944
- dbPath?: string | undefined;
2945
- skipDownloads?: boolean | undefined;
2946
- licenseKey?: string | undefined;
2947
- accountId?: number | undefined;
2948
- autoDownloadOnStartup?: boolean | undefined;
2949
- editions?: string[] | undefined;
2950
- }>>;
2951
- }, "strip", z.ZodTypeAny, {
2952
- maxMind?: {
2953
- dbPath?: string | undefined;
2954
- skipDownloads?: boolean | undefined;
2955
- licenseKey?: string | undefined;
2956
- accountId?: number | undefined;
2957
- autoDownloadOnStartup?: boolean | undefined;
2958
- editions?: string[] | undefined;
2959
- } | undefined;
2960
- }, {
2961
- maxMind?: {
2962
- dbPath?: string | undefined;
2963
- skipDownloads?: boolean | undefined;
2964
- licenseKey?: string | undefined;
2965
- accountId?: number | undefined;
2966
- autoDownloadOnStartup?: boolean | undefined;
2967
- editions?: string[] | undefined;
2968
- } | undefined;
2969
- }>>;
2970
- }, "strip", z.ZodTypeAny, {
2971
- jwt: {
2972
- accessToken: {
2973
- expiresIn: string | number;
2974
- secret?: string | undefined;
2975
- publicKey?: string | undefined;
2976
- privateKey?: string | undefined;
2977
- };
2978
- refreshToken: {
2979
- expiresIn: string | number;
2980
- secret: string;
2981
- rotation?: boolean | undefined;
2982
- reuseDetection?: boolean | undefined;
2983
- };
2984
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
2985
- issuer?: string | undefined;
2986
- audience?: string | string[] | undefined;
2987
- };
2988
- sms?: {
2989
- templates?: {
2990
- engine?: any;
2991
- customTemplates?: Record<string, {
2992
- contentPath?: string | undefined;
2993
- content?: string | undefined;
2994
- }> | undefined;
2995
- globalVariables?: Record<string, string | number | boolean> | undefined;
2996
- } | undefined;
2997
- } | undefined;
2998
- email?: {
2999
- globalVariables?: z.objectOutputType<{
3000
- appName: z.ZodOptional<z.ZodString>;
3001
- companyName: z.ZodOptional<z.ZodString>;
3002
- companyAddress: z.ZodOptional<z.ZodString>;
3003
- brandColor: z.ZodOptional<z.ZodString>;
3004
- logoUrl: z.ZodOptional<z.ZodString>;
3005
- dashboardUrl: z.ZodOptional<z.ZodString>;
3006
- supportEmail: z.ZodOptional<z.ZodString>;
3007
- footerDisclaimer: z.ZodOptional<z.ZodString>;
3008
- }, z.ZodUnknown, "strip"> | undefined;
3009
- templates?: {
3010
- engine?: any;
3011
- customTemplates?: Record<string, {
3012
- htmlPath?: string | undefined;
3013
- html?: string | undefined;
3014
- textPath?: string | undefined;
3015
- text?: string | undefined;
3016
- subject?: string | undefined;
3017
- }> | undefined;
3018
- } | undefined;
3019
- } | undefined;
3020
- mfa?: {
3021
- totp?: {
3022
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
3023
- window?: number | undefined;
3024
- stepSeconds?: number | undefined;
3025
- digits?: number | undefined;
3026
- } | undefined;
3027
- passkey?: {
3028
- rpName: string;
3029
- rpId: string;
3030
- origin?: string | string[] | undefined;
3031
- timeout?: number | undefined;
3032
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
3033
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
3034
- } | undefined;
3035
- backup?: {
3036
- enabled?: boolean | undefined;
3037
- codeLength?: number | undefined;
3038
- codeCount?: number | undefined;
3039
- } | undefined;
3040
- enabled?: boolean | undefined;
3041
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
3042
- requireForSocialLogin?: boolean | undefined;
3043
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
3044
- bypassMFAForTrustedDevices?: boolean | undefined;
3045
- rememberDeviceDays?: number | undefined;
3046
- issuer?: string | undefined;
3047
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
3048
- gracePeriod?: number | undefined;
3049
- adaptive?: {
3050
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
3051
- riskThreshold?: number | undefined;
3052
- riskWeights?: Record<string, number> | undefined;
3053
- riskLevels?: {
3054
- low?: {
3055
- maxScore: number;
3056
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3057
- notifyUser?: boolean | undefined;
3058
- } | undefined;
3059
- medium?: {
3060
- maxScore: number;
3061
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3062
- notifyUser?: boolean | undefined;
3063
- } | undefined;
3064
- high?: {
3065
- maxScore: number;
3066
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3067
- notifyUser?: boolean | undefined;
3068
- } | undefined;
3069
- } | undefined;
3070
- blockedSignIn?: {
3071
- message?: string | undefined;
3072
- scope?: "user" | "device" | "ip" | undefined;
3073
- blockDuration?: number | undefined;
3074
- errorCode?: string | undefined;
3075
- } | undefined;
3076
- maxTravelSpeed?: number | undefined;
3077
- countryChangeThreshold?: number | undefined;
3078
- suspiciousActivityWindow?: number | undefined;
3079
- } | undefined;
3080
- } | undefined;
3081
- phone?: {} | undefined;
3082
- password?: {
3083
- passwordReset?: {
3084
- expiresIn?: number | undefined;
3085
- maxAttempts?: number | undefined;
3086
- rateLimitMax?: number | undefined;
3087
- rateLimitWindow?: number | undefined;
3088
- codeLength?: number | undefined;
3089
- } | undefined;
3090
- minLength?: number | undefined;
3091
- maxLength?: number | undefined;
3092
- requireUppercase?: boolean | undefined;
3093
- requireLowercase?: boolean | undefined;
3094
- requireNumbers?: boolean | undefined;
3095
- requireSpecialChars?: boolean | undefined;
3096
- specialChars?: string | undefined;
3097
- preventCommon?: boolean | undefined;
3098
- preventUserInfo?: boolean | undefined;
3099
- historyCount?: number | undefined;
3100
- expiryDays?: number | undefined;
3101
- } | undefined;
3102
- session?: {
3103
- maxConcurrent?: number | undefined;
3104
- disallowMultipleSessions?: boolean | undefined;
3105
- maxLifetime?: string | number | undefined;
3106
- } | undefined;
3107
- login?: {
3108
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
3109
- } | undefined;
3110
- social?: {
3111
- google?: {
3112
- clientSecret?: string | undefined;
3113
- enabled?: boolean | undefined;
3114
- clientId?: string | string[] | undefined;
3115
- callbackUrl?: string | undefined;
3116
- scopes?: string[] | undefined;
3117
- autoLink?: boolean | undefined;
3118
- allowSignup?: boolean | undefined;
3119
- } | undefined;
3120
- apple?: {
3121
- enabled?: boolean | undefined;
3122
- clientId?: string | string[] | undefined;
3123
- callbackUrl?: string | undefined;
3124
- scopes?: string[] | undefined;
3125
- autoLink?: boolean | undefined;
3126
- allowSignup?: boolean | undefined;
3127
- teamId?: string | undefined;
3128
- keyId?: string | undefined;
3129
- privateKeyPem?: string | undefined;
3130
- } | undefined;
3131
- facebook?: {
3132
- clientSecret?: string | undefined;
3133
- enabled?: boolean | undefined;
3134
- clientId?: string | string[] | undefined;
3135
- callbackUrl?: string | undefined;
3136
- scopes?: string[] | undefined;
3137
- autoLink?: boolean | undefined;
3138
- allowSignup?: boolean | undefined;
3139
- } | undefined;
3140
- redirect?: {
3141
- frontendBaseUrl?: string | undefined;
3142
- allowAbsoluteReturnTo?: boolean | undefined;
3143
- allowedReturnToOrigins?: string[] | undefined;
3144
- } | undefined;
3145
- } | undefined;
3146
- signup?: {
3147
- enabled?: boolean | undefined;
3148
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
3149
- allowDuplicatePhones?: boolean | undefined;
3150
- emailVerification?: {
3151
- expiresIn?: number | undefined;
3152
- baseUrl?: string | undefined;
3153
- maxAttempts?: number | undefined;
3154
- resendDelay?: number | undefined;
3155
- rateLimitMax?: number | undefined;
3156
- rateLimitWindow?: number | undefined;
3157
- maxAttemptsPerUser?: number | undefined;
3158
- maxAttemptsPerIP?: number | undefined;
3159
- attemptWindow?: number | undefined;
3160
- } | undefined;
3161
- phoneVerification?: {
3162
- expiresIn?: number | undefined;
3163
- baseUrl?: string | undefined;
3164
- maxAttempts?: number | undefined;
3165
- resendDelay?: number | undefined;
3166
- rateLimitMax?: number | undefined;
3167
- rateLimitWindow?: number | undefined;
3168
- maxAttemptsPerUser?: number | undefined;
3169
- maxAttemptsPerIP?: number | undefined;
3170
- attemptWindow?: number | undefined;
3171
- codeLength?: number | undefined;
3172
- } | undefined;
3173
- } | undefined;
3174
- tablePrefix?: string | undefined;
3175
- lockout?: {
3176
- enabled?: boolean | undefined;
3177
- duration?: number | undefined;
3178
- maxAttempts?: number | undefined;
3179
- attemptWindow?: number | undefined;
3180
- resetOnSuccess?: boolean | undefined;
3181
- } | undefined;
3182
- security?: {
3183
- csrf?: {
3184
- cookieName?: string | undefined;
3185
- headerName?: string | undefined;
3186
- tokenLength?: number | undefined;
3187
- excludedPaths?: string[] | undefined;
3188
- cookieOptions?: {
3189
- secure?: boolean | undefined;
3190
- sameSite?: "strict" | "lax" | "none" | undefined;
3191
- domain?: string | undefined;
3192
- path?: string | undefined;
3193
- } | undefined;
3194
- } | undefined;
3195
- } | undefined;
3196
- auditLogs?: {
3197
- enabled?: boolean | undefined;
3198
- fireAndForget?: boolean | undefined;
3199
- } | undefined;
3200
- emailNotifications?: {
3201
- enabled?: boolean | undefined;
3202
- suppress?: {
3203
- welcome?: boolean | undefined;
3204
- accountLockout?: boolean | undefined;
3205
- passwordChanged?: boolean | undefined;
3206
- mfaDeviceRemoved?: boolean | undefined;
3207
- mfaMethodAdded?: boolean | undefined;
3208
- accountDisabled?: boolean | undefined;
3209
- accountEnabled?: boolean | undefined;
3210
- emailChangedOld?: boolean | undefined;
3211
- emailChangedNew?: boolean | undefined;
3212
- sessionsRevoked?: boolean | undefined;
3213
- mfaFirstEnabled?: boolean | undefined;
3214
- adaptiveMfaRiskDetected?: boolean | undefined;
3215
- } | undefined;
3216
- } | undefined;
3217
- emailProvider?: any;
3218
- smsProvider?: any;
3219
- storageAdapter?: any;
3220
- logger?: any;
3221
- tokenDelivery?: {
3222
- method?: "json" | "cookies" | "hybrid" | undefined;
3223
- cookieOptions?: {
3224
- secure?: boolean | undefined;
3225
- sameSite?: "strict" | "lax" | "none" | undefined;
3226
- domain?: string | undefined;
3227
- path?: string | undefined;
3228
- } | undefined;
3229
- cookieNamePrefix?: string | undefined;
3230
- hybridPolicy?: {
3231
- webOrigins?: string[] | undefined;
3232
- nativeOrigins?: string[] | undefined;
3233
- } | undefined;
3234
- } | undefined;
3235
- challenge?: {
3236
- maxAttempts?: number | undefined;
3237
- } | undefined;
3238
- geoLocation?: {
3239
- maxMind?: {
3240
- dbPath?: string | undefined;
3241
- skipDownloads?: boolean | undefined;
3242
- licenseKey?: string | undefined;
3243
- accountId?: number | undefined;
3244
- autoDownloadOnStartup?: boolean | undefined;
3245
- editions?: string[] | undefined;
3246
- } | undefined;
3247
- } | undefined;
3248
- }, {
3249
- jwt: {
3250
- accessToken: {
3251
- expiresIn: string | number;
3252
- secret?: string | undefined;
3253
- publicKey?: string | undefined;
3254
- privateKey?: string | undefined;
3255
- };
3256
- refreshToken: {
3257
- expiresIn: string | number;
3258
- secret: string;
3259
- rotation?: boolean | undefined;
3260
- reuseDetection?: boolean | undefined;
3261
- };
3262
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
3263
- issuer?: string | undefined;
3264
- audience?: string | string[] | undefined;
3265
- };
3266
- sms?: {
3267
- templates?: {
3268
- engine?: any;
3269
- customTemplates?: Record<string, {
3270
- contentPath?: string | undefined;
3271
- content?: string | undefined;
3272
- }> | undefined;
3273
- globalVariables?: Record<string, string | number | boolean> | undefined;
3274
- } | undefined;
3275
- } | undefined;
3276
- email?: {
3277
- globalVariables?: z.objectInputType<{
3278
- appName: z.ZodOptional<z.ZodString>;
3279
- companyName: z.ZodOptional<z.ZodString>;
3280
- companyAddress: z.ZodOptional<z.ZodString>;
3281
- brandColor: z.ZodOptional<z.ZodString>;
3282
- logoUrl: z.ZodOptional<z.ZodString>;
3283
- dashboardUrl: z.ZodOptional<z.ZodString>;
3284
- supportEmail: z.ZodOptional<z.ZodString>;
3285
- footerDisclaimer: z.ZodOptional<z.ZodString>;
3286
- }, z.ZodUnknown, "strip"> | undefined;
3287
- templates?: {
3288
- engine?: any;
3289
- customTemplates?: Record<string, {
3290
- htmlPath?: string | undefined;
3291
- html?: string | undefined;
3292
- textPath?: string | undefined;
3293
- text?: string | undefined;
3294
- subject?: string | undefined;
3295
- }> | undefined;
3296
- } | undefined;
3297
- } | undefined;
3298
- mfa?: {
3299
- totp?: {
3300
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
3301
- window?: number | undefined;
3302
- stepSeconds?: number | undefined;
3303
- digits?: number | undefined;
3304
- } | undefined;
3305
- passkey?: {
3306
- rpName: string;
3307
- rpId: string;
3308
- origin?: string | string[] | undefined;
3309
- timeout?: number | undefined;
3310
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
3311
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
3312
- } | undefined;
3313
- backup?: {
3314
- enabled?: boolean | undefined;
3315
- codeLength?: number | undefined;
3316
- codeCount?: number | undefined;
3317
- } | undefined;
3318
- enabled?: boolean | undefined;
3319
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
3320
- requireForSocialLogin?: boolean | undefined;
3321
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
3322
- bypassMFAForTrustedDevices?: boolean | undefined;
3323
- rememberDeviceDays?: number | undefined;
3324
- issuer?: string | undefined;
3325
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
3326
- gracePeriod?: number | undefined;
3327
- adaptive?: {
3328
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
3329
- riskThreshold?: number | undefined;
3330
- riskWeights?: Record<string, number> | undefined;
3331
- riskLevels?: {
3332
- low?: {
3333
- maxScore: number;
3334
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3335
- notifyUser?: boolean | undefined;
3336
- } | undefined;
3337
- medium?: {
3338
- maxScore: number;
3339
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3340
- notifyUser?: boolean | undefined;
3341
- } | undefined;
3342
- high?: {
3343
- maxScore: number;
3344
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3345
- notifyUser?: boolean | undefined;
3346
- } | undefined;
3347
- } | undefined;
3348
- blockedSignIn?: {
3349
- message?: string | undefined;
3350
- scope?: "user" | "device" | "ip" | undefined;
3351
- blockDuration?: number | undefined;
3352
- errorCode?: string | undefined;
3353
- } | undefined;
3354
- maxTravelSpeed?: number | undefined;
3355
- countryChangeThreshold?: number | undefined;
3356
- suspiciousActivityWindow?: number | undefined;
3357
- } | undefined;
3358
- } | undefined;
3359
- phone?: {} | undefined;
3360
- password?: {
3361
- passwordReset?: {
3362
- expiresIn?: number | undefined;
3363
- maxAttempts?: number | undefined;
3364
- rateLimitMax?: number | undefined;
3365
- rateLimitWindow?: number | undefined;
3366
- codeLength?: number | undefined;
3367
- } | undefined;
3368
- minLength?: number | undefined;
3369
- maxLength?: number | undefined;
3370
- requireUppercase?: boolean | undefined;
3371
- requireLowercase?: boolean | undefined;
3372
- requireNumbers?: boolean | undefined;
3373
- requireSpecialChars?: boolean | undefined;
3374
- specialChars?: string | undefined;
3375
- preventCommon?: boolean | undefined;
3376
- preventUserInfo?: boolean | undefined;
3377
- historyCount?: number | undefined;
3378
- expiryDays?: number | undefined;
3379
- } | undefined;
3380
- session?: {
3381
- maxConcurrent?: number | undefined;
3382
- disallowMultipleSessions?: boolean | undefined;
3383
- maxLifetime?: string | number | undefined;
3384
- } | undefined;
3385
- login?: {
3386
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
3387
- } | undefined;
3388
- social?: {
3389
- google?: {
3390
- clientSecret?: string | undefined;
3391
- enabled?: boolean | undefined;
3392
- clientId?: string | string[] | undefined;
3393
- callbackUrl?: string | undefined;
3394
- scopes?: string[] | undefined;
3395
- autoLink?: boolean | undefined;
3396
- allowSignup?: boolean | undefined;
3397
- } | undefined;
3398
- apple?: {
3399
- enabled?: boolean | undefined;
3400
- clientId?: string | string[] | undefined;
3401
- callbackUrl?: string | undefined;
3402
- scopes?: string[] | undefined;
3403
- autoLink?: boolean | undefined;
3404
- allowSignup?: boolean | undefined;
3405
- teamId?: string | undefined;
3406
- keyId?: string | undefined;
3407
- privateKeyPem?: string | undefined;
3408
- } | undefined;
3409
- facebook?: {
3410
- clientSecret?: string | undefined;
3411
- enabled?: boolean | undefined;
3412
- clientId?: string | string[] | undefined;
3413
- callbackUrl?: string | undefined;
3414
- scopes?: string[] | undefined;
3415
- autoLink?: boolean | undefined;
3416
- allowSignup?: boolean | undefined;
3417
- } | undefined;
3418
- redirect?: {
3419
- frontendBaseUrl?: string | undefined;
3420
- allowAbsoluteReturnTo?: boolean | undefined;
3421
- allowedReturnToOrigins?: string[] | undefined;
3422
- } | undefined;
3423
- } | undefined;
3424
- signup?: {
3425
- enabled?: boolean | undefined;
3426
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
3427
- allowDuplicatePhones?: boolean | undefined;
3428
- emailVerification?: {
3429
- expiresIn?: number | undefined;
3430
- baseUrl?: string | undefined;
3431
- maxAttempts?: number | undefined;
3432
- resendDelay?: number | undefined;
3433
- rateLimitMax?: number | undefined;
3434
- rateLimitWindow?: number | undefined;
3435
- maxAttemptsPerUser?: number | undefined;
3436
- maxAttemptsPerIP?: number | undefined;
3437
- attemptWindow?: number | undefined;
3438
- } | undefined;
3439
- phoneVerification?: {
3440
- expiresIn?: number | undefined;
3441
- baseUrl?: string | undefined;
3442
- maxAttempts?: number | undefined;
3443
- resendDelay?: number | undefined;
3444
- rateLimitMax?: number | undefined;
3445
- rateLimitWindow?: number | undefined;
3446
- maxAttemptsPerUser?: number | undefined;
3447
- maxAttemptsPerIP?: number | undefined;
3448
- attemptWindow?: number | undefined;
3449
- codeLength?: number | undefined;
3450
- } | undefined;
3451
- } | undefined;
3452
- tablePrefix?: string | undefined;
3453
- lockout?: {
3454
- enabled?: boolean | undefined;
3455
- duration?: number | undefined;
3456
- maxAttempts?: number | undefined;
3457
- attemptWindow?: number | undefined;
3458
- resetOnSuccess?: boolean | undefined;
3459
- } | undefined;
3460
- security?: {
3461
- csrf?: {
3462
- cookieName?: string | undefined;
3463
- headerName?: string | undefined;
3464
- tokenLength?: number | undefined;
3465
- excludedPaths?: string[] | undefined;
3466
- cookieOptions?: {
3467
- secure?: boolean | undefined;
3468
- sameSite?: "strict" | "lax" | "none" | undefined;
3469
- domain?: string | undefined;
3470
- path?: string | undefined;
3471
- } | undefined;
3472
- } | undefined;
3473
- } | undefined;
3474
- auditLogs?: {
3475
- enabled?: boolean | undefined;
3476
- fireAndForget?: boolean | undefined;
3477
- } | undefined;
3478
- emailNotifications?: {
3479
- enabled?: boolean | undefined;
3480
- suppress?: {
3481
- welcome?: boolean | undefined;
3482
- accountLockout?: boolean | undefined;
3483
- passwordChanged?: boolean | undefined;
3484
- mfaDeviceRemoved?: boolean | undefined;
3485
- mfaMethodAdded?: boolean | undefined;
3486
- accountDisabled?: boolean | undefined;
3487
- accountEnabled?: boolean | undefined;
3488
- emailChangedOld?: boolean | undefined;
3489
- emailChangedNew?: boolean | undefined;
3490
- sessionsRevoked?: boolean | undefined;
3491
- mfaFirstEnabled?: boolean | undefined;
3492
- adaptiveMfaRiskDetected?: boolean | undefined;
3493
- } | undefined;
3494
- } | undefined;
3495
- emailProvider?: any;
3496
- smsProvider?: any;
3497
- storageAdapter?: any;
3498
- logger?: any;
3499
- tokenDelivery?: {
3500
- method?: "json" | "cookies" | "hybrid" | undefined;
3501
- cookieOptions?: {
3502
- secure?: boolean | undefined;
3503
- sameSite?: "strict" | "lax" | "none" | undefined;
3504
- domain?: string | undefined;
3505
- path?: string | undefined;
3506
- } | undefined;
3507
- cookieNamePrefix?: string | undefined;
3508
- hybridPolicy?: {
3509
- webOrigins?: string[] | undefined;
3510
- nativeOrigins?: string[] | undefined;
3511
- } | undefined;
3512
- } | undefined;
3513
- challenge?: {
3514
- maxAttempts?: number | undefined;
3515
- } | undefined;
3516
- geoLocation?: {
3517
- maxMind?: {
3518
- dbPath?: string | undefined;
3519
- skipDownloads?: boolean | undefined;
3520
- licenseKey?: string | undefined;
3521
- accountId?: number | undefined;
3522
- autoDownloadOnStartup?: boolean | undefined;
3523
- editions?: string[] | undefined;
3524
- } | undefined;
3525
- } | undefined;
3526
- }>, {
3527
- jwt: {
3528
- accessToken: {
3529
- expiresIn: string | number;
3530
- secret?: string | undefined;
3531
- publicKey?: string | undefined;
3532
- privateKey?: string | undefined;
3533
- };
3534
- refreshToken: {
3535
- expiresIn: string | number;
3536
- secret: string;
3537
- rotation?: boolean | undefined;
3538
- reuseDetection?: boolean | undefined;
3539
- };
3540
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
3541
- issuer?: string | undefined;
3542
- audience?: string | string[] | undefined;
3543
- };
3544
- sms?: {
3545
- templates?: {
3546
- engine?: any;
3547
- customTemplates?: Record<string, {
3548
- contentPath?: string | undefined;
3549
- content?: string | undefined;
3550
- }> | undefined;
3551
- globalVariables?: Record<string, string | number | boolean> | undefined;
3552
- } | undefined;
3553
- } | undefined;
3554
- email?: {
3555
- globalVariables?: z.objectOutputType<{
3556
- appName: z.ZodOptional<z.ZodString>;
3557
- companyName: z.ZodOptional<z.ZodString>;
3558
- companyAddress: z.ZodOptional<z.ZodString>;
3559
- brandColor: z.ZodOptional<z.ZodString>;
3560
- logoUrl: z.ZodOptional<z.ZodString>;
3561
- dashboardUrl: z.ZodOptional<z.ZodString>;
3562
- supportEmail: z.ZodOptional<z.ZodString>;
3563
- footerDisclaimer: z.ZodOptional<z.ZodString>;
3564
- }, z.ZodUnknown, "strip"> | undefined;
3565
- templates?: {
3566
- engine?: any;
3567
- customTemplates?: Record<string, {
3568
- htmlPath?: string | undefined;
3569
- html?: string | undefined;
3570
- textPath?: string | undefined;
3571
- text?: string | undefined;
3572
- subject?: string | undefined;
3573
- }> | undefined;
3574
- } | undefined;
3575
- } | undefined;
3576
- mfa?: {
3577
- totp?: {
3578
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
3579
- window?: number | undefined;
3580
- stepSeconds?: number | undefined;
3581
- digits?: number | undefined;
3582
- } | undefined;
3583
- passkey?: {
3584
- rpName: string;
3585
- rpId: string;
3586
- origin?: string | string[] | undefined;
3587
- timeout?: number | undefined;
3588
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
3589
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
3590
- } | undefined;
3591
- backup?: {
3592
- enabled?: boolean | undefined;
3593
- codeLength?: number | undefined;
3594
- codeCount?: number | undefined;
3595
- } | undefined;
3596
- enabled?: boolean | undefined;
3597
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
3598
- requireForSocialLogin?: boolean | undefined;
3599
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
3600
- bypassMFAForTrustedDevices?: boolean | undefined;
3601
- rememberDeviceDays?: number | undefined;
3602
- issuer?: string | undefined;
3603
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
3604
- gracePeriod?: number | undefined;
3605
- adaptive?: {
3606
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
3607
- riskThreshold?: number | undefined;
3608
- riskWeights?: Record<string, number> | undefined;
3609
- riskLevels?: {
3610
- low?: {
3611
- maxScore: number;
3612
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3613
- notifyUser?: boolean | undefined;
3614
- } | undefined;
3615
- medium?: {
3616
- maxScore: number;
3617
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3618
- notifyUser?: boolean | undefined;
3619
- } | undefined;
3620
- high?: {
3621
- maxScore: number;
3622
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3623
- notifyUser?: boolean | undefined;
3624
- } | undefined;
3625
- } | undefined;
3626
- blockedSignIn?: {
3627
- message?: string | undefined;
3628
- scope?: "user" | "device" | "ip" | undefined;
3629
- blockDuration?: number | undefined;
3630
- errorCode?: string | undefined;
3631
- } | undefined;
3632
- maxTravelSpeed?: number | undefined;
3633
- countryChangeThreshold?: number | undefined;
3634
- suspiciousActivityWindow?: number | undefined;
3635
- } | undefined;
3636
- } | undefined;
3637
- phone?: {} | undefined;
3638
- password?: {
3639
- passwordReset?: {
3640
- expiresIn?: number | undefined;
3641
- maxAttempts?: number | undefined;
3642
- rateLimitMax?: number | undefined;
3643
- rateLimitWindow?: number | undefined;
3644
- codeLength?: number | undefined;
3645
- } | undefined;
3646
- minLength?: number | undefined;
3647
- maxLength?: number | undefined;
3648
- requireUppercase?: boolean | undefined;
3649
- requireLowercase?: boolean | undefined;
3650
- requireNumbers?: boolean | undefined;
3651
- requireSpecialChars?: boolean | undefined;
3652
- specialChars?: string | undefined;
3653
- preventCommon?: boolean | undefined;
3654
- preventUserInfo?: boolean | undefined;
3655
- historyCount?: number | undefined;
3656
- expiryDays?: number | undefined;
3657
- } | undefined;
3658
- session?: {
3659
- maxConcurrent?: number | undefined;
3660
- disallowMultipleSessions?: boolean | undefined;
3661
- maxLifetime?: string | number | undefined;
3662
- } | undefined;
3663
- login?: {
3664
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
3665
- } | undefined;
3666
- social?: {
3667
- google?: {
3668
- clientSecret?: string | undefined;
3669
- enabled?: boolean | undefined;
3670
- clientId?: string | string[] | undefined;
3671
- callbackUrl?: string | undefined;
3672
- scopes?: string[] | undefined;
3673
- autoLink?: boolean | undefined;
3674
- allowSignup?: boolean | undefined;
3675
- } | undefined;
3676
- apple?: {
3677
- enabled?: boolean | undefined;
3678
- clientId?: string | string[] | undefined;
3679
- callbackUrl?: string | undefined;
3680
- scopes?: string[] | undefined;
3681
- autoLink?: boolean | undefined;
3682
- allowSignup?: boolean | undefined;
3683
- teamId?: string | undefined;
3684
- keyId?: string | undefined;
3685
- privateKeyPem?: string | undefined;
3686
- } | undefined;
3687
- facebook?: {
3688
- clientSecret?: string | undefined;
3689
- enabled?: boolean | undefined;
3690
- clientId?: string | string[] | undefined;
3691
- callbackUrl?: string | undefined;
3692
- scopes?: string[] | undefined;
3693
- autoLink?: boolean | undefined;
3694
- allowSignup?: boolean | undefined;
3695
- } | undefined;
3696
- redirect?: {
3697
- frontendBaseUrl?: string | undefined;
3698
- allowAbsoluteReturnTo?: boolean | undefined;
3699
- allowedReturnToOrigins?: string[] | undefined;
3700
- } | undefined;
3701
- } | undefined;
3702
- signup?: {
3703
- enabled?: boolean | undefined;
3704
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
3705
- allowDuplicatePhones?: boolean | undefined;
3706
- emailVerification?: {
3707
- expiresIn?: number | undefined;
3708
- baseUrl?: string | undefined;
3709
- maxAttempts?: number | undefined;
3710
- resendDelay?: number | undefined;
3711
- rateLimitMax?: number | undefined;
3712
- rateLimitWindow?: number | undefined;
3713
- maxAttemptsPerUser?: number | undefined;
3714
- maxAttemptsPerIP?: number | undefined;
3715
- attemptWindow?: number | undefined;
3716
- } | undefined;
3717
- phoneVerification?: {
3718
- expiresIn?: number | undefined;
3719
- baseUrl?: string | undefined;
3720
- maxAttempts?: number | undefined;
3721
- resendDelay?: number | undefined;
3722
- rateLimitMax?: number | undefined;
3723
- rateLimitWindow?: number | undefined;
3724
- maxAttemptsPerUser?: number | undefined;
3725
- maxAttemptsPerIP?: number | undefined;
3726
- attemptWindow?: number | undefined;
3727
- codeLength?: number | undefined;
3728
- } | undefined;
3729
- } | undefined;
3730
- tablePrefix?: string | undefined;
3731
- lockout?: {
3732
- enabled?: boolean | undefined;
3733
- duration?: number | undefined;
3734
- maxAttempts?: number | undefined;
3735
- attemptWindow?: number | undefined;
3736
- resetOnSuccess?: boolean | undefined;
3737
- } | undefined;
3738
- security?: {
3739
- csrf?: {
3740
- cookieName?: string | undefined;
3741
- headerName?: string | undefined;
3742
- tokenLength?: number | undefined;
3743
- excludedPaths?: string[] | undefined;
3744
- cookieOptions?: {
3745
- secure?: boolean | undefined;
3746
- sameSite?: "strict" | "lax" | "none" | undefined;
3747
- domain?: string | undefined;
3748
- path?: string | undefined;
3749
- } | undefined;
3750
- } | undefined;
3751
- } | undefined;
3752
- auditLogs?: {
3753
- enabled?: boolean | undefined;
3754
- fireAndForget?: boolean | undefined;
3755
- } | undefined;
3756
- emailNotifications?: {
3757
- enabled?: boolean | undefined;
3758
- suppress?: {
3759
- welcome?: boolean | undefined;
3760
- accountLockout?: boolean | undefined;
3761
- passwordChanged?: boolean | undefined;
3762
- mfaDeviceRemoved?: boolean | undefined;
3763
- mfaMethodAdded?: boolean | undefined;
3764
- accountDisabled?: boolean | undefined;
3765
- accountEnabled?: boolean | undefined;
3766
- emailChangedOld?: boolean | undefined;
3767
- emailChangedNew?: boolean | undefined;
3768
- sessionsRevoked?: boolean | undefined;
3769
- mfaFirstEnabled?: boolean | undefined;
3770
- adaptiveMfaRiskDetected?: boolean | undefined;
3771
- } | undefined;
3772
- } | undefined;
3773
- emailProvider?: any;
3774
- smsProvider?: any;
3775
- storageAdapter?: any;
3776
- logger?: any;
3777
- tokenDelivery?: {
3778
- method?: "json" | "cookies" | "hybrid" | undefined;
3779
- cookieOptions?: {
3780
- secure?: boolean | undefined;
3781
- sameSite?: "strict" | "lax" | "none" | undefined;
3782
- domain?: string | undefined;
3783
- path?: string | undefined;
3784
- } | undefined;
3785
- cookieNamePrefix?: string | undefined;
3786
- hybridPolicy?: {
3787
- webOrigins?: string[] | undefined;
3788
- nativeOrigins?: string[] | undefined;
3789
- } | undefined;
3790
- } | undefined;
3791
- challenge?: {
3792
- maxAttempts?: number | undefined;
3793
- } | undefined;
3794
- geoLocation?: {
3795
- maxMind?: {
3796
- dbPath?: string | undefined;
3797
- skipDownloads?: boolean | undefined;
3798
- licenseKey?: string | undefined;
3799
- accountId?: number | undefined;
3800
- autoDownloadOnStartup?: boolean | undefined;
3801
- editions?: string[] | undefined;
3802
- } | undefined;
3803
- } | undefined;
3804
- }, {
3805
- jwt: {
3806
- accessToken: {
3807
- expiresIn: string | number;
3808
- secret?: string | undefined;
3809
- publicKey?: string | undefined;
3810
- privateKey?: string | undefined;
3811
- };
3812
- refreshToken: {
3813
- expiresIn: string | number;
3814
- secret: string;
3815
- rotation?: boolean | undefined;
3816
- reuseDetection?: boolean | undefined;
3817
- };
3818
- algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | undefined;
3819
- issuer?: string | undefined;
3820
- audience?: string | string[] | undefined;
3821
- };
3822
- sms?: {
3823
- templates?: {
3824
- engine?: any;
3825
- customTemplates?: Record<string, {
3826
- contentPath?: string | undefined;
3827
- content?: string | undefined;
3828
- }> | undefined;
3829
- globalVariables?: Record<string, string | number | boolean> | undefined;
3830
- } | undefined;
3831
- } | undefined;
3832
- email?: {
3833
- globalVariables?: z.objectInputType<{
3834
- appName: z.ZodOptional<z.ZodString>;
3835
- companyName: z.ZodOptional<z.ZodString>;
3836
- companyAddress: z.ZodOptional<z.ZodString>;
3837
- brandColor: z.ZodOptional<z.ZodString>;
3838
- logoUrl: z.ZodOptional<z.ZodString>;
3839
- dashboardUrl: z.ZodOptional<z.ZodString>;
3840
- supportEmail: z.ZodOptional<z.ZodString>;
3841
- footerDisclaimer: z.ZodOptional<z.ZodString>;
3842
- }, z.ZodUnknown, "strip"> | undefined;
3843
- templates?: {
3844
- engine?: any;
3845
- customTemplates?: Record<string, {
3846
- htmlPath?: string | undefined;
3847
- html?: string | undefined;
3848
- textPath?: string | undefined;
3849
- text?: string | undefined;
3850
- subject?: string | undefined;
3851
- }> | undefined;
3852
- } | undefined;
3853
- } | undefined;
3854
- mfa?: {
3855
- totp?: {
3856
- algorithm?: "sha1" | "sha256" | "sha512" | undefined;
3857
- window?: number | undefined;
3858
- stepSeconds?: number | undefined;
3859
- digits?: number | undefined;
3860
- } | undefined;
3861
- passkey?: {
3862
- rpName: string;
3863
- rpId: string;
3864
- origin?: string | string[] | undefined;
3865
- timeout?: number | undefined;
3866
- userVerification?: "required" | "preferred" | "discouraged" | undefined;
3867
- authenticatorAttachment?: "platform" | "cross-platform" | undefined;
3868
- } | undefined;
3869
- backup?: {
3870
- enabled?: boolean | undefined;
3871
- codeLength?: number | undefined;
3872
- codeCount?: number | undefined;
3873
- } | undefined;
3874
- enabled?: boolean | undefined;
3875
- rememberDevices?: "always" | "user_opt_in" | "never" | undefined;
3876
- requireForSocialLogin?: boolean | undefined;
3877
- allowedMethods?: ("totp" | "sms" | "email" | "passkey")[] | undefined;
3878
- bypassMFAForTrustedDevices?: boolean | undefined;
3879
- rememberDeviceDays?: number | undefined;
3880
- issuer?: string | undefined;
3881
- enforcement?: "OPTIONAL" | "REQUIRED" | "ADAPTIVE" | undefined;
3882
- gracePeriod?: number | undefined;
3883
- adaptive?: {
3884
- triggers?: ("new_device" | "new_ip" | "new_country" | "impossible_travel" | "suspicious_activity" | "recent_password_reset")[] | undefined;
3885
- riskThreshold?: number | undefined;
3886
- riskWeights?: Record<string, number> | undefined;
3887
- riskLevels?: {
3888
- low?: {
3889
- maxScore: number;
3890
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3891
- notifyUser?: boolean | undefined;
3892
- } | undefined;
3893
- medium?: {
3894
- maxScore: number;
3895
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3896
- notifyUser?: boolean | undefined;
3897
- } | undefined;
3898
- high?: {
3899
- maxScore: number;
3900
- action?: "allow" | "require_mfa" | "block_signin" | undefined;
3901
- notifyUser?: boolean | undefined;
3902
- } | undefined;
3903
- } | undefined;
3904
- blockedSignIn?: {
3905
- message?: string | undefined;
3906
- scope?: "user" | "device" | "ip" | undefined;
3907
- blockDuration?: number | undefined;
3908
- errorCode?: string | undefined;
3909
- } | undefined;
3910
- maxTravelSpeed?: number | undefined;
3911
- countryChangeThreshold?: number | undefined;
3912
- suspiciousActivityWindow?: number | undefined;
3913
- } | undefined;
3914
- } | undefined;
3915
- phone?: {} | undefined;
3916
- password?: {
3917
- passwordReset?: {
3918
- expiresIn?: number | undefined;
3919
- maxAttempts?: number | undefined;
3920
- rateLimitMax?: number | undefined;
3921
- rateLimitWindow?: number | undefined;
3922
- codeLength?: number | undefined;
3923
- } | undefined;
3924
- minLength?: number | undefined;
3925
- maxLength?: number | undefined;
3926
- requireUppercase?: boolean | undefined;
3927
- requireLowercase?: boolean | undefined;
3928
- requireNumbers?: boolean | undefined;
3929
- requireSpecialChars?: boolean | undefined;
3930
- specialChars?: string | undefined;
3931
- preventCommon?: boolean | undefined;
3932
- preventUserInfo?: boolean | undefined;
3933
- historyCount?: number | undefined;
3934
- expiryDays?: number | undefined;
3935
- } | undefined;
3936
- session?: {
3937
- maxConcurrent?: number | undefined;
3938
- disallowMultipleSessions?: boolean | undefined;
3939
- maxLifetime?: string | number | undefined;
3940
- } | undefined;
3941
- login?: {
3942
- identifierType?: "email" | "phone" | "username" | "email_or_username" | undefined;
3943
- } | undefined;
3944
- social?: {
3945
- google?: {
3946
- clientSecret?: string | undefined;
3947
- enabled?: boolean | undefined;
3948
- clientId?: string | string[] | undefined;
3949
- callbackUrl?: string | undefined;
3950
- scopes?: string[] | undefined;
3951
- autoLink?: boolean | undefined;
3952
- allowSignup?: boolean | undefined;
3953
- } | undefined;
3954
- apple?: {
3955
- enabled?: boolean | undefined;
3956
- clientId?: string | string[] | undefined;
3957
- callbackUrl?: string | undefined;
3958
- scopes?: string[] | undefined;
3959
- autoLink?: boolean | undefined;
3960
- allowSignup?: boolean | undefined;
3961
- teamId?: string | undefined;
3962
- keyId?: string | undefined;
3963
- privateKeyPem?: string | undefined;
3964
- } | undefined;
3965
- facebook?: {
3966
- clientSecret?: string | undefined;
3967
- enabled?: boolean | undefined;
3968
- clientId?: string | string[] | undefined;
3969
- callbackUrl?: string | undefined;
3970
- scopes?: string[] | undefined;
3971
- autoLink?: boolean | undefined;
3972
- allowSignup?: boolean | undefined;
3973
- } | undefined;
3974
- redirect?: {
3975
- frontendBaseUrl?: string | undefined;
3976
- allowAbsoluteReturnTo?: boolean | undefined;
3977
- allowedReturnToOrigins?: string[] | undefined;
3978
- } | undefined;
3979
- } | undefined;
3980
- signup?: {
3981
- enabled?: boolean | undefined;
3982
- verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
3983
- allowDuplicatePhones?: boolean | undefined;
3984
- emailVerification?: {
3985
- expiresIn?: number | undefined;
3986
- baseUrl?: string | undefined;
3987
- maxAttempts?: number | undefined;
3988
- resendDelay?: number | undefined;
3989
- rateLimitMax?: number | undefined;
3990
- rateLimitWindow?: number | undefined;
3991
- maxAttemptsPerUser?: number | undefined;
3992
- maxAttemptsPerIP?: number | undefined;
3993
- attemptWindow?: number | undefined;
3994
- } | undefined;
3995
- phoneVerification?: {
3996
- expiresIn?: number | undefined;
3997
- baseUrl?: string | undefined;
3998
- maxAttempts?: number | undefined;
3999
- resendDelay?: number | undefined;
4000
- rateLimitMax?: number | undefined;
4001
- rateLimitWindow?: number | undefined;
4002
- maxAttemptsPerUser?: number | undefined;
4003
- maxAttemptsPerIP?: number | undefined;
4004
- attemptWindow?: number | undefined;
4005
- codeLength?: number | undefined;
4006
- } | undefined;
4007
- } | undefined;
4008
- tablePrefix?: string | undefined;
4009
- lockout?: {
4010
- enabled?: boolean | undefined;
4011
- duration?: number | undefined;
4012
- maxAttempts?: number | undefined;
4013
- attemptWindow?: number | undefined;
4014
- resetOnSuccess?: boolean | undefined;
4015
- } | undefined;
4016
- security?: {
4017
- csrf?: {
4018
- cookieName?: string | undefined;
4019
- headerName?: string | undefined;
4020
- tokenLength?: number | undefined;
4021
- excludedPaths?: string[] | undefined;
4022
- cookieOptions?: {
4023
- secure?: boolean | undefined;
4024
- sameSite?: "strict" | "lax" | "none" | undefined;
4025
- domain?: string | undefined;
4026
- path?: string | undefined;
4027
- } | undefined;
4028
- } | undefined;
4029
- } | undefined;
4030
- auditLogs?: {
4031
- enabled?: boolean | undefined;
4032
- fireAndForget?: boolean | undefined;
4033
- } | undefined;
4034
- emailNotifications?: {
4035
- enabled?: boolean | undefined;
4036
- suppress?: {
4037
- welcome?: boolean | undefined;
4038
- accountLockout?: boolean | undefined;
4039
- passwordChanged?: boolean | undefined;
4040
- mfaDeviceRemoved?: boolean | undefined;
4041
- mfaMethodAdded?: boolean | undefined;
4042
- accountDisabled?: boolean | undefined;
4043
- accountEnabled?: boolean | undefined;
4044
- emailChangedOld?: boolean | undefined;
4045
- emailChangedNew?: boolean | undefined;
4046
- sessionsRevoked?: boolean | undefined;
4047
- mfaFirstEnabled?: boolean | undefined;
4048
- adaptiveMfaRiskDetected?: boolean | undefined;
4049
- } | undefined;
4050
- } | undefined;
4051
- emailProvider?: any;
4052
- smsProvider?: any;
4053
- storageAdapter?: any;
4054
- logger?: any;
4055
- tokenDelivery?: {
4056
- method?: "json" | "cookies" | "hybrid" | undefined;
4057
- cookieOptions?: {
4058
- secure?: boolean | undefined;
4059
- sameSite?: "strict" | "lax" | "none" | undefined;
4060
- domain?: string | undefined;
4061
- path?: string | undefined;
4062
- } | undefined;
4063
- cookieNamePrefix?: string | undefined;
4064
- hybridPolicy?: {
4065
- webOrigins?: string[] | undefined;
4066
- nativeOrigins?: string[] | undefined;
4067
- } | undefined;
4068
- } | undefined;
4069
- challenge?: {
4070
- maxAttempts?: number | undefined;
4071
- } | undefined;
4072
- geoLocation?: {
4073
- maxMind?: {
4074
- dbPath?: string | undefined;
4075
- skipDownloads?: boolean | undefined;
4076
- licenseKey?: string | undefined;
4077
- accountId?: number | undefined;
4078
- autoDownloadOnStartup?: boolean | undefined;
4079
- editions?: string[] | undefined;
4080
- } | undefined;
4081
- } | undefined;
4082
- }>;
871
+ editions: z.ZodOptional<z.ZodArray<z.ZodString>>;
872
+ }, z.core.$strip>>;
873
+ }, z.core.$strip>>;
874
+ }, z.core.$strip>;
4083
875
  /**
4084
876
  * Type inference from Zod schema
4085
877
  * This provides type safety while Zod provides runtime validation