@fnlb-project/database 1.0.68 → 1.0.70

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/index.d.ts CHANGED
@@ -3090,6 +3090,25 @@ export declare const UserModel: import("mongoose").Model<{
3090
3090
  token: string;
3091
3091
  _id?: unknown;
3092
3092
  }> | null | undefined;
3093
+ mfa?: {
3094
+ totp?: {
3095
+ secret?: string | null | undefined;
3096
+ enabled?: boolean | null | undefined;
3097
+ } | null | undefined;
3098
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3099
+ hash: string;
3100
+ _id?: unknown;
3101
+ usedAt?: NativeDate | null | undefined;
3102
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3103
+ hash: string;
3104
+ _id?: unknown;
3105
+ usedAt?: NativeDate | null | undefined;
3106
+ }> & {
3107
+ hash: string;
3108
+ _id?: unknown;
3109
+ usedAt?: NativeDate | null | undefined;
3110
+ }> | null | undefined;
3111
+ } | null | undefined;
3093
3112
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
3094
3113
  password: string;
3095
3114
  email: string;
@@ -3125,6 +3144,25 @@ export declare const UserModel: import("mongoose").Model<{
3125
3144
  token: string;
3126
3145
  _id?: unknown;
3127
3146
  }> | null | undefined;
3147
+ mfa?: {
3148
+ totp?: {
3149
+ secret?: string | null | undefined;
3150
+ enabled?: boolean | null | undefined;
3151
+ } | null | undefined;
3152
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3153
+ hash: string;
3154
+ _id?: unknown;
3155
+ usedAt?: NativeDate | null | undefined;
3156
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3157
+ hash: string;
3158
+ _id?: unknown;
3159
+ usedAt?: NativeDate | null | undefined;
3160
+ }> & {
3161
+ hash: string;
3162
+ _id?: unknown;
3163
+ usedAt?: NativeDate | null | undefined;
3164
+ }> | null | undefined;
3165
+ } | null | undefined;
3128
3166
  }, {}, {
3129
3167
  statics: {
3130
3168
  verifyPassword(this: import("mongoose").Model<{
@@ -3162,6 +3200,25 @@ export declare const UserModel: import("mongoose").Model<{
3162
3200
  token: string;
3163
3201
  _id?: unknown;
3164
3202
  }> | null | undefined;
3203
+ mfa?: {
3204
+ totp?: {
3205
+ secret?: string | null | undefined;
3206
+ enabled?: boolean | null | undefined;
3207
+ } | null | undefined;
3208
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3209
+ hash: string;
3210
+ _id?: unknown;
3211
+ usedAt?: NativeDate | null | undefined;
3212
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3213
+ hash: string;
3214
+ _id?: unknown;
3215
+ usedAt?: NativeDate | null | undefined;
3216
+ }> & {
3217
+ hash: string;
3218
+ _id?: unknown;
3219
+ usedAt?: NativeDate | null | undefined;
3220
+ }> | null | undefined;
3221
+ } | null | undefined;
3165
3222
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3166
3223
  password: string;
3167
3224
  email: string;
@@ -3197,6 +3254,25 @@ export declare const UserModel: import("mongoose").Model<{
3197
3254
  token: string;
3198
3255
  _id?: unknown;
3199
3256
  }> | null | undefined;
3257
+ mfa?: {
3258
+ totp?: {
3259
+ secret?: string | null | undefined;
3260
+ enabled?: boolean | null | undefined;
3261
+ } | null | undefined;
3262
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3263
+ hash: string;
3264
+ _id?: unknown;
3265
+ usedAt?: NativeDate | null | undefined;
3266
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3267
+ hash: string;
3268
+ _id?: unknown;
3269
+ usedAt?: NativeDate | null | undefined;
3270
+ }> & {
3271
+ hash: string;
3272
+ _id?: unknown;
3273
+ usedAt?: NativeDate | null | undefined;
3274
+ }> | null | undefined;
3275
+ } | null | undefined;
3200
3276
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3201
3277
  password: string;
3202
3278
  email: string;
@@ -3232,6 +3308,25 @@ export declare const UserModel: import("mongoose").Model<{
3232
3308
  token: string;
3233
3309
  _id?: unknown;
3234
3310
  }> | null | undefined;
3311
+ mfa?: {
3312
+ totp?: {
3313
+ secret?: string | null | undefined;
3314
+ enabled?: boolean | null | undefined;
3315
+ } | null | undefined;
3316
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3317
+ hash: string;
3318
+ _id?: unknown;
3319
+ usedAt?: NativeDate | null | undefined;
3320
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3321
+ hash: string;
3322
+ _id?: unknown;
3323
+ usedAt?: NativeDate | null | undefined;
3324
+ }> & {
3325
+ hash: string;
3326
+ _id?: unknown;
3327
+ usedAt?: NativeDate | null | undefined;
3328
+ }> | null | undefined;
3329
+ } | null | undefined;
3235
3330
  }> & {
3236
3331
  _id: import("mongoose").Types.ObjectId;
3237
3332
  } & {
@@ -3272,6 +3367,25 @@ export declare const UserModel: import("mongoose").Model<{
3272
3367
  token: string;
3273
3368
  _id?: unknown;
3274
3369
  }> | null | undefined;
3370
+ mfa?: {
3371
+ totp?: {
3372
+ secret?: string | null | undefined;
3373
+ enabled?: boolean | null | undefined;
3374
+ } | null | undefined;
3375
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3376
+ hash: string;
3377
+ _id?: unknown;
3378
+ usedAt?: NativeDate | null | undefined;
3379
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3380
+ hash: string;
3381
+ _id?: unknown;
3382
+ usedAt?: NativeDate | null | undefined;
3383
+ }> & {
3384
+ hash: string;
3385
+ _id?: unknown;
3386
+ usedAt?: NativeDate | null | undefined;
3387
+ }> | null | undefined;
3388
+ } | null | undefined;
3275
3389
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3276
3390
  password: string;
3277
3391
  email: string;
@@ -3307,6 +3421,25 @@ export declare const UserModel: import("mongoose").Model<{
3307
3421
  token: string;
3308
3422
  _id?: unknown;
3309
3423
  }> | null | undefined;
3424
+ mfa?: {
3425
+ totp?: {
3426
+ secret?: string | null | undefined;
3427
+ enabled?: boolean | null | undefined;
3428
+ } | null | undefined;
3429
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3430
+ hash: string;
3431
+ _id?: unknown;
3432
+ usedAt?: NativeDate | null | undefined;
3433
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3434
+ hash: string;
3435
+ _id?: unknown;
3436
+ usedAt?: NativeDate | null | undefined;
3437
+ }> & {
3438
+ hash: string;
3439
+ _id?: unknown;
3440
+ usedAt?: NativeDate | null | undefined;
3441
+ }> | null | undefined;
3442
+ } | null | undefined;
3310
3443
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3311
3444
  password: string;
3312
3445
  email: string;
@@ -3342,6 +3475,25 @@ export declare const UserModel: import("mongoose").Model<{
3342
3475
  token: string;
3343
3476
  _id?: unknown;
3344
3477
  }> | null | undefined;
3478
+ mfa?: {
3479
+ totp?: {
3480
+ secret?: string | null | undefined;
3481
+ enabled?: boolean | null | undefined;
3482
+ } | null | undefined;
3483
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3484
+ hash: string;
3485
+ _id?: unknown;
3486
+ usedAt?: NativeDate | null | undefined;
3487
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3488
+ hash: string;
3489
+ _id?: unknown;
3490
+ usedAt?: NativeDate | null | undefined;
3491
+ }> & {
3492
+ hash: string;
3493
+ _id?: unknown;
3494
+ usedAt?: NativeDate | null | undefined;
3495
+ }> | null | undefined;
3496
+ } | null | undefined;
3345
3497
  }> & {
3346
3498
  _id: import("mongoose").Types.ObjectId;
3347
3499
  } & {
@@ -3381,6 +3533,25 @@ export declare const UserModel: import("mongoose").Model<{
3381
3533
  token: string;
3382
3534
  _id?: unknown;
3383
3535
  }> | null | undefined;
3536
+ mfa?: {
3537
+ totp?: {
3538
+ secret?: string | null | undefined;
3539
+ enabled?: boolean | null | undefined;
3540
+ } | null | undefined;
3541
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3542
+ hash: string;
3543
+ _id?: unknown;
3544
+ usedAt?: NativeDate | null | undefined;
3545
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3546
+ hash: string;
3547
+ _id?: unknown;
3548
+ usedAt?: NativeDate | null | undefined;
3549
+ }> & {
3550
+ hash: string;
3551
+ _id?: unknown;
3552
+ usedAt?: NativeDate | null | undefined;
3553
+ }> | null | undefined;
3554
+ } | null | undefined;
3384
3555
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3385
3556
  password: string;
3386
3557
  email: string;
@@ -3416,6 +3587,25 @@ export declare const UserModel: import("mongoose").Model<{
3416
3587
  token: string;
3417
3588
  _id?: unknown;
3418
3589
  }> | null | undefined;
