@appweaver/data 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/config.d.ts +2 -0
  2. package/config.js +2 -0
  3. package/database/prisma-database.js +7 -1
  4. package/database/sqlserver-extension.d.ts +18 -0
  5. package/database/sqlserver-extension.js +269 -0
  6. package/factory/create-model.js +60 -1
  7. package/index.d.ts +1 -0
  8. package/index.js +1 -0
  9. package/module.js +19 -2
  10. package/package.json +3 -3
  11. package/prisma/client/browser.d.ts +10 -0
  12. package/prisma/client/client.d.ts +10 -0
  13. package/prisma/client/commonInputTypes.d.ts +81 -0
  14. package/prisma/client/enums.d.ts +6 -1
  15. package/prisma/client/enums.js +6 -0
  16. package/prisma/client/internal/class.d.ts +22 -0
  17. package/prisma/client/internal/class.js +4 -4
  18. package/prisma/client/internal/prismaNamespace.d.ts +175 -1
  19. package/prisma/client/internal/prismaNamespace.js +19 -1
  20. package/prisma/client/internal/prismaNamespaceBrowser.d.ts +20 -0
  21. package/prisma/client/internal/prismaNamespaceBrowser.js +19 -1
  22. package/prisma/client/models/TwoFactorMethod.d.ts +1140 -0
  23. package/prisma/client/models/TwoFactorMethod.js +2 -0
  24. package/prisma/client/models/TwoFactorRecoveryCode.d.ts +1005 -0
  25. package/prisma/client/models/TwoFactorRecoveryCode.js +2 -0
  26. package/prisma/client/models.d.ts +2 -0
  27. package/resource/resource-service.js +4 -0
  28. package/resource/utils/prune-util.js +3 -1
  29. package/resources.d.ts +4 -0
  30. package/resources.js +17 -9
  31. package/security/auth-config.d.ts +3 -0
  32. package/security/auth-config.js +6 -1
  33. package/security/create-auth-resources.d.ts +3 -3
  34. package/security/create-auth-resources.js +44 -7
  35. package/security/helper.d.ts +6 -0
  36. package/security/helper.js +11 -0
  37. package/security/resources/two-factor-method/model.d.ts +2 -0
  38. package/security/resources/two-factor-method/model.js +64 -0
  39. package/security/resources/two-factor-method/service.d.ts +2 -0
  40. package/security/resources/two-factor-method/service.js +7 -0
  41. package/security/resources/two-factor-recovery-code/model.d.ts +2 -0
  42. package/security/resources/two-factor-recovery-code/model.js +49 -0
  43. package/security/resources/two-factor-recovery-code/service.d.ts +2 -0
  44. package/security/resources/two-factor-recovery-code/service.js +7 -0
  45. package/security/store/database-security-store.d.ts +2 -2
  46. package/security/store/database-security-store.js +11 -1
  47. package/seeder/create-seeder.js +5 -1
  48. package/timeseries/database-series-config.d.ts +5 -0
  49. package/timeseries/database-series-config.js +15 -0
  50. package/timeseries/database-time-series.d.ts +36 -0
  51. package/timeseries/database-time-series.js +158 -0
  52. package/timeseries/index.d.ts +2 -0
  53. package/timeseries/index.js +18 -0
  54. package/timeseries/timescale-config.d.ts +6 -0
  55. package/timeseries/timescale-config.js +19 -0
  56. package/timeseries/timescale-time-series.d.ts +19 -0
  57. package/timeseries/timescale-time-series.js +131 -0
  58. package/timeseries/utils/series-sql-util.d.ts +90 -0
  59. package/timeseries/utils/series-sql-util.js +313 -0
  60. package/types/generated.d.ts +92 -0
