@crossauth/fastify 1.0.0 → 1.1.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.
@@ -0,0 +1,1890 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.ts";
3
+ /**
4
+ * Model User
5
+ *
6
+ */
7
+ export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>;
8
+ export type AggregateUser = {
9
+ _count: UserCountAggregateOutputType | null;
10
+ _avg: UserAvgAggregateOutputType | null;
11
+ _sum: UserSumAggregateOutputType | null;
12
+ _min: UserMinAggregateOutputType | null;
13
+ _max: UserMaxAggregateOutputType | null;
14
+ };
15
+ export type UserAvgAggregateOutputType = {
16
+ id: number | null;
17
+ };
18
+ export type UserSumAggregateOutputType = {
19
+ id: number | null;
20
+ };
21
+ export type UserMinAggregateOutputType = {
22
+ id: number | null;
23
+ username: string | null;
24
+ username_normalized: string | null;
25
+ email: string | null;
26
+ email_normalized: string | null;
27
+ phone: string | null;
28
+ state: string | null;
29
+ factor1: string | null;
30
+ factor2: string | null;
31
+ dummyfield: string | null;
32
+ };
33
+ export type UserMaxAggregateOutputType = {
34
+ id: number | null;
35
+ username: string | null;
36
+ username_normalized: string | null;
37
+ email: string | null;
38
+ email_normalized: string | null;
39
+ phone: string | null;
40
+ state: string | null;
41
+ factor1: string | null;
42
+ factor2: string | null;
43
+ dummyfield: string | null;
44
+ };
45
+ export type UserCountAggregateOutputType = {
46
+ id: number;
47
+ username: number;
48
+ username_normalized: number;
49
+ email: number;
50
+ email_normalized: number;
51
+ phone: number;
52
+ state: number;
53
+ factor1: number;
54
+ factor2: number;
55
+ dummyfield: number;
56
+ _all: number;
57
+ };
58
+ export type UserAvgAggregateInputType = {
59
+ id?: true;
60
+ };
61
+ export type UserSumAggregateInputType = {
62
+ id?: true;
63
+ };
64
+ export type UserMinAggregateInputType = {
65
+ id?: true;
66
+ username?: true;
67
+ username_normalized?: true;
68
+ email?: true;
69
+ email_normalized?: true;
70
+ phone?: true;
71
+ state?: true;
72
+ factor1?: true;
73
+ factor2?: true;
74
+ dummyfield?: true;
75
+ };
76
+ export type UserMaxAggregateInputType = {
77
+ id?: true;
78
+ username?: true;
79
+ username_normalized?: true;
80
+ email?: true;
81
+ email_normalized?: true;
82
+ phone?: true;
83
+ state?: true;
84
+ factor1?: true;
85
+ factor2?: true;
86
+ dummyfield?: true;
87
+ };
88
+ export type UserCountAggregateInputType = {
89
+ id?: true;
90
+ username?: true;
91
+ username_normalized?: true;
92
+ email?: true;
93
+ email_normalized?: true;
94
+ phone?: true;
95
+ state?: true;
96
+ factor1?: true;
97
+ factor2?: true;
98
+ dummyfield?: true;
99
+ _all?: true;
100
+ };
101
+ export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
102
+ /**
103
+ * Filter which User to aggregate.
104
+ */
105
+ where?: Prisma.UserWhereInput;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
108
+ *
109
+ * Determine the order of Users to fetch.
110
+ */
111
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
114
+ *
115
+ * Sets the start position
116
+ */
117
+ cursor?: Prisma.UserWhereUniqueInput;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
120
+ *
121
+ * Take `±n` Users from the position of the cursor.
122
+ */
123
+ take?: number;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
126
+ *
127
+ * Skip the first `n` Users.
128
+ */
129
+ skip?: number;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Count returned Users
134
+ **/
135
+ _count?: true | UserCountAggregateInputType;
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
138
+ *
139
+ * Select which fields to average
140
+ **/
141
+ _avg?: UserAvgAggregateInputType;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
144
+ *
145
+ * Select which fields to sum
146
+ **/
147
+ _sum?: UserSumAggregateInputType;
148
+ /**
149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
150
+ *
151
+ * Select which fields to find the minimum value
152
+ **/
153
+ _min?: UserMinAggregateInputType;
154
+ /**
155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
+ *
157
+ * Select which fields to find the maximum value
158
+ **/
159
+ _max?: UserMaxAggregateInputType;
160
+ };
161
+ export type GetUserAggregateType<T extends UserAggregateArgs> = {
162
+ [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateUser[P]> : Prisma.GetScalarType<T[P], AggregateUser[P]>;
163
+ };
164
+ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.UserWhereInput;
166
+ orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[];
167
+ by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum;
168
+ having?: Prisma.UserScalarWhereWithAggregatesInput;
169
+ take?: number;
170
+ skip?: number;
171
+ _count?: UserCountAggregateInputType | true;
172
+ _avg?: UserAvgAggregateInputType;
173
+ _sum?: UserSumAggregateInputType;
174
+ _min?: UserMinAggregateInputType;
175
+ _max?: UserMaxAggregateInputType;
176
+ };
177
+ export type UserGroupByOutputType = {
178
+ id: number;
179
+ username: string;
180
+ username_normalized: string;
181
+ email: string;
182
+ email_normalized: string;
183
+ phone: string | null;
184
+ state: string;
185
+ factor1: string;
186
+ factor2: string;
187
+ dummyfield: string;
188
+ _count: UserCountAggregateOutputType | null;
189
+ _avg: UserAvgAggregateOutputType | null;
190
+ _sum: UserSumAggregateOutputType | null;
191
+ _min: UserMinAggregateOutputType | null;
192
+ _max: UserMaxAggregateOutputType | null;
193
+ };
194
+ type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<UserGroupByOutputType, T['by']> & {
195
+ [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]> : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>;
196
+ }>>;
197
+ export type UserWhereInput = {
198
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
199
+ OR?: Prisma.UserWhereInput[];
200
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
201
+ id?: Prisma.IntFilter<"User"> | number;
202
+ username?: Prisma.StringFilter<"User"> | string;
203
+ username_normalized?: Prisma.StringFilter<"User"> | string;
204
+ email?: Prisma.StringFilter<"User"> | string;
205
+ email_normalized?: Prisma.StringFilter<"User"> | string;
206
+ phone?: Prisma.StringNullableFilter<"User"> | string | null;
207
+ state?: Prisma.StringFilter<"User"> | string;
208
+ factor1?: Prisma.StringFilter<"User"> | string;
209
+ factor2?: Prisma.StringFilter<"User"> | string;
210
+ dummyfield?: Prisma.StringFilter<"User"> | string;
211
+ session?: Prisma.KeyListRelationFilter;
212
+ apiKey?: Prisma.ApiKeyListRelationFilter;
213
+ secrets?: Prisma.XOR<Prisma.UserSecretsNullableScalarRelationFilter, Prisma.UserSecretsWhereInput> | null;
214
+ authorization?: Prisma.OAuthAuthorizationListRelationFilter;
215
+ oauthClients?: Prisma.OAuthClientListRelationFilter;
216
+ };
217
+ export type UserOrderByWithRelationInput = {
218
+ id?: Prisma.SortOrder;
219
+ username?: Prisma.SortOrder;
220
+ username_normalized?: Prisma.SortOrder;
221
+ email?: Prisma.SortOrder;
222
+ email_normalized?: Prisma.SortOrder;
223
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
224
+ state?: Prisma.SortOrder;
225
+ factor1?: Prisma.SortOrder;
226
+ factor2?: Prisma.SortOrder;
227
+ dummyfield?: Prisma.SortOrder;
228
+ session?: Prisma.KeyOrderByRelationAggregateInput;
229
+ apiKey?: Prisma.ApiKeyOrderByRelationAggregateInput;
230
+ secrets?: Prisma.UserSecretsOrderByWithRelationInput;
231
+ authorization?: Prisma.OAuthAuthorizationOrderByRelationAggregateInput;
232
+ oauthClients?: Prisma.OAuthClientOrderByRelationAggregateInput;
233
+ };
234
+ export type UserWhereUniqueInput = Prisma.AtLeast<{
235
+ id?: number;
236
+ username?: string;
237
+ username_normalized?: string;
238
+ email?: string;
239
+ email_normalized?: string;
240
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
241
+ OR?: Prisma.UserWhereInput[];
242
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
243
+ phone?: Prisma.StringNullableFilter<"User"> | string | null;
244
+ state?: Prisma.StringFilter<"User"> | string;
245
+ factor1?: Prisma.StringFilter<"User"> | string;
246
+ factor2?: Prisma.StringFilter<"User"> | string;
247
+ dummyfield?: Prisma.StringFilter<"User"> | string;
248
+ session?: Prisma.KeyListRelationFilter;
249
+ apiKey?: Prisma.ApiKeyListRelationFilter;
250
+ secrets?: Prisma.XOR<Prisma.UserSecretsNullableScalarRelationFilter, Prisma.UserSecretsWhereInput> | null;
251
+ authorization?: Prisma.OAuthAuthorizationListRelationFilter;
252
+ oauthClients?: Prisma.OAuthClientListRelationFilter;
253
+ }, "id" | "id" | "username" | "username_normalized" | "email" | "email_normalized">;
254
+ export type UserOrderByWithAggregationInput = {
255
+ id?: Prisma.SortOrder;
256
+ username?: Prisma.SortOrder;
257
+ username_normalized?: Prisma.SortOrder;
258
+ email?: Prisma.SortOrder;
259
+ email_normalized?: Prisma.SortOrder;
260
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
261
+ state?: Prisma.SortOrder;
262
+ factor1?: Prisma.SortOrder;
263
+ factor2?: Prisma.SortOrder;
264
+ dummyfield?: Prisma.SortOrder;
265
+ _count?: Prisma.UserCountOrderByAggregateInput;
266
+ _avg?: Prisma.UserAvgOrderByAggregateInput;
267
+ _max?: Prisma.UserMaxOrderByAggregateInput;
268
+ _min?: Prisma.UserMinOrderByAggregateInput;
269
+ _sum?: Prisma.UserSumOrderByAggregateInput;
270
+ };
271
+ export type UserScalarWhereWithAggregatesInput = {
272
+ AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[];
273
+ OR?: Prisma.UserScalarWhereWithAggregatesInput[];
274
+ NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[];
275
+ id?: Prisma.IntWithAggregatesFilter<"User"> | number;
276
+ username?: Prisma.StringWithAggregatesFilter<"User"> | string;
277
+ username_normalized?: Prisma.StringWithAggregatesFilter<"User"> | string;
278
+ email?: Prisma.StringWithAggregatesFilter<"User"> | string;
279
+ email_normalized?: Prisma.StringWithAggregatesFilter<"User"> | string;
280
+ phone?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
281
+ state?: Prisma.StringWithAggregatesFilter<"User"> | string;
282
+ factor1?: Prisma.StringWithAggregatesFilter<"User"> | string;
283
+ factor2?: Prisma.StringWithAggregatesFilter<"User"> | string;
284
+ dummyfield?: Prisma.StringWithAggregatesFilter<"User"> | string;
285
+ };
286
+ export type UserCreateInput = {
287
+ username: string;
288
+ username_normalized: string;
289
+ email: string;
290
+ email_normalized: string;
291
+ phone?: string | null;
292
+ state?: string;
293
+ factor1?: string;
294
+ factor2?: string;
295
+ dummyfield?: string;
296
+ session?: Prisma.KeyCreateNestedManyWithoutUserInput;
297
+ apiKey?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
298
+ secrets?: Prisma.UserSecretsCreateNestedOneWithoutUserInput;
299
+ authorization?: Prisma.OAuthAuthorizationCreateNestedManyWithoutUserInput;
300
+ oauthClients?: Prisma.OAuthClientCreateNestedManyWithoutUserInput;
301
+ };
302
+ export type UserUncheckedCreateInput = {
303
+ id?: number;
304
+ username: string;
305
+ username_normalized: string;
306
+ email: string;
307
+ email_normalized: string;
308
+ phone?: string | null;
309
+ state?: string;
310
+ factor1?: string;
311
+ factor2?: string;
312
+ dummyfield?: string;
313
+ session?: Prisma.KeyUncheckedCreateNestedManyWithoutUserInput;
314
+ apiKey?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
315
+ secrets?: Prisma.UserSecretsUncheckedCreateNestedOneWithoutUserInput;
316
+ authorization?: Prisma.OAuthAuthorizationUncheckedCreateNestedManyWithoutUserInput;
317
+ oauthClients?: Prisma.OAuthClientUncheckedCreateNestedManyWithoutUserInput;
318
+ };
319
+ export type UserUpdateInput = {
320
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
329
+ session?: Prisma.KeyUpdateManyWithoutUserNestedInput;
330
+ apiKey?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
331
+ secrets?: Prisma.UserSecretsUpdateOneWithoutUserNestedInput;
332
+ authorization?: Prisma.OAuthAuthorizationUpdateManyWithoutUserNestedInput;
333
+ oauthClients?: Prisma.OAuthClientUpdateManyWithoutUserNestedInput;
334
+ };
335
+ export type UserUncheckedUpdateInput = {
336
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
337
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
341
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
342
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
343
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
344
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ session?: Prisma.KeyUncheckedUpdateManyWithoutUserNestedInput;
347
+ apiKey?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
348
+ secrets?: Prisma.UserSecretsUncheckedUpdateOneWithoutUserNestedInput;
349
+ authorization?: Prisma.OAuthAuthorizationUncheckedUpdateManyWithoutUserNestedInput;
350
+ oauthClients?: Prisma.OAuthClientUncheckedUpdateManyWithoutUserNestedInput;
351
+ };
352
+ export type UserCreateManyInput = {
353
+ id?: number;
354
+ username: string;
355
+ username_normalized: string;
356
+ email: string;
357
+ email_normalized: string;
358
+ phone?: string | null;
359
+ state?: string;
360
+ factor1?: string;
361
+ factor2?: string;
362
+ dummyfield?: string;
363
+ };
364
+ export type UserUpdateManyMutationInput = {
365
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
369
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
370
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
371
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
372
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ };
375
+ export type UserUncheckedUpdateManyInput = {
376
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
377
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
380
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
382
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
385
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
386
+ };
387
+ export type UserCountOrderByAggregateInput = {
388
+ id?: Prisma.SortOrder;
389
+ username?: Prisma.SortOrder;
390
+ username_normalized?: Prisma.SortOrder;
391
+ email?: Prisma.SortOrder;
392
+ email_normalized?: Prisma.SortOrder;
393
+ phone?: Prisma.SortOrder;
394
+ state?: Prisma.SortOrder;
395
+ factor1?: Prisma.SortOrder;
396
+ factor2?: Prisma.SortOrder;
397
+ dummyfield?: Prisma.SortOrder;
398
+ };
399
+ export type UserAvgOrderByAggregateInput = {
400
+ id?: Prisma.SortOrder;
401
+ };
402
+ export type UserMaxOrderByAggregateInput = {
403
+ id?: Prisma.SortOrder;
404
+ username?: Prisma.SortOrder;
405
+ username_normalized?: Prisma.SortOrder;
406
+ email?: Prisma.SortOrder;
407
+ email_normalized?: Prisma.SortOrder;
408
+ phone?: Prisma.SortOrder;
409
+ state?: Prisma.SortOrder;
410
+ factor1?: Prisma.SortOrder;
411
+ factor2?: Prisma.SortOrder;
412
+ dummyfield?: Prisma.SortOrder;
413
+ };
414
+ export type UserMinOrderByAggregateInput = {
415
+ id?: Prisma.SortOrder;
416
+ username?: Prisma.SortOrder;
417
+ username_normalized?: Prisma.SortOrder;
418
+ email?: Prisma.SortOrder;
419
+ email_normalized?: Prisma.SortOrder;
420
+ phone?: Prisma.SortOrder;
421
+ state?: Prisma.SortOrder;
422
+ factor1?: Prisma.SortOrder;
423
+ factor2?: Prisma.SortOrder;
424
+ dummyfield?: Prisma.SortOrder;
425
+ };
426
+ export type UserSumOrderByAggregateInput = {
427
+ id?: Prisma.SortOrder;
428
+ };
429
+ export type UserScalarRelationFilter = {
430
+ is?: Prisma.UserWhereInput;
431
+ isNot?: Prisma.UserWhereInput;
432
+ };
433
+ export type UserNullableScalarRelationFilter = {
434
+ is?: Prisma.UserWhereInput | null;
435
+ isNot?: Prisma.UserWhereInput | null;
436
+ };
437
+ export type StringFieldUpdateOperationsInput = {
438
+ set?: string;
439
+ };
440
+ export type NullableStringFieldUpdateOperationsInput = {
441
+ set?: string | null;
442
+ };
443
+ export type IntFieldUpdateOperationsInput = {
444
+ set?: number;
445
+ increment?: number;
446
+ decrement?: number;
447
+ multiply?: number;
448
+ divide?: number;
449
+ };
450
+ export type UserCreateNestedOneWithoutSecretsInput = {
451
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSecretsInput, Prisma.UserUncheckedCreateWithoutSecretsInput>;
452
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSecretsInput;
453
+ connect?: Prisma.UserWhereUniqueInput;
454
+ };
455
+ export type UserUpdateOneRequiredWithoutSecretsNestedInput = {
456
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSecretsInput, Prisma.UserUncheckedCreateWithoutSecretsInput>;
457
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSecretsInput;
458
+ upsert?: Prisma.UserUpsertWithoutSecretsInput;
459
+ connect?: Prisma.UserWhereUniqueInput;
460
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSecretsInput, Prisma.UserUpdateWithoutSecretsInput>, Prisma.UserUncheckedUpdateWithoutSecretsInput>;
461
+ };
462
+ export type UserCreateNestedOneWithoutSessionInput = {
463
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionInput, Prisma.UserUncheckedCreateWithoutSessionInput>;
464
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionInput;
465
+ connect?: Prisma.UserWhereUniqueInput;
466
+ };
467
+ export type UserUpdateOneWithoutSessionNestedInput = {
468
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionInput, Prisma.UserUncheckedCreateWithoutSessionInput>;
469
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionInput;
470
+ upsert?: Prisma.UserUpsertWithoutSessionInput;
471
+ disconnect?: Prisma.UserWhereInput | boolean;
472
+ delete?: Prisma.UserWhereInput | boolean;
473
+ connect?: Prisma.UserWhereUniqueInput;
474
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionInput, Prisma.UserUpdateWithoutSessionInput>, Prisma.UserUncheckedUpdateWithoutSessionInput>;
475
+ };
476
+ export type UserCreateNestedOneWithoutApiKeyInput = {
477
+ create?: Prisma.XOR<Prisma.UserCreateWithoutApiKeyInput, Prisma.UserUncheckedCreateWithoutApiKeyInput>;
478
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutApiKeyInput;
479
+ connect?: Prisma.UserWhereUniqueInput;
480
+ };
481
+ export type UserUpdateOneWithoutApiKeyNestedInput = {
482
+ create?: Prisma.XOR<Prisma.UserCreateWithoutApiKeyInput, Prisma.UserUncheckedCreateWithoutApiKeyInput>;
483
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutApiKeyInput;
484
+ upsert?: Prisma.UserUpsertWithoutApiKeyInput;
485
+ disconnect?: Prisma.UserWhereInput | boolean;
486
+ delete?: Prisma.UserWhereInput | boolean;
487
+ connect?: Prisma.UserWhereUniqueInput;
488
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutApiKeyInput, Prisma.UserUpdateWithoutApiKeyInput>, Prisma.UserUncheckedUpdateWithoutApiKeyInput>;
489
+ };
490
+ export type UserCreateNestedOneWithoutOauthClientsInput = {
491
+ create?: Prisma.XOR<Prisma.UserCreateWithoutOauthClientsInput, Prisma.UserUncheckedCreateWithoutOauthClientsInput>;
492
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthClientsInput;
493
+ connect?: Prisma.UserWhereUniqueInput;
494
+ };
495
+ export type UserUpdateOneWithoutOauthClientsNestedInput = {
496
+ create?: Prisma.XOR<Prisma.UserCreateWithoutOauthClientsInput, Prisma.UserUncheckedCreateWithoutOauthClientsInput>;
497
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthClientsInput;
498
+ upsert?: Prisma.UserUpsertWithoutOauthClientsInput;
499
+ disconnect?: Prisma.UserWhereInput | boolean;
500
+ delete?: Prisma.UserWhereInput | boolean;
501
+ connect?: Prisma.UserWhereUniqueInput;
502
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutOauthClientsInput, Prisma.UserUpdateWithoutOauthClientsInput>, Prisma.UserUncheckedUpdateWithoutOauthClientsInput>;
503
+ };
504
+ export type UserCreateNestedOneWithoutAuthorizationInput = {
505
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAuthorizationInput, Prisma.UserUncheckedCreateWithoutAuthorizationInput>;
506
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAuthorizationInput;
507
+ connect?: Prisma.UserWhereUniqueInput;
508
+ };
509
+ export type UserUpdateOneWithoutAuthorizationNestedInput = {
510
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAuthorizationInput, Prisma.UserUncheckedCreateWithoutAuthorizationInput>;
511
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAuthorizationInput;
512
+ upsert?: Prisma.UserUpsertWithoutAuthorizationInput;
513
+ disconnect?: Prisma.UserWhereInput | boolean;
514
+ delete?: Prisma.UserWhereInput | boolean;
515
+ connect?: Prisma.UserWhereUniqueInput;
516
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAuthorizationInput, Prisma.UserUpdateWithoutAuthorizationInput>, Prisma.UserUncheckedUpdateWithoutAuthorizationInput>;
517
+ };
518
+ export type UserCreateWithoutSecretsInput = {
519
+ username: string;
520
+ username_normalized: string;
521
+ email: string;
522
+ email_normalized: string;
523
+ phone?: string | null;
524
+ state?: string;
525
+ factor1?: string;
526
+ factor2?: string;
527
+ dummyfield?: string;
528
+ session?: Prisma.KeyCreateNestedManyWithoutUserInput;
529
+ apiKey?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
530
+ authorization?: Prisma.OAuthAuthorizationCreateNestedManyWithoutUserInput;
531
+ oauthClients?: Prisma.OAuthClientCreateNestedManyWithoutUserInput;
532
+ };
533
+ export type UserUncheckedCreateWithoutSecretsInput = {
534
+ id?: number;
535
+ username: string;
536
+ username_normalized: string;
537
+ email: string;
538
+ email_normalized: string;
539
+ phone?: string | null;
540
+ state?: string;
541
+ factor1?: string;
542
+ factor2?: string;
543
+ dummyfield?: string;
544
+ session?: Prisma.KeyUncheckedCreateNestedManyWithoutUserInput;
545
+ apiKey?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
546
+ authorization?: Prisma.OAuthAuthorizationUncheckedCreateNestedManyWithoutUserInput;
547
+ oauthClients?: Prisma.OAuthClientUncheckedCreateNestedManyWithoutUserInput;
548
+ };
549
+ export type UserCreateOrConnectWithoutSecretsInput = {
550
+ where: Prisma.UserWhereUniqueInput;
551
+ create: Prisma.XOR<Prisma.UserCreateWithoutSecretsInput, Prisma.UserUncheckedCreateWithoutSecretsInput>;
552
+ };
553
+ export type UserUpsertWithoutSecretsInput = {
554
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSecretsInput, Prisma.UserUncheckedUpdateWithoutSecretsInput>;
555
+ create: Prisma.XOR<Prisma.UserCreateWithoutSecretsInput, Prisma.UserUncheckedCreateWithoutSecretsInput>;
556
+ where?: Prisma.UserWhereInput;
557
+ };
558
+ export type UserUpdateToOneWithWhereWithoutSecretsInput = {
559
+ where?: Prisma.UserWhereInput;
560
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSecretsInput, Prisma.UserUncheckedUpdateWithoutSecretsInput>;
561
+ };
562
+ export type UserUpdateWithoutSecretsInput = {
563
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
564
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
565
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
566
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
567
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
568
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
569
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
572
+ session?: Prisma.KeyUpdateManyWithoutUserNestedInput;
573
+ apiKey?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
574
+ authorization?: Prisma.OAuthAuthorizationUpdateManyWithoutUserNestedInput;
575
+ oauthClients?: Prisma.OAuthClientUpdateManyWithoutUserNestedInput;
576
+ };
577
+ export type UserUncheckedUpdateWithoutSecretsInput = {
578
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
579
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
580
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
581
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
582
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
583
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
584
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
585
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
586
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
587
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
588
+ session?: Prisma.KeyUncheckedUpdateManyWithoutUserNestedInput;
589
+ apiKey?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
590
+ authorization?: Prisma.OAuthAuthorizationUncheckedUpdateManyWithoutUserNestedInput;
591
+ oauthClients?: Prisma.OAuthClientUncheckedUpdateManyWithoutUserNestedInput;
592
+ };
593
+ export type UserCreateWithoutSessionInput = {
594
+ username: string;
595
+ username_normalized: string;
596
+ email: string;
597
+ email_normalized: string;
598
+ phone?: string | null;
599
+ state?: string;
600
+ factor1?: string;
601
+ factor2?: string;
602
+ dummyfield?: string;
603
+ apiKey?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
604
+ secrets?: Prisma.UserSecretsCreateNestedOneWithoutUserInput;
605
+ authorization?: Prisma.OAuthAuthorizationCreateNestedManyWithoutUserInput;
606
+ oauthClients?: Prisma.OAuthClientCreateNestedManyWithoutUserInput;
607
+ };
608
+ export type UserUncheckedCreateWithoutSessionInput = {
609
+ id?: number;
610
+ username: string;
611
+ username_normalized: string;
612
+ email: string;
613
+ email_normalized: string;
614
+ phone?: string | null;
615
+ state?: string;
616
+ factor1?: string;
617
+ factor2?: string;
618
+ dummyfield?: string;
619
+ apiKey?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
620
+ secrets?: Prisma.UserSecretsUncheckedCreateNestedOneWithoutUserInput;
621
+ authorization?: Prisma.OAuthAuthorizationUncheckedCreateNestedManyWithoutUserInput;
622
+ oauthClients?: Prisma.OAuthClientUncheckedCreateNestedManyWithoutUserInput;
623
+ };
624
+ export type UserCreateOrConnectWithoutSessionInput = {
625
+ where: Prisma.UserWhereUniqueInput;
626
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionInput, Prisma.UserUncheckedCreateWithoutSessionInput>;
627
+ };
628
+ export type UserUpsertWithoutSessionInput = {
629
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSessionInput, Prisma.UserUncheckedUpdateWithoutSessionInput>;
630
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionInput, Prisma.UserUncheckedCreateWithoutSessionInput>;
631
+ where?: Prisma.UserWhereInput;
632
+ };
633
+ export type UserUpdateToOneWithWhereWithoutSessionInput = {
634
+ where?: Prisma.UserWhereInput;
635
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSessionInput, Prisma.UserUncheckedUpdateWithoutSessionInput>;
636
+ };
637
+ export type UserUpdateWithoutSessionInput = {
638
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
640
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
641
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
642
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
643
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
644
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
645
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
646
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
647
+ apiKey?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
648
+ secrets?: Prisma.UserSecretsUpdateOneWithoutUserNestedInput;
649
+ authorization?: Prisma.OAuthAuthorizationUpdateManyWithoutUserNestedInput;
650
+ oauthClients?: Prisma.OAuthClientUpdateManyWithoutUserNestedInput;
651
+ };
652
+ export type UserUncheckedUpdateWithoutSessionInput = {
653
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
654
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
656
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
657
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
658
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
659
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
660
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
661
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
662
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ apiKey?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
664
+ secrets?: Prisma.UserSecretsUncheckedUpdateOneWithoutUserNestedInput;
665
+ authorization?: Prisma.OAuthAuthorizationUncheckedUpdateManyWithoutUserNestedInput;
666
+ oauthClients?: Prisma.OAuthClientUncheckedUpdateManyWithoutUserNestedInput;
667
+ };
668
+ export type UserCreateWithoutApiKeyInput = {
669
+ username: string;
670
+ username_normalized: string;
671
+ email: string;
672
+ email_normalized: string;
673
+ phone?: string | null;
674
+ state?: string;
675
+ factor1?: string;
676
+ factor2?: string;
677
+ dummyfield?: string;
678
+ session?: Prisma.KeyCreateNestedManyWithoutUserInput;
679
+ secrets?: Prisma.UserSecretsCreateNestedOneWithoutUserInput;
680
+ authorization?: Prisma.OAuthAuthorizationCreateNestedManyWithoutUserInput;
681
+ oauthClients?: Prisma.OAuthClientCreateNestedManyWithoutUserInput;
682
+ };
683
+ export type UserUncheckedCreateWithoutApiKeyInput = {
684
+ id?: number;
685
+ username: string;
686
+ username_normalized: string;
687
+ email: string;
688
+ email_normalized: string;
689
+ phone?: string | null;
690
+ state?: string;
691
+ factor1?: string;
692
+ factor2?: string;
693
+ dummyfield?: string;
694
+ session?: Prisma.KeyUncheckedCreateNestedManyWithoutUserInput;
695
+ secrets?: Prisma.UserSecretsUncheckedCreateNestedOneWithoutUserInput;
696
+ authorization?: Prisma.OAuthAuthorizationUncheckedCreateNestedManyWithoutUserInput;
697
+ oauthClients?: Prisma.OAuthClientUncheckedCreateNestedManyWithoutUserInput;
698
+ };
699
+ export type UserCreateOrConnectWithoutApiKeyInput = {
700
+ where: Prisma.UserWhereUniqueInput;
701
+ create: Prisma.XOR<Prisma.UserCreateWithoutApiKeyInput, Prisma.UserUncheckedCreateWithoutApiKeyInput>;
702
+ };
703
+ export type UserUpsertWithoutApiKeyInput = {
704
+ update: Prisma.XOR<Prisma.UserUpdateWithoutApiKeyInput, Prisma.UserUncheckedUpdateWithoutApiKeyInput>;
705
+ create: Prisma.XOR<Prisma.UserCreateWithoutApiKeyInput, Prisma.UserUncheckedCreateWithoutApiKeyInput>;
706
+ where?: Prisma.UserWhereInput;
707
+ };
708
+ export type UserUpdateToOneWithWhereWithoutApiKeyInput = {
709
+ where?: Prisma.UserWhereInput;
710
+ data: Prisma.XOR<Prisma.UserUpdateWithoutApiKeyInput, Prisma.UserUncheckedUpdateWithoutApiKeyInput>;
711
+ };
712
+ export type UserUpdateWithoutApiKeyInput = {
713
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
714
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
715
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
716
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
717
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
718
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
719
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
720
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
721
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
722
+ session?: Prisma.KeyUpdateManyWithoutUserNestedInput;
723
+ secrets?: Prisma.UserSecretsUpdateOneWithoutUserNestedInput;
724
+ authorization?: Prisma.OAuthAuthorizationUpdateManyWithoutUserNestedInput;
725
+ oauthClients?: Prisma.OAuthClientUpdateManyWithoutUserNestedInput;
726
+ };
727
+ export type UserUncheckedUpdateWithoutApiKeyInput = {
728
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
729
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
730
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
731
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
732
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
733
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
734
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
735
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
736
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
737
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
738
+ session?: Prisma.KeyUncheckedUpdateManyWithoutUserNestedInput;
739
+ secrets?: Prisma.UserSecretsUncheckedUpdateOneWithoutUserNestedInput;
740
+ authorization?: Prisma.OAuthAuthorizationUncheckedUpdateManyWithoutUserNestedInput;
741
+ oauthClients?: Prisma.OAuthClientUncheckedUpdateManyWithoutUserNestedInput;
742
+ };
743
+ export type UserCreateWithoutOauthClientsInput = {
744
+ username: string;
745
+ username_normalized: string;
746
+ email: string;
747
+ email_normalized: string;
748
+ phone?: string | null;
749
+ state?: string;
750
+ factor1?: string;
751
+ factor2?: string;
752
+ dummyfield?: string;
753
+ session?: Prisma.KeyCreateNestedManyWithoutUserInput;
754
+ apiKey?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
755
+ secrets?: Prisma.UserSecretsCreateNestedOneWithoutUserInput;
756
+ authorization?: Prisma.OAuthAuthorizationCreateNestedManyWithoutUserInput;
757
+ };
758
+ export type UserUncheckedCreateWithoutOauthClientsInput = {
759
+ id?: number;
760
+ username: string;
761
+ username_normalized: string;
762
+ email: string;
763
+ email_normalized: string;
764
+ phone?: string | null;
765
+ state?: string;
766
+ factor1?: string;
767
+ factor2?: string;
768
+ dummyfield?: string;
769
+ session?: Prisma.KeyUncheckedCreateNestedManyWithoutUserInput;
770
+ apiKey?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
771
+ secrets?: Prisma.UserSecretsUncheckedCreateNestedOneWithoutUserInput;
772
+ authorization?: Prisma.OAuthAuthorizationUncheckedCreateNestedManyWithoutUserInput;
773
+ };
774
+ export type UserCreateOrConnectWithoutOauthClientsInput = {
775
+ where: Prisma.UserWhereUniqueInput;
776
+ create: Prisma.XOR<Prisma.UserCreateWithoutOauthClientsInput, Prisma.UserUncheckedCreateWithoutOauthClientsInput>;
777
+ };
778
+ export type UserUpsertWithoutOauthClientsInput = {
779
+ update: Prisma.XOR<Prisma.UserUpdateWithoutOauthClientsInput, Prisma.UserUncheckedUpdateWithoutOauthClientsInput>;
780
+ create: Prisma.XOR<Prisma.UserCreateWithoutOauthClientsInput, Prisma.UserUncheckedCreateWithoutOauthClientsInput>;
781
+ where?: Prisma.UserWhereInput;
782
+ };
783
+ export type UserUpdateToOneWithWhereWithoutOauthClientsInput = {
784
+ where?: Prisma.UserWhereInput;
785
+ data: Prisma.XOR<Prisma.UserUpdateWithoutOauthClientsInput, Prisma.UserUncheckedUpdateWithoutOauthClientsInput>;
786
+ };
787
+ export type UserUpdateWithoutOauthClientsInput = {
788
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
789
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
790
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
791
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
792
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
793
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
794
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
795
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
796
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
797
+ session?: Prisma.KeyUpdateManyWithoutUserNestedInput;
798
+ apiKey?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
799
+ secrets?: Prisma.UserSecretsUpdateOneWithoutUserNestedInput;
800
+ authorization?: Prisma.OAuthAuthorizationUpdateManyWithoutUserNestedInput;
801
+ };
802
+ export type UserUncheckedUpdateWithoutOauthClientsInput = {
803
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
804
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
805
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
806
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
807
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
808
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
809
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
810
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
811
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
812
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
813
+ session?: Prisma.KeyUncheckedUpdateManyWithoutUserNestedInput;
814
+ apiKey?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
815
+ secrets?: Prisma.UserSecretsUncheckedUpdateOneWithoutUserNestedInput;
816
+ authorization?: Prisma.OAuthAuthorizationUncheckedUpdateManyWithoutUserNestedInput;
817
+ };
818
+ export type UserCreateWithoutAuthorizationInput = {
819
+ username: string;
820
+ username_normalized: string;
821
+ email: string;
822
+ email_normalized: string;
823
+ phone?: string | null;
824
+ state?: string;
825
+ factor1?: string;
826
+ factor2?: string;
827
+ dummyfield?: string;
828
+ session?: Prisma.KeyCreateNestedManyWithoutUserInput;
829
+ apiKey?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
830
+ secrets?: Prisma.UserSecretsCreateNestedOneWithoutUserInput;
831
+ oauthClients?: Prisma.OAuthClientCreateNestedManyWithoutUserInput;
832
+ };
833
+ export type UserUncheckedCreateWithoutAuthorizationInput = {
834
+ id?: number;
835
+ username: string;
836
+ username_normalized: string;
837
+ email: string;
838
+ email_normalized: string;
839
+ phone?: string | null;
840
+ state?: string;
841
+ factor1?: string;
842
+ factor2?: string;
843
+ dummyfield?: string;
844
+ session?: Prisma.KeyUncheckedCreateNestedManyWithoutUserInput;
845
+ apiKey?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
846
+ secrets?: Prisma.UserSecretsUncheckedCreateNestedOneWithoutUserInput;
847
+ oauthClients?: Prisma.OAuthClientUncheckedCreateNestedManyWithoutUserInput;
848
+ };
849
+ export type UserCreateOrConnectWithoutAuthorizationInput = {
850
+ where: Prisma.UserWhereUniqueInput;
851
+ create: Prisma.XOR<Prisma.UserCreateWithoutAuthorizationInput, Prisma.UserUncheckedCreateWithoutAuthorizationInput>;
852
+ };
853
+ export type UserUpsertWithoutAuthorizationInput = {
854
+ update: Prisma.XOR<Prisma.UserUpdateWithoutAuthorizationInput, Prisma.UserUncheckedUpdateWithoutAuthorizationInput>;
855
+ create: Prisma.XOR<Prisma.UserCreateWithoutAuthorizationInput, Prisma.UserUncheckedCreateWithoutAuthorizationInput>;
856
+ where?: Prisma.UserWhereInput;
857
+ };
858
+ export type UserUpdateToOneWithWhereWithoutAuthorizationInput = {
859
+ where?: Prisma.UserWhereInput;
860
+ data: Prisma.XOR<Prisma.UserUpdateWithoutAuthorizationInput, Prisma.UserUncheckedUpdateWithoutAuthorizationInput>;
861
+ };
862
+ export type UserUpdateWithoutAuthorizationInput = {
863
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
864
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
865
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
866
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
867
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
868
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
869
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
870
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
871
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
872
+ session?: Prisma.KeyUpdateManyWithoutUserNestedInput;
873
+ apiKey?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
874
+ secrets?: Prisma.UserSecretsUpdateOneWithoutUserNestedInput;
875
+ oauthClients?: Prisma.OAuthClientUpdateManyWithoutUserNestedInput;
876
+ };
877
+ export type UserUncheckedUpdateWithoutAuthorizationInput = {
878
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
879
+ username?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ username_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
881
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
882
+ email_normalized?: Prisma.StringFieldUpdateOperationsInput | string;
883
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
884
+ state?: Prisma.StringFieldUpdateOperationsInput | string;
885
+ factor1?: Prisma.StringFieldUpdateOperationsInput | string;
886
+ factor2?: Prisma.StringFieldUpdateOperationsInput | string;
887
+ dummyfield?: Prisma.StringFieldUpdateOperationsInput | string;
888
+ session?: Prisma.KeyUncheckedUpdateManyWithoutUserNestedInput;
889
+ apiKey?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
890
+ secrets?: Prisma.UserSecretsUncheckedUpdateOneWithoutUserNestedInput;
891
+ oauthClients?: Prisma.OAuthClientUncheckedUpdateManyWithoutUserNestedInput;
892
+ };
893
+ /**
894
+ * Count Type UserCountOutputType
895
+ */
896
+ export type UserCountOutputType = {
897
+ session: number;
898
+ apiKey: number;
899
+ authorization: number;
900
+ oauthClients: number;
901
+ };
902
+ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ session?: boolean | UserCountOutputTypeCountSessionArgs;
904
+ apiKey?: boolean | UserCountOutputTypeCountApiKeyArgs;
905
+ authorization?: boolean | UserCountOutputTypeCountAuthorizationArgs;
906
+ oauthClients?: boolean | UserCountOutputTypeCountOauthClientsArgs;
907
+ };
908
+ /**
909
+ * UserCountOutputType without action
910
+ */
911
+ export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
912
+ /**
913
+ * Select specific fields to fetch from the UserCountOutputType
914
+ */
915
+ select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null;
916
+ };
917
+ /**
918
+ * UserCountOutputType without action
919
+ */
920
+ export type UserCountOutputTypeCountSessionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
921
+ where?: Prisma.KeyWhereInput;
922
+ };
923
+ /**
924
+ * UserCountOutputType without action
925
+ */
926
+ export type UserCountOutputTypeCountApiKeyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ where?: Prisma.ApiKeyWhereInput;
928
+ };
929
+ /**
930
+ * UserCountOutputType without action
931
+ */
932
+ export type UserCountOutputTypeCountAuthorizationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
933
+ where?: Prisma.OAuthAuthorizationWhereInput;
934
+ };
935
+ /**
936
+ * UserCountOutputType without action
937
+ */
938
+ export type UserCountOutputTypeCountOauthClientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
939
+ where?: Prisma.OAuthClientWhereInput;
940
+ };
941
+ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
942
+ id?: boolean;
943
+ username?: boolean;
944
+ username_normalized?: boolean;
945
+ email?: boolean;
946
+ email_normalized?: boolean;
947
+ phone?: boolean;
948
+ state?: boolean;
949
+ factor1?: boolean;
950
+ factor2?: boolean;
951
+ dummyfield?: boolean;
952
+ session?: boolean | Prisma.User$sessionArgs<ExtArgs>;
953
+ apiKey?: boolean | Prisma.User$apiKeyArgs<ExtArgs>;
954
+ secrets?: boolean | Prisma.User$secretsArgs<ExtArgs>;
955
+ authorization?: boolean | Prisma.User$authorizationArgs<ExtArgs>;
956
+ oauthClients?: boolean | Prisma.User$oauthClientsArgs<ExtArgs>;
957
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
958
+ }, ExtArgs["result"]["user"]>;
959
+ export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
960
+ id?: boolean;
961
+ username?: boolean;
962
+ username_normalized?: boolean;
963
+ email?: boolean;
964
+ email_normalized?: boolean;
965
+ phone?: boolean;
966
+ state?: boolean;
967
+ factor1?: boolean;
968
+ factor2?: boolean;
969
+ dummyfield?: boolean;
970
+ }, ExtArgs["result"]["user"]>;
971
+ export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
972
+ id?: boolean;
973
+ username?: boolean;
974
+ username_normalized?: boolean;
975
+ email?: boolean;
976
+ email_normalized?: boolean;
977
+ phone?: boolean;
978
+ state?: boolean;
979
+ factor1?: boolean;
980
+ factor2?: boolean;
981
+ dummyfield?: boolean;
982
+ }, ExtArgs["result"]["user"]>;
983
+ export type UserSelectScalar = {
984
+ id?: boolean;
985
+ username?: boolean;
986
+ username_normalized?: boolean;
987
+ email?: boolean;
988
+ email_normalized?: boolean;
989
+ phone?: boolean;
990
+ state?: boolean;
991
+ factor1?: boolean;
992
+ factor2?: boolean;
993
+ dummyfield?: boolean;
994
+ };
995
+ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "username" | "username_normalized" | "email" | "email_normalized" | "phone" | "state" | "factor1" | "factor2" | "dummyfield", ExtArgs["result"]["user"]>;
996
+ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
997
+ session?: boolean | Prisma.User$sessionArgs<ExtArgs>;
998
+ apiKey?: boolean | Prisma.User$apiKeyArgs<ExtArgs>;
999
+ secrets?: boolean | Prisma.User$secretsArgs<ExtArgs>;
1000
+ authorization?: boolean | Prisma.User$authorizationArgs<ExtArgs>;
1001
+ oauthClients?: boolean | Prisma.User$oauthClientsArgs<ExtArgs>;
1002
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
1003
+ };
1004
+ export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1005
+ export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1006
+ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1007
+ name: "User";
1008
+ objects: {
1009
+ session: Prisma.$KeyPayload<ExtArgs>[];
1010
+ apiKey: Prisma.$ApiKeyPayload<ExtArgs>[];
1011
+ secrets: Prisma.$UserSecretsPayload<ExtArgs> | null;
1012
+ authorization: Prisma.$OAuthAuthorizationPayload<ExtArgs>[];
1013
+ oauthClients: Prisma.$OAuthClientPayload<ExtArgs>[];
1014
+ };
1015
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1016
+ id: number;
1017
+ username: string;
1018
+ username_normalized: string;
1019
+ email: string;
1020
+ email_normalized: string;
1021
+ phone: string | null;
1022
+ state: string;
1023
+ factor1: string;
1024
+ factor2: string;
1025
+ dummyfield: string;
1026
+ }, ExtArgs["result"]["user"]>;
1027
+ composites: {};
1028
+ };
1029
+ export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>;
1030
+ export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1031
+ select?: UserCountAggregateInputType | true;
1032
+ };
1033
+ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1034
+ [K: symbol]: {
1035
+ types: Prisma.TypeMap<ExtArgs>['model']['User'];
1036
+ meta: {
1037
+ name: 'User';
1038
+ };
1039
+ };
1040
+ /**
1041
+ * Find zero or one User that matches the filter.
1042
+ * @param {UserFindUniqueArgs} args - Arguments to find a User
1043
+ * @example
1044
+ * // Get one User
1045
+ * const user = await prisma.user.findUnique({
1046
+ * where: {
1047
+ * // ... provide filter here
1048
+ * }
1049
+ * })
1050
+ */
1051
+ findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1052
+ /**
1053
+ * Find one User that matches the filter or throw an error with `error.code='P2025'`
1054
+ * if no matches were found.
1055
+ * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
1056
+ * @example
1057
+ * // Get one User
1058
+ * const user = await prisma.user.findUniqueOrThrow({
1059
+ * where: {
1060
+ * // ... provide filter here
1061
+ * }
1062
+ * })
1063
+ */
1064
+ findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1065
+ /**
1066
+ * Find the first User that matches the filter.
1067
+ * Note, that providing `undefined` is treated as the value not being there.
1068
+ * Read more here: https://pris.ly/d/null-undefined
1069
+ * @param {UserFindFirstArgs} args - Arguments to find a User
1070
+ * @example
1071
+ * // Get one User
1072
+ * const user = await prisma.user.findFirst({
1073
+ * where: {
1074
+ * // ... provide filter here
1075
+ * }
1076
+ * })
1077
+ */
1078
+ findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1079
+ /**
1080
+ * Find the first User that matches the filter or
1081
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1082
+ * Note, that providing `undefined` is treated as the value not being there.
1083
+ * Read more here: https://pris.ly/d/null-undefined
1084
+ * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
1085
+ * @example
1086
+ * // Get one User
1087
+ * const user = await prisma.user.findFirstOrThrow({
1088
+ * where: {
1089
+ * // ... provide filter here
1090
+ * }
1091
+ * })
1092
+ */
1093
+ findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1094
+ /**
1095
+ * Find zero or more Users that matches the filter.
1096
+ * Note, that providing `undefined` is treated as the value not being there.
1097
+ * Read more here: https://pris.ly/d/null-undefined
1098
+ * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
1099
+ * @example
1100
+ * // Get all Users
1101
+ * const users = await prisma.user.findMany()
1102
+ *
1103
+ * // Get first 10 Users
1104
+ * const users = await prisma.user.findMany({ take: 10 })
1105
+ *
1106
+ * // Only select the `id`
1107
+ * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
1108
+ *
1109
+ */
1110
+ findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1111
+ /**
1112
+ * Create a User.
1113
+ * @param {UserCreateArgs} args - Arguments to create a User.
1114
+ * @example
1115
+ * // Create one User
1116
+ * const User = await prisma.user.create({
1117
+ * data: {
1118
+ * // ... data to create a User
1119
+ * }
1120
+ * })
1121
+ *
1122
+ */
1123
+ create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1124
+ /**
1125
+ * Create many Users.
1126
+ * @param {UserCreateManyArgs} args - Arguments to create many Users.
1127
+ * @example
1128
+ * // Create many Users
1129
+ * const user = await prisma.user.createMany({
1130
+ * data: [
1131
+ * // ... provide data here
1132
+ * ]
1133
+ * })
1134
+ *
1135
+ */
1136
+ createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1137
+ /**
1138
+ * Create many Users and returns the data saved in the database.
1139
+ * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
1140
+ * @example
1141
+ * // Create many Users
1142
+ * const user = await prisma.user.createManyAndReturn({
1143
+ * data: [
1144
+ * // ... provide data here
1145
+ * ]
1146
+ * })
1147
+ *
1148
+ * // Create many Users and only return the `id`
1149
+ * const userWithIdOnly = await prisma.user.createManyAndReturn({
1150
+ * select: { id: true },
1151
+ * data: [
1152
+ * // ... provide data here
1153
+ * ]
1154
+ * })
1155
+ * Note, that providing `undefined` is treated as the value not being there.
1156
+ * Read more here: https://pris.ly/d/null-undefined
1157
+ *
1158
+ */
1159
+ createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1160
+ /**
1161
+ * Delete a User.
1162
+ * @param {UserDeleteArgs} args - Arguments to delete one User.
1163
+ * @example
1164
+ * // Delete one User
1165
+ * const User = await prisma.user.delete({
1166
+ * where: {
1167
+ * // ... filter to delete one User
1168
+ * }
1169
+ * })
1170
+ *
1171
+ */
1172
+ delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1173
+ /**
1174
+ * Update one User.
1175
+ * @param {UserUpdateArgs} args - Arguments to update one User.
1176
+ * @example
1177
+ * // Update one User
1178
+ * const user = await prisma.user.update({
1179
+ * where: {
1180
+ * // ... provide filter here
1181
+ * },
1182
+ * data: {
1183
+ * // ... provide data here
1184
+ * }
1185
+ * })
1186
+ *
1187
+ */
1188
+ update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1189
+ /**
1190
+ * Delete zero or more Users.
1191
+ * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
1192
+ * @example
1193
+ * // Delete a few Users
1194
+ * const { count } = await prisma.user.deleteMany({
1195
+ * where: {
1196
+ * // ... provide filter here
1197
+ * }
1198
+ * })
1199
+ *
1200
+ */
1201
+ deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1202
+ /**
1203
+ * Update zero or more Users.
1204
+ * Note, that providing `undefined` is treated as the value not being there.
1205
+ * Read more here: https://pris.ly/d/null-undefined
1206
+ * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
1207
+ * @example
1208
+ * // Update many Users
1209
+ * const user = await prisma.user.updateMany({
1210
+ * where: {
1211
+ * // ... provide filter here
1212
+ * },
1213
+ * data: {
1214
+ * // ... provide data here
1215
+ * }
1216
+ * })
1217
+ *
1218
+ */
1219
+ updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1220
+ /**
1221
+ * Update zero or more Users and returns the data updated in the database.
1222
+ * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
1223
+ * @example
1224
+ * // Update many Users
1225
+ * const user = await prisma.user.updateManyAndReturn({
1226
+ * where: {
1227
+ * // ... provide filter here
1228
+ * },
1229
+ * data: [
1230
+ * // ... provide data here
1231
+ * ]
1232
+ * })
1233
+ *
1234
+ * // Update zero or more Users and only return the `id`
1235
+ * const userWithIdOnly = await prisma.user.updateManyAndReturn({
1236
+ * select: { id: true },
1237
+ * where: {
1238
+ * // ... provide filter here
1239
+ * },
1240
+ * data: [
1241
+ * // ... provide data here
1242
+ * ]
1243
+ * })
1244
+ * Note, that providing `undefined` is treated as the value not being there.
1245
+ * Read more here: https://pris.ly/d/null-undefined
1246
+ *
1247
+ */
1248
+ updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1249
+ /**
1250
+ * Create or update one User.
1251
+ * @param {UserUpsertArgs} args - Arguments to update or create a User.
1252
+ * @example
1253
+ * // Update or create a User
1254
+ * const user = await prisma.user.upsert({
1255
+ * create: {
1256
+ * // ... data to create a User
1257
+ * },
1258
+ * update: {
1259
+ * // ... in case it already exists, update
1260
+ * },
1261
+ * where: {
1262
+ * // ... the filter for the User we want to update
1263
+ * }
1264
+ * })
1265
+ */
1266
+ upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1267
+ /**
1268
+ * Count the number of Users.
1269
+ * Note, that providing `undefined` is treated as the value not being there.
1270
+ * Read more here: https://pris.ly/d/null-undefined
1271
+ * @param {UserCountArgs} args - Arguments to filter Users to count.
1272
+ * @example
1273
+ * // Count the number of Users
1274
+ * const count = await prisma.user.count({
1275
+ * where: {
1276
+ * // ... the filter for the Users we want to count
1277
+ * }
1278
+ * })
1279
+ **/
1280
+ count<T extends UserCountArgs>(args?: Prisma.Subset<T, UserCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType> : number>;
1281
+ /**
1282
+ * Allows you to perform aggregations operations on a User.
1283
+ * Note, that providing `undefined` is treated as the value not being there.
1284
+ * Read more here: https://pris.ly/d/null-undefined
1285
+ * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1286
+ * @example
1287
+ * // Ordered by age ascending
1288
+ * // Where email contains prisma.io
1289
+ * // Limited to the 10 users
1290
+ * const aggregations = await prisma.user.aggregate({
1291
+ * _avg: {
1292
+ * age: true,
1293
+ * },
1294
+ * where: {
1295
+ * email: {
1296
+ * contains: "prisma.io",
1297
+ * },
1298
+ * },
1299
+ * orderBy: {
1300
+ * age: "asc",
1301
+ * },
1302
+ * take: 10,
1303
+ * })
1304
+ **/
1305
+ aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>;
1306
+ /**
1307
+ * Group by User.
1308
+ * Note, that providing `undefined` is treated as the value not being there.
1309
+ * Read more here: https://pris.ly/d/null-undefined
1310
+ * @param {UserGroupByArgs} args - Group by arguments.
1311
+ * @example
1312
+ * // Group by city, order by createdAt, get count
1313
+ * const result = await prisma.user.groupBy({
1314
+ * by: ['city', 'createdAt'],
1315
+ * orderBy: {
1316
+ * createdAt: true
1317
+ * },
1318
+ * _count: {
1319
+ * _all: true
1320
+ * },
1321
+ * })
1322
+ *
1323
+ **/
1324
+ groupBy<T extends UserGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1325
+ orderBy: UserGroupByArgs['orderBy'];
1326
+ } : {
1327
+ orderBy?: UserGroupByArgs['orderBy'];
1328
+ }, 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 ? {
1329
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1330
+ Error,
1331
+ 'Field ',
1332
+ P,
1333
+ ` in "having" needs to be provided in "by"`
1334
+ ];
1335
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1336
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1337
+ }[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 ? {} : {
1338
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1339
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1340
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1341
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1342
+ /**
1343
+ * Fields of the User model
1344
+ */
1345
+ readonly fields: UserFieldRefs;
1346
+ }
1347
+ /**
1348
+ * The delegate class that acts as a "Promise-like" for User.
1349
+ * Why is this prefixed with `Prisma__`?
1350
+ * Because we want to prevent naming conflicts as mentioned in
1351
+ * https://github.com/prisma/prisma-client-js/issues/707
1352
+ */
1353
+ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1354
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1355
+ session<T extends Prisma.User$sessionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1356
+ apiKey<T extends Prisma.User$apiKeyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$apiKeyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1357
+ secrets<T extends Prisma.User$secretsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$secretsArgs<ExtArgs>>): Prisma.Prisma__UserSecretsClient<runtime.Types.Result.GetResult<Prisma.$UserSecretsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1358
+ authorization<T extends Prisma.User$authorizationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$authorizationArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAuthorizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1359
+ oauthClients<T extends Prisma.User$oauthClientsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$oauthClientsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthClientPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1360
+ /**
1361
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1362
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1363
+ * @param onrejected The callback to execute when the Promise is rejected.
1364
+ * @returns A Promise for the completion of which ever callback is executed.
1365
+ */
1366
+ 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>;
1367
+ /**
1368
+ * Attaches a callback for only the rejection of the Promise.
1369
+ * @param onrejected The callback to execute when the Promise is rejected.
1370
+ * @returns A Promise for the completion of the callback.
1371
+ */
1372
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1373
+ /**
1374
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1375
+ * resolved value cannot be modified from the callback.
1376
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1377
+ * @returns A Promise for the completion of the callback.
1378
+ */
1379
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1380
+ }
1381
+ /**
1382
+ * Fields of the User model
1383
+ */
1384
+ export interface UserFieldRefs {
1385
+ readonly id: Prisma.FieldRef<"User", 'Int'>;
1386
+ readonly username: Prisma.FieldRef<"User", 'String'>;
1387
+ readonly username_normalized: Prisma.FieldRef<"User", 'String'>;
1388
+ readonly email: Prisma.FieldRef<"User", 'String'>;
1389
+ readonly email_normalized: Prisma.FieldRef<"User", 'String'>;
1390
+ readonly phone: Prisma.FieldRef<"User", 'String'>;
1391
+ readonly state: Prisma.FieldRef<"User", 'String'>;
1392
+ readonly factor1: Prisma.FieldRef<"User", 'String'>;
1393
+ readonly factor2: Prisma.FieldRef<"User", 'String'>;
1394
+ readonly dummyfield: Prisma.FieldRef<"User", 'String'>;
1395
+ }
1396
+ /**
1397
+ * User findUnique
1398
+ */
1399
+ export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Select specific fields to fetch from the User
1402
+ */
1403
+ select?: Prisma.UserSelect<ExtArgs> | null;
1404
+ /**
1405
+ * Omit specific fields from the User
1406
+ */
1407
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1408
+ /**
1409
+ * Choose, which related nodes to fetch as well
1410
+ */
1411
+ include?: Prisma.UserInclude<ExtArgs> | null;
1412
+ /**
1413
+ * Filter, which User to fetch.
1414
+ */
1415
+ where: Prisma.UserWhereUniqueInput;
1416
+ };
1417
+ /**
1418
+ * User findUniqueOrThrow
1419
+ */
1420
+ export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Select specific fields to fetch from the User
1423
+ */
1424
+ select?: Prisma.UserSelect<ExtArgs> | null;
1425
+ /**
1426
+ * Omit specific fields from the User
1427
+ */
1428
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1429
+ /**
1430
+ * Choose, which related nodes to fetch as well
1431
+ */
1432
+ include?: Prisma.UserInclude<ExtArgs> | null;
1433
+ /**
1434
+ * Filter, which User to fetch.
1435
+ */
1436
+ where: Prisma.UserWhereUniqueInput;
1437
+ };
1438
+ /**
1439
+ * User findFirst
1440
+ */
1441
+ export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
+ /**
1443
+ * Select specific fields to fetch from the User
1444
+ */
1445
+ select?: Prisma.UserSelect<ExtArgs> | null;
1446
+ /**
1447
+ * Omit specific fields from the User
1448
+ */
1449
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1450
+ /**
1451
+ * Choose, which related nodes to fetch as well
1452
+ */
1453
+ include?: Prisma.UserInclude<ExtArgs> | null;
1454
+ /**
1455
+ * Filter, which User to fetch.
1456
+ */
1457
+ where?: Prisma.UserWhereInput;
1458
+ /**
1459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1460
+ *
1461
+ * Determine the order of Users to fetch.
1462
+ */
1463
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
1464
+ /**
1465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1466
+ *
1467
+ * Sets the position for searching for Users.
1468
+ */
1469
+ cursor?: Prisma.UserWhereUniqueInput;
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1472
+ *
1473
+ * Take `±n` Users from the position of the cursor.
1474
+ */
1475
+ take?: number;
1476
+ /**
1477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1478
+ *
1479
+ * Skip the first `n` Users.
1480
+ */
1481
+ skip?: number;
1482
+ /**
1483
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1484
+ *
1485
+ * Filter by unique combinations of Users.
1486
+ */
1487
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
1488
+ };
1489
+ /**
1490
+ * User findFirstOrThrow
1491
+ */
1492
+ export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1493
+ /**
1494
+ * Select specific fields to fetch from the User
1495
+ */
1496
+ select?: Prisma.UserSelect<ExtArgs> | null;
1497
+ /**
1498
+ * Omit specific fields from the User
1499
+ */
1500
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1501
+ /**
1502
+ * Choose, which related nodes to fetch as well
1503
+ */
1504
+ include?: Prisma.UserInclude<ExtArgs> | null;
1505
+ /**
1506
+ * Filter, which User to fetch.
1507
+ */
1508
+ where?: Prisma.UserWhereInput;
1509
+ /**
1510
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1511
+ *
1512
+ * Determine the order of Users to fetch.
1513
+ */
1514
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
1515
+ /**
1516
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1517
+ *
1518
+ * Sets the position for searching for Users.
1519
+ */
1520
+ cursor?: Prisma.UserWhereUniqueInput;
1521
+ /**
1522
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1523
+ *
1524
+ * Take `±n` Users from the position of the cursor.
1525
+ */
1526
+ take?: number;
1527
+ /**
1528
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1529
+ *
1530
+ * Skip the first `n` Users.
1531
+ */
1532
+ skip?: number;
1533
+ /**
1534
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1535
+ *
1536
+ * Filter by unique combinations of Users.
1537
+ */
1538
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
1539
+ };
1540
+ /**
1541
+ * User findMany
1542
+ */
1543
+ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * Select specific fields to fetch from the User
1546
+ */
1547
+ select?: Prisma.UserSelect<ExtArgs> | null;
1548
+ /**
1549
+ * Omit specific fields from the User
1550
+ */
1551
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1552
+ /**
1553
+ * Choose, which related nodes to fetch as well
1554
+ */
1555
+ include?: Prisma.UserInclude<ExtArgs> | null;
1556
+ /**
1557
+ * Filter, which Users to fetch.
1558
+ */
1559
+ where?: Prisma.UserWhereInput;
1560
+ /**
1561
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1562
+ *
1563
+ * Determine the order of Users to fetch.
1564
+ */
1565
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
1566
+ /**
1567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1568
+ *
1569
+ * Sets the position for listing Users.
1570
+ */
1571
+ cursor?: Prisma.UserWhereUniqueInput;
1572
+ /**
1573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1574
+ *
1575
+ * Take `±n` Users from the position of the cursor.
1576
+ */
1577
+ take?: number;
1578
+ /**
1579
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1580
+ *
1581
+ * Skip the first `n` Users.
1582
+ */
1583
+ skip?: number;
1584
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
1585
+ };
1586
+ /**
1587
+ * User create
1588
+ */
1589
+ export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the User
1592
+ */
1593
+ select?: Prisma.UserSelect<ExtArgs> | null;
1594
+ /**
1595
+ * Omit specific fields from the User
1596
+ */
1597
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.UserInclude<ExtArgs> | null;
1602
+ /**
1603
+ * The data needed to create a User.
1604
+ */
1605
+ data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
1606
+ };
1607
+ /**
1608
+ * User createMany
1609
+ */
1610
+ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1611
+ /**
1612
+ * The data used to create many Users.
1613
+ */
1614
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
1615
+ };
1616
+ /**
1617
+ * User createManyAndReturn
1618
+ */
1619
+ export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
+ /**
1621
+ * Select specific fields to fetch from the User
1622
+ */
1623
+ select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null;
1624
+ /**
1625
+ * Omit specific fields from the User
1626
+ */
1627
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1628
+ /**
1629
+ * The data used to create many Users.
1630
+ */
1631
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
1632
+ };
1633
+ /**
1634
+ * User update
1635
+ */
1636
+ export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1637
+ /**
1638
+ * Select specific fields to fetch from the User
1639
+ */
1640
+ select?: Prisma.UserSelect<ExtArgs> | null;
1641
+ /**
1642
+ * Omit specific fields from the User
1643
+ */
1644
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1645
+ /**
1646
+ * Choose, which related nodes to fetch as well
1647
+ */
1648
+ include?: Prisma.UserInclude<ExtArgs> | null;
1649
+ /**
1650
+ * The data needed to update a User.
1651
+ */
1652
+ data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
1653
+ /**
1654
+ * Choose, which User to update.
1655
+ */
1656
+ where: Prisma.UserWhereUniqueInput;
1657
+ };
1658
+ /**
1659
+ * User updateMany
1660
+ */
1661
+ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1662
+ /**
1663
+ * The data used to update Users.
1664
+ */
1665
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
1666
+ /**
1667
+ * Filter which Users to update
1668
+ */
1669
+ where?: Prisma.UserWhereInput;
1670
+ /**
1671
+ * Limit how many Users to update.
1672
+ */
1673
+ limit?: number;
1674
+ };
1675
+ /**
1676
+ * User updateManyAndReturn
1677
+ */
1678
+ export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1679
+ /**
1680
+ * Select specific fields to fetch from the User
1681
+ */
1682
+ select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null;
1683
+ /**
1684
+ * Omit specific fields from the User
1685
+ */
1686
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1687
+ /**
1688
+ * The data used to update Users.
1689
+ */
1690
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
1691
+ /**
1692
+ * Filter which Users to update
1693
+ */
1694
+ where?: Prisma.UserWhereInput;
1695
+ /**
1696
+ * Limit how many Users to update.
1697
+ */
1698
+ limit?: number;
1699
+ };
1700
+ /**
1701
+ * User upsert
1702
+ */
1703
+ export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1704
+ /**
1705
+ * Select specific fields to fetch from the User
1706
+ */
1707
+ select?: Prisma.UserSelect<ExtArgs> | null;
1708
+ /**
1709
+ * Omit specific fields from the User
1710
+ */
1711
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1712
+ /**
1713
+ * Choose, which related nodes to fetch as well
1714
+ */
1715
+ include?: Prisma.UserInclude<ExtArgs> | null;
1716
+ /**
1717
+ * The filter to search for the User to update in case it exists.
1718
+ */
1719
+ where: Prisma.UserWhereUniqueInput;
1720
+ /**
1721
+ * In case the User found by the `where` argument doesn't exist, create a new User with this data.
1722
+ */
1723
+ create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
1724
+ /**
1725
+ * In case the User was found with the provided `where` argument, update it with this data.
1726
+ */
1727
+ update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
1728
+ };
1729
+ /**
1730
+ * User delete
1731
+ */
1732
+ export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1733
+ /**
1734
+ * Select specific fields to fetch from the User
1735
+ */
1736
+ select?: Prisma.UserSelect<ExtArgs> | null;
1737
+ /**
1738
+ * Omit specific fields from the User
1739
+ */
1740
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1741
+ /**
1742
+ * Choose, which related nodes to fetch as well
1743
+ */
1744
+ include?: Prisma.UserInclude<ExtArgs> | null;
1745
+ /**
1746
+ * Filter which User to delete.
1747
+ */
1748
+ where: Prisma.UserWhereUniqueInput;
1749
+ };
1750
+ /**
1751
+ * User deleteMany
1752
+ */
1753
+ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1754
+ /**
1755
+ * Filter which Users to delete
1756
+ */
1757
+ where?: Prisma.UserWhereInput;
1758
+ /**
1759
+ * Limit how many Users to delete.
1760
+ */
1761
+ limit?: number;
1762
+ };
1763
+ /**
1764
+ * User.session
1765
+ */
1766
+ export type User$sessionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1767
+ /**
1768
+ * Select specific fields to fetch from the Key
1769
+ */
1770
+ select?: Prisma.KeySelect<ExtArgs> | null;
1771
+ /**
1772
+ * Omit specific fields from the Key
1773
+ */
1774
+ omit?: Prisma.KeyOmit<ExtArgs> | null;
1775
+ /**
1776
+ * Choose, which related nodes to fetch as well
1777
+ */
1778
+ include?: Prisma.KeyInclude<ExtArgs> | null;
1779
+ where?: Prisma.KeyWhereInput;
1780
+ orderBy?: Prisma.KeyOrderByWithRelationInput | Prisma.KeyOrderByWithRelationInput[];
1781
+ cursor?: Prisma.KeyWhereUniqueInput;
1782
+ take?: number;
1783
+ skip?: number;
1784
+ distinct?: Prisma.KeyScalarFieldEnum | Prisma.KeyScalarFieldEnum[];
1785
+ };
1786
+ /**
1787
+ * User.apiKey
1788
+ */
1789
+ export type User$apiKeyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1790
+ /**
1791
+ * Select specific fields to fetch from the ApiKey
1792
+ */
1793
+ select?: Prisma.ApiKeySelect<ExtArgs> | null;
1794
+ /**
1795
+ * Omit specific fields from the ApiKey
1796
+ */
1797
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null;
1798
+ /**
1799
+ * Choose, which related nodes to fetch as well
1800
+ */
1801
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null;
1802
+ where?: Prisma.ApiKeyWhereInput;
1803
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[];
1804
+ cursor?: Prisma.ApiKeyWhereUniqueInput;
1805
+ take?: number;
1806
+ skip?: number;
1807
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[];
1808
+ };
1809
+ /**
1810
+ * User.secrets
1811
+ */
1812
+ export type User$secretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1813
+ /**
1814
+ * Select specific fields to fetch from the UserSecrets
1815
+ */
1816
+ select?: Prisma.UserSecretsSelect<ExtArgs> | null;
1817
+ /**
1818
+ * Omit specific fields from the UserSecrets
1819
+ */
1820
+ omit?: Prisma.UserSecretsOmit<ExtArgs> | null;
1821
+ /**
1822
+ * Choose, which related nodes to fetch as well
1823
+ */
1824
+ include?: Prisma.UserSecretsInclude<ExtArgs> | null;
1825
+ where?: Prisma.UserSecretsWhereInput;
1826
+ };
1827
+ /**
1828
+ * User.authorization
1829
+ */
1830
+ export type User$authorizationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1831
+ /**
1832
+ * Select specific fields to fetch from the OAuthAuthorization
1833
+ */
1834
+ select?: Prisma.OAuthAuthorizationSelect<ExtArgs> | null;
1835
+ /**
1836
+ * Omit specific fields from the OAuthAuthorization
1837
+ */
1838
+ omit?: Prisma.OAuthAuthorizationOmit<ExtArgs> | null;
1839
+ /**
1840
+ * Choose, which related nodes to fetch as well
1841
+ */
1842
+ include?: Prisma.OAuthAuthorizationInclude<ExtArgs> | null;
1843
+ where?: Prisma.OAuthAuthorizationWhereInput;
1844
+ orderBy?: Prisma.OAuthAuthorizationOrderByWithRelationInput | Prisma.OAuthAuthorizationOrderByWithRelationInput[];
1845
+ cursor?: Prisma.OAuthAuthorizationWhereUniqueInput;
1846
+ take?: number;
1847
+ skip?: number;
1848
+ distinct?: Prisma.OAuthAuthorizationScalarFieldEnum | Prisma.OAuthAuthorizationScalarFieldEnum[];
1849
+ };
1850
+ /**
1851
+ * User.oauthClients
1852
+ */
1853
+ export type User$oauthClientsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1854
+ /**
1855
+ * Select specific fields to fetch from the OAuthClient
1856
+ */
1857
+ select?: Prisma.OAuthClientSelect<ExtArgs> | null;
1858
+ /**
1859
+ * Omit specific fields from the OAuthClient
1860
+ */
1861
+ omit?: Prisma.OAuthClientOmit<ExtArgs> | null;
1862
+ /**
1863
+ * Choose, which related nodes to fetch as well
1864
+ */
1865
+ include?: Prisma.OAuthClientInclude<ExtArgs> | null;
1866
+ where?: Prisma.OAuthClientWhereInput;
1867
+ orderBy?: Prisma.OAuthClientOrderByWithRelationInput | Prisma.OAuthClientOrderByWithRelationInput[];
1868
+ cursor?: Prisma.OAuthClientWhereUniqueInput;
1869
+ take?: number;
1870
+ skip?: number;
1871
+ distinct?: Prisma.OAuthClientScalarFieldEnum | Prisma.OAuthClientScalarFieldEnum[];
1872
+ };
1873
+ /**
1874
+ * User without action
1875
+ */
1876
+ export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1877
+ /**
1878
+ * Select specific fields to fetch from the User
1879
+ */
1880
+ select?: Prisma.UserSelect<ExtArgs> | null;
1881
+ /**
1882
+ * Omit specific fields from the User
1883
+ */
1884
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1885
+ /**
1886
+ * Choose, which related nodes to fetch as well
1887
+ */
1888
+ include?: Prisma.UserInclude<ExtArgs> | null;
1889
+ };
1890
+ export {};