@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,2458 @@
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 `KnowledgeDocument` 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 KnowledgeDocument
17
+ *
18
+ */
19
+ export type KnowledgeDocumentModel = runtime.Types.Result.DefaultSelection<Prisma.$KnowledgeDocumentPayload>
20
+
21
+ export type AggregateKnowledgeDocument = {
22
+ _count: KnowledgeDocumentCountAggregateOutputType | null
23
+ _avg: KnowledgeDocumentAvgAggregateOutputType | null
24
+ _sum: KnowledgeDocumentSumAggregateOutputType | null
25
+ _min: KnowledgeDocumentMinAggregateOutputType | null
26
+ _max: KnowledgeDocumentMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type KnowledgeDocumentAvgAggregateOutputType = {
30
+ sortOrder: number | null
31
+ }
32
+
33
+ export type KnowledgeDocumentSumAggregateOutputType = {
34
+ sortOrder: number | null
35
+ }
36
+
37
+ export type KnowledgeDocumentMinAggregateOutputType = {
38
+ id: string | null
39
+ kbId: string | null
40
+ parentId: string | null
41
+ title: string | null
42
+ type: string | null
43
+ icon: string | null
44
+ isHomepage: boolean | null
45
+ sortOrder: number | null
46
+ isDeleted: boolean | null
47
+ createdBy: string | null
48
+ createdAt: Date | null
49
+ updatedAt: Date | null
50
+ }
51
+
52
+ export type KnowledgeDocumentMaxAggregateOutputType = {
53
+ id: string | null
54
+ kbId: string | null
55
+ parentId: string | null
56
+ title: string | null
57
+ type: string | null
58
+ icon: string | null
59
+ isHomepage: boolean | null
60
+ sortOrder: number | null
61
+ isDeleted: boolean | null
62
+ createdBy: string | null
63
+ createdAt: Date | null
64
+ updatedAt: Date | null
65
+ }
66
+
67
+ export type KnowledgeDocumentCountAggregateOutputType = {
68
+ id: number
69
+ kbId: number
70
+ parentId: number
71
+ title: number
72
+ type: number
73
+ content: number
74
+ icon: number
75
+ isHomepage: number
76
+ sortOrder: number
77
+ isDeleted: number
78
+ createdBy: number
79
+ tags: number
80
+ properties: number
81
+ createdAt: number
82
+ updatedAt: number
83
+ _all: number
84
+ }
85
+
86
+
87
+ export type KnowledgeDocumentAvgAggregateInputType = {
88
+ sortOrder?: true
89
+ }
90
+
91
+ export type KnowledgeDocumentSumAggregateInputType = {
92
+ sortOrder?: true
93
+ }
94
+
95
+ export type KnowledgeDocumentMinAggregateInputType = {
96
+ id?: true
97
+ kbId?: true
98
+ parentId?: true
99
+ title?: true
100
+ type?: true
101
+ icon?: true
102
+ isHomepage?: true
103
+ sortOrder?: true
104
+ isDeleted?: true
105
+ createdBy?: true
106
+ createdAt?: true
107
+ updatedAt?: true
108
+ }
109
+
110
+ export type KnowledgeDocumentMaxAggregateInputType = {
111
+ id?: true
112
+ kbId?: true
113
+ parentId?: true
114
+ title?: true
115
+ type?: true
116
+ icon?: true
117
+ isHomepage?: true
118
+ sortOrder?: true
119
+ isDeleted?: true
120
+ createdBy?: true
121
+ createdAt?: true
122
+ updatedAt?: true
123
+ }
124
+
125
+ export type KnowledgeDocumentCountAggregateInputType = {
126
+ id?: true
127
+ kbId?: true
128
+ parentId?: true
129
+ title?: true
130
+ type?: true
131
+ content?: true
132
+ icon?: true
133
+ isHomepage?: true
134
+ sortOrder?: true
135
+ isDeleted?: true
136
+ createdBy?: true
137
+ tags?: true
138
+ properties?: true
139
+ createdAt?: true
140
+ updatedAt?: true
141
+ _all?: true
142
+ }
143
+
144
+ export type KnowledgeDocumentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ /**
146
+ * Filter which KnowledgeDocument to aggregate.
147
+ */
148
+ where?: Prisma.KnowledgeDocumentWhereInput
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
151
+ *
152
+ * Determine the order of KnowledgeDocuments to fetch.
153
+ */
154
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
157
+ *
158
+ * Sets the start position
159
+ */
160
+ cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
163
+ *
164
+ * Take `±n` KnowledgeDocuments from the position of the cursor.
165
+ */
166
+ take?: number
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
+ *
170
+ * Skip the first `n` KnowledgeDocuments.
171
+ */
172
+ skip?: number
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Count returned KnowledgeDocuments
177
+ **/
178
+ _count?: true | KnowledgeDocumentCountAggregateInputType
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Select which fields to average
183
+ **/
184
+ _avg?: KnowledgeDocumentAvgAggregateInputType
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to sum
189
+ **/
190
+ _sum?: KnowledgeDocumentSumAggregateInputType
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to find the minimum value
195
+ **/
196
+ _min?: KnowledgeDocumentMinAggregateInputType
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to find the maximum value
201
+ **/
202
+ _max?: KnowledgeDocumentMaxAggregateInputType
203
+ }
204
+
205
+ export type GetKnowledgeDocumentAggregateType<T extends KnowledgeDocumentAggregateArgs> = {
206
+ [P in keyof T & keyof AggregateKnowledgeDocument]: P extends '_count' | 'count'
207
+ ? T[P] extends true
208
+ ? number
209
+ : Prisma.GetScalarType<T[P], AggregateKnowledgeDocument[P]>
210
+ : Prisma.GetScalarType<T[P], AggregateKnowledgeDocument[P]>
211
+ }
212
+
213
+
214
+
215
+
216
+ export type KnowledgeDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
217
+ where?: Prisma.KnowledgeDocumentWhereInput
218
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithAggregationInput | Prisma.KnowledgeDocumentOrderByWithAggregationInput[]
219
+ by: Prisma.KnowledgeDocumentScalarFieldEnum[] | Prisma.KnowledgeDocumentScalarFieldEnum
220
+ having?: Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput
221
+ take?: number
222
+ skip?: number
223
+ _count?: KnowledgeDocumentCountAggregateInputType | true
224
+ _avg?: KnowledgeDocumentAvgAggregateInputType
225
+ _sum?: KnowledgeDocumentSumAggregateInputType
226
+ _min?: KnowledgeDocumentMinAggregateInputType
227
+ _max?: KnowledgeDocumentMaxAggregateInputType
228
+ }
229
+
230
+ export type KnowledgeDocumentGroupByOutputType = {
231
+ id: string
232
+ kbId: string
233
+ parentId: string | null
234
+ title: string
235
+ type: string
236
+ content: runtime.JsonValue
237
+ icon: string | null
238
+ isHomepage: boolean
239
+ sortOrder: number
240
+ isDeleted: boolean
241
+ createdBy: string
242
+ tags: runtime.JsonValue
243
+ properties: runtime.JsonValue
244
+ createdAt: Date
245
+ updatedAt: Date
246
+ _count: KnowledgeDocumentCountAggregateOutputType | null
247
+ _avg: KnowledgeDocumentAvgAggregateOutputType | null
248
+ _sum: KnowledgeDocumentSumAggregateOutputType | null
249
+ _min: KnowledgeDocumentMinAggregateOutputType | null
250
+ _max: KnowledgeDocumentMaxAggregateOutputType | null
251
+ }
252
+
253
+ export type GetKnowledgeDocumentGroupByPayload<T extends KnowledgeDocumentGroupByArgs> = Prisma.PrismaPromise<
254
+ Array<
255
+ Prisma.PickEnumerable<KnowledgeDocumentGroupByOutputType, T['by']> &
256
+ {
257
+ [P in ((keyof T) & (keyof KnowledgeDocumentGroupByOutputType))]: P extends '_count'
258
+ ? T[P] extends boolean
259
+ ? number
260
+ : Prisma.GetScalarType<T[P], KnowledgeDocumentGroupByOutputType[P]>
261
+ : Prisma.GetScalarType<T[P], KnowledgeDocumentGroupByOutputType[P]>
262
+ }
263
+ >
264
+ >
265
+
266
+
267
+
268
+ export type KnowledgeDocumentWhereInput = {
269
+ AND?: Prisma.KnowledgeDocumentWhereInput | Prisma.KnowledgeDocumentWhereInput[]
270
+ OR?: Prisma.KnowledgeDocumentWhereInput[]
271
+ NOT?: Prisma.KnowledgeDocumentWhereInput | Prisma.KnowledgeDocumentWhereInput[]
272
+ id?: Prisma.StringFilter<"KnowledgeDocument"> | string
273
+ kbId?: Prisma.StringFilter<"KnowledgeDocument"> | string
274
+ parentId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
275
+ title?: Prisma.StringFilter<"KnowledgeDocument"> | string
276
+ type?: Prisma.StringFilter<"KnowledgeDocument"> | string
277
+ content?: Prisma.JsonFilter<"KnowledgeDocument">
278
+ icon?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
279
+ isHomepage?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
280
+ sortOrder?: Prisma.IntFilter<"KnowledgeDocument"> | number
281
+ isDeleted?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
282
+ createdBy?: Prisma.StringFilter<"KnowledgeDocument"> | string
283
+ tags?: Prisma.JsonFilter<"KnowledgeDocument">
284
+ properties?: Prisma.JsonFilter<"KnowledgeDocument">
285
+ createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
286
+ updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
287
+ kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
288
+ parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
289
+ children?: Prisma.KnowledgeDocumentListRelationFilter
290
+ creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
291
+ linkedStories?: Prisma.StoryDocLinkListRelationFilter
292
+ }
293
+
294
+ export type KnowledgeDocumentOrderByWithRelationInput = {
295
+ id?: Prisma.SortOrder
296
+ kbId?: Prisma.SortOrder
297
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
298
+ title?: Prisma.SortOrder
299
+ type?: Prisma.SortOrder
300
+ content?: Prisma.SortOrder
301
+ icon?: Prisma.SortOrderInput | Prisma.SortOrder
302
+ isHomepage?: Prisma.SortOrder
303
+ sortOrder?: Prisma.SortOrder
304
+ isDeleted?: Prisma.SortOrder
305
+ createdBy?: Prisma.SortOrder
306
+ tags?: Prisma.SortOrder
307
+ properties?: Prisma.SortOrder
308
+ createdAt?: Prisma.SortOrder
309
+ updatedAt?: Prisma.SortOrder
310
+ kb?: Prisma.KnowledgeBaseOrderByWithRelationInput
311
+ parent?: Prisma.KnowledgeDocumentOrderByWithRelationInput
312
+ children?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
313
+ creator?: Prisma.UserOrderByWithRelationInput
314
+ linkedStories?: Prisma.StoryDocLinkOrderByRelationAggregateInput
315
+ }
316
+
317
+ export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
318
+ id?: string
319
+ AND?: Prisma.KnowledgeDocumentWhereInput | Prisma.KnowledgeDocumentWhereInput[]
320
+ OR?: Prisma.KnowledgeDocumentWhereInput[]
321
+ NOT?: Prisma.KnowledgeDocumentWhereInput | Prisma.KnowledgeDocumentWhereInput[]
322
+ kbId?: Prisma.StringFilter<"KnowledgeDocument"> | string
323
+ parentId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
324
+ title?: Prisma.StringFilter<"KnowledgeDocument"> | string
325
+ type?: Prisma.StringFilter<"KnowledgeDocument"> | string
326
+ content?: Prisma.JsonFilter<"KnowledgeDocument">
327
+ icon?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
328
+ isHomepage?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
329
+ sortOrder?: Prisma.IntFilter<"KnowledgeDocument"> | number
330
+ isDeleted?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
331
+ createdBy?: Prisma.StringFilter<"KnowledgeDocument"> | string
332
+ tags?: Prisma.JsonFilter<"KnowledgeDocument">
333
+ properties?: Prisma.JsonFilter<"KnowledgeDocument">
334
+ createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
335
+ updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
336
+ kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
337
+ parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
338
+ children?: Prisma.KnowledgeDocumentListRelationFilter
339
+ creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
340
+ linkedStories?: Prisma.StoryDocLinkListRelationFilter
341
+ }, "id">
342
+
343
+ export type KnowledgeDocumentOrderByWithAggregationInput = {
344
+ id?: Prisma.SortOrder
345
+ kbId?: Prisma.SortOrder
346
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
347
+ title?: Prisma.SortOrder
348
+ type?: Prisma.SortOrder
349
+ content?: Prisma.SortOrder
350
+ icon?: Prisma.SortOrderInput | Prisma.SortOrder
351
+ isHomepage?: Prisma.SortOrder
352
+ sortOrder?: Prisma.SortOrder
353
+ isDeleted?: Prisma.SortOrder
354
+ createdBy?: Prisma.SortOrder
355
+ tags?: Prisma.SortOrder
356
+ properties?: Prisma.SortOrder
357
+ createdAt?: Prisma.SortOrder
358
+ updatedAt?: Prisma.SortOrder
359
+ _count?: Prisma.KnowledgeDocumentCountOrderByAggregateInput
360
+ _avg?: Prisma.KnowledgeDocumentAvgOrderByAggregateInput
361
+ _max?: Prisma.KnowledgeDocumentMaxOrderByAggregateInput
362
+ _min?: Prisma.KnowledgeDocumentMinOrderByAggregateInput
363
+ _sum?: Prisma.KnowledgeDocumentSumOrderByAggregateInput
364
+ }
365
+
366
+ export type KnowledgeDocumentScalarWhereWithAggregatesInput = {
367
+ AND?: Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput | Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput[]
368
+ OR?: Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput[]
369
+ NOT?: Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput | Prisma.KnowledgeDocumentScalarWhereWithAggregatesInput[]
370
+ id?: Prisma.StringWithAggregatesFilter<"KnowledgeDocument"> | string
371
+ kbId?: Prisma.StringWithAggregatesFilter<"KnowledgeDocument"> | string
372
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeDocument"> | string | null
373
+ title?: Prisma.StringWithAggregatesFilter<"KnowledgeDocument"> | string
374
+ type?: Prisma.StringWithAggregatesFilter<"KnowledgeDocument"> | string
375
+ content?: Prisma.JsonWithAggregatesFilter<"KnowledgeDocument">
376
+ icon?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeDocument"> | string | null
377
+ isHomepage?: Prisma.BoolWithAggregatesFilter<"KnowledgeDocument"> | boolean
378
+ sortOrder?: Prisma.IntWithAggregatesFilter<"KnowledgeDocument"> | number
379
+ isDeleted?: Prisma.BoolWithAggregatesFilter<"KnowledgeDocument"> | boolean
380
+ createdBy?: Prisma.StringWithAggregatesFilter<"KnowledgeDocument"> | string
381
+ tags?: Prisma.JsonWithAggregatesFilter<"KnowledgeDocument">
382
+ properties?: Prisma.JsonWithAggregatesFilter<"KnowledgeDocument">
383
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeDocument"> | Date | string
384
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeDocument"> | Date | string
385
+ }
386
+
387
+ export type KnowledgeDocumentCreateInput = {
388
+ id?: string
389
+ title: string
390
+ type?: string
391
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
392
+ icon?: string | null
393
+ isHomepage?: boolean
394
+ sortOrder?: number
395
+ isDeleted?: boolean
396
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
397
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
398
+ createdAt?: Date | string
399
+ updatedAt?: Date | string
400
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
401
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
402
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
403
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
404
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
405
+ }
406
+
407
+ export type KnowledgeDocumentUncheckedCreateInput = {
408
+ id?: string
409
+ kbId: string
410
+ parentId?: string | null
411
+ title: string
412
+ type?: string
413
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
414
+ icon?: string | null
415
+ isHomepage?: boolean
416
+ sortOrder?: number
417
+ isDeleted?: boolean
418
+ createdBy: string
419
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
420
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
421
+ createdAt?: Date | string
422
+ updatedAt?: Date | string
423
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
424
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
425
+ }
426
+
427
+ export type KnowledgeDocumentUpdateInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string
429
+ title?: Prisma.StringFieldUpdateOperationsInput | string
430
+ type?: Prisma.StringFieldUpdateOperationsInput | string
431
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
432
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
433
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
434
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
435
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
436
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
437
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
438
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
439
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
440
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
441
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
442
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
443
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
444
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
445
+ }
446
+
447
+ export type KnowledgeDocumentUncheckedUpdateInput = {
448
+ id?: Prisma.StringFieldUpdateOperationsInput | string
449
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
450
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
451
+ title?: Prisma.StringFieldUpdateOperationsInput | string
452
+ type?: Prisma.StringFieldUpdateOperationsInput | string
453
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
454
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
455
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
456
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
457
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
458
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
459
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
460
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
461
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
462
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
464
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
465
+ }
466
+
467
+ export type KnowledgeDocumentCreateManyInput = {
468
+ id?: string
469
+ kbId: string
470
+ parentId?: string | null
471
+ title: string
472
+ type?: string
473
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
474
+ icon?: string | null
475
+ isHomepage?: boolean
476
+ sortOrder?: number
477
+ isDeleted?: boolean
478
+ createdBy: string
479
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
480
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
481
+ createdAt?: Date | string
482
+ updatedAt?: Date | string
483
+ }
484
+
485
+ export type KnowledgeDocumentUpdateManyMutationInput = {
486
+ id?: Prisma.StringFieldUpdateOperationsInput | string
487
+ title?: Prisma.StringFieldUpdateOperationsInput | string
488
+ type?: Prisma.StringFieldUpdateOperationsInput | string
489
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
490
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
491
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
492
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
493
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
494
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
495
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
496
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
497
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
498
+ }
499
+
500
+ export type KnowledgeDocumentUncheckedUpdateManyInput = {
501
+ id?: Prisma.StringFieldUpdateOperationsInput | string
502
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
503
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
504
+ title?: Prisma.StringFieldUpdateOperationsInput | string
505
+ type?: Prisma.StringFieldUpdateOperationsInput | string
506
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
507
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
508
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
509
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
510
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
511
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
512
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
513
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
514
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
515
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
516
+ }
517
+
518
+ export type KnowledgeDocumentListRelationFilter = {
519
+ every?: Prisma.KnowledgeDocumentWhereInput
520
+ some?: Prisma.KnowledgeDocumentWhereInput
521
+ none?: Prisma.KnowledgeDocumentWhereInput
522
+ }
523
+
524
+ export type KnowledgeDocumentOrderByRelationAggregateInput = {
525
+ _count?: Prisma.SortOrder
526
+ }
527
+
528
+ export type KnowledgeDocumentNullableScalarRelationFilter = {
529
+ is?: Prisma.KnowledgeDocumentWhereInput | null
530
+ isNot?: Prisma.KnowledgeDocumentWhereInput | null
531
+ }
532
+
533
+ export type KnowledgeDocumentCountOrderByAggregateInput = {
534
+ id?: Prisma.SortOrder
535
+ kbId?: Prisma.SortOrder
536
+ parentId?: Prisma.SortOrder
537
+ title?: Prisma.SortOrder
538
+ type?: Prisma.SortOrder
539
+ content?: Prisma.SortOrder
540
+ icon?: Prisma.SortOrder
541
+ isHomepage?: Prisma.SortOrder
542
+ sortOrder?: Prisma.SortOrder
543
+ isDeleted?: Prisma.SortOrder
544
+ createdBy?: Prisma.SortOrder
545
+ tags?: Prisma.SortOrder
546
+ properties?: Prisma.SortOrder
547
+ createdAt?: Prisma.SortOrder
548
+ updatedAt?: Prisma.SortOrder
549
+ }
550
+
551
+ export type KnowledgeDocumentAvgOrderByAggregateInput = {
552
+ sortOrder?: Prisma.SortOrder
553
+ }
554
+
555
+ export type KnowledgeDocumentMaxOrderByAggregateInput = {
556
+ id?: Prisma.SortOrder
557
+ kbId?: Prisma.SortOrder
558
+ parentId?: Prisma.SortOrder
559
+ title?: Prisma.SortOrder
560
+ type?: Prisma.SortOrder
561
+ icon?: Prisma.SortOrder
562
+ isHomepage?: Prisma.SortOrder
563
+ sortOrder?: Prisma.SortOrder
564
+ isDeleted?: Prisma.SortOrder
565
+ createdBy?: Prisma.SortOrder
566
+ createdAt?: Prisma.SortOrder
567
+ updatedAt?: Prisma.SortOrder
568
+ }
569
+
570
+ export type KnowledgeDocumentMinOrderByAggregateInput = {
571
+ id?: Prisma.SortOrder
572
+ kbId?: Prisma.SortOrder
573
+ parentId?: Prisma.SortOrder
574
+ title?: Prisma.SortOrder
575
+ type?: Prisma.SortOrder
576
+ icon?: Prisma.SortOrder
577
+ isHomepage?: Prisma.SortOrder
578
+ sortOrder?: Prisma.SortOrder
579
+ isDeleted?: Prisma.SortOrder
580
+ createdBy?: Prisma.SortOrder
581
+ createdAt?: Prisma.SortOrder
582
+ updatedAt?: Prisma.SortOrder
583
+ }
584
+
585
+ export type KnowledgeDocumentSumOrderByAggregateInput = {
586
+ sortOrder?: Prisma.SortOrder
587
+ }
588
+
589
+ export type KnowledgeDocumentScalarRelationFilter = {
590
+ is?: Prisma.KnowledgeDocumentWhereInput
591
+ isNot?: Prisma.KnowledgeDocumentWhereInput
592
+ }
593
+
594
+ export type KnowledgeDocumentCreateNestedManyWithoutCreatorInput = {
595
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
596
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
597
+ createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
598
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
599
+ }
600
+
601
+ export type KnowledgeDocumentUncheckedCreateNestedManyWithoutCreatorInput = {
602
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
603
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
604
+ createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
605
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
606
+ }
607
+
608
+ export type KnowledgeDocumentUpdateManyWithoutCreatorNestedInput = {
609
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
610
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
611
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput[]
612
+ createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
613
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
614
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
615
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
616
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
617
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput[]
618
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput[]
619
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
620
+ }
621
+
622
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorNestedInput = {
623
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
624
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
625
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput[]
626
+ createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
627
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
628
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
629
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
630
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
631
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput[]
632
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput[]
633
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
634
+ }
635
+
636
+ export type KnowledgeDocumentCreateNestedManyWithoutKbInput = {
637
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
638
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
639
+ createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
640
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
641
+ }
642
+
643
+ export type KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput = {
644
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
645
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
646
+ createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
647
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
648
+ }
649
+
650
+ export type KnowledgeDocumentUpdateManyWithoutKbNestedInput = {
651
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
652
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
653
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput[]
654
+ createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
655
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
656
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
657
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
658
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
659
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput[]
660
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput[]
661
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
662
+ }
663
+
664
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput = {
665
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
666
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
667
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput[]
668
+ createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
669
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
670
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
671
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
672
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
673
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput[]
674
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput[]
675
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
676
+ }
677
+
678
+ export type KnowledgeDocumentCreateNestedOneWithoutChildrenInput = {
679
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
680
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutChildrenInput
681
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
682
+ }
683
+
684
+ export type KnowledgeDocumentCreateNestedManyWithoutParentInput = {
685
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
686
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
687
+ createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
688
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
689
+ }
690
+
691
+ export type KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput = {
692
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
693
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
694
+ createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
695
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
696
+ }
697
+
698
+ export type KnowledgeDocumentUpdateOneWithoutChildrenNestedInput = {
699
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
700
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutChildrenInput
701
+ upsert?: Prisma.KnowledgeDocumentUpsertWithoutChildrenInput
702
+ disconnect?: Prisma.KnowledgeDocumentWhereInput | boolean
703
+ delete?: Prisma.KnowledgeDocumentWhereInput | boolean
704
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
705
+ update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutChildrenInput, Prisma.KnowledgeDocumentUpdateWithoutChildrenInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
706
+ }
707
+
708
+ export type KnowledgeDocumentUpdateManyWithoutParentNestedInput = {
709
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
710
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
711
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput[]
712
+ createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
713
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
714
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
715
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
716
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
717
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput[]
718
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput[]
719
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
720
+ }
721
+
722
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput = {
723
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
724
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
725
+ upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput[]
726
+ createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
727
+ set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
728
+ disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
729
+ delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
730
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
731
+ update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput[]
732
+ updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput[]
733
+ deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
734
+ }
735
+
736
+ export type KnowledgeDocumentCreateNestedOneWithoutLinkedStoriesInput = {
737
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput>
738
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutLinkedStoriesInput
739
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
740
+ }
741
+
742
+ export type KnowledgeDocumentUpdateOneRequiredWithoutLinkedStoriesNestedInput = {
743
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput>
744
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutLinkedStoriesInput
745
+ upsert?: Prisma.KnowledgeDocumentUpsertWithoutLinkedStoriesInput
746
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
747
+ update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUpdateWithoutLinkedStoriesInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput>
748
+ }
749
+
750
+ export type KnowledgeDocumentCreateWithoutCreatorInput = {
751
+ id?: string
752
+ title: string
753
+ type?: string
754
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
755
+ icon?: string | null
756
+ isHomepage?: boolean
757
+ sortOrder?: number
758
+ isDeleted?: boolean
759
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
760
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
761
+ createdAt?: Date | string
762
+ updatedAt?: Date | string
763
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
764
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
765
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
766
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
767
+ }
768
+
769
+ export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
770
+ id?: string
771
+ kbId: string
772
+ parentId?: string | null
773
+ title: string
774
+ type?: string
775
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
776
+ icon?: string | null
777
+ isHomepage?: boolean
778
+ sortOrder?: number
779
+ isDeleted?: boolean
780
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
781
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
782
+ createdAt?: Date | string
783
+ updatedAt?: Date | string
784
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
785
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
786
+ }
787
+
788
+ export type KnowledgeDocumentCreateOrConnectWithoutCreatorInput = {
789
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
790
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput>
791
+ }
792
+
793
+ export type KnowledgeDocumentCreateManyCreatorInputEnvelope = {
794
+ data: Prisma.KnowledgeDocumentCreateManyCreatorInput | Prisma.KnowledgeDocumentCreateManyCreatorInput[]
795
+ skipDuplicates?: boolean
796
+ }
797
+
798
+ export type KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput = {
799
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
800
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutCreatorInput>
801
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput>
802
+ }
803
+
804
+ export type KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput = {
805
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
806
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutCreatorInput>
807
+ }
808
+
809
+ export type KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput = {
810
+ where: Prisma.KnowledgeDocumentScalarWhereInput
811
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput>
812
+ }
813
+
814
+ export type KnowledgeDocumentScalarWhereInput = {
815
+ AND?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
816
+ OR?: Prisma.KnowledgeDocumentScalarWhereInput[]
817
+ NOT?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
818
+ id?: Prisma.StringFilter<"KnowledgeDocument"> | string
819
+ kbId?: Prisma.StringFilter<"KnowledgeDocument"> | string
820
+ parentId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
821
+ title?: Prisma.StringFilter<"KnowledgeDocument"> | string
822
+ type?: Prisma.StringFilter<"KnowledgeDocument"> | string
823
+ content?: Prisma.JsonFilter<"KnowledgeDocument">
824
+ icon?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
825
+ isHomepage?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
826
+ sortOrder?: Prisma.IntFilter<"KnowledgeDocument"> | number
827
+ isDeleted?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
828
+ createdBy?: Prisma.StringFilter<"KnowledgeDocument"> | string
829
+ tags?: Prisma.JsonFilter<"KnowledgeDocument">
830
+ properties?: Prisma.JsonFilter<"KnowledgeDocument">
831
+ createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
832
+ updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
833
+ }
834
+
835
+ export type KnowledgeDocumentCreateWithoutKbInput = {
836
+ id?: string
837
+ title: string
838
+ type?: string
839
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
840
+ icon?: string | null
841
+ isHomepage?: boolean
842
+ sortOrder?: number
843
+ isDeleted?: boolean
844
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
845
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
846
+ createdAt?: Date | string
847
+ updatedAt?: Date | string
848
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
849
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
850
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
851
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
852
+ }
853
+
854
+ export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
855
+ id?: string
856
+ parentId?: string | null
857
+ title: string
858
+ type?: string
859
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
860
+ icon?: string | null
861
+ isHomepage?: boolean
862
+ sortOrder?: number
863
+ isDeleted?: boolean
864
+ createdBy: string
865
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
866
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
867
+ createdAt?: Date | string
868
+ updatedAt?: Date | string
869
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
870
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
871
+ }
872
+
873
+ export type KnowledgeDocumentCreateOrConnectWithoutKbInput = {
874
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
875
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput>
876
+ }
877
+
878
+ export type KnowledgeDocumentCreateManyKbInputEnvelope = {
879
+ data: Prisma.KnowledgeDocumentCreateManyKbInput | Prisma.KnowledgeDocumentCreateManyKbInput[]
880
+ skipDuplicates?: boolean
881
+ }
882
+
883
+ export type KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput = {
884
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
885
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutKbInput>
886
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput>
887
+ }
888
+
889
+ export type KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput = {
890
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
891
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutKbInput>
892
+ }
893
+
894
+ export type KnowledgeDocumentUpdateManyWithWhereWithoutKbInput = {
895
+ where: Prisma.KnowledgeDocumentScalarWhereInput
896
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbInput>
897
+ }
898
+
899
+ export type KnowledgeDocumentCreateWithoutChildrenInput = {
900
+ id?: string
901
+ title: string
902
+ type?: string
903
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
904
+ icon?: string | null
905
+ isHomepage?: boolean
906
+ sortOrder?: number
907
+ isDeleted?: boolean
908
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
909
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
910
+ createdAt?: Date | string
911
+ updatedAt?: Date | string
912
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
913
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
914
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
915
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
916
+ }
917
+
918
+ export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
919
+ id?: string
920
+ kbId: string
921
+ parentId?: string | null
922
+ title: string
923
+ type?: string
924
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
925
+ icon?: string | null
926
+ isHomepage?: boolean
927
+ sortOrder?: number
928
+ isDeleted?: boolean
929
+ createdBy: string
930
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
931
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
932
+ createdAt?: Date | string
933
+ updatedAt?: Date | string
934
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
935
+ }
936
+
937
+ export type KnowledgeDocumentCreateOrConnectWithoutChildrenInput = {
938
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
939
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
940
+ }
941
+
942
+ export type KnowledgeDocumentCreateWithoutParentInput = {
943
+ id?: string
944
+ title: string
945
+ type?: string
946
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
947
+ icon?: string | null
948
+ isHomepage?: boolean
949
+ sortOrder?: number
950
+ isDeleted?: boolean
951
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
952
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
953
+ createdAt?: Date | string
954
+ updatedAt?: Date | string
955
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
956
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
957
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
958
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
959
+ }
960
+
961
+ export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
962
+ id?: string
963
+ kbId: string
964
+ title: string
965
+ type?: string
966
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
967
+ icon?: string | null
968
+ isHomepage?: boolean
969
+ sortOrder?: number
970
+ isDeleted?: boolean
971
+ createdBy: string
972
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
973
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
974
+ createdAt?: Date | string
975
+ updatedAt?: Date | string
976
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
977
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
978
+ }
979
+
980
+ export type KnowledgeDocumentCreateOrConnectWithoutParentInput = {
981
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
982
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput>
983
+ }
984
+
985
+ export type KnowledgeDocumentCreateManyParentInputEnvelope = {
986
+ data: Prisma.KnowledgeDocumentCreateManyParentInput | Prisma.KnowledgeDocumentCreateManyParentInput[]
987
+ skipDuplicates?: boolean
988
+ }
989
+
990
+ export type KnowledgeDocumentUpsertWithoutChildrenInput = {
991
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
992
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
993
+ where?: Prisma.KnowledgeDocumentWhereInput
994
+ }
995
+
996
+ export type KnowledgeDocumentUpdateToOneWithWhereWithoutChildrenInput = {
997
+ where?: Prisma.KnowledgeDocumentWhereInput
998
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
999
+ }
1000
+
1001
+ export type KnowledgeDocumentUpdateWithoutChildrenInput = {
1002
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1003
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1004
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1005
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1006
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1007
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1008
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1009
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1010
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1011
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1012
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1013
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1014
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1015
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1016
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1017
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1018
+ }
1019
+
1020
+ export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
1021
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1022
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1023
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1024
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1025
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1026
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1027
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1028
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1029
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1030
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1031
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1032
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1033
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1034
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1035
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1036
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1037
+ }
1038
+
1039
+ export type KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput = {
1040
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
1041
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutParentInput>
1042
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput>
1043
+ }
1044
+
1045
+ export type KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput = {
1046
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
1047
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutParentInput>
1048
+ }
1049
+
1050
+ export type KnowledgeDocumentUpdateManyWithWhereWithoutParentInput = {
1051
+ where: Prisma.KnowledgeDocumentScalarWhereInput
1052
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentInput>
1053
+ }
1054
+
1055
+ export type KnowledgeDocumentCreateWithoutLinkedStoriesInput = {
1056
+ id?: string
1057
+ title: string
1058
+ type?: string
1059
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1060
+ icon?: string | null
1061
+ isHomepage?: boolean
1062
+ sortOrder?: number
1063
+ isDeleted?: boolean
1064
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1065
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1066
+ createdAt?: Date | string
1067
+ updatedAt?: Date | string
1068
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
1069
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
1070
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
1071
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1072
+ }
1073
+
1074
+ export type KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput = {
1075
+ id?: string
1076
+ kbId: string
1077
+ parentId?: string | null
1078
+ title: string
1079
+ type?: string
1080
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1081
+ icon?: string | null
1082
+ isHomepage?: boolean
1083
+ sortOrder?: number
1084
+ isDeleted?: boolean
1085
+ createdBy: string
1086
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1087
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1088
+ createdAt?: Date | string
1089
+ updatedAt?: Date | string
1090
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
1091
+ }
1092
+
1093
+ export type KnowledgeDocumentCreateOrConnectWithoutLinkedStoriesInput = {
1094
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
1095
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput>
1096
+ }
1097
+
1098
+ export type KnowledgeDocumentUpsertWithoutLinkedStoriesInput = {
1099
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput>
1100
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput>
1101
+ where?: Prisma.KnowledgeDocumentWhereInput
1102
+ }
1103
+
1104
+ export type KnowledgeDocumentUpdateToOneWithWhereWithoutLinkedStoriesInput = {
1105
+ where?: Prisma.KnowledgeDocumentWhereInput
1106
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput>
1107
+ }
1108
+
1109
+ export type KnowledgeDocumentUpdateWithoutLinkedStoriesInput = {
1110
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1111
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1112
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1113
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1114
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1115
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1116
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1117
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1118
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1119
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1120
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1121
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1122
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1123
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1124
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1125
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1126
+ }
1127
+
1128
+ export type KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput = {
1129
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1130
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1131
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1132
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1133
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1134
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1135
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1136
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1137
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1138
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1139
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1140
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1141
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1142
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1143
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1144
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1145
+ }
1146
+
1147
+ export type KnowledgeDocumentCreateManyCreatorInput = {
1148
+ id?: string
1149
+ kbId: string
1150
+ parentId?: string | null
1151
+ title: string
1152
+ type?: string
1153
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1154
+ icon?: string | null
1155
+ isHomepage?: boolean
1156
+ sortOrder?: number
1157
+ isDeleted?: boolean
1158
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1159
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1160
+ createdAt?: Date | string
1161
+ updatedAt?: Date | string
1162
+ }
1163
+
1164
+ export type KnowledgeDocumentUpdateWithoutCreatorInput = {
1165
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1166
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1167
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1168
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1169
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1170
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1171
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1172
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1173
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1174
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1175
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1176
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1177
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1178
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1179
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1180
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1181
+ }
1182
+
1183
+ export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
1184
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1185
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1186
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1187
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1188
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1189
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1190
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1191
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1192
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1193
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1194
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1195
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1196
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1197
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1198
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1199
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1200
+ }
1201
+
1202
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput = {
1203
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1204
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1205
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1206
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1207
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1208
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1209
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1210
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1211
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1212
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1213
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1214
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1215
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1216
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1217
+ }
1218
+
1219
+ export type KnowledgeDocumentCreateManyKbInput = {
1220
+ id?: string
1221
+ parentId?: string | null
1222
+ title: string
1223
+ type?: string
1224
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1225
+ icon?: string | null
1226
+ isHomepage?: boolean
1227
+ sortOrder?: number
1228
+ isDeleted?: boolean
1229
+ createdBy: string
1230
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1231
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1232
+ createdAt?: Date | string
1233
+ updatedAt?: Date | string
1234
+ }
1235
+
1236
+ export type KnowledgeDocumentUpdateWithoutKbInput = {
1237
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1238
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1239
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1240
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1241
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1242
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1243
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1244
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1245
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1246
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1247
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1248
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1249
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1250
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1251
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1252
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1253
+ }
1254
+
1255
+ export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
1256
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1257
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1258
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1259
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1260
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1261
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1262
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1263
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1264
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1265
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1266
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1267
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1268
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1269
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1270
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1271
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1272
+ }
1273
+
1274
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutKbInput = {
1275
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1276
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1277
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1278
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1279
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1280
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1281
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1282
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1283
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1284
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1285
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1286
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1287
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1288
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1289
+ }
1290
+
1291
+ export type KnowledgeDocumentCreateManyParentInput = {
1292
+ id?: string
1293
+ kbId: string
1294
+ title: string
1295
+ type?: string
1296
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1297
+ icon?: string | null
1298
+ isHomepage?: boolean
1299
+ sortOrder?: number
1300
+ isDeleted?: boolean
1301
+ createdBy: string
1302
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1303
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1304
+ createdAt?: Date | string
1305
+ updatedAt?: Date | string
1306
+ }
1307
+
1308
+ export type KnowledgeDocumentUpdateWithoutParentInput = {
1309
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1310
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1311
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1312
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1313
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1314
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1315
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1316
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1317
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1318
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1319
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1320
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1321
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1322
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1323
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1324
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1325
+ }
1326
+
1327
+ export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
1328
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1329
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1330
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1331
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1332
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1333
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1334
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1335
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1336
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1337
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1338
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1339
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1341
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1342
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1343
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1344
+ }
1345
+
1346
+ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
1347
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1348
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1349
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1350
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1351
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1352
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1353
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1354
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1355
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1356
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1357
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1358
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1359
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1360
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1361
+ }
1362
+
1363
+
1364
+ /**
1365
+ * Count Type KnowledgeDocumentCountOutputType
1366
+ */
1367
+
1368
+ export type KnowledgeDocumentCountOutputType = {
1369
+ children: number
1370
+ linkedStories: number
1371
+ }
1372
+
1373
+ export type KnowledgeDocumentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1374
+ children?: boolean | KnowledgeDocumentCountOutputTypeCountChildrenArgs
1375
+ linkedStories?: boolean | KnowledgeDocumentCountOutputTypeCountLinkedStoriesArgs
1376
+ }
1377
+
1378
+ /**
1379
+ * KnowledgeDocumentCountOutputType without action
1380
+ */
1381
+ export type KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1382
+ /**
1383
+ * Select specific fields to fetch from the KnowledgeDocumentCountOutputType
1384
+ */
1385
+ select?: Prisma.KnowledgeDocumentCountOutputTypeSelect<ExtArgs> | null
1386
+ }
1387
+
1388
+ /**
1389
+ * KnowledgeDocumentCountOutputType without action
1390
+ */
1391
+ export type KnowledgeDocumentCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1392
+ where?: Prisma.KnowledgeDocumentWhereInput
1393
+ }
1394
+
1395
+ /**
1396
+ * KnowledgeDocumentCountOutputType without action
1397
+ */
1398
+ export type KnowledgeDocumentCountOutputTypeCountLinkedStoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
+ where?: Prisma.StoryDocLinkWhereInput
1400
+ }
1401
+
1402
+
1403
+ export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1404
+ id?: boolean
1405
+ kbId?: boolean
1406
+ parentId?: boolean
1407
+ title?: boolean
1408
+ type?: boolean
1409
+ content?: boolean
1410
+ icon?: boolean
1411
+ isHomepage?: boolean
1412
+ sortOrder?: boolean
1413
+ isDeleted?: boolean
1414
+ createdBy?: boolean
1415
+ tags?: boolean
1416
+ properties?: boolean
1417
+ createdAt?: boolean
1418
+ updatedAt?: boolean
1419
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1420
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1421
+ children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1422
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1423
+ linkedStories?: boolean | Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>
1424
+ _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1425
+ }, ExtArgs["result"]["knowledgeDocument"]>
1426
+
1427
+ export type KnowledgeDocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1428
+ id?: boolean
1429
+ kbId?: boolean
1430
+ parentId?: boolean
1431
+ title?: boolean
1432
+ type?: boolean
1433
+ content?: boolean
1434
+ icon?: boolean
1435
+ isHomepage?: boolean
1436
+ sortOrder?: boolean
1437
+ isDeleted?: boolean
1438
+ createdBy?: boolean
1439
+ tags?: boolean
1440
+ properties?: boolean
1441
+ createdAt?: boolean
1442
+ updatedAt?: boolean
1443
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1444
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1445
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1446
+ }, ExtArgs["result"]["knowledgeDocument"]>
1447
+
1448
+ export type KnowledgeDocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1449
+ id?: boolean
1450
+ kbId?: boolean
1451
+ parentId?: boolean
1452
+ title?: boolean
1453
+ type?: boolean
1454
+ content?: boolean
1455
+ icon?: boolean
1456
+ isHomepage?: boolean
1457
+ sortOrder?: boolean
1458
+ isDeleted?: boolean
1459
+ createdBy?: boolean
1460
+ tags?: boolean
1461
+ properties?: boolean
1462
+ createdAt?: boolean
1463
+ updatedAt?: boolean
1464
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1465
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1466
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1467
+ }, ExtArgs["result"]["knowledgeDocument"]>
1468
+
1469
+ export type KnowledgeDocumentSelectScalar = {
1470
+ id?: boolean
1471
+ kbId?: boolean
1472
+ parentId?: boolean
1473
+ title?: boolean
1474
+ type?: boolean
1475
+ content?: boolean
1476
+ icon?: boolean
1477
+ isHomepage?: boolean
1478
+ sortOrder?: boolean
1479
+ isDeleted?: boolean
1480
+ createdBy?: boolean
1481
+ tags?: boolean
1482
+ properties?: boolean
1483
+ createdAt?: boolean
1484
+ updatedAt?: boolean
1485
+ }
1486
+
1487
+ export type KnowledgeDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "kbId" | "parentId" | "title" | "type" | "content" | "icon" | "isHomepage" | "sortOrder" | "isDeleted" | "createdBy" | "tags" | "properties" | "createdAt" | "updatedAt", ExtArgs["result"]["knowledgeDocument"]>
1488
+ export type KnowledgeDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1489
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1490
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1491
+ children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1492
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1493
+ linkedStories?: boolean | Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>
1494
+ _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1495
+ }
1496
+ export type KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1497
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1498
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1499
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1500
+ }
1501
+ export type KnowledgeDocumentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1503
+ parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1504
+ creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1505
+ }
1506
+
1507
+ export type $KnowledgeDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1508
+ name: "KnowledgeDocument"
1509
+ objects: {
1510
+ kb: Prisma.$KnowledgeBasePayload<ExtArgs>
1511
+ parent: Prisma.$KnowledgeDocumentPayload<ExtArgs> | null
1512
+ children: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1513
+ creator: Prisma.$UserPayload<ExtArgs>
1514
+ linkedStories: Prisma.$StoryDocLinkPayload<ExtArgs>[]
1515
+ }
1516
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1517
+ id: string
1518
+ kbId: string
1519
+ parentId: string | null
1520
+ title: string
1521
+ type: string
1522
+ content: runtime.JsonValue
1523
+ icon: string | null
1524
+ isHomepage: boolean
1525
+ sortOrder: number
1526
+ isDeleted: boolean
1527
+ createdBy: string
1528
+ tags: runtime.JsonValue
1529
+ properties: runtime.JsonValue
1530
+ createdAt: Date
1531
+ updatedAt: Date
1532
+ }, ExtArgs["result"]["knowledgeDocument"]>
1533
+ composites: {}
1534
+ }
1535
+
1536
+ export type KnowledgeDocumentGetPayload<S extends boolean | null | undefined | KnowledgeDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload, S>
1537
+
1538
+ export type KnowledgeDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1539
+ Omit<KnowledgeDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1540
+ select?: KnowledgeDocumentCountAggregateInputType | true
1541
+ }
1542
+
1543
+ export interface KnowledgeDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1544
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeDocument'], meta: { name: 'KnowledgeDocument' } }
1545
+ /**
1546
+ * Find zero or one KnowledgeDocument that matches the filter.
1547
+ * @param {KnowledgeDocumentFindUniqueArgs} args - Arguments to find a KnowledgeDocument
1548
+ * @example
1549
+ * // Get one KnowledgeDocument
1550
+ * const knowledgeDocument = await prisma.knowledgeDocument.findUnique({
1551
+ * where: {
1552
+ * // ... provide filter here
1553
+ * }
1554
+ * })
1555
+ */
1556
+ findUnique<T extends KnowledgeDocumentFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1557
+
1558
+ /**
1559
+ * Find one KnowledgeDocument that matches the filter or throw an error with `error.code='P2025'`
1560
+ * if no matches were found.
1561
+ * @param {KnowledgeDocumentFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeDocument
1562
+ * @example
1563
+ * // Get one KnowledgeDocument
1564
+ * const knowledgeDocument = await prisma.knowledgeDocument.findUniqueOrThrow({
1565
+ * where: {
1566
+ * // ... provide filter here
1567
+ * }
1568
+ * })
1569
+ */
1570
+ findUniqueOrThrow<T extends KnowledgeDocumentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1571
+
1572
+ /**
1573
+ * Find the first KnowledgeDocument that matches the filter.
1574
+ * Note, that providing `undefined` is treated as the value not being there.
1575
+ * Read more here: https://pris.ly/d/null-undefined
1576
+ * @param {KnowledgeDocumentFindFirstArgs} args - Arguments to find a KnowledgeDocument
1577
+ * @example
1578
+ * // Get one KnowledgeDocument
1579
+ * const knowledgeDocument = await prisma.knowledgeDocument.findFirst({
1580
+ * where: {
1581
+ * // ... provide filter here
1582
+ * }
1583
+ * })
1584
+ */
1585
+ findFirst<T extends KnowledgeDocumentFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1586
+
1587
+ /**
1588
+ * Find the first KnowledgeDocument that matches the filter or
1589
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1590
+ * Note, that providing `undefined` is treated as the value not being there.
1591
+ * Read more here: https://pris.ly/d/null-undefined
1592
+ * @param {KnowledgeDocumentFindFirstOrThrowArgs} args - Arguments to find a KnowledgeDocument
1593
+ * @example
1594
+ * // Get one KnowledgeDocument
1595
+ * const knowledgeDocument = await prisma.knowledgeDocument.findFirstOrThrow({
1596
+ * where: {
1597
+ * // ... provide filter here
1598
+ * }
1599
+ * })
1600
+ */
1601
+ findFirstOrThrow<T extends KnowledgeDocumentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1602
+
1603
+ /**
1604
+ * Find zero or more KnowledgeDocuments that matches the filter.
1605
+ * Note, that providing `undefined` is treated as the value not being there.
1606
+ * Read more here: https://pris.ly/d/null-undefined
1607
+ * @param {KnowledgeDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
1608
+ * @example
1609
+ * // Get all KnowledgeDocuments
1610
+ * const knowledgeDocuments = await prisma.knowledgeDocument.findMany()
1611
+ *
1612
+ * // Get first 10 KnowledgeDocuments
1613
+ * const knowledgeDocuments = await prisma.knowledgeDocument.findMany({ take: 10 })
1614
+ *
1615
+ * // Only select the `id`
1616
+ * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.findMany({ select: { id: true } })
1617
+ *
1618
+ */
1619
+ findMany<T extends KnowledgeDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1620
+
1621
+ /**
1622
+ * Create a KnowledgeDocument.
1623
+ * @param {KnowledgeDocumentCreateArgs} args - Arguments to create a KnowledgeDocument.
1624
+ * @example
1625
+ * // Create one KnowledgeDocument
1626
+ * const KnowledgeDocument = await prisma.knowledgeDocument.create({
1627
+ * data: {
1628
+ * // ... data to create a KnowledgeDocument
1629
+ * }
1630
+ * })
1631
+ *
1632
+ */
1633
+ create<T extends KnowledgeDocumentCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1634
+
1635
+ /**
1636
+ * Create many KnowledgeDocuments.
1637
+ * @param {KnowledgeDocumentCreateManyArgs} args - Arguments to create many KnowledgeDocuments.
1638
+ * @example
1639
+ * // Create many KnowledgeDocuments
1640
+ * const knowledgeDocument = await prisma.knowledgeDocument.createMany({
1641
+ * data: [
1642
+ * // ... provide data here
1643
+ * ]
1644
+ * })
1645
+ *
1646
+ */
1647
+ createMany<T extends KnowledgeDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1648
+
1649
+ /**
1650
+ * Create many KnowledgeDocuments and returns the data saved in the database.
1651
+ * @param {KnowledgeDocumentCreateManyAndReturnArgs} args - Arguments to create many KnowledgeDocuments.
1652
+ * @example
1653
+ * // Create many KnowledgeDocuments
1654
+ * const knowledgeDocument = await prisma.knowledgeDocument.createManyAndReturn({
1655
+ * data: [
1656
+ * // ... provide data here
1657
+ * ]
1658
+ * })
1659
+ *
1660
+ * // Create many KnowledgeDocuments and only return the `id`
1661
+ * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.createManyAndReturn({
1662
+ * select: { id: true },
1663
+ * data: [
1664
+ * // ... provide data here
1665
+ * ]
1666
+ * })
1667
+ * Note, that providing `undefined` is treated as the value not being there.
1668
+ * Read more here: https://pris.ly/d/null-undefined
1669
+ *
1670
+ */
1671
+ createManyAndReturn<T extends KnowledgeDocumentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1672
+
1673
+ /**
1674
+ * Delete a KnowledgeDocument.
1675
+ * @param {KnowledgeDocumentDeleteArgs} args - Arguments to delete one KnowledgeDocument.
1676
+ * @example
1677
+ * // Delete one KnowledgeDocument
1678
+ * const KnowledgeDocument = await prisma.knowledgeDocument.delete({
1679
+ * where: {
1680
+ * // ... filter to delete one KnowledgeDocument
1681
+ * }
1682
+ * })
1683
+ *
1684
+ */
1685
+ delete<T extends KnowledgeDocumentDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1686
+
1687
+ /**
1688
+ * Update one KnowledgeDocument.
1689
+ * @param {KnowledgeDocumentUpdateArgs} args - Arguments to update one KnowledgeDocument.
1690
+ * @example
1691
+ * // Update one KnowledgeDocument
1692
+ * const knowledgeDocument = await prisma.knowledgeDocument.update({
1693
+ * where: {
1694
+ * // ... provide filter here
1695
+ * },
1696
+ * data: {
1697
+ * // ... provide data here
1698
+ * }
1699
+ * })
1700
+ *
1701
+ */
1702
+ update<T extends KnowledgeDocumentUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1703
+
1704
+ /**
1705
+ * Delete zero or more KnowledgeDocuments.
1706
+ * @param {KnowledgeDocumentDeleteManyArgs} args - Arguments to filter KnowledgeDocuments to delete.
1707
+ * @example
1708
+ * // Delete a few KnowledgeDocuments
1709
+ * const { count } = await prisma.knowledgeDocument.deleteMany({
1710
+ * where: {
1711
+ * // ... provide filter here
1712
+ * }
1713
+ * })
1714
+ *
1715
+ */
1716
+ deleteMany<T extends KnowledgeDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1717
+
1718
+ /**
1719
+ * Update zero or more KnowledgeDocuments.
1720
+ * Note, that providing `undefined` is treated as the value not being there.
1721
+ * Read more here: https://pris.ly/d/null-undefined
1722
+ * @param {KnowledgeDocumentUpdateManyArgs} args - Arguments to update one or more rows.
1723
+ * @example
1724
+ * // Update many KnowledgeDocuments
1725
+ * const knowledgeDocument = await prisma.knowledgeDocument.updateMany({
1726
+ * where: {
1727
+ * // ... provide filter here
1728
+ * },
1729
+ * data: {
1730
+ * // ... provide data here
1731
+ * }
1732
+ * })
1733
+ *
1734
+ */
1735
+ updateMany<T extends KnowledgeDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1736
+
1737
+ /**
1738
+ * Update zero or more KnowledgeDocuments and returns the data updated in the database.
1739
+ * @param {KnowledgeDocumentUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeDocuments.
1740
+ * @example
1741
+ * // Update many KnowledgeDocuments
1742
+ * const knowledgeDocument = await prisma.knowledgeDocument.updateManyAndReturn({
1743
+ * where: {
1744
+ * // ... provide filter here
1745
+ * },
1746
+ * data: [
1747
+ * // ... provide data here
1748
+ * ]
1749
+ * })
1750
+ *
1751
+ * // Update zero or more KnowledgeDocuments and only return the `id`
1752
+ * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.updateManyAndReturn({
1753
+ * select: { id: true },
1754
+ * where: {
1755
+ * // ... provide filter here
1756
+ * },
1757
+ * data: [
1758
+ * // ... provide data here
1759
+ * ]
1760
+ * })
1761
+ * Note, that providing `undefined` is treated as the value not being there.
1762
+ * Read more here: https://pris.ly/d/null-undefined
1763
+ *
1764
+ */
1765
+ updateManyAndReturn<T extends KnowledgeDocumentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1766
+
1767
+ /**
1768
+ * Create or update one KnowledgeDocument.
1769
+ * @param {KnowledgeDocumentUpsertArgs} args - Arguments to update or create a KnowledgeDocument.
1770
+ * @example
1771
+ * // Update or create a KnowledgeDocument
1772
+ * const knowledgeDocument = await prisma.knowledgeDocument.upsert({
1773
+ * create: {
1774
+ * // ... data to create a KnowledgeDocument
1775
+ * },
1776
+ * update: {
1777
+ * // ... in case it already exists, update
1778
+ * },
1779
+ * where: {
1780
+ * // ... the filter for the KnowledgeDocument we want to update
1781
+ * }
1782
+ * })
1783
+ */
1784
+ upsert<T extends KnowledgeDocumentUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1785
+
1786
+
1787
+ /**
1788
+ * Count the number of KnowledgeDocuments.
1789
+ * Note, that providing `undefined` is treated as the value not being there.
1790
+ * Read more here: https://pris.ly/d/null-undefined
1791
+ * @param {KnowledgeDocumentCountArgs} args - Arguments to filter KnowledgeDocuments to count.
1792
+ * @example
1793
+ * // Count the number of KnowledgeDocuments
1794
+ * const count = await prisma.knowledgeDocument.count({
1795
+ * where: {
1796
+ * // ... the filter for the KnowledgeDocuments we want to count
1797
+ * }
1798
+ * })
1799
+ **/
1800
+ count<T extends KnowledgeDocumentCountArgs>(
1801
+ args?: Prisma.Subset<T, KnowledgeDocumentCountArgs>,
1802
+ ): Prisma.PrismaPromise<
1803
+ T extends runtime.Types.Utils.Record<'select', any>
1804
+ ? T['select'] extends true
1805
+ ? number
1806
+ : Prisma.GetScalarType<T['select'], KnowledgeDocumentCountAggregateOutputType>
1807
+ : number
1808
+ >
1809
+
1810
+ /**
1811
+ * Allows you to perform aggregations operations on a KnowledgeDocument.
1812
+ * Note, that providing `undefined` is treated as the value not being there.
1813
+ * Read more here: https://pris.ly/d/null-undefined
1814
+ * @param {KnowledgeDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1815
+ * @example
1816
+ * // Ordered by age ascending
1817
+ * // Where email contains prisma.io
1818
+ * // Limited to the 10 users
1819
+ * const aggregations = await prisma.user.aggregate({
1820
+ * _avg: {
1821
+ * age: true,
1822
+ * },
1823
+ * where: {
1824
+ * email: {
1825
+ * contains: "prisma.io",
1826
+ * },
1827
+ * },
1828
+ * orderBy: {
1829
+ * age: "asc",
1830
+ * },
1831
+ * take: 10,
1832
+ * })
1833
+ **/
1834
+ aggregate<T extends KnowledgeDocumentAggregateArgs>(args: Prisma.Subset<T, KnowledgeDocumentAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeDocumentAggregateType<T>>
1835
+
1836
+ /**
1837
+ * Group by KnowledgeDocument.
1838
+ * Note, that providing `undefined` is treated as the value not being there.
1839
+ * Read more here: https://pris.ly/d/null-undefined
1840
+ * @param {KnowledgeDocumentGroupByArgs} args - Group by arguments.
1841
+ * @example
1842
+ * // Group by city, order by createdAt, get count
1843
+ * const result = await prisma.user.groupBy({
1844
+ * by: ['city', 'createdAt'],
1845
+ * orderBy: {
1846
+ * createdAt: true
1847
+ * },
1848
+ * _count: {
1849
+ * _all: true
1850
+ * },
1851
+ * })
1852
+ *
1853
+ **/
1854
+ groupBy<
1855
+ T extends KnowledgeDocumentGroupByArgs,
1856
+ HasSelectOrTake extends Prisma.Or<
1857
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1858
+ Prisma.Extends<'take', Prisma.Keys<T>>
1859
+ >,
1860
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1861
+ ? { orderBy: KnowledgeDocumentGroupByArgs['orderBy'] }
1862
+ : { orderBy?: KnowledgeDocumentGroupByArgs['orderBy'] },
1863
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1864
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1865
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1866
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1867
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1868
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1869
+ InputErrors extends ByEmpty extends Prisma.True
1870
+ ? `Error: "by" must not be empty.`
1871
+ : HavingValid extends Prisma.False
1872
+ ? {
1873
+ [P in HavingFields]: P extends ByFields
1874
+ ? never
1875
+ : P extends string
1876
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1877
+ : [
1878
+ Error,
1879
+ 'Field ',
1880
+ P,
1881
+ ` in "having" needs to be provided in "by"`,
1882
+ ]
1883
+ }[HavingFields]
1884
+ : 'take' extends Prisma.Keys<T>
1885
+ ? 'orderBy' extends Prisma.Keys<T>
1886
+ ? ByValid extends Prisma.True
1887
+ ? {}
1888
+ : {
1889
+ [P in OrderFields]: P extends ByFields
1890
+ ? never
1891
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1892
+ }[OrderFields]
1893
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1894
+ : 'skip' extends Prisma.Keys<T>
1895
+ ? 'orderBy' extends Prisma.Keys<T>
1896
+ ? ByValid extends Prisma.True
1897
+ ? {}
1898
+ : {
1899
+ [P in OrderFields]: P extends ByFields
1900
+ ? never
1901
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1902
+ }[OrderFields]
1903
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1904
+ : ByValid extends Prisma.True
1905
+ ? {}
1906
+ : {
1907
+ [P in OrderFields]: P extends ByFields
1908
+ ? never
1909
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1910
+ }[OrderFields]
1911
+ >(args: Prisma.SubsetIntersection<T, KnowledgeDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1912
+ /**
1913
+ * Fields of the KnowledgeDocument model
1914
+ */
1915
+ readonly fields: KnowledgeDocumentFieldRefs;
1916
+ }
1917
+
1918
+ /**
1919
+ * The delegate class that acts as a "Promise-like" for KnowledgeDocument.
1920
+ * Why is this prefixed with `Prisma__`?
1921
+ * Because we want to prevent naming conflicts as mentioned in
1922
+ * https://github.com/prisma/prisma-client-js/issues/707
1923
+ */
1924
+ export interface Prisma__KnowledgeDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1925
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1926
+ kb<T extends Prisma.KnowledgeBaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseDefaultArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1927
+ parent<T extends Prisma.KnowledgeDocument$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$parentArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1928
+ children<T extends Prisma.KnowledgeDocument$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1929
+ creator<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>
1930
+ linkedStories<T extends Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryDocLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1931
+ /**
1932
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1933
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1934
+ * @param onrejected The callback to execute when the Promise is rejected.
1935
+ * @returns A Promise for the completion of which ever callback is executed.
1936
+ */
1937
+ 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>
1938
+ /**
1939
+ * Attaches a callback for only the rejection of the Promise.
1940
+ * @param onrejected The callback to execute when the Promise is rejected.
1941
+ * @returns A Promise for the completion of the callback.
1942
+ */
1943
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1944
+ /**
1945
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1946
+ * resolved value cannot be modified from the callback.
1947
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1948
+ * @returns A Promise for the completion of the callback.
1949
+ */
1950
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1951
+ }
1952
+
1953
+
1954
+
1955
+
1956
+ /**
1957
+ * Fields of the KnowledgeDocument model
1958
+ */
1959
+ export interface KnowledgeDocumentFieldRefs {
1960
+ readonly id: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1961
+ readonly kbId: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1962
+ readonly parentId: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1963
+ readonly title: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1964
+ readonly type: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1965
+ readonly content: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1966
+ readonly icon: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1967
+ readonly isHomepage: Prisma.FieldRef<"KnowledgeDocument", 'Boolean'>
1968
+ readonly sortOrder: Prisma.FieldRef<"KnowledgeDocument", 'Int'>
1969
+ readonly isDeleted: Prisma.FieldRef<"KnowledgeDocument", 'Boolean'>
1970
+ readonly createdBy: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1971
+ readonly tags: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1972
+ readonly properties: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1973
+ readonly createdAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
1974
+ readonly updatedAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
1975
+ }
1976
+
1977
+
1978
+ // Custom InputTypes
1979
+ /**
1980
+ * KnowledgeDocument findUnique
1981
+ */
1982
+ export type KnowledgeDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1983
+ /**
1984
+ * Select specific fields to fetch from the KnowledgeDocument
1985
+ */
1986
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
1987
+ /**
1988
+ * Omit specific fields from the KnowledgeDocument
1989
+ */
1990
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
1991
+ /**
1992
+ * Choose, which related nodes to fetch as well
1993
+ */
1994
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
1995
+ /**
1996
+ * Filter, which KnowledgeDocument to fetch.
1997
+ */
1998
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
1999
+ }
2000
+
2001
+ /**
2002
+ * KnowledgeDocument findUniqueOrThrow
2003
+ */
2004
+ export type KnowledgeDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2005
+ /**
2006
+ * Select specific fields to fetch from the KnowledgeDocument
2007
+ */
2008
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2009
+ /**
2010
+ * Omit specific fields from the KnowledgeDocument
2011
+ */
2012
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2013
+ /**
2014
+ * Choose, which related nodes to fetch as well
2015
+ */
2016
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2017
+ /**
2018
+ * Filter, which KnowledgeDocument to fetch.
2019
+ */
2020
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
2021
+ }
2022
+
2023
+ /**
2024
+ * KnowledgeDocument findFirst
2025
+ */
2026
+ export type KnowledgeDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2027
+ /**
2028
+ * Select specific fields to fetch from the KnowledgeDocument
2029
+ */
2030
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2031
+ /**
2032
+ * Omit specific fields from the KnowledgeDocument
2033
+ */
2034
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2035
+ /**
2036
+ * Choose, which related nodes to fetch as well
2037
+ */
2038
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2039
+ /**
2040
+ * Filter, which KnowledgeDocument to fetch.
2041
+ */
2042
+ where?: Prisma.KnowledgeDocumentWhereInput
2043
+ /**
2044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2045
+ *
2046
+ * Determine the order of KnowledgeDocuments to fetch.
2047
+ */
2048
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2049
+ /**
2050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2051
+ *
2052
+ * Sets the position for searching for KnowledgeDocuments.
2053
+ */
2054
+ cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2055
+ /**
2056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2057
+ *
2058
+ * Take `±n` KnowledgeDocuments from the position of the cursor.
2059
+ */
2060
+ take?: number
2061
+ /**
2062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2063
+ *
2064
+ * Skip the first `n` KnowledgeDocuments.
2065
+ */
2066
+ skip?: number
2067
+ /**
2068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2069
+ *
2070
+ * Filter by unique combinations of KnowledgeDocuments.
2071
+ */
2072
+ distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2073
+ }
2074
+
2075
+ /**
2076
+ * KnowledgeDocument findFirstOrThrow
2077
+ */
2078
+ export type KnowledgeDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2079
+ /**
2080
+ * Select specific fields to fetch from the KnowledgeDocument
2081
+ */
2082
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2083
+ /**
2084
+ * Omit specific fields from the KnowledgeDocument
2085
+ */
2086
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2087
+ /**
2088
+ * Choose, which related nodes to fetch as well
2089
+ */
2090
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2091
+ /**
2092
+ * Filter, which KnowledgeDocument to fetch.
2093
+ */
2094
+ where?: Prisma.KnowledgeDocumentWhereInput
2095
+ /**
2096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2097
+ *
2098
+ * Determine the order of KnowledgeDocuments to fetch.
2099
+ */
2100
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2101
+ /**
2102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2103
+ *
2104
+ * Sets the position for searching for KnowledgeDocuments.
2105
+ */
2106
+ cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2107
+ /**
2108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2109
+ *
2110
+ * Take `±n` KnowledgeDocuments from the position of the cursor.
2111
+ */
2112
+ take?: number
2113
+ /**
2114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2115
+ *
2116
+ * Skip the first `n` KnowledgeDocuments.
2117
+ */
2118
+ skip?: number
2119
+ /**
2120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2121
+ *
2122
+ * Filter by unique combinations of KnowledgeDocuments.
2123
+ */
2124
+ distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2125
+ }
2126
+
2127
+ /**
2128
+ * KnowledgeDocument findMany
2129
+ */
2130
+ export type KnowledgeDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2131
+ /**
2132
+ * Select specific fields to fetch from the KnowledgeDocument
2133
+ */
2134
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2135
+ /**
2136
+ * Omit specific fields from the KnowledgeDocument
2137
+ */
2138
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2139
+ /**
2140
+ * Choose, which related nodes to fetch as well
2141
+ */
2142
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2143
+ /**
2144
+ * Filter, which KnowledgeDocuments to fetch.
2145
+ */
2146
+ where?: Prisma.KnowledgeDocumentWhereInput
2147
+ /**
2148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2149
+ *
2150
+ * Determine the order of KnowledgeDocuments to fetch.
2151
+ */
2152
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2153
+ /**
2154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2155
+ *
2156
+ * Sets the position for listing KnowledgeDocuments.
2157
+ */
2158
+ cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2159
+ /**
2160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2161
+ *
2162
+ * Take `±n` KnowledgeDocuments from the position of the cursor.
2163
+ */
2164
+ take?: number
2165
+ /**
2166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2167
+ *
2168
+ * Skip the first `n` KnowledgeDocuments.
2169
+ */
2170
+ skip?: number
2171
+ /**
2172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2173
+ *
2174
+ * Filter by unique combinations of KnowledgeDocuments.
2175
+ */
2176
+ distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2177
+ }
2178
+
2179
+ /**
2180
+ * KnowledgeDocument create
2181
+ */
2182
+ export type KnowledgeDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2183
+ /**
2184
+ * Select specific fields to fetch from the KnowledgeDocument
2185
+ */
2186
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2187
+ /**
2188
+ * Omit specific fields from the KnowledgeDocument
2189
+ */
2190
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2191
+ /**
2192
+ * Choose, which related nodes to fetch as well
2193
+ */
2194
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2195
+ /**
2196
+ * The data needed to create a KnowledgeDocument.
2197
+ */
2198
+ data: Prisma.XOR<Prisma.KnowledgeDocumentCreateInput, Prisma.KnowledgeDocumentUncheckedCreateInput>
2199
+ }
2200
+
2201
+ /**
2202
+ * KnowledgeDocument createMany
2203
+ */
2204
+ export type KnowledgeDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2205
+ /**
2206
+ * The data used to create many KnowledgeDocuments.
2207
+ */
2208
+ data: Prisma.KnowledgeDocumentCreateManyInput | Prisma.KnowledgeDocumentCreateManyInput[]
2209
+ skipDuplicates?: boolean
2210
+ }
2211
+
2212
+ /**
2213
+ * KnowledgeDocument createManyAndReturn
2214
+ */
2215
+ export type KnowledgeDocumentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2216
+ /**
2217
+ * Select specific fields to fetch from the KnowledgeDocument
2218
+ */
2219
+ select?: Prisma.KnowledgeDocumentSelectCreateManyAndReturn<ExtArgs> | null
2220
+ /**
2221
+ * Omit specific fields from the KnowledgeDocument
2222
+ */
2223
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2224
+ /**
2225
+ * The data used to create many KnowledgeDocuments.
2226
+ */
2227
+ data: Prisma.KnowledgeDocumentCreateManyInput | Prisma.KnowledgeDocumentCreateManyInput[]
2228
+ skipDuplicates?: boolean
2229
+ /**
2230
+ * Choose, which related nodes to fetch as well
2231
+ */
2232
+ include?: Prisma.KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs> | null
2233
+ }
2234
+
2235
+ /**
2236
+ * KnowledgeDocument update
2237
+ */
2238
+ export type KnowledgeDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2239
+ /**
2240
+ * Select specific fields to fetch from the KnowledgeDocument
2241
+ */
2242
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2243
+ /**
2244
+ * Omit specific fields from the KnowledgeDocument
2245
+ */
2246
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2247
+ /**
2248
+ * Choose, which related nodes to fetch as well
2249
+ */
2250
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2251
+ /**
2252
+ * The data needed to update a KnowledgeDocument.
2253
+ */
2254
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateInput, Prisma.KnowledgeDocumentUncheckedUpdateInput>
2255
+ /**
2256
+ * Choose, which KnowledgeDocument to update.
2257
+ */
2258
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
2259
+ }
2260
+
2261
+ /**
2262
+ * KnowledgeDocument updateMany
2263
+ */
2264
+ export type KnowledgeDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2265
+ /**
2266
+ * The data used to update KnowledgeDocuments.
2267
+ */
2268
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyInput>
2269
+ /**
2270
+ * Filter which KnowledgeDocuments to update
2271
+ */
2272
+ where?: Prisma.KnowledgeDocumentWhereInput
2273
+ /**
2274
+ * Limit how many KnowledgeDocuments to update.
2275
+ */
2276
+ limit?: number
2277
+ }
2278
+
2279
+ /**
2280
+ * KnowledgeDocument updateManyAndReturn
2281
+ */
2282
+ export type KnowledgeDocumentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2283
+ /**
2284
+ * Select specific fields to fetch from the KnowledgeDocument
2285
+ */
2286
+ select?: Prisma.KnowledgeDocumentSelectUpdateManyAndReturn<ExtArgs> | null
2287
+ /**
2288
+ * Omit specific fields from the KnowledgeDocument
2289
+ */
2290
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2291
+ /**
2292
+ * The data used to update KnowledgeDocuments.
2293
+ */
2294
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyInput>
2295
+ /**
2296
+ * Filter which KnowledgeDocuments to update
2297
+ */
2298
+ where?: Prisma.KnowledgeDocumentWhereInput
2299
+ /**
2300
+ * Limit how many KnowledgeDocuments to update.
2301
+ */
2302
+ limit?: number
2303
+ /**
2304
+ * Choose, which related nodes to fetch as well
2305
+ */
2306
+ include?: Prisma.KnowledgeDocumentIncludeUpdateManyAndReturn<ExtArgs> | null
2307
+ }
2308
+
2309
+ /**
2310
+ * KnowledgeDocument upsert
2311
+ */
2312
+ export type KnowledgeDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2313
+ /**
2314
+ * Select specific fields to fetch from the KnowledgeDocument
2315
+ */
2316
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2317
+ /**
2318
+ * Omit specific fields from the KnowledgeDocument
2319
+ */
2320
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2321
+ /**
2322
+ * Choose, which related nodes to fetch as well
2323
+ */
2324
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2325
+ /**
2326
+ * The filter to search for the KnowledgeDocument to update in case it exists.
2327
+ */
2328
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
2329
+ /**
2330
+ * In case the KnowledgeDocument found by the `where` argument doesn't exist, create a new KnowledgeDocument with this data.
2331
+ */
2332
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateInput, Prisma.KnowledgeDocumentUncheckedCreateInput>
2333
+ /**
2334
+ * In case the KnowledgeDocument was found with the provided `where` argument, update it with this data.
2335
+ */
2336
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateInput, Prisma.KnowledgeDocumentUncheckedUpdateInput>
2337
+ }
2338
+
2339
+ /**
2340
+ * KnowledgeDocument delete
2341
+ */
2342
+ export type KnowledgeDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2343
+ /**
2344
+ * Select specific fields to fetch from the KnowledgeDocument
2345
+ */
2346
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2347
+ /**
2348
+ * Omit specific fields from the KnowledgeDocument
2349
+ */
2350
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2351
+ /**
2352
+ * Choose, which related nodes to fetch as well
2353
+ */
2354
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2355
+ /**
2356
+ * Filter which KnowledgeDocument to delete.
2357
+ */
2358
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
2359
+ }
2360
+
2361
+ /**
2362
+ * KnowledgeDocument deleteMany
2363
+ */
2364
+ export type KnowledgeDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2365
+ /**
2366
+ * Filter which KnowledgeDocuments to delete
2367
+ */
2368
+ where?: Prisma.KnowledgeDocumentWhereInput
2369
+ /**
2370
+ * Limit how many KnowledgeDocuments to delete.
2371
+ */
2372
+ limit?: number
2373
+ }
2374
+
2375
+ /**
2376
+ * KnowledgeDocument.parent
2377
+ */
2378
+ export type KnowledgeDocument$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2379
+ /**
2380
+ * Select specific fields to fetch from the KnowledgeDocument
2381
+ */
2382
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2383
+ /**
2384
+ * Omit specific fields from the KnowledgeDocument
2385
+ */
2386
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2387
+ /**
2388
+ * Choose, which related nodes to fetch as well
2389
+ */
2390
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2391
+ where?: Prisma.KnowledgeDocumentWhereInput
2392
+ }
2393
+
2394
+ /**
2395
+ * KnowledgeDocument.children
2396
+ */
2397
+ export type KnowledgeDocument$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2398
+ /**
2399
+ * Select specific fields to fetch from the KnowledgeDocument
2400
+ */
2401
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2402
+ /**
2403
+ * Omit specific fields from the KnowledgeDocument
2404
+ */
2405
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2406
+ /**
2407
+ * Choose, which related nodes to fetch as well
2408
+ */
2409
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2410
+ where?: Prisma.KnowledgeDocumentWhereInput
2411
+ orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2412
+ cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2413
+ take?: number
2414
+ skip?: number
2415
+ distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2416
+ }
2417
+
2418
+ /**
2419
+ * KnowledgeDocument.linkedStories
2420
+ */
2421
+ export type KnowledgeDocument$linkedStoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2422
+ /**
2423
+ * Select specific fields to fetch from the StoryDocLink
2424
+ */
2425
+ select?: Prisma.StoryDocLinkSelect<ExtArgs> | null
2426
+ /**
2427
+ * Omit specific fields from the StoryDocLink
2428
+ */
2429
+ omit?: Prisma.StoryDocLinkOmit<ExtArgs> | null
2430
+ /**
2431
+ * Choose, which related nodes to fetch as well
2432
+ */
2433
+ include?: Prisma.StoryDocLinkInclude<ExtArgs> | null
2434
+ where?: Prisma.StoryDocLinkWhereInput
2435
+ orderBy?: Prisma.StoryDocLinkOrderByWithRelationInput | Prisma.StoryDocLinkOrderByWithRelationInput[]
2436
+ cursor?: Prisma.StoryDocLinkWhereUniqueInput
2437
+ take?: number
2438
+ skip?: number
2439
+ distinct?: Prisma.StoryDocLinkScalarFieldEnum | Prisma.StoryDocLinkScalarFieldEnum[]
2440
+ }
2441
+
2442
+ /**
2443
+ * KnowledgeDocument without action
2444
+ */
2445
+ export type KnowledgeDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2446
+ /**
2447
+ * Select specific fields to fetch from the KnowledgeDocument
2448
+ */
2449
+ select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2450
+ /**
2451
+ * Omit specific fields from the KnowledgeDocument
2452
+ */
2453
+ omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2454
+ /**
2455
+ * Choose, which related nodes to fetch as well
2456
+ */
2457
+ include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2458
+ }