@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
|
@@ -28,8 +28,8 @@ export type ChatMessageMinAggregateOutputType = {
|
|
|
28
28
|
id: string | null
|
|
29
29
|
threadId: string | null
|
|
30
30
|
role: string | null
|
|
31
|
-
content: string | null
|
|
32
31
|
thinking: string | null
|
|
32
|
+
toolCallId: string | null
|
|
33
33
|
createdAt: Date | null
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -37,8 +37,8 @@ export type ChatMessageMaxAggregateOutputType = {
|
|
|
37
37
|
id: string | null
|
|
38
38
|
threadId: string | null
|
|
39
39
|
role: string | null
|
|
40
|
-
content: string | null
|
|
41
40
|
thinking: string | null
|
|
41
|
+
toolCallId: string | null
|
|
42
42
|
createdAt: Date | null
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -50,6 +50,7 @@ export type ChatMessageCountAggregateOutputType = {
|
|
|
50
50
|
parts: number
|
|
51
51
|
thinking: number
|
|
52
52
|
citations: number
|
|
53
|
+
toolCallId: number
|
|
53
54
|
createdAt: number
|
|
54
55
|
_all: number
|
|
55
56
|
}
|
|
@@ -59,8 +60,8 @@ export type ChatMessageMinAggregateInputType = {
|
|
|
59
60
|
id?: true
|
|
60
61
|
threadId?: true
|
|
61
62
|
role?: true
|
|
62
|
-
content?: true
|
|
63
63
|
thinking?: true
|
|
64
|
+
toolCallId?: true
|
|
64
65
|
createdAt?: true
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -68,8 +69,8 @@ export type ChatMessageMaxAggregateInputType = {
|
|
|
68
69
|
id?: true
|
|
69
70
|
threadId?: true
|
|
70
71
|
role?: true
|
|
71
|
-
content?: true
|
|
72
72
|
thinking?: true
|
|
73
|
+
toolCallId?: true
|
|
73
74
|
createdAt?: true
|
|
74
75
|
}
|
|
75
76
|
|
|
@@ -81,6 +82,7 @@ export type ChatMessageCountAggregateInputType = {
|
|
|
81
82
|
parts?: true
|
|
82
83
|
thinking?: true
|
|
83
84
|
citations?: true
|
|
85
|
+
toolCallId?: true
|
|
84
86
|
createdAt?: true
|
|
85
87
|
_all?: true
|
|
86
88
|
}
|
|
@@ -161,10 +163,11 @@ export type ChatMessageGroupByOutputType = {
|
|
|
161
163
|
id: string
|
|
162
164
|
threadId: string
|
|
163
165
|
role: string
|
|
164
|
-
content:
|
|
166
|
+
content: runtime.JsonValue | null
|
|
165
167
|
parts: runtime.JsonValue | null
|
|
166
168
|
thinking: string | null
|
|
167
169
|
citations: runtime.JsonValue | null
|
|
170
|
+
toolCallId: string | null
|
|
168
171
|
createdAt: Date
|
|
169
172
|
_count: ChatMessageCountAggregateOutputType | null
|
|
170
173
|
_min: ChatMessageMinAggregateOutputType | null
|
|
@@ -193,10 +196,11 @@ export type ChatMessageWhereInput = {
|
|
|
193
196
|
id?: Prisma.StringFilter<"ChatMessage"> | string
|
|
194
197
|
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
195
198
|
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
196
|
-
content?: Prisma.
|
|
199
|
+
content?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
197
200
|
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
198
201
|
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
199
202
|
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
203
|
+
toolCallId?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
200
204
|
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
201
205
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
202
206
|
}
|
|
@@ -205,10 +209,11 @@ export type ChatMessageOrderByWithRelationInput = {
|
|
|
205
209
|
id?: Prisma.SortOrder
|
|
206
210
|
threadId?: Prisma.SortOrder
|
|
207
211
|
role?: Prisma.SortOrder
|
|
208
|
-
content?: Prisma.SortOrder
|
|
212
|
+
content?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
209
213
|
parts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
210
214
|
thinking?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
211
215
|
citations?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
216
|
+
toolCallId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
212
217
|
createdAt?: Prisma.SortOrder
|
|
213
218
|
thread?: Prisma.ChatThreadOrderByWithRelationInput
|
|
214
219
|
}
|
|
@@ -220,10 +225,11 @@ export type ChatMessageWhereUniqueInput = Prisma.AtLeast<{
|
|
|
220
225
|
NOT?: Prisma.ChatMessageWhereInput | Prisma.ChatMessageWhereInput[]
|
|
221
226
|
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
222
227
|
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
223
|
-
content?: Prisma.
|
|
228
|
+
content?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
224
229
|
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
225
230
|
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
226
231
|
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
232
|
+
toolCallId?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
227
233
|
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
228
234
|
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
229
235
|
}, "id">
|
|
@@ -232,10 +238,11 @@ export type ChatMessageOrderByWithAggregationInput = {
|
|
|
232
238
|
id?: Prisma.SortOrder
|
|
233
239
|
threadId?: Prisma.SortOrder
|
|
234
240
|
role?: Prisma.SortOrder
|
|
235
|
-
content?: Prisma.SortOrder
|
|
241
|
+
content?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
236
242
|
parts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
237
243
|
thinking?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
238
244
|
citations?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
245
|
+
toolCallId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
239
246
|
createdAt?: Prisma.SortOrder
|
|
240
247
|
_count?: Prisma.ChatMessageCountOrderByAggregateInput
|
|
241
248
|
_max?: Prisma.ChatMessageMaxOrderByAggregateInput
|
|
@@ -249,20 +256,22 @@ export type ChatMessageScalarWhereWithAggregatesInput = {
|
|
|
249
256
|
id?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
250
257
|
threadId?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
251
258
|
role?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
252
|
-
content?: Prisma.
|
|
259
|
+
content?: Prisma.JsonNullableWithAggregatesFilter<"ChatMessage">
|
|
253
260
|
parts?: Prisma.JsonNullableWithAggregatesFilter<"ChatMessage">
|
|
254
261
|
thinking?: Prisma.StringNullableWithAggregatesFilter<"ChatMessage"> | string | null
|
|
255
262
|
citations?: Prisma.JsonNullableWithAggregatesFilter<"ChatMessage">
|
|
263
|
+
toolCallId?: Prisma.StringNullableWithAggregatesFilter<"ChatMessage"> | string | null
|
|
256
264
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ChatMessage"> | Date | string
|
|
257
265
|
}
|
|
258
266
|
|
|
259
267
|
export type ChatMessageCreateInput = {
|
|
260
268
|
id?: string
|
|
261
269
|
role: string
|
|
262
|
-
content
|
|
270
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
263
271
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
264
272
|
thinking?: string | null
|
|
265
273
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
274
|
+
toolCallId?: string | null
|
|
266
275
|
createdAt?: Date | string
|
|
267
276
|
thread: Prisma.ChatThreadCreateNestedOneWithoutMessagesInput
|
|
268
277
|
}
|
|
@@ -271,20 +280,22 @@ export type ChatMessageUncheckedCreateInput = {
|
|
|
271
280
|
id?: string
|
|
272
281
|
threadId: string
|
|
273
282
|
role: string
|
|
274
|
-
content
|
|
283
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
275
284
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
276
285
|
thinking?: string | null
|
|
277
286
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
287
|
+
toolCallId?: string | null
|
|
278
288
|
createdAt?: Date | string
|
|
279
289
|
}
|
|
280
290
|
|
|
281
291
|
export type ChatMessageUpdateInput = {
|
|
282
292
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
283
293
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
284
|
-
content?: Prisma.
|
|
294
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
285
295
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
286
296
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
287
297
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
298
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
288
299
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
289
300
|
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutMessagesNestedInput
|
|
290
301
|
}
|
|
@@ -293,10 +304,11 @@ export type ChatMessageUncheckedUpdateInput = {
|
|
|
293
304
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
294
305
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
295
306
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
296
|
-
content?: Prisma.
|
|
307
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
297
308
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
298
309
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
299
310
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
311
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
300
312
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
301
313
|
}
|
|
302
314
|
|
|
@@ -304,20 +316,22 @@ export type ChatMessageCreateManyInput = {
|
|
|
304
316
|
id?: string
|
|
305
317
|
threadId: string
|
|
306
318
|
role: string
|
|
307
|
-
content
|
|
319
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
308
320
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
309
321
|
thinking?: string | null
|
|
310
322
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
323
|
+
toolCallId?: string | null
|
|
311
324
|
createdAt?: Date | string
|
|
312
325
|
}
|
|
313
326
|
|
|
314
327
|
export type ChatMessageUpdateManyMutationInput = {
|
|
315
328
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
316
329
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
317
|
-
content?: Prisma.
|
|
330
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
318
331
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
319
332
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
320
333
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
334
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
321
335
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
322
336
|
}
|
|
323
337
|
|
|
@@ -325,10 +339,11 @@ export type ChatMessageUncheckedUpdateManyInput = {
|
|
|
325
339
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
326
340
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
327
341
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
328
|
-
content?: Prisma.
|
|
342
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
329
343
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
330
344
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
331
345
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
346
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
332
347
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
333
348
|
}
|
|
334
349
|
|
|
@@ -350,6 +365,7 @@ export type ChatMessageCountOrderByAggregateInput = {
|
|
|
350
365
|
parts?: Prisma.SortOrder
|
|
351
366
|
thinking?: Prisma.SortOrder
|
|
352
367
|
citations?: Prisma.SortOrder
|
|
368
|
+
toolCallId?: Prisma.SortOrder
|
|
353
369
|
createdAt?: Prisma.SortOrder
|
|
354
370
|
}
|
|
355
371
|
|
|
@@ -357,8 +373,8 @@ export type ChatMessageMaxOrderByAggregateInput = {
|
|
|
357
373
|
id?: Prisma.SortOrder
|
|
358
374
|
threadId?: Prisma.SortOrder
|
|
359
375
|
role?: Prisma.SortOrder
|
|
360
|
-
content?: Prisma.SortOrder
|
|
361
376
|
thinking?: Prisma.SortOrder
|
|
377
|
+
toolCallId?: Prisma.SortOrder
|
|
362
378
|
createdAt?: Prisma.SortOrder
|
|
363
379
|
}
|
|
364
380
|
|
|
@@ -366,8 +382,8 @@ export type ChatMessageMinOrderByAggregateInput = {
|
|
|
366
382
|
id?: Prisma.SortOrder
|
|
367
383
|
threadId?: Prisma.SortOrder
|
|
368
384
|
role?: Prisma.SortOrder
|
|
369
|
-
content?: Prisma.SortOrder
|
|
370
385
|
thinking?: Prisma.SortOrder
|
|
386
|
+
toolCallId?: Prisma.SortOrder
|
|
371
387
|
createdAt?: Prisma.SortOrder
|
|
372
388
|
}
|
|
373
389
|
|
|
@@ -416,20 +432,22 @@ export type ChatMessageUncheckedUpdateManyWithoutThreadNestedInput = {
|
|
|
416
432
|
export type ChatMessageCreateWithoutThreadInput = {
|
|
417
433
|
id?: string
|
|
418
434
|
role: string
|
|
419
|
-
content
|
|
435
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
420
436
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
421
437
|
thinking?: string | null
|
|
422
438
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
439
|
+
toolCallId?: string | null
|
|
423
440
|
createdAt?: Date | string
|
|
424
441
|
}
|
|
425
442
|
|
|
426
443
|
export type ChatMessageUncheckedCreateWithoutThreadInput = {
|
|
427
444
|
id?: string
|
|
428
445
|
role: string
|
|
429
|
-
content
|
|
446
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
430
447
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
431
448
|
thinking?: string | null
|
|
432
449
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
450
|
+
toolCallId?: string | null
|
|
433
451
|
createdAt?: Date | string
|
|
434
452
|
}
|
|
435
453
|
|
|
@@ -465,50 +483,55 @@ export type ChatMessageScalarWhereInput = {
|
|
|
465
483
|
id?: Prisma.StringFilter<"ChatMessage"> | string
|
|
466
484
|
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
467
485
|
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
468
|
-
content?: Prisma.
|
|
486
|
+
content?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
469
487
|
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
470
488
|
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
471
489
|
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
490
|
+
toolCallId?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
472
491
|
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
473
492
|
}
|
|
474
493
|
|
|
475
494
|
export type ChatMessageCreateManyThreadInput = {
|
|
476
495
|
id?: string
|
|
477
496
|
role: string
|
|
478
|
-
content
|
|
497
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
479
498
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
480
499
|
thinking?: string | null
|
|
481
500
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
501
|
+
toolCallId?: string | null
|
|
482
502
|
createdAt?: Date | string
|
|
483
503
|
}
|
|
484
504
|
|
|
485
505
|
export type ChatMessageUpdateWithoutThreadInput = {
|
|
486
506
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
487
507
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
488
|
-
content?: Prisma.
|
|
508
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
489
509
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
490
510
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
491
511
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
512
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
492
513
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
493
514
|
}
|
|
494
515
|
|
|
495
516
|
export type ChatMessageUncheckedUpdateWithoutThreadInput = {
|
|
496
517
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
497
518
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
498
|
-
content?: Prisma.
|
|
519
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
499
520
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
500
521
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
501
522
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
523
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
502
524
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
503
525
|
}
|
|
504
526
|
|
|
505
527
|
export type ChatMessageUncheckedUpdateManyWithoutThreadInput = {
|
|
506
528
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
507
529
|
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
508
|
-
content?: Prisma.
|
|
530
|
+
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
509
531
|
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
510
532
|
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
511
533
|
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
534
|
+
toolCallId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
512
535
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
513
536
|
}
|
|
514
537
|
|
|
@@ -522,6 +545,7 @@ export type ChatMessageSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
522
545
|
parts?: boolean
|
|
523
546
|
thinking?: boolean
|
|
524
547
|
citations?: boolean
|
|
548
|
+
toolCallId?: boolean
|
|
525
549
|
createdAt?: boolean
|
|
526
550
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
527
551
|
}, ExtArgs["result"]["chatMessage"]>
|
|
@@ -534,6 +558,7 @@ export type ChatMessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
534
558
|
parts?: boolean
|
|
535
559
|
thinking?: boolean
|
|
536
560
|
citations?: boolean
|
|
561
|
+
toolCallId?: boolean
|
|
537
562
|
createdAt?: boolean
|
|
538
563
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
539
564
|
}, ExtArgs["result"]["chatMessage"]>
|
|
@@ -546,6 +571,7 @@ export type ChatMessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
546
571
|
parts?: boolean
|
|
547
572
|
thinking?: boolean
|
|
548
573
|
citations?: boolean
|
|
574
|
+
toolCallId?: boolean
|
|
549
575
|
createdAt?: boolean
|
|
550
576
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
551
577
|
}, ExtArgs["result"]["chatMessage"]>
|
|
@@ -558,10 +584,11 @@ export type ChatMessageSelectScalar = {
|
|
|
558
584
|
parts?: boolean
|
|
559
585
|
thinking?: boolean
|
|
560
586
|
citations?: boolean
|
|
587
|
+
toolCallId?: boolean
|
|
561
588
|
createdAt?: boolean
|
|
562
589
|
}
|
|
563
590
|
|
|
564
|
-
export type ChatMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "role" | "content" | "parts" | "thinking" | "citations" | "createdAt", ExtArgs["result"]["chatMessage"]>
|
|
591
|
+
export type ChatMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "role" | "content" | "parts" | "thinking" | "citations" | "toolCallId" | "createdAt", ExtArgs["result"]["chatMessage"]>
|
|
565
592
|
export type ChatMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
566
593
|
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
567
594
|
}
|
|
@@ -581,10 +608,11 @@ export type $ChatMessagePayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
581
608
|
id: string
|
|
582
609
|
threadId: string
|
|
583
610
|
role: string
|
|
584
|
-
content:
|
|
611
|
+
content: runtime.JsonValue | null
|
|
585
612
|
parts: runtime.JsonValue | null
|
|
586
613
|
thinking: string | null
|
|
587
614
|
citations: runtime.JsonValue | null
|
|
615
|
+
toolCallId: string | null
|
|
588
616
|
createdAt: Date
|
|
589
617
|
}, ExtArgs["result"]["chatMessage"]>
|
|
590
618
|
composites: {}
|
|
@@ -1013,10 +1041,11 @@ export interface ChatMessageFieldRefs {
|
|
|
1013
1041
|
readonly id: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1014
1042
|
readonly threadId: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1015
1043
|
readonly role: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1016
|
-
readonly content: Prisma.FieldRef<"ChatMessage", '
|
|
1044
|
+
readonly content: Prisma.FieldRef<"ChatMessage", 'Json'>
|
|
1017
1045
|
readonly parts: Prisma.FieldRef<"ChatMessage", 'Json'>
|
|
1018
1046
|
readonly thinking: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1019
1047
|
readonly citations: Prisma.FieldRef<"ChatMessage", 'Json'>
|
|
1048
|
+
readonly toolCallId: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1020
1049
|
readonly createdAt: Prisma.FieldRef<"ChatMessage", 'DateTime'>
|
|
1021
1050
|
}
|
|
1022
1051
|
|