@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
|
@@ -31,6 +31,9 @@ export type GenerationRunMinAggregateOutputType = {
|
|
|
31
31
|
kind: string | null
|
|
32
32
|
status: string | null
|
|
33
33
|
artifactId: string | null
|
|
34
|
+
activity: string | null
|
|
35
|
+
provider: string | null
|
|
36
|
+
model: string | null
|
|
34
37
|
error: string | null
|
|
35
38
|
startedAt: Date | null
|
|
36
39
|
finishedAt: Date | null
|
|
@@ -43,6 +46,9 @@ export type GenerationRunMaxAggregateOutputType = {
|
|
|
43
46
|
kind: string | null
|
|
44
47
|
status: string | null
|
|
45
48
|
artifactId: string | null
|
|
49
|
+
activity: string | null
|
|
50
|
+
provider: string | null
|
|
51
|
+
model: string | null
|
|
46
52
|
error: string | null
|
|
47
53
|
startedAt: Date | null
|
|
48
54
|
finishedAt: Date | null
|
|
@@ -57,9 +63,15 @@ export type GenerationRunCountAggregateOutputType = {
|
|
|
57
63
|
input: number
|
|
58
64
|
result: number
|
|
59
65
|
artifactId: number
|
|
66
|
+
activity: number
|
|
67
|
+
provider: number
|
|
68
|
+
model: number
|
|
69
|
+
artifacts: number
|
|
70
|
+
usage: number
|
|
60
71
|
error: number
|
|
61
72
|
startedAt: number
|
|
62
73
|
finishedAt: number
|
|
74
|
+
linkedTarget: number
|
|
63
75
|
_all: number
|
|
64
76
|
}
|
|
65
77
|
|
|
@@ -71,6 +83,9 @@ export type GenerationRunMinAggregateInputType = {
|
|
|
71
83
|
kind?: true
|
|
72
84
|
status?: true
|
|
73
85
|
artifactId?: true
|
|
86
|
+
activity?: true
|
|
87
|
+
provider?: true
|
|
88
|
+
model?: true
|
|
74
89
|
error?: true
|
|
75
90
|
startedAt?: true
|
|
76
91
|
finishedAt?: true
|
|
@@ -83,6 +98,9 @@ export type GenerationRunMaxAggregateInputType = {
|
|
|
83
98
|
kind?: true
|
|
84
99
|
status?: true
|
|
85
100
|
artifactId?: true
|
|
101
|
+
activity?: true
|
|
102
|
+
provider?: true
|
|
103
|
+
model?: true
|
|
86
104
|
error?: true
|
|
87
105
|
startedAt?: true
|
|
88
106
|
finishedAt?: true
|
|
@@ -97,9 +115,15 @@ export type GenerationRunCountAggregateInputType = {
|
|
|
97
115
|
input?: true
|
|
98
116
|
result?: true
|
|
99
117
|
artifactId?: true
|
|
118
|
+
activity?: true
|
|
119
|
+
provider?: true
|
|
120
|
+
model?: true
|
|
121
|
+
artifacts?: true
|
|
122
|
+
usage?: true
|
|
100
123
|
error?: true
|
|
101
124
|
startedAt?: true
|
|
102
125
|
finishedAt?: true
|
|
126
|
+
linkedTarget?: true
|
|
103
127
|
_all?: true
|
|
104
128
|
}
|
|
105
129
|
|
|
@@ -184,9 +208,15 @@ export type GenerationRunGroupByOutputType = {
|
|
|
184
208
|
input: runtime.JsonValue | null
|
|
185
209
|
result: runtime.JsonValue | null
|
|
186
210
|
artifactId: string | null
|
|
211
|
+
activity: string | null
|
|
212
|
+
provider: string | null
|
|
213
|
+
model: string | null
|
|
214
|
+
artifacts: runtime.JsonValue | null
|
|
215
|
+
usage: runtime.JsonValue | null
|
|
187
216
|
error: string | null
|
|
188
217
|
startedAt: Date
|
|
189
218
|
finishedAt: Date | null
|
|
219
|
+
linkedTarget: runtime.JsonValue | null
|
|
190
220
|
_count: GenerationRunCountAggregateOutputType | null
|
|
191
221
|
_min: GenerationRunMinAggregateOutputType | null
|
|
192
222
|
_max: GenerationRunMaxAggregateOutputType | null
|
|
@@ -219,9 +249,15 @@ export type GenerationRunWhereInput = {
|
|
|
219
249
|
input?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
220
250
|
result?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
221
251
|
artifactId?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
252
|
+
activity?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
253
|
+
provider?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
254
|
+
model?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
255
|
+
artifacts?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
256
|
+
usage?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
222
257
|
error?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
223
258
|
startedAt?: Prisma.DateTimeFilter<"GenerationRun"> | Date | string
|
|
224
259
|
finishedAt?: Prisma.DateTimeNullableFilter<"GenerationRun"> | Date | string | null
|
|
260
|
+
linkedTarget?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
225
261
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
226
262
|
}
|
|
227
263
|
|
|
@@ -234,9 +270,15 @@ export type GenerationRunOrderByWithRelationInput = {
|
|
|
234
270
|
input?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
235
271
|
result?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
236
272
|
artifactId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
273
|
+
activity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
274
|
+
provider?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
275
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
276
|
+
artifacts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
277
|
+
usage?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
237
278
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
238
279
|
startedAt?: Prisma.SortOrder
|
|
239
280
|
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
281
|
+
linkedTarget?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
240
282
|
thread?: Prisma.ChatThreadOrderByWithRelationInput
|
|
241
283
|
}
|
|
242
284
|
|
|
@@ -252,9 +294,15 @@ export type GenerationRunWhereUniqueInput = Prisma.AtLeast<{
|
|
|
252
294
|
input?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
253
295
|
result?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
254
296
|
artifactId?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
297
|
+
activity?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
298
|
+
provider?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
299
|
+
model?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
300
|
+
artifacts?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
301
|
+
usage?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
255
302
|
error?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
256
303
|
startedAt?: Prisma.DateTimeFilter<"GenerationRun"> | Date | string
|
|
257
304
|
finishedAt?: Prisma.DateTimeNullableFilter<"GenerationRun"> | Date | string | null
|
|
305
|
+
linkedTarget?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
258
306
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
259
307
|
}, "id">
|
|
260
308
|
|
|
@@ -267,9 +315,15 @@ export type GenerationRunOrderByWithAggregationInput = {
|
|
|
267
315
|
input?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
268
316
|
result?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
269
317
|
artifactId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
318
|
+
activity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
319
|
+
provider?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
320
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
321
|
+
artifacts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
322
|
+
usage?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
270
323
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
271
324
|
startedAt?: Prisma.SortOrder
|
|
272
325
|
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
326
|
+
linkedTarget?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
273
327
|
_count?: Prisma.GenerationRunCountOrderByAggregateInput
|
|
274
328
|
_max?: Prisma.GenerationRunMaxOrderByAggregateInput
|
|
275
329
|
_min?: Prisma.GenerationRunMinOrderByAggregateInput
|
|
@@ -287,9 +341,15 @@ export type GenerationRunScalarWhereWithAggregatesInput = {
|
|
|
287
341
|
input?: Prisma.JsonNullableWithAggregatesFilter<"GenerationRun">
|
|
288
342
|
result?: Prisma.JsonNullableWithAggregatesFilter<"GenerationRun">
|
|
289
343
|
artifactId?: Prisma.StringNullableWithAggregatesFilter<"GenerationRun"> | string | null
|
|
344
|
+
activity?: Prisma.StringNullableWithAggregatesFilter<"GenerationRun"> | string | null
|
|
345
|
+
provider?: Prisma.StringNullableWithAggregatesFilter<"GenerationRun"> | string | null
|
|
346
|
+
model?: Prisma.StringNullableWithAggregatesFilter<"GenerationRun"> | string | null
|
|
347
|
+
artifacts?: Prisma.JsonNullableWithAggregatesFilter<"GenerationRun">
|
|
348
|
+
usage?: Prisma.JsonNullableWithAggregatesFilter<"GenerationRun">
|
|
290
349
|
error?: Prisma.StringNullableWithAggregatesFilter<"GenerationRun"> | string | null
|
|
291
350
|
startedAt?: Prisma.DateTimeWithAggregatesFilter<"GenerationRun"> | Date | string
|
|
292
351
|
finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"GenerationRun"> | Date | string | null
|
|
352
|
+
linkedTarget?: Prisma.JsonNullableWithAggregatesFilter<"GenerationRun">
|
|
293
353
|
}
|
|
294
354
|
|
|
295
355
|
export type GenerationRunCreateInput = {
|
|
@@ -300,9 +360,15 @@ export type GenerationRunCreateInput = {
|
|
|
300
360
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
301
361
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
302
362
|
artifactId?: string | null
|
|
363
|
+
activity?: string | null
|
|
364
|
+
provider?: string | null
|
|
365
|
+
model?: string | null
|
|
366
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
367
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
303
368
|
error?: string | null
|
|
304
369
|
startedAt?: Date | string
|
|
305
370
|
finishedAt?: Date | string | null
|
|
371
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
306
372
|
thread: Prisma.ChatThreadCreateNestedOneWithoutGenerationsInput
|
|
307
373
|
}
|
|
308
374
|
|
|
@@ -315,9 +381,15 @@ export type GenerationRunUncheckedCreateInput = {
|
|
|
315
381
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
316
382
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
317
383
|
artifactId?: string | null
|
|
384
|
+
activity?: string | null
|
|
385
|
+
provider?: string | null
|
|
386
|
+
model?: string | null
|
|
387
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
388
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
318
389
|
error?: string | null
|
|
319
390
|
startedAt?: Date | string
|
|
320
391
|
finishedAt?: Date | string | null
|
|
392
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
321
393
|
}
|
|
322
394
|
|
|
323
395
|
export type GenerationRunUpdateInput = {
|
|
@@ -328,9 +400,15 @@ export type GenerationRunUpdateInput = {
|
|
|
328
400
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
329
401
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
330
402
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
403
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
404
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
405
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
406
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
407
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
331
408
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
332
409
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
333
410
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
411
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
334
412
|
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutGenerationsNestedInput
|
|
335
413
|
}
|
|
336
414
|
|
|
@@ -343,9 +421,15 @@ export type GenerationRunUncheckedUpdateInput = {
|
|
|
343
421
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
344
422
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
345
423
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
424
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
425
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
426
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
427
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
428
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
346
429
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
347
430
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
348
431
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
432
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
349
433
|
}
|
|
350
434
|
|
|
351
435
|
export type GenerationRunCreateManyInput = {
|
|
@@ -357,9 +441,15 @@ export type GenerationRunCreateManyInput = {
|
|
|
357
441
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
358
442
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
359
443
|
artifactId?: string | null
|
|
444
|
+
activity?: string | null
|
|
445
|
+
provider?: string | null
|
|
446
|
+
model?: string | null
|
|
447
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
448
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
360
449
|
error?: string | null
|
|
361
450
|
startedAt?: Date | string
|
|
362
451
|
finishedAt?: Date | string | null
|
|
452
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
363
453
|
}
|
|
364
454
|
|
|
365
455
|
export type GenerationRunUpdateManyMutationInput = {
|
|
@@ -370,9 +460,15 @@ export type GenerationRunUpdateManyMutationInput = {
|
|
|
370
460
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
371
461
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
372
462
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
463
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
464
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
465
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
466
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
467
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
373
468
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
374
469
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
375
470
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
471
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
376
472
|
}
|
|
377
473
|
|
|
378
474
|
export type GenerationRunUncheckedUpdateManyInput = {
|
|
@@ -384,9 +480,15 @@ export type GenerationRunUncheckedUpdateManyInput = {
|
|
|
384
480
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
385
481
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
386
482
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
483
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
484
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
485
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
486
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
487
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
387
488
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
388
489
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
389
490
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
491
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
390
492
|
}
|
|
391
493
|
|
|
392
494
|
export type GenerationRunListRelationFilter = {
|
|
@@ -408,9 +510,15 @@ export type GenerationRunCountOrderByAggregateInput = {
|
|
|
408
510
|
input?: Prisma.SortOrder
|
|
409
511
|
result?: Prisma.SortOrder
|
|
410
512
|
artifactId?: Prisma.SortOrder
|
|
513
|
+
activity?: Prisma.SortOrder
|
|
514
|
+
provider?: Prisma.SortOrder
|
|
515
|
+
model?: Prisma.SortOrder
|
|
516
|
+
artifacts?: Prisma.SortOrder
|
|
517
|
+
usage?: Prisma.SortOrder
|
|
411
518
|
error?: Prisma.SortOrder
|
|
412
519
|
startedAt?: Prisma.SortOrder
|
|
413
520
|
finishedAt?: Prisma.SortOrder
|
|
521
|
+
linkedTarget?: Prisma.SortOrder
|
|
414
522
|
}
|
|
415
523
|
|
|
416
524
|
export type GenerationRunMaxOrderByAggregateInput = {
|
|
@@ -420,6 +528,9 @@ export type GenerationRunMaxOrderByAggregateInput = {
|
|
|
420
528
|
kind?: Prisma.SortOrder
|
|
421
529
|
status?: Prisma.SortOrder
|
|
422
530
|
artifactId?: Prisma.SortOrder
|
|
531
|
+
activity?: Prisma.SortOrder
|
|
532
|
+
provider?: Prisma.SortOrder
|
|
533
|
+
model?: Prisma.SortOrder
|
|
423
534
|
error?: Prisma.SortOrder
|
|
424
535
|
startedAt?: Prisma.SortOrder
|
|
425
536
|
finishedAt?: Prisma.SortOrder
|
|
@@ -432,6 +543,9 @@ export type GenerationRunMinOrderByAggregateInput = {
|
|
|
432
543
|
kind?: Prisma.SortOrder
|
|
433
544
|
status?: Prisma.SortOrder
|
|
434
545
|
artifactId?: Prisma.SortOrder
|
|
546
|
+
activity?: Prisma.SortOrder
|
|
547
|
+
provider?: Prisma.SortOrder
|
|
548
|
+
model?: Prisma.SortOrder
|
|
435
549
|
error?: Prisma.SortOrder
|
|
436
550
|
startedAt?: Prisma.SortOrder
|
|
437
551
|
finishedAt?: Prisma.SortOrder
|
|
@@ -487,9 +601,15 @@ export type GenerationRunCreateWithoutThreadInput = {
|
|
|
487
601
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
488
602
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
489
603
|
artifactId?: string | null
|
|
604
|
+
activity?: string | null
|
|
605
|
+
provider?: string | null
|
|
606
|
+
model?: string | null
|
|
607
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
608
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
490
609
|
error?: string | null
|
|
491
610
|
startedAt?: Date | string
|
|
492
611
|
finishedAt?: Date | string | null
|
|
612
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
493
613
|
}
|
|
494
614
|
|
|
495
615
|
export type GenerationRunUncheckedCreateWithoutThreadInput = {
|
|
@@ -500,9 +620,15 @@ export type GenerationRunUncheckedCreateWithoutThreadInput = {
|
|
|
500
620
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
501
621
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
502
622
|
artifactId?: string | null
|
|
623
|
+
activity?: string | null
|
|
624
|
+
provider?: string | null
|
|
625
|
+
model?: string | null
|
|
626
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
627
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
503
628
|
error?: string | null
|
|
504
629
|
startedAt?: Date | string
|
|
505
630
|
finishedAt?: Date | string | null
|
|
631
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
506
632
|
}
|
|
507
633
|
|
|
508
634
|
export type GenerationRunCreateOrConnectWithoutThreadInput = {
|
|
@@ -542,9 +668,15 @@ export type GenerationRunScalarWhereInput = {
|
|
|
542
668
|
input?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
543
669
|
result?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
544
670
|
artifactId?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
671
|
+
activity?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
672
|
+
provider?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
673
|
+
model?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
674
|
+
artifacts?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
675
|
+
usage?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
545
676
|
error?: Prisma.StringNullableFilter<"GenerationRun"> | string | null
|
|
546
677
|
startedAt?: Prisma.DateTimeFilter<"GenerationRun"> | Date | string
|
|
547
678
|
finishedAt?: Prisma.DateTimeNullableFilter<"GenerationRun"> | Date | string | null
|
|
679
|
+
linkedTarget?: Prisma.JsonNullableFilter<"GenerationRun">
|
|
548
680
|
}
|
|
549
681
|
|
|
550
682
|
export type GenerationRunCreateManyThreadInput = {
|
|
@@ -555,9 +687,15 @@ export type GenerationRunCreateManyThreadInput = {
|
|
|
555
687
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
556
688
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
557
689
|
artifactId?: string | null
|
|
690
|
+
activity?: string | null
|
|
691
|
+
provider?: string | null
|
|
692
|
+
model?: string | null
|
|
693
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
694
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
558
695
|
error?: string | null
|
|
559
696
|
startedAt?: Date | string
|
|
560
697
|
finishedAt?: Date | string | null
|
|
698
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
561
699
|
}
|
|
562
700
|
|
|
563
701
|
export type GenerationRunUpdateWithoutThreadInput = {
|
|
@@ -568,9 +706,15 @@ export type GenerationRunUpdateWithoutThreadInput = {
|
|
|
568
706
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
569
707
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
570
708
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
709
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
710
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
711
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
712
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
713
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
571
714
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
572
715
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
573
716
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
717
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
574
718
|
}
|
|
575
719
|
|
|
576
720
|
export type GenerationRunUncheckedUpdateWithoutThreadInput = {
|
|
@@ -581,9 +725,15 @@ export type GenerationRunUncheckedUpdateWithoutThreadInput = {
|
|
|
581
725
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
582
726
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
583
727
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
728
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
729
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
730
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
731
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
732
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
584
733
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
585
734
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
586
735
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
736
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
587
737
|
}
|
|
588
738
|
|
|
589
739
|
export type GenerationRunUncheckedUpdateManyWithoutThreadInput = {
|
|
@@ -594,9 +744,15 @@ export type GenerationRunUncheckedUpdateManyWithoutThreadInput = {
|
|
|
594
744
|
input?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
595
745
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
596
746
|
artifactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
747
|
+
activity?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
748
|
+
provider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
749
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
750
|
+
artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
751
|
+
usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
597
752
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
598
753
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
599
754
|
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
755
|
+
linkedTarget?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
600
756
|
}
|
|
601
757
|
|
|
602
758
|
|
|
@@ -610,9 +766,15 @@ export type GenerationRunSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
610
766
|
input?: boolean
|
|
611
767
|
result?: boolean
|
|
612
768
|
artifactId?: boolean
|
|
769
|
+
activity?: boolean
|
|
770
|
+
provider?: boolean
|
|
771
|
+
model?: boolean
|
|
772
|
+
artifacts?: boolean
|
|
773
|
+
usage?: boolean
|
|
613
774
|
error?: boolean
|
|
614
775
|
startedAt?: boolean
|
|
615
776
|
finishedAt?: boolean
|
|
777
|
+
linkedTarget?: boolean
|
|
616
778
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
617
779
|
}, ExtArgs["result"]["generationRun"]>
|
|
618
780
|
|
|
@@ -625,9 +787,15 @@ export type GenerationRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types
|
|
|
625
787
|
input?: boolean
|
|
626
788
|
result?: boolean
|
|
627
789
|
artifactId?: boolean
|
|
790
|
+
activity?: boolean
|
|
791
|
+
provider?: boolean
|
|
792
|
+
model?: boolean
|
|
793
|
+
artifacts?: boolean
|
|
794
|
+
usage?: boolean
|
|
628
795
|
error?: boolean
|
|
629
796
|
startedAt?: boolean
|
|
630
797
|
finishedAt?: boolean
|
|
798
|
+
linkedTarget?: boolean
|
|
631
799
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
632
800
|
}, ExtArgs["result"]["generationRun"]>
|
|
633
801
|
|
|
@@ -640,9 +808,15 @@ export type GenerationRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types
|
|
|
640
808
|
input?: boolean
|
|
641
809
|
result?: boolean
|
|
642
810
|
artifactId?: boolean
|
|
811
|
+
activity?: boolean
|
|
812
|
+
provider?: boolean
|
|
813
|
+
model?: boolean
|
|
814
|
+
artifacts?: boolean
|
|
815
|
+
usage?: boolean
|
|
643
816
|
error?: boolean
|
|
644
817
|
startedAt?: boolean
|
|
645
818
|
finishedAt?: boolean
|
|
819
|
+
linkedTarget?: boolean
|
|
646
820
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
647
821
|
}, ExtArgs["result"]["generationRun"]>
|
|
648
822
|
|
|
@@ -655,12 +829,18 @@ export type GenerationRunSelectScalar = {
|
|
|
655
829
|
input?: boolean
|
|
656
830
|
result?: boolean
|
|
657
831
|
artifactId?: boolean
|
|
832
|
+
activity?: boolean
|
|
833
|
+
provider?: boolean
|
|
834
|
+
model?: boolean
|
|
835
|
+
artifacts?: boolean
|
|
836
|
+
usage?: boolean
|
|
658
837
|
error?: boolean
|
|
659
838
|
startedAt?: boolean
|
|
660
839
|
finishedAt?: boolean
|
|
840
|
+
linkedTarget?: boolean
|
|
661
841
|
}
|
|
662
842
|
|
|
663
|
-
export type GenerationRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "userId" | "kind" | "status" | "input" | "result" | "artifactId" | "error" | "startedAt" | "finishedAt", ExtArgs["result"]["generationRun"]>
|
|
843
|
+
export type GenerationRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "userId" | "kind" | "status" | "input" | "result" | "artifactId" | "activity" | "provider" | "model" | "artifacts" | "usage" | "error" | "startedAt" | "finishedAt" | "linkedTarget", ExtArgs["result"]["generationRun"]>
|
|
664
844
|
export type GenerationRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
665
845
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
666
846
|
}
|
|
@@ -685,9 +865,15 @@ export type $GenerationRunPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
685
865
|
input: runtime.JsonValue | null
|
|
686
866
|
result: runtime.JsonValue | null
|
|
687
867
|
artifactId: string | null
|
|
868
|
+
activity: string | null
|
|
869
|
+
provider: string | null
|
|
870
|
+
model: string | null
|
|
871
|
+
artifacts: runtime.JsonValue | null
|
|
872
|
+
usage: runtime.JsonValue | null
|
|
688
873
|
error: string | null
|
|
689
874
|
startedAt: Date
|
|
690
875
|
finishedAt: Date | null
|
|
876
|
+
linkedTarget: runtime.JsonValue | null
|
|
691
877
|
}, ExtArgs["result"]["generationRun"]>
|
|
692
878
|
composites: {}
|
|
693
879
|
}
|
|
@@ -1120,9 +1306,15 @@ export interface GenerationRunFieldRefs {
|
|
|
1120
1306
|
readonly input: Prisma.FieldRef<"GenerationRun", 'Json'>
|
|
1121
1307
|
readonly result: Prisma.FieldRef<"GenerationRun", 'Json'>
|
|
1122
1308
|
readonly artifactId: Prisma.FieldRef<"GenerationRun", 'String'>
|
|
1309
|
+
readonly activity: Prisma.FieldRef<"GenerationRun", 'String'>
|
|
1310
|
+
readonly provider: Prisma.FieldRef<"GenerationRun", 'String'>
|
|
1311
|
+
readonly model: Prisma.FieldRef<"GenerationRun", 'String'>
|
|
1312
|
+
readonly artifacts: Prisma.FieldRef<"GenerationRun", 'Json'>
|
|
1313
|
+
readonly usage: Prisma.FieldRef<"GenerationRun", 'Json'>
|
|
1123
1314
|
readonly error: Prisma.FieldRef<"GenerationRun", 'String'>
|
|
1124
1315
|
readonly startedAt: Prisma.FieldRef<"GenerationRun", 'DateTime'>
|
|
1125
1316
|
readonly finishedAt: Prisma.FieldRef<"GenerationRun", 'DateTime'>
|
|
1317
|
+
readonly linkedTarget: Prisma.FieldRef<"GenerationRun", 'Json'>
|
|
1126
1318
|
}
|
|
1127
1319
|
|
|
1128
1320
|
|