@allbluecn/database 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/desktop-init.ts +2 -2
- package/dist/get-prisma.js +1 -1
- package/dist/lib/share-utils.js +3 -3
- package/generated/browser.ts +115 -25
- package/generated/client.ts +115 -25
- package/generated/commonInputTypes.ts +34 -0
- package/generated/enums.ts +14 -0
- package/generated/internal/class.ts +234 -54
- package/generated/internal/prismaNamespace.ts +2190 -511
- package/generated/internal/prismaNamespaceBrowser.ts +391 -76
- package/generated/models/AgentConversation.ts +89 -89
- package/generated/models/AiProvider.ts +3 -3
- package/generated/models/AiStreamChunk.ts +3 -3
- package/generated/models/AnyHubMarketApp.ts +8 -8
- package/generated/models/AuditLog.ts +6 -6
- package/generated/models/BlockInstance.ts +17 -17
- package/generated/models/Bug.ts +5023 -0
- package/generated/models/BugActivity.ts +1765 -0
- package/generated/models/BugComment.ts +1853 -0
- package/generated/models/BugEvent.ts +1339 -0
- package/generated/models/BugFilterView.ts +1438 -0
- package/generated/models/BugFixRun.ts +1479 -0
- package/generated/models/BugLabel.ts +1349 -0
- package/generated/models/BugProjectSettings.ts +1403 -0
- package/generated/models/BugReproRun.ts +1582 -0
- package/generated/models/ChatPersistenceMeta.ts +3 -3
- package/generated/models/Comment.ts +99 -99
- package/generated/models/Component.ts +9 -9
- package/generated/models/ComponentInstance.ts +17 -17
- package/generated/models/CustomRole.ts +8 -8
- package/generated/models/Design.ts +2872 -0
- package/generated/models/DesignPage.ts +2402 -0
- package/generated/models/DesignTag.ts +1430 -0
- package/generated/models/DesignVersion.ts +2121 -0
- package/generated/models/DesktopSetting.ts +3 -3
- package/generated/models/Iteration.ts +148 -0
- package/generated/models/Label.ts +118 -0
- package/generated/models/LicenseKey.ts +16 -16
- package/generated/models/NotificationPreference.ts +5 -5
- package/generated/models/PageVersion.ts +49 -49
- package/generated/models/Plan.ts +5 -5
- package/generated/models/Project.ts +1970 -58
- package/generated/models/ProjectAccessToken.ts +1705 -0
- package/generated/models/ProjectWebhook.ts +1409 -0
- package/generated/models/Review.ts +118 -118
- package/generated/models/Share.ts +83 -83
- package/generated/models/ShareVersion.ts +15 -15
- package/generated/models/SsoProvider.ts +8 -8
- package/generated/models/Story.ts +973 -87
- package/generated/models/StoryDesignLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +12 -12
- package/generated/models/SystemPromptVersion.ts +6 -6
- package/generated/models/Tag.ts +49 -49
- package/generated/models/TestAutomationArtifact.ts +1790 -0
- package/generated/models/TestCase.ts +3568 -0
- package/generated/models/TestCaseFilterView.ts +1587 -0
- package/generated/models/TestCaseFolder.ts +1795 -0
- package/generated/models/TestExecRun.ts +1673 -0
- package/generated/models/TestGenerationRun.ts +1952 -0
- package/generated/models/TestPlan.ts +1950 -0
- package/generated/models/TestPlanCase.ts +1430 -0
- package/generated/models/TestRun.ts +1979 -0
- package/generated/models/TestRunCase.ts +2772 -0
- package/generated/models/ThirdPartyDependency.ts +19 -15
- package/generated/models/User.ts +12141 -2721
- package/generated/models.ts +26 -8
- package/generated-sqlite/browser.ts +8 -23
- package/generated-sqlite/client.ts +8 -23
- package/generated-sqlite/internal/class.ts +20 -50
- package/generated-sqlite/internal/prismaNamespace.ts +166 -437
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
- package/generated-sqlite/models/AgentConversation.ts +89 -89
- package/generated-sqlite/models/AiProvider.ts +3 -3
- package/generated-sqlite/models/AiStreamChunk.ts +3 -3
- package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
- package/generated-sqlite/models/BlockInstance.ts +17 -17
- package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
- package/generated-sqlite/models/Comment.ts +99 -99
- package/generated-sqlite/models/Component.ts +9 -9
- package/generated-sqlite/models/ComponentInstance.ts +17 -17
- package/generated-sqlite/models/Design.ts +2679 -0
- package/generated-sqlite/models/DesignPage.ts +2398 -0
- package/generated-sqlite/models/DesignTag.ts +1426 -0
- package/generated-sqlite/models/DesignVersion.ts +2117 -0
- package/generated-sqlite/models/DesktopSetting.ts +3 -3
- package/generated-sqlite/models/KnowledgeBase.ts +240 -1
- package/generated-sqlite/models/NotificationPreference.ts +5 -5
- package/generated-sqlite/models/PageVersion.ts +49 -49
- package/generated-sqlite/models/Review.ts +118 -118
- package/generated-sqlite/models/Share.ts +83 -83
- package/generated-sqlite/models/ShareVersion.ts +15 -15
- package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
- package/generated-sqlite/models/Tag.ts +49 -49
- package/generated-sqlite/models/User.ts +1201 -1321
- package/generated-sqlite/models/Workspace.ts +164 -0
- package/generated-sqlite/models.ts +4 -7
- package/index.ts +17 -3
- package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
- package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
- package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
- package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
- package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
- package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
- package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
- package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
- package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
- package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
- package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
- package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
- package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
- package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
- package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
- package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
- package/package.json +4 -4
- package/schema.prisma +687 -177
- package/schema.sqlite.prisma +149 -151
- package/src/lib/share-utils.ts +2 -2
- package/generated/models/Artboard.ts +0 -1811
- package/generated/models/ArtboardExport.ts +0 -1548
- package/generated/models/DesignProject.ts +0 -1643
- package/generated/models/PRD.ts +0 -2805
- package/generated/models/PRDPage.ts +0 -2402
- package/generated/models/PRDTag.ts +0 -1430
- package/generated/models/PRDVersion.ts +0 -2121
- package/generated/models/StoryPrdLink.ts +0 -1430
- package/generated-sqlite/models/Artboard.ts +0 -1808
- package/generated-sqlite/models/ArtboardExport.ts +0 -1545
- package/generated-sqlite/models/DesignProject.ts +0 -1640
- package/generated-sqlite/models/PRD.ts +0 -2616
- package/generated-sqlite/models/PRDPage.ts +0 -2398
- package/generated-sqlite/models/PRDTag.ts +0 -1426
- package/generated-sqlite/models/PRDVersion.ts +0 -2117
|
@@ -187,12 +187,12 @@ export type DesktopSettingScalarWhereWithAggregatesInput = {
|
|
|
187
187
|
|
|
188
188
|
export type DesktopSettingCreateInput = {
|
|
189
189
|
key: string
|
|
190
|
-
value
|
|
190
|
+
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
export type DesktopSettingUncheckedCreateInput = {
|
|
194
194
|
key: string
|
|
195
|
-
value
|
|
195
|
+
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export type DesktopSettingUpdateInput = {
|
|
@@ -207,7 +207,7 @@ export type DesktopSettingUncheckedUpdateInput = {
|
|
|
207
207
|
|
|
208
208
|
export type DesktopSettingCreateManyInput = {
|
|
209
209
|
key: string
|
|
210
|
-
value
|
|
210
|
+
value?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export type DesktopSettingUpdateManyMutationInput = {
|
|
@@ -31,6 +31,7 @@ export type KnowledgeBaseMinAggregateOutputType = {
|
|
|
31
31
|
icon: string | null
|
|
32
32
|
visibility: string | null
|
|
33
33
|
userId: string | null
|
|
34
|
+
workspaceId: string | null
|
|
34
35
|
pinnedToSidebar: boolean | null
|
|
35
36
|
isDeleted: boolean | null
|
|
36
37
|
createdAt: Date | null
|
|
@@ -44,6 +45,7 @@ export type KnowledgeBaseMaxAggregateOutputType = {
|
|
|
44
45
|
icon: string | null
|
|
45
46
|
visibility: string | null
|
|
46
47
|
userId: string | null
|
|
48
|
+
workspaceId: string | null
|
|
47
49
|
pinnedToSidebar: boolean | null
|
|
48
50
|
isDeleted: boolean | null
|
|
49
51
|
createdAt: Date | null
|
|
@@ -58,6 +60,7 @@ export type KnowledgeBaseCountAggregateOutputType = {
|
|
|
58
60
|
tags: number
|
|
59
61
|
visibility: number
|
|
60
62
|
userId: number
|
|
63
|
+
workspaceId: number
|
|
61
64
|
pinnedToSidebar: number
|
|
62
65
|
isDeleted: number
|
|
63
66
|
createdAt: number
|
|
@@ -73,6 +76,7 @@ export type KnowledgeBaseMinAggregateInputType = {
|
|
|
73
76
|
icon?: true
|
|
74
77
|
visibility?: true
|
|
75
78
|
userId?: true
|
|
79
|
+
workspaceId?: true
|
|
76
80
|
pinnedToSidebar?: true
|
|
77
81
|
isDeleted?: true
|
|
78
82
|
createdAt?: true
|
|
@@ -86,6 +90,7 @@ export type KnowledgeBaseMaxAggregateInputType = {
|
|
|
86
90
|
icon?: true
|
|
87
91
|
visibility?: true
|
|
88
92
|
userId?: true
|
|
93
|
+
workspaceId?: true
|
|
89
94
|
pinnedToSidebar?: true
|
|
90
95
|
isDeleted?: true
|
|
91
96
|
createdAt?: true
|
|
@@ -100,6 +105,7 @@ export type KnowledgeBaseCountAggregateInputType = {
|
|
|
100
105
|
tags?: true
|
|
101
106
|
visibility?: true
|
|
102
107
|
userId?: true
|
|
108
|
+
workspaceId?: true
|
|
103
109
|
pinnedToSidebar?: true
|
|
104
110
|
isDeleted?: true
|
|
105
111
|
createdAt?: true
|
|
@@ -187,6 +193,7 @@ export type KnowledgeBaseGroupByOutputType = {
|
|
|
187
193
|
tags: runtime.JsonValue
|
|
188
194
|
visibility: string
|
|
189
195
|
userId: string
|
|
196
|
+
workspaceId: string | null
|
|
190
197
|
pinnedToSidebar: boolean
|
|
191
198
|
isDeleted: boolean
|
|
192
199
|
createdAt: Date
|
|
@@ -222,11 +229,13 @@ export type KnowledgeBaseWhereInput = {
|
|
|
222
229
|
tags?: Prisma.JsonFilter<"KnowledgeBase">
|
|
223
230
|
visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
224
231
|
userId?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
232
|
+
workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
|
|
225
233
|
pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
226
234
|
isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
227
235
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
228
236
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
229
237
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
238
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
|
|
230
239
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
231
240
|
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
232
241
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
|
|
@@ -240,11 +249,13 @@ export type KnowledgeBaseOrderByWithRelationInput = {
|
|
|
240
249
|
tags?: Prisma.SortOrder
|
|
241
250
|
visibility?: Prisma.SortOrder
|
|
242
251
|
userId?: Prisma.SortOrder
|
|
252
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
243
253
|
pinnedToSidebar?: Prisma.SortOrder
|
|
244
254
|
isDeleted?: Prisma.SortOrder
|
|
245
255
|
createdAt?: Prisma.SortOrder
|
|
246
256
|
updatedAt?: Prisma.SortOrder
|
|
247
257
|
user?: Prisma.UserOrderByWithRelationInput
|
|
258
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput
|
|
248
259
|
documents?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
|
|
249
260
|
projectLinks?: Prisma.ProjectKnowledgeBaseOrderByRelationAggregateInput
|
|
250
261
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput
|
|
@@ -261,11 +272,13 @@ export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
|
|
|
261
272
|
tags?: Prisma.JsonFilter<"KnowledgeBase">
|
|
262
273
|
visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
263
274
|
userId?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
275
|
+
workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
|
|
264
276
|
pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
265
277
|
isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
266
278
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
267
279
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
268
280
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
281
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
|
|
269
282
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
270
283
|
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
271
284
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
|
|
@@ -279,6 +292,7 @@ export type KnowledgeBaseOrderByWithAggregationInput = {
|
|
|
279
292
|
tags?: Prisma.SortOrder
|
|
280
293
|
visibility?: Prisma.SortOrder
|
|
281
294
|
userId?: Prisma.SortOrder
|
|
295
|
+
workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
282
296
|
pinnedToSidebar?: Prisma.SortOrder
|
|
283
297
|
isDeleted?: Prisma.SortOrder
|
|
284
298
|
createdAt?: Prisma.SortOrder
|
|
@@ -299,6 +313,7 @@ export type KnowledgeBaseScalarWhereWithAggregatesInput = {
|
|
|
299
313
|
tags?: Prisma.JsonWithAggregatesFilter<"KnowledgeBase">
|
|
300
314
|
visibility?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
|
|
301
315
|
userId?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string
|
|
316
|
+
workspaceId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBase"> | string | null
|
|
302
317
|
pinnedToSidebar?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean
|
|
303
318
|
isDeleted?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean
|
|
304
319
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string
|
|
@@ -317,6 +332,7 @@ export type KnowledgeBaseCreateInput = {
|
|
|
317
332
|
createdAt?: Date | string
|
|
318
333
|
updatedAt?: Date | string
|
|
319
334
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
335
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
320
336
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
321
337
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
322
338
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
@@ -330,6 +346,7 @@ export type KnowledgeBaseUncheckedCreateInput = {
|
|
|
330
346
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
331
347
|
visibility?: string
|
|
332
348
|
userId: string
|
|
349
|
+
workspaceId?: string | null
|
|
333
350
|
pinnedToSidebar?: boolean
|
|
334
351
|
isDeleted?: boolean
|
|
335
352
|
createdAt?: Date | string
|
|
@@ -351,6 +368,7 @@ export type KnowledgeBaseUpdateInput = {
|
|
|
351
368
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
352
369
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
353
370
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
371
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
354
372
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
355
373
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
356
374
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
@@ -364,6 +382,7 @@ export type KnowledgeBaseUncheckedUpdateInput = {
|
|
|
364
382
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
365
383
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
366
384
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
385
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
367
386
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
368
387
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
369
388
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -381,6 +400,7 @@ export type KnowledgeBaseCreateManyInput = {
|
|
|
381
400
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
382
401
|
visibility?: string
|
|
383
402
|
userId: string
|
|
403
|
+
workspaceId?: string | null
|
|
384
404
|
pinnedToSidebar?: boolean
|
|
385
405
|
isDeleted?: boolean
|
|
386
406
|
createdAt?: Date | string
|
|
@@ -408,6 +428,7 @@ export type KnowledgeBaseUncheckedUpdateManyInput = {
|
|
|
408
428
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
409
429
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
410
430
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
431
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
411
432
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
412
433
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
413
434
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -432,6 +453,7 @@ export type KnowledgeBaseCountOrderByAggregateInput = {
|
|
|
432
453
|
tags?: Prisma.SortOrder
|
|
433
454
|
visibility?: Prisma.SortOrder
|
|
434
455
|
userId?: Prisma.SortOrder
|
|
456
|
+
workspaceId?: Prisma.SortOrder
|
|
435
457
|
pinnedToSidebar?: Prisma.SortOrder
|
|
436
458
|
isDeleted?: Prisma.SortOrder
|
|
437
459
|
createdAt?: Prisma.SortOrder
|
|
@@ -445,6 +467,7 @@ export type KnowledgeBaseMaxOrderByAggregateInput = {
|
|
|
445
467
|
icon?: Prisma.SortOrder
|
|
446
468
|
visibility?: Prisma.SortOrder
|
|
447
469
|
userId?: Prisma.SortOrder
|
|
470
|
+
workspaceId?: Prisma.SortOrder
|
|
448
471
|
pinnedToSidebar?: Prisma.SortOrder
|
|
449
472
|
isDeleted?: Prisma.SortOrder
|
|
450
473
|
createdAt?: Prisma.SortOrder
|
|
@@ -458,6 +481,7 @@ export type KnowledgeBaseMinOrderByAggregateInput = {
|
|
|
458
481
|
icon?: Prisma.SortOrder
|
|
459
482
|
visibility?: Prisma.SortOrder
|
|
460
483
|
userId?: Prisma.SortOrder
|
|
484
|
+
workspaceId?: Prisma.SortOrder
|
|
461
485
|
pinnedToSidebar?: Prisma.SortOrder
|
|
462
486
|
isDeleted?: Prisma.SortOrder
|
|
463
487
|
createdAt?: Prisma.SortOrder
|
|
@@ -511,6 +535,48 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutUserNestedInput = {
|
|
|
511
535
|
deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
|
|
512
536
|
}
|
|
513
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
|
+
|
|
514
580
|
export type KnowledgeBaseCreateNestedOneWithoutProjectLinksInput = {
|
|
515
581
|
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
|
|
516
582
|
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutProjectLinksInput
|
|
@@ -564,6 +630,7 @@ export type KnowledgeBaseCreateWithoutUserInput = {
|
|
|
564
630
|
isDeleted?: boolean
|
|
565
631
|
createdAt?: Date | string
|
|
566
632
|
updatedAt?: Date | string
|
|
633
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
567
634
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
568
635
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
569
636
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
@@ -576,6 +643,7 @@ export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
|
|
|
576
643
|
icon?: string
|
|
577
644
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
578
645
|
visibility?: string
|
|
646
|
+
workspaceId?: string | null
|
|
579
647
|
pinnedToSidebar?: boolean
|
|
580
648
|
isDeleted?: boolean
|
|
581
649
|
createdAt?: Date | string
|
|
@@ -621,12 +689,72 @@ export type KnowledgeBaseScalarWhereInput = {
|
|
|
621
689
|
tags?: Prisma.JsonFilter<"KnowledgeBase">
|
|
622
690
|
visibility?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
623
691
|
userId?: Prisma.StringFilter<"KnowledgeBase"> | string
|
|
692
|
+
workspaceId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null
|
|
624
693
|
pinnedToSidebar?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
625
694
|
isDeleted?: Prisma.BoolFilter<"KnowledgeBase"> | boolean
|
|
626
695
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
627
696
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
628
697
|
}
|
|
629
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
|
+
|
|
630
758
|
export type KnowledgeBaseCreateWithoutProjectLinksInput = {
|
|
631
759
|
id?: string
|
|
632
760
|
name: string
|
|
@@ -639,6 +767,7 @@ export type KnowledgeBaseCreateWithoutProjectLinksInput = {
|
|
|
639
767
|
createdAt?: Date | string
|
|
640
768
|
updatedAt?: Date | string
|
|
641
769
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
770
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
642
771
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
643
772
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
644
773
|
}
|
|
@@ -651,6 +780,7 @@ export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
|
|
|
651
780
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
652
781
|
visibility?: string
|
|
653
782
|
userId: string
|
|
783
|
+
workspaceId?: string | null
|
|
654
784
|
pinnedToSidebar?: boolean
|
|
655
785
|
isDeleted?: boolean
|
|
656
786
|
createdAt?: Date | string
|
|
@@ -687,6 +817,7 @@ export type KnowledgeBaseUpdateWithoutProjectLinksInput = {
|
|
|
687
817
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
688
818
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
689
819
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
820
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
690
821
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
691
822
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
692
823
|
}
|
|
@@ -699,6 +830,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
|
|
|
699
830
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
700
831
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
701
832
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
833
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
702
834
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
703
835
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
704
836
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -719,6 +851,7 @@ export type KnowledgeBaseCreateWithoutWorkspaceLinksInput = {
|
|
|
719
851
|
createdAt?: Date | string
|
|
720
852
|
updatedAt?: Date | string
|
|
721
853
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
854
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
722
855
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
723
856
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
724
857
|
}
|
|
@@ -731,6 +864,7 @@ export type KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput = {
|
|
|
731
864
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
732
865
|
visibility?: string
|
|
733
866
|
userId: string
|
|
867
|
+
workspaceId?: string | null
|
|
734
868
|
pinnedToSidebar?: boolean
|
|
735
869
|
isDeleted?: boolean
|
|
736
870
|
createdAt?: Date | string
|
|
@@ -767,6 +901,7 @@ export type KnowledgeBaseUpdateWithoutWorkspaceLinksInput = {
|
|
|
767
901
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
768
902
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
769
903
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
904
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
770
905
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
771
906
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
772
907
|
}
|
|
@@ -779,6 +914,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput = {
|
|
|
779
914
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
780
915
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
781
916
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
917
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
782
918
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
783
919
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
784
920
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -799,6 +935,7 @@ export type KnowledgeBaseCreateWithoutDocumentsInput = {
|
|
|
799
935
|
createdAt?: Date | string
|
|
800
936
|
updatedAt?: Date | string
|
|
801
937
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
938
|
+
workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
|
|
802
939
|
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
803
940
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
804
941
|
}
|
|
@@ -811,6 +948,7 @@ export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
|
|
|
811
948
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
812
949
|
visibility?: string
|
|
813
950
|
userId: string
|
|
951
|
+
workspaceId?: string | null
|
|
814
952
|
pinnedToSidebar?: boolean
|
|
815
953
|
isDeleted?: boolean
|
|
816
954
|
createdAt?: Date | string
|
|
@@ -847,6 +985,7 @@ export type KnowledgeBaseUpdateWithoutDocumentsInput = {
|
|
|
847
985
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
848
986
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
849
987
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
988
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
850
989
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
851
990
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
852
991
|
}
|
|
@@ -859,6 +998,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
|
|
|
859
998
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
860
999
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
861
1000
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1001
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
862
1002
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
863
1003
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
864
1004
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -874,6 +1014,7 @@ export type KnowledgeBaseCreateManyUserInput = {
|
|
|
874
1014
|
icon?: string
|
|
875
1015
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
876
1016
|
visibility?: string
|
|
1017
|
+
workspaceId?: string | null
|
|
877
1018
|
pinnedToSidebar?: boolean
|
|
878
1019
|
isDeleted?: boolean
|
|
879
1020
|
createdAt?: Date | string
|
|
@@ -891,6 +1032,7 @@ export type KnowledgeBaseUpdateWithoutUserInput = {
|
|
|
891
1032
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
892
1033
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
893
1034
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1035
|
+
workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
|
|
894
1036
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
895
1037
|
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
896
1038
|
workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
@@ -903,6 +1045,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
|
|
|
903
1045
|
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
904
1046
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
905
1047
|
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1048
|
+
workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
906
1049
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
907
1050
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
908
1051
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -919,6 +1062,69 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
|
|
|
919
1062
|
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
920
1063
|
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
921
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
|
|
922
1128
|
pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
923
1129
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
924
1130
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -982,11 +1188,13 @@ export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
982
1188
|
tags?: boolean
|
|
983
1189
|
visibility?: boolean
|
|
984
1190
|
userId?: boolean
|
|
1191
|
+
workspaceId?: boolean
|
|
985
1192
|
pinnedToSidebar?: boolean
|
|
986
1193
|
isDeleted?: boolean
|
|
987
1194
|
createdAt?: boolean
|
|
988
1195
|
updatedAt?: boolean
|
|
989
1196
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1197
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
990
1198
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
991
1199
|
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
992
1200
|
workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
|
|
@@ -1001,11 +1209,13 @@ export type KnowledgeBaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types
|
|
|
1001
1209
|
tags?: boolean
|
|
1002
1210
|
visibility?: boolean
|
|
1003
1211
|
userId?: boolean
|
|
1212
|
+
workspaceId?: boolean
|
|
1004
1213
|
pinnedToSidebar?: boolean
|
|
1005
1214
|
isDeleted?: boolean
|
|
1006
1215
|
createdAt?: boolean
|
|
1007
1216
|
updatedAt?: boolean
|
|
1008
1217
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1218
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1009
1219
|
}, ExtArgs["result"]["knowledgeBase"]>
|
|
1010
1220
|
|
|
1011
1221
|
export type KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -1016,11 +1226,13 @@ export type KnowledgeBaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types
|
|
|
1016
1226
|
tags?: boolean
|
|
1017
1227
|
visibility?: boolean
|
|
1018
1228
|
userId?: boolean
|
|
1229
|
+
workspaceId?: boolean
|
|
1019
1230
|
pinnedToSidebar?: boolean
|
|
1020
1231
|
isDeleted?: boolean
|
|
1021
1232
|
createdAt?: boolean
|
|
1022
1233
|
updatedAt?: boolean
|
|
1023
1234
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1235
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1024
1236
|
}, ExtArgs["result"]["knowledgeBase"]>
|
|
1025
1237
|
|
|
1026
1238
|
export type KnowledgeBaseSelectScalar = {
|
|
@@ -1031,15 +1243,17 @@ export type KnowledgeBaseSelectScalar = {
|
|
|
1031
1243
|
tags?: boolean
|
|
1032
1244
|
visibility?: boolean
|
|
1033
1245
|
userId?: boolean
|
|
1246
|
+
workspaceId?: boolean
|
|
1034
1247
|
pinnedToSidebar?: boolean
|
|
1035
1248
|
isDeleted?: boolean
|
|
1036
1249
|
createdAt?: boolean
|
|
1037
1250
|
updatedAt?: boolean
|
|
1038
1251
|
}
|
|
1039
1252
|
|
|
1040
|
-
export type KnowledgeBaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "icon" | "tags" | "visibility" | "userId" | "pinnedToSidebar" | "isDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["knowledgeBase"]>
|
|
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"]>
|
|
1041
1254
|
export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1042
1255
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1256
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1043
1257
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
1044
1258
|
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
1045
1259
|
workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
|
|
@@ -1047,15 +1261,18 @@ export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1047
1261
|
}
|
|
1048
1262
|
export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1049
1263
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1264
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1050
1265
|
}
|
|
1051
1266
|
export type KnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1052
1267
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1268
|
+
workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
|
|
1053
1269
|
}
|
|
1054
1270
|
|
|
1055
1271
|
export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1056
1272
|
name: "KnowledgeBase"
|
|
1057
1273
|
objects: {
|
|
1058
1274
|
user: Prisma.$UserPayload<ExtArgs>
|
|
1275
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs> | null
|
|
1059
1276
|
documents: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
|
|
1060
1277
|
projectLinks: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>[]
|
|
1061
1278
|
workspaceLinks: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[]
|
|
@@ -1068,6 +1285,7 @@ export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1068
1285
|
tags: runtime.JsonValue
|
|
1069
1286
|
visibility: string
|
|
1070
1287
|
userId: string
|
|
1288
|
+
workspaceId: string | null
|
|
1071
1289
|
pinnedToSidebar: boolean
|
|
1072
1290
|
isDeleted: boolean
|
|
1073
1291
|
createdAt: Date
|
|
@@ -1467,6 +1685,7 @@ readonly fields: KnowledgeBaseFieldRefs;
|
|
|
1467
1685
|
export interface Prisma__KnowledgeBaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1468
1686
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1469
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>
|
|
1470
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>
|
|
1471
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>
|
|
1472
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>
|
|
@@ -1506,6 +1725,7 @@ export interface KnowledgeBaseFieldRefs {
|
|
|
1506
1725
|
readonly tags: Prisma.FieldRef<"KnowledgeBase", 'Json'>
|
|
1507
1726
|
readonly visibility: Prisma.FieldRef<"KnowledgeBase", 'String'>
|
|
1508
1727
|
readonly userId: Prisma.FieldRef<"KnowledgeBase", 'String'>
|
|
1728
|
+
readonly workspaceId: Prisma.FieldRef<"KnowledgeBase", 'String'>
|
|
1509
1729
|
readonly pinnedToSidebar: Prisma.FieldRef<"KnowledgeBase", 'Boolean'>
|
|
1510
1730
|
readonly isDeleted: Prisma.FieldRef<"KnowledgeBase", 'Boolean'>
|
|
1511
1731
|
readonly createdAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'>
|
|
@@ -1908,6 +2128,25 @@ export type KnowledgeBaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions
|
|
|
1908
2128
|
limit?: number
|
|
1909
2129
|
}
|
|
1910
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
|
+
|
|
1911
2150
|
/**
|
|
1912
2151
|
* KnowledgeBase.documents
|
|
1913
2152
|
*/
|