@allbluecn/database 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/dist/get-prisma.d.ts +1 -0
- package/dist/get-prisma.js +7 -0
- package/generated/browser.ts +60 -0
- package/generated/client.ts +60 -0
- package/generated/commonInputTypes.ts +106 -46
- package/generated/internal/class.ts +124 -4
- package/generated/internal/prismaNamespace.ts +1121 -25
- package/generated/internal/prismaNamespaceBrowser.ts +202 -6
- package/generated/models/AiProviderConfig.ts +100 -1
- package/generated/models/AiStreamChunk.ts +1159 -0
- package/generated/models/AiUsageLog.ts +91 -31
- package/generated/models/Blob.ts +1428 -0
- package/generated/models/BusinessAgentBinding.ts +1553 -0
- package/generated/models/ChatInterrupt.ts +42 -1
- package/generated/models/ChatMessage.ts +58 -29
- package/generated/models/ChatPersistenceMeta.ts +1121 -0
- package/generated/models/ChatRun.ts +166 -1
- package/generated/models/ChatThread.ts +294 -1
- package/generated/models/CodeSnippet.ts +1555 -0
- package/generated/models/DesktopSetting.ts +1059 -0
- package/generated/models/GenerationRun.ts +193 -1
- package/generated/models/HarnessPlugin.ts +1677 -0
- package/generated/models/HarnessWorkspace.ts +1650 -0
- package/generated/models/InvitationCode.ts +0 -8
- package/generated/models/Plan.ts +115 -1
- package/generated/models/SandboxInstance.ts +1277 -0
- package/generated/models/SystemPromptTemplate.ts +1583 -0
- package/generated/models/SystemPromptVersion.ts +1459 -0
- package/generated/models/User.ts +4524 -866
- package/generated/models/UserAgent.ts +250 -1
- package/generated/models/Workspace.ts +3 -1
- package/generated/models/WorkspaceFile.ts +1535 -0
- package/generated/models.ts +12 -0
- package/generated-sqlite/browser.ts +60 -0
- package/generated-sqlite/client.ts +60 -0
- package/generated-sqlite/commonInputTypes.ts +192 -78
- package/generated-sqlite/internal/class.ts +124 -4
- package/generated-sqlite/internal/prismaNamespace.ts +1135 -25
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +202 -6
- package/generated-sqlite/models/AiProviderConfig.ts +100 -1
- package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
- package/generated-sqlite/models/AiUsageLog.ts +91 -31
- package/generated-sqlite/models/Blob.ts +1425 -0
- package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
- package/generated-sqlite/models/ChatInterrupt.ts +42 -1
- package/generated-sqlite/models/ChatMessage.ts +58 -29
- package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
- package/generated-sqlite/models/ChatRun.ts +174 -1
- package/generated-sqlite/models/ChatThread.ts +293 -1
- package/generated-sqlite/models/CodeSnippet.ts +1552 -0
- package/generated-sqlite/models/DesktopSetting.ts +1057 -0
- package/generated-sqlite/models/GenerationRun.ts +193 -1
- package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
- package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
- package/generated-sqlite/models/InvitationCode.ts +0 -8
- package/generated-sqlite/models/PageVersion.ts +0 -8
- package/generated-sqlite/models/Plan.ts +115 -1
- package/generated-sqlite/models/SandboxInstance.ts +1283 -0
- package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
- package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
- package/generated-sqlite/models/User.ts +3778 -708
- package/generated-sqlite/models/UserAgent.ts +250 -1
- package/generated-sqlite/models/Workspace.ts +3 -1
- package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
- package/generated-sqlite/models.ts +12 -0
- package/get-prisma.ts +6 -0
- package/index.ts +11 -6
- package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
- package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
- package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
- package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
- package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
- package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
- package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
- package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
- package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
- package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
- package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
- package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
- package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
- package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
- package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
- package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
- package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
- package/package.json +8 -3
- package/schema.prisma +321 -88
- package/schema.sqlite.prisma +779 -546
|
@@ -20,10 +20,20 @@ export type ChatRunModel = runtime.Types.Result.DefaultSelection<Prisma.$ChatRun
|
|
|
20
20
|
|
|
21
21
|
export type AggregateChatRun = {
|
|
22
22
|
_count: ChatRunCountAggregateOutputType | null
|
|
23
|
+
_avg: ChatRunAvgAggregateOutputType | null
|
|
24
|
+
_sum: ChatRunSumAggregateOutputType | null
|
|
23
25
|
_min: ChatRunMinAggregateOutputType | null
|
|
24
26
|
_max: ChatRunMaxAggregateOutputType | null
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
export type ChatRunAvgAggregateOutputType = {
|
|
30
|
+
driverEpoch: number | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ChatRunSumAggregateOutputType = {
|
|
34
|
+
driverEpoch: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
27
37
|
export type ChatRunMinAggregateOutputType = {
|
|
28
38
|
id: string | null
|
|
29
39
|
threadId: string | null
|
|
@@ -33,6 +43,9 @@ export type ChatRunMinAggregateOutputType = {
|
|
|
33
43
|
finishedAt: Date | null
|
|
34
44
|
detachedSince: Date | null
|
|
35
45
|
error: string | null
|
|
46
|
+
sandboxKey: string | null
|
|
47
|
+
cancelRequested: boolean | null
|
|
48
|
+
driverEpoch: number | null
|
|
36
49
|
}
|
|
37
50
|
|
|
38
51
|
export type ChatRunMaxAggregateOutputType = {
|
|
@@ -44,6 +57,9 @@ export type ChatRunMaxAggregateOutputType = {
|
|
|
44
57
|
finishedAt: Date | null
|
|
45
58
|
detachedSince: Date | null
|
|
46
59
|
error: string | null
|
|
60
|
+
sandboxKey: string | null
|
|
61
|
+
cancelRequested: boolean | null
|
|
62
|
+
driverEpoch: number | null
|
|
47
63
|
}
|
|
48
64
|
|
|
49
65
|
export type ChatRunCountAggregateOutputType = {
|
|
@@ -56,10 +72,21 @@ export type ChatRunCountAggregateOutputType = {
|
|
|
56
72
|
detachedSince: number
|
|
57
73
|
usage: number
|
|
58
74
|
error: number
|
|
75
|
+
sandboxKey: number
|
|
76
|
+
cancelRequested: number
|
|
77
|
+
driverEpoch: number
|
|
59
78
|
_all: number
|
|
60
79
|
}
|
|
61
80
|
|
|
62
81
|
|
|
82
|
+
export type ChatRunAvgAggregateInputType = {
|
|
83
|
+
driverEpoch?: true
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type ChatRunSumAggregateInputType = {
|
|
87
|
+
driverEpoch?: true
|
|
88
|
+
}
|
|
89
|
+
|
|
63
90
|
export type ChatRunMinAggregateInputType = {
|
|
64
91
|
id?: true
|
|
65
92
|
threadId?: true
|
|
@@ -69,6 +96,9 @@ export type ChatRunMinAggregateInputType = {
|
|
|
69
96
|
finishedAt?: true
|
|
70
97
|
detachedSince?: true
|
|
71
98
|
error?: true
|
|
99
|
+
sandboxKey?: true
|
|
100
|
+
cancelRequested?: true
|
|
101
|
+
driverEpoch?: true
|
|
72
102
|
}
|
|
73
103
|
|
|
74
104
|
export type ChatRunMaxAggregateInputType = {
|
|
@@ -80,6 +110,9 @@ export type ChatRunMaxAggregateInputType = {
|
|
|
80
110
|
finishedAt?: true
|
|
81
111
|
detachedSince?: true
|
|
82
112
|
error?: true
|
|
113
|
+
sandboxKey?: true
|
|
114
|
+
cancelRequested?: true
|
|
115
|
+
driverEpoch?: true
|
|
83
116
|
}
|
|
84
117
|
|
|
85
118
|
export type ChatRunCountAggregateInputType = {
|
|
@@ -92,6 +125,9 @@ export type ChatRunCountAggregateInputType = {
|
|
|
92
125
|
detachedSince?: true
|
|
93
126
|
usage?: true
|
|
94
127
|
error?: true
|
|
128
|
+
sandboxKey?: true
|
|
129
|
+
cancelRequested?: true
|
|
130
|
+
driverEpoch?: true
|
|
95
131
|
_all?: true
|
|
96
132
|
}
|
|
97
133
|
|
|
@@ -130,6 +166,18 @@ export type ChatRunAggregateArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
130
166
|
* Count returned ChatRuns
|
|
131
167
|
**/
|
|
132
168
|
_count?: true | ChatRunCountAggregateInputType
|
|
169
|
+
/**
|
|
170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
171
|
+
*
|
|
172
|
+
* Select which fields to average
|
|
173
|
+
**/
|
|
174
|
+
_avg?: ChatRunAvgAggregateInputType
|
|
175
|
+
/**
|
|
176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
177
|
+
*
|
|
178
|
+
* Select which fields to sum
|
|
179
|
+
**/
|
|
180
|
+
_sum?: ChatRunSumAggregateInputType
|
|
133
181
|
/**
|
|
134
182
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
135
183
|
*
|
|
@@ -163,6 +211,8 @@ export type ChatRunGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
163
211
|
take?: number
|
|
164
212
|
skip?: number
|
|
165
213
|
_count?: ChatRunCountAggregateInputType | true
|
|
214
|
+
_avg?: ChatRunAvgAggregateInputType
|
|
215
|
+
_sum?: ChatRunSumAggregateInputType
|
|
166
216
|
_min?: ChatRunMinAggregateInputType
|
|
167
217
|
_max?: ChatRunMaxAggregateInputType
|
|
168
218
|
}
|
|
@@ -177,7 +227,12 @@ export type ChatRunGroupByOutputType = {
|
|
|
177
227
|
detachedSince: Date | null
|
|
178
228
|
usage: runtime.JsonValue | null
|
|
179
229
|
error: string | null
|
|
230
|
+
sandboxKey: string | null
|
|
231
|
+
cancelRequested: boolean | null
|
|
232
|
+
driverEpoch: number | null
|
|
180
233
|
_count: ChatRunCountAggregateOutputType | null
|
|
234
|
+
_avg: ChatRunAvgAggregateOutputType | null
|
|
235
|
+
_sum: ChatRunSumAggregateOutputType | null
|
|
181
236
|
_min: ChatRunMinAggregateOutputType | null
|
|
182
237
|
_max: ChatRunMaxAggregateOutputType | null
|
|
183
238
|
}
|
|
@@ -210,6 +265,9 @@ export type ChatRunWhereInput = {
|
|
|
210
265
|
detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
|
|
211
266
|
usage?: Prisma.JsonNullableFilter<"ChatRun">
|
|
212
267
|
error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
268
|
+
sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
269
|
+
cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
|
|
270
|
+
driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
|
|
213
271
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
214
272
|
interrupts?: Prisma.ChatInterruptListRelationFilter
|
|
215
273
|
}
|
|
@@ -224,6 +282,9 @@ export type ChatRunOrderByWithRelationInput = {
|
|
|
224
282
|
detachedSince?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
225
283
|
usage?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
226
284
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
285
|
+
sandboxKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
286
|
+
cancelRequested?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
287
|
+
driverEpoch?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
227
288
|
thread?: Prisma.ChatThreadOrderByWithRelationInput
|
|
228
289
|
interrupts?: Prisma.ChatInterruptOrderByRelationAggregateInput
|
|
229
290
|
}
|
|
@@ -241,6 +302,9 @@ export type ChatRunWhereUniqueInput = Prisma.AtLeast<{
|
|
|
241
302
|
detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
|
|
242
303
|
usage?: Prisma.JsonNullableFilter<"ChatRun">
|
|
243
304
|
error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
305
|
+
sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
306
|
+
cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
|
|
307
|
+
driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
|
|
244
308
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
245
309
|
interrupts?: Prisma.ChatInterruptListRelationFilter
|
|
246
310
|
}, "id">
|
|
@@ -255,9 +319,14 @@ export type ChatRunOrderByWithAggregationInput = {
|
|
|
255
319
|
detachedSince?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
256
320
|
usage?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
257
321
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
322
|
+
sandboxKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
323
|
+
cancelRequested?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
324
|
+
driverEpoch?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
258
325
|
_count?: Prisma.ChatRunCountOrderByAggregateInput
|
|
326
|
+
_avg?: Prisma.ChatRunAvgOrderByAggregateInput
|
|
259
327
|
_max?: Prisma.ChatRunMaxOrderByAggregateInput
|
|
260
328
|
_min?: Prisma.ChatRunMinOrderByAggregateInput
|
|
329
|
+
_sum?: Prisma.ChatRunSumOrderByAggregateInput
|
|
261
330
|
}
|
|
262
331
|
|
|
263
332
|
export type ChatRunScalarWhereWithAggregatesInput = {
|
|
@@ -273,6 +342,9 @@ export type ChatRunScalarWhereWithAggregatesInput = {
|
|
|
273
342
|
detachedSince?: Prisma.DateTimeNullableWithAggregatesFilter<"ChatRun"> | Date | string | null
|
|
274
343
|
usage?: Prisma.JsonNullableWithAggregatesFilter<"ChatRun">
|
|
275
344
|
error?: Prisma.StringNullableWithAggregatesFilter<"ChatRun"> | string | null
|
|
345
|
+
sandboxKey?: Prisma.StringNullableWithAggregatesFilter<"ChatRun"> | string | null
|
|
346
|
+
cancelRequested?: Prisma.BoolNullableWithAggregatesFilter<"ChatRun"> | boolean | null
|
|
347
|
+
driverEpoch?: Prisma.IntNullableWithAggregatesFilter<"ChatRun"> | number | null
|
|
276
348
|
}
|
|
277
349
|
|
|
278
350
|
export type ChatRunCreateInput = {
|
|
@@ -284,6 +356,9 @@ export type ChatRunCreateInput = {
|
|
|
284
356
|
detachedSince?: Date | string | null
|
|
285
357
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
286
358
|
error?: string | null
|
|
359
|
+
sandboxKey?: string | null
|
|
360
|
+
cancelRequested?: boolean | null
|
|
361
|
+
driverEpoch?: number | null
|
|
287
362
|
thread: Prisma.ChatThreadCreateNestedOneWithoutRunsInput
|
|
288
363
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutRunInput
|
|
289
364
|
}
|
|
@@ -298,6 +373,9 @@ export type ChatRunUncheckedCreateInput = {
|
|
|
298
373
|
detachedSince?: Date | string | null
|
|
299
374
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
300
375
|
error?: string | null
|
|
376
|
+
sandboxKey?: string | null
|
|
377
|
+
cancelRequested?: boolean | null
|
|
378
|
+
driverEpoch?: number | null
|
|
301
379
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutRunInput
|
|
302
380
|
}
|
|
303
381
|
|
|
@@ -310,6 +388,9 @@ export type ChatRunUpdateInput = {
|
|
|
310
388
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
311
389
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
312
390
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
391
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
392
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
393
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
313
394
|
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutRunsNestedInput
|
|
314
395
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutRunNestedInput
|
|
315
396
|
}
|
|
@@ -324,6 +405,9 @@ export type ChatRunUncheckedUpdateInput = {
|
|
|
324
405
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
325
406
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
326
407
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
408
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
409
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
410
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
327
411
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutRunNestedInput
|
|
328
412
|
}
|
|
329
413
|
|
|
@@ -337,6 +421,9 @@ export type ChatRunCreateManyInput = {
|
|
|
337
421
|
detachedSince?: Date | string | null
|
|
338
422
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
339
423
|
error?: string | null
|
|
424
|
+
sandboxKey?: string | null
|
|
425
|
+
cancelRequested?: boolean | null
|
|
426
|
+
driverEpoch?: number | null
|
|
340
427
|
}
|
|
341
428
|
|
|
342
429
|
export type ChatRunUpdateManyMutationInput = {
|
|
@@ -348,6 +435,9 @@ export type ChatRunUpdateManyMutationInput = {
|
|
|
348
435
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
349
436
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
350
437
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
438
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
439
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
440
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
351
441
|
}
|
|
352
442
|
|
|
353
443
|
export type ChatRunUncheckedUpdateManyInput = {
|
|
@@ -360,6 +450,9 @@ export type ChatRunUncheckedUpdateManyInput = {
|
|
|
360
450
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
361
451
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
362
452
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
453
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
454
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
455
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
363
456
|
}
|
|
364
457
|
|
|
365
458
|
export type ChatRunListRelationFilter = {
|
|
@@ -382,6 +475,13 @@ export type ChatRunCountOrderByAggregateInput = {
|
|
|
382
475
|
detachedSince?: Prisma.SortOrder
|
|
383
476
|
usage?: Prisma.SortOrder
|
|
384
477
|
error?: Prisma.SortOrder
|
|
478
|
+
sandboxKey?: Prisma.SortOrder
|
|
479
|
+
cancelRequested?: Prisma.SortOrder
|
|
480
|
+
driverEpoch?: Prisma.SortOrder
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export type ChatRunAvgOrderByAggregateInput = {
|
|
484
|
+
driverEpoch?: Prisma.SortOrder
|
|
385
485
|
}
|
|
386
486
|
|
|
387
487
|
export type ChatRunMaxOrderByAggregateInput = {
|
|
@@ -393,6 +493,9 @@ export type ChatRunMaxOrderByAggregateInput = {
|
|
|
393
493
|
finishedAt?: Prisma.SortOrder
|
|
394
494
|
detachedSince?: Prisma.SortOrder
|
|
395
495
|
error?: Prisma.SortOrder
|
|
496
|
+
sandboxKey?: Prisma.SortOrder
|
|
497
|
+
cancelRequested?: Prisma.SortOrder
|
|
498
|
+
driverEpoch?: Prisma.SortOrder
|
|
396
499
|
}
|
|
397
500
|
|
|
398
501
|
export type ChatRunMinOrderByAggregateInput = {
|
|
@@ -404,6 +507,13 @@ export type ChatRunMinOrderByAggregateInput = {
|
|
|
404
507
|
finishedAt?: Prisma.SortOrder
|
|
405
508
|
detachedSince?: Prisma.SortOrder
|
|
406
509
|
error?: Prisma.SortOrder
|
|
510
|
+
sandboxKey?: Prisma.SortOrder
|
|
511
|
+
cancelRequested?: Prisma.SortOrder
|
|
512
|
+
driverEpoch?: Prisma.SortOrder
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export type ChatRunSumOrderByAggregateInput = {
|
|
516
|
+
driverEpoch?: Prisma.SortOrder
|
|
407
517
|
}
|
|
408
518
|
|
|
409
519
|
export type ChatRunScalarRelationFilter = {
|
|
@@ -453,6 +563,10 @@ export type ChatRunUncheckedUpdateManyWithoutThreadNestedInput = {
|
|
|
453
563
|
deleteMany?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
|
|
454
564
|
}
|
|
455
565
|
|
|
566
|
+
export type NullableBoolFieldUpdateOperationsInput = {
|
|
567
|
+
set?: boolean | null
|
|
568
|
+
}
|
|
569
|
+
|
|
456
570
|
export type ChatRunCreateNestedOneWithoutInterruptsInput = {
|
|
457
571
|
create?: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
|
|
458
572
|
connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutInterruptsInput
|
|
@@ -476,6 +590,9 @@ export type ChatRunCreateWithoutThreadInput = {
|
|
|
476
590
|
detachedSince?: Date | string | null
|
|
477
591
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
478
592
|
error?: string | null
|
|
593
|
+
sandboxKey?: string | null
|
|
594
|
+
cancelRequested?: boolean | null
|
|
595
|
+
driverEpoch?: number | null
|
|
479
596
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutRunInput
|
|
480
597
|
}
|
|
481
598
|
|
|
@@ -488,6 +605,9 @@ export type ChatRunUncheckedCreateWithoutThreadInput = {
|
|
|
488
605
|
detachedSince?: Date | string | null
|
|
489
606
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
490
607
|
error?: string | null
|
|
608
|
+
sandboxKey?: string | null
|
|
609
|
+
cancelRequested?: boolean | null
|
|
610
|
+
driverEpoch?: number | null
|
|
491
611
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutRunInput
|
|
492
612
|
}
|
|
493
613
|
|
|
@@ -530,6 +650,9 @@ export type ChatRunScalarWhereInput = {
|
|
|
530
650
|
detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
|
|
531
651
|
usage?: Prisma.JsonNullableFilter<"ChatRun">
|
|
532
652
|
error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
653
|
+
sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
654
|
+
cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
|
|
655
|
+
driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
|
|
533
656
|
}
|
|
534
657
|
|
|
535
658
|
export type ChatRunCreateWithoutInterruptsInput = {
|
|
@@ -541,6 +664,9 @@ export type ChatRunCreateWithoutInterruptsInput = {
|
|
|
541
664
|
detachedSince?: Date | string | null
|
|
542
665
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
543
666
|
error?: string | null
|
|
667
|
+
sandboxKey?: string | null
|
|
668
|
+
cancelRequested?: boolean | null
|
|
669
|
+
driverEpoch?: number | null
|
|
544
670
|
thread: Prisma.ChatThreadCreateNestedOneWithoutRunsInput
|
|
545
671
|
}
|
|
546
672
|
|
|
@@ -554,6 +680,9 @@ export type ChatRunUncheckedCreateWithoutInterruptsInput = {
|
|
|
554
680
|
detachedSince?: Date | string | null
|
|
555
681
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
556
682
|
error?: string | null
|
|
683
|
+
sandboxKey?: string | null
|
|
684
|
+
cancelRequested?: boolean | null
|
|
685
|
+
driverEpoch?: number | null
|
|
557
686
|
}
|
|
558
687
|
|
|
559
688
|
export type ChatRunCreateOrConnectWithoutInterruptsInput = {
|
|
@@ -581,6 +710,9 @@ export type ChatRunUpdateWithoutInterruptsInput = {
|
|
|
581
710
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
582
711
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
583
712
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
713
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
714
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
715
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
584
716
|
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutRunsNestedInput
|
|
585
717
|
}
|
|
586
718
|
|
|
@@ -594,6 +726,9 @@ export type ChatRunUncheckedUpdateWithoutInterruptsInput = {
|
|
|
594
726
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
595
727
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
596
728
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
729
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
730
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
731
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
597
732
|
}
|
|
598
733
|
|
|
599
734
|
export type ChatRunCreateManyThreadInput = {
|
|
@@ -605,6 +740,9 @@ export type ChatRunCreateManyThreadInput = {
|
|
|
605
740
|
detachedSince?: Date | string | null
|
|
606
741
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
607
742
|
error?: string | null
|
|
743
|
+
sandboxKey?: string | null
|
|
744
|
+
cancelRequested?: boolean | null
|
|
745
|
+
driverEpoch?: number | null
|
|
608
746
|
}
|
|
609
747
|
|
|
610
748
|
export type ChatRunUpdateWithoutThreadInput = {
|
|
@@ -616,6 +754,9 @@ export type ChatRunUpdateWithoutThreadInput = {
|
|
|
616
754
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
617
755
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
618
756
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
757
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
758
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
759
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
619
760
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutRunNestedInput
|
|
620
761
|
}
|
|
621
762
|
|
|
@@ -628,6 +769,9 @@ export type ChatRunUncheckedUpdateWithoutThreadInput = {
|
|
|
628
769
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
629
770
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
630
771
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
772
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
773
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
774
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
631
775
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutRunNestedInput
|
|
632
776
|
}
|
|
633
777
|
|
|
@@ -640,6 +784,9 @@ export type ChatRunUncheckedUpdateManyWithoutThreadInput = {
|
|
|
640
784
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
641
785
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
642
786
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
787
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
788
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
789
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
643
790
|
}
|
|
644
791
|
|
|
645
792
|
|
|
@@ -683,6 +830,9 @@ export type ChatRunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|
|
683
830
|
detachedSince?: boolean
|
|
684
831
|
usage?: boolean
|
|
685
832
|
error?: boolean
|
|
833
|
+
sandboxKey?: boolean
|
|
834
|
+
cancelRequested?: boolean
|
|
835
|
+
driverEpoch?: boolean
|
|
686
836
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
687
837
|
interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
|
|
688
838
|
_count?: boolean | Prisma.ChatRunCountOutputTypeDefaultArgs<ExtArgs>
|
|
@@ -698,6 +848,9 @@ export type ChatRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
698
848
|
detachedSince?: boolean
|
|
699
849
|
usage?: boolean
|
|
700
850
|
error?: boolean
|
|
851
|
+
sandboxKey?: boolean
|
|
852
|
+
cancelRequested?: boolean
|
|
853
|
+
driverEpoch?: boolean
|
|
701
854
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
702
855
|
}, ExtArgs["result"]["chatRun"]>
|
|
703
856
|
|
|
@@ -711,6 +864,9 @@ export type ChatRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
711
864
|
detachedSince?: boolean
|
|
712
865
|
usage?: boolean
|
|
713
866
|
error?: boolean
|
|
867
|
+
sandboxKey?: boolean
|
|
868
|
+
cancelRequested?: boolean
|
|
869
|
+
driverEpoch?: boolean
|
|
714
870
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
715
871
|
}, ExtArgs["result"]["chatRun"]>
|
|
716
872
|
|
|
@@ -724,9 +880,12 @@ export type ChatRunSelectScalar = {
|
|
|
724
880
|
detachedSince?: boolean
|
|
725
881
|
usage?: boolean
|
|
726
882
|
error?: boolean
|
|
883
|
+
sandboxKey?: boolean
|
|
884
|
+
cancelRequested?: boolean
|
|
885
|
+
driverEpoch?: boolean
|
|
727
886
|
}
|
|
728
887
|
|
|
729
|
-
export type ChatRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "userId" | "status" | "startedAt" | "finishedAt" | "detachedSince" | "usage" | "error", ExtArgs["result"]["chatRun"]>
|
|
888
|
+
export type ChatRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "userId" | "status" | "startedAt" | "finishedAt" | "detachedSince" | "usage" | "error" | "sandboxKey" | "cancelRequested" | "driverEpoch", ExtArgs["result"]["chatRun"]>
|
|
730
889
|
export type ChatRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
731
890
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
732
891
|
interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
|
|
@@ -755,6 +914,9 @@ export type $ChatRunPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
755
914
|
detachedSince: Date | null
|
|
756
915
|
usage: runtime.JsonValue | null
|
|
757
916
|
error: string | null
|
|
917
|
+
sandboxKey: string | null
|
|
918
|
+
cancelRequested: boolean | null
|
|
919
|
+
driverEpoch: number | null
|
|
758
920
|
}, ExtArgs["result"]["chatRun"]>
|
|
759
921
|
composites: {}
|
|
760
922
|
}
|
|
@@ -1189,6 +1351,9 @@ export interface ChatRunFieldRefs {
|
|
|
1189
1351
|
readonly detachedSince: Prisma.FieldRef<"ChatRun", 'DateTime'>
|
|
1190
1352
|
readonly usage: Prisma.FieldRef<"ChatRun", 'Json'>
|
|
1191
1353
|
readonly error: Prisma.FieldRef<"ChatRun", 'String'>
|
|
1354
|
+
readonly sandboxKey: Prisma.FieldRef<"ChatRun", 'String'>
|
|
1355
|
+
readonly cancelRequested: Prisma.FieldRef<"ChatRun", 'Boolean'>
|
|
1356
|
+
readonly driverEpoch: Prisma.FieldRef<"ChatRun", 'Int'>
|
|
1192
1357
|
}
|
|
1193
1358
|
|
|
1194
1359
|
|