@fnlb-project/database 1.0.71 → 1.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +276 -4565
  2. package/dist/index.js +432 -426
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { GenericErrorSender } from '@fnlb-project/shared/errors';
4
4
  import { CategoryConfigSupportedPlatforms, Locales } from '@fnlb-project/shared/types';
5
- import { ConnectOptions, Schema, connection } from 'mongoose';
5
+ import { ConnectOptions, HydratedDocument, Model, Schema, connection } from 'mongoose';
6
6
 
7
7
  export declare class DatabaseClient {
8
8
  private dbURI;
@@ -464,6 +464,19 @@ export declare const CategoryModel: import("mongoose").Model<{
464
464
  id?: string | null | undefined;
465
465
  _id?: unknown;
466
466
  }> | null | undefined;
467
+ startSidekick?: import("mongoose").Types.DocumentArray<{
468
+ variants: number[];
469
+ id?: string | null | undefined;
470
+ _id?: unknown;
471
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
472
+ variants: number[];
473
+ id?: string | null | undefined;
474
+ _id?: unknown;
475
+ }> & {
476
+ variants: number[];
477
+ id?: string | null | undefined;
478
+ _id?: unknown;
479
+ }> | null | undefined;
467
480
  startBanner?: import("mongoose").Types.DocumentArray<{
468
481
  id?: string | null | undefined;
469
482
  _id?: unknown;
@@ -546,6 +559,19 @@ export declare const CategoryModel: import("mongoose").Model<{
546
559
  id?: string | null | undefined;
547
560
  _id?: unknown;
548
561
  }> | null | undefined;
562
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
563
+ variants: number[];
564
+ id?: string | null | undefined;
565
+ _id?: unknown;
566
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
567
+ variants: number[];
568
+ id?: string | null | undefined;
569
+ _id?: unknown;
570
+ }> & {
571
+ variants: number[];
572
+ id?: string | null | undefined;
573
+ _id?: unknown;
574
+ }> | null | undefined;
549
575
  joinBanner?: import("mongoose").Types.DocumentArray<{
550
576
  id?: string | null | undefined;
551
577
  _id?: unknown;
@@ -628,6 +654,19 @@ export declare const CategoryModel: import("mongoose").Model<{
628
654
  id?: string | null | undefined;
629
655
  _id?: unknown;
630
656
  }> | null | undefined;
657
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
658
+ variants: number[];
659
+ id?: string | null | undefined;
660
+ _id?: unknown;
661
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
662
+ variants: number[];
663
+ id?: string | null | undefined;
664
+ _id?: unknown;
665
+ }> & {
666
+ variants: number[];
667
+ id?: string | null | undefined;
668
+ _id?: unknown;
669
+ }> | null | undefined;
631
670
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
632
671
  id?: string | null | undefined;
633
672
  _id?: unknown;
@@ -938,6 +977,19 @@ export declare const CategoryModel: import("mongoose").Model<{
938
977
  id?: string | null | undefined;
939
978
  _id?: unknown;
940
979
  }> | null | undefined;
980
+ startSidekick?: import("mongoose").Types.DocumentArray<{
981
+ variants: number[];
982
+ id?: string | null | undefined;
983
+ _id?: unknown;
984
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
985
+ variants: number[];
986
+ id?: string | null | undefined;
987
+ _id?: unknown;
988
+ }> & {
989
+ variants: number[];
990
+ id?: string | null | undefined;
991
+ _id?: unknown;
992
+ }> | null | undefined;
941
993
  startBanner?: import("mongoose").Types.DocumentArray<{
942
994
  id?: string | null | undefined;
943
995
  _id?: unknown;
@@ -1020,6 +1072,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1020
1072
  id?: string | null | undefined;
1021
1073
  _id?: unknown;
1022
1074
  }> | null | undefined;
1075
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
1076
+ variants: number[];
1077
+ id?: string | null | undefined;
1078
+ _id?: unknown;
1079
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
1080
+ variants: number[];
1081
+ id?: string | null | undefined;
1082
+ _id?: unknown;
1083
+ }> & {
1084
+ variants: number[];
1085
+ id?: string | null | undefined;
1086
+ _id?: unknown;
1087
+ }> | null | undefined;
1023
1088
  joinBanner?: import("mongoose").Types.DocumentArray<{
1024
1089
  id?: string | null | undefined;
1025
1090
  _id?: unknown;
@@ -1102,6 +1167,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1102
1167
  id?: string | null | undefined;
1103
1168
  _id?: unknown;
1104
1169
  }> | null | undefined;
1170
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
1171
+ variants: number[];
1172
+ id?: string | null | undefined;
1173
+ _id?: unknown;
1174
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
1175
+ variants: number[];
1176
+ id?: string | null | undefined;
1177
+ _id?: unknown;
1178
+ }> & {
1179
+ variants: number[];
1180
+ id?: string | null | undefined;
1181
+ _id?: unknown;
1182
+ }> | null | undefined;
1105
1183
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
1106
1184
  id?: string | null | undefined;
1107
1185
  _id?: unknown;
@@ -1412,6 +1490,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1412
1490
  id?: string | null | undefined;
1413
1491
  _id?: unknown;
1414
1492
  }> | null | undefined;
1493
+ startSidekick?: import("mongoose").Types.DocumentArray<{
1494
+ variants: number[];
1495
+ id?: string | null | undefined;
1496
+ _id?: unknown;
1497
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
1498
+ variants: number[];
1499
+ id?: string | null | undefined;
1500
+ _id?: unknown;
1501
+ }> & {
1502
+ variants: number[];
1503
+ id?: string | null | undefined;
1504
+ _id?: unknown;
1505
+ }> | null | undefined;
1415
1506
  startBanner?: import("mongoose").Types.DocumentArray<{
1416
1507
  id?: string | null | undefined;
1417
1508
  _id?: unknown;
@@ -1494,6 +1585,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1494
1585
  id?: string | null | undefined;
1495
1586
  _id?: unknown;
1496
1587
  }> | null | undefined;
1588
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
1589
+ variants: number[];
1590
+ id?: string | null | undefined;
1591
+ _id?: unknown;
1592
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
1593
+ variants: number[];
1594
+ id?: string | null | undefined;
1595
+ _id?: unknown;
1596
+ }> & {
1597
+ variants: number[];
1598
+ id?: string | null | undefined;
1599
+ _id?: unknown;
1600
+ }> | null | undefined;
1497
1601
  joinBanner?: import("mongoose").Types.DocumentArray<{
1498
1602
  id?: string | null | undefined;
1499
1603
  _id?: unknown;
@@ -1576,6 +1680,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1576
1680
  id?: string | null | undefined;
1577
1681
  _id?: unknown;
1578
1682
  }> | null | undefined;
1683
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
1684
+ variants: number[];
1685
+ id?: string | null | undefined;
1686
+ _id?: unknown;
1687
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
1688
+ variants: number[];
1689
+ id?: string | null | undefined;
1690
+ _id?: unknown;
1691
+ }> & {
1692
+ variants: number[];
1693
+ id?: string | null | undefined;
1694
+ _id?: unknown;
1695
+ }> | null | undefined;
1579
1696
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
1580
1697
  id?: string | null | undefined;
1581
1698
  _id?: unknown;
@@ -1890,6 +2007,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1890
2007
  id?: string | null | undefined;
1891
2008
  _id?: unknown;
1892
2009
  }> | null | undefined;
2010
+ startSidekick?: import("mongoose").Types.DocumentArray<{
2011
+ variants: number[];
2012
+ id?: string | null | undefined;
2013
+ _id?: unknown;
2014
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2015
+ variants: number[];
2016
+ id?: string | null | undefined;
2017
+ _id?: unknown;
2018
+ }> & {
2019
+ variants: number[];
2020
+ id?: string | null | undefined;
2021
+ _id?: unknown;
2022
+ }> | null | undefined;
1893
2023
  startBanner?: import("mongoose").Types.DocumentArray<{
1894
2024
  id?: string | null | undefined;
1895
2025
  _id?: unknown;
@@ -1972,6 +2102,19 @@ export declare const CategoryModel: import("mongoose").Model<{
1972
2102
  id?: string | null | undefined;
1973
2103
  _id?: unknown;
1974
2104
  }> | null | undefined;
2105
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
2106
+ variants: number[];
2107
+ id?: string | null | undefined;
2108
+ _id?: unknown;
2109
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2110
+ variants: number[];
2111
+ id?: string | null | undefined;
2112
+ _id?: unknown;
2113
+ }> & {
2114
+ variants: number[];
2115
+ id?: string | null | undefined;
2116
+ _id?: unknown;
2117
+ }> | null | undefined;
1975
2118
  joinBanner?: import("mongoose").Types.DocumentArray<{
1976
2119
  id?: string | null | undefined;
1977
2120
  _id?: unknown;
@@ -2054,6 +2197,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2054
2197
  id?: string | null | undefined;
2055
2198
  _id?: unknown;
2056
2199
  }> | null | undefined;
2200
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
2201
+ variants: number[];
2202
+ id?: string | null | undefined;
2203
+ _id?: unknown;
2204
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2205
+ variants: number[];
2206
+ id?: string | null | undefined;
2207
+ _id?: unknown;
2208
+ }> & {
2209
+ variants: number[];
2210
+ id?: string | null | undefined;
2211
+ _id?: unknown;
2212
+ }> | null | undefined;
2057
2213
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
2058
2214
  id?: string | null | undefined;
2059
2215
  _id?: unknown;
@@ -2364,6 +2520,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2364
2520
  id?: string | null | undefined;
2365
2521
  _id?: unknown;
2366
2522
  }> | null | undefined;
2523
+ startSidekick?: import("mongoose").Types.DocumentArray<{
2524
+ variants: number[];
2525
+ id?: string | null | undefined;
2526
+ _id?: unknown;
2527
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2528
+ variants: number[];
2529
+ id?: string | null | undefined;
2530
+ _id?: unknown;
2531
+ }> & {
2532
+ variants: number[];
2533
+ id?: string | null | undefined;
2534
+ _id?: unknown;
2535
+ }> | null | undefined;
2367
2536
  startBanner?: import("mongoose").Types.DocumentArray<{
2368
2537
  id?: string | null | undefined;
2369
2538
  _id?: unknown;
@@ -2446,6 +2615,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2446
2615
  id?: string | null | undefined;
2447
2616
  _id?: unknown;
2448
2617
  }> | null | undefined;
2618
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
2619
+ variants: number[];
2620
+ id?: string | null | undefined;
2621
+ _id?: unknown;
2622
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2623
+ variants: number[];
2624
+ id?: string | null | undefined;
2625
+ _id?: unknown;
2626
+ }> & {
2627
+ variants: number[];
2628
+ id?: string | null | undefined;
2629
+ _id?: unknown;
2630
+ }> | null | undefined;
2449
2631
  joinBanner?: import("mongoose").Types.DocumentArray<{
2450
2632
  id?: string | null | undefined;
2451
2633
  _id?: unknown;
@@ -2528,6 +2710,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2528
2710
  id?: string | null | undefined;
2529
2711
  _id?: unknown;
2530
2712
  }> | null | undefined;
2713
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
2714
+ variants: number[];
2715
+ id?: string | null | undefined;
2716
+ _id?: unknown;
2717
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
2718
+ variants: number[];
2719
+ id?: string | null | undefined;
2720
+ _id?: unknown;
2721
+ }> & {
2722
+ variants: number[];
2723
+ id?: string | null | undefined;
2724
+ _id?: unknown;
2725
+ }> | null | undefined;
2531
2726
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
2532
2727
  id?: string | null | undefined;
2533
2728
  _id?: unknown;
@@ -2838,6 +3033,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2838
3033
  id?: string | null | undefined;
2839
3034
  _id?: unknown;
2840
3035
  }> | null | undefined;
