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