@actuate-media/cms-core 0.2.3 → 0.3.1

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 (81) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/auth/session.test.js +1 -1
  3. package/dist/__tests__/auth/session.test.js.map +1 -1
  4. package/dist/api/handler-factory.d.ts.map +1 -1
  5. package/dist/api/handler-factory.js +85 -68
  6. package/dist/api/handler-factory.js.map +1 -1
  7. package/dist/api/handlers.d.ts +1 -1
  8. package/dist/api/handlers.d.ts.map +1 -1
  9. package/dist/api/handlers.js +212 -31
  10. package/dist/api/handlers.js.map +1 -1
  11. package/dist/api/index.d.ts +2 -19
  12. package/dist/api/index.d.ts.map +1 -1
  13. package/dist/api/index.js +1 -54
  14. package/dist/api/index.js.map +1 -1
  15. package/dist/api/router.d.ts +20 -0
  16. package/dist/api/router.d.ts.map +1 -0
  17. package/dist/api/router.js +55 -0
  18. package/dist/api/router.js.map +1 -0
  19. package/dist/config/index.d.ts.map +1 -1
  20. package/dist/config/index.js +2 -0
  21. package/dist/config/index.js.map +1 -1
  22. package/dist/i18n/index.js +8 -8
  23. package/dist/media/optimize.d.ts +2 -3
  24. package/dist/media/optimize.d.ts.map +1 -1
  25. package/dist/media/optimize.js +10 -1
  26. package/dist/media/optimize.js.map +1 -1
  27. package/dist/next.d.ts +3 -3
  28. package/dist/next.d.ts.map +1 -1
  29. package/dist/next.js +8 -8
  30. package/dist/next.js.map +1 -1
  31. package/dist/search/index.js +22 -22
  32. package/dist/security/anomaly-detection.d.ts +1 -1
  33. package/dist/security/anomaly-detection.d.ts.map +1 -1
  34. package/dist/security/anomaly-detection.js +27 -5
  35. package/dist/security/anomaly-detection.js.map +1 -1
  36. package/dist/security/reauth.d.ts +1 -1
  37. package/dist/security/reauth.d.ts.map +1 -1
  38. package/dist/security/reauth.js +12 -4
  39. package/dist/security/reauth.js.map +1 -1
  40. package/dist/security/sanitize.d.ts +1 -1
  41. package/dist/security/sanitize.d.ts.map +1 -1
  42. package/dist/security/sanitize.js +9 -11
  43. package/dist/security/sanitize.js.map +1 -1
  44. package/dist/security/webhook.d.ts +1 -1
  45. package/dist/security/webhook.d.ts.map +1 -1
  46. package/dist/security/webhook.js +24 -3
  47. package/dist/security/webhook.js.map +1 -1
  48. package/package.json +3 -2
  49. package/prisma/cms-schema.prisma +237 -237
  50. package/prisma/migrations/0001_init/migration.sql +384 -384
  51. package/prisma/migrations/0002_folders/migration.sql +39 -39
  52. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  53. package/prisma/migrations/migration_lock.toml +3 -3
  54. package/prisma/schema.prisma +485 -485
  55. package/prisma/seed.ts +82 -82
  56. package/generated/browser.ts +0 -109
  57. package/generated/client.ts +0 -133
  58. package/generated/commonInputTypes.ts +0 -709
  59. package/generated/enums.ts +0 -125
  60. package/generated/internal/class.ts +0 -376
  61. package/generated/internal/prismaNamespace.ts +0 -2617
  62. package/generated/internal/prismaNamespaceBrowser.ts +0 -611
  63. package/generated/models/ApiKey.ts +0 -1550
  64. package/generated/models/AuditLog.ts +0 -1206
  65. package/generated/models/BackupRecord.ts +0 -1250
  66. package/generated/models/ContentLock.ts +0 -1472
  67. package/generated/models/ContentTemplate.ts +0 -1416
  68. package/generated/models/Document.ts +0 -3005
  69. package/generated/models/Folder.ts +0 -1904
  70. package/generated/models/FormSubmission.ts +0 -1200
  71. package/generated/models/InAppNotification.ts +0 -1457
  72. package/generated/models/Media.ts +0 -2340
  73. package/generated/models/MediaUsage.ts +0 -1472
  74. package/generated/models/OAuthAccount.ts +0 -1463
  75. package/generated/models/Redirect.ts +0 -1284
  76. package/generated/models/Session.ts +0 -1492
  77. package/generated/models/Site.ts +0 -1206
  78. package/generated/models/User.ts +0 -3513
  79. package/generated/models/Version.ts +0 -1511
  80. package/generated/models/WorkflowState.ts +0 -1514
  81. package/generated/models.ts +0 -29