3590
+ mfa?: {
3591
+ totp?: {
3592
+ secret?: string | null | undefined;
3593
+ enabled?: boolean | null | undefined;
3594
+ } | null | undefined;
3595
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3596
+ hash: string;
3597
+ _id?: unknown;
3598
+ usedAt?: NativeDate | null | undefined;
3599
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3600
+ hash: string;
3601
+ _id?: unknown;
3602
+ usedAt?: NativeDate | null | undefined;
3603
+ }> & {
3604
+ hash: string;
3605
+ _id?: unknown;
3606
+ usedAt?: NativeDate | null | undefined;
3607
+ }> | null | undefined;
3608
+ } | null | undefined;
3419
3609
  }> & {
3420
3610
  _id: import("mongoose").Types.ObjectId;
3421
3611
  } & {
@@ -3456,6 +3646,25 @@ export declare const UserModel: import("mongoose").Model<{
3456
3646
  token: string;
3457
3647
  _id?: unknown;
3458
3648
  }> | null | undefined;
3649
+ mfa?: {
3650
+ totp?: {
3651
+ secret?: string | null | undefined;
3652
+ enabled?: boolean | null | undefined;
3653
+ } | null | undefined;
3654
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3655
+ hash: string;
3656
+ _id?: unknown;
3657
+ usedAt?: NativeDate | null | undefined;
3658
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3659
+ hash: string;
3660
+ _id?: unknown;
3661
+ usedAt?: NativeDate | null | undefined;
3662
+ }> & {
3663
+ hash: string;
3664
+ _id?: unknown;
3665
+ usedAt?: NativeDate | null | undefined;
3666
+ }> | null | undefined;
3667
+ } | null | undefined;
3459
3668
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3460
3669
  password: string;
3461
3670
  email: string;
@@ -3491,6 +3700,25 @@ export declare const UserModel: import("mongoose").Model<{
3491
3700
  token: string;
3492
3701
  _id?: unknown;
3493
3702
  }> | null | undefined;
3703
+ mfa?: {
3704
+ totp?: {
3705
+ secret?: string | null | undefined;
3706
+ enabled?: boolean | null | undefined;
3707
+ } | null | undefined;
3708
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3709
+ hash: string;
3710
+ _id?: unknown;
3711
+ usedAt?: NativeDate | null | undefined;
3712
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3713
+ hash: string;
3714
+ _id?: unknown;
3715
+ usedAt?: NativeDate | null | undefined;
3716
+ }> & {
3717
+ hash: string;
3718
+ _id?: unknown;
3719
+ usedAt?: NativeDate | null | undefined;
3720
+ }> | null | undefined;
3721
+ } | null | undefined;
3494
3722
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3495
3723
  password: string;
3496
3724
  email: string;
@@ -3526,6 +3754,25 @@ export declare const UserModel: import("mongoose").Model<{
3526
3754
  token: string;
3527
3755
  _id?: unknown;
3528
3756
  }> | null | undefined;
3757
+ mfa?: {
3758
+ totp?: {
3759
+ secret?: string | null | undefined;
3760
+ enabled?: boolean | null | undefined;
3761
+ } | null | undefined;
3762
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3763
+ hash: string;
3764
+ _id?: unknown;
3765
+ usedAt?: NativeDate | null | undefined;
3766
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3767
+ hash: string;
3768
+ _id?: unknown;
3769
+ usedAt?: NativeDate | null | undefined;
3770
+ }> & {
3771
+ hash: string;
3772
+ _id?: unknown;
3773
+ usedAt?: NativeDate | null | undefined;
3774
+ }> | null | undefined;
3775
+ } | null | undefined;
3529
3776
  }> & {
3530
3777
  _id: import("mongoose").Types.ObjectId;
3531
3778
  } & {
@@ -3565,6 +3812,25 @@ export declare const UserModel: import("mongoose").Model<{
3565
3812
  token: string;
3566
3813
  _id?: unknown;
3567
3814
  }> | null | undefined;
3815
+ mfa?: {
3816
+ totp?: {
3817
+ secret?: string | null | undefined;
3818
+ enabled?: boolean | null | undefined;
3819
+ } | null | undefined;
3820
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3821
+ hash: string;
3822
+ _id?: unknown;
3823
+ usedAt?: NativeDate | null | undefined;
3824
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3825
+ hash: string;
3826
+ _id?: unknown;
3827
+ usedAt?: NativeDate | null | undefined;
3828
+ }> & {
3829
+ hash: string;
3830
+ _id?: unknown;
3831
+ usedAt?: NativeDate | null | undefined;
3832
+ }> | null | undefined;
3833
+ } | null | undefined;
3568
3834
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3569
3835
  password: string;
3570
3836
  email: string;
@@ -3600,6 +3866,25 @@ export declare const UserModel: import("mongoose").Model<{
3600
3866
  token: string;
3601
3867
  _id?: unknown;
3602
3868
  }> | null | undefined;
3869
+ mfa?: {
3870
+ totp?: {
3871
+ secret?: string | null | undefined;
3872
+ enabled?: boolean | null | undefined;
3873
+ } | null | undefined;
3874
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3875
+ hash: string;
3876
+ _id?: unknown;
3877
+ usedAt?: NativeDate | null | undefined;
3878
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3879
+ hash: string;
3880
+ _id?: unknown;
3881
+ usedAt?: NativeDate | null | undefined;
3882
+ }> & {
3883
+ hash: string;
3884
+ _id?: unknown;
3885
+ usedAt?: NativeDate | null | undefined;
3886
+ }> | null | undefined;
3887
+ } | null | undefined;
3603
3888
  }> & {
3604
3889
  _id: import("mongoose").Types.ObjectId;
3605
3890
  } & {
@@ -3640,6 +3925,25 @@ export declare const UserModel: import("mongoose").Model<{
3640
3925
  token: string;
3641
3926
  _id?: unknown;
3642
3927
  }> | null | undefined;
3928
+ mfa?: {
3929
+ totp?: {
3930
+ secret?: string | null | undefined;
3931
+ enabled?: boolean | null | undefined;
3932
+ } | null | undefined;
3933
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3934
+ hash: string;
3935
+ _id?: unknown;
3936
+ usedAt?: NativeDate | null | undefined;
3937
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3938
+ hash: string;
3939
+ _id?: unknown;
3940
+ usedAt?: NativeDate | null | undefined;
3941
+ }> & {
3942
+ hash: string;
3943
+ _id?: unknown;
3944
+ usedAt?: NativeDate | null | undefined;
3945
+ }> | null | undefined;
3946
+ } | null | undefined;
3643
3947
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3644
3948
  password: string;
3645
3949
  email: string;
@@ -3675,6 +3979,25 @@ export declare const UserModel: import("mongoose").Model<{
3675
3979
  token: string;
3676
3980
  _id?: unknown;
3677
3981
  }> | null | undefined;
3982
+ mfa?: {
3983
+ totp?: {
3984
+ secret?: string | null | undefined;
3985
+ enabled?: boolean | null | undefined;
3986
+ } | null | undefined;
3987
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
3988
+ hash: string;
3989
+ _id?: unknown;
3990
+ usedAt?: NativeDate | null | undefined;
3991
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3992
+ hash: string;
3993
+ _id?: unknown;
3994
+ usedAt?: NativeDate | null | undefined;
3995
+ }> & {
3996
+ hash: string;
3997
+ _id?: unknown;
3998
+ usedAt?: NativeDate | null | undefined;
3999
+ }> | null | undefined;
4000
+ } | null | undefined;
3678
4001
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3679
4002
  password: string;
3680
4003
  email: string;
@@ -3710,6 +4033,25 @@ export declare const UserModel: import("mongoose").Model<{
3710
4033
  token: string;
3711
4034
  _id?: unknown;
3712
4035
  }> | null | undefined;
4036
+ mfa?: {
4037
+ totp?: {
4038
+ secret?: string | null | undefined;
4039
+ enabled?: boolean | null | undefined;
4040
+ } | null | undefined;
4041
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4042
+ hash: string;
4043
+ _id?: unknown;
4044
+ usedAt?: NativeDate | null | undefined;
4045
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4046
+ hash: string;
4047
+ _id?: unknown;
4048
+ usedAt?: NativeDate | null | undefined;
4049
+ }> & {
4050
+ hash: string;
4051
+ _id?: unknown;
4052
+ usedAt?: NativeDate | null | undefined;
4053
+ }> | null | undefined;
4054
+ } | null | undefined;
3713
4055
  }> & {
3714
4056
  _id: import("mongoose").Types.ObjectId;
3715
4057
  } & {
@@ -3750,6 +4092,25 @@ export declare const UserModel: import("mongoose").Model<{
3750
4092
  token: string;
3751
4093
  _id?: unknown;
3752
4094
  }> | null | undefined;
4095
+ mfa?: {
4096
+ totp?: {
4097
+ secret?: string | null | undefined;
4098
+ enabled?: boolean | null | undefined;
4099
+ } | null | undefined;
4100
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4101
+ hash: string;
4102
+ _id?: unknown;
4103
+ usedAt?: NativeDate | null | undefined;
4104
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4105
+ hash: string;
4106
+ _id?: unknown;
4107
+ usedAt?: NativeDate | null | undefined;
4108
+ }> & {
4109
+ hash: string;
4110
+ _id?: unknown;
4111
+ usedAt?: NativeDate | null | undefined;
4112
+ }> | null | undefined;
4113
+ } | null | undefined;
3753
4114
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3754
4115
  password: string;
3755
4116
  email: string;
@@ -3785,6 +4146,25 @@ export declare const UserModel: import("mongoose").Model<{
3785
4146
  token: string;
3786
4147
  _id?: unknown;
3787
4148
  }> | null | undefined;
