@allbluecn/database 0.12.1 → 0.12.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/LICENSE +661 -0
- package/generated/internal/class.ts +4 -4
- package/generated/internal/prismaNamespace.ts +2 -1
- package/generated/internal/prismaNamespaceBrowser.ts +2 -1
- package/generated/models/KnowledgeDocument.ts +60 -1
- package/migrations/20261101000000_sync_overlay_ext/migration.sql +284 -0
- package/migrations/20261101010000_add_kb_sync_scope/migration.sql +12 -0
- package/migrations/20261101020000_sync_overlay_kb/migration.sql +350 -0
- package/package.json +13 -24
- package/schema.prisma +6 -0
|
@@ -11846,7 +11846,8 @@ export const KnowledgeDocumentScalarFieldEnum = {
|
|
|
11846
11846
|
tags: 'tags',
|
|
11847
11847
|
properties: 'properties',
|
|
11848
11848
|
createdAt: 'createdAt',
|
|
11849
|
-
updatedAt: 'updatedAt'
|
|
11849
|
+
updatedAt: 'updatedAt',
|
|
11850
|
+
syncWorkspaceId: 'syncWorkspaceId'
|
|
11850
11851
|
} as const
|
|
11851
11852
|
|
|
11852
11853
|
export type KnowledgeDocumentScalarFieldEnum = (typeof KnowledgeDocumentScalarFieldEnum)[keyof typeof KnowledgeDocumentScalarFieldEnum]
|
|
@@ -701,7 +701,8 @@ export const KnowledgeDocumentScalarFieldEnum = {
|
|
|
701
701
|
tags: 'tags',
|
|
702
702
|
properties: 'properties',
|
|
703
703
|
createdAt: 'createdAt',
|
|
704
|
-
updatedAt: 'updatedAt'
|
|
704
|
+
updatedAt: 'updatedAt',
|
|
705
|
+
syncWorkspaceId: 'syncWorkspaceId'
|
|
705
706
|
} as const
|
|
706
707
|
|
|
707
708
|
export type KnowledgeDocumentScalarFieldEnum = (typeof KnowledgeDocumentScalarFieldEnum)[keyof typeof KnowledgeDocumentScalarFieldEnum]
|
|
@@ -47,6 +47,7 @@ export type KnowledgeDocumentMinAggregateOutputType = {
|
|
|
47
47
|
createdBy: string | null
|
|
48
48
|
createdAt: Date | null
|
|
49
49
|
updatedAt: Date | null
|
|
50
|
+
syncWorkspaceId: string | null
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export type KnowledgeDocumentMaxAggregateOutputType = {
|
|
@@ -62,6 +63,7 @@ export type KnowledgeDocumentMaxAggregateOutputType = {
|
|
|
62
63
|
createdBy: string | null
|
|
63
64
|
createdAt: Date | null
|
|
64
65
|
updatedAt: Date | null
|
|
66
|
+
syncWorkspaceId: string | null
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
export type KnowledgeDocumentCountAggregateOutputType = {
|
|
@@ -80,6 +82,7 @@ export type KnowledgeDocumentCountAggregateOutputType = {
|
|
|
80
82
|
properties: number
|
|
81
83
|
createdAt: number
|
|
82
84
|
updatedAt: number
|
|
85
|
+
syncWorkspaceId: number
|
|
83
86
|
_all: number
|
|
84
87
|
}
|
|
85
88
|
|
|
@@ -105,6 +108,7 @@ export type KnowledgeDocumentMinAggregateInputType = {
|
|
|
105
108
|
createdBy?: true
|
|
106
109
|
createdAt?: true
|
|
107
110
|
updatedAt?: true
|
|
111
|
+
syncWorkspaceId?: true
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
export type KnowledgeDocumentMaxAggregateInputType = {
|
|
@@ -120,6 +124,7 @@ export type KnowledgeDocumentMaxAggregateInputType = {
|
|
|
120
124
|
createdBy?: true
|
|
121
125
|
createdAt?: true
|
|
122
126
|
updatedAt?: true
|
|
127
|
+
syncWorkspaceId?: true
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
export type KnowledgeDocumentCountAggregateInputType = {
|
|
@@ -138,6 +143,7 @@ export type KnowledgeDocumentCountAggregateInputType = {
|
|
|
138
143
|
properties?: true
|
|
139
144
|
createdAt?: true
|
|
140
145
|
updatedAt?: true
|
|
146
|
+
syncWorkspaceId?: true
|
|
141
147
|
_all?: true
|
|
142
148
|
}
|
|
143
149
|
|
|
@@ -243,6 +249,7 @@ export type KnowledgeDocumentGroupByOutputType = {
|
|
|
243
249
|
properties: runtime.JsonValue
|
|
244
250
|
createdAt: Date
|
|
245
251
|
updatedAt: Date
|
|
252
|
+
syncWorkspaceId: string | null
|
|
246
253
|
_count: KnowledgeDocumentCountAggregateOutputType | null
|
|
247
254
|
_avg: KnowledgeDocumentAvgAggregateOutputType | null
|
|
248
255
|
_sum: KnowledgeDocumentSumAggregateOutputType | null
|
|
@@ -284,6 +291,7 @@ export type KnowledgeDocumentWhereInput = {
|
|
|
284
291
|
properties?: Prisma.JsonFilter<"KnowledgeDocument">
|
|
285
292
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
286
293
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
294
|
+
syncWorkspaceId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
|
|
287
295
|
kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
|
|
288
296
|
parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
|
|
289
297
|
children?: Prisma.KnowledgeDocumentListRelationFilter
|
|
@@ -308,6 +316,7 @@ export type KnowledgeDocumentOrderByWithRelationInput = {
|
|
|
308
316
|
properties?: Prisma.SortOrder
|
|
309
317
|
createdAt?: Prisma.SortOrder
|
|
310
318
|
updatedAt?: Prisma.SortOrder
|
|
319
|
+
syncWorkspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
311
320
|
kb?: Prisma.KnowledgeBaseOrderByWithRelationInput
|
|
312
321
|
parent?: Prisma.KnowledgeDocumentOrderByWithRelationInput
|
|
313
322
|
children?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
|
|
@@ -335,6 +344,7 @@ export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
|
|
|
335
344
|
properties?: Prisma.JsonFilter<"KnowledgeDocument">
|
|
336
345
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
337
346
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
347
|
+
syncWorkspaceId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
|
|
338
348
|
kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
|
|
339
349
|
parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
|
|
340
350
|
children?: Prisma.KnowledgeDocumentListRelationFilter
|
|
@@ -359,6 +369,7 @@ export type KnowledgeDocumentOrderByWithAggregationInput = {
|
|
|
359
369
|
properties?: Prisma.SortOrder
|
|
360
370
|
createdAt?: Prisma.SortOrder
|
|
361
371
|
updatedAt?: Prisma.SortOrder
|
|
372
|
+
syncWorkspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
362
373
|
_count?: Prisma.KnowledgeDocumentCountOrderByAggregateInput
|
|
363
374
|
_avg?: Prisma.KnowledgeDocumentAvgOrderByAggregateInput
|
|
364
375
|
_max?: Prisma.KnowledgeDocumentMaxOrderByAggregateInput
|
|
@@ -385,6 +396,7 @@ export type KnowledgeDocumentScalarWhereWithAggregatesInput = {
|
|
|
385
396
|
properties?: Prisma.JsonWithAggregatesFilter<"KnowledgeDocument">
|
|
386
397
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeDocument"> | Date | string
|
|
387
398
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeDocument"> | Date | string
|
|
399
|
+
syncWorkspaceId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeDocument"> | string | null
|
|
388
400
|
}
|
|
389
401
|
|
|
390
402
|
export type KnowledgeDocumentCreateInput = {
|
|
@@ -400,6 +412,7 @@ export type KnowledgeDocumentCreateInput = {
|
|
|
400
412
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
401
413
|
createdAt?: Date | string
|
|
402
414
|
updatedAt?: Date | string
|
|
415
|
+
syncWorkspaceId?: string | null
|
|
403
416
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
404
417
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
405
418
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
@@ -424,6 +437,7 @@ export type KnowledgeDocumentUncheckedCreateInput = {
|
|
|
424
437
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
425
438
|
createdAt?: Date | string
|
|
426
439
|
updatedAt?: Date | string
|
|
440
|
+
syncWorkspaceId?: string | null
|
|
427
441
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
428
442
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
429
443
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
@@ -442,6 +456,7 @@ export type KnowledgeDocumentUpdateInput = {
|
|
|
442
456
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
443
457
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
444
458
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
459
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
445
460
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
446
461
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
447
462
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
@@ -466,6 +481,7 @@ export type KnowledgeDocumentUncheckedUpdateInput = {
|
|
|
466
481
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
467
482
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
468
483
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
484
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
469
485
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
470
486
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
471
487
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
@@ -487,6 +503,7 @@ export type KnowledgeDocumentCreateManyInput = {
|
|
|
487
503
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
488
504
|
createdAt?: Date | string
|
|
489
505
|
updatedAt?: Date | string
|
|
506
|
+
syncWorkspaceId?: string | null
|
|
490
507
|
}
|
|
491
508
|
|
|
492
509
|
export type KnowledgeDocumentUpdateManyMutationInput = {
|
|
@@ -502,6 +519,7 @@ export type KnowledgeDocumentUpdateManyMutationInput = {
|
|
|
502
519
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
503
520
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
504
521
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
522
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
505
523
|
}
|
|
506
524
|
|
|
507
525
|
export type KnowledgeDocumentUncheckedUpdateManyInput = {
|
|
@@ -520,6 +538,7 @@ export type KnowledgeDocumentUncheckedUpdateManyInput = {
|
|
|
520
538
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
521
539
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
522
540
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
541
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
523
542
|
}
|
|
524
543
|
|
|
525
544
|
export type KnowledgeDocumentListRelationFilter = {
|
|
@@ -553,6 +572,7 @@ export type KnowledgeDocumentCountOrderByAggregateInput = {
|
|
|
553
572
|
properties?: Prisma.SortOrder
|
|
554
573
|
createdAt?: Prisma.SortOrder
|
|
555
574
|
updatedAt?: Prisma.SortOrder
|
|
575
|
+
syncWorkspaceId?: Prisma.SortOrder
|
|
556
576
|
}
|
|
557
577
|
|
|
558
578
|
export type KnowledgeDocumentAvgOrderByAggregateInput = {
|
|
@@ -572,6 +592,7 @@ export type KnowledgeDocumentMaxOrderByAggregateInput = {
|
|
|
572
592
|
createdBy?: Prisma.SortOrder
|
|
573
593
|
createdAt?: Prisma.SortOrder
|
|
574
594
|
updatedAt?: Prisma.SortOrder
|
|
595
|
+
syncWorkspaceId?: Prisma.SortOrder
|
|
575
596
|
}
|
|
576
597
|
|
|
577
598
|
export type KnowledgeDocumentMinOrderByAggregateInput = {
|
|
@@ -587,6 +608,7 @@ export type KnowledgeDocumentMinOrderByAggregateInput = {
|
|
|
587
608
|
createdBy?: Prisma.SortOrder
|
|
588
609
|
createdAt?: Prisma.SortOrder
|
|
589
610
|
updatedAt?: Prisma.SortOrder
|
|
611
|
+
syncWorkspaceId?: Prisma.SortOrder
|
|
590
612
|
}
|
|
591
613
|
|
|
592
614
|
export type KnowledgeDocumentSumOrderByAggregateInput = {
|
|
@@ -783,6 +805,7 @@ export type KnowledgeDocumentCreateWithoutCreatorInput = {
|
|
|
783
805
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
784
806
|
createdAt?: Date | string
|
|
785
807
|
updatedAt?: Date | string
|
|
808
|
+
syncWorkspaceId?: string | null
|
|
786
809
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
787
810
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
788
811
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
@@ -805,6 +828,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
|
|
|
805
828
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
806
829
|
createdAt?: Date | string
|
|
807
830
|
updatedAt?: Date | string
|
|
831
|
+
syncWorkspaceId?: string | null
|
|
808
832
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
809
833
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
810
834
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
@@ -855,6 +879,7 @@ export type KnowledgeDocumentScalarWhereInput = {
|
|
|
855
879
|
properties?: Prisma.JsonFilter<"KnowledgeDocument">
|
|
856
880
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
857
881
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeDocument"> | Date | string
|
|
882
|
+
syncWorkspaceId?: Prisma.StringNullableFilter<"KnowledgeDocument"> | string | null
|
|
858
883
|
}
|
|
859
884
|
|
|
860
885
|
export type KnowledgeDocumentCreateWithoutKbInput = {
|
|
@@ -870,6 +895,7 @@ export type KnowledgeDocumentCreateWithoutKbInput = {
|
|
|
870
895
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
871
896
|
createdAt?: Date | string
|
|
872
897
|
updatedAt?: Date | string
|
|
898
|
+
syncWorkspaceId?: string | null
|
|
873
899
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
874
900
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
875
901
|
creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
|
|
@@ -892,6 +918,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
|
|
|
892
918
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
893
919
|
createdAt?: Date | string
|
|
894
920
|
updatedAt?: Date | string
|
|
921
|
+
syncWorkspaceId?: string | null
|
|
895
922
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
896
923
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
897
924
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
@@ -936,6 +963,7 @@ export type KnowledgeDocumentCreateWithoutChildrenInput = {
|
|
|
936
963
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
937
964
|
createdAt?: Date | string
|
|
938
965
|
updatedAt?: Date | string
|
|
966
|
+
syncWorkspaceId?: string | null
|
|
939
967
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
940
968
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
941
969
|
creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
|
|
@@ -959,6 +987,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
|
|
|
959
987
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
960
988
|
createdAt?: Date | string
|
|
961
989
|
updatedAt?: Date | string
|
|
990
|
+
syncWorkspaceId?: string | null
|
|
962
991
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
963
992
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
964
993
|
}
|
|
@@ -981,6 +1010,7 @@ export type KnowledgeDocumentCreateWithoutParentInput = {
|
|
|
981
1010
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
982
1011
|
createdAt?: Date | string
|
|
983
1012
|
updatedAt?: Date | string
|
|
1013
|
+
syncWorkspaceId?: string | null
|
|
984
1014
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
985
1015
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
986
1016
|
creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
|
|
@@ -1003,6 +1033,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
|
|
|
1003
1033
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1004
1034
|
createdAt?: Date | string
|
|
1005
1035
|
updatedAt?: Date | string
|
|
1036
|
+
syncWorkspaceId?: string | null
|
|
1006
1037
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
1007
1038
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
1008
1039
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
@@ -1042,6 +1073,7 @@ export type KnowledgeDocumentUpdateWithoutChildrenInput = {
|
|
|
1042
1073
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1043
1074
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1044
1075
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1076
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1045
1077
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
1046
1078
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
1047
1079
|
creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
|
|
@@ -1065,6 +1097,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
|
|
|
1065
1097
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1066
1098
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1067
1099
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1100
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1068
1101
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
1069
1102
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
1070
1103
|
}
|
|
@@ -1098,6 +1131,7 @@ export type KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput = {
|
|
|
1098
1131
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1099
1132
|
createdAt?: Date | string
|
|
1100
1133
|
updatedAt?: Date | string
|
|
1134
|
+
syncWorkspaceId?: string | null
|
|
1101
1135
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
1102
1136
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
1103
1137
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
@@ -1121,6 +1155,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput = {
|
|
|
1121
1155
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1122
1156
|
createdAt?: Date | string
|
|
1123
1157
|
updatedAt?: Date | string
|
|
1158
|
+
syncWorkspaceId?: string | null
|
|
1124
1159
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
1125
1160
|
linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
|
|
1126
1161
|
}
|
|
@@ -1154,6 +1189,7 @@ export type KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput = {
|
|
|
1154
1189
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1155
1190
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1156
1191
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1192
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1157
1193
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
1158
1194
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
1159
1195
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
@@ -1177,6 +1213,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput = {
|
|
|
1177
1213
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1178
1214
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1179
1215
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1216
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1180
1217
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
1181
1218
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
1182
1219
|
}
|
|
@@ -1194,6 +1231,7 @@ export type KnowledgeDocumentCreateWithoutLinkedStoriesInput = {
|
|
|
1194
1231
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1195
1232
|
createdAt?: Date | string
|
|
1196
1233
|
updatedAt?: Date | string
|
|
1234
|
+
syncWorkspaceId?: string | null
|
|
1197
1235
|
kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
|
|
1198
1236
|
parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
|
|
1199
1237
|
children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
|
|
@@ -1217,6 +1255,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput = {
|
|
|
1217
1255
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1218
1256
|
createdAt?: Date | string
|
|
1219
1257
|
updatedAt?: Date | string
|
|
1258
|
+
syncWorkspaceId?: string | null
|
|
1220
1259
|
children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
|
|
1221
1260
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
|
|
1222
1261
|
}
|
|
@@ -1250,6 +1289,7 @@ export type KnowledgeDocumentUpdateWithoutLinkedStoriesInput = {
|
|
|
1250
1289
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1251
1290
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1252
1291
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1292
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1253
1293
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
1254
1294
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
1255
1295
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
@@ -1273,6 +1313,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput = {
|
|
|
1273
1313
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1274
1314
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1275
1315
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1316
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1276
1317
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
1277
1318
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
1278
1319
|
}
|
|
@@ -1292,6 +1333,7 @@ export type KnowledgeDocumentCreateManyCreatorInput = {
|
|
|
1292
1333
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1293
1334
|
createdAt?: Date | string
|
|
1294
1335
|
updatedAt?: Date | string
|
|
1336
|
+
syncWorkspaceId?: string | null
|
|
1295
1337
|
}
|
|
1296
1338
|
|
|
1297
1339
|
export type KnowledgeDocumentUpdateWithoutCreatorInput = {
|
|
@@ -1307,6 +1349,7 @@ export type KnowledgeDocumentUpdateWithoutCreatorInput = {
|
|
|
1307
1349
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1308
1350
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1309
1351
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1352
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1310
1353
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
1311
1354
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
1312
1355
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
@@ -1329,6 +1372,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
|
|
|
1329
1372
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1330
1373
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1331
1374
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1375
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1332
1376
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
1333
1377
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
1334
1378
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
@@ -1349,6 +1393,7 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput = {
|
|
|
1349
1393
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1350
1394
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1351
1395
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1396
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1352
1397
|
}
|
|
1353
1398
|
|
|
1354
1399
|
export type KnowledgeDocumentCreateManyKbInput = {
|
|
@@ -1366,6 +1411,7 @@ export type KnowledgeDocumentCreateManyKbInput = {
|
|
|
1366
1411
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1367
1412
|
createdAt?: Date | string
|
|
1368
1413
|
updatedAt?: Date | string
|
|
1414
|
+
syncWorkspaceId?: string | null
|
|
1369
1415
|
}
|
|
1370
1416
|
|
|
1371
1417
|
export type KnowledgeDocumentUpdateWithoutKbInput = {
|
|
@@ -1381,6 +1427,7 @@ export type KnowledgeDocumentUpdateWithoutKbInput = {
|
|
|
1381
1427
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1382
1428
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1383
1429
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1430
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1384
1431
|
parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
|
|
1385
1432
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
1386
1433
|
creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
|
|
@@ -1403,6 +1450,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
|
|
|
1403
1450
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1404
1451
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1405
1452
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1453
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1406
1454
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
1407
1455
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
1408
1456
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
@@ -1423,6 +1471,7 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutKbInput = {
|
|
|
1423
1471
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1424
1472
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1425
1473
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1474
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1426
1475
|
}
|
|
1427
1476
|
|
|
1428
1477
|
export type KnowledgeDocumentCreateManyParentInput = {
|
|
@@ -1440,6 +1489,7 @@ export type KnowledgeDocumentCreateManyParentInput = {
|
|
|
1440
1489
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1441
1490
|
createdAt?: Date | string
|
|
1442
1491
|
updatedAt?: Date | string
|
|
1492
|
+
syncWorkspaceId?: string | null
|
|
1443
1493
|
}
|
|
1444
1494
|
|
|
1445
1495
|
export type KnowledgeDocumentUpdateWithoutParentInput = {
|
|
@@ -1455,6 +1505,7 @@ export type KnowledgeDocumentUpdateWithoutParentInput = {
|
|
|
1455
1505
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1456
1506
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1457
1507
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1508
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1458
1509
|
kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
|
|
1459
1510
|
children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
|
|
1460
1511
|
creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
|
|
@@ -1477,6 +1528,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
|
|
|
1477
1528
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1478
1529
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1479
1530
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1531
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1480
1532
|
children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
|
|
1481
1533
|
linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
|
|
1482
1534
|
workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
|
|
@@ -1497,6 +1549,7 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
|
|
|
1497
1549
|
properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
1498
1550
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1499
1551
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1552
|
+
syncWorkspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1500
1553
|
}
|
|
1501
1554
|
|
|
1502
1555
|
|
|
@@ -1564,6 +1617,7 @@ export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
1564
1617
|
properties?: boolean
|
|
1565
1618
|
createdAt?: boolean
|
|
1566
1619
|
updatedAt?: boolean
|
|
1620
|
+
syncWorkspaceId?: boolean
|
|
1567
1621
|
kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
|
|
1568
1622
|
parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
|
|
1569
1623
|
children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
|
|
@@ -1589,6 +1643,7 @@ export type KnowledgeDocumentSelectCreateManyAndReturn<ExtArgs extends runtime.T
|
|
|
1589
1643
|
properties?: boolean
|
|
1590
1644
|
createdAt?: boolean
|
|
1591
1645
|
updatedAt?: boolean
|
|
1646
|
+
syncWorkspaceId?: boolean
|
|
1592
1647
|
kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
|
|
1593
1648
|
parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
|
|
1594
1649
|
creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
@@ -1610,6 +1665,7 @@ export type KnowledgeDocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.T
|
|
|
1610
1665
|
properties?: boolean
|
|
1611
1666
|
createdAt?: boolean
|
|
1612
1667
|
updatedAt?: boolean
|
|
1668
|
+
syncWorkspaceId?: boolean
|
|
1613
1669
|
kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
|
|
1614
1670
|
parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
|
|
1615
1671
|
creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
@@ -1631,9 +1687,10 @@ export type KnowledgeDocumentSelectScalar = {
|
|
|
1631
1687
|
properties?: boolean
|
|
1632
1688
|
createdAt?: boolean
|
|
1633
1689
|
updatedAt?: boolean
|
|
1690
|
+
syncWorkspaceId?: boolean
|
|
1634
1691
|
}
|
|
1635
1692
|
|
|
1636
|
-
export type KnowledgeDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "kbId" | "parentId" | "title" | "type" | "content" | "icon" | "isHomepage" | "sortOrder" | "isDeleted" | "createdBy" | "tags" | "properties" | "createdAt" | "updatedAt", ExtArgs["result"]["knowledgeDocument"]>
|
|
1693
|
+
export type KnowledgeDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "kbId" | "parentId" | "title" | "type" | "content" | "icon" | "isHomepage" | "sortOrder" | "isDeleted" | "createdBy" | "tags" | "properties" | "createdAt" | "updatedAt" | "syncWorkspaceId", ExtArgs["result"]["knowledgeDocument"]>
|
|
1637
1694
|
export type KnowledgeDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1638
1695
|
kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
|
|
1639
1696
|
parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
|
|
@@ -1680,6 +1737,7 @@ export type $KnowledgeDocumentPayload<ExtArgs extends runtime.Types.Extensions.I
|
|
|
1680
1737
|
properties: runtime.JsonValue
|
|
1681
1738
|
createdAt: Date
|
|
1682
1739
|
updatedAt: Date
|
|
1740
|
+
syncWorkspaceId: string | null
|
|
1683
1741
|
}, ExtArgs["result"]["knowledgeDocument"]>
|
|
1684
1742
|
composites: {}
|
|
1685
1743
|
}
|
|
@@ -2124,6 +2182,7 @@ export interface KnowledgeDocumentFieldRefs {
|
|
|
2124
2182
|
readonly properties: Prisma.FieldRef<"KnowledgeDocument", 'Json'>
|
|
2125
2183
|
readonly createdAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
|
|
2126
2184
|
readonly updatedAt: Prisma.FieldRef<"KnowledgeDocument", 'DateTime'>
|
|
2185
|
+
readonly syncWorkspaceId: Prisma.FieldRef<"KnowledgeDocument", 'String'>
|
|
2127
2186
|
}
|
|
2128
2187
|
|
|
2129
2188
|
|