@@ -1,1492 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Session` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums"
13
- import type * as Prisma from "../internal/prismaNamespace"
14
-
15
- /**
16
- * Model Session
17
- *
18
- */
19
- export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>
20
-
21
- export type AggregateSession = {
22
- _count: SessionCountAggregateOutputType | null
23
- _min: SessionMinAggregateOutputType | null
24
- _max: SessionMaxAggregateOutputType | null
25
- }
26
-
27
- export type SessionMinAggregateOutputType = {
28
- id: string | null
29
- userId: string | null
30
- token: string | null
31
- expiresAt: Date | null
32
- revokedAt: Date | null
33
- ipAddress: string | null
34
- userAgent: string | null
35
- fingerprintHash: string | null
36
- createdAt: Date | null
37
- }
38
-
39
- export type SessionMaxAggregateOutputType = {
40
- id: string | null
41
- userId: string | null
42
- token: string | null
43
- expiresAt: Date | null
44
- revokedAt: Date | null
45
- ipAddress: string | null
46
- userAgent: string | null
47
- fingerprintHash: string | null
48
- createdAt: Date | null
49
- }
50
-
51
- export type SessionCountAggregateOutputType = {
52
- id: number
53
- userId: number
54
- token: number
55
- expiresAt: number
56
- revokedAt: number
57
- ipAddress: number
58
- userAgent: number
59
- fingerprintHash: number
60
- createdAt: number
61
- _all: number
62
- }
63
-
64
-
65
- export type SessionMinAggregateInputType = {
66
- id?: true
67
- userId?: true
68
- token?: true
69
- expiresAt?: true
70
- revokedAt?: true
71
- ipAddress?: true
72
- userAgent?: true
73
- fingerprintHash?: true
74
- createdAt?: true
75
- }
76
-
77
- export type SessionMaxAggregateInputType = {
78
- id?: true
79
- userId?: true
80
- token?: true
81
- expiresAt?: true
82
- revokedAt?: true
83
- ipAddress?: true
84
- userAgent?: true
85
- fingerprintHash?: true
86
- createdAt?: true
87
- }
88
-
89
- export type SessionCountAggregateInputType = {
90
- id?: true
91
- userId?: true
92
- token?: true
93
- expiresAt?: true
94
- revokedAt?: true
95
- ipAddress?: true
96
- userAgent?: true
97
- fingerprintHash?: true
98
- createdAt?: true
99
- _all?: true
100
- }
101
-
102
- export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
- /**
104
- * Filter which Session to aggregate.
105
- */
106
- where?: Prisma.SessionWhereInput
107
- /**
108
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
109
- *
110
- * Determine the order of Sessions to fetch.
111
- */
112
- orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
113
- /**
114
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
115
- *
116
- * Sets the start position
117
- */
118
- cursor?: Prisma.SessionWhereUniqueInput
119
- /**
120
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
- *
122
- * Take `±n` Sessions from the position of the cursor.
123
- */
124
- take?: number
125
- /**
126
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
- *
128
- * Skip the first `n` Sessions.
129
- */
130
- skip?: number
131
- /**
132
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
- *
134
- * Count returned Sessions
135
- **/
136
- _count?: true | SessionCountAggregateInputType
137
- /**
138
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
- *
140
- * Select which fields to find the minimum value
141
- **/
142
- _min?: SessionMinAggregateInputType
143
- /**
144
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
- *
146
- * Select which fields to find the maximum value
147
- **/
148
- _max?: SessionMaxAggregateInputType
149
- }
150
-
151
- export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
152
- [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
153
- ? T[P] extends true
154
- ? number
155
- : Prisma.GetScalarType<T[P], AggregateSession[P]>
156
- : Prisma.GetScalarType<T[P], AggregateSession[P]>
157
- }
158
-
159
-
160
-
161
-
162
- export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
- where?: Prisma.SessionWhereInput
164
- orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[]
165
- by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum
166
- having?: Prisma.SessionScalarWhereWithAggregatesInput
167
- take?: number
168
- skip?: number
169
- _count?: SessionCountAggregateInputType | true
170
- _min?: SessionMinAggregateInputType
171
- _max?: SessionMaxAggregateInputType
172
- }
173
-
174
- export type SessionGroupByOutputType = {
175
- id: string
176
- userId: string
177
- token: string
178
- expiresAt: Date
179
- revokedAt: Date | null
180
- ipAddress: string | null
181
- userAgent: string | null
182
- fingerprintHash: string | null
183
- createdAt: Date
184
- _count: SessionCountAggregateOutputType | null
185
- _min: SessionMinAggregateOutputType | null
186
- _max: SessionMaxAggregateOutputType | null
187
- }
188
-
189
- type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
190
- Array<
191
- Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> &
192
- {
193
- [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
194
- ? T[P] extends boolean
195
- ? number
196
- : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>
197
- : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>
198
- }
199
- >
200
- >
201
-
202
-
203
-
204
- export type SessionWhereInput = {
205
- AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
206
- OR?: Prisma.SessionWhereInput[]
207
- NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
208
- id?: Prisma.StringFilter<"Session"> | string
209
- userId?: Prisma.StringFilter<"Session"> | string
210
- token?: Prisma.StringFilter<"Session"> | string
211
- expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
212
- revokedAt?: Prisma.DateTimeNullableFilter<"Session"> | Date | string | null
213
- ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
214
- userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
215
- fingerprintHash?: Prisma.StringNullableFilter<"Session"> | string | null
216
- createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
217
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
218
- }
219
-
220
- export type SessionOrderByWithRelationInput = {
221
- id?: Prisma.SortOrder
222
- userId?: Prisma.SortOrder
223
- token?: Prisma.SortOrder
224
- expiresAt?: Prisma.SortOrder
225
- revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
226
- ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
227
- userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
228
- fingerprintHash?: Prisma.SortOrderInput | Prisma.SortOrder
229
- createdAt?: Prisma.SortOrder
230
- user?: Prisma.UserOrderByWithRelationInput
231
- _relevance?: Prisma.SessionOrderByRelevanceInput
232
- }
233
-
234
- export type SessionWhereUniqueInput = Prisma.AtLeast<{
235
- id?: string
236
- token?: string
237
- AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
238
- OR?: Prisma.SessionWhereInput[]
239
- NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
240
- userId?: Prisma.StringFilter<"Session"> | string
241
- expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
242
- revokedAt?: Prisma.DateTimeNullableFilter<"Session"> | Date | string | null
243
- ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
244
- userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
245
- fingerprintHash?: Prisma.StringNullableFilter<"Session"> | string | null
246
- createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
247
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
248
- }, "id" | "token">
249
-
250
- export type SessionOrderByWithAggregationInput = {
251
- id?: Prisma.SortOrder
252
- userId?: Prisma.SortOrder
253
- token?: Prisma.SortOrder
254
- expiresAt?: Prisma.SortOrder
255
- revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
256
- ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
257
- userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
258
- fingerprintHash?: Prisma.SortOrderInput | Prisma.SortOrder
259
- createdAt?: Prisma.SortOrder
260
- _count?: Prisma.SessionCountOrderByAggregateInput
261
- _max?: Prisma.SessionMaxOrderByAggregateInput
262
- _min?: Prisma.SessionMinOrderByAggregateInput
263
- }
264
-
265
- export type SessionScalarWhereWithAggregatesInput = {
266
- AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[]
267
- OR?: Prisma.SessionScalarWhereWithAggregatesInput[]
268
- NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[]
269
- id?: Prisma.StringWithAggregatesFilter<"Session"> | string
270
- userId?: Prisma.StringWithAggregatesFilter<"Session"> | string
271
- token?: Prisma.StringWithAggregatesFilter<"Session"> | string
272
- expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
273
- revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Session"> | Date | string | null
274
- ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null
275
- userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null
276
- fingerprintHash?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null
277
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
278
- }
279
-
280
- export type SessionCreateInput = {
281
- id?: string
282
- token: string
283
- expiresAt: Date | string
284
- revokedAt?: Date | string | null
285
- ipAddress?: string | null
286
- userAgent?: string | null
287
- fingerprintHash?: string | null
288
- createdAt?: Date | string
289
- user: Prisma.UserCreateNestedOneWithoutSessionsInput
290
- }
291
-
292
- export type SessionUncheckedCreateInput = {
293
- id?: string
294
- userId: string
295
- token: string
296
- expiresAt: Date | string
297
- revokedAt?: Date | string | null
298
- ipAddress?: string | null
299
- userAgent?: string | null
300
- fingerprintHash?: string | null
301
- createdAt?: Date | string
302
- }
303
-
304
- export type SessionUpdateInput = {
305
- id?: Prisma.StringFieldUpdateOperationsInput | string
306
- token?: Prisma.StringFieldUpdateOperationsInput | string
307
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
308
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
309
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
310
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
311
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
312
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
313
- user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput
314
- }
315
-
316
- export type SessionUncheckedUpdateInput = {
317
- id?: Prisma.StringFieldUpdateOperationsInput | string
318
- userId?: Prisma.StringFieldUpdateOperationsInput | string
319
- token?: Prisma.StringFieldUpdateOperationsInput | string
320
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
321
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
322
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
323
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
324
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
325
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
326
- }
327
-
328
- export type SessionCreateManyInput = {
329
- id?: string
330
- userId: string
331
- token: string
332
- expiresAt: Date | string
333
- revokedAt?: Date | string | null
334
- ipAddress?: string | null
335
- userAgent?: string | null
336
- fingerprintHash?: string | null
337
- createdAt?: Date | string
338
- }
339
-
340
- export type SessionUpdateManyMutationInput = {
341
- id?: Prisma.StringFieldUpdateOperationsInput | string
342
- token?: Prisma.StringFieldUpdateOperationsInput | string
343
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
344
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
345
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
346
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
347
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
348
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
349
- }
350
-
351
- export type SessionUncheckedUpdateManyInput = {
352
- id?: Prisma.StringFieldUpdateOperationsInput | string
353
- userId?: Prisma.StringFieldUpdateOperationsInput | string
354
- token?: Prisma.StringFieldUpdateOperationsInput | string
355
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
356
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
357
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
358
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
359
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
361
- }
362
-
363
- export type SessionListRelationFilter = {
364
- every?: Prisma.SessionWhereInput
365
- some?: Prisma.SessionWhereInput
366
- none?: Prisma.SessionWhereInput
367
- }
368
-
369
- export type SessionOrderByRelationAggregateInput = {
370
- _count?: Prisma.SortOrder
371
- }
372
-
373
- export type SessionOrderByRelevanceInput = {
374
- fields: Prisma.SessionOrderByRelevanceFieldEnum | Prisma.SessionOrderByRelevanceFieldEnum[]
375
- sort: Prisma.SortOrder
376
- search: string
377
- }
378
-
379
- export type SessionCountOrderByAggregateInput = {
380
- id?: Prisma.SortOrder
381
- userId?: Prisma.SortOrder
382
- token?: Prisma.SortOrder
383
- expiresAt?: Prisma.SortOrder
384
- revokedAt?: Prisma.SortOrder
385
- ipAddress?: Prisma.SortOrder
386
- userAgent?: Prisma.SortOrder
387
- fingerprintHash?: Prisma.SortOrder
388
- createdAt?: Prisma.SortOrder
389
- }
390
-
391
- export type SessionMaxOrderByAggregateInput = {
392
- id?: Prisma.SortOrder
393
- userId?: Prisma.SortOrder
394
- token?: Prisma.SortOrder
395
- expiresAt?: Prisma.SortOrder
396
- revokedAt?: Prisma.SortOrder
397
- ipAddress?: Prisma.SortOrder
398
- userAgent?: Prisma.SortOrder
399
- fingerprintHash?: Prisma.SortOrder
400
- createdAt?: Prisma.SortOrder
401
- }
402
-
403
- export type SessionMinOrderByAggregateInput = {
404
- id?: Prisma.SortOrder
405
- userId?: Prisma.SortOrder
406
- token?: Prisma.SortOrder
407
- expiresAt?: Prisma.SortOrder
408
- revokedAt?: Prisma.SortOrder
409
- ipAddress?: Prisma.SortOrder
410
- userAgent?: Prisma.SortOrder
411
- fingerprintHash?: Prisma.SortOrder
412
- createdAt?: Prisma.SortOrder
413
- }
414
-
415
- export type SessionCreateNestedManyWithoutUserInput = {
416
- create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
417
- connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
418
- createMany?: Prisma.SessionCreateManyUserInputEnvelope
419
- connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
420
- }
421
-
422
- export type SessionUncheckedCreateNestedManyWithoutUserInput = {
423
- create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
424
- connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
425
- createMany?: Prisma.SessionCreateManyUserInputEnvelope
426
- connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
427
- }
428
-
429
- export type SessionUpdateManyWithoutUserNestedInput = {
430
- create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
431
- connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
432
- upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[]
433
- createMany?: Prisma.SessionCreateManyUserInputEnvelope
434
- set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
435
- disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
436
- delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
437
- connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
438
- update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[]
439
- updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[]
440
- deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
441
- }
442
-
443
- export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
444
- create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
445
- connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
446
- upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[]
447
- createMany?: Prisma.SessionCreateManyUserInputEnvelope
448
- set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
449
- disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
450
- delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
451
- connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
452
- update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[]
453
- updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[]
454
- deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
455
- }
456
-
457
- export type SessionCreateWithoutUserInput = {
458
- id?: string
459
- token: string
460
- expiresAt: Date | string
461
- revokedAt?: Date | string | null
462
- ipAddress?: string | null
463
- userAgent?: string | null
464
- fingerprintHash?: string | null
465
- createdAt?: Date | string
466
- }
467
-
468
- export type SessionUncheckedCreateWithoutUserInput = {
469
- id?: string
470
- token: string
471
- expiresAt: Date | string
472
- revokedAt?: Date | string | null
473
- ipAddress?: string | null
474
- userAgent?: string | null
475
- fingerprintHash?: string | null
476
- createdAt?: Date | string
477
- }
478
-
479
- export type SessionCreateOrConnectWithoutUserInput = {
480
- where: Prisma.SessionWhereUniqueInput
481
- create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>
482
- }
483
-
484
- export type SessionCreateManyUserInputEnvelope = {
485
- data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[]
486
- skipDuplicates?: boolean
487
- }
488
-
489
- export type SessionUpsertWithWhereUniqueWithoutUserInput = {
490
- where: Prisma.SessionWhereUniqueInput
491
- update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>
492
- create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>
493
- }
494
-
495
- export type SessionUpdateWithWhereUniqueWithoutUserInput = {
496
- where: Prisma.SessionWhereUniqueInput
497
- data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>
498
- }
499
-
500
- export type SessionUpdateManyWithWhereWithoutUserInput = {
501
- where: Prisma.SessionScalarWhereInput
502
- data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>
503
- }
504
-
505
- export type SessionScalarWhereInput = {
506
- AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
507
- OR?: Prisma.SessionScalarWhereInput[]
508
- NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
509
- id?: Prisma.StringFilter<"Session"> | string
510
- userId?: Prisma.StringFilter<"Session"> | string
511
- token?: Prisma.StringFilter<"Session"> | string
512
- expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
513
- revokedAt?: Prisma.DateTimeNullableFilter<"Session"> | Date | string | null
514
- ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
515
- userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
516
- fingerprintHash?: Prisma.StringNullableFilter<"Session"> | string | null
517
- createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
518
- }
519
-
520
- export type SessionCreateManyUserInput = {
521
- id?: string
522
- token: string
523
- expiresAt: Date | string
524
- revokedAt?: Date | string | null
525
- ipAddress?: string | null
526
- userAgent?: string | null
527
- fingerprintHash?: string | null
528
- createdAt?: Date | string
529
- }
530
-
531
- export type SessionUpdateWithoutUserInput = {
532
- id?: Prisma.StringFieldUpdateOperationsInput | string
533
- token?: Prisma.StringFieldUpdateOperationsInput | string
534
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
535
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
536
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
537
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
538
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
539
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
540
- }
541
-
542
- export type SessionUncheckedUpdateWithoutUserInput = {
543
- id?: Prisma.StringFieldUpdateOperationsInput | string
544
- token?: Prisma.StringFieldUpdateOperationsInput | string
545
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
546
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
547
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
548
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
549
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
550
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
551
- }
552
-
553
- export type SessionUncheckedUpdateManyWithoutUserInput = {
554
- id?: Prisma.StringFieldUpdateOperationsInput | string
555
- token?: Prisma.StringFieldUpdateOperationsInput | string
556
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
557
- revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
558
- ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
559
- userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
560
- fingerprintHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
561
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
562
- }
563
-
564
-
565
-
566
- export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
567
- id?: boolean
568
- userId?: boolean
569
- token?: boolean
570
- expiresAt?: boolean
571
- revokedAt?: boolean
572
- ipAddress?: boolean
573
- userAgent?: boolean
574
- fingerprintHash?: boolean
575
- createdAt?: boolean
576
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
577
- }, ExtArgs["result"]["session"]>
578
-
579
- export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
580
- id?: boolean
581
- userId?: boolean
582
- token?: boolean
583
- expiresAt?: boolean
584
- revokedAt?: boolean
585
- ipAddress?: boolean
586
- userAgent?: boolean
587
- fingerprintHash?: boolean
588
- createdAt?: boolean
589
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
590
- }, ExtArgs["result"]["session"]>
591
-
592
- export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
593
- id?: boolean
594
- userId?: boolean
595
- token?: boolean
596
- expiresAt?: boolean
597
- revokedAt?: boolean
598
- ipAddress?: boolean
599
- userAgent?: boolean
600
- fingerprintHash?: boolean
601
- createdAt?: boolean
602
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
603
- }, ExtArgs["result"]["session"]>
604
-
605
- export type SessionSelectScalar = {
606
- id?: boolean
607
- userId?: boolean
608
- token?: boolean
609
- expiresAt?: boolean
610
- revokedAt?: boolean
611
- ipAddress?: boolean
612
- userAgent?: boolean
613
- fingerprintHash?: boolean
614
- createdAt?: boolean
615
- }
616
-
617
- export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "token" | "expiresAt" | "revokedAt" | "ipAddress" | "userAgent" | "fingerprintHash" | "createdAt", ExtArgs["result"]["session"]>
618
- export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
619
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
620
- }
621
- export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
622
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
623
- }
624
- export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
625
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
626
- }
627
-
628
- export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
629
- name: "Session"
630
- objects: {
631
- user: Prisma.$UserPayload<ExtArgs>
632
- }
633
- scalars: runtime.Types.Extensions.GetPayloadResult<{
634
- id: string
635
- userId: string
636
- token: string
637
- expiresAt: Date
638
- revokedAt: Date | null
639
- ipAddress: string | null
640
- userAgent: string | null
641
- fingerprintHash: string | null
642
- createdAt: Date
643
- }, ExtArgs["result"]["session"]>
644
- composites: {}
645
- }
646
-
647
- export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>
648
-
649
- export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
650
- Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
651
- select?: SessionCountAggregateInputType | true
652
- }
653
-
654
- export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
655
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
656
- /**
657
- * Find zero or one Session that matches the filter.
658
- * @param {SessionFindUniqueArgs} args - Arguments to find a Session
659
- * @example
660
- * // Get one Session
661
- * const session = await prisma.session.findUnique({
662
- * where: {
663
- * // ... provide filter here
664
- * }
665
- * })
666
- */
667
- findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
668
-
669
- /**
670
- * Find one Session that matches the filter or throw an error with `error.code='P2025'`
671
- * if no matches were found.
672
- * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
673
- * @example
674
- * // Get one Session
675
- * const session = await prisma.session.findUniqueOrThrow({
676
- * where: {
677
- * // ... provide filter here
678
- * }
679
- * })
680
- */
681
- findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
682
-
683
- /**
684
- * Find the first Session that matches the filter.
685
- * Note, that providing `undefined` is treated as the value not being there.
686
- * Read more here: https://pris.ly/d/null-undefined
687
- * @param {SessionFindFirstArgs} args - Arguments to find a Session
688
- * @example
689
- * // Get one Session
690
- * const session = await prisma.session.findFirst({
691
- * where: {
692
- * // ... provide filter here
693
- * }
694
- * })
695
- */
696
- findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
697
-
698
- /**
699
- * Find the first Session that matches the filter or
700
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
701
- * Note, that providing `undefined` is treated as the value not being there.
702
- * Read more here: https://pris.ly/d/null-undefined
703
- * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
704
- * @example
705
- * // Get one Session
706
- * const session = await prisma.session.findFirstOrThrow({
707
- * where: {
708
- * // ... provide filter here
709
- * }
710
- * })
711
- */
712
- findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
713
-
714
- /**
715
- * Find zero or more Sessions that matches the filter.
716
- * Note, that providing `undefined` is treated as the value not being there.
717
- * Read more here: https://pris.ly/d/null-undefined
718
- * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
719
- * @example
720
- * // Get all Sessions
721
- * const sessions = await prisma.session.findMany()
722
- *
723
- * // Get first 10 Sessions
724
- * const sessions = await prisma.session.findMany({ take: 10 })
725
- *
726
- * // Only select the `id`
727
- * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
728
- *
729
- */
730
- findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
731
-
732
- /**
733
- * Create a Session.
734
- * @param {SessionCreateArgs} args - Arguments to create a Session.
735
- * @example
736
- * // Create one Session
737
- * const Session = await prisma.session.create({
738
- * data: {
739
- * // ... data to create a Session
740
- * }
741
- * })
742
- *
743
- */
744
- create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
745
-
746
- /**
747
- * Create many Sessions.
748
- * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
749
- * @example
750
- * // Create many Sessions
751
- * const session = await prisma.session.createMany({
752
- * data: [
753
- * // ... provide data here
754
- * ]
755
- * })
756
- *
757
- */
758
- createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
759
-
760
- /**
761
- * Create many Sessions and returns the data saved in the database.
762
- * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
763
- * @example
764
- * // Create many Sessions
765
- * const session = await prisma.session.createManyAndReturn({
766
- * data: [
767
- * // ... provide data here
768
- * ]
769
- * })
770
- *
771
- * // Create many Sessions and only return the `id`
772
- * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
773
- * select: { id: true },
774
- * data: [
775
- * // ... provide data here
776
- * ]
777
- * })
778
- * Note, that providing `undefined` is treated as the value not being there.
779
- * Read more here: https://pris.ly/d/null-undefined
780
- *
781
- */
782
- createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
783
-
784
- /**
785
- * Delete a Session.
786
- * @param {SessionDeleteArgs} args - Arguments to delete one Session.
787
- * @example
788
- * // Delete one Session
789
- * const Session = await prisma.session.delete({
790
- * where: {
791
- * // ... filter to delete one Session
792
- * }
793
- * })
794
- *
795
- */
796
- delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
797
-
798
- /**
799
- * Update one Session.
800
- * @param {SessionUpdateArgs} args - Arguments to update one Session.
801
- * @example
802
- * // Update one Session
803
- * const session = await prisma.session.update({
804
- * where: {
805
- * // ... provide filter here
806
- * },
807
- * data: {
808
- * // ... provide data here
809
- * }
810
- * })
811
- *
812
- */
813
- update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
814
-
815
- /**
816
- * Delete zero or more Sessions.
817
- * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
818
- * @example
819
- * // Delete a few Sessions
820
- * const { count } = await prisma.session.deleteMany({
821
- * where: {
822
- * // ... provide filter here
823
- * }
824
- * })
825
- *
826
- */
827
- deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
828
-
829
- /**
830
- * Update zero or more Sessions.
831
- * Note, that providing `undefined` is treated as the value not being there.
832
- * Read more here: https://pris.ly/d/null-undefined
833
- * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
834
- * @example
835
- * // Update many Sessions
836
- * const session = await prisma.session.updateMany({
837
- * where: {
838
- * // ... provide filter here
839
- * },
840
- * data: {
841
- * // ... provide data here
842
- * }
843
- * })
844
- *
845
- */
846
- updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
847
-
848
- /**
849
- * Update zero or more Sessions and returns the data updated in the database.
850
- * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
851
- * @example
852
- * // Update many Sessions
853
- * const session = await prisma.session.updateManyAndReturn({
854
- * where: {
855
- * // ... provide filter here
856
- * },
857
- * data: [
858
- * // ... provide data here
859
- * ]
860
- * })
861
- *
862
- * // Update zero or more Sessions and only return the `id`
863
- * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
864
- * select: { id: true },
865
- * where: {
866
- * // ... provide filter here
867
- * },
868
- * data: [
869
- * // ... provide data here
870
- * ]
871
- * })
872
- * Note, that providing `undefined` is treated as the value not being there.
873
- * Read more here: https://pris.ly/d/null-undefined
874
- *
875
- */
876
- updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
877
-
878
- /**
879
- * Create or update one Session.
880
- * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
881
- * @example
882
- * // Update or create a Session
883
- * const session = await prisma.session.upsert({
884
- * create: {
885
- * // ... data to create a Session
886
- * },
887
- * update: {
888
- * // ... in case it already exists, update
889
- * },
890
- * where: {
891
- * // ... the filter for the Session we want to update
892
- * }
893
- * })
894
- */
895
- upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
896
-
897
-
898
- /**
899
- * Count the number of Sessions.
900
- * Note, that providing `undefined` is treated as the value not being there.
901
- * Read more here: https://pris.ly/d/null-undefined
902
- * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
903
- * @example
904
- * // Count the number of Sessions
905
- * const count = await prisma.session.count({
906
- * where: {
907
- * // ... the filter for the Sessions we want to count
908
- * }
909
- * })
910
- **/
911
- count<T extends SessionCountArgs>(
912
- args?: Prisma.Subset<T, SessionCountArgs>,
913
- ): Prisma.PrismaPromise<
914
- T extends runtime.Types.Utils.Record<'select', any>
915
- ? T['select'] extends true
916
- ? number
917
- : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType>
918
- : number
919
- >
920
-
921
- /**
922
- * Allows you to perform aggregations operations on a Session.
923
- * Note, that providing `undefined` is treated as the value not being there.
924
- * Read more here: https://pris.ly/d/null-undefined
925
- * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
926
- * @example
927
- * // Ordered by age ascending
928
- * // Where email contains prisma.io
929
- * // Limited to the 10 users
930
- * const aggregations = await prisma.user.aggregate({
931
- * _avg: {
932
- * age: true,
933
- * },
934
- * where: {
935
- * email: {
936
- * contains: "prisma.io",
937
- * },
938
- * },
939
- * orderBy: {
940
- * age: "asc",
941
- * },
942
- * take: 10,
943
- * })
944
- **/
945
- aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
946
-
947
- /**
948
- * Group by Session.
949
- * Note, that providing `undefined` is treated as the value not being there.
950
- * Read more here: https://pris.ly/d/null-undefined
951
- * @param {SessionGroupByArgs} args - Group by arguments.
952
- * @example
953
- * // Group by city, order by createdAt, get count
954
- * const result = await prisma.user.groupBy({
955
- * by: ['city', 'createdAt'],
956
- * orderBy: {
957
- * createdAt: true
958
- * },
959
- * _count: {
960
- * _all: true
961
- * },
962
- * })
963
- *
964
- **/
965
- groupBy<
966
- T extends SessionGroupByArgs,
967
- HasSelectOrTake extends Prisma.Or<
968
- Prisma.Extends<'skip', Prisma.Keys<T>>,
969
- Prisma.Extends<'take', Prisma.Keys<T>>
970
- >,
971
- OrderByArg extends Prisma.True extends HasSelectOrTake
972
- ? { orderBy: SessionGroupByArgs['orderBy'] }
973
- : { orderBy?: SessionGroupByArgs['orderBy'] },
974
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
975
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
976
- ByValid extends Prisma.Has<ByFields, OrderFields>,
977
- HavingFields extends Prisma.GetHavingFields<T['having']>,
978
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
979
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
980
- InputErrors extends ByEmpty extends Prisma.True
981
- ? `Error: "by" must not be empty.`
982
- : HavingValid extends Prisma.False
983
- ? {
984
- [P in HavingFields]: P extends ByFields
985
- ? never
986
- : P extends string
987
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
988
- : [
989
- Error,
990
- 'Field ',
991
- P,
992
- ` in "having" needs to be provided in "by"`,
993
- ]
994
- }[HavingFields]
995
- : 'take' extends Prisma.Keys<T>
996
- ? 'orderBy' extends Prisma.Keys<T>
997
- ? ByValid extends Prisma.True
998
- ? {}
999
- : {
1000
- [P in OrderFields]: P extends ByFields
1001
- ? never
1002
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1003
- }[OrderFields]
1004
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1005
- : 'skip' extends Prisma.Keys<T>
1006
- ? 'orderBy' extends Prisma.Keys<T>
1007
- ? ByValid extends Prisma.True
1008
- ? {}
1009
- : {
1010
- [P in OrderFields]: P extends ByFields
1011
- ? never
1012
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1013
- }[OrderFields]
1014
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1015
- : ByValid extends Prisma.True
1016
- ? {}
1017
- : {
1018
- [P in OrderFields]: P extends ByFields
1019
- ? never
1020
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1021
- }[OrderFields]
1022
- >(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1023
- /**
1024
- * Fields of the Session model
1025
- */
1026
- readonly fields: SessionFieldRefs;
1027
- }
1028
-
1029
- /**
1030
- * The delegate class that acts as a "Promise-like" for Session.
1031
- * Why is this prefixed with `Prisma__`?
1032
- * Because we want to prevent naming conflicts as mentioned in
1033
- * https://github.com/prisma/prisma-client-js/issues/707
1034
- */
1035
- export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1036
- readonly [Symbol.toStringTag]: "PrismaPromise"
1037
- user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1038
- /**
1039
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1040
- * @param onfulfilled The callback to execute when the Promise is resolved.
1041
- * @param onrejected The callback to execute when the Promise is rejected.
1042
- * @returns A Promise for the completion of which ever callback is executed.
1043
- */
1044
- 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>
1045
- /**
1046
- * Attaches a callback for only the rejection of the Promise.
1047
- * @param onrejected The callback to execute when the Promise is rejected.
1048
- * @returns A Promise for the completion of the callback.
1049
- */
1050
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1051
- /**
1052
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1053
- * resolved value cannot be modified from the callback.
1054
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1055
- * @returns A Promise for the completion of the callback.
1056
- */
1057
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1058
- }
1059
-
1060
-
1061
-
1062
-
1063
- /**
1064
- * Fields of the Session model
1065
- */
1066
- export interface SessionFieldRefs {
1067
- readonly id: Prisma.FieldRef<"Session", 'String'>
1068
- readonly userId: Prisma.FieldRef<"Session", 'String'>
1069
- readonly token: Prisma.FieldRef<"Session", 'String'>
1070
- readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>
1071
- readonly revokedAt: Prisma.FieldRef<"Session", 'DateTime'>
1072
- readonly ipAddress: Prisma.FieldRef<"Session", 'String'>
1073
- readonly userAgent: Prisma.FieldRef<"Session", 'String'>
1074
- readonly fingerprintHash: Prisma.FieldRef<"Session", 'String'>
1075
- readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>
1076
- }
1077
-
1078
-
1079
- // Custom InputTypes
1080
- /**
1081
- * Session findUnique
1082
- */
1083
- export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1084
- /**
1085
- * Select specific fields to fetch from the Session
1086
- */
1087
- select?: Prisma.SessionSelect<ExtArgs> | null
1088
- /**
1089
- * Omit specific fields from the Session
1090
- */
1091
- omit?: Prisma.SessionOmit<ExtArgs> | null
1092
- /**
1093
- * Choose, which related nodes to fetch as well
1094
- */
1095
- include?: Prisma.SessionInclude<ExtArgs> | null
1096
- /**
1097
- * Filter, which Session to fetch.
1098
- */
1099
- where: Prisma.SessionWhereUniqueInput
1100
- }
1101
-
1102
- /**
1103
- * Session findUniqueOrThrow
1104
- */
1105
- export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
- /**
1107
- * Select specific fields to fetch from the Session
1108
- */
1109
- select?: Prisma.SessionSelect<ExtArgs> | null
1110
- /**
1111
- * Omit specific fields from the Session
1112
- */
1113
- omit?: Prisma.SessionOmit<ExtArgs> | null
1114
- /**
1115
- * Choose, which related nodes to fetch as well
1116
- */
1117
- include?: Prisma.SessionInclude<ExtArgs> | null
1118
- /**
1119
- * Filter, which Session to fetch.
1120
- */
1121
- where: Prisma.SessionWhereUniqueInput
1122
- }
1123
-
1124
- /**
1125
- * Session findFirst
1126
- */
1127
- export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
- /**
1129
- * Select specific fields to fetch from the Session
1130
- */
1131
- select?: Prisma.SessionSelect<ExtArgs> | null
1132
- /**
1133
- * Omit specific fields from the Session
1134
- */
1135
- omit?: Prisma.SessionOmit<ExtArgs> | null
1136
- /**
1137
- * Choose, which related nodes to fetch as well
1138
- */
1139
- include?: Prisma.SessionInclude<ExtArgs> | null
1140
- /**
1141
- * Filter, which Session to fetch.
1142
- */
1143
- where?: Prisma.SessionWhereInput
1144
- /**
1145
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1146
- *
1147
- * Determine the order of Sessions to fetch.
1148
- */
1149
- orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1150
- /**
1151
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1152
- *
1153
- * Sets the position for searching for Sessions.
1154
- */
1155
- cursor?: Prisma.SessionWhereUniqueInput
1156
- /**
1157
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1158
- *
1159
- * Take `±n` Sessions from the position of the cursor.
1160
- */
1161
- take?: number
1162
- /**
1163
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1164
- *
1165
- * Skip the first `n` Sessions.
1166
- */
1167
- skip?: number
1168
- /**
1169
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1170
- *
1171
- * Filter by unique combinations of Sessions.
1172
- */
1173
- distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1174
- }
1175
-
1176
- /**
1177
- * Session findFirstOrThrow
1178
- */
1179
- export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
- /**
1181
- * Select specific fields to fetch from the Session
1182
- */
1183
- select?: Prisma.SessionSelect<ExtArgs> | null
1184
- /**
1185
- * Omit specific fields from the Session
1186
- */
1187
- omit?: Prisma.SessionOmit<ExtArgs> | null
1188
- /**
1189
- * Choose, which related nodes to fetch as well
1190
- */
1191
- include?: Prisma.SessionInclude<ExtArgs> | null
1192
- /**
1193
- * Filter, which Session to fetch.
1194
- */
1195
- where?: Prisma.SessionWhereInput
1196
- /**
1197
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1198
- *
1199
- * Determine the order of Sessions to fetch.
1200
- */
1201
- orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1202
- /**
1203
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1204
- *
1205
- * Sets the position for searching for Sessions.
1206
- */
1207
- cursor?: Prisma.SessionWhereUniqueInput
1208
- /**
1209
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1210
- *
1211
- * Take `±n` Sessions from the position of the cursor.
1212
- */
1213
- take?: number
1214
- /**
1215
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1216
- *
1217
- * Skip the first `n` Sessions.
1218
- */
1219
- skip?: number
1220
- /**
1221
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1222
- *
1223
- * Filter by unique combinations of Sessions.
1224
- */
1225
- distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1226
- }
1227
-
1228
- /**
1229
- * Session findMany
1230
- */
1231
- export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
- /**
1233
- * Select specific fields to fetch from the Session
1234
- */
1235
- select?: Prisma.SessionSelect<ExtArgs> | null
1236
- /**
1237
- * Omit specific fields from the Session
1238
- */
1239
- omit?: Prisma.SessionOmit<ExtArgs> | null
1240
- /**
1241
- * Choose, which related nodes to fetch as well
1242
- */
1243
- include?: Prisma.SessionInclude<ExtArgs> | null
1244
- /**
1245
- * Filter, which Sessions to fetch.
1246
- */
1247
- where?: Prisma.SessionWhereInput
1248
- /**
1249
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1250
- *
1251
- * Determine the order of Sessions to fetch.
1252
- */
1253
- orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1254
- /**
1255
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1256
- *
1257
- * Sets the position for listing Sessions.
1258
- */
1259
- cursor?: Prisma.SessionWhereUniqueInput
1260
- /**
1261
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1262
- *
1263
- * Take `±n` Sessions from the position of the cursor.
1264
- */
1265
- take?: number
1266
- /**
1267
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1268
- *
1269
- * Skip the first `n` Sessions.
1270
- */
1271
- skip?: number
1272
- /**
1273
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1274
- *
1275
- * Filter by unique combinations of Sessions.
1276
- */
1277
- distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1278
- }
1279
-
1280
- /**
1281
- * Session create
1282
- */
1283
- export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
- /**
1285
- * Select specific fields to fetch from the Session
1286
- */
1287
- select?: Prisma.SessionSelect<ExtArgs> | null
1288
- /**
1289
- * Omit specific fields from the Session
1290
- */
1291
- omit?: Prisma.SessionOmit<ExtArgs> | null
1292
- /**
1293
- * Choose, which related nodes to fetch as well
1294
- */
1295
- include?: Prisma.SessionInclude<ExtArgs> | null
1296
- /**
1297
- * The data needed to create a Session.
1298
- */
1299
- data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>
1300
- }
1301
-
1302
- /**
1303
- * Session createMany
1304
- */
1305
- export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
- /**
1307
- * The data used to create many Sessions.
1308
- */
1309
- data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[]
1310
- skipDuplicates?: boolean
1311
- }
1312
-
1313
- /**
1314
- * Session createManyAndReturn
1315
- */
1316
- export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1317
- /**
1318
- * Select specific fields to fetch from the Session
1319
- */
1320
- select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null
1321
- /**
1322
- * Omit specific fields from the Session
1323
- */
1324
- omit?: Prisma.SessionOmit<ExtArgs> | null
1325
- /**
1326
- * The data used to create many Sessions.
1327
- */
1328
- data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[]
1329
- skipDuplicates?: boolean
1330
- /**
1331
- * Choose, which related nodes to fetch as well
1332
- */
1333
- include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null
1334
- }
1335
-
1336
- /**
1337
- * Session update
1338
- */
1339
- export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
- /**
1341
- * Select specific fields to fetch from the Session
1342
- */
1343
- select?: Prisma.SessionSelect<ExtArgs> | null
1344
- /**
1345
- * Omit specific fields from the Session
1346
- */
1347
- omit?: Prisma.SessionOmit<ExtArgs> | null
1348
- /**
1349
- * Choose, which related nodes to fetch as well
1350
- */
1351
- include?: Prisma.SessionInclude<ExtArgs> | null
1352
- /**
1353
- * The data needed to update a Session.
1354
- */
1355
- data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>
1356
- /**
1357
- * Choose, which Session to update.
1358
- */
1359
- where: Prisma.SessionWhereUniqueInput
1360
- }
1361
-
1362
- /**
1363
- * Session updateMany
1364
- */
1365
- export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1366
- /**
1367
- * The data used to update Sessions.
1368
- */
1369
- data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>
1370
- /**
1371
- * Filter which Sessions to update
1372
- */
1373
- where?: Prisma.SessionWhereInput
1374
- /**
1375
- * Limit how many Sessions to update.
1376
- */
1377
- limit?: number
1378
- }
1379
-
1380
- /**
1381
- * Session updateManyAndReturn
1382
- */
1383
- export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1384
- /**
1385
- * Select specific fields to fetch from the Session
1386
- */
1387
- select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null
1388
- /**
1389
- * Omit specific fields from the Session
1390
- */
1391
- omit?: Prisma.SessionOmit<ExtArgs> | null
1392
- /**
1393
- * The data used to update Sessions.
1394
- */
1395
- data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>
1396
- /**
1397
- * Filter which Sessions to update
1398
- */
1399
- where?: Prisma.SessionWhereInput
1400
- /**
1401
- * Limit how many Sessions to update.
1402
- */
1403
- limit?: number
1404
- /**
1405
- * Choose, which related nodes to fetch as well
1406
- */
1407
- include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null
1408
- }
1409
-
1410
- /**
1411
- * Session upsert
1412
- */
1413
- export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1414
- /**
1415
- * Select specific fields to fetch from the Session
1416
- */
1417
- select?: Prisma.SessionSelect<ExtArgs> | null
1418
- /**
1419
- * Omit specific fields from the Session
1420
- */
1421
- omit?: Prisma.SessionOmit<ExtArgs> | null
1422
- /**
1423
- * Choose, which related nodes to fetch as well
1424
- */
1425
- include?: Prisma.SessionInclude<ExtArgs> | null
1426
- /**
1427
- * The filter to search for the Session to update in case it exists.
1428
- */
1429
- where: Prisma.SessionWhereUniqueInput
1430
- /**
1431
- * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1432
- */
1433
- create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>
1434
- /**
1435
- * In case the Session was found with the provided `where` argument, update it with this data.
1436
- */
1437
- update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>
1438
- }
1439
-
1440
- /**
1441
- * Session delete
1442
- */
1443
- export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1444
- /**
1445
- * Select specific fields to fetch from the Session
1446
- */
1447
- select?: Prisma.SessionSelect<ExtArgs> | null
1448
- /**
1449
- * Omit specific fields from the Session
1450
- */
1451
- omit?: Prisma.SessionOmit<ExtArgs> | null
1452
- /**
1453
- * Choose, which related nodes to fetch as well
1454
- */
1455
- include?: Prisma.SessionInclude<ExtArgs> | null
1456
- /**
1457
- * Filter which Session to delete.
1458
- */
1459
- where: Prisma.SessionWhereUniqueInput
1460
- }
1461
-
1462
- /**
1463
- * Session deleteMany
1464
- */
1465
- export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1466
- /**
1467
- * Filter which Sessions to delete
1468
- */
1469
- where?: Prisma.SessionWhereInput
1470
- /**
1471
- * Limit how many Sessions to delete.
1472
- */
1473
- limit?: number
1474
- }
1475
-
1476
- /**
1477
- * Session without action
1478
- */
1479
- export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1480
- /**
1481
- * Select specific fields to fetch from the Session
1482
- */
1483
- select?: Prisma.SessionSelect<ExtArgs> | null
1484
- /**
1485
- * Omit specific fields from the Session
1486
- */
1487
- omit?: Prisma.SessionOmit<ExtArgs> | null
1488
- /**
1489
- * Choose, which related nodes to fetch as well
1490
- */
1491
- include?: Prisma.SessionInclude<ExtArgs> | null
1492
- }