@allbluecn/database 0.10.1 → 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 (119) hide show
  1. package/generated/internal/class.ts +4 -4
  2. package/generated/internal/prismaNamespace.ts +4 -1
  3. package/generated/internal/prismaNamespaceBrowser.ts +4 -1
  4. package/generated/models/Label.ts +199 -3
  5. package/generated/models/Plan.ts +77 -1
  6. package/generated/models/Project.ts +264 -0
  7. package/index.ts +14 -17
  8. package/migrations/20261029000000_plan_install_blob_quota/migration.sql +3 -0
  9. package/migrations/20261029000001_label_project_ownership/migration.sql +16 -0
  10. package/package.json +29 -21
  11. package/pglite-init.ts +75 -0
  12. package/schema.prisma +12 -1
  13. package/LICENSE +0 -661
  14. package/desktop-init.ts +0 -162
  15. package/generated-sqlite/browser.ts +0 -499
  16. package/generated-sqlite/client.ts +0 -523
  17. package/generated-sqlite/commonInputTypes.ts +0 -722
  18. package/generated-sqlite/enums.ts +0 -15
  19. package/generated-sqlite/internal/class.ts +0 -1154
  20. package/generated-sqlite/internal/prismaNamespace.ts +0 -9574
  21. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1759
  22. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  23. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  24. package/generated-sqlite/models/AiProvider.ts +0 -1605
  25. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  26. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  27. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  28. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  29. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  30. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  31. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  32. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  33. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  34. package/generated-sqlite/models/AuditLog.ts +0 -1287
  35. package/generated-sqlite/models/Blob.ts +0 -1425
  36. package/generated-sqlite/models/Block.ts +0 -1648
  37. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  38. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  39. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  40. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  41. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  42. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  43. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  44. package/generated-sqlite/models/ChatRun.ts +0 -1802
  45. package/generated-sqlite/models/ChatThread.ts +0 -2417
  46. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  47. package/generated-sqlite/models/Comment.ts +0 -2201
  48. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  49. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  50. package/generated-sqlite/models/Component.ts +0 -2132
  51. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  52. package/generated-sqlite/models/CustomRole.ts +0 -1209
  53. package/generated-sqlite/models/Design.ts +0 -2497
  54. package/generated-sqlite/models/DesignPage.ts +0 -2398
  55. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  56. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  57. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  58. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  59. package/generated-sqlite/models/EmailLog.ts +0 -1343
  60. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  61. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  62. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  63. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  64. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  65. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  66. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  67. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  68. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  69. package/generated-sqlite/models/Invoice.ts +0 -1707
  70. package/generated-sqlite/models/Iteration.ts +0 -1874
  71. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  72. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  73. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  74. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  75. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  76. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  77. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  78. package/generated-sqlite/models/LoginLog.ts +0 -1447
  79. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  80. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  81. package/generated-sqlite/models/PageVersion.ts +0 -1520
  82. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  83. package/generated-sqlite/models/Plan.ts +0 -2174
  84. package/generated-sqlite/models/Project.ts +0 -2628
  85. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  86. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  87. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  88. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  89. package/generated-sqlite/models/Reference.ts +0 -1175
  90. package/generated-sqlite/models/Review.ts +0 -1903
  91. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  92. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  93. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  94. package/generated-sqlite/models/Share.ts +0 -1674
  95. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  96. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  97. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  98. package/generated-sqlite/models/Story.ts +0 -3263
  99. package/generated-sqlite/models/Subscription.ts +0 -2137
  100. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  101. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  102. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  103. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  104. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  105. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  106. package/generated-sqlite/models/Template.ts +0 -1389
  107. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  108. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  109. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  110. package/generated-sqlite/models/User.ts +0 -21247
  111. package/generated-sqlite/models/UserAgent.ts +0 -2146
  112. package/generated-sqlite/models/UserSkill.ts +0 -1453
  113. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  114. package/generated-sqlite/models/Workspace.ts +0 -2341
  115. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  116. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  117. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  118. package/generated-sqlite/models.ts +0 -107
  119. package/schema.sqlite.prisma +0 -2043