4149
+ mfa?: {
4150
+ totp?: {
4151
+ secret?: string | null | undefined;
4152
+ enabled?: boolean | null | undefined;
4153
+ } | null | undefined;
4154
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4155
+ hash: string;
4156
+ _id?: unknown;
4157
+ usedAt?: NativeDate | null | undefined;
4158
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4159
+ hash: string;
4160
+ _id?: unknown;
4161
+ usedAt?: NativeDate | null | undefined;
4162
+ }> & {
4163
+ hash: string;
4164
+ _id?: unknown;
4165
+ usedAt?: NativeDate | null | undefined;
4166
+ }> | null | undefined;
4167
+ } | null | undefined;
3788
4168
  }> & {
3789
4169
  _id: import("mongoose").Types.ObjectId;
3790
4170
  } & {
@@ -3838,6 +4218,25 @@ export declare const UserModel: import("mongoose").Model<{
3838
4218
  token: string;
3839
4219
  _id?: unknown;
3840
4220
  }> | null | undefined;
4221
+ mfa?: {
4222
+ totp?: {
4223
+ secret?: string | null | undefined;
4224
+ enabled?: boolean | null | undefined;
4225
+ } | null | undefined;
4226
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4227
+ hash: string;
4228
+ _id?: unknown;
4229
+ usedAt?: NativeDate | null | undefined;
4230
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4231
+ hash: string;
4232
+ _id?: unknown;
4233
+ usedAt?: NativeDate | null | undefined;
4234
+ }> & {
4235
+ hash: string;
4236
+ _id?: unknown;
4237
+ usedAt?: NativeDate | null | undefined;
4238
+ }> | null | undefined;
4239
+ } | null | undefined;
3841
4240
  } & {
3842
4241
  _id: import("mongoose").Types.ObjectId;
3843
4242
  } & {
@@ -3877,6 +4276,25 @@ export declare const UserModel: import("mongoose").Model<{
3877
4276
  token: string;
3878
4277
  _id?: unknown;
3879
4278
  }> | null | undefined;
4279
+ mfa?: {
4280
+ totp?: {
4281
+ secret?: string | null | undefined;
4282
+ enabled?: boolean | null | undefined;
4283
+ } | null | undefined;
4284
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4285
+ hash: string;
4286
+ _id?: unknown;
4287
+ usedAt?: NativeDate | null | undefined;
4288
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4289
+ hash: string;
4290
+ _id?: unknown;
4291
+ usedAt?: NativeDate | null | undefined;
4292
+ }> & {
4293
+ hash: string;
4294
+ _id?: unknown;
4295
+ usedAt?: NativeDate | null | undefined;
4296
+ }> | null | undefined;
4297
+ } | null | undefined;
3880
4298
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3881
4299
  password: string;
3882
4300
  email: string;
@@ -3912,6 +4330,25 @@ export declare const UserModel: import("mongoose").Model<{
3912
4330
  token: string;
3913
4331
  _id?: unknown;
3914
4332
  }> | null | undefined;
4333
+ mfa?: {
4334
+ totp?: {
4335
+ secret?: string | null | undefined;
4336
+ enabled?: boolean | null | undefined;
4337
+ } | null | undefined;
4338
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4339
+ hash: string;
4340
+ _id?: unknown;
4341
+ usedAt?: NativeDate | null | undefined;
4342
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4343
+ hash: string;
4344
+ _id?: unknown;
4345
+ usedAt?: NativeDate | null | undefined;
4346
+ }> & {
4347
+ hash: string;
4348
+ _id?: unknown;
4349
+ usedAt?: NativeDate | null | undefined;
4350
+ }> | null | undefined;
4351
+ } | null | undefined;
3915
4352
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3916
4353
  password: string;
3917
4354
  email: string;
@@ -3947,6 +4384,25 @@ export declare const UserModel: import("mongoose").Model<{
3947
4384
  token: string;
3948
4385
  _id?: unknown;
3949
4386
  }> | null | undefined;
4387
+ mfa?: {
4388
+ totp?: {
4389
+ secret?: string | null | undefined;
4390
+ enabled?: boolean | null | undefined;
4391
+ } | null | undefined;
4392
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4393
+ hash: string;
4394
+ _id?: unknown;
4395
+ usedAt?: NativeDate | null | undefined;
4396
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4397
+ hash: string;
4398
+ _id?: unknown;
4399
+ usedAt?: NativeDate | null | undefined;
4400
+ }> & {
4401
+ hash: string;
4402
+ _id?: unknown;
4403
+ usedAt?: NativeDate | null | undefined;
4404
+ }> | null | undefined;
4405
+ } | null | undefined;
3950
4406
  }> & {
3951
4407
  _id: import("mongoose").Types.ObjectId;
3952
4408
  } & {
@@ -3987,6 +4443,25 @@ export declare const UserModel: import("mongoose").Model<{
3987
4443
  token: string;
3988
4444
  _id?: unknown;
3989
4445
  }> | null | undefined;
4446
+ mfa?: {
4447
+ totp?: {
4448
+ secret?: string | null | undefined;
4449
+ enabled?: boolean | null | undefined;
4450
+ } | null | undefined;
4451
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4452
+ hash: string;
4453
+ _id?: unknown;
4454
+ usedAt?: NativeDate | null | undefined;
4455
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4456
+ hash: string;
4457
+ _id?: unknown;
4458
+ usedAt?: NativeDate | null | undefined;
4459
+ }> & {
4460
+ hash: string;
4461
+ _id?: unknown;
4462
+ usedAt?: NativeDate | null | undefined;
4463
+ }> | null | undefined;
4464
+ } | null | undefined;
3990
4465
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3991
4466
  password: string;
3992
4467
  email: string;
@@ -4022,6 +4497,25 @@ export declare const UserModel: import("mongoose").Model<{
4022
4497
  token: string;
4023
4498
  _id?: unknown;
4024
4499
  }> | null | undefined;
4500
+ mfa?: {
4501
+ totp?: {
4502
+ secret?: string | null | undefined;
4503
+ enabled?: boolean | null | undefined;
4504
+ } | null | undefined;
4505
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4506
+ hash: string;
4507
+ _id?: unknown;
4508
+ usedAt?: NativeDate | null | undefined;
4509
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4510
+ hash: string;
4511
+ _id?: unknown;
4512
+ usedAt?: NativeDate | null | undefined;
4513
+ }> & {
4514
+ hash: string;
4515
+ _id?: unknown;
4516
+ usedAt?: NativeDate | null | undefined;
4517
+ }> | null | undefined;
4518
+ } | null | undefined;
4025
4519
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4026
4520
  password: string;
4027
4521
  email: string;
@@ -4057,6 +4551,25 @@ export declare const UserModel: import("mongoose").Model<{
4057
4551
  token: string;
4058
4552
  _id?: unknown;
4059
4553
  }> | null | undefined;
4554
+ mfa?: {
4555
+ totp?: {
4556
+ secret?: string | null | undefined;
4557
+ enabled?: boolean | null | undefined;
4558
+ } | null | undefined;
4559
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4560
+ hash: string;
4561
+ _id?: unknown;
4562
+ usedAt?: NativeDate | null | undefined;
4563
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4564
+ hash: string;
4565
+ _id?: unknown;
4566
+ usedAt?: NativeDate | null | undefined;
4567
+ }> & {
4568
+ hash: string;
4569
+ _id?: unknown;
4570
+ usedAt?: NativeDate | null | undefined;
4571
+ }> | null | undefined;
4572
+ } | null | undefined;
4060
4573
  }> & {
4061
4574
  _id: import("mongoose").Types.ObjectId;
4062
4575
  } & {
@@ -4097,6 +4610,25 @@ export declare const UserModel: import("mongoose").Model<{
4097
4610
  token: string;
4098
4611
  _id?: unknown;
4099
4612
  }> | null | undefined;
4613
+ mfa?: {
4614
+ totp?: {
4615
+ secret?: string | null | undefined;
4616
+ enabled?: boolean | null | undefined;
4617
+ } | null | undefined;
4618
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4619
+ hash: string;
4620
+ _id?: unknown;
4621
+ usedAt?: NativeDate | null | undefined;
4622
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4623
+ hash: string;
4624
+ _id?: unknown;
4625
+ usedAt?: NativeDate | null | undefined;
4626
+ }> & {
4627
+ hash: string;
4628
+ _id?: unknown;
4629
+ usedAt?: NativeDate | null | undefined;
4630
+ }> | null | undefined;
4631
+ } | null | undefined;
4100
4632
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4101
4633
  password: string;
4102
4634
  email: string;
@@ -4132,6 +4664,25 @@ export declare const UserModel: import("mongoose").Model<{
4132
4664
  token: string;
4133
4665
  _id?: unknown;
4134
4666
  }> | null | undefined;
4667
+ mfa?: {
4668
+ totp?: {
4669
+ secret?: string | null | undefined;
4670
+ enabled?: boolean | null | undefined;
4671
+ } | null | undefined;
4672
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4673
+ hash: string;
4674
+ _id?: unknown;
4675
+ usedAt?: NativeDate | null | undefined;
4676
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4677
+ hash: string;
4678
+ _id?: unknown;
4679
+ usedAt?: NativeDate | null | undefined;
4680
+ }> & {
4681
+ hash: string;
4682
+ _id?: unknown;
4683
+ usedAt?: NativeDate | null | undefined;
4684
+ }> | null | undefined;
4685
+ } | null | undefined;
4135
4686
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4136
4687
  password: string;
4137
4688
  email: string;
@@ -4167,6 +4718,25 @@ export declare const UserModel: import("mongoose").Model<{
4167
4718
  token: string;
4168
4719
  _id?: unknown;
4169
4720
  }> | null | undefined;
4721
+ mfa?: {
4722
+ totp?: {
4723
+ secret?: string | null | undefined;
4724
+ enabled?: boolean | null | undefined;
4725
+ } | null | undefined;
4726
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4727
+ hash: string;
4728
+ _id?: unknown;
4729
+ usedAt?: NativeDate | null | undefined;
4730
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4731
+ hash: string;
4732
+ _id?: unknown;
4733
+ usedAt?: NativeDate | null | undefined;
4734
+ }> & {
4735
+ hash: string;
4736
+ _id?: unknown;
4737
+ usedAt?: NativeDate | null | undefined;
4738
+ }> | null | undefined;
4739
+ } | null | undefined;
4170
4740
  }> & {
4171
4741
  _id: import("mongoose").Types.ObjectId;
4172
4742
  } & {
@@ -4206,6 +4776,25 @@ export declare const UserModel: import("mongoose").Model<{
4206
4776
  token: string;
4207
4777
  _id?: unknown;
4208
4778
  }> | null | undefined;
4779
+ mfa?: {
4780
+ totp?: {
4781
+ secret?: string | null | undefined;
4782
+ enabled?: boolean | null | undefined;
4783
+ } | null | undefined;
4784
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4785
+ hash: string;
4786
+ _id?: unknown;
4787
+ usedAt?: NativeDate | null | undefined;
4788
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4789
+ hash: string;
4790
+ _id?: unknown;
4791
+ usedAt?: NativeDate | null | undefined;
4792
+ }> & {
4793
+ hash: string;
4794
+ _id?: unknown;
4795
+ usedAt?: NativeDate | null | undefined;
4796
+ }> | null | undefined;
4797
+ } | null | undefined;
4209
4798
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4210
4799
  password: string;
