@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,1651 @@
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
+ skipDuplicates?: boolean
480
+ }
481
+
482
+ export type AgentConversationUpsertWithWhereUniqueWithoutUserInput = {
483
+ where: Prisma.AgentConversationWhereUniqueInput
484
+ update: Prisma.XOR<Prisma.AgentConversationUpdateWithoutUserInput, Prisma.AgentConversationUncheckedUpdateWithoutUserInput>
485
+ create: Prisma.XOR<Prisma.AgentConversationCreateWithoutUserInput, Prisma.AgentConversationUncheckedCreateWithoutUserInput>
486
+ }
487
+
488
+ export type AgentConversationUpdateWithWhereUniqueWithoutUserInput = {
489
+ where: Prisma.AgentConversationWhereUniqueInput
490
+ data: Prisma.XOR<Prisma.AgentConversationUpdateWithoutUserInput, Prisma.AgentConversationUncheckedUpdateWithoutUserInput>
491
+ }
492
+
493
+ export type AgentConversationUpdateManyWithWhereWithoutUserInput = {
494
+ where: Prisma.AgentConversationScalarWhereInput
495
+ data: Prisma.XOR<Prisma.AgentConversationUpdateManyMutationInput, Prisma.AgentConversationUncheckedUpdateManyWithoutUserInput>
496
+ }
497
+
498
+ export type AgentConversationScalarWhereInput = {
499
+ AND?: Prisma.AgentConversationScalarWhereInput | Prisma.AgentConversationScalarWhereInput[]
500
+ OR?: Prisma.AgentConversationScalarWhereInput[]
501
+ NOT?: Prisma.AgentConversationScalarWhereInput | Prisma.AgentConversationScalarWhereInput[]
502
+ id?: Prisma.StringFilter<"AgentConversation"> | string
503
+ userId?: Prisma.StringFilter<"AgentConversation"> | string
504
+ prdId?: Prisma.StringFilter<"AgentConversation"> | string
505
+ title?: Prisma.StringFilter<"AgentConversation"> | string
506
+ createdAt?: Prisma.DateTimeFilter<"AgentConversation"> | Date | string
507
+ updatedAt?: Prisma.DateTimeFilter<"AgentConversation"> | Date | string
508
+ }
509
+
510
+ export type AgentConversationCreateWithoutPrdInput = {
511
+ id?: string
512
+ title?: string
513
+ createdAt?: Date | string
514
+ updatedAt?: Date | string
515
+ user: Prisma.UserCreateNestedOneWithoutAgentConversationsInput
516
+ messages?: Prisma.AgentMessageCreateNestedManyWithoutConversationInput
517
+ }
518
+
519
+ export type AgentConversationUncheckedCreateWithoutPrdInput = {
520
+ id?: string
521
+ userId: string
522
+ title?: string
523
+ createdAt?: Date | string
524
+ updatedAt?: Date | string
525
+ messages?: Prisma.AgentMessageUncheckedCreateNestedManyWithoutConversationInput
526
+ }
527
+
528
+ export type AgentConversationCreateOrConnectWithoutPrdInput = {
529
+ where: Prisma.AgentConversationWhereUniqueInput
530
+ create: Prisma.XOR<Prisma.AgentConversationCreateWithoutPrdInput, Prisma.AgentConversationUncheckedCreateWithoutPrdInput>
531
+ }
532
+
533
+ export type AgentConversationCreateManyPrdInputEnvelope = {
534
+ data: Prisma.AgentConversationCreateManyPrdInput | Prisma.AgentConversationCreateManyPrdInput[]
535
+ skipDuplicates?: boolean
536
+ }
537
+
538
+ export type AgentConversationUpsertWithWhereUniqueWithoutPrdInput = {
539
+ where: Prisma.AgentConversationWhereUniqueInput
540
+ update: Prisma.XOR<Prisma.AgentConversationUpdateWithoutPrdInput, Prisma.AgentConversationUncheckedUpdateWithoutPrdInput>
541
+ create: Prisma.XOR<Prisma.AgentConversationCreateWithoutPrdInput, Prisma.AgentConversationUncheckedCreateWithoutPrdInput>
542
+ }
543
+
544
+ export type AgentConversationUpdateWithWhereUniqueWithoutPrdInput = {
545
+ where: Prisma.AgentConversationWhereUniqueInput
546
+ data: Prisma.XOR<Prisma.AgentConversationUpdateWithoutPrdInput, Prisma.AgentConversationUncheckedUpdateWithoutPrdInput>
547
+ }
548
+
549
+ export type AgentConversationUpdateManyWithWhereWithoutPrdInput = {
550
+ where: Prisma.AgentConversationScalarWhereInput
551
+ data: Prisma.XOR<Prisma.AgentConversationUpdateManyMutationInput, Prisma.AgentConversationUncheckedUpdateManyWithoutPrdInput>
552
+ }
553
+
554
+ export type AgentConversationCreateWithoutMessagesInput = {
555
+ id?: string
556
+ title?: string
557
+ createdAt?: Date | string
558
+ updatedAt?: Date | string
559
+ user: Prisma.UserCreateNestedOneWithoutAgentConversationsInput
560
+ prd: Prisma.PRDCreateNestedOneWithoutAgentConversationsInput
561
+ }
562
+
563
+ export type AgentConversationUncheckedCreateWithoutMessagesInput = {
564
+ id?: string
565
+ userId: string
566
+ prdId: string
567
+ title?: string
568
+ createdAt?: Date | string
569
+ updatedAt?: Date | string
570
+ }
571
+
572
+ export type AgentConversationCreateOrConnectWithoutMessagesInput = {
573
+ where: Prisma.AgentConversationWhereUniqueInput
574
+ create: Prisma.XOR<Prisma.AgentConversationCreateWithoutMessagesInput, Prisma.AgentConversationUncheckedCreateWithoutMessagesInput>
575
+ }
576
+
577
+ export type AgentConversationUpsertWithoutMessagesInput = {
578
+ update: Prisma.XOR<Prisma.AgentConversationUpdateWithoutMessagesInput, Prisma.AgentConversationUncheckedUpdateWithoutMessagesInput>
579
+ create: Prisma.XOR<Prisma.AgentConversationCreateWithoutMessagesInput, Prisma.AgentConversationUncheckedCreateWithoutMessagesInput>
580
+ where?: Prisma.AgentConversationWhereInput
581
+ }
582
+
583
+ export type AgentConversationUpdateToOneWithWhereWithoutMessagesInput = {
584
+ where?: Prisma.AgentConversationWhereInput
585
+ data: Prisma.XOR<Prisma.AgentConversationUpdateWithoutMessagesInput, Prisma.AgentConversationUncheckedUpdateWithoutMessagesInput>
586
+ }
587
+
588
+ export type AgentConversationUpdateWithoutMessagesInput = {
589
+ id?: Prisma.StringFieldUpdateOperationsInput | string
590
+ title?: Prisma.StringFieldUpdateOperationsInput | string
591
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
592
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
593
+ user?: Prisma.UserUpdateOneRequiredWithoutAgentConversationsNestedInput
594
+ prd?: Prisma.PRDUpdateOneRequiredWithoutAgentConversationsNestedInput
595
+ }
596
+
597
+ export type AgentConversationUncheckedUpdateWithoutMessagesInput = {
598
+ id?: Prisma.StringFieldUpdateOperationsInput | string
599
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
600
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
601
+ title?: Prisma.StringFieldUpdateOperationsInput | string
602
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
603
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
604
+ }
605
+
606
+ export type AgentConversationCreateManyUserInput = {
607
+ id?: string
608
+ prdId: string
609
+ title?: string
610
+ createdAt?: Date | string
611
+ updatedAt?: Date | string
612
+ }
613
+
614
+ export type AgentConversationUpdateWithoutUserInput = {
615
+ id?: Prisma.StringFieldUpdateOperationsInput | string
616
+ title?: Prisma.StringFieldUpdateOperationsInput | string
617
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
618
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
+ prd?: Prisma.PRDUpdateOneRequiredWithoutAgentConversationsNestedInput
620
+ messages?: Prisma.AgentMessageUpdateManyWithoutConversationNestedInput
621
+ }
622
+
623
+ export type AgentConversationUncheckedUpdateWithoutUserInput = {
624
+ id?: Prisma.StringFieldUpdateOperationsInput | string
625
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
626
+ title?: Prisma.StringFieldUpdateOperationsInput | string
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
629
+ messages?: Prisma.AgentMessageUncheckedUpdateManyWithoutConversationNestedInput
630
+ }
631
+
632
+ export type AgentConversationUncheckedUpdateManyWithoutUserInput = {
633
+ id?: Prisma.StringFieldUpdateOperationsInput | string
634
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
635
+ title?: Prisma.StringFieldUpdateOperationsInput | string
636
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
637
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
638
+ }
639
+
640
+ export type AgentConversationCreateManyPrdInput = {
641
+ id?: string
642
+ userId: string
643
+ title?: string
644
+ createdAt?: Date | string
645
+ updatedAt?: Date | string
646
+ }
647
+
648
+ export type AgentConversationUpdateWithoutPrdInput = {
649
+ id?: Prisma.StringFieldUpdateOperationsInput | string
650
+ title?: Prisma.StringFieldUpdateOperationsInput | string
651
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
652
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
653
+ user?: Prisma.UserUpdateOneRequiredWithoutAgentConversationsNestedInput
654
+ messages?: Prisma.AgentMessageUpdateManyWithoutConversationNestedInput
655
+ }
656
+
657
+ export type AgentConversationUncheckedUpdateWithoutPrdInput = {
658
+ id?: Prisma.StringFieldUpdateOperationsInput | string
659
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
660
+ title?: Prisma.StringFieldUpdateOperationsInput | string
661
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
662
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
663
+ messages?: Prisma.AgentMessageUncheckedUpdateManyWithoutConversationNestedInput
664
+ }
665
+
666
+ export type AgentConversationUncheckedUpdateManyWithoutPrdInput = {
667
+ id?: Prisma.StringFieldUpdateOperationsInput | string
668
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
669
+ title?: Prisma.StringFieldUpdateOperationsInput | string
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
671
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
672
+ }
673
+
674
+
675
+ /**
676
+ * Count Type AgentConversationCountOutputType
677
+ */
678
+
679
+ export type AgentConversationCountOutputType = {
680
+ messages: number
681
+ }
682
+
683
+ export type AgentConversationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
684
+ messages?: boolean | AgentConversationCountOutputTypeCountMessagesArgs
685
+ }
686
+
687
+ /**
688
+ * AgentConversationCountOutputType without action
689
+ */
690
+ export type AgentConversationCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
691
+ /**
692
+ * Select specific fields to fetch from the AgentConversationCountOutputType
693
+ */
694
+ select?: Prisma.AgentConversationCountOutputTypeSelect<ExtArgs> | null
695
+ }
696
+
697
+ /**
698
+ * AgentConversationCountOutputType without action
699
+ */
700
+ export type AgentConversationCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
701
+ where?: Prisma.AgentMessageWhereInput
702
+ }
703
+
704
+
705
+ export type AgentConversationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
706
+ id?: boolean
707
+ userId?: boolean
708
+ prdId?: boolean
709
+ title?: boolean
710
+ createdAt?: boolean
711
+ updatedAt?: boolean
712
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
713
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
714
+ messages?: boolean | Prisma.AgentConversation$messagesArgs<ExtArgs>
715
+ _count?: boolean | Prisma.AgentConversationCountOutputTypeDefaultArgs<ExtArgs>
716
+ }, ExtArgs["result"]["agentConversation"]>
717
+
718
+ export type AgentConversationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
719
+ id?: boolean
720
+ userId?: boolean
721
+ prdId?: boolean
722
+ title?: boolean
723
+ createdAt?: boolean
724
+ updatedAt?: boolean
725
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
726
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
727
+ }, ExtArgs["result"]["agentConversation"]>
728
+
729
+ export type AgentConversationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
730
+ id?: boolean
731
+ userId?: boolean
732
+ prdId?: boolean
733
+ title?: boolean
734
+ createdAt?: boolean
735
+ updatedAt?: boolean
736
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
737
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
738
+ }, ExtArgs["result"]["agentConversation"]>
739
+
740
+ export type AgentConversationSelectScalar = {
741
+ id?: boolean
742
+ userId?: boolean
743
+ prdId?: boolean
744
+ title?: boolean
745
+ createdAt?: boolean
746
+ updatedAt?: boolean
747
+ }
748
+
749
+ 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"]>
750
+ export type AgentConversationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
751
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
752
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
753
+ messages?: boolean | Prisma.AgentConversation$messagesArgs<ExtArgs>
754
+ _count?: boolean | Prisma.AgentConversationCountOutputTypeDefaultArgs<ExtArgs>
755
+ }
756
+ export type AgentConversationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
757
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
758
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
759
+ }
760
+ export type AgentConversationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
762
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
763
+ }
764
+
765
+ export type $AgentConversationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
766
+ name: "AgentConversation"
767
+ objects: {
768
+ user: Prisma.$UserPayload<ExtArgs>
769
+ prd: Prisma.$PRDPayload<ExtArgs>
770
+ messages: Prisma.$AgentMessagePayload<ExtArgs>[]
771
+ }
772
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
773
+ id: string
774
+ userId: string
775
+ prdId: string
776
+ title: string
777
+ createdAt: Date
778
+ updatedAt: Date
779
+ }, ExtArgs["result"]["agentConversation"]>
780
+ composites: {}
781
+ }
782
+
783
+ export type AgentConversationGetPayload<S extends boolean | null | undefined | AgentConversationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload, S>
784
+
785
+ export type AgentConversationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
786
+ Omit<AgentConversationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
787
+ select?: AgentConversationCountAggregateInputType | true
788
+ }
789
+
790
+ export interface AgentConversationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
791
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentConversation'], meta: { name: 'AgentConversation' } }
792
+ /**
793
+ * Find zero or one AgentConversation that matches the filter.
794
+ * @param {AgentConversationFindUniqueArgs} args - Arguments to find a AgentConversation
795
+ * @example
796
+ * // Get one AgentConversation
797
+ * const agentConversation = await prisma.agentConversation.findUnique({
798
+ * where: {
799
+ * // ... provide filter here
800
+ * }
801
+ * })
802
+ */
803
+ 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>
804
+
805
+ /**
806
+ * Find one AgentConversation that matches the filter or throw an error with `error.code='P2025'`
807
+ * if no matches were found.
808
+ * @param {AgentConversationFindUniqueOrThrowArgs} args - Arguments to find a AgentConversation
809
+ * @example
810
+ * // Get one AgentConversation
811
+ * const agentConversation = await prisma.agentConversation.findUniqueOrThrow({
812
+ * where: {
813
+ * // ... provide filter here
814
+ * }
815
+ * })
816
+ */
817
+ 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>
818
+
819
+ /**
820
+ * Find the first AgentConversation that matches the filter.
821
+ * Note, that providing `undefined` is treated as the value not being there.
822
+ * Read more here: https://pris.ly/d/null-undefined
823
+ * @param {AgentConversationFindFirstArgs} args - Arguments to find a AgentConversation
824
+ * @example
825
+ * // Get one AgentConversation
826
+ * const agentConversation = await prisma.agentConversation.findFirst({
827
+ * where: {
828
+ * // ... provide filter here
829
+ * }
830
+ * })
831
+ */
832
+ 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>
833
+
834
+ /**
835
+ * Find the first AgentConversation that matches the filter or
836
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
837
+ * Note, that providing `undefined` is treated as the value not being there.
838
+ * Read more here: https://pris.ly/d/null-undefined
839
+ * @param {AgentConversationFindFirstOrThrowArgs} args - Arguments to find a AgentConversation
840
+ * @example
841
+ * // Get one AgentConversation
842
+ * const agentConversation = await prisma.agentConversation.findFirstOrThrow({
843
+ * where: {
844
+ * // ... provide filter here
845
+ * }
846
+ * })
847
+ */
848
+ 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>
849
+
850
+ /**
851
+ * Find zero or more AgentConversations that matches the filter.
852
+ * Note, that providing `undefined` is treated as the value not being there.
853
+ * Read more here: https://pris.ly/d/null-undefined
854
+ * @param {AgentConversationFindManyArgs} args - Arguments to filter and select certain fields only.
855
+ * @example
856
+ * // Get all AgentConversations
857
+ * const agentConversations = await prisma.agentConversation.findMany()
858
+ *
859
+ * // Get first 10 AgentConversations
860
+ * const agentConversations = await prisma.agentConversation.findMany({ take: 10 })
861
+ *
862
+ * // Only select the `id`
863
+ * const agentConversationWithIdOnly = await prisma.agentConversation.findMany({ select: { id: true } })
864
+ *
865
+ */
866
+ findMany<T extends AgentConversationFindManyArgs>(args?: Prisma.SelectSubset<T, AgentConversationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
867
+
868
+ /**
869
+ * Create a AgentConversation.
870
+ * @param {AgentConversationCreateArgs} args - Arguments to create a AgentConversation.
871
+ * @example
872
+ * // Create one AgentConversation
873
+ * const AgentConversation = await prisma.agentConversation.create({
874
+ * data: {
875
+ * // ... data to create a AgentConversation
876
+ * }
877
+ * })
878
+ *
879
+ */
880
+ 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>
881
+
882
+ /**
883
+ * Create many AgentConversations.
884
+ * @param {AgentConversationCreateManyArgs} args - Arguments to create many AgentConversations.
885
+ * @example
886
+ * // Create many AgentConversations
887
+ * const agentConversation = await prisma.agentConversation.createMany({
888
+ * data: [
889
+ * // ... provide data here
890
+ * ]
891
+ * })
892
+ *
893
+ */
894
+ createMany<T extends AgentConversationCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentConversationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
895
+
896
+ /**
897
+ * Create many AgentConversations and returns the data saved in the database.
898
+ * @param {AgentConversationCreateManyAndReturnArgs} args - Arguments to create many AgentConversations.
899
+ * @example
900
+ * // Create many AgentConversations
901
+ * const agentConversation = await prisma.agentConversation.createManyAndReturn({
902
+ * data: [
903
+ * // ... provide data here
904
+ * ]
905
+ * })
906
+ *
907
+ * // Create many AgentConversations and only return the `id`
908
+ * const agentConversationWithIdOnly = await prisma.agentConversation.createManyAndReturn({
909
+ * select: { id: true },
910
+ * data: [
911
+ * // ... provide data here
912
+ * ]
913
+ * })
914
+ * Note, that providing `undefined` is treated as the value not being there.
915
+ * Read more here: https://pris.ly/d/null-undefined
916
+ *
917
+ */
918
+ createManyAndReturn<T extends AgentConversationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentConversationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
919
+
920
+ /**
921
+ * Delete a AgentConversation.
922
+ * @param {AgentConversationDeleteArgs} args - Arguments to delete one AgentConversation.
923
+ * @example
924
+ * // Delete one AgentConversation
925
+ * const AgentConversation = await prisma.agentConversation.delete({
926
+ * where: {
927
+ * // ... filter to delete one AgentConversation
928
+ * }
929
+ * })
930
+ *
931
+ */
932
+ 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>
933
+
934
+ /**
935
+ * Update one AgentConversation.
936
+ * @param {AgentConversationUpdateArgs} args - Arguments to update one AgentConversation.
937
+ * @example
938
+ * // Update one AgentConversation
939
+ * const agentConversation = await prisma.agentConversation.update({
940
+ * where: {
941
+ * // ... provide filter here
942
+ * },
943
+ * data: {
944
+ * // ... provide data here
945
+ * }
946
+ * })
947
+ *
948
+ */
949
+ 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>
950
+
951
+ /**
952
+ * Delete zero or more AgentConversations.
953
+ * @param {AgentConversationDeleteManyArgs} args - Arguments to filter AgentConversations to delete.
954
+ * @example
955
+ * // Delete a few AgentConversations
956
+ * const { count } = await prisma.agentConversation.deleteMany({
957
+ * where: {
958
+ * // ... provide filter here
959
+ * }
960
+ * })
961
+ *
962
+ */
963
+ deleteMany<T extends AgentConversationDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentConversationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
964
+
965
+ /**
966
+ * Update zero or more AgentConversations.
967
+ * Note, that providing `undefined` is treated as the value not being there.
968
+ * Read more here: https://pris.ly/d/null-undefined
969
+ * @param {AgentConversationUpdateManyArgs} args - Arguments to update one or more rows.
970
+ * @example
971
+ * // Update many AgentConversations
972
+ * const agentConversation = await prisma.agentConversation.updateMany({
973
+ * where: {
974
+ * // ... provide filter here
975
+ * },
976
+ * data: {
977
+ * // ... provide data here
978
+ * }
979
+ * })
980
+ *
981
+ */
982
+ updateMany<T extends AgentConversationUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentConversationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
983
+
984
+ /**
985
+ * Update zero or more AgentConversations and returns the data updated in the database.
986
+ * @param {AgentConversationUpdateManyAndReturnArgs} args - Arguments to update many AgentConversations.
987
+ * @example
988
+ * // Update many AgentConversations
989
+ * const agentConversation = await prisma.agentConversation.updateManyAndReturn({
990
+ * where: {
991
+ * // ... provide filter here
992
+ * },
993
+ * data: [
994
+ * // ... provide data here
995
+ * ]
996
+ * })
997
+ *
998
+ * // Update zero or more AgentConversations and only return the `id`
999
+ * const agentConversationWithIdOnly = await prisma.agentConversation.updateManyAndReturn({
1000
+ * select: { id: true },
1001
+ * where: {
1002
+ * // ... provide filter here
1003
+ * },
1004
+ * data: [
1005
+ * // ... provide data here
1006
+ * ]
1007
+ * })
1008
+ * Note, that providing `undefined` is treated as the value not being there.
1009
+ * Read more here: https://pris.ly/d/null-undefined
1010
+ *
1011
+ */
1012
+ updateManyAndReturn<T extends AgentConversationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentConversationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1013
+
1014
+ /**
1015
+ * Create or update one AgentConversation.
1016
+ * @param {AgentConversationUpsertArgs} args - Arguments to update or create a AgentConversation.
1017
+ * @example
1018
+ * // Update or create a AgentConversation
1019
+ * const agentConversation = await prisma.agentConversation.upsert({
1020
+ * create: {
1021
+ * // ... data to create a AgentConversation
1022
+ * },
1023
+ * update: {
1024
+ * // ... in case it already exists, update
1025
+ * },
1026
+ * where: {
1027
+ * // ... the filter for the AgentConversation we want to update
1028
+ * }
1029
+ * })
1030
+ */
1031
+ 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>
1032
+
1033
+
1034
+ /**
1035
+ * Count the number of AgentConversations.
1036
+ * Note, that providing `undefined` is treated as the value not being there.
1037
+ * Read more here: https://pris.ly/d/null-undefined
1038
+ * @param {AgentConversationCountArgs} args - Arguments to filter AgentConversations to count.
1039
+ * @example
1040
+ * // Count the number of AgentConversations
1041
+ * const count = await prisma.agentConversation.count({
1042
+ * where: {
1043
+ * // ... the filter for the AgentConversations we want to count
1044
+ * }
1045
+ * })
1046
+ **/
1047
+ count<T extends AgentConversationCountArgs>(
1048
+ args?: Prisma.Subset<T, AgentConversationCountArgs>,
1049
+ ): Prisma.PrismaPromise<
1050
+ T extends runtime.Types.Utils.Record<'select', any>
1051
+ ? T['select'] extends true
1052
+ ? number
1053
+ : Prisma.GetScalarType<T['select'], AgentConversationCountAggregateOutputType>
1054
+ : number
1055
+ >
1056
+
1057
+ /**
1058
+ * Allows you to perform aggregations operations on a AgentConversation.
1059
+ * Note, that providing `undefined` is treated as the value not being there.
1060
+ * Read more here: https://pris.ly/d/null-undefined
1061
+ * @param {AgentConversationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1062
+ * @example
1063
+ * // Ordered by age ascending
1064
+ * // Where email contains prisma.io
1065
+ * // Limited to the 10 users
1066
+ * const aggregations = await prisma.user.aggregate({
1067
+ * _avg: {
1068
+ * age: true,
1069
+ * },
1070
+ * where: {
1071
+ * email: {
1072
+ * contains: "prisma.io",
1073
+ * },
1074
+ * },
1075
+ * orderBy: {
1076
+ * age: "asc",
1077
+ * },
1078
+ * take: 10,
1079
+ * })
1080
+ **/
1081
+ aggregate<T extends AgentConversationAggregateArgs>(args: Prisma.Subset<T, AgentConversationAggregateArgs>): Prisma.PrismaPromise<GetAgentConversationAggregateType<T>>
1082
+
1083
+ /**
1084
+ * Group by AgentConversation.
1085
+ * Note, that providing `undefined` is treated as the value not being there.
1086
+ * Read more here: https://pris.ly/d/null-undefined
1087
+ * @param {AgentConversationGroupByArgs} args - Group by arguments.
1088
+ * @example
1089
+ * // Group by city, order by createdAt, get count
1090
+ * const result = await prisma.user.groupBy({
1091
+ * by: ['city', 'createdAt'],
1092
+ * orderBy: {
1093
+ * createdAt: true
1094
+ * },
1095
+ * _count: {
1096
+ * _all: true
1097
+ * },
1098
+ * })
1099
+ *
1100
+ **/
1101
+ groupBy<
1102
+ T extends AgentConversationGroupByArgs,
1103
+ HasSelectOrTake extends Prisma.Or<
1104
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1105
+ Prisma.Extends<'take', Prisma.Keys<T>>
1106
+ >,
1107
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1108
+ ? { orderBy: AgentConversationGroupByArgs['orderBy'] }
1109
+ : { orderBy?: AgentConversationGroupByArgs['orderBy'] },
1110
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1111
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1112
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1113
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1114
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1115
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1116
+ InputErrors extends ByEmpty extends Prisma.True
1117
+ ? `Error: "by" must not be empty.`
1118
+ : HavingValid extends Prisma.False
1119
+ ? {
1120
+ [P in HavingFields]: P extends ByFields
1121
+ ? never
1122
+ : P extends string
1123
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1124
+ : [
1125
+ Error,
1126
+ 'Field ',
1127
+ P,
1128
+ ` in "having" needs to be provided in "by"`,
1129
+ ]
1130
+ }[HavingFields]
1131
+ : 'take' extends Prisma.Keys<T>
1132
+ ? 'orderBy' extends Prisma.Keys<T>
1133
+ ? ByValid extends Prisma.True
1134
+ ? {}
1135
+ : {
1136
+ [P in OrderFields]: P extends ByFields
1137
+ ? never
1138
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1139
+ }[OrderFields]
1140
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1141
+ : 'skip' extends Prisma.Keys<T>
1142
+ ? 'orderBy' extends Prisma.Keys<T>
1143
+ ? ByValid extends Prisma.True
1144
+ ? {}
1145
+ : {
1146
+ [P in OrderFields]: P extends ByFields
1147
+ ? never
1148
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1149
+ }[OrderFields]
1150
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1151
+ : ByValid extends Prisma.True
1152
+ ? {}
1153
+ : {
1154
+ [P in OrderFields]: P extends ByFields
1155
+ ? never
1156
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1157
+ }[OrderFields]
1158
+ >(args: Prisma.SubsetIntersection<T, AgentConversationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentConversationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1159
+ /**
1160
+ * Fields of the AgentConversation model
1161
+ */
1162
+ readonly fields: AgentConversationFieldRefs;
1163
+ }
1164
+
1165
+ /**
1166
+ * The delegate class that acts as a "Promise-like" for AgentConversation.
1167
+ * Why is this prefixed with `Prisma__`?
1168
+ * Because we want to prevent naming conflicts as mentioned in
1169
+ * https://github.com/prisma/prisma-client-js/issues/707
1170
+ */
1171
+ export interface Prisma__AgentConversationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1172
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1173
+ 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>
1174
+ 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>
1175
+ 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>
1176
+ /**
1177
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1178
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1179
+ * @param onrejected The callback to execute when the Promise is rejected.
1180
+ * @returns A Promise for the completion of which ever callback is executed.
1181
+ */
1182
+ 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>
1183
+ /**
1184
+ * Attaches a callback for only the rejection of the Promise.
1185
+ * @param onrejected The callback to execute when the Promise is rejected.
1186
+ * @returns A Promise for the completion of the callback.
1187
+ */
1188
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1189
+ /**
1190
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1191
+ * resolved value cannot be modified from the callback.
1192
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1193
+ * @returns A Promise for the completion of the callback.
1194
+ */
1195
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1196
+ }
1197
+
1198
+
1199
+
1200
+
1201
+ /**
1202
+ * Fields of the AgentConversation model
1203
+ */
1204
+ export interface AgentConversationFieldRefs {
1205
+ readonly id: Prisma.FieldRef<"AgentConversation", 'String'>
1206
+ readonly userId: Prisma.FieldRef<"AgentConversation", 'String'>
1207
+ readonly prdId: Prisma.FieldRef<"AgentConversation", 'String'>
1208
+ readonly title: Prisma.FieldRef<"AgentConversation", 'String'>
1209
+ readonly createdAt: Prisma.FieldRef<"AgentConversation", 'DateTime'>
1210
+ readonly updatedAt: Prisma.FieldRef<"AgentConversation", 'DateTime'>
1211
+ }
1212
+
1213
+
1214
+ // Custom InputTypes
1215
+ /**
1216
+ * AgentConversation findUnique
1217
+ */
1218
+ export type AgentConversationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1219
+ /**
1220
+ * Select specific fields to fetch from the AgentConversation
1221
+ */
1222
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1223
+ /**
1224
+ * Omit specific fields from the AgentConversation
1225
+ */
1226
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1227
+ /**
1228
+ * Choose, which related nodes to fetch as well
1229
+ */
1230
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1231
+ /**
1232
+ * Filter, which AgentConversation to fetch.
1233
+ */
1234
+ where: Prisma.AgentConversationWhereUniqueInput
1235
+ }
1236
+
1237
+ /**
1238
+ * AgentConversation findUniqueOrThrow
1239
+ */
1240
+ export type AgentConversationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1241
+ /**
1242
+ * Select specific fields to fetch from the AgentConversation
1243
+ */
1244
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1245
+ /**
1246
+ * Omit specific fields from the AgentConversation
1247
+ */
1248
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1249
+ /**
1250
+ * Choose, which related nodes to fetch as well
1251
+ */
1252
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1253
+ /**
1254
+ * Filter, which AgentConversation to fetch.
1255
+ */
1256
+ where: Prisma.AgentConversationWhereUniqueInput
1257
+ }
1258
+
1259
+ /**
1260
+ * AgentConversation findFirst
1261
+ */
1262
+ export type AgentConversationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the AgentConversation
1265
+ */
1266
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1267
+ /**
1268
+ * Omit specific fields from the AgentConversation
1269
+ */
1270
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1275
+ /**
1276
+ * Filter, which AgentConversation to fetch.
1277
+ */
1278
+ where?: Prisma.AgentConversationWhereInput
1279
+ /**
1280
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1281
+ *
1282
+ * Determine the order of AgentConversations to fetch.
1283
+ */
1284
+ orderBy?: Prisma.AgentConversationOrderByWithRelationInput | Prisma.AgentConversationOrderByWithRelationInput[]
1285
+ /**
1286
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1287
+ *
1288
+ * Sets the position for searching for AgentConversations.
1289
+ */
1290
+ cursor?: Prisma.AgentConversationWhereUniqueInput
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1293
+ *
1294
+ * Take `±n` AgentConversations from the position of the cursor.
1295
+ */
1296
+ take?: number
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1299
+ *
1300
+ * Skip the first `n` AgentConversations.
1301
+ */
1302
+ skip?: number
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1305
+ *
1306
+ * Filter by unique combinations of AgentConversations.
1307
+ */
1308
+ distinct?: Prisma.AgentConversationScalarFieldEnum | Prisma.AgentConversationScalarFieldEnum[]
1309
+ }
1310
+
1311
+ /**
1312
+ * AgentConversation findFirstOrThrow
1313
+ */
1314
+ export type AgentConversationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * Select specific fields to fetch from the AgentConversation
1317
+ */
1318
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1319
+ /**
1320
+ * Omit specific fields from the AgentConversation
1321
+ */
1322
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1323
+ /**
1324
+ * Choose, which related nodes to fetch as well
1325
+ */
1326
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1327
+ /**
1328
+ * Filter, which AgentConversation to fetch.
1329
+ */
1330
+ where?: Prisma.AgentConversationWhereInput
1331
+ /**
1332
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1333
+ *
1334
+ * Determine the order of AgentConversations to fetch.
1335
+ */
1336
+ orderBy?: Prisma.AgentConversationOrderByWithRelationInput | Prisma.AgentConversationOrderByWithRelationInput[]
1337
+ /**
1338
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1339
+ *
1340
+ * Sets the position for searching for AgentConversations.
1341
+ */
1342
+ cursor?: Prisma.AgentConversationWhereUniqueInput
1343
+ /**
1344
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1345
+ *
1346
+ * Take `±n` AgentConversations from the position of the cursor.
1347
+ */
1348
+ take?: number
1349
+ /**
1350
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1351
+ *
1352
+ * Skip the first `n` AgentConversations.
1353
+ */
1354
+ skip?: number
1355
+ /**
1356
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1357
+ *
1358
+ * Filter by unique combinations of AgentConversations.
1359
+ */
1360
+ distinct?: Prisma.AgentConversationScalarFieldEnum | Prisma.AgentConversationScalarFieldEnum[]
1361
+ }
1362
+
1363
+ /**
1364
+ * AgentConversation findMany
1365
+ */
1366
+ export type AgentConversationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1367
+ /**
1368
+ * Select specific fields to fetch from the AgentConversation
1369
+ */
1370
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1371
+ /**
1372
+ * Omit specific fields from the AgentConversation
1373
+ */
1374
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1375
+ /**
1376
+ * Choose, which related nodes to fetch as well
1377
+ */
1378
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1379
+ /**
1380
+ * Filter, which AgentConversations to fetch.
1381
+ */
1382
+ where?: Prisma.AgentConversationWhereInput
1383
+ /**
1384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1385
+ *
1386
+ * Determine the order of AgentConversations to fetch.
1387
+ */
1388
+ orderBy?: Prisma.AgentConversationOrderByWithRelationInput | Prisma.AgentConversationOrderByWithRelationInput[]
1389
+ /**
1390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1391
+ *
1392
+ * Sets the position for listing AgentConversations.
1393
+ */
1394
+ cursor?: Prisma.AgentConversationWhereUniqueInput
1395
+ /**
1396
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1397
+ *
1398
+ * Take `±n` AgentConversations from the position of the cursor.
1399
+ */
1400
+ take?: number
1401
+ /**
1402
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1403
+ *
1404
+ * Skip the first `n` AgentConversations.
1405
+ */
1406
+ skip?: number
1407
+ /**
1408
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1409
+ *
1410
+ * Filter by unique combinations of AgentConversations.
1411
+ */
1412
+ distinct?: Prisma.AgentConversationScalarFieldEnum | Prisma.AgentConversationScalarFieldEnum[]
1413
+ }
1414
+
1415
+ /**
1416
+ * AgentConversation create
1417
+ */
1418
+ export type AgentConversationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Select specific fields to fetch from the AgentConversation
1421
+ */
1422
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1423
+ /**
1424
+ * Omit specific fields from the AgentConversation
1425
+ */
1426
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1431
+ /**
1432
+ * The data needed to create a AgentConversation.
1433
+ */
1434
+ data: Prisma.XOR<Prisma.AgentConversationCreateInput, Prisma.AgentConversationUncheckedCreateInput>
1435
+ }
1436
+
1437
+ /**
1438
+ * AgentConversation createMany
1439
+ */
1440
+ export type AgentConversationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ /**
1442
+ * The data used to create many AgentConversations.
1443
+ */
1444
+ data: Prisma.AgentConversationCreateManyInput | Prisma.AgentConversationCreateManyInput[]
1445
+ skipDuplicates?: boolean
1446
+ }
1447
+
1448
+ /**
1449
+ * AgentConversation createManyAndReturn
1450
+ */
1451
+ export type AgentConversationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1452
+ /**
1453
+ * Select specific fields to fetch from the AgentConversation
1454
+ */
1455
+ select?: Prisma.AgentConversationSelectCreateManyAndReturn<ExtArgs> | null
1456
+ /**
1457
+ * Omit specific fields from the AgentConversation
1458
+ */
1459
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1460
+ /**
1461
+ * The data used to create many AgentConversations.
1462
+ */
1463
+ data: Prisma.AgentConversationCreateManyInput | Prisma.AgentConversationCreateManyInput[]
1464
+ skipDuplicates?: boolean
1465
+ /**
1466
+ * Choose, which related nodes to fetch as well
1467
+ */
1468
+ include?: Prisma.AgentConversationIncludeCreateManyAndReturn<ExtArgs> | null
1469
+ }
1470
+
1471
+ /**
1472
+ * AgentConversation update
1473
+ */
1474
+ export type AgentConversationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1475
+ /**
1476
+ * Select specific fields to fetch from the AgentConversation
1477
+ */
1478
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1479
+ /**
1480
+ * Omit specific fields from the AgentConversation
1481
+ */
1482
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1483
+ /**
1484
+ * Choose, which related nodes to fetch as well
1485
+ */
1486
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1487
+ /**
1488
+ * The data needed to update a AgentConversation.
1489
+ */
1490
+ data: Prisma.XOR<Prisma.AgentConversationUpdateInput, Prisma.AgentConversationUncheckedUpdateInput>
1491
+ /**
1492
+ * Choose, which AgentConversation to update.
1493
+ */
1494
+ where: Prisma.AgentConversationWhereUniqueInput
1495
+ }
1496
+
1497
+ /**
1498
+ * AgentConversation updateMany
1499
+ */
1500
+ export type AgentConversationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1501
+ /**
1502
+ * The data used to update AgentConversations.
1503
+ */
1504
+ data: Prisma.XOR<Prisma.AgentConversationUpdateManyMutationInput, Prisma.AgentConversationUncheckedUpdateManyInput>
1505
+ /**
1506
+ * Filter which AgentConversations to update
1507
+ */
1508
+ where?: Prisma.AgentConversationWhereInput
1509
+ /**
1510
+ * Limit how many AgentConversations to update.
1511
+ */
1512
+ limit?: number
1513
+ }
1514
+
1515
+ /**
1516
+ * AgentConversation updateManyAndReturn
1517
+ */
1518
+ export type AgentConversationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1519
+ /**
1520
+ * Select specific fields to fetch from the AgentConversation
1521
+ */
1522
+ select?: Prisma.AgentConversationSelectUpdateManyAndReturn<ExtArgs> | null
1523
+ /**
1524
+ * Omit specific fields from the AgentConversation
1525
+ */
1526
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1527
+ /**
1528
+ * The data used to update AgentConversations.
1529
+ */
1530
+ data: Prisma.XOR<Prisma.AgentConversationUpdateManyMutationInput, Prisma.AgentConversationUncheckedUpdateManyInput>
1531
+ /**
1532
+ * Filter which AgentConversations to update
1533
+ */
1534
+ where?: Prisma.AgentConversationWhereInput
1535
+ /**
1536
+ * Limit how many AgentConversations to update.
1537
+ */
1538
+ limit?: number
1539
+ /**
1540
+ * Choose, which related nodes to fetch as well
1541
+ */
1542
+ include?: Prisma.AgentConversationIncludeUpdateManyAndReturn<ExtArgs> | null
1543
+ }
1544
+
1545
+ /**
1546
+ * AgentConversation upsert
1547
+ */
1548
+ export type AgentConversationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1549
+ /**
1550
+ * Select specific fields to fetch from the AgentConversation
1551
+ */
1552
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1553
+ /**
1554
+ * Omit specific fields from the AgentConversation
1555
+ */
1556
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1557
+ /**
1558
+ * Choose, which related nodes to fetch as well
1559
+ */
1560
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1561
+ /**
1562
+ * The filter to search for the AgentConversation to update in case it exists.
1563
+ */
1564
+ where: Prisma.AgentConversationWhereUniqueInput
1565
+ /**
1566
+ * In case the AgentConversation found by the `where` argument doesn't exist, create a new AgentConversation with this data.
1567
+ */
1568
+ create: Prisma.XOR<Prisma.AgentConversationCreateInput, Prisma.AgentConversationUncheckedCreateInput>
1569
+ /**
1570
+ * In case the AgentConversation was found with the provided `where` argument, update it with this data.
1571
+ */
1572
+ update: Prisma.XOR<Prisma.AgentConversationUpdateInput, Prisma.AgentConversationUncheckedUpdateInput>
1573
+ }
1574
+
1575
+ /**
1576
+ * AgentConversation delete
1577
+ */
1578
+ export type AgentConversationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1579
+ /**
1580
+ * Select specific fields to fetch from the AgentConversation
1581
+ */
1582
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1583
+ /**
1584
+ * Omit specific fields from the AgentConversation
1585
+ */
1586
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1587
+ /**
1588
+ * Choose, which related nodes to fetch as well
1589
+ */
1590
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1591
+ /**
1592
+ * Filter which AgentConversation to delete.
1593
+ */
1594
+ where: Prisma.AgentConversationWhereUniqueInput
1595
+ }
1596
+
1597
+ /**
1598
+ * AgentConversation deleteMany
1599
+ */
1600
+ export type AgentConversationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1601
+ /**
1602
+ * Filter which AgentConversations to delete
1603
+ */
1604
+ where?: Prisma.AgentConversationWhereInput
1605
+ /**
1606
+ * Limit how many AgentConversations to delete.
1607
+ */
1608
+ limit?: number
1609
+ }
1610
+
1611
+ /**
1612
+ * AgentConversation.messages
1613
+ */
1614
+ export type AgentConversation$messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1615
+ /**
1616
+ * Select specific fields to fetch from the AgentMessage
1617
+ */
1618
+ select?: Prisma.AgentMessageSelect<ExtArgs> | null
1619
+ /**
1620
+ * Omit specific fields from the AgentMessage
1621
+ */
1622
+ omit?: Prisma.AgentMessageOmit<ExtArgs> | null
1623
+ /**
1624
+ * Choose, which related nodes to fetch as well
1625
+ */
1626
+ include?: Prisma.AgentMessageInclude<ExtArgs> | null
1627
+ where?: Prisma.AgentMessageWhereInput
1628
+ orderBy?: Prisma.AgentMessageOrderByWithRelationInput | Prisma.AgentMessageOrderByWithRelationInput[]
1629
+ cursor?: Prisma.AgentMessageWhereUniqueInput
1630
+ take?: number
1631
+ skip?: number
1632
+ distinct?: Prisma.AgentMessageScalarFieldEnum | Prisma.AgentMessageScalarFieldEnum[]
1633
+ }
1634
+
1635
+ /**
1636
+ * AgentConversation without action
1637
+ */
1638
+ export type AgentConversationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1639
+ /**
1640
+ * Select specific fields to fetch from the AgentConversation
1641
+ */
1642
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
1643
+ /**
1644
+ * Omit specific fields from the AgentConversation
1645
+ */
1646
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
1647
+ /**
1648
+ * Choose, which related nodes to fetch as well
1649
+ */
1650
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
1651
+ }