@allbluecn/database 0.4.0 → 0.4.2

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