@allbluecn/database 0.11.0 → 0.12.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 (111) hide show
  1. package/index.ts +19 -17
  2. package/migrations/20261030000000_sync_overlay/migration.sql +152 -0
  3. package/package.json +29 -21
  4. package/pglite-init.ts +92 -0
  5. package/LICENSE +0 -661
  6. package/desktop-init.ts +0 -162
  7. package/generated-sqlite/browser.ts +0 -499
  8. package/generated-sqlite/client.ts +0 -523
  9. package/generated-sqlite/commonInputTypes.ts +0 -722
  10. package/generated-sqlite/enums.ts +0 -15
  11. package/generated-sqlite/internal/class.ts +0 -1154
  12. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  13. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  14. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  15. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  16. package/generated-sqlite/models/AiProvider.ts +0 -1605
  17. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  18. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  19. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  20. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  21. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  22. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  23. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  24. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  25. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  26. package/generated-sqlite/models/AuditLog.ts +0 -1287
  27. package/generated-sqlite/models/Blob.ts +0 -1425
  28. package/generated-sqlite/models/Block.ts +0 -1648
  29. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  30. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  31. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  32. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  33. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  34. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  35. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  36. package/generated-sqlite/models/ChatRun.ts +0 -1802
  37. package/generated-sqlite/models/ChatThread.ts +0 -2417
  38. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  39. package/generated-sqlite/models/Comment.ts +0 -2201
  40. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  41. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  42. package/generated-sqlite/models/Component.ts +0 -2132
  43. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  44. package/generated-sqlite/models/CustomRole.ts +0 -1209
  45. package/generated-sqlite/models/Design.ts +0 -2497
  46. package/generated-sqlite/models/DesignPage.ts +0 -2398
  47. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  48. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  49. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  50. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  51. package/generated-sqlite/models/EmailLog.ts +0 -1343
  52. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  53. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  54. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  55. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  56. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  57. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  58. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  59. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  60. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  61. package/generated-sqlite/models/Invoice.ts +0 -1707
  62. package/generated-sqlite/models/Iteration.ts +0 -1874
  63. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  64. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  65. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  66. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  67. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  68. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  69. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  70. package/generated-sqlite/models/LoginLog.ts +0 -1447
  71. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  72. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  73. package/generated-sqlite/models/PageVersion.ts +0 -1520
  74. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  75. package/generated-sqlite/models/Plan.ts +0 -2250
  76. package/generated-sqlite/models/Project.ts +0 -2628
  77. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  78. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  79. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  80. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  81. package/generated-sqlite/models/Reference.ts +0 -1175
  82. package/generated-sqlite/models/Review.ts +0 -1903
  83. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  84. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  85. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  86. package/generated-sqlite/models/Share.ts +0 -1674
  87. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  88. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  89. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  90. package/generated-sqlite/models/Story.ts +0 -3263
  91. package/generated-sqlite/models/Subscription.ts +0 -2137
  92. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  93. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  94. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  95. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  96. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  97. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  98. package/generated-sqlite/models/Template.ts +0 -1389
  99. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  100. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  101. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  102. package/generated-sqlite/models/User.ts +0 -21247
  103. package/generated-sqlite/models/UserAgent.ts +0 -2146
  104. package/generated-sqlite/models/UserSkill.ts +0 -1453
  105. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  106. package/generated-sqlite/models/Workspace.ts +0 -2341
  107. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  108. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  109. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  110. package/generated-sqlite/models.ts +0 -107
  111. package/schema.sqlite.prisma +0 -2045