4211
4800
  email: string;
@@ -4241,6 +4830,25 @@ export declare const UserModel: import("mongoose").Model<{
4241
4830
  token: string;
4242
4831
  _id?: unknown;
4243
4832
  }> | null | undefined;
4833
+ mfa?: {
4834
+ totp?: {
4835
+ secret?: string | null | undefined;
4836
+ enabled?: boolean | null | undefined;
4837
+ } | null | undefined;
4838
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4839
+ hash: string;
4840
+ _id?: unknown;
4841
+ usedAt?: NativeDate | null | undefined;
4842
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4843
+ hash: string;
4844
+ _id?: unknown;
4845
+ usedAt?: NativeDate | null | undefined;
4846
+ }> & {
4847
+ hash: string;
4848
+ _id?: unknown;
4849
+ usedAt?: NativeDate | null | undefined;
4850
+ }> | null | undefined;
4851
+ } | null | undefined;
4244
4852
  }> & {
4245
4853
  _id: import("mongoose").Types.ObjectId;
4246
4854
  } & {
@@ -4281,6 +4889,25 @@ export declare const UserModel: import("mongoose").Model<{
4281
4889
  token: string;
4282
4890
  _id?: unknown;
4283
4891
  }> | null | undefined;
4892
+ mfa?: {
4893
+ totp?: {
4894
+ secret?: string | null | undefined;
4895
+ enabled?: boolean | null | undefined;
4896
+ } | null | undefined;
4897
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4898
+ hash: string;
4899
+ _id?: unknown;
4900
+ usedAt?: NativeDate | null | undefined;
4901
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4902
+ hash: string;
4903
+ _id?: unknown;
4904
+ usedAt?: NativeDate | null | undefined;
4905
+ }> & {
4906
+ hash: string;
4907
+ _id?: unknown;
4908
+ usedAt?: NativeDate | null | undefined;
4909
+ }> | null | undefined;
4910
+ } | null | undefined;
4284
4911
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4285
4912
  password: string;
4286
4913
  email: string;
@@ -4316,6 +4943,25 @@ export declare const UserModel: import("mongoose").Model<{
4316
4943
  token: string;
4317
4944
  _id?: unknown;
4318
4945
  }> | null | undefined;
4946
+ mfa?: {
4947
+ totp?: {
4948
+ secret?: string | null | undefined;
4949
+ enabled?: boolean | null | undefined;
4950
+ } | null | undefined;
4951
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
4952
+ hash: string;
4953
+ _id?: unknown;
4954
+ usedAt?: NativeDate | null | undefined;
4955
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4956
+ hash: string;
4957
+ _id?: unknown;
4958
+ usedAt?: NativeDate | null | undefined;
4959
+ }> & {
4960
+ hash: string;
4961
+ _id?: unknown;
4962
+ usedAt?: NativeDate | null | undefined;
4963
+ }> | null | undefined;
4964
+ } | null | undefined;
4319
4965
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4320
4966
  password: string;
4321
4967
  email: string;
@@ -4351,6 +4997,25 @@ export declare const UserModel: import("mongoose").Model<{
4351
4997
  token: string;
4352
4998
  _id?: unknown;
4353
4999
  }> | null | undefined;
5000
+ mfa?: {
5001
+ totp?: {
5002
+ secret?: string | null | undefined;
5003
+ enabled?: boolean | null | undefined;
5004
+ } | null | undefined;
5005
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5006
+ hash: string;
5007
+ _id?: unknown;
5008
+ usedAt?: NativeDate | null | undefined;
5009
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5010
+ hash: string;
5011
+ _id?: unknown;
5012
+ usedAt?: NativeDate | null | undefined;
5013
+ }> & {
5014
+ hash: string;
5015
+ _id?: unknown;
5016
+ usedAt?: NativeDate | null | undefined;
5017
+ }> | null | undefined;
5018
+ } | null | undefined;
4354
5019
  }> & {
4355
5020
  _id: import("mongoose").Types.ObjectId;
4356
5021
  } & {
@@ -4390,6 +5055,25 @@ export declare const UserModel: import("mongoose").Model<{
4390
5055
  token: string;
4391
5056
  _id?: unknown;
4392
5057
  }> | null | undefined;
5058
+ mfa?: {
5059
+ totp?: {
5060
+ secret?: string | null | undefined;
5061
+ enabled?: boolean | null | undefined;
5062
+ } | null | undefined;
5063
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5064
+ hash: string;
5065
+ _id?: unknown;
5066
+ usedAt?: NativeDate | null | undefined;
5067
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5068
+ hash: string;
5069
+ _id?: unknown;
5070
+ usedAt?: NativeDate | null | undefined;
5071
+ }> & {
5072
+ hash: string;
5073
+ _id?: unknown;
5074
+ usedAt?: NativeDate | null | undefined;
5075
+ }> | null | undefined;
5076
+ } | null | undefined;
4393
5077
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4394
5078
  password: string;
4395
5079
  email: string;
@@ -4425,6 +5109,25 @@ export declare const UserModel: import("mongoose").Model<{
4425
5109
  token: string;
4426
5110
  _id?: unknown;
4427
5111
  }> | null | undefined;
5112
+ mfa?: {
5113
+ totp?: {
5114
+ secret?: string | null | undefined;
5115
+ enabled?: boolean | null | undefined;
5116
+ } | null | undefined;
5117
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5118
+ hash: string;
5119
+ _id?: unknown;
5120
+ usedAt?: NativeDate | null | undefined;
5121
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5122
+ hash: string;
5123
+ _id?: unknown;
5124
+ usedAt?: NativeDate | null | undefined;
5125
+ }> & {
5126
+ hash: string;
5127
+ _id?: unknown;
5128
+ usedAt?: NativeDate | null | undefined;
5129
+ }> | null | undefined;
5130
+ } | null | undefined;
4428
5131
  }> & {
4429
5132
  _id: import("mongoose").Types.ObjectId;
4430
5133
  } & {
@@ -4465,6 +5168,25 @@ export declare const UserModel: import("mongoose").Model<{
4465
5168
  token: string;
4466
5169
  _id?: unknown;
4467
5170
  }> | null | undefined;
5171
+ mfa?: {
5172
+ totp?: {
5173
+ secret?: string | null | undefined;
5174
+ enabled?: boolean | null | undefined;
5175
+ } | null | undefined;
5176
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5177
+ hash: string;
5178
+ _id?: unknown;
5179
+ usedAt?: NativeDate | null | undefined;
5180
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5181
+ hash: string;
5182
+ _id?: unknown;
5183
+ usedAt?: NativeDate | null | undefined;
5184
+ }> & {
5185
+ hash: string;
5186
+ _id?: unknown;
5187
+ usedAt?: NativeDate | null | undefined;
5188
+ }> | null | undefined;
5189
+ } | null | undefined;
4468
5190
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4469
5191
  password: string;
4470
5192
  email: string;
@@ -4500,6 +5222,25 @@ export declare const UserModel: import("mongoose").Model<{
4500
5222
  token: string;
4501
5223
  _id?: unknown;
4502
5224
  }> | null | undefined;
5225
+ mfa?: {
5226
+ totp?: {
5227
+ secret?: string | null | undefined;
5228
+ enabled?: boolean | null | undefined;
5229
+ } | null | undefined;
5230
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5231
+ hash: string;
5232
+ _id?: unknown;
5233
+ usedAt?: NativeDate | null | undefined;
5234
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5235
+ hash: string;
5236
+ _id?: unknown;
5237
+ usedAt?: NativeDate | null | undefined;
5238
+ }> & {
5239
+ hash: string;
5240
+ _id?: unknown;
5241
+ usedAt?: NativeDate | null | undefined;
5242
+ }> | null | undefined;
5243
+ } | null | undefined;
4503
5244
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4504
5245
  password: string;
4505
5246
  email: string;
@@ -4535,6 +5276,25 @@ export declare const UserModel: import("mongoose").Model<{
4535
5276
  token: string;
4536
5277
  _id?: unknown;
4537
5278
  }> | null | undefined;
5279
+ mfa?: {
5280
+ totp?: {
5281
+ secret?: string | null | undefined;
5282
+ enabled?: boolean | null | undefined;
5283
+ } | null | undefined;
5284
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5285
+ hash: string;
5286
+ _id?: unknown;
5287
+ usedAt?: NativeDate | null | undefined;
5288
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5289
+ hash: string;
5290
+ _id?: unknown;
5291
+ usedAt?: NativeDate | null | undefined;
5292
+ }> & {
5293
+ hash: string;
5294
+ _id?: unknown;
5295
+ usedAt?: NativeDate | null | undefined;
5296
+ }> | null | undefined;
5297
+ } | null | undefined;
4538
5298
  }> & {
4539
5299
  _id: import("mongoose").Types.ObjectId;
4540
5300
  } & {
@@ -4575,6 +5335,25 @@ export declare const UserModel: import("mongoose").Model<{
4575
5335
  token: string;
4576
5336
  _id?: unknown;
4577
5337
  }> | null | undefined;
5338
+ mfa?: {
5339
+ totp?: {
5340
+ secret?: string | null | undefined;
5341
+ enabled?: boolean | null | undefined;
5342
+ } | null | undefined;
5343
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5344
+ hash: string;
5345
+ _id?: unknown;
5346
+ usedAt?: NativeDate | null | undefined;
5347
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5348
+ hash: string;
5349
+ _id?: unknown;
5350
+ usedAt?: NativeDate | null | undefined;
5351
+ }> & {
5352
+ hash: string;
5353
+ _id?: unknown;
5354
+ usedAt?: NativeDate | null | undefined;
5355
+ }> | null | undefined;
5356
+ } | null | undefined;
4578
5357
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4579
5358
  password: string;
