@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,18 @@ export type ChatRunUncheckedUpdateManyWithoutThreadNestedInput = {
|
|
|
453
563
|
deleteMany?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
|
|
454
564
|
}
|
|
455
565
|
|
|
566
|
+
export type NullableBoolFieldUpdateOperationsInput = {
|
|
567
|
+
set?: boolean | null
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export type NullableIntFieldUpdateOperationsInput = {
|
|
571
|
+
set?: number | null
|
|
572
|
+
increment?: number
|
|
573
|
+
decrement?: number
|
|
574
|
+
multiply?: number
|
|
575
|
+
divide?: number
|
|
576
|
+
}
|
|
577
|
+
|
|
456
578
|
export type ChatRunCreateNestedOneWithoutInterruptsInput = {
|
|
457
579
|
create?: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
|
|
458
580
|
connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutInterruptsInput
|
|
@@ -476,6 +598,9 @@ export type ChatRunCreateWithoutThreadInput = {
|
|
|
476
598
|
detachedSince?: Date | string | null
|
|
477
599
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
478
600
|
error?: string | null
|
|
601
|
+
sandboxKey?: string | null
|
|
602
|
+
cancelRequested?: boolean | null
|
|
603
|
+
driverEpoch?: number | null
|
|
479
604
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutRunInput
|
|
480
605
|
}
|
|
481
606
|
|
|
@@ -488,6 +613,9 @@ export type ChatRunUncheckedCreateWithoutThreadInput = {
|
|
|
488
613
|
detachedSince?: Date | string | null
|
|
489
614
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
490
615
|
error?: string | null
|
|
616
|
+
sandboxKey?: string | null
|
|
617
|
+
cancelRequested?: boolean | null
|
|
618
|
+
driverEpoch?: number | null
|
|
491
619
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutRunInput
|
|
492
620
|
}
|
|
493
621
|
|
|
@@ -529,6 +657,9 @@ export type ChatRunScalarWhereInput = {
|
|
|
529
657
|
detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
|
|
530
658
|
usage?: Prisma.JsonNullableFilter<"ChatRun">
|
|
531
659
|
error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
660
|
+
sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
|
|
661
|
+
cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
|
|
662
|
+
driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
|
|
532
663
|
}
|
|
533
664
|
|
|
534
665
|
export type ChatRunCreateWithoutInterruptsInput = {
|
|
@@ -540,6 +671,9 @@ export type ChatRunCreateWithoutInterruptsInput = {
|
|
|
540
671
|
detachedSince?: Date | string | null
|
|
541
672
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
542
673
|
error?: string | null
|
|
674
|
+
sandboxKey?: string | null
|
|
675
|
+
cancelRequested?: boolean | null
|
|
676
|
+
driverEpoch?: number | null
|
|
543
677
|
thread: Prisma.ChatThreadCreateNestedOneWithoutRunsInput
|
|
544
678
|
}
|
|
545
679
|
|
|
@@ -553,6 +687,9 @@ export type ChatRunUncheckedCreateWithoutInterruptsInput = {
|
|
|
553
687
|
detachedSince?: Date | string | null
|
|
554
688
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
555
689
|
error?: string | null
|
|
690
|
+
sandboxKey?: string | null
|
|
691
|
+
cancelRequested?: boolean | null
|
|
692
|
+
driverEpoch?: number | null
|
|
556
693
|
}
|
|
557
694
|
|
|
558
695
|
export type ChatRunCreateOrConnectWithoutInterruptsInput = {
|
|
@@ -580,6 +717,9 @@ export type ChatRunUpdateWithoutInterruptsInput = {
|
|
|
580
717
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
581
718
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
582
719
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
720
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
721
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
722
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
583
723
|
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutRunsNestedInput
|
|
584
724
|
}
|
|
585
725
|
|
|
@@ -593,6 +733,9 @@ export type ChatRunUncheckedUpdateWithoutInterruptsInput = {
|
|
|
593
733
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
594
734
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
595
735
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
736
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
737
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
738
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
596
739
|
}
|
|
597
740
|
|
|
598
741
|
export type ChatRunCreateManyThreadInput = {
|
|
@@ -604,6 +747,9 @@ export type ChatRunCreateManyThreadInput = {
|
|
|
604
747
|
detachedSince?: Date | string | null
|
|
605
748
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
606
749
|
error?: string | null
|
|
750
|
+
sandboxKey?: string | null
|
|
751
|
+
cancelRequested?: boolean | null
|
|
752
|
+
driverEpoch?: number | null
|
|
607
753
|
}
|
|
608
754
|
|
|
609
755
|
export type ChatRunUpdateWithoutThreadInput = {
|
|
@@ -615,6 +761,9 @@ export type ChatRunUpdateWithoutThreadInput = {
|
|
|
615
761
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
616
762
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
617
763
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
764
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
765
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
766
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
618
767
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutRunNestedInput
|
|
619
768
|
}
|
|
620
769
|
|
|
@@ -627,6 +776,9 @@ export type ChatRunUncheckedUpdateWithoutThreadInput = {
|
|
|
627
776
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
628
777
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
629
778
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
779
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
780
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
781
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
630
782
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutRunNestedInput
|
|
631
783
|
}
|
|
632
784
|
|
|
@@ -639,6 +791,9 @@ export type ChatRunUncheckedUpdateManyWithoutThreadInput = {
|
|
|
639
791
|
detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
640
792
|
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
641
793
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
794
|
+
sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
795
|
+
cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
796
|
+
driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
642
797
|
}
|
|
643
798
|
|
|
644
799
|
|
|
@@ -682,6 +837,9 @@ export type ChatRunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|
|
682
837
|
detachedSince?: boolean
|
|
683
838
|
usage?: boolean
|
|
684
839
|
error?: boolean
|
|
840
|
+
sandboxKey?: boolean
|
|
841
|
+
cancelRequested?: boolean
|
|
842
|
+
driverEpoch?: boolean
|
|
685
843
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
686
844
|
interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
|
|
687
845
|
_count?: boolean | Prisma.ChatRunCountOutputTypeDefaultArgs<ExtArgs>
|
|
@@ -697,6 +855,9 @@ export type ChatRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
697
855
|
detachedSince?: boolean
|
|
698
856
|
usage?: boolean
|
|
699
857
|
error?: boolean
|
|
858
|
+
sandboxKey?: boolean
|
|
859
|
+
cancelRequested?: boolean
|
|
860
|
+
driverEpoch?: boolean
|
|
700
861
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
701
862
|
}, ExtArgs["result"]["chatRun"]>
|
|
702
863
|
|
|
@@ -710,6 +871,9 @@ export type ChatRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
710
871
|
detachedSince?: boolean
|
|
711
872
|
usage?: boolean
|
|
712
873
|
error?: boolean
|
|
874
|
+
sandboxKey?: boolean
|
|
875
|
+
cancelRequested?: boolean
|
|
876
|
+
driverEpoch?: boolean
|
|
713
877
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
714
878
|
}, ExtArgs["result"]["chatRun"]>
|
|
715
879
|
|
|
@@ -723,9 +887,12 @@ export type ChatRunSelectScalar = {
|
|
|
723
887
|
detachedSince?: boolean
|
|
724
888
|
usage?: boolean
|
|
725
889
|
error?: boolean
|
|
890
|
+
sandboxKey?: boolean
|
|
891
|
+
cancelRequested?: boolean
|
|
892
|
+
driverEpoch?: boolean
|
|
726
893
|
}
|
|
727
894
|
|
|
728
|
-
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"]>
|
|
895
|
+
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"]>
|
|
729
896
|
export type ChatRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
730
897
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
731
898
|
interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
|
|
@@ -754,6 +921,9 @@ export type $ChatRunPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
754
921
|
detachedSince: Date | null
|
|
755
922
|
usage: runtime.JsonValue | null
|
|
756
923
|
error: string | null
|
|
924
|
+
sandboxKey: string | null
|
|
925
|
+
cancelRequested: boolean | null
|
|
926
|
+
driverEpoch: number | null
|
|
757
927
|
}, ExtArgs["result"]["chatRun"]>
|
|
758
928
|
composites: {}
|
|
759
929
|
}
|
|
@@ -1188,6 +1358,9 @@ export interface ChatRunFieldRefs {
|
|
|
1188
1358
|
readonly detachedSince: Prisma.FieldRef<"ChatRun", 'DateTime'>
|
|
1189
1359
|
readonly usage: Prisma.FieldRef<"ChatRun", 'Json'>
|
|
1190
1360
|
readonly error: Prisma.FieldRef<"ChatRun", 'String'>
|
|
1361
|
+
readonly sandboxKey: Prisma.FieldRef<"ChatRun", 'String'>
|
|
1362
|
+
readonly cancelRequested: Prisma.FieldRef<"ChatRun", 'Boolean'>
|
|
1363
|
+
readonly driverEpoch: Prisma.FieldRef<"ChatRun", 'Int'>
|
|
1191
1364
|
}
|
|
1192
1365
|
|
|
1193
1366
|
|