@allbluecn/database 0.11.0 → 0.12.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 (110) hide show
  1. package/index.ts +14 -17
  2. package/package.json +29 -21
  3. package/pglite-init.ts +75 -0
  4. package/LICENSE +0 -661
  5. package/desktop-init.ts +0 -162
  6. package/generated-sqlite/browser.ts +0 -499
  7. package/generated-sqlite/client.ts +0 -523
  8. package/generated-sqlite/commonInputTypes.ts +0 -722
  9. package/generated-sqlite/enums.ts +0 -15
  10. package/generated-sqlite/internal/class.ts +0 -1154
  11. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  12. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  13. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  14. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  15. package/generated-sqlite/models/AiProvider.ts +0 -1605
  16. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  17. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  18. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  19. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  20. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  21. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  22. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  23. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  24. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  25. package/generated-sqlite/models/AuditLog.ts +0 -1287
  26. package/generated-sqlite/models/Blob.ts +0 -1425
  27. package/generated-sqlite/models/Block.ts +0 -1648
  28. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  29. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  30. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  31. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  32. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  33. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  34. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  35. package/generated-sqlite/models/ChatRun.ts +0 -1802
  36. package/generated-sqlite/models/ChatThread.ts +0 -2417
  37. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  38. package/generated-sqlite/models/Comment.ts +0 -2201
  39. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  40. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  41. package/generated-sqlite/models/Component.ts +0 -2132
  42. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  43. package/generated-sqlite/models/CustomRole.ts +0 -1209
  44. package/generated-sqlite/models/Design.ts +0 -2497
  45. package/generated-sqlite/models/DesignPage.ts +0 -2398
  46. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  47. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  48. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  49. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  50. package/generated-sqlite/models/EmailLog.ts +0 -1343
  51. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  52. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  53. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  54. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  55. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  56. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  57. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  58. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  59. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  60. package/generated-sqlite/models/Invoice.ts +0 -1707
  61. package/generated-sqlite/models/Iteration.ts +0 -1874
  62. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  63. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  64. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  65. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  66. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  67. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  68. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  69. package/generated-sqlite/models/LoginLog.ts +0 -1447
  70. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  71. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  72. package/generated-sqlite/models/PageVersion.ts +0 -1520
  73. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  74. package/generated-sqlite/models/Plan.ts +0 -2250
  75. package/generated-sqlite/models/Project.ts +0 -2628
  76. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  77. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  78. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  79. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  80. package/generated-sqlite/models/Reference.ts +0 -1175
  81. package/generated-sqlite/models/Review.ts +0 -1903
  82. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  83. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  84. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  85. package/generated-sqlite/models/Share.ts +0 -1674
  86. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  87. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  88. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  89. package/generated-sqlite/models/Story.ts +0 -3263
  90. package/generated-sqlite/models/Subscription.ts +0 -2137
  91. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  92. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  93. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  94. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  95. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  96. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  97. package/generated-sqlite/models/Template.ts +0 -1389
  98. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  99. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  100. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  101. package/generated-sqlite/models/User.ts +0 -21247
  102. package/generated-sqlite/models/UserAgent.ts +0 -2146
  103. package/generated-sqlite/models/UserSkill.ts +0 -1453
  104. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  105. package/generated-sqlite/models/Workspace.ts +0 -2341
  106. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  107. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  108. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  109. package/generated-sqlite/models.ts +0 -107
  110. package/schema.sqlite.prisma +0 -2045