4580
5359
  email: string;
@@ -4610,6 +5389,25 @@ export declare const UserModel: import("mongoose").Model<{
4610
5389
  token: string;
4611
5390
  _id?: unknown;
4612
5391
  }> | null | undefined;
5392
+ mfa?: {
5393
+ totp?: {
5394
+ secret?: string | null | undefined;
5395
+ enabled?: boolean | null | undefined;
5396
+ } | null | undefined;
5397
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5398
+ hash: string;
5399
+ _id?: unknown;
5400
+ usedAt?: NativeDate | null | undefined;
5401
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5402
+ hash: string;
5403
+ _id?: unknown;
5404
+ usedAt?: NativeDate | null | undefined;
5405
+ }> & {
5406
+ hash: string;
5407
+ _id?: unknown;
5408
+ usedAt?: NativeDate | null | undefined;
5409
+ }> | null | undefined;
5410
+ } | null | undefined;
4613
5411
  }> & {
4614
5412
  _id: import("mongoose").Types.ObjectId;
4615
5413
  } & {
@@ -4664,6 +5462,25 @@ export declare const UserModel: import("mongoose").Model<{
4664
5462
  token: string;
4665
5463
  _id?: unknown;
4666
5464
  }> | null | undefined;
5465
+ mfa?: {
5466
+ totp?: {
5467
+ secret?: string | null | undefined;
5468
+ enabled?: boolean | null | undefined;
5469
+ } | null | undefined;
5470
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5471
+ hash: string;
5472
+ _id?: unknown;
5473
+ usedAt?: NativeDate | null | undefined;
5474
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5475
+ hash: string;
5476
+ _id?: unknown;
5477
+ usedAt?: NativeDate | null | undefined;
5478
+ }> & {
5479
+ hash: string;
5480
+ _id?: unknown;
5481
+ usedAt?: NativeDate | null | undefined;
5482
+ }> | null | undefined;
5483
+ } | null | undefined;
4667
5484
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4668
5485
  password: string;
4669
5486
  email: string;
@@ -4699,6 +5516,25 @@ export declare const UserModel: import("mongoose").Model<{
4699
5516
  token: string;
4700
5517
  _id?: unknown;
4701
5518
  }> | null | undefined;
5519
+ mfa?: {
5520
+ totp?: {
5521
+ secret?: string | null | undefined;
5522
+ enabled?: boolean | null | undefined;
5523
+ } | null | undefined;
5524
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5525
+ hash: string;
5526
+ _id?: unknown;
5527
+ usedAt?: NativeDate | null | undefined;
5528
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5529
+ hash: string;
5530
+ _id?: unknown;
5531
+ usedAt?: NativeDate | null | undefined;
5532
+ }> & {
5533
+ hash: string;
5534
+ _id?: unknown;
5535
+ usedAt?: NativeDate | null | undefined;
5536
+ }> | null | undefined;
5537
+ } | null | undefined;
4702
5538
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4703
5539
  password: string;
4704
5540
  email: string;
@@ -4734,6 +5570,25 @@ export declare const UserModel: import("mongoose").Model<{
4734
5570
  token: string;
4735
5571
  _id?: unknown;
4736
5572
  }> | null | undefined;
5573
+ mfa?: {
5574
+ totp?: {
5575
+ secret?: string | null | undefined;
5576
+ enabled?: boolean | null | undefined;
5577
+ } | null | undefined;
5578
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5579
+ hash: string;
5580
+ _id?: unknown;
5581
+ usedAt?: NativeDate | null | undefined;
5582
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5583
+ hash: string;
5584
+ _id?: unknown;
5585
+ usedAt?: NativeDate | null | undefined;
5586
+ }> & {
5587
+ hash: string;
5588
+ _id?: unknown;
5589
+ usedAt?: NativeDate | null | undefined;
5590
+ }> | null | undefined;
5591
+ } | null | undefined;
4737
5592
  }> & {
4738
5593
  _id: import("mongoose").Types.ObjectId;
4739
5594
  } & {
@@ -4774,6 +5629,25 @@ export declare const UserModel: import("mongoose").Model<{
4774
5629
  token: string;
4775
5630
  _id?: unknown;
4776
5631
  }> | null | undefined;
5632
+ mfa?: {
5633
+ totp?: {
5634
+ secret?: string | null | undefined;
5635
+ enabled?: boolean | null | undefined;
5636
+ } | null | undefined;
5637
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5638
+ hash: string;
5639
+ _id?: unknown;
5640
+ usedAt?: NativeDate | null | undefined;
5641
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5642
+ hash: string;
5643
+ _id?: unknown;
5644
+ usedAt?: NativeDate | null | undefined;
5645
+ }> & {
5646
+ hash: string;
5647
+ _id?: unknown;
5648
+ usedAt?: NativeDate | null | undefined;
5649
+ }> | null | undefined;
5650
+ } | null | undefined;
4777
5651
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4778
5652
  password: string;
4779
5653
  email: string;
@@ -4809,6 +5683,25 @@ export declare const UserModel: import("mongoose").Model<{
4809
5683
  token: string;
4810
5684
  _id?: unknown;
4811
5685
  }> | null | undefined;
5686
+ mfa?: {
5687
+ totp?: {
5688
+ secret?: string | null | undefined;
5689
+ enabled?: boolean | null | undefined;
5690
+ } | null | undefined;
5691
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5692
+ hash: string;
5693
+ _id?: unknown;
5694
+ usedAt?: NativeDate | null | undefined;
5695
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5696
+ hash: string;
5697
+ _id?: unknown;
5698
+ usedAt?: NativeDate | null | undefined;
5699
+ }> & {
5700
+ hash: string;
5701
+ _id?: unknown;
5702
+ usedAt?: NativeDate | null | undefined;
5703
+ }> | null | undefined;
5704
+ } | null | undefined;
4812
5705
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4813
5706
  password: string;
4814
5707
  email: string;
@@ -4844,6 +5737,25 @@ export declare const UserModel: import("mongoose").Model<{
4844
5737
  token: string;
4845
5738
  _id?: unknown;
4846
5739
  }> | null | undefined;
5740
+ mfa?: {
5741
+ totp?: {
5742
+ secret?: string | null | undefined;
5743
+ enabled?: boolean | null | undefined;
5744
+ } | null | undefined;
5745
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5746
+ hash: string;
5747
+ _id?: unknown;
5748
+ usedAt?: NativeDate | null | undefined;
5749
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5750
+ hash: string;
5751
+ _id?: unknown;
5752
+ usedAt?: NativeDate | null | undefined;
5753
+ }> & {
5754
+ hash: string;
5755
+ _id?: unknown;
5756
+ usedAt?: NativeDate | null | undefined;
5757
+ }> | null | undefined;
5758
+ } | null | undefined;
4847
5759
  }> & {
4848
5760
  _id: import("mongoose").Types.ObjectId;
4849
5761
  } & {
@@ -4883,6 +5795,25 @@ export declare const UserModel: import("mongoose").Model<{
4883
5795
  token: string;
4884
5796
  _id?: unknown;
4885
5797
  }> | null | undefined;
5798
+ mfa?: {
5799
+ totp?: {
5800
+ secret?: string | null | undefined;
5801
+ enabled?: boolean | null | undefined;
5802
+ } | null | undefined;
5803
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5804
+ hash: string;
5805
+ _id?: unknown;
5806
+ usedAt?: NativeDate | null | undefined;
5807
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5808
+ hash: string;
5809
+ _id?: unknown;
5810
+ usedAt?: NativeDate | null | undefined;
5811
+ }> & {
5812
+ hash: string;
5813
+ _id?: unknown;
5814
+ usedAt?: NativeDate | null | undefined;
5815
+ }> | null | undefined;
5816
+ } | null | undefined;
4886
5817
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4887
5818
  password: string;
4888
5819
  email: string;
@@ -4918,6 +5849,25 @@ export declare const UserModel: import("mongoose").Model<{
4918
5849
  token: string;
4919
5850
  _id?: unknown;
4920
5851
  }> | null | undefined;
5852
+ mfa?: {
5853
+ totp?: {
5854
+ secret?: string | null | undefined;
5855
+ enabled?: boolean | null | undefined;
5856
+ } | null | undefined;
5857
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5858
+ hash: string;
5859
+ _id?: unknown;
5860
+ usedAt?: NativeDate | null | undefined;
5861
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5862
+ hash: string;
5863
+ _id?: unknown;
5864
+ usedAt?: NativeDate | null | undefined;
5865
+ }> & {
5866
+ hash: string;
5867
+ _id?: unknown;
5868
+ usedAt?: NativeDate | null | undefined;
5869
+ }> | null | undefined;
5870
+ } | null | undefined;
4921
5871
  }> & {
4922
5872
  _id: import("mongoose").Types.ObjectId;
4923
5873
  } & {
@@ -4958,6 +5908,25 @@ export declare const UserModel: import("mongoose").Model<{
4958
5908
  token: string;
4959
5909
  _id?: unknown;
4960
5910
  }> | null | undefined;
5911
+ mfa?: {
5912
+ totp?: {
5913
+ secret?: string | null | undefined;
5914
+ enabled?: boolean | null | undefined;
5915
+ } | null | undefined;
5916
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5917
+ hash: string;
5918
+ _id?: unknown;
5919
+ usedAt?: NativeDate | null | undefined;
5920
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5921
+ hash: string;
5922
+ _id?: unknown;
5923
+ usedAt?: NativeDate | null | undefined;
5924
+ }> & {
5925
+ hash: string;
5926
+ _id?: unknown;
5927
+ usedAt?: NativeDate | null | undefined;
5928
+ }> | null | undefined;
5929
+ } | null | undefined;
4961
5930
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4962
5931
  password: string;