@@ -0,0 +1,1005 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model TwoFactorRecoveryCode
5
+ *
6
+ */
7
+ export type TwoFactorRecoveryCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$TwoFactorRecoveryCodePayload>;
8
+ export type AggregateTwoFactorRecoveryCode = {
9
+ _count: TwoFactorRecoveryCodeCountAggregateOutputType | null;
10
+ _avg: TwoFactorRecoveryCodeAvgAggregateOutputType | null;
11
+ _sum: TwoFactorRecoveryCodeSumAggregateOutputType | null;
12
+ _min: TwoFactorRecoveryCodeMinAggregateOutputType | null;
13
+ _max: TwoFactorRecoveryCodeMaxAggregateOutputType | null;
14
+ };
15
+ export type TwoFactorRecoveryCodeAvgAggregateOutputType = {
16
+ id: number | null;
17
+ };
18
+ export type TwoFactorRecoveryCodeSumAggregateOutputType = {
19
+ id: number | null;
20
+ };
21
+ export type TwoFactorRecoveryCodeMinAggregateOutputType = {
22
+ id: number | null;
23
+ codeHash: string | null;
24
+ usedAt: Date | null;
25
+ createdAt: Date | null;
26
+ };
27
+ export type TwoFactorRecoveryCodeMaxAggregateOutputType = {
28
+ id: number | null;
29
+ codeHash: string | null;
30
+ usedAt: Date | null;
31
+ createdAt: Date | null;
32
+ };
33
+ export type TwoFactorRecoveryCodeCountAggregateOutputType = {
34
+ id: number;
35
+ codeHash: number;
36
+ usedAt: number;
37
+ createdAt: number;
38
+ _all: number;
39
+ };
40
+ export type TwoFactorRecoveryCodeAvgAggregateInputType = {
41
+ id?: true;
42
+ };
43
+ export type TwoFactorRecoveryCodeSumAggregateInputType = {
44
+ id?: true;
45
+ };
46
+ export type TwoFactorRecoveryCodeMinAggregateInputType = {
47
+ id?: true;
48
+ codeHash?: true;
49
+ usedAt?: true;
50
+ createdAt?: true;
51
+ };
52
+ export type TwoFactorRecoveryCodeMaxAggregateInputType = {
53
+ id?: true;
54
+ codeHash?: true;
55
+ usedAt?: true;
56
+ createdAt?: true;
57
+ };
58
+ export type TwoFactorRecoveryCodeCountAggregateInputType = {
59
+ id?: true;
60
+ codeHash?: true;
61
+ usedAt?: true;
62
+ createdAt?: true;
63
+ _all?: true;
64
+ };
65
+ export type TwoFactorRecoveryCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
+ /**
67
+ * Filter which TwoFactorRecoveryCode to aggregate.
68
+ */
69
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
72
+ *
73
+ * Determine the order of TwoFactorRecoveryCodes to fetch.
74
+ */
75
+ orderBy?: Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput | Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput[];
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
78
+ *
79
+ * Sets the start position
80
+ */
81
+ cursor?: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Take `±n` TwoFactorRecoveryCodes from the position of the cursor.
86
+ */
87
+ take?: number;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
90
+ *
91
+ * Skip the first `n` TwoFactorRecoveryCodes.
92
+ */
93
+ skip?: number;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Count returned TwoFactorRecoveryCodes
98
+ **/
99
+ _count?: true | TwoFactorRecoveryCodeCountAggregateInputType;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
+ *
103
+ * Select which fields to average
104
+ **/
105
+ _avg?: TwoFactorRecoveryCodeAvgAggregateInputType;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
+ *
109
+ * Select which fields to sum
110
+ **/
111
+ _sum?: TwoFactorRecoveryCodeSumAggregateInputType;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
+ *
115
+ * Select which fields to find the minimum value
116
+ **/
117
+ _min?: TwoFactorRecoveryCodeMinAggregateInputType;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
+ *
121
+ * Select which fields to find the maximum value
122
+ **/
123
+ _max?: TwoFactorRecoveryCodeMaxAggregateInputType;
124
+ };
125
+ export type GetTwoFactorRecoveryCodeAggregateType<T extends TwoFactorRecoveryCodeAggregateArgs> = {
126
+ [P in keyof T & keyof AggregateTwoFactorRecoveryCode]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateTwoFactorRecoveryCode[P]> : Prisma.GetScalarType<T[P], AggregateTwoFactorRecoveryCode[P]>;
127
+ };
128
+ export type TwoFactorRecoveryCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
129
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
130
+ orderBy?: Prisma.TwoFactorRecoveryCodeOrderByWithAggregationInput | Prisma.TwoFactorRecoveryCodeOrderByWithAggregationInput[];
131
+ by: Prisma.TwoFactorRecoveryCodeScalarFieldEnum[] | Prisma.TwoFactorRecoveryCodeScalarFieldEnum;
132
+ having?: Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput;
133
+ take?: number;
134
+ skip?: number;
135
+ _count?: TwoFactorRecoveryCodeCountAggregateInputType | true;
136
+ _avg?: TwoFactorRecoveryCodeAvgAggregateInputType;
137
+ _sum?: TwoFactorRecoveryCodeSumAggregateInputType;
138
+ _min?: TwoFactorRecoveryCodeMinAggregateInputType;
139
+ _max?: TwoFactorRecoveryCodeMaxAggregateInputType;
140
+ };
141
+ export type TwoFactorRecoveryCodeGroupByOutputType = {
142
+ id: number;
143
+ codeHash: string;
144
+ usedAt: Date | null;
145
+ createdAt: Date;
146
+ _count: TwoFactorRecoveryCodeCountAggregateOutputType | null;
147
+ _avg: TwoFactorRecoveryCodeAvgAggregateOutputType | null;
148
+ _sum: TwoFactorRecoveryCodeSumAggregateOutputType | null;
149
+ _min: TwoFactorRecoveryCodeMinAggregateOutputType | null;
150
+ _max: TwoFactorRecoveryCodeMaxAggregateOutputType | null;
151
+ };
152
+ export type GetTwoFactorRecoveryCodeGroupByPayload<T extends TwoFactorRecoveryCodeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<TwoFactorRecoveryCodeGroupByOutputType, T['by']> & {
153
+ [P in ((keyof T) & (keyof TwoFactorRecoveryCodeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], TwoFactorRecoveryCodeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], TwoFactorRecoveryCodeGroupByOutputType[P]>;
154
+ }>>;
155
+ export type TwoFactorRecoveryCodeWhereInput = {
156
+ AND?: Prisma.TwoFactorRecoveryCodeWhereInput | Prisma.TwoFactorRecoveryCodeWhereInput[];
157
+ OR?: Prisma.TwoFactorRecoveryCodeWhereInput[];
158
+ NOT?: Prisma.TwoFactorRecoveryCodeWhereInput | Prisma.TwoFactorRecoveryCodeWhereInput[];
159
+ id?: Prisma.IntFilter<"TwoFactorRecoveryCode"> | number;
160
+ codeHash?: Prisma.StringFilter<"TwoFactorRecoveryCode"> | string;
161
+ usedAt?: Prisma.DateTimeNullableFilter<"TwoFactorRecoveryCode"> | Date | string | null;
162
+ createdAt?: Prisma.DateTimeFilter<"TwoFactorRecoveryCode"> | Date | string;
163
+ };
164
+ export type TwoFactorRecoveryCodeOrderByWithRelationInput = {
165
+ id?: Prisma.SortOrder;
166
+ codeHash?: Prisma.SortOrder;
167
+ usedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
168
+ createdAt?: Prisma.SortOrder;
169
+ };
170
+ export type TwoFactorRecoveryCodeWhereUniqueInput = Prisma.AtLeast<{
171
+ id?: number;
172
+ codeHash?: string;
173
+ AND?: Prisma.TwoFactorRecoveryCodeWhereInput | Prisma.TwoFactorRecoveryCodeWhereInput[];
174
+ OR?: Prisma.TwoFactorRecoveryCodeWhereInput[];
175
+ NOT?: Prisma.TwoFactorRecoveryCodeWhereInput | Prisma.TwoFactorRecoveryCodeWhereInput[];
176
+ usedAt?: Prisma.DateTimeNullableFilter<"TwoFactorRecoveryCode"> | Date | string | null;
177
+ createdAt?: Prisma.DateTimeFilter<"TwoFactorRecoveryCode"> | Date | string;
178
+ }, "id" | "codeHash">;
179
+ export type TwoFactorRecoveryCodeOrderByWithAggregationInput = {
180
+ id?: Prisma.SortOrder;
181
+ codeHash?: Prisma.SortOrder;
182
+ usedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
183
+ createdAt?: Prisma.SortOrder;
184
+ _count?: Prisma.TwoFactorRecoveryCodeCountOrderByAggregateInput;
185
+ _avg?: Prisma.TwoFactorRecoveryCodeAvgOrderByAggregateInput;
186
+ _max?: Prisma.TwoFactorRecoveryCodeMaxOrderByAggregateInput;
187
+ _min?: Prisma.TwoFactorRecoveryCodeMinOrderByAggregateInput;
188
+ _sum?: Prisma.TwoFactorRecoveryCodeSumOrderByAggregateInput;
189
+ };
190
+ export type TwoFactorRecoveryCodeScalarWhereWithAggregatesInput = {
191
+ AND?: Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput | Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput[];
192
+ OR?: Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput[];
193
+ NOT?: Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput | Prisma.TwoFactorRecoveryCodeScalarWhereWithAggregatesInput[];
194
+ id?: Prisma.IntWithAggregatesFilter<"TwoFactorRecoveryCode"> | number;
195
+ codeHash?: Prisma.StringWithAggregatesFilter<"TwoFactorRecoveryCode"> | string;
196
+ usedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TwoFactorRecoveryCode"> | Date | string | null;
197
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"TwoFactorRecoveryCode"> | Date | string;
198
+ };
199
+ export type TwoFactorRecoveryCodeCreateInput = {
200
+ codeHash: string;
201
+ usedAt?: Date | string | null;
202
+ createdAt?: Date | string;
203
+ };
204
+ export type TwoFactorRecoveryCodeUncheckedCreateInput = {
205
+ id?: number;
206
+ codeHash: string;
207
+ usedAt?: Date | string | null;
208
+ createdAt?: Date | string;
209
+ };
210
+ export type TwoFactorRecoveryCodeUpdateInput = {
211
+ codeHash?: Prisma.StringFieldUpdateOperationsInput | string;
212
+ usedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
213
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
214
+ };
215
+ export type TwoFactorRecoveryCodeUncheckedUpdateInput = {
216
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
217
+ codeHash?: Prisma.StringFieldUpdateOperationsInput | string;
218
+ usedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
219
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
220
+ };
221
+ export type TwoFactorRecoveryCodeCreateManyInput = {
222
+ id?: number;
223
+ codeHash: string;
224
+ usedAt?: Date | string | null;
225
+ createdAt?: Date | string;
226
+ };
227
+ export type TwoFactorRecoveryCodeUpdateManyMutationInput = {
228
+ codeHash?: Prisma.StringFieldUpdateOperationsInput | string;
229
+ usedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
230
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
231
+ };
232
+ export type TwoFactorRecoveryCodeUncheckedUpdateManyInput = {
233
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
234
+ codeHash?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ usedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
236
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
237
+ };
238
+ export type TwoFactorRecoveryCodeCountOrderByAggregateInput = {
239
+ id?: Prisma.SortOrder;
240
+ codeHash?: Prisma.SortOrder;
241
+ usedAt?: Prisma.SortOrder;
242
+ createdAt?: Prisma.SortOrder;
243
+ };
244
+ export type TwoFactorRecoveryCodeAvgOrderByAggregateInput = {
245
+ id?: Prisma.SortOrder;
246
+ };
247
+ export type TwoFactorRecoveryCodeMaxOrderByAggregateInput = {
248
+ id?: Prisma.SortOrder;
249
+ codeHash?: Prisma.SortOrder;
250
+ usedAt?: Prisma.SortOrder;
251
+ createdAt?: Prisma.SortOrder;
252
+ };
253
+ export type TwoFactorRecoveryCodeMinOrderByAggregateInput = {
254
+ id?: Prisma.SortOrder;
255
+ codeHash?: Prisma.SortOrder;
256
+ usedAt?: Prisma.SortOrder;
257
+ createdAt?: Prisma.SortOrder;
258
+ };
259
+ export type TwoFactorRecoveryCodeSumOrderByAggregateInput = {
260
+ id?: Prisma.SortOrder;
261
+ };
262
+ export type TwoFactorRecoveryCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
263
+ id?: boolean;
264
+ codeHash?: boolean;
265
+ usedAt?: boolean;
266
+ createdAt?: boolean;
267
+ }, ExtArgs["result"]["twoFactorRecoveryCode"]>;
268
+ export type TwoFactorRecoveryCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
269
+ id?: boolean;
270
+ codeHash?: boolean;
271
+ usedAt?: boolean;
272
+ createdAt?: boolean;
273
+ }, ExtArgs["result"]["twoFactorRecoveryCode"]>;
274
+ export type TwoFactorRecoveryCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
275
+ id?: boolean;
276
+ codeHash?: boolean;
277
+ usedAt?: boolean;
278
+ createdAt?: boolean;
279
+ }, ExtArgs["result"]["twoFactorRecoveryCode"]>;
280
+ export type TwoFactorRecoveryCodeSelectScalar = {
281
+ id?: boolean;
282
+ codeHash?: boolean;
283
+ usedAt?: boolean;
284
+ createdAt?: boolean;
285
+ };
286
+ export type TwoFactorRecoveryCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "codeHash" | "usedAt" | "createdAt", ExtArgs["result"]["twoFactorRecoveryCode"]>;
287
+ export type $TwoFactorRecoveryCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
288
+ name: "TwoFactorRecoveryCode";
289
+ objects: {};
290
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
291
+ id: number;
292
+ codeHash: string;
293
+ usedAt: Date | null;
294
+ /**
295
+ * Audit columns
296
+ */
297
+ createdAt: Date;
298
+ }, ExtArgs["result"]["twoFactorRecoveryCode"]>;
299
+ composites: {};
300
+ };
301
+ export type TwoFactorRecoveryCodeGetPayload<S extends boolean | null | undefined | TwoFactorRecoveryCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload, S>;
302
+ export type TwoFactorRecoveryCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<TwoFactorRecoveryCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
303
+ select?: TwoFactorRecoveryCodeCountAggregateInputType | true;
304
+ };
305
+ export interface TwoFactorRecoveryCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
306
+ [K: symbol]: {
307
+ types: Prisma.TypeMap<ExtArgs>['model']['TwoFactorRecoveryCode'];
308
+ meta: {
309
+ name: 'TwoFactorRecoveryCode';
310
+ };
311
+ };
312
+ /**
313
+ * Find zero or one TwoFactorRecoveryCode that matches the filter.
314
+ * @param {TwoFactorRecoveryCodeFindUniqueArgs} args - Arguments to find a TwoFactorRecoveryCode
315
+ * @example
316
+ * // Get one TwoFactorRecoveryCode
317
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.findUnique({
318
+ * where: {
319
+ * // ... provide filter here
320
+ * }
321
+ * })
322
+ */
323
+ findUnique<T extends TwoFactorRecoveryCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
324
+ /**
325
+ * Find one TwoFactorRecoveryCode that matches the filter or throw an error with `error.code='P2025'`
326
+ * if no matches were found.
327
+ * @param {TwoFactorRecoveryCodeFindUniqueOrThrowArgs} args - Arguments to find a TwoFactorRecoveryCode
328
+ * @example
329
+ * // Get one TwoFactorRecoveryCode
330
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.findUniqueOrThrow({
331
+ * where: {
332
+ * // ... provide filter here
333
+ * }
334
+ * })
335
+ */
336
+ findUniqueOrThrow<T extends TwoFactorRecoveryCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
337
+ /**
338
+ * Find the first TwoFactorRecoveryCode that matches the filter.
339
+ * Note, that providing `undefined` is treated as the value not being there.
340
+ * Read more here: https://pris.ly/d/null-undefined
341
+ * @param {TwoFactorRecoveryCodeFindFirstArgs} args - Arguments to find a TwoFactorRecoveryCode
342
+ * @example
343
+ * // Get one TwoFactorRecoveryCode
344
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.findFirst({
345
+ * where: {
346
+ * // ... provide filter here
347
+ * }
348
+ * })
349
+ */
350
+ findFirst<T extends TwoFactorRecoveryCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
351
+ /**
352
+ * Find the first TwoFactorRecoveryCode that matches the filter or
353
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
354
+ * Note, that providing `undefined` is treated as the value not being there.
355
+ * Read more here: https://pris.ly/d/null-undefined
356
+ * @param {TwoFactorRecoveryCodeFindFirstOrThrowArgs} args - Arguments to find a TwoFactorRecoveryCode
357
+ * @example
358
+ * // Get one TwoFactorRecoveryCode
359
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.findFirstOrThrow({
360
+ * where: {
361
+ * // ... provide filter here
362
+ * }
363
+ * })
364
+ */
365
+ findFirstOrThrow<T extends TwoFactorRecoveryCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
366
+ /**
367
+ * Find zero or more TwoFactorRecoveryCodes that matches the filter.
368
+ * Note, that providing `undefined` is treated as the value not being there.
369
+ * Read more here: https://pris.ly/d/null-undefined
370
+ * @param {TwoFactorRecoveryCodeFindManyArgs} args - Arguments to filter and select certain fields only.
371
+ * @example
372
+ * // Get all TwoFactorRecoveryCodes
373
+ * const twoFactorRecoveryCodes = await prisma.twoFactorRecoveryCode.findMany()
374
+ *
375
+ * // Get first 10 TwoFactorRecoveryCodes
376
+ * const twoFactorRecoveryCodes = await prisma.twoFactorRecoveryCode.findMany({ take: 10 })
377
+ *
378
+ * // Only select the `id`
379
+ * const twoFactorRecoveryCodeWithIdOnly = await prisma.twoFactorRecoveryCode.findMany({ select: { id: true } })
380
+ *
381
+ */
382
+ findMany<T extends TwoFactorRecoveryCodeFindManyArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
383
+ /**
384
+ * Create a TwoFactorRecoveryCode.
385
+ * @param {TwoFactorRecoveryCodeCreateArgs} args - Arguments to create a TwoFactorRecoveryCode.
386
+ * @example
387
+ * // Create one TwoFactorRecoveryCode
388
+ * const TwoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.create({
389
+ * data: {
390
+ * // ... data to create a TwoFactorRecoveryCode
391
+ * }
392
+ * })
393
+ *
394
+ */
395
+ create<T extends TwoFactorRecoveryCodeCreateArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeCreateArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
396
+ /**
397
+ * Create many TwoFactorRecoveryCodes.
398
+ * @param {TwoFactorRecoveryCodeCreateManyArgs} args - Arguments to create many TwoFactorRecoveryCodes.
399
+ * @example
400
+ * // Create many TwoFactorRecoveryCodes
401
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.createMany({
402
+ * data: [
403
+ * // ... provide data here
404
+ * ]
405
+ * })
406
+ *
407
+ */
408
+ createMany<T extends TwoFactorRecoveryCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
409
+ /**
410
+ * Create many TwoFactorRecoveryCodes and returns the data saved in the database.
411
+ * @param {TwoFactorRecoveryCodeCreateManyAndReturnArgs} args - Arguments to create many TwoFactorRecoveryCodes.
412
+ * @example
413
+ * // Create many TwoFactorRecoveryCodes
414
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.createManyAndReturn({
415
+ * data: [
416
+ * // ... provide data here
417
+ * ]
418
+ * })
419
+ *
420
+ * // Create many TwoFactorRecoveryCodes and only return the `id`
421
+ * const twoFactorRecoveryCodeWithIdOnly = await prisma.twoFactorRecoveryCode.createManyAndReturn({
422
+ * select: { id: true },
423
+ * data: [
424
+ * // ... provide data here
425
+ * ]
426
+ * })
427
+ * Note, that providing `undefined` is treated as the value not being there.
428
+ * Read more here: https://pris.ly/d/null-undefined
429
+ *
430
+ */
431
+ createManyAndReturn<T extends TwoFactorRecoveryCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
432
+ /**
433
+ * Delete a TwoFactorRecoveryCode.
434
+ * @param {TwoFactorRecoveryCodeDeleteArgs} args - Arguments to delete one TwoFactorRecoveryCode.
435
+ * @example
436
+ * // Delete one TwoFactorRecoveryCode
437
+ * const TwoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.delete({
438
+ * where: {
439
+ * // ... filter to delete one TwoFactorRecoveryCode
440
+ * }
441
+ * })
442
+ *
443
+ */
444
+ delete<T extends TwoFactorRecoveryCodeDeleteArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
445
+ /**
446
+ * Update one TwoFactorRecoveryCode.
447
+ * @param {TwoFactorRecoveryCodeUpdateArgs} args - Arguments to update one TwoFactorRecoveryCode.
448
+ * @example
449
+ * // Update one TwoFactorRecoveryCode
450
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.update({
451
+ * where: {
452
+ * // ... provide filter here
453
+ * },
454
+ * data: {
455
+ * // ... provide data here
456
+ * }
457
+ * })
458
+ *
459
+ */
460
+ update<T extends TwoFactorRecoveryCodeUpdateArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
461
+ /**
462
+ * Delete zero or more TwoFactorRecoveryCodes.
463
+ * @param {TwoFactorRecoveryCodeDeleteManyArgs} args - Arguments to filter TwoFactorRecoveryCodes to delete.
464
+ * @example
465
+ * // Delete a few TwoFactorRecoveryCodes
466
+ * const { count } = await prisma.twoFactorRecoveryCode.deleteMany({
467
+ * where: {
468
+ * // ... provide filter here
469
+ * }
470
+ * })
471
+ *
472
+ */
473
+ deleteMany<T extends TwoFactorRecoveryCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, TwoFactorRecoveryCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
474
+ /**
475
+ * Update zero or more TwoFactorRecoveryCodes.
476
+ * Note, that providing `undefined` is treated as the value not being there.
477
+ * Read more here: https://pris.ly/d/null-undefined
478
+ * @param {TwoFactorRecoveryCodeUpdateManyArgs} args - Arguments to update one or more rows.
479
+ * @example
480
+ * // Update many TwoFactorRecoveryCodes
481
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.updateMany({
482
+ * where: {
483
+ * // ... provide filter here
484
+ * },
485
+ * data: {
486
+ * // ... provide data here
487
+ * }
488
+ * })
489
+ *
490
+ */
491
+ updateMany<T extends TwoFactorRecoveryCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
492
+ /**
493
+ * Update zero or more TwoFactorRecoveryCodes and returns the data updated in the database.
494
+ * @param {TwoFactorRecoveryCodeUpdateManyAndReturnArgs} args - Arguments to update many TwoFactorRecoveryCodes.
495
+ * @example
496
+ * // Update many TwoFactorRecoveryCodes
497
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.updateManyAndReturn({
498
+ * where: {
499
+ * // ... provide filter here
500
+ * },
501
+ * data: [
502
+ * // ... provide data here
503
+ * ]
504
+ * })
505
+ *
506
+ * // Update zero or more TwoFactorRecoveryCodes and only return the `id`
507
+ * const twoFactorRecoveryCodeWithIdOnly = await prisma.twoFactorRecoveryCode.updateManyAndReturn({
508
+ * select: { id: true },
509
+ * where: {
510
+ * // ... provide filter here
511
+ * },
512
+ * data: [
513
+ * // ... provide data here
514
+ * ]
515
+ * })
516
+ * Note, that providing `undefined` is treated as the value not being there.
517
+ * Read more here: https://pris.ly/d/null-undefined
518
+ *
519
+ */
520
+ updateManyAndReturn<T extends TwoFactorRecoveryCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
521
+ /**
522
+ * Create or update one TwoFactorRecoveryCode.
523
+ * @param {TwoFactorRecoveryCodeUpsertArgs} args - Arguments to update or create a TwoFactorRecoveryCode.
524
+ * @example
525
+ * // Update or create a TwoFactorRecoveryCode
526
+ * const twoFactorRecoveryCode = await prisma.twoFactorRecoveryCode.upsert({
527
+ * create: {
528
+ * // ... data to create a TwoFactorRecoveryCode
529
+ * },
530
+ * update: {
531
+ * // ... in case it already exists, update
532
+ * },
533
+ * where: {
534
+ * // ... the filter for the TwoFactorRecoveryCode we want to update
535
+ * }
536
+ * })
537
+ */
538
+ upsert<T extends TwoFactorRecoveryCodeUpsertArgs>(args: Prisma.SelectSubset<T, TwoFactorRecoveryCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__TwoFactorRecoveryCodeClient<runtime.Types.Result.GetResult<Prisma.$TwoFactorRecoveryCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
539
+ /**
540
+ * Count the number of TwoFactorRecoveryCodes.
541
+ * Note, that providing `undefined` is treated as the value not being there.
542
+ * Read more here: https://pris.ly/d/null-undefined
543
+ * @param {TwoFactorRecoveryCodeCountArgs} args - Arguments to filter TwoFactorRecoveryCodes to count.
544
+ * @example
545
+ * // Count the number of TwoFactorRecoveryCodes
546
+ * const count = await prisma.twoFactorRecoveryCode.count({
547
+ * where: {
548
+ * // ... the filter for the TwoFactorRecoveryCodes we want to count
549
+ * }
550
+ * })
551
+ **/
552
+ count<T extends TwoFactorRecoveryCodeCountArgs>(args?: Prisma.Subset<T, TwoFactorRecoveryCodeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], TwoFactorRecoveryCodeCountAggregateOutputType> : number>;
553
+ /**
554
+ * Allows you to perform aggregations operations on a TwoFactorRecoveryCode.
555
+ * Note, that providing `undefined` is treated as the value not being there.
556
+ * Read more here: https://pris.ly/d/null-undefined
557
+ * @param {TwoFactorRecoveryCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
558
+ * @example
559
+ * // Ordered by age ascending
560
+ * // Where email contains prisma.io
561
+ * // Limited to the 10 users
562
+ * const aggregations = await prisma.user.aggregate({
563
+ * _avg: {
564
+ * age: true,
565
+ * },
566
+ * where: {
567
+ * email: {
568
+ * contains: "prisma.io",
569
+ * },
570
+ * },
571
+ * orderBy: {
572
+ * age: "asc",
573
+ * },
574
+ * take: 10,
575
+ * })
576
+ **/
577
+ aggregate<T extends TwoFactorRecoveryCodeAggregateArgs>(args: Prisma.Subset<T, TwoFactorRecoveryCodeAggregateArgs>): Prisma.PrismaPromise<GetTwoFactorRecoveryCodeAggregateType<T>>;
578
+ /**
579
+ * Group by TwoFactorRecoveryCode.
580
+ * Note, that providing `undefined` is treated as the value not being there.
581
+ * Read more here: https://pris.ly/d/null-undefined
582
+ * @param {TwoFactorRecoveryCodeGroupByArgs} args - Group by arguments.
583
+ * @example
584
+ * // Group by city, order by createdAt, get count
585
+ * const result = await prisma.user.groupBy({
586
+ * by: ['city', 'createdAt'],
587
+ * orderBy: {
588
+ * createdAt: true
589
+ * },
590
+ * _count: {
591
+ * _all: true
592
+ * },
593
+ * })
594
+ *
595
+ **/
596
+ groupBy<T extends TwoFactorRecoveryCodeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
597
+ orderBy: TwoFactorRecoveryCodeGroupByArgs['orderBy'];
598
+ } : {
599
+ orderBy?: TwoFactorRecoveryCodeGroupByArgs['orderBy'];
600
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
601
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
602
+ Error,
603
+ 'Field ',
604
+ P,
605
+ ` in "having" needs to be provided in "by"`
606
+ ];
607
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
608
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
609
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
610
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
611
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
612
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
613
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, TwoFactorRecoveryCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTwoFactorRecoveryCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
614
+ /**
615
+ * Fields of the TwoFactorRecoveryCode model
616
+ */
617
+ readonly fields: TwoFactorRecoveryCodeFieldRefs;
618
+ }
619
+ /**
620
+ * The delegate class that acts as a "Promise-like" for TwoFactorRecoveryCode.
621
+ * Why is this prefixed with `Prisma__`?
622
+ * Because we want to prevent naming conflicts as mentioned in
623
+ * https://github.com/prisma/prisma-client-js/issues/707
624
+ */
625
+ export interface Prisma__TwoFactorRecoveryCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
626
+ readonly [Symbol.toStringTag]: "PrismaPromise";
627
+ /**
628
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
629
+ * @param onfulfilled The callback to execute when the Promise is resolved.
630
+ * @param onrejected The callback to execute when the Promise is rejected.
631
+ * @returns A Promise for the completion of which ever callback is executed.
632
+ */
633
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
634
+ /**
635
+ * Attaches a callback for only the rejection of the Promise.
636
+ * @param onrejected The callback to execute when the Promise is rejected.
637
+ * @returns A Promise for the completion of the callback.
638
+ */
639
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
640
+ /**
641
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
642
+ * resolved value cannot be modified from the callback.
643
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
644
+ * @returns A Promise for the completion of the callback.
645
+ */
646
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
647
+ }
648
+ /**
649
+ * Fields of the TwoFactorRecoveryCode model
650
+ */
651
+ export interface TwoFactorRecoveryCodeFieldRefs {
652
+ readonly id: Prisma.FieldRef<"TwoFactorRecoveryCode", 'Int'>;
653
+ readonly codeHash: Prisma.FieldRef<"TwoFactorRecoveryCode", 'String'>;
654
+ readonly usedAt: Prisma.FieldRef<"TwoFactorRecoveryCode", 'DateTime'>;
655
+ readonly createdAt: Prisma.FieldRef<"TwoFactorRecoveryCode", 'DateTime'>;
656
+ }
657
+ /**
658
+ * TwoFactorRecoveryCode findUnique
659
+ */
660
+ export type TwoFactorRecoveryCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
661
+ /**
662
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
663
+ */
664
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
665
+ /**
666
+ * Omit specific fields from the TwoFactorRecoveryCode
667
+ */
668
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
669
+ /**
670
+ * Filter, which TwoFactorRecoveryCode to fetch.
671
+ */
672
+ where: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
673
+ };
674
+ /**
675
+ * TwoFactorRecoveryCode findUniqueOrThrow
676
+ */
677
+ export type TwoFactorRecoveryCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
678
+ /**
679
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
680
+ */
681
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
682
+ /**
683
+ * Omit specific fields from the TwoFactorRecoveryCode
684
+ */
685
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
686
+ /**
687
+ * Filter, which TwoFactorRecoveryCode to fetch.
688
+ */
689
+ where: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
690
+ };
691
+ /**
692
+ * TwoFactorRecoveryCode findFirst
693
+ */
694
+ export type TwoFactorRecoveryCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
695
+ /**
696
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
697
+ */
698
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
699
+ /**
700
+ * Omit specific fields from the TwoFactorRecoveryCode
701
+ */
702
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
703
+ /**
704
+ * Filter, which TwoFactorRecoveryCode to fetch.
705
+ */
706
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
707
+ /**
708
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
709
+ *
710
+ * Determine the order of TwoFactorRecoveryCodes to fetch.
711
+ */
712
+ orderBy?: Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput | Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput[];
713
+ /**
714
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
715
+ *
716
+ * Sets the position for searching for TwoFactorRecoveryCodes.
717
+ */
718
+ cursor?: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
719
+ /**
720
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
721
+ *
722
+ * Take `±n` TwoFactorRecoveryCodes from the position of the cursor.
723
+ */
724
+ take?: number;
725
+ /**
726
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
727
+ *
728
+ * Skip the first `n` TwoFactorRecoveryCodes.
729
+ */
730
+ skip?: number;
731
+ /**
732
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
733
+ *
734
+ * Filter by unique combinations of TwoFactorRecoveryCodes.
735
+ */
736
+ distinct?: Prisma.TwoFactorRecoveryCodeScalarFieldEnum | Prisma.TwoFactorRecoveryCodeScalarFieldEnum[];
737
+ };
738
+ /**
739
+ * TwoFactorRecoveryCode findFirstOrThrow
740
+ */
741
+ export type TwoFactorRecoveryCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
742
+ /**
743
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
744
+ */
745
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
746
+ /**
747
+ * Omit specific fields from the TwoFactorRecoveryCode
748
+ */
749
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
750
+ /**
751
+ * Filter, which TwoFactorRecoveryCode to fetch.
752
+ */
753
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
754
+ /**
755
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
756
+ *
757
+ * Determine the order of TwoFactorRecoveryCodes to fetch.
758
+ */
759
+ orderBy?: Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput | Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput[];
760
+ /**
761
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
762
+ *
763
+ * Sets the position for searching for TwoFactorRecoveryCodes.
764
+ */
765
+ cursor?: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
766
+ /**
767
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
768
+ *
769
+ * Take `±n` TwoFactorRecoveryCodes from the position of the cursor.
770
+ */
771
+ take?: number;
772
+ /**
773
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
774
+ *
775
+ * Skip the first `n` TwoFactorRecoveryCodes.
776
+ */
777
+ skip?: number;
778
+ /**
779
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
780
+ *
781
+ * Filter by unique combinations of TwoFactorRecoveryCodes.
782
+ */
783
+ distinct?: Prisma.TwoFactorRecoveryCodeScalarFieldEnum | Prisma.TwoFactorRecoveryCodeScalarFieldEnum[];
784
+ };
785
+ /**
786
+ * TwoFactorRecoveryCode findMany
787
+ */
788
+ export type TwoFactorRecoveryCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
789
+ /**
790
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
791
+ */
792
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
793
+ /**
794
+ * Omit specific fields from the TwoFactorRecoveryCode
795
+ */
796
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
797
+ /**
798
+ * Filter, which TwoFactorRecoveryCodes to fetch.
799
+ */
800
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
801
+ /**
802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
803
+ *
804
+ * Determine the order of TwoFactorRecoveryCodes to fetch.
805
+ */
806
+ orderBy?: Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput | Prisma.TwoFactorRecoveryCodeOrderByWithRelationInput[];
807
+ /**
808
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
809
+ *
810
+ * Sets the position for listing TwoFactorRecoveryCodes.
811
+ */
812
+ cursor?: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
813
+ /**
814
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
815
+ *
816
+ * Take `±n` TwoFactorRecoveryCodes from the position of the cursor.
817
+ */
818
+ take?: number;
819
+ /**
820
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
821
+ *
822
+ * Skip the first `n` TwoFactorRecoveryCodes.
823
+ */
824
+ skip?: number;
825
+ /**
826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
827
+ *
828
+ * Filter by unique combinations of TwoFactorRecoveryCodes.
829
+ */
830
+ distinct?: Prisma.TwoFactorRecoveryCodeScalarFieldEnum | Prisma.TwoFactorRecoveryCodeScalarFieldEnum[];
831
+ };
832
+ /**
833
+ * TwoFactorRecoveryCode create
834
+ */
835
+ export type TwoFactorRecoveryCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
836
+ /**
837
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
838
+ */
839
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
840
+ /**
841
+ * Omit specific fields from the TwoFactorRecoveryCode
842
+ */
843
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
844
+ /**
845
+ * The data needed to create a TwoFactorRecoveryCode.
846
+ */
847
+ data: Prisma.XOR<Prisma.TwoFactorRecoveryCodeCreateInput, Prisma.TwoFactorRecoveryCodeUncheckedCreateInput>;
848
+ };
849
+ /**
850
+ * TwoFactorRecoveryCode createMany
851
+ */
852
+ export type TwoFactorRecoveryCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
853
+ /**
854
+ * The data used to create many TwoFactorRecoveryCodes.
855
+ */
856
+ data: Prisma.TwoFactorRecoveryCodeCreateManyInput | Prisma.TwoFactorRecoveryCodeCreateManyInput[];
857
+ };
858
+ /**
859
+ * TwoFactorRecoveryCode createManyAndReturn
860
+ */
861
+ export type TwoFactorRecoveryCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
862
+ /**
863
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
864
+ */
865
+ select?: Prisma.TwoFactorRecoveryCodeSelectCreateManyAndReturn<ExtArgs> | null;
866
+ /**
867
+ * Omit specific fields from the TwoFactorRecoveryCode
868
+ */
869
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
870
+ /**
871
+ * The data used to create many TwoFactorRecoveryCodes.
872
+ */
873
+ data: Prisma.TwoFactorRecoveryCodeCreateManyInput | Prisma.TwoFactorRecoveryCodeCreateManyInput[];
874
+ };
875
+ /**
876
+ * TwoFactorRecoveryCode update
877
+ */
878
+ export type TwoFactorRecoveryCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
879
+ /**
880
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
881
+ */
882
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
883
+ /**
884
+ * Omit specific fields from the TwoFactorRecoveryCode
885
+ */
886
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
887
+ /**
888
+ * The data needed to update a TwoFactorRecoveryCode.
889
+ */
890
+ data: Prisma.XOR<Prisma.TwoFactorRecoveryCodeUpdateInput, Prisma.TwoFactorRecoveryCodeUncheckedUpdateInput>;
891
+ /**
892
+ * Choose, which TwoFactorRecoveryCode to update.
893
+ */
894
+ where: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
895
+ };
896
+ /**
897
+ * TwoFactorRecoveryCode updateMany
898
+ */
899
+ export type TwoFactorRecoveryCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
900
+ /**
901
+ * The data used to update TwoFactorRecoveryCodes.
902
+ */
903
+ data: Prisma.XOR<Prisma.TwoFactorRecoveryCodeUpdateManyMutationInput, Prisma.TwoFactorRecoveryCodeUncheckedUpdateManyInput>;
904
+ /**
905
+ * Filter which TwoFactorRecoveryCodes to update
906
+ */
907
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
908
+ /**
909
+ * Limit how many TwoFactorRecoveryCodes to update.
910
+ */
911
+ limit?: number;
912
+ };
913
+ /**
914
+ * TwoFactorRecoveryCode updateManyAndReturn
915
+ */
916
+ export type TwoFactorRecoveryCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
917
+ /**
918
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
919
+ */
920
+ select?: Prisma.TwoFactorRecoveryCodeSelectUpdateManyAndReturn<ExtArgs> | null;
921
+ /**
922
+ * Omit specific fields from the TwoFactorRecoveryCode
923
+ */
924
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
925
+ /**
926
+ * The data used to update TwoFactorRecoveryCodes.
927
+ */
928
+ data: Prisma.XOR<Prisma.TwoFactorRecoveryCodeUpdateManyMutationInput, Prisma.TwoFactorRecoveryCodeUncheckedUpdateManyInput>;
929
+ /**
930
+ * Filter which TwoFactorRecoveryCodes to update
931
+ */
932
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
933
+ /**
934
+ * Limit how many TwoFactorRecoveryCodes to update.
935
+ */
936
+ limit?: number;
937
+ };
938
+ /**
939
+ * TwoFactorRecoveryCode upsert
940
+ */
941
+ export type TwoFactorRecoveryCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
942
+ /**
943
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
944
+ */
945
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
946
+ /**
947
+ * Omit specific fields from the TwoFactorRecoveryCode
948
+ */
949
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
950
+ /**
951
+ * The filter to search for the TwoFactorRecoveryCode to update in case it exists.
952
+ */
953
+ where: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
954
+ /**
955
+ * In case the TwoFactorRecoveryCode found by the `where` argument doesn't exist, create a new TwoFactorRecoveryCode with this data.
956
+ */
957
+ create: Prisma.XOR<Prisma.TwoFactorRecoveryCodeCreateInput, Prisma.TwoFactorRecoveryCodeUncheckedCreateInput>;
958
+ /**
959
+ * In case the TwoFactorRecoveryCode was found with the provided `where` argument, update it with this data.
960
+ */
961
+ update: Prisma.XOR<Prisma.TwoFactorRecoveryCodeUpdateInput, Prisma.TwoFactorRecoveryCodeUncheckedUpdateInput>;
962
+ };
963
+ /**
964
+ * TwoFactorRecoveryCode delete
965
+ */
966
+ export type TwoFactorRecoveryCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
969
+ */
970
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
971
+ /**
972
+ * Omit specific fields from the TwoFactorRecoveryCode
973
+ */
974
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
975
+ /**
976
+ * Filter which TwoFactorRecoveryCode to delete.
977
+ */
978
+ where: Prisma.TwoFactorRecoveryCodeWhereUniqueInput;
979
+ };
980
+ /**
981
+ * TwoFactorRecoveryCode deleteMany
982
+ */
983
+ export type TwoFactorRecoveryCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
+ /**
985
+ * Filter which TwoFactorRecoveryCodes to delete
986
+ */
987
+ where?: Prisma.TwoFactorRecoveryCodeWhereInput;
988
+ /**
989
+ * Limit how many TwoFactorRecoveryCodes to delete.
990
+ */
991
+ limit?: number;
992
+ };
993
+ /**
994
+ * TwoFactorRecoveryCode without action
995
+ */
996
+ export type TwoFactorRecoveryCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
997
+ /**
998
+ * Select specific fields to fetch from the TwoFactorRecoveryCode
999
+ */
1000
+ select?: Prisma.TwoFactorRecoveryCodeSelect<ExtArgs> | null;
1001
+ /**
1002
+ * Omit specific fields from the TwoFactorRecoveryCode
1003
+ */
1004
+ omit?: Prisma.TwoFactorRecoveryCodeOmit<ExtArgs> | null;
1005
+ };