@allbluecn/database 0.14.6 → 0.14.7

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,1626 @@
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 `HarnessSessionSearchDocument` 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 HarnessSessionSearchDocument
17
+ *
18
+ */
19
+ export type HarnessSessionSearchDocumentModel = runtime.Types.Result.DefaultSelection<Prisma.$HarnessSessionSearchDocumentPayload>
20
+
21
+ export type AggregateHarnessSessionSearchDocument = {
22
+ _count: HarnessSessionSearchDocumentCountAggregateOutputType | null
23
+ _avg: HarnessSessionSearchDocumentAvgAggregateOutputType | null
24
+ _sum: HarnessSessionSearchDocumentSumAggregateOutputType | null
25
+ _min: HarnessSessionSearchDocumentMinAggregateOutputType | null
26
+ _max: HarnessSessionSearchDocumentMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type HarnessSessionSearchDocumentAvgAggregateOutputType = {
30
+ eventSeq: number | null
31
+ partIndex: number | null
32
+ }
33
+
34
+ export type HarnessSessionSearchDocumentSumAggregateOutputType = {
35
+ eventSeq: number | null
36
+ partIndex: number | null
37
+ }
38
+
39
+ export type HarnessSessionSearchDocumentMinAggregateOutputType = {
40
+ id: string | null
41
+ userId: string | null
42
+ logId: string | null
43
+ rootThreadId: string | null
44
+ subagentRunId: string | null
45
+ eventSeq: number | null
46
+ partIndex: number | null
47
+ messageId: string | null
48
+ inputId: string | null
49
+ kind: string | null
50
+ content: string | null
51
+ createdAt: Date | null
52
+ }
53
+
54
+ export type HarnessSessionSearchDocumentMaxAggregateOutputType = {
55
+ id: string | null
56
+ userId: string | null
57
+ logId: string | null
58
+ rootThreadId: string | null
59
+ subagentRunId: string | null
60
+ eventSeq: number | null
61
+ partIndex: number | null
62
+ messageId: string | null
63
+ inputId: string | null
64
+ kind: string | null
65
+ content: string | null
66
+ createdAt: Date | null
67
+ }
68
+
69
+ export type HarnessSessionSearchDocumentCountAggregateOutputType = {
70
+ id: number
71
+ userId: number
72
+ logId: number
73
+ rootThreadId: number
74
+ subagentRunId: number
75
+ eventSeq: number
76
+ partIndex: number
77
+ messageId: number
78
+ inputId: number
79
+ kind: number
80
+ content: number
81
+ createdAt: number
82
+ _all: number
83
+ }
84
+
85
+
86
+ export type HarnessSessionSearchDocumentAvgAggregateInputType = {
87
+ eventSeq?: true
88
+ partIndex?: true
89
+ }
90
+
91
+ export type HarnessSessionSearchDocumentSumAggregateInputType = {
92
+ eventSeq?: true
93
+ partIndex?: true
94
+ }
95
+
96
+ export type HarnessSessionSearchDocumentMinAggregateInputType = {
97
+ id?: true
98
+ userId?: true
99
+ logId?: true
100
+ rootThreadId?: true
101
+ subagentRunId?: true
102
+ eventSeq?: true
103
+ partIndex?: true
104
+ messageId?: true
105
+ inputId?: true
106
+ kind?: true
107
+ content?: true
108
+ createdAt?: true
109
+ }
110
+
111
+ export type HarnessSessionSearchDocumentMaxAggregateInputType = {
112
+ id?: true
113
+ userId?: true
114
+ logId?: true
115
+ rootThreadId?: true
116
+ subagentRunId?: true
117
+ eventSeq?: true
118
+ partIndex?: true
119
+ messageId?: true
120
+ inputId?: true
121
+ kind?: true
122
+ content?: true
123
+ createdAt?: true
124
+ }
125
+
126
+ export type HarnessSessionSearchDocumentCountAggregateInputType = {
127
+ id?: true
128
+ userId?: true
129
+ logId?: true
130
+ rootThreadId?: true
131
+ subagentRunId?: true
132
+ eventSeq?: true
133
+ partIndex?: true
134
+ messageId?: true
135
+ inputId?: true
136
+ kind?: true
137
+ content?: true
138
+ createdAt?: true
139
+ _all?: true
140
+ }
141
+
142
+ export type HarnessSessionSearchDocumentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ /**
144
+ * Filter which HarnessSessionSearchDocument to aggregate.
145
+ */
146
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
149
+ *
150
+ * Determine the order of HarnessSessionSearchDocuments to fetch.
151
+ */
152
+ orderBy?: Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput | Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput[]
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
155
+ *
156
+ * Sets the start position
157
+ */
158
+ cursor?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
161
+ *
162
+ * Take `±n` HarnessSessionSearchDocuments from the position of the cursor.
163
+ */
164
+ take?: number
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Skip the first `n` HarnessSessionSearchDocuments.
169
+ */
170
+ skip?: number
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Count returned HarnessSessionSearchDocuments
175
+ **/
176
+ _count?: true | HarnessSessionSearchDocumentCountAggregateInputType
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to average
181
+ **/
182
+ _avg?: HarnessSessionSearchDocumentAvgAggregateInputType
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to sum
187
+ **/
188
+ _sum?: HarnessSessionSearchDocumentSumAggregateInputType
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to find the minimum value
193
+ **/
194
+ _min?: HarnessSessionSearchDocumentMinAggregateInputType
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the maximum value
199
+ **/
200
+ _max?: HarnessSessionSearchDocumentMaxAggregateInputType
201
+ }
202
+
203
+ export type GetHarnessSessionSearchDocumentAggregateType<T extends HarnessSessionSearchDocumentAggregateArgs> = {
204
+ [P in keyof T & keyof AggregateHarnessSessionSearchDocument]: P extends '_count' | 'count'
205
+ ? T[P] extends true
206
+ ? number
207
+ : Prisma.GetScalarType<T[P], AggregateHarnessSessionSearchDocument[P]>
208
+ : Prisma.GetScalarType<T[P], AggregateHarnessSessionSearchDocument[P]>
209
+ }
210
+
211
+
212
+
213
+
214
+ export type HarnessSessionSearchDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
215
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
216
+ orderBy?: Prisma.HarnessSessionSearchDocumentOrderByWithAggregationInput | Prisma.HarnessSessionSearchDocumentOrderByWithAggregationInput[]
217
+ by: Prisma.HarnessSessionSearchDocumentScalarFieldEnum[] | Prisma.HarnessSessionSearchDocumentScalarFieldEnum
218
+ having?: Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput
219
+ take?: number
220
+ skip?: number
221
+ _count?: HarnessSessionSearchDocumentCountAggregateInputType | true
222
+ _avg?: HarnessSessionSearchDocumentAvgAggregateInputType
223
+ _sum?: HarnessSessionSearchDocumentSumAggregateInputType
224
+ _min?: HarnessSessionSearchDocumentMinAggregateInputType
225
+ _max?: HarnessSessionSearchDocumentMaxAggregateInputType
226
+ }
227
+
228
+ export type HarnessSessionSearchDocumentGroupByOutputType = {
229
+ id: string
230
+ userId: string
231
+ logId: string
232
+ rootThreadId: string
233
+ subagentRunId: string | null
234
+ eventSeq: number
235
+ partIndex: number
236
+ messageId: string
237
+ inputId: string | null
238
+ kind: string
239
+ content: string
240
+ createdAt: Date
241
+ _count: HarnessSessionSearchDocumentCountAggregateOutputType | null
242
+ _avg: HarnessSessionSearchDocumentAvgAggregateOutputType | null
243
+ _sum: HarnessSessionSearchDocumentSumAggregateOutputType | null
244
+ _min: HarnessSessionSearchDocumentMinAggregateOutputType | null
245
+ _max: HarnessSessionSearchDocumentMaxAggregateOutputType | null
246
+ }
247
+
248
+ export type GetHarnessSessionSearchDocumentGroupByPayload<T extends HarnessSessionSearchDocumentGroupByArgs> = Prisma.PrismaPromise<
249
+ Array<
250
+ Prisma.PickEnumerable<HarnessSessionSearchDocumentGroupByOutputType, T['by']> &
251
+ {
252
+ [P in ((keyof T) & (keyof HarnessSessionSearchDocumentGroupByOutputType))]: P extends '_count'
253
+ ? T[P] extends boolean
254
+ ? number
255
+ : Prisma.GetScalarType<T[P], HarnessSessionSearchDocumentGroupByOutputType[P]>
256
+ : Prisma.GetScalarType<T[P], HarnessSessionSearchDocumentGroupByOutputType[P]>
257
+ }
258
+ >
259
+ >
260
+
261
+
262
+
263
+ export type HarnessSessionSearchDocumentWhereInput = {
264
+ AND?: Prisma.HarnessSessionSearchDocumentWhereInput | Prisma.HarnessSessionSearchDocumentWhereInput[]
265
+ OR?: Prisma.HarnessSessionSearchDocumentWhereInput[]
266
+ NOT?: Prisma.HarnessSessionSearchDocumentWhereInput | Prisma.HarnessSessionSearchDocumentWhereInput[]
267
+ id?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
268
+ userId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
269
+ logId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
270
+ rootThreadId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
271
+ subagentRunId?: Prisma.StringNullableFilter<"HarnessSessionSearchDocument"> | string | null
272
+ eventSeq?: Prisma.IntFilter<"HarnessSessionSearchDocument"> | number
273
+ partIndex?: Prisma.IntFilter<"HarnessSessionSearchDocument"> | number
274
+ messageId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
275
+ inputId?: Prisma.StringNullableFilter<"HarnessSessionSearchDocument"> | string | null
276
+ kind?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
277
+ content?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
278
+ createdAt?: Prisma.DateTimeFilter<"HarnessSessionSearchDocument"> | Date | string
279
+ tokens?: Prisma.HarnessSessionSearchTokenListRelationFilter
280
+ }
281
+
282
+ export type HarnessSessionSearchDocumentOrderByWithRelationInput = {
283
+ id?: Prisma.SortOrder
284
+ userId?: Prisma.SortOrder
285
+ logId?: Prisma.SortOrder
286
+ rootThreadId?: Prisma.SortOrder
287
+ subagentRunId?: Prisma.SortOrderInput | Prisma.SortOrder
288
+ eventSeq?: Prisma.SortOrder
289
+ partIndex?: Prisma.SortOrder
290
+ messageId?: Prisma.SortOrder
291
+ inputId?: Prisma.SortOrderInput | Prisma.SortOrder
292
+ kind?: Prisma.SortOrder
293
+ content?: Prisma.SortOrder
294
+ createdAt?: Prisma.SortOrder
295
+ tokens?: Prisma.HarnessSessionSearchTokenOrderByRelationAggregateInput
296
+ }
297
+
298
+ export type HarnessSessionSearchDocumentWhereUniqueInput = Prisma.AtLeast<{
299
+ id?: string
300
+ logId_messageId_partIndex?: Prisma.HarnessSessionSearchDocumentLogIdMessageIdPartIndexCompoundUniqueInput
301
+ AND?: Prisma.HarnessSessionSearchDocumentWhereInput | Prisma.HarnessSessionSearchDocumentWhereInput[]
302
+ OR?: Prisma.HarnessSessionSearchDocumentWhereInput[]
303
+ NOT?: Prisma.HarnessSessionSearchDocumentWhereInput | Prisma.HarnessSessionSearchDocumentWhereInput[]
304
+ userId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
305
+ logId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
306
+ rootThreadId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
307
+ subagentRunId?: Prisma.StringNullableFilter<"HarnessSessionSearchDocument"> | string | null
308
+ eventSeq?: Prisma.IntFilter<"HarnessSessionSearchDocument"> | number
309
+ partIndex?: Prisma.IntFilter<"HarnessSessionSearchDocument"> | number
310
+ messageId?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
311
+ inputId?: Prisma.StringNullableFilter<"HarnessSessionSearchDocument"> | string | null
312
+ kind?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
313
+ content?: Prisma.StringFilter<"HarnessSessionSearchDocument"> | string
314
+ createdAt?: Prisma.DateTimeFilter<"HarnessSessionSearchDocument"> | Date | string
315
+ tokens?: Prisma.HarnessSessionSearchTokenListRelationFilter
316
+ }, "id" | "logId_messageId_partIndex">
317
+
318
+ export type HarnessSessionSearchDocumentOrderByWithAggregationInput = {
319
+ id?: Prisma.SortOrder
320
+ userId?: Prisma.SortOrder
321
+ logId?: Prisma.SortOrder
322
+ rootThreadId?: Prisma.SortOrder
323
+ subagentRunId?: Prisma.SortOrderInput | Prisma.SortOrder
324
+ eventSeq?: Prisma.SortOrder
325
+ partIndex?: Prisma.SortOrder
326
+ messageId?: Prisma.SortOrder
327
+ inputId?: Prisma.SortOrderInput | Prisma.SortOrder
328
+ kind?: Prisma.SortOrder
329
+ content?: Prisma.SortOrder
330
+ createdAt?: Prisma.SortOrder
331
+ _count?: Prisma.HarnessSessionSearchDocumentCountOrderByAggregateInput
332
+ _avg?: Prisma.HarnessSessionSearchDocumentAvgOrderByAggregateInput
333
+ _max?: Prisma.HarnessSessionSearchDocumentMaxOrderByAggregateInput
334
+ _min?: Prisma.HarnessSessionSearchDocumentMinOrderByAggregateInput
335
+ _sum?: Prisma.HarnessSessionSearchDocumentSumOrderByAggregateInput
336
+ }
337
+
338
+ export type HarnessSessionSearchDocumentScalarWhereWithAggregatesInput = {
339
+ AND?: Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput | Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput[]
340
+ OR?: Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput[]
341
+ NOT?: Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput | Prisma.HarnessSessionSearchDocumentScalarWhereWithAggregatesInput[]
342
+ id?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
343
+ userId?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
344
+ logId?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
345
+ rootThreadId?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
346
+ subagentRunId?: Prisma.StringNullableWithAggregatesFilter<"HarnessSessionSearchDocument"> | string | null
347
+ eventSeq?: Prisma.IntWithAggregatesFilter<"HarnessSessionSearchDocument"> | number
348
+ partIndex?: Prisma.IntWithAggregatesFilter<"HarnessSessionSearchDocument"> | number
349
+ messageId?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
350
+ inputId?: Prisma.StringNullableWithAggregatesFilter<"HarnessSessionSearchDocument"> | string | null
351
+ kind?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
352
+ content?: Prisma.StringWithAggregatesFilter<"HarnessSessionSearchDocument"> | string
353
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"HarnessSessionSearchDocument"> | Date | string
354
+ }
355
+
356
+ export type HarnessSessionSearchDocumentCreateInput = {
357
+ id?: string
358
+ userId: string
359
+ logId: string
360
+ rootThreadId: string
361
+ subagentRunId?: string | null
362
+ eventSeq: number
363
+ partIndex?: number
364
+ messageId: string
365
+ inputId?: string | null
366
+ kind: string
367
+ content: string
368
+ createdAt?: Date | string
369
+ tokens?: Prisma.HarnessSessionSearchTokenCreateNestedManyWithoutDocumentInput
370
+ }
371
+
372
+ export type HarnessSessionSearchDocumentUncheckedCreateInput = {
373
+ id?: string
374
+ userId: string
375
+ logId: string
376
+ rootThreadId: string
377
+ subagentRunId?: string | null
378
+ eventSeq: number
379
+ partIndex?: number
380
+ messageId: string
381
+ inputId?: string | null
382
+ kind: string
383
+ content: string
384
+ createdAt?: Date | string
385
+ tokens?: Prisma.HarnessSessionSearchTokenUncheckedCreateNestedManyWithoutDocumentInput
386
+ }
387
+
388
+ export type HarnessSessionSearchDocumentUpdateInput = {
389
+ id?: Prisma.StringFieldUpdateOperationsInput | string
390
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
391
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
392
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
393
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
394
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
395
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
396
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
397
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
398
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
399
+ content?: Prisma.StringFieldUpdateOperationsInput | string
400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
401
+ tokens?: Prisma.HarnessSessionSearchTokenUpdateManyWithoutDocumentNestedInput
402
+ }
403
+
404
+ export type HarnessSessionSearchDocumentUncheckedUpdateInput = {
405
+ id?: Prisma.StringFieldUpdateOperationsInput | string
406
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
407
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
408
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
409
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
410
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
411
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
412
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
413
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
414
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
415
+ content?: Prisma.StringFieldUpdateOperationsInput | string
416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
417
+ tokens?: Prisma.HarnessSessionSearchTokenUncheckedUpdateManyWithoutDocumentNestedInput
418
+ }
419
+
420
+ export type HarnessSessionSearchDocumentCreateManyInput = {
421
+ id?: string
422
+ userId: string
423
+ logId: string
424
+ rootThreadId: string
425
+ subagentRunId?: string | null
426
+ eventSeq: number
427
+ partIndex?: number
428
+ messageId: string
429
+ inputId?: string | null
430
+ kind: string
431
+ content: string
432
+ createdAt?: Date | string
433
+ }
434
+
435
+ export type HarnessSessionSearchDocumentUpdateManyMutationInput = {
436
+ id?: Prisma.StringFieldUpdateOperationsInput | string
437
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
438
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
439
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
440
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
441
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
442
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
443
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
444
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
445
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
446
+ content?: Prisma.StringFieldUpdateOperationsInput | string
447
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
448
+ }
449
+
450
+ export type HarnessSessionSearchDocumentUncheckedUpdateManyInput = {
451
+ id?: Prisma.StringFieldUpdateOperationsInput | string
452
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
453
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
454
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
455
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
456
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
457
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
458
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
459
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
460
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
461
+ content?: Prisma.StringFieldUpdateOperationsInput | string
462
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
+ }
464
+
465
+ export type HarnessSessionSearchDocumentLogIdMessageIdPartIndexCompoundUniqueInput = {
466
+ logId: string
467
+ messageId: string
468
+ partIndex: number
469
+ }
470
+
471
+ export type HarnessSessionSearchDocumentCountOrderByAggregateInput = {
472
+ id?: Prisma.SortOrder
473
+ userId?: Prisma.SortOrder
474
+ logId?: Prisma.SortOrder
475
+ rootThreadId?: Prisma.SortOrder
476
+ subagentRunId?: Prisma.SortOrder
477
+ eventSeq?: Prisma.SortOrder
478
+ partIndex?: Prisma.SortOrder
479
+ messageId?: Prisma.SortOrder
480
+ inputId?: Prisma.SortOrder
481
+ kind?: Prisma.SortOrder
482
+ content?: Prisma.SortOrder
483
+ createdAt?: Prisma.SortOrder
484
+ }
485
+
486
+ export type HarnessSessionSearchDocumentAvgOrderByAggregateInput = {
487
+ eventSeq?: Prisma.SortOrder
488
+ partIndex?: Prisma.SortOrder
489
+ }
490
+
491
+ export type HarnessSessionSearchDocumentMaxOrderByAggregateInput = {
492
+ id?: Prisma.SortOrder
493
+ userId?: Prisma.SortOrder
494
+ logId?: Prisma.SortOrder
495
+ rootThreadId?: Prisma.SortOrder
496
+ subagentRunId?: Prisma.SortOrder
497
+ eventSeq?: Prisma.SortOrder
498
+ partIndex?: Prisma.SortOrder
499
+ messageId?: Prisma.SortOrder
500
+ inputId?: Prisma.SortOrder
501
+ kind?: Prisma.SortOrder
502
+ content?: Prisma.SortOrder
503
+ createdAt?: Prisma.SortOrder
504
+ }
505
+
506
+ export type HarnessSessionSearchDocumentMinOrderByAggregateInput = {
507
+ id?: Prisma.SortOrder
508
+ userId?: Prisma.SortOrder
509
+ logId?: Prisma.SortOrder
510
+ rootThreadId?: Prisma.SortOrder
511
+ subagentRunId?: Prisma.SortOrder
512
+ eventSeq?: Prisma.SortOrder
513
+ partIndex?: Prisma.SortOrder
514
+ messageId?: Prisma.SortOrder
515
+ inputId?: Prisma.SortOrder
516
+ kind?: Prisma.SortOrder
517
+ content?: Prisma.SortOrder
518
+ createdAt?: Prisma.SortOrder
519
+ }
520
+
521
+ export type HarnessSessionSearchDocumentSumOrderByAggregateInput = {
522
+ eventSeq?: Prisma.SortOrder
523
+ partIndex?: Prisma.SortOrder
524
+ }
525
+
526
+ export type HarnessSessionSearchDocumentScalarRelationFilter = {
527
+ is?: Prisma.HarnessSessionSearchDocumentWhereInput
528
+ isNot?: Prisma.HarnessSessionSearchDocumentWhereInput
529
+ }
530
+
531
+ export type HarnessSessionSearchDocumentCreateNestedOneWithoutTokensInput = {
532
+ create?: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateWithoutTokensInput>
533
+ connectOrCreate?: Prisma.HarnessSessionSearchDocumentCreateOrConnectWithoutTokensInput
534
+ connect?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
535
+ }
536
+
537
+ export type HarnessSessionSearchDocumentUpdateOneRequiredWithoutTokensNestedInput = {
538
+ create?: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateWithoutTokensInput>
539
+ connectOrCreate?: Prisma.HarnessSessionSearchDocumentCreateOrConnectWithoutTokensInput
540
+ upsert?: Prisma.HarnessSessionSearchDocumentUpsertWithoutTokensInput
541
+ connect?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
542
+ update?: Prisma.XOR<Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateToOneWithWhereWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUpdateWithoutTokensInput>, Prisma.HarnessSessionSearchDocumentUncheckedUpdateWithoutTokensInput>
543
+ }
544
+
545
+ export type HarnessSessionSearchDocumentCreateWithoutTokensInput = {
546
+ id?: string
547
+ userId: string
548
+ logId: string
549
+ rootThreadId: string
550
+ subagentRunId?: string | null
551
+ eventSeq: number
552
+ partIndex?: number
553
+ messageId: string
554
+ inputId?: string | null
555
+ kind: string
556
+ content: string
557
+ createdAt?: Date | string
558
+ }
559
+
560
+ export type HarnessSessionSearchDocumentUncheckedCreateWithoutTokensInput = {
561
+ id?: string
562
+ userId: string
563
+ logId: string
564
+ rootThreadId: string
565
+ subagentRunId?: string | null
566
+ eventSeq: number
567
+ partIndex?: number
568
+ messageId: string
569
+ inputId?: string | null
570
+ kind: string
571
+ content: string
572
+ createdAt?: Date | string
573
+ }
574
+
575
+ export type HarnessSessionSearchDocumentCreateOrConnectWithoutTokensInput = {
576
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
577
+ create: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateWithoutTokensInput>
578
+ }
579
+
580
+ export type HarnessSessionSearchDocumentUpsertWithoutTokensInput = {
581
+ update: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateWithoutTokensInput>
582
+ create: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateWithoutTokensInput>
583
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
584
+ }
585
+
586
+ export type HarnessSessionSearchDocumentUpdateToOneWithWhereWithoutTokensInput = {
587
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
588
+ data: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateWithoutTokensInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateWithoutTokensInput>
589
+ }
590
+
591
+ export type HarnessSessionSearchDocumentUpdateWithoutTokensInput = {
592
+ id?: Prisma.StringFieldUpdateOperationsInput | string
593
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
594
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
595
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
596
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
597
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
598
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
599
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
600
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
601
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
602
+ content?: Prisma.StringFieldUpdateOperationsInput | string
603
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
604
+ }
605
+
606
+ export type HarnessSessionSearchDocumentUncheckedUpdateWithoutTokensInput = {
607
+ id?: Prisma.StringFieldUpdateOperationsInput | string
608
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
609
+ logId?: Prisma.StringFieldUpdateOperationsInput | string
610
+ rootThreadId?: Prisma.StringFieldUpdateOperationsInput | string
611
+ subagentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
612
+ eventSeq?: Prisma.IntFieldUpdateOperationsInput | number
613
+ partIndex?: Prisma.IntFieldUpdateOperationsInput | number
614
+ messageId?: Prisma.StringFieldUpdateOperationsInput | string
615
+ inputId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
616
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
617
+ content?: Prisma.StringFieldUpdateOperationsInput | string
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
+ }
620
+
621
+
622
+ /**
623
+ * Count Type HarnessSessionSearchDocumentCountOutputType
624
+ */
625
+
626
+ export type HarnessSessionSearchDocumentCountOutputType = {
627
+ tokens: number
628
+ }
629
+
630
+ export type HarnessSessionSearchDocumentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
631
+ tokens?: boolean | HarnessSessionSearchDocumentCountOutputTypeCountTokensArgs
632
+ }
633
+
634
+ /**
635
+ * HarnessSessionSearchDocumentCountOutputType without action
636
+ */
637
+ export type HarnessSessionSearchDocumentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
638
+ /**
639
+ * Select specific fields to fetch from the HarnessSessionSearchDocumentCountOutputType
640
+ */
641
+ select?: Prisma.HarnessSessionSearchDocumentCountOutputTypeSelect<ExtArgs> | null
642
+ }
643
+
644
+ /**
645
+ * HarnessSessionSearchDocumentCountOutputType without action
646
+ */
647
+ export type HarnessSessionSearchDocumentCountOutputTypeCountTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
648
+ where?: Prisma.HarnessSessionSearchTokenWhereInput
649
+ }
650
+
651
+
652
+ export type HarnessSessionSearchDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
653
+ id?: boolean
654
+ userId?: boolean
655
+ logId?: boolean
656
+ rootThreadId?: boolean
657
+ subagentRunId?: boolean
658
+ eventSeq?: boolean
659
+ partIndex?: boolean
660
+ messageId?: boolean
661
+ inputId?: boolean
662
+ kind?: boolean
663
+ content?: boolean
664
+ createdAt?: boolean
665
+ tokens?: boolean | Prisma.HarnessSessionSearchDocument$tokensArgs<ExtArgs>
666
+ _count?: boolean | Prisma.HarnessSessionSearchDocumentCountOutputTypeDefaultArgs<ExtArgs>
667
+ }, ExtArgs["result"]["harnessSessionSearchDocument"]>
668
+
669
+ export type HarnessSessionSearchDocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
670
+ id?: boolean
671
+ userId?: boolean
672
+ logId?: boolean
673
+ rootThreadId?: boolean
674
+ subagentRunId?: boolean
675
+ eventSeq?: boolean
676
+ partIndex?: boolean
677
+ messageId?: boolean
678
+ inputId?: boolean
679
+ kind?: boolean
680
+ content?: boolean
681
+ createdAt?: boolean
682
+ }, ExtArgs["result"]["harnessSessionSearchDocument"]>
683
+
684
+ export type HarnessSessionSearchDocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
685
+ id?: boolean
686
+ userId?: boolean
687
+ logId?: boolean
688
+ rootThreadId?: boolean
689
+ subagentRunId?: boolean
690
+ eventSeq?: boolean
691
+ partIndex?: boolean
692
+ messageId?: boolean
693
+ inputId?: boolean
694
+ kind?: boolean
695
+ content?: boolean
696
+ createdAt?: boolean
697
+ }, ExtArgs["result"]["harnessSessionSearchDocument"]>
698
+
699
+ export type HarnessSessionSearchDocumentSelectScalar = {
700
+ id?: boolean
701
+ userId?: boolean
702
+ logId?: boolean
703
+ rootThreadId?: boolean
704
+ subagentRunId?: boolean
705
+ eventSeq?: boolean
706
+ partIndex?: boolean
707
+ messageId?: boolean
708
+ inputId?: boolean
709
+ kind?: boolean
710
+ content?: boolean
711
+ createdAt?: boolean
712
+ }
713
+
714
+ export type HarnessSessionSearchDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "logId" | "rootThreadId" | "subagentRunId" | "eventSeq" | "partIndex" | "messageId" | "inputId" | "kind" | "content" | "createdAt", ExtArgs["result"]["harnessSessionSearchDocument"]>
715
+ export type HarnessSessionSearchDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
716
+ tokens?: boolean | Prisma.HarnessSessionSearchDocument$tokensArgs<ExtArgs>
717
+ _count?: boolean | Prisma.HarnessSessionSearchDocumentCountOutputTypeDefaultArgs<ExtArgs>
718
+ }
719
+ export type HarnessSessionSearchDocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
720
+ export type HarnessSessionSearchDocumentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
721
+
722
+ export type $HarnessSessionSearchDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
723
+ name: "HarnessSessionSearchDocument"
724
+ objects: {
725
+ tokens: Prisma.$HarnessSessionSearchTokenPayload<ExtArgs>[]
726
+ }
727
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
728
+ id: string
729
+ userId: string
730
+ /**
731
+ * 官方 logId(含 tenant + 根线程):索引回调的原生键,子代理日志也落这里
732
+ */
733
+ logId: string
734
+ /**
735
+ * 根会话 threadId(由 logId 反解/index entry 取):搜索跳转只用它,子代理结果归到根会话
736
+ */
737
+ rootThreadId: string
738
+ /**
739
+ * 子代理 run(子日志时有值),供 UI 标注来源;根日志为 null
740
+ */
741
+ subagentRunId: string | null
742
+ /**
743
+ * 日志序号(append 的 seq);增量幂等与 truncate 清理的依据
744
+ */
745
+ eventSeq: number
746
+ partIndex: number
747
+ /**
748
+ * 消息 id(官方 message.id;用户消息同样取 transcript 的 message.id,保证 Cmd+K 可跳转),revert/keep 清理的依据
749
+ */
750
+ messageId: string
751
+ /**
752
+ * `harness.input` 兜底文档的归并键(与 messageId 同消息时只保留一行);transcript 产出的文档为 null
753
+ */
754
+ inputId: string | null
755
+ kind: string
756
+ content: string
757
+ createdAt: Date
758
+ }, ExtArgs["result"]["harnessSessionSearchDocument"]>
759
+ composites: {}
760
+ }
761
+
762
+ export type HarnessSessionSearchDocumentGetPayload<S extends boolean | null | undefined | HarnessSessionSearchDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload, S>
763
+
764
+ export type HarnessSessionSearchDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
765
+ Omit<HarnessSessionSearchDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
766
+ select?: HarnessSessionSearchDocumentCountAggregateInputType | true
767
+ }
768
+
769
+ export interface HarnessSessionSearchDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
770
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HarnessSessionSearchDocument'], meta: { name: 'HarnessSessionSearchDocument' } }
771
+ /**
772
+ * Find zero or one HarnessSessionSearchDocument that matches the filter.
773
+ * @param {HarnessSessionSearchDocumentFindUniqueArgs} args - Arguments to find a HarnessSessionSearchDocument
774
+ * @example
775
+ * // Get one HarnessSessionSearchDocument
776
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.findUnique({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * }
780
+ * })
781
+ */
782
+ findUnique<T extends HarnessSessionSearchDocumentFindUniqueArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
783
+
784
+ /**
785
+ * Find one HarnessSessionSearchDocument that matches the filter or throw an error with `error.code='P2025'`
786
+ * if no matches were found.
787
+ * @param {HarnessSessionSearchDocumentFindUniqueOrThrowArgs} args - Arguments to find a HarnessSessionSearchDocument
788
+ * @example
789
+ * // Get one HarnessSessionSearchDocument
790
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.findUniqueOrThrow({
791
+ * where: {
792
+ * // ... provide filter here
793
+ * }
794
+ * })
795
+ */
796
+ findUniqueOrThrow<T extends HarnessSessionSearchDocumentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
797
+
798
+ /**
799
+ * Find the first HarnessSessionSearchDocument that matches the filter.
800
+ * Note, that providing `undefined` is treated as the value not being there.
801
+ * Read more here: https://pris.ly/d/null-undefined
802
+ * @param {HarnessSessionSearchDocumentFindFirstArgs} args - Arguments to find a HarnessSessionSearchDocument
803
+ * @example
804
+ * // Get one HarnessSessionSearchDocument
805
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.findFirst({
806
+ * where: {
807
+ * // ... provide filter here
808
+ * }
809
+ * })
810
+ */
811
+ findFirst<T extends HarnessSessionSearchDocumentFindFirstArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentFindFirstArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
812
+
813
+ /**
814
+ * Find the first HarnessSessionSearchDocument that matches the filter or
815
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
816
+ * Note, that providing `undefined` is treated as the value not being there.
817
+ * Read more here: https://pris.ly/d/null-undefined
818
+ * @param {HarnessSessionSearchDocumentFindFirstOrThrowArgs} args - Arguments to find a HarnessSessionSearchDocument
819
+ * @example
820
+ * // Get one HarnessSessionSearchDocument
821
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.findFirstOrThrow({
822
+ * where: {
823
+ * // ... provide filter here
824
+ * }
825
+ * })
826
+ */
827
+ findFirstOrThrow<T extends HarnessSessionSearchDocumentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
828
+
829
+ /**
830
+ * Find zero or more HarnessSessionSearchDocuments that matches the filter.
831
+ * Note, that providing `undefined` is treated as the value not being there.
832
+ * Read more here: https://pris.ly/d/null-undefined
833
+ * @param {HarnessSessionSearchDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
834
+ * @example
835
+ * // Get all HarnessSessionSearchDocuments
836
+ * const harnessSessionSearchDocuments = await prisma.harnessSessionSearchDocument.findMany()
837
+ *
838
+ * // Get first 10 HarnessSessionSearchDocuments
839
+ * const harnessSessionSearchDocuments = await prisma.harnessSessionSearchDocument.findMany({ take: 10 })
840
+ *
841
+ * // Only select the `id`
842
+ * const harnessSessionSearchDocumentWithIdOnly = await prisma.harnessSessionSearchDocument.findMany({ select: { id: true } })
843
+ *
844
+ */
845
+ findMany<T extends HarnessSessionSearchDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
846
+
847
+ /**
848
+ * Create a HarnessSessionSearchDocument.
849
+ * @param {HarnessSessionSearchDocumentCreateArgs} args - Arguments to create a HarnessSessionSearchDocument.
850
+ * @example
851
+ * // Create one HarnessSessionSearchDocument
852
+ * const HarnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.create({
853
+ * data: {
854
+ * // ... data to create a HarnessSessionSearchDocument
855
+ * }
856
+ * })
857
+ *
858
+ */
859
+ create<T extends HarnessSessionSearchDocumentCreateArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentCreateArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
860
+
861
+ /**
862
+ * Create many HarnessSessionSearchDocuments.
863
+ * @param {HarnessSessionSearchDocumentCreateManyArgs} args - Arguments to create many HarnessSessionSearchDocuments.
864
+ * @example
865
+ * // Create many HarnessSessionSearchDocuments
866
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.createMany({
867
+ * data: [
868
+ * // ... provide data here
869
+ * ]
870
+ * })
871
+ *
872
+ */
873
+ createMany<T extends HarnessSessionSearchDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
874
+
875
+ /**
876
+ * Create many HarnessSessionSearchDocuments and returns the data saved in the database.
877
+ * @param {HarnessSessionSearchDocumentCreateManyAndReturnArgs} args - Arguments to create many HarnessSessionSearchDocuments.
878
+ * @example
879
+ * // Create many HarnessSessionSearchDocuments
880
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.createManyAndReturn({
881
+ * data: [
882
+ * // ... provide data here
883
+ * ]
884
+ * })
885
+ *
886
+ * // Create many HarnessSessionSearchDocuments and only return the `id`
887
+ * const harnessSessionSearchDocumentWithIdOnly = await prisma.harnessSessionSearchDocument.createManyAndReturn({
888
+ * select: { id: true },
889
+ * data: [
890
+ * // ... provide data here
891
+ * ]
892
+ * })
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ *
896
+ */
897
+ createManyAndReturn<T extends HarnessSessionSearchDocumentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
898
+
899
+ /**
900
+ * Delete a HarnessSessionSearchDocument.
901
+ * @param {HarnessSessionSearchDocumentDeleteArgs} args - Arguments to delete one HarnessSessionSearchDocument.
902
+ * @example
903
+ * // Delete one HarnessSessionSearchDocument
904
+ * const HarnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.delete({
905
+ * where: {
906
+ * // ... filter to delete one HarnessSessionSearchDocument
907
+ * }
908
+ * })
909
+ *
910
+ */
911
+ delete<T extends HarnessSessionSearchDocumentDeleteArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentDeleteArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
912
+
913
+ /**
914
+ * Update one HarnessSessionSearchDocument.
915
+ * @param {HarnessSessionSearchDocumentUpdateArgs} args - Arguments to update one HarnessSessionSearchDocument.
916
+ * @example
917
+ * // Update one HarnessSessionSearchDocument
918
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.update({
919
+ * where: {
920
+ * // ... provide filter here
921
+ * },
922
+ * data: {
923
+ * // ... provide data here
924
+ * }
925
+ * })
926
+ *
927
+ */
928
+ update<T extends HarnessSessionSearchDocumentUpdateArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentUpdateArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
929
+
930
+ /**
931
+ * Delete zero or more HarnessSessionSearchDocuments.
932
+ * @param {HarnessSessionSearchDocumentDeleteManyArgs} args - Arguments to filter HarnessSessionSearchDocuments to delete.
933
+ * @example
934
+ * // Delete a few HarnessSessionSearchDocuments
935
+ * const { count } = await prisma.harnessSessionSearchDocument.deleteMany({
936
+ * where: {
937
+ * // ... provide filter here
938
+ * }
939
+ * })
940
+ *
941
+ */
942
+ deleteMany<T extends HarnessSessionSearchDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, HarnessSessionSearchDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
943
+
944
+ /**
945
+ * Update zero or more HarnessSessionSearchDocuments.
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 {HarnessSessionSearchDocumentUpdateManyArgs} args - Arguments to update one or more rows.
949
+ * @example
950
+ * // Update many HarnessSessionSearchDocuments
951
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.updateMany({
952
+ * where: {
953
+ * // ... provide filter here
954
+ * },
955
+ * data: {
956
+ * // ... provide data here
957
+ * }
958
+ * })
959
+ *
960
+ */
961
+ updateMany<T extends HarnessSessionSearchDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
962
+
963
+ /**
964
+ * Update zero or more HarnessSessionSearchDocuments and returns the data updated in the database.
965
+ * @param {HarnessSessionSearchDocumentUpdateManyAndReturnArgs} args - Arguments to update many HarnessSessionSearchDocuments.
966
+ * @example
967
+ * // Update many HarnessSessionSearchDocuments
968
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.updateManyAndReturn({
969
+ * where: {
970
+ * // ... provide filter here
971
+ * },
972
+ * data: [
973
+ * // ... provide data here
974
+ * ]
975
+ * })
976
+ *
977
+ * // Update zero or more HarnessSessionSearchDocuments and only return the `id`
978
+ * const harnessSessionSearchDocumentWithIdOnly = await prisma.harnessSessionSearchDocument.updateManyAndReturn({
979
+ * select: { id: true },
980
+ * where: {
981
+ * // ... provide filter here
982
+ * },
983
+ * data: [
984
+ * // ... provide data here
985
+ * ]
986
+ * })
987
+ * Note, that providing `undefined` is treated as the value not being there.
988
+ * Read more here: https://pris.ly/d/null-undefined
989
+ *
990
+ */
991
+ updateManyAndReturn<T extends HarnessSessionSearchDocumentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
992
+
993
+ /**
994
+ * Create or update one HarnessSessionSearchDocument.
995
+ * @param {HarnessSessionSearchDocumentUpsertArgs} args - Arguments to update or create a HarnessSessionSearchDocument.
996
+ * @example
997
+ * // Update or create a HarnessSessionSearchDocument
998
+ * const harnessSessionSearchDocument = await prisma.harnessSessionSearchDocument.upsert({
999
+ * create: {
1000
+ * // ... data to create a HarnessSessionSearchDocument
1001
+ * },
1002
+ * update: {
1003
+ * // ... in case it already exists, update
1004
+ * },
1005
+ * where: {
1006
+ * // ... the filter for the HarnessSessionSearchDocument we want to update
1007
+ * }
1008
+ * })
1009
+ */
1010
+ upsert<T extends HarnessSessionSearchDocumentUpsertArgs>(args: Prisma.SelectSubset<T, HarnessSessionSearchDocumentUpsertArgs<ExtArgs>>): Prisma.Prisma__HarnessSessionSearchDocumentClient<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchDocumentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1011
+
1012
+
1013
+ /**
1014
+ * Count the number of HarnessSessionSearchDocuments.
1015
+ * Note, that providing `undefined` is treated as the value not being there.
1016
+ * Read more here: https://pris.ly/d/null-undefined
1017
+ * @param {HarnessSessionSearchDocumentCountArgs} args - Arguments to filter HarnessSessionSearchDocuments to count.
1018
+ * @example
1019
+ * // Count the number of HarnessSessionSearchDocuments
1020
+ * const count = await prisma.harnessSessionSearchDocument.count({
1021
+ * where: {
1022
+ * // ... the filter for the HarnessSessionSearchDocuments we want to count
1023
+ * }
1024
+ * })
1025
+ **/
1026
+ count<T extends HarnessSessionSearchDocumentCountArgs>(
1027
+ args?: Prisma.Subset<T, HarnessSessionSearchDocumentCountArgs>,
1028
+ ): Prisma.PrismaPromise<
1029
+ T extends runtime.Types.Utils.Record<'select', any>
1030
+ ? T['select'] extends true
1031
+ ? number
1032
+ : Prisma.GetScalarType<T['select'], HarnessSessionSearchDocumentCountAggregateOutputType>
1033
+ : number
1034
+ >
1035
+
1036
+ /**
1037
+ * Allows you to perform aggregations operations on a HarnessSessionSearchDocument.
1038
+ * Note, that providing `undefined` is treated as the value not being there.
1039
+ * Read more here: https://pris.ly/d/null-undefined
1040
+ * @param {HarnessSessionSearchDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1041
+ * @example
1042
+ * // Ordered by age ascending
1043
+ * // Where email contains prisma.io
1044
+ * // Limited to the 10 users
1045
+ * const aggregations = await prisma.user.aggregate({
1046
+ * _avg: {
1047
+ * age: true,
1048
+ * },
1049
+ * where: {
1050
+ * email: {
1051
+ * contains: "prisma.io",
1052
+ * },
1053
+ * },
1054
+ * orderBy: {
1055
+ * age: "asc",
1056
+ * },
1057
+ * take: 10,
1058
+ * })
1059
+ **/
1060
+ aggregate<T extends HarnessSessionSearchDocumentAggregateArgs>(args: Prisma.Subset<T, HarnessSessionSearchDocumentAggregateArgs>): Prisma.PrismaPromise<GetHarnessSessionSearchDocumentAggregateType<T>>
1061
+
1062
+ /**
1063
+ * Group by HarnessSessionSearchDocument.
1064
+ * Note, that providing `undefined` is treated as the value not being there.
1065
+ * Read more here: https://pris.ly/d/null-undefined
1066
+ * @param {HarnessSessionSearchDocumentGroupByArgs} args - Group by arguments.
1067
+ * @example
1068
+ * // Group by city, order by createdAt, get count
1069
+ * const result = await prisma.user.groupBy({
1070
+ * by: ['city', 'createdAt'],
1071
+ * orderBy: {
1072
+ * createdAt: true
1073
+ * },
1074
+ * _count: {
1075
+ * _all: true
1076
+ * },
1077
+ * })
1078
+ *
1079
+ **/
1080
+ groupBy<
1081
+ T extends HarnessSessionSearchDocumentGroupByArgs,
1082
+ HasSelectOrTake extends Prisma.Or<
1083
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1084
+ Prisma.Extends<'take', Prisma.Keys<T>>
1085
+ >,
1086
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1087
+ ? { orderBy: HarnessSessionSearchDocumentGroupByArgs['orderBy'] }
1088
+ : { orderBy?: HarnessSessionSearchDocumentGroupByArgs['orderBy'] },
1089
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1090
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1091
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1092
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1093
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1094
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1095
+ InputErrors extends ByEmpty extends Prisma.True
1096
+ ? `Error: "by" must not be empty.`
1097
+ : HavingValid extends Prisma.False
1098
+ ? {
1099
+ [P in HavingFields]: P extends ByFields
1100
+ ? never
1101
+ : P extends string
1102
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1103
+ : [
1104
+ Error,
1105
+ 'Field ',
1106
+ P,
1107
+ ` in "having" needs to be provided in "by"`,
1108
+ ]
1109
+ }[HavingFields]
1110
+ : 'take' extends Prisma.Keys<T>
1111
+ ? 'orderBy' extends Prisma.Keys<T>
1112
+ ? ByValid extends Prisma.True
1113
+ ? {}
1114
+ : {
1115
+ [P in OrderFields]: P extends ByFields
1116
+ ? never
1117
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1118
+ }[OrderFields]
1119
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1120
+ : 'skip' extends Prisma.Keys<T>
1121
+ ? 'orderBy' extends Prisma.Keys<T>
1122
+ ? ByValid extends Prisma.True
1123
+ ? {}
1124
+ : {
1125
+ [P in OrderFields]: P extends ByFields
1126
+ ? never
1127
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1128
+ }[OrderFields]
1129
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1130
+ : ByValid extends Prisma.True
1131
+ ? {}
1132
+ : {
1133
+ [P in OrderFields]: P extends ByFields
1134
+ ? never
1135
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1136
+ }[OrderFields]
1137
+ >(args: Prisma.SubsetIntersection<T, HarnessSessionSearchDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHarnessSessionSearchDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1138
+ /**
1139
+ * Fields of the HarnessSessionSearchDocument model
1140
+ */
1141
+ readonly fields: HarnessSessionSearchDocumentFieldRefs;
1142
+ }
1143
+
1144
+ /**
1145
+ * The delegate class that acts as a "Promise-like" for HarnessSessionSearchDocument.
1146
+ * Why is this prefixed with `Prisma__`?
1147
+ * Because we want to prevent naming conflicts as mentioned in
1148
+ * https://github.com/prisma/prisma-client-js/issues/707
1149
+ */
1150
+ export interface Prisma__HarnessSessionSearchDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1151
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1152
+ tokens<T extends Prisma.HarnessSessionSearchDocument$tokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HarnessSessionSearchDocument$tokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HarnessSessionSearchTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1153
+ /**
1154
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1155
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1156
+ * @param onrejected The callback to execute when the Promise is rejected.
1157
+ * @returns A Promise for the completion of which ever callback is executed.
1158
+ */
1159
+ 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>
1160
+ /**
1161
+ * Attaches a callback for only the rejection of the Promise.
1162
+ * @param onrejected The callback to execute when the Promise is rejected.
1163
+ * @returns A Promise for the completion of the callback.
1164
+ */
1165
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1166
+ /**
1167
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1168
+ * resolved value cannot be modified from the callback.
1169
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1170
+ * @returns A Promise for the completion of the callback.
1171
+ */
1172
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1173
+ }
1174
+
1175
+
1176
+
1177
+
1178
+ /**
1179
+ * Fields of the HarnessSessionSearchDocument model
1180
+ */
1181
+ export interface HarnessSessionSearchDocumentFieldRefs {
1182
+ readonly id: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1183
+ readonly userId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1184
+ readonly logId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1185
+ readonly rootThreadId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1186
+ readonly subagentRunId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1187
+ readonly eventSeq: Prisma.FieldRef<"HarnessSessionSearchDocument", 'Int'>
1188
+ readonly partIndex: Prisma.FieldRef<"HarnessSessionSearchDocument", 'Int'>
1189
+ readonly messageId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1190
+ readonly inputId: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1191
+ readonly kind: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1192
+ readonly content: Prisma.FieldRef<"HarnessSessionSearchDocument", 'String'>
1193
+ readonly createdAt: Prisma.FieldRef<"HarnessSessionSearchDocument", 'DateTime'>
1194
+ }
1195
+
1196
+
1197
+ // Custom InputTypes
1198
+ /**
1199
+ * HarnessSessionSearchDocument findUnique
1200
+ */
1201
+ export type HarnessSessionSearchDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1202
+ /**
1203
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1204
+ */
1205
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1206
+ /**
1207
+ * Omit specific fields from the HarnessSessionSearchDocument
1208
+ */
1209
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1210
+ /**
1211
+ * Choose, which related nodes to fetch as well
1212
+ */
1213
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1214
+ /**
1215
+ * Filter, which HarnessSessionSearchDocument to fetch.
1216
+ */
1217
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1218
+ }
1219
+
1220
+ /**
1221
+ * HarnessSessionSearchDocument findUniqueOrThrow
1222
+ */
1223
+ export type HarnessSessionSearchDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1224
+ /**
1225
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1226
+ */
1227
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1228
+ /**
1229
+ * Omit specific fields from the HarnessSessionSearchDocument
1230
+ */
1231
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1232
+ /**
1233
+ * Choose, which related nodes to fetch as well
1234
+ */
1235
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1236
+ /**
1237
+ * Filter, which HarnessSessionSearchDocument to fetch.
1238
+ */
1239
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1240
+ }
1241
+
1242
+ /**
1243
+ * HarnessSessionSearchDocument findFirst
1244
+ */
1245
+ export type HarnessSessionSearchDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1246
+ /**
1247
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1248
+ */
1249
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1250
+ /**
1251
+ * Omit specific fields from the HarnessSessionSearchDocument
1252
+ */
1253
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1254
+ /**
1255
+ * Choose, which related nodes to fetch as well
1256
+ */
1257
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1258
+ /**
1259
+ * Filter, which HarnessSessionSearchDocument to fetch.
1260
+ */
1261
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1264
+ *
1265
+ * Determine the order of HarnessSessionSearchDocuments to fetch.
1266
+ */
1267
+ orderBy?: Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput | Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput[]
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1270
+ *
1271
+ * Sets the position for searching for HarnessSessionSearchDocuments.
1272
+ */
1273
+ cursor?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1274
+ /**
1275
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1276
+ *
1277
+ * Take `±n` HarnessSessionSearchDocuments from the position of the cursor.
1278
+ */
1279
+ take?: number
1280
+ /**
1281
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1282
+ *
1283
+ * Skip the first `n` HarnessSessionSearchDocuments.
1284
+ */
1285
+ skip?: number
1286
+ /**
1287
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1288
+ *
1289
+ * Filter by unique combinations of HarnessSessionSearchDocuments.
1290
+ */
1291
+ distinct?: Prisma.HarnessSessionSearchDocumentScalarFieldEnum | Prisma.HarnessSessionSearchDocumentScalarFieldEnum[]
1292
+ }
1293
+
1294
+ /**
1295
+ * HarnessSessionSearchDocument findFirstOrThrow
1296
+ */
1297
+ export type HarnessSessionSearchDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
+ /**
1299
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1300
+ */
1301
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1302
+ /**
1303
+ * Omit specific fields from the HarnessSessionSearchDocument
1304
+ */
1305
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1310
+ /**
1311
+ * Filter, which HarnessSessionSearchDocument to fetch.
1312
+ */
1313
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1314
+ /**
1315
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1316
+ *
1317
+ * Determine the order of HarnessSessionSearchDocuments to fetch.
1318
+ */
1319
+ orderBy?: Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput | Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput[]
1320
+ /**
1321
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1322
+ *
1323
+ * Sets the position for searching for HarnessSessionSearchDocuments.
1324
+ */
1325
+ cursor?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1326
+ /**
1327
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1328
+ *
1329
+ * Take `±n` HarnessSessionSearchDocuments from the position of the cursor.
1330
+ */
1331
+ take?: number
1332
+ /**
1333
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1334
+ *
1335
+ * Skip the first `n` HarnessSessionSearchDocuments.
1336
+ */
1337
+ skip?: number
1338
+ /**
1339
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1340
+ *
1341
+ * Filter by unique combinations of HarnessSessionSearchDocuments.
1342
+ */
1343
+ distinct?: Prisma.HarnessSessionSearchDocumentScalarFieldEnum | Prisma.HarnessSessionSearchDocumentScalarFieldEnum[]
1344
+ }
1345
+
1346
+ /**
1347
+ * HarnessSessionSearchDocument findMany
1348
+ */
1349
+ export type HarnessSessionSearchDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1350
+ /**
1351
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1352
+ */
1353
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1354
+ /**
1355
+ * Omit specific fields from the HarnessSessionSearchDocument
1356
+ */
1357
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1358
+ /**
1359
+ * Choose, which related nodes to fetch as well
1360
+ */
1361
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1362
+ /**
1363
+ * Filter, which HarnessSessionSearchDocuments to fetch.
1364
+ */
1365
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1366
+ /**
1367
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1368
+ *
1369
+ * Determine the order of HarnessSessionSearchDocuments to fetch.
1370
+ */
1371
+ orderBy?: Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput | Prisma.HarnessSessionSearchDocumentOrderByWithRelationInput[]
1372
+ /**
1373
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1374
+ *
1375
+ * Sets the position for listing HarnessSessionSearchDocuments.
1376
+ */
1377
+ cursor?: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1378
+ /**
1379
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1380
+ *
1381
+ * Take `±n` HarnessSessionSearchDocuments from the position of the cursor.
1382
+ */
1383
+ take?: number
1384
+ /**
1385
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1386
+ *
1387
+ * Skip the first `n` HarnessSessionSearchDocuments.
1388
+ */
1389
+ skip?: number
1390
+ /**
1391
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1392
+ *
1393
+ * Filter by unique combinations of HarnessSessionSearchDocuments.
1394
+ */
1395
+ distinct?: Prisma.HarnessSessionSearchDocumentScalarFieldEnum | Prisma.HarnessSessionSearchDocumentScalarFieldEnum[]
1396
+ }
1397
+
1398
+ /**
1399
+ * HarnessSessionSearchDocument create
1400
+ */
1401
+ export type HarnessSessionSearchDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1402
+ /**
1403
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1404
+ */
1405
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1406
+ /**
1407
+ * Omit specific fields from the HarnessSessionSearchDocument
1408
+ */
1409
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1414
+ /**
1415
+ * The data needed to create a HarnessSessionSearchDocument.
1416
+ */
1417
+ data: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateInput>
1418
+ }
1419
+
1420
+ /**
1421
+ * HarnessSessionSearchDocument createMany
1422
+ */
1423
+ export type HarnessSessionSearchDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * The data used to create many HarnessSessionSearchDocuments.
1426
+ */
1427
+ data: Prisma.HarnessSessionSearchDocumentCreateManyInput | Prisma.HarnessSessionSearchDocumentCreateManyInput[]
1428
+ skipDuplicates?: boolean
1429
+ }
1430
+
1431
+ /**
1432
+ * HarnessSessionSearchDocument createManyAndReturn
1433
+ */
1434
+ export type HarnessSessionSearchDocumentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1435
+ /**
1436
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1437
+ */
1438
+ select?: Prisma.HarnessSessionSearchDocumentSelectCreateManyAndReturn<ExtArgs> | null
1439
+ /**
1440
+ * Omit specific fields from the HarnessSessionSearchDocument
1441
+ */
1442
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1443
+ /**
1444
+ * The data used to create many HarnessSessionSearchDocuments.
1445
+ */
1446
+ data: Prisma.HarnessSessionSearchDocumentCreateManyInput | Prisma.HarnessSessionSearchDocumentCreateManyInput[]
1447
+ skipDuplicates?: boolean
1448
+ }
1449
+
1450
+ /**
1451
+ * HarnessSessionSearchDocument update
1452
+ */
1453
+ export type HarnessSessionSearchDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1456
+ */
1457
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the HarnessSessionSearchDocument
1460
+ */
1461
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1466
+ /**
1467
+ * The data needed to update a HarnessSessionSearchDocument.
1468
+ */
1469
+ data: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateInput>
1470
+ /**
1471
+ * Choose, which HarnessSessionSearchDocument to update.
1472
+ */
1473
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1474
+ }
1475
+
1476
+ /**
1477
+ * HarnessSessionSearchDocument updateMany
1478
+ */
1479
+ export type HarnessSessionSearchDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1480
+ /**
1481
+ * The data used to update HarnessSessionSearchDocuments.
1482
+ */
1483
+ data: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateManyMutationInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateManyInput>
1484
+ /**
1485
+ * Filter which HarnessSessionSearchDocuments to update
1486
+ */
1487
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1488
+ /**
1489
+ * Limit how many HarnessSessionSearchDocuments to update.
1490
+ */
1491
+ limit?: number
1492
+ }
1493
+
1494
+ /**
1495
+ * HarnessSessionSearchDocument updateManyAndReturn
1496
+ */
1497
+ export type HarnessSessionSearchDocumentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1500
+ */
1501
+ select?: Prisma.HarnessSessionSearchDocumentSelectUpdateManyAndReturn<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the HarnessSessionSearchDocument
1504
+ */
1505
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1506
+ /**
1507
+ * The data used to update HarnessSessionSearchDocuments.
1508
+ */
1509
+ data: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateManyMutationInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateManyInput>
1510
+ /**
1511
+ * Filter which HarnessSessionSearchDocuments to update
1512
+ */
1513
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1514
+ /**
1515
+ * Limit how many HarnessSessionSearchDocuments to update.
1516
+ */
1517
+ limit?: number
1518
+ }
1519
+
1520
+ /**
1521
+ * HarnessSessionSearchDocument upsert
1522
+ */
1523
+ export type HarnessSessionSearchDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1524
+ /**
1525
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1526
+ */
1527
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1528
+ /**
1529
+ * Omit specific fields from the HarnessSessionSearchDocument
1530
+ */
1531
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1532
+ /**
1533
+ * Choose, which related nodes to fetch as well
1534
+ */
1535
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1536
+ /**
1537
+ * The filter to search for the HarnessSessionSearchDocument to update in case it exists.
1538
+ */
1539
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1540
+ /**
1541
+ * In case the HarnessSessionSearchDocument found by the `where` argument doesn't exist, create a new HarnessSessionSearchDocument with this data.
1542
+ */
1543
+ create: Prisma.XOR<Prisma.HarnessSessionSearchDocumentCreateInput, Prisma.HarnessSessionSearchDocumentUncheckedCreateInput>
1544
+ /**
1545
+ * In case the HarnessSessionSearchDocument was found with the provided `where` argument, update it with this data.
1546
+ */
1547
+ update: Prisma.XOR<Prisma.HarnessSessionSearchDocumentUpdateInput, Prisma.HarnessSessionSearchDocumentUncheckedUpdateInput>
1548
+ }
1549
+
1550
+ /**
1551
+ * HarnessSessionSearchDocument delete
1552
+ */
1553
+ export type HarnessSessionSearchDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1554
+ /**
1555
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1556
+ */
1557
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1558
+ /**
1559
+ * Omit specific fields from the HarnessSessionSearchDocument
1560
+ */
1561
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1562
+ /**
1563
+ * Choose, which related nodes to fetch as well
1564
+ */
1565
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1566
+ /**
1567
+ * Filter which HarnessSessionSearchDocument to delete.
1568
+ */
1569
+ where: Prisma.HarnessSessionSearchDocumentWhereUniqueInput
1570
+ }
1571
+
1572
+ /**
1573
+ * HarnessSessionSearchDocument deleteMany
1574
+ */
1575
+ export type HarnessSessionSearchDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1576
+ /**
1577
+ * Filter which HarnessSessionSearchDocuments to delete
1578
+ */
1579
+ where?: Prisma.HarnessSessionSearchDocumentWhereInput
1580
+ /**
1581
+ * Limit how many HarnessSessionSearchDocuments to delete.
1582
+ */
1583
+ limit?: number
1584
+ }
1585
+
1586
+ /**
1587
+ * HarnessSessionSearchDocument.tokens
1588
+ */
1589
+ export type HarnessSessionSearchDocument$tokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the HarnessSessionSearchToken
1592
+ */
1593
+ select?: Prisma.HarnessSessionSearchTokenSelect<ExtArgs> | null
1594
+ /**
1595
+ * Omit specific fields from the HarnessSessionSearchToken
1596
+ */
1597
+ omit?: Prisma.HarnessSessionSearchTokenOmit<ExtArgs> | null
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.HarnessSessionSearchTokenInclude<ExtArgs> | null
1602
+ where?: Prisma.HarnessSessionSearchTokenWhereInput
1603
+ orderBy?: Prisma.HarnessSessionSearchTokenOrderByWithRelationInput | Prisma.HarnessSessionSearchTokenOrderByWithRelationInput[]
1604
+ cursor?: Prisma.HarnessSessionSearchTokenWhereUniqueInput
1605
+ take?: number
1606
+ skip?: number
1607
+ distinct?: Prisma.HarnessSessionSearchTokenScalarFieldEnum | Prisma.HarnessSessionSearchTokenScalarFieldEnum[]
1608
+ }
1609
+
1610
+ /**
1611
+ * HarnessSessionSearchDocument without action
1612
+ */
1613
+ export type HarnessSessionSearchDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1614
+ /**
1615
+ * Select specific fields to fetch from the HarnessSessionSearchDocument
1616
+ */
1617
+ select?: Prisma.HarnessSessionSearchDocumentSelect<ExtArgs> | null
1618
+ /**
1619
+ * Omit specific fields from the HarnessSessionSearchDocument
1620
+ */
1621
+ omit?: Prisma.HarnessSessionSearchDocumentOmit<ExtArgs> | null
1622
+ /**
1623
+ * Choose, which related nodes to fetch as well
1624
+ */
1625
+ include?: Prisma.HarnessSessionSearchDocumentInclude<ExtArgs> | null
1626
+ }