auth-vir 1.3.1 → 2.0.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 (65) hide show
  1. package/README.md +27 -18
  2. package/dist/auth-client/backend-auth.client.d.ts +177 -0
  3. package/dist/auth-client/backend-auth.client.js +232 -0
  4. package/dist/auth-client/frontend-auth.client.d.ts +64 -0
  5. package/dist/auth-client/frontend-auth.client.js +107 -0
  6. package/dist/auth.d.ts +33 -47
  7. package/dist/auth.js +36 -36
  8. package/dist/cookie.d.ts +15 -4
  9. package/dist/cookie.js +17 -5
  10. package/dist/csrf-token.d.ts +113 -3
  11. package/dist/csrf-token.js +101 -5
  12. package/dist/generated/browser.d.ts +9 -0
  13. package/dist/generated/browser.js +16 -0
  14. package/dist/generated/client.d.ts +26 -0
  15. package/dist/generated/client.js +31 -0
  16. package/dist/generated/commonInputTypes.d.ts +122 -0
  17. package/dist/generated/enums.d.ts +1 -0
  18. package/dist/generated/enums.js +9 -0
  19. package/dist/generated/internal/class.d.ts +126 -0
  20. package/dist/generated/internal/class.js +84 -0
  21. package/dist/generated/internal/prismaNamespace.d.ts +544 -0
  22. package/dist/generated/internal/prismaNamespace.js +101 -0
  23. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +75 -0
  24. package/dist/generated/internal/prismaNamespaceBrowser.js +69 -0
  25. package/dist/generated/models/User.d.ts +983 -0
  26. package/dist/generated/models/User.js +1 -0
  27. package/dist/generated/models.d.ts +2 -0
  28. package/dist/generated/models.js +1 -0
  29. package/dist/generated/shapes.gen.d.ts +8 -0
  30. package/dist/generated/shapes.gen.js +11 -0
  31. package/dist/headers.d.ts +20 -0
  32. package/dist/headers.js +33 -0
  33. package/dist/index.d.ts +5 -3
  34. package/dist/index.js +5 -3
  35. package/dist/jwt/jwt-keys.script.d.ts +1 -0
  36. package/dist/{jwt.d.ts → jwt/jwt.d.ts} +11 -2
  37. package/dist/{jwt.js → jwt/jwt.js} +14 -3
  38. package/dist/{user-jwt.d.ts → jwt/user-jwt.d.ts} +8 -8
  39. package/dist/{user-jwt.js → jwt/user-jwt.js} +12 -9
  40. package/package.json +17 -12
  41. package/src/auth-client/backend-auth.client.ts +500 -0
  42. package/src/auth-client/frontend-auth.client.ts +182 -0
  43. package/src/auth.ts +100 -78
  44. package/src/cookie.ts +20 -8
  45. package/src/csrf-token.ts +196 -5
  46. package/src/generated/browser.ts +23 -0
  47. package/src/generated/client.ts +47 -0
  48. package/src/generated/commonInputTypes.ts +147 -0
  49. package/src/generated/enums.ts +14 -0
  50. package/src/generated/internal/class.ts +236 -0
  51. package/src/generated/internal/prismaNamespace.ts +761 -0
  52. package/src/generated/internal/prismaNamespaceBrowser.ts +102 -0
  53. package/src/generated/models/User.ts +1135 -0
  54. package/src/generated/models.ts +11 -0
  55. package/src/generated/shapes.gen.ts +15 -0
  56. package/src/headers.ts +35 -0
  57. package/src/index.ts +5 -3
  58. package/src/{jwt.ts → jwt/jwt.ts} +34 -5
  59. package/src/{user-jwt.ts → jwt/user-jwt.ts} +22 -13
  60. /package/dist/{jwt-keys.script.d.ts → generated/commonInputTypes.js} +0 -0
  61. /package/dist/{jwt-keys.d.ts → jwt/jwt-keys.d.ts} +0 -0
  62. /package/dist/{jwt-keys.js → jwt/jwt-keys.js} +0 -0
  63. /package/dist/{jwt-keys.script.js → jwt/jwt-keys.script.js} +0 -0
  64. /package/src/{jwt-keys.script.ts → jwt/jwt-keys.script.ts} +0 -0
  65. /package/src/{jwt-keys.ts → jwt/jwt-keys.ts} +0 -0