4963
5932
  email: string;
@@ -4993,6 +5962,25 @@ export declare const UserModel: import("mongoose").Model<{
4993
5962
  token: string;
4994
5963
  _id?: unknown;
4995
5964
  }> | null | undefined;
5965
+ mfa?: {
5966
+ totp?: {
5967
+ secret?: string | null | undefined;
5968
+ enabled?: boolean | null | undefined;
5969
+ } | null | undefined;
5970
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
5971
+ hash: string;
5972
+ _id?: unknown;
5973
+ usedAt?: NativeDate | null | undefined;
5974
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5975
+ hash: string;
5976
+ _id?: unknown;
5977
+ usedAt?: NativeDate | null | undefined;
5978
+ }> & {
5979
+ hash: string;
5980
+ _id?: unknown;
5981
+ usedAt?: NativeDate | null | undefined;
5982
+ }> | null | undefined;
5983
+ } | null | undefined;
4996
5984
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4997
5985
  password: string;
4998
5986
  email: string;
@@ -5028,6 +6016,25 @@ export declare const UserModel: import("mongoose").Model<{
5028
6016
  token: string;
5029
6017
  _id?: unknown;
5030
6018
  }> | null | undefined;
6019
+ mfa?: {
6020
+ totp?: {
6021
+ secret?: string | null | undefined;
6022
+ enabled?: boolean | null | undefined;
6023
+ } | null | undefined;
6024
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6025
+ hash: string;
6026
+ _id?: unknown;
6027
+ usedAt?: NativeDate | null | undefined;
6028
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6029
+ hash: string;
6030
+ _id?: unknown;
6031
+ usedAt?: NativeDate | null | undefined;
6032
+ }> & {
6033
+ hash: string;
6034
+ _id?: unknown;
6035
+ usedAt?: NativeDate | null | undefined;
6036
+ }> | null | undefined;
6037
+ } | null | undefined;
5031
6038
  }> & {
5032
6039
  _id: import("mongoose").Types.ObjectId;
5033
6040
  } & {
@@ -5067,6 +6074,25 @@ export declare const UserModel: import("mongoose").Model<{
5067
6074
  token: string;
5068
6075
  _id?: unknown;
5069
6076
  }> | null | undefined;
6077
+ mfa?: {
6078
+ totp?: {
6079
+ secret?: string | null | undefined;
6080
+ enabled?: boolean | null | undefined;
6081
+ } | null | undefined;
6082
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6083
+ hash: string;
6084
+ _id?: unknown;
6085
+ usedAt?: NativeDate | null | undefined;
6086
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6087
+ hash: string;
6088
+ _id?: unknown;
6089
+ usedAt?: NativeDate | null | undefined;
6090
+ }> & {
6091
+ hash: string;
6092
+ _id?: unknown;
6093
+ usedAt?: NativeDate | null | undefined;
6094
+ }> | null | undefined;
6095
+ } | null | undefined;
5070
6096
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5071
6097
  password: string;
5072
6098
  email: string;
@@ -5102,6 +6128,25 @@ export declare const UserModel: import("mongoose").Model<{
5102
6128
  token: string;
5103
6129
  _id?: unknown;
5104
6130
  }> | null | undefined;
6131
+ mfa?: {
6132
+ totp?: {
6133
+ secret?: string | null | undefined;
6134
+ enabled?: boolean | null | undefined;
6135
+ } | null | undefined;
6136
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6137
+ hash: string;
6138
+ _id?: unknown;
6139
+ usedAt?: NativeDate | null | undefined;
6140
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6141
+ hash: string;
6142
+ _id?: unknown;
6143
+ usedAt?: NativeDate | null | undefined;
6144
+ }> & {
6145
+ hash: string;
6146
+ _id?: unknown;
6147
+ usedAt?: NativeDate | null | undefined;
6148
+ }> | null | undefined;
6149
+ } | null | undefined;
5105
6150
  }> & {
5106
6151
  _id: import("mongoose").Types.ObjectId;
5107
6152
  } & {
@@ -5142,6 +6187,25 @@ export declare const UserModel: import("mongoose").Model<{
5142
6187
  token: string;
5143
6188
  _id?: unknown;
5144
6189
  }> | null | undefined;
6190
+ mfa?: {
6191
+ totp?: {
6192
+ secret?: string | null | undefined;
6193
+ enabled?: boolean | null | undefined;
6194
+ } | null | undefined;
6195
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6196
+ hash: string;
6197
+ _id?: unknown;
6198
+ usedAt?: NativeDate | null | undefined;
6199
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6200
+ hash: string;
6201
+ _id?: unknown;
6202
+ usedAt?: NativeDate | null | undefined;
6203
+ }> & {
6204
+ hash: string;
6205
+ _id?: unknown;
6206
+ usedAt?: NativeDate | null | undefined;
6207
+ }> | null | undefined;
6208
+ } | null | undefined;
5145
6209
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5146
6210
  password: string;
5147
6211
  email: string;
@@ -5177,6 +6241,25 @@ export declare const UserModel: import("mongoose").Model<{
5177
6241
  token: string;
5178
6242
  _id?: unknown;
5179
6243
  }> | null | undefined;
6244
+ mfa?: {
6245
+ totp?: {
6246
+ secret?: string | null | undefined;
6247
+ enabled?: boolean | null | undefined;
6248
+ } | null | undefined;
6249
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6250
+ hash: string;
6251
+ _id?: unknown;
6252
+ usedAt?: NativeDate | null | undefined;
6253
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6254
+ hash: string;
6255
+ _id?: unknown;
6256
+ usedAt?: NativeDate | null | undefined;
6257
+ }> & {
6258
+ hash: string;
6259
+ _id?: unknown;
6260
+ usedAt?: NativeDate | null | undefined;
6261
+ }> | null | undefined;
6262
+ } | null | undefined;
5180
6263
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5181
6264
  password: string;
5182
6265
  email: string;
@@ -5212,6 +6295,25 @@ export declare const UserModel: import("mongoose").Model<{
5212
6295
  token: string;
5213
6296
  _id?: unknown;
5214
6297
  }> | null | undefined;
6298
+ mfa?: {
6299
+ totp?: {
6300
+ secret?: string | null | undefined;
6301
+ enabled?: boolean | null | undefined;
6302
+ } | null | undefined;
6303
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6304
+ hash: string;
6305
+ _id?: unknown;
6306
+ usedAt?: NativeDate | null | undefined;
6307
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6308
+ hash: string;
6309
+ _id?: unknown;
6310
+ usedAt?: NativeDate | null | undefined;
6311
+ }> & {
6312
+ hash: string;
6313
+ _id?: unknown;
6314
+ usedAt?: NativeDate | null | undefined;
6315
+ }> | null | undefined;
6316
+ } | null | undefined;
5215
6317
  }> & {
5216
6318
  _id: import("mongoose").Types.ObjectId;
5217
6319
  } & {
@@ -5252,6 +6354,25 @@ export declare const UserModel: import("mongoose").Model<{
5252
6354
  token: string;
5253
6355
  _id?: unknown;
5254
6356
  }> | null | undefined;
6357
+ mfa?: {
6358
+ totp?: {
6359
+ secret?: string | null | undefined;
6360
+ enabled?: boolean | null | undefined;
6361
+ } | null | undefined;
6362
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6363
+ hash: string;
6364
+ _id?: unknown;
6365
+ usedAt?: NativeDate | null | undefined;
6366
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6367
+ hash: string;
6368
+ _id?: unknown;
6369
+ usedAt?: NativeDate | null | undefined;
6370
+ }> & {
6371
+ hash: string;
6372
+ _id?: unknown;
6373
+ usedAt?: NativeDate | null | undefined;
6374
+ }> | null | undefined;
6375
+ } | null | undefined;
5255
6376
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5256
6377
  password: string;
5257
6378
  email: string;
@@ -5287,6 +6408,25 @@ export declare const UserModel: import("mongoose").Model<{
5287
6408
  token: string;
5288
6409
  _id?: unknown;
5289
6410
  }> | null | undefined;
6411
+ mfa?: {
6412
+ totp?: {
6413
+ secret?: string | null | undefined;
6414
+ enabled?: boolean | null | undefined;
6415
+ } | null | undefined;
6416
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6417
+ hash: string;
6418
+ _id?: unknown;
6419
+ usedAt?: NativeDate | null | undefined;
6420
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6421
+ hash: string;
6422
+ _id?: unknown;
6423
+ usedAt?: NativeDate | null | undefined;
6424
+ }> & {
6425
+ hash: string;
6426
+ _id?: unknown;
6427
+ usedAt?: NativeDate | null | undefined;
6428
+ }> | null | undefined;
6429
+ } | null | undefined;
5290
6430
  }> & {
5291
6431
  _id: import("mongoose").Types.ObjectId;
5292
6432
  } & {
@@ -5340,6 +6480,25 @@ export declare const UserModel: import("mongoose").Model<{
5340
6480
  token: string;
5341
6481
  _id?: unknown;
5342
6482
  }> | null | undefined;
6483
+ mfa?: {
6484
+ totp?: {
6485
+ secret?: string | null | undefined;
6486
+ enabled?: boolean | null | undefined;
6487
+ } | null | undefined;
6488
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6489
+ hash: string;
6490
+ _id?: unknown;
6491
+ usedAt?: NativeDate | null | undefined;
6492
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6493
+ hash: string;
6494
+ _id?: unknown;
6495
+ usedAt?: NativeDate | null | undefined;
6496
+ }> & {
6497
+ hash: string;
6498
+ _id?: unknown;
6499
+ usedAt?: NativeDate | null | undefined;
6500
+ }> | null | undefined;
6501
+ } | null | undefined;
5343
6502
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5344
6503
  password: string;
