@fnlb-project/database 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1329 -541
- package/dist/index.js +398 -398
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
72
72
|
policyUri?: string | null | undefined;
|
|
73
73
|
installUri?: string | null | undefined;
|
|
74
74
|
flags?: number | null | undefined;
|
|
75
|
-
}>, {}, import("mongoose").
|
|
75
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
76
76
|
owner: import("mongoose").Types.ObjectId;
|
|
77
77
|
name: string;
|
|
78
78
|
secret: string;
|
|
@@ -152,7 +152,7 @@ export declare const BotModel: import("mongoose").Model<{
|
|
|
152
152
|
parent?: import("mongoose").Types.ObjectId | null | undefined;
|
|
153
153
|
email?: string | null | undefined;
|
|
154
154
|
mmsBannedUntil?: number | null | undefined;
|
|
155
|
-
}>, {}, import("mongoose").
|
|
155
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
156
156
|
owner: import("mongoose").Types.ObjectId;
|
|
157
157
|
nickname: string;
|
|
158
158
|
deviceAuth: {
|
|
@@ -2288,7 +2288,7 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
2288
2288
|
_id?: unknown;
|
|
2289
2289
|
}> | null | undefined;
|
|
2290
2290
|
} | null | undefined;
|
|
2291
|
-
}>, {}, import("mongoose").
|
|
2291
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
2292
2292
|
owner: import("mongoose").Types.ObjectId;
|
|
2293
2293
|
name: string;
|
|
2294
2294
|
flags?: number | null | undefined;
|
|
@@ -2735,7 +2735,7 @@ export declare const PresetModel: import("mongoose").Model<{
|
|
|
2735
2735
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
2736
2736
|
owner: import("mongoose").Types.ObjectId;
|
|
2737
2737
|
name: string;
|
|
2738
|
-
}>, {}, import("mongoose").
|
|
2738
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
2739
2739
|
owner: import("mongoose").Types.ObjectId;
|
|
2740
2740
|
name: string;
|
|
2741
2741
|
}> & {
|
|
@@ -2749,7 +2749,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2749
2749
|
token: string;
|
|
2750
2750
|
username: string;
|
|
2751
2751
|
apiToken: string;
|
|
2752
|
-
|
|
2752
|
+
flags?: number | null | undefined;
|
|
2753
|
+
connections?: {
|
|
2754
|
+
discord?: {
|
|
2755
|
+
id?: string | null | undefined;
|
|
2756
|
+
username?: string | null | undefined;
|
|
2757
|
+
verified?: boolean | null | undefined;
|
|
2758
|
+
} | null | undefined;
|
|
2759
|
+
epic?: {
|
|
2760
|
+
id?: string | null | undefined;
|
|
2761
|
+
username?: string | null | undefined;
|
|
2762
|
+
verified?: boolean | null | undefined;
|
|
2763
|
+
} | null | undefined;
|
|
2764
|
+
} | null | undefined;
|
|
2765
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2753
2766
|
id: import("mongoose").Types.ObjectId;
|
|
2754
2767
|
scopes: number;
|
|
2755
2768
|
token: string;
|
|
@@ -2764,7 +2777,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2764
2777
|
scopes: number;
|
|
2765
2778
|
token: string;
|
|
2766
2779
|
_id?: unknown;
|
|
2767
|
-
}
|
|
2780
|
+
}> | null | undefined;
|
|
2781
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
2782
|
+
password: string;
|
|
2783
|
+
email: string;
|
|
2784
|
+
token: string;
|
|
2785
|
+
username: string;
|
|
2786
|
+
apiToken: string;
|
|
2768
2787
|
flags?: number | null | undefined;
|
|
2769
2788
|
connections?: {
|
|
2770
2789
|
discord?: {
|
|
@@ -2778,13 +2797,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2778
2797
|
verified?: boolean | null | undefined;
|
|
2779
2798
|
} | null | undefined;
|
|
2780
2799
|
} | null | undefined;
|
|
2781
|
-
|
|
2782
|
-
password: string;
|
|
2783
|
-
email: string;
|
|
2784
|
-
token: string;
|
|
2785
|
-
username: string;
|
|
2786
|
-
apiToken: string;
|
|
2787
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
2800
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2788
2801
|
id: import("mongoose").Types.ObjectId;
|
|
2789
2802
|
scopes: number;
|
|
2790
2803
|
token: string;
|
|
@@ -2799,20 +2812,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2799
2812
|
scopes: number;
|
|
2800
2813
|
token: string;
|
|
2801
2814
|
_id?: unknown;
|
|
2802
|
-
}
|
|
2803
|
-
flags?: number | null | undefined;
|
|
2804
|
-
connections?: {
|
|
2805
|
-
discord?: {
|
|
2806
|
-
id?: string | null | undefined;
|
|
2807
|
-
username?: string | null | undefined;
|
|
2808
|
-
verified?: boolean | null | undefined;
|
|
2809
|
-
} | null | undefined;
|
|
2810
|
-
epic?: {
|
|
2811
|
-
id?: string | null | undefined;
|
|
2812
|
-
username?: string | null | undefined;
|
|
2813
|
-
verified?: boolean | null | undefined;
|
|
2814
|
-
} | null | undefined;
|
|
2815
|
-
} | null | undefined;
|
|
2815
|
+
}> | null | undefined;
|
|
2816
2816
|
}, {}, {
|
|
2817
2817
|
statics: {
|
|
2818
2818
|
verifyPassword(this: import("mongoose").Model<{
|
|
@@ -2821,7 +2821,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2821
2821
|
token: string;
|
|
2822
2822
|
username: string;
|
|
2823
2823
|
apiToken: string;
|
|
2824
|
-
|
|
2824
|
+
flags?: number | null | undefined;
|
|
2825
|
+
connections?: {
|
|
2826
|
+
discord?: {
|
|
2827
|
+
id?: string | null | undefined;
|
|
2828
|
+
username?: string | null | undefined;
|
|
2829
|
+
verified?: boolean | null | undefined;
|
|
2830
|
+
} | null | undefined;
|
|
2831
|
+
epic?: {
|
|
2832
|
+
id?: string | null | undefined;
|
|
2833
|
+
username?: string | null | undefined;
|
|
2834
|
+
verified?: boolean | null | undefined;
|
|
2835
|
+
} | null | undefined;
|
|
2836
|
+
} | null | undefined;
|
|
2837
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2825
2838
|
id: import("mongoose").Types.ObjectId;
|
|
2826
2839
|
scopes: number;
|
|
2827
2840
|
token: string;
|
|
@@ -2836,7 +2849,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2836
2849
|
scopes: number;
|
|
2837
2850
|
token: string;
|
|
2838
2851
|
_id?: unknown;
|
|
2839
|
-
}
|
|
2852
|
+
}> | null | undefined;
|
|
2853
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
2854
|
+
password: string;
|
|
2855
|
+
email: string;
|
|
2856
|
+
token: string;
|
|
2857
|
+
username: string;
|
|
2858
|
+
apiToken: string;
|
|
2840
2859
|
flags?: number | null | undefined;
|
|
2841
2860
|
connections?: {
|
|
2842
2861
|
discord?: {
|
|
@@ -2850,13 +2869,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2850
2869
|
verified?: boolean | null | undefined;
|
|
2851
2870
|
} | null | undefined;
|
|
2852
2871
|
} | null | undefined;
|
|
2853
|
-
|
|
2854
|
-
password: string;
|
|
2855
|
-
email: string;
|
|
2856
|
-
token: string;
|
|
2857
|
-
username: string;
|
|
2858
|
-
apiToken: string;
|
|
2859
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
2872
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2860
2873
|
id: import("mongoose").Types.ObjectId;
|
|
2861
2874
|
scopes: number;
|
|
2862
2875
|
token: string;
|
|
@@ -2871,7 +2884,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2871
2884
|
scopes: number;
|
|
2872
2885
|
token: string;
|
|
2873
2886
|
_id?: unknown;
|
|
2874
|
-
}
|
|
2887
|
+
}> | null | undefined;
|
|
2888
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
2889
|
+
password: string;
|
|
2890
|
+
email: string;
|
|
2891
|
+
token: string;
|
|
2892
|
+
username: string;
|
|
2893
|
+
apiToken: string;
|
|
2875
2894
|
flags?: number | null | undefined;
|
|
2876
2895
|
connections?: {
|
|
2877
2896
|
discord?: {
|
|
@@ -2885,13 +2904,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2885
2904
|
verified?: boolean | null | undefined;
|
|
2886
2905
|
} | null | undefined;
|
|
2887
2906
|
} | null | undefined;
|
|
2888
|
-
|
|
2889
|
-
password: string;
|
|
2890
|
-
email: string;
|
|
2891
|
-
token: string;
|
|
2892
|
-
username: string;
|
|
2893
|
-
apiToken: string;
|
|
2894
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
2907
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2895
2908
|
id: import("mongoose").Types.ObjectId;
|
|
2896
2909
|
scopes: number;
|
|
2897
2910
|
token: string;
|
|
@@ -2906,7 +2919,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2906
2919
|
scopes: number;
|
|
2907
2920
|
token: string;
|
|
2908
2921
|
_id?: unknown;
|
|
2909
|
-
}
|
|
2922
|
+
}> | null | undefined;
|
|
2923
|
+
}> & {
|
|
2924
|
+
_id: import("mongoose").Types.ObjectId;
|
|
2925
|
+
} & {
|
|
2926
|
+
__v: number;
|
|
2927
|
+
}, any>, password: string, hash: string): Promise<boolean>;
|
|
2928
|
+
findByToken(this: import("mongoose").Model<{
|
|
2929
|
+
password: string;
|
|
2930
|
+
email: string;
|
|
2931
|
+
token: string;
|
|
2932
|
+
username: string;
|
|
2933
|
+
apiToken: string;
|
|
2910
2934
|
flags?: number | null | undefined;
|
|
2911
2935
|
connections?: {
|
|
2912
2936
|
discord?: {
|
|
@@ -2920,18 +2944,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2920
2944
|
verified?: boolean | null | undefined;
|
|
2921
2945
|
} | null | undefined;
|
|
2922
2946
|
} | null | undefined;
|
|
2923
|
-
|
|
2924
|
-
_id: import("mongoose").Types.ObjectId;
|
|
2925
|
-
} & {
|
|
2926
|
-
__v: number;
|
|
2927
|
-
}, any>, password: string, hash: string): Promise<boolean>;
|
|
2928
|
-
findByToken(this: import("mongoose").Model<{
|
|
2929
|
-
password: string;
|
|
2930
|
-
email: string;
|
|
2931
|
-
token: string;
|
|
2932
|
-
username: string;
|
|
2933
|
-
apiToken: string;
|
|
2934
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
2947
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2935
2948
|
id: import("mongoose").Types.ObjectId;
|
|
2936
2949
|
scopes: number;
|
|
2937
2950
|
token: string;
|
|
@@ -2946,7 +2959,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2946
2959
|
scopes: number;
|
|
2947
2960
|
token: string;
|
|
2948
2961
|
_id?: unknown;
|
|
2949
|
-
}
|
|
2962
|
+
}> | null | undefined;
|
|
2963
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
2964
|
+
password: string;
|
|
2965
|
+
email: string;
|
|
2966
|
+
token: string;
|
|
2967
|
+
username: string;
|
|
2968
|
+
apiToken: string;
|
|
2950
2969
|
flags?: number | null | undefined;
|
|
2951
2970
|
connections?: {
|
|
2952
2971
|
discord?: {
|
|
@@ -2960,13 +2979,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2960
2979
|
verified?: boolean | null | undefined;
|
|
2961
2980
|
} | null | undefined;
|
|
2962
2981
|
} | null | undefined;
|
|
2963
|
-
|
|
2964
|
-
password: string;
|
|
2965
|
-
email: string;
|
|
2966
|
-
token: string;
|
|
2967
|
-
username: string;
|
|
2968
|
-
apiToken: string;
|
|
2969
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
2982
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
2970
2983
|
id: import("mongoose").Types.ObjectId;
|
|
2971
2984
|
scopes: number;
|
|
2972
2985
|
token: string;
|
|
@@ -2981,7 +2994,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2981
2994
|
scopes: number;
|
|
2982
2995
|
token: string;
|
|
2983
2996
|
_id?: unknown;
|
|
2984
|
-
}
|
|
2997
|
+
}> | null | undefined;
|
|
2998
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
2999
|
+
password: string;
|
|
3000
|
+
email: string;
|
|
3001
|
+
token: string;
|
|
3002
|
+
username: string;
|
|
3003
|
+
apiToken: string;
|
|
2985
3004
|
flags?: number | null | undefined;
|
|
2986
3005
|
connections?: {
|
|
2987
3006
|
discord?: {
|
|
@@ -2995,13 +3014,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
2995
3014
|
verified?: boolean | null | undefined;
|
|
2996
3015
|
} | null | undefined;
|
|
2997
3016
|
} | null | undefined;
|
|
2998
|
-
|
|
2999
|
-
password: string;
|
|
3000
|
-
email: string;
|
|
3001
|
-
token: string;
|
|
3002
|
-
username: string;
|
|
3003
|
-
apiToken: string;
|
|
3004
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3017
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3005
3018
|
id: import("mongoose").Types.ObjectId;
|
|
3006
3019
|
scopes: number;
|
|
3007
3020
|
token: string;
|
|
@@ -3016,7 +3029,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3016
3029
|
scopes: number;
|
|
3017
3030
|
token: string;
|
|
3018
3031
|
_id?: unknown;
|
|
3019
|
-
}
|
|
3032
|
+
}> | null | undefined;
|
|
3033
|
+
}> & {
|
|
3034
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3035
|
+
} & {
|
|
3036
|
+
__v: number;
|
|
3037
|
+
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3038
|
+
password: string;
|
|
3039
|
+
email: string;
|
|
3040
|
+
token: string;
|
|
3041
|
+
username: string;
|
|
3042
|
+
apiToken: string;
|
|
3020
3043
|
flags?: number | null | undefined;
|
|
3021
3044
|
connections?: {
|
|
3022
3045
|
discord?: {
|
|
@@ -3030,17 +3053,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3030
3053
|
verified?: boolean | null | undefined;
|
|
3031
3054
|
} | null | undefined;
|
|
3032
3055
|
} | null | undefined;
|
|
3033
|
-
|
|
3034
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3035
|
-
} & {
|
|
3036
|
-
__v: number;
|
|
3037
|
-
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3038
|
-
password: string;
|
|
3039
|
-
email: string;
|
|
3040
|
-
token: string;
|
|
3041
|
-
username: string;
|
|
3042
|
-
apiToken: string;
|
|
3043
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3056
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3044
3057
|
id: import("mongoose").Types.ObjectId;
|
|
3045
3058
|
scopes: number;
|
|
3046
3059
|
token: string;
|
|
@@ -3055,7 +3068,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3055
3068
|
scopes: number;
|
|
3056
3069
|
token: string;
|
|
3057
3070
|
_id?: unknown;
|
|
3058
|
-
}
|
|
3071
|
+
}> | null | undefined;
|
|
3072
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3073
|
+
password: string;
|
|
3074
|
+
email: string;
|
|
3075
|
+
token: string;
|
|
3076
|
+
username: string;
|
|
3077
|
+
apiToken: string;
|
|
3059
3078
|
flags?: number | null | undefined;
|
|
3060
3079
|
connections?: {
|
|
3061
3080
|
discord?: {
|
|
@@ -3069,13 +3088,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3069
3088
|
verified?: boolean | null | undefined;
|
|
3070
3089
|
} | null | undefined;
|
|
3071
3090
|
} | null | undefined;
|
|
3072
|
-
|
|
3073
|
-
password: string;
|
|
3074
|
-
email: string;
|
|
3075
|
-
token: string;
|
|
3076
|
-
username: string;
|
|
3077
|
-
apiToken: string;
|
|
3078
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3091
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3079
3092
|
id: import("mongoose").Types.ObjectId;
|
|
3080
3093
|
scopes: number;
|
|
3081
3094
|
token: string;
|
|
@@ -3090,7 +3103,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3090
3103
|
scopes: number;
|
|
3091
3104
|
token: string;
|
|
3092
3105
|
_id?: unknown;
|
|
3093
|
-
}
|
|
3106
|
+
}> | null | undefined;
|
|
3107
|
+
}> & {
|
|
3108
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3109
|
+
} & {
|
|
3110
|
+
__v: number;
|
|
3111
|
+
}) | null>;
|
|
3112
|
+
findByAPIToken(this: import("mongoose").Model<{
|
|
3113
|
+
password: string;
|
|
3114
|
+
email: string;
|
|
3115
|
+
token: string;
|
|
3116
|
+
username: string;
|
|
3117
|
+
apiToken: string;
|
|
3094
3118
|
flags?: number | null | undefined;
|
|
3095
3119
|
connections?: {
|
|
3096
3120
|
discord?: {
|
|
@@ -3104,18 +3128,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3104
3128
|
verified?: boolean | null | undefined;
|
|
3105
3129
|
} | null | undefined;
|
|
3106
3130
|
} | null | undefined;
|
|
3107
|
-
|
|
3108
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3109
|
-
} & {
|
|
3110
|
-
__v: number;
|
|
3111
|
-
}) | null>;
|
|
3112
|
-
findByAPIToken(this: import("mongoose").Model<{
|
|
3113
|
-
password: string;
|
|
3114
|
-
email: string;
|
|
3115
|
-
token: string;
|
|
3116
|
-
username: string;
|
|
3117
|
-
apiToken: string;
|
|
3118
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3131
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3119
3132
|
id: import("mongoose").Types.ObjectId;
|
|
3120
3133
|
scopes: number;
|
|
3121
3134
|
token: string;
|
|
@@ -3130,7 +3143,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3130
3143
|
scopes: number;
|
|
3131
3144
|
token: string;
|
|
3132
3145
|
_id?: unknown;
|
|
3133
|
-
}
|
|
3146
|
+
}> | null | undefined;
|
|
3147
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3148
|
+
password: string;
|
|
3149
|
+
email: string;
|
|
3150
|
+
token: string;
|
|
3151
|
+
username: string;
|
|
3152
|
+
apiToken: string;
|
|
3134
3153
|
flags?: number | null | undefined;
|
|
3135
3154
|
connections?: {
|
|
3136
3155
|
discord?: {
|
|
@@ -3144,13 +3163,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3144
3163
|
verified?: boolean | null | undefined;
|
|
3145
3164
|
} | null | undefined;
|
|
3146
3165
|
} | null | undefined;
|
|
3147
|
-
|
|
3148
|
-
password: string;
|
|
3149
|
-
email: string;
|
|
3150
|
-
token: string;
|
|
3151
|
-
username: string;
|
|
3152
|
-
apiToken: string;
|
|
3153
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3166
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3154
3167
|
id: import("mongoose").Types.ObjectId;
|
|
3155
3168
|
scopes: number;
|
|
3156
3169
|
token: string;
|
|
@@ -3165,7 +3178,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3165
3178
|
scopes: number;
|
|
3166
3179
|
token: string;
|
|
3167
3180
|
_id?: unknown;
|
|
3168
|
-
}
|
|
3181
|
+
}> | null | undefined;
|
|
3182
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3183
|
+
password: string;
|
|
3184
|
+
email: string;
|
|
3185
|
+
token: string;
|
|
3186
|
+
username: string;
|
|
3187
|
+
apiToken: string;
|
|
3169
3188
|
flags?: number | null | undefined;
|
|
3170
3189
|
connections?: {
|
|
3171
3190
|
discord?: {
|
|
@@ -3179,13 +3198,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3179
3198
|
verified?: boolean | null | undefined;
|
|
3180
3199
|
} | null | undefined;
|
|
3181
3200
|
} | null | undefined;
|
|
3182
|
-
|
|
3183
|
-
password: string;
|
|
3184
|
-
email: string;
|
|
3185
|
-
token: string;
|
|
3186
|
-
username: string;
|
|
3187
|
-
apiToken: string;
|
|
3188
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3201
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3189
3202
|
id: import("mongoose").Types.ObjectId;
|
|
3190
3203
|
scopes: number;
|
|
3191
3204
|
token: string;
|
|
@@ -3200,7 +3213,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3200
3213
|
scopes: number;
|
|
3201
3214
|
token: string;
|
|
3202
3215
|
_id?: unknown;
|
|
3203
|
-
}
|
|
3216
|
+
}> | null | undefined;
|
|
3217
|
+
}> & {
|
|
3218
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3219
|
+
} & {
|
|
3220
|
+
__v: number;
|
|
3221
|
+
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3222
|
+
password: string;
|
|
3223
|
+
email: string;
|
|
3224
|
+
token: string;
|
|
3225
|
+
username: string;
|
|
3226
|
+
apiToken: string;
|
|
3204
3227
|
flags?: number | null | undefined;
|
|
3205
3228
|
connections?: {
|
|
3206
3229
|
discord?: {
|
|
@@ -3214,17 +3237,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3214
3237
|
verified?: boolean | null | undefined;
|
|
3215
3238
|
} | null | undefined;
|
|
3216
3239
|
} | null | undefined;
|
|
3217
|
-
|
|
3218
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3219
|
-
} & {
|
|
3220
|
-
__v: number;
|
|
3221
|
-
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3222
|
-
password: string;
|
|
3223
|
-
email: string;
|
|
3224
|
-
token: string;
|
|
3225
|
-
username: string;
|
|
3226
|
-
apiToken: string;
|
|
3227
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3240
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3228
3241
|
id: import("mongoose").Types.ObjectId;
|
|
3229
3242
|
scopes: number;
|
|
3230
3243
|
token: string;
|
|
@@ -3239,7 +3252,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3239
3252
|
scopes: number;
|
|
3240
3253
|
token: string;
|
|
3241
3254
|
_id?: unknown;
|
|
3242
|
-
}
|
|
3255
|
+
}> | null | undefined;
|
|
3256
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3257
|
+
password: string;
|
|
3258
|
+
email: string;
|
|
3259
|
+
token: string;
|
|
3260
|
+
username: string;
|
|
3261
|
+
apiToken: string;
|
|
3243
3262
|
flags?: number | null | undefined;
|
|
3244
3263
|
connections?: {
|
|
3245
3264
|
discord?: {
|
|
@@ -3253,13 +3272,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3253
3272
|
verified?: boolean | null | undefined;
|
|
3254
3273
|
} | null | undefined;
|
|
3255
3274
|
} | null | undefined;
|
|
3256
|
-
|
|
3257
|
-
password: string;
|
|
3258
|
-
email: string;
|
|
3259
|
-
token: string;
|
|
3260
|
-
username: string;
|
|
3261
|
-
apiToken: string;
|
|
3262
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3275
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3263
3276
|
id: import("mongoose").Types.ObjectId;
|
|
3264
3277
|
scopes: number;
|
|
3265
3278
|
token: string;
|
|
@@ -3274,7 +3287,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3274
3287
|
scopes: number;
|
|
3275
3288
|
token: string;
|
|
3276
3289
|
_id?: unknown;
|
|
3277
|
-
}
|
|
3290
|
+
}> | null | undefined;
|
|
3291
|
+
}> & {
|
|
3292
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3293
|
+
} & {
|
|
3294
|
+
__v: number;
|
|
3295
|
+
}) | null>;
|
|
3296
|
+
findByAccessToken(this: import("mongoose").Model<{
|
|
3297
|
+
password: string;
|
|
3298
|
+
email: string;
|
|
3299
|
+
token: string;
|
|
3300
|
+
username: string;
|
|
3301
|
+
apiToken: string;
|
|
3278
3302
|
flags?: number | null | undefined;
|
|
3279
3303
|
connections?: {
|
|
3280
3304
|
discord?: {
|
|
@@ -3288,19 +3312,205 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3288
3312
|
verified?: boolean | null | undefined;
|
|
3289
3313
|
} | null | undefined;
|
|
3290
3314
|
} | null | undefined;
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3315
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3316
|
+
id: import("mongoose").Types.ObjectId;
|
|
3317
|
+
scopes: number;
|
|
3318
|
+
token: string;
|
|
3319
|
+
_id?: unknown;
|
|
3320
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3321
|
+
id: import("mongoose").Types.ObjectId;
|
|
3322
|
+
scopes: number;
|
|
3323
|
+
token: string;
|
|
3324
|
+
_id?: unknown;
|
|
3325
|
+
}> & {
|
|
3326
|
+
id: import("mongoose").Types.ObjectId;
|
|
3327
|
+
scopes: number;
|
|
3328
|
+
token: string;
|
|
3329
|
+
_id?: unknown;
|
|
3330
|
+
}> | null | undefined;
|
|
3331
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3332
|
+
password: string;
|
|
3333
|
+
email: string;
|
|
3334
|
+
token: string;
|
|
3335
|
+
username: string;
|
|
3336
|
+
apiToken: string;
|
|
3337
|
+
flags?: number | null | undefined;
|
|
3338
|
+
connections?: {
|
|
3339
|
+
discord?: {
|
|
3340
|
+
id?: string | null | undefined;
|
|
3341
|
+
username?: string | null | undefined;
|
|
3342
|
+
verified?: boolean | null | undefined;
|
|
3343
|
+
} | null | undefined;
|
|
3344
|
+
epic?: {
|
|
3345
|
+
id?: string | null | undefined;
|
|
3346
|
+
username?: string | null | undefined;
|
|
3347
|
+
verified?: boolean | null | undefined;
|
|
3348
|
+
} | null | undefined;
|
|
3349
|
+
} | null | undefined;
|
|
3350
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3351
|
+
id: import("mongoose").Types.ObjectId;
|
|
3352
|
+
scopes: number;
|
|
3353
|
+
token: string;
|
|
3354
|
+
_id?: unknown;
|
|
3355
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3356
|
+
id: import("mongoose").Types.ObjectId;
|
|
3357
|
+
scopes: number;
|
|
3358
|
+
token: string;
|
|
3359
|
+
_id?: unknown;
|
|
3360
|
+
}> & {
|
|
3361
|
+
id: import("mongoose").Types.ObjectId;
|
|
3362
|
+
scopes: number;
|
|
3363
|
+
token: string;
|
|
3364
|
+
_id?: unknown;
|
|
3365
|
+
}> | null | undefined;
|
|
3366
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3367
|
+
password: string;
|
|
3368
|
+
email: string;
|
|
3369
|
+
token: string;
|
|
3370
|
+
username: string;
|
|
3371
|
+
apiToken: string;
|
|
3372
|
+
flags?: number | null | undefined;
|
|
3373
|
+
connections?: {
|
|
3374
|
+
discord?: {
|
|
3375
|
+
id?: string | null | undefined;
|
|
3376
|
+
username?: string | null | undefined;
|
|
3377
|
+
verified?: boolean | null | undefined;
|
|
3378
|
+
} | null | undefined;
|
|
3379
|
+
epic?: {
|
|
3380
|
+
id?: string | null | undefined;
|
|
3381
|
+
username?: string | null | undefined;
|
|
3382
|
+
verified?: boolean | null | undefined;
|
|
3383
|
+
} | null | undefined;
|
|
3384
|
+
} | null | undefined;
|
|
3385
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3386
|
+
id: import("mongoose").Types.ObjectId;
|
|
3387
|
+
scopes: number;
|
|
3388
|
+
token: string;
|
|
3389
|
+
_id?: unknown;
|
|
3390
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3391
|
+
id: import("mongoose").Types.ObjectId;
|
|
3392
|
+
scopes: number;
|
|
3393
|
+
token: string;
|
|
3394
|
+
_id?: unknown;
|
|
3395
|
+
}> & {
|
|
3396
|
+
id: import("mongoose").Types.ObjectId;
|
|
3397
|
+
scopes: number;
|
|
3398
|
+
token: string;
|
|
3399
|
+
_id?: unknown;
|
|
3400
|
+
}> | null | undefined;
|
|
3401
|
+
}> & {
|
|
3402
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3403
|
+
} & {
|
|
3404
|
+
__v: number;
|
|
3405
|
+
}, any>, id: string, auth: string): Promise<{
|
|
3406
|
+
user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3407
|
+
password: string;
|
|
3408
|
+
email: string;
|
|
3409
|
+
token: string;
|
|
3410
|
+
username: string;
|
|
3411
|
+
apiToken: string;
|
|
3412
|
+
flags?: number | null | undefined;
|
|
3413
|
+
connections?: {
|
|
3414
|
+
discord?: {
|
|
3415
|
+
id?: string | null | undefined;
|
|
3416
|
+
username?: string | null | undefined;
|
|
3417
|
+
verified?: boolean | null | undefined;
|
|
3418
|
+
} | null | undefined;
|
|
3419
|
+
epic?: {
|
|
3420
|
+
id?: string | null | undefined;
|
|
3421
|
+
username?: string | null | undefined;
|
|
3422
|
+
verified?: boolean | null | undefined;
|
|
3423
|
+
} | null | undefined;
|
|
3424
|
+
} | null | undefined;
|
|
3425
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3426
|
+
id: import("mongoose").Types.ObjectId;
|
|
3427
|
+
scopes: number;
|
|
3428
|
+
token: string;
|
|
3429
|
+
_id?: unknown;
|
|
3430
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3431
|
+
id: import("mongoose").Types.ObjectId;
|
|
3432
|
+
scopes: number;
|
|
3433
|
+
token: string;
|
|
3434
|
+
_id?: unknown;
|
|
3435
|
+
}> & {
|
|
3436
|
+
id: import("mongoose").Types.ObjectId;
|
|
3437
|
+
scopes: number;
|
|
3438
|
+
token: string;
|
|
3439
|
+
_id?: unknown;
|
|
3440
|
+
}> | null | undefined;
|
|
3441
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3442
|
+
password: string;
|
|
3443
|
+
email: string;
|
|
3444
|
+
token: string;
|
|
3445
|
+
username: string;
|
|
3446
|
+
apiToken: string;
|
|
3447
|
+
flags?: number | null | undefined;
|
|
3448
|
+
connections?: {
|
|
3449
|
+
discord?: {
|
|
3450
|
+
id?: string | null | undefined;
|
|
3451
|
+
username?: string | null | undefined;
|
|
3452
|
+
verified?: boolean | null | undefined;
|
|
3453
|
+
} | null | undefined;
|
|
3454
|
+
epic?: {
|
|
3455
|
+
id?: string | null | undefined;
|
|
3456
|
+
username?: string | null | undefined;
|
|
3457
|
+
verified?: boolean | null | undefined;
|
|
3458
|
+
} | null | undefined;
|
|
3459
|
+
} | null | undefined;
|
|
3460
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3461
|
+
id: import("mongoose").Types.ObjectId;
|
|
3462
|
+
scopes: number;
|
|
3463
|
+
token: string;
|
|
3464
|
+
_id?: unknown;
|
|
3465
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3466
|
+
id: import("mongoose").Types.ObjectId;
|
|
3467
|
+
scopes: number;
|
|
3468
|
+
token: string;
|
|
3469
|
+
_id?: unknown;
|
|
3470
|
+
}> & {
|
|
3471
|
+
id: import("mongoose").Types.ObjectId;
|
|
3472
|
+
scopes: number;
|
|
3473
|
+
token: string;
|
|
3474
|
+
_id?: unknown;
|
|
3475
|
+
}> | null | undefined;
|
|
3476
|
+
}> & {
|
|
3477
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3478
|
+
} & {
|
|
3479
|
+
__v: number;
|
|
3480
|
+
}) | null;
|
|
3481
|
+
app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
3482
|
+
id: import("mongoose").Types.ObjectId;
|
|
3483
|
+
scopes: number;
|
|
3484
|
+
token: string;
|
|
3485
|
+
_id?: unknown;
|
|
3486
|
+
}> & {
|
|
3487
|
+
id: import("mongoose").Types.ObjectId;
|
|
3488
|
+
scopes: number;
|
|
3489
|
+
token: string;
|
|
3490
|
+
_id?: unknown;
|
|
3491
|
+
};
|
|
3492
|
+
} | null>;
|
|
3493
|
+
};
|
|
3494
|
+
}> & {
|
|
3495
|
+
password: string;
|
|
3496
|
+
email: string;
|
|
3497
|
+
token: string;
|
|
3498
|
+
username: string;
|
|
3499
|
+
apiToken: string;
|
|
3500
|
+
flags?: number | null | undefined;
|
|
3501
|
+
connections?: {
|
|
3502
|
+
discord?: {
|
|
3503
|
+
id?: string | null | undefined;
|
|
3504
|
+
username?: string | null | undefined;
|
|
3505
|
+
verified?: boolean | null | undefined;
|
|
3506
|
+
} | null | undefined;
|
|
3507
|
+
epic?: {
|
|
3508
|
+
id?: string | null | undefined;
|
|
3509
|
+
username?: string | null | undefined;
|
|
3510
|
+
verified?: boolean | null | undefined;
|
|
3511
|
+
} | null | undefined;
|
|
3512
|
+
} | null | undefined;
|
|
3513
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3304
3514
|
id: import("mongoose").Types.ObjectId;
|
|
3305
3515
|
scopes: number;
|
|
3306
3516
|
token: string;
|
|
@@ -3315,7 +3525,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3315
3525
|
scopes: number;
|
|
3316
3526
|
token: string;
|
|
3317
3527
|
_id?: unknown;
|
|
3318
|
-
}
|
|
3528
|
+
}> | null | undefined;
|
|
3529
|
+
} & {
|
|
3530
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3531
|
+
} & {
|
|
3532
|
+
__v: number;
|
|
3533
|
+
}, Schema<any, import("mongoose").Model<{
|
|
3534
|
+
password: string;
|
|
3535
|
+
email: string;
|
|
3536
|
+
token: string;
|
|
3537
|
+
username: string;
|
|
3538
|
+
apiToken: string;
|
|
3319
3539
|
flags?: number | null | undefined;
|
|
3320
3540
|
connections?: {
|
|
3321
3541
|
discord?: {
|
|
@@ -3329,17 +3549,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3329
3549
|
verified?: boolean | null | undefined;
|
|
3330
3550
|
} | null | undefined;
|
|
3331
3551
|
} | null | undefined;
|
|
3332
|
-
|
|
3333
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3334
|
-
} & {
|
|
3335
|
-
__v: number;
|
|
3336
|
-
}, Schema<any, import("mongoose").Model<{
|
|
3337
|
-
password: string;
|
|
3338
|
-
email: string;
|
|
3339
|
-
token: string;
|
|
3340
|
-
username: string;
|
|
3341
|
-
apiToken: string;
|
|
3342
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3552
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3343
3553
|
id: import("mongoose").Types.ObjectId;
|
|
3344
3554
|
scopes: number;
|
|
3345
3555
|
token: string;
|
|
@@ -3354,7 +3564,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3354
3564
|
scopes: number;
|
|
3355
3565
|
token: string;
|
|
3356
3566
|
_id?: unknown;
|
|
3357
|
-
}
|
|
3567
|
+
}> | null | undefined;
|
|
3568
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3569
|
+
password: string;
|
|
3570
|
+
email: string;
|
|
3571
|
+
token: string;
|
|
3572
|
+
username: string;
|
|
3573
|
+
apiToken: string;
|
|
3358
3574
|
flags?: number | null | undefined;
|
|
3359
3575
|
connections?: {
|
|
3360
3576
|
discord?: {
|
|
@@ -3368,13 +3584,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3368
3584
|
verified?: boolean | null | undefined;
|
|
3369
3585
|
} | null | undefined;
|
|
3370
3586
|
} | null | undefined;
|
|
3371
|
-
|
|
3372
|
-
password: string;
|
|
3373
|
-
email: string;
|
|
3374
|
-
token: string;
|
|
3375
|
-
username: string;
|
|
3376
|
-
apiToken: string;
|
|
3377
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3587
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3378
3588
|
id: import("mongoose").Types.ObjectId;
|
|
3379
3589
|
scopes: number;
|
|
3380
3590
|
token: string;
|
|
@@ -3389,7 +3599,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3389
3599
|
scopes: number;
|
|
3390
3600
|
token: string;
|
|
3391
3601
|
_id?: unknown;
|
|
3392
|
-
}
|
|
3602
|
+
}> | null | undefined;
|
|
3603
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3604
|
+
password: string;
|
|
3605
|
+
email: string;
|
|
3606
|
+
token: string;
|
|
3607
|
+
username: string;
|
|
3608
|
+
apiToken: string;
|
|
3393
3609
|
flags?: number | null | undefined;
|
|
3394
3610
|
connections?: {
|
|
3395
3611
|
discord?: {
|
|
@@ -3403,13 +3619,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3403
3619
|
verified?: boolean | null | undefined;
|
|
3404
3620
|
} | null | undefined;
|
|
3405
3621
|
} | null | undefined;
|
|
3406
|
-
|
|
3407
|
-
password: string;
|
|
3408
|
-
email: string;
|
|
3409
|
-
token: string;
|
|
3410
|
-
username: string;
|
|
3411
|
-
apiToken: string;
|
|
3412
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3622
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3413
3623
|
id: import("mongoose").Types.ObjectId;
|
|
3414
3624
|
scopes: number;
|
|
3415
3625
|
token: string;
|
|
@@ -3424,20 +3634,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3424
3634
|
scopes: number;
|
|
3425
3635
|
token: string;
|
|
3426
3636
|
_id?: unknown;
|
|
3427
|
-
}
|
|
3428
|
-
flags?: number | null | undefined;
|
|
3429
|
-
connections?: {
|
|
3430
|
-
discord?: {
|
|
3431
|
-
id?: string | null | undefined;
|
|
3432
|
-
username?: string | null | undefined;
|
|
3433
|
-
verified?: boolean | null | undefined;
|
|
3434
|
-
} | null | undefined;
|
|
3435
|
-
epic?: {
|
|
3436
|
-
id?: string | null | undefined;
|
|
3437
|
-
username?: string | null | undefined;
|
|
3438
|
-
verified?: boolean | null | undefined;
|
|
3439
|
-
} | null | undefined;
|
|
3440
|
-
} | null | undefined;
|
|
3637
|
+
}> | null | undefined;
|
|
3441
3638
|
}> & {
|
|
3442
3639
|
_id: import("mongoose").Types.ObjectId;
|
|
3443
3640
|
} & {
|
|
@@ -3449,7 +3646,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3449
3646
|
token: string;
|
|
3450
3647
|
username: string;
|
|
3451
3648
|
apiToken: string;
|
|
3452
|
-
|
|
3649
|
+
flags?: number | null | undefined;
|
|
3650
|
+
connections?: {
|
|
3651
|
+
discord?: {
|
|
3652
|
+
id?: string | null | undefined;
|
|
3653
|
+
username?: string | null | undefined;
|
|
3654
|
+
verified?: boolean | null | undefined;
|
|
3655
|
+
} | null | undefined;
|
|
3656
|
+
epic?: {
|
|
3657
|
+
id?: string | null | undefined;
|
|
3658
|
+
username?: string | null | undefined;
|
|
3659
|
+
verified?: boolean | null | undefined;
|
|
3660
|
+
} | null | undefined;
|
|
3661
|
+
} | null | undefined;
|
|
3662
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3453
3663
|
id: import("mongoose").Types.ObjectId;
|
|
3454
3664
|
scopes: number;
|
|
3455
3665
|
token: string;
|
|
@@ -3464,7 +3674,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3464
3674
|
scopes: number;
|
|
3465
3675
|
token: string;
|
|
3466
3676
|
_id?: unknown;
|
|
3467
|
-
}
|
|
3677
|
+
}> | null | undefined;
|
|
3678
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3679
|
+
password: string;
|
|
3680
|
+
email: string;
|
|
3681
|
+
token: string;
|
|
3682
|
+
username: string;
|
|
3683
|
+
apiToken: string;
|
|
3468
3684
|
flags?: number | null | undefined;
|
|
3469
3685
|
connections?: {
|
|
3470
3686
|
discord?: {
|
|
@@ -3478,13 +3694,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3478
3694
|
verified?: boolean | null | undefined;
|
|
3479
3695
|
} | null | undefined;
|
|
3480
3696
|
} | null | undefined;
|
|
3481
|
-
|
|
3482
|
-
password: string;
|
|
3483
|
-
email: string;
|
|
3484
|
-
token: string;
|
|
3485
|
-
username: string;
|
|
3486
|
-
apiToken: string;
|
|
3487
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3697
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3488
3698
|
id: import("mongoose").Types.ObjectId;
|
|
3489
3699
|
scopes: number;
|
|
3490
3700
|
token: string;
|
|
@@ -3499,7 +3709,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3499
3709
|
scopes: number;
|
|
3500
3710
|
token: string;
|
|
3501
3711
|
_id?: unknown;
|
|
3502
|
-
}
|
|
3712
|
+
}> | null | undefined;
|
|
3713
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3714
|
+
password: string;
|
|
3715
|
+
email: string;
|
|
3716
|
+
token: string;
|
|
3717
|
+
username: string;
|
|
3718
|
+
apiToken: string;
|
|
3503
3719
|
flags?: number | null | undefined;
|
|
3504
3720
|
connections?: {
|
|
3505
3721
|
discord?: {
|
|
@@ -3513,13 +3729,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3513
3729
|
verified?: boolean | null | undefined;
|
|
3514
3730
|
} | null | undefined;
|
|
3515
3731
|
} | null | undefined;
|
|
3516
|
-
|
|
3517
|
-
password: string;
|
|
3518
|
-
email: string;
|
|
3519
|
-
token: string;
|
|
3520
|
-
username: string;
|
|
3521
|
-
apiToken: string;
|
|
3522
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3732
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3523
3733
|
id: import("mongoose").Types.ObjectId;
|
|
3524
3734
|
scopes: number;
|
|
3525
3735
|
token: string;
|
|
@@ -3534,7 +3744,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3534
3744
|
scopes: number;
|
|
3535
3745
|
token: string;
|
|
3536
3746
|
_id?: unknown;
|
|
3537
|
-
}
|
|
3747
|
+
}> | null | undefined;
|
|
3748
|
+
}> & {
|
|
3749
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3750
|
+
} & {
|
|
3751
|
+
__v: number;
|
|
3752
|
+
}, any>, password: string, hash: string) => Promise<boolean>;
|
|
3753
|
+
findByToken: (this: import("mongoose").Model<{
|
|
3754
|
+
password: string;
|
|
3755
|
+
email: string;
|
|
3756
|
+
token: string;
|
|
3757
|
+
username: string;
|
|
3758
|
+
apiToken: string;
|
|
3538
3759
|
flags?: number | null | undefined;
|
|
3539
3760
|
connections?: {
|
|
3540
3761
|
discord?: {
|
|
@@ -3548,18 +3769,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3548
3769
|
verified?: boolean | null | undefined;
|
|
3549
3770
|
} | null | undefined;
|
|
3550
3771
|
} | null | undefined;
|
|
3551
|
-
|
|
3552
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3553
|
-
} & {
|
|
3554
|
-
__v: number;
|
|
3555
|
-
}, any>, password: string, hash: string) => Promise<boolean>;
|
|
3556
|
-
findByToken: (this: import("mongoose").Model<{
|
|
3557
|
-
password: string;
|
|
3558
|
-
email: string;
|
|
3559
|
-
token: string;
|
|
3560
|
-
username: string;
|
|
3561
|
-
apiToken: string;
|
|
3562
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3772
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3563
3773
|
id: import("mongoose").Types.ObjectId;
|
|
3564
3774
|
scopes: number;
|
|
3565
3775
|
token: string;
|
|
@@ -3574,7 +3784,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3574
3784
|
scopes: number;
|
|
3575
3785
|
token: string;
|
|
3576
3786
|
_id?: unknown;
|
|
3577
|
-
}
|
|
3787
|
+
}> | null | undefined;
|
|
3788
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3789
|
+
password: string;
|
|
3790
|
+
email: string;
|
|
3791
|
+
token: string;
|
|
3792
|
+
username: string;
|
|
3793
|
+
apiToken: string;
|
|
3578
3794
|
flags?: number | null | undefined;
|
|
3579
3795
|
connections?: {
|
|
3580
3796
|
discord?: {
|
|
@@ -3588,13 +3804,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3588
3804
|
verified?: boolean | null | undefined;
|
|
3589
3805
|
} | null | undefined;
|
|
3590
3806
|
} | null | undefined;
|
|
3591
|
-
|
|
3592
|
-
password: string;
|
|
3593
|
-
email: string;
|
|
3594
|
-
token: string;
|
|
3595
|
-
username: string;
|
|
3596
|
-
apiToken: string;
|
|
3597
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3807
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3598
3808
|
id: import("mongoose").Types.ObjectId;
|
|
3599
3809
|
scopes: number;
|
|
3600
3810
|
token: string;
|
|
@@ -3609,7 +3819,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3609
3819
|
scopes: number;
|
|
3610
3820
|
token: string;
|
|
3611
3821
|
_id?: unknown;
|
|
3612
|
-
}
|
|
3822
|
+
}> | null | undefined;
|
|
3823
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3824
|
+
password: string;
|
|
3825
|
+
email: string;
|
|
3826
|
+
token: string;
|
|
3827
|
+
username: string;
|
|
3828
|
+
apiToken: string;
|
|
3613
3829
|
flags?: number | null | undefined;
|
|
3614
3830
|
connections?: {
|
|
3615
3831
|
discord?: {
|
|
@@ -3623,13 +3839,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3623
3839
|
verified?: boolean | null | undefined;
|
|
3624
3840
|
} | null | undefined;
|
|
3625
3841
|
} | null | undefined;
|
|
3626
|
-
|
|
3627
|
-
password: string;
|
|
3628
|
-
email: string;
|
|
3629
|
-
token: string;
|
|
3630
|
-
username: string;
|
|
3631
|
-
apiToken: string;
|
|
3632
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3842
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3633
3843
|
id: import("mongoose").Types.ObjectId;
|
|
3634
3844
|
scopes: number;
|
|
3635
3845
|
token: string;
|
|
@@ -3644,7 +3854,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3644
3854
|
scopes: number;
|
|
3645
3855
|
token: string;
|
|
3646
3856
|
_id?: unknown;
|
|
3647
|
-
}
|
|
3857
|
+
}> | null | undefined;
|
|
3858
|
+
}> & {
|
|
3859
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3860
|
+
} & {
|
|
3861
|
+
__v: number;
|
|
3862
|
+
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3863
|
+
password: string;
|
|
3864
|
+
email: string;
|
|
3865
|
+
token: string;
|
|
3866
|
+
username: string;
|
|
3867
|
+
apiToken: string;
|
|
3648
3868
|
flags?: number | null | undefined;
|
|
3649
3869
|
connections?: {
|
|
3650
3870
|
discord?: {
|
|
@@ -3658,17 +3878,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3658
3878
|
verified?: boolean | null | undefined;
|
|
3659
3879
|
} | null | undefined;
|
|
3660
3880
|
} | null | undefined;
|
|
3661
|
-
|
|
3662
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3663
|
-
} & {
|
|
3664
|
-
__v: number;
|
|
3665
|
-
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3666
|
-
password: string;
|
|
3667
|
-
email: string;
|
|
3668
|
-
token: string;
|
|
3669
|
-
username: string;
|
|
3670
|
-
apiToken: string;
|
|
3671
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3881
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3672
3882
|
id: import("mongoose").Types.ObjectId;
|
|
3673
3883
|
scopes: number;
|
|
3674
3884
|
token: string;
|
|
@@ -3683,7 +3893,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3683
3893
|
scopes: number;
|
|
3684
3894
|
token: string;
|
|
3685
3895
|
_id?: unknown;
|
|
3686
|
-
}
|
|
3896
|
+
}> | null | undefined;
|
|
3897
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3898
|
+
password: string;
|
|
3899
|
+
email: string;
|
|
3900
|
+
token: string;
|
|
3901
|
+
username: string;
|
|
3902
|
+
apiToken: string;
|
|
3687
3903
|
flags?: number | null | undefined;
|
|
3688
3904
|
connections?: {
|
|
3689
3905
|
discord?: {
|
|
@@ -3697,13 +3913,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3697
3913
|
verified?: boolean | null | undefined;
|
|
3698
3914
|
} | null | undefined;
|
|
3699
3915
|
} | null | undefined;
|
|
3700
|
-
|
|
3701
|
-
password: string;
|
|
3702
|
-
email: string;
|
|
3703
|
-
token: string;
|
|
3704
|
-
username: string;
|
|
3705
|
-
apiToken: string;
|
|
3706
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3916
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3707
3917
|
id: import("mongoose").Types.ObjectId;
|
|
3708
3918
|
scopes: number;
|
|
3709
3919
|
token: string;
|
|
@@ -3718,7 +3928,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3718
3928
|
scopes: number;
|
|
3719
3929
|
token: string;
|
|
3720
3930
|
_id?: unknown;
|
|
3721
|
-
}
|
|
3931
|
+
}> | null | undefined;
|
|
3932
|
+
}> & {
|
|
3933
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3934
|
+
} & {
|
|
3935
|
+
__v: number;
|
|
3936
|
+
}) | null>;
|
|
3937
|
+
findByAPIToken: (this: import("mongoose").Model<{
|
|
3938
|
+
password: string;
|
|
3939
|
+
email: string;
|
|
3940
|
+
token: string;
|
|
3941
|
+
username: string;
|
|
3942
|
+
apiToken: string;
|
|
3722
3943
|
flags?: number | null | undefined;
|
|
3723
3944
|
connections?: {
|
|
3724
3945
|
discord?: {
|
|
@@ -3732,18 +3953,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3732
3953
|
verified?: boolean | null | undefined;
|
|
3733
3954
|
} | null | undefined;
|
|
3734
3955
|
} | null | undefined;
|
|
3735
|
-
|
|
3736
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3737
|
-
} & {
|
|
3738
|
-
__v: number;
|
|
3739
|
-
}) | null>;
|
|
3740
|
-
findByAPIToken: (this: import("mongoose").Model<{
|
|
3741
|
-
password: string;
|
|
3742
|
-
email: string;
|
|
3743
|
-
token: string;
|
|
3744
|
-
username: string;
|
|
3745
|
-
apiToken: string;
|
|
3746
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3956
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3747
3957
|
id: import("mongoose").Types.ObjectId;
|
|
3748
3958
|
scopes: number;
|
|
3749
3959
|
token: string;
|
|
@@ -3758,7 +3968,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3758
3968
|
scopes: number;
|
|
3759
3969
|
token: string;
|
|
3760
3970
|
_id?: unknown;
|
|
3761
|
-
}
|
|
3971
|
+
}> | null | undefined;
|
|
3972
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3973
|
+
password: string;
|
|
3974
|
+
email: string;
|
|
3975
|
+
token: string;
|
|
3976
|
+
username: string;
|
|
3977
|
+
apiToken: string;
|
|
3762
3978
|
flags?: number | null | undefined;
|
|
3763
3979
|
connections?: {
|
|
3764
3980
|
discord?: {
|
|
@@ -3772,13 +3988,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3772
3988
|
verified?: boolean | null | undefined;
|
|
3773
3989
|
} | null | undefined;
|
|
3774
3990
|
} | null | undefined;
|
|
3775
|
-
|
|
3776
|
-
password: string;
|
|
3777
|
-
email: string;
|
|
3778
|
-
token: string;
|
|
3779
|
-
username: string;
|
|
3780
|
-
apiToken: string;
|
|
3781
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
3991
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3782
3992
|
id: import("mongoose").Types.ObjectId;
|
|
3783
3993
|
scopes: number;
|
|
3784
3994
|
token: string;
|
|
@@ -3793,7 +4003,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3793
4003
|
scopes: number;
|
|
3794
4004
|
token: string;
|
|
3795
4005
|
_id?: unknown;
|
|
3796
|
-
}
|
|
4006
|
+
}> | null | undefined;
|
|
4007
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4008
|
+
password: string;
|
|
4009
|
+
email: string;
|
|
4010
|
+
token: string;
|
|
4011
|
+
username: string;
|
|
4012
|
+
apiToken: string;
|
|
3797
4013
|
flags?: number | null | undefined;
|
|
3798
4014
|
connections?: {
|
|
3799
4015
|
discord?: {
|
|
@@ -3807,13 +4023,46 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3807
4023
|
verified?: boolean | null | undefined;
|
|
3808
4024
|
} | null | undefined;
|
|
3809
4025
|
} | null | undefined;
|
|
3810
|
-
|
|
4026
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4027
|
+
id: import("mongoose").Types.ObjectId;
|
|
4028
|
+
scopes: number;
|
|
4029
|
+
token: string;
|
|
4030
|
+
_id?: unknown;
|
|
4031
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4032
|
+
id: import("mongoose").Types.ObjectId;
|
|
4033
|
+
scopes: number;
|
|
4034
|
+
token: string;
|
|
4035
|
+
_id?: unknown;
|
|
4036
|
+
}> & {
|
|
4037
|
+
id: import("mongoose").Types.ObjectId;
|
|
4038
|
+
scopes: number;
|
|
4039
|
+
token: string;
|
|
4040
|
+
_id?: unknown;
|
|
4041
|
+
}> | null | undefined;
|
|
4042
|
+
}> & {
|
|
4043
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4044
|
+
} & {
|
|
4045
|
+
__v: number;
|
|
4046
|
+
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3811
4047
|
password: string;
|
|
3812
4048
|
email: string;
|
|
3813
4049
|
token: string;
|
|
3814
4050
|
username: string;
|
|
3815
4051
|
apiToken: string;
|
|
3816
|
-
|
|
4052
|
+
flags?: number | null | undefined;
|
|
4053
|
+
connections?: {
|
|
4054
|
+
discord?: {
|
|
4055
|
+
id?: string | null | undefined;
|
|
4056
|
+
username?: string | null | undefined;
|
|
4057
|
+
verified?: boolean | null | undefined;
|
|
4058
|
+
} | null | undefined;
|
|
4059
|
+
epic?: {
|
|
4060
|
+
id?: string | null | undefined;
|
|
4061
|
+
username?: string | null | undefined;
|
|
4062
|
+
verified?: boolean | null | undefined;
|
|
4063
|
+
} | null | undefined;
|
|
4064
|
+
} | null | undefined;
|
|
4065
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3817
4066
|
id: import("mongoose").Types.ObjectId;
|
|
3818
4067
|
scopes: number;
|
|
3819
4068
|
token: string;
|
|
@@ -3828,7 +4077,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3828
4077
|
scopes: number;
|
|
3829
4078
|
token: string;
|
|
3830
4079
|
_id?: unknown;
|
|
3831
|
-
}
|
|
4080
|
+
}> | null | undefined;
|
|
4081
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4082
|
+
password: string;
|
|
4083
|
+
email: string;
|
|
4084
|
+
token: string;
|
|
4085
|
+
username: string;
|
|
4086
|
+
apiToken: string;
|
|
3832
4087
|
flags?: number | null | undefined;
|
|
3833
4088
|
connections?: {
|
|
3834
4089
|
discord?: {
|
|
@@ -3842,17 +4097,47 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3842
4097
|
verified?: boolean | null | undefined;
|
|
3843
4098
|
} | null | undefined;
|
|
3844
4099
|
} | null | undefined;
|
|
4100
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4101
|
+
id: import("mongoose").Types.ObjectId;
|
|
4102
|
+
scopes: number;
|
|
4103
|
+
token: string;
|
|
4104
|
+
_id?: unknown;
|
|
4105
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4106
|
+
id: import("mongoose").Types.ObjectId;
|
|
4107
|
+
scopes: number;
|
|
4108
|
+
token: string;
|
|
4109
|
+
_id?: unknown;
|
|
4110
|
+
}> & {
|
|
4111
|
+
id: import("mongoose").Types.ObjectId;
|
|
4112
|
+
scopes: number;
|
|
4113
|
+
token: string;
|
|
4114
|
+
_id?: unknown;
|
|
4115
|
+
}> | null | undefined;
|
|
3845
4116
|
}> & {
|
|
3846
4117
|
_id: import("mongoose").Types.ObjectId;
|
|
3847
4118
|
} & {
|
|
3848
4119
|
__v: number;
|
|
3849
|
-
}
|
|
4120
|
+
}) | null>;
|
|
4121
|
+
findByAccessToken: (this: import("mongoose").Model<{
|
|
3850
4122
|
password: string;
|
|
3851
4123
|
email: string;
|
|
3852
4124
|
token: string;
|
|
3853
4125
|
username: string;
|
|
3854
4126
|
apiToken: string;
|
|
3855
|
-
|
|
4127
|
+
flags?: number | null | undefined;
|
|
4128
|
+
connections?: {
|
|
4129
|
+
discord?: {
|
|
4130
|
+
id?: string | null | undefined;
|
|
4131
|
+
username?: string | null | undefined;
|
|
4132
|
+
verified?: boolean | null | undefined;
|
|
4133
|
+
} | null | undefined;
|
|
4134
|
+
epic?: {
|
|
4135
|
+
id?: string | null | undefined;
|
|
4136
|
+
username?: string | null | undefined;
|
|
4137
|
+
verified?: boolean | null | undefined;
|
|
4138
|
+
} | null | undefined;
|
|
4139
|
+
} | null | undefined;
|
|
4140
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3856
4141
|
id: import("mongoose").Types.ObjectId;
|
|
3857
4142
|
scopes: number;
|
|
3858
4143
|
token: string;
|
|
@@ -3867,7 +4152,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3867
4152
|
scopes: number;
|
|
3868
4153
|
token: string;
|
|
3869
4154
|
_id?: unknown;
|
|
3870
|
-
}
|
|
4155
|
+
}> | null | undefined;
|
|
4156
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4157
|
+
password: string;
|
|
4158
|
+
email: string;
|
|
4159
|
+
token: string;
|
|
4160
|
+
username: string;
|
|
4161
|
+
apiToken: string;
|
|
3871
4162
|
flags?: number | null | undefined;
|
|
3872
4163
|
connections?: {
|
|
3873
4164
|
discord?: {
|
|
@@ -3881,13 +4172,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3881
4172
|
verified?: boolean | null | undefined;
|
|
3882
4173
|
} | null | undefined;
|
|
3883
4174
|
} | null | undefined;
|
|
3884
|
-
|
|
3885
|
-
password: string;
|
|
3886
|
-
email: string;
|
|
3887
|
-
token: string;
|
|
3888
|
-
username: string;
|
|
3889
|
-
apiToken: string;
|
|
3890
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4175
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3891
4176
|
id: import("mongoose").Types.ObjectId;
|
|
3892
4177
|
scopes: number;
|
|
3893
4178
|
token: string;
|
|
@@ -3902,7 +4187,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3902
4187
|
scopes: number;
|
|
3903
4188
|
token: string;
|
|
3904
4189
|
_id?: unknown;
|
|
3905
|
-
}
|
|
4190
|
+
}> | null | undefined;
|
|
4191
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4192
|
+
password: string;
|
|
4193
|
+
email: string;
|
|
4194
|
+
token: string;
|
|
4195
|
+
username: string;
|
|
4196
|
+
apiToken: string;
|
|
3906
4197
|
flags?: number | null | undefined;
|
|
3907
4198
|
connections?: {
|
|
3908
4199
|
discord?: {
|
|
@@ -3916,20 +4207,47 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3916
4207
|
verified?: boolean | null | undefined;
|
|
3917
4208
|
} | null | undefined;
|
|
3918
4209
|
} | null | undefined;
|
|
4210
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4211
|
+
id: import("mongoose").Types.ObjectId;
|
|
4212
|
+
scopes: number;
|
|
4213
|
+
token: string;
|
|
4214
|
+
_id?: unknown;
|
|
4215
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4216
|
+
id: import("mongoose").Types.ObjectId;
|
|
4217
|
+
scopes: number;
|
|
4218
|
+
token: string;
|
|
4219
|
+
_id?: unknown;
|
|
4220
|
+
}> & {
|
|
4221
|
+
id: import("mongoose").Types.ObjectId;
|
|
4222
|
+
scopes: number;
|
|
4223
|
+
token: string;
|
|
4224
|
+
_id?: unknown;
|
|
4225
|
+
}> | null | undefined;
|
|
3919
4226
|
}> & {
|
|
3920
4227
|
_id: import("mongoose").Types.ObjectId;
|
|
3921
4228
|
} & {
|
|
3922
4229
|
__v: number;
|
|
3923
|
-
})
|
|
3924
|
-
}, {
|
|
3925
|
-
statics: {
|
|
3926
|
-
verifyPassword(this: import("mongoose").Model<{
|
|
4230
|
+
}, any>, id: string, auth: string) => Promise<{
|
|
4231
|
+
user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3927
4232
|
password: string;
|
|
3928
4233
|
email: string;
|
|
3929
4234
|
token: string;
|
|
3930
4235
|
username: string;
|
|
3931
4236
|
apiToken: string;
|
|
3932
|
-
|
|
4237
|
+
flags?: number | null | undefined;
|
|
4238
|
+
connections?: {
|
|
4239
|
+
discord?: {
|
|
4240
|
+
id?: string | null | undefined;
|
|
4241
|
+
username?: string | null | undefined;
|
|
4242
|
+
verified?: boolean | null | undefined;
|
|
4243
|
+
} | null | undefined;
|
|
4244
|
+
epic?: {
|
|
4245
|
+
id?: string | null | undefined;
|
|
4246
|
+
username?: string | null | undefined;
|
|
4247
|
+
verified?: boolean | null | undefined;
|
|
4248
|
+
} | null | undefined;
|
|
4249
|
+
} | null | undefined;
|
|
4250
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3933
4251
|
id: import("mongoose").Types.ObjectId;
|
|
3934
4252
|
scopes: number;
|
|
3935
4253
|
token: string;
|
|
@@ -3944,7 +4262,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3944
4262
|
scopes: number;
|
|
3945
4263
|
token: string;
|
|
3946
4264
|
_id?: unknown;
|
|
3947
|
-
}
|
|
4265
|
+
}> | null | undefined;
|
|
4266
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4267
|
+
password: string;
|
|
4268
|
+
email: string;
|
|
4269
|
+
token: string;
|
|
4270
|
+
username: string;
|
|
4271
|
+
apiToken: string;
|
|
3948
4272
|
flags?: number | null | undefined;
|
|
3949
4273
|
connections?: {
|
|
3950
4274
|
discord?: {
|
|
@@ -3958,13 +4282,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3958
4282
|
verified?: boolean | null | undefined;
|
|
3959
4283
|
} | null | undefined;
|
|
3960
4284
|
} | null | undefined;
|
|
3961
|
-
|
|
3962
|
-
password: string;
|
|
3963
|
-
email: string;
|
|
3964
|
-
token: string;
|
|
3965
|
-
username: string;
|
|
3966
|
-
apiToken: string;
|
|
3967
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4285
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
3968
4286
|
id: import("mongoose").Types.ObjectId;
|
|
3969
4287
|
scopes: number;
|
|
3970
4288
|
token: string;
|
|
@@ -3979,7 +4297,32 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3979
4297
|
scopes: number;
|
|
3980
4298
|
token: string;
|
|
3981
4299
|
_id?: unknown;
|
|
3982
|
-
}
|
|
4300
|
+
}> | null | undefined;
|
|
4301
|
+
}> & {
|
|
4302
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4303
|
+
} & {
|
|
4304
|
+
__v: number;
|
|
4305
|
+
}) | null;
|
|
4306
|
+
app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4307
|
+
id: import("mongoose").Types.ObjectId;
|
|
4308
|
+
scopes: number;
|
|
4309
|
+
token: string;
|
|
4310
|
+
_id?: unknown;
|
|
4311
|
+
}> & {
|
|
4312
|
+
id: import("mongoose").Types.ObjectId;
|
|
4313
|
+
scopes: number;
|
|
4314
|
+
token: string;
|
|
4315
|
+
_id?: unknown;
|
|
4316
|
+
};
|
|
4317
|
+
} | null>;
|
|
4318
|
+
}, {
|
|
4319
|
+
statics: {
|
|
4320
|
+
verifyPassword(this: import("mongoose").Model<{
|
|
4321
|
+
password: string;
|
|
4322
|
+
email: string;
|
|
4323
|
+
token: string;
|
|
4324
|
+
username: string;
|
|
4325
|
+
apiToken: string;
|
|
3983
4326
|
flags?: number | null | undefined;
|
|
3984
4327
|
connections?: {
|
|
3985
4328
|
discord?: {
|
|
@@ -3993,13 +4336,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
3993
4336
|
verified?: boolean | null | undefined;
|
|
3994
4337
|
} | null | undefined;
|
|
3995
4338
|
} | null | undefined;
|
|
3996
|
-
|
|
4339
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4340
|
+
id: import("mongoose").Types.ObjectId;
|
|
4341
|
+
scopes: number;
|
|
4342
|
+
token: string;
|
|
4343
|
+
_id?: unknown;
|
|
4344
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4345
|
+
id: import("mongoose").Types.ObjectId;
|
|
4346
|
+
scopes: number;
|
|
4347
|
+
token: string;
|
|
4348
|
+
_id?: unknown;
|
|
4349
|
+
}> & {
|
|
4350
|
+
id: import("mongoose").Types.ObjectId;
|
|
4351
|
+
scopes: number;
|
|
4352
|
+
token: string;
|
|
4353
|
+
_id?: unknown;
|
|
4354
|
+
}> | null | undefined;
|
|
4355
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3997
4356
|
password: string;
|
|
3998
4357
|
email: string;
|
|
3999
4358
|
token: string;
|
|
4000
4359
|
username: string;
|
|
4001
4360
|
apiToken: string;
|
|
4002
|
-
|
|
4361
|
+
flags?: number | null | undefined;
|
|
4362
|
+
connections?: {
|
|
4363
|
+
discord?: {
|
|
4364
|
+
id?: string | null | undefined;
|
|
4365
|
+
username?: string | null | undefined;
|
|
4366
|
+
verified?: boolean | null | undefined;
|
|
4367
|
+
} | null | undefined;
|
|
4368
|
+
epic?: {
|
|
4369
|
+
id?: string | null | undefined;
|
|
4370
|
+
username?: string | null | undefined;
|
|
4371
|
+
verified?: boolean | null | undefined;
|
|
4372
|
+
} | null | undefined;
|
|
4373
|
+
} | null | undefined;
|
|
4374
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4003
4375
|
id: import("mongoose").Types.ObjectId;
|
|
4004
4376
|
scopes: number;
|
|
4005
4377
|
token: string;
|
|
@@ -4014,7 +4386,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4014
4386
|
scopes: number;
|
|
4015
4387
|
token: string;
|
|
4016
4388
|
_id?: unknown;
|
|
4017
|
-
}
|
|
4389
|
+
}> | null | undefined;
|
|
4390
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4391
|
+
password: string;
|
|
4392
|
+
email: string;
|
|
4393
|
+
token: string;
|
|
4394
|
+
username: string;
|
|
4395
|
+
apiToken: string;
|
|
4018
4396
|
flags?: number | null | undefined;
|
|
4019
4397
|
connections?: {
|
|
4020
4398
|
discord?: {
|
|
@@ -4028,6 +4406,22 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4028
4406
|
verified?: boolean | null | undefined;
|
|
4029
4407
|
} | null | undefined;
|
|
4030
4408
|
} | null | undefined;
|
|
4409
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4410
|
+
id: import("mongoose").Types.ObjectId;
|
|
4411
|
+
scopes: number;
|
|
4412
|
+
token: string;
|
|
4413
|
+
_id?: unknown;
|
|
4414
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4415
|
+
id: import("mongoose").Types.ObjectId;
|
|
4416
|
+
scopes: number;
|
|
4417
|
+
token: string;
|
|
4418
|
+
_id?: unknown;
|
|
4419
|
+
}> & {
|
|
4420
|
+
id: import("mongoose").Types.ObjectId;
|
|
4421
|
+
scopes: number;
|
|
4422
|
+
token: string;
|
|
4423
|
+
_id?: unknown;
|
|
4424
|
+
}> | null | undefined;
|
|
4031
4425
|
}> & {
|
|
4032
4426
|
_id: import("mongoose").Types.ObjectId;
|
|
4033
4427
|
} & {
|
|
@@ -4039,7 +4433,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4039
4433
|
token: string;
|
|
4040
4434
|
username: string;
|
|
4041
4435
|
apiToken: string;
|
|
4042
|
-
|
|
4436
|
+
flags?: number | null | undefined;
|
|
4437
|
+
connections?: {
|
|
4438
|
+
discord?: {
|
|
4439
|
+
id?: string | null | undefined;
|
|
4440
|
+
username?: string | null | undefined;
|
|
4441
|
+
verified?: boolean | null | undefined;
|
|
4442
|
+
} | null | undefined;
|
|
4443
|
+
epic?: {
|
|
4444
|
+
id?: string | null | undefined;
|
|
4445
|
+
username?: string | null | undefined;
|
|
4446
|
+
verified?: boolean | null | undefined;
|
|
4447
|
+
} | null | undefined;
|
|
4448
|
+
} | null | undefined;
|
|
4449
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4043
4450
|
id: import("mongoose").Types.ObjectId;
|
|
4044
4451
|
scopes: number;
|
|
4045
4452
|
token: string;
|
|
@@ -4054,7 +4461,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4054
4461
|
scopes: number;
|
|
4055
4462
|
token: string;
|
|
4056
4463
|
_id?: unknown;
|
|
4057
|
-
}
|
|
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;
|
|
4058
4471
|
flags?: number | null | undefined;
|
|
4059
4472
|
connections?: {
|
|
4060
4473
|
discord?: {
|
|
@@ -4068,13 +4481,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4068
4481
|
verified?: boolean | null | undefined;
|
|
4069
4482
|
} | null | undefined;
|
|
4070
4483
|
} | null | undefined;
|
|
4071
|
-
|
|
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
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4072
4501
|
password: string;
|
|
4073
4502
|
email: string;
|
|
4074
4503
|
token: string;
|
|
4075
4504
|
username: string;
|
|
4076
4505
|
apiToken: string;
|
|
4077
|
-
|
|
4506
|
+
flags?: number | null | undefined;
|
|
4507
|
+
connections?: {
|
|
4508
|
+
discord?: {
|
|
4509
|
+
id?: string | null | undefined;
|
|
4510
|
+
username?: string | null | undefined;
|
|
4511
|
+
verified?: boolean | null | undefined;
|
|
4512
|
+
} | null | undefined;
|
|
4513
|
+
epic?: {
|
|
4514
|
+
id?: string | null | undefined;
|
|
4515
|
+
username?: string | null | undefined;
|
|
4516
|
+
verified?: boolean | null | undefined;
|
|
4517
|
+
} | null | undefined;
|
|
4518
|
+
} | null | undefined;
|
|
4519
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4078
4520
|
id: import("mongoose").Types.ObjectId;
|
|
4079
4521
|
scopes: number;
|
|
4080
4522
|
token: string;
|
|
@@ -4089,7 +4531,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4089
4531
|
scopes: number;
|
|
4090
4532
|
token: string;
|
|
4091
4533
|
_id?: unknown;
|
|
4092
|
-
}
|
|
4534
|
+
}> | null | undefined;
|
|
4535
|
+
}> & {
|
|
4536
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4537
|
+
} & {
|
|
4538
|
+
__v: number;
|
|
4539
|
+
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4540
|
+
password: string;
|
|
4541
|
+
email: string;
|
|
4542
|
+
token: string;
|
|
4543
|
+
username: string;
|
|
4544
|
+
apiToken: string;
|
|
4093
4545
|
flags?: number | null | undefined;
|
|
4094
4546
|
connections?: {
|
|
4095
4547
|
discord?: {
|
|
@@ -4103,13 +4555,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4103
4555
|
verified?: boolean | null | undefined;
|
|
4104
4556
|
} | null | undefined;
|
|
4105
4557
|
} | null | undefined;
|
|
4106
|
-
|
|
4558
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4559
|
+
id: import("mongoose").Types.ObjectId;
|
|
4560
|
+
scopes: number;
|
|
4561
|
+
token: string;
|
|
4562
|
+
_id?: unknown;
|
|
4563
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4564
|
+
id: import("mongoose").Types.ObjectId;
|
|
4565
|
+
scopes: number;
|
|
4566
|
+
token: string;
|
|
4567
|
+
_id?: unknown;
|
|
4568
|
+
}> & {
|
|
4569
|
+
id: import("mongoose").Types.ObjectId;
|
|
4570
|
+
scopes: number;
|
|
4571
|
+
token: string;
|
|
4572
|
+
_id?: unknown;
|
|
4573
|
+
}> | null | undefined;
|
|
4574
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4107
4575
|
password: string;
|
|
4108
4576
|
email: string;
|
|
4109
4577
|
token: string;
|
|
4110
4578
|
username: string;
|
|
4111
4579
|
apiToken: string;
|
|
4112
|
-
|
|
4580
|
+
flags?: number | null | undefined;
|
|
4581
|
+
connections?: {
|
|
4582
|
+
discord?: {
|
|
4583
|
+
id?: string | null | undefined;
|
|
4584
|
+
username?: string | null | undefined;
|
|
4585
|
+
verified?: boolean | null | undefined;
|
|
4586
|
+
} | null | undefined;
|
|
4587
|
+
epic?: {
|
|
4588
|
+
id?: string | null | undefined;
|
|
4589
|
+
username?: string | null | undefined;
|
|
4590
|
+
verified?: boolean | null | undefined;
|
|
4591
|
+
} | null | undefined;
|
|
4592
|
+
} | null | undefined;
|
|
4593
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4113
4594
|
id: import("mongoose").Types.ObjectId;
|
|
4114
4595
|
scopes: number;
|
|
4115
4596
|
token: string;
|
|
@@ -4124,7 +4605,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4124
4605
|
scopes: number;
|
|
4125
4606
|
token: string;
|
|
4126
4607
|
_id?: unknown;
|
|
4127
|
-
}
|
|
4608
|
+
}> | null | undefined;
|
|
4609
|
+
}> & {
|
|
4610
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4611
|
+
} & {
|
|
4612
|
+
__v: number;
|
|
4613
|
+
}) | null>;
|
|
4614
|
+
findByAPIToken(this: import("mongoose").Model<{
|
|
4615
|
+
password: string;
|
|
4616
|
+
email: string;
|
|
4617
|
+
token: string;
|
|
4618
|
+
username: string;
|
|
4619
|
+
apiToken: string;
|
|
4128
4620
|
flags?: number | null | undefined;
|
|
4129
4621
|
connections?: {
|
|
4130
4622
|
discord?: {
|
|
@@ -4138,17 +4630,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4138
4630
|
verified?: boolean | null | undefined;
|
|
4139
4631
|
} | null | undefined;
|
|
4140
4632
|
} | null | undefined;
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4633
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4634
|
+
id: import("mongoose").Types.ObjectId;
|
|
4635
|
+
scopes: number;
|
|
4636
|
+
token: string;
|
|
4637
|
+
_id?: unknown;
|
|
4638
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4639
|
+
id: import("mongoose").Types.ObjectId;
|
|
4640
|
+
scopes: number;
|
|
4641
|
+
token: string;
|
|
4642
|
+
_id?: unknown;
|
|
4643
|
+
}> & {
|
|
4644
|
+
id: import("mongoose").Types.ObjectId;
|
|
4645
|
+
scopes: number;
|
|
4646
|
+
token: string;
|
|
4647
|
+
_id?: unknown;
|
|
4648
|
+
}> | null | undefined;
|
|
4649
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4146
4650
|
password: string;
|
|
4147
4651
|
email: string;
|
|
4148
4652
|
token: string;
|
|
4149
4653
|
username: string;
|
|
4150
4654
|
apiToken: string;
|
|
4151
|
-
|
|
4655
|
+
flags?: number | null | undefined;
|
|
4656
|
+
connections?: {
|
|
4657
|
+
discord?: {
|
|
4658
|
+
id?: string | null | undefined;
|
|
4659
|
+
username?: string | null | undefined;
|
|
4660
|
+
verified?: boolean | null | undefined;
|
|
4661
|
+
} | null | undefined;
|
|
4662
|
+
epic?: {
|
|
4663
|
+
id?: string | null | undefined;
|
|
4664
|
+
username?: string | null | undefined;
|
|
4665
|
+
verified?: boolean | null | undefined;
|
|
4666
|
+
} | null | undefined;
|
|
4667
|
+
} | null | undefined;
|
|
4668
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4152
4669
|
id: import("mongoose").Types.ObjectId;
|
|
4153
4670
|
scopes: number;
|
|
4154
4671
|
token: string;
|
|
@@ -4163,7 +4680,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4163
4680
|
scopes: number;
|
|
4164
4681
|
token: string;
|
|
4165
4682
|
_id?: unknown;
|
|
4166
|
-
}
|
|
4683
|
+
}> | null | undefined;
|
|
4684
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4685
|
+
password: string;
|
|
4686
|
+
email: string;
|
|
4687
|
+
token: string;
|
|
4688
|
+
username: string;
|
|
4689
|
+
apiToken: string;
|
|
4167
4690
|
flags?: number | null | undefined;
|
|
4168
4691
|
connections?: {
|
|
4169
4692
|
discord?: {
|
|
@@ -4177,13 +4700,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4177
4700
|
verified?: boolean | null | undefined;
|
|
4178
4701
|
} | null | undefined;
|
|
4179
4702
|
} | null | undefined;
|
|
4180
|
-
|
|
4181
|
-
password: string;
|
|
4182
|
-
email: string;
|
|
4183
|
-
token: string;
|
|
4184
|
-
username: string;
|
|
4185
|
-
apiToken: string;
|
|
4186
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4703
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4187
4704
|
id: import("mongoose").Types.ObjectId;
|
|
4188
4705
|
scopes: number;
|
|
4189
4706
|
token: string;
|
|
@@ -4198,7 +4715,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4198
4715
|
scopes: number;
|
|
4199
4716
|
token: string;
|
|
4200
4717
|
_id?: unknown;
|
|
4201
|
-
}
|
|
4718
|
+
}> | null | undefined;
|
|
4719
|
+
}> & {
|
|
4720
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4721
|
+
} & {
|
|
4722
|
+
__v: number;
|
|
4723
|
+
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4724
|
+
password: string;
|
|
4725
|
+
email: string;
|
|
4726
|
+
token: string;
|
|
4727
|
+
username: string;
|
|
4728
|
+
apiToken: string;
|
|
4202
4729
|
flags?: number | null | undefined;
|
|
4203
4730
|
connections?: {
|
|
4204
4731
|
discord?: {
|
|
@@ -4212,18 +4739,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4212
4739
|
verified?: boolean | null | undefined;
|
|
4213
4740
|
} | null | undefined;
|
|
4214
4741
|
} | null | undefined;
|
|
4215
|
-
|
|
4216
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4217
|
-
} & {
|
|
4218
|
-
__v: number;
|
|
4219
|
-
}) | null>;
|
|
4220
|
-
findByAPIToken(this: import("mongoose").Model<{
|
|
4221
|
-
password: string;
|
|
4222
|
-
email: string;
|
|
4223
|
-
token: string;
|
|
4224
|
-
username: string;
|
|
4225
|
-
apiToken: string;
|
|
4226
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4742
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4227
4743
|
id: import("mongoose").Types.ObjectId;
|
|
4228
4744
|
scopes: number;
|
|
4229
4745
|
token: string;
|
|
@@ -4238,7 +4754,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4238
4754
|
scopes: number;
|
|
4239
4755
|
token: string;
|
|
4240
4756
|
_id?: unknown;
|
|
4241
|
-
}
|
|
4757
|
+
}> | null | undefined;
|
|
4758
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4759
|
+
password: string;
|
|
4760
|
+
email: string;
|
|
4761
|
+
token: string;
|
|
4762
|
+
username: string;
|
|
4763
|
+
apiToken: string;
|
|
4242
4764
|
flags?: number | null | undefined;
|
|
4243
4765
|
connections?: {
|
|
4244
4766
|
discord?: {
|
|
@@ -4252,13 +4774,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4252
4774
|
verified?: boolean | null | undefined;
|
|
4253
4775
|
} | null | undefined;
|
|
4254
4776
|
} | null | undefined;
|
|
4255
|
-
|
|
4256
|
-
password: string;
|
|
4257
|
-
email: string;
|
|
4258
|
-
token: string;
|
|
4259
|
-
username: string;
|
|
4260
|
-
apiToken: string;
|
|
4261
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4777
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4262
4778
|
id: import("mongoose").Types.ObjectId;
|
|
4263
4779
|
scopes: number;
|
|
4264
4780
|
token: string;
|
|
@@ -4273,7 +4789,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4273
4789
|
scopes: number;
|
|
4274
4790
|
token: string;
|
|
4275
4791
|
_id?: unknown;
|
|
4276
|
-
}
|
|
4792
|
+
}> | null | undefined;
|
|
4793
|
+
}> & {
|
|
4794
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4795
|
+
} & {
|
|
4796
|
+
__v: number;
|
|
4797
|
+
}) | null>;
|
|
4798
|
+
findByAccessToken(this: import("mongoose").Model<{
|
|
4799
|
+
password: string;
|
|
4800
|
+
email: string;
|
|
4801
|
+
token: string;
|
|
4802
|
+
username: string;
|
|
4803
|
+
apiToken: string;
|
|
4277
4804
|
flags?: number | null | undefined;
|
|
4278
4805
|
connections?: {
|
|
4279
4806
|
discord?: {
|
|
@@ -4287,13 +4814,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4287
4814
|
verified?: boolean | null | undefined;
|
|
4288
4815
|
} | null | undefined;
|
|
4289
4816
|
} | null | undefined;
|
|
4290
|
-
|
|
4291
|
-
password: string;
|
|
4292
|
-
email: string;
|
|
4293
|
-
token: string;
|
|
4294
|
-
username: string;
|
|
4295
|
-
apiToken: string;
|
|
4296
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4817
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4297
4818
|
id: import("mongoose").Types.ObjectId;
|
|
4298
4819
|
scopes: number;
|
|
4299
4820
|
token: string;
|
|
@@ -4308,7 +4829,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4308
4829
|
scopes: number;
|
|
4309
4830
|
token: string;
|
|
4310
4831
|
_id?: unknown;
|
|
4311
|
-
}
|
|
4832
|
+
}> | null | undefined;
|
|
4833
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4834
|
+
password: string;
|
|
4835
|
+
email: string;
|
|
4836
|
+
token: string;
|
|
4837
|
+
username: string;
|
|
4838
|
+
apiToken: string;
|
|
4312
4839
|
flags?: number | null | undefined;
|
|
4313
4840
|
connections?: {
|
|
4314
4841
|
discord?: {
|
|
@@ -4322,17 +4849,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4322
4849
|
verified?: boolean | null | undefined;
|
|
4323
4850
|
} | null | undefined;
|
|
4324
4851
|
} | null | undefined;
|
|
4325
|
-
|
|
4326
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4327
|
-
} & {
|
|
4328
|
-
__v: number;
|
|
4329
|
-
}, any>, id: string, auth: string): Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4330
|
-
password: string;
|
|
4331
|
-
email: string;
|
|
4332
|
-
token: string;
|
|
4333
|
-
username: string;
|
|
4334
|
-
apiToken: string;
|
|
4335
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4852
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4336
4853
|
id: import("mongoose").Types.ObjectId;
|
|
4337
4854
|
scopes: number;
|
|
4338
4855
|
token: string;
|
|
@@ -4347,7 +4864,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4347
4864
|
scopes: number;
|
|
4348
4865
|
token: string;
|
|
4349
4866
|
_id?: unknown;
|
|
4350
|
-
}
|
|
4867
|
+
}> | null | undefined;
|
|
4868
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4869
|
+
password: string;
|
|
4870
|
+
email: string;
|
|
4871
|
+
token: string;
|
|
4872
|
+
username: string;
|
|
4873
|
+
apiToken: string;
|
|
4351
4874
|
flags?: number | null | undefined;
|
|
4352
4875
|
connections?: {
|
|
4353
4876
|
discord?: {
|
|
@@ -4361,13 +4884,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4361
4884
|
verified?: boolean | null | undefined;
|
|
4362
4885
|
} | null | undefined;
|
|
4363
4886
|
} | null | undefined;
|
|
4364
|
-
|
|
4365
|
-
password: string;
|
|
4366
|
-
email: string;
|
|
4367
|
-
token: string;
|
|
4368
|
-
username: string;
|
|
4369
|
-
apiToken: string;
|
|
4370
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
4887
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4371
4888
|
id: import("mongoose").Types.ObjectId;
|
|
4372
4889
|
scopes: number;
|
|
4373
4890
|
token: string;
|
|
@@ -4382,25 +4899,99 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4382
4899
|
scopes: number;
|
|
4383
4900
|
token: string;
|
|
4384
4901
|
_id?: unknown;
|
|
4385
|
-
}
|
|
4386
|
-
flags?: number | null | undefined;
|
|
4387
|
-
connections?: {
|
|
4388
|
-
discord?: {
|
|
4389
|
-
id?: string | null | undefined;
|
|
4390
|
-
username?: string | null | undefined;
|
|
4391
|
-
verified?: boolean | null | undefined;
|
|
4392
|
-
} | null | undefined;
|
|
4393
|
-
epic?: {
|
|
4394
|
-
id?: string | null | undefined;
|
|
4395
|
-
username?: string | null | undefined;
|
|
4396
|
-
verified?: boolean | null | undefined;
|
|
4397
|
-
} | null | undefined;
|
|
4398
|
-
} | null | undefined;
|
|
4902
|
+
}> | null | undefined;
|
|
4399
4903
|
}> & {
|
|
4400
4904
|
_id: import("mongoose").Types.ObjectId;
|
|
4401
4905
|
} & {
|
|
4402
4906
|
__v: number;
|
|
4403
|
-
})
|
|
4907
|
+
}, any>, id: string, auth: string): Promise<{
|
|
4908
|
+
user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4909
|
+
password: string;
|
|
4910
|
+
email: string;
|
|
4911
|
+
token: string;
|
|
4912
|
+
username: string;
|
|
4913
|
+
apiToken: string;
|
|
4914
|
+
flags?: number | null | undefined;
|
|
4915
|
+
connections?: {
|
|
4916
|
+
discord?: {
|
|
4917
|
+
id?: string | null | undefined;
|
|
4918
|
+
username?: string | null | undefined;
|
|
4919
|
+
verified?: boolean | null | undefined;
|
|
4920
|
+
} | null | undefined;
|
|
4921
|
+
epic?: {
|
|
4922
|
+
id?: string | null | undefined;
|
|
4923
|
+
username?: string | null | undefined;
|
|
4924
|
+
verified?: boolean | null | undefined;
|
|
4925
|
+
} | null | undefined;
|
|
4926
|
+
} | null | undefined;
|
|
4927
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4928
|
+
id: import("mongoose").Types.ObjectId;
|
|
4929
|
+
scopes: number;
|
|
4930
|
+
token: string;
|
|
4931
|
+
_id?: unknown;
|
|
4932
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4933
|
+
id: import("mongoose").Types.ObjectId;
|
|
4934
|
+
scopes: number;
|
|
4935
|
+
token: string;
|
|
4936
|
+
_id?: unknown;
|
|
4937
|
+
}> & {
|
|
4938
|
+
id: import("mongoose").Types.ObjectId;
|
|
4939
|
+
scopes: number;
|
|
4940
|
+
token: string;
|
|
4941
|
+
_id?: unknown;
|
|
4942
|
+
}> | null | undefined;
|
|
4943
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4944
|
+
password: string;
|
|
4945
|
+
email: string;
|
|
4946
|
+
token: string;
|
|
4947
|
+
username: string;
|
|
4948
|
+
apiToken: string;
|
|
4949
|
+
flags?: number | null | undefined;
|
|
4950
|
+
connections?: {
|
|
4951
|
+
discord?: {
|
|
4952
|
+
id?: string | null | undefined;
|
|
4953
|
+
username?: string | null | undefined;
|
|
4954
|
+
verified?: boolean | null | undefined;
|
|
4955
|
+
} | null | undefined;
|
|
4956
|
+
epic?: {
|
|
4957
|
+
id?: string | null | undefined;
|
|
4958
|
+
username?: string | null | undefined;
|
|
4959
|
+
verified?: boolean | null | undefined;
|
|
4960
|
+
} | null | undefined;
|
|
4961
|
+
} | null | undefined;
|
|
4962
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4963
|
+
id: import("mongoose").Types.ObjectId;
|
|
4964
|
+
scopes: number;
|
|
4965
|
+
token: string;
|
|
4966
|
+
_id?: unknown;
|
|
4967
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4968
|
+
id: import("mongoose").Types.ObjectId;
|
|
4969
|
+
scopes: number;
|
|
4970
|
+
token: string;
|
|
4971
|
+
_id?: unknown;
|
|
4972
|
+
}> & {
|
|
4973
|
+
id: import("mongoose").Types.ObjectId;
|
|
4974
|
+
scopes: number;
|
|
4975
|
+
token: string;
|
|
4976
|
+
_id?: unknown;
|
|
4977
|
+
}> | null | undefined;
|
|
4978
|
+
}> & {
|
|
4979
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4980
|
+
} & {
|
|
4981
|
+
__v: number;
|
|
4982
|
+
}) | null;
|
|
4983
|
+
app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
4984
|
+
id: import("mongoose").Types.ObjectId;
|
|
4985
|
+
scopes: number;
|
|
4986
|
+
token: string;
|
|
4987
|
+
_id?: unknown;
|
|
4988
|
+
}> & {
|
|
4989
|
+
id: import("mongoose").Types.ObjectId;
|
|
4990
|
+
scopes: number;
|
|
4991
|
+
token: string;
|
|
4992
|
+
_id?: unknown;
|
|
4993
|
+
};
|
|
4994
|
+
} | null>;
|
|
4404
4995
|
};
|
|
4405
4996
|
}, {
|
|
4406
4997
|
password: string;
|
|
@@ -4408,7 +4999,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4408
4999
|
token: string;
|
|
4409
5000
|
username: string;
|
|
4410
5001
|
apiToken: string;
|
|
4411
|
-
|
|
5002
|
+
flags?: number | null | undefined;
|
|
5003
|
+
connections?: {
|
|
5004
|
+
discord?: {
|
|
5005
|
+
id?: string | null | undefined;
|
|
5006
|
+
username?: string | null | undefined;
|
|
5007
|
+
verified?: boolean | null | undefined;
|
|
5008
|
+
} | null | undefined;
|
|
5009
|
+
epic?: {
|
|
5010
|
+
id?: string | null | undefined;
|
|
5011
|
+
username?: string | null | undefined;
|
|
5012
|
+
verified?: boolean | null | undefined;
|
|
5013
|
+
} | null | undefined;
|
|
5014
|
+
} | null | undefined;
|
|
5015
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4412
5016
|
id: import("mongoose").Types.ObjectId;
|
|
4413
5017
|
scopes: number;
|
|
4414
5018
|
token: string;
|
|
@@ -4423,7 +5027,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4423
5027
|
scopes: number;
|
|
4424
5028
|
token: string;
|
|
4425
5029
|
_id?: unknown;
|
|
4426
|
-
}
|
|
5030
|
+
}> | null | undefined;
|
|
5031
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5032
|
+
password: string;
|
|
5033
|
+
email: string;
|
|
5034
|
+
token: string;
|
|
5035
|
+
username: string;
|
|
5036
|
+
apiToken: string;
|
|
4427
5037
|
flags?: number | null | undefined;
|
|
4428
5038
|
connections?: {
|
|
4429
5039
|
discord?: {
|
|
@@ -4437,13 +5047,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4437
5047
|
verified?: boolean | null | undefined;
|
|
4438
5048
|
} | null | undefined;
|
|
4439
5049
|
} | null | undefined;
|
|
4440
|
-
|
|
4441
|
-
password: string;
|
|
4442
|
-
email: string;
|
|
4443
|
-
token: string;
|
|
4444
|
-
username: string;
|
|
4445
|
-
apiToken: string;
|
|
4446
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5050
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4447
5051
|
id: import("mongoose").Types.ObjectId;
|
|
4448
5052
|
scopes: number;
|
|
4449
5053
|
token: string;
|
|
@@ -4458,7 +5062,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4458
5062
|
scopes: number;
|
|
4459
5063
|
token: string;
|
|
4460
5064
|
_id?: unknown;
|
|
4461
|
-
}
|
|
5065
|
+
}> | null | undefined;
|
|
5066
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5067
|
+
password: string;
|
|
5068
|
+
email: string;
|
|
5069
|
+
token: string;
|
|
5070
|
+
username: string;
|
|
5071
|
+
apiToken: string;
|
|
4462
5072
|
flags?: number | null | undefined;
|
|
4463
5073
|
connections?: {
|
|
4464
5074
|
discord?: {
|
|
@@ -4472,13 +5082,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4472
5082
|
verified?: boolean | null | undefined;
|
|
4473
5083
|
} | null | undefined;
|
|
4474
5084
|
} | null | undefined;
|
|
4475
|
-
|
|
4476
|
-
password: string;
|
|
4477
|
-
email: string;
|
|
4478
|
-
token: string;
|
|
4479
|
-
username: string;
|
|
4480
|
-
apiToken: string;
|
|
4481
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5085
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4482
5086
|
id: import("mongoose").Types.ObjectId;
|
|
4483
5087
|
scopes: number;
|
|
4484
5088
|
token: string;
|
|
@@ -4493,20 +5097,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4493
5097
|
scopes: number;
|
|
4494
5098
|
token: string;
|
|
4495
5099
|
_id?: unknown;
|
|
4496
|
-
}
|
|
4497
|
-
flags?: number | null | undefined;
|
|
4498
|
-
connections?: {
|
|
4499
|
-
discord?: {
|
|
4500
|
-
id?: string | null | undefined;
|
|
4501
|
-
username?: string | null | undefined;
|
|
4502
|
-
verified?: boolean | null | undefined;
|
|
4503
|
-
} | null | undefined;
|
|
4504
|
-
epic?: {
|
|
4505
|
-
id?: string | null | undefined;
|
|
4506
|
-
username?: string | null | undefined;
|
|
4507
|
-
verified?: boolean | null | undefined;
|
|
4508
|
-
} | null | undefined;
|
|
4509
|
-
} | null | undefined;
|
|
5100
|
+
}> | null | undefined;
|
|
4510
5101
|
}> & {
|
|
4511
5102
|
_id: import("mongoose").Types.ObjectId;
|
|
4512
5103
|
} & {
|
|
@@ -4518,7 +5109,20 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4518
5109
|
token: string;
|
|
4519
5110
|
username: string;
|
|
4520
5111
|
apiToken: string;
|
|
4521
|
-
|
|
5112
|
+
flags?: number | null | undefined;
|
|
5113
|
+
connections?: {
|
|
5114
|
+
discord?: {
|
|
5115
|
+
id?: string | null | undefined;
|
|
5116
|
+
username?: string | null | undefined;
|
|
5117
|
+
verified?: boolean | null | undefined;
|
|
5118
|
+
} | null | undefined;
|
|
5119
|
+
epic?: {
|
|
5120
|
+
id?: string | null | undefined;
|
|
5121
|
+
username?: string | null | undefined;
|
|
5122
|
+
verified?: boolean | null | undefined;
|
|
5123
|
+
} | null | undefined;
|
|
5124
|
+
} | null | undefined;
|
|
5125
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4522
5126
|
id: import("mongoose").Types.ObjectId;
|
|
4523
5127
|
scopes: number;
|
|
4524
5128
|
token: string;
|
|
@@ -4533,7 +5137,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4533
5137
|
scopes: number;
|
|
4534
5138
|
token: string;
|
|
4535
5139
|
_id?: unknown;
|
|
4536
|
-
}
|
|
5140
|
+
}> | null | undefined;
|
|
5141
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5142
|
+
password: string;
|
|
5143
|
+
email: string;
|
|
5144
|
+
token: string;
|
|
5145
|
+
username: string;
|
|
5146
|
+
apiToken: string;
|
|
4537
5147
|
flags?: number | null | undefined;
|
|
4538
5148
|
connections?: {
|
|
4539
5149
|
discord?: {
|
|
@@ -4547,13 +5157,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4547
5157
|
verified?: boolean | null | undefined;
|
|
4548
5158
|
} | null | undefined;
|
|
4549
5159
|
} | null | undefined;
|
|
4550
|
-
|
|
5160
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
5161
|
+
id: import("mongoose").Types.ObjectId;
|
|
5162
|
+
scopes: number;
|
|
5163
|
+
token: string;
|
|
5164
|
+
_id?: unknown;
|
|
5165
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5166
|
+
id: import("mongoose").Types.ObjectId;
|
|
5167
|
+
scopes: number;
|
|
5168
|
+
token: string;
|
|
5169
|
+
_id?: unknown;
|
|
5170
|
+
}> & {
|
|
5171
|
+
id: import("mongoose").Types.ObjectId;
|
|
5172
|
+
scopes: number;
|
|
5173
|
+
token: string;
|
|
5174
|
+
_id?: unknown;
|
|
5175
|
+
}> | null | undefined;
|
|
5176
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
4551
5177
|
password: string;
|
|
4552
5178
|
email: string;
|
|
4553
5179
|
token: string;
|
|
4554
5180
|
username: string;
|
|
4555
5181
|
apiToken: string;
|
|
4556
|
-
|
|
5182
|
+
flags?: number | null | undefined;
|
|
5183
|
+
connections?: {
|
|
5184
|
+
discord?: {
|
|
5185
|
+
id?: string | null | undefined;
|
|
5186
|
+
username?: string | null | undefined;
|
|
5187
|
+
verified?: boolean | null | undefined;
|
|
5188
|
+
} | null | undefined;
|
|
5189
|
+
epic?: {
|
|
5190
|
+
id?: string | null | undefined;
|
|
5191
|
+
username?: string | null | undefined;
|
|
5192
|
+
verified?: boolean | null | undefined;
|
|
5193
|
+
} | null | undefined;
|
|
5194
|
+
} | null | undefined;
|
|
5195
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4557
5196
|
id: import("mongoose").Types.ObjectId;
|
|
4558
5197
|
scopes: number;
|
|
4559
5198
|
token: string;
|
|
@@ -4568,7 +5207,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4568
5207
|
scopes: number;
|
|
4569
5208
|
token: string;
|
|
4570
5209
|
_id?: unknown;
|
|
4571
|
-
}
|
|
5210
|
+
}> | null | undefined;
|
|
5211
|
+
}> & {
|
|
5212
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5213
|
+
} & {
|
|
5214
|
+
__v: number;
|
|
5215
|
+
}, any>, password: string, hash: string) => Promise<boolean>;
|
|
5216
|
+
findByToken: (this: import("mongoose").Model<{
|
|
5217
|
+
password: string;
|
|
5218
|
+
email: string;
|
|
5219
|
+
token: string;
|
|
5220
|
+
username: string;
|
|
5221
|
+
apiToken: string;
|
|
4572
5222
|
flags?: number | null | undefined;
|
|
4573
5223
|
connections?: {
|
|
4574
5224
|
discord?: {
|
|
@@ -4582,13 +5232,42 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4582
5232
|
verified?: boolean | null | undefined;
|
|
4583
5233
|
} | null | undefined;
|
|
4584
5234
|
} | null | undefined;
|
|
4585
|
-
|
|
5235
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
5236
|
+
id: import("mongoose").Types.ObjectId;
|
|
5237
|
+
scopes: number;
|
|
5238
|
+
token: string;
|
|
5239
|
+
_id?: unknown;
|
|
5240
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5241
|
+
id: import("mongoose").Types.ObjectId;
|
|
5242
|
+
scopes: number;
|
|
5243
|
+
token: string;
|
|
5244
|
+
_id?: unknown;
|
|
5245
|
+
}> & {
|
|
5246
|
+
id: import("mongoose").Types.ObjectId;
|
|
5247
|
+
scopes: number;
|
|
5248
|
+
token: string;
|
|
5249
|
+
_id?: unknown;
|
|
5250
|
+
}> | null | undefined;
|
|
5251
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4586
5252
|
password: string;
|
|
4587
5253
|
email: string;
|
|
4588
5254
|
token: string;
|
|
4589
5255
|
username: string;
|
|
4590
5256
|
apiToken: string;
|
|
4591
|
-
|
|
5257
|
+
flags?: number | null | undefined;
|
|
5258
|
+
connections?: {
|
|
5259
|
+
discord?: {
|
|
5260
|
+
id?: string | null | undefined;
|
|
5261
|
+
username?: string | null | undefined;
|
|
5262
|
+
verified?: boolean | null | undefined;
|
|
5263
|
+
} | null | undefined;
|
|
5264
|
+
epic?: {
|
|
5265
|
+
id?: string | null | undefined;
|
|
5266
|
+
username?: string | null | undefined;
|
|
5267
|
+
verified?: boolean | null | undefined;
|
|
5268
|
+
} | null | undefined;
|
|
5269
|
+
} | null | undefined;
|
|
5270
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4592
5271
|
id: import("mongoose").Types.ObjectId;
|
|
4593
5272
|
scopes: number;
|
|
4594
5273
|
token: string;
|
|
@@ -4603,7 +5282,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4603
5282
|
scopes: number;
|
|
4604
5283
|
token: string;
|
|
4605
5284
|
_id?: unknown;
|
|
4606
|
-
}
|
|
5285
|
+
}> | null | undefined;
|
|
5286
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5287
|
+
password: string;
|
|
5288
|
+
email: string;
|
|
5289
|
+
token: string;
|
|
5290
|
+
username: string;
|
|
5291
|
+
apiToken: string;
|
|
4607
5292
|
flags?: number | null | undefined;
|
|
4608
5293
|
connections?: {
|
|
4609
5294
|
discord?: {
|
|
@@ -4617,18 +5302,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4617
5302
|
verified?: boolean | null | undefined;
|
|
4618
5303
|
} | null | undefined;
|
|
4619
5304
|
} | null | undefined;
|
|
4620
|
-
|
|
4621
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4622
|
-
} & {
|
|
4623
|
-
__v: number;
|
|
4624
|
-
}, any>, password: string, hash: string) => Promise<boolean>;
|
|
4625
|
-
findByToken: (this: import("mongoose").Model<{
|
|
4626
|
-
password: string;
|
|
4627
|
-
email: string;
|
|
4628
|
-
token: string;
|
|
4629
|
-
username: string;
|
|
4630
|
-
apiToken: string;
|
|
4631
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5305
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4632
5306
|
id: import("mongoose").Types.ObjectId;
|
|
4633
5307
|
scopes: number;
|
|
4634
5308
|
token: string;
|
|
@@ -4643,7 +5317,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4643
5317
|
scopes: number;
|
|
4644
5318
|
token: string;
|
|
4645
5319
|
_id?: unknown;
|
|
4646
|
-
}
|
|
5320
|
+
}> | null | undefined;
|
|
5321
|
+
}> & {
|
|
5322
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5323
|
+
} & {
|
|
5324
|
+
__v: number;
|
|
5325
|
+
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5326
|
+
password: string;
|
|
5327
|
+
email: string;
|
|
5328
|
+
token: string;
|
|
5329
|
+
username: string;
|
|
5330
|
+
apiToken: string;
|
|
4647
5331
|
flags?: number | null | undefined;
|
|
4648
5332
|
connections?: {
|
|
4649
5333
|
discord?: {
|
|
@@ -4657,13 +5341,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4657
5341
|
verified?: boolean | null | undefined;
|
|
4658
5342
|
} | null | undefined;
|
|
4659
5343
|
} | null | undefined;
|
|
4660
|
-
|
|
4661
|
-
password: string;
|
|
4662
|
-
email: string;
|
|
4663
|
-
token: string;
|
|
4664
|
-
username: string;
|
|
4665
|
-
apiToken: string;
|
|
4666
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5344
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4667
5345
|
id: import("mongoose").Types.ObjectId;
|
|
4668
5346
|
scopes: number;
|
|
4669
5347
|
token: string;
|
|
@@ -4678,7 +5356,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4678
5356
|
scopes: number;
|
|
4679
5357
|
token: string;
|
|
4680
5358
|
_id?: unknown;
|
|
4681
|
-
}
|
|
5359
|
+
}> | null | undefined;
|
|
5360
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5361
|
+
password: string;
|
|
5362
|
+
email: string;
|
|
5363
|
+
token: string;
|
|
5364
|
+
username: string;
|
|
5365
|
+
apiToken: string;
|
|
4682
5366
|
flags?: number | null | undefined;
|
|
4683
5367
|
connections?: {
|
|
4684
5368
|
discord?: {
|
|
@@ -4692,13 +5376,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4692
5376
|
verified?: boolean | null | undefined;
|
|
4693
5377
|
} | null | undefined;
|
|
4694
5378
|
} | null | undefined;
|
|
4695
|
-
|
|
4696
|
-
password: string;
|
|
4697
|
-
email: string;
|
|
4698
|
-
token: string;
|
|
4699
|
-
username: string;
|
|
4700
|
-
apiToken: string;
|
|
4701
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5379
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4702
5380
|
id: import("mongoose").Types.ObjectId;
|
|
4703
5381
|
scopes: number;
|
|
4704
5382
|
token: string;
|
|
@@ -4713,7 +5391,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4713
5391
|
scopes: number;
|
|
4714
5392
|
token: string;
|
|
4715
5393
|
_id?: unknown;
|
|
4716
|
-
}
|
|
5394
|
+
}> | null | undefined;
|
|
5395
|
+
}> & {
|
|
5396
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5397
|
+
} & {
|
|
5398
|
+
__v: number;
|
|
5399
|
+
}) | null>;
|
|
5400
|
+
findByAPIToken: (this: import("mongoose").Model<{
|
|
5401
|
+
password: string;
|
|
5402
|
+
email: string;
|
|
5403
|
+
token: string;
|
|
5404
|
+
username: string;
|
|
5405
|
+
apiToken: string;
|
|
4717
5406
|
flags?: number | null | undefined;
|
|
4718
5407
|
connections?: {
|
|
4719
5408
|
discord?: {
|
|
@@ -4727,17 +5416,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4727
5416
|
verified?: boolean | null | undefined;
|
|
4728
5417
|
} | null | undefined;
|
|
4729
5418
|
} | null | undefined;
|
|
4730
|
-
|
|
4731
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4732
|
-
} & {
|
|
4733
|
-
__v: number;
|
|
4734
|
-
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4735
|
-
password: string;
|
|
4736
|
-
email: string;
|
|
4737
|
-
token: string;
|
|
4738
|
-
username: string;
|
|
4739
|
-
apiToken: string;
|
|
4740
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5419
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4741
5420
|
id: import("mongoose").Types.ObjectId;
|
|
4742
5421
|
scopes: number;
|
|
4743
5422
|
token: string;
|
|
@@ -4752,7 +5431,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4752
5431
|
scopes: number;
|
|
4753
5432
|
token: string;
|
|
4754
5433
|
_id?: unknown;
|
|
4755
|
-
}
|
|
5434
|
+
}> | null | undefined;
|
|
5435
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5436
|
+
password: string;
|
|
5437
|
+
email: string;
|
|
5438
|
+
token: string;
|
|
5439
|
+
username: string;
|
|
5440
|
+
apiToken: string;
|
|
4756
5441
|
flags?: number | null | undefined;
|
|
4757
5442
|
connections?: {
|
|
4758
5443
|
discord?: {
|
|
@@ -4766,13 +5451,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4766
5451
|
verified?: boolean | null | undefined;
|
|
4767
5452
|
} | null | undefined;
|
|
4768
5453
|
} | null | undefined;
|
|
4769
|
-
|
|
4770
|
-
password: string;
|
|
4771
|
-
email: string;
|
|
4772
|
-
token: string;
|
|
4773
|
-
username: string;
|
|
4774
|
-
apiToken: string;
|
|
4775
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5454
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4776
5455
|
id: import("mongoose").Types.ObjectId;
|
|
4777
5456
|
scopes: number;
|
|
4778
5457
|
token: string;
|
|
@@ -4787,7 +5466,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4787
5466
|
scopes: number;
|
|
4788
5467
|
token: string;
|
|
4789
5468
|
_id?: unknown;
|
|
4790
|
-
}
|
|
5469
|
+
}> | null | undefined;
|
|
5470
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5471
|
+
password: string;
|
|
5472
|
+
email: string;
|
|
5473
|
+
token: string;
|
|
5474
|
+
username: string;
|
|
5475
|
+
apiToken: string;
|
|
4791
5476
|
flags?: number | null | undefined;
|
|
4792
5477
|
connections?: {
|
|
4793
5478
|
discord?: {
|
|
@@ -4801,18 +5486,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4801
5486
|
verified?: boolean | null | undefined;
|
|
4802
5487
|
} | null | undefined;
|
|
4803
5488
|
} | null | undefined;
|
|
4804
|
-
|
|
4805
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4806
|
-
} & {
|
|
4807
|
-
__v: number;
|
|
4808
|
-
}) | null>;
|
|
4809
|
-
findByAPIToken: (this: import("mongoose").Model<{
|
|
4810
|
-
password: string;
|
|
4811
|
-
email: string;
|
|
4812
|
-
token: string;
|
|
4813
|
-
username: string;
|
|
4814
|
-
apiToken: string;
|
|
4815
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5489
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4816
5490
|
id: import("mongoose").Types.ObjectId;
|
|
4817
5491
|
scopes: number;
|
|
4818
5492
|
token: string;
|
|
@@ -4827,7 +5501,17 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4827
5501
|
scopes: number;
|
|
4828
5502
|
token: string;
|
|
4829
5503
|
_id?: unknown;
|
|
4830
|
-
}
|
|
5504
|
+
}> | null | undefined;
|
|
5505
|
+
}> & {
|
|
5506
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5507
|
+
} & {
|
|
5508
|
+
__v: number;
|
|
5509
|
+
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5510
|
+
password: string;
|
|
5511
|
+
email: string;
|
|
5512
|
+
token: string;
|
|
5513
|
+
username: string;
|
|
5514
|
+
apiToken: string;
|
|
4831
5515
|
flags?: number | null | undefined;
|
|
4832
5516
|
connections?: {
|
|
4833
5517
|
discord?: {
|
|
@@ -4841,13 +5525,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4841
5525
|
verified?: boolean | null | undefined;
|
|
4842
5526
|
} | null | undefined;
|
|
4843
5527
|
} | null | undefined;
|
|
4844
|
-
|
|
4845
|
-
password: string;
|
|
4846
|
-
email: string;
|
|
4847
|
-
token: string;
|
|
4848
|
-
username: string;
|
|
4849
|
-
apiToken: string;
|
|
4850
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5528
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4851
5529
|
id: import("mongoose").Types.ObjectId;
|
|
4852
5530
|
scopes: number;
|
|
4853
5531
|
token: string;
|
|
@@ -4862,7 +5540,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4862
5540
|
scopes: number;
|
|
4863
5541
|
token: string;
|
|
4864
5542
|
_id?: unknown;
|
|
4865
|
-
}
|
|
5543
|
+
}> | null | undefined;
|
|
5544
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5545
|
+
password: string;
|
|
5546
|
+
email: string;
|
|
5547
|
+
token: string;
|
|
5548
|
+
username: string;
|
|
5549
|
+
apiToken: string;
|
|
4866
5550
|
flags?: number | null | undefined;
|
|
4867
5551
|
connections?: {
|
|
4868
5552
|
discord?: {
|
|
@@ -4876,13 +5560,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4876
5560
|
verified?: boolean | null | undefined;
|
|
4877
5561
|
} | null | undefined;
|
|
4878
5562
|
} | null | undefined;
|
|
4879
|
-
|
|
4880
|
-
password: string;
|
|
4881
|
-
email: string;
|
|
4882
|
-
token: string;
|
|
4883
|
-
username: string;
|
|
4884
|
-
apiToken: string;
|
|
4885
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5563
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4886
5564
|
id: import("mongoose").Types.ObjectId;
|
|
4887
5565
|
scopes: number;
|
|
4888
5566
|
token: string;
|
|
@@ -4897,7 +5575,18 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4897
5575
|
scopes: number;
|
|
4898
5576
|
token: string;
|
|
4899
5577
|
_id?: unknown;
|
|
4900
|
-
}
|
|
5578
|
+
}> | null | undefined;
|
|
5579
|
+
}> & {
|
|
5580
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5581
|
+
} & {
|
|
5582
|
+
__v: number;
|
|
5583
|
+
}) | null>;
|
|
5584
|
+
findByAccessToken: (this: import("mongoose").Model<{
|
|
5585
|
+
password: string;
|
|
5586
|
+
email: string;
|
|
5587
|
+
token: string;
|
|
5588
|
+
username: string;
|
|
5589
|
+
apiToken: string;
|
|
4901
5590
|
flags?: number | null | undefined;
|
|
4902
5591
|
connections?: {
|
|
4903
5592
|
discord?: {
|
|
@@ -4911,17 +5600,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4911
5600
|
verified?: boolean | null | undefined;
|
|
4912
5601
|
} | null | undefined;
|
|
4913
5602
|
} | null | undefined;
|
|
4914
|
-
|
|
4915
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4916
|
-
} & {
|
|
4917
|
-
__v: number;
|
|
4918
|
-
}, any>, id: string, auth: string) => Promise<(import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
4919
|
-
password: string;
|
|
4920
|
-
email: string;
|
|
4921
|
-
token: string;
|
|
4922
|
-
username: string;
|
|
4923
|
-
apiToken: string;
|
|
4924
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5603
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4925
5604
|
id: import("mongoose").Types.ObjectId;
|
|
4926
5605
|
scopes: number;
|
|
4927
5606
|
token: string;
|
|
@@ -4936,7 +5615,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4936
5615
|
scopes: number;
|
|
4937
5616
|
token: string;
|
|
4938
5617
|
_id?: unknown;
|
|
4939
|
-
}
|
|
5618
|
+
}> | null | undefined;
|
|
5619
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5620
|
+
password: string;
|
|
5621
|
+
email: string;
|
|
5622
|
+
token: string;
|
|
5623
|
+
username: string;
|
|
5624
|
+
apiToken: string;
|
|
4940
5625
|
flags?: number | null | undefined;
|
|
4941
5626
|
connections?: {
|
|
4942
5627
|
discord?: {
|
|
@@ -4950,13 +5635,7 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4950
5635
|
verified?: boolean | null | undefined;
|
|
4951
5636
|
} | null | undefined;
|
|
4952
5637
|
} | null | undefined;
|
|
4953
|
-
|
|
4954
|
-
password: string;
|
|
4955
|
-
email: string;
|
|
4956
|
-
token: string;
|
|
4957
|
-
username: string;
|
|
4958
|
-
apiToken: string;
|
|
4959
|
-
applications: import("mongoose").Types.DocumentArray<{
|
|
5638
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
4960
5639
|
id: import("mongoose").Types.ObjectId;
|
|
4961
5640
|
scopes: number;
|
|
4962
5641
|
token: string;
|
|
@@ -4971,7 +5650,13 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4971
5650
|
scopes: number;
|
|
4972
5651
|
token: string;
|
|
4973
5652
|
_id?: unknown;
|
|
4974
|
-
}
|
|
5653
|
+
}> | null | undefined;
|
|
5654
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5655
|
+
password: string;
|
|
5656
|
+
email: string;
|
|
5657
|
+
token: string;
|
|
5658
|
+
username: string;
|
|
5659
|
+
apiToken: string;
|
|
4975
5660
|
flags?: number | null | undefined;
|
|
4976
5661
|
connections?: {
|
|
4977
5662
|
discord?: {
|
|
@@ -4985,11 +5670,114 @@ export declare const UserModel: import("mongoose").Model<{
|
|
|
4985
5670
|
verified?: boolean | null | undefined;
|
|
4986
5671
|
} | null | undefined;
|
|
4987
5672
|
} | null | undefined;
|
|
5673
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
5674
|
+
id: import("mongoose").Types.ObjectId;
|
|
5675
|
+
scopes: number;
|
|
5676
|
+
token: string;
|
|
5677
|
+
_id?: unknown;
|
|
5678
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5679
|
+
id: import("mongoose").Types.ObjectId;
|
|
5680
|
+
scopes: number;
|
|
5681
|
+
token: string;
|
|
5682
|
+
_id?: unknown;
|
|
5683
|
+
}> & {
|
|
5684
|
+
id: import("mongoose").Types.ObjectId;
|
|
5685
|
+
scopes: number;
|
|
5686
|
+
token: string;
|
|
5687
|
+
_id?: unknown;
|
|
5688
|
+
}> | null | undefined;
|
|
4988
5689
|
}> & {
|
|
4989
5690
|
_id: import("mongoose").Types.ObjectId;
|
|
4990
5691
|
} & {
|
|
4991
5692
|
__v: number;
|
|
4992
|
-
})
|
|
5693
|
+
}, any>, id: string, auth: string) => Promise<{
|
|
5694
|
+
user: (import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
5695
|
+
password: string;
|
|
5696
|
+
email: string;
|
|
5697
|
+
token: string;
|
|
5698
|
+
username: string;
|
|
5699
|
+
apiToken: string;
|
|
5700
|
+
flags?: number | null | undefined;
|
|
5701
|
+
connections?: {
|
|
5702
|
+
discord?: {
|
|
5703
|
+
id?: string | null | undefined;
|
|
5704
|
+
username?: string | null | undefined;
|
|
5705
|
+
verified?: boolean | null | undefined;
|
|
5706
|
+
} | null | undefined;
|
|
5707
|
+
epic?: {
|
|
5708
|
+
id?: string | null | undefined;
|
|
5709
|
+
username?: string | null | undefined;
|
|
5710
|
+
verified?: boolean | null | undefined;
|
|
5711
|
+
} | null | undefined;
|
|
5712
|
+
} | null | undefined;
|
|
5713
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
5714
|
+
id: import("mongoose").Types.ObjectId;
|
|
5715
|
+
scopes: number;
|
|
5716
|
+
token: string;
|
|
5717
|
+
_id?: unknown;
|
|
5718
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5719
|
+
id: import("mongoose").Types.ObjectId;
|
|
5720
|
+
scopes: number;
|
|
5721
|
+
token: string;
|
|
5722
|
+
_id?: unknown;
|
|
5723
|
+
}> & {
|
|
5724
|
+
id: import("mongoose").Types.ObjectId;
|
|
5725
|
+
scopes: number;
|
|
5726
|
+
token: string;
|
|
5727
|
+
_id?: unknown;
|
|
5728
|
+
}> | null | undefined;
|
|
5729
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
5730
|
+
password: string;
|
|
5731
|
+
email: string;
|
|
5732
|
+
token: string;
|
|
5733
|
+
username: string;
|
|
5734
|
+
apiToken: string;
|
|
5735
|
+
flags?: number | null | undefined;
|
|
5736
|
+
connections?: {
|
|
5737
|
+
discord?: {
|
|
5738
|
+
id?: string | null | undefined;
|
|
5739
|
+
username?: string | null | undefined;
|
|
5740
|
+
verified?: boolean | null | undefined;
|
|
5741
|
+
} | null | undefined;
|
|
5742
|
+
epic?: {
|
|
5743
|
+
id?: string | null | undefined;
|
|
5744
|
+
username?: string | null | undefined;
|
|
5745
|
+
verified?: boolean | null | undefined;
|
|
5746
|
+
} | null | undefined;
|
|
5747
|
+
} | null | undefined;
|
|
5748
|
+
applications?: import("mongoose").Types.DocumentArray<{
|
|
5749
|
+
id: import("mongoose").Types.ObjectId;
|
|
5750
|
+
scopes: number;
|
|
5751
|
+
token: string;
|
|
5752
|
+
_id?: unknown;
|
|
5753
|
+
}, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5754
|
+
id: import("mongoose").Types.ObjectId;
|
|
5755
|
+
scopes: number;
|
|
5756
|
+
token: string;
|
|
5757
|
+
_id?: unknown;
|
|
5758
|
+
}> & {
|
|
5759
|
+
id: import("mongoose").Types.ObjectId;
|
|
5760
|
+
scopes: number;
|
|
5761
|
+
token: string;
|
|
5762
|
+
_id?: unknown;
|
|
5763
|
+
}> | null | undefined;
|
|
5764
|
+
}> & {
|
|
5765
|
+
_id: import("mongoose").Types.ObjectId;
|
|
5766
|
+
} & {
|
|
5767
|
+
__v: number;
|
|
5768
|
+
}) | null;
|
|
5769
|
+
app: import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
|
|
5770
|
+
id: import("mongoose").Types.ObjectId;
|
|
5771
|
+
scopes: number;
|
|
5772
|
+
token: string;
|
|
5773
|
+
_id?: unknown;
|
|
5774
|
+
}> & {
|
|
5775
|
+
id: import("mongoose").Types.ObjectId;
|
|
5776
|
+
scopes: number;
|
|
5777
|
+
token: string;
|
|
5778
|
+
_id?: unknown;
|
|
5779
|
+
};
|
|
5780
|
+
} | null>;
|
|
4993
5781
|
};
|
|
4994
5782
|
export declare enum DatabaseErrors {
|
|
4995
5783
|
InternalError = 1,
|