@@ -1,1802 +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 `ChatRun` 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 ChatRun
17
- *
18
- */
19
- export type ChatRunModel = runtime.Types.Result.DefaultSelection<Prisma.$ChatRunPayload>
20
-
21
- export type AggregateChatRun = {
22
- _count: ChatRunCountAggregateOutputType | null
23
- _avg: ChatRunAvgAggregateOutputType | null
24
- _sum: ChatRunSumAggregateOutputType | null
25
- _min: ChatRunMinAggregateOutputType | null
26
- _max: ChatRunMaxAggregateOutputType | null
27
- }
28
-
29
- export type ChatRunAvgAggregateOutputType = {
30
- driverEpoch: number | null
31
- }
32
-
33
- export type ChatRunSumAggregateOutputType = {
34
- driverEpoch: number | null
35
- }
36
-
37
- export type ChatRunMinAggregateOutputType = {
38
- id: string | null
39
- threadId: string | null
40
- userId: string | null
41
- status: string | null
42
- startedAt: Date | null
43
- finishedAt: Date | null
44
- detachedSince: Date | null
45
- error: string | null
46
- sandboxKey: string | null
47
- cancelRequested: boolean | null
48
- driverEpoch: number | null
49
- }
50
-
51
- export type ChatRunMaxAggregateOutputType = {
52
- id: string | null
53
- threadId: string | null
54
- userId: string | null
55
- status: string | null
56
- startedAt: Date | null
57
- finishedAt: Date | null
58
- detachedSince: Date | null
59
- error: string | null
60
- sandboxKey: string | null
61
- cancelRequested: boolean | null
62
- driverEpoch: number | null
63
- }
64
-
65
- export type ChatRunCountAggregateOutputType = {
66
- id: number
67
- threadId: number
68
- userId: number
69
- status: number
70
- startedAt: number
71
- finishedAt: number
72
- detachedSince: number
73
- usage: number
74
- error: number
75
- sandboxKey: number
76
- cancelRequested: number
77
- driverEpoch: number
78
- _all: number
79
- }
80
-
81
-
82
- export type ChatRunAvgAggregateInputType = {
83
- driverEpoch?: true
84
- }
85
-
86
- export type ChatRunSumAggregateInputType = {
87
- driverEpoch?: true
88
- }
89
-
90
- export type ChatRunMinAggregateInputType = {
91
- id?: true
92
- threadId?: true
93
- userId?: true
94
- status?: true
95
- startedAt?: true
96
- finishedAt?: true
97
- detachedSince?: true
98
- error?: true
99
- sandboxKey?: true
100
- cancelRequested?: true
101
- driverEpoch?: true
102
- }
103
-
104
- export type ChatRunMaxAggregateInputType = {
105
- id?: true
106
- threadId?: true
107
- userId?: true
108
- status?: true
109
- startedAt?: true
110
- finishedAt?: true
111
- detachedSince?: true
112
- error?: true
113
- sandboxKey?: true
114
- cancelRequested?: true
115
- driverEpoch?: true
116
- }
117
-
118
- export type ChatRunCountAggregateInputType = {
119
- id?: true
120
- threadId?: true
121
- userId?: true
122
- status?: true
123
- startedAt?: true
124
- finishedAt?: true
125
- detachedSince?: true
126
- usage?: true
127
- error?: true
128
- sandboxKey?: true
129
- cancelRequested?: true
130
- driverEpoch?: true
131
- _all?: true
132
- }
133
-
134
- export type ChatRunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
135
- /**
136
- * Filter which ChatRun to aggregate.
137
- */
138
- where?: Prisma.ChatRunWhereInput
139
- /**
140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
141
- *
142
- * Determine the order of ChatRuns to fetch.
143
- */
144
- orderBy?: Prisma.ChatRunOrderByWithRelationInput | Prisma.ChatRunOrderByWithRelationInput[]
145
- /**
146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
147
- *
148
- * Sets the start position
149
- */
150
- cursor?: Prisma.ChatRunWhereUniqueInput
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
153
- *
154
- * Take `±n` ChatRuns from the position of the cursor.
155
- */
156
- take?: number
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
159
- *
160
- * Skip the first `n` ChatRuns.
161
- */
162
- skip?: number
163
- /**
164
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
- *
166
- * Count returned ChatRuns
167
- **/
168
- _count?: true | ChatRunCountAggregateInputType
169
- /**
170
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
- *
172
- * Select which fields to average
173
- **/
174
- _avg?: ChatRunAvgAggregateInputType
175
- /**
176
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
- *
178
- * Select which fields to sum
179
- **/
180
- _sum?: ChatRunSumAggregateInputType
181
- /**
182
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
- *
184
- * Select which fields to find the minimum value
185
- **/
186
- _min?: ChatRunMinAggregateInputType
187
- /**
188
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
- *
190
- * Select which fields to find the maximum value
191
- **/
192
- _max?: ChatRunMaxAggregateInputType
193
- }
194
-
195
- export type GetChatRunAggregateType<T extends ChatRunAggregateArgs> = {
196
- [P in keyof T & keyof AggregateChatRun]: P extends '_count' | 'count'
197
- ? T[P] extends true
198
- ? number
199
- : Prisma.GetScalarType<T[P], AggregateChatRun[P]>
200
- : Prisma.GetScalarType<T[P], AggregateChatRun[P]>
201
- }
202
-
203
-
204
-
205
-
206
- export type ChatRunGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
207
- where?: Prisma.ChatRunWhereInput
208
- orderBy?: Prisma.ChatRunOrderByWithAggregationInput | Prisma.ChatRunOrderByWithAggregationInput[]
209
- by: Prisma.ChatRunScalarFieldEnum[] | Prisma.ChatRunScalarFieldEnum
210
- having?: Prisma.ChatRunScalarWhereWithAggregatesInput
211
- take?: number
212
- skip?: number
213
- _count?: ChatRunCountAggregateInputType | true
214
- _avg?: ChatRunAvgAggregateInputType
215
- _sum?: ChatRunSumAggregateInputType
216
- _min?: ChatRunMinAggregateInputType
217
- _max?: ChatRunMaxAggregateInputType
218
- }
219
-
220
- export type ChatRunGroupByOutputType = {
221
- id: string
222
- threadId: string
223
- userId: string
224
- status: string
225
- startedAt: Date
226
- finishedAt: Date | null
227
- detachedSince: Date | null
228
- usage: runtime.JsonValue | null
229
- error: string | null
230
- sandboxKey: string | null
231
- cancelRequested: boolean | null
232
- driverEpoch: number | null
233
- _count: ChatRunCountAggregateOutputType | null
234
- _avg: ChatRunAvgAggregateOutputType | null
235
- _sum: ChatRunSumAggregateOutputType | null
236
- _min: ChatRunMinAggregateOutputType | null
237
- _max: ChatRunMaxAggregateOutputType | null
238
- }
239
-
240
- export type GetChatRunGroupByPayload<T extends ChatRunGroupByArgs> = Prisma.PrismaPromise<
241
- Array<
242
- Prisma.PickEnumerable<ChatRunGroupByOutputType, T['by']> &
243
- {
244
- [P in ((keyof T) & (keyof ChatRunGroupByOutputType))]: P extends '_count'
245
- ? T[P] extends boolean
246
- ? number
247
- : Prisma.GetScalarType<T[P], ChatRunGroupByOutputType[P]>
248
- : Prisma.GetScalarType<T[P], ChatRunGroupByOutputType[P]>
249
- }
250
- >
251
- >
252
-
253
-
254
-
255
- export type ChatRunWhereInput = {
256
- AND?: Prisma.ChatRunWhereInput | Prisma.ChatRunWhereInput[]
257
- OR?: Prisma.ChatRunWhereInput[]
258
- NOT?: Prisma.ChatRunWhereInput | Prisma.ChatRunWhereInput[]
259
- id?: Prisma.StringFilter<"ChatRun"> | string
260
- threadId?: Prisma.StringFilter<"ChatRun"> | string
261
- userId?: Prisma.StringFilter<"ChatRun"> | string
262
- status?: Prisma.StringFilter<"ChatRun"> | string
263
- startedAt?: Prisma.DateTimeFilter<"ChatRun"> | Date | string
264
- finishedAt?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
265
- detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
266
- usage?: Prisma.JsonNullableFilter<"ChatRun">
267
- error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
268
- sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
269
- cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
270
- driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
271
- thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
272
- interrupts?: Prisma.ChatInterruptListRelationFilter
273
- }
274
-
275
- export type ChatRunOrderByWithRelationInput = {
276
- id?: Prisma.SortOrder
277
- threadId?: Prisma.SortOrder
278
- userId?: Prisma.SortOrder
279
- status?: Prisma.SortOrder
280
- startedAt?: Prisma.SortOrder
281
- finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
282
- detachedSince?: Prisma.SortOrderInput | Prisma.SortOrder
283
- usage?: Prisma.SortOrderInput | Prisma.SortOrder
284
- error?: Prisma.SortOrderInput | Prisma.SortOrder
285
- sandboxKey?: Prisma.SortOrderInput | Prisma.SortOrder
286
- cancelRequested?: Prisma.SortOrderInput | Prisma.SortOrder
287
- driverEpoch?: Prisma.SortOrderInput | Prisma.SortOrder
288
- thread?: Prisma.ChatThreadOrderByWithRelationInput
289
- interrupts?: Prisma.ChatInterruptOrderByRelationAggregateInput
290
- }
291
-
292
- export type ChatRunWhereUniqueInput = Prisma.AtLeast<{
293
- id?: string
294
- AND?: Prisma.ChatRunWhereInput | Prisma.ChatRunWhereInput[]
295
- OR?: Prisma.ChatRunWhereInput[]
296
- NOT?: Prisma.ChatRunWhereInput | Prisma.ChatRunWhereInput[]
297
- threadId?: Prisma.StringFilter<"ChatRun"> | string
298
- userId?: Prisma.StringFilter<"ChatRun"> | string
299
- status?: Prisma.StringFilter<"ChatRun"> | string
300
- startedAt?: Prisma.DateTimeFilter<"ChatRun"> | Date | string
301
- finishedAt?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
302
- detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
303
- usage?: Prisma.JsonNullableFilter<"ChatRun">
304
- error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
305
- sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
306
- cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
307
- driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
308
- thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
309
- interrupts?: Prisma.ChatInterruptListRelationFilter
310
- }, "id">
311
-
312
- export type ChatRunOrderByWithAggregationInput = {
313
- id?: Prisma.SortOrder
314
- threadId?: Prisma.SortOrder
315
- userId?: Prisma.SortOrder
316
- status?: Prisma.SortOrder
317
- startedAt?: Prisma.SortOrder
318
- finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
319
- detachedSince?: Prisma.SortOrderInput | Prisma.SortOrder
320
- usage?: Prisma.SortOrderInput | Prisma.SortOrder
321
- error?: Prisma.SortOrderInput | Prisma.SortOrder
322
- sandboxKey?: Prisma.SortOrderInput | Prisma.SortOrder
323
- cancelRequested?: Prisma.SortOrderInput | Prisma.SortOrder
324
- driverEpoch?: Prisma.SortOrderInput | Prisma.SortOrder
325
- _count?: Prisma.ChatRunCountOrderByAggregateInput
326
- _avg?: Prisma.ChatRunAvgOrderByAggregateInput
327
- _max?: Prisma.ChatRunMaxOrderByAggregateInput
328
- _min?: Prisma.ChatRunMinOrderByAggregateInput
329
- _sum?: Prisma.ChatRunSumOrderByAggregateInput
330
- }
331
-
332
- export type ChatRunScalarWhereWithAggregatesInput = {
333
- AND?: Prisma.ChatRunScalarWhereWithAggregatesInput | Prisma.ChatRunScalarWhereWithAggregatesInput[]
334
- OR?: Prisma.ChatRunScalarWhereWithAggregatesInput[]
335
- NOT?: Prisma.ChatRunScalarWhereWithAggregatesInput | Prisma.ChatRunScalarWhereWithAggregatesInput[]
336
- id?: Prisma.StringWithAggregatesFilter<"ChatRun"> | string
337
- threadId?: Prisma.StringWithAggregatesFilter<"ChatRun"> | string
338
- userId?: Prisma.StringWithAggregatesFilter<"ChatRun"> | string
339
- status?: Prisma.StringWithAggregatesFilter<"ChatRun"> | string
340
- startedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatRun"> | Date | string
341
- finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ChatRun"> | Date | string | null
342
- detachedSince?: Prisma.DateTimeNullableWithAggregatesFilter<"ChatRun"> | Date | string | null
343
- usage?: Prisma.JsonNullableWithAggregatesFilter<"ChatRun">
344
- error?: Prisma.StringNullableWithAggregatesFilter<"ChatRun"> | string | null
345
- sandboxKey?: Prisma.StringNullableWithAggregatesFilter<"ChatRun"> | string | null
346
- cancelRequested?: Prisma.BoolNullableWithAggregatesFilter<"ChatRun"> | boolean | null
347
- driverEpoch?: Prisma.IntNullableWithAggregatesFilter<"ChatRun"> | number | null
348
- }
349
-
350
- export type ChatRunCreateInput = {
351
- id?: string
352
- userId: string
353
- status: string
354
- startedAt?: Date | string
355
- finishedAt?: Date | string | null
356
- detachedSince?: Date | string | null
357
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
358
- error?: string | null
359
- sandboxKey?: string | null
360
- cancelRequested?: boolean | null
361
- driverEpoch?: number | null
362
- thread: Prisma.ChatThreadCreateNestedOneWithoutRunsInput
363
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutRunInput
364
- }
365
-
366
- export type ChatRunUncheckedCreateInput = {
367
- id?: string
368
- threadId: string
369
- userId: string
370
- status: string
371
- startedAt?: Date | string
372
- finishedAt?: Date | string | null
373
- detachedSince?: Date | string | null
374
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
375
- error?: string | null
376
- sandboxKey?: string | null
377
- cancelRequested?: boolean | null
378
- driverEpoch?: number | null
379
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutRunInput
380
- }
381
-
382
- export type ChatRunUpdateInput = {
383
- id?: Prisma.StringFieldUpdateOperationsInput | string
384
- userId?: Prisma.StringFieldUpdateOperationsInput | string
385
- status?: Prisma.StringFieldUpdateOperationsInput | string
386
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
387
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
388
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
389
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
390
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
391
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
392
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
393
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
394
- thread?: Prisma.ChatThreadUpdateOneRequiredWithoutRunsNestedInput
395
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutRunNestedInput
396
- }
397
-
398
- export type ChatRunUncheckedUpdateInput = {
399
- id?: Prisma.StringFieldUpdateOperationsInput | string
400
- threadId?: Prisma.StringFieldUpdateOperationsInput | string
401
- userId?: Prisma.StringFieldUpdateOperationsInput | string
402
- status?: Prisma.StringFieldUpdateOperationsInput | string
403
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
404
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
405
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
406
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
407
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
408
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
409
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
410
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
411
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutRunNestedInput
412
- }
413
-
414
- export type ChatRunCreateManyInput = {
415
- id?: string
416
- threadId: string
417
- userId: string
418
- status: string
419
- startedAt?: Date | string
420
- finishedAt?: Date | string | null
421
- detachedSince?: Date | string | null
422
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
423
- error?: string | null
424
- sandboxKey?: string | null
425
- cancelRequested?: boolean | null
426
- driverEpoch?: number | null
427
- }
428
-
429
- export type ChatRunUpdateManyMutationInput = {
430
- id?: Prisma.StringFieldUpdateOperationsInput | string
431
- userId?: Prisma.StringFieldUpdateOperationsInput | string
432
- status?: Prisma.StringFieldUpdateOperationsInput | string
433
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
434
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
435
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
436
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
437
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
438
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
439
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
440
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
441
- }
442
-
443
- export type ChatRunUncheckedUpdateManyInput = {
444
- id?: Prisma.StringFieldUpdateOperationsInput | string
445
- threadId?: Prisma.StringFieldUpdateOperationsInput | string
446
- userId?: Prisma.StringFieldUpdateOperationsInput | string
447
- status?: Prisma.StringFieldUpdateOperationsInput | string
448
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
449
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
450
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
451
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
452
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
453
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
454
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
455
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
456
- }
457
-
458
- export type ChatRunListRelationFilter = {
459
- every?: Prisma.ChatRunWhereInput
460
- some?: Prisma.ChatRunWhereInput
461
- none?: Prisma.ChatRunWhereInput
462
- }
463
-
464
- export type ChatRunOrderByRelationAggregateInput = {
465
- _count?: Prisma.SortOrder
466
- }
467
-
468
- export type ChatRunCountOrderByAggregateInput = {
469
- id?: Prisma.SortOrder
470
- threadId?: Prisma.SortOrder
471
- userId?: Prisma.SortOrder
472
- status?: Prisma.SortOrder
473
- startedAt?: Prisma.SortOrder
474
- finishedAt?: Prisma.SortOrder
475
- detachedSince?: Prisma.SortOrder
476
- usage?: Prisma.SortOrder
477
- error?: Prisma.SortOrder
478
- sandboxKey?: Prisma.SortOrder
479
- cancelRequested?: Prisma.SortOrder
480
- driverEpoch?: Prisma.SortOrder
481
- }
482
-
483
- export type ChatRunAvgOrderByAggregateInput = {
484
- driverEpoch?: Prisma.SortOrder
485
- }
486
-
487
- export type ChatRunMaxOrderByAggregateInput = {
488
- id?: Prisma.SortOrder
489
- threadId?: Prisma.SortOrder
490
- userId?: Prisma.SortOrder
491
- status?: Prisma.SortOrder
492
- startedAt?: Prisma.SortOrder
493
- finishedAt?: Prisma.SortOrder
494
- detachedSince?: Prisma.SortOrder
495
- error?: Prisma.SortOrder
496
- sandboxKey?: Prisma.SortOrder
497
- cancelRequested?: Prisma.SortOrder
498
- driverEpoch?: Prisma.SortOrder
499
- }
500
-
501
- export type ChatRunMinOrderByAggregateInput = {
502
- id?: Prisma.SortOrder
503
- threadId?: Prisma.SortOrder
504
- userId?: Prisma.SortOrder
505
- status?: Prisma.SortOrder
506
- startedAt?: Prisma.SortOrder
507
- finishedAt?: Prisma.SortOrder
508
- detachedSince?: Prisma.SortOrder
509
- error?: Prisma.SortOrder
510
- sandboxKey?: Prisma.SortOrder
511
- cancelRequested?: Prisma.SortOrder
512
- driverEpoch?: Prisma.SortOrder
513
- }
514
-
515
- export type ChatRunSumOrderByAggregateInput = {
516
- driverEpoch?: Prisma.SortOrder
517
- }
518
-
519
- export type ChatRunScalarRelationFilter = {
520
- is?: Prisma.ChatRunWhereInput
521
- isNot?: Prisma.ChatRunWhereInput
522
- }
523
-
524
- export type ChatRunCreateNestedManyWithoutThreadInput = {
525
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput> | Prisma.ChatRunCreateWithoutThreadInput[] | Prisma.ChatRunUncheckedCreateWithoutThreadInput[]
526
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutThreadInput | Prisma.ChatRunCreateOrConnectWithoutThreadInput[]
527
- createMany?: Prisma.ChatRunCreateManyThreadInputEnvelope
528
- connect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
529
- }
530
-
531
- export type ChatRunUncheckedCreateNestedManyWithoutThreadInput = {
532
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput> | Prisma.ChatRunCreateWithoutThreadInput[] | Prisma.ChatRunUncheckedCreateWithoutThreadInput[]
533
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutThreadInput | Prisma.ChatRunCreateOrConnectWithoutThreadInput[]
534
- createMany?: Prisma.ChatRunCreateManyThreadInputEnvelope
535
- connect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
536
- }
537
-
538
- export type ChatRunUpdateManyWithoutThreadNestedInput = {
539
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput> | Prisma.ChatRunCreateWithoutThreadInput[] | Prisma.ChatRunUncheckedCreateWithoutThreadInput[]
540
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutThreadInput | Prisma.ChatRunCreateOrConnectWithoutThreadInput[]
541
- upsert?: Prisma.ChatRunUpsertWithWhereUniqueWithoutThreadInput | Prisma.ChatRunUpsertWithWhereUniqueWithoutThreadInput[]
542
- createMany?: Prisma.ChatRunCreateManyThreadInputEnvelope
543
- set?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
544
- disconnect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
545
- delete?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
546
- connect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
547
- update?: Prisma.ChatRunUpdateWithWhereUniqueWithoutThreadInput | Prisma.ChatRunUpdateWithWhereUniqueWithoutThreadInput[]
548
- updateMany?: Prisma.ChatRunUpdateManyWithWhereWithoutThreadInput | Prisma.ChatRunUpdateManyWithWhereWithoutThreadInput[]
549
- deleteMany?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
550
- }
551
-
552
- export type ChatRunUncheckedUpdateManyWithoutThreadNestedInput = {
553
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput> | Prisma.ChatRunCreateWithoutThreadInput[] | Prisma.ChatRunUncheckedCreateWithoutThreadInput[]
554
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutThreadInput | Prisma.ChatRunCreateOrConnectWithoutThreadInput[]
555
- upsert?: Prisma.ChatRunUpsertWithWhereUniqueWithoutThreadInput | Prisma.ChatRunUpsertWithWhereUniqueWithoutThreadInput[]
556
- createMany?: Prisma.ChatRunCreateManyThreadInputEnvelope
557
- set?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
558
- disconnect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
559
- delete?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
560
- connect?: Prisma.ChatRunWhereUniqueInput | Prisma.ChatRunWhereUniqueInput[]
561
- update?: Prisma.ChatRunUpdateWithWhereUniqueWithoutThreadInput | Prisma.ChatRunUpdateWithWhereUniqueWithoutThreadInput[]
562
- updateMany?: Prisma.ChatRunUpdateManyWithWhereWithoutThreadInput | Prisma.ChatRunUpdateManyWithWhereWithoutThreadInput[]
563
- deleteMany?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
564
- }
565
-
566
- export type NullableBoolFieldUpdateOperationsInput = {
567
- set?: boolean | null
568
- }
569
-
570
- export type NullableIntFieldUpdateOperationsInput = {
571
- set?: number | null
572
- increment?: number
573
- decrement?: number
574
- multiply?: number
575
- divide?: number
576
- }
577
-
578
- export type ChatRunCreateNestedOneWithoutInterruptsInput = {
579
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
580
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutInterruptsInput
581
- connect?: Prisma.ChatRunWhereUniqueInput
582
- }
583
-
584
- export type ChatRunUpdateOneRequiredWithoutInterruptsNestedInput = {
585
- create?: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
586
- connectOrCreate?: Prisma.ChatRunCreateOrConnectWithoutInterruptsInput
587
- upsert?: Prisma.ChatRunUpsertWithoutInterruptsInput
588
- connect?: Prisma.ChatRunWhereUniqueInput
589
- update?: Prisma.XOR<Prisma.XOR<Prisma.ChatRunUpdateToOneWithWhereWithoutInterruptsInput, Prisma.ChatRunUpdateWithoutInterruptsInput>, Prisma.ChatRunUncheckedUpdateWithoutInterruptsInput>
590
- }
591
-
592
- export type ChatRunCreateWithoutThreadInput = {
593
- id?: string
594
- userId: string
595
- status: string
596
- startedAt?: Date | string
597
- finishedAt?: Date | string | null
598
- detachedSince?: Date | string | null
599
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
600
- error?: string | null
601
- sandboxKey?: string | null
602
- cancelRequested?: boolean | null
603
- driverEpoch?: number | null
604
- interrupts?: Prisma.ChatInterruptCreateNestedManyWithoutRunInput
605
- }
606
-
607
- export type ChatRunUncheckedCreateWithoutThreadInput = {
608
- id?: string
609
- userId: string
610
- status: string
611
- startedAt?: Date | string
612
- finishedAt?: Date | string | null
613
- detachedSince?: Date | string | null
614
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
615
- error?: string | null
616
- sandboxKey?: string | null
617
- cancelRequested?: boolean | null
618
- driverEpoch?: number | null
619
- interrupts?: Prisma.ChatInterruptUncheckedCreateNestedManyWithoutRunInput
620
- }
621
-
622
- export type ChatRunCreateOrConnectWithoutThreadInput = {
623
- where: Prisma.ChatRunWhereUniqueInput
624
- create: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput>
625
- }
626
-
627
- export type ChatRunCreateManyThreadInputEnvelope = {
628
- data: Prisma.ChatRunCreateManyThreadInput | Prisma.ChatRunCreateManyThreadInput[]
629
- }
630
-
631
- export type ChatRunUpsertWithWhereUniqueWithoutThreadInput = {
632
- where: Prisma.ChatRunWhereUniqueInput
633
- update: Prisma.XOR<Prisma.ChatRunUpdateWithoutThreadInput, Prisma.ChatRunUncheckedUpdateWithoutThreadInput>
634
- create: Prisma.XOR<Prisma.ChatRunCreateWithoutThreadInput, Prisma.ChatRunUncheckedCreateWithoutThreadInput>
635
- }
636
-
637
- export type ChatRunUpdateWithWhereUniqueWithoutThreadInput = {
638
- where: Prisma.ChatRunWhereUniqueInput
639
- data: Prisma.XOR<Prisma.ChatRunUpdateWithoutThreadInput, Prisma.ChatRunUncheckedUpdateWithoutThreadInput>
640
- }
641
-
642
- export type ChatRunUpdateManyWithWhereWithoutThreadInput = {
643
- where: Prisma.ChatRunScalarWhereInput
644
- data: Prisma.XOR<Prisma.ChatRunUpdateManyMutationInput, Prisma.ChatRunUncheckedUpdateManyWithoutThreadInput>
645
- }
646
-
647
- export type ChatRunScalarWhereInput = {
648
- AND?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
649
- OR?: Prisma.ChatRunScalarWhereInput[]
650
- NOT?: Prisma.ChatRunScalarWhereInput | Prisma.ChatRunScalarWhereInput[]
651
- id?: Prisma.StringFilter<"ChatRun"> | string
652
- threadId?: Prisma.StringFilter<"ChatRun"> | string
653
- userId?: Prisma.StringFilter<"ChatRun"> | string
654
- status?: Prisma.StringFilter<"ChatRun"> | string
655
- startedAt?: Prisma.DateTimeFilter<"ChatRun"> | Date | string
656
- finishedAt?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
657
- detachedSince?: Prisma.DateTimeNullableFilter<"ChatRun"> | Date | string | null
658
- usage?: Prisma.JsonNullableFilter<"ChatRun">
659
- error?: Prisma.StringNullableFilter<"ChatRun"> | string | null
660
- sandboxKey?: Prisma.StringNullableFilter<"ChatRun"> | string | null
661
- cancelRequested?: Prisma.BoolNullableFilter<"ChatRun"> | boolean | null
662
- driverEpoch?: Prisma.IntNullableFilter<"ChatRun"> | number | null
663
- }
664
-
665
- export type ChatRunCreateWithoutInterruptsInput = {
666
- id?: string
667
- userId: string
668
- status: string
669
- startedAt?: Date | string
670
- finishedAt?: Date | string | null
671
- detachedSince?: Date | string | null
672
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
673
- error?: string | null
674
- sandboxKey?: string | null
675
- cancelRequested?: boolean | null
676
- driverEpoch?: number | null
677
- thread: Prisma.ChatThreadCreateNestedOneWithoutRunsInput
678
- }
679
-
680
- export type ChatRunUncheckedCreateWithoutInterruptsInput = {
681
- id?: string
682
- threadId: string
683
- userId: string
684
- status: string
685
- startedAt?: Date | string
686
- finishedAt?: Date | string | null
687
- detachedSince?: Date | string | null
688
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
689
- error?: string | null
690
- sandboxKey?: string | null
691
- cancelRequested?: boolean | null
692
- driverEpoch?: number | null
693
- }
694
-
695
- export type ChatRunCreateOrConnectWithoutInterruptsInput = {
696
- where: Prisma.ChatRunWhereUniqueInput
697
- create: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
698
- }
699
-
700
- export type ChatRunUpsertWithoutInterruptsInput = {
701
- update: Prisma.XOR<Prisma.ChatRunUpdateWithoutInterruptsInput, Prisma.ChatRunUncheckedUpdateWithoutInterruptsInput>
702
- create: Prisma.XOR<Prisma.ChatRunCreateWithoutInterruptsInput, Prisma.ChatRunUncheckedCreateWithoutInterruptsInput>
703
- where?: Prisma.ChatRunWhereInput
704
- }
705
-
706
- export type ChatRunUpdateToOneWithWhereWithoutInterruptsInput = {
707
- where?: Prisma.ChatRunWhereInput
708
- data: Prisma.XOR<Prisma.ChatRunUpdateWithoutInterruptsInput, Prisma.ChatRunUncheckedUpdateWithoutInterruptsInput>
709
- }
710
-
711
- export type ChatRunUpdateWithoutInterruptsInput = {
712
- id?: Prisma.StringFieldUpdateOperationsInput | string
713
- userId?: Prisma.StringFieldUpdateOperationsInput | string
714
- status?: Prisma.StringFieldUpdateOperationsInput | string
715
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
716
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
718
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
719
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
720
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
721
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
722
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
723
- thread?: Prisma.ChatThreadUpdateOneRequiredWithoutRunsNestedInput
724
- }
725
-
726
- export type ChatRunUncheckedUpdateWithoutInterruptsInput = {
727
- id?: Prisma.StringFieldUpdateOperationsInput | string
728
- threadId?: Prisma.StringFieldUpdateOperationsInput | string
729
- userId?: Prisma.StringFieldUpdateOperationsInput | string
730
- status?: Prisma.StringFieldUpdateOperationsInput | string
731
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
732
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
733
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
734
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
735
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
736
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
737
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
738
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
739
- }
740
-
741
- export type ChatRunCreateManyThreadInput = {
742
- id?: string
743
- userId: string
744
- status: string
745
- startedAt?: Date | string
746
- finishedAt?: Date | string | null
747
- detachedSince?: Date | string | null
748
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
749
- error?: string | null
750
- sandboxKey?: string | null
751
- cancelRequested?: boolean | null
752
- driverEpoch?: number | null
753
- }
754
-
755
- export type ChatRunUpdateWithoutThreadInput = {
756
- id?: Prisma.StringFieldUpdateOperationsInput | string
757
- userId?: Prisma.StringFieldUpdateOperationsInput | string
758
- status?: Prisma.StringFieldUpdateOperationsInput | string
759
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
760
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
761
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
762
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
763
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
764
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
766
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
767
- interrupts?: Prisma.ChatInterruptUpdateManyWithoutRunNestedInput
768
- }
769
-
770
- export type ChatRunUncheckedUpdateWithoutThreadInput = {
771
- id?: Prisma.StringFieldUpdateOperationsInput | string
772
- userId?: Prisma.StringFieldUpdateOperationsInput | string
773
- status?: Prisma.StringFieldUpdateOperationsInput | string
774
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
775
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
776
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
777
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
778
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
779
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
780
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
781
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
782
- interrupts?: Prisma.ChatInterruptUncheckedUpdateManyWithoutRunNestedInput
783
- }
784
-
785
- export type ChatRunUncheckedUpdateManyWithoutThreadInput = {
786
- id?: Prisma.StringFieldUpdateOperationsInput | string
787
- userId?: Prisma.StringFieldUpdateOperationsInput | string
788
- status?: Prisma.StringFieldUpdateOperationsInput | string
789
- startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
790
- finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
791
- detachedSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
792
- usage?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
793
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
794
- sandboxKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
795
- cancelRequested?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
796
- driverEpoch?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
797
- }
798
-
799
-
800
- /**
801
- * Count Type ChatRunCountOutputType
802
- */
803
-
804
- export type ChatRunCountOutputType = {
805
- interrupts: number
806
- }
807
-
808
- export type ChatRunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
809
- interrupts?: boolean | ChatRunCountOutputTypeCountInterruptsArgs
810
- }
811
-
812
- /**
813
- * ChatRunCountOutputType without action
814
- */
815
- export type ChatRunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
816
- /**
817
- * Select specific fields to fetch from the ChatRunCountOutputType
818
- */
819
- select?: Prisma.ChatRunCountOutputTypeSelect<ExtArgs> | null
820
- }
821
-
822
- /**
823
- * ChatRunCountOutputType without action
824
- */
825
- export type ChatRunCountOutputTypeCountInterruptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
826
- where?: Prisma.ChatInterruptWhereInput
827
- }
828
-
829
-
830
- export type ChatRunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
831
- id?: boolean
832
- threadId?: boolean
833
- userId?: boolean
834
- status?: boolean
835
- startedAt?: boolean
836
- finishedAt?: boolean
837
- detachedSince?: boolean
838
- usage?: boolean
839
- error?: boolean
840
- sandboxKey?: boolean
841
- cancelRequested?: boolean
842
- driverEpoch?: boolean
843
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
844
- interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
845
- _count?: boolean | Prisma.ChatRunCountOutputTypeDefaultArgs<ExtArgs>
846
- }, ExtArgs["result"]["chatRun"]>
847
-
848
- export type ChatRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
849
- id?: boolean
850
- threadId?: boolean
851
- userId?: boolean
852
- status?: boolean
853
- startedAt?: boolean
854
- finishedAt?: boolean
855
- detachedSince?: boolean
856
- usage?: boolean
857
- error?: boolean
858
- sandboxKey?: boolean
859
- cancelRequested?: boolean
860
- driverEpoch?: boolean
861
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
862
- }, ExtArgs["result"]["chatRun"]>
863
-
864
- export type ChatRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
865
- id?: boolean
866
- threadId?: boolean
867
- userId?: boolean
868
- status?: boolean
869
- startedAt?: boolean
870
- finishedAt?: boolean
871
- detachedSince?: boolean
872
- usage?: boolean
873
- error?: boolean
874
- sandboxKey?: boolean
875
- cancelRequested?: boolean
876
- driverEpoch?: boolean
877
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
878
- }, ExtArgs["result"]["chatRun"]>
879
-
880
- export type ChatRunSelectScalar = {
881
- id?: boolean
882
- threadId?: boolean
883
- userId?: boolean
884
- status?: boolean
885
- startedAt?: boolean
886
- finishedAt?: boolean
887
- detachedSince?: boolean
888
- usage?: boolean
889
- error?: boolean
890
- sandboxKey?: boolean
891
- cancelRequested?: boolean
892
- driverEpoch?: boolean
893
- }
894
-
895
- export type ChatRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "userId" | "status" | "startedAt" | "finishedAt" | "detachedSince" | "usage" | "error" | "sandboxKey" | "cancelRequested" | "driverEpoch", ExtArgs["result"]["chatRun"]>
896
- export type ChatRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
897
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
898
- interrupts?: boolean | Prisma.ChatRun$interruptsArgs<ExtArgs>
899
- _count?: boolean | Prisma.ChatRunCountOutputTypeDefaultArgs<ExtArgs>
900
- }
901
- export type ChatRunIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
902
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
903
- }
904
- export type ChatRunIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
905
- thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
906
- }
907
-
908
- export type $ChatRunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
- name: "ChatRun"
910
- objects: {
911
- thread: Prisma.$ChatThreadPayload<ExtArgs>
912
- interrupts: Prisma.$ChatInterruptPayload<ExtArgs>[]
913
- }
914
- scalars: runtime.Types.Extensions.GetPayloadResult<{
915
- id: string
916
- threadId: string
917
- userId: string
918
- status: string
919
- startedAt: Date
920
- finishedAt: Date | null
921
- detachedSince: Date | null
922
- usage: runtime.JsonValue | null
923
- error: string | null
924
- sandboxKey: string | null
925
- cancelRequested: boolean | null
926
- driverEpoch: number | null
927
- }, ExtArgs["result"]["chatRun"]>
928
- composites: {}
929
- }
930
-
931
- export type ChatRunGetPayload<S extends boolean | null | undefined | ChatRunDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ChatRunPayload, S>
932
-
933
- export type ChatRunCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
934
- Omit<ChatRunFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
935
- select?: ChatRunCountAggregateInputType | true
936
- }
937
-
938
- export interface ChatRunDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
939
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ChatRun'], meta: { name: 'ChatRun' } }
940
- /**
941
- * Find zero or one ChatRun that matches the filter.
942
- * @param {ChatRunFindUniqueArgs} args - Arguments to find a ChatRun
943
- * @example
944
- * // Get one ChatRun
945
- * const chatRun = await prisma.chatRun.findUnique({
946
- * where: {
947
- * // ... provide filter here
948
- * }
949
- * })
950
- */
951
- findUnique<T extends ChatRunFindUniqueArgs>(args: Prisma.SelectSubset<T, ChatRunFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
952
-
953
- /**
954
- * Find one ChatRun that matches the filter or throw an error with `error.code='P2025'`
955
- * if no matches were found.
956
- * @param {ChatRunFindUniqueOrThrowArgs} args - Arguments to find a ChatRun
957
- * @example
958
- * // Get one ChatRun
959
- * const chatRun = await prisma.chatRun.findUniqueOrThrow({
960
- * where: {
961
- * // ... provide filter here
962
- * }
963
- * })
964
- */
965
- findUniqueOrThrow<T extends ChatRunFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ChatRunFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
966
-
967
- /**
968
- * Find the first ChatRun that matches the filter.
969
- * Note, that providing `undefined` is treated as the value not being there.
970
- * Read more here: https://pris.ly/d/null-undefined
971
- * @param {ChatRunFindFirstArgs} args - Arguments to find a ChatRun
972
- * @example
973
- * // Get one ChatRun
974
- * const chatRun = await prisma.chatRun.findFirst({
975
- * where: {
976
- * // ... provide filter here
977
- * }
978
- * })
979
- */
980
- findFirst<T extends ChatRunFindFirstArgs>(args?: Prisma.SelectSubset<T, ChatRunFindFirstArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
981
-
982
- /**
983
- * Find the first ChatRun that matches the filter or
984
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
985
- * Note, that providing `undefined` is treated as the value not being there.
986
- * Read more here: https://pris.ly/d/null-undefined
987
- * @param {ChatRunFindFirstOrThrowArgs} args - Arguments to find a ChatRun
988
- * @example
989
- * // Get one ChatRun
990
- * const chatRun = await prisma.chatRun.findFirstOrThrow({
991
- * where: {
992
- * // ... provide filter here
993
- * }
994
- * })
995
- */
996
- findFirstOrThrow<T extends ChatRunFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ChatRunFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
997
-
998
- /**
999
- * Find zero or more ChatRuns that matches the filter.
1000
- * Note, that providing `undefined` is treated as the value not being there.
1001
- * Read more here: https://pris.ly/d/null-undefined
1002
- * @param {ChatRunFindManyArgs} args - Arguments to filter and select certain fields only.
1003
- * @example
1004
- * // Get all ChatRuns
1005
- * const chatRuns = await prisma.chatRun.findMany()
1006
- *
1007
- * // Get first 10 ChatRuns
1008
- * const chatRuns = await prisma.chatRun.findMany({ take: 10 })
1009
- *
1010
- * // Only select the `id`
1011
- * const chatRunWithIdOnly = await prisma.chatRun.findMany({ select: { id: true } })
1012
- *
1013
- */
1014
- findMany<T extends ChatRunFindManyArgs>(args?: Prisma.SelectSubset<T, ChatRunFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1015
-
1016
- /**
1017
- * Create a ChatRun.
1018
- * @param {ChatRunCreateArgs} args - Arguments to create a ChatRun.
1019
- * @example
1020
- * // Create one ChatRun
1021
- * const ChatRun = await prisma.chatRun.create({
1022
- * data: {
1023
- * // ... data to create a ChatRun
1024
- * }
1025
- * })
1026
- *
1027
- */
1028
- create<T extends ChatRunCreateArgs>(args: Prisma.SelectSubset<T, ChatRunCreateArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1029
-
1030
- /**
1031
- * Create many ChatRuns.
1032
- * @param {ChatRunCreateManyArgs} args - Arguments to create many ChatRuns.
1033
- * @example
1034
- * // Create many ChatRuns
1035
- * const chatRun = await prisma.chatRun.createMany({
1036
- * data: [
1037
- * // ... provide data here
1038
- * ]
1039
- * })
1040
- *
1041
- */
1042
- createMany<T extends ChatRunCreateManyArgs>(args?: Prisma.SelectSubset<T, ChatRunCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1043
-
1044
- /**
1045
- * Create many ChatRuns and returns the data saved in the database.
1046
- * @param {ChatRunCreateManyAndReturnArgs} args - Arguments to create many ChatRuns.
1047
- * @example
1048
- * // Create many ChatRuns
1049
- * const chatRun = await prisma.chatRun.createManyAndReturn({
1050
- * data: [
1051
- * // ... provide data here
1052
- * ]
1053
- * })
1054
- *
1055
- * // Create many ChatRuns and only return the `id`
1056
- * const chatRunWithIdOnly = await prisma.chatRun.createManyAndReturn({
1057
- * select: { id: true },
1058
- * data: [
1059
- * // ... provide data here
1060
- * ]
1061
- * })
1062
- * Note, that providing `undefined` is treated as the value not being there.
1063
- * Read more here: https://pris.ly/d/null-undefined
1064
- *
1065
- */
1066
- createManyAndReturn<T extends ChatRunCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ChatRunCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1067
-
1068
- /**
1069
- * Delete a ChatRun.
1070
- * @param {ChatRunDeleteArgs} args - Arguments to delete one ChatRun.
1071
- * @example
1072
- * // Delete one ChatRun
1073
- * const ChatRun = await prisma.chatRun.delete({
1074
- * where: {
1075
- * // ... filter to delete one ChatRun
1076
- * }
1077
- * })
1078
- *
1079
- */
1080
- delete<T extends ChatRunDeleteArgs>(args: Prisma.SelectSubset<T, ChatRunDeleteArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1081
-
1082
- /**
1083
- * Update one ChatRun.
1084
- * @param {ChatRunUpdateArgs} args - Arguments to update one ChatRun.
1085
- * @example
1086
- * // Update one ChatRun
1087
- * const chatRun = await prisma.chatRun.update({
1088
- * where: {
1089
- * // ... provide filter here
1090
- * },
1091
- * data: {
1092
- * // ... provide data here
1093
- * }
1094
- * })
1095
- *
1096
- */
1097
- update<T extends ChatRunUpdateArgs>(args: Prisma.SelectSubset<T, ChatRunUpdateArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1098
-
1099
- /**
1100
- * Delete zero or more ChatRuns.
1101
- * @param {ChatRunDeleteManyArgs} args - Arguments to filter ChatRuns to delete.
1102
- * @example
1103
- * // Delete a few ChatRuns
1104
- * const { count } = await prisma.chatRun.deleteMany({
1105
- * where: {
1106
- * // ... provide filter here
1107
- * }
1108
- * })
1109
- *
1110
- */
1111
- deleteMany<T extends ChatRunDeleteManyArgs>(args?: Prisma.SelectSubset<T, ChatRunDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1112
-
1113
- /**
1114
- * Update zero or more ChatRuns.
1115
- * Note, that providing `undefined` is treated as the value not being there.
1116
- * Read more here: https://pris.ly/d/null-undefined
1117
- * @param {ChatRunUpdateManyArgs} args - Arguments to update one or more rows.
1118
- * @example
1119
- * // Update many ChatRuns
1120
- * const chatRun = await prisma.chatRun.updateMany({
1121
- * where: {
1122
- * // ... provide filter here
1123
- * },
1124
- * data: {
1125
- * // ... provide data here
1126
- * }
1127
- * })
1128
- *
1129
- */
1130
- updateMany<T extends ChatRunUpdateManyArgs>(args: Prisma.SelectSubset<T, ChatRunUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1131
-
1132
- /**
1133
- * Update zero or more ChatRuns and returns the data updated in the database.
1134
- * @param {ChatRunUpdateManyAndReturnArgs} args - Arguments to update many ChatRuns.
1135
- * @example
1136
- * // Update many ChatRuns
1137
- * const chatRun = await prisma.chatRun.updateManyAndReturn({
1138
- * where: {
1139
- * // ... provide filter here
1140
- * },
1141
- * data: [
1142
- * // ... provide data here
1143
- * ]
1144
- * })
1145
- *
1146
- * // Update zero or more ChatRuns and only return the `id`
1147
- * const chatRunWithIdOnly = await prisma.chatRun.updateManyAndReturn({
1148
- * select: { id: true },
1149
- * where: {
1150
- * // ... provide filter here
1151
- * },
1152
- * data: [
1153
- * // ... provide data here
1154
- * ]
1155
- * })
1156
- * Note, that providing `undefined` is treated as the value not being there.
1157
- * Read more here: https://pris.ly/d/null-undefined
1158
- *
1159
- */
1160
- updateManyAndReturn<T extends ChatRunUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ChatRunUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1161
-
1162
- /**
1163
- * Create or update one ChatRun.
1164
- * @param {ChatRunUpsertArgs} args - Arguments to update or create a ChatRun.
1165
- * @example
1166
- * // Update or create a ChatRun
1167
- * const chatRun = await prisma.chatRun.upsert({
1168
- * create: {
1169
- * // ... data to create a ChatRun
1170
- * },
1171
- * update: {
1172
- * // ... in case it already exists, update
1173
- * },
1174
- * where: {
1175
- * // ... the filter for the ChatRun we want to update
1176
- * }
1177
- * })
1178
- */
1179
- upsert<T extends ChatRunUpsertArgs>(args: Prisma.SelectSubset<T, ChatRunUpsertArgs<ExtArgs>>): Prisma.Prisma__ChatRunClient<runtime.Types.Result.GetResult<Prisma.$ChatRunPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1180
-
1181
-
1182
- /**
1183
- * Count the number of ChatRuns.
1184
- * Note, that providing `undefined` is treated as the value not being there.
1185
- * Read more here: https://pris.ly/d/null-undefined
1186
- * @param {ChatRunCountArgs} args - Arguments to filter ChatRuns to count.
1187
- * @example
1188
- * // Count the number of ChatRuns
1189
- * const count = await prisma.chatRun.count({
1190
- * where: {
1191
- * // ... the filter for the ChatRuns we want to count
1192
- * }
1193
- * })
1194
- **/
1195
- count<T extends ChatRunCountArgs>(
1196
- args?: Prisma.Subset<T, ChatRunCountArgs>,
1197
- ): Prisma.PrismaPromise<
1198
- T extends runtime.Types.Utils.Record<'select', any>
1199
- ? T['select'] extends true
1200
- ? number
1201
- : Prisma.GetScalarType<T['select'], ChatRunCountAggregateOutputType>
1202
- : number
1203
- >
1204
-
1205
- /**
1206
- * Allows you to perform aggregations operations on a ChatRun.
1207
- * Note, that providing `undefined` is treated as the value not being there.
1208
- * Read more here: https://pris.ly/d/null-undefined
1209
- * @param {ChatRunAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1210
- * @example
1211
- * // Ordered by age ascending
1212
- * // Where email contains prisma.io
1213
- * // Limited to the 10 users
1214
- * const aggregations = await prisma.user.aggregate({
1215
- * _avg: {
1216
- * age: true,
1217
- * },
1218
- * where: {
1219
- * email: {
1220
- * contains: "prisma.io",
1221
- * },
1222
- * },
1223
- * orderBy: {
1224
- * age: "asc",
1225
- * },
1226
- * take: 10,
1227
- * })
1228
- **/
1229
- aggregate<T extends ChatRunAggregateArgs>(args: Prisma.Subset<T, ChatRunAggregateArgs>): Prisma.PrismaPromise<GetChatRunAggregateType<T>>
1230
-
1231
- /**
1232
- * Group by ChatRun.
1233
- * Note, that providing `undefined` is treated as the value not being there.
1234
- * Read more here: https://pris.ly/d/null-undefined
1235
- * @param {ChatRunGroupByArgs} args - Group by arguments.
1236
- * @example
1237
- * // Group by city, order by createdAt, get count
1238
- * const result = await prisma.user.groupBy({
1239
- * by: ['city', 'createdAt'],
1240
- * orderBy: {
1241
- * createdAt: true
1242
- * },
1243
- * _count: {
1244
- * _all: true
1245
- * },
1246
- * })
1247
- *
1248
- **/
1249
- groupBy<
1250
- T extends ChatRunGroupByArgs,
1251
- HasSelectOrTake extends Prisma.Or<
1252
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1253
- Prisma.Extends<'take', Prisma.Keys<T>>
1254
- >,
1255
- OrderByArg extends Prisma.True extends HasSelectOrTake
1256
- ? { orderBy: ChatRunGroupByArgs['orderBy'] }
1257
- : { orderBy?: ChatRunGroupByArgs['orderBy'] },
1258
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1259
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1260
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1261
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1262
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1263
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1264
- InputErrors extends ByEmpty extends Prisma.True
1265
- ? `Error: "by" must not be empty.`
1266
- : HavingValid extends Prisma.False
1267
- ? {
1268
- [P in HavingFields]: P extends ByFields
1269
- ? never
1270
- : P extends string
1271
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1272
- : [
1273
- Error,
1274
- 'Field ',
1275
- P,
1276
- ` in "having" needs to be provided in "by"`,
1277
- ]
1278
- }[HavingFields]
1279
- : 'take' extends Prisma.Keys<T>
1280
- ? 'orderBy' extends Prisma.Keys<T>
1281
- ? ByValid extends Prisma.True
1282
- ? {}
1283
- : {
1284
- [P in OrderFields]: P extends ByFields
1285
- ? never
1286
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1287
- }[OrderFields]
1288
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1289
- : 'skip' extends Prisma.Keys<T>
1290
- ? 'orderBy' extends Prisma.Keys<T>
1291
- ? ByValid extends Prisma.True
1292
- ? {}
1293
- : {
1294
- [P in OrderFields]: P extends ByFields
1295
- ? never
1296
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1297
- }[OrderFields]
1298
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1299
- : ByValid extends Prisma.True
1300
- ? {}
1301
- : {
1302
- [P in OrderFields]: P extends ByFields
1303
- ? never
1304
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1305
- }[OrderFields]
1306
- >(args: Prisma.SubsetIntersection<T, ChatRunGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatRunGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1307
- /**
1308
- * Fields of the ChatRun model
1309
- */
1310
- readonly fields: ChatRunFieldRefs;
1311
- }
1312
-
1313
- /**
1314
- * The delegate class that acts as a "Promise-like" for ChatRun.
1315
- * Why is this prefixed with `Prisma__`?
1316
- * Because we want to prevent naming conflicts as mentioned in
1317
- * https://github.com/prisma/prisma-client-js/issues/707
1318
- */
1319
- export interface Prisma__ChatRunClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1320
- readonly [Symbol.toStringTag]: "PrismaPromise"
1321
- thread<T extends Prisma.ChatThreadDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThreadDefaultArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1322
- interrupts<T extends Prisma.ChatRun$interruptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatRun$interruptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatInterruptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1323
- /**
1324
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1325
- * @param onfulfilled The callback to execute when the Promise is resolved.
1326
- * @param onrejected The callback to execute when the Promise is rejected.
1327
- * @returns A Promise for the completion of which ever callback is executed.
1328
- */
1329
- 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>
1330
- /**
1331
- * Attaches a callback for only the rejection of the Promise.
1332
- * @param onrejected The callback to execute when the Promise is rejected.
1333
- * @returns A Promise for the completion of the callback.
1334
- */
1335
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1336
- /**
1337
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1338
- * resolved value cannot be modified from the callback.
1339
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1340
- * @returns A Promise for the completion of the callback.
1341
- */
1342
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1343
- }
1344
-
1345
-
1346
-
1347
-
1348
- /**
1349
- * Fields of the ChatRun model
1350
- */
1351
- export interface ChatRunFieldRefs {
1352
- readonly id: Prisma.FieldRef<"ChatRun", 'String'>
1353
- readonly threadId: Prisma.FieldRef<"ChatRun", 'String'>
1354
- readonly userId: Prisma.FieldRef<"ChatRun", 'String'>
1355
- readonly status: Prisma.FieldRef<"ChatRun", 'String'>
1356
- readonly startedAt: Prisma.FieldRef<"ChatRun", 'DateTime'>
1357
- readonly finishedAt: Prisma.FieldRef<"ChatRun", 'DateTime'>
1358
- readonly detachedSince: Prisma.FieldRef<"ChatRun", 'DateTime'>
1359
- readonly usage: Prisma.FieldRef<"ChatRun", 'Json'>
1360
- readonly error: Prisma.FieldRef<"ChatRun", 'String'>
1361
- readonly sandboxKey: Prisma.FieldRef<"ChatRun", 'String'>
1362
- readonly cancelRequested: Prisma.FieldRef<"ChatRun", 'Boolean'>
1363
- readonly driverEpoch: Prisma.FieldRef<"ChatRun", 'Int'>
1364
- }
1365
-
1366
-
1367
- // Custom InputTypes
1368
- /**
1369
- * ChatRun findUnique
1370
- */
1371
- export type ChatRunFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1372
- /**
1373
- * Select specific fields to fetch from the ChatRun
1374
- */
1375
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1376
- /**
1377
- * Omit specific fields from the ChatRun
1378
- */
1379
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1380
- /**
1381
- * Choose, which related nodes to fetch as well
1382
- */
1383
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1384
- /**
1385
- * Filter, which ChatRun to fetch.
1386
- */
1387
- where: Prisma.ChatRunWhereUniqueInput
1388
- }
1389
-
1390
- /**
1391
- * ChatRun findUniqueOrThrow
1392
- */
1393
- export type ChatRunFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
- /**
1395
- * Select specific fields to fetch from the ChatRun
1396
- */
1397
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1398
- /**
1399
- * Omit specific fields from the ChatRun
1400
- */
1401
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1402
- /**
1403
- * Choose, which related nodes to fetch as well
1404
- */
1405
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1406
- /**
1407
- * Filter, which ChatRun to fetch.
1408
- */
1409
- where: Prisma.ChatRunWhereUniqueInput
1410
- }
1411
-
1412
- /**
1413
- * ChatRun findFirst
1414
- */
1415
- export type ChatRunFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1416
- /**
1417
- * Select specific fields to fetch from the ChatRun
1418
- */
1419
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1420
- /**
1421
- * Omit specific fields from the ChatRun
1422
- */
1423
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1424
- /**
1425
- * Choose, which related nodes to fetch as well
1426
- */
1427
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1428
- /**
1429
- * Filter, which ChatRun to fetch.
1430
- */
1431
- where?: Prisma.ChatRunWhereInput
1432
- /**
1433
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1434
- *
1435
- * Determine the order of ChatRuns to fetch.
1436
- */
1437
- orderBy?: Prisma.ChatRunOrderByWithRelationInput | Prisma.ChatRunOrderByWithRelationInput[]
1438
- /**
1439
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1440
- *
1441
- * Sets the position for searching for ChatRuns.
1442
- */
1443
- cursor?: Prisma.ChatRunWhereUniqueInput
1444
- /**
1445
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1446
- *
1447
- * Take `±n` ChatRuns from the position of the cursor.
1448
- */
1449
- take?: number
1450
- /**
1451
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1452
- *
1453
- * Skip the first `n` ChatRuns.
1454
- */
1455
- skip?: number
1456
- /**
1457
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1458
- *
1459
- * Filter by unique combinations of ChatRuns.
1460
- */
1461
- distinct?: Prisma.ChatRunScalarFieldEnum | Prisma.ChatRunScalarFieldEnum[]
1462
- }
1463
-
1464
- /**
1465
- * ChatRun findFirstOrThrow
1466
- */
1467
- export type ChatRunFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1468
- /**
1469
- * Select specific fields to fetch from the ChatRun
1470
- */
1471
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1472
- /**
1473
- * Omit specific fields from the ChatRun
1474
- */
1475
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1476
- /**
1477
- * Choose, which related nodes to fetch as well
1478
- */
1479
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1480
- /**
1481
- * Filter, which ChatRun to fetch.
1482
- */
1483
- where?: Prisma.ChatRunWhereInput
1484
- /**
1485
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1486
- *
1487
- * Determine the order of ChatRuns to fetch.
1488
- */
1489
- orderBy?: Prisma.ChatRunOrderByWithRelationInput | Prisma.ChatRunOrderByWithRelationInput[]
1490
- /**
1491
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1492
- *
1493
- * Sets the position for searching for ChatRuns.
1494
- */
1495
- cursor?: Prisma.ChatRunWhereUniqueInput
1496
- /**
1497
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1498
- *
1499
- * Take `±n` ChatRuns from the position of the cursor.
1500
- */
1501
- take?: number
1502
- /**
1503
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1504
- *
1505
- * Skip the first `n` ChatRuns.
1506
- */
1507
- skip?: number
1508
- /**
1509
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1510
- *
1511
- * Filter by unique combinations of ChatRuns.
1512
- */
1513
- distinct?: Prisma.ChatRunScalarFieldEnum | Prisma.ChatRunScalarFieldEnum[]
1514
- }
1515
-
1516
- /**
1517
- * ChatRun findMany
1518
- */
1519
- export type ChatRunFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
- /**
1521
- * Select specific fields to fetch from the ChatRun
1522
- */
1523
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1524
- /**
1525
- * Omit specific fields from the ChatRun
1526
- */
1527
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1528
- /**
1529
- * Choose, which related nodes to fetch as well
1530
- */
1531
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1532
- /**
1533
- * Filter, which ChatRuns to fetch.
1534
- */
1535
- where?: Prisma.ChatRunWhereInput
1536
- /**
1537
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1538
- *
1539
- * Determine the order of ChatRuns to fetch.
1540
- */
1541
- orderBy?: Prisma.ChatRunOrderByWithRelationInput | Prisma.ChatRunOrderByWithRelationInput[]
1542
- /**
1543
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1544
- *
1545
- * Sets the position for listing ChatRuns.
1546
- */
1547
- cursor?: Prisma.ChatRunWhereUniqueInput
1548
- /**
1549
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1550
- *
1551
- * Take `±n` ChatRuns from the position of the cursor.
1552
- */
1553
- take?: number
1554
- /**
1555
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1556
- *
1557
- * Skip the first `n` ChatRuns.
1558
- */
1559
- skip?: number
1560
- /**
1561
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1562
- *
1563
- * Filter by unique combinations of ChatRuns.
1564
- */
1565
- distinct?: Prisma.ChatRunScalarFieldEnum | Prisma.ChatRunScalarFieldEnum[]
1566
- }
1567
-
1568
- /**
1569
- * ChatRun create
1570
- */
1571
- export type ChatRunCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1572
- /**
1573
- * Select specific fields to fetch from the ChatRun
1574
- */
1575
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1576
- /**
1577
- * Omit specific fields from the ChatRun
1578
- */
1579
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1580
- /**
1581
- * Choose, which related nodes to fetch as well
1582
- */
1583
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1584
- /**
1585
- * The data needed to create a ChatRun.
1586
- */
1587
- data: Prisma.XOR<Prisma.ChatRunCreateInput, Prisma.ChatRunUncheckedCreateInput>
1588
- }
1589
-
1590
- /**
1591
- * ChatRun createMany
1592
- */
1593
- export type ChatRunCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1594
- /**
1595
- * The data used to create many ChatRuns.
1596
- */
1597
- data: Prisma.ChatRunCreateManyInput | Prisma.ChatRunCreateManyInput[]
1598
- }
1599
-
1600
- /**
1601
- * ChatRun createManyAndReturn
1602
- */
1603
- export type ChatRunCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1604
- /**
1605
- * Select specific fields to fetch from the ChatRun
1606
- */
1607
- select?: Prisma.ChatRunSelectCreateManyAndReturn<ExtArgs> | null
1608
- /**
1609
- * Omit specific fields from the ChatRun
1610
- */
1611
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1612
- /**
1613
- * The data used to create many ChatRuns.
1614
- */
1615
- data: Prisma.ChatRunCreateManyInput | Prisma.ChatRunCreateManyInput[]
1616
- /**
1617
- * Choose, which related nodes to fetch as well
1618
- */
1619
- include?: Prisma.ChatRunIncludeCreateManyAndReturn<ExtArgs> | null
1620
- }
1621
-
1622
- /**
1623
- * ChatRun update
1624
- */
1625
- export type ChatRunUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1626
- /**
1627
- * Select specific fields to fetch from the ChatRun
1628
- */
1629
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1630
- /**
1631
- * Omit specific fields from the ChatRun
1632
- */
1633
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1634
- /**
1635
- * Choose, which related nodes to fetch as well
1636
- */
1637
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1638
- /**
1639
- * The data needed to update a ChatRun.
1640
- */
1641
- data: Prisma.XOR<Prisma.ChatRunUpdateInput, Prisma.ChatRunUncheckedUpdateInput>
1642
- /**
1643
- * Choose, which ChatRun to update.
1644
- */
1645
- where: Prisma.ChatRunWhereUniqueInput
1646
- }
1647
-
1648
- /**
1649
- * ChatRun updateMany
1650
- */
1651
- export type ChatRunUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1652
- /**
1653
- * The data used to update ChatRuns.
1654
- */
1655
- data: Prisma.XOR<Prisma.ChatRunUpdateManyMutationInput, Prisma.ChatRunUncheckedUpdateManyInput>
1656
- /**
1657
- * Filter which ChatRuns to update
1658
- */
1659
- where?: Prisma.ChatRunWhereInput
1660
- /**
1661
- * Limit how many ChatRuns to update.
1662
- */
1663
- limit?: number
1664
- }
1665
-
1666
- /**
1667
- * ChatRun updateManyAndReturn
1668
- */
1669
- export type ChatRunUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1670
- /**
1671
- * Select specific fields to fetch from the ChatRun
1672
- */
1673
- select?: Prisma.ChatRunSelectUpdateManyAndReturn<ExtArgs> | null
1674
- /**
1675
- * Omit specific fields from the ChatRun
1676
- */
1677
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1678
- /**
1679
- * The data used to update ChatRuns.
1680
- */
1681
- data: Prisma.XOR<Prisma.ChatRunUpdateManyMutationInput, Prisma.ChatRunUncheckedUpdateManyInput>
1682
- /**
1683
- * Filter which ChatRuns to update
1684
- */
1685
- where?: Prisma.ChatRunWhereInput
1686
- /**
1687
- * Limit how many ChatRuns to update.
1688
- */
1689
- limit?: number
1690
- /**
1691
- * Choose, which related nodes to fetch as well
1692
- */
1693
- include?: Prisma.ChatRunIncludeUpdateManyAndReturn<ExtArgs> | null
1694
- }
1695
-
1696
- /**
1697
- * ChatRun upsert
1698
- */
1699
- export type ChatRunUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1700
- /**
1701
- * Select specific fields to fetch from the ChatRun
1702
- */
1703
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1704
- /**
1705
- * Omit specific fields from the ChatRun
1706
- */
1707
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1708
- /**
1709
- * Choose, which related nodes to fetch as well
1710
- */
1711
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1712
- /**
1713
- * The filter to search for the ChatRun to update in case it exists.
1714
- */
1715
- where: Prisma.ChatRunWhereUniqueInput
1716
- /**
1717
- * In case the ChatRun found by the `where` argument doesn't exist, create a new ChatRun with this data.
1718
- */
1719
- create: Prisma.XOR<Prisma.ChatRunCreateInput, Prisma.ChatRunUncheckedCreateInput>
1720
- /**
1721
- * In case the ChatRun was found with the provided `where` argument, update it with this data.
1722
- */
1723
- update: Prisma.XOR<Prisma.ChatRunUpdateInput, Prisma.ChatRunUncheckedUpdateInput>
1724
- }
1725
-
1726
- /**
1727
- * ChatRun delete
1728
- */
1729
- export type ChatRunDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1730
- /**
1731
- * Select specific fields to fetch from the ChatRun
1732
- */
1733
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1734
- /**
1735
- * Omit specific fields from the ChatRun
1736
- */
1737
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1738
- /**
1739
- * Choose, which related nodes to fetch as well
1740
- */
1741
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1742
- /**
1743
- * Filter which ChatRun to delete.
1744
- */
1745
- where: Prisma.ChatRunWhereUniqueInput
1746
- }
1747
-
1748
- /**
1749
- * ChatRun deleteMany
1750
- */
1751
- export type ChatRunDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1752
- /**
1753
- * Filter which ChatRuns to delete
1754
- */
1755
- where?: Prisma.ChatRunWhereInput
1756
- /**
1757
- * Limit how many ChatRuns to delete.
1758
- */
1759
- limit?: number
1760
- }
1761
-
1762
- /**
1763
- * ChatRun.interrupts
1764
- */
1765
- export type ChatRun$interruptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1766
- /**
1767
- * Select specific fields to fetch from the ChatInterrupt
1768
- */
1769
- select?: Prisma.ChatInterruptSelect<ExtArgs> | null
1770
- /**
1771
- * Omit specific fields from the ChatInterrupt
1772
- */
1773
- omit?: Prisma.ChatInterruptOmit<ExtArgs> | null
1774
- /**
1775
- * Choose, which related nodes to fetch as well
1776
- */
1777
- include?: Prisma.ChatInterruptInclude<ExtArgs> | null
1778
- where?: Prisma.ChatInterruptWhereInput
1779
- orderBy?: Prisma.ChatInterruptOrderByWithRelationInput | Prisma.ChatInterruptOrderByWithRelationInput[]
1780
- cursor?: Prisma.ChatInterruptWhereUniqueInput
1781
- take?: number
1782
- skip?: number
1783
- distinct?: Prisma.ChatInterruptScalarFieldEnum | Prisma.ChatInterruptScalarFieldEnum[]
1784
- }
1785
-
1786
- /**
1787
- * ChatRun without action
1788
- */
1789
- export type ChatRunDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1790
- /**
1791
- * Select specific fields to fetch from the ChatRun
1792
- */
1793
- select?: Prisma.ChatRunSelect<ExtArgs> | null
1794
- /**
1795
- * Omit specific fields from the ChatRun
1796
- */
1797
- omit?: Prisma.ChatRunOmit<ExtArgs> | null
1798
- /**
1799
- * Choose, which related nodes to fetch as well
1800
- */
1801
- include?: Prisma.ChatRunInclude<ExtArgs> | null
1802
- }