@allbluecn/database 0.5.0 → 0.8.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 (49) hide show
  1. package/generated/browser.ts +35 -0
  2. package/generated/client.ts +35 -0
  3. package/generated/internal/class.ts +74 -4
  4. package/generated/internal/prismaNamespace.ts +634 -2
  5. package/generated/internal/prismaNamespaceBrowser.ts +108 -1
  6. package/generated/models/EmailLog.ts +1345 -0
  7. package/generated/models/EmailPreference.ts +1257 -0
  8. package/generated/models/EmailSubscriber.ts +1233 -0
  9. package/generated/models/EmailVerificationToken.ts +1380 -0
  10. package/generated/models/InvitationCode.ts +65 -1
  11. package/generated/models/KnowledgeBase.ts +158 -0
  12. package/generated/models/KnowledgeDocument.ts +176 -0
  13. package/generated/models/NotificationPreference.ts +27 -1
  14. package/generated/models/OAuthProviderConfig.ts +1227 -0
  15. package/generated/models/User.ts +2405 -493
  16. package/generated/models/Workspace.ts +380 -0
  17. package/generated/models/WorkspaceKnowledgeBase.ts +1430 -0
  18. package/generated/models/WorkspaceQuickDoc.ts +2030 -0
  19. package/generated/models.ts +7 -0
  20. package/generated-sqlite/browser.ts +40 -0
  21. package/generated-sqlite/client.ts +40 -0
  22. package/generated-sqlite/internal/class.ts +84 -4
  23. package/generated-sqlite/internal/prismaNamespace.ts +722 -3
  24. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +121 -2
  25. package/generated-sqlite/models/EmailLog.ts +1343 -0
  26. package/generated-sqlite/models/EmailPreference.ts +1255 -0
  27. package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
  28. package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
  29. package/generated-sqlite/models/InvitationCode.ts +65 -1
  30. package/generated-sqlite/models/KnowledgeBase.ts +150 -0
  31. package/generated-sqlite/models/KnowledgeDocument.ts +168 -0
  32. package/generated-sqlite/models/NotificationPreference.ts +1313 -0
  33. package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
  34. package/generated-sqlite/models/User.ts +2252 -160
  35. package/generated-sqlite/models/Workspace.ts +300 -0
  36. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +1426 -0
  37. package/generated-sqlite/models/WorkspaceQuickDoc.ts +2025 -0
  38. package/generated-sqlite/models.ts +8 -0
  39. package/migrations/20260909070745_workspace_kb_card/migration.sql +55 -0
  40. package/migrations/20260909123637_workspace_quick_doc_column_index/migration.sql +2 -0
  41. package/migrations/20260909123656_workspace_quick_doc_column_backfill/migration.sql +4 -0
  42. package/migrations/20260909144328_workspace_quick_doc_label/migration.sql +2 -0
  43. package/migrations/20260909154315_workspace_quick_doc_icon/migration.sql +2 -0
  44. package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
  45. package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
  46. package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
  47. package/package.json +2 -2
  48. package/schema.prisma +141 -14
  49. package/schema.sqlite.prisma +141 -6
@@ -43,6 +43,8 @@ export type InvitationCodeMinAggregateOutputType = {
43
43
  usedCount: number | null
44
44
  expiresAt: Date | null
45
45
  createdAt: Date | null
46
+ createdById: string | null
47
+ disabledAt: Date | null
46
48
  }
47
49
 