@@ -0,0 +1,1135 @@
1
+ import {type Tagged} from 'type-fest';
2
+
3
+ export type UserId = Tagged<string, 'model-User-field-id', {model: 'User', field: 'id'}>;
4
+
5
+ // @ts-nocheck
6
+ import {type UtcIsoString} from 'date-vir';
7
+
8
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
9
+ /* eslint-disable */
10
+ /*
11
+ * This file exports the `User` model and its related types.
12
+ *
13
+ * 🟢 You can import this file directly.
14
+ */
15
+ import type * as runtime from "@prisma/client/runtime/client"
16
+ import type * as $Enums from "../enums.js"
17
+ import type * as Prisma from "../internal/prismaNamespace.js"
18
+
19
+ /**
20
+ * Model User
21
+ *
22
+ */
23
+ export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>
24
+
25
+ export type AggregateUser = {
26
+ _count: UserCountAggregateOutputType | null
27
+ _min: UserMinAggregateOutputType | null
28
+ _max: UserMaxAggregateOutputType | null
29
+ }
30
+
31
+ export type UserMinAggregateOutputType = {
32
+ id: UserId | null
33
+ createdAt: UtcIsoString | null
34
+ updatedAt: UtcIsoString | null
35
+ name: string | null
36
+ }
37
+
38
+ export type UserMaxAggregateOutputType = {
39
+ id: UserId | null
40
+ createdAt: UtcIsoString | null
41
+ updatedAt: UtcIsoString | null
42
+ name: string | null
43
+ }
44
+
45
+ export type UserCountAggregateOutputType = {
46
+ id: number
47
+ createdAt: number
48
+ updatedAt: number
49
+ name: number
50
+ _all: number
51
+ }
52
+
53
+
54
+ export type UserMinAggregateInputType = {
55
+ id?: true | runtime.Types.Skip
56
+ createdAt?: true | runtime.Types.Skip
57
+ updatedAt?: true | runtime.Types.Skip
58
+ name?: true | runtime.Types.Skip
59
+ }
60
+
61
+ export type UserMaxAggregateInputType = {
62
+ id?: true | runtime.Types.Skip
63
+ createdAt?: true | runtime.Types.Skip
64
+ updatedAt?: true | runtime.Types.Skip
65
+ name?: true | runtime.Types.Skip
66
+ }
67
+
68
+ export type UserCountAggregateInputType = {
69
+ id?: true | runtime.Types.Skip
70
+ createdAt?: true | runtime.Types.Skip
71
+ updatedAt?: true | runtime.Types.Skip
72
+ name?: true | runtime.Types.Skip
73
+ _all?: true | runtime.Types.Skip
74
+ }
75
+
76
+ export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
77
+ /**
78
+ * Filter which User to aggregate.
79
+ */
80
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
81
+ /**
82
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
83
+ *
84
+ * Determine the order of Users to fetch.
85
+ */
86
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip
87
+ /**
88
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
89
+ *
90
+ * Sets the start position
91
+ */
92
+ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip
93
+ /**
94
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
95
+ *
96
+ * Take `±n` Users from the position of the cursor.
97
+ */
98
+ take?: number | runtime.Types.Skip
99
+ /**
100
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
101
+ *
102
+ * Skip the first `n` Users.
103
+ */
104
+ skip?: number | runtime.Types.Skip
105
+ /**
106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
107
+ *
108
+ * Count returned Users
109
+ **/
110
+ _count?: true | UserCountAggregateInputType
111
+ /**
112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
113
+ *
114
+ * Select which fields to find the minimum value
115
+ **/
116
+ _min?: UserMinAggregateInputType
117
+ /**
118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
119
+ *
120
+ * Select which fields to find the maximum value
121
+ **/
122
+ _max?: UserMaxAggregateInputType
123
+ }
124
+
125
+ export type GetUserAggregateType<T extends UserAggregateArgs> = {
126
+ [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
127
+ ? T[P] extends true
128
+ ? number
129
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
130
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
131
+ }
132
+
133
+
134
+
135
+
136
+ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
137
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
138
+ orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] | runtime.Types.Skip
139
+ by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
140
+ having?: Prisma.UserScalarWhereWithAggregatesInput | runtime.Types.Skip
141
+ take?: number | runtime.Types.Skip
142
+ skip?: number | runtime.Types.Skip
143
+ _count?: UserCountAggregateInputType | true
144
+ _min?: UserMinAggregateInputType
145
+ _max?: UserMaxAggregateInputType
146
+ }
147
+
148
+ export type UserGroupByOutputType = {
149
+ id: UserId
150
+ createdAt: UtcIsoString
151
+ updatedAt: UtcIsoString
152
+ name: string
153
+ _count: UserCountAggregateOutputType | null
154
+ _min: UserMinAggregateOutputType | null
155
+ _max: UserMaxAggregateOutputType | null
156
+ }
157
+
158
+ type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
159
+ Array<
160
+ Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
161
+ {
162
+ [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
163
+ ? T[P] extends boolean
164
+ ? number
165
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
166
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
167
+ }
168
+ >
169
+ >
170
+
171
+
172
+
173
+ export type UserWhereInput = {
174
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip
175
+ OR?: Prisma.UserWhereInput[] | runtime.Types.Skip
176
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip
177
+ id?: Prisma.StringFilter<"User", UserId> | UserId | runtime.Types.Skip
178
+ createdAt?: Prisma.DateTimeFilter<"User"> | UtcIsoString | runtime.Types.Skip
179
+ updatedAt?: Prisma.DateTimeFilter<"User"> | UtcIsoString | runtime.Types.Skip
180
+ name?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip
181
+ }
182
+
183
+ export type UserOrderByWithRelationInput = {
184
+ id?: Prisma.SortOrder | runtime.Types.Skip
185
+ createdAt?: Prisma.SortOrder | runtime.Types.Skip
186
+ updatedAt?: Prisma.SortOrder | runtime.Types.Skip
187
+ name?: Prisma.SortOrder | runtime.Types.Skip
188
+ }
189
+
190
+ export type UserWhereUniqueInput = Prisma.AtLeast<{
191
+ id?: UserId | runtime.Types.Skip
192
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip
193
+ OR?: Prisma.UserWhereInput[] | runtime.Types.Skip
194
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip
195
+ createdAt?: Prisma.DateTimeFilter<"User"> | UtcIsoString | runtime.Types.Skip
196
+ updatedAt?: Prisma.DateTimeFilter<"User"> | UtcIsoString | runtime.Types.Skip
197
+ name?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip
198
+ }, "id">
199
+
200
+ export type UserOrderByWithAggregationInput = {
201
+ id?: Prisma.SortOrder | runtime.Types.Skip
202
+ createdAt?: Prisma.SortOrder | runtime.Types.Skip
203
+ updatedAt?: Prisma.SortOrder | runtime.Types.Skip
204
+ name?: Prisma.SortOrder | runtime.Types.Skip
205
+ _count?: Prisma.UserCountOrderByAggregateInput | runtime.Types.Skip
206
+ _max?: Prisma.UserMaxOrderByAggregateInput | runtime.Types.Skip
207
+ _min?: Prisma.UserMinOrderByAggregateInput | runtime.Types.Skip
208
+ }
209
+
210
+ export type UserScalarWhereWithAggregatesInput = {
211
+ AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip
212
+ OR?: Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip
213
+ NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip
214
+ id?: Prisma.StringWithAggregatesFilter<"User", UserId> | UserId | runtime.Types.Skip
215
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | UtcIsoString | runtime.Types.Skip
216
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | UtcIsoString | runtime.Types.Skip
217
+ name?: Prisma.StringWithAggregatesFilter<"User"> | string | runtime.Types.Skip
218
+ }
219
+
220
+ export type UserCreateInput = {
221
+ id?: UserId | runtime.Types.Skip
222
+ createdAt?: UtcIsoString | runtime.Types.Skip
223
+ updatedAt?: UtcIsoString | runtime.Types.Skip
224
+ name: string
225
+ }
226
+
227
+ export type UserUncheckedCreateInput = {
228
+ id?: UserId | runtime.Types.Skip
229
+ createdAt?: UtcIsoString | runtime.Types.Skip
230
+ updatedAt?: UtcIsoString | runtime.Types.Skip
231
+ name: string
232
+ }
233
+
234
+ export type UserUpdateInput = {
235
+ id?: Prisma.StringFieldUpdateOperationsInput<UserId> | UserId | runtime.Types.Skip
236
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
237
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
238
+ name?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip
239
+ }
240
+
241
+ export type UserUncheckedUpdateInput = {
242
+ id?: Prisma.StringFieldUpdateOperationsInput<UserId> | UserId | runtime.Types.Skip
243
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
244
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
245
+ name?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip
246
+ }
247
+
248
+ export type UserCreateManyInput = {
249
+ id?: UserId | runtime.Types.Skip
250
+ createdAt?: UtcIsoString | runtime.Types.Skip
251
+ updatedAt?: UtcIsoString | runtime.Types.Skip
252
+ name: string
253
+ }
254
+
255
+ export type UserUpdateManyMutationInput = {
256
+ id?: Prisma.StringFieldUpdateOperationsInput<UserId> | UserId | runtime.Types.Skip
257
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
258
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
259
+ name?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip
260
+ }
261
+
262
+ export type UserUncheckedUpdateManyInput = {
263
+ id?: Prisma.StringFieldUpdateOperationsInput<UserId> | UserId | runtime.Types.Skip
264
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
265
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | UtcIsoString | runtime.Types.Skip
266
+ name?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip
267
+ }
268
+
269
+ export type UserCountOrderByAggregateInput = {
270
+ id?: Prisma.SortOrder | runtime.Types.Skip
271
+ createdAt?: Prisma.SortOrder | runtime.Types.Skip
272
+ updatedAt?: Prisma.SortOrder | runtime.Types.Skip
273
+ name?: Prisma.SortOrder | runtime.Types.Skip
274
+ }
275
+
276
+ export type UserMaxOrderByAggregateInput = {
277
+ id?: Prisma.SortOrder | runtime.Types.Skip
278
+ createdAt?: Prisma.SortOrder | runtime.Types.Skip
279
+ updatedAt?: Prisma.SortOrder | runtime.Types.Skip
280
+ name?: Prisma.SortOrder | runtime.Types.Skip
281
+ }
282
+
283
+ export type UserMinOrderByAggregateInput = {
284
+ id?: Prisma.SortOrder | runtime.Types.Skip
285
+ createdAt?: Prisma.SortOrder | runtime.Types.Skip
286
+ updatedAt?: Prisma.SortOrder | runtime.Types.Skip
287
+ name?: Prisma.SortOrder | runtime.Types.Skip
288
+ }
289
+
290
+
291
+
292
+ export type DateTimeFieldUpdateOperationsInput = {
293
+ set?: UtcIsoString | runtime.Types.Skip
294
+ }
295
+
296
+
297
+
298
+ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
299
+ id?: boolean | runtime.Types.Skip
300
+ createdAt?: boolean | runtime.Types.Skip
301
+ updatedAt?: boolean | runtime.Types.Skip
302
+ name?: boolean | runtime.Types.Skip
303
+ }, ExtArgs["result"]["user"]>
304
+
305
+ export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
306
+ id?: boolean | runtime.Types.Skip
307
+ createdAt?: boolean | runtime.Types.Skip
308
+ updatedAt?: boolean | runtime.Types.Skip
309
+ name?: boolean | runtime.Types.Skip
310
+ }, ExtArgs["result"]["user"]>
311
+
312
+ export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
313
+ id?: boolean | runtime.Types.Skip
314
+ createdAt?: boolean | runtime.Types.Skip
315
+ updatedAt?: boolean | runtime.Types.Skip
316
+ name?: boolean | runtime.Types.Skip
317
+ }, ExtArgs["result"]["user"]>
318
+
319
+ export type UserSelectScalar = {
320
+ id?: boolean | runtime.Types.Skip
321
+ createdAt?: boolean | runtime.Types.Skip
322
+ updatedAt?: boolean | runtime.Types.Skip
323
+ name?: boolean | runtime.Types.Skip
324
+ }
325
+
326
+ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name", ExtArgs["result"]["user"], runtime.Types.Skip>
327
+
328
+ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
329
+ name: "User"
330
+ objects: {}
331
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
332
+ id: UserId
333
+ createdAt: UtcIsoString
334
+ updatedAt: UtcIsoString
335
+ name: string
336
+ }, ExtArgs["result"]["user"]>
337
+ composites: {}
338
+ }
339
+
340
+ export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>
341
+
342
+ export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
343
+ Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
344
+ select?: UserCountAggregateInputType | true
345
+ }
346
+
347
+ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
348
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
349
+ /**
350
+ * Find zero or one User that matches the filter.
351
+ * @param {UserFindUniqueArgs} args - Arguments to find a User
352
+ * @example
353
+ * // Get one User
354
+ * const user = await prisma.user.findUnique({
355
+ * where: {
356
+ * // ... provide filter here
357
+ * }
358
+ * })
359
+ */
360
+ 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>
361
+
362
+ /**
363
+ * Find one User that matches the filter or throw an error with `error.code='P2025'`
364
+ * if no matches were found.
365
+ * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
366
+ * @example
367
+ * // Get one User
368
+ * const user = await prisma.user.findUniqueOrThrow({
369
+ * where: {
370
+ * // ... provide filter here
371
+ * }
372
+ * })
373
+ */
374
+ 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>
375
+
376
+ /**
377
+ * Find the first User that matches the filter.
378
+ * Note, that providing `undefined` is treated as the value not being there.
379
+ * Read more here: https://pris.ly/d/null-undefined
380
+ * @param {UserFindFirstArgs} args - Arguments to find a User
381
+ * @example
382
+ * // Get one User
383
+ * const user = await prisma.user.findFirst({
384
+ * where: {
385
+ * // ... provide filter here
386
+ * }
387
+ * })
388
+ */
389
+ 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>
390
+
391
+ /**
392
+ * Find the first User that matches the filter or
393
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
394
+ * Note, that providing `undefined` is treated as the value not being there.
395
+ * Read more here: https://pris.ly/d/null-undefined
396
+ * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
397
+ * @example
398
+ * // Get one User
399
+ * const user = await prisma.user.findFirstOrThrow({
400
+ * where: {
401
+ * // ... provide filter here
402
+ * }
403
+ * })
404
+ */
405
+ 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>
406
+
407
+ /**
408
+ * Find zero or more Users that matches the filter.
409
+ * Note, that providing `undefined` is treated as the value not being there.
410
+ * Read more here: https://pris.ly/d/null-undefined
411
+ * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
412
+ * @example
413
+ * // Get all Users
414
+ * const users = await prisma.user.findMany()
415
+ *
416
+ * // Get first 10 Users
417
+ * const users = await prisma.user.findMany({ take: 10 })
418
+ *
419
+ * // Only select the `id`
420
+ * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
421
+ *
422
+ */
423
+ findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
424
+
425
+ /**
426
+ * Create a User.
427
+ * @param {UserCreateArgs} args - Arguments to create a User.
428
+ * @example
429
+ * // Create one User
430
+ * const User = await prisma.user.create({
431
+ * data: {
432
+ * // ... data to create a User
433
+ * }
434
+ * })
435
+ *
436
+ */
437
+ 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>
438
+
439
+ /**
440
+ * Create many Users.
441
+ * @param {UserCreateManyArgs} args - Arguments to create many Users.
442
+ * @example
443
+ * // Create many Users
444
+ * const user = await prisma.user.createMany({
445
+ * data: [
446
+ * // ... provide data here
447
+ * ]
448
+ * })
449
+ *
450
+ */
451
+ createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
452
+
453
+ /**
454
+ * Create many Users and returns the data saved in the database.
455
+ * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
456
+ * @example
457
+ * // Create many Users
458
+ * const user = await prisma.user.createManyAndReturn({
459
+ * data: [
460
+ * // ... provide data here
461
+ * ]
462
+ * })
463
+ *
464
+ * // Create many Users and only return the `id`
465
+ * const userWithIdOnly = await prisma.user.createManyAndReturn({
466
+ * select: { id: true },
467
+ * data: [
468
+ * // ... provide data here
469
+ * ]
470
+ * })
471
+ * Note, that providing `undefined` is treated as the value not being there.
472
+ * Read more here: https://pris.ly/d/null-undefined
473
+ *
474
+ */
475
+ createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
476
+
477
+ /**
478
+ * Delete a User.
479
+ * @param {UserDeleteArgs} args - Arguments to delete one User.
480
+ * @example
481
+ * // Delete one User
482
+ * const User = await prisma.user.delete({
483
+ * where: {
484
+ * // ... filter to delete one User
485
+ * }
486
+ * })
487
+ *
488
+ */
489
+ 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>
490
+
491
+ /**
492
+ * Update one User.
493
+ * @param {UserUpdateArgs} args - Arguments to update one User.
494
+ * @example
495
+ * // Update one User
496
+ * const user = await prisma.user.update({
497
+ * where: {
498
+ * // ... provide filter here
499
+ * },
500
+ * data: {
501
+ * // ... provide data here
502
+ * }
503
+ * })
504
+ *
505
+ */
506
+ 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>
507
+
508
+ /**
509
+ * Delete zero or more Users.
510
+ * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
511
+ * @example
512
+ * // Delete a few Users
513
+ * const { count } = await prisma.user.deleteMany({
514
+ * where: {
515
+ * // ... provide filter here
516
+ * }
517
+ * })
518
+ *
519
+ */
520
+ deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
521
+
522
+ /**
523
+ * Update zero or more Users.
524
+ * Note, that providing `undefined` is treated as the value not being there.
525
+ * Read more here: https://pris.ly/d/null-undefined
526
+ * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
527
+ * @example
528
+ * // Update many Users
529
+ * const user = await prisma.user.updateMany({
530
+ * where: {
531
+ * // ... provide filter here
532
+ * },
533
+ * data: {
534
+ * // ... provide data here
535
+ * }
536
+ * })
537
+ *
538
+ */
539
+ updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
540
+
541
+ /**
542
+ * Update zero or more Users and returns the data updated in the database.
543
+ * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
544
+ * @example
545
+ * // Update many Users
546
+ * const user = await prisma.user.updateManyAndReturn({
547
+ * where: {
548
+ * // ... provide filter here
549
+ * },
550
+ * data: [
551
+ * // ... provide data here
552
+ * ]
553
+ * })
554
+ *
555
+ * // Update zero or more Users and only return the `id`
556
+ * const userWithIdOnly = await prisma.user.updateManyAndReturn({
557
+ * select: { id: true },
558
+ * where: {
559
+ * // ... provide filter here
560
+ * },
561
+ * data: [
562
+ * // ... provide data here
563
+ * ]
564
+ * })
565
+ * Note, that providing `undefined` is treated as the value not being there.
566
+ * Read more here: https://pris.ly/d/null-undefined
567
+ *
568
+ */
569
+ updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
570
+
571
+ /**
572
+ * Create or update one User.
573
+ * @param {UserUpsertArgs} args - Arguments to update or create a User.
574
+ * @example
575
+ * // Update or create a User
576
+ * const user = await prisma.user.upsert({
577
+ * create: {
578
+ * // ... data to create a User
579
+ * },
580
+ * update: {
581
+ * // ... in case it already exists, update
582
+ * },
583
+ * where: {
584
+ * // ... the filter for the User we want to update
585
+ * }
586
+ * })
587
+ */
588
+ 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>
589
+
590
+
591
+ /**
592
+ * Count the number of Users.
593
+ * Note, that providing `undefined` is treated as the value not being there.
594
+ * Read more here: https://pris.ly/d/null-undefined
595
+ * @param {UserCountArgs} args - Arguments to filter Users to count.
596
+ * @example
597
+ * // Count the number of Users
598
+ * const count = await prisma.user.count({
599
+ * where: {
600
+ * // ... the filter for the Users we want to count
601
+ * }
602
+ * })
603
+ **/
604
+ count<T extends UserCountArgs>(
605
+ args?: Prisma.Subset<T, UserCountArgs>,
606
+ ): Prisma.PrismaPromise<
607
+ T extends runtime.Types.Utils.Record<'select', any>
608
+ ? T['select'] extends true
609
+ ? number
610
+ : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
611
+ : number
612
+ >
613
+
614
+ /**
615
+ * Allows you to perform aggregations operations on a User.
616
+ * Note, that providing `undefined` is treated as the value not being there.
617
+ * Read more here: https://pris.ly/d/null-undefined
618
+ * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
619
+ * @example
620
+ * // Ordered by age ascending
621
+ * // Where email contains prisma.io
622
+ * // Limited to the 10 users
623
+ * const aggregations = await prisma.user.aggregate({
624
+ * _avg: {
625
+ * age: true,
626
+ * },
627
+ * where: {
628
+ * email: {
629
+ * contains: "prisma.io",
630
+ * },
631
+ * },
632
+ * orderBy: {
633
+ * age: "asc",
634
+ * },
635
+ * take: 10,
636
+ * })
637
+ **/
638
+ aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
639
+
640
+ /**
641
+ * Group by User.
642
+ * Note, that providing `undefined` is treated as the value not being there.
643
+ * Read more here: https://pris.ly/d/null-undefined
644
+ * @param {UserGroupByArgs} args - Group by arguments.
645
+ * @example
646
+ * // Group by city, order by createdAt, get count
647
+ * const result = await prisma.user.groupBy({
648
+ * by: ['city', 'createdAt'],
649
+ * orderBy: {
650
+ * createdAt: true
651
+ * },
652
+ * _count: {
653
+ * _all: true
654
+ * },
655
+ * })
656
+ *
657
+ **/
658
+ groupBy<
659
+ T extends UserGroupByArgs,
660
+ HasSelectOrTake extends Prisma.Or<
661
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
662
+ Prisma.Extends<'take', Prisma.Keys<T>>
663
+ >,
664
+ OrderByArg extends Prisma.True extends HasSelectOrTake
665
+ ? { orderBy: UserGroupByArgs['orderBy'] }
666
+ : { orderBy?: UserGroupByArgs['orderBy'] },
667
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
668
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
669
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
670
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
671
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
672
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
673
+ InputErrors extends ByEmpty extends Prisma.True
674
+ ? `Error: "by" must not be empty.`
675
+ : HavingValid extends Prisma.False
676
+ ? {
677
+ [P in HavingFields]: P extends ByFields
678
+ ? never
679
+ : P extends string
680
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
681
+ : [
682
+ Error,
683
+ 'Field ',
684
+ P,
685
+ ` in "having" needs to be provided in "by"`,
686
+ ]
687
+ }[HavingFields]
688
+ : 'take' extends Prisma.Keys<T>
689
+ ? 'orderBy' extends Prisma.Keys<T>
690
+ ? ByValid extends Prisma.True
691
+ ? {}
692
+ : {
693
+ [P in OrderFields]: P extends ByFields
694
+ ? never
695
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
696
+ }[OrderFields]
697
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
698
+ : 'skip' extends Prisma.Keys<T>
699
+ ? 'orderBy' extends Prisma.Keys<T>
700
+ ? ByValid extends Prisma.True
701
+ ? {}
702
+ : {
703
+ [P in OrderFields]: P extends ByFields
704
+ ? never
705
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
706
+ }[OrderFields]
707
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
708
+ : ByValid extends Prisma.True
709
+ ? {}
710
+ : {
711
+ [P in OrderFields]: P extends ByFields
712
+ ? never
713
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
714
+ }[OrderFields]
715
+ >(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
716
+ /**
717
+ * Fields of the User model
718
+ */
719
+ readonly fields: UserFieldRefs;
720
+ }
721
+
722
+ /**
723
+ * The delegate class that acts as a "Promise-like" for User.
724
+ * Why is this prefixed with `Prisma__`?
725
+ * Because we want to prevent naming conflicts as mentioned in
726
+ * https://github.com/prisma/prisma-client-js/issues/707
727
+ */
728
+ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
729
+ readonly [Symbol.toStringTag]: "PrismaPromise"
730
+ /**
731
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
732
+ * @param onfulfilled The callback to execute when the Promise is resolved.
733
+ * @param onrejected The callback to execute when the Promise is rejected.
734
+ * @returns A Promise for the completion of which ever callback is executed.
735
+ */
736
+ 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>
737
+ /**
738
+ * Attaches a callback for only the rejection of the Promise.
739
+ * @param onrejected The callback to execute when the Promise is rejected.
740
+ * @returns A Promise for the completion of the callback.
741
+ */
742
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
743
+ /**
744
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
745
+ * resolved value cannot be modified from the callback.
746
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
747
+ * @returns A Promise for the completion of the callback.
748
+ */
749
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
750
+ }
751
+
752
+
753
+
754
+
755
+ /**
756
+ * Fields of the User model
757
+ */
758
+ export interface UserFieldRefs {
759
+ readonly id: Prisma.FieldRef<"User", 'String'>
760
+ readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
761
+ readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
762
+ readonly name: Prisma.FieldRef<"User", 'String'>
763
+ }
764
+
765
+
766
+ // Custom InputTypes
767
+ /**
768
+ * User findUnique
769
+ */
770
+ export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
771
+ /**
772
+ * Select specific fields to fetch from the User
773
+ */
774
+ select?: Prisma.UserSelect<ExtArgs> | null
775
+ /**
776
+ * Omit specific fields from the User
777
+ */
778
+ omit?: Prisma.UserOmit<ExtArgs> | null
779
+ /**
780
+ * Filter, which User to fetch.
781
+ */
782
+ where: Prisma.UserWhereUniqueInput
783
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
784
+ }
785
+
786
+ /**
787
+ * User findUniqueOrThrow
788
+ */
789
+ export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
+ /**
791
+ * Select specific fields to fetch from the User
792
+ */
793
+ select?: Prisma.UserSelect<ExtArgs> | null
794
+ /**
795
+ * Omit specific fields from the User
796
+ */
797
+ omit?: Prisma.UserOmit<ExtArgs> | null
798
+ /**
799
+ * Filter, which User to fetch.
800
+ */
801
+ where: Prisma.UserWhereUniqueInput
802
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
803
+ }
804
+
805
+ /**
806
+ * User findFirst
807
+ */
808
+ export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
809
+ /**
810
+ * Select specific fields to fetch from the User
811
+ */
812
+ select?: Prisma.UserSelect<ExtArgs> | null
813
+ /**
814
+ * Omit specific fields from the User
815
+ */
816
+ omit?: Prisma.UserOmit<ExtArgs> | null
817
+ /**
818
+ * Filter, which User to fetch.
819
+ */
820
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
821
+ /**
822
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
823
+ *
824
+ * Determine the order of Users to fetch.
825
+ */
826
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip
827
+ /**
828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
829
+ *
830
+ * Sets the position for searching for Users.
831
+ */
832
+ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip
833
+ /**
834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
835
+ *
836
+ * Take `±n` Users from the position of the cursor.
837
+ */
838
+ take?: number | runtime.Types.Skip
839
+ /**
840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
841
+ *
842
+ * Skip the first `n` Users.
843
+ */
844
+ skip?: number | runtime.Types.Skip
845
+ /**
846
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
847
+ *
848
+ * Filter by unique combinations of Users.
849
+ */
850
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip
851
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
852
+ }
853
+
854
+ /**
855
+ * User findFirstOrThrow
856
+ */
857
+ export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
858
+ /**
859
+ * Select specific fields to fetch from the User
860
+ */
861
+ select?: Prisma.UserSelect<ExtArgs> | null
862
+ /**
863
+ * Omit specific fields from the User
864
+ */
865
+ omit?: Prisma.UserOmit<ExtArgs> | null
866
+ /**
867
+ * Filter, which User to fetch.
868
+ */
869
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
870
+ /**
871
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
872
+ *
873
+ * Determine the order of Users to fetch.
874
+ */
875
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip
876
+ /**
877
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
878
+ *
879
+ * Sets the position for searching for Users.
880
+ */
881
+ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip
882
+ /**
883
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
884
+ *
885
+ * Take `±n` Users from the position of the cursor.
886
+ */
887
+ take?: number | runtime.Types.Skip
888
+ /**
889
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
890
+ *
891
+ * Skip the first `n` Users.
892
+ */
893
+ skip?: number | runtime.Types.Skip
894
+ /**
895
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
896
+ *
897
+ * Filter by unique combinations of Users.
898
+ */
899
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip
900
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
901
+ }
902
+
903
+ /**
904
+ * User findMany
905
+ */
906
+ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
907
+ /**
908
+ * Select specific fields to fetch from the User
909
+ */
910
+ select?: Prisma.UserSelect<ExtArgs> | null
911
+ /**
912
+ * Omit specific fields from the User
913
+ */
914
+ omit?: Prisma.UserOmit<ExtArgs> | null
915
+ /**
916
+ * Filter, which Users to fetch.
917
+ */
918
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
919
+ /**
920
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
921
+ *
922
+ * Determine the order of Users to fetch.
923
+ */
924
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip
925
+ /**
926
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
927
+ *
928
+ * Sets the position for listing Users.
929
+ */
930
+ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip
931
+ /**
932
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
933
+ *
934
+ * Take `±n` Users from the position of the cursor.
935
+ */
936
+ take?: number | runtime.Types.Skip
937
+ /**
938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
939
+ *
940
+ * Skip the first `n` Users.
941
+ */
942
+ skip?: number | runtime.Types.Skip
943
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip
944
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
945
+ }
946
+
947
+ /**
948
+ * User create
949
+ */
950
+ export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
951
+ /**
952
+ * Select specific fields to fetch from the User
953
+ */
954
+ select?: Prisma.UserSelect<ExtArgs> | null
955
+ /**
956
+ * Omit specific fields from the User
957
+ */
958
+ omit?: Prisma.UserOmit<ExtArgs> | null
959
+ /**
960
+ * The data needed to create a User.
961
+ */
962
+ data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
963
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
964
+ }
965
+
966
+ /**
967
+ * User createMany
968
+ */
969
+ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
970
+ /**
971
+ * The data used to create many Users.
972
+ */
973
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
974
+ skipDuplicates?: boolean | runtime.Types.Skip
975
+ }
976
+
977
+ /**
978
+ * User createManyAndReturn
979
+ */
980
+ export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
981
+ /**
982
+ * Select specific fields to fetch from the User
983
+ */
984
+ select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null
985
+ /**
986
+ * Omit specific fields from the User
987
+ */
988
+ omit?: Prisma.UserOmit<ExtArgs> | null
989
+ /**
990
+ * The data used to create many Users.
991
+ */
992
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
993
+ skipDuplicates?: boolean | runtime.Types.Skip
994
+ }
995
+
996
+ /**
997
+ * User update
998
+ */
999
+ export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1000
+ /**
1001
+ * Select specific fields to fetch from the User
1002
+ */
1003
+ select?: Prisma.UserSelect<ExtArgs> | null
1004
+ /**
1005
+ * Omit specific fields from the User
1006
+ */
1007
+ omit?: Prisma.UserOmit<ExtArgs> | null
1008
+ /**
1009
+ * The data needed to update a User.
1010
+ */
1011
+ data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
1012
+ /**
1013
+ * Choose, which User to update.
1014
+ */
1015
+ where: Prisma.UserWhereUniqueInput
1016
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
1017
+ }
1018
+
1019
+ /**
1020
+ * User updateMany
1021
+ */
1022
+ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1023
+ /**
1024
+ * The data used to update Users.
1025
+ */
1026
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
1027
+ /**
1028
+ * Filter which Users to update
1029
+ */
1030
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
1031
+ /**
1032
+ * Limit how many Users to update.
1033
+ */
1034
+ limit?: number | runtime.Types.Skip
1035
+ }
1036
+
1037
+ /**
1038
+ * User updateManyAndReturn
1039
+ */
1040
+ export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1041
+ /**
1042
+ * Select specific fields to fetch from the User
1043
+ */
1044
+ select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null
1045
+ /**
1046
+ * Omit specific fields from the User
1047
+ */
1048
+ omit?: Prisma.UserOmit<ExtArgs> | null
1049
+ /**
1050
+ * The data used to update Users.
1051
+ */
1052
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
1053
+ /**
1054
+ * Filter which Users to update
1055
+ */
1056
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
1057
+ /**
1058
+ * Limit how many Users to update.
1059
+ */
1060
+ limit?: number | runtime.Types.Skip
1061
+ }
1062
+
1063
+ /**
1064
+ * User upsert
1065
+ */
1066
+ export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1067
+ /**
1068
+ * Select specific fields to fetch from the User
1069
+ */
1070
+ select?: Prisma.UserSelect<ExtArgs> | null
1071
+ /**
1072
+ * Omit specific fields from the User
1073
+ */
1074
+ omit?: Prisma.UserOmit<ExtArgs> | null
1075
+ /**
1076
+ * The filter to search for the User to update in case it exists.
1077
+ */
1078
+ where: Prisma.UserWhereUniqueInput
1079
+ /**
1080
+ * In case the User found by the `where` argument doesn't exist, create a new User with this data.
1081
+ */
1082
+ create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
1083
+ /**
1084
+ * In case the User was found with the provided `where` argument, update it with this data.
1085
+ */
1086
+ update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
1087
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
1088
+ }
1089
+
1090
+ /**
1091
+ * User delete
1092
+ */
1093
+ export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1094
+ /**
1095
+ * Select specific fields to fetch from the User
1096
+ */
1097
+ select?: Prisma.UserSelect<ExtArgs> | null
1098
+ /**
1099
+ * Omit specific fields from the User
1100
+ */
1101
+ omit?: Prisma.UserOmit<ExtArgs> | null
1102
+ /**
1103
+ * Filter which User to delete.
1104
+ */
1105
+ where: Prisma.UserWhereUniqueInput
1106
+ relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip
1107
+ }
1108
+
1109
+ /**
1110
+ * User deleteMany
1111
+ */
1112
+ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1113
+ /**
1114
+ * Filter which Users to delete
1115
+ */
1116
+ where?: Prisma.UserWhereInput | runtime.Types.Skip
1117
+ /**
1118
+ * Limit how many Users to delete.
1119
+ */
1120
+ limit?: number | runtime.Types.Skip
1121
+ }
1122
+
1123
+ /**
1124
+ * User without action
1125
+ */
1126
+ export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
+ /**
1128
+ * Select specific fields to fetch from the User
1129
+ */
1130
+ select?: Prisma.UserSelect<ExtArgs> | null
1131
+ /**
1132
+ * Omit specific fields from the User
1133
+ */
1134
+ omit?: Prisma.UserOmit<ExtArgs> | null
1135
+ }