@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.
Files changed (88) hide show
  1. package/LICENSE +661 -0
  2. package/dist/get-prisma.d.ts +1 -0
  3. package/dist/get-prisma.js +7 -0
  4. package/generated/browser.ts +60 -0
  5. package/generated/client.ts +60 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +124 -4
  8. package/generated/internal/prismaNamespace.ts +1121 -25
  9. package/generated/internal/prismaNamespaceBrowser.ts +202 -6
  10. package/generated/models/AiProviderConfig.ts +100 -1
  11. package/generated/models/AiStreamChunk.ts +1159 -0
  12. package/generated/models/AiUsageLog.ts +91 -31
  13. package/generated/models/Blob.ts +1428 -0
  14. package/generated/models/BusinessAgentBinding.ts +1553 -0
  15. package/generated/models/ChatInterrupt.ts +42 -1
  16. package/generated/models/ChatMessage.ts +58 -29
  17. package/generated/models/ChatPersistenceMeta.ts +1121 -0
  18. package/generated/models/ChatRun.ts +166 -1
  19. package/generated/models/ChatThread.ts +294 -1
  20. package/generated/models/CodeSnippet.ts +1555 -0
  21. package/generated/models/DesktopSetting.ts +1059 -0
  22. package/generated/models/GenerationRun.ts +193 -1
  23. package/generated/models/HarnessPlugin.ts +1677 -0
  24. package/generated/models/HarnessWorkspace.ts +1650 -0
  25. package/generated/models/InvitationCode.ts +0 -8
  26. package/generated/models/Plan.ts +115 -1
  27. package/generated/models/SandboxInstance.ts +1277 -0
  28. package/generated/models/SystemPromptTemplate.ts +1583 -0
  29. package/generated/models/SystemPromptVersion.ts +1459 -0
  30. package/generated/models/User.ts +4524 -866
  31. package/generated/models/UserAgent.ts +250 -1
  32. package/generated/models/Workspace.ts +3 -1
  33. package/generated/models/WorkspaceFile.ts +1535 -0
  34. package/generated/models.ts +12 -0
  35. package/generated-sqlite/browser.ts +60 -0
  36. package/generated-sqlite/client.ts +60 -0
  37. package/generated-sqlite/commonInputTypes.ts +192 -78
  38. package/generated-sqlite/internal/class.ts +124 -4
  39. package/generated-sqlite/internal/prismaNamespace.ts +1135 -25
  40. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +202 -6
  41. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  42. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  43. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  44. package/generated-sqlite/models/Blob.ts +1425 -0
  45. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  46. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  47. package/generated-sqlite/models/ChatMessage.ts +58 -29
  48. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  49. package/generated-sqlite/models/ChatRun.ts +174 -1
  50. package/generated-sqlite/models/ChatThread.ts +293 -1
  51. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  52. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  53. package/generated-sqlite/models/GenerationRun.ts +193 -1
  54. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  55. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  56. package/generated-sqlite/models/InvitationCode.ts +0 -8
  57. package/generated-sqlite/models/PageVersion.ts +0 -8
  58. package/generated-sqlite/models/Plan.ts +115 -1
  59. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  60. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  61. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  62. package/generated-sqlite/models/User.ts +3778 -708
  63. package/generated-sqlite/models/UserAgent.ts +250 -1
  64. package/generated-sqlite/models/Workspace.ts +3 -1
  65. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  66. package/generated-sqlite/models.ts +12 -0
  67. package/get-prisma.ts +6 -0
  68. package/index.ts +11 -6
  69. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  70. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  71. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  72. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  73. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  74. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  75. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  76. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  77. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  78. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  79. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  80. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  81. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  82. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  83. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  84. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  85. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  86. package/package.json +8 -3
  87. package/schema.prisma +321 -88
  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
@@ -595,15 +687,18 @@ export type ChatThreadScalarWhereInput = {
595
687
  userId?: Prisma.StringFilter<"ChatThread"> | string
596
688
  title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
597
689
  isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
690
+ sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
598
691
  createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
599
692
  updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
600
693
  agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
694
+ workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
601
695
  }
602
696
 