5345
6504
  email: string;
@@ -5375,6 +6534,25 @@ export declare const UserModel: import("mongoose").Model<{
5375
6534
  token: string;
5376
6535
  _id?: unknown;
5377
6536
  }> | null | undefined;
6537
+ mfa?: {
6538
+ totp?: {
6539
+ secret?: string | null | undefined;
6540
+ enabled?: boolean | null | undefined;
6541
+ } | null | undefined;
6542
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6543
+ hash: string;
6544
+ _id?: unknown;
6545
+ usedAt?: NativeDate | null | undefined;
6546
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6547
+ hash: string;
6548
+ _id?: unknown;
6549
+ usedAt?: NativeDate | null | undefined;
6550
+ }> & {
6551
+ hash: string;
6552
+ _id?: unknown;
6553
+ usedAt?: NativeDate | null | undefined;
6554
+ }> | null | undefined;
6555
+ } | null | undefined;
5378
6556
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5379
6557
  password: string;
5380
6558
  email: string;
@@ -5410,6 +6588,25 @@ export declare const UserModel: import("mongoose").Model<{
5410
6588
  token: string;
5411
6589
  _id?: unknown;
5412
6590
  }> | null | undefined;
6591
+ mfa?: {
6592
+ totp?: {
6593
+ secret?: string | null | undefined;
6594
+ enabled?: boolean | null | undefined;
6595
+ } | null | undefined;
6596
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6597
+ hash: string;
6598
+ _id?: unknown;
6599
+ usedAt?: NativeDate | null | undefined;
6600
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6601
+ hash: string;
6602
+ _id?: unknown;
6603
+ usedAt?: NativeDate | null | undefined;
6604
+ }> & {
6605
+ hash: string;
6606
+ _id?: unknown;
6607
+ usedAt?: NativeDate | null | undefined;
6608
+ }> | null | undefined;
6609
+ } | null | undefined;
5413
6610
  }> & {
5414
6611
  _id: import("mongoose").Types.ObjectId;
5415
6612
  } & {
@@ -5450,6 +6647,25 @@ export declare const UserModel: import("mongoose").Model<{
5450
6647
  token: string;
5451
6648
  _id?: unknown;
5452
6649
  }> | null | undefined;
6650
+ mfa?: {
6651
+ totp?: {
6652
+ secret?: string | null | undefined;
6653
+ enabled?: boolean | null | undefined;
6654
+ } | null | undefined;
6655
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6656
+ hash: string;
6657
+ _id?: unknown;
6658
+ usedAt?: NativeDate | null | undefined;
6659
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6660
+ hash: string;
6661
+ _id?: unknown;
6662
+ usedAt?: NativeDate | null | undefined;
6663
+ }> & {
6664
+ hash: string;
6665
+ _id?: unknown;
6666
+ usedAt?: NativeDate | null | undefined;
6667
+ }> | null | undefined;
6668
+ } | null | undefined;
5453
6669
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5454
6670
  password: string;
5455
6671
  email: string;
@@ -5485,6 +6701,25 @@ export declare const UserModel: import("mongoose").Model<{
5485
6701
  token: string;
5486
6702
  _id?: unknown;
5487
6703
  }> | null | undefined;
6704
+ mfa?: {
6705
+ totp?: {
6706
+ secret?: string | null | undefined;
6707
+ enabled?: boolean | null | undefined;
6708
+ } | null | undefined;
6709
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6710
+ hash: string;
6711
+ _id?: unknown;
6712
+ usedAt?: NativeDate | null | undefined;
6713
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6714
+ hash: string;
6715
+ _id?: unknown;
6716
+ usedAt?: NativeDate | null | undefined;
6717
+ }> & {
6718
+ hash: string;
6719
+ _id?: unknown;
6720
+ usedAt?: NativeDate | null | undefined;
6721
+ }> | null | undefined;
6722
+ } | null | undefined;
5488
6723
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5489
6724
  password: string;
5490
6725
  email: string;
@@ -5520,6 +6755,25 @@ export declare const UserModel: import("mongoose").Model<{
5520
6755
  token: string;
5521
6756
  _id?: unknown;
5522
6757
  }> | null | undefined;
6758
+ mfa?: {
6759
+ totp?: {
6760
+ secret?: string | null | undefined;
6761
+ enabled?: boolean | null | undefined;
6762
+ } | null | undefined;
6763
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6764
+ hash: string;
6765
+ _id?: unknown;
6766
+ usedAt?: NativeDate | null | undefined;
6767
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6768
+ hash: string;
6769
+ _id?: unknown;
6770
+ usedAt?: NativeDate | null | undefined;
6771
+ }> & {
6772
+ hash: string;
6773
+ _id?: unknown;
6774
+ usedAt?: NativeDate | null | undefined;
6775
+ }> | null | undefined;
6776
+ } | null | undefined;
5523
6777
  }> & {
5524
6778
  _id: import("mongoose").Types.ObjectId;
5525
6779
  } & {
@@ -5560,6 +6814,25 @@ export declare const UserModel: import("mongoose").Model<{
5560
6814
  token: string;
5561
6815
  _id?: unknown;
5562
6816
  }> | null | undefined;
6817
+ mfa?: {
6818
+ totp?: {
6819
+ secret?: string | null | undefined;
6820
+ enabled?: boolean | null | undefined;
6821
+ } | null | undefined;
6822
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6823
+ hash: string;
6824
+ _id?: unknown;
6825
+ usedAt?: NativeDate | null | undefined;
6826
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6827
+ hash: string;
6828
+ _id?: unknown;
6829
+ usedAt?: NativeDate | null | undefined;
6830
+ }> & {
6831
+ hash: string;
6832
+ _id?: unknown;
6833
+ usedAt?: NativeDate | null | undefined;
6834
+ }> | null | undefined;
6835
+ } | null | undefined;
5563
6836
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5564
6837
  password: string;
5565
6838
  email: string;
@@ -5595,6 +6868,25 @@ export declare const UserModel: import("mongoose").Model<{
5595
6868
  token: string;
5596
6869
  _id?: unknown;
5597
6870
  }> | null | undefined;
6871
+ mfa?: {
6872
+ totp?: {
6873
+ secret?: string | null | undefined;
6874
+ enabled?: boolean | null | undefined;
6875
+ } | null | undefined;
6876
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6877
+ hash: string;
6878
+ _id?: unknown;
6879
+ usedAt?: NativeDate | null | undefined;
6880
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6881
+ hash: string;
6882
+ _id?: unknown;
6883
+ usedAt?: NativeDate | null | undefined;
6884
+ }> & {
6885
+ hash: string;
6886
+ _id?: unknown;
6887
+ usedAt?: NativeDate | null | undefined;
6888
+ }> | null | undefined;
6889
+ } | null | undefined;
5598
6890
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5599
6891
  password: string;
5600
6892
  email: string;
@@ -5630,6 +6922,25 @@ export declare const UserModel: import("mongoose").Model<{
5630
6922
  token: string;
5631
6923
  _id?: unknown;
5632
6924
  }> | null | undefined;
6925
+ mfa?: {
6926
+ totp?: {
6927
+ secret?: string | null | undefined;
6928
+ enabled?: boolean | null | undefined;
6929
+ } | null | undefined;
6930
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6931
+ hash: string;
6932
+ _id?: unknown;
6933
+ usedAt?: NativeDate | null | undefined;
6934
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6935
+ hash: string;
6936
+ _id?: unknown;
6937
+ usedAt?: NativeDate | null | undefined;
6938
+ }> & {
6939
+ hash: string;
6940
+ _id?: unknown;
6941
+ usedAt?: NativeDate | null | undefined;
6942
+ }> | null | undefined;
6943
+ } | null | undefined;
5633
6944
  }> & {
5634
6945
  _id: import("mongoose").Types.ObjectId;
5635
6946
  } & {
@@ -5669,6 +6980,25 @@ export declare const UserModel: import("mongoose").Model<{
5669
6980
  token: string;
5670
6981
  _id?: unknown;
5671
6982
  }> | null | undefined;
6983
+ mfa?: {
6984
+ totp?: {
6985
+ secret?: string | null | undefined;
6986
+ enabled?: boolean | null | undefined;
6987
+ } | null | undefined;
6988
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
6989
+ hash: string;
6990
+ _id?: unknown;
6991
+ usedAt?: NativeDate | null | undefined;
6992
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6993
+ hash: string;
6994
+ _id?: unknown;
6995
+ usedAt?: NativeDate | null | undefined;
6996
+ }> & {
6997
+ hash: string;
6998
+ _id?: unknown;
6999
+ usedAt?: NativeDate | null | undefined;
7000
+ }> | null | undefined;
7001
+ } | null | undefined;
5672
7002
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5673
7003
  password: string;
5674
7004
  email: string;
@@ -5704,6 +7034,25 @@ export declare const UserModel: import("mongoose").Model<{
5704
7034
  token: string;
5705
7035
  _id?: unknown;
5706
7036
  }> | null | undefined;
