@prenta/core 1.1.1 → 2.2.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 (109) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/handlers.d.ts.map +1 -1
  3. package/dist/api/handlers.js +0 -2
  4. package/dist/api/handlers.js.map +1 -1
  5. package/dist/api/routes/media.d.ts.map +1 -1
  6. package/dist/api/routes/media.js +73 -104
  7. package/dist/api/routes/media.js.map +1 -1
  8. package/dist/api/routes/saved-sections.d.ts.map +1 -1
  9. package/dist/api/routes/saved-sections.js +20 -300
  10. package/dist/api/routes/saved-sections.js.map +1 -1
  11. package/dist/appearance/resolve.js +1 -1
  12. package/dist/appearance/resolve.js.map +1 -1
  13. package/dist/collections/presets.d.ts +2 -2
  14. package/dist/collections/presets.js +2 -2
  15. package/dist/config/runtime.d.ts +1 -2
  16. package/dist/config/runtime.d.ts.map +1 -1
  17. package/dist/config/runtime.js.map +1 -1
  18. package/dist/config/types.d.ts +0 -3
  19. package/dist/config/types.d.ts.map +1 -1
  20. package/dist/db/model-types.d.ts +67 -26
  21. package/dist/db/model-types.d.ts.map +1 -1
  22. package/dist/generated/browser.d.ts +16 -0
  23. package/dist/generated/client.d.ts +16 -0
  24. package/dist/generated/commonInputTypes.d.ts +30 -0
  25. package/dist/generated/internal/class.d.ts +33 -0
  26. package/dist/generated/internal/class.js +4 -4
  27. package/dist/generated/internal/prismaNamespace.d.ts +294 -1
  28. package/dist/generated/internal/prismaNamespace.js +55 -1
  29. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +60 -0
  30. package/dist/generated/internal/prismaNamespaceBrowser.js +55 -1
  31. package/dist/generated/models/DocumentCRDT.d.ts +1110 -0
  32. package/dist/generated/models/DocumentCRDT.js +1 -0
  33. package/dist/generated/models/DocumentComment.d.ts +1722 -0
  34. package/dist/generated/models/DocumentComment.js +1 -0
  35. package/dist/generated/models/DocumentNotification.d.ts +1289 -0
  36. package/dist/generated/models/DocumentNotification.js +1 -0
  37. package/dist/generated/models/User.d.ts +552 -0
  38. package/dist/generated/models.d.ts +3 -0
  39. package/dist/index.d.ts +4 -2
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +3 -2
  42. package/dist/index.js.map +1 -1
  43. package/dist/media/index.d.ts +2 -0
  44. package/dist/media/index.d.ts.map +1 -1
  45. package/dist/media/index.js +1 -0
  46. package/dist/media/index.js.map +1 -1
  47. package/dist/media/optimize.d.ts.map +1 -1
  48. package/dist/media/optimize.js +19 -12
  49. package/dist/media/optimize.js.map +1 -1
  50. package/dist/media/reoptimize.d.ts +61 -0
  51. package/dist/media/reoptimize.d.ts.map +1 -0
  52. package/dist/media/reoptimize.js +371 -0
  53. package/dist/media/reoptimize.js.map +1 -0
  54. package/dist/sections/index.d.ts +1 -2
  55. package/dist/sections/index.d.ts.map +1 -1
  56. package/dist/sections/index.js +1 -2
  57. package/dist/sections/index.js.map +1 -1
  58. package/dist/sections/types.d.ts +2 -3
  59. package/dist/sections/types.d.ts.map +1 -1
  60. package/dist/sections/types.js +2 -3
  61. package/dist/sections/types.js.map +1 -1
  62. package/dist/security/api-key-enhanced.d.ts +2 -2
  63. package/package.json +1 -6
  64. package/prisma/migrations/0013_document_collab_models/migration.sql +68 -0
  65. package/prisma/schema.prisma +66 -5
  66. package/dist/api/routes/page-templates.d.ts +0 -3
  67. package/dist/api/routes/page-templates.d.ts.map +0 -1
  68. package/dist/api/routes/page-templates.js +0 -265
  69. package/dist/api/routes/page-templates.js.map +0 -1
  70. package/dist/page-builder/a11y-fix.d.ts +0 -20
  71. package/dist/page-builder/a11y-fix.d.ts.map +0 -1
  72. package/dist/page-builder/a11y-fix.js +0 -182
  73. package/dist/page-builder/a11y-fix.js.map +0 -1
  74. package/dist/page-builder/ai-pipeline.d.ts +0 -43
  75. package/dist/page-builder/ai-pipeline.d.ts.map +0 -1
  76. package/dist/page-builder/ai-pipeline.js +0 -165
  77. package/dist/page-builder/ai-pipeline.js.map +0 -1
  78. package/dist/page-builder/blocks.d.ts +0 -27
  79. package/dist/page-builder/blocks.d.ts.map +0 -1
  80. package/dist/page-builder/blocks.js +0 -313
  81. package/dist/page-builder/blocks.js.map +0 -1
  82. package/dist/page-builder/design-scorer.d.ts +0 -27
  83. package/dist/page-builder/design-scorer.d.ts.map +0 -1
  84. package/dist/page-builder/design-scorer.js +0 -612
  85. package/dist/page-builder/design-scorer.js.map +0 -1
  86. package/dist/page-builder/index.d.ts +0 -16
  87. package/dist/page-builder/index.d.ts.map +0 -1
  88. package/dist/page-builder/index.js +0 -18
  89. package/dist/page-builder/index.js.map +0 -1
  90. package/dist/page-builder/schema.d.ts +0 -107
  91. package/dist/page-builder/schema.d.ts.map +0 -1
  92. package/dist/page-builder/schema.js +0 -90
  93. package/dist/page-builder/schema.js.map +0 -1
  94. package/dist/page-builder/templates.d.ts +0 -9
  95. package/dist/page-builder/templates.d.ts.map +0 -1
  96. package/dist/page-builder/templates.js +0 -742
  97. package/dist/page-builder/templates.js.map +0 -1
  98. package/dist/page-builder/tree.d.ts +0 -17
  99. package/dist/page-builder/tree.d.ts.map +0 -1
  100. package/dist/page-builder/tree.js +0 -160
  101. package/dist/page-builder/tree.js.map +0 -1
  102. package/dist/page-builder/types.d.ts +0 -112
  103. package/dist/page-builder/types.d.ts.map +0 -1
  104. package/dist/page-builder/types.js +0 -4
  105. package/dist/page-builder/types.js.map +0 -1
  106. package/dist/page-builder/validate.d.ts +0 -6
  107. package/dist/page-builder/validate.d.ts.map +0 -1
  108. package/dist/page-builder/validate.js +0 -87
  109. package/dist/page-builder/validate.js.map +0 -1