603
697
  export type ChatThreadCreateWithoutMessagesInput = {
604
698
  id?: string
605
699
  title?: string | null
606
700
  isArchived?: boolean
701
+ sandboxPolicy?: string
607
702
  createdAt?: Date | string
608
703
  updatedAt?: Date | string
609
704
  user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
@@ -611,6 +706,7 @@ export type ChatThreadCreateWithoutMessagesInput = {
611
706
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
612
707
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
613
708
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
709
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
614
710
  }
615
711
 
616
712
  export type ChatThreadUncheckedCreateWithoutMessagesInput = {
@@ -618,9 +714,11 @@ export type ChatThreadUncheckedCreateWithoutMessagesInput = {
618
714
  userId: string
619
715
  title?: string | null
620
716
  isArchived?: boolean
717
+ sandboxPolicy?: string
621
718
  createdAt?: Date | string
622
719
  updatedAt?: Date | string
623
720
  agentId?: string | null
721
+ workspaceId?: string | null
624
722
  runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
625
723
  interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
626
724
  generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
@@ -646,6 +744,7 @@ export type ChatThreadUpdateWithoutMessagesInput = {
646
744
  id?: Prisma.StringFieldUpdateOperationsInput | string
647
745
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
648
746
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
747
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
649
748
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
650
749
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
651
750
  user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
@@ -653,6 +752,7 @@ export type ChatThreadUpdateWithoutMessagesInput = {
653
752
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
654
753
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
655
754
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
755
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
656
756
  }
657
757
 
658
758
  export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
@@ -660,9 +760,11 @@ export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
660
760
  userId?: Prisma.StringFieldUpdateOperationsInput | string
661
761
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
662
762
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
763
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
663
764
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
664
765
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
665
766
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
767
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
666
768
  runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
667
769
  interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
668
770
  generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
@@ -672,6 +774,7 @@ export type ChatThreadCreateWithoutRunsInput = {
672
774
  id?: string
673
775
  title?: string | null
674
776
  isArchived?: boolean
777
+ sandboxPolicy?: string
675
778
  createdAt?: Date | string
676
779
  updatedAt?: Date | string
677
780
  user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
@@ -679,6 +782,7 @@ export type ChatThreadCreateWithoutRunsInput = {
679
782
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
680
783
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
681
784
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
785
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
682
786
  }
683
787
 
684
788
  export type ChatThreadUncheckedCreateWithoutRunsInput = {
@@ -686,9 +790,11 @@ export type ChatThreadUncheckedCreateWithoutRunsInput = {
686
790
  userId: string
687
791
  title?: string | null
688
792
  isArchived?: boolean
793
+ sandboxPolicy?: string
689
794
  createdAt?: Date | string
690
795
  updatedAt?: Date | string
691
796
  agentId?: string | null
797
+ workspaceId?: string | null
692
798
  messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
693
799
  interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
694
800
  generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
@@ -714,6 +820,7 @@ export type ChatThreadUpdateWithoutRunsInput = {
714
820
  id?: Prisma.StringFieldUpdateOperationsInput | string
715
821
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
716
822
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
823
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
717
824
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
718
825
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
719
826
  user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
@@ -721,6 +828,7 @@ export type ChatThreadUpdateWithoutRunsInput = {
721
828
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
722
829
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
723
830
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
831
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
724
832
  }
725
833
 
726
834
  export type ChatThreadUncheckedUpdateWithoutRunsInput = {
@@ -728,9 +836,11 @@ export type ChatThreadUncheckedUpdateWithoutRunsInput = {
728
836
  userId?: Prisma.StringFieldUpdateOperationsInput | string
729
837
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
730
838
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
839
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
731
840
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
732
841
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
733
842
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
843
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
734
844
  messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
735
845
  interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
736
846
  generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
@@ -740,6 +850,7 @@ export type ChatThreadCreateWithoutInterruptsInput = {
740
850
  id?: string
741
851
  title?: string | null
742
852
  isArchived?: boolean
853
+ sandboxPolicy?: string
743
854
  createdAt?: Date | string
744
855
  updatedAt?: Date | string
745
856
  user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
@@ -747,6 +858,7 @@ export type ChatThreadCreateWithoutInterruptsInput = {
747
858
  runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
748
859
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
749
860
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
861
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
750
862
  }
751
863
 
752
864
  export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
@@ -754,9 +866,11 @@ export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
754
866
  userId: string
755
867
  title?: string | null
756
868
  isArchived?: boolean
869
+ sandboxPolicy?: string
757
870
  createdAt?: Date | string
758
871
  updatedAt?: Date | string
759
872
  agentId?: string | null
873
+ workspaceId?: string | null
760
874
  messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
761
875
  runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
762
876
  generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
@@ -782,6 +896,7 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
782
896
  id?: Prisma.StringFieldUpdateOperationsInput | string
783
897
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
784
898
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
899
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
785
900
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
786
901
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
787
902
  user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
@@ -789,6 +904,7 @@ export type ChatThreadUpdateWithoutInterruptsInput = {
789
904
  runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
790
905
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
791
906
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
907
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
792
908
  }
793
909
 
794
910
  export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
@@ -796,9 +912,11 @@ export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
796
912
  userId?: Prisma.StringFieldUpdateOperationsInput | string
797
913
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
798
914
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
915
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
799
916
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
800
917
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
801
918
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
919
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
802
920
  messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
803
921
  runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
804
922
  generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
@@ -808,6 +926,7 @@ export type ChatThreadCreateWithoutGenerationsInput = {
808
926
  id?: string
809
927
  title?: string | null
810
928
  isArchived?: boolean
929
+ sandboxPolicy?: string
811
930
  createdAt?: Date | string
812
931
  updatedAt?: Date | string
813
932
  user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
@@ -815,6 +934,7 @@ export type ChatThreadCreateWithoutGenerationsInput = {
815
934
  runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
816
935
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
817
936
  agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
937
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
818
938
  }
819
939
 
820
940
  export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
@@ -822,9 +942,11 @@ export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
822
942
  userId: string
823
943
  title?: string | null
824
944
  isArchived?: boolean
945
+ sandboxPolicy?: string
825
946
  createdAt?: Date | string
826
947
  updatedAt?: Date | string
827
948
  agentId?: string | null
949
+ workspaceId?: string | null
828
950
  messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
829
951
  runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
830
952
  interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
@@ -850,6 +972,7 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
850
972
  id?: Prisma.StringFieldUpdateOperationsInput | string
851
973
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
852
974
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
975
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
853
976
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
854
977
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
855
978
  user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
@@ -857,6 +980,7 @@ export type ChatThreadUpdateWithoutGenerationsInput = {
857
980
  runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
858
981
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
859
982
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
983
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
860
984
  }
861
985
 
862
986
  export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
@@ -864,9 +988,11 @@ export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
864
988
  userId?: Prisma.StringFieldUpdateOperationsInput | string
865
989
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
866
990
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
991
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
867
992
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
868
993
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
869
994
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
995
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
870
996
  messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
871
997
  runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
872
998
  interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
@@ -876,6 +1002,7 @@ export type ChatThreadCreateWithoutAgentInput = {
876
1002
  id?: string
877
1003
  title?: string | null
878
1004
  isArchived?: boolean
1005
+ sandboxPolicy?: string
879
1006
  createdAt?: Date | string
880
1007
  updatedAt?: Date | string
881
1008
  user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
@@ -883,6 +1010,7 @@ export type ChatThreadCreateWithoutAgentInput = {
883
1010
  runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
884
1011
  interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
885
1012
  generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1013
+ workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
886
1014
  }
887
1015
 
888
1016
  export type ChatThreadUncheckedCreateWithoutAgentInput = {
@@ -890,8 +1018,10 @@ export type ChatThreadUncheckedCreateWithoutAgentInput = {
890
1018
  userId: string
891
1019
  title?: string | null
892
1020
  isArchived?: boolean
1021
+ sandboxPolicy?: string
893
1022
  createdAt?: Date | string
894
1023
  updatedAt?: Date | string
1024
+ workspaceId?: string | null
895
1025
  messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
896
1026
  runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
897
1027
  interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
@@ -923,19 +1053,77 @@ export type ChatThreadUpdateManyWithWhereWithoutAgentInput = {
923
1053
  data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutAgentInput>
924
1054
  }
925
1055
 
1056
+ export type ChatThreadCreateWithoutWorkspaceInput = {
1057
+ id?: string
1058
+ title?: string | null
1059
+ isArchived?: boolean
1060
+ sandboxPolicy?: string
1061
+ createdAt?: Date | string
1062
+ updatedAt?: Date | string
1063
+ user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
1064
+ messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
1065
+ runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
1066
+ interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1067
+ generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1068
+ agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
1069
+ }
1070
+
1071
+ export type ChatThreadUncheckedCreateWithoutWorkspaceInput = {
1072
+ id?: string
1073
+ userId: string
1074
+ title?: string | null
1075
+ isArchived?: boolean
1076
+ sandboxPolicy?: string
1077
+ createdAt?: Date | string
1078
+ updatedAt?: Date | string
1079
+ agentId?: string | null
1080
+ messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
1081
+ runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
1082
+ interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
1083
+ generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
1084
+ }
1085
+
1086
+ export type ChatThreadCreateOrConnectWithoutWorkspaceInput = {
1087
+ where: Prisma.ChatThreadWhereUniqueInput
1088
+ create: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput>
1089
+ }
1090
+
1091
+ export type ChatThreadCreateManyWorkspaceInputEnvelope = {
1092
+ data: Prisma.ChatThreadCreateManyWorkspaceInput | Prisma.ChatThreadCreateManyWorkspaceInput[]
1093
+ }
1094
+
1095
+ export type ChatThreadUpsertWithWhereUniqueWithoutWorkspaceInput = {
1096
+ where: Prisma.ChatThreadWhereUniqueInput
1097
+ update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedUpdateWithoutWorkspaceInput>
1098
+ create: Prisma.XOR<Prisma.ChatThreadCreateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedCreateWithoutWorkspaceInput>
1099
+ }
1100
+
1101
+ export type ChatThreadUpdateWithWhereUniqueWithoutWorkspaceInput = {
1102
+ where: Prisma.ChatThreadWhereUniqueInput
1103
+ data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutWorkspaceInput, Prisma.ChatThreadUncheckedUpdateWithoutWorkspaceInput>
1104
+ }
1105
+
1106
+ export type ChatThreadUpdateManyWithWhereWithoutWorkspaceInput = {
1107
+ where: Prisma.ChatThreadScalarWhereInput
1108
+ data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutWorkspaceInput>
1109
+ }
1110
+
926
1111
  export type ChatThreadCreateManyUserInput = {
927
1112
  id?: string
928
1113
  title?: string | null
929
1114
  isArchived?: boolean
1115
+ sandboxPolicy?: string
930
1116
  createdAt?: Date | string
931
1117
  updatedAt?: Date | string
932
1118
  agentId?: string | null
1119
+ workspaceId?: string | null
933
1120
  }
934
1121
 
935
1122
  export type ChatThreadUpdateWithoutUserInput = {
936
1123
  id?: Prisma.StringFieldUpdateOperationsInput | string
937
1124
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
938
1125
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1126
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
939
1127
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
940
1128
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
941
1129
  messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
@@ -943,15 +1131,18 @@ export type ChatThreadUpdateWithoutUserInput = {
943
1131
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
944
1132
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
945
1133
  agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1134
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
946
1135
  }
947
1136
 
948
1137
  export type ChatThreadUncheckedUpdateWithoutUserInput = {
949
1138
  id?: Prisma.StringFieldUpdateOperationsInput | string
950
1139
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
951
1140
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1141
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
952
1142
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
953
1143
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
954
1144
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1145
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
955
1146
  messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
956
1147
  runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
957
1148
  interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
@@ -962,9 +1153,11 @@ export type ChatThreadUncheckedUpdateManyWithoutUserInput = {
962
1153
  id?: Prisma.StringFieldUpdateOperationsInput | string
963
1154
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
964
1155
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1156
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
965
1157
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
966
1158
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
967
1159
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1160
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
968
1161
  }
969
1162
 
970
1163
  export type ChatThreadCreateManyAgentInput = {
@@ -972,14 +1165,17 @@ export type ChatThreadCreateManyAgentInput = {
972
1165
  userId: string
973
1166
  title?: string | null
974
1167
  isArchived?: boolean
1168
+ sandboxPolicy?: string
975
1169
  createdAt?: Date | string
976
1170
  updatedAt?: Date | string
1171
+ workspaceId?: string | null
977
1172
  }
978
1173
 
979
1174
  export type ChatThreadUpdateWithoutAgentInput = {
980
1175
  id?: Prisma.StringFieldUpdateOperationsInput | string
981
1176
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
982
1177
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1178
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
983
1179
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
984
1180
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
985
1181
  user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
@@ -987,6 +1183,7 @@ export type ChatThreadUpdateWithoutAgentInput = {
987
1183
  runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
988
1184
  interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
989
1185
  generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1186
+ workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
990
1187
  }
991
1188
 
992
1189
  export type ChatThreadUncheckedUpdateWithoutAgentInput = {
@@ -994,8 +1191,10 @@ export type ChatThreadUncheckedUpdateWithoutAgentInput = {
994
1191
  userId?: Prisma.StringFieldUpdateOperationsInput | string
995
1192
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
996
1193
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1194
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
997
1195
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
998
1196
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1197
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
999
1198
  messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
1000
1199
  runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
1001
1200
  interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
@@ -1007,8 +1206,62 @@ export type ChatThreadUncheckedUpdateManyWithoutAgentInput = {
1007
1206
  userId?: Prisma.StringFieldUpdateOperationsInput | string
1008
1207
  title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1009
1208
  isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1209
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1010
1210
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1011
1211
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1212
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1213
+ }
1214
+
1215
+ export type ChatThreadCreateManyWorkspaceInput = {
1216
+ id?: string
1217
+ userId: string
1218
+ title?: string | null
1219
+ isArchived?: boolean
1220
+ sandboxPolicy?: string
1221
+ createdAt?: Date | string
1222
+ updatedAt?: Date | string
1223
+ agentId?: string | null
1224
+ }
1225
+
1226
+ export type ChatThreadUpdateWithoutWorkspaceInput = {
1227
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1228
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1229
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1230
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1231
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1232
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1233
+ user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
1234
+ messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
1235
+ runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
1236
+ interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1237
+ generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1238
+ agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1239
+ }
1240
+
1241
+ export type ChatThreadUncheckedUpdateWithoutWorkspaceInput = {
1242
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1243
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1244
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1245
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1246
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1247
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1248
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1249
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1250
+ messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
1251
+ runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
1252
+ interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
1253
+ generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
1254
+ }
1255
+
1256
+ export type ChatThreadUncheckedUpdateManyWithoutWorkspaceInput = {
1257
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1258
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1259
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1260
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1261
+ sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1262
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1263
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1264
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1012
1265
  }
1013
1266
 
1014
1267
 
@@ -1074,15 +1327,18 @@ export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
1074
1327
  userId?: boolean
1075
1328
  title?: boolean
1076
1329
  isArchived?: boolean
1330
+ sandboxPolicy?: boolean
1077
1331
  createdAt?: boolean
1078
1332
  updatedAt?: boolean
1079
1333
  agentId?: boolean
1334
+ workspaceId?: boolean
1080
1335
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1081
1336
  messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
1082
1337
  runs?: boolean | Prisma.ChatThread$runsArgs<ExtArgs>
1083
1338
  interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
1084
1339
  generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1085
1340
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1341
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1086
1342
  _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1087
1343
  }, ExtArgs["result"]["chatThread"]>
1088
1344
 
@@ -1091,11 +1347,14 @@ export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
1091
1347
  userId?: boolean
1092
1348
  title?: boolean
1093
1349
  isArchived?: boolean
1350
+ sandboxPolicy?: boolean
1094
1351
  createdAt?: boolean
1095
1352
  updatedAt?: boolean
1096
1353
  agentId?: boolean
1354
+ workspaceId?: boolean
1097
1355
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1098
1356
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1357
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1099
1358
  }, ExtArgs["result"]["chatThread"]>
1100
1359
 
1101
1360
  export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -1103,11 +1362,14 @@ export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
1103
1362
  userId?: boolean
1104
1363
  title?: boolean
1105
1364
  isArchived?: boolean
1365
+ sandboxPolicy?: boolean
1106
1366
  createdAt?: boolean
1107
1367
  updatedAt?: boolean
1108
1368
  agentId?: boolean
1369
+ workspaceId?: boolean
1109
1370
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1110
1371
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1372
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1111
1373
  }, ExtArgs["result"]["chatThread"]>
1112
1374
 
1113
1375
  export type ChatThreadSelectScalar = {
@@ -1115,12 +1377,14 @@ export type ChatThreadSelectScalar = {
1115
1377
  userId?: boolean
1116
1378
  title?: boolean
1117
1379
  isArchived?: boolean
1380
+ sandboxPolicy?: boolean
1118
1381
  createdAt?: boolean
1119
1382
  updatedAt?: boolean
1120
1383
  agentId?: boolean
1384
+ workspaceId?: boolean
1121
1385
  }
1122
1386
 
1123
- 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"]>
1387
+ 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"]>
1124
1388
  export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
1389
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1126
1390
  messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
@@ -1128,15 +1392,18 @@ export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalA
1128
1392
  interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
1129
1393
  generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1130
1394
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1395
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1131
1396
  _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1132
1397
  }
1133
1398
  export type ChatThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1134
1399
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1135
1400
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1401
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1136
1402
  }
1137
1403
  export type ChatThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
1404
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1139
1405
  agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1406
+ workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1140
1407
  }
1141
1408
 
1142
1409
  export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1148,15 +1415,18 @@ export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.Internal
1148
1415
  interrupts: Prisma.$ChatInterruptPayload<ExtArgs>[]
1149
1416
  generations: Prisma.$GenerationRunPayload<ExtArgs>[]
1150
1417
  agent: Prisma.$UserAgentPayload<ExtArgs> | null
1418
+ workspace: Prisma.$HarnessWorkspacePayload<ExtArgs> | null
1151
1419
  }
1152
1420
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1153
1421
  id: string
1154
1422
  userId: string
1155
1423
  title: string | null
1156
1424
  isArchived: boolean
1425
+ sandboxPolicy: string
1157
1426
  createdAt: Date
1158
1427
  updatedAt: Date
1159
1428
  agentId: string | null
1429
+ workspaceId: string | null
1160
1430
  }, ExtArgs["result"]["chatThread"]>
1161
1431
  composites: {}
1162
1432
  }
@@ -1557,6 +1827,7 @@ export interface Prisma__ChatThreadClient<T, Null = never, ExtArgs extends runti
1557
1827
  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>
1558
1828
  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>
1559
1829
  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>
1830
+ 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>
1560
1831
  /**
1561
1832
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1562
1833
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1590,9 +1861,11 @@ export interface ChatThreadFieldRefs {
1590
1861
  readonly userId: Prisma.FieldRef<"ChatThread", 'String'>
1591
1862
  readonly title: Prisma.FieldRef<"ChatThread", 'String'>
1592
1863
  readonly isArchived: Prisma.FieldRef<"ChatThread", 'Boolean'>
1864
+ readonly sandboxPolicy: Prisma.FieldRef<"ChatThread", 'String'>
1593
1865
  readonly createdAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
1594
1866
  readonly updatedAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
1595
1867
  readonly agentId: Prisma.FieldRef<"ChatThread", 'String'>
1868
+ readonly workspaceId: Prisma.FieldRef<"ChatThread", 'String'>
1596
1869
  }
1597
1870
 
1598
1871
 
@@ -2106,6 +2379,25 @@ export type ChatThread$agentArgs<ExtArgs extends runtime.Types.Extensions.Intern
2106
2379
  where?: Prisma.UserAgentWhereInput
2107
2380
  }
2108
2381
 
2382
+ /**
2383
+ * ChatThread.workspace
2384
+ */
2385
+ export type ChatThread$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2386
+ /**
2387
+ * Select specific fields to fetch from the HarnessWorkspace
2388
+ */
2389
+ select?: Prisma.HarnessWorkspaceSelect<ExtArgs> | null
2390
+ /**
2391
+ * Omit specific fields from the HarnessWorkspace
2392
+ */
2393
+ omit?: Prisma.HarnessWorkspaceOmit<ExtArgs> | null
2394
+ /**
2395
+ * Choose, which related nodes to fetch as well
2396
+ */
2397
+ include?: Prisma.HarnessWorkspaceInclude<ExtArgs> | null
2398
+ where?: Prisma.HarnessWorkspaceWhereInput
2399
+ }
2400
+
2109
2401
  /**
2110
2402
  * ChatThread without action
2111
2403
  */