@nauth-toolkit/core 0.1.60 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +0 -22
- package/dist/bootstrap.js.map +1 -1
- package/dist/dto/change-password-request.dto.d.ts +5 -2
- package/dist/dto/change-password-request.dto.d.ts.map +1 -1
- package/dist/dto/change-password-request.dto.js +6 -1
- package/dist/dto/change-password-request.dto.js.map +1 -1
- package/dist/dto/logout-all.dto.d.ts +5 -2
- package/dist/dto/logout-all.dto.d.ts.map +1 -1
- package/dist/dto/logout-all.dto.js +6 -1
- package/dist/dto/logout-all.dto.js.map +1 -1
- package/dist/dto/refresh-token.dto.d.ts +19 -7
- package/dist/dto/refresh-token.dto.d.ts.map +1 -1
- package/dist/dto/refresh-token.dto.js +20 -6
- package/dist/dto/refresh-token.dto.js.map +1 -1
- package/dist/dto/setup-mfa.dto.d.ts +5 -2
- package/dist/dto/setup-mfa.dto.d.ts.map +1 -1
- package/dist/dto/setup-mfa.dto.js +6 -1
- package/dist/dto/setup-mfa.dto.js.map +1 -1
- package/dist/dto/update-user-attributes-request.dto.d.ts +5 -2
- package/dist/dto/update-user-attributes-request.dto.d.ts.map +1 -1
- package/dist/dto/update-user-attributes-request.dto.js +6 -1
- package/dist/dto/update-user-attributes-request.dto.js.map +1 -1
- package/dist/handlers/csrf.handler.d.ts.map +1 -1
- package/dist/handlers/csrf.handler.js +12 -1
- package/dist/handlers/csrf.handler.js.map +1 -1
- package/dist/interfaces/config.interface.d.ts +306 -76
- package/dist/interfaces/config.interface.d.ts.map +1 -1
- package/dist/interfaces/hooks.interface.d.ts +753 -7
- package/dist/interfaces/hooks.interface.d.ts.map +1 -1
- package/dist/interfaces/provider.interface.d.ts +143 -0
- package/dist/interfaces/provider.interface.d.ts.map +1 -1
- package/dist/interfaces/template.interface.d.ts +20 -43
- package/dist/interfaces/template.interface.d.ts.map +1 -1
- package/dist/interfaces/template.interface.js +8 -0
- package/dist/interfaces/template.interface.js.map +1 -1
- package/dist/internal.d.ts +5 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +7 -1
- package/dist/internal.js.map +1 -1
- package/dist/schemas/auth-config.schema.d.ts +445 -104
- package/dist/schemas/auth-config.schema.d.ts.map +1 -1
- package/dist/schemas/auth-config.schema.js +55 -8
- package/dist/schemas/auth-config.schema.js.map +1 -1
- package/dist/services/adaptive-mfa-decision.service.d.ts +25 -1
- package/dist/services/adaptive-mfa-decision.service.d.ts.map +1 -1
- package/dist/services/adaptive-mfa-decision.service.js +91 -8
- package/dist/services/adaptive-mfa-decision.service.js.map +1 -1
- package/dist/services/auth-audit.service.d.ts.map +1 -1
- package/dist/services/auth-audit.service.js +25 -4
- package/dist/services/auth-audit.service.js.map +1 -1
- package/dist/services/auth-flow-context-builder.service.d.ts.map +1 -1
- package/dist/services/auth-flow-context-builder.service.js +8 -1
- package/dist/services/auth-flow-context-builder.service.js.map +1 -1
- package/dist/services/auth-service-internal-helpers.d.ts +3 -1
- package/dist/services/auth-service-internal-helpers.d.ts.map +1 -1
- package/dist/services/auth-service-internal-helpers.js +28 -1
- package/dist/services/auth-service-internal-helpers.js.map +1 -1
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +84 -27
- package/dist/services/auth.service.js.map +1 -1
- package/dist/services/email-notifications.hook.d.ts +14 -0
- package/dist/services/email-notifications.hook.d.ts.map +1 -0
- package/dist/services/email-notifications.hook.js +254 -0
- package/dist/services/email-notifications.hook.js.map +1 -0
- package/dist/services/email-verification.service.d.ts.map +1 -1
- package/dist/services/email-verification.service.js +55 -0
- package/dist/services/email-verification.service.js.map +1 -1
- package/dist/services/hook-registry.service.d.ts +222 -1
- package/dist/services/hook-registry.service.d.ts.map +1 -1
- package/dist/services/hook-registry.service.js +391 -0
- package/dist/services/hook-registry.service.js.map +1 -1
- package/dist/services/mfa-base.service.d.ts +3 -1
- package/dist/services/mfa-base.service.d.ts.map +1 -1
- package/dist/services/mfa-base.service.js +70 -1
- package/dist/services/mfa-base.service.js.map +1 -1
- package/dist/services/mfa.service.d.ts +3 -1
- package/dist/services/mfa.service.d.ts.map +1 -1
- package/dist/services/mfa.service.js +32 -1
- package/dist/services/mfa.service.js.map +1 -1
- package/dist/services/password-reset.service.d.ts.map +1 -1
- package/dist/services/password-reset.service.js +5 -3
- package/dist/services/password-reset.service.js.map +1 -1
- package/dist/services/phone-verification.service.d.ts.map +1 -1
- package/dist/services/phone-verification.service.js +56 -2
- package/dist/services/phone-verification.service.js.map +1 -1
- package/dist/services/user.service.d.ts.map +1 -1
- package/dist/services/user.service.js +84 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/utils/setup/init-services.d.ts.map +1 -1
- package/dist/utils/setup/init-services.js +22 -23
- package/dist/utils/setup/init-services.js.map +1 -1
- package/dist/validators/template.validator.d.ts.map +1 -1
- package/dist/validators/template.validator.js +8 -0
- package/dist/validators/template.validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -424,16 +424,36 @@ export declare const securityConfigSchema: z.ZodObject<{
|
|
|
424
424
|
* Email configuration schema
|
|
425
425
|
*/
|
|
426
426
|
export declare const emailConfigSchema: z.ZodObject<{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
427
|
+
globalVariables: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
429
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
430
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
431
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
432
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
433
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
434
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
435
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
436
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
437
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
438
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
439
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
440
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
441
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
442
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
443
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
444
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
445
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
446
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
447
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
448
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
449
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
450
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
451
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
452
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
453
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.ZodUnknown, "strip">>>;
|
|
434
455
|
templates: z.ZodOptional<z.ZodObject<{
|
|
435
456
|
engine: z.ZodOptional<z.ZodAny>;
|
|
436
|
-
globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
437
457
|
customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
438
458
|
htmlPath: z.ZodOptional<z.ZodString>;
|
|
439
459
|
html: z.ZodOptional<z.ZodString>;
|
|
@@ -489,9 +509,8 @@ export declare const emailConfigSchema: z.ZodObject<{
|
|
|
489
509
|
text?: string | undefined;
|
|
490
510
|
subject?: string | undefined;
|
|
491
511
|
}>>>;
|
|
492
|
-
}, "
|
|
512
|
+
}, "strict", z.ZodTypeAny, {
|
|
493
513
|
engine?: any;
|
|
494
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
495
514
|
customTemplates?: Record<string, {
|
|
496
515
|
htmlPath?: string | undefined;
|
|
497
516
|
html?: string | undefined;
|
|
@@ -501,7 +520,6 @@ export declare const emailConfigSchema: z.ZodObject<{
|
|
|
501
520
|
}> | undefined;
|
|
502
521
|
}, {
|
|
503
522
|
engine?: any;
|
|
504
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
505
523
|
customTemplates?: Record<string, {
|
|
506
524
|
htmlPath?: string | undefined;
|
|
507
525
|
html?: string | undefined;
|
|
@@ -510,17 +528,19 @@ export declare const emailConfigSchema: z.ZodObject<{
|
|
|
510
528
|
subject?: string | undefined;
|
|
511
529
|
}> | undefined;
|
|
512
530
|
}>>;
|
|
513
|
-
}, "
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
532
|
+
globalVariables?: z.objectOutputType<{
|
|
533
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
534
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
535
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
536
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
537
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
538
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
539
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
540
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
521
542
|
templates?: {
|
|
522
543
|
engine?: any;
|
|
523
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
524
544
|
customTemplates?: Record<string, {
|
|
525
545
|
htmlPath?: string | undefined;
|
|
526
546
|
html?: string | undefined;
|
|
@@ -530,16 +550,18 @@ export declare const emailConfigSchema: z.ZodObject<{
|
|
|
530
550
|
}> | undefined;
|
|
531
551
|
} | undefined;
|
|
532
552
|
}, {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
553
|
+
globalVariables?: z.objectInputType<{
|
|
554
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
555
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
556
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
557
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
558
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
559
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
560
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
561
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
540
563
|
templates?: {
|
|
541
564
|
engine?: any;
|
|
542
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
543
565
|
customTemplates?: Record<string, {
|
|
544
566
|
htmlPath?: string | undefined;
|
|
545
567
|
html?: string | undefined;
|
|
@@ -580,36 +602,36 @@ export declare const smsConfigSchema: z.ZodObject<{
|
|
|
580
602
|
}>>>;
|
|
581
603
|
}, "strip", z.ZodTypeAny, {
|
|
582
604
|
engine?: any;
|
|
583
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
584
605
|
customTemplates?: Record<string, {
|
|
585
606
|
contentPath?: string | undefined;
|
|
586
607
|
content?: string | undefined;
|
|
587
608
|
}> | undefined;
|
|
609
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
588
610
|
}, {
|
|
589
611
|
engine?: any;
|
|
590
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
591
612
|
customTemplates?: Record<string, {
|
|
592
613
|
contentPath?: string | undefined;
|
|
593
614
|
content?: string | undefined;
|
|
594
615
|
}> | undefined;
|
|
616
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
595
617
|
}>>;
|
|
596
618
|
}, "strip", z.ZodTypeAny, {
|
|
597
619
|
templates?: {
|
|
598
620
|
engine?: any;
|
|
599
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
600
621
|
customTemplates?: Record<string, {
|
|
601
622
|
contentPath?: string | undefined;
|
|
602
623
|
content?: string | undefined;
|
|
603
624
|
}> | undefined;
|
|
625
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
604
626
|
} | undefined;
|
|
605
627
|
}, {
|
|
606
628
|
templates?: {
|
|
607
629
|
engine?: any;
|
|
608
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
609
630
|
customTemplates?: Record<string, {
|
|
610
631
|
contentPath?: string | undefined;
|
|
611
632
|
content?: string | undefined;
|
|
612
633
|
}> | undefined;
|
|
634
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
613
635
|
} | undefined;
|
|
614
636
|
}>;
|
|
615
637
|
export declare const phoneConfigSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
@@ -1003,12 +1025,15 @@ export declare const adaptiveMFAConfigSchema: z.ZodObject<{
|
|
|
1003
1025
|
blockDuration: z.ZodOptional<z.ZodNumber>;
|
|
1004
1026
|
message: z.ZodOptional<z.ZodString>;
|
|
1005
1027
|
errorCode: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
|
|
1006
1029
|
}, "strip", z.ZodTypeAny, {
|
|
1007
1030
|
message?: string | undefined;
|
|
1031
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1008
1032
|
blockDuration?: number | undefined;
|
|
1009
1033
|
errorCode?: string | undefined;
|
|
1010
1034
|
}, {
|
|
1011
1035
|
message?: string | undefined;
|
|
1036
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1012
1037
|
blockDuration?: number | undefined;
|
|
1013
1038
|
errorCode?: string | undefined;
|
|
1014
1039
|
}>>;
|
|
@@ -1038,6 +1063,7 @@ export declare const adaptiveMFAConfigSchema: z.ZodObject<{
|
|
|
1038
1063
|
} | undefined;
|
|
1039
1064
|
blockedSignIn?: {
|
|
1040
1065
|
message?: string | undefined;
|
|
1066
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1041
1067
|
blockDuration?: number | undefined;
|
|
1042
1068
|
errorCode?: string | undefined;
|
|
1043
1069
|
} | undefined;
|
|
@@ -1067,6 +1093,7 @@ export declare const adaptiveMFAConfigSchema: z.ZodObject<{
|
|
|
1067
1093
|
} | undefined;
|
|
1068
1094
|
blockedSignIn?: {
|
|
1069
1095
|
message?: string | undefined;
|
|
1096
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1070
1097
|
blockDuration?: number | undefined;
|
|
1071
1098
|
errorCode?: string | undefined;
|
|
1072
1099
|
} | undefined;
|
|
@@ -1216,12 +1243,15 @@ export declare const mfaConfigSchema: z.ZodObject<{
|
|
|
1216
1243
|
blockDuration: z.ZodOptional<z.ZodNumber>;
|
|
1217
1244
|
message: z.ZodOptional<z.ZodString>;
|
|
1218
1245
|
errorCode: z.ZodOptional<z.ZodString>;
|
|
1246
|
+
scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
|
|
1219
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1220
1248
|
message?: string | undefined;
|
|
1249
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1221
1250
|
blockDuration?: number | undefined;
|
|
1222
1251
|
errorCode?: string | undefined;
|
|
1223
1252
|
}, {
|
|
1224
1253
|
message?: string | undefined;
|
|
1254
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1225
1255
|
blockDuration?: number | undefined;
|
|
1226
1256
|
errorCode?: string | undefined;
|
|
1227
1257
|
}>>;
|
|
@@ -1251,6 +1281,7 @@ export declare const mfaConfigSchema: z.ZodObject<{
|
|
|
1251
1281
|
} | undefined;
|
|
1252
1282
|
blockedSignIn?: {
|
|
1253
1283
|
message?: string | undefined;
|
|
1284
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1254
1285
|
blockDuration?: number | undefined;
|
|
1255
1286
|
errorCode?: string | undefined;
|
|
1256
1287
|
} | undefined;
|
|
@@ -1280,6 +1311,7 @@ export declare const mfaConfigSchema: z.ZodObject<{
|
|
|
1280
1311
|
} | undefined;
|
|
1281
1312
|
blockedSignIn?: {
|
|
1282
1313
|
message?: string | undefined;
|
|
1314
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1283
1315
|
blockDuration?: number | undefined;
|
|
1284
1316
|
errorCode?: string | undefined;
|
|
1285
1317
|
} | undefined;
|
|
@@ -1339,6 +1371,7 @@ export declare const mfaConfigSchema: z.ZodObject<{
|
|
|
1339
1371
|
} | undefined;
|
|
1340
1372
|
blockedSignIn?: {
|
|
1341
1373
|
message?: string | undefined;
|
|
1374
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1342
1375
|
blockDuration?: number | undefined;
|
|
1343
1376
|
errorCode?: string | undefined;
|
|
1344
1377
|
} | undefined;
|
|
@@ -1398,6 +1431,7 @@ export declare const mfaConfigSchema: z.ZodObject<{
|
|
|
1398
1431
|
} | undefined;
|
|
1399
1432
|
blockedSignIn?: {
|
|
1400
1433
|
message?: string | undefined;
|
|
1434
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
1401
1435
|
blockDuration?: number | undefined;
|
|
1402
1436
|
errorCode?: string | undefined;
|
|
1403
1437
|
} | undefined;
|
|
@@ -1511,6 +1545,102 @@ export declare const geoLocationConfigSchema: z.ZodObject<{
|
|
|
1511
1545
|
editions?: string[] | undefined;
|
|
1512
1546
|
} | undefined;
|
|
1513
1547
|
}>;
|
|
1548
|
+
/**
|
|
1549
|
+
* Email notifications configuration schema
|
|
1550
|
+
*
|
|
1551
|
+
* Controls which optional notification emails are suppressed.
|
|
1552
|
+
* Note: Code emails (verification/password reset) default to enabled; optional notifications default to disabled.
|
|
1553
|
+
*/
|
|
1554
|
+
export declare const emailNotificationsConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1555
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1556
|
+
suppress: z.ZodOptional<z.ZodObject<{
|
|
1557
|
+
welcome: z.ZodOptional<z.ZodBoolean>;
|
|
1558
|
+
passwordChanged: z.ZodOptional<z.ZodBoolean>;
|
|
1559
|
+
mfaDeviceRemoved: z.ZodOptional<z.ZodBoolean>;
|
|
1560
|
+
mfaFirstEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1561
|
+
mfaMethodAdded: z.ZodOptional<z.ZodBoolean>;
|
|
1562
|
+
adaptiveMfaRiskDetected: z.ZodOptional<z.ZodBoolean>;
|
|
1563
|
+
accountDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1564
|
+
accountEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
emailChangedOld: z.ZodOptional<z.ZodBoolean>;
|
|
1566
|
+
emailChangedNew: z.ZodOptional<z.ZodBoolean>;
|
|
1567
|
+
accountLockout: z.ZodOptional<z.ZodBoolean>;
|
|
1568
|
+
sessionsRevoked: z.ZodOptional<z.ZodBoolean>;
|
|
1569
|
+
emailVerification: z.ZodOptional<z.ZodBoolean>;
|
|
1570
|
+
passwordReset: z.ZodOptional<z.ZodBoolean>;
|
|
1571
|
+
adminPasswordReset: z.ZodOptional<z.ZodBoolean>;
|
|
1572
|
+
}, "strip", z.ZodTypeAny, {
|
|
1573
|
+
passwordReset?: boolean | undefined;
|
|
1574
|
+
adminPasswordReset?: boolean | undefined;
|
|
1575
|
+
welcome?: boolean | undefined;
|
|
1576
|
+
accountLockout?: boolean | undefined;
|
|
1577
|
+
passwordChanged?: boolean | undefined;
|
|
1578
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
1579
|
+
mfaMethodAdded?: boolean | undefined;
|
|
1580
|
+
accountDisabled?: boolean | undefined;
|
|
1581
|
+
accountEnabled?: boolean | undefined;
|
|
1582
|
+
emailChangedOld?: boolean | undefined;
|
|
1583
|
+
emailChangedNew?: boolean | undefined;
|
|
1584
|
+
sessionsRevoked?: boolean | undefined;
|
|
1585
|
+
emailVerification?: boolean | undefined;
|
|
1586
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
1587
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
1588
|
+
}, {
|
|
1589
|
+
passwordReset?: boolean | undefined;
|
|
1590
|
+
adminPasswordReset?: boolean | undefined;
|
|
1591
|
+
welcome?: boolean | undefined;
|
|
1592
|
+
accountLockout?: boolean | undefined;
|
|
1593
|
+
passwordChanged?: boolean | undefined;
|
|
1594
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
1595
|
+
mfaMethodAdded?: boolean | undefined;
|
|
1596
|
+
accountDisabled?: boolean | undefined;
|
|
1597
|
+
accountEnabled?: boolean | undefined;
|
|
1598
|
+
emailChangedOld?: boolean | undefined;
|
|
1599
|
+
emailChangedNew?: boolean | undefined;
|
|
1600
|
+
sessionsRevoked?: boolean | undefined;
|
|
1601
|
+
emailVerification?: boolean | undefined;
|
|
1602
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
1603
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
1604
|
+
}>>;
|
|
1605
|
+
}, "strip", z.ZodTypeAny, {
|
|
1606
|
+
enabled?: boolean | undefined;
|
|
1607
|
+
suppress?: {
|
|
1608
|
+
passwordReset?: boolean | undefined;
|
|
1609
|
+
adminPasswordReset?: boolean | undefined;
|
|
1610
|
+
welcome?: boolean | undefined;
|
|
1611
|
+
accountLockout?: boolean | undefined;
|
|
1612
|
+
passwordChanged?: boolean | undefined;
|
|
1613
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
1614
|
+
mfaMethodAdded?: boolean | undefined;
|
|
1615
|
+
accountDisabled?: boolean | undefined;
|
|
1616
|
+
accountEnabled?: boolean | undefined;
|
|
1617
|
+
emailChangedOld?: boolean | undefined;
|
|
1618
|
+
emailChangedNew?: boolean | undefined;
|
|
1619
|
+
sessionsRevoked?: boolean | undefined;
|
|
1620
|
+
emailVerification?: boolean | undefined;
|
|
1621
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
1622
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
1623
|
+
} | undefined;
|
|
1624
|
+
}, {
|
|
1625
|
+
enabled?: boolean | undefined;
|
|
1626
|
+
suppress?: {
|
|
1627
|
+
passwordReset?: boolean | undefined;
|
|
1628
|
+
adminPasswordReset?: boolean | undefined;
|
|
1629
|
+
welcome?: boolean | undefined;
|
|
1630
|
+
accountLockout?: boolean | undefined;
|
|
1631
|
+
passwordChanged?: boolean | undefined;
|
|
1632
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
1633
|
+
mfaMethodAdded?: boolean | undefined;
|
|
1634
|
+
accountDisabled?: boolean | undefined;
|
|
1635
|
+
accountEnabled?: boolean | undefined;
|
|
1636
|
+
emailChangedOld?: boolean | undefined;
|
|
1637
|
+
emailChangedNew?: boolean | undefined;
|
|
1638
|
+
sessionsRevoked?: boolean | undefined;
|
|
1639
|
+
emailVerification?: boolean | undefined;
|
|
1640
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
1641
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
1642
|
+
} | undefined;
|
|
1643
|
+
}>>;
|
|
1514
1644
|
/**
|
|
1515
1645
|
* Root authentication configuration schema
|
|
1516
1646
|
*
|
|
@@ -1926,18 +2056,128 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1926
2056
|
enabled?: boolean | undefined;
|
|
1927
2057
|
fireAndForget?: boolean | undefined;
|
|
1928
2058
|
}>>;
|
|
2059
|
+
emailNotifications: z.ZodOptional<z.ZodObject<{
|
|
2060
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2061
|
+
suppress: z.ZodOptional<z.ZodObject<{
|
|
2062
|
+
welcome: z.ZodOptional<z.ZodBoolean>;
|
|
2063
|
+
passwordChanged: z.ZodOptional<z.ZodBoolean>;
|
|
2064
|
+
mfaDeviceRemoved: z.ZodOptional<z.ZodBoolean>;
|
|
2065
|
+
mfaFirstEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2066
|
+
mfaMethodAdded: z.ZodOptional<z.ZodBoolean>;
|
|
2067
|
+
adaptiveMfaRiskDetected: z.ZodOptional<z.ZodBoolean>;
|
|
2068
|
+
accountDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
2069
|
+
accountEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2070
|
+
emailChangedOld: z.ZodOptional<z.ZodBoolean>;
|
|
2071
|
+
emailChangedNew: z.ZodOptional<z.ZodBoolean>;
|
|
2072
|
+
accountLockout: z.ZodOptional<z.ZodBoolean>;
|
|
2073
|
+
sessionsRevoked: z.ZodOptional<z.ZodBoolean>;
|
|
2074
|
+
emailVerification: z.ZodOptional<z.ZodBoolean>;
|
|
2075
|
+
passwordReset: z.ZodOptional<z.ZodBoolean>;
|
|
2076
|
+
adminPasswordReset: z.ZodOptional<z.ZodBoolean>;
|
|
2077
|
+
}, "strip", z.ZodTypeAny, {
|
|
2078
|
+
passwordReset?: boolean | undefined;
|
|
2079
|
+
adminPasswordReset?: boolean | undefined;
|
|
2080
|
+
welcome?: boolean | undefined;
|
|
2081
|
+
accountLockout?: boolean | undefined;
|
|
2082
|
+
passwordChanged?: boolean | undefined;
|
|
2083
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
2084
|
+
mfaMethodAdded?: boolean | undefined;
|
|
2085
|
+
accountDisabled?: boolean | undefined;
|
|
2086
|
+
accountEnabled?: boolean | undefined;
|
|
2087
|
+
emailChangedOld?: boolean | undefined;
|
|
2088
|
+
emailChangedNew?: boolean | undefined;
|
|
2089
|
+
sessionsRevoked?: boolean | undefined;
|
|
2090
|
+
emailVerification?: boolean | undefined;
|
|
2091
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
2092
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
2093
|
+
}, {
|
|
2094
|
+
passwordReset?: boolean | undefined;
|
|
2095
|
+
adminPasswordReset?: boolean | undefined;
|
|
2096
|
+
welcome?: boolean | undefined;
|
|
2097
|
+
accountLockout?: boolean | undefined;
|
|
2098
|
+
passwordChanged?: boolean | undefined;
|
|
2099
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
2100
|
+
mfaMethodAdded?: boolean | undefined;
|
|
2101
|
+
accountDisabled?: boolean | undefined;
|
|
2102
|
+
accountEnabled?: boolean | undefined;
|
|
2103
|
+
emailChangedOld?: boolean | undefined;
|
|
2104
|
+
emailChangedNew?: boolean | undefined;
|
|
2105
|
+
sessionsRevoked?: boolean | undefined;
|
|
2106
|
+
emailVerification?: boolean | undefined;
|
|
2107
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
2108
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
2109
|
+
}>>;
|
|
2110
|
+
}, "strip", z.ZodTypeAny, {
|
|
2111
|
+
enabled?: boolean | undefined;
|
|
2112
|
+
suppress?: {
|
|
2113
|
+
passwordReset?: boolean | undefined;
|
|
2114
|
+
adminPasswordReset?: boolean | undefined;
|
|
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
|
+
emailVerification?: boolean | undefined;
|
|
2126
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
2127
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
2128
|
+
} | undefined;
|
|
2129
|
+
}, {
|
|
2130
|
+
enabled?: boolean | undefined;
|
|
2131
|
+
suppress?: {
|
|
2132
|
+
passwordReset?: boolean | undefined;
|
|
2133
|
+
adminPasswordReset?: boolean | undefined;
|
|
2134
|
+
welcome?: boolean | undefined;
|
|
2135
|
+
accountLockout?: boolean | undefined;
|
|
2136
|
+
passwordChanged?: boolean | undefined;
|
|
2137
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
2138
|
+
mfaMethodAdded?: boolean | undefined;
|
|
2139
|
+
accountDisabled?: boolean | undefined;
|
|
2140
|
+
accountEnabled?: boolean | undefined;
|
|
2141
|
+
emailChangedOld?: boolean | undefined;
|
|
2142
|
+
emailChangedNew?: boolean | undefined;
|
|
2143
|
+
sessionsRevoked?: boolean | undefined;
|
|
2144
|
+
emailVerification?: boolean | undefined;
|
|
2145
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
2146
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
2147
|
+
} | undefined;
|
|
2148
|
+
}>>;
|
|
1929
2149
|
emailProvider: z.ZodOptional<z.ZodAny>;
|
|
1930
2150
|
email: z.ZodOptional<z.ZodObject<{
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2151
|
+
globalVariables: z.ZodOptional<z.ZodObject<{
|
|
2152
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2154
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
2155
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
2156
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2157
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
2158
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2161
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2163
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
2164
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2166
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
2169
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2170
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
2171
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
2176
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
2178
|
+
}, z.ZodUnknown, "strip">>>;
|
|
1938
2179
|
templates: z.ZodOptional<z.ZodObject<{
|
|
1939
2180
|
engine: z.ZodOptional<z.ZodAny>;
|
|
1940
|
-
globalVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1941
2181
|
customTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1942
2182
|
htmlPath: z.ZodOptional<z.ZodString>;
|
|
1943
2183
|
html: z.ZodOptional<z.ZodString>;
|
|
@@ -1993,9 +2233,8 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1993
2233
|
text?: string | undefined;
|
|
1994
2234
|
subject?: string | undefined;
|
|
1995
2235
|
}>>>;
|
|
1996
|
-
}, "
|
|
2236
|
+
}, "strict", z.ZodTypeAny, {
|
|
1997
2237
|
engine?: any;
|
|
1998
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
1999
2238
|
customTemplates?: Record<string, {
|
|
2000
2239
|
htmlPath?: string | undefined;
|
|
2001
2240
|
html?: string | undefined;
|
|
@@ -2005,7 +2244,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2005
2244
|
}> | undefined;
|
|
2006
2245
|
}, {
|
|
2007
2246
|
engine?: any;
|
|
2008
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2009
2247
|
customTemplates?: Record<string, {
|
|
2010
2248
|
htmlPath?: string | undefined;
|
|
2011
2249
|
html?: string | undefined;
|
|
@@ -2014,17 +2252,19 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2014
2252
|
subject?: string | undefined;
|
|
2015
2253
|
}> | undefined;
|
|
2016
2254
|
}>>;
|
|
2017
|
-
}, "
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2255
|
+
}, "strict", z.ZodTypeAny, {
|
|
2256
|
+
globalVariables?: z.objectOutputType<{
|
|
2257
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
2258
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
2260
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
2261
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
2263
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
2264
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
2025
2266
|
templates?: {
|
|
2026
2267
|
engine?: any;
|
|
2027
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2028
2268
|
customTemplates?: Record<string, {
|
|
2029
2269
|
htmlPath?: string | undefined;
|
|
2030
2270
|
html?: string | undefined;
|
|
@@ -2034,16 +2274,18 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2034
2274
|
}> | undefined;
|
|
2035
2275
|
} | undefined;
|
|
2036
2276
|
}, {
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2277
|
+
globalVariables?: z.objectInputType<{
|
|
2278
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
2281
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
2044
2287
|
templates?: {
|
|
2045
2288
|
engine?: any;
|
|
2046
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2047
2289
|
customTemplates?: Record<string, {
|
|
2048
2290
|
htmlPath?: string | undefined;
|
|
2049
2291
|
html?: string | undefined;
|
|
@@ -2082,36 +2324,36 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2082
2324
|
}>>>;
|
|
2083
2325
|
}, "strip", z.ZodTypeAny, {
|
|
2084
2326
|
engine?: any;
|
|
2085
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2086
2327
|
customTemplates?: Record<string, {
|
|
2087
2328
|
contentPath?: string | undefined;
|
|
2088
2329
|
content?: string | undefined;
|
|
2089
2330
|
}> | undefined;
|
|
2331
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2090
2332
|
}, {
|
|
2091
2333
|
engine?: any;
|
|
2092
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2093
2334
|
customTemplates?: Record<string, {
|
|
2094
2335
|
contentPath?: string | undefined;
|
|
2095
2336
|
content?: string | undefined;
|
|
2096
2337
|
}> | undefined;
|
|
2338
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2097
2339
|
}>>;
|
|
2098
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2099
2341
|
templates?: {
|
|
2100
2342
|
engine?: any;
|
|
2101
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2102
2343
|
customTemplates?: Record<string, {
|
|
2103
2344
|
contentPath?: string | undefined;
|
|
2104
2345
|
content?: string | undefined;
|
|
2105
2346
|
}> | undefined;
|
|
2347
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2106
2348
|
} | undefined;
|
|
2107
2349
|
}, {
|
|
2108
2350
|
templates?: {
|
|
2109
2351
|
engine?: any;
|
|
2110
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2111
2352
|
customTemplates?: Record<string, {
|
|
2112
2353
|
contentPath?: string | undefined;
|
|
2113
2354
|
content?: string | undefined;
|
|
2114
2355
|
}> | undefined;
|
|
2356
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2115
2357
|
} | undefined;
|
|
2116
2358
|
}>>;
|
|
2117
2359
|
phone: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
@@ -2426,12 +2668,15 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2426
2668
|
blockDuration: z.ZodOptional<z.ZodNumber>;
|
|
2427
2669
|
message: z.ZodOptional<z.ZodString>;
|
|
2428
2670
|
errorCode: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
scope: z.ZodOptional<z.ZodEnum<["user", "device", "ip"]>>;
|
|
2429
2672
|
}, "strip", z.ZodTypeAny, {
|
|
2430
2673
|
message?: string | undefined;
|
|
2674
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2431
2675
|
blockDuration?: number | undefined;
|
|
2432
2676
|
errorCode?: string | undefined;
|
|
2433
2677
|
}, {
|
|
2434
2678
|
message?: string | undefined;
|
|
2679
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2435
2680
|
blockDuration?: number | undefined;
|
|
2436
2681
|
errorCode?: string | undefined;
|
|
2437
2682
|
}>>;
|
|
@@ -2461,6 +2706,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2461
2706
|
} | undefined;
|
|
2462
2707
|
blockedSignIn?: {
|
|
2463
2708
|
message?: string | undefined;
|
|
2709
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2464
2710
|
blockDuration?: number | undefined;
|
|
2465
2711
|
errorCode?: string | undefined;
|
|
2466
2712
|
} | undefined;
|
|
@@ -2490,6 +2736,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2490
2736
|
} | undefined;
|
|
2491
2737
|
blockedSignIn?: {
|
|
2492
2738
|
message?: string | undefined;
|
|
2739
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2493
2740
|
blockDuration?: number | undefined;
|
|
2494
2741
|
errorCode?: string | undefined;
|
|
2495
2742
|
} | undefined;
|
|
@@ -2549,6 +2796,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2549
2796
|
} | undefined;
|
|
2550
2797
|
blockedSignIn?: {
|
|
2551
2798
|
message?: string | undefined;
|
|
2799
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2552
2800
|
blockDuration?: number | undefined;
|
|
2553
2801
|
errorCode?: string | undefined;
|
|
2554
2802
|
} | undefined;
|
|
@@ -2608,6 +2856,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2608
2856
|
} | undefined;
|
|
2609
2857
|
blockedSignIn?: {
|
|
2610
2858
|
message?: string | undefined;
|
|
2859
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2611
2860
|
blockDuration?: number | undefined;
|
|
2612
2861
|
errorCode?: string | undefined;
|
|
2613
2862
|
} | undefined;
|
|
@@ -2743,24 +2992,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2743
2992
|
sms?: {
|
|
2744
2993
|
templates?: {
|
|
2745
2994
|
engine?: any;
|
|
2746
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2747
2995
|
customTemplates?: Record<string, {
|
|
2748
2996
|
contentPath?: string | undefined;
|
|
2749
2997
|
content?: string | undefined;
|
|
2750
2998
|
}> | undefined;
|
|
2999
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2751
3000
|
} | undefined;
|
|
2752
3001
|
} | undefined;
|
|
2753
3002
|
email?: {
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
3003
|
+
globalVariables?: z.objectOutputType<{
|
|
3004
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
3007
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
3008
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
3009
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
3010
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
3011
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
3012
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
2761
3013
|
templates?: {
|
|
2762
3014
|
engine?: any;
|
|
2763
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
2764
3015
|
customTemplates?: Record<string, {
|
|
2765
3016
|
htmlPath?: string | undefined;
|
|
2766
3017
|
html?: string | undefined;
|
|
@@ -2822,6 +3073,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2822
3073
|
} | undefined;
|
|
2823
3074
|
blockedSignIn?: {
|
|
2824
3075
|
message?: string | undefined;
|
|
3076
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
2825
3077
|
blockDuration?: number | undefined;
|
|
2826
3078
|
errorCode?: string | undefined;
|
|
2827
3079
|
} | undefined;
|
|
@@ -2895,7 +3147,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2895
3147
|
allowedReturnToOrigins?: string[] | undefined;
|
|
2896
3148
|
} | undefined;
|
|
2897
3149
|
} | undefined;
|
|
2898
|
-
tablePrefix?: string | undefined;
|
|
2899
3150
|
signup?: {
|
|
2900
3151
|
enabled?: boolean | undefined;
|
|
2901
3152
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -2922,6 +3173,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2922
3173
|
codeLength?: number | undefined;
|
|
2923
3174
|
} | undefined;
|
|
2924
3175
|
} | undefined;
|
|
3176
|
+
tablePrefix?: string | undefined;
|
|
2925
3177
|
lockout?: {
|
|
2926
3178
|
enabled?: boolean | undefined;
|
|
2927
3179
|
duration?: number | undefined;
|
|
@@ -2946,6 +3198,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2946
3198
|
enabled?: boolean | undefined;
|
|
2947
3199
|
fireAndForget?: boolean | undefined;
|
|
2948
3200
|
} | undefined;
|
|
3201
|
+
emailNotifications?: {
|
|
3202
|
+
enabled?: boolean | undefined;
|
|
3203
|
+
suppress?: {
|
|
3204
|
+
passwordReset?: boolean | undefined;
|
|
3205
|
+
adminPasswordReset?: boolean | undefined;
|
|
3206
|
+
welcome?: boolean | undefined;
|
|
3207
|
+
accountLockout?: boolean | undefined;
|
|
3208
|
+
passwordChanged?: boolean | undefined;
|
|
3209
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
3210
|
+
mfaMethodAdded?: boolean | undefined;
|
|
3211
|
+
accountDisabled?: boolean | undefined;
|
|
3212
|
+
accountEnabled?: boolean | undefined;
|
|
3213
|
+
emailChangedOld?: boolean | undefined;
|
|
3214
|
+
emailChangedNew?: boolean | undefined;
|
|
3215
|
+
sessionsRevoked?: boolean | undefined;
|
|
3216
|
+
emailVerification?: boolean | undefined;
|
|
3217
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
3218
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
3219
|
+
} | undefined;
|
|
3220
|
+
} | undefined;
|
|
2949
3221
|
emailProvider?: any;
|
|
2950
3222
|
smsProvider?: any;
|
|
2951
3223
|
storageAdapter?: any;
|
|
@@ -2998,24 +3270,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2998
3270
|
sms?: {
|
|
2999
3271
|
templates?: {
|
|
3000
3272
|
engine?: any;
|
|
3001
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3002
3273
|
customTemplates?: Record<string, {
|
|
3003
3274
|
contentPath?: string | undefined;
|
|
3004
3275
|
content?: string | undefined;
|
|
3005
3276
|
}> | undefined;
|
|
3277
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3006
3278
|
} | undefined;
|
|
3007
3279
|
} | undefined;
|
|
3008
3280
|
email?: {
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3281
|
+
globalVariables?: z.objectInputType<{
|
|
3282
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
3283
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
3284
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
3285
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
3286
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
3287
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
3288
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
3289
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
3290
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
3016
3291
|
templates?: {
|
|
3017
3292
|
engine?: any;
|
|
3018
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3019
3293
|
customTemplates?: Record<string, {
|
|
3020
3294
|
htmlPath?: string | undefined;
|
|
3021
3295
|
html?: string | undefined;
|
|
@@ -3077,6 +3351,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3077
3351
|
} | undefined;
|
|
3078
3352
|
blockedSignIn?: {
|
|
3079
3353
|
message?: string | undefined;
|
|
3354
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
3080
3355
|
blockDuration?: number | undefined;
|
|
3081
3356
|
errorCode?: string | undefined;
|
|
3082
3357
|
} | undefined;
|
|
@@ -3150,7 +3425,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3150
3425
|
allowedReturnToOrigins?: string[] | undefined;
|
|
3151
3426
|
} | undefined;
|
|
3152
3427
|
} | undefined;
|
|
3153
|
-
tablePrefix?: string | undefined;
|
|
3154
3428
|
signup?: {
|
|
3155
3429
|
enabled?: boolean | undefined;
|
|
3156
3430
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -3177,6 +3451,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3177
3451
|
codeLength?: number | undefined;
|
|
3178
3452
|
} | undefined;
|
|
3179
3453
|
} | undefined;
|
|
3454
|
+
tablePrefix?: string | undefined;
|
|
3180
3455
|
lockout?: {
|
|
3181
3456
|
enabled?: boolean | undefined;
|
|
3182
3457
|
duration?: number | undefined;
|
|
@@ -3201,6 +3476,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3201
3476
|
enabled?: boolean | undefined;
|
|
3202
3477
|
fireAndForget?: boolean | undefined;
|
|
3203
3478
|
} | undefined;
|
|
3479
|
+
emailNotifications?: {
|
|
3480
|
+
enabled?: boolean | undefined;
|
|
3481
|
+
suppress?: {
|
|
3482
|
+
passwordReset?: boolean | undefined;
|
|
3483
|
+
adminPasswordReset?: boolean | undefined;
|
|
3484
|
+
welcome?: boolean | undefined;
|
|
3485
|
+
accountLockout?: boolean | undefined;
|
|
3486
|
+
passwordChanged?: boolean | undefined;
|
|
3487
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
3488
|
+
mfaMethodAdded?: boolean | undefined;
|
|
3489
|
+
accountDisabled?: boolean | undefined;
|
|
3490
|
+
accountEnabled?: boolean | undefined;
|
|
3491
|
+
emailChangedOld?: boolean | undefined;
|
|
3492
|
+
emailChangedNew?: boolean | undefined;
|
|
3493
|
+
sessionsRevoked?: boolean | undefined;
|
|
3494
|
+
emailVerification?: boolean | undefined;
|
|
3495
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
3496
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
3497
|
+
} | undefined;
|
|
3498
|
+
} | undefined;
|
|
3204
3499
|
emailProvider?: any;
|
|
3205
3500
|
smsProvider?: any;
|
|
3206
3501
|
storageAdapter?: any;
|
|
@@ -3253,24 +3548,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3253
3548
|
sms?: {
|
|
3254
3549
|
templates?: {
|
|
3255
3550
|
engine?: any;
|
|
3256
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3257
3551
|
customTemplates?: Record<string, {
|
|
3258
3552
|
contentPath?: string | undefined;
|
|
3259
3553
|
content?: string | undefined;
|
|
3260
3554
|
}> | undefined;
|
|
3555
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3261
3556
|
} | undefined;
|
|
3262
3557
|
} | undefined;
|
|
3263
3558
|
email?: {
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3559
|
+
globalVariables?: z.objectOutputType<{
|
|
3560
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
3561
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
3562
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
3563
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
3564
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
3565
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
3566
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
3567
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
3568
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
3271
3569
|
templates?: {
|
|
3272
3570
|
engine?: any;
|
|
3273
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3274
3571
|
customTemplates?: Record<string, {
|
|
3275
3572
|
htmlPath?: string | undefined;
|
|
3276
3573
|
html?: string | undefined;
|
|
@@ -3332,6 +3629,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3332
3629
|
} | undefined;
|
|
3333
3630
|
blockedSignIn?: {
|
|
3334
3631
|
message?: string | undefined;
|
|
3632
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
3335
3633
|
blockDuration?: number | undefined;
|
|
3336
3634
|
errorCode?: string | undefined;
|
|
3337
3635
|
} | undefined;
|
|
@@ -3405,7 +3703,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3405
3703
|
allowedReturnToOrigins?: string[] | undefined;
|
|
3406
3704
|
} | undefined;
|
|
3407
3705
|
} | undefined;
|
|
3408
|
-
tablePrefix?: string | undefined;
|
|
3409
3706
|
signup?: {
|
|
3410
3707
|
enabled?: boolean | undefined;
|
|
3411
3708
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -3432,6 +3729,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3432
3729
|
codeLength?: number | undefined;
|
|
3433
3730
|
} | undefined;
|
|
3434
3731
|
} | undefined;
|
|
3732
|
+
tablePrefix?: string | undefined;
|
|
3435
3733
|
lockout?: {
|
|
3436
3734
|
enabled?: boolean | undefined;
|
|
3437
3735
|
duration?: number | undefined;
|
|
@@ -3456,6 +3754,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3456
3754
|
enabled?: boolean | undefined;
|
|
3457
3755
|
fireAndForget?: boolean | undefined;
|
|
3458
3756
|
} | undefined;
|
|
3757
|
+
emailNotifications?: {
|
|
3758
|
+
enabled?: boolean | undefined;
|
|
3759
|
+
suppress?: {
|
|
3760
|
+
passwordReset?: boolean | undefined;
|
|
3761
|
+
adminPasswordReset?: boolean | undefined;
|
|
3762
|
+
welcome?: boolean | undefined;
|
|
3763
|
+
accountLockout?: boolean | undefined;
|
|
3764
|
+
passwordChanged?: boolean | undefined;
|
|
3765
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
3766
|
+
mfaMethodAdded?: boolean | undefined;
|
|
3767
|
+
accountDisabled?: boolean | undefined;
|
|
3768
|
+
accountEnabled?: boolean | undefined;
|
|
3769
|
+
emailChangedOld?: boolean | undefined;
|
|
3770
|
+
emailChangedNew?: boolean | undefined;
|
|
3771
|
+
sessionsRevoked?: boolean | undefined;
|
|
3772
|
+
emailVerification?: boolean | undefined;
|
|
3773
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
3774
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
3775
|
+
} | undefined;
|
|
3776
|
+
} | undefined;
|
|
3459
3777
|
emailProvider?: any;
|
|
3460
3778
|
smsProvider?: any;
|
|
3461
3779
|
storageAdapter?: any;
|
|
@@ -3508,24 +3826,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3508
3826
|
sms?: {
|
|
3509
3827
|
templates?: {
|
|
3510
3828
|
engine?: any;
|
|
3511
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3512
3829
|
customTemplates?: Record<string, {
|
|
3513
3830
|
contentPath?: string | undefined;
|
|
3514
3831
|
content?: string | undefined;
|
|
3515
3832
|
}> | undefined;
|
|
3833
|
+
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3516
3834
|
} | undefined;
|
|
3517
3835
|
} | undefined;
|
|
3518
3836
|
email?: {
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3837
|
+
globalVariables?: z.objectInputType<{
|
|
3838
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
3839
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
3840
|
+
companyAddress: z.ZodOptional<z.ZodString>;
|
|
3841
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
3842
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
3843
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
3844
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
3845
|
+
footerDisclaimer: z.ZodOptional<z.ZodString>;
|
|
3846
|
+
}, z.ZodUnknown, "strip"> | undefined;
|
|
3526
3847
|
templates?: {
|
|
3527
3848
|
engine?: any;
|
|
3528
|
-
globalVariables?: Record<string, string | number | boolean> | undefined;
|
|
3529
3849
|
customTemplates?: Record<string, {
|
|
3530
3850
|
htmlPath?: string | undefined;
|
|
3531
3851
|
html?: string | undefined;
|
|
@@ -3587,6 +3907,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3587
3907
|
} | undefined;
|
|
3588
3908
|
blockedSignIn?: {
|
|
3589
3909
|
message?: string | undefined;
|
|
3910
|
+
scope?: "user" | "device" | "ip" | undefined;
|
|
3590
3911
|
blockDuration?: number | undefined;
|
|
3591
3912
|
errorCode?: string | undefined;
|
|
3592
3913
|
} | undefined;
|
|
@@ -3660,7 +3981,6 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3660
3981
|
allowedReturnToOrigins?: string[] | undefined;
|
|
3661
3982
|
} | undefined;
|
|
3662
3983
|
} | undefined;
|
|
3663
|
-
tablePrefix?: string | undefined;
|
|
3664
3984
|
signup?: {
|
|
3665
3985
|
enabled?: boolean | undefined;
|
|
3666
3986
|
verificationMethod?: "none" | "email" | "phone" | "both" | undefined;
|
|
@@ -3687,6 +4007,7 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3687
4007
|
codeLength?: number | undefined;
|
|
3688
4008
|
} | undefined;
|
|
3689
4009
|
} | undefined;
|
|
4010
|
+
tablePrefix?: string | undefined;
|
|
3690
4011
|
lockout?: {
|
|
3691
4012
|
enabled?: boolean | undefined;
|
|
3692
4013
|
duration?: number | undefined;
|
|
@@ -3711,6 +4032,26 @@ export declare const authConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3711
4032
|
enabled?: boolean | undefined;
|
|
3712
4033
|
fireAndForget?: boolean | undefined;
|
|
3713
4034
|
} | undefined;
|
|
4035
|
+
emailNotifications?: {
|
|
4036
|
+
enabled?: boolean | undefined;
|
|
4037
|
+
suppress?: {
|
|
4038
|
+
passwordReset?: boolean | undefined;
|
|
4039
|
+
adminPasswordReset?: boolean | undefined;
|
|
4040
|
+
welcome?: boolean | undefined;
|
|
4041
|
+
accountLockout?: boolean | undefined;
|
|
4042
|
+
passwordChanged?: boolean | undefined;
|
|
4043
|
+
mfaDeviceRemoved?: boolean | undefined;
|
|
4044
|
+
mfaMethodAdded?: boolean | undefined;
|
|
4045
|
+
accountDisabled?: boolean | undefined;
|
|
4046
|
+
accountEnabled?: boolean | undefined;
|
|
4047
|
+
emailChangedOld?: boolean | undefined;
|
|
4048
|
+
emailChangedNew?: boolean | undefined;
|
|
4049
|
+
sessionsRevoked?: boolean | undefined;
|
|
4050
|
+
emailVerification?: boolean | undefined;
|
|
4051
|
+
mfaFirstEnabled?: boolean | undefined;
|
|
4052
|
+
adaptiveMfaRiskDetected?: boolean | undefined;
|
|
4053
|
+
} | undefined;
|
|
4054
|
+
} | undefined;
|
|
3714
4055
|
emailProvider?: any;
|
|
3715
4056
|
smsProvider?: any;
|
|
3716
4057
|
storageAdapter?: any;
|