@allbluecn/database 0.4.0 → 0.4.1

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