@@ -1,2417 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `ChatThread` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model ChatThread
17
- *
18
- */
19
- export type ChatThreadModel = runtime.Types.Result.DefaultSelection<Prisma.$ChatThreadPayload>
20
-
21
- export type AggregateChatThread = {
22
- _count: ChatThreadCountAggregateOutputType | null
23
- _min: ChatThreadMinAggregateOutputType | null
24
- _max: ChatThreadMaxAggregateOutputType | null
25
- }
26
-
27
- export type ChatThreadMinAggregateOutputType = {
28
- id: string | null
29
- userId: string | null
30
- title: string | null
31
- isArchived: boolean | null
32
- sandboxPolicy: string | null
33
- createdAt: Date | null
34
- updatedAt: Date | null
35
- agentId: string | null
36
- workspaceId: string | null
37
- }
38
-
39
- export type ChatThreadMaxAggregateOutputType = {
40
- id: string | null
41
- userId: string | null
42
- title: string | null
43
- isArchived: boolean | null
44
- sandboxPolicy: string | null
45
- createdAt: Date | null
46
- updatedAt: Date | null
47
- agentId: string | null
48
- workspaceId: string | null
49
- }
50
-
51
- export type ChatThreadCountAggregateOutputType = {
52
- id: number
53
- userId: number
54
- title: number
55
- isArchived: number
56
- sandboxPolicy: number
57
- createdAt: number
58
- updatedAt: number
59
- agentId: number
60
- workspaceId: number
61
- _all: number
62
- }
63
-
64
-
65
- export type ChatThreadMinAggregateInputType = {
66
- id?: true
67
- userId?: true
68
- title?: true
69
- isArchived?: true
70
- sandboxPolicy?: true
71
- createdAt?: true
72
- updatedAt?: true
73
- agentId?: true
74
- workspaceId?: true
75
- }
76
-
77
- export type ChatThreadMaxAggregateInputType = {
78
- id?: true
79
- userId?: true
80
- title?: true
81
- isArchived?: true
82
- sandboxPolicy?: true
83
- createdAt?: true
84
- updatedAt?: true
85
- agentId?: true
86
- workspaceId?: true
87
- }
88
-
89
- export type ChatThreadCountAggregateInputType = {
90
- id?: true
91
- userId?: true
92
- title?: true
93
- isArchived?: true
94
- sandboxPolicy?: true
95
- createdAt?: true
96
- updatedAt?: true
97
- agentId?: true
98
- workspaceId?: true
99
- _all?: true
100
- }
101
-
102
- export type ChatThreadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
- /**
104
- * Filter which ChatThread to aggregate.
105
- */
106
- where?: Prisma.ChatThreadWhereInput
107
- /**
108
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
109
- *
110
- * Determine the order of ChatThreads to fetch.
111
- */
112
- orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
113
- /**
114
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
115
- *
116
- * Sets the start position
117
- */
118
- cursor?: Prisma.ChatThreadWhereUniqueInput
119
- /**
120
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
- *
122
- * Take `±n` ChatThreads from the position of the cursor.
123
- */
124
- take?: number
125
- /**
126
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
- *
128
- * Skip the first `n` ChatThreads.
129
- */
130
- skip?: number
131
- /**
132
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
- *
134
- * Count returned ChatThreads
135
- **/
136
- _count?: true | ChatThreadCountAggregateInputType
137
- /**
138
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
- *
140
- * Select which fields to find the minimum value
141
- **/
142
- _min?: ChatThreadMinAggregateInputType
143
- /**
144
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
- *
146
- * Select which fields to find the maximum value
147
- **/
148
- _max?: ChatThreadMaxAggregateInputType
149
- }
150
-
151
- export type GetChatThreadAggregateType<T extends ChatThreadAggregateArgs> = {
152
- [P in keyof T & keyof AggregateChatThread]: P extends '_count' | 'count'
153
- ? T[P] extends true
154
- ? number
155
- : Prisma.GetScalarType<T[P], AggregateChatThread[P]>
156
- : Prisma.GetScalarType<T[P], AggregateChatThread[P]>
157
- }
158
-
159
-
160
-
161
-
162
- export type ChatThreadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
- where?: Prisma.ChatThreadWhereInput
164
- orderBy?: Prisma.ChatThreadOrderByWithAggregationInput | Prisma.ChatThreadOrderByWithAggregationInput[]
165
- by: Prisma.ChatThreadScalarFieldEnum[] | Prisma.ChatThreadScalarFieldEnum
166
- having?: Prisma.ChatThreadScalarWhereWithAggregatesInput
167
- take?: number
168
- skip?: number
169
- _count?: ChatThreadCountAggregateInputType | true
170
- _min?: ChatThreadMinAggregateInputType
171
- _max?: ChatThreadMaxAggregateInputType
172
- }
173
-
174
- export type ChatThreadGroupByOutputType = {
175
- id: string
176
- userId: string
177
- title: string | null
178
- isArchived: boolean
179
- sandboxPolicy: string
180
- createdAt: Date
181
- updatedAt: Date
182
- agentId: string | null
183
- workspaceId: string | null
184
- _count: ChatThreadCountAggregateOutputType | null
185
- _min: ChatThreadMinAggregateOutputType | null
186
- _max: ChatThreadMaxAggregateOutputType | null
187
- }
188
-
189
- export type GetChatThreadGroupByPayload<T extends ChatThreadGroupByArgs> = Prisma.PrismaPromise<
190
- Array<
191
- Prisma.PickEnumerable<ChatThreadGroupByOutputType, T['by']> &
192
- {
193
- [P in ((keyof T) & (keyof ChatThreadGroupByOutputType))]: P extends '_count'
194
- ? T[P] extends boolean
195
- ? number
196
- : Prisma.GetScalarType<T[P], ChatThreadGroupByOutputType[P]>
197
- : Prisma.GetScalarType<T[P], ChatThreadGroupByOutputType[P]>
198
- }
199
- >
200
- >
201
-
202
-
203
-
204
- export type ChatThreadWhereInput = {
205
- AND?: Prisma.ChatThreadWhereInput | Prisma.ChatThreadWhereInput[]
206
- OR?: Prisma.ChatThreadWhereInput[]
207
- NOT?: Prisma.ChatThreadWhereInput | Prisma.ChatThreadWhereInput[]
208
- id?: Prisma.StringFilter<"ChatThread"> | string
209
- userId?: Prisma.StringFilter<"ChatThread"> | string
210
- title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
211
- isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
212
- sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
213
- createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
214
- updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
215
- agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
216
- workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
217
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
218
- messages?: Prisma.ChatMessageListRelationFilter
219
- runs?: Prisma.ChatRunListRelationFilter
220
- interrupts?: Prisma.ChatInterruptListRelationFilter
221
- generations?: Prisma.GenerationRunListRelationFilter
222
- agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
223
- workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
224
- }
225
-
226
- export type ChatThreadOrderByWithRelationInput = {
227
- id?: Prisma.SortOrder
228
- userId?: Prisma.SortOrder
229
- title?: Prisma.SortOrderInput | Prisma.SortOrder
230
- isArchived?: Prisma.SortOrder
231
- sandboxPolicy?: Prisma.SortOrder
232
- createdAt?: Prisma.SortOrder
233
- updatedAt?: Prisma.SortOrder
234
- agentId?: Prisma.SortOrderInput | Prisma.SortOrder
235
- workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
236
- user?: Prisma.UserOrderByWithRelationInput
237
- messages?: Prisma.ChatMessageOrderByRelationAggregateInput
238
- runs?: Prisma.ChatRunOrderByRelationAggregateInput
239
- interrupts?: Prisma.ChatInterruptOrderByRelationAggregateInput
240
- generations?: Prisma.GenerationRunOrderByRelationAggregateInput
241
- agent?: Prisma.UserAgentOrderByWithRelationInput
242
- workspace?: Prisma.HarnessWorkspaceOrderByWithRelationInput
243
- }
244
-
245
- export type ChatThreadWhereUniqueInput = Prisma.AtLeast<{
246
- id?: string
247
- AND?: Prisma.ChatThreadWhereInput | Prisma.ChatThreadWhereInput[]
248
- OR?: Prisma.ChatThreadWhereInput[]
249
- NOT?: Prisma.ChatThreadWhereInput | Prisma.ChatThreadWhereInput[]
250
- userId?: Prisma.StringFilter<"ChatThread"> | string
251
- title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
252
- isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
253
- sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
254
- createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
255
- updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
256
- agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
257
- workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
258
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
259
- messages?: Prisma.ChatMessageListRelationFilter
260
- runs?: Prisma.ChatRunListRelationFilter
261
- interrupts?: Prisma.ChatInterruptListRelationFilter
262
- generations?: Prisma.GenerationRunListRelationFilter
263
- agent?: Prisma.XOR<Prisma.UserAgentNullableScalarRelationFilter, Prisma.UserAgentWhereInput> | null
264
- workspace?: Prisma.XOR<Prisma.HarnessWorkspaceNullableScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput> | null
265
- }, "id">
266
-
267
- export type ChatThreadOrderByWithAggregationInput = {
268
- id?: Prisma.SortOrder
269
- userId?: Prisma.SortOrder
270
- title?: Prisma.SortOrderInput | Prisma.SortOrder
271
- isArchived?: Prisma.SortOrder
272
- sandboxPolicy?: Prisma.SortOrder
273
- createdAt?: Prisma.SortOrder
274
- updatedAt?: Prisma.SortOrder
275
- agentId?: Prisma.SortOrderInput | Prisma.SortOrder
276
- workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
277
- _count?: Prisma.ChatThreadCountOrderByAggregateInput
278
- _max?: Prisma.ChatThreadMaxOrderByAggregateInput
279
- _min?: Prisma.ChatThreadMinOrderByAggregateInput
280
- }
281
-
282
- export type ChatThreadScalarWhereWithAggregatesInput = {
283
- AND?: Prisma.ChatThreadScalarWhereWithAggregatesInput | Prisma.ChatThreadScalarWhereWithAggregatesInput[]
284
- OR?: Prisma.ChatThreadScalarWhereWithAggregatesInput[]
285
- NOT?: Prisma.ChatThreadScalarWhereWithAggregatesInput | Prisma.ChatThreadScalarWhereWithAggregatesInput[]
286
- id?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
287
- userId?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
288
- title?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
289
- isArchived?: Prisma.BoolWithAggregatesFilter<"ChatThread"> | boolean
290
- sandboxPolicy?: Prisma.StringWithAggregatesFilter<"ChatThread"> | string
291
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
292
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThread"> | Date | string
293
- agentId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
294
- workspaceId?: Prisma.StringNullableWithAggregatesFilter<"ChatThread"> | string | null
295
- }
296
-
297
- export type ChatThreadCreateInput = {
298
- id?: string
299
- title?: string | null
300
- isArchived?: boolean
301
- sandboxPolicy?: string
302
- createdAt?: Date | string
303
- updatedAt?: Date | string
304
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
305
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
306
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
307
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
308
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
309
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
310
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
311
- }
312
-
313
- export type ChatThreadUncheckedCreateInput = {
314
- id?: string
315
- userId: string
316
- title?: string | null
317
- isArchived?: boolean
318
- sandboxPolicy?: string
319
- createdAt?: Date | string
320
- updatedAt?: Date | string
321
- agentId?: string | null
322
- workspaceId?: string | null
323
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
324
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
325
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
326
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
327
- }
328
-
329
- export type ChatThreadUpdateInput = {
330
- id?: Prisma.StringFieldUpdateOperationsInput | string
331
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
332
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
333
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
334
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
335
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
336
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
337
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
338
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
339
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
340
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
341
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
342
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
343
- }
344
-
345
- export type ChatThreadUncheckedUpdateInput = {
346
- id?: Prisma.StringFieldUpdateOperationsInput | string
347
- userId?: Prisma.StringFieldUpdateOperationsInput | string
348
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
349
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
350
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
351
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
352
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
353
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
354
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
355
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
356
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
357
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
358
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
359
- }
360
-
361
- export type ChatThreadCreateManyInput = {
362
- id?: string
363
- userId: string
364
- title?: string | null
365
- isArchived?: boolean
366
- sandboxPolicy?: string
367
- createdAt?: Date | string
368
- updatedAt?: Date | string
369
- agentId?: string | null
370
- workspaceId?: string | null
371
- }
372
-
373
- export type ChatThreadUpdateManyMutationInput = {
374
- id?: Prisma.StringFieldUpdateOperationsInput | string
375
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
377
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
378
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
380
- }
381
-
382
- export type ChatThreadUncheckedUpdateManyInput = {
383
- id?: Prisma.StringFieldUpdateOperationsInput | string
384
- userId?: Prisma.StringFieldUpdateOperationsInput | string
385
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
386
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
387
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
388
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
389
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
390
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
391
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
392
- }
393
-
394
- export type ChatThreadListRelationFilter = {
395
- every?: Prisma.ChatThreadWhereInput
396
- some?: Prisma.ChatThreadWhereInput
397
- none?: Prisma.ChatThreadWhereInput
398
- }
399
-
400
- export type ChatThreadOrderByRelationAggregateInput = {
401
- _count?: Prisma.SortOrder
402
- }
403
-
404
- export type ChatThreadCountOrderByAggregateInput = {
405
- id?: Prisma.SortOrder
406
- userId?: Prisma.SortOrder
407
- title?: Prisma.SortOrder
408
- isArchived?: Prisma.SortOrder
409
- sandboxPolicy?: Prisma.SortOrder
410
- createdAt?: Prisma.SortOrder
411
- updatedAt?: Prisma.SortOrder
412
- agentId?: Prisma.SortOrder
413
- workspaceId?: Prisma.SortOrder
414
- }
415
-
416
- export type ChatThreadMaxOrderByAggregateInput = {
417
- id?: Prisma.SortOrder
418
- userId?: Prisma.SortOrder
419
- title?: Prisma.SortOrder
420
- isArchived?: Prisma.SortOrder
421
- sandboxPolicy?: Prisma.SortOrder
422
- createdAt?: Prisma.SortOrder
423
- updatedAt?: Prisma.SortOrder
424
- agentId?: Prisma.SortOrder
425
- workspaceId?: Prisma.SortOrder
426
- }
427
-
428
- export type ChatThreadMinOrderByAggregateInput = {
429
- id?: Prisma.SortOrder
430
- userId?: Prisma.SortOrder
431
- title?: Prisma.SortOrder
432
- isArchived?: Prisma.SortOrder
433
- sandboxPolicy?: Prisma.SortOrder
434
- createdAt?: Prisma.SortOrder
435
- updatedAt?: Prisma.SortOrder
436
- agentId?: Prisma.SortOrder
437
- workspaceId?: Prisma.SortOrder
438
- }
439
-
440
- export type ChatThreadScalarRelationFilter = {
441
- is?: Prisma.ChatThreadWhereInput
442
- isNot?: Prisma.ChatThreadWhereInput
443
- }
444
-
445
- export type ChatThreadCreateNestedManyWithoutUserInput = {
446
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput> | Prisma.ChatThreadCreateWithoutUserInput[] | Prisma.ChatThreadUncheckedCreateWithoutUserInput[]
447
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutUserInput | Prisma.ChatThreadCreateOrConnectWithoutUserInput[]
448
- createMany?: Prisma.ChatThreadCreateManyUserInputEnvelope
449
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
450
- }
451
-
452
- export type ChatThreadUncheckedCreateNestedManyWithoutUserInput = {
453
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput> | Prisma.ChatThreadCreateWithoutUserInput[] | Prisma.ChatThreadUncheckedCreateWithoutUserInput[]
454
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutUserInput | Prisma.ChatThreadCreateOrConnectWithoutUserInput[]
455
- createMany?: Prisma.ChatThreadCreateManyUserInputEnvelope
456
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
457
- }
458
-
459
- export type ChatThreadUpdateManyWithoutUserNestedInput = {
460
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput> | Prisma.ChatThreadCreateWithoutUserInput[] | Prisma.ChatThreadUncheckedCreateWithoutUserInput[]
461
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutUserInput | Prisma.ChatThreadCreateOrConnectWithoutUserInput[]
462
- upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutUserInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutUserInput[]
463
- createMany?: Prisma.ChatThreadCreateManyUserInputEnvelope
464
- set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
465
- disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
466
- delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
467
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
468
- update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutUserInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutUserInput[]
469
- updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutUserInput | Prisma.ChatThreadUpdateManyWithWhereWithoutUserInput[]
470
- deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
471
- }
472
-
473
- export type ChatThreadUncheckedUpdateManyWithoutUserNestedInput = {
474
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput> | Prisma.ChatThreadCreateWithoutUserInput[] | Prisma.ChatThreadUncheckedCreateWithoutUserInput[]
475
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutUserInput | Prisma.ChatThreadCreateOrConnectWithoutUserInput[]
476
- upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutUserInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutUserInput[]
477
- createMany?: Prisma.ChatThreadCreateManyUserInputEnvelope
478
- set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
479
- disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
480
- delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
481
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
482
- update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutUserInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutUserInput[]
483
- updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutUserInput | Prisma.ChatThreadUpdateManyWithWhereWithoutUserInput[]
484
- deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
485
- }
486
-
487
- export type ChatThreadCreateNestedOneWithoutMessagesInput = {
488
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutMessagesInput, Prisma.ChatThreadUncheckedCreateWithoutMessagesInput>
489
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutMessagesInput
490
- connect?: Prisma.ChatThreadWhereUniqueInput
491
- }
492
-
493
- export type ChatThreadUpdateOneRequiredWithoutMessagesNestedInput = {
494
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutMessagesInput, Prisma.ChatThreadUncheckedCreateWithoutMessagesInput>
495
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutMessagesInput
496
- upsert?: Prisma.ChatThreadUpsertWithoutMessagesInput
497
- connect?: Prisma.ChatThreadWhereUniqueInput
498
- update?: Prisma.XOR<Prisma.XOR<Prisma.ChatThreadUpdateToOneWithWhereWithoutMessagesInput, Prisma.ChatThreadUpdateWithoutMessagesInput>, Prisma.ChatThreadUncheckedUpdateWithoutMessagesInput>
499
- }
500
-
501
- export type ChatThreadCreateNestedOneWithoutRunsInput = {
502
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutRunsInput, Prisma.ChatThreadUncheckedCreateWithoutRunsInput>
503
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutRunsInput
504
- connect?: Prisma.ChatThreadWhereUniqueInput
505
- }
506
-
507
- export type ChatThreadUpdateOneRequiredWithoutRunsNestedInput = {
508
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutRunsInput, Prisma.ChatThreadUncheckedCreateWithoutRunsInput>
509
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutRunsInput
510
- upsert?: Prisma.ChatThreadUpsertWithoutRunsInput
511
- connect?: Prisma.ChatThreadWhereUniqueInput
512
- update?: Prisma.XOR<Prisma.XOR<Prisma.ChatThreadUpdateToOneWithWhereWithoutRunsInput, Prisma.ChatThreadUpdateWithoutRunsInput>, Prisma.ChatThreadUncheckedUpdateWithoutRunsInput>
513
- }
514
-
515
- export type ChatThreadCreateNestedOneWithoutInterruptsInput = {
516
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutInterruptsInput, Prisma.ChatThreadUncheckedCreateWithoutInterruptsInput>
517
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutInterruptsInput
518
- connect?: Prisma.ChatThreadWhereUniqueInput
519
- }
520
-
521
- export type ChatThreadUpdateOneRequiredWithoutInterruptsNestedInput = {
522
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutInterruptsInput, Prisma.ChatThreadUncheckedCreateWithoutInterruptsInput>
523
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutInterruptsInput
524
- upsert?: Prisma.ChatThreadUpsertWithoutInterruptsInput
525
- connect?: Prisma.ChatThreadWhereUniqueInput
526
- update?: Prisma.XOR<Prisma.XOR<Prisma.ChatThreadUpdateToOneWithWhereWithoutInterruptsInput, Prisma.ChatThreadUpdateWithoutInterruptsInput>, Prisma.ChatThreadUncheckedUpdateWithoutInterruptsInput>
527
- }
528
-
529
- export type ChatThreadCreateNestedOneWithoutGenerationsInput = {
530
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutGenerationsInput, Prisma.ChatThreadUncheckedCreateWithoutGenerationsInput>
531
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutGenerationsInput
532
- connect?: Prisma.ChatThreadWhereUniqueInput
533
- }
534
-
535
- export type ChatThreadUpdateOneRequiredWithoutGenerationsNestedInput = {
536
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutGenerationsInput, Prisma.ChatThreadUncheckedCreateWithoutGenerationsInput>
537
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutGenerationsInput
538
- upsert?: Prisma.ChatThreadUpsertWithoutGenerationsInput
539
- connect?: Prisma.ChatThreadWhereUniqueInput
540
- update?: Prisma.XOR<Prisma.XOR<Prisma.ChatThreadUpdateToOneWithWhereWithoutGenerationsInput, Prisma.ChatThreadUpdateWithoutGenerationsInput>, Prisma.ChatThreadUncheckedUpdateWithoutGenerationsInput>
541
- }
542
-
543
- export type ChatThreadCreateNestedManyWithoutAgentInput = {
544
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput> | Prisma.ChatThreadCreateWithoutAgentInput[] | Prisma.ChatThreadUncheckedCreateWithoutAgentInput[]
545
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutAgentInput | Prisma.ChatThreadCreateOrConnectWithoutAgentInput[]
546
- createMany?: Prisma.ChatThreadCreateManyAgentInputEnvelope
547
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
548
- }
549
-
550
- export type ChatThreadUncheckedCreateNestedManyWithoutAgentInput = {
551
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput> | Prisma.ChatThreadCreateWithoutAgentInput[] | Prisma.ChatThreadUncheckedCreateWithoutAgentInput[]
552
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutAgentInput | Prisma.ChatThreadCreateOrConnectWithoutAgentInput[]
553
- createMany?: Prisma.ChatThreadCreateManyAgentInputEnvelope
554
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
555
- }
556
-
557
- export type ChatThreadUpdateManyWithoutAgentNestedInput = {
558
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput> | Prisma.ChatThreadCreateWithoutAgentInput[] | Prisma.ChatThreadUncheckedCreateWithoutAgentInput[]
559
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutAgentInput | Prisma.ChatThreadCreateOrConnectWithoutAgentInput[]
560
- upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutAgentInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutAgentInput[]
561
- createMany?: Prisma.ChatThreadCreateManyAgentInputEnvelope
562
- set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
563
- disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
564
- delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
565
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
566
- update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutAgentInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutAgentInput[]
567
- updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutAgentInput | Prisma.ChatThreadUpdateManyWithWhereWithoutAgentInput[]
568
- deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
569
- }
570
-
571
- export type ChatThreadUncheckedUpdateManyWithoutAgentNestedInput = {
572
- create?: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput> | Prisma.ChatThreadCreateWithoutAgentInput[] | Prisma.ChatThreadUncheckedCreateWithoutAgentInput[]
573
- connectOrCreate?: Prisma.ChatThreadCreateOrConnectWithoutAgentInput | Prisma.ChatThreadCreateOrConnectWithoutAgentInput[]
574
- upsert?: Prisma.ChatThreadUpsertWithWhereUniqueWithoutAgentInput | Prisma.ChatThreadUpsertWithWhereUniqueWithoutAgentInput[]
575
- createMany?: Prisma.ChatThreadCreateManyAgentInputEnvelope
576
- set?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
577
- disconnect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
578
- delete?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
579
- connect?: Prisma.ChatThreadWhereUniqueInput | Prisma.ChatThreadWhereUniqueInput[]
580
- update?: Prisma.ChatThreadUpdateWithWhereUniqueWithoutAgentInput | Prisma.ChatThreadUpdateWithWhereUniqueWithoutAgentInput[]
581
- updateMany?: Prisma.ChatThreadUpdateManyWithWhereWithoutAgentInput | Prisma.ChatThreadUpdateManyWithWhereWithoutAgentInput[]
582
- deleteMany?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
583
- }
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
-
627
- export type ChatThreadCreateWithoutUserInput = {
628
- id?: string
629
- title?: string | null
630
- isArchived?: boolean
631
- sandboxPolicy?: string
632
- createdAt?: Date | string
633
- updatedAt?: Date | string
634
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
635
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
636
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
637
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
638
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
639
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
640
- }
641
-
642
- export type ChatThreadUncheckedCreateWithoutUserInput = {
643
- id?: string
644
- title?: string | null
645
- isArchived?: boolean
646
- sandboxPolicy?: string
647
- createdAt?: Date | string
648
- updatedAt?: Date | string
649
- agentId?: string | null
650
- workspaceId?: string | null
651
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
652
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
653
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
654
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
655
- }
656
-
657
- export type ChatThreadCreateOrConnectWithoutUserInput = {
658
- where: Prisma.ChatThreadWhereUniqueInput
659
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput>
660
- }
661
-
662
- export type ChatThreadCreateManyUserInputEnvelope = {
663
- data: Prisma.ChatThreadCreateManyUserInput | Prisma.ChatThreadCreateManyUserInput[]
664
- }
665
-
666
- export type ChatThreadUpsertWithWhereUniqueWithoutUserInput = {
667
- where: Prisma.ChatThreadWhereUniqueInput
668
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutUserInput, Prisma.ChatThreadUncheckedUpdateWithoutUserInput>
669
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutUserInput, Prisma.ChatThreadUncheckedCreateWithoutUserInput>
670
- }
671
-
672
- export type ChatThreadUpdateWithWhereUniqueWithoutUserInput = {
673
- where: Prisma.ChatThreadWhereUniqueInput
674
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutUserInput, Prisma.ChatThreadUncheckedUpdateWithoutUserInput>
675
- }
676
-
677
- export type ChatThreadUpdateManyWithWhereWithoutUserInput = {
678
- where: Prisma.ChatThreadScalarWhereInput
679
- data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutUserInput>
680
- }
681
-
682
- export type ChatThreadScalarWhereInput = {
683
- AND?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
684
- OR?: Prisma.ChatThreadScalarWhereInput[]
685
- NOT?: Prisma.ChatThreadScalarWhereInput | Prisma.ChatThreadScalarWhereInput[]
686
- id?: Prisma.StringFilter<"ChatThread"> | string
687
- userId?: Prisma.StringFilter<"ChatThread"> | string
688
- title?: Prisma.StringNullableFilter<"ChatThread"> | string | null
689
- isArchived?: Prisma.BoolFilter<"ChatThread"> | boolean
690
- sandboxPolicy?: Prisma.StringFilter<"ChatThread"> | string
691
- createdAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
692
- updatedAt?: Prisma.DateTimeFilter<"ChatThread"> | Date | string
693
- agentId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
694
- workspaceId?: Prisma.StringNullableFilter<"ChatThread"> | string | null
695
- }
696
-
697
- export type ChatThreadCreateWithoutMessagesInput = {
698
- id?: string
699
- title?: string | null
700
- isArchived?: boolean
701
- sandboxPolicy?: string
702
- createdAt?: Date | string
703
- updatedAt?: Date | string
704
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
705
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
706
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
707
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
708
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
709
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
710
- }
711
-
712
- export type ChatThreadUncheckedCreateWithoutMessagesInput = {
713
- id?: string
714
- userId: string
715
- title?: string | null
716
- isArchived?: boolean
717
- sandboxPolicy?: string
718
- createdAt?: Date | string
719
- updatedAt?: Date | string
720
- agentId?: string | null
721
- workspaceId?: string | null
722
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
723
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
724
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
725
- }
726
-
727
- export type ChatThreadCreateOrConnectWithoutMessagesInput = {
728
- where: Prisma.ChatThreadWhereUniqueInput
729
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutMessagesInput, Prisma.ChatThreadUncheckedCreateWithoutMessagesInput>
730
- }
731
-
732
- export type ChatThreadUpsertWithoutMessagesInput = {
733
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutMessagesInput, Prisma.ChatThreadUncheckedUpdateWithoutMessagesInput>
734
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutMessagesInput, Prisma.ChatThreadUncheckedCreateWithoutMessagesInput>
735
- where?: Prisma.ChatThreadWhereInput
736
- }
737
-
738
- export type ChatThreadUpdateToOneWithWhereWithoutMessagesInput = {
739
- where?: Prisma.ChatThreadWhereInput
740
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutMessagesInput, Prisma.ChatThreadUncheckedUpdateWithoutMessagesInput>
741
- }
742
-
743
- export type ChatThreadUpdateWithoutMessagesInput = {
744
- id?: Prisma.StringFieldUpdateOperationsInput | string
745
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
746
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
747
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
748
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
749
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
750
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
751
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
752
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
753
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
754
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
755
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
756
- }
757
-
758
- export type ChatThreadUncheckedUpdateWithoutMessagesInput = {
759
- id?: Prisma.StringFieldUpdateOperationsInput | string
760
- userId?: Prisma.StringFieldUpdateOperationsInput | string
761
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
762
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
763
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
764
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
765
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
766
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
767
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
768
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
769
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
770
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
771
- }
772
-
773
- export type ChatThreadCreateWithoutRunsInput = {
774
- id?: string
775
- title?: string | null
776
- isArchived?: boolean
777
- sandboxPolicy?: string
778
- createdAt?: Date | string
779
- updatedAt?: Date | string
780
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
781
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
782
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
783
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
784
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
785
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
786
- }
787
-
788
- export type ChatThreadUncheckedCreateWithoutRunsInput = {
789
- id?: string
790
- userId: string
791
- title?: string | null
792
- isArchived?: boolean
793
- sandboxPolicy?: string
794
- createdAt?: Date | string
795
- updatedAt?: Date | string
796
- agentId?: string | null
797
- workspaceId?: string | null
798
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
799
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
800
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
801
- }
802
-
803
- export type ChatThreadCreateOrConnectWithoutRunsInput = {
804
- where: Prisma.ChatThreadWhereUniqueInput
805
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutRunsInput, Prisma.ChatThreadUncheckedCreateWithoutRunsInput>
806
- }
807
-
808
- export type ChatThreadUpsertWithoutRunsInput = {
809
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutRunsInput, Prisma.ChatThreadUncheckedUpdateWithoutRunsInput>
810
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutRunsInput, Prisma.ChatThreadUncheckedCreateWithoutRunsInput>
811
- where?: Prisma.ChatThreadWhereInput
812
- }
813
-
814
- export type ChatThreadUpdateToOneWithWhereWithoutRunsInput = {
815
- where?: Prisma.ChatThreadWhereInput
816
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutRunsInput, Prisma.ChatThreadUncheckedUpdateWithoutRunsInput>
817
- }
818
-
819
- export type ChatThreadUpdateWithoutRunsInput = {
820
- id?: Prisma.StringFieldUpdateOperationsInput | string
821
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
822
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
823
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
824
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
825
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
826
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
827
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
828
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
829
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
830
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
831
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
832
- }
833
-
834
- export type ChatThreadUncheckedUpdateWithoutRunsInput = {
835
- id?: Prisma.StringFieldUpdateOperationsInput | string
836
- userId?: Prisma.StringFieldUpdateOperationsInput | string
837
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
838
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
839
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
840
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
841
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
842
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
843
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
844
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
845
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
846
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
847
- }
848
-
849
- export type ChatThreadCreateWithoutInterruptsInput = {
850
- id?: string
851
- title?: string | null
852
- isArchived?: boolean
853
- sandboxPolicy?: string
854
- createdAt?: Date | string
855
- updatedAt?: Date | string
856
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
857
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
858
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
859
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
860
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
861
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
862
- }
863
-
864
- export type ChatThreadUncheckedCreateWithoutInterruptsInput = {
865
- id?: string
866
- userId: string
867
- title?: string | null
868
- isArchived?: boolean
869
- sandboxPolicy?: string
870
- createdAt?: Date | string
871
- updatedAt?: Date | string
872
- agentId?: string | null
873
- workspaceId?: string | null
874
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
875
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
876
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
877
- }
878
-
879
- export type ChatThreadCreateOrConnectWithoutInterruptsInput = {
880
- where: Prisma.ChatThreadWhereUniqueInput
881
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutInterruptsInput, Prisma.ChatThreadUncheckedCreateWithoutInterruptsInput>
882
- }
883
-
884
- export type ChatThreadUpsertWithoutInterruptsInput = {
885
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutInterruptsInput, Prisma.ChatThreadUncheckedUpdateWithoutInterruptsInput>
886
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutInterruptsInput, Prisma.ChatThreadUncheckedCreateWithoutInterruptsInput>
887
- where?: Prisma.ChatThreadWhereInput
888
- }
889
-
890
- export type ChatThreadUpdateToOneWithWhereWithoutInterruptsInput = {
891
- where?: Prisma.ChatThreadWhereInput
892
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutInterruptsInput, Prisma.ChatThreadUncheckedUpdateWithoutInterruptsInput>
893
- }
894
-
895
- export type ChatThreadUpdateWithoutInterruptsInput = {
896
- id?: Prisma.StringFieldUpdateOperationsInput | string
897
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
898
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
899
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
900
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
901
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
902
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
903
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
904
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
905
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
906
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
907
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
908
- }
909
-
910
- export type ChatThreadUncheckedUpdateWithoutInterruptsInput = {
911
- id?: Prisma.StringFieldUpdateOperationsInput | string
912
- userId?: Prisma.StringFieldUpdateOperationsInput | string
913
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
914
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
915
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
916
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
917
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
918
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
919
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
920
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
921
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
922
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
923
- }
924
-
925
- export type ChatThreadCreateWithoutGenerationsInput = {
926
- id?: string
927
- title?: string | null
928
- isArchived?: boolean
929
- sandboxPolicy?: string
930
- createdAt?: Date | string
931
- updatedAt?: Date | string
932
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
933
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
934
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
935
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
936
- agent?: Prisma.UserAgentCreateNestedOneWithoutThreadsInput
937
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
938
- }
939
-
940
- export type ChatThreadUncheckedCreateWithoutGenerationsInput = {
941
- id?: string
942
- userId: string
943
- title?: string | null
944
- isArchived?: boolean
945
- sandboxPolicy?: string
946
- createdAt?: Date | string
947
- updatedAt?: Date | string
948
- agentId?: string | null
949
- workspaceId?: string | null
950
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
951
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
952
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
953
- }
954
-
955
- export type ChatThreadCreateOrConnectWithoutGenerationsInput = {
956
- where: Prisma.ChatThreadWhereUniqueInput
957
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutGenerationsInput, Prisma.ChatThreadUncheckedCreateWithoutGenerationsInput>
958
- }
959
-
960
- export type ChatThreadUpsertWithoutGenerationsInput = {
961
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutGenerationsInput, Prisma.ChatThreadUncheckedUpdateWithoutGenerationsInput>
962
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutGenerationsInput, Prisma.ChatThreadUncheckedCreateWithoutGenerationsInput>
963
- where?: Prisma.ChatThreadWhereInput
964
- }
965
-
966
- export type ChatThreadUpdateToOneWithWhereWithoutGenerationsInput = {
967
- where?: Prisma.ChatThreadWhereInput
968
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutGenerationsInput, Prisma.ChatThreadUncheckedUpdateWithoutGenerationsInput>
969
- }
970
-
971
- export type ChatThreadUpdateWithoutGenerationsInput = {
972
- id?: Prisma.StringFieldUpdateOperationsInput | string
973
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
974
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
975
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
976
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
977
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
978
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
979
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
980
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
981
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
982
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
983
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
984
- }
985
-
986
- export type ChatThreadUncheckedUpdateWithoutGenerationsInput = {
987
- id?: Prisma.StringFieldUpdateOperationsInput | string
988
- userId?: Prisma.StringFieldUpdateOperationsInput | string
989
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
990
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
991
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
992
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
993
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
994
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
995
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
996
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
997
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
998
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
999
- }
1000
-
1001
- export type ChatThreadCreateWithoutAgentInput = {
1002
- id?: string
1003
- title?: string | null
1004
- isArchived?: boolean
1005
- sandboxPolicy?: string
1006
- createdAt?: Date | string
1007
- updatedAt?: Date | string
1008
- user: Prisma.UserCreateNestedOneWithoutChatThreadsInput
1009
- messages?: Prisma.ChatMessageCreateNestedManyWithoutThreadInput
1010
- runs?: Prisma.ChatRunCreateNestedManyWithoutThreadInput
1011
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutThreadInput
1012
- generations?: Prisma.GenerationRunCreateNestedManyWithoutThreadInput
1013
- workspace?: Prisma.HarnessWorkspaceCreateNestedOneWithoutThreadsInput
1014
- }
1015
-
1016
- export type ChatThreadUncheckedCreateWithoutAgentInput = {
1017
- id?: string
1018
- userId: string
1019
- title?: string | null
1020
- isArchived?: boolean
1021
- sandboxPolicy?: string
1022
- createdAt?: Date | string
1023
- updatedAt?: Date | string
1024
- workspaceId?: string | null
1025
- messages?: Prisma.ChatMessageUncheckedCreateNestedManyWithoutThreadInput
1026
- runs?: Prisma.ChatRunUncheckedCreateNestedManyWithoutThreadInput
1027
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutThreadInput
1028
- generations?: Prisma.GenerationRunUncheckedCreateNestedManyWithoutThreadInput
1029
- }
1030
-
1031
- export type ChatThreadCreateOrConnectWithoutAgentInput = {
1032
- where: Prisma.ChatThreadWhereUniqueInput
1033
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput>
1034
- }
1035
-
1036
- export type ChatThreadCreateManyAgentInputEnvelope = {
1037
- data: Prisma.ChatThreadCreateManyAgentInput | Prisma.ChatThreadCreateManyAgentInput[]
1038
- }
1039
-
1040
- export type ChatThreadUpsertWithWhereUniqueWithoutAgentInput = {
1041
- where: Prisma.ChatThreadWhereUniqueInput
1042
- update: Prisma.XOR<Prisma.ChatThreadUpdateWithoutAgentInput, Prisma.ChatThreadUncheckedUpdateWithoutAgentInput>
1043
- create: Prisma.XOR<Prisma.ChatThreadCreateWithoutAgentInput, Prisma.ChatThreadUncheckedCreateWithoutAgentInput>
1044
- }
1045
-
1046
- export type ChatThreadUpdateWithWhereUniqueWithoutAgentInput = {
1047
- where: Prisma.ChatThreadWhereUniqueInput
1048
- data: Prisma.XOR<Prisma.ChatThreadUpdateWithoutAgentInput, Prisma.ChatThreadUncheckedUpdateWithoutAgentInput>
1049
- }
1050
-
1051
- export type ChatThreadUpdateManyWithWhereWithoutAgentInput = {
1052
- where: Prisma.ChatThreadScalarWhereInput
1053
- data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyWithoutAgentInput>
1054
- }
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
-
1111
- export type ChatThreadCreateManyUserInput = {
1112
- id?: string
1113
- title?: string | null
1114
- isArchived?: boolean
1115
- sandboxPolicy?: string
1116
- createdAt?: Date | string
1117
- updatedAt?: Date | string
1118
- agentId?: string | null
1119
- workspaceId?: string | null
1120
- }
1121
-
1122
- export type ChatThreadUpdateWithoutUserInput = {
1123
- id?: Prisma.StringFieldUpdateOperationsInput | string
1124
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1125
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1126
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1127
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1128
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1129
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
1130
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
1131
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1132
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1133
- agent?: Prisma.UserAgentUpdateOneWithoutThreadsNestedInput
1134
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1135
- }
1136
-
1137
- export type ChatThreadUncheckedUpdateWithoutUserInput = {
1138
- id?: Prisma.StringFieldUpdateOperationsInput | string
1139
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1140
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1141
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1142
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1143
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1144
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1145
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1146
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
1147
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
1148
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
1149
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
1150
- }
1151
-
1152
- export type ChatThreadUncheckedUpdateManyWithoutUserInput = {
1153
- id?: Prisma.StringFieldUpdateOperationsInput | string
1154
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1155
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1156
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1157
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1158
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1159
- agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1160
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1161
- }
1162
-
1163
- export type ChatThreadCreateManyAgentInput = {
1164
- id?: string
1165
- userId: string
1166
- title?: string | null
1167
- isArchived?: boolean
1168
- sandboxPolicy?: string
1169
- createdAt?: Date | string
1170
- updatedAt?: Date | string
1171
- workspaceId?: string | null
1172
- }
1173
-
1174
- export type ChatThreadUpdateWithoutAgentInput = {
1175
- id?: Prisma.StringFieldUpdateOperationsInput | string
1176
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1177
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1178
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1179
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1180
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1181
- user?: Prisma.UserUpdateOneRequiredWithoutChatThreadsNestedInput
1182
- messages?: Prisma.ChatMessageUpdateManyWithoutThreadNestedInput
1183
- runs?: Prisma.ChatRunUpdateManyWithoutThreadNestedInput
1184
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutThreadNestedInput
1185
- generations?: Prisma.GenerationRunUpdateManyWithoutThreadNestedInput
1186
- workspace?: Prisma.HarnessWorkspaceUpdateOneWithoutThreadsNestedInput
1187
- }
1188
-
1189
- export type ChatThreadUncheckedUpdateWithoutAgentInput = {
1190
- id?: Prisma.StringFieldUpdateOperationsInput | string
1191
- userId?: Prisma.StringFieldUpdateOperationsInput | string
1192
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1193
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1194
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1195
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1196
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1197
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1198
- messages?: Prisma.ChatMessageUncheckedUpdateManyWithoutThreadNestedInput
1199
- runs?: Prisma.ChatRunUncheckedUpdateManyWithoutThreadNestedInput
1200
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutThreadNestedInput
1201
- generations?: Prisma.GenerationRunUncheckedUpdateManyWithoutThreadNestedInput
1202
- }
1203
-
1204
- export type ChatThreadUncheckedUpdateManyWithoutAgentInput = {
1205
- id?: Prisma.StringFieldUpdateOperationsInput | string
1206
- userId?: Prisma.StringFieldUpdateOperationsInput | string
1207
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1208
- isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean
1209
- sandboxPolicy?: Prisma.StringFieldUpdateOperationsInput | string
1210
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
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
1265
- }
1266
-
1267
-
1268
- /**
1269
- * Count Type ChatThreadCountOutputType
1270
- */
1271
-
1272
- export type ChatThreadCountOutputType = {
1273
- messages: number
1274
- runs: number
1275
- interrupts: number
1276
- generations: number
1277
- }
1278
-
1279
- export type ChatThreadCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1280
- messages?: boolean | ChatThreadCountOutputTypeCountMessagesArgs
1281
- runs?: boolean | ChatThreadCountOutputTypeCountRunsArgs
1282
- interrupts?: boolean | ChatThreadCountOutputTypeCountInterruptsArgs
1283
- generations?: boolean | ChatThreadCountOutputTypeCountGenerationsArgs
1284
- }
1285
-
1286
- /**
1287
- * ChatThreadCountOutputType without action
1288
- */
1289
- export type ChatThreadCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1290
- /**
1291
- * Select specific fields to fetch from the ChatThreadCountOutputType
1292
- */
1293
- select?: Prisma.ChatThreadCountOutputTypeSelect<ExtArgs> | null
1294
- }
1295
-
1296
- /**
1297
- * ChatThreadCountOutputType without action
1298
- */
1299
- export type ChatThreadCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
- where?: Prisma.ChatMessageWhereInput
1301
- }
1302
-
1303
- /**
1304
- * ChatThreadCountOutputType without action
1305
- */
1306
- export type ChatThreadCountOutputTypeCountRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
- where?: Prisma.ChatRunWhereInput
1308
- }
1309
-
1310
- /**
1311
- * ChatThreadCountOutputType without action
1312
- */
1313
- export type ChatThreadCountOutputTypeCountInterruptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
- where?: Prisma.ChatInterruptWhereInput
1315
- }
1316
-
1317
- /**
1318
- * ChatThreadCountOutputType without action
1319
- */
1320
- export type ChatThreadCountOutputTypeCountGenerationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1321
- where?: Prisma.GenerationRunWhereInput
1322
- }
1323
-
1324
-
1325
- export type ChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1326
- id?: boolean
1327
- userId?: boolean
1328
- title?: boolean
1329
- isArchived?: boolean
1330
- sandboxPolicy?: boolean
1331
- createdAt?: boolean
1332
- updatedAt?: boolean
1333
- agentId?: boolean
1334
- workspaceId?: boolean
1335
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1336
- messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
1337
- runs?: boolean | Prisma.ChatThread$runsArgs<ExtArgs>
1338
- interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
1339
- generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1340
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1341
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1342
- _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1343
- }, ExtArgs["result"]["chatThread"]>
1344
-
1345
- export type ChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1346
- id?: boolean
1347
- userId?: boolean
1348
- title?: boolean
1349
- isArchived?: boolean
1350
- sandboxPolicy?: boolean
1351
- createdAt?: boolean
1352
- updatedAt?: boolean
1353
- agentId?: boolean
1354
- workspaceId?: boolean
1355
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1356
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1357
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1358
- }, ExtArgs["result"]["chatThread"]>
1359
-
1360
- export type ChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1361
- id?: boolean
1362
- userId?: boolean
1363
- title?: boolean
1364
- isArchived?: boolean
1365
- sandboxPolicy?: boolean
1366
- createdAt?: boolean
1367
- updatedAt?: boolean
1368
- agentId?: boolean
1369
- workspaceId?: boolean
1370
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1371
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1372
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1373
- }, ExtArgs["result"]["chatThread"]>
1374
-
1375
- export type ChatThreadSelectScalar = {
1376
- id?: boolean
1377
- userId?: boolean
1378
- title?: boolean
1379
- isArchived?: boolean
1380
- sandboxPolicy?: boolean
1381
- createdAt?: boolean
1382
- updatedAt?: boolean
1383
- agentId?: boolean
1384
- workspaceId?: boolean
1385
- }
1386
-
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"]>
1388
- export type ChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1389
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1390
- messages?: boolean | Prisma.ChatThread$messagesArgs<ExtArgs>
1391
- runs?: boolean | Prisma.ChatThread$runsArgs<ExtArgs>
1392
- interrupts?: boolean | Prisma.ChatThread$interruptsArgs<ExtArgs>
1393
- generations?: boolean | Prisma.ChatThread$generationsArgs<ExtArgs>
1394
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1395
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1396
- _count?: boolean | Prisma.ChatThreadCountOutputTypeDefaultArgs<ExtArgs>
1397
- }
1398
- export type ChatThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1400
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1401
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1402
- }
1403
- export type ChatThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1405
- agent?: boolean | Prisma.ChatThread$agentArgs<ExtArgs>
1406
- workspace?: boolean | Prisma.ChatThread$workspaceArgs<ExtArgs>
1407
- }
1408
-
1409
- export type $ChatThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1410
- name: "ChatThread"
1411
- objects: {
1412
- user: Prisma.$UserPayload<ExtArgs>
1413
- messages: Prisma.$ChatMessagePayload<ExtArgs>[]
1414
- runs: Prisma.$ChatRunPayload<ExtArgs>[]
1415
- interrupts: Prisma.$ChatInterruptPayload<ExtArgs>[]
1416
- generations: Prisma.$GenerationRunPayload<ExtArgs>[]
1417
- agent: Prisma.$UserAgentPayload<ExtArgs> | null
1418
- workspace: Prisma.$HarnessWorkspacePayload<ExtArgs> | null
1419
- }
1420
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1421
- id: string
1422
- userId: string
1423
- title: string | null
1424
- isArchived: boolean
1425
- sandboxPolicy: string
1426
- createdAt: Date
1427
- updatedAt: Date
1428
- agentId: string | null
1429
- workspaceId: string | null
1430
- }, ExtArgs["result"]["chatThread"]>
1431
- composites: {}
1432
- }
1433
-
1434
- export type ChatThreadGetPayload<S extends boolean | null | undefined | ChatThreadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload, S>
1435
-
1436
- export type ChatThreadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1437
- Omit<ChatThreadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1438
- select?: ChatThreadCountAggregateInputType | true
1439
- }
1440
-
1441
- export interface ChatThreadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1442
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ChatThread'], meta: { name: 'ChatThread' } }
1443
- /**
1444
- * Find zero or one ChatThread that matches the filter.
1445
- * @param {ChatThreadFindUniqueArgs} args - Arguments to find a ChatThread
1446
- * @example
1447
- * // Get one ChatThread
1448
- * const chatThread = await prisma.chatThread.findUnique({
1449
- * where: {
1450
- * // ... provide filter here
1451
- * }
1452
- * })
1453
- */
1454
- findUnique<T extends ChatThreadFindUniqueArgs>(args: Prisma.SelectSubset<T, ChatThreadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1455
-
1456
- /**
1457
- * Find one ChatThread that matches the filter or throw an error with `error.code='P2025'`
1458
- * if no matches were found.
1459
- * @param {ChatThreadFindUniqueOrThrowArgs} args - Arguments to find a ChatThread
1460
- * @example
1461
- * // Get one ChatThread
1462
- * const chatThread = await prisma.chatThread.findUniqueOrThrow({
1463
- * where: {
1464
- * // ... provide filter here
1465
- * }
1466
- * })
1467
- */
1468
- findUniqueOrThrow<T extends ChatThreadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ChatThreadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1469
-
1470
- /**
1471
- * Find the first ChatThread that matches the filter.
1472
- * Note, that providing `undefined` is treated as the value not being there.
1473
- * Read more here: https://pris.ly/d/null-undefined
1474
- * @param {ChatThreadFindFirstArgs} args - Arguments to find a ChatThread
1475
- * @example
1476
- * // Get one ChatThread
1477
- * const chatThread = await prisma.chatThread.findFirst({
1478
- * where: {
1479
- * // ... provide filter here
1480
- * }
1481
- * })
1482
- */
1483
- findFirst<T extends ChatThreadFindFirstArgs>(args?: Prisma.SelectSubset<T, ChatThreadFindFirstArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1484
-
1485
- /**
1486
- * Find the first ChatThread that matches the filter or
1487
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1488
- * Note, that providing `undefined` is treated as the value not being there.
1489
- * Read more here: https://pris.ly/d/null-undefined
1490
- * @param {ChatThreadFindFirstOrThrowArgs} args - Arguments to find a ChatThread
1491
- * @example
1492
- * // Get one ChatThread
1493
- * const chatThread = await prisma.chatThread.findFirstOrThrow({
1494
- * where: {
1495
- * // ... provide filter here
1496
- * }
1497
- * })
1498
- */
1499
- findFirstOrThrow<T extends ChatThreadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ChatThreadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1500
-
1501
- /**
1502
- * Find zero or more ChatThreads that matches the filter.
1503
- * Note, that providing `undefined` is treated as the value not being there.
1504
- * Read more here: https://pris.ly/d/null-undefined
1505
- * @param {ChatThreadFindManyArgs} args - Arguments to filter and select certain fields only.
1506
- * @example
1507
- * // Get all ChatThreads
1508
- * const chatThreads = await prisma.chatThread.findMany()
1509
- *
1510
- * // Get first 10 ChatThreads
1511
- * const chatThreads = await prisma.chatThread.findMany({ take: 10 })
1512
- *
1513
- * // Only select the `id`
1514
- * const chatThreadWithIdOnly = await prisma.chatThread.findMany({ select: { id: true } })
1515
- *
1516
- */
1517
- findMany<T extends ChatThreadFindManyArgs>(args?: Prisma.SelectSubset<T, ChatThreadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1518
-
1519
- /**
1520
- * Create a ChatThread.
1521
- * @param {ChatThreadCreateArgs} args - Arguments to create a ChatThread.
1522
- * @example
1523
- * // Create one ChatThread
1524
- * const ChatThread = await prisma.chatThread.create({
1525
- * data: {
1526
- * // ... data to create a ChatThread
1527
- * }
1528
- * })
1529
- *
1530
- */
1531
- create<T extends ChatThreadCreateArgs>(args: Prisma.SelectSubset<T, ChatThreadCreateArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1532
-
1533
- /**
1534
- * Create many ChatThreads.
1535
- * @param {ChatThreadCreateManyArgs} args - Arguments to create many ChatThreads.
1536
- * @example
1537
- * // Create many ChatThreads
1538
- * const chatThread = await prisma.chatThread.createMany({
1539
- * data: [
1540
- * // ... provide data here
1541
- * ]
1542
- * })
1543
- *
1544
- */
1545
- createMany<T extends ChatThreadCreateManyArgs>(args?: Prisma.SelectSubset<T, ChatThreadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1546
-
1547
- /**
1548
- * Create many ChatThreads and returns the data saved in the database.
1549
- * @param {ChatThreadCreateManyAndReturnArgs} args - Arguments to create many ChatThreads.
1550
- * @example
1551
- * // Create many ChatThreads
1552
- * const chatThread = await prisma.chatThread.createManyAndReturn({
1553
- * data: [
1554
- * // ... provide data here
1555
- * ]
1556
- * })
1557
- *
1558
- * // Create many ChatThreads and only return the `id`
1559
- * const chatThreadWithIdOnly = await prisma.chatThread.createManyAndReturn({
1560
- * select: { id: true },
1561
- * data: [
1562
- * // ... provide data here
1563
- * ]
1564
- * })
1565
- * Note, that providing `undefined` is treated as the value not being there.
1566
- * Read more here: https://pris.ly/d/null-undefined
1567
- *
1568
- */
1569
- createManyAndReturn<T extends ChatThreadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ChatThreadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1570
-
1571
- /**
1572
- * Delete a ChatThread.
1573
- * @param {ChatThreadDeleteArgs} args - Arguments to delete one ChatThread.
1574
- * @example
1575
- * // Delete one ChatThread
1576
- * const ChatThread = await prisma.chatThread.delete({
1577
- * where: {
1578
- * // ... filter to delete one ChatThread
1579
- * }
1580
- * })
1581
- *
1582
- */
1583
- delete<T extends ChatThreadDeleteArgs>(args: Prisma.SelectSubset<T, ChatThreadDeleteArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1584
-
1585
- /**
1586
- * Update one ChatThread.
1587
- * @param {ChatThreadUpdateArgs} args - Arguments to update one ChatThread.
1588
- * @example
1589
- * // Update one ChatThread
1590
- * const chatThread = await prisma.chatThread.update({
1591
- * where: {
1592
- * // ... provide filter here
1593
- * },
1594
- * data: {
1595
- * // ... provide data here
1596
- * }
1597
- * })
1598
- *
1599
- */
1600
- update<T extends ChatThreadUpdateArgs>(args: Prisma.SelectSubset<T, ChatThreadUpdateArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1601
-
1602
- /**
1603
- * Delete zero or more ChatThreads.
1604
- * @param {ChatThreadDeleteManyArgs} args - Arguments to filter ChatThreads to delete.
1605
- * @example
1606
- * // Delete a few ChatThreads
1607
- * const { count } = await prisma.chatThread.deleteMany({
1608
- * where: {
1609
- * // ... provide filter here
1610
- * }
1611
- * })
1612
- *
1613
- */
1614
- deleteMany<T extends ChatThreadDeleteManyArgs>(args?: Prisma.SelectSubset<T, ChatThreadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1615
-
1616
- /**
1617
- * Update zero or more ChatThreads.
1618
- * Note, that providing `undefined` is treated as the value not being there.
1619
- * Read more here: https://pris.ly/d/null-undefined
1620
- * @param {ChatThreadUpdateManyArgs} args - Arguments to update one or more rows.
1621
- * @example
1622
- * // Update many ChatThreads
1623
- * const chatThread = await prisma.chatThread.updateMany({
1624
- * where: {
1625
- * // ... provide filter here
1626
- * },
1627
- * data: {
1628
- * // ... provide data here
1629
- * }
1630
- * })
1631
- *
1632
- */
1633
- updateMany<T extends ChatThreadUpdateManyArgs>(args: Prisma.SelectSubset<T, ChatThreadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1634
-
1635
- /**
1636
- * Update zero or more ChatThreads and returns the data updated in the database.
1637
- * @param {ChatThreadUpdateManyAndReturnArgs} args - Arguments to update many ChatThreads.
1638
- * @example
1639
- * // Update many ChatThreads
1640
- * const chatThread = await prisma.chatThread.updateManyAndReturn({
1641
- * where: {
1642
- * // ... provide filter here
1643
- * },
1644
- * data: [
1645
- * // ... provide data here
1646
- * ]
1647
- * })
1648
- *
1649
- * // Update zero or more ChatThreads and only return the `id`
1650
- * const chatThreadWithIdOnly = await prisma.chatThread.updateManyAndReturn({
1651
- * select: { id: true },
1652
- * where: {
1653
- * // ... provide filter here
1654
- * },
1655
- * data: [
1656
- * // ... provide data here
1657
- * ]
1658
- * })
1659
- * Note, that providing `undefined` is treated as the value not being there.
1660
- * Read more here: https://pris.ly/d/null-undefined
1661
- *
1662
- */
1663
- updateManyAndReturn<T extends ChatThreadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ChatThreadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1664
-
1665
- /**
1666
- * Create or update one ChatThread.
1667
- * @param {ChatThreadUpsertArgs} args - Arguments to update or create a ChatThread.
1668
- * @example
1669
- * // Update or create a ChatThread
1670
- * const chatThread = await prisma.chatThread.upsert({
1671
- * create: {
1672
- * // ... data to create a ChatThread
1673
- * },
1674
- * update: {
1675
- * // ... in case it already exists, update
1676
- * },
1677
- * where: {
1678
- * // ... the filter for the ChatThread we want to update
1679
- * }
1680
- * })
1681
- */
1682
- upsert<T extends ChatThreadUpsertArgs>(args: Prisma.SelectSubset<T, ChatThreadUpsertArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1683
-
1684
-
1685
- /**
1686
- * Count the number of ChatThreads.
1687
- * Note, that providing `undefined` is treated as the value not being there.
1688
- * Read more here: https://pris.ly/d/null-undefined
1689
- * @param {ChatThreadCountArgs} args - Arguments to filter ChatThreads to count.
1690
- * @example
1691
- * // Count the number of ChatThreads
1692
- * const count = await prisma.chatThread.count({
1693
- * where: {
1694
- * // ... the filter for the ChatThreads we want to count
1695
- * }
1696
- * })
1697
- **/
1698
- count<T extends ChatThreadCountArgs>(
1699
- args?: Prisma.Subset<T, ChatThreadCountArgs>,
1700
- ): Prisma.PrismaPromise<
1701
- T extends runtime.Types.Utils.Record<'select', any>
1702
- ? T['select'] extends true
1703
- ? number
1704
- : Prisma.GetScalarType<T['select'], ChatThreadCountAggregateOutputType>
1705
- : number
1706
- >
1707
-
1708
- /**
1709
- * Allows you to perform aggregations operations on a ChatThread.
1710
- * Note, that providing `undefined` is treated as the value not being there.
1711
- * Read more here: https://pris.ly/d/null-undefined
1712
- * @param {ChatThreadAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1713
- * @example
1714
- * // Ordered by age ascending
1715
- * // Where email contains prisma.io
1716
- * // Limited to the 10 users
1717
- * const aggregations = await prisma.user.aggregate({
1718
- * _avg: {
1719
- * age: true,
1720
- * },
1721
- * where: {
1722
- * email: {
1723
- * contains: "prisma.io",
1724
- * },
1725
- * },
1726
- * orderBy: {
1727
- * age: "asc",
1728
- * },
1729
- * take: 10,
1730
- * })
1731
- **/
1732
- aggregate<T extends ChatThreadAggregateArgs>(args: Prisma.Subset<T, ChatThreadAggregateArgs>): Prisma.PrismaPromise<GetChatThreadAggregateType<T>>
1733
-
1734
- /**
1735
- * Group by ChatThread.
1736
- * Note, that providing `undefined` is treated as the value not being there.
1737
- * Read more here: https://pris.ly/d/null-undefined
1738
- * @param {ChatThreadGroupByArgs} args - Group by arguments.
1739
- * @example
1740
- * // Group by city, order by createdAt, get count
1741
- * const result = await prisma.user.groupBy({
1742
- * by: ['city', 'createdAt'],
1743
- * orderBy: {
1744
- * createdAt: true
1745
- * },
1746
- * _count: {
1747
- * _all: true
1748
- * },
1749
- * })
1750
- *
1751
- **/
1752
- groupBy<
1753
- T extends ChatThreadGroupByArgs,
1754
- HasSelectOrTake extends Prisma.Or<
1755
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1756
- Prisma.Extends<'take', Prisma.Keys<T>>
1757
- >,
1758
- OrderByArg extends Prisma.True extends HasSelectOrTake
1759
- ? { orderBy: ChatThreadGroupByArgs['orderBy'] }
1760
- : { orderBy?: ChatThreadGroupByArgs['orderBy'] },
1761
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1762
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1763
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1764
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1765
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1766
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1767
- InputErrors extends ByEmpty extends Prisma.True
1768
- ? `Error: "by" must not be empty.`
1769
- : HavingValid extends Prisma.False
1770
- ? {
1771
- [P in HavingFields]: P extends ByFields
1772
- ? never
1773
- : P extends string
1774
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1775
- : [
1776
- Error,
1777
- 'Field ',
1778
- P,
1779
- ` in "having" needs to be provided in "by"`,
1780
- ]
1781
- }[HavingFields]
1782
- : 'take' extends Prisma.Keys<T>
1783
- ? 'orderBy' extends Prisma.Keys<T>
1784
- ? ByValid extends Prisma.True
1785
- ? {}
1786
- : {
1787
- [P in OrderFields]: P extends ByFields
1788
- ? never
1789
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1790
- }[OrderFields]
1791
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1792
- : 'skip' extends Prisma.Keys<T>
1793
- ? 'orderBy' extends Prisma.Keys<T>
1794
- ? ByValid extends Prisma.True
1795
- ? {}
1796
- : {
1797
- [P in OrderFields]: P extends ByFields
1798
- ? never
1799
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1800
- }[OrderFields]
1801
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1802
- : ByValid extends Prisma.True
1803
- ? {}
1804
- : {
1805
- [P in OrderFields]: P extends ByFields
1806
- ? never
1807
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1808
- }[OrderFields]
1809
- >(args: Prisma.SubsetIntersection<T, ChatThreadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatThreadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1810
- /**
1811
- * Fields of the ChatThread model
1812
- */
1813
- readonly fields: ChatThreadFieldRefs;
1814
- }
1815
-
1816
- /**
1817
- * The delegate class that acts as a "Promise-like" for ChatThread.
1818
- * Why is this prefixed with `Prisma__`?
1819
- * Because we want to prevent naming conflicts as mentioned in
1820
- * https://github.com/prisma/prisma-client-js/issues/707
1821
- */
1822
- export interface Prisma__ChatThreadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1823
- readonly [Symbol.toStringTag]: "PrismaPromise"
1824
- user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1825
- messages<T extends Prisma.ChatThread$messagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$messagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1826
- runs<T extends Prisma.ChatThread$runsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThread$runsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
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>
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>
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>
1831
- /**
1832
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1833
- * @param onfulfilled The callback to execute when the Promise is resolved.
1834
- * @param onrejected The callback to execute when the Promise is rejected.
1835
- * @returns A Promise for the completion of which ever callback is executed.
1836
- */
1837
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1838
- /**
1839
- * Attaches a callback for only the rejection of the Promise.
1840
- * @param onrejected The callback to execute when the Promise is rejected.
1841
- * @returns A Promise for the completion of the callback.
1842
- */
1843
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1844
- /**
1845
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1846
- * resolved value cannot be modified from the callback.
1847
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1848
- * @returns A Promise for the completion of the callback.
1849
- */
1850
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1851
- }
1852
-
1853
-
1854
-
1855
-
1856
- /**
1857
- * Fields of the ChatThread model
1858
- */
1859
- export interface ChatThreadFieldRefs {
1860
- readonly id: Prisma.FieldRef<"ChatThread", 'String'>
1861
- readonly userId: Prisma.FieldRef<"ChatThread", 'String'>
1862
- readonly title: Prisma.FieldRef<"ChatThread", 'String'>
1863
- readonly isArchived: Prisma.FieldRef<"ChatThread", 'Boolean'>
1864
- readonly sandboxPolicy: Prisma.FieldRef<"ChatThread", 'String'>
1865
- readonly createdAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
1866
- readonly updatedAt: Prisma.FieldRef<"ChatThread", 'DateTime'>
1867
- readonly agentId: Prisma.FieldRef<"ChatThread", 'String'>
1868
- readonly workspaceId: Prisma.FieldRef<"ChatThread", 'String'>
1869
- }
1870
-
1871
-
1872
- // Custom InputTypes
1873
- /**
1874
- * ChatThread findUnique
1875
- */
1876
- export type ChatThreadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1877
- /**
1878
- * Select specific fields to fetch from the ChatThread
1879
- */
1880
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
1881
- /**
1882
- * Omit specific fields from the ChatThread
1883
- */
1884
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
1885
- /**
1886
- * Choose, which related nodes to fetch as well
1887
- */
1888
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
1889
- /**
1890
- * Filter, which ChatThread to fetch.
1891
- */
1892
- where: Prisma.ChatThreadWhereUniqueInput
1893
- }
1894
-
1895
- /**
1896
- * ChatThread findUniqueOrThrow
1897
- */
1898
- export type ChatThreadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1899
- /**
1900
- * Select specific fields to fetch from the ChatThread
1901
- */
1902
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
1903
- /**
1904
- * Omit specific fields from the ChatThread
1905
- */
1906
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
1907
- /**
1908
- * Choose, which related nodes to fetch as well
1909
- */
1910
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
1911
- /**
1912
- * Filter, which ChatThread to fetch.
1913
- */
1914
- where: Prisma.ChatThreadWhereUniqueInput
1915
- }
1916
-
1917
- /**
1918
- * ChatThread findFirst
1919
- */
1920
- export type ChatThreadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1921
- /**
1922
- * Select specific fields to fetch from the ChatThread
1923
- */
1924
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
1925
- /**
1926
- * Omit specific fields from the ChatThread
1927
- */
1928
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
1929
- /**
1930
- * Choose, which related nodes to fetch as well
1931
- */
1932
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
1933
- /**
1934
- * Filter, which ChatThread to fetch.
1935
- */
1936
- where?: Prisma.ChatThreadWhereInput
1937
- /**
1938
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1939
- *
1940
- * Determine the order of ChatThreads to fetch.
1941
- */
1942
- orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
1943
- /**
1944
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1945
- *
1946
- * Sets the position for searching for ChatThreads.
1947
- */
1948
- cursor?: Prisma.ChatThreadWhereUniqueInput
1949
- /**
1950
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1951
- *
1952
- * Take `±n` ChatThreads from the position of the cursor.
1953
- */
1954
- take?: number
1955
- /**
1956
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1957
- *
1958
- * Skip the first `n` ChatThreads.
1959
- */
1960
- skip?: number
1961
- /**
1962
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1963
- *
1964
- * Filter by unique combinations of ChatThreads.
1965
- */
1966
- distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
1967
- }
1968
-
1969
- /**
1970
- * ChatThread findFirstOrThrow
1971
- */
1972
- export type ChatThreadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1973
- /**
1974
- * Select specific fields to fetch from the ChatThread
1975
- */
1976
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
1977
- /**
1978
- * Omit specific fields from the ChatThread
1979
- */
1980
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
1981
- /**
1982
- * Choose, which related nodes to fetch as well
1983
- */
1984
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
1985
- /**
1986
- * Filter, which ChatThread to fetch.
1987
- */
1988
- where?: Prisma.ChatThreadWhereInput
1989
- /**
1990
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1991
- *
1992
- * Determine the order of ChatThreads to fetch.
1993
- */
1994
- orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
1995
- /**
1996
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1997
- *
1998
- * Sets the position for searching for ChatThreads.
1999
- */
2000
- cursor?: Prisma.ChatThreadWhereUniqueInput
2001
- /**
2002
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2003
- *
2004
- * Take `±n` ChatThreads from the position of the cursor.
2005
- */
2006
- take?: number
2007
- /**
2008
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2009
- *
2010
- * Skip the first `n` ChatThreads.
2011
- */
2012
- skip?: number
2013
- /**
2014
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2015
- *
2016
- * Filter by unique combinations of ChatThreads.
2017
- */
2018
- distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
2019
- }
2020
-
2021
- /**
2022
- * ChatThread findMany
2023
- */
2024
- export type ChatThreadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2025
- /**
2026
- * Select specific fields to fetch from the ChatThread
2027
- */
2028
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2029
- /**
2030
- * Omit specific fields from the ChatThread
2031
- */
2032
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2033
- /**
2034
- * Choose, which related nodes to fetch as well
2035
- */
2036
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2037
- /**
2038
- * Filter, which ChatThreads to fetch.
2039
- */
2040
- where?: Prisma.ChatThreadWhereInput
2041
- /**
2042
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2043
- *
2044
- * Determine the order of ChatThreads to fetch.
2045
- */
2046
- orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
2047
- /**
2048
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2049
- *
2050
- * Sets the position for listing ChatThreads.
2051
- */
2052
- cursor?: Prisma.ChatThreadWhereUniqueInput
2053
- /**
2054
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2055
- *
2056
- * Take `±n` ChatThreads from the position of the cursor.
2057
- */
2058
- take?: number
2059
- /**
2060
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2061
- *
2062
- * Skip the first `n` ChatThreads.
2063
- */
2064
- skip?: number
2065
- /**
2066
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2067
- *
2068
- * Filter by unique combinations of ChatThreads.
2069
- */
2070
- distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
2071
- }
2072
-
2073
- /**
2074
- * ChatThread create
2075
- */
2076
- export type ChatThreadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2077
- /**
2078
- * Select specific fields to fetch from the ChatThread
2079
- */
2080
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2081
- /**
2082
- * Omit specific fields from the ChatThread
2083
- */
2084
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2085
- /**
2086
- * Choose, which related nodes to fetch as well
2087
- */
2088
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2089
- /**
2090
- * The data needed to create a ChatThread.
2091
- */
2092
- data: Prisma.XOR<Prisma.ChatThreadCreateInput, Prisma.ChatThreadUncheckedCreateInput>
2093
- }
2094
-
2095
- /**
2096
- * ChatThread createMany
2097
- */
2098
- export type ChatThreadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
- /**
2100
- * The data used to create many ChatThreads.
2101
- */
2102
- data: Prisma.ChatThreadCreateManyInput | Prisma.ChatThreadCreateManyInput[]
2103
- }
2104
-
2105
- /**
2106
- * ChatThread createManyAndReturn
2107
- */
2108
- export type ChatThreadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2109
- /**
2110
- * Select specific fields to fetch from the ChatThread
2111
- */
2112
- select?: Prisma.ChatThreadSelectCreateManyAndReturn<ExtArgs> | null
2113
- /**
2114
- * Omit specific fields from the ChatThread
2115
- */
2116
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2117
- /**
2118
- * The data used to create many ChatThreads.
2119
- */
2120
- data: Prisma.ChatThreadCreateManyInput | Prisma.ChatThreadCreateManyInput[]
2121
- /**
2122
- * Choose, which related nodes to fetch as well
2123
- */
2124
- include?: Prisma.ChatThreadIncludeCreateManyAndReturn<ExtArgs> | null
2125
- }
2126
-
2127
- /**
2128
- * ChatThread update
2129
- */
2130
- export type ChatThreadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2131
- /**
2132
- * Select specific fields to fetch from the ChatThread
2133
- */
2134
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2135
- /**
2136
- * Omit specific fields from the ChatThread
2137
- */
2138
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2139
- /**
2140
- * Choose, which related nodes to fetch as well
2141
- */
2142
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2143
- /**
2144
- * The data needed to update a ChatThread.
2145
- */
2146
- data: Prisma.XOR<Prisma.ChatThreadUpdateInput, Prisma.ChatThreadUncheckedUpdateInput>
2147
- /**
2148
- * Choose, which ChatThread to update.
2149
- */
2150
- where: Prisma.ChatThreadWhereUniqueInput
2151
- }
2152
-
2153
- /**
2154
- * ChatThread updateMany
2155
- */
2156
- export type ChatThreadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2157
- /**
2158
- * The data used to update ChatThreads.
2159
- */
2160
- data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyInput>
2161
- /**
2162
- * Filter which ChatThreads to update
2163
- */
2164
- where?: Prisma.ChatThreadWhereInput
2165
- /**
2166
- * Limit how many ChatThreads to update.
2167
- */
2168
- limit?: number
2169
- }
2170
-
2171
- /**
2172
- * ChatThread updateManyAndReturn
2173
- */
2174
- export type ChatThreadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2175
- /**
2176
- * Select specific fields to fetch from the ChatThread
2177
- */
2178
- select?: Prisma.ChatThreadSelectUpdateManyAndReturn<ExtArgs> | null
2179
- /**
2180
- * Omit specific fields from the ChatThread
2181
- */
2182
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2183
- /**
2184
- * The data used to update ChatThreads.
2185
- */
2186
- data: Prisma.XOR<Prisma.ChatThreadUpdateManyMutationInput, Prisma.ChatThreadUncheckedUpdateManyInput>
2187
- /**
2188
- * Filter which ChatThreads to update
2189
- */
2190
- where?: Prisma.ChatThreadWhereInput
2191
- /**
2192
- * Limit how many ChatThreads to update.
2193
- */
2194
- limit?: number
2195
- /**
2196
- * Choose, which related nodes to fetch as well
2197
- */
2198
- include?: Prisma.ChatThreadIncludeUpdateManyAndReturn<ExtArgs> | null
2199
- }
2200
-
2201
- /**
2202
- * ChatThread upsert
2203
- */
2204
- export type ChatThreadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2205
- /**
2206
- * Select specific fields to fetch from the ChatThread
2207
- */
2208
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2209
- /**
2210
- * Omit specific fields from the ChatThread
2211
- */
2212
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2213
- /**
2214
- * Choose, which related nodes to fetch as well
2215
- */
2216
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2217
- /**
2218
- * The filter to search for the ChatThread to update in case it exists.
2219
- */
2220
- where: Prisma.ChatThreadWhereUniqueInput
2221
- /**
2222
- * In case the ChatThread found by the `where` argument doesn't exist, create a new ChatThread with this data.
2223
- */
2224
- create: Prisma.XOR<Prisma.ChatThreadCreateInput, Prisma.ChatThreadUncheckedCreateInput>
2225
- /**
2226
- * In case the ChatThread was found with the provided `where` argument, update it with this data.
2227
- */
2228
- update: Prisma.XOR<Prisma.ChatThreadUpdateInput, Prisma.ChatThreadUncheckedUpdateInput>
2229
- }
2230
-
2231
- /**
2232
- * ChatThread delete
2233
- */
2234
- export type ChatThreadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2235
- /**
2236
- * Select specific fields to fetch from the ChatThread
2237
- */
2238
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2239
- /**
2240
- * Omit specific fields from the ChatThread
2241
- */
2242
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2243
- /**
2244
- * Choose, which related nodes to fetch as well
2245
- */
2246
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2247
- /**
2248
- * Filter which ChatThread to delete.
2249
- */
2250
- where: Prisma.ChatThreadWhereUniqueInput
2251
- }
2252
-
2253
- /**
2254
- * ChatThread deleteMany
2255
- */
2256
- export type ChatThreadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2257
- /**
2258
- * Filter which ChatThreads to delete
2259
- */
2260
- where?: Prisma.ChatThreadWhereInput
2261
- /**
2262
- * Limit how many ChatThreads to delete.
2263
- */
2264
- limit?: number
2265
- }
2266
-
2267
- /**
2268
- * ChatThread.messages
2269
- */
2270
- export type ChatThread$messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2271
- /**
2272
- * Select specific fields to fetch from the ChatMessage
2273
- */
2274
- select?: Prisma.ChatMessageSelect<ExtArgs> | null
2275
- /**
2276
- * Omit specific fields from the ChatMessage
2277
- */
2278
- omit?: Prisma.ChatMessageOmit<ExtArgs> | null
2279
- /**
2280
- * Choose, which related nodes to fetch as well
2281
- */
2282
- include?: Prisma.ChatMessageInclude<ExtArgs> | null
2283
- where?: Prisma.ChatMessageWhereInput
2284
- orderBy?: Prisma.ChatMessageOrderByWithRelationInput | Prisma.ChatMessageOrderByWithRelationInput[]
2285
- cursor?: Prisma.ChatMessageWhereUniqueInput
2286
- take?: number
2287
- skip?: number
2288
- distinct?: Prisma.ChatMessageScalarFieldEnum | Prisma.ChatMessageScalarFieldEnum[]
2289
- }
2290
-
2291
- /**
2292
- * ChatThread.runs
2293
- */
2294
- export type ChatThread$runsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2295
- /**
2296
- * Select specific fields to fetch from the ChatRun
2297
- */
2298
- select?: Prisma.ChatRunSelect<ExtArgs> | null
2299
- /**
2300
- * Omit specific fields from the ChatRun
2301
- */
2302
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
2303
- /**
2304
- * Choose, which related nodes to fetch as well
2305
- */
2306
- include?: Prisma.ChatRunInclude<ExtArgs> | null
2307
- where?: Prisma.ChatRunWhereInput
2308
- orderBy?: Prisma.ChatRunOrderByWithRelationInput | Prisma.ChatRunOrderByWithRelationInput[]
2309
- cursor?: Prisma.ChatRunWhereUniqueInput
2310
- take?: number
2311
- skip?: number
2312
- distinct?: Prisma.ChatRunScalarFieldEnum | Prisma.ChatRunScalarFieldEnum[]
2313
- }
2314
-
2315
- /**
2316
- * ChatThread.interrupts
2317
- */
2318
- export type ChatThread$interruptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2319
- /**
2320
- * Select specific fields to fetch from the ChatInterrupt
2321
- */
2322
- select?: Prisma.ChatInterruptSelect<ExtArgs> | null
2323
- /**
2324
- * Omit specific fields from the ChatInterrupt
2325
- */
2326
- omit?: Prisma.ChatInterruptOmit<ExtArgs> | null
2327
- /**
2328
- * Choose, which related nodes to fetch as well
2329
- */
2330
- include?: Prisma.ChatInterruptInclude<ExtArgs> | null
2331
- where?: Prisma.ChatInterruptWhereInput
2332
- orderBy?: Prisma.ChatInterruptOrderByWithRelationInput | Prisma.ChatInterruptOrderByWithRelationInput[]
2333
- cursor?: Prisma.ChatInterruptWhereUniqueInput
2334
- take?: number
2335
- skip?: number
2336
- distinct?: Prisma.ChatInterruptScalarFieldEnum | Prisma.ChatInterruptScalarFieldEnum[]
2337
- }
2338
-
2339
- /**
2340
- * ChatThread.generations
2341
- */
2342
- export type ChatThread$generationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2343
- /**
2344
- * Select specific fields to fetch from the GenerationRun
2345
- */
2346
- select?: Prisma.GenerationRunSelect<ExtArgs> | null
2347
- /**
2348
- * Omit specific fields from the GenerationRun
2349
- */
2350
- omit?: Prisma.GenerationRunOmit<ExtArgs> | null
2351
- /**
2352
- * Choose, which related nodes to fetch as well
2353
- */
2354
- include?: Prisma.GenerationRunInclude<ExtArgs> | null
2355
- where?: Prisma.GenerationRunWhereInput
2356
- orderBy?: Prisma.GenerationRunOrderByWithRelationInput | Prisma.GenerationRunOrderByWithRelationInput[]
2357
- cursor?: Prisma.GenerationRunWhereUniqueInput
2358
- take?: number
2359
- skip?: number
2360
- distinct?: Prisma.GenerationRunScalarFieldEnum | Prisma.GenerationRunScalarFieldEnum[]
2361
- }
2362
-
2363
- /**
2364
- * ChatThread.agent
2365
- */
2366
- export type ChatThread$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2367
- /**
2368
- * Select specific fields to fetch from the UserAgent
2369
- */
2370
- select?: Prisma.UserAgentSelect<ExtArgs> | null
2371
- /**
2372
- * Omit specific fields from the UserAgent
2373
- */
2374
- omit?: Prisma.UserAgentOmit<ExtArgs> | null
2375
- /**
2376
- * Choose, which related nodes to fetch as well
2377
- */
2378
- include?: Prisma.UserAgentInclude<ExtArgs> | null
2379
- where?: Prisma.UserAgentWhereInput
2380
- }
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
-
2401
- /**
2402
- * ChatThread without action
2403
- */
2404
- export type ChatThreadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2405
- /**
2406
- * Select specific fields to fetch from the ChatThread
2407
- */
2408
- select?: Prisma.ChatThreadSelect<ExtArgs> | null
2409
- /**
2410
- * Omit specific fields from the ChatThread
2411
- */
2412
- omit?: Prisma.ChatThreadOmit<ExtArgs> | null
2413
- /**
2414
- * Choose, which related nodes to fetch as well
2415
- */
2416
- include?: Prisma.ChatThreadInclude<ExtArgs> | null
2417
- }