@allbluecn/database 0.11.0 → 0.12.0

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 (110) hide show
  1. package/index.ts +14 -17
  2. package/package.json +29 -21
  3. package/pglite-init.ts +75 -0
  4. package/LICENSE +0 -661
  5. package/desktop-init.ts +0 -162
  6. package/generated-sqlite/browser.ts +0 -499
  7. package/generated-sqlite/client.ts +0 -523
  8. package/generated-sqlite/commonInputTypes.ts +0 -722
  9. package/generated-sqlite/enums.ts +0 -15
  10. package/generated-sqlite/internal/class.ts +0 -1154
  11. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  12. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  13. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  14. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  15. package/generated-sqlite/models/AiProvider.ts +0 -1605
  16. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  17. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  18. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  19. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  20. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  21. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  22. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  23. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  24. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  25. package/generated-sqlite/models/AuditLog.ts +0 -1287
  26. package/generated-sqlite/models/Blob.ts +0 -1425
  27. package/generated-sqlite/models/Block.ts +0 -1648
  28. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  29. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  30. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  31. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  32. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  33. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  34. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  35. package/generated-sqlite/models/ChatRun.ts +0 -1802
  36. package/generated-sqlite/models/ChatThread.ts +0 -2417
  37. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  38. package/generated-sqlite/models/Comment.ts +0 -2201
  39. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  40. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  41. package/generated-sqlite/models/Component.ts +0 -2132
  42. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  43. package/generated-sqlite/models/CustomRole.ts +0 -1209
  44. package/generated-sqlite/models/Design.ts +0 -2497
  45. package/generated-sqlite/models/DesignPage.ts +0 -2398
  46. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  47. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  48. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  49. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  50. package/generated-sqlite/models/EmailLog.ts +0 -1343
  51. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  52. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  53. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  54. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  55. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  56. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  57. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  58. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  59. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  60. package/generated-sqlite/models/Invoice.ts +0 -1707
  61. package/generated-sqlite/models/Iteration.ts +0 -1874
  62. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  63. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  64. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  65. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  66. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  67. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  68. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  69. package/generated-sqlite/models/LoginLog.ts +0 -1447
  70. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  71. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  72. package/generated-sqlite/models/PageVersion.ts +0 -1520
  73. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  74. package/generated-sqlite/models/Plan.ts +0 -2250
  75. package/generated-sqlite/models/Project.ts +0 -2628
  76. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  77. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  78. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  79. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  80. package/generated-sqlite/models/Reference.ts +0 -1175
  81. package/generated-sqlite/models/Review.ts +0 -1903
  82. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  83. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  84. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  85. package/generated-sqlite/models/Share.ts +0 -1674
  86. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  87. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  88. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  89. package/generated-sqlite/models/Story.ts +0 -3263
  90. package/generated-sqlite/models/Subscription.ts +0 -2137
  91. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  92. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  93. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  94. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  95. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  96. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  97. package/generated-sqlite/models/Template.ts +0 -1389
  98. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  99. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  100. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  101. package/generated-sqlite/models/User.ts +0 -21247
  102. package/generated-sqlite/models/UserAgent.ts +0 -2146
  103. package/generated-sqlite/models/UserSkill.ts +0 -1453
  104. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  105. package/generated-sqlite/models/Workspace.ts +0 -2341
  106. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  107. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  108. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  109. package/generated-sqlite/models.ts +0 -107
  110. package/schema.sqlite.prisma +0 -2045
