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