@prenta/core 4.3.2 → 5.0.1

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 (161) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/actions.d.ts +8 -0
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +60 -21
  5. package/dist/actions.js.map +1 -1
  6. package/dist/ai/brand-voice-document.d.ts.map +1 -1
  7. package/dist/ai/brand-voice-document.js +4 -2
  8. package/dist/ai/brand-voice-document.js.map +1 -1
  9. package/dist/ai/brand-voice-structured.d.ts.map +1 -1
  10. package/dist/ai/brand-voice-structured.js +24 -9
  11. package/dist/ai/brand-voice-structured.js.map +1 -1
  12. package/dist/api/auth-context.d.ts +3 -0
  13. package/dist/api/auth-context.d.ts.map +1 -0
  14. package/dist/api/auth-context.js +3 -0
  15. package/dist/api/auth-context.js.map +1 -0
  16. package/dist/api/handler-factory.d.ts.map +1 -1
  17. package/dist/api/handler-factory.js +8 -2
  18. package/dist/api/handler-factory.js.map +1 -1
  19. package/dist/api/index.d.ts +2 -0
  20. package/dist/api/index.d.ts.map +1 -1
  21. package/dist/api/index.js +2 -0
  22. package/dist/api/index.js.map +1 -1
  23. package/dist/api/limiters.d.ts +3 -0
  24. package/dist/api/limiters.d.ts.map +1 -0
  25. package/dist/api/limiters.js +3 -0
  26. package/dist/api/limiters.js.map +1 -0
  27. package/dist/api/pagination.d.ts +3 -0
  28. package/dist/api/pagination.d.ts.map +1 -0
  29. package/dist/api/pagination.js +3 -0
  30. package/dist/api/pagination.js.map +1 -0
  31. package/dist/api/responses.d.ts +3 -0
  32. package/dist/api/responses.d.ts.map +1 -0
  33. package/dist/api/responses.js +3 -0
  34. package/dist/api/responses.js.map +1 -0
  35. package/dist/api/route-helpers.d.ts +12 -0
  36. package/dist/api/route-helpers.d.ts.map +1 -1
  37. package/dist/api/route-helpers.js +47 -2
  38. package/dist/api/route-helpers.js.map +1 -1
  39. package/dist/api/routes/auth.d.ts.map +1 -1
  40. package/dist/api/routes/auth.js +103 -30
  41. package/dist/api/routes/auth.js.map +1 -1
  42. package/dist/api/routes/dashboard.d.ts.map +1 -1
  43. package/dist/api/routes/dashboard.js +11 -4
  44. package/dist/api/routes/dashboard.js.map +1 -1
  45. package/dist/api/routes/documents.d.ts.map +1 -1
  46. package/dist/api/routes/documents.js +11 -1
  47. package/dist/api/routes/documents.js.map +1 -1
  48. package/dist/api/routes/media.d.ts.map +1 -1
  49. package/dist/api/routes/media.js +7 -24
  50. package/dist/api/routes/media.js.map +1 -1
  51. package/dist/api/routes/meta.js +1 -1
  52. package/dist/api/routes/meta.js.map +1 -1
  53. package/dist/api/routes/seo-public.d.ts.map +1 -1
  54. package/dist/api/routes/seo-public.js +12 -4
  55. package/dist/api/routes/seo-public.js.map +1 -1
  56. package/dist/api/routes/seo.d.ts.map +1 -1
  57. package/dist/api/routes/seo.js +4 -0
  58. package/dist/api/routes/seo.js.map +1 -1
  59. package/dist/api/routes/system.d.ts.map +1 -1
  60. package/dist/api/routes/system.js +101 -1
  61. package/dist/api/routes/system.js.map +1 -1
  62. package/dist/api/routes/users.d.ts.map +1 -1
  63. package/dist/api/routes/users.js +4 -1
  64. package/dist/api/routes/users.js.map +1 -1
  65. package/dist/auth/oauth.js +2 -2
  66. package/dist/auth/oauth.js.map +1 -1
  67. package/dist/auth/session.d.ts +2 -0
  68. package/dist/auth/session.d.ts.map +1 -1
  69. package/dist/auth/session.js +5 -0
  70. package/dist/auth/session.js.map +1 -1
  71. package/dist/auth/user-admin.d.ts +2 -0
  72. package/dist/auth/user-admin.d.ts.map +1 -1
  73. package/dist/auth/user-admin.js +16 -0
  74. package/dist/auth/user-admin.js.map +1 -1
  75. package/dist/cache/http.d.ts.map +1 -1
  76. package/dist/cache/http.js +4 -2
  77. package/dist/cache/http.js.map +1 -1
  78. package/dist/content/extract.js +1 -1
  79. package/dist/content/extract.js.map +1 -1
  80. package/dist/content-health/scanner.d.ts.map +1 -1
  81. package/dist/content-health/scanner.js +5 -4
  82. package/dist/content-health/scanner.js.map +1 -1
  83. package/dist/db/model-types.d.ts +0 -36
  84. package/dist/db/model-types.d.ts.map +1 -1
  85. package/dist/diagnostics/logger.d.ts.map +1 -1
  86. package/dist/diagnostics/logger.js +22 -28
  87. package/dist/diagnostics/logger.js.map +1 -1
  88. package/dist/diagnostics/sentry.d.ts.map +1 -1
  89. package/dist/diagnostics/sentry.js +12 -0
  90. package/dist/diagnostics/sentry.js.map +1 -1
  91. package/dist/forms/files.d.ts +2 -2
  92. package/dist/forms/files.d.ts.map +1 -1
  93. package/dist/forms/files.js +2 -14
  94. package/dist/forms/files.js.map +1 -1
  95. package/dist/forms/submission.d.ts.map +1 -1
  96. package/dist/forms/submission.js +6 -4
  97. package/dist/forms/submission.js.map +1 -1
  98. package/dist/generated/browser.d.ts +0 -15
  99. package/dist/generated/client.d.ts +0 -15
  100. package/dist/generated/internal/class.d.ts +0 -33
  101. package/dist/generated/internal/class.js +4 -4
  102. package/dist/generated/internal/prismaNamespace.d.ts +1 -282
  103. package/dist/generated/internal/prismaNamespace.js +0 -50
  104. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +0 -56
  105. package/dist/generated/internal/prismaNamespaceBrowser.js +0 -50
  106. package/dist/generated/models/ContentLock.d.ts +2 -2
  107. package/dist/generated/models/Document.d.ts +1 -274
  108. package/dist/generated/models/User.d.ts +0 -281
  109. package/dist/generated/models.d.ts +0 -3
  110. package/dist/index.d.ts +1 -1
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +1 -1
  113. package/dist/index.js.map +1 -1
  114. package/dist/presence/index.d.ts.map +1 -1
  115. package/dist/presence/index.js +6 -2
  116. package/dist/presence/index.js.map +1 -1
  117. package/dist/security/access.d.ts +9 -5
  118. package/dist/security/access.d.ts.map +1 -1
  119. package/dist/security/access.js +28 -15
  120. package/dist/security/access.js.map +1 -1
  121. package/dist/security/audit.d.ts.map +1 -1
  122. package/dist/security/audit.js +1 -0
  123. package/dist/security/audit.js.map +1 -1
  124. package/dist/security/center/index.d.ts +2 -2
  125. package/dist/security/center/index.d.ts.map +1 -1
  126. package/dist/security/center/index.js +1 -1
  127. package/dist/security/center/index.js.map +1 -1
  128. package/dist/security/center/settings.d.ts +2 -0
  129. package/dist/security/center/settings.d.ts.map +1 -1
  130. package/dist/security/center/settings.js +38 -0
  131. package/dist/security/center/settings.js.map +1 -1
  132. package/dist/security/center/types.d.ts +8 -0
  133. package/dist/security/center/types.d.ts.map +1 -1
  134. package/dist/security/encrypted-fields.d.ts +1 -1
  135. package/dist/security/encrypted-fields.d.ts.map +1 -1
  136. package/dist/security/encrypted-fields.js +4 -3
  137. package/dist/security/encrypted-fields.js.map +1 -1
  138. package/dist/security/index.d.ts +1 -1
  139. package/dist/security/index.d.ts.map +1 -1
  140. package/dist/security/index.js +1 -1
  141. package/dist/security/index.js.map +1 -1
  142. package/dist/security/upload.d.ts +10 -0
  143. package/dist/security/upload.d.ts.map +1 -1
  144. package/dist/security/upload.js +32 -0
  145. package/dist/security/upload.js.map +1 -1
  146. package/dist/seo/llms-txt.d.ts.map +1 -1
  147. package/dist/seo/llms-txt.js +1 -0
  148. package/dist/seo/llms-txt.js.map +1 -1
  149. package/dist/seo/normalize-internal-hrefs.d.ts.map +1 -1
  150. package/dist/seo/normalize-internal-hrefs.js +10 -0
  151. package/dist/seo/normalize-internal-hrefs.js.map +1 -1
  152. package/package.json +2 -1
  153. package/prisma/migrations/0015_audit_remediation_indexes/migration.sql +79 -0
  154. package/prisma/schema.prisma +4 -47
  155. package/schema-fragments/cms-schema.prisma +0 -1
  156. package/dist/generated/models/BackupRecord.d.ts +0 -1100
  157. package/dist/generated/models/BackupRecord.js +0 -1
  158. package/dist/generated/models/Site.d.ts +0 -1062
  159. package/dist/generated/models/Site.js +0 -1
  160. package/dist/generated/models/WorkflowState.d.ts +0 -1436
  161. package/dist/generated/models/WorkflowState.js +0 -1