@@ -341,6 +341,8 @@ export type UserWhereInput = {
341
341
  contentTemplates?: Prisma.ContentTemplateListRelationFilter;
342
342
  workflowAssigned?: Prisma.WorkflowStateListRelationFilter;
343
343
  passwordResetTokens?: Prisma.PasswordResetTokenListRelationFilter;
344
+ documentComments?: Prisma.DocumentCommentListRelationFilter;
345
+ documentNotifications?: Prisma.DocumentNotificationListRelationFilter;
344
346
  };
345
347
  export type UserOrderByWithRelationInput = {
346
348
  id?: Prisma.SortOrder;
@@ -380,6 +382,8 @@ export type UserOrderByWithRelationInput = {
380
382
  contentTemplates?: Prisma.ContentTemplateOrderByRelationAggregateInput;
381
383
  workflowAssigned?: Prisma.WorkflowStateOrderByRelationAggregateInput;
382
384
  passwordResetTokens?: Prisma.PasswordResetTokenOrderByRelationAggregateInput;
385
+ documentComments?: Prisma.DocumentCommentOrderByRelationAggregateInput;
386
+ documentNotifications?: Prisma.DocumentNotificationOrderByRelationAggregateInput;
383
387
  _relevance?: Prisma.UserOrderByRelevanceInput;
384
388
  };
385
389
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -423,6 +427,8 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
423
427
  contentTemplates?: Prisma.ContentTemplateListRelationFilter;
424
428
  workflowAssigned?: Prisma.WorkflowStateListRelationFilter;
425
429
  passwordResetTokens?: Prisma.PasswordResetTokenListRelationFilter;
430
+ documentComments?: Prisma.DocumentCommentListRelationFilter;
431
+ documentNotifications?: Prisma.DocumentNotificationListRelationFilter;
426
432
  }, "id" | "email">;
