@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
|
@@ -29,9 +29,11 @@ export type ChatThreadMinAggregateOutputType = {
|
|
|
29
29
|
userId: string | null
|
|
30
30
|
title: string | null
|
|
31
31
|
isArchived: boolean | null
|
|
32
|
+
sandboxPolicy: string | null
|
|
32
33
|
createdAt: Date | null
|
|
33
34
|
updatedAt: Date | null
|
|
34
35
|
agentId: string | null
|
|
36
|
+
workspaceId: string | null
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
export type ChatThreadMaxAggregateOutputType = {
|
|
@@ -39,9 +41,11 @@ export type ChatThreadMaxAggregateOutputType = {
|
|
|
39
41
|
userId: string | null
|
|
40
42
|
title: string | null
|
|
41
43
|
isArchived: boolean | null
|
|
44
|
+
sandboxPolicy: string | null
|
|
42
45
|
createdAt: Date | null
|
|
43
46
|
updatedAt: Date | null
|
|
44
47
|
agentId: string | null
|
|
48
|
+
workspaceId: string | null
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
export type ChatThreadCountAggregateOutputType = {
|
|
@@ -49,9 +53,11 @@ export type ChatThreadCountAggregateOutputType = {
|
|
|
49
53
|
userId: number
|
|
50
54
|
title: number
|
|
51
55
|
isArchived: number
|
|
56
|
+
sandboxPolicy: number
|
|
52
57
|
createdAt: number
|
|
53
58
|
updatedAt: number
|
|
54
59
|
agentId: number
|
|
60
|
+
workspaceId: number
|
|
55
61
|
_all: number
|
|
56
62
|
}
|
|
57
63
|
|
|
@@ -61,9 +67,11 @@ export type ChatThreadMinAggregateInputType = {
|
|
|
61
67
|
userId?: true
|
|
62
68
|
title?: true
|
|
63
69
|
isArchived?: true
|
|
70
|
+
sandboxPolicy?: true
|
|
64
71
|
createdAt?: true
|
|
65
72
|
updatedAt?: true
|
|
66
73
|
agentId?: true
|
|
74
|
+
workspaceId?: true
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
export type ChatThreadMaxAggregateInputType = {
|
|
@@ -71,9 +79,11 @@ export type ChatThreadMaxAggregateInputType = {
|
|
|
71
79
|
userId?: true
|
|
72
80
|
title?: true
|
|
73
81
|
isArchived?: true
|
|
82
|
+
sandboxPolicy?: true
|
|
74
83
|
createdAt?: true
|
|
75
84
|
updatedAt?: true
|
|
76
85
|
agentId?: true
|
|
86
|
+
workspaceId?: true
|
|
77
87
|
}
|
|
78
88
|
|
|
79
89
|
export type ChatThreadCountAggregateInputType = {
|
|
@@ -81,9 +91,11 @@ export type ChatThreadCountAggregateInputType = {
|
|
|
81
91
|
userId?: true
|
|
82
92
|
title?: true
|
|
83
93
|
isArchived?: true
|
|
94
|
+
sandboxPolicy?: true
|
|
84
95
|
createdAt?: true
|
|
85
96
|
updatedAt?: true
|
|
86
97
|
agentId?: true
|
|
98
|
+
workspaceId?: true
|
|
87
99
|
_all?: true
|
|
88
100
|
}
|
|
89
101
|
|
|
@@ -164,9 +176,11 @@ export type ChatThreadGroupByOutputType = {
|
|
|
164
176
|
userId: string
|
|
165
177
|
title: string | null
|
|
166
178
|
isArchived: boolean
|
|
179
|
+
sandboxPolicy: string
|
|
167
180
|
createdAt: Date
|
|
168
181
|
updatedAt: Date
|
|
169
182
|
agentId: string | null
|
|
183
|
+
workspaceId: string | null
|
|
170
184
|
_count: ChatThreadCountAggregateOutputType | null
|
|
171
185
|
_min: ChatThreadMinAggregateOutputType | null
|
|
172
186
|
_max: ChatThreadMaxAggregateOutputType | null
|
|
@@ -195,15 +209,18 @@ export type ChatThreadWhereInput = {
|
|
|
195
209
|
userId?: Prisma.StringFilter<"ChatThread"> | string
|
|
196
210
|
title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
197
211
|
isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
|
|
212
|
+
sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
|
|
198
213
|
createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
199
214
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
200
215
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
216
|
+
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
201
217
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
202
218
|
messages?: Prisma.ChatMessageListRelationFilter
|
|
203
219
|
runs?: Prisma.ChatRunListRelationFilter
|
|
204
220
|
interrupts?: Prisma.ChatInterruptListRelationFilter
|
|
205
221
|
generations?: Prisma.GenerationRunListRelationFilter
|
|
206
222
|
agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
|
|
223
|
+
workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
|
|
207
224
|
}
|
|
208
225
|
|
|
209
226
|
export type ChatThreadOrderByWithRelationInput = {
|
|
@@ -211,15 +228,18 @@ export type ChatThreadOrderByWithRelationInput = {
|
|
|
211
228
|
userId?: Prisma.SortOrder
|
|
212
229
|
title?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
213
230
|
isArchived?: Prisma.SortOrder
|
|
231
|
+
sandboxPolicy?: Prisma.SortOrder
|
|
214
232
|
createdAt?: Prisma.SortOrder
|
|
215
233
|
updatedAt?: Prisma.SortOrder
|
|
216
234
|
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
235
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
217
236
|
user?: Prisma.UserOrderByWithRelationInput
|
|
218
237
|
messages?: Prisma.ChatMessageOrderByRelationAggregateInput
|
|
219
238
|
runs?: Prisma.ChatRunOrderByRelationAggregateInput
|
|
220
239
|
interrupts?: Prisma.ChatInterruptOrderByRelationAggregateInput
|
|
221
240
|
generations?: Prisma.GenerationRunOrderByRelationAggregateInput
|
|
222
241
|
agent?: Prisma.UserAgentOrderByWithRelationInput
|
|
242
|
+
workspace?: Prisma.HarnessWorkspaceOrderByWithRelationInput
|
|
223
243
|
}
|
|
224
244
|
|
|
225
245
|
export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -230,15 +250,18 @@ export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
|
|
|
230
250
|
userId?: Prisma.StringFilter<"ChatThread"> | string
|
|
231
251
|
title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
232
252
|
isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
|
|
253
|
+
sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
|
|
233
254
|
createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
234
255
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
235
256
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
257
|
+
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
236
258
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
237
259
|
messages?: Prisma.ChatMessageListRelationFilter
|
|
238
260
|
runs?: Prisma.ChatRunListRelationFilter
|
|
239
261
|
interrupts?: Prisma.ChatInterruptListRelationFilter
|
|
240
262
|
generations?: Prisma.GenerationRunListRelationFilter
|
|
241
263
|
agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
|
|
264
|
+
workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
|
|
242
265
|
}, "id">
|
|
243
266
|
|
|
244
267
|
export type ChatThreadOrderByWithAggregationInput = {
|
|
@@ -246,9 +269,11 @@ export type ChatThreadOrderByWithAggregationInput = {
|
|
|
246
269
|
userId?: Prisma.SortOrder
|
|
247
270
|
title?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
248
271
|
isArchived?: Prisma.SortOrder
|
|
272
|
+
sandboxPolicy?: Prisma.SortOrder
|
|
249
273
|
createdAt?: Prisma.SortOrder
|
|
250
274
|
updatedAt?: Prisma.SortOrder
|
|
251
275
|
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
276
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
252
277
|
_count?: Prisma.ChatThreadCountOrderByAggregateInput
|
|
253
278
|
_max?: Prisma.ChatThreadMaxOrderByAggregateInput
|
|
254
279
|
_min?: Prisma.ChatThreadMinOrderByAggregateInput
|
|
@@ -262,15 +287,18 @@ export type ChatThreadScalarWhereWithAggregatesInput = {
|
|
|
262
287
|
userId?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
|
|
263
288
|
title?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
264
289
|
isArchived?: Prisma.BoolWithAggregatesFilter<"ChatThread"> | boolean
|
|
290
|
+
sandboxPolicy?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
|
|
265
291
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
|
|
266
292
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
|
|
267
293
|
agentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
294
|
+
workspaceId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
|
|
268
295
|
}
|
|
269
296
|
|
|
270
297
|
export type ChatThreadCreateInput = {
|
|
271
298
|
id?: string
|
|
272
299
|
title?: string | null
|
|
273
300
|
isArchived?: boolean
|
|
301
|
+
sandboxPolicy?: string
|
|
274
302
|
createdAt?: Date | string
|
|
275
303
|
updatedAt?: Date | string
|
|
276
304
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -279,6 +307,7 @@ export type ChatThreadCreateInput = {
|
|
|
279
307
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
280
308
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
281
309
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
310
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
282
311
|
}
|
|
283
312
|
|
|
284
313
|
export type ChatThreadUncheckedCreateInput = {
|
|
@@ -286,9 +315,11 @@ export type ChatThreadUncheckedCreateInput = {
|
|
|
286
315
|
userId: string
|
|
287
316
|
title?: string | null
|
|
288
317
|
isArchived?: boolean
|
|
318
|
+
sandboxPolicy?: string
|
|
289
319
|
createdAt?: Date | string
|
|
290
320
|
updatedAt?: Date | string
|
|
291
321
|
agentId?: string | null
|
|
322
|
+
workspaceId?: string | null
|
|
292
323
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
293
324
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
294
325
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -299,6 +330,7 @@ export type ChatThreadUpdateInput = {
|
|
|
299
330
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
300
331
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
301
332
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
333
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
302
334
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
303
335
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
304
336
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -307,6 +339,7 @@ export type ChatThreadUpdateInput = {
|
|
|
307
339
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
308
340
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
309
341
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
342
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
310
343
|
}
|
|
311
344
|
|
|
312
345
|
export type ChatThreadUncheckedUpdateInput = {
|
|
@@ -314,9 +347,11 @@ export type ChatThreadUncheckedUpdateInput = {
|
|
|
314
347
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
315
348
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
316
349
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
350
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
317
351
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
318
352
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
319
353
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
354
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
320
355
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
321
356
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
322
357
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -328,15 +363,18 @@ export type ChatThreadCreateManyInput = {
|
|
|
328
363
|
userId: string
|
|
329
364
|
title?: string | null
|
|
330
365
|
isArchived?: boolean
|
|
366
|
+
sandboxPolicy?: string
|
|
331
367
|
createdAt?: Date | string
|
|
332
368
|
updatedAt?: Date | string
|
|
333
369
|
agentId?: string | null
|
|
370
|
+
workspaceId?: string | null
|
|
334
371
|
}
|
|
335
372
|
|
|
336
373
|
export type ChatThreadUpdateManyMutationInput = {
|
|
337
374
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
338
375
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
339
376
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
377
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
340
378
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
341
379
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
342
380
|
}
|
|
@@ -346,9 +384,11 @@ export type ChatThreadUncheckedUpdateManyInput = {
|
|
|
346
384
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
347
385
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
348
386
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
387
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
349
388
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
350
389
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
351
390
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
391
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
352
392
|
}
|
|
353
393
|
|
|
354
394
|
export type ChatThreadListRelationFilter = {
|
|
@@ -366,9 +406,11 @@ export type ChatThreadCountOrderByAggregateInput = {
|
|
|
366
406
|
userId?: Prisma.SortOrder
|
|
367
407
|
title?: Prisma.SortOrder
|
|
368
408
|
isArchived?: Prisma.SortOrder
|
|
409
|
+
sandboxPolicy?: Prisma.SortOrder
|
|
369
410
|
createdAt?: Prisma.SortOrder
|
|
370
411
|
updatedAt?: Prisma.SortOrder
|
|
371
412
|
agentId?: Prisma.SortOrder
|
|
413
|
+
workspaceId?: Prisma.SortOrder
|
|
372
414
|
}
|
|
373
415
|
|
|
374
416
|
export type ChatThreadMaxOrderByAggregateInput = {
|
|
@@ -376,9 +418,11 @@ export type ChatThreadMaxOrderByAggregateInput = {
|
|
|
376
418
|
userId?: Prisma.SortOrder
|
|
377
419
|
title?: Prisma.SortOrder
|
|
378
420
|
isArchived?: Prisma.SortOrder
|
|
421
|
+
sandboxPolicy?: Prisma.SortOrder
|
|
379
422
|
createdAt?: Prisma.SortOrder
|
|
380
423
|
updatedAt?: Prisma.SortOrder
|
|
381
424
|
agentId?: Prisma.SortOrder
|
|
425
|
+
workspaceId?: Prisma.SortOrder
|
|
382
426
|
}
|
|
383
427
|
|
|
384
428
|
export type ChatThreadMinOrderByAggregateInput = {
|
|
@@ -386,9 +430,11 @@ export type ChatThreadMinOrderByAggregateInput = {
|
|
|
386
430
|
userId?: Prisma.SortOrder
|
|
387
431
|
title?: Prisma.SortOrder
|
|
388
432
|
isArchived?: Prisma.SortOrder
|
|
433
|
+
sandboxPolicy?: Prisma.SortOrder
|
|
389
434
|
createdAt?: Prisma.SortOrder
|
|
390
435
|
updatedAt?: Prisma.SortOrder
|
|
391
436
|
agentId?: Prisma.SortOrder
|
|
437
|
+
workspaceId?: Prisma.SortOrder
|
|
392
438
|
}
|
|
393
439
|
|
|
394
440
|
export type ChatThreadScalarRelationFilter = {
|
|
@@ -536,10 +582,53 @@ export type ChatThreadUncheckedUpdateManyWithoutAgentNestedInput = {
|
|
|
536
582
|
deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
|
|
537
583
|
}
|
|
538
584
|
|
|
585
|
+
export type ChatThreadCreateNestedManyWithoutWorkspaceInput = {
|
|
586
|
+
create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput> | Prisma.ChatThreadCreateWithoutWorkspaceInput[] | Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput[]
|
|
587
|
+
connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput | Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput[]
|
|
588
|
+
createMany?: Prisma.ChatThreadCreateManyWorkspaceInputEnvelope
|
|
589
|
+
connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export type ChatThreadUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
593
|
+
create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput> | Prisma.ChatThreadCreateWithoutWorkspaceInput[] | Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput[]
|
|
594
|
+
connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput | Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput[]
|
|
595
|
+
createMany?: Prisma.ChatThreadCreateManyWorkspaceInputEnvelope
|
|
596
|
+
connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export type ChatThreadUpdateManyWithoutWorkspaceNestedInput = {
|
|
600
|
+
create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput> | Prisma.ChatThreadCreateWithoutWorkspaceInput[] | Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput[]
|
|
601
|
+
connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput | Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput[]
|
|
602
|
+
upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
603
|
+
createMany?: Prisma.ChatThreadCreateManyWorkspaceInputEnvelope
|
|
604
|
+
set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
605
|
+
disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
606
|
+
delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
607
|
+
connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
608
|
+
update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
609
|
+
updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ChatThreadUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
610
|
+
deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export type ChatThreadUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
614
|
+
create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput> | Prisma.ChatThreadCreateWithoutWorkspaceInput[] | Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput[]
|
|
615
|
+
connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput | Prisma.ChatThreadCreateOrConnectWithoutWorkspaceInput[]
|
|
616
|
+
upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
617
|
+
createMany?: Prisma.ChatThreadCreateManyWorkspaceInputEnvelope
|
|
618
|
+
set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
619
|
+
disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
620
|
+
delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
621
|
+
connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
|
|
622
|
+
update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
623
|
+
updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ChatThreadUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
624
|
+
deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
|
|
625
|
+
}
|
|
626
|
+
|
|
539
627
|
export type ChatThreadCreateWithoutUserInput = {
|
|
540
628
|
id?: string
|
|
541
629
|
title?: string | null
|
|
542
630
|
isArchived?: boolean
|
|
631
|
+
sandboxPolicy?: string
|
|
543
632
|
createdAt?: Date | string
|
|
544
633
|
updatedAt?: Date | string
|
|
545
634
|
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
@@ -547,15 +636,18 @@ export type ChatThreadCreateWithoutUserInput = {
|
|
|
547
636
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
548
637
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
549
638
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
639
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
550
640
|
}
|
|
551
641
|
|
|
552
642
|
export type ChatThreadUncheckedCreateWithoutUserInput = {
|
|
553
643
|
id?: string
|
|
554
644
|
title?: string | null
|
|
555
645
|
isArchived?: boolean
|
|
646
|
+
sandboxPolicy?: string
|
|
556
647
|
createdAt?: Date | string
|
|
557
648
|
updatedAt?: Date | string
|
|
558
649
|
agentId?: string | null
|
|
650
|
+
workspaceId?: string | null
|
|
559
651
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
560
652
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
561
653
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -596,15 +688,18 @@ export type ChatThreadScalarWhereInput = {
|
|
|
596
688
|
userId?: Prisma.StringFilter<"ChatThread"> | string
|
|
597
689
|
title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
598
690
|
isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
|
|
691
|
+
sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
|
|
599
692
|
createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
600
693
|
updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
|
|
601
694
|
agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
695
|
+
workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
|
|
602
696
|
}
|
|
603
697
|
|
|
604
698
|
export type ChatThreadCreateWithoutMessagesInput = {
|
|
605
699
|
id?: string
|
|
606
700
|
title?: string | null
|
|
607
701
|
isArchived?: boolean
|
|
702
|
+
sandboxPolicy?: string
|
|
608
703
|
createdAt?: Date | string
|
|
609
704
|
updatedAt?: Date | string
|
|
610
705
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -612,6 +707,7 @@ export type ChatThreadCreateWithoutMessagesInput = {
|
|
|
612
707
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
613
708
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
614
709
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
710
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
615
711
|
}
|
|
616
712
|
|
|
617
713
|
export type ChatThreadUncheckedCreateWithoutMessagesInput = {
|
|
@@ -619,9 +715,11 @@ export type ChatThreadUncheckedCreateWithoutMessagesInput = {
|
|
|
619
715
|
userId: string
|
|
620
716
|
title?: string | null
|
|
621
717
|
isArchived?: boolean
|
|
718
|
+
sandboxPolicy?: string
|
|
622
719
|
createdAt?: Date | string
|
|
623
720
|
updatedAt?: Date | string
|
|
624
721
|
agentId?: string | null
|
|
722
|
+
workspaceId?: string | null
|
|
625
723
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
626
724
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
627
725
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -647,6 +745,7 @@ export type ChatThreadUpdateWithoutMessagesInput = {
|
|
|
647
745
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
648
746
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
649
747
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
748
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
650
749
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
651
750
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
652
751
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -654,6 +753,7 @@ export type ChatThreadUpdateWithoutMessagesInput = {
|
|
|
654
753
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
655
754
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
656
755
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
756
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
657
757
|
}
|
|
658
758
|
|
|
659
759
|
export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
|
|
@@ -661,9 +761,11 @@ export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
|
|
|
661
761
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
662
762
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
663
763
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
764
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
664
765
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
665
766
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
666
767
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
768
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
667
769
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
668
770
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
669
771
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -673,6 +775,7 @@ export type ChatThreadCreateWithoutRunsInput = {
|
|
|
673
775
|
id?: string
|
|
674
776
|
title?: string | null
|
|
675
777
|
isArchived?: boolean
|
|
778
|
+
sandboxPolicy?: string
|
|
676
779
|
createdAt?: Date | string
|
|
677
780
|
updatedAt?: Date | string
|
|
678
781
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -680,6 +783,7 @@ export type ChatThreadCreateWithoutRunsInput = {
|
|
|
680
783
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
681
784
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
682
785
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
786
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
683
787
|
}
|
|
684
788
|
|
|
685
789
|
export type ChatThreadUncheckedCreateWithoutRunsInput = {
|
|
@@ -687,9 +791,11 @@ export type ChatThreadUncheckedCreateWithoutRunsInput = {
|
|
|
687
791
|
userId: string
|
|
688
792
|
title?: string | null
|
|
689
793
|
isArchived?: boolean
|
|
794
|
+
sandboxPolicy?: string
|
|
690
795
|
createdAt?: Date | string
|
|
691
796
|
updatedAt?: Date | string
|
|
692
797
|
agentId?: string | null
|
|
798
|
+
workspaceId?: string | null
|
|
693
799
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
694
800
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
695
801
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -715,6 +821,7 @@ export type ChatThreadUpdateWithoutRunsInput = {
|
|
|
715
821
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
716
822
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
717
823
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
824
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
718
825
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
719
826
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
720
827
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -722,6 +829,7 @@ export type ChatThreadUpdateWithoutRunsInput = {
|
|
|
722
829
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
723
830
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
724
831
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
832
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
725
833
|
}
|
|
726
834
|
|
|
727
835
|
export type ChatThreadUncheckedUpdateWithoutRunsInput = {
|
|
@@ -729,9 +837,11 @@ export type ChatThreadUncheckedUpdateWithoutRunsInput = {
|
|
|
729
837
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
730
838
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
731
839
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
840
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
732
841
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
733
842
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
734
843
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
844
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
735
845
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
736
846
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
737
847
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -741,6 +851,7 @@ export type ChatThreadCreateWithoutInterruptsInput = {
|
|
|
741
851
|
id?: string
|
|
742
852
|
title?: string | null
|
|
743
853
|
isArchived?: boolean
|
|
854
|
+
sandboxPolicy?: string
|
|
744
855
|
createdAt?: Date | string
|
|
745
856
|
updatedAt?: Date | string
|
|
746
857
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -748,6 +859,7 @@ export type ChatThreadCreateWithoutInterruptsInput = {
|
|
|
748
859
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
749
860
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
750
861
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
862
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
751
863
|
}
|
|
752
864
|
|
|
753
865
|
export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
|
|
@@ -755,9 +867,11 @@ export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
|
|
|
755
867
|
userId: string
|
|
756
868
|
title?: string | null
|
|
757
869
|
isArchived?: boolean
|
|
870
|
+
sandboxPolicy?: string
|
|
758
871
|
createdAt?: Date | string
|
|
759
872
|
updatedAt?: Date | string
|
|
760
873
|
agentId?: string | null
|
|
874
|
+
workspaceId?: string | null
|
|
761
875
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
762
876
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
763
877
|
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -783,6 +897,7 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
|
|
|
783
897
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
784
898
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
785
899
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
900
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
786
901
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
787
902
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
788
903
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -790,6 +905,7 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
|
|
|
790
905
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
791
906
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
792
907
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
908
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
793
909
|
}
|
|
794
910
|
|
|
795
911
|
export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
|
|
@@ -797,9 +913,11 @@ export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
|
|
|
797
913
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
798
914
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
799
915
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
916
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
800
917
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
801
918
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
802
919
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
920
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
803
921
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
804
922
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
805
923
|
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -809,6 +927,7 @@ export type ChatThreadCreateWithoutGenerationsInput = {
|
|
|
809
927
|
id?: string
|
|
810
928
|
title?: string | null
|
|
811
929
|
isArchived?: boolean
|
|
930
|
+
sandboxPolicy?: string
|
|
812
931
|
createdAt?: Date | string
|
|
813
932
|
updatedAt?: Date | string
|
|
814
933
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -816,6 +935,7 @@ export type ChatThreadCreateWithoutGenerationsInput = {
|
|
|
816
935
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
817
936
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
818
937
|
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
938
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
819
939
|
}
|
|
820
940
|
|
|
821
941
|
export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
|
|
@@ -823,9 +943,11 @@ export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
|
|
|
823
943
|
userId: string
|
|
824
944
|
title?: string | null
|
|
825
945
|
isArchived?: boolean
|
|
946
|
+
sandboxPolicy?: string
|
|
826
947
|
createdAt?: Date | string
|
|
827
948
|
updatedAt?: Date | string
|
|
828
949
|
agentId?: string | null
|
|
950
|
+
workspaceId?: string | null
|
|
829
951
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
830
952
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
831
953
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -851,6 +973,7 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
|
|
|
851
973
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
852
974
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
853
975
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
976
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
854
977
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
855
978
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
856
979
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -858,6 +981,7 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
|
|
|
858
981
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
859
982
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
860
983
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
984
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
861
985
|
}
|
|
862
986
|
|
|
863
987
|
export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
|
|
@@ -865,9 +989,11 @@ export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
|
|
|
865
989
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
866
990
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
867
991
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
992
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
868
993
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
869
994
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
870
995
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
996
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
871
997
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
872
998
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
873
999
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -877,6 +1003,7 @@ export type ChatThreadCreateWithoutAgentInput = {
|
|
|
877
1003
|
id?: string
|
|
878
1004
|
title?: string | null
|
|
879
1005
|
isArchived?: boolean
|
|
1006
|
+
sandboxPolicy?: string
|
|
880
1007
|
createdAt?: Date | string
|
|
881
1008
|
updatedAt?: Date | string
|
|
882
1009
|
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
@@ -884,6 +1011,7 @@ export type ChatThreadCreateWithoutAgentInput = {
|
|
|
884
1011
|
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
885
1012
|
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
886
1013
|
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
1014
|
+
workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
|
|
887
1015
|
}
|
|
888
1016
|
|
|
889
1017
|
export type ChatThreadUncheckedCreateWithoutAgentInput = {
|
|
@@ -891,8 +1019,10 @@ export type ChatThreadUncheckedCreateWithoutAgentInput = {
|
|
|
891
1019
|
userId: string
|
|
892
1020
|
title?: string | null
|
|
893
1021
|
isArchived?: boolean
|
|
1022
|
+
sandboxPolicy?: string
|
|
894
1023
|
createdAt?: Date | string
|
|
895
1024
|
updatedAt?: Date | string
|
|
1025
|
+
workspaceId?: string | null
|
|
896
1026
|
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
897
1027
|
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
898
1028
|
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
@@ -925,19 +1055,78 @@ export type ChatThreadUpdateManyWithWhereWithoutAgentInput = {
|
|
|
925
1055
|
data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutAgentInput>
|
|
926
1056
|
}
|
|
927
1057
|
|
|
1058
|
+
export type ChatThreadCreateWithoutWorkspaceInput = {
|
|
1059
|
+
id?: string
|
|
1060
|
+
title?: string | null
|
|
1061
|
+
isArchived?: boolean
|
|
1062
|
+
sandboxPolicy?: string
|
|
1063
|
+
createdAt?: Date | string
|
|
1064
|
+
updatedAt?: Date | string
|
|
1065
|
+
user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
|
|
1066
|
+
messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
|
|
1067
|
+
runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
|
|
1068
|
+
interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
|
|
1069
|
+
generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
|
|
1070
|
+
agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export type ChatThreadUncheckedCreateWithoutWorkspaceInput = {
|
|
1074
|
+
id?: string
|
|
1075
|
+
userId: string
|
|
1076
|
+
title?: string | null
|
|
1077
|
+
isArchived?: boolean
|
|
1078
|
+
sandboxPolicy?: string
|
|
1079
|
+
createdAt?: Date | string
|
|
1080
|
+
updatedAt?: Date | string
|
|
1081
|
+
agentId?: string | null
|
|
1082
|
+
messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
1083
|
+
runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
|
|
1084
|
+
interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
|
|
1085
|
+
generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export type ChatThreadCreateOrConnectWithoutWorkspaceInput = {
|
|
1089
|
+
where: Prisma.ChatThreadWhereUniqueInput
|
|
1090
|
+
create: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput>
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export type ChatThreadCreateManyWorkspaceInputEnvelope = {
|
|
1094
|
+
data: Prisma.ChatThreadCreateManyWorkspaceInput | Prisma.ChatThreadCreateManyWorkspaceInput[]
|
|
1095
|
+
skipDuplicates?: boolean
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export type ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
1099
|
+
where: Prisma.ChatThreadWhereUniqueInput
|
|
1100
|
+
update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedUpdateWithoutWorkspaceInput>
|
|
1101
|
+
create: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput>
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
export type ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
1105
|
+
where: Prisma.ChatThreadWhereUniqueInput
|
|
1106
|
+
data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedUpdateWithoutWorkspaceInput>
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
export type ChatThreadUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
1110
|
+
where: Prisma.ChatThreadScalarWhereInput
|
|
1111
|
+
data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutWorkspaceInput>
|
|
1112
|
+
}
|
|
1113
|
+
|
|
928
1114
|
export type ChatThreadCreateManyUserInput = {
|
|
929
1115
|
id?: string
|
|
930
1116
|
title?: string | null
|
|
931
1117
|
isArchived?: boolean
|
|
1118
|
+
sandboxPolicy?: string
|
|
932
1119
|
createdAt?: Date | string
|
|
933
1120
|
updatedAt?: Date | string
|
|
934
1121
|
agentId?: string | null
|
|
1122
|
+
workspaceId?: string | null
|
|
935
1123
|
}
|
|
936
1124
|
|
|
937
1125
|
export type ChatThreadUpdateWithoutUserInput = {
|
|
938
1126
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
939
1127
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
940
1128
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1129
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
941
1130
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
942
1131
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
943
1132
|
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
@@ -945,15 +1134,18 @@ export type ChatThreadUpdateWithoutUserInput = {
|
|
|
945
1134
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
946
1135
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
947
1136
|
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
1137
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
948
1138
|
}
|
|
949
1139
|
|
|
950
1140
|
export type ChatThreadUncheckedUpdateWithoutUserInput = {
|
|
951
1141
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
952
1142
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
953
1143
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1144
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
954
1145
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
955
1146
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
956
1147
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1148
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
957
1149
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
958
1150
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
959
1151
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -964,9 +1156,11 @@ export type ChatThreadUncheckedUpdateManyWithoutUserInput = {
|
|
|
964
1156
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
965
1157
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
966
1158
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1159
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
967
1160
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
968
1161
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
969
1162
|
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1163
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
970
1164
|
}
|
|
971
1165
|
|
|
972
1166
|
export type ChatThreadCreateManyAgentInput = {
|
|
@@ -974,14 +1168,17 @@ export type ChatThreadCreateManyAgentInput = {
|
|
|
974
1168
|
userId: string
|
|
975
1169
|
title?: string | null
|
|
976
1170
|
isArchived?: boolean
|
|
1171
|
+
sandboxPolicy?: string
|
|
977
1172
|
createdAt?: Date | string
|
|
978
1173
|
updatedAt?: Date | string
|
|
1174
|
+
workspaceId?: string | null
|
|
979
1175
|
}
|
|
980
1176
|
|
|
981
1177
|
export type ChatThreadUpdateWithoutAgentInput = {
|
|
982
1178
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
983
1179
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
984
1180
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1181
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
985
1182
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
986
1183
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
987
1184
|
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
@@ -989,6 +1186,7 @@ export type ChatThreadUpdateWithoutAgentInput = {
|
|
|
989
1186
|
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
990
1187
|
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
991
1188
|
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
1189
|
+
workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
|
|
992
1190
|
}
|
|
993
1191
|
|
|
994
1192
|
export type ChatThreadUncheckedUpdateWithoutAgentInput = {
|
|
@@ -996,8 +1194,10 @@ export type ChatThreadUncheckedUpdateWithoutAgentInput = {
|
|
|
996
1194
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
997
1195
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
998
1196
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1197
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
999
1198
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1000
1199
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1200
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1001
1201
|
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
1002
1202
|
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1003
1203
|
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
@@ -1009,8 +1209,62 @@ export type ChatThreadUncheckedUpdateManyWithoutAgentInput = {
|
|
|
1009
1209
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1010
1210
|
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1011
1211
|
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1212
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1213
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1214
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1215
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export type ChatThreadCreateManyWorkspaceInput = {
|
|
1219
|
+
id?: string
|
|
1220
|
+
userId: string
|
|
1221
|
+
title?: string | null
|
|
1222
|
+
isArchived?: boolean
|
|
1223
|
+
sandboxPolicy?: string
|
|
1224
|
+
createdAt?: Date | string
|
|
1225
|
+
updatedAt?: Date | string
|
|
1226
|
+
agentId?: string | null
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export type ChatThreadUpdateWithoutWorkspaceInput = {
|
|
1230
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1231
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1232
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1233
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1234
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1235
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1236
|
+
user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
|
|
1237
|
+
messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
|
|
1238
|
+
runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
|
|
1239
|
+
interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
|
|
1240
|
+
generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
|
|
1241
|
+
agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
export type ChatThreadUncheckedUpdateWithoutWorkspaceInput = {
|
|
1245
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1246
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1247
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1248
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1249
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1012
1250
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1013
1251
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1252
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1253
|
+
messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
1254
|
+
runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1255
|
+
interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
|
|
1256
|
+
generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export type ChatThreadUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
1260
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1261
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1262
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1263
|
+
isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1264
|
+
sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1265
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1266
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1267
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1014
1268
|
}
|
|
1015
1269
|
|
|
1016
1270
|
|
|
@@ -1076,15 +1330,18 @@ export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|
|
1076
1330
|
userId?: boolean
|
|
1077
1331
|
title?: boolean
|
|
1078
1332
|
isArchived?: boolean
|
|
1333
|
+
sandboxPolicy?: boolean
|
|
1079
1334
|
createdAt?: boolean
|
|
1080
1335
|
updatedAt?: boolean
|
|
1081
1336
|
agentId?: boolean
|
|
1337
|
+
workspaceId?: boolean
|
|
1082
1338
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1083
1339
|
messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
|
|
1084
1340
|
runs?: boolean | Prisma.ChatThread$runsArgs<ExtArgs>
|
|
1085
1341
|
interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
|
|
1086
1342
|
generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
|
|
1087
1343
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1344
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1088
1345
|
_count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
|
|
1089
1346
|
}, ExtArgs["result"]["chatThread"]>
|
|
1090
1347
|
|
|
@@ -1093,11 +1350,14 @@ export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
|
|
1093
1350
|
userId?: boolean
|
|
1094
1351
|
title?: boolean
|
|
1095
1352
|
isArchived?: boolean
|
|
1353
|
+
sandboxPolicy?: boolean
|
|
1096
1354
|
createdAt?: boolean
|
|
1097
1355
|
updatedAt?: boolean
|
|
1098
1356
|
agentId?: boolean
|
|
1357
|
+
workspaceId?: boolean
|
|
1099
1358
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1100
1359
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1360
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1101
1361
|
}, ExtArgs["result"]["chatThread"]>
|
|
1102
1362
|
|
|
1103
1363
|
export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -1105,11 +1365,14 @@ export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
|
|
1105
1365
|
userId?: boolean
|
|
1106
1366
|
title?: boolean
|
|
1107
1367
|
isArchived?: boolean
|
|
1368
|
+
sandboxPolicy?: boolean
|
|
1108
1369
|
createdAt?: boolean
|
|
1109
1370
|
updatedAt?: boolean
|
|
1110
1371
|
agentId?: boolean
|
|
1372
|
+
workspaceId?: boolean
|
|
1111
1373
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1112
1374
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1375
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1113
1376
|
}, ExtArgs["result"]["chatThread"]>
|
|
1114
1377
|
|
|
1115
1378
|
export type ChatThreadSelectScalar = {
|
|
@@ -1117,12 +1380,14 @@ export type ChatThreadSelectScalar = {
|
|
|
1117
1380
|
userId?: boolean
|
|
1118
1381
|
title?: boolean
|
|
1119
1382
|
isArchived?: boolean
|
|
1383
|
+
sandboxPolicy?: boolean
|
|
1120
1384
|
createdAt?: boolean
|
|
1121
1385
|
updatedAt?: boolean
|
|
1122
1386
|
agentId?: boolean
|
|
1387
|
+
workspaceId?: boolean
|
|
1123
1388
|
}
|
|
1124
1389
|
|
|
1125
|
-
export type ChatThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "isArchived" | "createdAt" | "updatedAt" | "agentId", ExtArgs["result"]["chatThread"]>
|
|
1390
|
+
export type ChatThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "title" | "isArchived" | "sandboxPolicy" | "createdAt" | "updatedAt" | "agentId" | "workspaceId", ExtArgs["result"]["chatThread"]>
|
|
1126
1391
|
export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1127
1392
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1128
1393
|
messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
|
|
@@ -1130,15 +1395,18 @@ export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1130
1395
|
interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
|
|
1131
1396
|
generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
|
|
1132
1397
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1398
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1133
1399
|
_count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
|
|
1134
1400
|
}
|
|
1135
1401
|
export type ChatThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1136
1402
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1137
1403
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1404
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1138
1405
|
}
|
|
1139
1406
|
export type ChatThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1140
1407
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1141
1408
|
agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
|
|
1409
|
+
workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
|
|
1142
1410
|
}
|
|
1143
1411
|
|
|
1144
1412
|
export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -1150,15 +1418,18 @@ export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
1150
1418
|
interrupts: Prisma.$ChatInterruptPayload<ExtArgs>[]
|
|
1151
1419
|
generations: Prisma.$GenerationRunPayload<ExtArgs>[]
|
|
1152
1420
|
agent: Prisma.$UserAgentPayload<ExtArgs> | null
|
|
1421
|
+
workspace: Prisma.$HarnessWorkspacePayload<ExtArgs> | null
|
|
1153
1422
|
}
|
|
1154
1423
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1155
1424
|
id: string
|
|
1156
1425
|
userId: string
|
|
1157
1426
|
title: string | null
|
|
1158
1427
|
isArchived: boolean
|
|
1428
|
+
sandboxPolicy: string
|
|
1159
1429
|
createdAt: Date
|
|
1160
1430
|
updatedAt: Date
|
|
1161
1431
|
agentId: string | null
|
|
1432
|
+
workspaceId: string | null
|
|
1162
1433
|
}, ExtArgs["result"]["chatThread"]>
|
|
1163
1434
|
composites: {}
|
|
1164
1435
|
}
|
|
@@ -1559,6 +1830,7 @@ export interface Prisma__ChatThreadClient<T, Null = never, ExtArgs extends runti
|
|
|
1559
1830
|
interrupts<T extends Prisma.ChatThread$interruptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$interruptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatInterruptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1560
1831
|
generations<T extends Prisma.ChatThread$generationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$generationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GenerationRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1561
1832
|
agent<T extends Prisma.ChatThread$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$agentArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1833
|
+
workspace<T extends Prisma.ChatThread$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$workspaceArgs<ExtArgs>>): Prisma.Prisma__HarnessWorkspaceClient<runtime.Types.Result.GetResult<Prisma.$HarnessWorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1562
1834
|
/**
|
|
1563
1835
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1564
1836
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1592,9 +1864,11 @@ export interface ChatThreadFieldRefs {
|
|
|
1592
1864
|
readonly userId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1593
1865
|
readonly title: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1594
1866
|
readonly isArchived: Prisma.FieldRef<"ChatThread", 'Boolean'>
|
|
1867
|
+
readonly sandboxPolicy: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1595
1868
|
readonly createdAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
|
|
1596
1869
|
readonly updatedAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
|
|
1597
1870
|
readonly agentId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1871
|
+
readonly workspaceId: Prisma.FieldRef<"ChatThread", 'String'>
|
|
1598
1872
|
}
|
|
1599
1873
|
|
|
1600
1874
|
|
|
@@ -2110,6 +2384,25 @@ export type ChatThread$agentArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
2110
2384
|
where?: Prisma.UserAgentWhereInput
|
|
2111
2385
|
}
|
|
2112
2386
|
|
|
2387
|
+
/**
|
|
2388
|
+
* ChatThread.workspace
|
|
2389
|
+
*/
|
|
2390
|
+
export type ChatThread$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2391
|
+
/**
|
|
2392
|
+
* Select specific fields to fetch from the HarnessWorkspace
|
|
2393
|
+
*/
|
|
2394
|
+
select?: Prisma.HarnessWorkspaceSelect<ExtArgs> | null
|
|
2395
|
+
/**
|
|
2396
|
+
* Omit specific fields from the HarnessWorkspace
|
|
2397
|
+
*/
|
|
2398
|
+
omit?: Prisma.HarnessWorkspaceOmit<ExtArgs> | null
|
|
2399
|
+
/**
|
|
2400
|
+
* Choose, which related nodes to fetch as well
|
|
2401
|
+
*/
|
|
2402
|
+
include?: Prisma.HarnessWorkspaceInclude<ExtArgs> | null
|
|
2403
|
+
where?: Prisma.HarnessWorkspaceWhereInput
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2113
2406
|
/**
|
|
2114
2407
|
* ChatThread without action
|
|
2115
2408
|
*/
|