@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
@@ -289,6 +289,7 @@ export type KnowledgeDocumentWhereInput = {
289
289
  children?: Prisma.KnowledgeDocumentListRelationFilter
290
290
  creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
291
291
  linkedStories?: Prisma.StoryDocLinkListRelationFilter
292
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
292
293
  }
293
294
 
294
295
  export type KnowledgeDocumentOrderByWithRelationInput = {
@@ -312,6 +313,7 @@ export type KnowledgeDocumentOrderByWithRelationInput = {
312
313
  children?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
313
314
  creator?: Prisma.UserOrderByWithRelationInput
314
315
  linkedStories?: Prisma.StoryDocLinkOrderByRelationAggregateInput
316
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocOrderByRelationAggregateInput
315
317
  }
316
318
 
317
319
  export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -338,6 +340,7 @@ export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
338
340
  children?: Prisma.KnowledgeDocumentListRelationFilter
339
341
  creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
340
342
  linkedStories?: Prisma.StoryDocLinkListRelationFilter
343
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
341
344
  }, "id">
342
345
 
343
346
  export type KnowledgeDocumentOrderByWithAggregationInput = {
@@ -402,6 +405,7 @@ export type KnowledgeDocumentCreateInput = {
402
405
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
403
406
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
404
407
  linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
408
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
405
409
  }
406
410
 
407
411
  export type KnowledgeDocumentUncheckedCreateInput = {
@@ -422,6 +426,7 @@ export type KnowledgeDocumentUncheckedCreateInput = {
422
426
  updatedAt?: Date | string
423
427
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
424
428
  linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
429
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
425
430
  }
426
431
 
427
432
  export type KnowledgeDocumentUpdateInput = {
@@ -442,6 +447,7 @@ export type KnowledgeDocumentUpdateInput = {
442
447
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
443
448
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
444
449
  linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
450
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
445
451
  }
446
452
 
447
453
  export type KnowledgeDocumentUncheckedUpdateInput = {
@@ -462,6 +468,7 @@ export type KnowledgeDocumentUncheckedUpdateInput = {
462
468
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
469
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
464
470
  linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
471
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
465
472
  }
466
473
 
467
474
  export type KnowledgeDocumentCreateManyInput = {
@@ -733,6 +740,22 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput = {
733
740
  deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
734
741
  }
735
742
 
743
+ export type KnowledgeDocumentCreateNestedOneWithoutWorkspaceQuickDocsInput = {
744
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
745
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
746
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
747
+ }
748
+
749
+ export type KnowledgeDocumentUpdateOneWithoutWorkspaceQuickDocsNestedInput = {
750
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
751
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
752
+ upsert?: Prisma.KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput
753
+ disconnect?: Prisma.KnowledgeDocumentWhereInput | boolean
754
+ delete?: Prisma.KnowledgeDocumentWhereInput | boolean
755
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
756
+ update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
757
+ }
758
+
736
759
  export type KnowledgeDocumentCreateNestedOneWithoutLinkedStoriesInput = {
737
760
  create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutLinkedStoriesInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput>
738
761
  connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutLinkedStoriesInput
@@ -764,6 +787,7 @@ export type KnowledgeDocumentCreateWithoutCreatorInput = {
764
787
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
765
788
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
766
789
  linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
790
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
767
791
  }
768
792
 
769
793
  export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
@@ -783,6 +807,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
783
807
  updatedAt?: Date | string
784
808
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
785
809
  linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
810
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
786
811
  }
787
812
 
788
813
  export type KnowledgeDocumentCreateOrConnectWithoutCreatorInput = {
@@ -849,6 +874,7 @@ export type KnowledgeDocumentCreateWithoutKbInput = {
849
874
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
850
875
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
851
876
  linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
877
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
852
878
  }
853
879
 
854
880
  export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
@@ -868,6 +894,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
868
894
  updatedAt?: Date | string
869
895
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
870
896
  linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
897
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
871
898
  }
872
899
 
873
900
  export type KnowledgeDocumentCreateOrConnectWithoutKbInput = {
@@ -913,6 +940,7 @@ export type KnowledgeDocumentCreateWithoutChildrenInput = {
913
940
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
914
941
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
915
942
  linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
943
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
916
944
  }
917
945
 
918
946
  export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
@@ -932,6 +960,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
932
960
  createdAt?: Date | string
933
961
  updatedAt?: Date | string
934
962
  linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
963
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
935
964
  }
936
965
 
937
966
  export type KnowledgeDocumentCreateOrConnectWithoutChildrenInput = {
@@ -956,6 +985,7 @@ export type KnowledgeDocumentCreateWithoutParentInput = {
956
985
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
957
986
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
958
987
  linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
988
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
959
989
  }
960
990
 
961
991
  export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
@@ -975,6 +1005,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
975
1005
  updatedAt?: Date | string
976
1006
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
977
1007
  linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
1008
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
978
1009
  }
979
1010
 
980
1011
  export type KnowledgeDocumentCreateOrConnectWithoutParentInput = {
@@ -1015,6 +1046,7 @@ export type KnowledgeDocumentUpdateWithoutChildrenInput = {
1015
1046
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1016
1047
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1017
1048
  linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1049
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1018
1050
  }
1019
1051
 
1020
1052
  export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
@@ -1034,6 +1066,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
1034
1066
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1035
1067
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1036
1068
  linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1069
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1037
1070
  }
1038
1071
 
1039
1072
  export type KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput = {
@@ -1052,6 +1085,102 @@ export type KnowledgeDocumentUpdateManyWithWhereWithoutParentInput = {
1052
1085
  data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentInput>
1053
1086
  }
1054
1087
 
1088
+ export type KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput = {
1089
+ id?: string
1090
+ title: string
1091
+ type?: string
1092
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1093
+ icon?: string | null
1094
+ isHomepage?: boolean
1095
+ sortOrder?: number
1096
+ isDeleted?: boolean
1097
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1098
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1099
+ createdAt?: Date | string
1100
+ updatedAt?: Date | string
1101
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
1102
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
1103
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
1104
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1105
+ linkedStories?: Prisma.StoryDocLinkCreateNestedManyWithoutDocInput
1106
+ }
1107
+
1108
+ export type KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput = {
1109
+ id?: string
1110
+ kbId: string
1111
+ parentId?: string | null
1112
+ title: string
1113
+ type?: string
1114
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1115
+ icon?: string | null
1116
+ isHomepage?: boolean
1117
+ sortOrder?: number
1118
+ isDeleted?: boolean
1119
+ createdBy: string
1120
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1121
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1122
+ createdAt?: Date | string
1123
+ updatedAt?: Date | string
1124
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
1125
+ linkedStories?: Prisma.StoryDocLinkUncheckedCreateNestedManyWithoutDocInput
1126
+ }
1127
+
1128
+ export type KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput = {
1129
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
1130
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
1131
+ }
1132
+
1133
+ export type KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput = {
1134
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
1135
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
1136
+ where?: Prisma.KnowledgeDocumentWhereInput
1137
+ }
1138
+
1139
+ export type KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput = {
1140
+ where?: Prisma.KnowledgeDocumentWhereInput
1141
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
1142
+ }
1143
+
1144
+ export type KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput = {
1145
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1146
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1147
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1148
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1149
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1150
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1151
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1152
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1153
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1154
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1155
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1156
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1157
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1158
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1159
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1160
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1161
+ linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1162
+ }
1163
+
1164
+ export type KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput = {
1165
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1166
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
1167
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1168
+ title?: Prisma.StringFieldUpdateOperationsInput | string
1169
+ type?: Prisma.StringFieldUpdateOperationsInput | string
1170
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1171
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1172
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
1173
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1174
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1175
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1176
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1177
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1178
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1179
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1180
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1181
+ linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1182
+ }
1183
+
1055
1184
  export type KnowledgeDocumentCreateWithoutLinkedStoriesInput = {
1056
1185
  id?: string
1057
1186
  title: string
@@ -1069,6 +1198,7 @@ export type KnowledgeDocumentCreateWithoutLinkedStoriesInput = {
1069
1198
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
1070
1199
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
1071
1200
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1201
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
1072
1202
  }
1073
1203
 
1074
1204
  export type KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput = {
@@ -1088,6 +1218,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutLinkedStoriesInput = {
1088
1218
  createdAt?: Date | string
1089
1219
  updatedAt?: Date | string
1090
1220
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
1221
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
1091
1222
  }
1092
1223
 
1093
1224
  export type KnowledgeDocumentCreateOrConnectWithoutLinkedStoriesInput = {
@@ -1123,6 +1254,7 @@ export type KnowledgeDocumentUpdateWithoutLinkedStoriesInput = {
1123
1254
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1124
1255
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1125
1256
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1257
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1126
1258
  }
1127
1259
 
1128
1260
  export type KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput = {
@@ -1142,6 +1274,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutLinkedStoriesInput = {
1142
1274
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1143
1275
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1144
1276
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1277
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1145
1278
  }
1146
1279
 
1147
1280
  export type KnowledgeDocumentCreateManyCreatorInput = {
@@ -1178,6 +1311,7 @@ export type KnowledgeDocumentUpdateWithoutCreatorInput = {
1178
1311
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1179
1312
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1180
1313
  linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1314
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1181
1315
  }
1182
1316
 
1183
1317
  export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
@@ -1197,6 +1331,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
1197
1331
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1198
1332
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1199
1333
  linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1334
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1200
1335
  }
1201
1336
 
1202
1337
  export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput = {
@@ -1250,6 +1385,7 @@ export type KnowledgeDocumentUpdateWithoutKbInput = {
1250
1385
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1251
1386
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1252
1387
  linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1388
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1253
1389
  }
1254
1390
 
1255
1391
  export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
@@ -1269,6 +1405,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
1269
1405
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1270
1406
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1271
1407
  linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1408
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1272
1409
  }
1273
1410
 
1274
1411
  export type KnowledgeDocumentUncheckedUpdateManyWithoutKbInput = {
@@ -1322,6 +1459,7 @@ export type KnowledgeDocumentUpdateWithoutParentInput = {
1322
1459
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1323
1460
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1324
1461
  linkedStories?: Prisma.StoryDocLinkUpdateManyWithoutDocNestedInput
1462
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1325
1463
  }
1326
1464
 
1327
1465
  export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
@@ -1341,6 +1479,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
1341
1479
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1342
1480
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1343
1481
  linkedStories?: Prisma.StoryDocLinkUncheckedUpdateManyWithoutDocNestedInput
1482
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1344
1483
  }
1345
1484
 
1346
1485
  export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
@@ -1368,11 +1507,13 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
1368
1507
  export type KnowledgeDocumentCountOutputType = {
1369
1508
  children: number
1370
1509
  linkedStories: number
1510
+ workspaceQuickDocs: number
1371
1511
  }
1372
1512
 
1373
1513
  export type KnowledgeDocumentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1374
1514
  children?: boolean | KnowledgeDocumentCountOutputTypeCountChildrenArgs
1375
1515
  linkedStories?: boolean | KnowledgeDocumentCountOutputTypeCountLinkedStoriesArgs
1516
+ workspaceQuickDocs?: boolean | KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs
1376
1517
  }
1377
1518
 
1378
1519
  /**
@@ -1399,6 +1540,13 @@ export type KnowledgeDocumentCountOutputTypeCountLinkedStoriesArgs<ExtArgs exten
1399
1540
  where?: Prisma.StoryDocLinkWhereInput
1400
1541
  }
1401
1542
 
1543
+ /**
1544
+ * KnowledgeDocumentCountOutputType without action
1545
+ */
1546
+ export type KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1547
+ where?: Prisma.WorkspaceQuickDocWhereInput
1548
+ }
1549
+
1402
1550
 
1403
1551
  export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1404
1552
  id?: boolean
@@ -1421,6 +1569,7 @@ export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.Int
1421
1569
  children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1422
1570
  creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1423
1571
  linkedStories?: boolean | Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>
1572
+ workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1424
1573
  _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1425
1574
  }, ExtArgs["result"]["knowledgeDocument"]>
1426
1575
 
@@ -1491,6 +1640,7 @@ export type KnowledgeDocumentInclude<ExtArgs extends runtime.Types.Extensions.In
1491
1640
  children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1492
1641
  creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1493
1642
  linkedStories?: boolean | Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>
1643
+ workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1494
1644
  _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1495
1645
  }
1496
1646
  export type KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1512,6 +1662,7 @@ export type $KnowledgeDocumentPayload<ExtArgs extends runtime.Types.Extensions.I
1512
1662
  children: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1513
1663
  creator: Prisma.$UserPayload<ExtArgs>
1514
1664
  linkedStories: Prisma.$StoryDocLinkPayload<ExtArgs>[]
1665
+ workspaceQuickDocs: Prisma.$WorkspaceQuickDocPayload<ExtArgs>[]
1515
1666
  }
1516
1667
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1517
1668
  id: string
@@ -1928,6 +2079,7 @@ export interface Prisma__KnowledgeDocumentClient<T, Null = never, ExtArgs extend
1928
2079
  children<T extends Prisma.KnowledgeDocument$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1929
2080
  creator<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1930
2081
  linkedStories<T extends Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$linkedStoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryDocLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2082
+ workspaceQuickDocs<T extends Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceQuickDocPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1931
2083
  /**
1932
2084
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1933
2085
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2439,6 +2591,30 @@ export type KnowledgeDocument$linkedStoriesArgs<ExtArgs extends runtime.Types.Ex
2439
2591
  distinct?: Prisma.StoryDocLinkScalarFieldEnum | Prisma.StoryDocLinkScalarFieldEnum[]
2440
2592
  }
2441
2593
 
2594
+ /**
2595
+ * KnowledgeDocument.workspaceQuickDocs
2596
+ */
2597
+ export type KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2598
+ /**
2599
+ * Select specific fields to fetch from the WorkspaceQuickDoc
2600
+ */
2601
+ select?: Prisma.WorkspaceQuickDocSelect<ExtArgs> | null
2602
+ /**
2603
+ * Omit specific fields from the WorkspaceQuickDoc
2604
+ */
2605
+ omit?: Prisma.WorkspaceQuickDocOmit<ExtArgs> | null
2606
+ /**
2607
+ * Choose, which related nodes to fetch as well
2608
+ */
2609
+ include?: Prisma.WorkspaceQuickDocInclude<ExtArgs> | null
2610
+ where?: Prisma.WorkspaceQuickDocWhereInput
2611
+ orderBy?: Prisma.WorkspaceQuickDocOrderByWithRelationInput | Prisma.WorkspaceQuickDocOrderByWithRelationInput[]
2612
+ cursor?: Prisma.WorkspaceQuickDocWhereUniqueInput
2613
+ take?: number
2614
+ skip?: number
2615
+ distinct?: Prisma.WorkspaceQuickDocScalarFieldEnum | Prisma.WorkspaceQuickDocScalarFieldEnum[]
2616
+ }
2617
+
2442
2618
  /**
2443
2619
  * KnowledgeDocument without action
2444
2620
  */
@@ -41,6 +41,7 @@ export type NotificationPreferenceMaxAggregateOutputType = {
41
41
  export type NotificationPreferenceCountAggregateOutputType = {
42
42
  userId: number
43
43
  categories: number
44
+ emailCategories: number
44
45
  dndEnabled: number
45
46
  dndStart: number
46
47
  dndEnd: number
@@ -65,6 +66,7 @@ export type NotificationPreferenceMaxAggregateInputType = {
65
66
  export type NotificationPreferenceCountAggregateInputType = {
66
67
  userId?: true
67
68
  categories?: true
69
+ emailCategories?: true
68
70
  dndEnabled?: true
69
71
  dndStart?: true
70
72
  dndEnd?: true
@@ -146,6 +148,7 @@ export type NotificationPreferenceGroupByArgs<ExtArgs extends runtime.Types.Exte
146
148
  export type NotificationPreferenceGroupByOutputType = {
147
149
  userId: string
148
150
  categories: runtime.JsonValue
151
+ emailCategories: runtime.JsonValue
149
152
  dndEnabled: boolean
150
153
  dndStart: string
151
154
  dndEnd: string
@@ -175,6 +178,7 @@ export type NotificationPreferenceWhereInput = {
175
178
  NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
176
179
  userId?: Prisma.StringFilter<"NotificationPreference"> | string
177
180
  categories?: Prisma.JsonFilter<"NotificationPreference">
181
+ emailCategories?: Prisma.JsonFilter<"NotificationPreference">
178
182
  dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
179
183
  dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
180
184
  dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
@@ -184,6 +188,7 @@ export type NotificationPreferenceWhereInput = {
184
188
  export type NotificationPreferenceOrderByWithRelationInput = {
185
189
  userId?: Prisma.SortOrder
186
190
  categories?: Prisma.SortOrder
191
+ emailCategories?: Prisma.SortOrder
187
192
  dndEnabled?: Prisma.SortOrder
188
193
  dndStart?: Prisma.SortOrder
189
194
  dndEnd?: Prisma.SortOrder
@@ -196,6 +201,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
196
201
  OR?: Prisma.NotificationPreferenceWhereInput[]
197
202
  NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
198
203
  categories?: Prisma.JsonFilter<"NotificationPreference">
204
+ emailCategories?: Prisma.JsonFilter<"NotificationPreference">
199
205
  dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
200
206
  dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
201
207
  dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
@@ -205,6 +211,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
205
211
  export type NotificationPreferenceOrderByWithAggregationInput = {
206
212
  userId?: Prisma.SortOrder
207
213
  categories?: Prisma.SortOrder
214
+ emailCategories?: Prisma.SortOrder
208
215
  dndEnabled?: Prisma.SortOrder
209
216
  dndStart?: Prisma.SortOrder
210
217
  dndEnd?: Prisma.SortOrder
@@ -219,6 +226,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
219
226
  NOT?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput | Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[]
220
227
  userId?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
221
228
  categories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
229
+ emailCategories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
222
230
  dndEnabled?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean
223
231
  dndStart?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
224
232
  dndEnd?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
@@ -226,6 +234,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
226
234
 
227
235
  export type NotificationPreferenceCreateInput = {
228
236
  categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
237
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
229
238
  dndEnabled?: boolean
230
239
  dndStart?: string
231
240
  dndEnd?: string
@@ -235,6 +244,7 @@ export type NotificationPreferenceCreateInput = {
235
244
  export type NotificationPreferenceUncheckedCreateInput = {
236
245
  userId: string
237
246
  categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
247
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
238
248
  dndEnabled?: boolean
239
249
  dndStart?: string
240
250
  dndEnd?: string
@@ -242,6 +252,7 @@ export type NotificationPreferenceUncheckedCreateInput = {
242
252
 
243
253
  export type NotificationPreferenceUpdateInput = {
244
254
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
255
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
245
256
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
246
257
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
247
258
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -251,6 +262,7 @@ export type NotificationPreferenceUpdateInput = {
251
262
  export type NotificationPreferenceUncheckedUpdateInput = {
252
263
  userId?: Prisma.StringFieldUpdateOperationsInput | string
253
264
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
265
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
254
266
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
255
267
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
256
268
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -259,6 +271,7 @@ export type NotificationPreferenceUncheckedUpdateInput = {
259
271
  export type NotificationPreferenceCreateManyInput = {
260
272
  userId: string
261
273
  categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
274
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
262
275
  dndEnabled?: boolean
263
276
  dndStart?: string
264
277
  dndEnd?: string
@@ -266,6 +279,7 @@ export type NotificationPreferenceCreateManyInput = {
266
279
 
267
280
  export type NotificationPreferenceUpdateManyMutationInput = {
268
281
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
282
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
269
283
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
270
284
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
271
285
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -274,6 +288,7 @@ export type NotificationPreferenceUpdateManyMutationInput = {
274
288
  export type NotificationPreferenceUncheckedUpdateManyInput = {
275
289
  userId?: Prisma.StringFieldUpdateOperationsInput | string
276
290
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
291
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
277
292
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
278
293
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
279
294
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -287,6 +302,7 @@ export type NotificationPreferenceNullableScalarRelationFilter = {
287
302
  export type NotificationPreferenceCountOrderByAggregateInput = {
288
303
  userId?: Prisma.SortOrder
289
304
  categories?: Prisma.SortOrder
305
+ emailCategories?: Prisma.SortOrder
290
306
  dndEnabled?: Prisma.SortOrder
291
307
  dndStart?: Prisma.SortOrder
292
308
  dndEnd?: Prisma.SortOrder
@@ -340,6 +356,7 @@ export type NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput = {
340
356
 
341
357
  export type NotificationPreferenceCreateWithoutUserInput = {
342
358
  categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
359
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
343
360
  dndEnabled?: boolean
344
361
  dndStart?: string
345
362
  dndEnd?: string
@@ -347,6 +364,7 @@ export type NotificationPreferenceCreateWithoutUserInput = {
347
364
 
348
365
  export type NotificationPreferenceUncheckedCreateWithoutUserInput = {
349
366
  categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
367
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
350
368
  dndEnabled?: boolean
351
369
  dndStart?: string
352
370
  dndEnd?: string
@@ -370,6 +388,7 @@ export type NotificationPreferenceUpdateToOneWithWhereWithoutUserInput = {
370
388
 
371
389
  export type NotificationPreferenceUpdateWithoutUserInput = {
372
390
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
391
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
373
392
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
374
393
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
375
394
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -377,6 +396,7 @@ export type NotificationPreferenceUpdateWithoutUserInput = {
377
396
 
378
397
  export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
379
398
  categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
399
+ emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
380
400
  dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
381
401
  dndStart?: Prisma.StringFieldUpdateOperationsInput | string
382
402
  dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
@@ -387,6 +407,7 @@ export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
387
407
  export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
388
408
  userId?: boolean
389
409
  categories?: boolean
410
+ emailCategories?: boolean
390
411
  dndEnabled?: boolean
391
412
  dndStart?: boolean
392
413
  dndEnd?: boolean
@@ -396,6 +417,7 @@ export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extension
396
417
  export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
397
418
  userId?: boolean
398
419
  categories?: boolean
420
+ emailCategories?: boolean
399
421
  dndEnabled?: boolean
400
422
  dndStart?: boolean
401
423
  dndEnd?: boolean
@@ -405,6 +427,7 @@ export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runt
405
427
  export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
406
428
  userId?: boolean
407
429
  categories?: boolean
430
+ emailCategories?: boolean
408
431
  dndEnabled?: boolean
409
432
  dndStart?: boolean
410
433
  dndEnd?: boolean
@@ -414,12 +437,13 @@ export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runt
414
437
  export type NotificationPreferenceSelectScalar = {
415
438
  userId?: boolean
416
439
  categories?: boolean
440
+ emailCategories?: boolean
417
441
  dndEnabled?: boolean
418
442
  dndStart?: boolean
419
443
  dndEnd?: boolean
420
444
  }
421
445
 
422
- export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
446
+ export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "emailCategories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
423
447
  export type NotificationPreferenceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
424
448
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
425
449
  }
@@ -438,6 +462,7 @@ export type $NotificationPreferencePayload<ExtArgs extends runtime.Types.Extensi
438
462
  scalars: runtime.Types.Extensions.GetPayloadResult<{
439
463
  userId: string
440
464
  categories: runtime.JsonValue
465
+ emailCategories: runtime.JsonValue
441
466
  dndEnabled: boolean
442
467
  dndStart: string
443
468
  dndEnd: string
@@ -867,6 +892,7 @@ export interface Prisma__NotificationPreferenceClient<T, Null = never, ExtArgs e
867
892
  export interface NotificationPreferenceFieldRefs {
868
893
  readonly userId: Prisma.FieldRef<"NotificationPreference", 'String'>
869
894
  readonly categories: Prisma.FieldRef<"NotificationPreference", 'Json'>
895
+ readonly emailCategories: Prisma.FieldRef<"NotificationPreference", 'Json'>
870
896
  readonly dndEnabled: Prisma.FieldRef<"NotificationPreference", 'Boolean'>
871
897
  readonly dndStart: Prisma.FieldRef<"NotificationPreference", 'String'>
872
898
  readonly dndEnd: Prisma.FieldRef<"NotificationPreference", 'String'>