48
50
  export type InvitationCodeMaxAggregateOutputType = {
@@ -52,6 +54,8 @@ export type InvitationCodeMaxAggregateOutputType = {
52
54
  usedCount: number | null
53
55
  expiresAt: Date | null
54
56
  createdAt: Date | null
57
+ createdById: string | null
58
+ disabledAt: Date | null
55
59
  }
56
60
 
57
61
  export type InvitationCodeCountAggregateOutputType = {
@@ -61,6 +65,8 @@ export type InvitationCodeCountAggregateOutputType = {
61
65
  usedCount: number
62
66
  expiresAt: number
63
67
  createdAt: number
68
+ createdById: number
69
+ disabledAt: number
64
70
  _all: number
65
71
  }
66
72
 
@@ -82,6 +88,8 @@ export type InvitationCodeMinAggregateInputType = {
82
88
  usedCount?: true
83
89
  expiresAt?: true
84
90
  createdAt?: true
91
+ createdById?: true
92
+ disabledAt?: true
85
93
  }
86
94
 
87
95
  export type InvitationCodeMaxAggregateInputType = {
@@ -91,6 +99,8 @@ export type InvitationCodeMaxAggregateInputType = {
91
99
  usedCount?: true
92
100
  expiresAt?: true
93
101
  createdAt?: true
102
+ createdById?: true
103
+ disabledAt?: true
94
104
  }
95
105
 
96
106
  export type InvitationCodeCountAggregateInputType = {
@@ -100,6 +110,8 @@ export type InvitationCodeCountAggregateInputType = {
100
110
  usedCount?: true
101
111
  expiresAt?: true
102
112
  createdAt?: true
113
+ createdById?: true
114
+ disabledAt?: true
103
115
  _all?: true
104
116
  }
105
117
 
@@ -196,6 +208,8 @@ export type InvitationCodeGroupByOutputType = {
196
208
  usedCount: number
197
209
  expiresAt: Date
198
210
  createdAt: Date
211
+ createdById: string | null
212
+ disabledAt: Date | null
199
213
  _count: InvitationCodeCountAggregateOutputType | null
200
214
  _avg: InvitationCodeAvgAggregateOutputType | null
201
215
  _sum: InvitationCodeSumAggregateOutputType | null
@@ -228,6 +242,8 @@ export type InvitationCodeWhereInput = {
228
242
  usedCount?: Prisma.IntFilter<"InvitationCode"> | number
229
243
  expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
230
244
  createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
245
+ createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
246
+ disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
231
247
  uses?: Prisma.InvitationUseListRelationFilter
232
248
  }
233
249
 
@@ -238,6 +254,8 @@ export type InvitationCodeOrderByWithRelationInput = {
238
254
  usedCount?: Prisma.SortOrder
239
255
  expiresAt?: Prisma.SortOrder
240
256
  createdAt?: Prisma.SortOrder
257
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder
258
+ disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
241
259
  uses?: Prisma.InvitationUseOrderByRelationAggregateInput
242
260
  }
243
261
 
@@ -251,6 +269,8 @@ export type InvitationCodeWhereUniqueInput = Prisma.AtLeast<{
251
269
  usedCount?: Prisma.IntFilter<"InvitationCode"> | number
252
270
  expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
253
271
  createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
272
+ createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
273
+ disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
254
274
  uses?: Prisma.InvitationUseListRelationFilter
255
275
  }, "id" | "code">
256
276
 
@@ -261,6 +281,8 @@ export type InvitationCodeOrderByWithAggregationInput = {
261
281
  usedCount?: Prisma.SortOrder
262
282
  expiresAt?: Prisma.SortOrder
263
283
  createdAt?: Prisma.SortOrder
284
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder
285
+ disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
264
286
  _count?: Prisma.InvitationCodeCountOrderByAggregateInput
265
287
  _avg?: Prisma.InvitationCodeAvgOrderByAggregateInput
266
288
  _max?: Prisma.InvitationCodeMaxOrderByAggregateInput
@@ -278,6 +300,8 @@ export type InvitationCodeScalarWhereWithAggregatesInput = {
278
300
  usedCount?: Prisma.IntWithAggregatesFilter<"InvitationCode"> | number
279
301
  expiresAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
280
302
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
303
+ createdById?: Prisma.StringNullableWithAggregatesFilter<"InvitationCode"> | string | null
304
+ disabledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InvitationCode"> | Date | string | null
281
305
  }
282
306
 
283
307
  export type InvitationCodeCreateInput = {
@@ -287,6 +311,8 @@ export type InvitationCodeCreateInput = {
287
311
  usedCount?: number
288
312
  expiresAt: Date | string
289
313
  createdAt?: Date | string
314
+ createdById?: string | null
315
+ disabledAt?: Date | string | null
290
316
  uses?: Prisma.InvitationUseCreateNestedManyWithoutCodeInput
291
317
  }
292
318
 
@@ -297,6 +323,8 @@ export type InvitationCodeUncheckedCreateInput = {
297
323
  usedCount?: number
298
324
  expiresAt: Date | string
299
325
  createdAt?: Date | string
326
+ createdById?: string | null
327
+ disabledAt?: Date | string | null
300
328
  uses?: Prisma.InvitationUseUncheckedCreateNestedManyWithoutCodeInput
301
329
  }
302
330
 
@@ -307,6 +335,8 @@ export type InvitationCodeUpdateInput = {
307
335
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
308
336
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
337
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
338
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
339
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
310
340
  uses?: Prisma.InvitationUseUpdateManyWithoutCodeNestedInput
311
341
  }
312
342
 
@@ -317,6 +347,8 @@ export type InvitationCodeUncheckedUpdateInput = {
317
347
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
318
348
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
319
349
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
350
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
351
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
320
352
  uses?: Prisma.InvitationUseUncheckedUpdateManyWithoutCodeNestedInput
321
353
  }
322
354
 
@@ -327,6 +359,8 @@ export type InvitationCodeCreateManyInput = {
327
359
  usedCount?: number
328
360
  expiresAt: Date | string
329
361
  createdAt?: Date | string
362
+ createdById?: string | null
363
+ disabledAt?: Date | string | null
330
364
  }
331
365
 
332
366
  export type InvitationCodeUpdateManyMutationInput = {
@@ -336,6 +370,8 @@ export type InvitationCodeUpdateManyMutationInput = {
336
370
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
337
371
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
338
372
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
373
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
374
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
339
375
  }
340
376
 
341
377
  export type InvitationCodeUncheckedUpdateManyInput = {
@@ -345,6 +381,8 @@ export type InvitationCodeUncheckedUpdateManyInput = {
345
381
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
346
382
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
347
383
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
384
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
385
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
348
386
  }
349
387
 
350
388
  export type InvitationCodeCountOrderByAggregateInput = {
@@ -354,6 +392,8 @@ export type InvitationCodeCountOrderByAggregateInput = {
354
392
  usedCount?: Prisma.SortOrder
355
393
  expiresAt?: Prisma.SortOrder
356
394
  createdAt?: Prisma.SortOrder
395
+ createdById?: Prisma.SortOrder
396
+ disabledAt?: Prisma.SortOrder
357
397
  }
358
398
 
359
399
  export type InvitationCodeAvgOrderByAggregateInput = {
@@ -368,6 +408,8 @@ export type InvitationCodeMaxOrderByAggregateInput = {
368
408
  usedCount?: Prisma.SortOrder
369
409
  expiresAt?: Prisma.SortOrder
370
410
  createdAt?: Prisma.SortOrder
411
+ createdById?: Prisma.SortOrder
412
+ disabledAt?: Prisma.SortOrder
371
413
  }
372
414
 
373
415
  export type InvitationCodeMinOrderByAggregateInput = {
@@ -377,6 +419,8 @@ export type InvitationCodeMinOrderByAggregateInput = {
377
419
  usedCount?: Prisma.SortOrder
378
420
  expiresAt?: Prisma.SortOrder
379
421
  createdAt?: Prisma.SortOrder
422
+ createdById?: Prisma.SortOrder
423
+ disabledAt?: Prisma.SortOrder
380
424
  }
381
425
 
382
426
  export type InvitationCodeSumOrderByAggregateInput = {
@@ -418,6 +462,8 @@ export type InvitationCodeCreateWithoutUsesInput = {
418
462
  usedCount?: number
419
463
  expiresAt: Date | string
420
464
  createdAt?: Date | string
465
+ createdById?: string | null
466
+ disabledAt?: Date | string | null
421
467
  }
422
468
 
423
469
  export type InvitationCodeUncheckedCreateWithoutUsesInput = {
@@ -427,6 +473,8 @@ export type InvitationCodeUncheckedCreateWithoutUsesInput = {
427
473
  usedCount?: number
428
474
  expiresAt: Date | string
429
475
  createdAt?: Date | string
476
+ createdById?: string | null
477
+ disabledAt?: Date | string | null
430
478
  }
431
479
 
432
480
  export type InvitationCodeCreateOrConnectWithoutUsesInput = {
@@ -452,6 +500,8 @@ export type InvitationCodeUpdateWithoutUsesInput = {
452
500
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
453
501
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
454
502
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
503
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
504
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
455
505
  }
456
506
 
457
507
  export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
@@ -461,6 +511,8 @@ export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
461
511
  usedCount?: Prisma.IntFieldUpdateOperationsInput | number
462
512
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
513
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
514
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
515
+ disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
464
516
  }
465
517
 
466
518
 
@@ -501,6 +553,8 @@ export type InvitationCodeSelect<ExtArgs extends runtime.Types.Extensions.Intern
501
553
  usedCount?: boolean
502
554
  expiresAt?: boolean
503
555
  createdAt?: boolean
556
+ createdById?: boolean
557
+ disabledAt?: boolean
504
558
  uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
505
559
  _count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
506
560
  }, ExtArgs["result"]["invitationCode"]>
@@ -512,6 +566,8 @@ export type InvitationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Type
512
566
  usedCount?: boolean
513
567
  expiresAt?: boolean
514
568
  createdAt?: boolean
569
+ createdById?: boolean
570
+ disabledAt?: boolean
515
571
  }, ExtArgs["result"]["invitationCode"]>
516
572
 
517
573
  export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -521,6 +577,8 @@ export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Type
521
577
  usedCount?: boolean
522
578
  expiresAt?: boolean
523
579
  createdAt?: boolean
580
+ createdById?: boolean
581
+ disabledAt?: boolean
524
582
  }, ExtArgs["result"]["invitationCode"]>
525
583
 
526
584
  export type InvitationCodeSelectScalar = {
@@ -530,9 +588,11 @@ export type InvitationCodeSelectScalar = {
530
588
  usedCount?: boolean
531
589
  expiresAt?: boolean
532
590
  createdAt?: boolean
591
+ createdById?: boolean
592
+ disabledAt?: boolean
533
593
  }
534
594
 
535
- export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt", ExtArgs["result"]["invitationCode"]>
595
+ export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt" | "createdById" | "disabledAt", ExtArgs["result"]["invitationCode"]>
536
596
  export type InvitationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
537
597
  uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
538
598
  _count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
@@ -552,6 +612,8 @@ export type $InvitationCodePayload<ExtArgs extends runtime.Types.Extensions.Inte
552
612
  usedCount: number
553
613
  expiresAt: Date
554
614
  createdAt: Date
615
+ createdById: string | null
616
+ disabledAt: Date | null
555
617
  }, ExtArgs["result"]["invitationCode"]>
556
618
  composites: {}
557
619
  }
@@ -982,6 +1044,8 @@ export interface InvitationCodeFieldRefs {
982
1044
  readonly usedCount: Prisma.FieldRef<"InvitationCode", 'Int'>
983
1045
  readonly expiresAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
984
1046
  readonly createdAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
1047
+ readonly createdById: Prisma.FieldRef<"InvitationCode", 'String'>
1048
+ readonly disabledAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
985
1049
  }
986
1050
 
987
1051
 
@@ -238,6 +238,7 @@ export type KnowledgeBaseWhereInput = {
238
238
  workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
239
239
  documents?: Prisma.KnowledgeDocumentListRelationFilter
240
240
  projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
241
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
241
242
  }
242
243
 
243
244
  export type KnowledgeBaseOrderByWithRelationInput = {
@@ -257,6 +258,7 @@ export type KnowledgeBaseOrderByWithRelationInput = {
257
258
  workspace?: Prisma.WorkspaceOrderByWithRelationInput
258
259
  documents?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
259
260
  projectLinks?: Prisma.ProjectKnowledgeBaseOrderByRelationAggregateInput
261
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput
260
262
  }
261
263
 
262
264
  export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
@@ -279,6 +281,7 @@ export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
279
281
  workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
280
282
  documents?: Prisma.KnowledgeDocumentListRelationFilter
281
283
  projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
284
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
282
285
  }, "id">
283
286
 
284
287
  export type KnowledgeBaseOrderByWithAggregationInput = {
@@ -332,6 +335,7 @@ export type KnowledgeBaseCreateInput = {
332
335
  workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
333
336
  documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
334
337
  projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
338
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
335
339
  }
336
340
 
337
341
  export type KnowledgeBaseUncheckedCreateInput = {
@@ -349,6 +353,7 @@ export type KnowledgeBaseUncheckedCreateInput = {
349
353
  updatedAt?: Date | string
350
354
  documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
351
355
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
356
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
352
357
  }
353
358
 
354
359
  export type KnowledgeBaseUpdateInput = {
@@ -366,6 +371,7 @@ export type KnowledgeBaseUpdateInput = {
366
371
  workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
367
372
  documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
368
373
  projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
374
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
369
375
  }
370
376
 
371
377
  export type KnowledgeBaseUncheckedUpdateInput = {
@@ -383,6 +389,7 @@ export type KnowledgeBaseUncheckedUpdateInput = {
383
389
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
384
390
  documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
385
391
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
392
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
386
393
  }
387
394
 
388
395
  export type KnowledgeBaseCreateManyInput = {
@@ -598,6 +605,20 @@ export type KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput = {
598
605
  update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput, Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
599
606
  }
600
607
 
608
+ export type KnowledgeBaseCreateNestedOneWithoutWorkspaceLinksInput = {
609
+ create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
610
+ connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
611
+ connect?: Prisma.KnowledgeBaseWhereUniqueInput
612
+ }
613
+
614
+ export type KnowledgeBaseUpdateOneRequiredWithoutWorkspaceLinksNestedInput = {
615
+ create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
616
+ connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput
617
+ upsert?: Prisma.KnowledgeBaseUpsertWithoutWorkspaceLinksInput
618
+ connect?: Prisma.KnowledgeBaseWhereUniqueInput
619
+ update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
620
+ }
621
+
601
622
  export type KnowledgeBaseCreateWithoutUserInput = {
602
623
  id?: string
603
624
  name: string
@@ -612,6 +633,7 @@ export type KnowledgeBaseCreateWithoutUserInput = {
612
633
  workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
613
634
  documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
614
635
  projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
636
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
615
637
  }
616
638
 
617
639
  export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
@@ -628,6 +650,7 @@ export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
628
650
  updatedAt?: Date | string
629
651
  documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
630
652
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
653
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
631
654
  }
632
655
 
633
656
  export type KnowledgeBaseCreateOrConnectWithoutUserInput = {
@@ -688,6 +711,7 @@ export type KnowledgeBaseCreateWithoutWorkspaceInput = {
688
711
  user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
689
712
  documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
690
713
  projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
714
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
691
715
  }
692
716
 
693
717
  export type KnowledgeBaseUncheckedCreateWithoutWorkspaceInput = {
@@ -704,6 +728,7 @@ export type KnowledgeBaseUncheckedCreateWithoutWorkspaceInput = {
704
728
  updatedAt?: Date | string
705
729
  documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
706
730
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
731
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
707
732
  }
708
733
 
709
734
  export type KnowledgeBaseCreateOrConnectWithoutWorkspaceInput = {
@@ -746,6 +771,7 @@ export type KnowledgeBaseCreateWithoutDocumentsInput = {
746
771
  user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
747
772
  workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
748
773
  projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
774
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
749
775
  }
750
776
 
751
777
  export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
@@ -762,6 +788,7 @@ export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
762
788
  createdAt?: Date | string
763
789
  updatedAt?: Date | string
764
790
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
791
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
765
792
  }
766
793
 
767
794
  export type KnowledgeBaseCreateOrConnectWithoutDocumentsInput = {
@@ -794,6 +821,7 @@ export type KnowledgeBaseUpdateWithoutDocumentsInput = {
794
821
  user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
795
822
  workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
796
823
  projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
824
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
797
825
  }
798
826
 
799
827
  export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
@@ -810,6 +838,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
810
838
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
811
839
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
812
840
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
841
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
813
842
  }
814
843
 
815
844
  export type KnowledgeBaseCreateWithoutProjectLinksInput = {
@@ -826,6 +855,7 @@ export type KnowledgeBaseCreateWithoutProjectLinksInput = {
826
855
  user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
827
856
  workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
828
857
  documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
858
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutKbInput
829
859
  }
830
860
 
831
861
  export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
@@ -842,6 +872,7 @@ export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
842
872
  createdAt?: Date | string
843
873
  updatedAt?: Date | string
844
874
  documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
875
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
845
876
  }
846
877
 
847
878
  export type KnowledgeBaseCreateOrConnectWithoutProjectLinksInput = {
@@ -874,6 +905,7 @@ export type KnowledgeBaseUpdateWithoutProjectLinksInput = {
874
905
  user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
875
906
  workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
876
907
  documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
908
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
877
909
  }
878
910
 
879
911
  export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
@@ -890,6 +922,91 @@ export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
890
922
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
891
923
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
892
924
  documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
925
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
926
+ }
927
+
928
+ export type KnowledgeBaseCreateWithoutWorkspaceLinksInput = {
929
+ id?: string
930
+ name: string
931
+ description?: string | null
932
+ icon?: string
933
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
934
+ visibility?: string
935
+ pinnedToSidebar?: boolean
936
+ isDeleted?: boolean
937
+ createdAt?: Date | string
938
+ updatedAt?: Date | string
939
+ user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
940
+ workspace?: Prisma.WorkspaceCreateNestedOneWithoutKnowledgeBasesInput
941
+ documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
942
+ projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
943
+ }
944
+
945
+ export type KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput = {
946
+ id?: string
947
+ name: string
948
+ description?: string | null
949
+ icon?: string
950
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
951
+ visibility?: string
952
+ userId: string
953
+ workspaceId?: string | null
954
+ pinnedToSidebar?: boolean
955
+ isDeleted?: boolean
956
+ createdAt?: Date | string
957
+ updatedAt?: Date | string
958
+ documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
959
+ projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
960
+ }
961
+
962
+ export type KnowledgeBaseCreateOrConnectWithoutWorkspaceLinksInput = {
963
+ where: Prisma.KnowledgeBaseWhereUniqueInput
964
+ create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
965
+ }
966
+
967
+ export type KnowledgeBaseUpsertWithoutWorkspaceLinksInput = {
968
+ update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
969
+ create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutWorkspaceLinksInput>
970
+ where?: Prisma.KnowledgeBaseWhereInput
971
+ }
972
+
973
+ export type KnowledgeBaseUpdateToOneWithWhereWithoutWorkspaceLinksInput = {
974
+ where?: Prisma.KnowledgeBaseWhereInput
975
+ data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutWorkspaceLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput>
976
+ }
977
+
978
+ export type KnowledgeBaseUpdateWithoutWorkspaceLinksInput = {
979
+ id?: Prisma.StringFieldUpdateOperationsInput | string
980
+ name?: Prisma.StringFieldUpdateOperationsInput | string
981
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
982
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
983
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
984
+ visibility?: Prisma.StringFieldUpdateOperationsInput | string
985
+ pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
986
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
987
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
988
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
989
+ user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
990
+ workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
991
+ documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
992
+ projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
993
+ }
994
+
995
+ export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceLinksInput = {
996
+ id?: Prisma.StringFieldUpdateOperationsInput | string
997
+ name?: Prisma.StringFieldUpdateOperationsInput | string
998
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
999
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1000
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1001
+ visibility?: Prisma.StringFieldUpdateOperationsInput | string
1002
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1003
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1004
+ pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1005
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1006
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1007
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1008
+ documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
1009
+ projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
893
1010
  }
894
1011
 
895
1012
  export type KnowledgeBaseCreateManyUserInput = {
@@ -920,6 +1037,7 @@ export type KnowledgeBaseUpdateWithoutUserInput = {
920
1037
  workspace?: Prisma.WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput
921
1038
  documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
922
1039
  projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
1040
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
923
1041
  }
924
1042
 
925
1043
  export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
@@ -936,6 +1054,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
936
1054
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
937
1055
  documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
938
1056
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1057
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
939
1058
  }
940
1059
 
941
1060
  export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
@@ -980,6 +1099,7 @@ export type KnowledgeBaseUpdateWithoutWorkspaceInput = {
980
1099
  user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
981
1100
  documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
982
1101
  projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
1102
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutKbNestedInput
983
1103
  }
984
1104
 
985
1105
  export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput = {
@@ -996,6 +1116,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutWorkspaceInput = {
996
1116
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
997
1117
  documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
998
1118
  projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
1119
+ workspaceLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
999
1120
  }
1000
1121
 
1001
1122
  export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput = {
@@ -1020,11 +1141,13 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceInput = {
1020
1141
  export type KnowledgeBaseCountOutputType = {
1021
1142
  documents: number
1022
1143
  projectLinks: number
1144
+ workspaceLinks: number
1023
1145
  }
1024
1146
 
1025
1147
  export type KnowledgeBaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
1148
  documents?: boolean | KnowledgeBaseCountOutputTypeCountDocumentsArgs
1027
1149
  projectLinks?: boolean | KnowledgeBaseCountOutputTypeCountProjectLinksArgs
1150
+ workspaceLinks?: boolean | KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs
1028
1151
  }
1029
1152
 
1030
1153
  /**
@@ -1051,6 +1174,13 @@ export type KnowledgeBaseCountOutputTypeCountProjectLinksArgs<ExtArgs extends ru
1051
1174
  where?: Prisma.ProjectKnowledgeBaseWhereInput
1052
1175
  }
1053
1176
 
1177
+ /**
1178
+ * KnowledgeBaseCountOutputType without action
1179
+ */
1180
+ export type KnowledgeBaseCountOutputTypeCountWorkspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1181
+ where?: Prisma.WorkspaceKnowledgeBaseWhereInput
1182
+ }
1183
+
1054
1184
 
1055
1185
  export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1056
1186
  id?: boolean
@@ -1069,6 +1199,7 @@ export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
1069
1199
  workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1070
1200
  documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
1071
1201
  projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
1202
+ workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
1072
1203
  _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
1073
1204
  }, ExtArgs["result"]["knowledgeBase"]>
1074
1205
 
@@ -1127,6 +1258,7 @@ export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.Intern
1127
1258
  workspace?: boolean | Prisma.KnowledgeBase$workspaceArgs<ExtArgs>
1128
1259
  documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
1129
1260
  projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
1261
+ workspaceLinks?: boolean | Prisma.KnowledgeBase$workspaceLinksArgs<ExtArgs>
1130
1262
  _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
1131
1263
  }
1132
1264
  export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1145,6 +1277,7 @@ export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.Inter
1145
1277
  workspace: Prisma.$WorkspacePayload<ExtArgs> | null
1146
1278
  documents: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1147
1279
  projectLinks: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>[]
1280
+ workspaceLinks: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[]
1148
1281
  }
1149
1282
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1150
1283
  id: string
@@ -1557,6 +1690,7 @@ export interface Prisma__KnowledgeBaseClient<T, Null = never, ExtArgs extends ru
1557
1690
  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>
1558
1691
  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>
1559
1692
  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>
1693
+ 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>
1560
1694
  /**
1561
1695
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1562
1696
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2065,6 +2199,30 @@ export type KnowledgeBase$projectLinksArgs<ExtArgs extends runtime.Types.Extensi
2065
2199
  distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
2066
2200
  }
2067
2201
 
2202
+ /**
2203
+ * KnowledgeBase.workspaceLinks
2204
+ */
2205
+ export type KnowledgeBase$workspaceLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2206
+ /**
2207
+ * Select specific fields to fetch from the WorkspaceKnowledgeBase
2208
+ */
2209
+ select?: Prisma.WorkspaceKnowledgeBaseSelect<ExtArgs> | null
2210
+ /**
2211
+ * Omit specific fields from the WorkspaceKnowledgeBase
2212
+ */
2213
+ omit?: Prisma.WorkspaceKnowledgeBaseOmit<ExtArgs> | null
2214
+ /**
2215
+ * Choose, which related nodes to fetch as well
2216
+ */
2217
+ include?: Prisma.WorkspaceKnowledgeBaseInclude<ExtArgs> | null
2218
+ where?: Prisma.WorkspaceKnowledgeBaseWhereInput
2219
+ orderBy?: Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput | Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput[]
2220
+ cursor?: Prisma.WorkspaceKnowledgeBaseWhereUniqueInput
2221
+ take?: number
2222
+ skip?: number
2223
+ distinct?: Prisma.WorkspaceKnowledgeBaseScalarFieldEnum | Prisma.WorkspaceKnowledgeBaseScalarFieldEnum[]
2224
+ }
2225
+
2068
2226
  /**
2069
2227
  * KnowledgeBase without action
2070
2228
  */