@allbluecn/database 0.14.1 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1504 @@
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 `HarnessSession` 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.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model HarnessSession
17
+ * SessionIndexStore 载体(**独立表**)。
18
+ * ⚠ 设计 §4 原拟“建在 ChatThread 上”,但官方 conformance testkit(types.d.ts 同源)要求:
19
+ * ① 同一 threadId 在两个 tenant 下是两条 entry(ChatThread.id 单列主键无法表达);
20
+ * ② members 可为空数组(子代理线程无 owner),与 ChatThread.userId NOT NULL 冲突;
21
+ * ③ createdAt/updatedAt 以精确 JS number(epoch ms)经 toEqual round-trip。
22
+ * 故按“以类型真源为准”以独立复合主键表实现;ChatThread 的单一真源绑定(侧栏
23
+ * conversations serverFn 与 harness sessions.* 读写同一行)移到 Phase 2 会话桥接(T2.7),
24
+ * ChatThread.indexRevision/indexMetadata 为该桥接预留。
25
+ * createdAt/updatedAt 存 epoch ms,用 Float(double)承载:Date.now() < 2^53 精确,小整数亦精确。
26
+ */
27
+ export type HarnessSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$HarnessSessionPayload>
28
+
29
+ export type AggregateHarnessSession = {
30
+ _count: HarnessSessionCountAggregateOutputType | null
31
+ _avg: HarnessSessionAvgAggregateOutputType | null
32
+ _sum: HarnessSessionSumAggregateOutputType | null
33
+ _min: HarnessSessionMinAggregateOutputType | null
34
+ _max: HarnessSessionMaxAggregateOutputType | null
35
+ }
36
+
37
+ export type HarnessSessionAvgAggregateOutputType = {
38
+ createdAt: number | null
39
+ updatedAt: number | null
40
+ revision: number | null
41
+ }
42
+
43
+ export type HarnessSessionSumAggregateOutputType = {
44
+ createdAt: number | null
45
+ updatedAt: number | null
46
+ revision: number | null
47
+ }
48
+
49
+ export type HarnessSessionMinAggregateOutputType = {
50
+ tenantId: string | null
51
+ threadId: string | null
52
+ harness: string | null
53
+ title: string | null
54
+ parentThreadId: string | null
55
+ parentToolCallId: string | null
56
+ createdAt: number | null
57
+ updatedAt: number | null
58
+ revision: number | null
59
+ deletedAt: Date | null
60
+ pinned: boolean | null
61
+ archived: boolean | null
62
+ }
63
+
64
+ export type HarnessSessionMaxAggregateOutputType = {
65
+ tenantId: string | null
66
+ threadId: string | null
67
+ harness: string | null
68
+ title: string | null
69
+ parentThreadId: string | null
70
+ parentToolCallId: string | null
71
+ createdAt: number | null
72
+ updatedAt: number | null
73
+ revision: number | null
74
+ deletedAt: Date | null
75
+ pinned: boolean | null
76
+ archived: boolean | null
77
+ }
78
+
79
+ export type HarnessSessionCountAggregateOutputType = {
80
+ tenantId: number
81
+ threadId: number
82
+ harness: number
83
+ title: number
84
+ parentThreadId: number
85
+ parentToolCallId: number
86
+ createdAt: number
87
+ updatedAt: number
88
+ revision: number
89
+ deletedAt: number
90
+ members: number
91
+ pinned: number
92
+ archived: number
93
+ usage: number
94
+ metadata: number
95
+ _all: number
96
+ }
97
+
98
+
99
+ export type HarnessSessionAvgAggregateInputType = {
100
+ createdAt?: true
101
+ updatedAt?: true
102
+ revision?: true
103
+ }
104
+
105
+ export type HarnessSessionSumAggregateInputType = {
106
+ createdAt?: true
107
+ updatedAt?: true
108
+ revision?: true
109
+ }
110
+
111
+ export type HarnessSessionMinAggregateInputType = {
112
+ tenantId?: true
113
+ threadId?: true
114
+ harness?: true
115
+ title?: true
116
+ parentThreadId?: true
117
+ parentToolCallId?: true
118
+ createdAt?: true
119
+ updatedAt?: true
120
+ revision?: true
121
+ deletedAt?: true
122
+ pinned?: true
123
+ archived?: true
124
+ }
125
+
126
+ export type HarnessSessionMaxAggregateInputType = {
127
+ tenantId?: true
128
+ threadId?: true
129
+ harness?: true
130
+ title?: true
131
+ parentThreadId?: true
132
+ parentToolCallId?: true
133
+ createdAt?: true
134
+ updatedAt?: true
135
+ revision?: true
136
+ deletedAt?: true
137
+ pinned?: true
138
+ archived?: true
139
+ }
140
+
141
+ export type HarnessSessionCountAggregateInputType = {
142
+ tenantId?: true
143
+ threadId?: true
144
+ harness?: true
145
+ title?: true
146
+ parentThreadId?: true
147
+ parentToolCallId?: true
148
+ createdAt?: true
149
+ updatedAt?: true
150
+ revision?: true
151
+ deletedAt?: true
152
+ members?: true
153
+ pinned?: true
154
+ archived?: true
155
+ usage?: true
156
+ metadata?: true
157
+ _all?: true
158
+ }
159
+
160
+ export type HarnessSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
161
+ /**
162
+ * Filter which HarnessSession to aggregate.
163
+ */
164
+ where?: Prisma.HarnessSessionWhereInput
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
167
+ *
168
+ * Determine the order of HarnessSessions to fetch.
169
+ */
170
+ orderBy?: Prisma.HarnessSessionOrderByWithRelationInput | Prisma.HarnessSessionOrderByWithRelationInput[]
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
173
+ *
174
+ * Sets the start position
175
+ */
176
+ cursor?: Prisma.HarnessSessionWhereUniqueInput
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
179
+ *
180
+ * Take `±n` HarnessSessions from the position of the cursor.
181
+ */
182
+ take?: number
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
185
+ *
186
+ * Skip the first `n` HarnessSessions.
187
+ */
188
+ skip?: number
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Count returned HarnessSessions
193
+ **/
194
+ _count?: true | HarnessSessionCountAggregateInputType
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to average
199
+ **/
200
+ _avg?: HarnessSessionAvgAggregateInputType
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to sum
205
+ **/
206
+ _sum?: HarnessSessionSumAggregateInputType
207
+ /**
208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
209
+ *
210
+ * Select which fields to find the minimum value
211
+ **/
212
+ _min?: HarnessSessionMinAggregateInputType
213
+ /**
214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
215
+ *
216
+ * Select which fields to find the maximum value
217
+ **/
218
+ _max?: HarnessSessionMaxAggregateInputType
219
+ }
220
+
221
+ export type GetHarnessSessionAggregateType<T extends HarnessSessionAggregateArgs> = {
222
+ [P in keyof T & keyof AggregateHarnessSession]: P extends '_count' | 'count'
223
+ ? T[P] extends true
224
+ ? number
225
+ : Prisma.GetScalarType<T[P], AggregateHarnessSession[P]>
226
+ : Prisma.GetScalarType<T[P], AggregateHarnessSession[P]>
227
+ }
228
+
229
+
230
+
231
+
232
+ export type HarnessSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
233
+ where?: Prisma.HarnessSessionWhereInput
234
+ orderBy?: Prisma.HarnessSessionOrderByWithAggregationInput | Prisma.HarnessSessionOrderByWithAggregationInput[]
235
+ by: Prisma.HarnessSessionScalarFieldEnum[] | Prisma.HarnessSessionScalarFieldEnum
236
+ having?: Prisma.HarnessSessionScalarWhereWithAggregatesInput
237
+ take?: number
238
+ skip?: number
239
+ _count?: HarnessSessionCountAggregateInputType | true
240
+ _avg?: HarnessSessionAvgAggregateInputType
241
+ _sum?: HarnessSessionSumAggregateInputType
242
+ _min?: HarnessSessionMinAggregateInputType
243
+ _max?: HarnessSessionMaxAggregateInputType
244
+ }
245
+
246
+ export type HarnessSessionGroupByOutputType = {
247
+ tenantId: string
248
+ threadId: string
249
+ harness: string | null
250
+ title: string | null
251
+ parentThreadId: string | null
252
+ parentToolCallId: string | null
253
+ createdAt: number
254
+ updatedAt: number
255
+ revision: number
256
+ deletedAt: Date | null
257
+ members: runtime.JsonValue | null
258
+ pinned: boolean | null
259
+ archived: boolean | null
260
+ usage: runtime.JsonValue | null
261
+ metadata: runtime.JsonValue | null
262
+ _count: HarnessSessionCountAggregateOutputType | null
263
+ _avg: HarnessSessionAvgAggregateOutputType | null
264
+ _sum: HarnessSessionSumAggregateOutputType | null
265
+ _min: HarnessSessionMinAggregateOutputType | null
266
+ _max: HarnessSessionMaxAggregateOutputType | null
267
+ }
268
+
269
+ export type GetHarnessSessionGroupByPayload<T extends HarnessSessionGroupByArgs> = Prisma.PrismaPromise<
270
+ Array<
271
+ Prisma.PickEnumerable<HarnessSessionGroupByOutputType, T['by']> &
272
+ {
273
+ [P in ((keyof T) & (keyof HarnessSessionGroupByOutputType))]: P extends '_count'
274
+ ? T[P] extends boolean
275
+ ? number
276
+ : Prisma.GetScalarType<T[P], HarnessSessionGroupByOutputType[P]>
277
+ : Prisma.GetScalarType<T[P], HarnessSessionGroupByOutputType[P]>
278
+ }
279
+ >
280
+ >
281
+
282
+
283
+
284
+ export type HarnessSessionWhereInput = {
285
+ AND?: Prisma.HarnessSessionWhereInput | Prisma.HarnessSessionWhereInput[]
286
+ OR?: Prisma.HarnessSessionWhereInput[]
287
+ NOT?: Prisma.HarnessSessionWhereInput | Prisma.HarnessSessionWhereInput[]
288
+ tenantId?: Prisma.StringFilter<"HarnessSession"> | string
289
+ threadId?: Prisma.StringFilter<"HarnessSession"> | string
290
+ harness?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
291
+ title?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
292
+ parentThreadId?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
293
+ parentToolCallId?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
294
+ createdAt?: Prisma.FloatFilter<"HarnessSession"> | number
295
+ updatedAt?: Prisma.FloatFilter<"HarnessSession"> | number
296
+ revision?: Prisma.IntFilter<"HarnessSession"> | number
297
+ deletedAt?: Prisma.DateTimeNullableFilter<"HarnessSession"> | Date | string | null
298
+ members?: Prisma.JsonNullableFilter<"HarnessSession">
299
+ pinned?: Prisma.BoolNullableFilter<"HarnessSession"> | boolean | null
300
+ archived?: Prisma.BoolNullableFilter<"HarnessSession"> | boolean | null
301
+ usage?: Prisma.JsonNullableFilter<"HarnessSession">
302
+ metadata?: Prisma.JsonNullableFilter<"HarnessSession">
303
+ }
304
+
305
+ export type HarnessSessionOrderByWithRelationInput = {
306
+ tenantId?: Prisma.SortOrder
307
+ threadId?: Prisma.SortOrder
308
+ harness?: Prisma.SortOrderInput | Prisma.SortOrder
309
+ title?: Prisma.SortOrderInput | Prisma.SortOrder
310
+ parentThreadId?: Prisma.SortOrderInput | Prisma.SortOrder
311
+ parentToolCallId?: Prisma.SortOrderInput | Prisma.SortOrder
312
+ createdAt?: Prisma.SortOrder
313
+ updatedAt?: Prisma.SortOrder
314
+ revision?: Prisma.SortOrder
315
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
316
+ members?: Prisma.SortOrderInput | Prisma.SortOrder
317
+ pinned?: Prisma.SortOrderInput | Prisma.SortOrder
318
+ archived?: Prisma.SortOrderInput | Prisma.SortOrder
319
+ usage?: Prisma.SortOrderInput | Prisma.SortOrder
320
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
321
+ }
322
+
323
+ export type HarnessSessionWhereUniqueInput = Prisma.AtLeast<{
324
+ tenantId_threadId?: Prisma.HarnessSessionTenantIdThreadIdCompoundUniqueInput
325
+ AND?: Prisma.HarnessSessionWhereInput | Prisma.HarnessSessionWhereInput[]
326
+ OR?: Prisma.HarnessSessionWhereInput[]
327
+ NOT?: Prisma.HarnessSessionWhereInput | Prisma.HarnessSessionWhereInput[]
328
+ tenantId?: Prisma.StringFilter<"HarnessSession"> | string
329
+ threadId?: Prisma.StringFilter<"HarnessSession"> | string
330
+ harness?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
331
+ title?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
332
+ parentThreadId?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
333
+ parentToolCallId?: Prisma.StringNullableFilter<"HarnessSession"> | string | null
334
+ createdAt?: Prisma.FloatFilter<"HarnessSession"> | number
335
+ updatedAt?: Prisma.FloatFilter<"HarnessSession"> | number
336
+ revision?: Prisma.IntFilter<"HarnessSession"> | number
337
+ deletedAt?: Prisma.DateTimeNullableFilter<"HarnessSession"> | Date | string | null
338
+ members?: Prisma.JsonNullableFilter<"HarnessSession">
339
+ pinned?: Prisma.BoolNullableFilter<"HarnessSession"> | boolean | null
340
+ archived?: Prisma.BoolNullableFilter<"HarnessSession"> | boolean | null
341
+ usage?: Prisma.JsonNullableFilter<"HarnessSession">
342
+ metadata?: Prisma.JsonNullableFilter<"HarnessSession">
343
+ }, "tenantId_threadId">
344
+
345
+ export type HarnessSessionOrderByWithAggregationInput = {
346
+ tenantId?: Prisma.SortOrder
347
+ threadId?: Prisma.SortOrder
348
+ harness?: Prisma.SortOrderInput | Prisma.SortOrder
349
+ title?: Prisma.SortOrderInput | Prisma.SortOrder
350
+ parentThreadId?: Prisma.SortOrderInput | Prisma.SortOrder
351
+ parentToolCallId?: Prisma.SortOrderInput | Prisma.SortOrder
352
+ createdAt?: Prisma.SortOrder
353
+ updatedAt?: Prisma.SortOrder
354
+ revision?: Prisma.SortOrder
355
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
356
+ members?: Prisma.SortOrderInput | Prisma.SortOrder
357
+ pinned?: Prisma.SortOrderInput | Prisma.SortOrder
358
+ archived?: Prisma.SortOrderInput | Prisma.SortOrder
359
+ usage?: Prisma.SortOrderInput | Prisma.SortOrder
360
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
361
+ _count?: Prisma.HarnessSessionCountOrderByAggregateInput
362
+ _avg?: Prisma.HarnessSessionAvgOrderByAggregateInput
363
+ _max?: Prisma.HarnessSessionMaxOrderByAggregateInput
364
+ _min?: Prisma.HarnessSessionMinOrderByAggregateInput
365
+ _sum?: Prisma.HarnessSessionSumOrderByAggregateInput
366
+ }
367
+
368
+ export type HarnessSessionScalarWhereWithAggregatesInput = {
369
+ AND?: Prisma.HarnessSessionScalarWhereWithAggregatesInput | Prisma.HarnessSessionScalarWhereWithAggregatesInput[]
370
+ OR?: Prisma.HarnessSessionScalarWhereWithAggregatesInput[]
371
+ NOT?: Prisma.HarnessSessionScalarWhereWithAggregatesInput | Prisma.HarnessSessionScalarWhereWithAggregatesInput[]
372
+ tenantId?: Prisma.StringWithAggregatesFilter<"HarnessSession"> | string
373
+ threadId?: Prisma.StringWithAggregatesFilter<"HarnessSession"> | string
374
+ harness?: Prisma.StringNullableWithAggregatesFilter<"HarnessSession"> | string | null
375
+ title?: Prisma.StringNullableWithAggregatesFilter<"HarnessSession"> | string | null
376
+ parentThreadId?: Prisma.StringNullableWithAggregatesFilter<"HarnessSession"> | string | null
377
+ parentToolCallId?: Prisma.StringNullableWithAggregatesFilter<"HarnessSession"> | string | null
378
+ createdAt?: Prisma.FloatWithAggregatesFilter<"HarnessSession"> | number
379
+ updatedAt?: Prisma.FloatWithAggregatesFilter<"HarnessSession"> | number
380
+ revision?: Prisma.IntWithAggregatesFilter<"HarnessSession"> | number
381
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HarnessSession"> | Date | string | null
382
+ members?: Prisma.JsonNullableWithAggregatesFilter<"HarnessSession">
383
+ pinned?: Prisma.BoolNullableWithAggregatesFilter<"HarnessSession"> | boolean | null
384
+ archived?: Prisma.BoolNullableWithAggregatesFilter<"HarnessSession"> | boolean | null
385
+ usage?: Prisma.JsonNullableWithAggregatesFilter<"HarnessSession">
386
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"HarnessSession">
387
+ }
388
+
389
+ export type HarnessSessionCreateInput = {
390
+ tenantId?: string
391
+ threadId: string
392
+ harness?: string | null
393
+ title?: string | null
394
+ parentThreadId?: string | null
395
+ parentToolCallId?: string | null
396
+ createdAt: number
397
+ updatedAt: number
398
+ revision?: number
399
+ deletedAt?: Date | string | null
400
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
401
+ pinned?: boolean | null
402
+ archived?: boolean | null
403
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
404
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
405
+ }
406
+
407
+ export type HarnessSessionUncheckedCreateInput = {
408
+ tenantId?: string
409
+ threadId: string
410
+ harness?: string | null
411
+ title?: string | null
412
+ parentThreadId?: string | null
413
+ parentToolCallId?: string | null
414
+ createdAt: number
415
+ updatedAt: number
416
+ revision?: number
417
+ deletedAt?: Date | string | null
418
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
419
+ pinned?: boolean | null
420
+ archived?: boolean | null
421
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
422
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
423
+ }
424
+
425
+ export type HarnessSessionUpdateInput = {
426
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string
427
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
428
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
429
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
430
+ parentThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
431
+ parentToolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
432
+ createdAt?: Prisma.FloatFieldUpdateOperationsInput | number
433
+ updatedAt?: Prisma.FloatFieldUpdateOperationsInput | number
434
+ revision?: Prisma.IntFieldUpdateOperationsInput | number
435
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
436
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
437
+ pinned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
438
+ archived?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
439
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
440
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
441
+ }
442
+
443
+ export type HarnessSessionUncheckedUpdateInput = {
444
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string
445
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
446
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
447
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
448
+ parentThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
449
+ parentToolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
450
+ createdAt?: Prisma.FloatFieldUpdateOperationsInput | number
451
+ updatedAt?: Prisma.FloatFieldUpdateOperationsInput | number
452
+ revision?: Prisma.IntFieldUpdateOperationsInput | number
453
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
454
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
455
+ pinned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
456
+ archived?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
457
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
458
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
459
+ }
460
+
461
+ export type HarnessSessionCreateManyInput = {
462
+ tenantId?: string
463
+ threadId: string
464
+ harness?: string | null
465
+ title?: string | null
466
+ parentThreadId?: string | null
467
+ parentToolCallId?: string | null
468
+ createdAt: number
469
+ updatedAt: number
470
+ revision?: number
471
+ deletedAt?: Date | string | null
472
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
473
+ pinned?: boolean | null
474
+ archived?: boolean | null
475
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
476
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
477
+ }
478
+
479
+ export type HarnessSessionUpdateManyMutationInput = {
480
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string
481
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
482
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
483
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
484
+ parentThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
485
+ parentToolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
486
+ createdAt?: Prisma.FloatFieldUpdateOperationsInput | number
487
+ updatedAt?: Prisma.FloatFieldUpdateOperationsInput | number
488
+ revision?: Prisma.IntFieldUpdateOperationsInput | number
489
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
490
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
491
+ pinned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
492
+ archived?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
493
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
494
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
495
+ }
496
+
497
+ export type HarnessSessionUncheckedUpdateManyInput = {
498
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string
499
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
500
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
501
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
502
+ parentThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
503
+ parentToolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
504
+ createdAt?: Prisma.FloatFieldUpdateOperationsInput | number
505
+ updatedAt?: Prisma.FloatFieldUpdateOperationsInput | number
506
+ revision?: Prisma.IntFieldUpdateOperationsInput | number
507
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
508
+ members?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
509
+ pinned?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
510
+ archived?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
511
+ usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
512
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
513
+ }
514
+
515
+ export type HarnessSessionTenantIdThreadIdCompoundUniqueInput = {
516
+ tenantId: string
517
+ threadId: string
518
+ }
519
+
520
+ export type HarnessSessionCountOrderByAggregateInput = {
521
+ tenantId?: Prisma.SortOrder
522
+ threadId?: Prisma.SortOrder
523
+ harness?: Prisma.SortOrder
524
+ title?: Prisma.SortOrder
525
+ parentThreadId?: Prisma.SortOrder
526
+ parentToolCallId?: Prisma.SortOrder
527
+ createdAt?: Prisma.SortOrder
528
+ updatedAt?: Prisma.SortOrder
529
+ revision?: Prisma.SortOrder
530
+ deletedAt?: Prisma.SortOrder
531
+ members?: Prisma.SortOrder
532
+ pinned?: Prisma.SortOrder
533
+ archived?: Prisma.SortOrder
534
+ usage?: Prisma.SortOrder
535
+ metadata?: Prisma.SortOrder
536
+ }
537
+
538
+ export type HarnessSessionAvgOrderByAggregateInput = {
539
+ createdAt?: Prisma.SortOrder
540
+ updatedAt?: Prisma.SortOrder
541
+ revision?: Prisma.SortOrder
542
+ }
543
+
544
+ export type HarnessSessionMaxOrderByAggregateInput = {
545
+ tenantId?: Prisma.SortOrder
546
+ threadId?: Prisma.SortOrder
547
+ harness?: Prisma.SortOrder
548
+ title?: Prisma.SortOrder
549
+ parentThreadId?: Prisma.SortOrder
550
+ parentToolCallId?: Prisma.SortOrder
551
+ createdAt?: Prisma.SortOrder
552
+ updatedAt?: Prisma.SortOrder
553
+ revision?: Prisma.SortOrder
554
+ deletedAt?: Prisma.SortOrder
555
+ pinned?: Prisma.SortOrder
556
+ archived?: Prisma.SortOrder
557
+ }
558
+
559
+ export type HarnessSessionMinOrderByAggregateInput = {
560
+ tenantId?: Prisma.SortOrder
561
+ threadId?: Prisma.SortOrder
562
+ harness?: Prisma.SortOrder
563
+ title?: Prisma.SortOrder
564
+ parentThreadId?: Prisma.SortOrder
565
+ parentToolCallId?: Prisma.SortOrder
566
+ createdAt?: Prisma.SortOrder
567
+ updatedAt?: Prisma.SortOrder
568
+ revision?: Prisma.SortOrder
569
+ deletedAt?: Prisma.SortOrder
570
+ pinned?: Prisma.SortOrder
571
+ archived?: Prisma.SortOrder
572
+ }
573
+
574
+ export type HarnessSessionSumOrderByAggregateInput = {
575
+ createdAt?: Prisma.SortOrder
576
+ updatedAt?: Prisma.SortOrder
577
+ revision?: Prisma.SortOrder
578
+ }
579
+
580
+
581
+
582
+ export type HarnessSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
583
+ tenantId?: boolean
584
+ threadId?: boolean
585
+ harness?: boolean
586
+ title?: boolean
587
+ parentThreadId?: boolean
588
+ parentToolCallId?: boolean
589
+ createdAt?: boolean
590
+ updatedAt?: boolean
591
+ revision?: boolean
592
+ deletedAt?: boolean
593
+ members?: boolean
594
+ pinned?: boolean
595
+ archived?: boolean
596
+ usage?: boolean
597
+ metadata?: boolean
598
+ }, ExtArgs["result"]["harnessSession"]>
599
+
600
+ export type HarnessSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
601
+ tenantId?: boolean
602
+ threadId?: boolean
603
+ harness?: boolean
604
+ title?: boolean
605
+ parentThreadId?: boolean
606
+ parentToolCallId?: boolean
607
+ createdAt?: boolean
608
+ updatedAt?: boolean
609
+ revision?: boolean
610
+ deletedAt?: boolean
611
+ members?: boolean
612
+ pinned?: boolean
613
+ archived?: boolean
614
+ usage?: boolean
615
+ metadata?: boolean
616
+ }, ExtArgs["result"]["harnessSession"]>
617
+
618
+ export type HarnessSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
619
+ tenantId?: boolean
620
+ threadId?: boolean
621
+ harness?: boolean
622
+ title?: boolean
623
+ parentThreadId?: boolean
624
+ parentToolCallId?: boolean
625
+ createdAt?: boolean
626
+ updatedAt?: boolean
627
+ revision?: boolean
628
+ deletedAt?: boolean
629
+ members?: boolean
630
+ pinned?: boolean
631
+ archived?: boolean
632
+ usage?: boolean
633
+ metadata?: boolean
634
+ }, ExtArgs["result"]["harnessSession"]>
635
+
636
+ export type HarnessSessionSelectScalar = {
637
+ tenantId?: boolean
638
+ threadId?: boolean
639
+ harness?: boolean
640
+ title?: boolean
641
+ parentThreadId?: boolean
642
+ parentToolCallId?: boolean
643
+ createdAt?: boolean
644
+ updatedAt?: boolean
645
+ revision?: boolean
646
+ deletedAt?: boolean
647
+ members?: boolean
648
+ pinned?: boolean
649
+ archived?: boolean
650
+ usage?: boolean
651
+ metadata?: boolean
652
+ }
653
+
654
+ export type HarnessSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"tenantId" | "threadId" | "harness" | "title" | "parentThreadId" | "parentToolCallId" | "createdAt" | "updatedAt" | "revision" | "deletedAt" | "members" | "pinned" | "archived" | "usage" | "metadata", ExtArgs["result"]["harnessSession"]>
655
+
656
+ export type $HarnessSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
657
+ name: "HarnessSession"
658
+ objects: {}
659
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
660
+ tenantId: string
661
+ threadId: string
662
+ harness: string | null
663
+ title: string | null
664
+ parentThreadId: string | null
665
+ parentToolCallId: string | null
666
+ /**
667
+ * epoch ms(Float 承载,精确 round-trip)
668
+ */
669
+ createdAt: number
670
+ /**
671
+ * epoch ms(Float 承载;list 按 desc 排序,同值按 threadId 字节序 tie-break)
672
+ */
673
+ updatedAt: number
674
+ /**
675
+ * CAS 版本(getVersioned/upsertIf);每次写递增
676
+ */
677
+ revision: number
678
+ /**
679
+ * CAS tombstone(软删标记):行保留使 revision 单调跨 delete——官方契约
680
+ * 「a revision does not come back after a delete」;读路径(get/getVersioned/list)
681
+ * 过滤 deletedAt 非空行,delete 置位、重建(写入)清位
682
+ */
683
+ deletedAt: Date | null
684
+ /**
685
+ * SessionMember[](可为空数组 = 无 owner,子代理线程)
686
+ */
687
+ members: runtime.JsonValue | null
688
+ pinned: boolean | null
689
+ archived: boolean | null
690
+ /**
691
+ * SessionIndexEntry['usage']
692
+ */
693
+ usage: runtime.JsonValue | null
694
+ /**
695
+ * 应用自有 metadata
696
+ */
697
+ metadata: runtime.JsonValue | null
698
+ }, ExtArgs["result"]["harnessSession"]>
699
+ composites: {}
700
+ }
701
+
702
+ export type HarnessSessionGetPayload<S extends boolean | null | undefined | HarnessSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload, S>
703
+
704
+ export type HarnessSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
705
+ Omit<HarnessSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
706
+ select?: HarnessSessionCountAggregateInputType | true
707
+ }
708
+
709
+ export interface HarnessSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
710
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HarnessSession'], meta: { name: 'HarnessSession' } }
711
+ /**
712
+ * Find zero or one HarnessSession that matches the filter.
713
+ * @param {HarnessSessionFindUniqueArgs} args - Arguments to find a HarnessSession
714
+ * @example
715
+ * // Get one HarnessSession
716
+ * const harnessSession = await prisma.harnessSession.findUnique({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * }
720
+ * })
721
+ */
722
+ findUnique<T extends HarnessSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, HarnessSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
723
+
724
+ /**
725
+ * Find one HarnessSession that matches the filter or throw an error with `error.code='P2025'`
726
+ * if no matches were found.
727
+ * @param {HarnessSessionFindUniqueOrThrowArgs} args - Arguments to find a HarnessSession
728
+ * @example
729
+ * // Get one HarnessSession
730
+ * const harnessSession = await prisma.harnessSession.findUniqueOrThrow({
731
+ * where: {
732
+ * // ... provide filter here
733
+ * }
734
+ * })
735
+ */
736
+ findUniqueOrThrow<T extends HarnessSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HarnessSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
737
+
738
+ /**
739
+ * Find the first HarnessSession that matches the filter.
740
+ * Note, that providing `undefined` is treated as the value not being there.
741
+ * Read more here: https://pris.ly/d/null-undefined
742
+ * @param {HarnessSessionFindFirstArgs} args - Arguments to find a HarnessSession
743
+ * @example
744
+ * // Get one HarnessSession
745
+ * const harnessSession = await prisma.harnessSession.findFirst({
746
+ * where: {
747
+ * // ... provide filter here
748
+ * }
749
+ * })
750
+ */
751
+ findFirst<T extends HarnessSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, HarnessSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
752
+
753
+ /**
754
+ * Find the first HarnessSession that matches the filter or
755
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {HarnessSessionFindFirstOrThrowArgs} args - Arguments to find a HarnessSession
759
+ * @example
760
+ * // Get one HarnessSession
761
+ * const harnessSession = await prisma.harnessSession.findFirstOrThrow({
762
+ * where: {
763
+ * // ... provide filter here
764
+ * }
765
+ * })
766
+ */
767
+ findFirstOrThrow<T extends HarnessSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HarnessSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
768
+
769
+ /**
770
+ * Find zero or more HarnessSessions that matches the filter.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {HarnessSessionFindManyArgs} args - Arguments to filter and select certain fields only.
774
+ * @example
775
+ * // Get all HarnessSessions
776
+ * const harnessSessions = await prisma.harnessSession.findMany()
777
+ *
778
+ * // Get first 10 HarnessSessions
779
+ * const harnessSessions = await prisma.harnessSession.findMany({ take: 10 })
780
+ *
781
+ * // Only select the `tenantId`
782
+ * const harnessSessionWithTenantIdOnly = await prisma.harnessSession.findMany({ select: { tenantId: true } })
783
+ *
784
+ */
785
+ findMany<T extends HarnessSessionFindManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
786
+
787
+ /**
788
+ * Create a HarnessSession.
789
+ * @param {HarnessSessionCreateArgs} args - Arguments to create a HarnessSession.
790
+ * @example
791
+ * // Create one HarnessSession
792
+ * const HarnessSession = await prisma.harnessSession.create({
793
+ * data: {
794
+ * // ... data to create a HarnessSession
795
+ * }
796
+ * })
797
+ *
798
+ */
799
+ create<T extends HarnessSessionCreateArgs>(args: Prisma.SelectSubset<T, HarnessSessionCreateArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
800
+
801
+ /**
802
+ * Create many HarnessSessions.
803
+ * @param {HarnessSessionCreateManyArgs} args - Arguments to create many HarnessSessions.
804
+ * @example
805
+ * // Create many HarnessSessions
806
+ * const harnessSession = await prisma.harnessSession.createMany({
807
+ * data: [
808
+ * // ... provide data here
809
+ * ]
810
+ * })
811
+ *
812
+ */
813
+ createMany<T extends HarnessSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
814
+
815
+ /**
816
+ * Create many HarnessSessions and returns the data saved in the database.
817
+ * @param {HarnessSessionCreateManyAndReturnArgs} args - Arguments to create many HarnessSessions.
818
+ * @example
819
+ * // Create many HarnessSessions
820
+ * const harnessSession = await prisma.harnessSession.createManyAndReturn({
821
+ * data: [
822
+ * // ... provide data here
823
+ * ]
824
+ * })
825
+ *
826
+ * // Create many HarnessSessions and only return the `tenantId`
827
+ * const harnessSessionWithTenantIdOnly = await prisma.harnessSession.createManyAndReturn({
828
+ * select: { tenantId: true },
829
+ * data: [
830
+ * // ... provide data here
831
+ * ]
832
+ * })
833
+ * Note, that providing `undefined` is treated as the value not being there.
834
+ * Read more here: https://pris.ly/d/null-undefined
835
+ *
836
+ */
837
+ createManyAndReturn<T extends HarnessSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HarnessSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
838
+
839
+ /**
840
+ * Delete a HarnessSession.
841
+ * @param {HarnessSessionDeleteArgs} args - Arguments to delete one HarnessSession.
842
+ * @example
843
+ * // Delete one HarnessSession
844
+ * const HarnessSession = await prisma.harnessSession.delete({
845
+ * where: {
846
+ * // ... filter to delete one HarnessSession
847
+ * }
848
+ * })
849
+ *
850
+ */
851
+ delete<T extends HarnessSessionDeleteArgs>(args: Prisma.SelectSubset<T, HarnessSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
852
+
853
+ /**
854
+ * Update one HarnessSession.
855
+ * @param {HarnessSessionUpdateArgs} args - Arguments to update one HarnessSession.
856
+ * @example
857
+ * // Update one HarnessSession
858
+ * const harnessSession = await prisma.harnessSession.update({
859
+ * where: {
860
+ * // ... provide filter here
861
+ * },
862
+ * data: {
863
+ * // ... provide data here
864
+ * }
865
+ * })
866
+ *
867
+ */
868
+ update<T extends HarnessSessionUpdateArgs>(args: Prisma.SelectSubset<T, HarnessSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
869
+
870
+ /**
871
+ * Delete zero or more HarnessSessions.
872
+ * @param {HarnessSessionDeleteManyArgs} args - Arguments to filter HarnessSessions to delete.
873
+ * @example
874
+ * // Delete a few HarnessSessions
875
+ * const { count } = await prisma.harnessSession.deleteMany({
876
+ * where: {
877
+ * // ... provide filter here
878
+ * }
879
+ * })
880
+ *
881
+ */
882
+ deleteMany<T extends HarnessSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
883
+
884
+ /**
885
+ * Update zero or more HarnessSessions.
886
+ * Note, that providing `undefined` is treated as the value not being there.
887
+ * Read more here: https://pris.ly/d/null-undefined
888
+ * @param {HarnessSessionUpdateManyArgs} args - Arguments to update one or more rows.
889
+ * @example
890
+ * // Update many HarnessSessions
891
+ * const harnessSession = await prisma.harnessSession.updateMany({
892
+ * where: {
893
+ * // ... provide filter here
894
+ * },
895
+ * data: {
896
+ * // ... provide data here
897
+ * }
898
+ * })
899
+ *
900
+ */
901
+ updateMany<T extends HarnessSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, HarnessSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
902
+
903
+ /**
904
+ * Update zero or more HarnessSessions and returns the data updated in the database.
905
+ * @param {HarnessSessionUpdateManyAndReturnArgs} args - Arguments to update many HarnessSessions.
906
+ * @example
907
+ * // Update many HarnessSessions
908
+ * const harnessSession = await prisma.harnessSession.updateManyAndReturn({
909
+ * where: {
910
+ * // ... provide filter here
911
+ * },
912
+ * data: [
913
+ * // ... provide data here
914
+ * ]
915
+ * })
916
+ *
917
+ * // Update zero or more HarnessSessions and only return the `tenantId`
918
+ * const harnessSessionWithTenantIdOnly = await prisma.harnessSession.updateManyAndReturn({
919
+ * select: { tenantId: true },
920
+ * where: {
921
+ * // ... provide filter here
922
+ * },
923
+ * data: [
924
+ * // ... provide data here
925
+ * ]
926
+ * })
927
+ * Note, that providing `undefined` is treated as the value not being there.
928
+ * Read more here: https://pris.ly/d/null-undefined
929
+ *
930
+ */
931
+ updateManyAndReturn<T extends HarnessSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HarnessSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
932
+
933
+ /**
934
+ * Create or update one HarnessSession.
935
+ * @param {HarnessSessionUpsertArgs} args - Arguments to update or create a HarnessSession.
936
+ * @example
937
+ * // Update or create a HarnessSession
938
+ * const harnessSession = await prisma.harnessSession.upsert({
939
+ * create: {
940
+ * // ... data to create a HarnessSession
941
+ * },
942
+ * update: {
943
+ * // ... in case it already exists, update
944
+ * },
945
+ * where: {
946
+ * // ... the filter for the HarnessSession we want to update
947
+ * }
948
+ * })
949
+ */
950
+ upsert<T extends HarnessSessionUpsertArgs>(args: Prisma.SelectSubset<T, HarnessSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
951
+
952
+
953
+ /**
954
+ * Count the number of HarnessSessions.
955
+ * Note, that providing `undefined` is treated as the value not being there.
956
+ * Read more here: https://pris.ly/d/null-undefined
957
+ * @param {HarnessSessionCountArgs} args - Arguments to filter HarnessSessions to count.
958
+ * @example
959
+ * // Count the number of HarnessSessions
960
+ * const count = await prisma.harnessSession.count({
961
+ * where: {
962
+ * // ... the filter for the HarnessSessions we want to count
963
+ * }
964
+ * })
965
+ **/
966
+ count<T extends HarnessSessionCountArgs>(
967
+ args?: Prisma.Subset<T, HarnessSessionCountArgs>,
968
+ ): Prisma.PrismaPromise<
969
+ T extends runtime.Types.Utils.Record<'select', any>
970
+ ? T['select'] extends true
971
+ ? number
972
+ : Prisma.GetScalarType<T['select'], HarnessSessionCountAggregateOutputType>
973
+ : number
974
+ >
975
+
976
+ /**
977
+ * Allows you to perform aggregations operations on a HarnessSession.
978
+ * Note, that providing `undefined` is treated as the value not being there.
979
+ * Read more here: https://pris.ly/d/null-undefined
980
+ * @param {HarnessSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
981
+ * @example
982
+ * // Ordered by age ascending
983
+ * // Where email contains prisma.io
984
+ * // Limited to the 10 users
985
+ * const aggregations = await prisma.user.aggregate({
986
+ * _avg: {
987
+ * age: true,
988
+ * },
989
+ * where: {
990
+ * email: {
991
+ * contains: "prisma.io",
992
+ * },
993
+ * },
994
+ * orderBy: {
995
+ * age: "asc",
996
+ * },
997
+ * take: 10,
998
+ * })
999
+ **/
1000
+ aggregate<T extends HarnessSessionAggregateArgs>(args: Prisma.Subset<T, HarnessSessionAggregateArgs>): Prisma.PrismaPromise<GetHarnessSessionAggregateType<T>>
1001
+
1002
+ /**
1003
+ * Group by HarnessSession.
1004
+ * Note, that providing `undefined` is treated as the value not being there.
1005
+ * Read more here: https://pris.ly/d/null-undefined
1006
+ * @param {HarnessSessionGroupByArgs} args - Group by arguments.
1007
+ * @example
1008
+ * // Group by city, order by createdAt, get count
1009
+ * const result = await prisma.user.groupBy({
1010
+ * by: ['city', 'createdAt'],
1011
+ * orderBy: {
1012
+ * createdAt: true
1013
+ * },
1014
+ * _count: {
1015
+ * _all: true
1016
+ * },
1017
+ * })
1018
+ *
1019
+ **/
1020
+ groupBy<
1021
+ T extends HarnessSessionGroupByArgs,
1022
+ HasSelectOrTake extends Prisma.Or<
1023
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1024
+ Prisma.Extends<'take', Prisma.Keys<T>>
1025
+ >,
1026
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1027
+ ? { orderBy: HarnessSessionGroupByArgs['orderBy'] }
1028
+ : { orderBy?: HarnessSessionGroupByArgs['orderBy'] },
1029
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1030
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1031
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1032
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1033
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1034
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1035
+ InputErrors extends ByEmpty extends Prisma.True
1036
+ ? `Error: "by" must not be empty.`
1037
+ : HavingValid extends Prisma.False
1038
+ ? {
1039
+ [P in HavingFields]: P extends ByFields
1040
+ ? never
1041
+ : P extends string
1042
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1043
+ : [
1044
+ Error,
1045
+ 'Field ',
1046
+ P,
1047
+ ` in "having" needs to be provided in "by"`,
1048
+ ]
1049
+ }[HavingFields]
1050
+ : 'take' extends Prisma.Keys<T>
1051
+ ? 'orderBy' extends Prisma.Keys<T>
1052
+ ? ByValid extends Prisma.True
1053
+ ? {}
1054
+ : {
1055
+ [P in OrderFields]: P extends ByFields
1056
+ ? never
1057
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1058
+ }[OrderFields]
1059
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1060
+ : 'skip' extends Prisma.Keys<T>
1061
+ ? 'orderBy' extends Prisma.Keys<T>
1062
+ ? ByValid extends Prisma.True
1063
+ ? {}
1064
+ : {
1065
+ [P in OrderFields]: P extends ByFields
1066
+ ? never
1067
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1068
+ }[OrderFields]
1069
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1070
+ : ByValid extends Prisma.True
1071
+ ? {}
1072
+ : {
1073
+ [P in OrderFields]: P extends ByFields
1074
+ ? never
1075
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1076
+ }[OrderFields]
1077
+ >(args: Prisma.SubsetIntersection<T, HarnessSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHarnessSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1078
+ /**
1079
+ * Fields of the HarnessSession model
1080
+ */
1081
+ readonly fields: HarnessSessionFieldRefs;
1082
+ }
1083
+
1084
+ /**
1085
+ * The delegate class that acts as a "Promise-like" for HarnessSession.
1086
+ * Why is this prefixed with `Prisma__`?
1087
+ * Because we want to prevent naming conflicts as mentioned in
1088
+ * https://github.com/prisma/prisma-client-js/issues/707
1089
+ */
1090
+ export interface Prisma__HarnessSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1091
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1092
+ /**
1093
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1094
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1095
+ * @param onrejected The callback to execute when the Promise is rejected.
1096
+ * @returns A Promise for the completion of which ever callback is executed.
1097
+ */
1098
+ 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>
1099
+ /**
1100
+ * Attaches a callback for only the rejection of the Promise.
1101
+ * @param onrejected The callback to execute when the Promise is rejected.
1102
+ * @returns A Promise for the completion of the callback.
1103
+ */
1104
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1105
+ /**
1106
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1107
+ * resolved value cannot be modified from the callback.
1108
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1109
+ * @returns A Promise for the completion of the callback.
1110
+ */
1111
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1112
+ }
1113
+
1114
+
1115
+
1116
+
1117
+ /**
1118
+ * Fields of the HarnessSession model
1119
+ */
1120
+ export interface HarnessSessionFieldRefs {
1121
+ readonly tenantId: Prisma.FieldRef<"HarnessSession", 'String'>
1122
+ readonly threadId: Prisma.FieldRef<"HarnessSession", 'String'>
1123
+ readonly harness: Prisma.FieldRef<"HarnessSession", 'String'>
1124
+ readonly title: Prisma.FieldRef<"HarnessSession", 'String'>
1125
+ readonly parentThreadId: Prisma.FieldRef<"HarnessSession", 'String'>
1126
+ readonly parentToolCallId: Prisma.FieldRef<"HarnessSession", 'String'>
1127
+ readonly createdAt: Prisma.FieldRef<"HarnessSession", 'Float'>
1128
+ readonly updatedAt: Prisma.FieldRef<"HarnessSession", 'Float'>
1129
+ readonly revision: Prisma.FieldRef<"HarnessSession", 'Int'>
1130
+ readonly deletedAt: Prisma.FieldRef<"HarnessSession", 'DateTime'>
1131
+ readonly members: Prisma.FieldRef<"HarnessSession", 'Json'>
1132
+ readonly pinned: Prisma.FieldRef<"HarnessSession", 'Boolean'>
1133
+ readonly archived: Prisma.FieldRef<"HarnessSession", 'Boolean'>
1134
+ readonly usage: Prisma.FieldRef<"HarnessSession", 'Json'>
1135
+ readonly metadata: Prisma.FieldRef<"HarnessSession", 'Json'>
1136
+ }
1137
+
1138
+
1139
+ // Custom InputTypes
1140
+ /**
1141
+ * HarnessSession findUnique
1142
+ */
1143
+ export type HarnessSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1144
+ /**
1145
+ * Select specific fields to fetch from the HarnessSession
1146
+ */
1147
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1148
+ /**
1149
+ * Omit specific fields from the HarnessSession
1150
+ */
1151
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1152
+ /**
1153
+ * Filter, which HarnessSession to fetch.
1154
+ */
1155
+ where: Prisma.HarnessSessionWhereUniqueInput
1156
+ }
1157
+
1158
+ /**
1159
+ * HarnessSession findUniqueOrThrow
1160
+ */
1161
+ export type HarnessSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1162
+ /**
1163
+ * Select specific fields to fetch from the HarnessSession
1164
+ */
1165
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1166
+ /**
1167
+ * Omit specific fields from the HarnessSession
1168
+ */
1169
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1170
+ /**
1171
+ * Filter, which HarnessSession to fetch.
1172
+ */
1173
+ where: Prisma.HarnessSessionWhereUniqueInput
1174
+ }
1175
+
1176
+ /**
1177
+ * HarnessSession findFirst
1178
+ */
1179
+ export type HarnessSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
+ /**
1181
+ * Select specific fields to fetch from the HarnessSession
1182
+ */
1183
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1184
+ /**
1185
+ * Omit specific fields from the HarnessSession
1186
+ */
1187
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1188
+ /**
1189
+ * Filter, which HarnessSession to fetch.
1190
+ */
1191
+ where?: Prisma.HarnessSessionWhereInput
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1194
+ *
1195
+ * Determine the order of HarnessSessions to fetch.
1196
+ */
1197
+ orderBy?: Prisma.HarnessSessionOrderByWithRelationInput | Prisma.HarnessSessionOrderByWithRelationInput[]
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1200
+ *
1201
+ * Sets the position for searching for HarnessSessions.
1202
+ */
1203
+ cursor?: Prisma.HarnessSessionWhereUniqueInput
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1206
+ *
1207
+ * Take `±n` HarnessSessions from the position of the cursor.
1208
+ */
1209
+ take?: number
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1212
+ *
1213
+ * Skip the first `n` HarnessSessions.
1214
+ */
1215
+ skip?: number
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1218
+ *
1219
+ * Filter by unique combinations of HarnessSessions.
1220
+ */
1221
+ distinct?: Prisma.HarnessSessionScalarFieldEnum | Prisma.HarnessSessionScalarFieldEnum[]
1222
+ }
1223
+
1224
+ /**
1225
+ * HarnessSession findFirstOrThrow
1226
+ */
1227
+ export type HarnessSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
+ /**
1229
+ * Select specific fields to fetch from the HarnessSession
1230
+ */
1231
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1232
+ /**
1233
+ * Omit specific fields from the HarnessSession
1234
+ */
1235
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1236
+ /**
1237
+ * Filter, which HarnessSession to fetch.
1238
+ */
1239
+ where?: Prisma.HarnessSessionWhereInput
1240
+ /**
1241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1242
+ *
1243
+ * Determine the order of HarnessSessions to fetch.
1244
+ */
1245
+ orderBy?: Prisma.HarnessSessionOrderByWithRelationInput | Prisma.HarnessSessionOrderByWithRelationInput[]
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1248
+ *
1249
+ * Sets the position for searching for HarnessSessions.
1250
+ */
1251
+ cursor?: Prisma.HarnessSessionWhereUniqueInput
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
+ *
1255
+ * Take `±n` HarnessSessions from the position of the cursor.
1256
+ */
1257
+ take?: number
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1260
+ *
1261
+ * Skip the first `n` HarnessSessions.
1262
+ */
1263
+ skip?: number
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1266
+ *
1267
+ * Filter by unique combinations of HarnessSessions.
1268
+ */
1269
+ distinct?: Prisma.HarnessSessionScalarFieldEnum | Prisma.HarnessSessionScalarFieldEnum[]
1270
+ }
1271
+
1272
+ /**
1273
+ * HarnessSession findMany
1274
+ */
1275
+ export type HarnessSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ /**
1277
+ * Select specific fields to fetch from the HarnessSession
1278
+ */
1279
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1280
+ /**
1281
+ * Omit specific fields from the HarnessSession
1282
+ */
1283
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1284
+ /**
1285
+ * Filter, which HarnessSessions to fetch.
1286
+ */
1287
+ where?: Prisma.HarnessSessionWhereInput
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1290
+ *
1291
+ * Determine the order of HarnessSessions to fetch.
1292
+ */
1293
+ orderBy?: Prisma.HarnessSessionOrderByWithRelationInput | Prisma.HarnessSessionOrderByWithRelationInput[]
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1296
+ *
1297
+ * Sets the position for listing HarnessSessions.
1298
+ */
1299
+ cursor?: Prisma.HarnessSessionWhereUniqueInput
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1302
+ *
1303
+ * Take `±n` HarnessSessions from the position of the cursor.
1304
+ */
1305
+ take?: number
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1308
+ *
1309
+ * Skip the first `n` HarnessSessions.
1310
+ */
1311
+ skip?: number
1312
+ /**
1313
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1314
+ *
1315
+ * Filter by unique combinations of HarnessSessions.
1316
+ */
1317
+ distinct?: Prisma.HarnessSessionScalarFieldEnum | Prisma.HarnessSessionScalarFieldEnum[]
1318
+ }
1319
+
1320
+ /**
1321
+ * HarnessSession create
1322
+ */
1323
+ export type HarnessSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ /**
1325
+ * Select specific fields to fetch from the HarnessSession
1326
+ */
1327
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1328
+ /**
1329
+ * Omit specific fields from the HarnessSession
1330
+ */
1331
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1332
+ /**
1333
+ * The data needed to create a HarnessSession.
1334
+ */
1335
+ data: Prisma.XOR<Prisma.HarnessSessionCreateInput, Prisma.HarnessSessionUncheckedCreateInput>
1336
+ }
1337
+
1338
+ /**
1339
+ * HarnessSession createMany
1340
+ */
1341
+ export type HarnessSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1342
+ /**
1343
+ * The data used to create many HarnessSessions.
1344
+ */
1345
+ data: Prisma.HarnessSessionCreateManyInput | Prisma.HarnessSessionCreateManyInput[]
1346
+ skipDuplicates?: boolean
1347
+ }
1348
+
1349
+ /**
1350
+ * HarnessSession createManyAndReturn
1351
+ */
1352
+ export type HarnessSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1353
+ /**
1354
+ * Select specific fields to fetch from the HarnessSession
1355
+ */
1356
+ select?: Prisma.HarnessSessionSelectCreateManyAndReturn<ExtArgs> | null
1357
+ /**
1358
+ * Omit specific fields from the HarnessSession
1359
+ */
1360
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1361
+ /**
1362
+ * The data used to create many HarnessSessions.
1363
+ */
1364
+ data: Prisma.HarnessSessionCreateManyInput | Prisma.HarnessSessionCreateManyInput[]
1365
+ skipDuplicates?: boolean
1366
+ }
1367
+
1368
+ /**
1369
+ * HarnessSession update
1370
+ */
1371
+ export type HarnessSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1372
+ /**
1373
+ * Select specific fields to fetch from the HarnessSession
1374
+ */
1375
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1376
+ /**
1377
+ * Omit specific fields from the HarnessSession
1378
+ */
1379
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1380
+ /**
1381
+ * The data needed to update a HarnessSession.
1382
+ */
1383
+ data: Prisma.XOR<Prisma.HarnessSessionUpdateInput, Prisma.HarnessSessionUncheckedUpdateInput>
1384
+ /**
1385
+ * Choose, which HarnessSession to update.
1386
+ */
1387
+ where: Prisma.HarnessSessionWhereUniqueInput
1388
+ }
1389
+
1390
+ /**
1391
+ * HarnessSession updateMany
1392
+ */
1393
+ export type HarnessSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
+ /**
1395
+ * The data used to update HarnessSessions.
1396
+ */
1397
+ data: Prisma.XOR<Prisma.HarnessSessionUpdateManyMutationInput, Prisma.HarnessSessionUncheckedUpdateManyInput>
1398
+ /**
1399
+ * Filter which HarnessSessions to update
1400
+ */
1401
+ where?: Prisma.HarnessSessionWhereInput
1402
+ /**
1403
+ * Limit how many HarnessSessions to update.
1404
+ */
1405
+ limit?: number
1406
+ }
1407
+
1408
+ /**
1409
+ * HarnessSession updateManyAndReturn
1410
+ */
1411
+ export type HarnessSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1412
+ /**
1413
+ * Select specific fields to fetch from the HarnessSession
1414
+ */
1415
+ select?: Prisma.HarnessSessionSelectUpdateManyAndReturn<ExtArgs> | null
1416
+ /**
1417
+ * Omit specific fields from the HarnessSession
1418
+ */
1419
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1420
+ /**
1421
+ * The data used to update HarnessSessions.
1422
+ */
1423
+ data: Prisma.XOR<Prisma.HarnessSessionUpdateManyMutationInput, Prisma.HarnessSessionUncheckedUpdateManyInput>
1424
+ /**
1425
+ * Filter which HarnessSessions to update
1426
+ */
1427
+ where?: Prisma.HarnessSessionWhereInput
1428
+ /**
1429
+ * Limit how many HarnessSessions to update.
1430
+ */
1431
+ limit?: number
1432
+ }
1433
+
1434
+ /**
1435
+ * HarnessSession upsert
1436
+ */
1437
+ export type HarnessSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1438
+ /**
1439
+ * Select specific fields to fetch from the HarnessSession
1440
+ */
1441
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1442
+ /**
1443
+ * Omit specific fields from the HarnessSession
1444
+ */
1445
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1446
+ /**
1447
+ * The filter to search for the HarnessSession to update in case it exists.
1448
+ */
1449
+ where: Prisma.HarnessSessionWhereUniqueInput
1450
+ /**
1451
+ * In case the HarnessSession found by the `where` argument doesn't exist, create a new HarnessSession with this data.
1452
+ */
1453
+ create: Prisma.XOR<Prisma.HarnessSessionCreateInput, Prisma.HarnessSessionUncheckedCreateInput>
1454
+ /**
1455
+ * In case the HarnessSession was found with the provided `where` argument, update it with this data.
1456
+ */
1457
+ update: Prisma.XOR<Prisma.HarnessSessionUpdateInput, Prisma.HarnessSessionUncheckedUpdateInput>
1458
+ }
1459
+
1460
+ /**
1461
+ * HarnessSession delete
1462
+ */
1463
+ export type HarnessSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1464
+ /**
1465
+ * Select specific fields to fetch from the HarnessSession
1466
+ */
1467
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1468
+ /**
1469
+ * Omit specific fields from the HarnessSession
1470
+ */
1471
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1472
+ /**
1473
+ * Filter which HarnessSession to delete.
1474
+ */
1475
+ where: Prisma.HarnessSessionWhereUniqueInput
1476
+ }
1477
+
1478
+ /**
1479
+ * HarnessSession deleteMany
1480
+ */
1481
+ export type HarnessSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Filter which HarnessSessions to delete
1484
+ */
1485
+ where?: Prisma.HarnessSessionWhereInput
1486
+ /**
1487
+ * Limit how many HarnessSessions to delete.
1488
+ */
1489
+ limit?: number
1490
+ }
1491
+
1492
+ /**
1493
+ * HarnessSession without action
1494
+ */
1495
+ export type HarnessSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1496
+ /**
1497
+ * Select specific fields to fetch from the HarnessSession
1498
+ */
1499
+ select?: Prisma.HarnessSessionSelect<ExtArgs> | null
1500
+ /**
1501
+ * Omit specific fields from the HarnessSession
1502
+ */
1503
+ omit?: Prisma.HarnessSessionOmit<ExtArgs> | null
1504
+ }