@@ -27,7 +27,6 @@ export type DocumentMinAggregateOutputType = {
27
27
  deletedAt: Date | null;
28
28
  plainText: string | null;
29
29
  contentHash: string | null;
30
- siteId: string | null;
31
30
  templateId: string | null;
32
31
  workflowStage: $Enums.WorkflowStage | null;
33
32
  reviewerId: string | null;
@@ -52,7 +51,6 @@ export type DocumentMaxAggregateOutputType = {
52
51
  deletedAt: Date | null;
53
52
  plainText: string | null;
54
53
  contentHash: string | null;
55
- siteId: string | null;
56
54
  templateId: string | null;
57
55
  workflowStage: $Enums.WorkflowStage | null;
58
56
  reviewerId: string | null;
@@ -80,7 +78,6 @@ export type DocumentCountAggregateOutputType = {
80
78
  contentHash: number;
81
79
  structuredData: number;
82
80
  contentGraph: number;
83
- siteId: number;
84
81
  templateId: number;
85
82
  workflowStage: number;
86
83
  reviewerId: number;
@@ -106,7 +103,6 @@ export type DocumentMinAggregateInputType = {
106
103
  deletedAt?: true;
107
104
  plainText?: true;
108
105
  contentHash?: true;
109
- siteId?: true;
110
106
  templateId?: true;
111
107
  workflowStage?: true;
112
108
  reviewerId?: true;
@@ -131,7 +127,6 @@ export type DocumentMaxAggregateInputType = {
131
127
  deletedAt?: true;
132
128
  plainText?: true;
133
129
  contentHash?: true;
134
- siteId?: true;
135
130
  templateId?: true;
136
131
  workflowStage?: true;
137
132
  reviewerId?: true;
@@ -159,7 +154,6 @@ export type DocumentCountAggregateInputType = {
159
154
  contentHash?: true;
160
155
  structuredData?: true;
161
156
  contentGraph?: true;
162
- siteId?: true;
163
157
  templateId?: true;
164
158
  workflowStage?: true;
165
159
  reviewerId?: true;
@@ -250,7 +244,6 @@ export type DocumentGroupByOutputType = {
250
244
  contentHash: string | null;
251
245
  structuredData: runtime.JsonValue | null;
252
246
  contentGraph: runtime.JsonValue | null;
253
- siteId: string | null;
254
247
  templateId: string | null;
255
248
  workflowStage: $Enums.WorkflowStage;
256
249
  reviewerId: string | null;
@@ -287,7 +280,6 @@ export type DocumentWhereInput = {
287
280
  contentHash?: Prisma.StringNullableFilter<"Document"> | string | null;
288
281
  structuredData?: Prisma.JsonNullableFilter<"Document">;
289
282
  contentGraph?: Prisma.JsonNullableFilter<"Document">;
290
- siteId?: Prisma.StringNullableFilter<"Document"> | string | null;
291
283
  templateId?: Prisma.StringNullableFilter<"Document"> | string | null;
292
284
  workflowStage?: Prisma.EnumWorkflowStageFilter<"Document"> | $Enums.WorkflowStage;
293
285
  reviewerId?: Prisma.StringNullableFilter<"Document"> | string | null;
@@ -302,7 +294,6 @@ export type DocumentWhereInput = {
302
294
  mediaUsages?: Prisma.MediaUsageListRelationFilter;
303
295
  contentLocks?: Prisma.ContentLockListRelationFilter;
304
296
  contentIssues?: Prisma.ContentIssueListRelationFilter;
305
- workflowState?: Prisma.XOR<Prisma.WorkflowStateNullableScalarRelationFilter, Prisma.WorkflowStateWhereInput> | null;
306
297
  };
307
298
  export type DocumentOrderByWithRelationInput = {
308
299
  id?: Prisma.SortOrder;
@@ -323,7 +314,6 @@ export type DocumentOrderByWithRelationInput = {
323
314
  contentHash?: Prisma.SortOrderInput | Prisma.SortOrder;
324
315
  structuredData?: Prisma.SortOrderInput | Prisma.SortOrder;
325
316
  contentGraph?: Prisma.SortOrderInput | Prisma.SortOrder;
326
- siteId?: Prisma.SortOrderInput | Prisma.SortOrder;
327
317
  templateId?: Prisma.SortOrderInput | Prisma.SortOrder;
328
318
  workflowStage?: Prisma.SortOrder;
329
319
  reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -338,7 +328,6 @@ export type DocumentOrderByWithRelationInput = {
338
328
  mediaUsages?: Prisma.MediaUsageOrderByRelationAggregateInput;
339
329
  contentLocks?: Prisma.ContentLockOrderByRelationAggregateInput;
340
330
  contentIssues?: Prisma.ContentIssueOrderByRelationAggregateInput;
341
- workflowState?: Prisma.WorkflowStateOrderByWithRelationInput;
342
331
  _relevance?: Prisma.DocumentOrderByRelevanceInput;
343
332
  };
344
333
  export type DocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -364,7 +353,6 @@ export type DocumentWhereUniqueInput = Prisma.AtLeast<{
364
353
  contentHash?: Prisma.StringNullableFilter<"Document"> | string | null;
365
354
  structuredData?: Prisma.JsonNullableFilter<"Document">;
366
355
  contentGraph?: Prisma.JsonNullableFilter<"Document">;
367
- siteId?: Prisma.StringNullableFilter<"Document"> | string | null;
368
356
  templateId?: Prisma.StringNullableFilter<"Document"> | string | null;
369
357
  workflowStage?: Prisma.EnumWorkflowStageFilter<"Document"> | $Enums.WorkflowStage;
370
358
  reviewerId?: Prisma.StringNullableFilter<"Document"> | string | null;
@@ -379,7 +367,6 @@ export type DocumentWhereUniqueInput = Prisma.AtLeast<{
379
367
  mediaUsages?: Prisma.MediaUsageListRelationFilter;
380
368
  contentLocks?: Prisma.ContentLockListRelationFilter;
381
369
  contentIssues?: Prisma.ContentIssueListRelationFilter;
382
- workflowState?: Prisma.XOR<Prisma.WorkflowStateNullableScalarRelationFilter, Prisma.WorkflowStateWhereInput> | null;
383
370
  }, "id" | "collection_slug">;
384
371
  export type DocumentOrderByWithAggregationInput = {
385
372
  id?: Prisma.SortOrder;
@@ -400,7 +387,6 @@ export type DocumentOrderByWithAggregationInput = {
400
387
  contentHash?: Prisma.SortOrderInput | Prisma.SortOrder;
401
388
  structuredData?: Prisma.SortOrderInput | Prisma.SortOrder;
402
389
  contentGraph?: Prisma.SortOrderInput | Prisma.SortOrder;
403
- siteId?: Prisma.SortOrderInput | Prisma.SortOrder;
404
390
  templateId?: Prisma.SortOrderInput | Prisma.SortOrder;
405
391
  workflowStage?: Prisma.SortOrder;
406
392
  reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder;
@@ -434,7 +420,6 @@ export type DocumentScalarWhereWithAggregatesInput = {
434
420
  contentHash?: Prisma.StringNullableWithAggregatesFilter<"Document"> | string | null;
435
421
  structuredData?: Prisma.JsonNullableWithAggregatesFilter<"Document">;
436
422
  contentGraph?: Prisma.JsonNullableWithAggregatesFilter<"Document">;
437
- siteId?: Prisma.StringNullableWithAggregatesFilter<"Document"> | string | null;
438
423
  templateId?: Prisma.StringNullableWithAggregatesFilter<"Document"> | string | null;
439
424
  workflowStage?: Prisma.EnumWorkflowStageWithAggregatesFilter<"Document"> | $Enums.WorkflowStage;
440
425
  reviewerId?: Prisma.StringNullableWithAggregatesFilter<"Document"> | string | null;
@@ -460,7 +445,6 @@ export type DocumentCreateInput = {
460
445
  contentHash?: string | null;
461
446
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
462
447
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
463
- siteId?: string | null;
464
448
  templateId?: string | null;
465
449
  workflowStage?: $Enums.WorkflowStage;
466
450
  reviewerId?: string | null;
@@ -474,7 +458,6 @@ export type DocumentCreateInput = {
474
458
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
475
459
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
476
460
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
477
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
478
461
  };
479
462
  export type DocumentUncheckedCreateInput = {
480
463
  id?: string;
@@ -495,7 +478,6 @@ export type DocumentUncheckedCreateInput = {
495
478
  contentHash?: string | null;
496
479
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
497
480
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
498
- siteId?: string | null;
499
481
  templateId?: string | null;
500
482
  workflowStage?: $Enums.WorkflowStage;
501
483
  reviewerId?: string | null;
@@ -507,7 +489,6 @@ export type DocumentUncheckedCreateInput = {
507
489
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
508
490
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
509
491
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
510
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
511
492
  };
512
493
  export type DocumentUpdateInput = {
513
494
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -526,7 +507,6 @@ export type DocumentUpdateInput = {
526
507
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
508
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
528
509
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
529
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
510
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
511
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
532
512
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -540,7 +520,6 @@ export type DocumentUpdateInput = {
540
520
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
541
521
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
542
522
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
543
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
544
523
  };
545
524
  export type DocumentUncheckedUpdateInput = {
546
525
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -561,7 +540,6 @@ export type DocumentUncheckedUpdateInput = {
561
540
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
562
541
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
563
542
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
564
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
565
543
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
566
544
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
567
545
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -573,7 +551,6 @@ export type DocumentUncheckedUpdateInput = {
573
551
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
574
552
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
575
553
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
576
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
577
554
  };
578
555
  export type DocumentCreateManyInput = {
579
556
  id?: string;
@@ -594,7 +571,6 @@ export type DocumentCreateManyInput = {
594
571
  contentHash?: string | null;
595
572
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
596
573
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
597
- siteId?: string | null;
598
574
  templateId?: string | null;
599
575
  workflowStage?: $Enums.WorkflowStage;
600
576
  reviewerId?: string | null;
@@ -620,7 +596,6 @@ export type DocumentUpdateManyMutationInput = {
620
596
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
621
597
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
622
598
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
623
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
624
599
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
625
600
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
626
601
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -647,7 +622,6 @@ export type DocumentUncheckedUpdateManyInput = {
647
622
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
623
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
649
624
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
650
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
651
625
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
652
626
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
653
627
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -692,7 +666,6 @@ export type DocumentCountOrderByAggregateInput = {
692
666
  contentHash?: Prisma.SortOrder;
693
667
  structuredData?: Prisma.SortOrder;
694
668
  contentGraph?: Prisma.SortOrder;
695
- siteId?: Prisma.SortOrder;
696
669
  templateId?: Prisma.SortOrder;
697
670
  workflowStage?: Prisma.SortOrder;
698
671
  reviewerId?: Prisma.SortOrder;
@@ -717,7 +690,6 @@ export type DocumentMaxOrderByAggregateInput = {
717
690
  deletedAt?: Prisma.SortOrder;
718
691
  plainText?: Prisma.SortOrder;
719
692
  contentHash?: Prisma.SortOrder;
720
- siteId?: Prisma.SortOrder;
721
693
  templateId?: Prisma.SortOrder;
722
694
  workflowStage?: Prisma.SortOrder;
723
695
  reviewerId?: Prisma.SortOrder;
@@ -742,7 +714,6 @@ export type DocumentMinOrderByAggregateInput = {
742
714
  deletedAt?: Prisma.SortOrder;
743
715
  plainText?: Prisma.SortOrder;
744
716
  contentHash?: Prisma.SortOrder;
745
- siteId?: Prisma.SortOrder;
746
717
  templateId?: Prisma.SortOrder;
747
718
  workflowStage?: Prisma.SortOrder;
748
719
  reviewerId?: Prisma.SortOrder;
@@ -911,18 +882,6 @@ export type DocumentUpdateOneRequiredWithoutContentLocksNestedInput = {
911
882
  connect?: Prisma.DocumentWhereUniqueInput;
912
883
  update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentUpdateToOneWithWhereWithoutContentLocksInput, Prisma.DocumentUpdateWithoutContentLocksInput>, Prisma.DocumentUncheckedUpdateWithoutContentLocksInput>;
913
884
  };
914
- export type DocumentCreateNestedOneWithoutWorkflowStateInput = {
915
- create?: Prisma.XOR<Prisma.DocumentCreateWithoutWorkflowStateInput, Prisma.DocumentUncheckedCreateWithoutWorkflowStateInput>;
916
- connectOrCreate?: Prisma.DocumentCreateOrConnectWithoutWorkflowStateInput;
917
- connect?: Prisma.DocumentWhereUniqueInput;
918
- };
919
- export type DocumentUpdateOneRequiredWithoutWorkflowStateNestedInput = {
920
- create?: Prisma.XOR<Prisma.DocumentCreateWithoutWorkflowStateInput, Prisma.DocumentUncheckedCreateWithoutWorkflowStateInput>;
921
- connectOrCreate?: Prisma.DocumentCreateOrConnectWithoutWorkflowStateInput;
922
- upsert?: Prisma.DocumentUpsertWithoutWorkflowStateInput;
923
- connect?: Prisma.DocumentWhereUniqueInput;
924
- update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentUpdateToOneWithWhereWithoutWorkflowStateInput, Prisma.DocumentUpdateWithoutWorkflowStateInput>, Prisma.DocumentUncheckedUpdateWithoutWorkflowStateInput>;
925
- };
926
885
  export type DocumentCreateNestedOneWithoutContentIssuesInput = {
927
886
  create?: Prisma.XOR<Prisma.DocumentCreateWithoutContentIssuesInput, Prisma.DocumentUncheckedCreateWithoutContentIssuesInput>;
928
887
  connectOrCreate?: Prisma.DocumentCreateOrConnectWithoutContentIssuesInput;
@@ -952,7 +911,6 @@ export type DocumentCreateWithoutCreatedByInput = {
952
911
  contentHash?: string | null;
953
912
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
954
913
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
955
- siteId?: string | null;
956
914
  templateId?: string | null;
957
915
  workflowStage?: $Enums.WorkflowStage;
958
916
  reviewerId?: string | null;
@@ -965,7 +923,6 @@ export type DocumentCreateWithoutCreatedByInput = {
965
923
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
966
924
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
967
925
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
968
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
969
926
  };
970
927
  export type DocumentUncheckedCreateWithoutCreatedByInput = {
971
928
  id?: string;
@@ -985,7 +942,6 @@ export type DocumentUncheckedCreateWithoutCreatedByInput = {
985
942
  contentHash?: string | null;
986
943
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
987
944
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
988
- siteId?: string | null;
989
945
  templateId?: string | null;
990
946
  workflowStage?: $Enums.WorkflowStage;
991
947
  reviewerId?: string | null;
@@ -997,7 +953,6 @@ export type DocumentUncheckedCreateWithoutCreatedByInput = {
997
953
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
998
954
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
999
955
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1000
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1001
956
  };
1002
957
  export type DocumentCreateOrConnectWithoutCreatedByInput = {
1003
958
  where: Prisma.DocumentWhereUniqueInput;
@@ -1024,7 +979,6 @@ export type DocumentCreateWithoutUpdatedByInput = {
1024
979
  contentHash?: string | null;
1025
980
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1026
981
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1027
- siteId?: string | null;
1028
982
  templateId?: string | null;
1029
983
  workflowStage?: $Enums.WorkflowStage;
1030
984
  reviewerId?: string | null;
@@ -1037,7 +991,6 @@ export type DocumentCreateWithoutUpdatedByInput = {
1037
991
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1038
992
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1039
993
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1040
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1041
994
  };
1042
995
  export type DocumentUncheckedCreateWithoutUpdatedByInput = {
1043
996
  id?: string;
@@ -1057,7 +1010,6 @@ export type DocumentUncheckedCreateWithoutUpdatedByInput = {
1057
1010
  contentHash?: string | null;
1058
1011
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1059
1012
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1060
- siteId?: string | null;
1061
1013
  templateId?: string | null;
1062
1014
  workflowStage?: $Enums.WorkflowStage;
1063
1015
  reviewerId?: string | null;
@@ -1069,7 +1021,6 @@ export type DocumentUncheckedCreateWithoutUpdatedByInput = {
1069
1021
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1070
1022
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1071
1023
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1072
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1073
1024
  };
1074
1025
  export type DocumentCreateOrConnectWithoutUpdatedByInput = {
1075
1026
  where: Prisma.DocumentWhereUniqueInput;
@@ -1114,7 +1065,6 @@ export type DocumentScalarWhereInput = {
1114
1065
  contentHash?: Prisma.StringNullableFilter<"Document"> | string | null;
1115
1066
  structuredData?: Prisma.JsonNullableFilter<"Document">;
1116
1067
  contentGraph?: Prisma.JsonNullableFilter<"Document">;
1117
- siteId?: Prisma.StringNullableFilter<"Document"> | string | null;
1118
1068
  templateId?: Prisma.StringNullableFilter<"Document"> | string | null;
1119
1069
  workflowStage?: Prisma.EnumWorkflowStageFilter<"Document"> | $Enums.WorkflowStage;
1120
1070
  reviewerId?: Prisma.StringNullableFilter<"Document"> | string | null;
@@ -1153,7 +1103,6 @@ export type DocumentCreateWithoutFolderInput = {
1153
1103
  contentHash?: string | null;
1154
1104
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1155
1105
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1156
- siteId?: string | null;
1157
1106
  templateId?: string | null;
1158
1107
  workflowStage?: $Enums.WorkflowStage;
1159
1108
  reviewerId?: string | null;
@@ -1166,7 +1115,6 @@ export type DocumentCreateWithoutFolderInput = {
1166
1115
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1167
1116
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1168
1117
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1169
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1170
1118
  };
1171
1119
  export type DocumentUncheckedCreateWithoutFolderInput = {
1172
1120
  id?: string;
@@ -1187,7 +1135,6 @@ export type DocumentUncheckedCreateWithoutFolderInput = {
1187
1135
  contentHash?: string | null;
1188
1136
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1189
1137
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1190
- siteId?: string | null;
1191
1138
  templateId?: string | null;
1192
1139
  workflowStage?: $Enums.WorkflowStage;
1193
1140
  reviewerId?: string | null;
@@ -1198,7 +1145,6 @@ export type DocumentUncheckedCreateWithoutFolderInput = {
1198
1145
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1199
1146
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1200
1147
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1201
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1202
1148
  };
1203
1149
  export type DocumentCreateOrConnectWithoutFolderInput = {
1204
1150
  where: Prisma.DocumentWhereUniqueInput;
@@ -1238,7 +1184,6 @@ export type DocumentCreateWithoutVersionsInput = {
1238
1184
  contentHash?: string | null;
1239
1185
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1240
1186
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1241
- siteId?: string | null;
1242
1187
  templateId?: string | null;
1243
1188
  workflowStage?: $Enums.WorkflowStage;
1244
1189
  reviewerId?: string | null;
@@ -1251,7 +1196,6 @@ export type DocumentCreateWithoutVersionsInput = {
1251
1196
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1252
1197
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1253
1198
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1254
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1255
1199
  };
1256
1200
  export type DocumentUncheckedCreateWithoutVersionsInput = {
1257
1201
  id?: string;
@@ -1272,7 +1216,6 @@ export type DocumentUncheckedCreateWithoutVersionsInput = {
1272
1216
  contentHash?: string | null;
1273
1217
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1274
1218
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1275
- siteId?: string | null;
1276
1219
  templateId?: string | null;
1277
1220
  workflowStage?: $Enums.WorkflowStage;
1278
1221
  reviewerId?: string | null;
@@ -1283,7 +1226,6 @@ export type DocumentUncheckedCreateWithoutVersionsInput = {
1283
1226
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1284
1227
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1285
1228
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1286
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1287
1229
  };
1288
1230
  export type DocumentCreateOrConnectWithoutVersionsInput = {
1289
1231
  where: Prisma.DocumentWhereUniqueInput;
@@ -1315,7 +1257,6 @@ export type DocumentUpdateWithoutVersionsInput = {
1315
1257
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1316
1258
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1317
1259
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1318
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1319
1260
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1320
1261
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1321
1262
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1328,7 +1269,6 @@ export type DocumentUpdateWithoutVersionsInput = {
1328
1269
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
1329
1270
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
1330
1271
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
1331
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
1332
1272
  };
1333
1273
  export type DocumentUncheckedUpdateWithoutVersionsInput = {
1334
1274
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1349,7 +1289,6 @@ export type DocumentUncheckedUpdateWithoutVersionsInput = {
1349
1289
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1350
1290
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1351
1291
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1352
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1353
1292
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1354
1293
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1355
1294
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1360,7 +1299,6 @@ export type DocumentUncheckedUpdateWithoutVersionsInput = {
1360
1299
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
1361
1300
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
1362
1301
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
1363
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
1364
1302
  };
1365
1303
  export type DocumentCreateWithoutMediaUsagesInput = {
1366
1304
  id?: string;
@@ -1379,7 +1317,6 @@ export type DocumentCreateWithoutMediaUsagesInput = {
1379
1317
  contentHash?: string | null;
1380
1318
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1381
1319
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1382
- siteId?: string | null;
1383
1320
  templateId?: string | null;
1384
1321
  workflowStage?: $Enums.WorkflowStage;
1385
1322
  reviewerId?: string | null;
@@ -1392,7 +1329,6 @@ export type DocumentCreateWithoutMediaUsagesInput = {
1392
1329
  versions?: Prisma.VersionCreateNestedManyWithoutDocumentInput;
1393
1330
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1394
1331
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1395
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1396
1332
  };
1397
1333
  export type DocumentUncheckedCreateWithoutMediaUsagesInput = {
1398
1334
  id?: string;
@@ -1413,7 +1349,6 @@ export type DocumentUncheckedCreateWithoutMediaUsagesInput = {
1413
1349
  contentHash?: string | null;
1414
1350
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1415
1351
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1416
- siteId?: string | null;
1417
1352
  templateId?: string | null;
1418
1353
  workflowStage?: $Enums.WorkflowStage;
1419
1354
  reviewerId?: string | null;
@@ -1424,7 +1359,6 @@ export type DocumentUncheckedCreateWithoutMediaUsagesInput = {
1424
1359
  versions?: Prisma.VersionUncheckedCreateNestedManyWithoutDocumentInput;
1425
1360
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1426
1361
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1427
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1428
1362
  };
1429
1363
  export type DocumentCreateOrConnectWithoutMediaUsagesInput = {
1430
1364
  where: Prisma.DocumentWhereUniqueInput;
@@ -1456,7 +1390,6 @@ export type DocumentUpdateWithoutMediaUsagesInput = {
1456
1390
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1457
1391
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1458
1392
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1459
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
1393
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1461
1394
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1462
1395
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1469,7 +1402,6 @@ export type DocumentUpdateWithoutMediaUsagesInput = {
1469
1402
  versions?: Prisma.VersionUpdateManyWithoutDocumentNestedInput;
1470
1403
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
1471
1404
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
1472
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
1473
1405
  };
1474
1406
  export type DocumentUncheckedUpdateWithoutMediaUsagesInput = {
1475
1407
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1490,7 +1422,6 @@ export type DocumentUncheckedUpdateWithoutMediaUsagesInput = {
1490
1422
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1491
1423
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1492
1424
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1493
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1494
1425
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1495
1426
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1496
1427
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1501,7 +1432,6 @@ export type DocumentUncheckedUpdateWithoutMediaUsagesInput = {
1501
1432
  versions?: Prisma.VersionUncheckedUpdateManyWithoutDocumentNestedInput;
1502
1433
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
1503
1434
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
1504
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
1505
1435
  };
1506
1436
  export type DocumentCreateWithoutContentLocksInput = {
1507
1437
  id?: string;
@@ -1520,7 +1450,6 @@ export type DocumentCreateWithoutContentLocksInput = {
1520
1450
  contentHash?: string | null;
1521
1451
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1522
1452
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1523
- siteId?: string | null;
1524
1453
  templateId?: string | null;
1525
1454
  workflowStage?: $Enums.WorkflowStage;
1526
1455
  reviewerId?: string | null;
@@ -1533,7 +1462,6 @@ export type DocumentCreateWithoutContentLocksInput = {
1533
1462
  versions?: Prisma.VersionCreateNestedManyWithoutDocumentInput;
1534
1463
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1535
1464
  contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1536
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1537
1465
  };
1538
1466
  export type DocumentUncheckedCreateWithoutContentLocksInput = {
1539
1467
  id?: string;
@@ -1554,7 +1482,6 @@ export type DocumentUncheckedCreateWithoutContentLocksInput = {
1554
1482
  contentHash?: string | null;
1555
1483
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1556
1484
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1557
- siteId?: string | null;
1558
1485
  templateId?: string | null;
1559
1486
  workflowStage?: $Enums.WorkflowStage;
1560
1487
  reviewerId?: string | null;
@@ -1565,7 +1492,6 @@ export type DocumentUncheckedCreateWithoutContentLocksInput = {
1565
1492
  versions?: Prisma.VersionUncheckedCreateNestedManyWithoutDocumentInput;
1566
1493
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1567
1494
  contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1568
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1569
1495
  };
1570
1496
  export type DocumentCreateOrConnectWithoutContentLocksInput = {
1571
1497
  where: Prisma.DocumentWhereUniqueInput;
@@ -1597,7 +1523,6 @@ export type DocumentUpdateWithoutContentLocksInput = {
1597
1523
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1598
1524
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1599
1525
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1600
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1601
1526
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1602
1527
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1603
1528
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1610,7 +1535,6 @@ export type DocumentUpdateWithoutContentLocksInput = {
1610
1535
  versions?: Prisma.VersionUpdateManyWithoutDocumentNestedInput;
1611
1536
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
1612
1537
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
1613
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
1614
1538
  };
1615
1539
  export type DocumentUncheckedUpdateWithoutContentLocksInput = {
1616
1540
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1631,148 +1555,6 @@ export type DocumentUncheckedUpdateWithoutContentLocksInput = {
1631
1555
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1632
1556
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1633
1557
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1634
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1635
- templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1636
- workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1637
- reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1638
- reviewNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1639
- folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1640
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1641
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1642
- versions?: Prisma.VersionUncheckedUpdateManyWithoutDocumentNestedInput;
1643
- mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
1644
- contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
1645
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
1646
- };
1647
- export type DocumentCreateWithoutWorkflowStateInput = {
1648
- id?: string;
1649
- collection: string;
1650
- title?: string | null;
1651
- slug?: string | null;
1652
- data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
1653
- status?: $Enums.DocumentStatus;
1654
- locale?: string | null;
1655
- localeGroupId?: string | null;
1656
- publishedAt?: Date | string | null;
1657
- scheduledAt?: Date | string | null;
1658
- scheduledUnpublishAt?: Date | string | null;
1659
- deletedAt?: Date | string | null;
1660
- plainText?: string | null;
1661
- contentHash?: string | null;
1662
- structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1663
- contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1664
- siteId?: string | null;
1665
- templateId?: string | null;
1666
- workflowStage?: $Enums.WorkflowStage;
1667
- reviewerId?: string | null;
1668
- reviewNote?: string | null;
1669
- createdAt?: Date | string;
1670
- updatedAt?: Date | string;
1671
- createdBy: Prisma.UserCreateNestedOneWithoutDocumentsInput;
1672
- updatedBy: Prisma.UserCreateNestedOneWithoutUpdatedDocumentsInput;
1673
- folder?: Prisma.FolderCreateNestedOneWithoutDocumentsInput;
1674
- versions?: Prisma.VersionCreateNestedManyWithoutDocumentInput;
1675
- mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1676
- contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1677
- contentIssues?: Prisma.ContentIssueCreateNestedManyWithoutDocumentInput;
1678
- };
1679
- export type DocumentUncheckedCreateWithoutWorkflowStateInput = {
1680
- id?: string;
1681
- collection: string;
1682
- title?: string | null;
1683
- slug?: string | null;
1684
- data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
1685
- status?: $Enums.DocumentStatus;
1686
- locale?: string | null;
1687
- localeGroupId?: string | null;
1688
- createdById: string;
1689
- updatedById: string;
1690
- publishedAt?: Date | string | null;
1691
- scheduledAt?: Date | string | null;
1692
- scheduledUnpublishAt?: Date | string | null;
1693
- deletedAt?: Date | string | null;
1694
- plainText?: string | null;
1695
- contentHash?: string | null;
1696
- structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1697
- contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1698
- siteId?: string | null;
1699
- templateId?: string | null;
1700
- workflowStage?: $Enums.WorkflowStage;
1701
- reviewerId?: string | null;
1702
- reviewNote?: string | null;
1703
- folderId?: string | null;
1704
- createdAt?: Date | string;
1705
- updatedAt?: Date | string;
1706
- versions?: Prisma.VersionUncheckedCreateNestedManyWithoutDocumentInput;
1707
- mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1708
- contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1709
- contentIssues?: Prisma.ContentIssueUncheckedCreateNestedManyWithoutDocumentInput;
1710
- };
1711
- export type DocumentCreateOrConnectWithoutWorkflowStateInput = {
1712
- where: Prisma.DocumentWhereUniqueInput;
1713
- create: Prisma.XOR<Prisma.DocumentCreateWithoutWorkflowStateInput, Prisma.DocumentUncheckedCreateWithoutWorkflowStateInput>;
1714
- };
1715
- export type DocumentUpsertWithoutWorkflowStateInput = {
1716
- update: Prisma.XOR<Prisma.DocumentUpdateWithoutWorkflowStateInput, Prisma.DocumentUncheckedUpdateWithoutWorkflowStateInput>;
1717
- create: Prisma.XOR<Prisma.DocumentCreateWithoutWorkflowStateInput, Prisma.DocumentUncheckedCreateWithoutWorkflowStateInput>;
1718
- where?: Prisma.DocumentWhereInput;
1719
- };
1720
- export type DocumentUpdateToOneWithWhereWithoutWorkflowStateInput = {
1721
- where?: Prisma.DocumentWhereInput;
1722
- data: Prisma.XOR<Prisma.DocumentUpdateWithoutWorkflowStateInput, Prisma.DocumentUncheckedUpdateWithoutWorkflowStateInput>;
1723
- };
1724
- export type DocumentUpdateWithoutWorkflowStateInput = {
1725
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1726
- collection?: Prisma.StringFieldUpdateOperationsInput | string;
1727
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1728
- slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1729
- data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
1730
- status?: Prisma.EnumDocumentStatusFieldUpdateOperationsInput | $Enums.DocumentStatus;
1731
- locale?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1732
- localeGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1733
- publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1734
- scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1735
- scheduledUnpublishAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1736
- deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1737
- plainText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1738
- contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1739
- structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1740
- contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1741
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1742
- templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1743
- workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1744
- reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1745
- reviewNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1746
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1747
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1748
- createdBy?: Prisma.UserUpdateOneRequiredWithoutDocumentsNestedInput;
1749
- updatedBy?: Prisma.UserUpdateOneRequiredWithoutUpdatedDocumentsNestedInput;
1750
- folder?: Prisma.FolderUpdateOneWithoutDocumentsNestedInput;
1751
- versions?: Prisma.VersionUpdateManyWithoutDocumentNestedInput;
1752
- mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
1753
- contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
1754
- contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
1755
- };
1756
- export type DocumentUncheckedUpdateWithoutWorkflowStateInput = {
1757
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1758
- collection?: Prisma.StringFieldUpdateOperationsInput | string;
1759
- title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1760
- slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1761
- data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
1762
- status?: Prisma.EnumDocumentStatusFieldUpdateOperationsInput | $Enums.DocumentStatus;
1763
- locale?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1764
- localeGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1765
- createdById?: Prisma.StringFieldUpdateOperationsInput | string;
1766
- updatedById?: Prisma.StringFieldUpdateOperationsInput | string;
1767
- publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1768
- scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1769
- scheduledUnpublishAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1770
- deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1771
- plainText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1772
- contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1773
- structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1774
- contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1775
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1776
1558
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1777
1559
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1778
1560
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1782,7 +1564,6 @@ export type DocumentUncheckedUpdateWithoutWorkflowStateInput = {
1782
1564
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1783
1565
  versions?: Prisma.VersionUncheckedUpdateManyWithoutDocumentNestedInput;
1784
1566
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
1785
- contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
1786
1567
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
1787
1568
  };
1788
1569
  export type DocumentCreateWithoutContentIssuesInput = {
@@ -1802,7 +1583,6 @@ export type DocumentCreateWithoutContentIssuesInput = {
1802
1583
  contentHash?: string | null;
1803
1584
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1804
1585
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1805
- siteId?: string | null;
1806
1586
  templateId?: string | null;
1807
1587
  workflowStage?: $Enums.WorkflowStage;
1808
1588
  reviewerId?: string | null;
@@ -1815,7 +1595,6 @@ export type DocumentCreateWithoutContentIssuesInput = {
1815
1595
  versions?: Prisma.VersionCreateNestedManyWithoutDocumentInput;
1816
1596
  mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutDocumentInput;
1817
1597
  contentLocks?: Prisma.ContentLockCreateNestedManyWithoutDocumentInput;
1818
- workflowState?: Prisma.WorkflowStateCreateNestedOneWithoutDocumentInput;
1819
1598
  };
1820
1599
  export type DocumentUncheckedCreateWithoutContentIssuesInput = {
1821
1600
  id?: string;
@@ -1836,7 +1615,6 @@ export type DocumentUncheckedCreateWithoutContentIssuesInput = {
1836
1615
  contentHash?: string | null;
1837
1616
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1838
1617
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1839
- siteId?: string | null;
1840
1618
  templateId?: string | null;
1841
1619
  workflowStage?: $Enums.WorkflowStage;
1842
1620
  reviewerId?: string | null;
@@ -1847,7 +1625,6 @@ export type DocumentUncheckedCreateWithoutContentIssuesInput = {
1847
1625
  versions?: Prisma.VersionUncheckedCreateNestedManyWithoutDocumentInput;
1848
1626
  mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutDocumentInput;
1849
1627
  contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutDocumentInput;
1850
- workflowState?: Prisma.WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput;
1851
1628
  };
1852
1629
  export type DocumentCreateOrConnectWithoutContentIssuesInput = {
1853
1630
  where: Prisma.DocumentWhereUniqueInput;
@@ -1879,7 +1656,6 @@ export type DocumentUpdateWithoutContentIssuesInput = {
1879
1656
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1880
1657
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1881
1658
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1882
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1883
1659
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1884
1660
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1885
1661
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1892,7 +1668,6 @@ export type DocumentUpdateWithoutContentIssuesInput = {
1892
1668
  versions?: Prisma.VersionUpdateManyWithoutDocumentNestedInput;
1893
1669
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
1894
1670
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
1895
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
1896
1671
  };
1897
1672
  export type DocumentUncheckedUpdateWithoutContentIssuesInput = {
1898
1673
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1913,7 +1688,6 @@ export type DocumentUncheckedUpdateWithoutContentIssuesInput = {
1913
1688
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1914
1689
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1915
1690
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1916
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1917
1691
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1918
1692
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
1919
1693
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -1924,7 +1698,6 @@ export type DocumentUncheckedUpdateWithoutContentIssuesInput = {
1924
1698
  versions?: Prisma.VersionUncheckedUpdateManyWithoutDocumentNestedInput;
1925
1699
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
1926
1700
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
1927
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
1928
1701
  };
1929
1702
  export type DocumentCreateManyCreatedByInput = {
1930
1703
  id?: string;
@@ -1944,7 +1717,6 @@ export type DocumentCreateManyCreatedByInput = {
1944
1717
  contentHash?: string | null;
1945
1718
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1946
1719
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1947
- siteId?: string | null;
1948
1720
  templateId?: string | null;
1949
1721
  workflowStage?: $Enums.WorkflowStage;
1950
1722
  reviewerId?: string | null;
@@ -1971,7 +1743,6 @@ export type DocumentCreateManyUpdatedByInput = {
1971
1743
  contentHash?: string | null;
1972
1744
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1973
1745
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1974
- siteId?: string | null;
1975
1746
  templateId?: string | null;
1976
1747
  workflowStage?: $Enums.WorkflowStage;
1977
1748
  reviewerId?: string | null;
@@ -1997,7 +1768,6 @@ export type DocumentUpdateWithoutCreatedByInput = {
1997
1768
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1998
1769
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1999
1770
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2000
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2001
1771
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2002
1772
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2003
1773
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2010,7 +1780,6 @@ export type DocumentUpdateWithoutCreatedByInput = {
2010
1780
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
2011
1781
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
2012
1782
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
2013
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
2014
1783
  };
2015
1784
  export type DocumentUncheckedUpdateWithoutCreatedByInput = {
2016
1785
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2030,7 +1799,6 @@ export type DocumentUncheckedUpdateWithoutCreatedByInput = {
2030
1799
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2031
1800
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2032
1801
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2033
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2034
1802
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2035
1803
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2036
1804
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2042,7 +1810,6 @@ export type DocumentUncheckedUpdateWithoutCreatedByInput = {
2042
1810
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
2043
1811
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
2044
1812
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
2045
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
2046
1813
  };
2047
1814
  export type DocumentUncheckedUpdateManyWithoutCreatedByInput = {
2048
1815
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2062,7 +1829,6 @@ export type DocumentUncheckedUpdateManyWithoutCreatedByInput = {
2062
1829
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2063
1830
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2064
1831
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2065
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2066
1832
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2067
1833
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2068
1834
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2088,7 +1854,6 @@ export type DocumentUpdateWithoutUpdatedByInput = {
2088
1854
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2089
1855
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2090
1856
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2091
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2092
1857
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2093
1858
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2094
1859
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2101,7 +1866,6 @@ export type DocumentUpdateWithoutUpdatedByInput = {
2101
1866
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
2102
1867
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
2103
1868
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
2104
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
2105
1869
  };
2106
1870
  export type DocumentUncheckedUpdateWithoutUpdatedByInput = {
2107
1871
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2121,7 +1885,6 @@ export type DocumentUncheckedUpdateWithoutUpdatedByInput = {
2121
1885
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2122
1886
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2123
1887
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2124
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2125
1888
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2126
1889
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2127
1890
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2133,7 +1896,6 @@ export type DocumentUncheckedUpdateWithoutUpdatedByInput = {
2133
1896
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
2134
1897
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
2135
1898
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
2136
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
2137
1899
  };
2138
1900
  export type DocumentUncheckedUpdateManyWithoutUpdatedByInput = {
2139
1901
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2153,7 +1915,6 @@ export type DocumentUncheckedUpdateManyWithoutUpdatedByInput = {
2153
1915
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2154
1916
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2155
1917
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2156
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2157
1918
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2158
1919
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2159
1920
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2181,7 +1942,6 @@ export type DocumentCreateManyFolderInput = {
2181
1942
  contentHash?: string | null;
2182
1943
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2183
1944
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2184
- siteId?: string | null;
2185
1945
  templateId?: string | null;
2186
1946
  workflowStage?: $Enums.WorkflowStage;
2187
1947
  reviewerId?: string | null;
@@ -2206,7 +1966,6 @@ export type DocumentUpdateWithoutFolderInput = {
2206
1966
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2207
1967
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2208
1968
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2209
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2210
1969
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2211
1970
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2212
1971
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2219,7 +1978,6 @@ export type DocumentUpdateWithoutFolderInput = {
2219
1978
  mediaUsages?: Prisma.MediaUsageUpdateManyWithoutDocumentNestedInput;
2220
1979
  contentLocks?: Prisma.ContentLockUpdateManyWithoutDocumentNestedInput;
2221
1980
  contentIssues?: Prisma.ContentIssueUpdateManyWithoutDocumentNestedInput;
2222
- workflowState?: Prisma.WorkflowStateUpdateOneWithoutDocumentNestedInput;
2223
1981
  };
2224
1982
  export type DocumentUncheckedUpdateWithoutFolderInput = {
2225
1983
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2240,7 +1998,6 @@ export type DocumentUncheckedUpdateWithoutFolderInput = {
2240
1998
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2241
1999
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2242
2000
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2243
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2244
2001
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2245
2002
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2246
2003
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2251,7 +2008,6 @@ export type DocumentUncheckedUpdateWithoutFolderInput = {
2251
2008
  mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput;
2252
2009
  contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutDocumentNestedInput;
2253
2010
  contentIssues?: Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput;
2254
- workflowState?: Prisma.WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput;
2255
2011
  };
2256
2012
  export type DocumentUncheckedUpdateManyWithoutFolderInput = {
2257
2013
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -2272,7 +2028,6 @@ export type DocumentUncheckedUpdateManyWithoutFolderInput = {
2272
2028
  contentHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2273
2029
  structuredData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2274
2030
  contentGraph?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2275
- siteId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2276
2031
  templateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2277
2032
  workflowStage?: Prisma.EnumWorkflowStageFieldUpdateOperationsInput | $Enums.WorkflowStage;
2278
2033
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -2347,7 +2102,6 @@ export type DocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
2347
2102
  contentHash?: boolean;
2348
2103
  structuredData?: boolean;
2349
2104
  contentGraph?: boolean;
2350
- siteId?: boolean;
2351
2105
  templateId?: boolean;
2352
2106
  workflowStage?: boolean;
2353
2107
  reviewerId?: boolean;
@@ -2362,7 +2116,6 @@ export type DocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
2362
2116
  mediaUsages?: boolean | Prisma.Document$mediaUsagesArgs<ExtArgs>;
2363
2117
  contentLocks?: boolean | Prisma.Document$contentLocksArgs<ExtArgs>;
2364
2118
  contentIssues?: boolean | Prisma.Document$contentIssuesArgs<ExtArgs>;
2365
- workflowState?: boolean | Prisma.Document$workflowStateArgs<ExtArgs>;
2366
2119
  _count?: boolean | Prisma.DocumentCountOutputTypeDefaultArgs<ExtArgs>;
2367
2120
  }, ExtArgs["result"]["document"]>;
2368
2121
  export type DocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -2384,7 +2137,6 @@ export type DocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exte
2384
2137
  contentHash?: boolean;
2385
2138
  structuredData?: boolean;
2386
2139
  contentGraph?: boolean;
2387
- siteId?: boolean;
2388
2140
  templateId?: boolean;
2389
2141
  workflowStage?: boolean;
2390
2142
  reviewerId?: boolean;
@@ -2415,7 +2167,6 @@ export type DocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exte
2415
2167
  contentHash?: boolean;
2416
2168
  structuredData?: boolean;
2417
2169
  contentGraph?: boolean;
2418
- siteId?: boolean;
2419
2170
  templateId?: boolean;
2420
2171
  workflowStage?: boolean;
2421
2172
  reviewerId?: boolean;
@@ -2446,7 +2197,6 @@ export type DocumentSelectScalar = {
2446
2197
  contentHash?: boolean;
2447
2198
  structuredData?: boolean;
2448
2199
  contentGraph?: boolean;
2449
- siteId?: boolean;
2450
2200
  templateId?: boolean;
2451
2201
  workflowStage?: boolean;
2452
2202
  reviewerId?: boolean;
@@ -2455,7 +2205,7 @@ export type DocumentSelectScalar = {
2455
2205
  createdAt?: boolean;
2456
2206
  updatedAt?: boolean;
2457
2207
  };
2458
- export type DocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "collection" | "title" | "slug" | "data" | "status" | "locale" | "localeGroupId" | "createdById" | "updatedById" | "publishedAt" | "scheduledAt" | "scheduledUnpublishAt" | "deletedAt" | "plainText" | "contentHash" | "structuredData" | "contentGraph" | "siteId" | "templateId" | "workflowStage" | "reviewerId" | "reviewNote" | "folderId" | "createdAt" | "updatedAt", ExtArgs["result"]["document"]>;
2208
+ export type DocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "collection" | "title" | "slug" | "data" | "status" | "locale" | "localeGroupId" | "createdById" | "updatedById" | "publishedAt" | "scheduledAt" | "scheduledUnpublishAt" | "deletedAt" | "plainText" | "contentHash" | "structuredData" | "contentGraph" | "templateId" | "workflowStage" | "reviewerId" | "reviewNote" | "folderId" | "createdAt" | "updatedAt", ExtArgs["result"]["document"]>;
2459
2209
  export type DocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2460
2210
  createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2461
2211
  updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
@@ -2464,7 +2214,6 @@ export type DocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArg
2464
2214
  mediaUsages?: boolean | Prisma.Document$mediaUsagesArgs<ExtArgs>;
2465
2215
  contentLocks?: boolean | Prisma.Document$contentLocksArgs<ExtArgs>;
2466
2216
  contentIssues?: boolean | Prisma.Document$contentIssuesArgs<ExtArgs>;
2467
- workflowState?: boolean | Prisma.Document$workflowStateArgs<ExtArgs>;
2468
2217
  _count?: boolean | Prisma.DocumentCountOutputTypeDefaultArgs<ExtArgs>;
2469
2218
  };
2470
2219
  export type DocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -2487,7 +2236,6 @@ export type $DocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
2487
2236
  mediaUsages: Prisma.$MediaUsagePayload<ExtArgs>[];
2488
2237
  contentLocks: Prisma.$ContentLockPayload<ExtArgs>[];
2489
2238
  contentIssues: Prisma.$ContentIssuePayload<ExtArgs>[];
2490
- workflowState: Prisma.$WorkflowStatePayload<ExtArgs> | null;
2491
2239
  };
2492
2240
  scalars: runtime.Types.Extensions.GetPayloadResult<{
2493
2241
  id: string;
@@ -2508,7 +2256,6 @@ export type $DocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
2508
2256
  contentHash: string | null;
2509
2257
  structuredData: runtime.JsonValue | null;
2510
2258
  contentGraph: runtime.JsonValue | null;
2511
- siteId: string | null;
2512
2259
  templateId: string | null;
2513
2260
  workflowStage: $Enums.WorkflowStage;
2514
2261
  reviewerId: string | null;
@@ -2852,7 +2599,6 @@ export interface Prisma__DocumentClient<T, Null = never, ExtArgs extends runtime
2852
2599
  mediaUsages<T extends Prisma.Document$mediaUsagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Document$mediaUsagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2853
2600
  contentLocks<T extends Prisma.Document$contentLocksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Document$contentLocksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentLockPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2854
2601
  contentIssues<T extends Prisma.Document$contentIssuesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Document$contentIssuesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2855
- workflowState<T extends Prisma.Document$workflowStateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Document$workflowStateArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2856
2602
  /**
2857
2603
  * Attaches callbacks for the resolution and/or rejection of the Promise.
2858
2604
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2896,7 +2642,6 @@ export interface DocumentFieldRefs {
2896
2642
  readonly contentHash: Prisma.FieldRef<"Document", 'String'>;
2897
2643
  readonly structuredData: Prisma.FieldRef<"Document", 'Json'>;
2898
2644
  readonly contentGraph: Prisma.FieldRef<"Document", 'Json'>;
2899
- readonly siteId: Prisma.FieldRef<"Document", 'String'>;
2900
2645
  readonly templateId: Prisma.FieldRef<"Document", 'String'>;
2901
2646
  readonly workflowStage: Prisma.FieldRef<"Document", 'WorkflowStage'>;
2902
2647
  readonly reviewerId: Prisma.FieldRef<"Document", 'String'>;
@@ -3406,24 +3151,6 @@ export type Document$contentIssuesArgs<ExtArgs extends runtime.Types.Extensions.
3406
3151
  skip?: number;
3407
3152
  distinct?: Prisma.ContentIssueScalarFieldEnum | Prisma.ContentIssueScalarFieldEnum[];
3408
3153
  };
3409
- /**
3410
- * Document.workflowState
3411
- */
3412
- export type Document$workflowStateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3413
- /**
3414
- * Select specific fields to fetch from the WorkflowState
3415
- */
3416
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
3417
- /**
3418
- * Omit specific fields from the WorkflowState
3419
- */
3420
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
3421
- /**
3422
- * Choose, which related nodes to fetch as well
3423
- */
3424
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
3425
- where?: Prisma.WorkflowStateWhereInput;
3426
- };
3427
3154
  /**
3428
3155
  * Document without action
3429
3156
  */