@allbluecn/database 0.14.0 → 0.14.2

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