@allbluecn/database 0.4.0 → 0.4.2

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