427
433
  export type UserOrderByWithAggregationInput = {
428
434
  id?: Prisma.SortOrder;
@@ -524,6 +530,8 @@ export type UserCreateInput = {
524
530
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
525
531
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
526
532
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
533
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
534
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
527
535
  };
528
536
  export type UserUncheckedCreateInput = {
529
537
  id?: string;
@@ -563,6 +571,8 @@ export type UserUncheckedCreateInput = {
563
571
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
564
572
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
565
573
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
574
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
575
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
566
576
  };
567
577
  export type UserUpdateInput = {
568
578
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -602,6 +612,8 @@ export type UserUpdateInput = {
602
612
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
603
613
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
604
614
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
615
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
616
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
605
617
  };
606
618
  export type UserUncheckedUpdateInput = {
607
619
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -641,6 +653,8 @@ export type UserUncheckedUpdateInput = {
641
653
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
642
654
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
643
655
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
656
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
657
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
644
658
  };
645
659
  export type UserCreateManyInput = {
646
660
  id?: string;
@@ -1001,6 +1015,32 @@ export type UserUpdateOneRequiredWithoutPasswordResetTokensNestedInput = {
1001
1015
  connect?: Prisma.UserWhereUniqueInput;
1002
1016
  update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPasswordResetTokensInput, Prisma.UserUpdateWithoutPasswordResetTokensInput>, Prisma.UserUncheckedUpdateWithoutPasswordResetTokensInput>;
1003
1017
  };
1018
+ export type UserCreateNestedOneWithoutDocumentCommentsInput = {
1019
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentCommentsInput, Prisma.UserUncheckedCreateWithoutDocumentCommentsInput>;
1020
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentCommentsInput;
1021
+ connect?: Prisma.UserWhereUniqueInput;
1022
+ };
1023
+ export type UserUpdateOneWithoutDocumentCommentsNestedInput = {
1024
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentCommentsInput, Prisma.UserUncheckedCreateWithoutDocumentCommentsInput>;
1025
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentCommentsInput;
1026
+ upsert?: Prisma.UserUpsertWithoutDocumentCommentsInput;
1027
+ disconnect?: Prisma.UserWhereInput | boolean;
1028
+ delete?: Prisma.UserWhereInput | boolean;
1029
+ connect?: Prisma.UserWhereUniqueInput;
1030
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDocumentCommentsInput, Prisma.UserUpdateWithoutDocumentCommentsInput>, Prisma.UserUncheckedUpdateWithoutDocumentCommentsInput>;
1031
+ };
1032
+ export type UserCreateNestedOneWithoutDocumentNotificationsInput = {
1033
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentNotificationsInput, Prisma.UserUncheckedCreateWithoutDocumentNotificationsInput>;
1034
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentNotificationsInput;
1035
+ connect?: Prisma.UserWhereUniqueInput;
1036
+ };
1037
+ export type UserUpdateOneRequiredWithoutDocumentNotificationsNestedInput = {
1038
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentNotificationsInput, Prisma.UserUncheckedCreateWithoutDocumentNotificationsInput>;
1039
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentNotificationsInput;
1040
+ upsert?: Prisma.UserUpsertWithoutDocumentNotificationsInput;
1041
+ connect?: Prisma.UserWhereUniqueInput;
1042
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDocumentNotificationsInput, Prisma.UserUpdateWithoutDocumentNotificationsInput>, Prisma.UserUncheckedUpdateWithoutDocumentNotificationsInput>;
1043
+ };
1004
1044
  export type UserCreateWithoutOauthAccountsInput = {
1005
1045
  id?: string;
1006
1046
  email: string;
@@ -1038,6 +1078,8 @@ export type UserCreateWithoutOauthAccountsInput = {
1038
1078
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1039
1079
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1040
1080
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1081
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1082
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1041
1083
  };
1042
1084
  export type UserUncheckedCreateWithoutOauthAccountsInput = {
1043
1085
  id?: string;
@@ -1076,6 +1118,8 @@ export type UserUncheckedCreateWithoutOauthAccountsInput = {
1076
1118
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1077
1119
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1078
1120
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1121
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1122
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1079
1123
  };
1080
1124
  export type UserCreateOrConnectWithoutOauthAccountsInput = {
1081
1125
  where: Prisma.UserWhereUniqueInput;
@@ -1127,6 +1171,8 @@ export type UserUpdateWithoutOauthAccountsInput = {
1127
1171
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1128
1172
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1129
1173
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1174
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
1175
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1130
1176
  };
1131
1177
  export type UserUncheckedUpdateWithoutOauthAccountsInput = {
1132
1178
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1165,6 +1211,8 @@ export type UserUncheckedUpdateWithoutOauthAccountsInput = {
1165
1211
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1166
1212
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1167
1213
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1214
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
1215
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1168
1216
  };
1169
1217
  export type UserCreateWithoutSessionsInput = {
1170
1218
  id?: string;
@@ -1203,6 +1251,8 @@ export type UserCreateWithoutSessionsInput = {
1203
1251
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1204
1252
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1205
1253
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1254
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1255
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1206
1256
  };
1207
1257
  export type UserUncheckedCreateWithoutSessionsInput = {
1208
1258
  id?: string;
@@ -1241,6 +1291,8 @@ export type UserUncheckedCreateWithoutSessionsInput = {
1241
1291
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1242
1292
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1243
1293
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1294
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1295
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1244
1296
  };
1245
1297
  export type UserCreateOrConnectWithoutSessionsInput = {
1246
1298
  where: Prisma.UserWhereUniqueInput;
@@ -1292,6 +1344,8 @@ export type UserUpdateWithoutSessionsInput = {
1292
1344
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1293
1345
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1294
1346
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1347
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
1348
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1295
1349
  };
1296
1350
  export type UserUncheckedUpdateWithoutSessionsInput = {
1297
1351
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1330,6 +1384,8 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
1330
1384
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1331
1385
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1332
1386
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1387
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
1388
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1333
1389
  };
1334
1390
  export type UserCreateWithoutApiKeysInput = {
1335
1391
  id?: string;
@@ -1368,6 +1424,8 @@ export type UserCreateWithoutApiKeysInput = {
1368
1424
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1369
1425
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1370
1426
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1427
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1428
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1371
1429
  };
1372
1430
  export type UserUncheckedCreateWithoutApiKeysInput = {
1373
1431
  id?: string;
@@ -1406,6 +1464,8 @@ export type UserUncheckedCreateWithoutApiKeysInput = {
1406
1464
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1407
1465
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1408
1466
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1467
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1468
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1409
1469
  };
1410
1470
  export type UserCreateOrConnectWithoutApiKeysInput = {
1411
1471
  where: Prisma.UserWhereUniqueInput;
@@ -1457,6 +1517,8 @@ export type UserUpdateWithoutApiKeysInput = {
1457
1517
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1458
1518
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1459
1519
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1520
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
1521
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1460
1522
  };
1461
1523
  export type UserUncheckedUpdateWithoutApiKeysInput = {
1462
1524
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1495,6 +1557,8 @@ export type UserUncheckedUpdateWithoutApiKeysInput = {
1495
1557
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1496
1558
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1497
1559
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1560
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
1561
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1498
1562
  };
1499
1563
  export type UserCreateWithoutDocumentsInput = {
1500
1564
  id?: string;
@@ -1533,6 +1597,8 @@ export type UserCreateWithoutDocumentsInput = {
1533
1597
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1534
1598
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1535
1599
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1600
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1601
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1536
1602
  };
1537
1603
  export type UserUncheckedCreateWithoutDocumentsInput = {
1538
1604
  id?: string;
@@ -1571,6 +1637,8 @@ export type UserUncheckedCreateWithoutDocumentsInput = {
1571
1637
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1572
1638
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1573
1639
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1640
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1641
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1574
1642
  };
1575
1643
  export type UserCreateOrConnectWithoutDocumentsInput = {
1576
1644
  where: Prisma.UserWhereUniqueInput;
@@ -1613,6 +1681,8 @@ export type UserCreateWithoutUpdatedDocumentsInput = {
1613
1681
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1614
1682
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1615
1683
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1684
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1685
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1616
1686
  };
1617
1687
  export type UserUncheckedCreateWithoutUpdatedDocumentsInput = {
1618
1688
  id?: string;
@@ -1651,6 +1721,8 @@ export type UserUncheckedCreateWithoutUpdatedDocumentsInput = {
1651
1721
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1652
1722
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1653
1723
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1724
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1725
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1654
1726
  };
1655
1727
  export type UserCreateOrConnectWithoutUpdatedDocumentsInput = {
1656
1728
  where: Prisma.UserWhereUniqueInput;
@@ -1702,6 +1774,8 @@ export type UserUpdateWithoutDocumentsInput = {
1702
1774
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1703
1775
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1704
1776
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1777
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
1778
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1705
1779
  };
1706
1780
  export type UserUncheckedUpdateWithoutDocumentsInput = {
1707
1781
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1740,6 +1814,8 @@ export type UserUncheckedUpdateWithoutDocumentsInput = {
1740
1814
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1741
1815
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1742
1816
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1817
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
1818
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1743
1819
  };
1744
1820
  export type UserUpsertWithoutUpdatedDocumentsInput = {
1745
1821
  update: Prisma.XOR<Prisma.UserUpdateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedUpdateWithoutUpdatedDocumentsInput>;
@@ -1787,6 +1863,8 @@ export type UserUpdateWithoutUpdatedDocumentsInput = {
1787
1863
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1788
1864
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1789
1865
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1866
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
1867
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1790
1868
  };
1791
1869
  export type UserUncheckedUpdateWithoutUpdatedDocumentsInput = {
1792
1870
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1825,6 +1903,8 @@ export type UserUncheckedUpdateWithoutUpdatedDocumentsInput = {
1825
1903
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1826
1904
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1827
1905
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1906
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
1907
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1828
1908
  };
1829
1909
  export type UserCreateWithoutVersionsInput = {
1830
1910
  id?: string;
@@ -1863,6 +1943,8 @@ export type UserCreateWithoutVersionsInput = {
1863
1943
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1864
1944
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1865
1945
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1946
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
1947
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
1866
1948
  };
1867
1949
  export type UserUncheckedCreateWithoutVersionsInput = {
1868
1950
  id?: string;
@@ -1901,6 +1983,8 @@ export type UserUncheckedCreateWithoutVersionsInput = {
1901
1983
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1902
1984
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1903
1985
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1986
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
1987
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
1904
1988
  };
1905
1989
  export type UserCreateOrConnectWithoutVersionsInput = {
1906
1990
  where: Prisma.UserWhereUniqueInput;
@@ -1952,6 +2036,8 @@ export type UserUpdateWithoutVersionsInput = {
1952
2036
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1953
2037
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1954
2038
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2039
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2040
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
1955
2041
  };
1956
2042
  export type UserUncheckedUpdateWithoutVersionsInput = {
1957
2043
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1990,6 +2076,8 @@ export type UserUncheckedUpdateWithoutVersionsInput = {
1990
2076
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1991
2077
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1992
2078
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2079
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2080
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
1993
2081
  };
1994
2082
  export type UserCreateWithoutMediaInput = {
1995
2083
  id?: string;
@@ -2028,6 +2116,8 @@ export type UserCreateWithoutMediaInput = {
2028
2116
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2029
2117
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2030
2118
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2119
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2120
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2031
2121
  };
2032
2122
  export type UserUncheckedCreateWithoutMediaInput = {
2033
2123
  id?: string;
@@ -2066,6 +2156,8 @@ export type UserUncheckedCreateWithoutMediaInput = {
2066
2156
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2067
2157
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2068
2158
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2159
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
2160
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2069
2161
  };
2070
2162
  export type UserCreateOrConnectWithoutMediaInput = {
2071
2163
  where: Prisma.UserWhereUniqueInput;
@@ -2117,6 +2209,8 @@ export type UserUpdateWithoutMediaInput = {
2117
2209
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2118
2210
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2119
2211
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2212
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2213
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2120
2214
  };
2121
2215
  export type UserUncheckedUpdateWithoutMediaInput = {
2122
2216
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2155,6 +2249,8 @@ export type UserUncheckedUpdateWithoutMediaInput = {
2155
2249
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2156
2250
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2157
2251
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2252
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2253
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
2158
2254
  };
2159
2255
  export type UserCreateWithoutContentLocksInput = {
2160
2256
  id?: string;
@@ -2193,6 +2289,8 @@ export type UserCreateWithoutContentLocksInput = {
2193
2289
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2194
2290
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2195
2291
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2292
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2293
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2196
2294
  };
2197
2295
  export type UserUncheckedCreateWithoutContentLocksInput = {
2198
2296
  id?: string;
@@ -2231,6 +2329,8 @@ export type UserUncheckedCreateWithoutContentLocksInput = {
2231
2329
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2232
2330
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2233
2331
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2332
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
2333
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2234
2334
  };
2235
2335
  export type UserCreateOrConnectWithoutContentLocksInput = {
2236
2336
  where: Prisma.UserWhereUniqueInput;
@@ -2282,6 +2382,8 @@ export type UserUpdateWithoutContentLocksInput = {
2282
2382
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2283
2383
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2284
2384
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2385
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2386
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2285
2387
  };
2286
2388
  export type UserUncheckedUpdateWithoutContentLocksInput = {
2287
2389
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2320,6 +2422,8 @@ export type UserUncheckedUpdateWithoutContentLocksInput = {
2320
2422
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2321
2423
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2322
2424
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2425
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2426
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
2323
2427
  };
2324
2428
  export type UserCreateWithoutNotificationsInput = {
2325
2429
  id?: string;
@@ -2358,6 +2462,8 @@ export type UserCreateWithoutNotificationsInput = {
2358
2462
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2359
2463
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2360
2464
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2465
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2466
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2361
2467
  };
2362
2468
  export type UserUncheckedCreateWithoutNotificationsInput = {
2363
2469
  id?: string;
@@ -2396,6 +2502,8 @@ export type UserUncheckedCreateWithoutNotificationsInput = {
2396
2502
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2397
2503
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2398
2504
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2505
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
2506
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2399
2507
  };
2400
2508
  export type UserCreateOrConnectWithoutNotificationsInput = {
2401
2509
  where: Prisma.UserWhereUniqueInput;
@@ -2447,6 +2555,8 @@ export type UserUpdateWithoutNotificationsInput = {
2447
2555
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2448
2556
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2449
2557
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2558
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2559
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2450
2560
  };
2451
2561
  export type UserUncheckedUpdateWithoutNotificationsInput = {
2452
2562
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2485,6 +2595,8 @@ export type UserUncheckedUpdateWithoutNotificationsInput = {
2485
2595
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2486
2596
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2487
2597
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2598
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2599
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
2488
2600
  };
2489
2601
  export type UserCreateWithoutContentTemplatesInput = {
2490
2602
  id?: string;
@@ -2523,6 +2635,8 @@ export type UserCreateWithoutContentTemplatesInput = {
2523
2635
  notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2524
2636
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2525
2637
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2638
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2639
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2526
2640
  };
2527
2641
  export type UserUncheckedCreateWithoutContentTemplatesInput = {
2528
2642
  id?: string;
@@ -2561,6 +2675,8 @@ export type UserUncheckedCreateWithoutContentTemplatesInput = {
2561
2675
  notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2562
2676
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2563
2677
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2678
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
2679
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2564
2680
  };
2565
2681
  export type UserCreateOrConnectWithoutContentTemplatesInput = {
2566
2682
  where: Prisma.UserWhereUniqueInput;
@@ -2612,6 +2728,8 @@ export type UserUpdateWithoutContentTemplatesInput = {
2612
2728
  notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2613
2729
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2614
2730
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2731
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2732
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2615
2733
  };
2616
2734
  export type UserUncheckedUpdateWithoutContentTemplatesInput = {
2617
2735
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2650,6 +2768,8 @@ export type UserUncheckedUpdateWithoutContentTemplatesInput = {
2650
2768
  notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2651
2769
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2652
2770
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2771
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2772
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
2653
2773
  };
2654
2774
  export type UserCreateWithoutWorkflowAssignedInput = {
2655
2775
  id?: string;
@@ -2688,6 +2808,8 @@ export type UserCreateWithoutWorkflowAssignedInput = {
2688
2808
  notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2689
2809
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2690
2810
  passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2811
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2812
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2691
2813
  };
2692
2814
  export type UserUncheckedCreateWithoutWorkflowAssignedInput = {
2693
2815
  id?: string;
@@ -2726,6 +2848,8 @@ export type UserUncheckedCreateWithoutWorkflowAssignedInput = {
2726
2848
  notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2727
2849
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2728
2850
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2851
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
2852
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2729
2853
  };
2730
2854
  export type UserCreateOrConnectWithoutWorkflowAssignedInput = {
2731
2855
  where: Prisma.UserWhereUniqueInput;
@@ -2777,6 +2901,8 @@ export type UserUpdateWithoutWorkflowAssignedInput = {
2777
2901
  notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2778
2902
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2779
2903
  passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2904
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
2905
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2780
2906
  };
2781
2907
  export type UserUncheckedUpdateWithoutWorkflowAssignedInput = {
2782
2908
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2815,6 +2941,8 @@ export type UserUncheckedUpdateWithoutWorkflowAssignedInput = {
2815
2941
  notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2816
2942
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2817
2943
  passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2944
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2945
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
2818
2946
  };
2819
2947
  export type UserCreateWithoutPasswordResetTokensInput = {
2820
2948
  id?: string;
@@ -2853,6 +2981,8 @@ export type UserCreateWithoutPasswordResetTokensInput = {
2853
2981
  notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2854
2982
  contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2855
2983
  workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2984
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
2985
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
2856
2986
  };
2857
2987
  export type UserUncheckedCreateWithoutPasswordResetTokensInput = {
2858
2988
  id?: string;
@@ -2891,6 +3021,8 @@ export type UserUncheckedCreateWithoutPasswordResetTokensInput = {
2891
3021
  notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2892
3022
  contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2893
3023
  workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
3024
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
3025
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
2894
3026
  };
2895
3027
  export type UserCreateOrConnectWithoutPasswordResetTokensInput = {
2896
3028
  where: Prisma.UserWhereUniqueInput;
@@ -2942,6 +3074,8 @@ export type UserUpdateWithoutPasswordResetTokensInput = {
2942
3074
  notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2943
3075
  contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2944
3076
  workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
3077
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
3078
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
2945
3079
  };
2946
3080
  export type UserUncheckedUpdateWithoutPasswordResetTokensInput = {
2947
3081
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2980,6 +3114,354 @@ export type UserUncheckedUpdateWithoutPasswordResetTokensInput = {
2980
3114
  notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2981
3115
  contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2982
3116
  workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
3117
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
3118
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
3119
+ };
3120
+ export type UserCreateWithoutDocumentCommentsInput = {
3121
+ id?: string;
3122
+ email: string;
3123
+ name: string;
3124
+ avatarUrl?: string | null;
3125
+ role?: $Enums.UserRole;
3126
+ passwordHash?: string | null;
3127
+ totpSecret?: string | null;
3128
+ totpEnabled?: boolean;
3129
+ lastTotpStep?: number | null;
3130
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3131
+ authProvider?: string | null;
3132
+ isActive?: boolean;
3133
+ isApproved?: boolean;
3134
+ emailVerified?: boolean;
3135
+ lastLoginAt?: Date | string | null;
3136
+ createdAt?: Date | string;
3137
+ updatedAt?: Date | string;
3138
+ suspendedAt?: Date | string | null;
3139
+ lockedAt?: Date | string | null;
3140
+ forcePasswordReset?: boolean;
3141
+ mfaRequired?: boolean;
3142
+ failedLoginCount?: number;
3143
+ lastActiveAt?: Date | string | null;
3144
+ invitedById?: string | null;
3145
+ acceptedInviteAt?: Date | string | null;
3146
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
3147
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
3148
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
3149
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
3150
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
3151
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
3152
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
3153
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
3154
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
3155
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
3156
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
3157
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
3158
+ documentNotifications?: Prisma.DocumentNotificationCreateNestedManyWithoutUserInput;
3159
+ };
3160
+ export type UserUncheckedCreateWithoutDocumentCommentsInput = {
3161
+ id?: string;
3162
+ email: string;
3163
+ name: string;
3164
+ avatarUrl?: string | null;
3165
+ role?: $Enums.UserRole;
3166
+ passwordHash?: string | null;
3167
+ totpSecret?: string | null;
3168
+ totpEnabled?: boolean;
3169
+ lastTotpStep?: number | null;
3170
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3171
+ authProvider?: string | null;
3172
+ isActive?: boolean;
3173
+ isApproved?: boolean;
3174
+ emailVerified?: boolean;
3175
+ lastLoginAt?: Date | string | null;
3176
+ createdAt?: Date | string;
3177
+ updatedAt?: Date | string;
3178
+ suspendedAt?: Date | string | null;
3179
+ lockedAt?: Date | string | null;
3180
+ forcePasswordReset?: boolean;
3181
+ mfaRequired?: boolean;
3182
+ failedLoginCount?: number;
3183
+ lastActiveAt?: Date | string | null;
3184
+ invitedById?: string | null;
3185
+ acceptedInviteAt?: Date | string | null;
3186
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
3187
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
3188
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
3189
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
3190
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
3191
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
3192
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
3193
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
3194
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
3195
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
3196
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
3197
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
3198
+ documentNotifications?: Prisma.DocumentNotificationUncheckedCreateNestedManyWithoutUserInput;
3199
+ };
3200
+ export type UserCreateOrConnectWithoutDocumentCommentsInput = {
3201
+ where: Prisma.UserWhereUniqueInput;
3202
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentCommentsInput, Prisma.UserUncheckedCreateWithoutDocumentCommentsInput>;
3203
+ };
3204
+ export type UserUpsertWithoutDocumentCommentsInput = {
3205
+ update: Prisma.XOR<Prisma.UserUpdateWithoutDocumentCommentsInput, Prisma.UserUncheckedUpdateWithoutDocumentCommentsInput>;
3206
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentCommentsInput, Prisma.UserUncheckedCreateWithoutDocumentCommentsInput>;
3207
+ where?: Prisma.UserWhereInput;
3208
+ };
3209
+ export type UserUpdateToOneWithWhereWithoutDocumentCommentsInput = {
3210
+ where?: Prisma.UserWhereInput;
3211
+ data: Prisma.XOR<Prisma.UserUpdateWithoutDocumentCommentsInput, Prisma.UserUncheckedUpdateWithoutDocumentCommentsInput>;
3212
+ };
3213
+ export type UserUpdateWithoutDocumentCommentsInput = {
3214
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3215
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
3216
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3217
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3218
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
3219
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3220
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3221
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3222
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3223
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3224
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3225
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3226
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3227
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3228
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3229
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3230
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3231
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3232
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3233
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3234
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3235
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
3236
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3237
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3238
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3239
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
3240
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
3241
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
3242
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
3243
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
3244
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
3245
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
3246
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
3247
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
3248
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
3249
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
3250
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
3251
+ documentNotifications?: Prisma.DocumentNotificationUpdateManyWithoutUserNestedInput;
3252
+ };
3253
+ export type UserUncheckedUpdateWithoutDocumentCommentsInput = {
3254
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3255
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
3256
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3257
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3258
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
3259
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3260
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3261
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3262
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3263
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3264
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3265
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3266
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3267
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3268
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3269
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3270
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3271
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3272
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3273
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3274
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3275
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
3276
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3277
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3278
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3279
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
3280
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
3281
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
3282
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
3283
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
3284
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
3285
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
3286
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
3287
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
3288
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
3289
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
3290
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
3291
+ documentNotifications?: Prisma.DocumentNotificationUncheckedUpdateManyWithoutUserNestedInput;
3292
+ };
3293
+ export type UserCreateWithoutDocumentNotificationsInput = {
3294
+ id?: string;
3295
+ email: string;
3296
+ name: string;
3297
+ avatarUrl?: string | null;
3298
+ role?: $Enums.UserRole;
3299
+ passwordHash?: string | null;
3300
+ totpSecret?: string | null;
3301
+ totpEnabled?: boolean;
3302
+ lastTotpStep?: number | null;
3303
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3304
+ authProvider?: string | null;
3305
+ isActive?: boolean;
3306
+ isApproved?: boolean;
3307
+ emailVerified?: boolean;
3308
+ lastLoginAt?: Date | string | null;
3309
+ createdAt?: Date | string;
3310
+ updatedAt?: Date | string;
3311
+ suspendedAt?: Date | string | null;
3312
+ lockedAt?: Date | string | null;
3313
+ forcePasswordReset?: boolean;
3314
+ mfaRequired?: boolean;
3315
+ failedLoginCount?: number;
3316
+ lastActiveAt?: Date | string | null;
3317
+ invitedById?: string | null;
3318
+ acceptedInviteAt?: Date | string | null;
3319
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
3320
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
3321
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
3322
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
3323
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
3324
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
3325
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
3326
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
3327
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
3328
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
3329
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
3330
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
3331
+ documentComments?: Prisma.DocumentCommentCreateNestedManyWithoutUserInput;
3332
+ };
3333
+ export type UserUncheckedCreateWithoutDocumentNotificationsInput = {
3334
+ id?: string;
3335
+ email: string;
3336
+ name: string;
3337
+ avatarUrl?: string | null;
3338
+ role?: $Enums.UserRole;
3339
+ passwordHash?: string | null;
3340
+ totpSecret?: string | null;
3341
+ totpEnabled?: boolean;
3342
+ lastTotpStep?: number | null;
3343
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3344
+ authProvider?: string | null;
3345
+ isActive?: boolean;
3346
+ isApproved?: boolean;
3347
+ emailVerified?: boolean;
3348
+ lastLoginAt?: Date | string | null;
3349
+ createdAt?: Date | string;
3350
+ updatedAt?: Date | string;
3351
+ suspendedAt?: Date | string | null;
3352
+ lockedAt?: Date | string | null;
3353
+ forcePasswordReset?: boolean;
3354
+ mfaRequired?: boolean;
3355
+ failedLoginCount?: number;
3356
+ lastActiveAt?: Date | string | null;
3357
+ invitedById?: string | null;
3358
+ acceptedInviteAt?: Date | string | null;
3359
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
3360
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
3361
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
3362
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
3363
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
3364
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
3365
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
3366
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
3367
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
3368
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
3369
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
3370
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
3371
+ documentComments?: Prisma.DocumentCommentUncheckedCreateNestedManyWithoutUserInput;
3372
+ };
3373
+ export type UserCreateOrConnectWithoutDocumentNotificationsInput = {
3374
+ where: Prisma.UserWhereUniqueInput;
3375
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentNotificationsInput, Prisma.UserUncheckedCreateWithoutDocumentNotificationsInput>;
3376
+ };
3377
+ export type UserUpsertWithoutDocumentNotificationsInput = {
3378
+ update: Prisma.XOR<Prisma.UserUpdateWithoutDocumentNotificationsInput, Prisma.UserUncheckedUpdateWithoutDocumentNotificationsInput>;
3379
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentNotificationsInput, Prisma.UserUncheckedCreateWithoutDocumentNotificationsInput>;
3380
+ where?: Prisma.UserWhereInput;
3381
+ };
3382
+ export type UserUpdateToOneWithWhereWithoutDocumentNotificationsInput = {
3383
+ where?: Prisma.UserWhereInput;
3384
+ data: Prisma.XOR<Prisma.UserUpdateWithoutDocumentNotificationsInput, Prisma.UserUncheckedUpdateWithoutDocumentNotificationsInput>;
3385
+ };
3386
+ export type UserUpdateWithoutDocumentNotificationsInput = {
3387
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3388
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
3389
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3390
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3391
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
3392
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3393
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3394
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3395
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3396
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3397
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3398
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3399
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3400
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3401
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3402
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3403
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3404
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3405
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3406
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3407
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3408
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
3409
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3410
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3411
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3412
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
3413
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
3414
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
3415
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
3416
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
3417
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
3418
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
3419
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
3420
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
3421
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
3422
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
3423
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
3424
+ documentComments?: Prisma.DocumentCommentUpdateManyWithoutUserNestedInput;
3425
+ };
3426
+ export type UserUncheckedUpdateWithoutDocumentNotificationsInput = {
3427
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
3428
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
3429
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
3430
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3431
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
3432
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3433
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3434
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3435
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
3436
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
3437
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3438
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3439
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3440
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3441
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3442
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3443
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
3444
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3445
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3446
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3447
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
3448
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
3449
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3450
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
3451
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
3452
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
3453
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
3454
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
3455
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
3456
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
3457
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
3458
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
3459
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
3460
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
3461
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
3462
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
3463
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
3464
+ documentComments?: Prisma.DocumentCommentUncheckedUpdateManyWithoutUserNestedInput;
2983
3465
  };
2984
3466
  /**
2985
3467
  * Count Type UserCountOutputType
@@ -2997,6 +3479,8 @@ export type UserCountOutputType = {
2997
3479
  contentTemplates: number;
2998
3480
  workflowAssigned: number;
2999
3481
  passwordResetTokens: number;
3482
+ documentComments: number;
3483
+ documentNotifications: number;
3000
3484
  };
3001
3485
  export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3002
3486
  sessions?: boolean | UserCountOutputTypeCountSessionsArgs;
@@ -3011,6 +3495,8 @@ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.I
3011
3495
  contentTemplates?: boolean | UserCountOutputTypeCountContentTemplatesArgs;
3012
3496
  workflowAssigned?: boolean | UserCountOutputTypeCountWorkflowAssignedArgs;
3013
3497
  passwordResetTokens?: boolean | UserCountOutputTypeCountPasswordResetTokensArgs;
3498
+ documentComments?: boolean | UserCountOutputTypeCountDocumentCommentsArgs;
3499
+ documentNotifications?: boolean | UserCountOutputTypeCountDocumentNotificationsArgs;
3014
3500
  };
3015
3501
  /**
3016
3502
  * UserCountOutputType without action
@@ -3093,6 +3579,18 @@ export type UserCountOutputTypeCountWorkflowAssignedArgs<ExtArgs extends runtime
3093
3579
  export type UserCountOutputTypeCountPasswordResetTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3094
3580
  where?: Prisma.PasswordResetTokenWhereInput;
3095
3581
  };
3582
+ /**
3583
+ * UserCountOutputType without action
3584
+ */
3585
+ export type UserCountOutputTypeCountDocumentCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3586
+ where?: Prisma.DocumentCommentWhereInput;
3587
+ };
3588
+ /**
3589
+ * UserCountOutputType without action
3590
+ */
3591
+ export type UserCountOutputTypeCountDocumentNotificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3592
+ where?: Prisma.DocumentNotificationWhereInput;
3593
+ };
3096
3594
  export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3097
3595
  id?: boolean;
3098
3596
  email?: boolean;
@@ -3131,6 +3629,8 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
3131
3629
  contentTemplates?: boolean | Prisma.User$contentTemplatesArgs<ExtArgs>;
3132
3630
  workflowAssigned?: boolean | Prisma.User$workflowAssignedArgs<ExtArgs>;
3133
3631
  passwordResetTokens?: boolean | Prisma.User$passwordResetTokensArgs<ExtArgs>;
3632
+ documentComments?: boolean | Prisma.User$documentCommentsArgs<ExtArgs>;
3633
+ documentNotifications?: boolean | Prisma.User$documentNotificationsArgs<ExtArgs>;
3134
3634
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3135
3635
  }, ExtArgs["result"]["user"]>;
3136
3636
  export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -3228,6 +3728,8 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3228
3728
  contentTemplates?: boolean | Prisma.User$contentTemplatesArgs<ExtArgs>;
3229
3729
  workflowAssigned?: boolean | Prisma.User$workflowAssignedArgs<ExtArgs>;
3230
3730
  passwordResetTokens?: boolean | Prisma.User$passwordResetTokensArgs<ExtArgs>;
3731
+ documentComments?: boolean | Prisma.User$documentCommentsArgs<ExtArgs>;
3732
+ documentNotifications?: boolean | Prisma.User$documentNotificationsArgs<ExtArgs>;
3231
3733
  _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3232
3734
  };
3233
3735
  export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
@@ -3247,6 +3749,8 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
3247
3749
  contentTemplates: Prisma.$ContentTemplatePayload<ExtArgs>[];
3248
3750
  workflowAssigned: Prisma.$WorkflowStatePayload<ExtArgs>[];
3249
3751
  passwordResetTokens: Prisma.$PasswordResetTokenPayload<ExtArgs>[];
3752
+ documentComments: Prisma.$DocumentCommentPayload<ExtArgs>[];
3753
+ documentNotifications: Prisma.$DocumentNotificationPayload<ExtArgs>[];
3250
3754
  };
3251
3755
  scalars: runtime.Types.Extensions.GetPayloadResult<{
3252
3756
  id: string;
@@ -3615,6 +4119,8 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
3615
4119
  contentTemplates<T extends Prisma.User$contentTemplatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$contentTemplatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3616
4120
  workflowAssigned<T extends Prisma.User$workflowAssignedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$workflowAssignedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3617
4121
  passwordResetTokens<T extends Prisma.User$passwordResetTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$passwordResetTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PasswordResetTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4122
+ documentComments<T extends Prisma.User$documentCommentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$documentCommentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
4123
+ documentNotifications<T extends Prisma.User$documentNotificationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$documentNotificationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentNotificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3618
4124
  /**
3619
4125
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3620
4126
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4325,6 +4831,52 @@ export type User$passwordResetTokensArgs<ExtArgs extends runtime.Types.Extension
4325
4831
  skip?: number;
4326
4832
  distinct?: Prisma.PasswordResetTokenScalarFieldEnum | Prisma.PasswordResetTokenScalarFieldEnum[];
4327
4833
  };
4834
+ /**
4835
+ * User.documentComments
4836
+ */
4837
+ export type User$documentCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4838
+ /**
4839
+ * Select specific fields to fetch from the DocumentComment
4840
+ */
4841
+ select?: Prisma.DocumentCommentSelect<ExtArgs> | null;
4842
+ /**
4843
+ * Omit specific fields from the DocumentComment
4844
+ */
4845
+ omit?: Prisma.DocumentCommentOmit<ExtArgs> | null;
4846
+ /**
4847
+ * Choose, which related nodes to fetch as well
4848
+ */
4849
+ include?: Prisma.DocumentCommentInclude<ExtArgs> | null;
4850
+ where?: Prisma.DocumentCommentWhereInput;
4851
+ orderBy?: Prisma.DocumentCommentOrderByWithRelationInput | Prisma.DocumentCommentOrderByWithRelationInput[];
4852
+ cursor?: Prisma.DocumentCommentWhereUniqueInput;
4853
+ take?: number;
4854
+ skip?: number;
4855
+ distinct?: Prisma.DocumentCommentScalarFieldEnum | Prisma.DocumentCommentScalarFieldEnum[];
4856
+ };
4857
+ /**
4858
+ * User.documentNotifications
4859
+ */
4860
+ export type User$documentNotificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4861
+ /**
4862
+ * Select specific fields to fetch from the DocumentNotification
4863
+ */
4864
+ select?: Prisma.DocumentNotificationSelect<ExtArgs> | null;
4865
+ /**
4866
+ * Omit specific fields from the DocumentNotification
4867
+ */
4868
+ omit?: Prisma.DocumentNotificationOmit<ExtArgs> | null;
4869
+ /**
4870
+ * Choose, which related nodes to fetch as well
4871
+ */
4872
+ include?: Prisma.DocumentNotificationInclude<ExtArgs> | null;
4873
+ where?: Prisma.DocumentNotificationWhereInput;
4874
+ orderBy?: Prisma.DocumentNotificationOrderByWithRelationInput | Prisma.DocumentNotificationOrderByWithRelationInput[];
4875
+ cursor?: Prisma.DocumentNotificationWhereUniqueInput;
4876
+ take?: number;
4877
+ skip?: number;
4878
+ distinct?: Prisma.DocumentNotificationScalarFieldEnum | Prisma.DocumentNotificationScalarFieldEnum[];
4879
+ };
4328
4880
  /**
4329
4881
  * User without action
4330
4882
  */