@@ -1,2450 +0,0 @@
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.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocOrderByRelationAggregateInput
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
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 KnowledgeDocumentCreateNestedManyWithoutCreatorInput = {
590
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
591
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
592
- createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
593
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
594
- }
595
-
596
- export type KnowledgeDocumentUncheckedCreateNestedManyWithoutCreatorInput = {
597
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
598
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
599
- createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
600
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
601
- }
602
-
603
- export type KnowledgeDocumentUpdateManyWithoutCreatorNestedInput = {
604
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
605
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
606
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput[]
607
- createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
608
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
609
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
610
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
611
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
612
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput[]
613
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput[]
614
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
615
- }
616
-
617
- export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorNestedInput = {
618
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput> | Prisma.KnowledgeDocumentCreateWithoutCreatorInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput[]
619
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutCreatorInput[]
620
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput[]
621
- createMany?: Prisma.KnowledgeDocumentCreateManyCreatorInputEnvelope
622
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
623
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
624
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
625
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
626
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput[]
627
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput[]
628
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
629
- }
630
-
631
- export type KnowledgeDocumentCreateNestedManyWithoutKbInput = {
632
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
633
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
634
- createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
635
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
636
- }
637
-
638
- export type KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput = {
639
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
640
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
641
- createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
642
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
643
- }
644
-
645
- export type KnowledgeDocumentUpdateManyWithoutKbNestedInput = {
646
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
647
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
648
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput[]
649
- createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
650
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
651
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
652
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
653
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
654
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput[]
655
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput[]
656
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
657
- }
658
-
659
- export type KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput = {
660
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput> | Prisma.KnowledgeDocumentCreateWithoutKbInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput[]
661
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutKbInput[]
662
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput[]
663
- createMany?: Prisma.KnowledgeDocumentCreateManyKbInputEnvelope
664
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
665
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
666
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
667
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
668
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput[]
669
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutKbInput[]
670
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
671
- }
672
-
673
- export type KnowledgeDocumentCreateNestedOneWithoutWorkspaceQuickDocsInput = {
674
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
675
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
676
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput
677
- }
678
-
679
- export type KnowledgeDocumentUpdateOneWithoutWorkspaceQuickDocsNestedInput = {
680
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
681
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
682
- upsert?: Prisma.KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput
683
- disconnect?: Prisma.KnowledgeDocumentWhereInput | boolean
684
- delete?: Prisma.KnowledgeDocumentWhereInput | boolean
685
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput
686
- update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
687
- }
688
-
689
- export type KnowledgeDocumentCreateNestedOneWithoutChildrenInput = {
690
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
691
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutChildrenInput
692
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput
693
- }
694
-
695
- export type KnowledgeDocumentCreateNestedManyWithoutParentInput = {
696
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
697
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
698
- createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
699
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
700
- }
701
-
702
- export type KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput = {
703
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
704
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
705
- createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
706
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
707
- }
708
-
709
- export type KnowledgeDocumentUpdateOneWithoutChildrenNestedInput = {
710
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
711
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutChildrenInput
712
- upsert?: Prisma.KnowledgeDocumentUpsertWithoutChildrenInput
713
- disconnect?: Prisma.KnowledgeDocumentWhereInput | boolean
714
- delete?: Prisma.KnowledgeDocumentWhereInput | boolean
715
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput
716
- update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutChildrenInput, Prisma.KnowledgeDocumentUpdateWithoutChildrenInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
717
- }
718
-
719
- export type KnowledgeDocumentUpdateManyWithoutParentNestedInput = {
720
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
721
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
722
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput[]
723
- createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
724
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
725
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
726
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
727
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
728
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput[]
729
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput[]
730
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
731
- }
732
-
733
- export type KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput = {
734
- create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput> | Prisma.KnowledgeDocumentCreateWithoutParentInput[] | Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput[]
735
- connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput | Prisma.KnowledgeDocumentCreateOrConnectWithoutParentInput[]
736
- upsert?: Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput[]
737
- createMany?: Prisma.KnowledgeDocumentCreateManyParentInputEnvelope
738
- set?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
739
- disconnect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
740
- delete?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
741
- connect?: Prisma.KnowledgeDocumentWhereUniqueInput | Prisma.KnowledgeDocumentWhereUniqueInput[]
742
- update?: Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput | Prisma.KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput[]
743
- updateMany?: Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput | Prisma.KnowledgeDocumentUpdateManyWithWhereWithoutParentInput[]
744
- deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
745
- }
746
-
747
- export type KnowledgeDocumentCreateWithoutCreatorInput = {
748
- id?: string
749
- title: string
750
- type?: string
751
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
752
- icon?: string | null
753
- isHomepage?: boolean
754
- sortOrder?: number
755
- isDeleted?: boolean
756
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
757
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
758
- createdAt?: Date | string
759
- updatedAt?: Date | string
760
- kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
761
- parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
762
- children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
763
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
764
- }
765
-
766
- export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
767
- id?: string
768
- kbId: string
769
- parentId?: string | null
770
- title: string
771
- type?: string
772
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
773
- icon?: string | null
774
- isHomepage?: boolean
775
- sortOrder?: number
776
- isDeleted?: boolean
777
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
778
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
779
- createdAt?: Date | string
780
- updatedAt?: Date | string
781
- children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
782
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
783
- }
784
-
785
- export type KnowledgeDocumentCreateOrConnectWithoutCreatorInput = {
786
- where: Prisma.KnowledgeDocumentWhereUniqueInput
787
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput>
788
- }
789
-
790
- export type KnowledgeDocumentCreateManyCreatorInputEnvelope = {
791
- data: Prisma.KnowledgeDocumentCreateManyCreatorInput | Prisma.KnowledgeDocumentCreateManyCreatorInput[]
792
- }
793
-
794
- export type KnowledgeDocumentUpsertWithWhereUniqueWithoutCreatorInput = {
795
- where: Prisma.KnowledgeDocumentWhereUniqueInput
796
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutCreatorInput>
797
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutCreatorInput>
798
- }
799
-
800
- export type KnowledgeDocumentUpdateWithWhereUniqueWithoutCreatorInput = {
801
- where: Prisma.KnowledgeDocumentWhereUniqueInput
802
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutCreatorInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutCreatorInput>
803
- }
804
-
805
- export type KnowledgeDocumentUpdateManyWithWhereWithoutCreatorInput = {
806
- where: Prisma.KnowledgeDocumentScalarWhereInput
807
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput>
808
- }
809
-
810
- export type KnowledgeDocumentScalarWhereInput = {
811
- AND?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
812
- OR?: Prisma.KnowledgeDocumentScalarWhereInput[]
813
- NOT?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
814
- id?: Prisma.StringFilter<"KnowledgeDocument"> | string
815
- kbId?: Prisma.StringFilter<"KnowledgeDocument"> | string
816
- parentId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
817
- title?: Prisma.StringFilter<"KnowledgeDocument"> | string
818
- type?: Prisma.StringFilter<"KnowledgeDocument"> | string
819
- content?: Prisma.JsonFilter<"KnowledgeDocument">
820
- icon?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
821
- isHomepage?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
822
- sortOrder?: Prisma.IntFilter<"KnowledgeDocument"> | number
823
- isDeleted?: Prisma.BoolFilter<"KnowledgeDocument"> | boolean
824
- createdBy?: Prisma.StringFilter<"KnowledgeDocument"> | string
825
- tags?: Prisma.JsonFilter<"KnowledgeDocument">
826
- properties?: Prisma.JsonFilter<"KnowledgeDocument">
827
- createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
828
- updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
829
- }
830
-
831
- export type KnowledgeDocumentCreateWithoutKbInput = {
832
- id?: string
833
- title: string
834
- type?: string
835
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
836
- icon?: string | null
837
- isHomepage?: boolean
838
- sortOrder?: number
839
- isDeleted?: boolean
840
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
841
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
842
- createdAt?: Date | string
843
- updatedAt?: Date | string
844
- parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
845
- children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
846
- creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
847
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
848
- }
849
-
850
- export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
851
- id?: string
852
- parentId?: string | null
853
- title: string
854
- type?: string
855
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
856
- icon?: string | null
857
- isHomepage?: boolean
858
- sortOrder?: number
859
- isDeleted?: boolean
860
- createdBy: string
861
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
862
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
863
- createdAt?: Date | string
864
- updatedAt?: Date | string
865
- children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
866
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
867
- }
868
-
869
- export type KnowledgeDocumentCreateOrConnectWithoutKbInput = {
870
- where: Prisma.KnowledgeDocumentWhereUniqueInput
871
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput>
872
- }
873
-
874
- export type KnowledgeDocumentCreateManyKbInputEnvelope = {
875
- data: Prisma.KnowledgeDocumentCreateManyKbInput | Prisma.KnowledgeDocumentCreateManyKbInput[]
876
- }
877
-
878
- export type KnowledgeDocumentUpsertWithWhereUniqueWithoutKbInput = {
879
- where: Prisma.KnowledgeDocumentWhereUniqueInput
880
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutKbInput>
881
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutKbInput>
882
- }
883
-
884
- export type KnowledgeDocumentUpdateWithWhereUniqueWithoutKbInput = {
885
- where: Prisma.KnowledgeDocumentWhereUniqueInput
886
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutKbInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutKbInput>
887
- }
888
-
889
- export type KnowledgeDocumentUpdateManyWithWhereWithoutKbInput = {
890
- where: Prisma.KnowledgeDocumentScalarWhereInput
891
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbInput>
892
- }
893
-
894
- export type KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput = {
895
- id?: string
896
- title: string
897
- type?: string
898
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
899
- icon?: string | null
900
- isHomepage?: boolean
901
- sortOrder?: number
902
- isDeleted?: boolean
903
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
904
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
905
- createdAt?: Date | string
906
- updatedAt?: Date | string
907
- kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
908
- parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
909
- children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
910
- creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
911
- }
912
-
913
- export type KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput = {
914
- id?: string
915
- kbId: string
916
- parentId?: string | null
917
- title: string
918
- type?: string
919
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
920
- icon?: string | null
921
- isHomepage?: boolean
922
- sortOrder?: number
923
- isDeleted?: boolean
924
- createdBy: string
925
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
926
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
927
- createdAt?: Date | string
928
- updatedAt?: Date | string
929
- children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
930
- }
931
-
932
- export type KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput = {
933
- where: Prisma.KnowledgeDocumentWhereUniqueInput
934
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
935
- }
936
-
937
- export type KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput = {
938
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
939
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
940
- where?: Prisma.KnowledgeDocumentWhereInput
941
- }
942
-
943
- export type KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput = {
944
- where?: Prisma.KnowledgeDocumentWhereInput
945
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
946
- }
947
-
948
- export type KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput = {
949
- id?: Prisma.StringFieldUpdateOperationsInput | string
950
- title?: Prisma.StringFieldUpdateOperationsInput | string
951
- type?: Prisma.StringFieldUpdateOperationsInput | string
952
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
953
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
954
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
955
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
956
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
957
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
958
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
959
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
960
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
961
- kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
962
- parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
963
- children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
964
- creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
965
- }
966
-
967
- export type KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput = {
968
- id?: Prisma.StringFieldUpdateOperationsInput | string
969
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
970
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
971
- title?: Prisma.StringFieldUpdateOperationsInput | string
972
- type?: Prisma.StringFieldUpdateOperationsInput | string
973
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
974
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
975
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
976
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
977
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
978
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
979
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
980
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
981
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
982
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
983
- children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
984
- }
985
-
986
- export type KnowledgeDocumentCreateWithoutChildrenInput = {
987
- id?: string
988
- title: string
989
- type?: string
990
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
991
- icon?: string | null
992
- isHomepage?: boolean
993
- sortOrder?: number
994
- isDeleted?: boolean
995
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
996
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
997
- createdAt?: Date | string
998
- updatedAt?: Date | string
999
- kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
1000
- parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
1001
- creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1002
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
1003
- }
1004
-
1005
- export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
1006
- id?: string
1007
- kbId: string
1008
- parentId?: string | null
1009
- title: string
1010
- type?: string
1011
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1012
- icon?: string | null
1013
- isHomepage?: boolean
1014
- sortOrder?: number
1015
- isDeleted?: boolean
1016
- createdBy: string
1017
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1018
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1019
- createdAt?: Date | string
1020
- updatedAt?: Date | string
1021
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
1022
- }
1023
-
1024
- export type KnowledgeDocumentCreateOrConnectWithoutChildrenInput = {
1025
- where: Prisma.KnowledgeDocumentWhereUniqueInput
1026
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
1027
- }
1028
-
1029
- export type KnowledgeDocumentCreateWithoutParentInput = {
1030
- id?: string
1031
- title: string
1032
- type?: string
1033
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1034
- icon?: string | null
1035
- isHomepage?: boolean
1036
- sortOrder?: number
1037
- isDeleted?: boolean
1038
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1039
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1040
- createdAt?: Date | string
1041
- updatedAt?: Date | string
1042
- kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
1043
- children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
1044
- creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1045
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
1046
- }
1047
-
1048
- export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
1049
- id?: string
1050
- kbId: string
1051
- title: string
1052
- type?: string
1053
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1054
- icon?: string | null
1055
- isHomepage?: boolean
1056
- sortOrder?: number
1057
- isDeleted?: boolean
1058
- createdBy: string
1059
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1060
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1061
- createdAt?: Date | string
1062
- updatedAt?: Date | string
1063
- children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
1064
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
1065
- }
1066
-
1067
- export type KnowledgeDocumentCreateOrConnectWithoutParentInput = {
1068
- where: Prisma.KnowledgeDocumentWhereUniqueInput
1069
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput>
1070
- }
1071
-
1072
- export type KnowledgeDocumentCreateManyParentInputEnvelope = {
1073
- data: Prisma.KnowledgeDocumentCreateManyParentInput | Prisma.KnowledgeDocumentCreateManyParentInput[]
1074
- }
1075
-
1076
- export type KnowledgeDocumentUpsertWithoutChildrenInput = {
1077
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
1078
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
1079
- where?: Prisma.KnowledgeDocumentWhereInput
1080
- }
1081
-
1082
- export type KnowledgeDocumentUpdateToOneWithWhereWithoutChildrenInput = {
1083
- where?: Prisma.KnowledgeDocumentWhereInput
1084
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutChildrenInput>
1085
- }
1086
-
1087
- export type KnowledgeDocumentUpdateWithoutChildrenInput = {
1088
- id?: Prisma.StringFieldUpdateOperationsInput | string
1089
- title?: Prisma.StringFieldUpdateOperationsInput | string
1090
- type?: Prisma.StringFieldUpdateOperationsInput | string
1091
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1092
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1093
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1094
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1095
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1096
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1097
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1098
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1099
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1100
- kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1101
- parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1102
- creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1103
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1104
- }
1105
-
1106
- export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
1107
- id?: Prisma.StringFieldUpdateOperationsInput | string
1108
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
1109
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1110
- title?: Prisma.StringFieldUpdateOperationsInput | string
1111
- type?: Prisma.StringFieldUpdateOperationsInput | string
1112
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1113
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1114
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1115
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1116
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1117
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
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
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1123
- }
1124
-
1125
- export type KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput = {
1126
- where: Prisma.KnowledgeDocumentWhereUniqueInput
1127
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutParentInput>
1128
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutParentInput>
1129
- }
1130
-
1131
- export type KnowledgeDocumentUpdateWithWhereUniqueWithoutParentInput = {
1132
- where: Prisma.KnowledgeDocumentWhereUniqueInput
1133
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutParentInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutParentInput>
1134
- }
1135
-
1136
- export type KnowledgeDocumentUpdateManyWithWhereWithoutParentInput = {
1137
- where: Prisma.KnowledgeDocumentScalarWhereInput
1138
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentInput>
1139
- }
1140
-
1141
- export type KnowledgeDocumentCreateManyCreatorInput = {
1142
- id?: string
1143
- kbId: string
1144
- parentId?: string | null
1145
- title: string
1146
- type?: string
1147
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1148
- icon?: string | null
1149
- isHomepage?: boolean
1150
- sortOrder?: number
1151
- isDeleted?: boolean
1152
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1153
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1154
- createdAt?: Date | string
1155
- updatedAt?: Date | string
1156
- }
1157
-
1158
- export type KnowledgeDocumentUpdateWithoutCreatorInput = {
1159
- id?: Prisma.StringFieldUpdateOperationsInput | string
1160
- title?: Prisma.StringFieldUpdateOperationsInput | string
1161
- type?: Prisma.StringFieldUpdateOperationsInput | string
1162
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1163
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1164
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1165
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1166
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1167
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1168
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1169
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1170
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1171
- kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1172
- parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1173
- children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1174
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1175
- }
1176
-
1177
- export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
1178
- id?: Prisma.StringFieldUpdateOperationsInput | string
1179
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
1180
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1181
- title?: Prisma.StringFieldUpdateOperationsInput | string
1182
- type?: Prisma.StringFieldUpdateOperationsInput | string
1183
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1184
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1185
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1186
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1187
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1188
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1189
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1190
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1191
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1192
- children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1193
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1194
- }
1195
-
1196
- export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput = {
1197
- id?: Prisma.StringFieldUpdateOperationsInput | string
1198
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
1199
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1200
- title?: Prisma.StringFieldUpdateOperationsInput | string
1201
- type?: Prisma.StringFieldUpdateOperationsInput | string
1202
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1203
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1204
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1205
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1206
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1207
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1208
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1209
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1210
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1211
- }
1212
-
1213
- export type KnowledgeDocumentCreateManyKbInput = {
1214
- id?: string
1215
- parentId?: string | null
1216
- title: string
1217
- type?: string
1218
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1219
- icon?: string | null
1220
- isHomepage?: boolean
1221
- sortOrder?: number
1222
- isDeleted?: boolean
1223
- createdBy: string
1224
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1225
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1226
- createdAt?: Date | string
1227
- updatedAt?: Date | string
1228
- }
1229
-
1230
- export type KnowledgeDocumentUpdateWithoutKbInput = {
1231
- id?: Prisma.StringFieldUpdateOperationsInput | string
1232
- title?: Prisma.StringFieldUpdateOperationsInput | string
1233
- type?: Prisma.StringFieldUpdateOperationsInput | string
1234
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1235
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1236
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1237
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1238
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1239
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1240
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1241
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1242
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1243
- parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1244
- children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1245
- creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1246
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1247
- }
1248
-
1249
- export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
1250
- id?: Prisma.StringFieldUpdateOperationsInput | string
1251
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1252
- title?: Prisma.StringFieldUpdateOperationsInput | string
1253
- type?: Prisma.StringFieldUpdateOperationsInput | string
1254
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1255
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1256
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1257
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1258
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1259
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1260
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1261
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1262
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1263
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1264
- children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1265
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1266
- }
1267
-
1268
- export type KnowledgeDocumentUncheckedUpdateManyWithoutKbInput = {
1269
- id?: Prisma.StringFieldUpdateOperationsInput | string
1270
- parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1271
- title?: Prisma.StringFieldUpdateOperationsInput | string
1272
- type?: Prisma.StringFieldUpdateOperationsInput | string
1273
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1274
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1275
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1276
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1277
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1278
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1279
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1280
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1281
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1282
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1283
- }
1284
-
1285
- export type KnowledgeDocumentCreateManyParentInput = {
1286
- id?: string
1287
- kbId: string
1288
- title: string
1289
- type?: string
1290
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1291
- icon?: string | null
1292
- isHomepage?: boolean
1293
- sortOrder?: number
1294
- isDeleted?: boolean
1295
- createdBy: string
1296
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1297
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1298
- createdAt?: Date | string
1299
- updatedAt?: Date | string
1300
- }
1301
-
1302
- export type KnowledgeDocumentUpdateWithoutParentInput = {
1303
- id?: Prisma.StringFieldUpdateOperationsInput | string
1304
- title?: Prisma.StringFieldUpdateOperationsInput | string
1305
- type?: Prisma.StringFieldUpdateOperationsInput | string
1306
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1307
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1308
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1309
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1310
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1311
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1312
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1313
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1314
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1315
- kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1316
- children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1317
- creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1318
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1319
- }
1320
-
1321
- export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
1322
- id?: Prisma.StringFieldUpdateOperationsInput | string
1323
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
1324
- title?: Prisma.StringFieldUpdateOperationsInput | string
1325
- type?: Prisma.StringFieldUpdateOperationsInput | string
1326
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1327
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1328
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1329
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1330
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1331
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1332
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1333
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1334
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1335
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1336
- children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1337
- workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1338
- }
1339
-
1340
- export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
1341
- id?: Prisma.StringFieldUpdateOperationsInput | string
1342
- kbId?: Prisma.StringFieldUpdateOperationsInput | string
1343
- title?: Prisma.StringFieldUpdateOperationsInput | string
1344
- type?: Prisma.StringFieldUpdateOperationsInput | string
1345
- content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1346
- icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1347
- isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1348
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1349
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1350
- createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1351
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1352
- properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1353
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1354
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1355
- }
1356
-
1357
-
1358
- /**
1359
- * Count Type KnowledgeDocumentCountOutputType
1360
- */
1361
-
1362
- export type KnowledgeDocumentCountOutputType = {
1363
- children: number
1364
- workspaceQuickDocs: number
1365
- }
1366
-
1367
- export type KnowledgeDocumentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1368
- children?: boolean | KnowledgeDocumentCountOutputTypeCountChildrenArgs
1369
- workspaceQuickDocs?: boolean | KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs
1370
- }
1371
-
1372
- /**
1373
- * KnowledgeDocumentCountOutputType without action
1374
- */
1375
- export type KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1376
- /**
1377
- * Select specific fields to fetch from the KnowledgeDocumentCountOutputType
1378
- */
1379
- select?: Prisma.KnowledgeDocumentCountOutputTypeSelect<ExtArgs> | null
1380
- }
1381
-
1382
- /**
1383
- * KnowledgeDocumentCountOutputType without action
1384
- */
1385
- export type KnowledgeDocumentCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1386
- where?: Prisma.KnowledgeDocumentWhereInput
1387
- }
1388
-
1389
- /**
1390
- * KnowledgeDocumentCountOutputType without action
1391
- */
1392
- export type KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
- where?: Prisma.WorkspaceQuickDocWhereInput
1394
- }
1395
-
1396
-
1397
- export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1398
- id?: boolean
1399
- kbId?: boolean
1400
- parentId?: boolean
1401
- title?: boolean
1402
- type?: boolean
1403
- content?: boolean
1404
- icon?: boolean
1405
- isHomepage?: boolean
1406
- sortOrder?: boolean
1407
- isDeleted?: boolean
1408
- createdBy?: boolean
1409
- tags?: boolean
1410
- properties?: boolean
1411
- createdAt?: boolean
1412
- updatedAt?: boolean
1413
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1414
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1415
- children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1416
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1417
- workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1418
- _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1419
- }, ExtArgs["result"]["knowledgeDocument"]>
1420
-
1421
- export type KnowledgeDocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1422
- id?: boolean
1423
- kbId?: boolean
1424
- parentId?: boolean
1425
- title?: boolean
1426
- type?: boolean
1427
- content?: boolean
1428
- icon?: boolean
1429
- isHomepage?: boolean
1430
- sortOrder?: boolean
1431
- isDeleted?: boolean
1432
- createdBy?: boolean
1433
- tags?: boolean
1434
- properties?: boolean
1435
- createdAt?: boolean
1436
- updatedAt?: boolean
1437
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1438
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1439
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1440
- }, ExtArgs["result"]["knowledgeDocument"]>
1441
-
1442
- export type KnowledgeDocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1443
- id?: boolean
1444
- kbId?: boolean
1445
- parentId?: boolean
1446
- title?: boolean
1447
- type?: boolean
1448
- content?: boolean
1449
- icon?: boolean
1450
- isHomepage?: boolean
1451
- sortOrder?: boolean
1452
- isDeleted?: boolean
1453
- createdBy?: boolean
1454
- tags?: boolean
1455
- properties?: boolean
1456
- createdAt?: boolean
1457
- updatedAt?: boolean
1458
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1459
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1460
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1461
- }, ExtArgs["result"]["knowledgeDocument"]>
1462
-
1463
- export type KnowledgeDocumentSelectScalar = {
1464
- id?: boolean
1465
- kbId?: boolean
1466
- parentId?: boolean
1467
- title?: boolean
1468
- type?: boolean
1469
- content?: boolean
1470
- icon?: boolean
1471
- isHomepage?: boolean
1472
- sortOrder?: boolean
1473
- isDeleted?: boolean
1474
- createdBy?: boolean
1475
- tags?: boolean
1476
- properties?: boolean
1477
- createdAt?: boolean
1478
- updatedAt?: boolean
1479
- }
1480
-
1481
- 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"]>
1482
- export type KnowledgeDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1483
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1484
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1485
- children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1486
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1487
- workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1488
- _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1489
- }
1490
- export type KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1491
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1492
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1493
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1494
- }
1495
- export type KnowledgeDocumentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1496
- kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
1497
- parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1498
- creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1499
- }
1500
-
1501
- export type $KnowledgeDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
- name: "KnowledgeDocument"
1503
- objects: {
1504
- kb: Prisma.$KnowledgeBasePayload<ExtArgs>
1505
- parent: Prisma.$KnowledgeDocumentPayload<ExtArgs> | null
1506
- children: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1507
- creator: Prisma.$UserPayload<ExtArgs>
1508
- workspaceQuickDocs: Prisma.$WorkspaceQuickDocPayload<ExtArgs>[]
1509
- }
1510
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1511
- id: string
1512
- kbId: string
1513
- parentId: string | null
1514
- title: string
1515
- type: string
1516
- content: runtime.JsonValue
1517
- icon: string | null
1518
- isHomepage: boolean
1519
- sortOrder: number
1520
- isDeleted: boolean
1521
- createdBy: string
1522
- tags: runtime.JsonValue
1523
- properties: runtime.JsonValue
1524
- createdAt: Date
1525
- updatedAt: Date
1526
- }, ExtArgs["result"]["knowledgeDocument"]>
1527
- composites: {}
1528
- }
1529
-
1530
- export type KnowledgeDocumentGetPayload<S extends boolean | null | undefined | KnowledgeDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload, S>
1531
-
1532
- export type KnowledgeDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1533
- Omit<KnowledgeDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1534
- select?: KnowledgeDocumentCountAggregateInputType | true
1535
- }
1536
-
1537
- export interface KnowledgeDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1538
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeDocument'], meta: { name: 'KnowledgeDocument' } }
1539
- /**
1540
- * Find zero or one KnowledgeDocument that matches the filter.
1541
- * @param {KnowledgeDocumentFindUniqueArgs} args - Arguments to find a KnowledgeDocument
1542
- * @example
1543
- * // Get one KnowledgeDocument
1544
- * const knowledgeDocument = await prisma.knowledgeDocument.findUnique({
1545
- * where: {
1546
- * // ... provide filter here
1547
- * }
1548
- * })
1549
- */
1550
- 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>
1551
-
1552
- /**
1553
- * Find one KnowledgeDocument that matches the filter or throw an error with `error.code='P2025'`
1554
- * if no matches were found.
1555
- * @param {KnowledgeDocumentFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeDocument
1556
- * @example
1557
- * // Get one KnowledgeDocument
1558
- * const knowledgeDocument = await prisma.knowledgeDocument.findUniqueOrThrow({
1559
- * where: {
1560
- * // ... provide filter here
1561
- * }
1562
- * })
1563
- */
1564
- 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>
1565
-
1566
- /**
1567
- * Find the first KnowledgeDocument that matches the filter.
1568
- * Note, that providing `undefined` is treated as the value not being there.
1569
- * Read more here: https://pris.ly/d/null-undefined
1570
- * @param {KnowledgeDocumentFindFirstArgs} args - Arguments to find a KnowledgeDocument
1571
- * @example
1572
- * // Get one KnowledgeDocument
1573
- * const knowledgeDocument = await prisma.knowledgeDocument.findFirst({
1574
- * where: {
1575
- * // ... provide filter here
1576
- * }
1577
- * })
1578
- */
1579
- 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>
1580
-
1581
- /**
1582
- * Find the first KnowledgeDocument that matches the filter or
1583
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1584
- * Note, that providing `undefined` is treated as the value not being there.
1585
- * Read more here: https://pris.ly/d/null-undefined
1586
- * @param {KnowledgeDocumentFindFirstOrThrowArgs} args - Arguments to find a KnowledgeDocument
1587
- * @example
1588
- * // Get one KnowledgeDocument
1589
- * const knowledgeDocument = await prisma.knowledgeDocument.findFirstOrThrow({
1590
- * where: {
1591
- * // ... provide filter here
1592
- * }
1593
- * })
1594
- */
1595
- 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>
1596
-
1597
- /**
1598
- * Find zero or more KnowledgeDocuments that matches the filter.
1599
- * Note, that providing `undefined` is treated as the value not being there.
1600
- * Read more here: https://pris.ly/d/null-undefined
1601
- * @param {KnowledgeDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
1602
- * @example
1603
- * // Get all KnowledgeDocuments
1604
- * const knowledgeDocuments = await prisma.knowledgeDocument.findMany()
1605
- *
1606
- * // Get first 10 KnowledgeDocuments
1607
- * const knowledgeDocuments = await prisma.knowledgeDocument.findMany({ take: 10 })
1608
- *
1609
- * // Only select the `id`
1610
- * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.findMany({ select: { id: true } })
1611
- *
1612
- */
1613
- findMany<T extends KnowledgeDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1614
-
1615
- /**
1616
- * Create a KnowledgeDocument.
1617
- * @param {KnowledgeDocumentCreateArgs} args - Arguments to create a KnowledgeDocument.
1618
- * @example
1619
- * // Create one KnowledgeDocument
1620
- * const KnowledgeDocument = await prisma.knowledgeDocument.create({
1621
- * data: {
1622
- * // ... data to create a KnowledgeDocument
1623
- * }
1624
- * })
1625
- *
1626
- */
1627
- 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>
1628
-
1629
- /**
1630
- * Create many KnowledgeDocuments.
1631
- * @param {KnowledgeDocumentCreateManyArgs} args - Arguments to create many KnowledgeDocuments.
1632
- * @example
1633
- * // Create many KnowledgeDocuments
1634
- * const knowledgeDocument = await prisma.knowledgeDocument.createMany({
1635
- * data: [
1636
- * // ... provide data here
1637
- * ]
1638
- * })
1639
- *
1640
- */
1641
- createMany<T extends KnowledgeDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1642
-
1643
- /**
1644
- * Create many KnowledgeDocuments and returns the data saved in the database.
1645
- * @param {KnowledgeDocumentCreateManyAndReturnArgs} args - Arguments to create many KnowledgeDocuments.
1646
- * @example
1647
- * // Create many KnowledgeDocuments
1648
- * const knowledgeDocument = await prisma.knowledgeDocument.createManyAndReturn({
1649
- * data: [
1650
- * // ... provide data here
1651
- * ]
1652
- * })
1653
- *
1654
- * // Create many KnowledgeDocuments and only return the `id`
1655
- * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.createManyAndReturn({
1656
- * select: { id: true },
1657
- * data: [
1658
- * // ... provide data here
1659
- * ]
1660
- * })
1661
- * Note, that providing `undefined` is treated as the value not being there.
1662
- * Read more here: https://pris.ly/d/null-undefined
1663
- *
1664
- */
1665
- createManyAndReturn<T extends KnowledgeDocumentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1666
-
1667
- /**
1668
- * Delete a KnowledgeDocument.
1669
- * @param {KnowledgeDocumentDeleteArgs} args - Arguments to delete one KnowledgeDocument.
1670
- * @example
1671
- * // Delete one KnowledgeDocument
1672
- * const KnowledgeDocument = await prisma.knowledgeDocument.delete({
1673
- * where: {
1674
- * // ... filter to delete one KnowledgeDocument
1675
- * }
1676
- * })
1677
- *
1678
- */
1679
- 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>
1680
-
1681
- /**
1682
- * Update one KnowledgeDocument.
1683
- * @param {KnowledgeDocumentUpdateArgs} args - Arguments to update one KnowledgeDocument.
1684
- * @example
1685
- * // Update one KnowledgeDocument
1686
- * const knowledgeDocument = await prisma.knowledgeDocument.update({
1687
- * where: {
1688
- * // ... provide filter here
1689
- * },
1690
- * data: {
1691
- * // ... provide data here
1692
- * }
1693
- * })
1694
- *
1695
- */
1696
- 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>
1697
-
1698
- /**
1699
- * Delete zero or more KnowledgeDocuments.
1700
- * @param {KnowledgeDocumentDeleteManyArgs} args - Arguments to filter KnowledgeDocuments to delete.
1701
- * @example
1702
- * // Delete a few KnowledgeDocuments
1703
- * const { count } = await prisma.knowledgeDocument.deleteMany({
1704
- * where: {
1705
- * // ... provide filter here
1706
- * }
1707
- * })
1708
- *
1709
- */
1710
- deleteMany<T extends KnowledgeDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1711
-
1712
- /**
1713
- * Update zero or more KnowledgeDocuments.
1714
- * Note, that providing `undefined` is treated as the value not being there.
1715
- * Read more here: https://pris.ly/d/null-undefined
1716
- * @param {KnowledgeDocumentUpdateManyArgs} args - Arguments to update one or more rows.
1717
- * @example
1718
- * // Update many KnowledgeDocuments
1719
- * const knowledgeDocument = await prisma.knowledgeDocument.updateMany({
1720
- * where: {
1721
- * // ... provide filter here
1722
- * },
1723
- * data: {
1724
- * // ... provide data here
1725
- * }
1726
- * })
1727
- *
1728
- */
1729
- updateMany<T extends KnowledgeDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1730
-
1731
- /**
1732
- * Update zero or more KnowledgeDocuments and returns the data updated in the database.
1733
- * @param {KnowledgeDocumentUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeDocuments.
1734
- * @example
1735
- * // Update many KnowledgeDocuments
1736
- * const knowledgeDocument = await prisma.knowledgeDocument.updateManyAndReturn({
1737
- * where: {
1738
- * // ... provide filter here
1739
- * },
1740
- * data: [
1741
- * // ... provide data here
1742
- * ]
1743
- * })
1744
- *
1745
- * // Update zero or more KnowledgeDocuments and only return the `id`
1746
- * const knowledgeDocumentWithIdOnly = await prisma.knowledgeDocument.updateManyAndReturn({
1747
- * select: { id: true },
1748
- * where: {
1749
- * // ... provide filter here
1750
- * },
1751
- * data: [
1752
- * // ... provide data here
1753
- * ]
1754
- * })
1755
- * Note, that providing `undefined` is treated as the value not being there.
1756
- * Read more here: https://pris.ly/d/null-undefined
1757
- *
1758
- */
1759
- updateManyAndReturn<T extends KnowledgeDocumentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeDocumentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1760
-
1761
- /**
1762
- * Create or update one KnowledgeDocument.
1763
- * @param {KnowledgeDocumentUpsertArgs} args - Arguments to update or create a KnowledgeDocument.
1764
- * @example
1765
- * // Update or create a KnowledgeDocument
1766
- * const knowledgeDocument = await prisma.knowledgeDocument.upsert({
1767
- * create: {
1768
- * // ... data to create a KnowledgeDocument
1769
- * },
1770
- * update: {
1771
- * // ... in case it already exists, update
1772
- * },
1773
- * where: {
1774
- * // ... the filter for the KnowledgeDocument we want to update
1775
- * }
1776
- * })
1777
- */
1778
- 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>
1779
-
1780
-
1781
- /**
1782
- * Count the number of KnowledgeDocuments.
1783
- * Note, that providing `undefined` is treated as the value not being there.
1784
- * Read more here: https://pris.ly/d/null-undefined
1785
- * @param {KnowledgeDocumentCountArgs} args - Arguments to filter KnowledgeDocuments to count.
1786
- * @example
1787
- * // Count the number of KnowledgeDocuments
1788
- * const count = await prisma.knowledgeDocument.count({
1789
- * where: {
1790
- * // ... the filter for the KnowledgeDocuments we want to count
1791
- * }
1792
- * })
1793
- **/
1794
- count<T extends KnowledgeDocumentCountArgs>(
1795
- args?: Prisma.Subset<T, KnowledgeDocumentCountArgs>,
1796
- ): Prisma.PrismaPromise<
1797
- T extends runtime.Types.Utils.Record<'select', any>
1798
- ? T['select'] extends true
1799
- ? number
1800
- : Prisma.GetScalarType<T['select'], KnowledgeDocumentCountAggregateOutputType>
1801
- : number
1802
- >
1803
-
1804
- /**
1805
- * Allows you to perform aggregations operations on a KnowledgeDocument.
1806
- * Note, that providing `undefined` is treated as the value not being there.
1807
- * Read more here: https://pris.ly/d/null-undefined
1808
- * @param {KnowledgeDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1809
- * @example
1810
- * // Ordered by age ascending
1811
- * // Where email contains prisma.io
1812
- * // Limited to the 10 users
1813
- * const aggregations = await prisma.user.aggregate({
1814
- * _avg: {
1815
- * age: true,
1816
- * },
1817
- * where: {
1818
- * email: {
1819
- * contains: "prisma.io",
1820
- * },
1821
- * },
1822
- * orderBy: {
1823
- * age: "asc",
1824
- * },
1825
- * take: 10,
1826
- * })
1827
- **/
1828
- aggregate<T extends KnowledgeDocumentAggregateArgs>(args: Prisma.Subset<T, KnowledgeDocumentAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeDocumentAggregateType<T>>
1829
-
1830
- /**
1831
- * Group by KnowledgeDocument.
1832
- * Note, that providing `undefined` is treated as the value not being there.
1833
- * Read more here: https://pris.ly/d/null-undefined
1834
- * @param {KnowledgeDocumentGroupByArgs} args - Group by arguments.
1835
- * @example
1836
- * // Group by city, order by createdAt, get count
1837
- * const result = await prisma.user.groupBy({
1838
- * by: ['city', 'createdAt'],
1839
- * orderBy: {
1840
- * createdAt: true
1841
- * },
1842
- * _count: {
1843
- * _all: true
1844
- * },
1845
- * })
1846
- *
1847
- **/
1848
- groupBy<
1849
- T extends KnowledgeDocumentGroupByArgs,
1850
- HasSelectOrTake extends Prisma.Or<
1851
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1852
- Prisma.Extends<'take', Prisma.Keys<T>>
1853
- >,
1854
- OrderByArg extends Prisma.True extends HasSelectOrTake
1855
- ? { orderBy: KnowledgeDocumentGroupByArgs['orderBy'] }
1856
- : { orderBy?: KnowledgeDocumentGroupByArgs['orderBy'] },
1857
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1858
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1859
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1860
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1861
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1862
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1863
- InputErrors extends ByEmpty extends Prisma.True
1864
- ? `Error: "by" must not be empty.`
1865
- : HavingValid extends Prisma.False
1866
- ? {
1867
- [P in HavingFields]: P extends ByFields
1868
- ? never
1869
- : P extends string
1870
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1871
- : [
1872
- Error,
1873
- 'Field ',
1874
- P,
1875
- ` in "having" needs to be provided in "by"`,
1876
- ]
1877
- }[HavingFields]
1878
- : 'take' extends Prisma.Keys<T>
1879
- ? 'orderBy' extends Prisma.Keys<T>
1880
- ? ByValid extends Prisma.True
1881
- ? {}
1882
- : {
1883
- [P in OrderFields]: P extends ByFields
1884
- ? never
1885
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1886
- }[OrderFields]
1887
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1888
- : 'skip' extends Prisma.Keys<T>
1889
- ? 'orderBy' extends Prisma.Keys<T>
1890
- ? ByValid extends Prisma.True
1891
- ? {}
1892
- : {
1893
- [P in OrderFields]: P extends ByFields
1894
- ? never
1895
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1896
- }[OrderFields]
1897
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1898
- : ByValid extends Prisma.True
1899
- ? {}
1900
- : {
1901
- [P in OrderFields]: P extends ByFields
1902
- ? never
1903
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1904
- }[OrderFields]
1905
- >(args: Prisma.SubsetIntersection<T, KnowledgeDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1906
- /**
1907
- * Fields of the KnowledgeDocument model
1908
- */
1909
- readonly fields: KnowledgeDocumentFieldRefs;
1910
- }
1911
-
1912
- /**
1913
- * The delegate class that acts as a "Promise-like" for KnowledgeDocument.
1914
- * Why is this prefixed with `Prisma__`?
1915
- * Because we want to prevent naming conflicts as mentioned in
1916
- * https://github.com/prisma/prisma-client-js/issues/707
1917
- */
1918
- export interface Prisma__KnowledgeDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1919
- readonly [Symbol.toStringTag]: "PrismaPromise"
1920
- 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>
1921
- 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>
1922
- 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>
1923
- 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>
1924
- workspaceQuickDocs<T extends Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceQuickDocPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1925
- /**
1926
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1927
- * @param onfulfilled The callback to execute when the Promise is resolved.
1928
- * @param onrejected The callback to execute when the Promise is rejected.
1929
- * @returns A Promise for the completion of which ever callback is executed.
1930
- */
1931
- 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>
1932
- /**
1933
- * Attaches a callback for only the rejection of the Promise.
1934
- * @param onrejected The callback to execute when the Promise is rejected.
1935
- * @returns A Promise for the completion of the callback.
1936
- */
1937
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1938
- /**
1939
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1940
- * resolved value cannot be modified from the callback.
1941
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1942
- * @returns A Promise for the completion of the callback.
1943
- */
1944
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1945
- }
1946
-
1947
-
1948
-
1949
-
1950
- /**
1951
- * Fields of the KnowledgeDocument model
1952
- */
1953
- export interface KnowledgeDocumentFieldRefs {
1954
- readonly id: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1955
- readonly kbId: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1956
- readonly parentId: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1957
- readonly title: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1958
- readonly type: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1959
- readonly content: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1960
- readonly icon: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1961
- readonly isHomepage: Prisma.FieldRef<"KnowledgeDocument", 'Boolean'>
1962
- readonly sortOrder: Prisma.FieldRef<"KnowledgeDocument", 'Int'>
1963
- readonly isDeleted: Prisma.FieldRef<"KnowledgeDocument", 'Boolean'>
1964
- readonly createdBy: Prisma.FieldRef<"KnowledgeDocument", 'String'>
1965
- readonly tags: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1966
- readonly properties: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
1967
- readonly createdAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
1968
- readonly updatedAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
1969
- }
1970
-
1971
-
1972
- // Custom InputTypes
1973
- /**
1974
- * KnowledgeDocument findUnique
1975
- */
1976
- export type KnowledgeDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1977
- /**
1978
- * Select specific fields to fetch from the KnowledgeDocument
1979
- */
1980
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
1981
- /**
1982
- * Omit specific fields from the KnowledgeDocument
1983
- */
1984
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
1985
- /**
1986
- * Choose, which related nodes to fetch as well
1987
- */
1988
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
1989
- /**
1990
- * Filter, which KnowledgeDocument to fetch.
1991
- */
1992
- where: Prisma.KnowledgeDocumentWhereUniqueInput
1993
- }
1994
-
1995
- /**
1996
- * KnowledgeDocument findUniqueOrThrow
1997
- */
1998
- export type KnowledgeDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1999
- /**
2000
- * Select specific fields to fetch from the KnowledgeDocument
2001
- */
2002
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2003
- /**
2004
- * Omit specific fields from the KnowledgeDocument
2005
- */
2006
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2007
- /**
2008
- * Choose, which related nodes to fetch as well
2009
- */
2010
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2011
- /**
2012
- * Filter, which KnowledgeDocument to fetch.
2013
- */
2014
- where: Prisma.KnowledgeDocumentWhereUniqueInput
2015
- }
2016
-
2017
- /**
2018
- * KnowledgeDocument findFirst
2019
- */
2020
- export type KnowledgeDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2021
- /**
2022
- * Select specific fields to fetch from the KnowledgeDocument
2023
- */
2024
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2025
- /**
2026
- * Omit specific fields from the KnowledgeDocument
2027
- */
2028
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2029
- /**
2030
- * Choose, which related nodes to fetch as well
2031
- */
2032
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2033
- /**
2034
- * Filter, which KnowledgeDocument to fetch.
2035
- */
2036
- where?: Prisma.KnowledgeDocumentWhereInput
2037
- /**
2038
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2039
- *
2040
- * Determine the order of KnowledgeDocuments to fetch.
2041
- */
2042
- orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2043
- /**
2044
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2045
- *
2046
- * Sets the position for searching for KnowledgeDocuments.
2047
- */
2048
- cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2049
- /**
2050
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2051
- *
2052
- * Take `±n` KnowledgeDocuments from the position of the cursor.
2053
- */
2054
- take?: number
2055
- /**
2056
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2057
- *
2058
- * Skip the first `n` KnowledgeDocuments.
2059
- */
2060
- skip?: number
2061
- /**
2062
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2063
- *
2064
- * Filter by unique combinations of KnowledgeDocuments.
2065
- */
2066
- distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2067
- }
2068
-
2069
- /**
2070
- * KnowledgeDocument findFirstOrThrow
2071
- */
2072
- export type KnowledgeDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2073
- /**
2074
- * Select specific fields to fetch from the KnowledgeDocument
2075
- */
2076
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2077
- /**
2078
- * Omit specific fields from the KnowledgeDocument
2079
- */
2080
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2081
- /**
2082
- * Choose, which related nodes to fetch as well
2083
- */
2084
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2085
- /**
2086
- * Filter, which KnowledgeDocument to fetch.
2087
- */
2088
- where?: Prisma.KnowledgeDocumentWhereInput
2089
- /**
2090
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2091
- *
2092
- * Determine the order of KnowledgeDocuments to fetch.
2093
- */
2094
- orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2095
- /**
2096
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2097
- *
2098
- * Sets the position for searching for KnowledgeDocuments.
2099
- */
2100
- cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2101
- /**
2102
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2103
- *
2104
- * Take `±n` KnowledgeDocuments from the position of the cursor.
2105
- */
2106
- take?: number
2107
- /**
2108
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2109
- *
2110
- * Skip the first `n` KnowledgeDocuments.
2111
- */
2112
- skip?: number
2113
- /**
2114
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2115
- *
2116
- * Filter by unique combinations of KnowledgeDocuments.
2117
- */
2118
- distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2119
- }
2120
-
2121
- /**
2122
- * KnowledgeDocument findMany
2123
- */
2124
- export type KnowledgeDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2125
- /**
2126
- * Select specific fields to fetch from the KnowledgeDocument
2127
- */
2128
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2129
- /**
2130
- * Omit specific fields from the KnowledgeDocument
2131
- */
2132
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2133
- /**
2134
- * Choose, which related nodes to fetch as well
2135
- */
2136
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2137
- /**
2138
- * Filter, which KnowledgeDocuments to fetch.
2139
- */
2140
- where?: Prisma.KnowledgeDocumentWhereInput
2141
- /**
2142
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2143
- *
2144
- * Determine the order of KnowledgeDocuments to fetch.
2145
- */
2146
- orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2147
- /**
2148
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2149
- *
2150
- * Sets the position for listing KnowledgeDocuments.
2151
- */
2152
- cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2153
- /**
2154
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2155
- *
2156
- * Take `±n` KnowledgeDocuments from the position of the cursor.
2157
- */
2158
- take?: number
2159
- /**
2160
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2161
- *
2162
- * Skip the first `n` KnowledgeDocuments.
2163
- */
2164
- skip?: number
2165
- /**
2166
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2167
- *
2168
- * Filter by unique combinations of KnowledgeDocuments.
2169
- */
2170
- distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2171
- }
2172
-
2173
- /**
2174
- * KnowledgeDocument create
2175
- */
2176
- export type KnowledgeDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2177
- /**
2178
- * Select specific fields to fetch from the KnowledgeDocument
2179
- */
2180
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2181
- /**
2182
- * Omit specific fields from the KnowledgeDocument
2183
- */
2184
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2185
- /**
2186
- * Choose, which related nodes to fetch as well
2187
- */
2188
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2189
- /**
2190
- * The data needed to create a KnowledgeDocument.
2191
- */
2192
- data: Prisma.XOR<Prisma.KnowledgeDocumentCreateInput, Prisma.KnowledgeDocumentUncheckedCreateInput>
2193
- }
2194
-
2195
- /**
2196
- * KnowledgeDocument createMany
2197
- */
2198
- export type KnowledgeDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2199
- /**
2200
- * The data used to create many KnowledgeDocuments.
2201
- */
2202
- data: Prisma.KnowledgeDocumentCreateManyInput | Prisma.KnowledgeDocumentCreateManyInput[]
2203
- }
2204
-
2205
- /**
2206
- * KnowledgeDocument createManyAndReturn
2207
- */
2208
- export type KnowledgeDocumentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2209
- /**
2210
- * Select specific fields to fetch from the KnowledgeDocument
2211
- */
2212
- select?: Prisma.KnowledgeDocumentSelectCreateManyAndReturn<ExtArgs> | null
2213
- /**
2214
- * Omit specific fields from the KnowledgeDocument
2215
- */
2216
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2217
- /**
2218
- * The data used to create many KnowledgeDocuments.
2219
- */
2220
- data: Prisma.KnowledgeDocumentCreateManyInput | Prisma.KnowledgeDocumentCreateManyInput[]
2221
- /**
2222
- * Choose, which related nodes to fetch as well
2223
- */
2224
- include?: Prisma.KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs> | null
2225
- }
2226
-
2227
- /**
2228
- * KnowledgeDocument update
2229
- */
2230
- export type KnowledgeDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2231
- /**
2232
- * Select specific fields to fetch from the KnowledgeDocument
2233
- */
2234
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2235
- /**
2236
- * Omit specific fields from the KnowledgeDocument
2237
- */
2238
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2239
- /**
2240
- * Choose, which related nodes to fetch as well
2241
- */
2242
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2243
- /**
2244
- * The data needed to update a KnowledgeDocument.
2245
- */
2246
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateInput, Prisma.KnowledgeDocumentUncheckedUpdateInput>
2247
- /**
2248
- * Choose, which KnowledgeDocument to update.
2249
- */
2250
- where: Prisma.KnowledgeDocumentWhereUniqueInput
2251
- }
2252
-
2253
- /**
2254
- * KnowledgeDocument updateMany
2255
- */
2256
- export type KnowledgeDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2257
- /**
2258
- * The data used to update KnowledgeDocuments.
2259
- */
2260
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyInput>
2261
- /**
2262
- * Filter which KnowledgeDocuments to update
2263
- */
2264
- where?: Prisma.KnowledgeDocumentWhereInput
2265
- /**
2266
- * Limit how many KnowledgeDocuments to update.
2267
- */
2268
- limit?: number
2269
- }
2270
-
2271
- /**
2272
- * KnowledgeDocument updateManyAndReturn
2273
- */
2274
- export type KnowledgeDocumentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2275
- /**
2276
- * Select specific fields to fetch from the KnowledgeDocument
2277
- */
2278
- select?: Prisma.KnowledgeDocumentSelectUpdateManyAndReturn<ExtArgs> | null
2279
- /**
2280
- * Omit specific fields from the KnowledgeDocument
2281
- */
2282
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2283
- /**
2284
- * The data used to update KnowledgeDocuments.
2285
- */
2286
- data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyInput>
2287
- /**
2288
- * Filter which KnowledgeDocuments to update
2289
- */
2290
- where?: Prisma.KnowledgeDocumentWhereInput
2291
- /**
2292
- * Limit how many KnowledgeDocuments to update.
2293
- */
2294
- limit?: number
2295
- /**
2296
- * Choose, which related nodes to fetch as well
2297
- */
2298
- include?: Prisma.KnowledgeDocumentIncludeUpdateManyAndReturn<ExtArgs> | null
2299
- }
2300
-
2301
- /**
2302
- * KnowledgeDocument upsert
2303
- */
2304
- export type KnowledgeDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2305
- /**
2306
- * Select specific fields to fetch from the KnowledgeDocument
2307
- */
2308
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2309
- /**
2310
- * Omit specific fields from the KnowledgeDocument
2311
- */
2312
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2313
- /**
2314
- * Choose, which related nodes to fetch as well
2315
- */
2316
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2317
- /**
2318
- * The filter to search for the KnowledgeDocument to update in case it exists.
2319
- */
2320
- where: Prisma.KnowledgeDocumentWhereUniqueInput
2321
- /**
2322
- * In case the KnowledgeDocument found by the `where` argument doesn't exist, create a new KnowledgeDocument with this data.
2323
- */
2324
- create: Prisma.XOR<Prisma.KnowledgeDocumentCreateInput, Prisma.KnowledgeDocumentUncheckedCreateInput>
2325
- /**
2326
- * In case the KnowledgeDocument was found with the provided `where` argument, update it with this data.
2327
- */
2328
- update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateInput, Prisma.KnowledgeDocumentUncheckedUpdateInput>
2329
- }
2330
-
2331
- /**
2332
- * KnowledgeDocument delete
2333
- */
2334
- export type KnowledgeDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2335
- /**
2336
- * Select specific fields to fetch from the KnowledgeDocument
2337
- */
2338
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2339
- /**
2340
- * Omit specific fields from the KnowledgeDocument
2341
- */
2342
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2343
- /**
2344
- * Choose, which related nodes to fetch as well
2345
- */
2346
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2347
- /**
2348
- * Filter which KnowledgeDocument to delete.
2349
- */
2350
- where: Prisma.KnowledgeDocumentWhereUniqueInput
2351
- }
2352
-
2353
- /**
2354
- * KnowledgeDocument deleteMany
2355
- */
2356
- export type KnowledgeDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2357
- /**
2358
- * Filter which KnowledgeDocuments to delete
2359
- */
2360
- where?: Prisma.KnowledgeDocumentWhereInput
2361
- /**
2362
- * Limit how many KnowledgeDocuments to delete.
2363
- */
2364
- limit?: number
2365
- }
2366
-
2367
- /**
2368
- * KnowledgeDocument.parent
2369
- */
2370
- export type KnowledgeDocument$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2371
- /**
2372
- * Select specific fields to fetch from the KnowledgeDocument
2373
- */
2374
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2375
- /**
2376
- * Omit specific fields from the KnowledgeDocument
2377
- */
2378
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2379
- /**
2380
- * Choose, which related nodes to fetch as well
2381
- */
2382
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2383
- where?: Prisma.KnowledgeDocumentWhereInput
2384
- }
2385
-
2386
- /**
2387
- * KnowledgeDocument.children
2388
- */
2389
- export type KnowledgeDocument$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2390
- /**
2391
- * Select specific fields to fetch from the KnowledgeDocument
2392
- */
2393
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2394
- /**
2395
- * Omit specific fields from the KnowledgeDocument
2396
- */
2397
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2398
- /**
2399
- * Choose, which related nodes to fetch as well
2400
- */
2401
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2402
- where?: Prisma.KnowledgeDocumentWhereInput
2403
- orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2404
- cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2405
- take?: number
2406
- skip?: number
2407
- distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2408
- }
2409
-
2410
- /**
2411
- * KnowledgeDocument.workspaceQuickDocs
2412
- */
2413
- export type KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2414
- /**
2415
- * Select specific fields to fetch from the WorkspaceQuickDoc
2416
- */
2417
- select?: Prisma.WorkspaceQuickDocSelect<ExtArgs> | null
2418
- /**
2419
- * Omit specific fields from the WorkspaceQuickDoc
2420
- */
2421
- omit?: Prisma.WorkspaceQuickDocOmit<ExtArgs> | null
2422
- /**
2423
- * Choose, which related nodes to fetch as well
2424
- */
2425
- include?: Prisma.WorkspaceQuickDocInclude<ExtArgs> | null
2426
- where?: Prisma.WorkspaceQuickDocWhereInput
2427
- orderBy?: Prisma.WorkspaceQuickDocOrderByWithRelationInput | Prisma.WorkspaceQuickDocOrderByWithRelationInput[]
2428
- cursor?: Prisma.WorkspaceQuickDocWhereUniqueInput
2429
- take?: number
2430
- skip?: number
2431
- distinct?: Prisma.WorkspaceQuickDocScalarFieldEnum | Prisma.WorkspaceQuickDocScalarFieldEnum[]
2432
- }
2433
-
2434
- /**
2435
- * KnowledgeDocument without action
2436
- */
2437
- export type KnowledgeDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2438
- /**
2439
- * Select specific fields to fetch from the KnowledgeDocument
2440
- */
2441
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2442
- /**
2443
- * Omit specific fields from the KnowledgeDocument
2444
- */
2445
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2446
- /**
2447
- * Choose, which related nodes to fetch as well
2448
- */
2449
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2450
- }