3036
+ startSidekick?: import("mongoose").Types.DocumentArray<{
3037
+ variants: number[];
3038
+ id?: string | null | undefined;
3039
+ _id?: unknown;
3040
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3041
+ variants: number[];
3042
+ id?: string | null | undefined;
3043
+ _id?: unknown;
3044
+ }> & {
3045
+ variants: number[];
3046
+ id?: string | null | undefined;
3047
+ _id?: unknown;
3048
+ }> | null | undefined;
2841
3049
  startBanner?: import("mongoose").Types.DocumentArray<{
2842
3050
  id?: string | null | undefined;
2843
3051
  _id?: unknown;
@@ -2920,6 +3128,19 @@ export declare const CategoryModel: import("mongoose").Model<{
2920
3128
  id?: string | null | undefined;
2921
3129
  _id?: unknown;
2922
3130
  }> | null | undefined;
3131
+ joinSidekick?: import("mongoose").Types.DocumentArray<{
3132
+ variants: number[];
3133
+ id?: string | null | undefined;
3134
+ _id?: unknown;
3135
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3136
+ variants: number[];
3137
+ id?: string | null | undefined;
3138
+ _id?: unknown;
3139
+ }> & {
3140
+ variants: number[];
3141
+ id?: string | null | undefined;
3142
+ _id?: unknown;
3143
+ }> | null | undefined;
2923
3144
  joinBanner?: import("mongoose").Types.DocumentArray<{
2924
3145
  id?: string | null | undefined;
2925
3146
  _id?: unknown;
@@ -3002,6 +3223,19 @@ export declare const CategoryModel: import("mongoose").Model<{
3002
3223
  id?: string | null | undefined;
3003
3224
  _id?: unknown;
3004
3225
  }> | null | undefined;
3226
+ memberJoinSidekick?: import("mongoose").Types.DocumentArray<{
3227
+ variants: number[];
3228
+ id?: string | null | undefined;
3229
+ _id?: unknown;
3230
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3231
+ variants: number[];
3232
+ id?: string | null | undefined;
3233
+ _id?: unknown;
3234
+ }> & {
3235
+ variants: number[];
3236
+ id?: string | null | undefined;
3237
+ _id?: unknown;
3238
+ }> | null | undefined;
3005
3239
  memberJoinBanner?: import("mongoose").Types.DocumentArray<{
3006
3240
  id?: string | null | undefined;
3007
3241
  _id?: unknown;
@@ -3055,4581 +3289,58 @@ export declare const PresetModel: import("mongoose").Model<{
3055
3289
  } & {
3056
3290
  __v: number;
3057
3291
  }>>;
3058
- export declare const UserModel: import("mongoose").Model<{
3059
- password: string;
3060
- email: string;
3292
+ export interface IUserApplication {
3293
+ id: Schema.Types.ObjectId;
3061
3294
  token: string;
3062
- username: string;
3063
- apiToken: string;
3064
- flags?: number | null | undefined;
3065
- connections?: {
3066
- discord?: {
3067
- id?: string | null | undefined;
3068
- username?: string | null | undefined;
3069
- verified?: boolean | null | undefined;
3070
- } | null | undefined;
3071
- epic?: {
3072
- id?: string | null | undefined;
3073
- username?: string | null | undefined;
3074
- verified?: boolean | null | undefined;
3075
- } | null | undefined;
3076
- } | null | undefined;
3077
- applications?: import("mongoose").Types.DocumentArray<{
3078
- id: import("mongoose").Types.ObjectId;
3079
- scopes: number;
3080
- token: string;
3081
- _id?: unknown;
3082
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3083
- id: import("mongoose").Types.ObjectId;
3084
- scopes: number;
3085
- token: string;
3086
- _id?: unknown;
3087
- }> & {
3088
- id: import("mongoose").Types.ObjectId;
3089
- scopes: number;
3090
- token: string;
3091
- _id?: unknown;
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;
3112
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
3113
- password: string;
3114
- email: string;
3295
+ scopes: number;
3296
+ }
3297
+ export interface IUser {
3115
3298
  token: string;
3116
3299
  username: string;
3300
+ email: string;
3301
+ password: string;
3117
3302
  apiToken: string;
3118
- flags?: number | null | undefined;
3303
+ flags?: number;
3119
3304
  connections?: {
3120
3305
  discord?: {
3121
- id?: string | null | undefined;
3122
- username?: string | null | undefined;
3123
- verified?: boolean | null | undefined;
3124
- } | null | undefined;
3306
+ id?: string;
3307
+ username?: string;
3308
+ verified?: boolean;
3309
+ };
3310
+ google?: {
3311
+ id?: string;
3312
+ username?: string;
3313
+ verified?: boolean;
3314
+ };
3125
3315
  epic?: {
3126
- id?: string | null | undefined;
3127
- username?: string | null | undefined;
3128
- verified?: boolean | null | undefined;
3129
- } | null | undefined;
3130
- } | null | undefined;
3131
- applications?: import("mongoose").Types.DocumentArray<{
3132
- id: import("mongoose").Types.ObjectId;
3133
- scopes: number;
3134
- token: string;
3135
- _id?: unknown;
3136
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3137
- id: import("mongoose").Types.ObjectId;
3138
- scopes: number;
3139
- token: string;
3140
- _id?: unknown;
3141
- }> & {
3142
- id: import("mongoose").Types.ObjectId;
3143
- scopes: number;
3144
- token: string;
3145
- _id?: unknown;
3146
- }> | null | undefined;
3316
+ id?: string;
3317
+ username?: string;
3318
+ verified?: boolean;
3319
+ };
3320
+ };
3321
+ applications?: IUserApplication[];
3147
3322
  mfa?: {
3148
3323
  totp?: {
3149
- secret?: string | null | undefined;
3150
- enabled?: boolean | null | undefined;
3151
- } | null | undefined;
3152
- recoveryCodes?: import("mongoose").Types.DocumentArray<{
3324
+ enabled?: boolean;
3325
+ secret?: string;
3326
+ };
3327
+ recoveryCodes?: {
3153
3328
  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;
3166
- }, {}, {
3167
- statics: {
3168
- verifyPassword(this: import("mongoose").Model<{
3169
- password: string;
3170
- email: string;
3171
- token: string;
3172
- username: string;
3173
- apiToken: string;
3174
- flags?: number | null | undefined;
3175
- connections?: {
3176
- discord?: {
3177
- id?: string | null | undefined;
3178
- username?: string | null | undefined;
3179
- verified?: boolean | null | undefined;
3180
- } | null | undefined;
3181
- epic?: {
3182
- id?: string | null | undefined;
3183
- username?: string | null | undefined;
3184
- verified?: boolean | null | undefined;
3185
- } | null | undefined;
3186
- } | null | undefined;
3187
- applications?: import("mongoose").Types.DocumentArray<{
3188
- id: import("mongoose").Types.ObjectId;
3189
- scopes: number;
3190
- token: string;
3191
- _id?: unknown;
3192
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3193
- id: import("mongoose").Types.ObjectId;
3194
- scopes: number;
3195
- token: string;
3196
- _id?: unknown;
3197
- }> & {
3198
- id: import("mongoose").Types.ObjectId;
3199
- scopes: number;
3200
- token: string;
3201
- _id?: unknown;
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;
3222
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3223
- password: string;
3224
- email: string;
3225
- token: string;
3226
- username: string;
3227
- apiToken: string;
3228
- flags?: number | null | undefined;
3229
- connections?: {
3230
- discord?: {
3231
- id?: string | null | undefined;
3232
- username?: string | null | undefined;
3233
- verified?: boolean | null | undefined;
3234
- } | null | undefined;
3235
- epic?: {
3236
- id?: string | null | undefined;
3237
- username?: string | null | undefined;
3238
- verified?: boolean | null | undefined;
3239
- } | null | undefined;
3240
- } | null | undefined;
3241
- applications?: import("mongoose").Types.DocumentArray<{
3242
- id: import("mongoose").Types.ObjectId;
3243
- scopes: number;
3244
- token: string;
3245
- _id?: unknown;
3246
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3247
- id: import("mongoose").Types.ObjectId;
3248
- scopes: number;
3249
- token: string;
3250
- _id?: unknown;
3251
- }> & {
3252
- id: import("mongoose").Types.ObjectId;
3253
- scopes: number;
3254
- token: string;
3255
- _id?: unknown;
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;
3276
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3277
- password: string;
3278
- email: string;
3279
- token: string;
3280
- username: string;
3281
- apiToken: string;
3282
- flags?: number | null | undefined;
3283
- connections?: {
3284
- discord?: {
3285
- id?: string | null | undefined;
3286
- username?: string | null | undefined;
3287
- verified?: boolean | null | undefined;
3288
- } | null | undefined;
3289
- epic?: {
3290
- id?: string | null | undefined;
3291
- username?: string | null | undefined;
3292
- verified?: boolean | null | undefined;
3293
- } | null | undefined;
3294
- } | null | undefined;
3295
- applications?: import("mongoose").Types.DocumentArray<{
3296
- id: import("mongoose").Types.ObjectId;
3297
- scopes: number;
3298
- token: string;
3299
- _id?: unknown;
3300
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3301
- id: import("mongoose").Types.ObjectId;
3302
- scopes: number;
3303
- token: string;
3304
- _id?: unknown;
3305
- }> & {
3306
- id: import("mongoose").Types.ObjectId;
3307
- scopes: number;
3308
- token: string;
3309
- _id?: unknown;
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;
3330
- }> & {
3331
- _id: import("mongoose").Types.ObjectId;
3332
- } & {
3333
- __v: number;
3334
- }, any>, password: string, hash: string): Promise<boolean>;
3335
- findByToken(this: import("mongoose").Model<{
3336
- password: string;
3337
- email: string;
3338
- token: string;
3339
- username: string;
3340
- apiToken: string;
3341
- flags?: number | null | undefined;
3342
- connections?: {
3343
- discord?: {
3344
- id?: string | null | undefined;
3345
- username?: string | null | undefined;
3346
- verified?: boolean | null | undefined;
3347
- } | null | undefined;
3348
- epic?: {
3349
- id?: string | null | undefined;
3350
- username?: string | null | undefined;
3351
- verified?: boolean | null | undefined;
3352
- } | null | undefined;
3353
- } | null | undefined;
3354
- applications?: import("mongoose").Types.DocumentArray<{
3355
- id: import("mongoose").Types.ObjectId;
3356
- scopes: number;
3357
- token: string;
3358
- _id?: unknown;
3359
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3360
- id: import("mongoose").Types.ObjectId;
3361
- scopes: number;
3362
- token: string;
3363
- _id?: unknown;
3364
- }> & {
3365
- id: import("mongoose").Types.ObjectId;
3366
- scopes: number;
3367
- token: string;
3368
- _id?: unknown;
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;
3389
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3390
- password: string;
3391
- email: string;
3392
- token: string;
3393
- username: string;
3394
- apiToken: string;
3395
- flags?: number | null | undefined;
3396
- connections?: {
3397
- discord?: {
3398
- id?: string | null | undefined;
3399
- username?: string | null | undefined;
3400
- verified?: boolean | null | undefined;
3401
- } | null | undefined;
3402
- epic?: {
3403
- id?: string | null | undefined;
3404
- username?: string | null | undefined;
3405
- verified?: boolean | null | undefined;
3406
- } | null | undefined;
3407
- } | null | undefined;
3408
- applications?: import("mongoose").Types.DocumentArray<{
3409
- id: import("mongoose").Types.ObjectId;
3410
- scopes: number;
3411
- token: string;
3412
- _id?: unknown;
3413
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3414
- id: import("mongoose").Types.ObjectId;
3415
- scopes: number;
3416
- token: string;
3417
- _id?: unknown;
3418
- }> & {
3419
- id: import("mongoose").Types.ObjectId;
3420
- scopes: number;
3421
- token: string;
3422
- _id?: unknown;
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;
3443
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3444
- password: string;
3445
- email: string;
3446
- token: string;
3447
- username: string;
3448
- apiToken: string;
3449
- flags?: number | null | undefined;
3450
- connections?: {
3451
- discord?: {
3452
- id?: string | null | undefined;
3453
- username?: string | null | undefined;
3454
- verified?: boolean | null | undefined;
3455
- } | null | undefined;
3456
- epic?: {
3457
- id?: string | null | undefined;
3458
- username?: string | null | undefined;
3459
- verified?: boolean | null | undefined;
3460
- } | null | undefined;
3461
- } | null | undefined;
3462
- applications?: import("mongoose").Types.DocumentArray<{
3463
- id: import("mongoose").Types.ObjectId;
3464
- scopes: number;
3465
- token: string;
3466
- _id?: unknown;
3467
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3468
- id: import("mongoose").Types.ObjectId;
3469
- scopes: number;
3470
- token: string;
3471
- _id?: unknown;
3472
- }> & {
3473
- id: import("mongoose").Types.ObjectId;
3474
- scopes: number;
3475
- token: string;
3476
- _id?: unknown;
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;
3497
- }> & {
3498
- _id: import("mongoose").Types.ObjectId;
3499
- } & {
3500
- __v: number;
3501
- }, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3502
- password: string;
3503
- email: string;
3504
- token: string;
3505
- username: string;
3506
- apiToken: string;
3507
- flags?: number | null | undefined;
3508
- connections?: {
3509
- discord?: {
3510
- id?: string | null | undefined;
3511
- username?: string | null | undefined;
3512
- verified?: boolean | null | undefined;
3513
- } | null | undefined;
3514
- epic?: {
3515
- id?: string | null | undefined;
3516
- username?: string | null | undefined;
3517
- verified?: boolean | null | undefined;
3518
- } | null | undefined;
3519
- } | null | undefined;
3520
- applications?: import("mongoose").Types.DocumentArray<{
3521
- id: import("mongoose").Types.ObjectId;
3522
- scopes: number;
3523
- token: string;
3524
- _id?: unknown;
3525
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3526
- id: import("mongoose").Types.ObjectId;
3527
- scopes: number;
3528
- token: string;
3529
- _id?: unknown;
3530
- }> & {
3531
- id: import("mongoose").Types.ObjectId;
3532
- scopes: number;
3533
- token: string;
3534
- _id?: unknown;
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;
3555
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3556
- password: string;
3557
- email: string;
3558
- token: string;
3559
- username: string;
3560
- apiToken: string;
3561
- flags?: number | null | undefined;
3562
- connections?: {
3563
- discord?: {
3564
- id?: string | null | undefined;
3565
- username?: string | null | undefined;
3566
- verified?: boolean | null | undefined;
3567
- } | null | undefined;
3568
- epic?: {
3569
- id?: string | null | undefined;
3570
- username?: string | null | undefined;
3571
- verified?: boolean | null | undefined;
3572
- } | null | undefined;
3573
- } | null | undefined;
3574
- applications?: import("mongoose").Types.DocumentArray<{
3575
- id: import("mongoose").Types.ObjectId;
3576
- scopes: number;
3577
- token: string;
3578
- _id?: unknown;
3579
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3580
- id: import("mongoose").Types.ObjectId;
3581
- scopes: number;
3582
- token: string;
3583
- _id?: unknown;
3584
- }> & {
3585
- id: import("mongoose").Types.ObjectId;
3586
- scopes: number;
3587
- token: string;
3588
- _id?: unknown;
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;
3609
- }> & {
3610
- _id: import("mongoose").Types.ObjectId;
3611
- } & {
3612
- __v: number;
3613
- }) | null>;
3614
- findByAPIToken(this: import("mongoose").Model<{
3615
- password: string;
3616
- email: string;
3617
- token: string;
3618
- username: string;
3619
- apiToken: string;
3620
- flags?: number | null | undefined;
3621
- connections?: {
3622
- discord?: {
3623
- id?: string | null | undefined;
3624
- username?: string | null | undefined;
3625
- verified?: boolean | null | undefined;
3626
- } | null | undefined;
3627
- epic?: {
3628
- id?: string | null | undefined;
3629
- username?: string | null | undefined;
3630
- verified?: boolean | null | undefined;
3631
- } | null | undefined;
3632
- } | null | undefined;
3633
- applications?: import("mongoose").Types.DocumentArray<{
3634
- id: import("mongoose").Types.ObjectId;
3635
- scopes: number;
3636
- token: string;
3637
- _id?: unknown;
3638
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3639
- id: import("mongoose").Types.ObjectId;
3640
- scopes: number;
3641
- token: string;
3642
- _id?: unknown;
3643
- }> & {
3644
- id: import("mongoose").Types.ObjectId;
3645
- scopes: number;
3646
- token: string;
3647
- _id?: unknown;
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;
3668
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3669
- password: string;
3670
- email: string;
3671
- token: string;
3672
- username: string;
3673
- apiToken: string;
3674
- flags?: number | null | undefined;
3675
- connections?: {
3676
- discord?: {
3677
- id?: string | null | undefined;
3678
- username?: string | null | undefined;
3679
- verified?: boolean | null | undefined;
3680
- } | null | undefined;
3681
- epic?: {
3682
- id?: string | null | undefined;
3683
- username?: string | null | undefined;
3684
- verified?: boolean | null | undefined;
3685
- } | null | undefined;
3686
- } | null | undefined;
3687
- applications?: import("mongoose").Types.DocumentArray<{
3688
- id: import("mongoose").Types.ObjectId;
3689
- scopes: number;
3690
- token: string;
3691
- _id?: unknown;
3692
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3693
- id: import("mongoose").Types.ObjectId;
3694
- scopes: number;
3695
- token: string;
3696
- _id?: unknown;
3697
- }> & {
3698
- id: import("mongoose").Types.ObjectId;
3699
- scopes: number;
3700
- token: string;
3701
- _id?: unknown;
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;
3722
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3723
- password: string;
3724
- email: string;
3725
- token: string;
3726
- username: string;
3727
- apiToken: string;
3728
- flags?: number | null | undefined;
3729
- connections?: {
3730
- discord?: {
3731
- id?: string | null | undefined;
3732
- username?: string | null | undefined;
3733
- verified?: boolean | null | undefined;
3734
- } | null | undefined;
3735
- epic?: {
3736
- id?: string | null | undefined;
3737
- username?: string | null | undefined;
3738
- verified?: boolean | null | undefined;
3739
- } | null | undefined;
3740
- } | null | undefined;
3741
- applications?: import("mongoose").Types.DocumentArray<{
3742
- id: import("mongoose").Types.ObjectId;
3743
- scopes: number;
3744
- token: string;
3745
- _id?: unknown;
3746
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3747
- id: import("mongoose").Types.ObjectId;
3748
- scopes: number;
3749
- token: string;
3750
- _id?: unknown;
3751
- }> & {
3752
- id: import("mongoose").Types.ObjectId;
3753
- scopes: number;
3754
- token: string;
3755
- _id?: unknown;
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;
3776
- }> & {
3777
- _id: import("mongoose").Types.ObjectId;
3778
- } & {
3779
- __v: number;
3780
- }, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3781
- password: string;
3782
- email: string;
3783
- token: string;
3784
- username: string;
3785
- apiToken: string;
3786
- flags?: number | null | undefined;
3787
- connections?: {
3788
- discord?: {
3789
- id?: string | null | undefined;
3790
- username?: string | null | undefined;
3791
- verified?: boolean | null | undefined;
3792
- } | null | undefined;
3793
- epic?: {
3794
- id?: string | null | undefined;
3795
- username?: string | null | undefined;
3796
- verified?: boolean | null | undefined;
3797
- } | null | undefined;
3798
- } | null | undefined;
3799
- applications?: import("mongoose").Types.DocumentArray<{
3800
- id: import("mongoose").Types.ObjectId;
3801
- scopes: number;
3802
- token: string;
3803
- _id?: unknown;
3804
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3805
- id: import("mongoose").Types.ObjectId;
3806
- scopes: number;
3807
- token: string;
3808
- _id?: unknown;
3809
- }> & {
3810
- id: import("mongoose").Types.ObjectId;
3811
- scopes: number;
3812
- token: string;
3813
- _id?: unknown;
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;
3834
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
3835
- password: string;
3836
- email: string;
3837
- token: string;
3838
- username: string;
3839
- apiToken: string;
3840
- flags?: number | null | undefined;
3841
- connections?: {
3842
- discord?: {
3843
- id?: string | null | undefined;
3844
- username?: string | null | undefined;
3845
- verified?: boolean | null | undefined;
3846
- } | null | undefined;
3847
- epic?: {
3848
- id?: string | null | undefined;
3849
- username?: string | null | undefined;
3850
- verified?: boolean | null | undefined;
3851
- } | null | undefined;
3852
- } | null | undefined;
3853
- applications?: import("mongoose").Types.DocumentArray<{
3854
- id: import("mongoose").Types.ObjectId;
3855
- scopes: number;
3856
- token: string;
3857
- _id?: unknown;
3858
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3859
- id: import("mongoose").Types.ObjectId;
3860
- scopes: number;
3861
- token: string;
3862
- _id?: unknown;
3863
- }> & {
3864
- id: import("mongoose").Types.ObjectId;
3865
- scopes: number;
3866
- token: string;
3867
- _id?: unknown;
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;
3888
- }> & {
3889
- _id: import("mongoose").Types.ObjectId;
3890
- } & {
3891
- __v: number;
3892
- }) | null>;
3893
- findByAccessToken(this: import("mongoose").Model<{
3894
- password: string;
3895
- email: string;
3896
- token: string;
3897
- username: string;
3898
- apiToken: string;
3899
- flags?: number | null | undefined;
3900
- connections?: {
3901
- discord?: {
3902
- id?: string | null | undefined;
3903
- username?: string | null | undefined;
3904
- verified?: boolean | null | undefined;
3905
- } | null | undefined;
3906
- epic?: {
3907
- id?: string | null | undefined;
3908
- username?: string | null | undefined;
3909
- verified?: boolean | null | undefined;
3910
- } | null | undefined;
3911
- } | null | undefined;
3912
- applications?: import("mongoose").Types.DocumentArray<{
3913
- id: import("mongoose").Types.ObjectId;
3914
- scopes: number;
3915
- token: string;
3916
- _id?: unknown;
3917
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3918
- id: import("mongoose").Types.ObjectId;
3919
- scopes: number;
3920
- token: string;
3921
- _id?: unknown;
3922
- }> & {
3923
- id: import("mongoose").Types.ObjectId;
3924
- scopes: number;
3925
- token: string;
3926
- _id?: unknown;
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;
3947
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
3948
- password: string;
3949
- email: string;
3950
- token: string;
3951
- username: string;
3952
- apiToken: string;
3953
- flags?: number | null | undefined;
3954
- connections?: {
3955
- discord?: {
3956
- id?: string | null | undefined;
3957
- username?: string | null | undefined;
3958
- verified?: boolean | null | undefined;
3959
- } | null | undefined;
3960
- epic?: {
3961
- id?: string | null | undefined;
3962
- username?: string | null | undefined;
3963
- verified?: boolean | null | undefined;
3964
- } | null | undefined;
3965
- } | null | undefined;
3966
- applications?: import("mongoose").Types.DocumentArray<{
3967
- id: import("mongoose").Types.ObjectId;
3968
- scopes: number;
3969
- token: string;
3970
- _id?: unknown;
3971
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
3972
- id: import("mongoose").Types.ObjectId;
3973
- scopes: number;
3974
- token: string;
3975
- _id?: unknown;
3976
- }> & {
3977
- id: import("mongoose").Types.ObjectId;
3978
- scopes: number;
3979
- token: string;
3980
- _id?: unknown;
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;
4001
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4002
- password: string;
4003
- email: string;
4004
- token: string;
4005
- username: string;
4006
- apiToken: string;
4007
- flags?: number | null | undefined;
4008
- connections?: {
4009
- discord?: {
4010
- id?: string | null | undefined;
4011
- username?: string | null | undefined;
4012
- verified?: boolean | null | undefined;
4013
- } | null | undefined;
4014
- epic?: {
4015
- id?: string | null | undefined;
4016
- username?: string | null | undefined;
4017
- verified?: boolean | null | undefined;
4018
- } | null | undefined;
4019
- } | null | undefined;
4020
- applications?: import("mongoose").Types.DocumentArray<{
4021
- id: import("mongoose").Types.ObjectId;
4022
- scopes: number;
4023
- token: string;
4024
- _id?: unknown;
4025
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4026
- id: import("mongoose").Types.ObjectId;
4027
- scopes: number;
4028
- token: string;
4029
- _id?: unknown;
4030
- }> & {
4031
- id: import("mongoose").Types.ObjectId;
4032
- scopes: number;
4033
- token: string;
4034
- _id?: unknown;
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;
4055
- }> & {
4056
- _id: import("mongoose").Types.ObjectId;
4057
- } & {
4058
- __v: number;
4059
- }, any>, id: string, auth: string): Promise<{
4060
- user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4061
- password: string;
4062
- email: string;
4063
- token: string;
4064
- username: string;
4065
- apiToken: string;
4066
- flags?: number | null | undefined;
4067
- connections?: {
4068
- discord?: {
4069
- id?: string | null | undefined;
4070
- username?: string | null | undefined;
4071
- verified?: boolean | null | undefined;
4072
- } | null | undefined;
4073
- epic?: {
4074
- id?: string | null | undefined;
4075
- username?: string | null | undefined;
4076
- verified?: boolean | null | undefined;
4077
- } | null | undefined;
4078
- } | null | undefined;
4079
- applications?: import("mongoose").Types.DocumentArray<{
4080
- id: import("mongoose").Types.ObjectId;
4081
- scopes: number;
4082
- token: string;
4083
- _id?: unknown;
4084
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4085
- id: import("mongoose").Types.ObjectId;
4086
- scopes: number;
4087
- token: string;
4088
- _id?: unknown;
4089
- }> & {
4090
- id: import("mongoose").Types.ObjectId;
4091
- scopes: number;
4092
- token: string;
4093
- _id?: unknown;
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;
4114
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4115
- password: string;
4116
- email: string;
4117
- token: string;
4118
- username: string;
4119
- apiToken: string;
4120
- flags?: number | null | undefined;
4121
- connections?: {
4122
- discord?: {
4123
- id?: string | null | undefined;
4124
- username?: string | null | undefined;
4125
- verified?: boolean | null | undefined;
4126
- } | null | undefined;
4127
- epic?: {
4128
- id?: string | null | undefined;
4129
- username?: string | null | undefined;
4130
- verified?: boolean | null | undefined;
4131
- } | null | undefined;
4132
- } | null | undefined;
4133
- applications?: import("mongoose").Types.DocumentArray<{
4134
- id: import("mongoose").Types.ObjectId;
4135
- scopes: number;
4136
- token: string;
4137
- _id?: unknown;
4138
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4139
- id: import("mongoose").Types.ObjectId;
4140
- scopes: number;
4141
- token: string;
4142
- _id?: unknown;
4143
- }> & {
4144
- id: import("mongoose").Types.ObjectId;
4145
- scopes: number;
4146
- token: string;
4147
- _id?: unknown;
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;
4168
- }> & {
4169
- _id: import("mongoose").Types.ObjectId;
4170
- } & {
4171
- __v: number;
4172
- }) | null;
4173
- app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4174
- id: import("mongoose").Types.ObjectId;
4175
- scopes: number;
4176
- token: string;
4177
- _id?: unknown;
4178
- }> & {
4179
- id: import("mongoose").Types.ObjectId;
4180
- scopes: number;
4181
- token: string;
4182
- _id?: unknown;
4183
- };
4184
- } | null>;
4185
- };
4186
- }> & {
4187
- password: string;
4188
- email: string;
4189
- token: string;
4190
- username: string;
4191
- apiToken: string;
4192
- flags?: number | null | undefined;
4193
- connections?: {
4194
- discord?: {
4195
- id?: string | null | undefined;
4196
- username?: string | null | undefined;
4197
- verified?: boolean | null | undefined;
4198
- } | null | undefined;
4199
- epic?: {
4200
- id?: string | null | undefined;
4201
- username?: string | null | undefined;
4202
- verified?: boolean | null | undefined;
4203
- } | null | undefined;
4204
- } | null | undefined;
4205
- applications?: import("mongoose").Types.DocumentArray<{
4206
- id: import("mongoose").Types.ObjectId;
4207
- scopes: number;
4208
- token: string;
4209
- _id?: unknown;
4210
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4211
- id: import("mongoose").Types.ObjectId;
4212
- scopes: number;
4213
- token: string;
4214
- _id?: unknown;
4215
- }> & {
4216
- id: import("mongoose").Types.ObjectId;
4217
- scopes: number;
4218
- token: string;
4219
- _id?: unknown;
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;
4240
- } & {
4241
- _id: import("mongoose").Types.ObjectId;
4242
- } & {
4243
- __v: number;
4244
- }, Schema<any, import("mongoose").Model<{
4245
- password: string;
4246
- email: string;
4247
- token: string;
4248
- username: string;
4249
- apiToken: string;
4250
- flags?: number | null | undefined;
4251
- connections?: {
4252
- discord?: {
4253
- id?: string | null | undefined;
4254
- username?: string | null | undefined;
4255
- verified?: boolean | null | undefined;
4256
- } | null | undefined;
4257
- epic?: {
4258
- id?: string | null | undefined;
4259
- username?: string | null | undefined;
4260
- verified?: boolean | null | undefined;
4261
- } | null | undefined;
4262
- } | null | undefined;
4263
- applications?: import("mongoose").Types.DocumentArray<{
4264
- id: import("mongoose").Types.ObjectId;
4265
- scopes: number;
4266
- token: string;
4267
- _id?: unknown;
4268
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4269
- id: import("mongoose").Types.ObjectId;
4270
- scopes: number;
4271
- token: string;
4272
- _id?: unknown;
4273
- }> & {
4274
- id: import("mongoose").Types.ObjectId;
4275
- scopes: number;
4276
- token: string;
4277
- _id?: unknown;
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;
4298
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4299
- password: string;
4300
- email: string;
4301
- token: string;
4302
- username: string;
4303
- apiToken: string;
4304
- flags?: number | null | undefined;
4305
- connections?: {
4306
- discord?: {
4307
- id?: string | null | undefined;
4308
- username?: string | null | undefined;
4309
- verified?: boolean | null | undefined;
4310
- } | null | undefined;
4311
- epic?: {
4312
- id?: string | null | undefined;
4313
- username?: string | null | undefined;
4314
- verified?: boolean | null | undefined;
4315
- } | null | undefined;
4316
- } | null | undefined;
4317
- applications?: import("mongoose").Types.DocumentArray<{
4318
- id: import("mongoose").Types.ObjectId;
4319
- scopes: number;
4320
- token: string;
4321
- _id?: unknown;
4322
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4323
- id: import("mongoose").Types.ObjectId;
4324
- scopes: number;
4325
- token: string;
4326
- _id?: unknown;
4327
- }> & {
4328
- id: import("mongoose").Types.ObjectId;
4329
- scopes: number;
4330
- token: string;
4331
- _id?: unknown;
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;
4352
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4353
- password: string;
4354
- email: string;
4355
- token: string;
4356
- username: string;
4357
- apiToken: string;
4358
- flags?: number | null | undefined;
4359
- connections?: {
4360
- discord?: {
4361
- id?: string | null | undefined;
4362
- username?: string | null | undefined;
4363
- verified?: boolean | null | undefined;
4364
- } | null | undefined;
4365
- epic?: {
4366
- id?: string | null | undefined;
4367
- username?: string | null | undefined;
4368
- verified?: boolean | null | undefined;
4369
- } | null | undefined;
4370
- } | null | undefined;
4371
- applications?: import("mongoose").Types.DocumentArray<{
4372
- id: import("mongoose").Types.ObjectId;
4373
- scopes: number;
4374
- token: string;
4375
- _id?: unknown;
4376
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4377
- id: import("mongoose").Types.ObjectId;
4378
- scopes: number;
4379
- token: string;
4380
- _id?: unknown;
4381
- }> & {
4382
- id: import("mongoose").Types.ObjectId;
4383
- scopes: number;
4384
- token: string;
4385
- _id?: unknown;
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;
4406
- }> & {
4407
- _id: import("mongoose").Types.ObjectId;
4408
- } & {
4409
- __v: number;
4410
- }, any>, {}, {}, {}, {
4411
- verifyPassword: (this: import("mongoose").Model<{
4412
- password: string;
4413
- email: string;
4414
- token: string;
4415
- username: string;
4416
- apiToken: string;
4417
- flags?: number | null | undefined;
4418
- connections?: {
4419
- discord?: {
4420
- id?: string | null | undefined;
4421
- username?: string | null | undefined;
4422
- verified?: boolean | null | undefined;
4423
- } | null | undefined;
4424
- epic?: {
4425
- id?: string | null | undefined;
4426
- username?: string | null | undefined;
4427
- verified?: boolean | null | undefined;
4428
- } | null | undefined;
4429
- } | null | undefined;
4430
- applications?: import("mongoose").Types.DocumentArray<{
4431
- id: import("mongoose").Types.ObjectId;
4432
- scopes: number;
4433
- token: string;
4434
- _id?: unknown;
4435
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4436
- id: import("mongoose").Types.ObjectId;
4437
- scopes: number;
4438
- token: string;
4439
- _id?: unknown;
4440
- }> & {
4441
- id: import("mongoose").Types.ObjectId;
4442
- scopes: number;
4443
- token: string;
4444
- _id?: unknown;
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;
4465
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4466
- password: string;
4467
- email: string;
4468
- token: string;
4469
- username: string;
4470
- apiToken: string;
4471
- flags?: number | null | undefined;
4472
- connections?: {
4473
- discord?: {
4474
- id?: string | null | undefined;
4475
- username?: string | null | undefined;
4476
- verified?: boolean | null | undefined;
4477
- } | null | undefined;
4478
- epic?: {
4479
- id?: string | null | undefined;
4480
- username?: string | null | undefined;
4481
- verified?: boolean | null | undefined;
4482
- } | null | undefined;
4483
- } | null | undefined;
4484
- applications?: import("mongoose").Types.DocumentArray<{
4485
- id: import("mongoose").Types.ObjectId;
4486
- scopes: number;
4487
- token: string;
4488
- _id?: unknown;
4489
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4490
- id: import("mongoose").Types.ObjectId;
4491
- scopes: number;
4492
- token: string;
4493
- _id?: unknown;
4494
- }> & {
4495
- id: import("mongoose").Types.ObjectId;
4496
- scopes: number;
4497
- token: string;
4498
- _id?: unknown;
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;
4519
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4520
- password: string;
4521
- email: string;
4522
- token: string;
4523
- username: string;
4524
- apiToken: string;
4525
- flags?: number | null | undefined;
4526
- connections?: {
4527
- discord?: {
4528
- id?: string | null | undefined;
4529
- username?: string | null | undefined;
4530
- verified?: boolean | null | undefined;
4531
- } | null | undefined;
4532
- epic?: {
4533
- id?: string | null | undefined;
4534
- username?: string | null | undefined;
4535
- verified?: boolean | null | undefined;
4536
- } | null | undefined;
4537
- } | null | undefined;
4538
- applications?: import("mongoose").Types.DocumentArray<{
4539
- id: import("mongoose").Types.ObjectId;
4540
- scopes: number;
4541
- token: string;
4542
- _id?: unknown;
4543
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4544
- id: import("mongoose").Types.ObjectId;
4545
- scopes: number;
4546
- token: string;
4547
- _id?: unknown;
4548
- }> & {
4549
- id: import("mongoose").Types.ObjectId;
4550
- scopes: number;
4551
- token: string;
4552
- _id?: unknown;
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;
4573
- }> & {
4574
- _id: import("mongoose").Types.ObjectId;
4575
- } & {
4576
- __v: number;
4577
- }, any>, password: string, hash: string) => Promise<boolean>;
4578
- findByToken: (this: import("mongoose").Model<{
4579
- password: string;
4580
- email: string;
4581
- token: string;
4582
- username: string;
4583
- apiToken: string;
4584
- flags?: number | null | undefined;
4585
- connections?: {
4586
- discord?: {
4587
- id?: string | null | undefined;
4588
- username?: string | null | undefined;
4589
- verified?: boolean | null | undefined;
4590
- } | null | undefined;
4591
- epic?: {
4592
- id?: string | null | undefined;
4593
- username?: string | null | undefined;
4594
- verified?: boolean | null | undefined;
4595
- } | null | undefined;
4596
- } | null | undefined;
4597
- applications?: import("mongoose").Types.DocumentArray<{
4598
- id: import("mongoose").Types.ObjectId;
4599
- scopes: number;
4600
- token: string;
4601
- _id?: unknown;
4602
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4603
- id: import("mongoose").Types.ObjectId;
4604
- scopes: number;
4605
- token: string;
4606
- _id?: unknown;
4607
- }> & {
4608
- id: import("mongoose").Types.ObjectId;
4609
- scopes: number;
4610
- token: string;
4611
- _id?: unknown;
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;
4632
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4633
- password: string;
4634
- email: string;
4635
- token: string;
4636
- username: string;
4637
- apiToken: string;
4638
- flags?: number | null | undefined;
4639
- connections?: {
4640
- discord?: {
4641
- id?: string | null | undefined;
4642
- username?: string | null | undefined;
4643
- verified?: boolean | null | undefined;
4644
- } | null | undefined;
4645
- epic?: {
4646
- id?: string | null | undefined;
4647
- username?: string | null | undefined;
4648
- verified?: boolean | null | undefined;
4649
- } | null | undefined;
4650
- } | null | undefined;
4651
- applications?: import("mongoose").Types.DocumentArray<{
4652
- id: import("mongoose").Types.ObjectId;
4653
- scopes: number;
4654
- token: string;
4655
- _id?: unknown;
4656
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4657
- id: import("mongoose").Types.ObjectId;
4658
- scopes: number;
4659
- token: string;
4660
- _id?: unknown;
4661
- }> & {
4662
- id: import("mongoose").Types.ObjectId;
4663
- scopes: number;
4664
- token: string;
4665
- _id?: unknown;
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;
4686
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4687
- password: string;
4688
- email: string;
4689
- token: string;
4690
- username: string;
4691
- apiToken: string;
4692
- flags?: number | null | undefined;
4693
- connections?: {
4694
- discord?: {
4695
- id?: string | null | undefined;
4696
- username?: string | null | undefined;
4697
- verified?: boolean | null | undefined;
4698
- } | null | undefined;
4699
- epic?: {
4700
- id?: string | null | undefined;
4701
- username?: string | null | undefined;
4702
- verified?: boolean | null | undefined;
4703
- } | null | undefined;
4704
- } | null | undefined;
4705
- applications?: import("mongoose").Types.DocumentArray<{
4706
- id: import("mongoose").Types.ObjectId;
4707
- scopes: number;
4708
- token: string;
4709
- _id?: unknown;
4710
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4711
- id: import("mongoose").Types.ObjectId;
4712
- scopes: number;
4713
- token: string;
4714
- _id?: unknown;
4715
- }> & {
4716
- id: import("mongoose").Types.ObjectId;
4717
- scopes: number;
4718
- token: string;
4719
- _id?: unknown;
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;
4740
- }> & {
4741
- _id: import("mongoose").Types.ObjectId;
4742
- } & {
4743
- __v: number;
4744
- }, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4745
- password: string;
4746
- email: string;
4747
- token: string;
4748
- username: string;
4749
- apiToken: string;
4750
- flags?: number | null | undefined;
4751
- connections?: {
4752
- discord?: {
4753
- id?: string | null | undefined;
4754
- username?: string | null | undefined;
4755
- verified?: boolean | null | undefined;
4756
- } | null | undefined;
4757
- epic?: {
4758
- id?: string | null | undefined;
4759
- username?: string | null | undefined;
4760
- verified?: boolean | null | undefined;
4761
- } | null | undefined;
4762
- } | null | undefined;
4763
- applications?: import("mongoose").Types.DocumentArray<{
4764
- id: import("mongoose").Types.ObjectId;
4765
- scopes: number;
4766
- token: string;
4767
- _id?: unknown;
4768
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4769
- id: import("mongoose").Types.ObjectId;
4770
- scopes: number;
4771
- token: string;
4772
- _id?: unknown;
4773
- }> & {
4774
- id: import("mongoose").Types.ObjectId;
4775
- scopes: number;
4776
- token: string;
4777
- _id?: unknown;
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;
4798
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4799
- password: string;
4800
- email: string;
4801
- token: string;
4802
- username: string;
4803
- apiToken: string;
4804
- flags?: number | null | undefined;
4805
- connections?: {
4806
- discord?: {
4807
- id?: string | null | undefined;
4808
- username?: string | null | undefined;
4809
- verified?: boolean | null | undefined;
4810
- } | null | undefined;
4811
- epic?: {
4812
- id?: string | null | undefined;
4813
- username?: string | null | undefined;
4814
- verified?: boolean | null | undefined;
4815
- } | null | undefined;
4816
- } | null | undefined;
4817
- applications?: import("mongoose").Types.DocumentArray<{
4818
- id: import("mongoose").Types.ObjectId;
4819
- scopes: number;
4820
- token: string;
4821
- _id?: unknown;
4822
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4823
- id: import("mongoose").Types.ObjectId;
4824
- scopes: number;
4825
- token: string;
4826
- _id?: unknown;
4827
- }> & {
4828
- id: import("mongoose").Types.ObjectId;
4829
- scopes: number;
4830
- token: string;
4831
- _id?: unknown;
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;
4852
- }> & {
4853
- _id: import("mongoose").Types.ObjectId;
4854
- } & {
4855
- __v: number;
4856
- }) | null>;
4857
- findByAPIToken: (this: import("mongoose").Model<{
4858
- password: string;
4859
- email: string;
4860
- token: string;
4861
- username: string;
4862
- apiToken: string;
4863
- flags?: number | null | undefined;
4864
- connections?: {
4865
- discord?: {
4866
- id?: string | null | undefined;
4867
- username?: string | null | undefined;
4868
- verified?: boolean | null | undefined;
4869
- } | null | undefined;
4870
- epic?: {
4871
- id?: string | null | undefined;
4872
- username?: string | null | undefined;
4873
- verified?: boolean | null | undefined;
4874
- } | null | undefined;
4875
- } | null | undefined;
4876
- applications?: import("mongoose").Types.DocumentArray<{
4877
- id: import("mongoose").Types.ObjectId;
4878
- scopes: number;
4879
- token: string;
4880
- _id?: unknown;
4881
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4882
- id: import("mongoose").Types.ObjectId;
4883
- scopes: number;
4884
- token: string;
4885
- _id?: unknown;
4886
- }> & {
4887
- id: import("mongoose").Types.ObjectId;
4888
- scopes: number;
4889
- token: string;
4890
- _id?: unknown;
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;
4911
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
4912
- password: string;
4913
- email: string;
4914
- token: string;
4915
- username: string;
4916
- apiToken: string;
4917
- flags?: number | null | undefined;
4918
- connections?: {
4919
- discord?: {
4920
- id?: string | null | undefined;
4921
- username?: string | null | undefined;
4922
- verified?: boolean | null | undefined;
4923
- } | null | undefined;
4924
- epic?: {
4925
- id?: string | null | undefined;
4926
- username?: string | null | undefined;
4927
- verified?: boolean | null | undefined;
4928
- } | null | undefined;
4929
- } | null | undefined;
4930
- applications?: import("mongoose").Types.DocumentArray<{
4931
- id: import("mongoose").Types.ObjectId;
4932
- scopes: number;
4933
- token: string;
4934
- _id?: unknown;
4935
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4936
- id: import("mongoose").Types.ObjectId;
4937
- scopes: number;
4938
- token: string;
4939
- _id?: unknown;
4940
- }> & {
4941
- id: import("mongoose").Types.ObjectId;
4942
- scopes: number;
4943
- token: string;
4944
- _id?: unknown;
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;
4965
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
4966
- password: string;
4967
- email: string;
4968
- token: string;
4969
- username: string;
4970
- apiToken: string;
4971
- flags?: number | null | undefined;
4972
- connections?: {
4973
- discord?: {
4974
- id?: string | null | undefined;
4975
- username?: string | null | undefined;
4976
- verified?: boolean | null | undefined;
4977
- } | null | undefined;
4978
- epic?: {
4979
- id?: string | null | undefined;
4980
- username?: string | null | undefined;
4981
- verified?: boolean | null | undefined;
4982
- } | null | undefined;
4983
- } | null | undefined;
4984
- applications?: import("mongoose").Types.DocumentArray<{
4985
- id: import("mongoose").Types.ObjectId;
4986
- scopes: number;
4987
- token: string;
4988
- _id?: unknown;
4989
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
4990
- id: import("mongoose").Types.ObjectId;
4991
- scopes: number;
4992
- token: string;
4993
- _id?: unknown;
4994
- }> & {
4995
- id: import("mongoose").Types.ObjectId;
4996
- scopes: number;
4997
- token: string;
4998
- _id?: unknown;
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;
5019
- }> & {
5020
- _id: import("mongoose").Types.ObjectId;
5021
- } & {
5022
- __v: number;
5023
- }, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5024
- password: string;
5025
- email: string;
5026
- token: string;
5027
- username: string;
5028
- apiToken: string;
5029
- flags?: number | null | undefined;
5030
- connections?: {
5031
- discord?: {
5032
- id?: string | null | undefined;
5033
- username?: string | null | undefined;
5034
- verified?: boolean | null | undefined;
5035
- } | null | undefined;
5036
- epic?: {
5037
- id?: string | null | undefined;
5038
- username?: string | null | undefined;
5039
- verified?: boolean | null | undefined;
5040
- } | null | undefined;
5041
- } | null | undefined;
5042
- applications?: import("mongoose").Types.DocumentArray<{
5043
- id: import("mongoose").Types.ObjectId;
5044
- scopes: number;
5045
- token: string;
5046
- _id?: unknown;
5047
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5048
- id: import("mongoose").Types.ObjectId;
5049
- scopes: number;
5050
- token: string;
5051
- _id?: unknown;
5052
- }> & {
5053
- id: import("mongoose").Types.ObjectId;
5054
- scopes: number;
5055
- token: string;
5056
- _id?: unknown;
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;
5077
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5078
- password: string;
5079
- email: string;
5080
- token: string;
5081
- username: string;
5082
- apiToken: string;
5083
- flags?: number | null | undefined;
5084
- connections?: {
5085
- discord?: {
5086
- id?: string | null | undefined;
5087
- username?: string | null | undefined;
5088
- verified?: boolean | null | undefined;
5089
- } | null | undefined;
5090
- epic?: {
5091
- id?: string | null | undefined;
5092
- username?: string | null | undefined;
5093
- verified?: boolean | null | undefined;
5094
- } | null | undefined;
5095
- } | null | undefined;
5096
- applications?: import("mongoose").Types.DocumentArray<{
5097
- id: import("mongoose").Types.ObjectId;
5098
- scopes: number;
5099
- token: string;
5100
- _id?: unknown;
5101
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5102
- id: import("mongoose").Types.ObjectId;
5103
- scopes: number;
5104
- token: string;
5105
- _id?: unknown;
5106
- }> & {
5107
- id: import("mongoose").Types.ObjectId;
5108
- scopes: number;
5109
- token: string;
5110
- _id?: unknown;
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;
5131
- }> & {
5132
- _id: import("mongoose").Types.ObjectId;
5133
- } & {
5134
- __v: number;
5135
- }) | null>;
5136
- findByAccessToken: (this: import("mongoose").Model<{
5137
- password: string;
5138
- email: string;
5139
- token: string;
5140
- username: string;
5141
- apiToken: string;
5142
- flags?: number | null | undefined;
5143
- connections?: {
5144
- discord?: {
5145
- id?: string | null | undefined;
5146
- username?: string | null | undefined;
5147
- verified?: boolean | null | undefined;
5148
- } | null | undefined;
5149
- epic?: {
5150
- id?: string | null | undefined;
5151
- username?: string | null | undefined;
5152
- verified?: boolean | null | undefined;
5153
- } | null | undefined;
5154
- } | null | undefined;
5155
- applications?: import("mongoose").Types.DocumentArray<{
5156
- id: import("mongoose").Types.ObjectId;
5157
- scopes: number;
5158
- token: string;
5159
- _id?: unknown;
5160
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5161
- id: import("mongoose").Types.ObjectId;
5162
- scopes: number;
5163
- token: string;
5164
- _id?: unknown;
5165
- }> & {
5166
- id: import("mongoose").Types.ObjectId;
5167
- scopes: number;
5168
- token: string;
5169
- _id?: unknown;
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;
5190
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5191
- password: string;
5192
- email: string;
5193
- token: string;
5194
- username: string;
5195
- apiToken: string;
5196
- flags?: number | null | undefined;
5197
- connections?: {
5198
- discord?: {
5199
- id?: string | null | undefined;
5200
- username?: string | null | undefined;
5201
- verified?: boolean | null | undefined;
5202
- } | null | undefined;
5203
- epic?: {
5204
- id?: string | null | undefined;
5205
- username?: string | null | undefined;
5206
- verified?: boolean | null | undefined;
5207
- } | null | undefined;
5208
- } | null | undefined;
5209
- applications?: import("mongoose").Types.DocumentArray<{
5210
- id: import("mongoose").Types.ObjectId;
5211
- scopes: number;
5212
- token: string;
5213
- _id?: unknown;
5214
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5215
- id: import("mongoose").Types.ObjectId;
5216
- scopes: number;
5217
- token: string;
5218
- _id?: unknown;
5219
- }> & {
5220
- id: import("mongoose").Types.ObjectId;
5221
- scopes: number;
5222
- token: string;
5223
- _id?: unknown;
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;
5244
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5245
- password: string;
5246
- email: string;
5247
- token: string;
5248
- username: string;
5249
- apiToken: string;
5250
- flags?: number | null | undefined;
5251
- connections?: {
5252
- discord?: {
5253
- id?: string | null | undefined;
5254
- username?: string | null | undefined;
5255
- verified?: boolean | null | undefined;
5256
- } | null | undefined;
5257
- epic?: {
5258
- id?: string | null | undefined;
5259
- username?: string | null | undefined;
5260
- verified?: boolean | null | undefined;
5261
- } | null | undefined;
5262
- } | null | undefined;
5263
- applications?: import("mongoose").Types.DocumentArray<{
5264
- id: import("mongoose").Types.ObjectId;
5265
- scopes: number;
5266
- token: string;
5267
- _id?: unknown;
5268
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5269
- id: import("mongoose").Types.ObjectId;
5270
- scopes: number;
5271
- token: string;
5272
- _id?: unknown;
5273
- }> & {
5274
- id: import("mongoose").Types.ObjectId;
5275
- scopes: number;
5276
- token: string;
5277
- _id?: unknown;
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;
5298
- }> & {
5299
- _id: import("mongoose").Types.ObjectId;
5300
- } & {
5301
- __v: number;
5302
- }, any>, id: string, auth: string) => Promise<{
5303
- user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5304
- password: string;
5305
- email: string;
5306
- token: string;
5307
- username: string;
5308
- apiToken: string;
5309
- flags?: number | null | undefined;
5310
- connections?: {
5311
- discord?: {
5312
- id?: string | null | undefined;
5313
- username?: string | null | undefined;
5314
- verified?: boolean | null | undefined;
5315
- } | null | undefined;
5316
- epic?: {
5317
- id?: string | null | undefined;
5318
- username?: string | null | undefined;
5319
- verified?: boolean | null | undefined;
5320
- } | null | undefined;
5321
- } | null | undefined;
5322
- applications?: import("mongoose").Types.DocumentArray<{
5323
- id: import("mongoose").Types.ObjectId;
5324
- scopes: number;
5325
- token: string;
5326
- _id?: unknown;
5327
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5328
- id: import("mongoose").Types.ObjectId;
5329
- scopes: number;
5330
- token: string;
5331
- _id?: unknown;
5332
- }> & {
5333
- id: import("mongoose").Types.ObjectId;
5334
- scopes: number;
5335
- token: string;
5336
- _id?: unknown;
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;
5357
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5358
- password: string;
5359
- email: string;
5360
- token: string;
5361
- username: string;
5362
- apiToken: string;
5363
- flags?: number | null | undefined;
5364
- connections?: {
5365
- discord?: {
5366
- id?: string | null | undefined;
5367
- username?: string | null | undefined;
5368
- verified?: boolean | null | undefined;
5369
- } | null | undefined;
5370
- epic?: {
5371
- id?: string | null | undefined;
5372
- username?: string | null | undefined;
5373
- verified?: boolean | null | undefined;
5374
- } | null | undefined;
5375
- } | null | undefined;
5376
- applications?: import("mongoose").Types.DocumentArray<{
5377
- id: import("mongoose").Types.ObjectId;
5378
- scopes: number;
5379
- token: string;
5380
- _id?: unknown;
5381
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5382
- id: import("mongoose").Types.ObjectId;
5383
- scopes: number;
5384
- token: string;
5385
- _id?: unknown;
5386
- }> & {
5387
- id: import("mongoose").Types.ObjectId;
5388
- scopes: number;
5389
- token: string;
5390
- _id?: unknown;
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;
5411
- }> & {
5412
- _id: import("mongoose").Types.ObjectId;
5413
- } & {
5414
- __v: number;
5415
- }) | null;
5416
- app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5417
- id: import("mongoose").Types.ObjectId;
5418
- scopes: number;
5419
- token: string;
5420
- _id?: unknown;
5421
- }> & {
5422
- id: import("mongoose").Types.ObjectId;
5423
- scopes: number;
5424
- token: string;
5425
- _id?: unknown;
5426
- };
5427
- } | null>;
5428
- }, {
5429
- statics: {
5430
- verifyPassword(this: import("mongoose").Model<{
5431
- password: string;
5432
- email: string;
5433
- token: string;
5434
- username: string;
5435
- apiToken: string;
5436
- flags?: number | null | undefined;
5437
- connections?: {
5438
- discord?: {
5439
- id?: string | null | undefined;
5440
- username?: string | null | undefined;
5441
- verified?: boolean | null | undefined;
5442
- } | null | undefined;
5443
- epic?: {
5444
- id?: string | null | undefined;
5445
- username?: string | null | undefined;
5446
- verified?: boolean | null | undefined;
5447
- } | null | undefined;
5448
- } | null | undefined;
5449
- applications?: import("mongoose").Types.DocumentArray<{
5450
- id: import("mongoose").Types.ObjectId;
5451
- scopes: number;
5452
- token: string;
5453
- _id?: unknown;
5454
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5455
- id: import("mongoose").Types.ObjectId;
5456
- scopes: number;
5457
- token: string;
5458
- _id?: unknown;
5459
- }> & {
5460
- id: import("mongoose").Types.ObjectId;
5461
- scopes: number;
5462
- token: string;
5463
- _id?: unknown;
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;
5484
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5485
- password: string;
5486
- email: string;
5487
- token: string;
5488
- username: string;
5489
- apiToken: string;
5490
- flags?: number | null | undefined;
5491
- connections?: {
5492
- discord?: {
5493
- id?: string | null | undefined;
5494
- username?: string | null | undefined;
5495
- verified?: boolean | null | undefined;
5496
- } | null | undefined;
5497
- epic?: {
5498
- id?: string | null | undefined;
5499
- username?: string | null | undefined;
5500
- verified?: boolean | null | undefined;
5501
- } | null | undefined;
5502
- } | null | undefined;
5503
- applications?: import("mongoose").Types.DocumentArray<{
5504
- id: import("mongoose").Types.ObjectId;
5505
- scopes: number;
5506
- token: string;
5507
- _id?: unknown;
5508
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5509
- id: import("mongoose").Types.ObjectId;
5510
- scopes: number;
5511
- token: string;
5512
- _id?: unknown;
5513
- }> & {
5514
- id: import("mongoose").Types.ObjectId;
5515
- scopes: number;
5516
- token: string;
5517
- _id?: unknown;
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;
5538
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5539
- password: string;
5540
- email: string;
5541
- token: string;
5542
- username: string;
5543
- apiToken: string;
5544
- flags?: number | null | undefined;
5545
- connections?: {
5546
- discord?: {
5547
- id?: string | null | undefined;
5548
- username?: string | null | undefined;
5549
- verified?: boolean | null | undefined;
5550
- } | null | undefined;
5551
- epic?: {
5552
- id?: string | null | undefined;
5553
- username?: string | null | undefined;
5554
- verified?: boolean | null | undefined;
5555
- } | null | undefined;
5556
- } | null | undefined;
5557
- applications?: import("mongoose").Types.DocumentArray<{
5558
- id: import("mongoose").Types.ObjectId;
5559
- scopes: number;
5560
- token: string;
5561
- _id?: unknown;
5562
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5563
- id: import("mongoose").Types.ObjectId;
5564
- scopes: number;
5565
- token: string;
5566
- _id?: unknown;
5567
- }> & {
5568
- id: import("mongoose").Types.ObjectId;
5569
- scopes: number;
5570
- token: string;
5571
- _id?: unknown;
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;
5592
- }> & {
5593
- _id: import("mongoose").Types.ObjectId;
5594
- } & {
5595
- __v: number;
5596
- }, any>, password: string, hash: string): Promise<boolean>;
5597
- findByToken(this: import("mongoose").Model<{
5598
- password: string;
5599
- email: string;
5600
- token: string;
5601
- username: string;
5602
- apiToken: string;
5603
- flags?: number | null | undefined;
5604
- connections?: {
5605
- discord?: {
5606
- id?: string | null | undefined;
5607
- username?: string | null | undefined;
5608
- verified?: boolean | null | undefined;
5609
- } | null | undefined;
5610
- epic?: {
5611
- id?: string | null | undefined;
5612
- username?: string | null | undefined;
5613
- verified?: boolean | null | undefined;
5614
- } | null | undefined;
5615
- } | null | undefined;
5616
- applications?: import("mongoose").Types.DocumentArray<{
5617
- id: import("mongoose").Types.ObjectId;
5618
- scopes: number;
5619
- token: string;
5620
- _id?: unknown;
5621
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5622
- id: import("mongoose").Types.ObjectId;
5623
- scopes: number;
5624
- token: string;
5625
- _id?: unknown;
5626
- }> & {
5627
- id: import("mongoose").Types.ObjectId;
5628
- scopes: number;
5629
- token: string;
5630
- _id?: unknown;
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;
5651
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5652
- password: string;
5653
- email: string;
5654
- token: string;
5655
- username: string;
5656
- apiToken: string;
5657
- flags?: number | null | undefined;
5658
- connections?: {
5659
- discord?: {
5660
- id?: string | null | undefined;
5661
- username?: string | null | undefined;
5662
- verified?: boolean | null | undefined;
5663
- } | null | undefined;
5664
- epic?: {
5665
- id?: string | null | undefined;
5666
- username?: string | null | undefined;
5667
- verified?: boolean | null | undefined;
5668
- } | null | undefined;
5669
- } | null | undefined;
5670
- applications?: import("mongoose").Types.DocumentArray<{
5671
- id: import("mongoose").Types.ObjectId;
5672
- scopes: number;
5673
- token: string;
5674
- _id?: unknown;
5675
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5676
- id: import("mongoose").Types.ObjectId;
5677
- scopes: number;
5678
- token: string;
5679
- _id?: unknown;
5680
- }> & {
5681
- id: import("mongoose").Types.ObjectId;
5682
- scopes: number;
5683
- token: string;
5684
- _id?: unknown;
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;
5705
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5706
- password: string;
5707
- email: string;
5708
- token: string;
5709
- username: string;
5710
- apiToken: string;
5711
- flags?: number | null | undefined;
5712
- connections?: {
5713
- discord?: {
5714
- id?: string | null | undefined;
5715
- username?: string | null | undefined;
5716
- verified?: boolean | null | undefined;
5717
- } | null | undefined;
5718
- epic?: {
5719
- id?: string | null | undefined;
5720
- username?: string | null | undefined;
5721
- verified?: boolean | null | undefined;
5722
- } | null | undefined;
5723
- } | null | undefined;
5724
- applications?: import("mongoose").Types.DocumentArray<{
5725
- id: import("mongoose").Types.ObjectId;
5726
- scopes: number;
5727
- token: string;
5728
- _id?: unknown;
5729
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5730
- id: import("mongoose").Types.ObjectId;
5731
- scopes: number;
5732
- token: string;
5733
- _id?: unknown;
5734
- }> & {
5735
- id: import("mongoose").Types.ObjectId;
5736
- scopes: number;
5737
- token: string;
5738
- _id?: unknown;
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;
5759
- }> & {
5760
- _id: import("mongoose").Types.ObjectId;
5761
- } & {
5762
- __v: number;
5763
- }, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5764
- password: string;
5765
- email: string;
5766
- token: string;
5767
- username: string;
5768
- apiToken: string;
5769
- flags?: number | null | undefined;
5770
- connections?: {
5771
- discord?: {
5772
- id?: string | null | undefined;
5773
- username?: string | null | undefined;
5774
- verified?: boolean | null | undefined;
5775
- } | null | undefined;
5776
- epic?: {
5777
- id?: string | null | undefined;
5778
- username?: string | null | undefined;
5779
- verified?: boolean | null | undefined;
5780
- } | null | undefined;
5781
- } | null | undefined;
5782
- applications?: import("mongoose").Types.DocumentArray<{
5783
- id: import("mongoose").Types.ObjectId;
5784
- scopes: number;
5785
- token: string;
5786
- _id?: unknown;
5787
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5788
- id: import("mongoose").Types.ObjectId;
5789
- scopes: number;
5790
- token: string;
5791
- _id?: unknown;
5792
- }> & {
5793
- id: import("mongoose").Types.ObjectId;
5794
- scopes: number;
5795
- token: string;
5796
- _id?: unknown;
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;
5817
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5818
- password: string;
5819
- email: string;
5820
- token: string;
5821
- username: string;
5822
- apiToken: string;
5823
- flags?: number | null | undefined;
5824
- connections?: {
5825
- discord?: {
5826
- id?: string | null | undefined;
5827
- username?: string | null | undefined;
5828
- verified?: boolean | null | undefined;
5829
- } | null | undefined;
5830
- epic?: {
5831
- id?: string | null | undefined;
5832
- username?: string | null | undefined;
5833
- verified?: boolean | null | undefined;
5834
- } | null | undefined;
5835
- } | null | undefined;
5836
- applications?: import("mongoose").Types.DocumentArray<{
5837
- id: import("mongoose").Types.ObjectId;
5838
- scopes: number;
5839
- token: string;
5840
- _id?: unknown;
5841
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5842
- id: import("mongoose").Types.ObjectId;
5843
- scopes: number;
5844
- token: string;
5845
- _id?: unknown;
5846
- }> & {
5847
- id: import("mongoose").Types.ObjectId;
5848
- scopes: number;
5849
- token: string;
5850
- _id?: unknown;
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;
5871
- }> & {
5872
- _id: import("mongoose").Types.ObjectId;
5873
- } & {
5874
- __v: number;
5875
- }) | null>;
5876
- findByAPIToken(this: import("mongoose").Model<{
5877
- password: string;
5878
- email: string;
5879
- token: string;
5880
- username: string;
5881
- apiToken: string;
5882
- flags?: number | null | undefined;
5883
- connections?: {
5884
- discord?: {
5885
- id?: string | null | undefined;
5886
- username?: string | null | undefined;
5887
- verified?: boolean | null | undefined;
5888
- } | null | undefined;
5889
- epic?: {
5890
- id?: string | null | undefined;
5891
- username?: string | null | undefined;
5892
- verified?: boolean | null | undefined;
5893
- } | null | undefined;
5894
- } | null | undefined;
5895
- applications?: import("mongoose").Types.DocumentArray<{
5896
- id: import("mongoose").Types.ObjectId;
5897
- scopes: number;
5898
- token: string;
5899
- _id?: unknown;
5900
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5901
- id: import("mongoose").Types.ObjectId;
5902
- scopes: number;
5903
- token: string;
5904
- _id?: unknown;
5905
- }> & {
5906
- id: import("mongoose").Types.ObjectId;
5907
- scopes: number;
5908
- token: string;
5909
- _id?: unknown;
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;
5930
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
5931
- password: string;
5932
- email: string;
5933
- token: string;
5934
- username: string;
5935
- apiToken: string;
5936
- flags?: number | null | undefined;
5937
- connections?: {
5938
- discord?: {
5939
- id?: string | null | undefined;
5940
- username?: string | null | undefined;
5941
- verified?: boolean | null | undefined;
5942
- } | null | undefined;
5943
- epic?: {
5944
- id?: string | null | undefined;
5945
- username?: string | null | undefined;
5946
- verified?: boolean | null | undefined;
5947
- } | null | undefined;
5948
- } | null | undefined;
5949
- applications?: import("mongoose").Types.DocumentArray<{
5950
- id: import("mongoose").Types.ObjectId;
5951
- scopes: number;
5952
- token: string;
5953
- _id?: unknown;
5954
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
5955
- id: import("mongoose").Types.ObjectId;
5956
- scopes: number;
5957
- token: string;
5958
- _id?: unknown;
5959
- }> & {
5960
- id: import("mongoose").Types.ObjectId;
5961
- scopes: number;
5962
- token: string;
5963
- _id?: unknown;
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;
5984
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
5985
- password: string;
5986
- email: string;
5987
- token: string;
5988
- username: string;
5989
- apiToken: string;
5990
- flags?: number | null | undefined;
5991
- connections?: {
5992
- discord?: {
5993
- id?: string | null | undefined;
5994
- username?: string | null | undefined;
5995
- verified?: boolean | null | undefined;
5996
- } | null | undefined;
5997
- epic?: {
5998
- id?: string | null | undefined;
5999
- username?: string | null | undefined;
6000
- verified?: boolean | null | undefined;
6001
- } | null | undefined;
6002
- } | null | undefined;
6003
- applications?: import("mongoose").Types.DocumentArray<{
6004
- id: import("mongoose").Types.ObjectId;
6005
- scopes: number;
6006
- token: string;
6007
- _id?: unknown;
6008
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6009
- id: import("mongoose").Types.ObjectId;
6010
- scopes: number;
6011
- token: string;
6012
- _id?: unknown;
6013
- }> & {
6014
- id: import("mongoose").Types.ObjectId;
6015
- scopes: number;
6016
- token: string;
6017
- _id?: unknown;
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;
6038
- }> & {
6039
- _id: import("mongoose").Types.ObjectId;
6040
- } & {
6041
- __v: number;
6042
- }, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6043
- password: string;
6044
- email: string;
6045
- token: string;
6046
- username: string;
6047
- apiToken: string;
6048
- flags?: number | null | undefined;
6049
- connections?: {
6050
- discord?: {
6051
- id?: string | null | undefined;
6052
- username?: string | null | undefined;
6053
- verified?: boolean | null | undefined;
6054
- } | null | undefined;
6055
- epic?: {
6056
- id?: string | null | undefined;
6057
- username?: string | null | undefined;
6058
- verified?: boolean | null | undefined;
6059
- } | null | undefined;
6060
- } | null | undefined;
6061
- applications?: import("mongoose").Types.DocumentArray<{
6062
- id: import("mongoose").Types.ObjectId;
6063
- scopes: number;
6064
- token: string;
6065
- _id?: unknown;
6066
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6067
- id: import("mongoose").Types.ObjectId;
6068
- scopes: number;
6069
- token: string;
6070
- _id?: unknown;
6071
- }> & {
6072
- id: import("mongoose").Types.ObjectId;
6073
- scopes: number;
6074
- token: string;
6075
- _id?: unknown;
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;
6096
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6097
- password: string;
6098
- email: string;
6099
- token: string;
6100
- username: string;
6101
- apiToken: string;
6102
- flags?: number | null | undefined;
6103
- connections?: {
6104
- discord?: {
6105
- id?: string | null | undefined;
6106
- username?: string | null | undefined;
6107
- verified?: boolean | null | undefined;
6108
- } | null | undefined;
6109
- epic?: {
6110
- id?: string | null | undefined;
6111
- username?: string | null | undefined;
6112
- verified?: boolean | null | undefined;
6113
- } | null | undefined;
6114
- } | null | undefined;
6115
- applications?: import("mongoose").Types.DocumentArray<{
6116
- id: import("mongoose").Types.ObjectId;
6117
- scopes: number;
6118
- token: string;
6119
- _id?: unknown;
6120
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6121
- id: import("mongoose").Types.ObjectId;
6122
- scopes: number;
6123
- token: string;
6124
- _id?: unknown;
6125
- }> & {
6126
- id: import("mongoose").Types.ObjectId;
6127
- scopes: number;
6128
- token: string;
6129
- _id?: unknown;
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;
6150
- }> & {
6151
- _id: import("mongoose").Types.ObjectId;
6152
- } & {
6153
- __v: number;
6154
- }) | null>;
6155
- findByAccessToken(this: import("mongoose").Model<{
6156
- password: string;
6157
- email: string;
6158
- token: string;
6159
- username: string;
6160
- apiToken: string;
6161
- flags?: number | null | undefined;
6162
- connections?: {
6163
- discord?: {
6164
- id?: string | null | undefined;
6165
- username?: string | null | undefined;
6166
- verified?: boolean | null | undefined;
6167
- } | null | undefined;
6168
- epic?: {
6169
- id?: string | null | undefined;
6170
- username?: string | null | undefined;
6171
- verified?: boolean | null | undefined;
6172
- } | null | undefined;
6173
- } | null | undefined;
6174
- applications?: import("mongoose").Types.DocumentArray<{
6175
- id: import("mongoose").Types.ObjectId;
6176
- scopes: number;
6177
- token: string;
6178
- _id?: unknown;
6179
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6180
- id: import("mongoose").Types.ObjectId;
6181
- scopes: number;
6182
- token: string;
6183
- _id?: unknown;
6184
- }> & {
6185
- id: import("mongoose").Types.ObjectId;
6186
- scopes: number;
6187
- token: string;
6188
- _id?: unknown;
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;
6209
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6210
- password: string;
6211
- email: string;
6212
- token: string;
6213
- username: string;
6214
- apiToken: string;
6215
- flags?: number | null | undefined;
6216
- connections?: {
6217
- discord?: {
6218
- id?: string | null | undefined;
6219
- username?: string | null | undefined;
6220
- verified?: boolean | null | undefined;
6221
- } | null | undefined;
6222
- epic?: {
6223
- id?: string | null | undefined;
6224
- username?: string | null | undefined;
6225
- verified?: boolean | null | undefined;
6226
- } | null | undefined;
6227
- } | null | undefined;
6228
- applications?: import("mongoose").Types.DocumentArray<{
6229
- id: import("mongoose").Types.ObjectId;
6230
- scopes: number;
6231
- token: string;
6232
- _id?: unknown;
6233
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6234
- id: import("mongoose").Types.ObjectId;
6235
- scopes: number;
6236
- token: string;
6237
- _id?: unknown;
6238
- }> & {
6239
- id: import("mongoose").Types.ObjectId;
6240
- scopes: number;
6241
- token: string;
6242
- _id?: unknown;
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;
6263
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6264
- password: string;
6265
- email: string;
6266
- token: string;
6267
- username: string;
6268
- apiToken: string;
6269
- flags?: number | null | undefined;
6270
- connections?: {
6271
- discord?: {
6272
- id?: string | null | undefined;
6273
- username?: string | null | undefined;
6274
- verified?: boolean | null | undefined;
6275
- } | null | undefined;
6276
- epic?: {
6277
- id?: string | null | undefined;
6278
- username?: string | null | undefined;
6279
- verified?: boolean | null | undefined;
6280
- } | null | undefined;
6281
- } | null | undefined;
6282
- applications?: import("mongoose").Types.DocumentArray<{
6283
- id: import("mongoose").Types.ObjectId;
6284
- scopes: number;
6285
- token: string;
6286
- _id?: unknown;
6287
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6288
- id: import("mongoose").Types.ObjectId;
6289
- scopes: number;
6290
- token: string;
6291
- _id?: unknown;
6292
- }> & {
6293
- id: import("mongoose").Types.ObjectId;
6294
- scopes: number;
6295
- token: string;
6296
- _id?: unknown;
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;
6317
- }> & {
6318
- _id: import("mongoose").Types.ObjectId;
6319
- } & {
6320
- __v: number;
6321
- }, any>, id: string, auth: string): Promise<{
6322
- user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6323
- password: string;
6324
- email: string;
6325
- token: string;
6326
- username: string;
6327
- apiToken: string;
6328
- flags?: number | null | undefined;
6329
- connections?: {
6330
- discord?: {
6331
- id?: string | null | undefined;
6332
- username?: string | null | undefined;
6333
- verified?: boolean | null | undefined;
6334
- } | null | undefined;
6335
- epic?: {
6336
- id?: string | null | undefined;
6337
- username?: string | null | undefined;
6338
- verified?: boolean | null | undefined;
6339
- } | null | undefined;
6340
- } | null | undefined;
6341
- applications?: import("mongoose").Types.DocumentArray<{
6342
- id: import("mongoose").Types.ObjectId;
6343
- scopes: number;
6344
- token: string;
6345
- _id?: unknown;
6346
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6347
- id: import("mongoose").Types.ObjectId;
6348
- scopes: number;
6349
- token: string;
6350
- _id?: unknown;
6351
- }> & {
6352
- id: import("mongoose").Types.ObjectId;
6353
- scopes: number;
6354
- token: string;
6355
- _id?: unknown;
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;
6376
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6377
- password: string;
6378
- email: string;
6379
- token: string;
6380
- username: string;
6381
- apiToken: string;
6382
- flags?: number | null | undefined;
6383
- connections?: {
6384
- discord?: {
6385
- id?: string | null | undefined;
6386
- username?: string | null | undefined;
6387
- verified?: boolean | null | undefined;
6388
- } | null | undefined;
6389
- epic?: {
6390
- id?: string | null | undefined;
6391
- username?: string | null | undefined;
6392
- verified?: boolean | null | undefined;
6393
- } | null | undefined;
6394
- } | null | undefined;
6395
- applications?: import("mongoose").Types.DocumentArray<{
6396
- id: import("mongoose").Types.ObjectId;
6397
- scopes: number;
6398
- token: string;
6399
- _id?: unknown;
6400
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6401
- id: import("mongoose").Types.ObjectId;
6402
- scopes: number;
6403
- token: string;
6404
- _id?: unknown;
6405
- }> & {
6406
- id: import("mongoose").Types.ObjectId;
6407
- scopes: number;
6408
- token: string;
6409
- _id?: unknown;
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;
6430
- }> & {
6431
- _id: import("mongoose").Types.ObjectId;
6432
- } & {
6433
- __v: number;
6434
- }) | null;
6435
- app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6436
- id: import("mongoose").Types.ObjectId;
6437
- scopes: number;
6438
- token: string;
6439
- _id?: unknown;
6440
- }> & {
6441
- id: import("mongoose").Types.ObjectId;
6442
- scopes: number;
6443
- token: string;
6444
- _id?: unknown;
6445
- };
6446
- } | null>;
6447
- };
6448
- }, {
6449
- password: string;
6450
- email: string;
6451
- token: string;
6452
- username: string;
6453
- apiToken: string;
6454
- flags?: number | null | undefined;
6455
- connections?: {
6456
- discord?: {
6457
- id?: string | null | undefined;
6458
- username?: string | null | undefined;
6459
- verified?: boolean | null | undefined;
6460
- } | null | undefined;
6461
- epic?: {
6462
- id?: string | null | undefined;
6463
- username?: string | null | undefined;
6464
- verified?: boolean | null | undefined;
6465
- } | null | undefined;
6466
- } | null | undefined;
6467
- applications?: import("mongoose").Types.DocumentArray<{
6468
- id: import("mongoose").Types.ObjectId;
6469
- scopes: number;
6470
- token: string;
6471
- _id?: unknown;
6472
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6473
- id: import("mongoose").Types.ObjectId;
6474
- scopes: number;
6475
- token: string;
6476
- _id?: unknown;
6477
- }> & {
6478
- id: import("mongoose").Types.ObjectId;
6479
- scopes: number;
6480
- token: string;
6481
- _id?: unknown;
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;
6502
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6503
- password: string;
6504
- email: string;
6505
- token: string;
6506
- username: string;
6507
- apiToken: string;
6508
- flags?: number | null | undefined;
6509
- connections?: {
6510
- discord?: {
6511
- id?: string | null | undefined;
6512
- username?: string | null | undefined;
6513
- verified?: boolean | null | undefined;
6514
- } | null | undefined;
6515
- epic?: {
6516
- id?: string | null | undefined;
6517
- username?: string | null | undefined;
6518
- verified?: boolean | null | undefined;
6519
- } | null | undefined;
6520
- } | null | undefined;
6521
- applications?: import("mongoose").Types.DocumentArray<{
6522
- id: import("mongoose").Types.ObjectId;
6523
- scopes: number;
6524
- token: string;
6525
- _id?: unknown;
6526
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6527
- id: import("mongoose").Types.ObjectId;
6528
- scopes: number;
6529
- token: string;
6530
- _id?: unknown;
6531
- }> & {
6532
- id: import("mongoose").Types.ObjectId;
6533
- scopes: number;
6534
- token: string;
6535
- _id?: unknown;
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;
6556
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6557
- password: string;
6558
- email: string;
6559
- token: string;
6560
- username: string;
6561
- apiToken: string;
6562
- flags?: number | null | undefined;
6563
- connections?: {
6564
- discord?: {
6565
- id?: string | null | undefined;
6566
- username?: string | null | undefined;
6567
- verified?: boolean | null | undefined;
6568
- } | null | undefined;
6569
- epic?: {
6570
- id?: string | null | undefined;
6571
- username?: string | null | undefined;
6572
- verified?: boolean | null | undefined;
6573
- } | null | undefined;
6574
- } | null | undefined;
6575
- applications?: import("mongoose").Types.DocumentArray<{
6576
- id: import("mongoose").Types.ObjectId;
6577
- scopes: number;
6578
- token: string;
6579
- _id?: unknown;
6580
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6581
- id: import("mongoose").Types.ObjectId;
6582
- scopes: number;
6583
- token: string;
6584
- _id?: unknown;
6585
- }> & {
6586
- id: import("mongoose").Types.ObjectId;
6587
- scopes: number;
6588
- token: string;
6589
- _id?: unknown;
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;
6610
- }> & {
6611
- _id: import("mongoose").Types.ObjectId;
6612
- } & {
6613
- __v: number;
6614
- }>> & {
6615
- verifyPassword: (this: import("mongoose").Model<{
6616
- password: string;
6617
- email: string;
6618
- token: string;
6619
- username: string;
6620
- apiToken: string;
6621
- flags?: number | null | undefined;
6622
- connections?: {
6623
- discord?: {
6624
- id?: string | null | undefined;
6625
- username?: string | null | undefined;
6626
- verified?: boolean | null | undefined;
6627
- } | null | undefined;
6628
- epic?: {
6629
- id?: string | null | undefined;
6630
- username?: string | null | undefined;
6631
- verified?: boolean | null | undefined;
6632
- } | null | undefined;
6633
- } | null | undefined;
6634
- applications?: import("mongoose").Types.DocumentArray<{
6635
- id: import("mongoose").Types.ObjectId;
6636
- scopes: number;
6637
- token: string;
6638
- _id?: unknown;
6639
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6640
- id: import("mongoose").Types.ObjectId;
6641
- scopes: number;
6642
- token: string;
6643
- _id?: unknown;
6644
- }> & {
6645
- id: import("mongoose").Types.ObjectId;
6646
- scopes: number;
6647
- token: string;
6648
- _id?: unknown;
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;
6669
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6670
- password: string;
6671
- email: string;
6672
- token: string;
6673
- username: string;
6674
- apiToken: string;
6675
- flags?: number | null | undefined;
6676
- connections?: {
6677
- discord?: {
6678
- id?: string | null | undefined;
6679
- username?: string | null | undefined;
6680
- verified?: boolean | null | undefined;
6681
- } | null | undefined;
6682
- epic?: {
6683
- id?: string | null | undefined;
6684
- username?: string | null | undefined;
6685
- verified?: boolean | null | undefined;
6686
- } | null | undefined;
6687
- } | null | undefined;
6688
- applications?: import("mongoose").Types.DocumentArray<{
6689
- id: import("mongoose").Types.ObjectId;
6690
- scopes: number;
6691
- token: string;
6692
- _id?: unknown;
6693
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6694
- id: import("mongoose").Types.ObjectId;
6695
- scopes: number;
6696
- token: string;
6697
- _id?: unknown;
6698
- }> & {
6699
- id: import("mongoose").Types.ObjectId;
6700
- scopes: number;
6701
- token: string;
6702
- _id?: unknown;
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;
6723
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6724
- password: string;
6725
- email: string;
6726
- token: string;
6727
- username: string;
6728
- apiToken: string;
6729
- flags?: number | null | undefined;
6730
- connections?: {
6731
- discord?: {
6732
- id?: string | null | undefined;
6733
- username?: string | null | undefined;
6734
- verified?: boolean | null | undefined;
6735
- } | null | undefined;
6736
- epic?: {
6737
- id?: string | null | undefined;
6738
- username?: string | null | undefined;
6739
- verified?: boolean | null | undefined;
6740
- } | null | undefined;
6741
- } | null | undefined;
6742
- applications?: import("mongoose").Types.DocumentArray<{
6743
- id: import("mongoose").Types.ObjectId;
6744
- scopes: number;
6745
- token: string;
6746
- _id?: unknown;
6747
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6748
- id: import("mongoose").Types.ObjectId;
6749
- scopes: number;
6750
- token: string;
6751
- _id?: unknown;
6752
- }> & {
6753
- id: import("mongoose").Types.ObjectId;
6754
- scopes: number;
6755
- token: string;
6756
- _id?: unknown;
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;
6777
- }> & {
6778
- _id: import("mongoose").Types.ObjectId;
6779
- } & {
6780
- __v: number;
6781
- }, any>, password: string, hash: string) => Promise<boolean>;
6782
- findByToken: (this: import("mongoose").Model<{
6783
- password: string;
6784
- email: string;
6785
- token: string;
6786
- username: string;
6787
- apiToken: string;
6788
- flags?: number | null | undefined;
6789
- connections?: {
6790
- discord?: {
6791
- id?: string | null | undefined;
6792
- username?: string | null | undefined;
6793
- verified?: boolean | null | undefined;
6794
- } | null | undefined;
6795
- epic?: {
6796
- id?: string | null | undefined;
6797
- username?: string | null | undefined;
6798
- verified?: boolean | null | undefined;
6799
- } | null | undefined;
6800
- } | null | undefined;
6801
- applications?: import("mongoose").Types.DocumentArray<{
6802
- id: import("mongoose").Types.ObjectId;
6803
- scopes: number;
6804
- token: string;
6805
- _id?: unknown;
6806
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6807
- id: import("mongoose").Types.ObjectId;
6808
- scopes: number;
6809
- token: string;
6810
- _id?: unknown;
6811
- }> & {
6812
- id: import("mongoose").Types.ObjectId;
6813
- scopes: number;
6814
- token: string;
6815
- _id?: unknown;
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;
6836
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6837
- password: string;
6838
- email: string;
6839
- token: string;
6840
- username: string;
6841
- apiToken: string;
6842
- flags?: number | null | undefined;
6843
- connections?: {
6844
- discord?: {
6845
- id?: string | null | undefined;
6846
- username?: string | null | undefined;
6847
- verified?: boolean | null | undefined;
6848
- } | null | undefined;
6849
- epic?: {
6850
- id?: string | null | undefined;
6851
- username?: string | null | undefined;
6852
- verified?: boolean | null | undefined;
6853
- } | null | undefined;
6854
- } | null | undefined;
6855
- applications?: import("mongoose").Types.DocumentArray<{
6856
- id: import("mongoose").Types.ObjectId;
6857
- scopes: number;
6858
- token: string;
6859
- _id?: unknown;
6860
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6861
- id: import("mongoose").Types.ObjectId;
6862
- scopes: number;
6863
- token: string;
6864
- _id?: unknown;
6865
- }> & {
6866
- id: import("mongoose").Types.ObjectId;
6867
- scopes: number;
6868
- token: string;
6869
- _id?: unknown;
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;
6890
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
6891
- password: string;
6892
- email: string;
6893
- token: string;
6894
- username: string;
6895
- apiToken: string;
6896
- flags?: number | null | undefined;
6897
- connections?: {
6898
- discord?: {
6899
- id?: string | null | undefined;
6900
- username?: string | null | undefined;
6901
- verified?: boolean | null | undefined;
6902
- } | null | undefined;
6903
- epic?: {
6904
- id?: string | null | undefined;
6905
- username?: string | null | undefined;
6906
- verified?: boolean | null | undefined;
6907
- } | null | undefined;
6908
- } | null | undefined;
6909
- applications?: import("mongoose").Types.DocumentArray<{
6910
- id: import("mongoose").Types.ObjectId;
6911
- scopes: number;
6912
- token: string;
6913
- _id?: unknown;
6914
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6915
- id: import("mongoose").Types.ObjectId;
6916
- scopes: number;
6917
- token: string;
6918
- _id?: unknown;
6919
- }> & {
6920
- id: import("mongoose").Types.ObjectId;
6921
- scopes: number;
6922
- token: string;
6923
- _id?: unknown;
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;
6944
- }> & {
6945
- _id: import("mongoose").Types.ObjectId;
6946
- } & {
6947
- __v: number;
6948
- }, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
6949
- password: string;
6950
- email: string;
6951
- token: string;
6952
- username: string;
6953
- apiToken: string;
6954
- flags?: number | null | undefined;
6955
- connections?: {
6956
- discord?: {
6957
- id?: string | null | undefined;
6958
- username?: string | null | undefined;
6959
- verified?: boolean | null | undefined;
6960
- } | null | undefined;
6961
- epic?: {
6962
- id?: string | null | undefined;
6963
- username?: string | null | undefined;
6964
- verified?: boolean | null | undefined;
6965
- } | null | undefined;
6966
- } | null | undefined;
6967
- applications?: import("mongoose").Types.DocumentArray<{
6968
- id: import("mongoose").Types.ObjectId;
6969
- scopes: number;
6970
- token: string;
6971
- _id?: unknown;
6972
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
6973
- id: import("mongoose").Types.ObjectId;
6974
- scopes: number;
6975
- token: string;
6976
- _id?: unknown;
6977
- }> & {
6978
- id: import("mongoose").Types.ObjectId;
6979
- scopes: number;
6980
- token: string;
6981
- _id?: unknown;
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;
7002
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
7003
- password: string;
7004
- email: string;
7005
- token: string;
7006
- username: string;
7007
- apiToken: string;
7008
- flags?: number | null | undefined;
7009
- connections?: {
7010
- discord?: {
7011
- id?: string | null | undefined;
7012
- username?: string | null | undefined;
7013
- verified?: boolean | null | undefined;
7014
- } | null | undefined;
7015
- epic?: {
7016
- id?: string | null | undefined;
7017
- username?: string | null | undefined;
7018
- verified?: boolean | null | undefined;
7019
- } | null | undefined;
7020
- } | null | undefined;
7021
- applications?: import("mongoose").Types.DocumentArray<{
7022
- id: import("mongoose").Types.ObjectId;
7023
- scopes: number;
7024
- token: string;
7025
- _id?: unknown;
7026
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7027
- id: import("mongoose").Types.ObjectId;
7028
- scopes: number;
7029
- token: string;
7030
- _id?: unknown;
7031
- }> & {
7032
- id: import("mongoose").Types.ObjectId;
7033
- scopes: number;
7034
- token: string;
7035
- _id?: unknown;
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;
7056
- }> & {
7057
- _id: import("mongoose").Types.ObjectId;
7058
- } & {
7059
- __v: number;
7060
- }) | null>;
7061
- findByAPIToken: (this: import("mongoose").Model<{
7062
- password: string;
7063
- email: string;
7064
- token: string;
7065
- username: string;
7066
- apiToken: string;
7067
- flags?: number | null | undefined;
7068
- connections?: {
7069
- discord?: {
7070
- id?: string | null | undefined;
7071
- username?: string | null | undefined;
7072
- verified?: boolean | null | undefined;
7073
- } | null | undefined;
7074
- epic?: {
7075
- id?: string | null | undefined;
7076
- username?: string | null | undefined;
7077
- verified?: boolean | null | undefined;
7078
- } | null | undefined;
7079
- } | null | undefined;
7080
- applications?: import("mongoose").Types.DocumentArray<{
7081
- id: import("mongoose").Types.ObjectId;
7082
- scopes: number;
7083
- token: string;
7084
- _id?: unknown;
7085
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7086
- id: import("mongoose").Types.ObjectId;
7087
- scopes: number;
7088
- token: string;
7089
- _id?: unknown;
7090
- }> & {
7091
- id: import("mongoose").Types.ObjectId;
7092
- scopes: number;
7093
- token: string;
7094
- _id?: unknown;
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;
7115
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
7116
- password: string;
7117
- email: string;
7118
- token: string;
7119
- username: string;
7120
- apiToken: string;
7121
- flags?: number | null | undefined;
7122
- connections?: {
7123
- discord?: {
7124
- id?: string | null | undefined;
7125
- username?: string | null | undefined;
7126
- verified?: boolean | null | undefined;
7127
- } | null | undefined;
7128
- epic?: {
7129
- id?: string | null | undefined;
7130
- username?: string | null | undefined;
7131
- verified?: boolean | null | undefined;
7132
- } | null | undefined;
7133
- } | null | undefined;
7134
- applications?: import("mongoose").Types.DocumentArray<{
7135
- id: import("mongoose").Types.ObjectId;
7136
- scopes: number;
7137
- token: string;
7138
- _id?: unknown;
7139
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7140
- id: import("mongoose").Types.ObjectId;
7141
- scopes: number;
7142
- token: string;
7143
- _id?: unknown;
7144
- }> & {
7145
- id: import("mongoose").Types.ObjectId;
7146
- scopes: number;
7147
- token: string;
7148
- _id?: unknown;
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;
7169
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
7170
- password: string;
7171
- email: string;
7172
- token: string;
7173
- username: string;
7174
- apiToken: string;
7175
- flags?: number | null | undefined;
7176
- connections?: {
7177
- discord?: {
7178
- id?: string | null | undefined;
7179
- username?: string | null | undefined;
7180
- verified?: boolean | null | undefined;
7181
- } | null | undefined;
7182
- epic?: {
7183
- id?: string | null | undefined;
7184
- username?: string | null | undefined;
7185
- verified?: boolean | null | undefined;
7186
- } | null | undefined;
7187
- } | null | undefined;
7188
- applications?: import("mongoose").Types.DocumentArray<{
7189
- id: import("mongoose").Types.ObjectId;
7190
- scopes: number;
7191
- token: string;
7192
- _id?: unknown;
7193
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7194
- id: import("mongoose").Types.ObjectId;
7195
- scopes: number;
7196
- token: string;
7197
- _id?: unknown;
7198
- }> & {
7199
- id: import("mongoose").Types.ObjectId;
7200
- scopes: number;
7201
- token: string;
7202
- _id?: unknown;
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;
7223
- }> & {
7224
- _id: import("mongoose").Types.ObjectId;
7225
- } & {
7226
- __v: number;
7227
- }, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
7228
- password: string;
7229
- email: string;
7230
- token: string;
7231
- username: string;
7232
- apiToken: string;
7233
- flags?: number | null | undefined;
7234
- connections?: {
7235
- discord?: {
7236
- id?: string | null | undefined;
7237
- username?: string | null | undefined;
7238
- verified?: boolean | null | undefined;
7239
- } | null | undefined;
7240
- epic?: {
7241
- id?: string | null | undefined;
7242
- username?: string | null | undefined;
7243
- verified?: boolean | null | undefined;
7244
- } | null | undefined;
7245
- } | null | undefined;
7246
- applications?: import("mongoose").Types.DocumentArray<{
7247
- id: import("mongoose").Types.ObjectId;
7248
- scopes: number;
7249
- token: string;
7250
- _id?: unknown;
7251
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7252
- id: import("mongoose").Types.ObjectId;
7253
- scopes: number;
7254
- token: string;
7255
- _id?: unknown;
7256
- }> & {
7257
- id: import("mongoose").Types.ObjectId;
7258
- scopes: number;
7259
- token: string;
7260
- _id?: unknown;
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;
7281
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
7282
- password: string;
7283
- email: string;
7284
- token: string;
7285
- username: string;
7286
- apiToken: string;
7287
- flags?: number | null | undefined;
7288
- connections?: {
7289
- discord?: {
7290
- id?: string | null | undefined;
7291
- username?: string | null | undefined;
7292
- verified?: boolean | null | undefined;
7293
- } | null | undefined;
7294
- epic?: {
7295
- id?: string | null | undefined;
7296
- username?: string | null | undefined;
7297
- verified?: boolean | null | undefined;
7298
- } | null | undefined;
7299
- } | null | undefined;
7300
- applications?: import("mongoose").Types.DocumentArray<{
7301
- id: import("mongoose").Types.ObjectId;
7302
- scopes: number;
7303
- token: string;
7304
- _id?: unknown;
7305
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7306
- id: import("mongoose").Types.ObjectId;
7307
- scopes: number;
7308
- token: string;
7309
- _id?: unknown;
7310
- }> & {
7311
- id: import("mongoose").Types.ObjectId;
7312
- scopes: number;
7313
- token: string;
7314
- _id?: unknown;
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;
7335
- }> & {
7336
- _id: import("mongoose").Types.ObjectId;
7337
- } & {
7338
- __v: number;
7339
- }) | null>;
7340
- findByAccessToken: (this: import("mongoose").Model<{
7341
- password: string;
7342
- email: string;
7343
- token: string;
7344
- username: string;
7345
- apiToken: string;
7346
- flags?: number | null | undefined;
7347
- connections?: {
7348
- discord?: {
7349
- id?: string | null | undefined;
7350
- username?: string | null | undefined;
7351
- verified?: boolean | null | undefined;
7352
- } | null | undefined;
7353
- epic?: {
7354
- id?: string | null | undefined;
7355
- username?: string | null | undefined;
7356
- verified?: boolean | null | undefined;
7357
- } | null | undefined;
7358
- } | null | undefined;
7359
- applications?: import("mongoose").Types.DocumentArray<{
7360
- id: import("mongoose").Types.ObjectId;
7361
- scopes: number;
7362
- token: string;
7363
- _id?: unknown;
7364
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7365
- id: import("mongoose").Types.ObjectId;
7366
- scopes: number;
7367
- token: string;
7368
- _id?: unknown;
7369
- }> & {
7370
- id: import("mongoose").Types.ObjectId;
7371
- scopes: number;
7372
- token: string;
7373
- _id?: unknown;
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;
7394
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
7395
- password: string;
7396
- email: string;
7397
- token: string;
7398
- username: string;
7399
- apiToken: string;
7400
- flags?: number | null | undefined;
7401
- connections?: {
7402
- discord?: {
7403
- id?: string | null | undefined;
7404
- username?: string | null | undefined;
7405
- verified?: boolean | null | undefined;
7406
- } | null | undefined;
7407
- epic?: {
7408
- id?: string | null | undefined;
7409
- username?: string | null | undefined;
7410
- verified?: boolean | null | undefined;
7411
- } | null | undefined;
7412
- } | null | undefined;
7413
- applications?: import("mongoose").Types.DocumentArray<{
7414
- id: import("mongoose").Types.ObjectId;
7415
- scopes: number;
7416
- token: string;
7417
- _id?: unknown;
7418
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7419
- id: import("mongoose").Types.ObjectId;
7420
- scopes: number;
7421
- token: string;
7422
- _id?: unknown;
7423
- }> & {
7424
- id: import("mongoose").Types.ObjectId;
7425
- scopes: number;
7426
- token: string;
7427
- _id?: unknown;
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;
7448
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
7449
- password: string;
7450
- email: string;
7451
- token: string;
7452
- username: string;
7453
- apiToken: string;
7454
- flags?: number | null | undefined;
7455
- connections?: {
7456
- discord?: {
7457
- id?: string | null | undefined;
7458
- username?: string | null | undefined;
7459
- verified?: boolean | null | undefined;
7460
- } | null | undefined;
7461
- epic?: {
7462
- id?: string | null | undefined;
7463
- username?: string | null | undefined;
7464
- verified?: boolean | null | undefined;
7465
- } | null | undefined;
7466
- } | null | undefined;
7467
- applications?: import("mongoose").Types.DocumentArray<{
7468
- id: import("mongoose").Types.ObjectId;
7469
- scopes: number;
7470
- token: string;
7471
- _id?: unknown;
7472
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7473
- id: import("mongoose").Types.ObjectId;
7474
- scopes: number;
7475
- token: string;
7476
- _id?: unknown;
7477
- }> & {
7478
- id: import("mongoose").Types.ObjectId;
7479
- scopes: number;
7480
- token: string;
7481
- _id?: unknown;
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;
7502
- }> & {
7503
- _id: import("mongoose").Types.ObjectId;
7504
- } & {
7505
- __v: number;
7506
- }, any>, id: string, auth: string) => Promise<{
7507
- user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
7508
- password: string;
7509
- email: string;
7510
- token: string;
7511
- username: string;
7512
- apiToken: string;
7513
- flags?: number | null | undefined;
7514
- connections?: {
7515
- discord?: {
7516
- id?: string | null | undefined;
7517
- username?: string | null | undefined;
7518
- verified?: boolean | null | undefined;
7519
- } | null | undefined;
7520
- epic?: {
7521
- id?: string | null | undefined;
7522
- username?: string | null | undefined;
7523
- verified?: boolean | null | undefined;
7524
- } | null | undefined;
7525
- } | null | undefined;
7526
- applications?: import("mongoose").Types.DocumentArray<{
7527
- id: import("mongoose").Types.ObjectId;
7528
- scopes: number;
7529
- token: string;
7530
- _id?: unknown;
7531
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7532
- id: import("mongoose").Types.ObjectId;
7533
- scopes: number;
7534
- token: string;
7535
- _id?: unknown;
7536
- }> & {
7537
- id: import("mongoose").Types.ObjectId;
7538
- scopes: number;
7539
- token: string;
7540
- _id?: unknown;
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;
7561
- }>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
7562
- password: string;
7563
- email: string;
7564
- token: string;
7565
- username: string;
7566
- apiToken: string;
7567
- flags?: number | null | undefined;
7568
- connections?: {
7569
- discord?: {
7570
- id?: string | null | undefined;
7571
- username?: string | null | undefined;
7572
- verified?: boolean | null | undefined;
7573
- } | null | undefined;
7574
- epic?: {
7575
- id?: string | null | undefined;
7576
- username?: string | null | undefined;
7577
- verified?: boolean | null | undefined;
7578
- } | null | undefined;
7579
- } | null | undefined;
7580
- applications?: import("mongoose").Types.DocumentArray<{
7581
- id: import("mongoose").Types.ObjectId;
7582
- scopes: number;
7583
- token: string;
7584
- _id?: unknown;
7585
- }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7586
- id: import("mongoose").Types.ObjectId;
7587
- scopes: number;
7588
- token: string;
7589
- _id?: unknown;
7590
- }> & {
7591
- id: import("mongoose").Types.ObjectId;
7592
- scopes: number;
7593
- token: string;
7594
- _id?: unknown;
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;
7615
- }> & {
7616
- _id: import("mongoose").Types.ObjectId;
7617
- } & {
7618
- __v: number;
7619
- }) | null;
7620
- app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
7621
- id: import("mongoose").Types.ObjectId;
7622
- scopes: number;
7623
- token: string;
7624
- _id?: unknown;
7625
- }> & {
7626
- id: import("mongoose").Types.ObjectId;
7627
- scopes: number;
7628
- token: string;
7629
- _id?: unknown;
7630
- };
3329
+ usedAt?: Date;
3330
+ }[];
3331
+ };
3332
+ }
3333
+ export interface IUserStatics {
3334
+ verifyPassword(password: string, hash: string): Promise<boolean>;
3335
+ findByToken(id: string, auth: string): Promise<HydratedDocument<IUser> | null>;
3336
+ findByAPIToken(id: string, auth: string): Promise<HydratedDocument<IUser> | null>;
3337
+ findByAccessToken(id: string, auth: string): Promise<{
3338
+ user: HydratedDocument<IUser>;
3339
+ app: IUserApplication;
7631
3340
  } | null>;
7632
- };
3341
+ }
3342
+ export type UserModelType = Model<IUser, object, object, IUserStatics>;
3343
+ export declare const UserModel: UserModelType;
7633
3344
  export declare enum DatabaseErrors {
7634
3345
  InternalError = 1,
7635
3346
  BadValue = 2,