7037
+ mfa?: {
7038
+ totp?: {
7039
+ secret?: string | null | undefined;
7040
+ enabled?: boolean | null | undefined;
7041
+ } | null | undefined;
7042
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7043
+ hash: string;
7044
+ _id?: unknown;
7045
+ usedAt?: NativeDate | null | undefined;
7046
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7047
+ hash: string;
7048
+ _id?: unknown;
7049
+ usedAt?: NativeDate | null | undefined;
7050
+ }> & {
7051
+ hash: string;
7052
+ _id?: unknown;
7053
+ usedAt?: NativeDate | null | undefined;
7054
+ }> | null | undefined;
7055
+ } | null | undefined;
5707
7056
  }> & {
5708
7057
  _id: import("mongoose").Types.ObjectId;
5709
7058
  } & {
@@ -5744,6 +7093,25 @@ export declare const UserModel: import("mongoose").Model<{
5744
7093
  token: string;
5745
7094
  _id?: unknown;
5746
7095
  }> | null | undefined;
7096
+ mfa?: {
7097
+ totp?: {
7098
+ secret?: string | null | undefined;
7099
+ enabled?: boolean | null | undefined;
7100
+ } | null | undefined;
7101
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7102
+ hash: string;
7103
+ _id?: unknown;
7104
+ usedAt?: NativeDate | null | undefined;
7105
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7106
+ hash: string;
7107
+ _id?: unknown;
7108
+ usedAt?: NativeDate | null | undefined;
7109
+ }> & {
7110
+ hash: string;
7111
+ _id?: unknown;
7112
+ usedAt?: NativeDate | null | undefined;
7113
+ }> | null | undefined;
7114
+ } | null | undefined;
5747
7115
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5748
7116
  password: string;
5749
7117
  email: string;
@@ -5779,6 +7147,25 @@ export declare const UserModel: import("mongoose").Model<{
5779
7147
  token: string;
5780
7148
  _id?: unknown;
5781
7149
  }> | null | undefined;
7150
+ mfa?: {
7151
+ totp?: {
7152
+ secret?: string | null | undefined;
7153
+ enabled?: boolean | null | undefined;
7154
+ } | null | undefined;
7155
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7156
+ hash: string;
7157
+ _id?: unknown;
7158
+ usedAt?: NativeDate | null | undefined;
7159
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7160
+ hash: string;
7161
+ _id?: unknown;
7162
+ usedAt?: NativeDate | null | undefined;
7163
+ }> & {
7164
+ hash: string;
7165
+ _id?: unknown;
7166
+ usedAt?: NativeDate | null | undefined;
7167
+ }> | null | undefined;
7168
+ } | null | undefined;
5782
7169
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5783
7170
  password: string;
5784
7171
  email: string;
@@ -5814,6 +7201,25 @@ export declare const UserModel: import("mongoose").Model<{
5814
7201
  token: string;
5815
7202
  _id?: unknown;
5816
7203
  }> | null | undefined;
7204
+ mfa?: {
7205
+ totp?: {
7206
+ secret?: string | null | undefined;
7207
+ enabled?: boolean | null | undefined;
7208
+ } | null | undefined;
7209
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7210
+ hash: string;
7211
+ _id?: unknown;
7212
+ usedAt?: NativeDate | null | undefined;
7213
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7214
+ hash: string;
7215
+ _id?: unknown;
7216
+ usedAt?: NativeDate | null | undefined;
7217
+ }> & {
7218
+ hash: string;
7219
+ _id?: unknown;
7220
+ usedAt?: NativeDate | null | undefined;
7221
+ }> | null | undefined;
7222
+ } | null | undefined;
5817
7223
  }> & {
5818
7224
  _id: import("mongoose").Types.ObjectId;
5819
7225
  } & {
@@ -5853,6 +7259,25 @@ export declare const UserModel: import("mongoose").Model<{
5853
7259
  token: string;
5854
7260
  _id?: unknown;
5855
7261
  }> | null | undefined;
7262
+ mfa?: {
7263
+ totp?: {
7264
+ secret?: string | null | undefined;
7265
+ enabled?: boolean | null | undefined;
7266
+ } | null | undefined;
7267
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7268
+ hash: string;
7269
+ _id?: unknown;
7270
+ usedAt?: NativeDate | null | undefined;
7271
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7272
+ hash: string;
7273
+ _id?: unknown;
7274
+ usedAt?: NativeDate | null | undefined;
7275
+ }> & {
7276
+ hash: string;
7277
+ _id?: unknown;
7278
+ usedAt?: NativeDate | null | undefined;
7279
+ }> | null | undefined;
7280
+ } | null | undefined;
5856
7281
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5857
7282
  password: string;
5858
7283
  email: string;
@@ -5888,6 +7313,25 @@ export declare const UserModel: import("mongoose").Model<{
5888
7313
  token: string;
5889
7314
  _id?: unknown;
5890
7315
  }> | null | undefined;
7316
+ mfa?: {
7317
+ totp?: {
7318
+ secret?: string | null | undefined;
7319
+ enabled?: boolean | null | undefined;
7320
+ } | null | undefined;
7321
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7322
+ hash: string;
7323
+ _id?: unknown;
7324
+ usedAt?: NativeDate | null | undefined;
7325
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7326
+ hash: string;
7327
+ _id?: unknown;
7328
+ usedAt?: NativeDate | null | undefined;
7329
+ }> & {
7330
+ hash: string;
7331
+ _id?: unknown;
7332
+ usedAt?: NativeDate | null | undefined;
7333
+ }> | null | undefined;
7334
+ } | null | undefined;
5891
7335
  }> & {
5892
7336
  _id: import("mongoose").Types.ObjectId;
5893
7337
  } & {
@@ -5928,6 +7372,25 @@ export declare const UserModel: import("mongoose").Model<{
5928
7372
  token: string;
5929
7373
  _id?: unknown;
5930
7374
  }> | null | undefined;
7375
+ mfa?: {
7376
+ totp?: {
7377
+ secret?: string | null | undefined;
7378
+ enabled?: boolean | null | undefined;
7379
+ } | null | undefined;
7380
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7381
+ hash: string;
7382
+ _id?: unknown;
7383
+ usedAt?: NativeDate | null | undefined;
7384
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7385
+ hash: string;
7386
+ _id?: unknown;
7387
+ usedAt?: NativeDate | null | undefined;
7388
+ }> & {
7389
+ hash: string;
7390
+ _id?: unknown;
7391
+ usedAt?: NativeDate | null | undefined;
7392
+ }> | null | undefined;
7393
+ } | null | undefined;
5931
7394
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5932
7395
  password: string;
5933
7396
  email: string;
@@ -5963,6 +7426,25 @@ export declare const UserModel: import("mongoose").Model<{
5963
7426
  token: string;
5964
7427
  _id?: unknown;
5965
7428
  }> | null | undefined;
7429
+ mfa?: {
7430
+ totp?: {
7431
+ secret?: string | null | undefined;
7432
+ enabled?: boolean | null | undefined;
7433
+ } | null | undefined;
7434
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7435
+ hash: string;
7436
+ _id?: unknown;
7437
+ usedAt?: NativeDate | null | undefined;
7438
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7439
+ hash: string;
7440
+ _id?: unknown;
7441
+ usedAt?: NativeDate | null | undefined;
7442
+ }> & {
7443
+ hash: string;
7444
+ _id?: unknown;
7445
+ usedAt?: NativeDate | null | undefined;
7446
+ }> | null | undefined;
7447
+ } | null | undefined;
5966
7448
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5967
7449
  password: string;
5968
7450
  email: string;
@@ -5998,6 +7480,25 @@ export declare const UserModel: import("mongoose").Model<{
5998
7480
  token: string;
5999
7481
  _id?: unknown;
6000
7482
  }> | null | undefined;
7483
+ mfa?: {
7484
+ totp?: {
7485
+ secret?: string | null | undefined;
7486
+ enabled?: boolean | null | undefined;
7487
+ } | null | undefined;
7488
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7489
+ hash: string;
7490
+ _id?: unknown;
7491
+ usedAt?: NativeDate | null | undefined;
7492
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7493
+ hash: string;
7494
+ _id?: unknown;
7495
+ usedAt?: NativeDate | null | undefined;
7496
+ }> & {
7497
+ hash: string;
7498
+ _id?: unknown;
7499
+ usedAt?: NativeDate | null | undefined;
7500
+ }> | null | undefined;
7501
+ } | null | undefined;
6001
7502
  }> & {
6002
7503
  _id: import("mongoose").Types.ObjectId;
6003
7504
  } & {
@@ -6038,6 +7539,25 @@ export declare const UserModel: import("mongoose").Model<{
6038
7539
  token: string;
6039
7540
  _id?: unknown;
6040
7541
  }> | null | undefined;
7542
+ mfa?: {
7543
+ totp?: {
7544
+ secret?: string | null | undefined;
7545
+ enabled?: boolean | null | undefined;
7546
+ } | null | undefined;
7547
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7548
+ hash: string;
7549
+ _id?: unknown;
7550
+ usedAt?: NativeDate | null | undefined;
7551
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7552
+ hash: string;
7553
+ _id?: unknown;
7554
+ usedAt?: NativeDate | null | undefined;
7555
+ }> & {
7556
+ hash: string;
7557
+ _id?: unknown;
7558
+ usedAt?: NativeDate | null | undefined;
7559
+ }> | null | undefined;
7560
+ } | null | undefined;
6041
7561
  }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6042
7562
  password: string;
6043
7563
  email: string;
@@ -6073,6 +7593,25 @@ export declare const UserModel: import("mongoose").Model<{
6073
7593
  token: string;
6074
7594
  _id?: unknown;
6075
7595
  }> | null | undefined;
7596
+ mfa?: {
7597
+ totp?: {
7598
+ secret?: string | null | undefined;
7599
+ enabled?: boolean | null | undefined;
7600
+ } | null | undefined;
7601
+ recoveryCodes?: import("mongoose").Types.DocumentArray<{
7602
+ hash: string;
7603
+ _id?: unknown;
7604
+ usedAt?: NativeDate | null | undefined;
7605
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7606
+ hash: string;
7607
+ _id?: unknown;
7608
+ usedAt?: NativeDate | null | undefined;
7609
+ }> & {
7610
+ hash: string;
7611
+ _id?: unknown;
7612
+ usedAt?: NativeDate | null | undefined;
7613
+ }> | null | undefined;
7614
+ } | null | undefined;
6076
7615
  }> & {
6077
7616
  _id: import("mongoose").Types.ObjectId;
6078
7617
  } & {