@@ -1,2238 +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 `KnowledgeBase` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model KnowledgeBase
17
- *
18
- */
19
- export type KnowledgeBaseModel = runtime.Types.Result.DefaultSelection<Prisma.$KnowledgeBasePayload>
20
-
21
- export type AggregateKnowledgeBase = {
22
- _count: KnowledgeBaseCountAggregateOutputType | null
23
- _min: KnowledgeBaseMinAggregateOutputType | null
24
- _max: KnowledgeBaseMaxAggregateOutputType | null
25
- }
26
-
27
- export type KnowledgeBaseMinAggregateOutputType = {
28
- id: string | null
29
- name: string | null
30
- description: string | null
31
- icon: string | null
32
- visibility: string | null
33
- userId: string | null
34
- workspaceId: string | null
35
- pinnedToSidebar: boolean | null
36
- isDeleted: boolean | null
37
- createdAt: Date | null
38
- updatedAt: Date | null
39
- }
40
-
41
- export type KnowledgeBaseMaxAggregateOutputType = {
42
- id: string | null
43
- name: string | null
44
- description: string | null
45
- icon: string | null
46
- visibility: string | null
47
- userId: string | null
48
- workspaceId: string | null
49
- pinnedToSidebar: boolean | null
50
- isDeleted: boolean | null
51
- createdAt: Date | null
52
- updatedAt: Date | null
53
- }
54
-
55
- export type KnowledgeBaseCountAggregateOutputType = {
56
- id: number
57
- name: number
58
- description: number
59
- icon: number
60
- tags: number
61
- visibility: number
62
- userId: number
63
- workspaceId: number
64
- pinnedToSidebar: number
65
- isDeleted: number
66
- createdAt: number
67
- updatedAt: number
68
- _all: number
69
- }
70
-
71
-
72
- export type KnowledgeBaseMinAggregateInputType = {
73
- id?: true
74
- name?: true
75
- description?: true
76
- icon?: true
77
- visibility?: true
78
- userId?: true
79
- workspaceId?: true
80
- pinnedToSidebar?: true
81
- isDeleted?: true
82
- createdAt?: true
83
- updatedAt?: true
84
- }
85
-
86
- export type KnowledgeBaseMaxAggregateInputType = {
87
- id?: true
88
- name?: true
89
- description?: true
90
- icon?: true
91
- visibility?: true
92
- userId?: true
93
- workspaceId?: true
94
- pinnedToSidebar?: true
95
- isDeleted?: true
96
- createdAt?: true
97
- updatedAt?: true
98
- }
99
-
100
- export type KnowledgeBaseCountAggregateInputType = {
101
- id?: true
102
- name?: true
103
- description?: true
104
- icon?: true
105
- tags?: true
106
- visibility?: true
107
- userId?: true
108
- workspaceId?: true
109
- pinnedToSidebar?: true
110
- isDeleted?: true
111
- createdAt?: true
112
- updatedAt?: true
113
- _all?: true
114
- }
115
-
116
- export type KnowledgeBaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
- /**
118
- * Filter which KnowledgeBase to aggregate.
119
- */
120
- where?: Prisma.KnowledgeBaseWhereInput
121
- /**
122
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
123
- *
124
- * Determine the order of KnowledgeBases to fetch.
125
- */
126
- orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
127
- /**
128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
129
- *
130
- * Sets the start position
131
- */
132
- cursor?: Prisma.KnowledgeBaseWhereUniqueInput
133
- /**
134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
- *
136
- * Take `±n` KnowledgeBases from the position of the cursor.
137
- */
138
- take?: number
139
- /**
140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
141
- *
142
- * Skip the first `n` KnowledgeBases.
143
- */
144
- skip?: number
145
- /**
146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
- *
148
- * Count returned KnowledgeBases
149
- **/
150
- _count?: true | KnowledgeBaseCountAggregateInputType
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
- *
154
- * Select which fields to find the minimum value
155
- **/
156
- _min?: KnowledgeBaseMinAggregateInputType
157
- /**
158
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
- *
160
- * Select which fields to find the maximum value
161
- **/
162
- _max?: KnowledgeBaseMaxAggregateInputType
163
- }
164
-
165
- export type GetKnowledgeBaseAggregateType<T extends KnowledgeBaseAggregateArgs> = {
166
- [P in keyof T & keyof AggregateKnowledgeBase]: P extends '_count' | 'count'
167
- ? T[P] extends true
168
- ? number
169
- : Prisma.GetScalarType<T[P], AggregateKnowledgeBase[P]>
170
- : Prisma.GetScalarType<T[P], AggregateKnowledgeBase[P]>
171
- }
172
-
173
-
174
-
175
-
176
- export type KnowledgeBaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
177
- where?: Prisma.KnowledgeBaseWhereInput
178
- orderBy?: Prisma.KnowledgeBaseOrderByWithAggregationInput | Prisma.KnowledgeBaseOrderByWithAggregationInput[]
179
- by: Prisma.KnowledgeBaseScalarFieldEnum[] | Prisma.KnowledgeBaseScalarFieldEnum
180
- having?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput
181
- take?: number
182
- skip?: number
183
- _count?: KnowledgeBaseCountAggregateInputType | true
184
- _min?: KnowledgeBaseMinAggregateInputType
185
- _max?: KnowledgeBaseMaxAggregateInputType
186
- }
187
-
188
- export type KnowledgeBaseGroupByOutputType = {
189
- id: string
190
- name: string
191
- description: string | null
192
- icon: string
193
- tags: runtime.JsonValue
194
- visibility: string
195
- userId: string
196
- workspaceId: string | null
197
- pinnedToSidebar: boolean
198
- isDeleted: boolean
199
- createdAt: Date
200
- updatedAt: Date
201
- _count: KnowledgeBaseCountAggregateOutputType | null
202
- _min: KnowledgeBaseMinAggregateOutputType | null
203
- _max: KnowledgeBaseMaxAggregateOutputType | null
204
- }
205
-
206
- export type GetKnowledgeBaseGroupByPayload<T extends KnowledgeBaseGroupByArgs> = Prisma.PrismaPromise<
207
- Array<
208
- Prisma.PickEnumerable<KnowledgeBaseGroupByOutputType, T['by']> &
209
- {
210
- [P in ((keyof T) & (keyof KnowledgeBaseGroupByOutputType))]: P extends '_count'
211
- ? T[P] extends boolean
212
- ? number
213
- : Prisma.GetScalarType<T[P], KnowledgeBaseGroupByOutputType[P]>
214
- : Prisma.GetScalarType<T[P], KnowledgeBaseGroupByOutputType[P]>
215
- }
216
- >
217
- >
218
-
219
-
220
-
221
- export type KnowledgeBaseWhereInput = {
222
- AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
223
- OR?: Prisma.KnowledgeBaseWhereInput[]
224
- NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
225
- id?: Prisma.StringFilter<"KnowledgeBase"> | string
226
- name?: Prisma.StringFilter<"KnowledgeBase"> | string
227
- description?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
228
- icon?: Prisma.StringFilter<"KnowledgeBase"> | string
229
- tags?: Prisma.JsonFilter<"KnowledgeBase">
230
- visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
231
- userId?: Prisma.StringFilter<"KnowledgeBase"> | string
232
- workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
233
- pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
234
- isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
235
- createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
236
- updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
237
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
238
- workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
239
- documents?: Prisma.KnowledgeDocumentListRelationFilter
240
- projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
241
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
242
- }
243
-
244
- export type KnowledgeBaseOrderByWithRelationInput = {
245
- id?: Prisma.SortOrder
246
- name?: Prisma.SortOrder
247
- description?: Prisma.SortOrderInput | Prisma.SortOrder
248
- icon?: Prisma.SortOrder
249
- tags?: Prisma.SortOrder
250
- visibility?: Prisma.SortOrder
251
- userId?: Prisma.SortOrder
252
- workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
253
- pinnedToSidebar?: Prisma.SortOrder
254
- isDeleted?: Prisma.SortOrder
255
- createdAt?: Prisma.SortOrder
256
- updatedAt?: Prisma.SortOrder
257
- user?: Prisma.UserOrderByWithRelationInput
258
- workspace?: Prisma.WorkspaceOrderByWithRelationInput
259
- documents?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
260
- projectLinks?: Prisma.ProjectKnowledgeBaseOrderByRelationAggregateInput
261
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput
262
- }
263
-
264
- export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
265
- id?: string
266
- AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
267
- OR?: Prisma.KnowledgeBaseWhereInput[]
268
- NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[]
269
- name?: Prisma.StringFilter<"KnowledgeBase"> | string
270
- description?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
271
- icon?: Prisma.StringFilter<"KnowledgeBase"> | string
272
- tags?: Prisma.JsonFilter<"KnowledgeBase">
273
- visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
274
- userId?: Prisma.StringFilter<"KnowledgeBase"> | string
275
- workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
276
- pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
277
- isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
278
- createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
279
- updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
280
- user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
281
- workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
282
- documents?: Prisma.KnowledgeDocumentListRelationFilter
283
- projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
284
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
285
- }, "id">
286
-
287
- export type KnowledgeBaseOrderByWithAggregationInput = {
288
- id?: Prisma.SortOrder
289
- name?: Prisma.SortOrder
290
- description?: Prisma.SortOrderInput | Prisma.SortOrder
291
- icon?: Prisma.SortOrder
292
- tags?: Prisma.SortOrder
293
- visibility?: Prisma.SortOrder
294
- userId?: Prisma.SortOrder
295
- workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
296
- pinnedToSidebar?: Prisma.SortOrder
297
- isDeleted?: Prisma.SortOrder
298
- createdAt?: Prisma.SortOrder
299
- updatedAt?: Prisma.SortOrder
300
- _count?: Prisma.KnowledgeBaseCountOrderByAggregateInput
301
- _max?: Prisma.KnowledgeBaseMaxOrderByAggregateInput
302
- _min?: Prisma.KnowledgeBaseMinOrderByAggregateInput
303
- }
304
-
305
- export type KnowledgeBaseScalarWhereWithAggregatesInput = {
306
- AND?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
307
- OR?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
308
- NOT?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[]
309
- id?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
310
- name?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
311
- description?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBase"> | string | null
312
- icon?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
313
- tags?: Prisma.JsonWithAggregatesFilter<"KnowledgeBase">
314
- visibility?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
315
- userId?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
316
- workspaceId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBase"> | string | null
317
- pinnedToSidebar?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean
318
- isDeleted?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean
319
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string
320
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string
321
- }
322
-
323
- export type KnowledgeBaseCreateInput = {
324
- id?: string
325
- name: string
326
- description?: string | null
327
- icon?: string
328
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
329
- visibility?: string
330
- pinnedToSidebar?: boolean
331
- isDeleted?: boolean
332
- createdAt?: Date | string
333
- updatedAt?: Date | string
334
- user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
335
- workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
336
- documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
337
- projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
338
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
339
- }
340
-
341
- export type KnowledgeBaseUncheckedCreateInput = {
342
- id?: string
343
- name: string
344
- description?: string | null
345
- icon?: string
346
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
347
- visibility?: string
348
- userId: string
349
- workspaceId?: string | null
350
- pinnedToSidebar?: boolean
351
- isDeleted?: boolean
352
- createdAt?: Date | string
353
- updatedAt?: Date | string
354
- documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
355
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
356
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
357
- }
358
-
359
- export type KnowledgeBaseUpdateInput = {
360
- id?: Prisma.StringFieldUpdateOperationsInput | string
361
- name?: Prisma.StringFieldUpdateOperationsInput | string
362
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
363
- icon?: Prisma.StringFieldUpdateOperationsInput | string
364
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
365
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
366
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
367
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
368
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
369
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
370
- user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
371
- workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
372
- documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
373
- projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
374
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
375
- }
376
-
377
- export type KnowledgeBaseUncheckedUpdateInput = {
378
- id?: Prisma.StringFieldUpdateOperationsInput | string
379
- name?: Prisma.StringFieldUpdateOperationsInput | string
380
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
381
- icon?: Prisma.StringFieldUpdateOperationsInput | string
382
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
383
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
384
- userId?: Prisma.StringFieldUpdateOperationsInput | string
385
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
386
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
387
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
388
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
389
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
390
- documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
391
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
392
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
393
- }
394
-
395
- export type KnowledgeBaseCreateManyInput = {
396
- id?: string
397
- name: string
398
- description?: string | null
399
- icon?: string
400
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
401
- visibility?: string
402
- userId: string
403
- workspaceId?: string | null
404
- pinnedToSidebar?: boolean
405
- isDeleted?: boolean
406
- createdAt?: Date | string
407
- updatedAt?: Date | string
408
- }
409
-
410
- export type KnowledgeBaseUpdateManyMutationInput = {
411
- id?: Prisma.StringFieldUpdateOperationsInput | string
412
- name?: Prisma.StringFieldUpdateOperationsInput | string
413
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
414
- icon?: Prisma.StringFieldUpdateOperationsInput | string
415
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
416
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
417
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
418
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
419
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
420
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
421
- }
422
-
423
- export type KnowledgeBaseUncheckedUpdateManyInput = {
424
- id?: Prisma.StringFieldUpdateOperationsInput | string
425
- name?: Prisma.StringFieldUpdateOperationsInput | string
426
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
427
- icon?: Prisma.StringFieldUpdateOperationsInput | string
428
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
429
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
430
- userId?: Prisma.StringFieldUpdateOperationsInput | string
431
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
432
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
433
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
434
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
435
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
436
- }
437
-
438
- export type KnowledgeBaseListRelationFilter = {
439
- every?: Prisma.KnowledgeBaseWhereInput
440
- some?: Prisma.KnowledgeBaseWhereInput
441
- none?: Prisma.KnowledgeBaseWhereInput
442
- }
443
-
444
- export type KnowledgeBaseOrderByRelationAggregateInput = {
445
- _count?: Prisma.SortOrder
446
- }
447
-
448
- export type KnowledgeBaseCountOrderByAggregateInput = {
449
- id?: Prisma.SortOrder
450
- name?: Prisma.SortOrder
451
- description?: Prisma.SortOrder
452
- icon?: Prisma.SortOrder
453
- tags?: Prisma.SortOrder
454
- visibility?: Prisma.SortOrder
455
- userId?: Prisma.SortOrder
456
- workspaceId?: Prisma.SortOrder
457
- pinnedToSidebar?: Prisma.SortOrder
458
- isDeleted?: Prisma.SortOrder
459
- createdAt?: Prisma.SortOrder
460
- updatedAt?: Prisma.SortOrder
461
- }
462
-
463
- export type KnowledgeBaseMaxOrderByAggregateInput = {
464
- id?: Prisma.SortOrder
465
- name?: Prisma.SortOrder
466
- description?: Prisma.SortOrder
467
- icon?: Prisma.SortOrder
468
- visibility?: Prisma.SortOrder
469
- userId?: Prisma.SortOrder
470
- workspaceId?: Prisma.SortOrder
471
- pinnedToSidebar?: Prisma.SortOrder
472
- isDeleted?: Prisma.SortOrder
473
- createdAt?: Prisma.SortOrder
474
- updatedAt?: Prisma.SortOrder
475
- }
476
-
477
- export type KnowledgeBaseMinOrderByAggregateInput = {
478
- id?: Prisma.SortOrder
479
- name?: Prisma.SortOrder
480
- description?: Prisma.SortOrder
481
- icon?: Prisma.SortOrder
482
- visibility?: Prisma.SortOrder
483
- userId?: Prisma.SortOrder
484
- workspaceId?: Prisma.SortOrder
485
- pinnedToSidebar?: Prisma.SortOrder
486
- isDeleted?: Prisma.SortOrder
487
- createdAt?: Prisma.SortOrder
488
- updatedAt?: Prisma.SortOrder
489
- }
490
-
491
- export type KnowledgeBaseScalarRelationFilter = {
492
- is?: Prisma.KnowledgeBaseWhereInput
493
- isNot?: Prisma.KnowledgeBaseWhereInput
494
- }
495
-
496
- export type KnowledgeBaseCreateNestedManyWithoutUserInput = {
497
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput> | Prisma.KnowledgeBaseCreateWithoutUserInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput[]
498
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput | Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput[]
499
- createMany?: Prisma.KnowledgeBaseCreateManyUserInputEnvelope
500
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
501
- }
502
-
503
- export type KnowledgeBaseUncheckedCreateNestedManyWithoutUserInput = {
504
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput> | Prisma.KnowledgeBaseCreateWithoutUserInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput[]
505
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput | Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput[]
506
- createMany?: Prisma.KnowledgeBaseCreateManyUserInputEnvelope
507
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
508
- }
509
-
510
- export type KnowledgeBaseUpdateManyWithoutUserNestedInput = {
511
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput> | Prisma.KnowledgeBaseCreateWithoutUserInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput[]
512
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput | Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput[]
513
- upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutUserInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutUserInput[]
514
- createMany?: Prisma.KnowledgeBaseCreateManyUserInputEnvelope
515
- set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
516
- disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
517
- delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
518
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
519
- update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutUserInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutUserInput[]
520
- updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutUserInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutUserInput[]
521
- deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
522
- }
523
-
524
- export type KnowledgeBaseUncheckedUpdateManyWithoutUserNestedInput = {
525
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput> | Prisma.KnowledgeBaseCreateWithoutUserInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput[]
526
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput | Prisma.KnowledgeBaseCreateOrConnectWithoutUserInput[]
527
- upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutUserInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutUserInput[]
528
- createMany?: Prisma.KnowledgeBaseCreateManyUserInputEnvelope
529
- set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
530
- disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
531
- delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
532
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
533
- update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutUserInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutUserInput[]
534
- updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutUserInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutUserInput[]
535
- deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
536
- }
537
-
538
- export type KnowledgeBaseCreateNestedManyWithoutWorkspaceInput = {
539
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput> | Prisma.KnowledgeBaseCreateWithoutWorkspaceInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput[]
540
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput | Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput[]
541
- createMany?: Prisma.KnowledgeBaseCreateManyWorkspaceInputEnvelope
542
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
543
- }
544
-
545
- export type KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput = {
546
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput> | Prisma.KnowledgeBaseCreateWithoutWorkspaceInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput[]
547
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput | Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput[]
548
- createMany?: Prisma.KnowledgeBaseCreateManyWorkspaceInputEnvelope
549
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
550
- }
551
-
552
- export type KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput = {
553
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput> | Prisma.KnowledgeBaseCreateWithoutWorkspaceInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput[]
554
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput | Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput[]
555
- upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutWorkspaceInput[]
556
- createMany?: Prisma.KnowledgeBaseCreateManyWorkspaceInputEnvelope
557
- set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
558
- disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
559
- delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
560
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
561
- update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutWorkspaceInput[]
562
- updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutWorkspaceInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutWorkspaceInput[]
563
- deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
564
- }
565
-
566
- export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput = {
567
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput> | Prisma.KnowledgeBaseCreateWithoutWorkspaceInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput[]
568
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput | Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceInput[]
569
- upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutWorkspaceInput[]
570
- createMany?: Prisma.KnowledgeBaseCreateManyWorkspaceInputEnvelope
571
- set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
572
- disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
573
- delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
574
- connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[]
575
- update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutWorkspaceInput[]
576
- updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutWorkspaceInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutWorkspaceInput[]
577
- deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
578
- }
579
-
580
- export type KnowledgeBaseCreateNestedOneWithoutProjectLinksInput = {
581
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
582
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutProjectLinksInput
583
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
584
- }
585
-
586
- export type KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput = {
587
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
588
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutProjectLinksInput
589
- upsert?: Prisma.KnowledgeBaseUpsertWithoutProjectLinksInput
590
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
591
- update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput, Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
592
- }
593
-
594
- export type KnowledgeBaseCreateNestedOneWithoutWorkspaceLinksInput = {
595
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
596
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
597
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
598
- }
599
-
600
- export type KnowledgeBaseUpdateOneRequiredWithoutWorkspaceLinksNestedInput = {
601
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
602
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
603
- upsert?: Prisma.KnowledgeBaseUpsertWithoutWorkspaceLinksInput
604
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
605
- update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
606
- }
607
-
608
- export type KnowledgeBaseCreateNestedOneWithoutDocumentsInput = {
609
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutDocumentsInput>
610
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutDocumentsInput
611
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
612
- }
613
-
614
- export type KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput = {
615
- create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutDocumentsInput>
616
- connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutDocumentsInput
617
- upsert?: Prisma.KnowledgeBaseUpsertWithoutDocumentsInput
618
- connect?: Prisma.KnowledgeBaseWhereUniqueInput
619
- update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutDocumentsInput, Prisma.KnowledgeBaseUpdateWithoutDocumentsInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutDocumentsInput>
620
- }
621
-
622
- export type KnowledgeBaseCreateWithoutUserInput = {
623
- id?: string
624
- name: string
625
- description?: string | null
626
- icon?: string
627
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
628
- visibility?: string
629
- pinnedToSidebar?: boolean
630
- isDeleted?: boolean
631
- createdAt?: Date | string
632
- updatedAt?: Date | string
633
- workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
634
- documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
635
- projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
636
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
637
- }
638
-
639
- export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
640
- id?: string
641
- name: string
642
- description?: string | null
643
- icon?: string
644
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
645
- visibility?: string
646
- workspaceId?: string | null
647
- pinnedToSidebar?: boolean
648
- isDeleted?: boolean
649
- createdAt?: Date | string
650
- updatedAt?: Date | string
651
- documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
652
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
653
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
654
- }
655
-
656
- export type KnowledgeBaseCreateOrConnectWithoutUserInput = {
657
- where: Prisma.KnowledgeBaseWhereUniqueInput
658
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput>
659
- }
660
-
661
- export type KnowledgeBaseCreateManyUserInputEnvelope = {
662
- data: Prisma.KnowledgeBaseCreateManyUserInput | Prisma.KnowledgeBaseCreateManyUserInput[]
663
- }
664
-
665
- export type KnowledgeBaseUpsertWithWhereUniqueWithoutUserInput = {
666
- where: Prisma.KnowledgeBaseWhereUniqueInput
667
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutUserInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutUserInput>
668
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutUserInput, Prisma.KnowledgeBaseUncheckedCreateWithoutUserInput>
669
- }
670
-
671
- export type KnowledgeBaseUpdateWithWhereUniqueWithoutUserInput = {
672
- where: Prisma.KnowledgeBaseWhereUniqueInput
673
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutUserInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutUserInput>
674
- }
675
-
676
- export type KnowledgeBaseUpdateManyWithWhereWithoutUserInput = {
677
- where: Prisma.KnowledgeBaseScalarWhereInput
678
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyWithoutUserInput>
679
- }
680
-
681
- export type KnowledgeBaseScalarWhereInput = {
682
- AND?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
683
- OR?: Prisma.KnowledgeBaseScalarWhereInput[]
684
- NOT?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
685
- id?: Prisma.StringFilter<"KnowledgeBase"> | string
686
- name?: Prisma.StringFilter<"KnowledgeBase"> | string
687
- description?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
688
- icon?: Prisma.StringFilter<"KnowledgeBase"> | string
689
- tags?: Prisma.JsonFilter<"KnowledgeBase">
690
- visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
691
- userId?: Prisma.StringFilter<"KnowledgeBase"> | string
692
- workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
693
- pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
694
- isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
695
- createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
696
- updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
697
- }
698
-
699
- export type KnowledgeBaseCreateWithoutWorkspaceInput = {
700
- id?: string
701
- name: string
702
- description?: string | null
703
- icon?: string
704
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
705
- visibility?: string
706
- pinnedToSidebar?: boolean
707
- isDeleted?: boolean
708
- createdAt?: Date | string
709
- updatedAt?: Date | string
710
- user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
711
- documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
712
- projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
713
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
714
- }
715
-
716
- export type KnowledgeBaseUncheckedCreateWithoutWorkspaceInput = {
717
- id?: string
718
- name: string
719
- description?: string | null
720
- icon?: string
721
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
722
- visibility?: string
723
- userId: string
724
- pinnedToSidebar?: boolean
725
- isDeleted?: boolean
726
- createdAt?: Date | string
727
- updatedAt?: Date | string
728
- documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
729
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
730
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
731
- }
732
-
733
- export type KnowledgeBaseCreateOrConnectWithoutWorkspaceInput = {
734
- where: Prisma.KnowledgeBaseWhereUniqueInput
735
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput>
736
- }
737
-
738
- export type KnowledgeBaseCreateManyWorkspaceInputEnvelope = {
739
- data: Prisma.KnowledgeBaseCreateManyWorkspaceInput | Prisma.KnowledgeBaseCreateManyWorkspaceInput[]
740
- }
741
-
742
- export type KnowledgeBaseUpsertWithWhereUniqueWithoutWorkspaceInput = {
743
- where: Prisma.KnowledgeBaseWhereUniqueInput
744
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput>
745
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceInput>
746
- }
747
-
748
- export type KnowledgeBaseUpdateWithWhereUniqueWithoutWorkspaceInput = {
749
- where: Prisma.KnowledgeBaseWhereUniqueInput
750
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput>
751
- }
752
-
753
- export type KnowledgeBaseUpdateManyWithWhereWithoutWorkspaceInput = {
754
- where: Prisma.KnowledgeBaseScalarWhereInput
755
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput>
756
- }
757
-
758
- export type KnowledgeBaseCreateWithoutProjectLinksInput = {
759
- id?: string
760
- name: string
761
- description?: string | null
762
- icon?: string
763
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
764
- visibility?: string
765
- pinnedToSidebar?: boolean
766
- isDeleted?: boolean
767
- createdAt?: Date | string
768
- updatedAt?: Date | string
769
- user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
770
- workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
771
- documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
772
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
773
- }
774
-
775
- export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
776
- id?: string
777
- name: string
778
- description?: string | null
779
- icon?: string
780
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
781
- visibility?: string
782
- userId: string
783
- workspaceId?: string | null
784
- pinnedToSidebar?: boolean
785
- isDeleted?: boolean
786
- createdAt?: Date | string
787
- updatedAt?: Date | string
788
- documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
789
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
790
- }
791
-
792
- export type KnowledgeBaseCreateOrConnectWithoutProjectLinksInput = {
793
- where: Prisma.KnowledgeBaseWhereUniqueInput
794
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
795
- }
796
-
797
- export type KnowledgeBaseUpsertWithoutProjectLinksInput = {
798
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
799
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
800
- where?: Prisma.KnowledgeBaseWhereInput
801
- }
802
-
803
- export type KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput = {
804
- where?: Prisma.KnowledgeBaseWhereInput
805
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
806
- }
807
-
808
- export type KnowledgeBaseUpdateWithoutProjectLinksInput = {
809
- id?: Prisma.StringFieldUpdateOperationsInput | string
810
- name?: Prisma.StringFieldUpdateOperationsInput | string
811
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
812
- icon?: Prisma.StringFieldUpdateOperationsInput | string
813
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
814
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
815
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
816
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
817
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
818
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
819
- user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
820
- workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
821
- documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
822
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
823
- }
824
-
825
- export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
826
- id?: Prisma.StringFieldUpdateOperationsInput | string
827
- name?: Prisma.StringFieldUpdateOperationsInput | string
828
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
829
- icon?: Prisma.StringFieldUpdateOperationsInput | string
830
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
831
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
832
- userId?: Prisma.StringFieldUpdateOperationsInput | string
833
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
834
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
835
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
836
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
837
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
838
- documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
839
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
840
- }
841
-
842
- export type KnowledgeBaseCreateWithoutWorkspaceLinksInput = {
843
- id?: string
844
- name: string
845
- description?: string | null
846
- icon?: string
847
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
848
- visibility?: string
849
- pinnedToSidebar?: boolean
850
- isDeleted?: boolean
851
- createdAt?: Date | string
852
- updatedAt?: Date | string
853
- user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
854
- workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
855
- documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
856
- projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
857
- }
858
-
859
- export type KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput = {
860
- id?: string
861
- name: string
862
- description?: string | null
863
- icon?: string
864
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
865
- visibility?: string
866
- userId: string
867
- workspaceId?: string | null
868
- pinnedToSidebar?: boolean
869
- isDeleted?: boolean
870
- createdAt?: Date | string
871
- updatedAt?: Date | string
872
- documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
873
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
874
- }
875
-
876
- export type KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput = {
877
- where: Prisma.KnowledgeBaseWhereUniqueInput
878
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
879
- }
880
-
881
- export type KnowledgeBaseUpsertWithoutWorkspaceLinksInput = {
882
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
883
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
884
- where?: Prisma.KnowledgeBaseWhereInput
885
- }
886
-
887
- export type KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput = {
888
- where?: Prisma.KnowledgeBaseWhereInput
889
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
890
- }
891
-
892
- export type KnowledgeBaseUpdateWithoutWorkspaceLinksInput = {
893
- id?: Prisma.StringFieldUpdateOperationsInput | string
894
- name?: Prisma.StringFieldUpdateOperationsInput | string
895
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
896
- icon?: Prisma.StringFieldUpdateOperationsInput | string
897
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
898
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
899
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
900
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
901
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
902
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
903
- user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
904
- workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
905
- documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
906
- projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
907
- }
908
-
909
- export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput = {
910
- id?: Prisma.StringFieldUpdateOperationsInput | string
911
- name?: Prisma.StringFieldUpdateOperationsInput | string
912
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
913
- icon?: Prisma.StringFieldUpdateOperationsInput | string
914
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
915
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
916
- userId?: Prisma.StringFieldUpdateOperationsInput | string
917
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
918
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
919
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
920
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
921
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
922
- documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
923
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
924
- }
925
-
926
- export type KnowledgeBaseCreateWithoutDocumentsInput = {
927
- id?: string
928
- name: string
929
- description?: string | null
930
- icon?: string
931
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
932
- visibility?: string
933
- pinnedToSidebar?: boolean
934
- isDeleted?: boolean
935
- createdAt?: Date | string
936
- updatedAt?: Date | string
937
- user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
938
- workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
939
- projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
940
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
941
- }
942
-
943
- export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
944
- id?: string
945
- name: string
946
- description?: string | null
947
- icon?: string
948
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
949
- visibility?: string
950
- userId: string
951
- workspaceId?: string | null
952
- pinnedToSidebar?: boolean
953
- isDeleted?: boolean
954
- createdAt?: Date | string
955
- updatedAt?: Date | string
956
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
957
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
958
- }
959
-
960
- export type KnowledgeBaseCreateOrConnectWithoutDocumentsInput = {
961
- where: Prisma.KnowledgeBaseWhereUniqueInput
962
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutDocumentsInput>
963
- }
964
-
965
- export type KnowledgeBaseUpsertWithoutDocumentsInput = {
966
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutDocumentsInput>
967
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutDocumentsInput>
968
- where?: Prisma.KnowledgeBaseWhereInput
969
- }
970
-
971
- export type KnowledgeBaseUpdateToOneWithWhereWithoutDocumentsInput = {
972
- where?: Prisma.KnowledgeBaseWhereInput
973
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutDocumentsInput>
974
- }
975
-
976
- export type KnowledgeBaseUpdateWithoutDocumentsInput = {
977
- id?: Prisma.StringFieldUpdateOperationsInput | string
978
- name?: Prisma.StringFieldUpdateOperationsInput | string
979
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
980
- icon?: Prisma.StringFieldUpdateOperationsInput | string
981
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
982
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
983
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
984
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
985
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
986
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
987
- user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
988
- workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
989
- projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
990
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
991
- }
992
-
993
- export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
994
- id?: Prisma.StringFieldUpdateOperationsInput | string
995
- name?: Prisma.StringFieldUpdateOperationsInput | string
996
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
997
- icon?: Prisma.StringFieldUpdateOperationsInput | string
998
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
999
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1000
- userId?: Prisma.StringFieldUpdateOperationsInput | string
1001
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1002
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1003
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1004
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1005
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1006
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1007
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1008
- }
1009
-
1010
- export type KnowledgeBaseCreateManyUserInput = {
1011
- id?: string
1012
- name: string
1013
- description?: string | null
1014
- icon?: string
1015
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1016
- visibility?: string
1017
- workspaceId?: string | null
1018
- pinnedToSidebar?: boolean
1019
- isDeleted?: boolean
1020
- createdAt?: Date | string
1021
- updatedAt?: Date | string
1022
- }
1023
-
1024
- export type KnowledgeBaseUpdateWithoutUserInput = {
1025
- id?: Prisma.StringFieldUpdateOperationsInput | string
1026
- name?: Prisma.StringFieldUpdateOperationsInput | string
1027
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1028
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1029
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1030
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1031
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1032
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1033
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1034
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1035
- workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
1036
- documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
1037
- projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
1038
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
1039
- }
1040
-
1041
- export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
1042
- id?: Prisma.StringFieldUpdateOperationsInput | string
1043
- name?: Prisma.StringFieldUpdateOperationsInput | string
1044
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1045
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1046
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1047
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1048
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1049
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1050
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1051
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1052
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1053
- documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
1054
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1055
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1056
- }
1057
-
1058
- export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
1059
- id?: Prisma.StringFieldUpdateOperationsInput | string
1060
- name?: Prisma.StringFieldUpdateOperationsInput | string
1061
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1062
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1063
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1064
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1065
- workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1066
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1067
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1068
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1069
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1070
- }
1071
-
1072
- export type KnowledgeBaseCreateManyWorkspaceInput = {
1073
- id?: string
1074
- name: string
1075
- description?: string | null
1076
- icon?: string
1077
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1078
- visibility?: string
1079
- userId: string
1080
- pinnedToSidebar?: boolean
1081
- isDeleted?: boolean
1082
- createdAt?: Date | string
1083
- updatedAt?: Date | string
1084
- }
1085
-
1086
- export type KnowledgeBaseUpdateWithoutWorkspaceInput = {
1087
- id?: Prisma.StringFieldUpdateOperationsInput | string
1088
- name?: Prisma.StringFieldUpdateOperationsInput | string
1089
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1090
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1091
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1092
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1093
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1094
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1095
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1096
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1097
- user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
1098
- documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
1099
- projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
1100
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
1101
- }
1102
-
1103
- export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput = {
1104
- id?: Prisma.StringFieldUpdateOperationsInput | string
1105
- name?: Prisma.StringFieldUpdateOperationsInput | string
1106
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1107
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1108
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1109
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1110
- userId?: Prisma.StringFieldUpdateOperationsInput | string
1111
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1112
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1113
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1114
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1115
- documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
1116
- projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1117
- workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1118
- }
1119
-
1120
- export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput = {
1121
- id?: Prisma.StringFieldUpdateOperationsInput | string
1122
- name?: Prisma.StringFieldUpdateOperationsInput | string
1123
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1124
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1125
- tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1126
- visibility?: Prisma.StringFieldUpdateOperationsInput | string
1127
- userId?: Prisma.StringFieldUpdateOperationsInput | string
1128
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1129
- isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1130
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1131
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1132
- }
1133
-
1134
-
1135
- /**
1136
- * Count Type KnowledgeBaseCountOutputType
1137
- */
1138
-
1139
- export type KnowledgeBaseCountOutputType = {
1140
- documents: number
1141
- projectLinks: number
1142
- workspaceLinks: number
1143
- }
1144
-
1145
- export type KnowledgeBaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1146
- documents?: boolean | KnowledgeBaseCountOutputTypeCountDocumentsArgs
1147
- projectLinks?: boolean | KnowledgeBaseCountOutputTypeCountProjectLinksArgs
1148
- workspaceLinks?: boolean | KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs
1149
- }
1150
-
1151
- /**
1152
- * KnowledgeBaseCountOutputType without action
1153
- */
1154
- export type KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
- /**
1156
- * Select specific fields to fetch from the KnowledgeBaseCountOutputType
1157
- */
1158
- select?: Prisma.KnowledgeBaseCountOutputTypeSelect<ExtArgs> | null
1159
- }
1160
-
1161
- /**
1162
- * KnowledgeBaseCountOutputType without action
1163
- */
1164
- export type KnowledgeBaseCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
- where?: Prisma.KnowledgeDocumentWhereInput
1166
- }
1167
-
1168
- /**
1169
- * KnowledgeBaseCountOutputType without action
1170
- */
1171
- export type KnowledgeBaseCountOutputTypeCountProjectLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
- where?: Prisma.ProjectKnowledgeBaseWhereInput
1173
- }
1174
-
1175
- /**
1176
- * KnowledgeBaseCountOutputType without action
1177
- */
1178
- export type KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
- where?: Prisma.WorkspaceKnowledgeBaseWhereInput
1180
- }
1181
-
1182
-
1183
- export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1184
- id?: boolean
1185
- name?: boolean
1186
- description?: boolean
1187
- icon?: boolean
1188
- tags?: boolean
1189
- visibility?: boolean
1190
- userId?: boolean
1191
- workspaceId?: boolean
1192
- pinnedToSidebar?: boolean
1193
- isDeleted?: boolean
1194
- createdAt?: boolean
1195
- updatedAt?: boolean
1196
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1197
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1198
- documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
1199
- projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
1200
- workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
1201
- _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
1202
- }, ExtArgs["result"]["knowledgeBase"]>
1203
-
1204
- export type KnowledgeBaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1205
- id?: boolean
1206
- name?: boolean
1207
- description?: boolean
1208
- icon?: boolean
1209
- tags?: boolean
1210
- visibility?: boolean
1211
- userId?: boolean
1212
- workspaceId?: boolean
1213
- pinnedToSidebar?: boolean
1214
- isDeleted?: boolean
1215
- createdAt?: boolean
1216
- updatedAt?: boolean
1217
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1218
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1219
- }, ExtArgs["result"]["knowledgeBase"]>
1220
-
1221
- export type KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1222
- id?: boolean
1223
- name?: boolean
1224
- description?: boolean
1225
- icon?: boolean
1226
- tags?: boolean
1227
- visibility?: boolean
1228
- userId?: boolean
1229
- workspaceId?: boolean
1230
- pinnedToSidebar?: boolean
1231
- isDeleted?: boolean
1232
- createdAt?: boolean
1233
- updatedAt?: boolean
1234
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1235
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1236
- }, ExtArgs["result"]["knowledgeBase"]>
1237
-
1238
- export type KnowledgeBaseSelectScalar = {
1239
- id?: boolean
1240
- name?: boolean
1241
- description?: boolean
1242
- icon?: boolean
1243
- tags?: boolean
1244
- visibility?: boolean
1245
- userId?: boolean
1246
- workspaceId?: boolean
1247
- pinnedToSidebar?: boolean
1248
- isDeleted?: boolean
1249
- createdAt?: boolean
1250
- updatedAt?: boolean
1251
- }
1252
-
1253
- export type KnowledgeBaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "icon" | "tags" | "visibility" | "userId" | "workspaceId" | "pinnedToSidebar" | "isDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["knowledgeBase"]>
1254
- export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1256
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1257
- documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
1258
- projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
1259
- workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
1260
- _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
1261
- }
1262
- export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1264
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1265
- }
1266
- export type KnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
- user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1268
- workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1269
- }
1270
-
1271
- export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1272
- name: "KnowledgeBase"
1273
- objects: {
1274
- user: Prisma.$UserPayload<ExtArgs>
1275
- workspace: Prisma.$WorkspacePayload<ExtArgs> | null
1276
- documents: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1277
- projectLinks: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>[]
1278
- workspaceLinks: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[]
1279
- }
1280
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1281
- id: string
1282
- name: string
1283
- description: string | null
1284
- icon: string
1285
- tags: runtime.JsonValue
1286
- visibility: string
1287
- userId: string
1288
- workspaceId: string | null
1289
- pinnedToSidebar: boolean
1290
- isDeleted: boolean
1291
- createdAt: Date
1292
- updatedAt: Date
1293
- }, ExtArgs["result"]["knowledgeBase"]>
1294
- composites: {}
1295
- }
1296
-
1297
- export type KnowledgeBaseGetPayload<S extends boolean | null | undefined | KnowledgeBaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload, S>
1298
-
1299
- export type KnowledgeBaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1300
- Omit<KnowledgeBaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1301
- select?: KnowledgeBaseCountAggregateInputType | true
1302
- }
1303
-
1304
- export interface KnowledgeBaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1305
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeBase'], meta: { name: 'KnowledgeBase' } }
1306
- /**
1307
- * Find zero or one KnowledgeBase that matches the filter.
1308
- * @param {KnowledgeBaseFindUniqueArgs} args - Arguments to find a KnowledgeBase
1309
- * @example
1310
- * // Get one KnowledgeBase
1311
- * const knowledgeBase = await prisma.knowledgeBase.findUnique({
1312
- * where: {
1313
- * // ... provide filter here
1314
- * }
1315
- * })
1316
- */
1317
- findUnique<T extends KnowledgeBaseFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1318
-
1319
- /**
1320
- * Find one KnowledgeBase that matches the filter or throw an error with `error.code='P2025'`
1321
- * if no matches were found.
1322
- * @param {KnowledgeBaseFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBase
1323
- * @example
1324
- * // Get one KnowledgeBase
1325
- * const knowledgeBase = await prisma.knowledgeBase.findUniqueOrThrow({
1326
- * where: {
1327
- * // ... provide filter here
1328
- * }
1329
- * })
1330
- */
1331
- findUniqueOrThrow<T extends KnowledgeBaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1332
-
1333
- /**
1334
- * Find the first KnowledgeBase that matches the filter.
1335
- * Note, that providing `undefined` is treated as the value not being there.
1336
- * Read more here: https://pris.ly/d/null-undefined
1337
- * @param {KnowledgeBaseFindFirstArgs} args - Arguments to find a KnowledgeBase
1338
- * @example
1339
- * // Get one KnowledgeBase
1340
- * const knowledgeBase = await prisma.knowledgeBase.findFirst({
1341
- * where: {
1342
- * // ... provide filter here
1343
- * }
1344
- * })
1345
- */
1346
- findFirst<T extends KnowledgeBaseFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1347
-
1348
- /**
1349
- * Find the first KnowledgeBase that matches the filter or
1350
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1351
- * Note, that providing `undefined` is treated as the value not being there.
1352
- * Read more here: https://pris.ly/d/null-undefined
1353
- * @param {KnowledgeBaseFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBase
1354
- * @example
1355
- * // Get one KnowledgeBase
1356
- * const knowledgeBase = await prisma.knowledgeBase.findFirstOrThrow({
1357
- * where: {
1358
- * // ... provide filter here
1359
- * }
1360
- * })
1361
- */
1362
- findFirstOrThrow<T extends KnowledgeBaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1363
-
1364
- /**
1365
- * Find zero or more KnowledgeBases that matches the filter.
1366
- * Note, that providing `undefined` is treated as the value not being there.
1367
- * Read more here: https://pris.ly/d/null-undefined
1368
- * @param {KnowledgeBaseFindManyArgs} args - Arguments to filter and select certain fields only.
1369
- * @example
1370
- * // Get all KnowledgeBases
1371
- * const knowledgeBases = await prisma.knowledgeBase.findMany()
1372
- *
1373
- * // Get first 10 KnowledgeBases
1374
- * const knowledgeBases = await prisma.knowledgeBase.findMany({ take: 10 })
1375
- *
1376
- * // Only select the `id`
1377
- * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.findMany({ select: { id: true } })
1378
- *
1379
- */
1380
- findMany<T extends KnowledgeBaseFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1381
-
1382
- /**
1383
- * Create a KnowledgeBase.
1384
- * @param {KnowledgeBaseCreateArgs} args - Arguments to create a KnowledgeBase.
1385
- * @example
1386
- * // Create one KnowledgeBase
1387
- * const KnowledgeBase = await prisma.knowledgeBase.create({
1388
- * data: {
1389
- * // ... data to create a KnowledgeBase
1390
- * }
1391
- * })
1392
- *
1393
- */
1394
- create<T extends KnowledgeBaseCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1395
-
1396
- /**
1397
- * Create many KnowledgeBases.
1398
- * @param {KnowledgeBaseCreateManyArgs} args - Arguments to create many KnowledgeBases.
1399
- * @example
1400
- * // Create many KnowledgeBases
1401
- * const knowledgeBase = await prisma.knowledgeBase.createMany({
1402
- * data: [
1403
- * // ... provide data here
1404
- * ]
1405
- * })
1406
- *
1407
- */
1408
- createMany<T extends KnowledgeBaseCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1409
-
1410
- /**
1411
- * Create many KnowledgeBases and returns the data saved in the database.
1412
- * @param {KnowledgeBaseCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBases.
1413
- * @example
1414
- * // Create many KnowledgeBases
1415
- * const knowledgeBase = await prisma.knowledgeBase.createManyAndReturn({
1416
- * data: [
1417
- * // ... provide data here
1418
- * ]
1419
- * })
1420
- *
1421
- * // Create many KnowledgeBases and only return the `id`
1422
- * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.createManyAndReturn({
1423
- * select: { id: true },
1424
- * data: [
1425
- * // ... provide data here
1426
- * ]
1427
- * })
1428
- * Note, that providing `undefined` is treated as the value not being there.
1429
- * Read more here: https://pris.ly/d/null-undefined
1430
- *
1431
- */
1432
- createManyAndReturn<T extends KnowledgeBaseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1433
-
1434
- /**
1435
- * Delete a KnowledgeBase.
1436
- * @param {KnowledgeBaseDeleteArgs} args - Arguments to delete one KnowledgeBase.
1437
- * @example
1438
- * // Delete one KnowledgeBase
1439
- * const KnowledgeBase = await prisma.knowledgeBase.delete({
1440
- * where: {
1441
- * // ... filter to delete one KnowledgeBase
1442
- * }
1443
- * })
1444
- *
1445
- */
1446
- delete<T extends KnowledgeBaseDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1447
-
1448
- /**
1449
- * Update one KnowledgeBase.
1450
- * @param {KnowledgeBaseUpdateArgs} args - Arguments to update one KnowledgeBase.
1451
- * @example
1452
- * // Update one KnowledgeBase
1453
- * const knowledgeBase = await prisma.knowledgeBase.update({
1454
- * where: {
1455
- * // ... provide filter here
1456
- * },
1457
- * data: {
1458
- * // ... provide data here
1459
- * }
1460
- * })
1461
- *
1462
- */
1463
- update<T extends KnowledgeBaseUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1464
-
1465
- /**
1466
- * Delete zero or more KnowledgeBases.
1467
- * @param {KnowledgeBaseDeleteManyArgs} args - Arguments to filter KnowledgeBases to delete.
1468
- * @example
1469
- * // Delete a few KnowledgeBases
1470
- * const { count } = await prisma.knowledgeBase.deleteMany({
1471
- * where: {
1472
- * // ... provide filter here
1473
- * }
1474
- * })
1475
- *
1476
- */
1477
- deleteMany<T extends KnowledgeBaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1478
-
1479
- /**
1480
- * Update zero or more KnowledgeBases.
1481
- * Note, that providing `undefined` is treated as the value not being there.
1482
- * Read more here: https://pris.ly/d/null-undefined
1483
- * @param {KnowledgeBaseUpdateManyArgs} args - Arguments to update one or more rows.
1484
- * @example
1485
- * // Update many KnowledgeBases
1486
- * const knowledgeBase = await prisma.knowledgeBase.updateMany({
1487
- * where: {
1488
- * // ... provide filter here
1489
- * },
1490
- * data: {
1491
- * // ... provide data here
1492
- * }
1493
- * })
1494
- *
1495
- */
1496
- updateMany<T extends KnowledgeBaseUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1497
-
1498
- /**
1499
- * Update zero or more KnowledgeBases and returns the data updated in the database.
1500
- * @param {KnowledgeBaseUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBases.
1501
- * @example
1502
- * // Update many KnowledgeBases
1503
- * const knowledgeBase = await prisma.knowledgeBase.updateManyAndReturn({
1504
- * where: {
1505
- * // ... provide filter here
1506
- * },
1507
- * data: [
1508
- * // ... provide data here
1509
- * ]
1510
- * })
1511
- *
1512
- * // Update zero or more KnowledgeBases and only return the `id`
1513
- * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.updateManyAndReturn({
1514
- * select: { id: true },
1515
- * where: {
1516
- * // ... provide filter here
1517
- * },
1518
- * data: [
1519
- * // ... provide data here
1520
- * ]
1521
- * })
1522
- * Note, that providing `undefined` is treated as the value not being there.
1523
- * Read more here: https://pris.ly/d/null-undefined
1524
- *
1525
- */
1526
- updateManyAndReturn<T extends KnowledgeBaseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1527
-
1528
- /**
1529
- * Create or update one KnowledgeBase.
1530
- * @param {KnowledgeBaseUpsertArgs} args - Arguments to update or create a KnowledgeBase.
1531
- * @example
1532
- * // Update or create a KnowledgeBase
1533
- * const knowledgeBase = await prisma.knowledgeBase.upsert({
1534
- * create: {
1535
- * // ... data to create a KnowledgeBase
1536
- * },
1537
- * update: {
1538
- * // ... in case it already exists, update
1539
- * },
1540
- * where: {
1541
- * // ... the filter for the KnowledgeBase we want to update
1542
- * }
1543
- * })
1544
- */
1545
- upsert<T extends KnowledgeBaseUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1546
-
1547
-
1548
- /**
1549
- * Count the number of KnowledgeBases.
1550
- * Note, that providing `undefined` is treated as the value not being there.
1551
- * Read more here: https://pris.ly/d/null-undefined
1552
- * @param {KnowledgeBaseCountArgs} args - Arguments to filter KnowledgeBases to count.
1553
- * @example
1554
- * // Count the number of KnowledgeBases
1555
- * const count = await prisma.knowledgeBase.count({
1556
- * where: {
1557
- * // ... the filter for the KnowledgeBases we want to count
1558
- * }
1559
- * })
1560
- **/
1561
- count<T extends KnowledgeBaseCountArgs>(
1562
- args?: Prisma.Subset<T, KnowledgeBaseCountArgs>,
1563
- ): Prisma.PrismaPromise<
1564
- T extends runtime.Types.Utils.Record<'select', any>
1565
- ? T['select'] extends true
1566
- ? number
1567
- : Prisma.GetScalarType<T['select'], KnowledgeBaseCountAggregateOutputType>
1568
- : number
1569
- >
1570
-
1571
- /**
1572
- * Allows you to perform aggregations operations on a KnowledgeBase.
1573
- * Note, that providing `undefined` is treated as the value not being there.
1574
- * Read more here: https://pris.ly/d/null-undefined
1575
- * @param {KnowledgeBaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1576
- * @example
1577
- * // Ordered by age ascending
1578
- * // Where email contains prisma.io
1579
- * // Limited to the 10 users
1580
- * const aggregations = await prisma.user.aggregate({
1581
- * _avg: {
1582
- * age: true,
1583
- * },
1584
- * where: {
1585
- * email: {
1586
- * contains: "prisma.io",
1587
- * },
1588
- * },
1589
- * orderBy: {
1590
- * age: "asc",
1591
- * },
1592
- * take: 10,
1593
- * })
1594
- **/
1595
- aggregate<T extends KnowledgeBaseAggregateArgs>(args: Prisma.Subset<T, KnowledgeBaseAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseAggregateType<T>>
1596
-
1597
- /**
1598
- * Group by KnowledgeBase.
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 {KnowledgeBaseGroupByArgs} args - Group by arguments.
1602
- * @example
1603
- * // Group by city, order by createdAt, get count
1604
- * const result = await prisma.user.groupBy({
1605
- * by: ['city', 'createdAt'],
1606
- * orderBy: {
1607
- * createdAt: true
1608
- * },
1609
- * _count: {
1610
- * _all: true
1611
- * },
1612
- * })
1613
- *
1614
- **/
1615
- groupBy<
1616
- T extends KnowledgeBaseGroupByArgs,
1617
- HasSelectOrTake extends Prisma.Or<
1618
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1619
- Prisma.Extends<'take', Prisma.Keys<T>>
1620
- >,
1621
- OrderByArg extends Prisma.True extends HasSelectOrTake
1622
- ? { orderBy: KnowledgeBaseGroupByArgs['orderBy'] }
1623
- : { orderBy?: KnowledgeBaseGroupByArgs['orderBy'] },
1624
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1625
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1626
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1627
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1628
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1629
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1630
- InputErrors extends ByEmpty extends Prisma.True
1631
- ? `Error: "by" must not be empty.`
1632
- : HavingValid extends Prisma.False
1633
- ? {
1634
- [P in HavingFields]: P extends ByFields
1635
- ? never
1636
- : P extends string
1637
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1638
- : [
1639
- Error,
1640
- 'Field ',
1641
- P,
1642
- ` in "having" needs to be provided in "by"`,
1643
- ]
1644
- }[HavingFields]
1645
- : 'take' extends Prisma.Keys<T>
1646
- ? 'orderBy' extends Prisma.Keys<T>
1647
- ? ByValid extends Prisma.True
1648
- ? {}
1649
- : {
1650
- [P in OrderFields]: P extends ByFields
1651
- ? never
1652
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1653
- }[OrderFields]
1654
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1655
- : 'skip' extends Prisma.Keys<T>
1656
- ? 'orderBy' extends Prisma.Keys<T>
1657
- ? ByValid extends Prisma.True
1658
- ? {}
1659
- : {
1660
- [P in OrderFields]: P extends ByFields
1661
- ? never
1662
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1663
- }[OrderFields]
1664
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1665
- : ByValid extends Prisma.True
1666
- ? {}
1667
- : {
1668
- [P in OrderFields]: P extends ByFields
1669
- ? never
1670
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1671
- }[OrderFields]
1672
- >(args: Prisma.SubsetIntersection<T, KnowledgeBaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1673
- /**
1674
- * Fields of the KnowledgeBase model
1675
- */
1676
- readonly fields: KnowledgeBaseFieldRefs;
1677
- }
1678
-
1679
- /**
1680
- * The delegate class that acts as a "Promise-like" for KnowledgeBase.
1681
- * Why is this prefixed with `Prisma__`?
1682
- * Because we want to prevent naming conflicts as mentioned in
1683
- * https://github.com/prisma/prisma-client-js/issues/707
1684
- */
1685
- export interface Prisma__KnowledgeBaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1686
- readonly [Symbol.toStringTag]: "PrismaPromise"
1687
- user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1688
- workspace<T extends Prisma.KnowledgeBase$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1689
- documents<T extends Prisma.KnowledgeBase$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1690
- projectLinks<T extends Prisma.KnowledgeBase$projectLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1691
- workspaceLinks<T extends Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1692
- /**
1693
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1694
- * @param onfulfilled The callback to execute when the Promise is resolved.
1695
- * @param onrejected The callback to execute when the Promise is rejected.
1696
- * @returns A Promise for the completion of which ever callback is executed.
1697
- */
1698
- 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>
1699
- /**
1700
- * Attaches a callback for only the rejection of the Promise.
1701
- * @param onrejected The callback to execute when the Promise is rejected.
1702
- * @returns A Promise for the completion of the callback.
1703
- */
1704
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1705
- /**
1706
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1707
- * resolved value cannot be modified from the callback.
1708
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1709
- * @returns A Promise for the completion of the callback.
1710
- */
1711
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1712
- }
1713
-
1714
-
1715
-
1716
-
1717
- /**
1718
- * Fields of the KnowledgeBase model
1719
- */
1720
- export interface KnowledgeBaseFieldRefs {
1721
- readonly id: Prisma.FieldRef<"KnowledgeBase", 'String'>
1722
- readonly name: Prisma.FieldRef<"KnowledgeBase", 'String'>
1723
- readonly description: Prisma.FieldRef<"KnowledgeBase", 'String'>
1724
- readonly icon: Prisma.FieldRef<"KnowledgeBase", 'String'>
1725
- readonly tags: Prisma.FieldRef<"KnowledgeBase", 'Json'>
1726
- readonly visibility: Prisma.FieldRef<"KnowledgeBase", 'String'>
1727
- readonly userId: Prisma.FieldRef<"KnowledgeBase", 'String'>
1728
- readonly workspaceId: Prisma.FieldRef<"KnowledgeBase", 'String'>
1729
- readonly pinnedToSidebar: Prisma.FieldRef<"KnowledgeBase", 'Boolean'>
1730
- readonly isDeleted: Prisma.FieldRef<"KnowledgeBase", 'Boolean'>
1731
- readonly createdAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'>
1732
- readonly updatedAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'>
1733
- }
1734
-
1735
-
1736
- // Custom InputTypes
1737
- /**
1738
- * KnowledgeBase findUnique
1739
- */
1740
- export type KnowledgeBaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1741
- /**
1742
- * Select specific fields to fetch from the KnowledgeBase
1743
- */
1744
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1745
- /**
1746
- * Omit specific fields from the KnowledgeBase
1747
- */
1748
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1749
- /**
1750
- * Choose, which related nodes to fetch as well
1751
- */
1752
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1753
- /**
1754
- * Filter, which KnowledgeBase to fetch.
1755
- */
1756
- where: Prisma.KnowledgeBaseWhereUniqueInput
1757
- }
1758
-
1759
- /**
1760
- * KnowledgeBase findUniqueOrThrow
1761
- */
1762
- export type KnowledgeBaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1763
- /**
1764
- * Select specific fields to fetch from the KnowledgeBase
1765
- */
1766
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1767
- /**
1768
- * Omit specific fields from the KnowledgeBase
1769
- */
1770
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1771
- /**
1772
- * Choose, which related nodes to fetch as well
1773
- */
1774
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1775
- /**
1776
- * Filter, which KnowledgeBase to fetch.
1777
- */
1778
- where: Prisma.KnowledgeBaseWhereUniqueInput
1779
- }
1780
-
1781
- /**
1782
- * KnowledgeBase findFirst
1783
- */
1784
- export type KnowledgeBaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1785
- /**
1786
- * Select specific fields to fetch from the KnowledgeBase
1787
- */
1788
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1789
- /**
1790
- * Omit specific fields from the KnowledgeBase
1791
- */
1792
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1793
- /**
1794
- * Choose, which related nodes to fetch as well
1795
- */
1796
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1797
- /**
1798
- * Filter, which KnowledgeBase to fetch.
1799
- */
1800
- where?: Prisma.KnowledgeBaseWhereInput
1801
- /**
1802
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1803
- *
1804
- * Determine the order of KnowledgeBases to fetch.
1805
- */
1806
- orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
1807
- /**
1808
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1809
- *
1810
- * Sets the position for searching for KnowledgeBases.
1811
- */
1812
- cursor?: Prisma.KnowledgeBaseWhereUniqueInput
1813
- /**
1814
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1815
- *
1816
- * Take `±n` KnowledgeBases from the position of the cursor.
1817
- */
1818
- take?: number
1819
- /**
1820
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1821
- *
1822
- * Skip the first `n` KnowledgeBases.
1823
- */
1824
- skip?: number
1825
- /**
1826
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1827
- *
1828
- * Filter by unique combinations of KnowledgeBases.
1829
- */
1830
- distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
1831
- }
1832
-
1833
- /**
1834
- * KnowledgeBase findFirstOrThrow
1835
- */
1836
- export type KnowledgeBaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1837
- /**
1838
- * Select specific fields to fetch from the KnowledgeBase
1839
- */
1840
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1841
- /**
1842
- * Omit specific fields from the KnowledgeBase
1843
- */
1844
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1845
- /**
1846
- * Choose, which related nodes to fetch as well
1847
- */
1848
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1849
- /**
1850
- * Filter, which KnowledgeBase to fetch.
1851
- */
1852
- where?: Prisma.KnowledgeBaseWhereInput
1853
- /**
1854
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1855
- *
1856
- * Determine the order of KnowledgeBases to fetch.
1857
- */
1858
- orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
1859
- /**
1860
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1861
- *
1862
- * Sets the position for searching for KnowledgeBases.
1863
- */
1864
- cursor?: Prisma.KnowledgeBaseWhereUniqueInput
1865
- /**
1866
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1867
- *
1868
- * Take `±n` KnowledgeBases from the position of the cursor.
1869
- */
1870
- take?: number
1871
- /**
1872
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1873
- *
1874
- * Skip the first `n` KnowledgeBases.
1875
- */
1876
- skip?: number
1877
- /**
1878
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1879
- *
1880
- * Filter by unique combinations of KnowledgeBases.
1881
- */
1882
- distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
1883
- }
1884
-
1885
- /**
1886
- * KnowledgeBase findMany
1887
- */
1888
- export type KnowledgeBaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1889
- /**
1890
- * Select specific fields to fetch from the KnowledgeBase
1891
- */
1892
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1893
- /**
1894
- * Omit specific fields from the KnowledgeBase
1895
- */
1896
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1897
- /**
1898
- * Choose, which related nodes to fetch as well
1899
- */
1900
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1901
- /**
1902
- * Filter, which KnowledgeBases to fetch.
1903
- */
1904
- where?: Prisma.KnowledgeBaseWhereInput
1905
- /**
1906
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1907
- *
1908
- * Determine the order of KnowledgeBases to fetch.
1909
- */
1910
- orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
1911
- /**
1912
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1913
- *
1914
- * Sets the position for listing KnowledgeBases.
1915
- */
1916
- cursor?: Prisma.KnowledgeBaseWhereUniqueInput
1917
- /**
1918
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1919
- *
1920
- * Take `±n` KnowledgeBases from the position of the cursor.
1921
- */
1922
- take?: number
1923
- /**
1924
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1925
- *
1926
- * Skip the first `n` KnowledgeBases.
1927
- */
1928
- skip?: number
1929
- /**
1930
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1931
- *
1932
- * Filter by unique combinations of KnowledgeBases.
1933
- */
1934
- distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
1935
- }
1936
-
1937
- /**
1938
- * KnowledgeBase create
1939
- */
1940
- export type KnowledgeBaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1941
- /**
1942
- * Select specific fields to fetch from the KnowledgeBase
1943
- */
1944
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1945
- /**
1946
- * Omit specific fields from the KnowledgeBase
1947
- */
1948
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1949
- /**
1950
- * Choose, which related nodes to fetch as well
1951
- */
1952
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
1953
- /**
1954
- * The data needed to create a KnowledgeBase.
1955
- */
1956
- data: Prisma.XOR<Prisma.KnowledgeBaseCreateInput, Prisma.KnowledgeBaseUncheckedCreateInput>
1957
- }
1958
-
1959
- /**
1960
- * KnowledgeBase createMany
1961
- */
1962
- export type KnowledgeBaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1963
- /**
1964
- * The data used to create many KnowledgeBases.
1965
- */
1966
- data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[]
1967
- }
1968
-
1969
- /**
1970
- * KnowledgeBase createManyAndReturn
1971
- */
1972
- export type KnowledgeBaseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1973
- /**
1974
- * Select specific fields to fetch from the KnowledgeBase
1975
- */
1976
- select?: Prisma.KnowledgeBaseSelectCreateManyAndReturn<ExtArgs> | null
1977
- /**
1978
- * Omit specific fields from the KnowledgeBase
1979
- */
1980
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
1981
- /**
1982
- * The data used to create many KnowledgeBases.
1983
- */
1984
- data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[]
1985
- /**
1986
- * Choose, which related nodes to fetch as well
1987
- */
1988
- include?: Prisma.KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs> | null
1989
- }
1990
-
1991
- /**
1992
- * KnowledgeBase update
1993
- */
1994
- export type KnowledgeBaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1995
- /**
1996
- * Select specific fields to fetch from the KnowledgeBase
1997
- */
1998
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
1999
- /**
2000
- * Omit specific fields from the KnowledgeBase
2001
- */
2002
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2003
- /**
2004
- * Choose, which related nodes to fetch as well
2005
- */
2006
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
2007
- /**
2008
- * The data needed to update a KnowledgeBase.
2009
- */
2010
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateInput, Prisma.KnowledgeBaseUncheckedUpdateInput>
2011
- /**
2012
- * Choose, which KnowledgeBase to update.
2013
- */
2014
- where: Prisma.KnowledgeBaseWhereUniqueInput
2015
- }
2016
-
2017
- /**
2018
- * KnowledgeBase updateMany
2019
- */
2020
- export type KnowledgeBaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2021
- /**
2022
- * The data used to update KnowledgeBases.
2023
- */
2024
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyInput>
2025
- /**
2026
- * Filter which KnowledgeBases to update
2027
- */
2028
- where?: Prisma.KnowledgeBaseWhereInput
2029
- /**
2030
- * Limit how many KnowledgeBases to update.
2031
- */
2032
- limit?: number
2033
- }
2034
-
2035
- /**
2036
- * KnowledgeBase updateManyAndReturn
2037
- */
2038
- export type KnowledgeBaseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2039
- /**
2040
- * Select specific fields to fetch from the KnowledgeBase
2041
- */
2042
- select?: Prisma.KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs> | null
2043
- /**
2044
- * Omit specific fields from the KnowledgeBase
2045
- */
2046
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2047
- /**
2048
- * The data used to update KnowledgeBases.
2049
- */
2050
- data: Prisma.XOR<Prisma.KnowledgeBaseUpdateManyMutationInput, Prisma.KnowledgeBaseUncheckedUpdateManyInput>
2051
- /**
2052
- * Filter which KnowledgeBases to update
2053
- */
2054
- where?: Prisma.KnowledgeBaseWhereInput
2055
- /**
2056
- * Limit how many KnowledgeBases to update.
2057
- */
2058
- limit?: number
2059
- /**
2060
- * Choose, which related nodes to fetch as well
2061
- */
2062
- include?: Prisma.KnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs> | null
2063
- }
2064
-
2065
- /**
2066
- * KnowledgeBase upsert
2067
- */
2068
- export type KnowledgeBaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2069
- /**
2070
- * Select specific fields to fetch from the KnowledgeBase
2071
- */
2072
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
2073
- /**
2074
- * Omit specific fields from the KnowledgeBase
2075
- */
2076
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2077
- /**
2078
- * Choose, which related nodes to fetch as well
2079
- */
2080
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
2081
- /**
2082
- * The filter to search for the KnowledgeBase to update in case it exists.
2083
- */
2084
- where: Prisma.KnowledgeBaseWhereUniqueInput
2085
- /**
2086
- * In case the KnowledgeBase found by the `where` argument doesn't exist, create a new KnowledgeBase with this data.
2087
- */
2088
- create: Prisma.XOR<Prisma.KnowledgeBaseCreateInput, Prisma.KnowledgeBaseUncheckedCreateInput>
2089
- /**
2090
- * In case the KnowledgeBase was found with the provided `where` argument, update it with this data.
2091
- */
2092
- update: Prisma.XOR<Prisma.KnowledgeBaseUpdateInput, Prisma.KnowledgeBaseUncheckedUpdateInput>
2093
- }
2094
-
2095
- /**
2096
- * KnowledgeBase delete
2097
- */
2098
- export type KnowledgeBaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
- /**
2100
- * Select specific fields to fetch from the KnowledgeBase
2101
- */
2102
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
2103
- /**
2104
- * Omit specific fields from the KnowledgeBase
2105
- */
2106
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2107
- /**
2108
- * Choose, which related nodes to fetch as well
2109
- */
2110
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
2111
- /**
2112
- * Filter which KnowledgeBase to delete.
2113
- */
2114
- where: Prisma.KnowledgeBaseWhereUniqueInput
2115
- }
2116
-
2117
- /**
2118
- * KnowledgeBase deleteMany
2119
- */
2120
- export type KnowledgeBaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2121
- /**
2122
- * Filter which KnowledgeBases to delete
2123
- */
2124
- where?: Prisma.KnowledgeBaseWhereInput
2125
- /**
2126
- * Limit how many KnowledgeBases to delete.
2127
- */
2128
- limit?: number
2129
- }
2130
-
2131
- /**
2132
- * KnowledgeBase.workspace
2133
- */
2134
- export type KnowledgeBase$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2135
- /**
2136
- * Select specific fields to fetch from the Workspace
2137
- */
2138
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
2139
- /**
2140
- * Omit specific fields from the Workspace
2141
- */
2142
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2143
- /**
2144
- * Choose, which related nodes to fetch as well
2145
- */
2146
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2147
- where?: Prisma.WorkspaceWhereInput
2148
- }
2149
-
2150
- /**
2151
- * KnowledgeBase.documents
2152
- */
2153
- export type KnowledgeBase$documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2154
- /**
2155
- * Select specific fields to fetch from the KnowledgeDocument
2156
- */
2157
- select?: Prisma.KnowledgeDocumentSelect<ExtArgs> | null
2158
- /**
2159
- * Omit specific fields from the KnowledgeDocument
2160
- */
2161
- omit?: Prisma.KnowledgeDocumentOmit<ExtArgs> | null
2162
- /**
2163
- * Choose, which related nodes to fetch as well
2164
- */
2165
- include?: Prisma.KnowledgeDocumentInclude<ExtArgs> | null
2166
- where?: Prisma.KnowledgeDocumentWhereInput
2167
- orderBy?: Prisma.KnowledgeDocumentOrderByWithRelationInput | Prisma.KnowledgeDocumentOrderByWithRelationInput[]
2168
- cursor?: Prisma.KnowledgeDocumentWhereUniqueInput
2169
- take?: number
2170
- skip?: number
2171
- distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2172
- }
2173
-
2174
- /**
2175
- * KnowledgeBase.projectLinks
2176
- */
2177
- export type KnowledgeBase$projectLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2178
- /**
2179
- * Select specific fields to fetch from the ProjectKnowledgeBase
2180
- */
2181
- select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
2182
- /**
2183
- * Omit specific fields from the ProjectKnowledgeBase
2184
- */
2185
- omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
2186
- /**
2187
- * Choose, which related nodes to fetch as well
2188
- */
2189
- include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
2190
- where?: Prisma.ProjectKnowledgeBaseWhereInput
2191
- orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
2192
- cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
2193
- take?: number
2194
- skip?: number
2195
- distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
2196
- }
2197
-
2198
- /**
2199
- * KnowledgeBase.workspaceLinks
2200
- */
2201
- export type KnowledgeBase$workspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2202
- /**
2203
- * Select specific fields to fetch from the WorkspaceKnowledgeBase
2204
- */
2205
- select?: Prisma.WorkspaceKnowledgeBaseSelect<ExtArgs> | null
2206
- /**
2207
- * Omit specific fields from the WorkspaceKnowledgeBase
2208
- */
2209
- omit?: Prisma.WorkspaceKnowledgeBaseOmit<ExtArgs> | null
2210
- /**
2211
- * Choose, which related nodes to fetch as well
2212
- */
2213
- include?: Prisma.WorkspaceKnowledgeBaseInclude<ExtArgs> | null
2214
- where?: Prisma.WorkspaceKnowledgeBaseWhereInput
2215
- orderBy?: Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput | Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput[]
2216
- cursor?: Prisma.WorkspaceKnowledgeBaseWhereUniqueInput
2217
- take?: number
2218
- skip?: number
2219
- distinct?: Prisma.WorkspaceKnowledgeBaseScalarFieldEnum | Prisma.WorkspaceKnowledgeBaseScalarFieldEnum[]
2220
- }
2221
-
2222
- /**
2223
- * KnowledgeBase without action
2224
- */
2225
- export type KnowledgeBaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2226
- /**
2227
- * Select specific fields to fetch from the KnowledgeBase
2228
- */
2229
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
2230
- /**
2231
- * Omit specific fields from the KnowledgeBase
2232
- */
2233
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2234
- /**
2235
- * Choose, which related nodes to fetch as well
2236
- */
2237
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
2238
- }