@anthusai/papyrus 1.0.0-next.2 → 1.0.0-next.20

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 (139) hide show
  1. package/amplify/auth/resource.js +17 -4
  2. package/amplify/auth/resource.ts +21 -4
  3. package/amplify/data/resource.js +52 -70
  4. package/amplify/data/resource.ts +57 -70
  5. package/amplify/data/schema.js +52 -58
  6. package/amplify/data/schema.ts +57 -58
  7. package/amplify/functions/console-chat-responder/py/execute_tactus_runner.py +0 -10
  8. package/amplify/functions/console-chat-responder/resource.js +0 -7
  9. package/amplify/functions/console-chat-responder/resource.ts +0 -8
  10. package/amplify/functions/console-chat-responder/src/main.rs +0 -9
  11. package/amplify/functions/content-actions/handler.py +149 -0
  12. package/amplify/functions/content-actions/requirements.txt +4 -0
  13. package/amplify/functions/content-actions/resource.js +40 -0
  14. package/amplify/functions/content-actions/resource.ts +54 -0
  15. package/amplify/functions/shared/python-bundle.js +17 -2
  16. package/amplify/functions/shared/python-bundle.ts +23 -2
  17. package/amplify/rebuild-trigger-settings.js +22 -0
  18. package/amplify/rebuild-trigger-settings.ts +42 -0
  19. package/amplify/site-backend-config.ts +12 -1
  20. package/amplify/site-backend.js +51 -27
  21. package/amplify/site-backend.ts +66 -34
  22. package/amplify/storage/resource.js +3 -0
  23. package/amplify/storage/resource.ts +3 -0
  24. package/app/%5F_preview/[[...path]]/route.ts +8 -0
  25. package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +4 -2
  26. package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
  27. package/app/api/revalidate/route.ts +8 -7
  28. package/app/articles/[slug]/page.tsx +3 -1
  29. package/app/blog-rhythm.css +278 -0
  30. package/app/globals.css +22 -4
  31. package/app/layout.tsx +24 -12
  32. package/app/newsroom/articles/[id]/page.tsx +15 -0
  33. package/app/newsroom/articles/page.tsx +13 -0
  34. package/app/page.tsx +12 -4
  35. package/app/robots.ts +11 -0
  36. package/bin/papyrus-app.mjs +12 -2
  37. package/bin/papyrus-infra.mjs +74 -18
  38. package/components/archive-shell.tsx +2 -22
  39. package/components/article-video.tsx +247 -3
  40. package/components/blog-page-background.tsx +23 -6
  41. package/components/markus-ir-preview.tsx +300 -0
  42. package/components/news-desk-page.tsx +1 -4
  43. package/components/newspaper.tsx +2 -1
  44. package/components/newsroom-access-gate.tsx +66 -0
  45. package/components/newsroom-article-editor.tsx +741 -0
  46. package/components/newsroom-articles-view.tsx +129 -0
  47. package/components/newsroom-ops-overview.tsx +28 -11
  48. package/components/newsroom-ops-shell.tsx +3 -1
  49. package/components/pictogram-figure.tsx +9 -2
  50. package/components/presentation-header.tsx +135 -0
  51. package/components/presentation-rhythm-hrule.tsx +17 -0
  52. package/components/settings-page.tsx +2 -1
  53. package/components/staging-banner.tsx +11 -0
  54. package/components/topic-steering-workspace.tsx +1 -59
  55. package/components/use-blog-header-obstacles.ts +81 -0
  56. package/components/use-brand-fonts-ready.ts +31 -0
  57. package/components/use-rhythm-overlay.ts +29 -0
  58. package/infra/amplify-app-shell.js +285 -80
  59. package/infra/amplify-app-shell.ts +326 -113
  60. package/infra/build-specs.js +94 -0
  61. package/infra/build-specs.ts +141 -0
  62. package/infra/github-oidc-provider.js +24 -0
  63. package/infra/github-oidc-provider.ts +30 -0
  64. package/infra/index.js +3 -0
  65. package/infra/site-config.js +273 -0
  66. package/infra/site-config.ts +336 -0
  67. package/lib/blog-feature-solver.ts +459 -0
  68. package/lib/blog-rhythm.ts +134 -0
  69. package/lib/brand-fonts.ts +112 -0
  70. package/lib/cached-content-repository.ts +2 -1
  71. package/lib/category-repository.ts +1 -93
  72. package/lib/content-actions-client.ts +98 -0
  73. package/lib/content-actions-demo.ts +190 -0
  74. package/lib/content-repository.ts +3 -0
  75. package/lib/content-source-context.ts +26 -0
  76. package/lib/content-types.ts +3 -0
  77. package/lib/edition-routes.ts +31 -29
  78. package/lib/empty-theme.css +1 -0
  79. package/lib/graphql-content-repository.ts +201 -42
  80. package/lib/layout-scenarios.ts +8 -8
  81. package/lib/newspaper-layout.ts +3 -2
  82. package/lib/newsroom-articles.ts +325 -0
  83. package/lib/newsroom-demo-articles.ts +90 -0
  84. package/lib/newsroom-media-backend.ts +142 -0
  85. package/lib/newsroom-media.ts +182 -0
  86. package/lib/newsroom-nav.ts +3 -0
  87. package/lib/papyrus-web-locations.ts +7 -6
  88. package/lib/presentation-footer.ts +3 -2
  89. package/lib/pretext-layout.ts +7 -3
  90. package/lib/reader-base-path.ts +24 -0
  91. package/lib/reader-static-params.ts +8 -0
  92. package/lib/renderer.ts +7 -0
  93. package/lib/revalidate-secret.ts +59 -0
  94. package/lib/root-route-redirect.ts +16 -0
  95. package/lib/site-brand-tenant.ts +3 -22
  96. package/lib/site-brand.ts +95 -42
  97. package/lib/site-env.ts +52 -0
  98. package/lib/staging-gate.ts +37 -0
  99. package/lib/staging-gated-path.ts +22 -0
  100. package/lib/staging-preview-object.ts +98 -0
  101. package/lib/video-mode.ts +42 -0
  102. package/lib/video-script.ts +63 -0
  103. package/middleware.ts +56 -42
  104. package/package.json +39 -1
  105. package/renderers/pretext/article-page.tsx +40 -9
  106. package/renderers/pretext/presentation-shared.tsx +113 -0
  107. package/renderers/pretext/presentation-shell.tsx +18 -112
  108. package/renderers/pretext/rhythm-article-page.tsx +165 -0
  109. package/renderers/pretext/rhythm-blog-presentation.tsx +280 -0
  110. package/renderers/pretext/rhythm-shell-style.ts +35 -0
  111. package/routes.manifest.json +37 -2
  112. package/scripts/videoml/build-browser-bundle.mjs +22 -0
  113. package/scripts/videoml/build-preview-bundle.mjs +50 -0
  114. package/scripts/videoml/bundle-common.mjs +129 -0
  115. package/scripts/videoml/preview/preview-entry.tsx +381 -0
  116. package/scripts/videoml/preview/preview-stage-fit.ts +28 -0
  117. package/scripts/videoml/preview/preview-timing.ts +42 -0
  118. package/scripts/videoml/preview.html +77 -0
  119. package/scripts/videoml/standard-entry.tsx +46 -0
  120. package/src/sync.mjs +30 -6
  121. package/src/with-papyrus.mjs +15 -2
  122. package/amplify/functions/graphql-jwt-authorizer/handler.ts +0 -193
  123. package/amplify/functions/graphql-jwt-authorizer/resource.js +0 -14
  124. package/amplify/functions/graphql-jwt-authorizer/resource.ts +0 -15
  125. package/publications/anth_us/brand.ts +0 -68
  126. package/publications/anth_us/theme.css +0 -66
  127. package/publications/pilobol_us/brand.ts +0 -37
  128. package/publications/pilobol_us/theme.css +0 -140
  129. package/publications/threat_intelligence/blog-defense/graph.ts +0 -636
  130. package/publications/threat_intelligence/blog-defense/layout.ts +0 -934
  131. package/publications/threat_intelligence/blog-defense/page-background.tsx +0 -590
  132. package/publications/threat_intelligence/brand.ts +0 -40
  133. package/publications/threat_intelligence/pictograms/art.tsx +0 -608
  134. package/publications/threat_intelligence/pictograms/figure.tsx +0 -82
  135. package/publications/threat_intelligence/pictograms/registry.ts +0 -30
  136. package/publications/threat_intelligence/pictograms/system.tsx +0 -305
  137. package/publications/threat_intelligence/seed/seed-edition-content.json +0 -629
  138. package/publications/threat_intelligence/theme.css +0 -1440
  139. /package/{publications/papyrus/theme.css → app/papyrus-theme.css} +0 -0
@@ -1,6 +1,7 @@
1
1
  import { a } from "@aws-amplify/backend";
2
2
  import { assignmentAction } from "../functions/assignment-action/resource.js";
3
3
  import { categoryAction } from "../functions/category-action/resource.js";
4
+ import { contentActions } from "../functions/content-actions/resource.js";
4
5
  import { knowledgeQuery } from "../functions/knowledge-query/resource.js";
5
6
  import { manageUserRole } from "../functions/manage-user-role/resource.js";
6
7
  import { modelAttachmentUpload } from "../functions/model-attachment-upload/resource.js";
@@ -248,7 +249,6 @@ export const schema = a.schema({
248
249
  .returns(a.ref("ReferenceCurationActionResult"))
249
250
  .authorization((allow) => [
250
251
  allow.groups(categoryWriteGroups),
251
- allow.custom(),
252
252
  ])
253
253
  .handler(a.handler.function(categoryAction)),
254
254
  setReferenceQualityRating: a
@@ -263,7 +263,6 @@ export const schema = a.schema({
263
263
  .returns(a.ref("ReferenceQualityActionResult"))
264
264
  .authorization((allow) => [
265
265
  allow.groups(categoryWriteGroups),
266
- allow.custom(),
267
266
  ])
268
267
  .handler(a.handler.function(categoryAction)),
269
268
  createCategorySetDraft: a
@@ -366,15 +365,45 @@ export const schema = a.schema({
366
365
  getNewsroomSummary: a
367
366
  .query()
368
367
  .returns(a.ref("NewsroomSummary"))
369
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
368
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
370
369
  .handler(a.handler.function(newsroomSummary)),
370
+ deriveMarkus: a
371
+ .query()
372
+ .arguments({ input: a.json().required() })
373
+ .returns(a.json())
374
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
375
+ .handler(a.handler.function(contentActions)),
376
+ saveItemDraft: a
377
+ .mutation()
378
+ .arguments({ input: a.json().required() })
379
+ .returns(a.json())
380
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
381
+ .handler(a.handler.function(contentActions)),
382
+ publishItem: a
383
+ .mutation()
384
+ .arguments({ input: a.json().required() })
385
+ .returns(a.json())
386
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
387
+ .handler(a.handler.function(contentActions)),
388
+ unpublishItem: a
389
+ .mutation()
390
+ .arguments({ input: a.json().required() })
391
+ .returns(a.json())
392
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
393
+ .handler(a.handler.function(contentActions)),
394
+ requestStagingBuild: a
395
+ .mutation()
396
+ .arguments({ input: a.json().required() })
397
+ .returns(a.json())
398
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
399
+ .handler(a.handler.function(contentActions)),
371
400
  knowledgeQuery: a
372
401
  .query()
373
402
  .arguments({
374
403
  input: a.json().required(),
375
404
  })
376
405
  .returns(a.json())
377
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
406
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
378
407
  .handler(a.handler.function(knowledgeQuery)),
379
408
  updateNewsroomSummary: a
380
409
  .mutation()
@@ -384,7 +413,7 @@ export const schema = a.schema({
384
413
  reason: a.string(),
385
414
  })
386
415
  .returns(a.ref("NewsroomSummary"))
387
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
416
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
388
417
  .handler(a.handler.function(newsroomSummary)),
389
418
  ModelAttachmentUploadSlot: a.customType({
390
419
  ok: a.boolean().required(),
@@ -440,7 +469,7 @@ export const schema = a.schema({
440
469
  status: a.string(),
441
470
  })
442
471
  .returns(a.ref("ModelAttachmentUploadSlot"))
443
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
472
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
444
473
  .handler(a.handler.function(modelAttachmentUpload)),
445
474
  completeModelAttachmentUpload: a
446
475
  .mutation()
@@ -461,7 +490,7 @@ export const schema = a.schema({
461
490
  status: a.string(),
462
491
  })
463
492
  .returns(a.ref("ModelAttachment"))
464
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
493
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
465
494
  .handler(a.handler.function(modelAttachmentUpload)),
466
495
  abortModelAttachmentUpload: a
467
496
  .mutation()
@@ -482,7 +511,7 @@ export const schema = a.schema({
482
511
  status: a.string(),
483
512
  })
484
513
  .returns(a.ref("ModelAttachmentUploadAbortResult"))
485
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
514
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
486
515
  .handler(a.handler.function(modelAttachmentUpload)),
487
516
  createModelAttachmentDownload: a
488
517
  .mutation()
@@ -490,7 +519,7 @@ export const schema = a.schema({
490
519
  attachmentId: a.id().required(),
491
520
  })
492
521
  .returns(a.ref("ModelAttachmentDownloadSlot"))
493
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
522
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
494
523
  .handler(a.handler.function(modelAttachmentUpload)),
495
524
  AssignmentActionResult: a.customType({
496
525
  ok: a.boolean().required(),
@@ -577,7 +606,7 @@ export const schema = a.schema({
577
606
  limit: a.integer(),
578
607
  })
579
608
  .returns(a.ref("AssignmentContext").array().required())
580
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
609
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
581
610
  .handler(a.handler.function(assignmentAction)),
582
611
  listAssignmentQueue: a
583
612
  .query()
@@ -587,7 +616,7 @@ export const schema = a.schema({
587
616
  limit: a.integer(),
588
617
  })
589
618
  .returns(a.ref("AssignmentContext").array().required())
590
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
619
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
591
620
  .handler(a.handler.function(assignmentAction)),
592
621
  getAssignmentContext: a
593
622
  .query()
@@ -595,7 +624,7 @@ export const schema = a.schema({
595
624
  assignmentId: a.id().required(),
596
625
  })
597
626
  .returns(a.ref("AssignmentContext"))
598
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
627
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
599
628
  .handler(a.handler.function(assignmentAction)),
600
629
  claimAssignment: a
601
630
  .mutation()
@@ -611,7 +640,7 @@ export const schema = a.schema({
611
640
  note: a.string(),
612
641
  })
613
642
  .returns(a.ref("AssignmentActionResult"))
614
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
643
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
615
644
  .handler(a.handler.function(assignmentAction)),
616
645
  releaseAssignment: a
617
646
  .mutation()
@@ -622,7 +651,7 @@ export const schema = a.schema({
622
651
  note: a.string(),
623
652
  })
624
653
  .returns(a.ref("AssignmentActionResult"))
625
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
654
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
626
655
  .handler(a.handler.function(assignmentAction)),
627
656
  completeAssignment: a
628
657
  .mutation()
@@ -633,7 +662,7 @@ export const schema = a.schema({
633
662
  note: a.string(),
634
663
  })
635
664
  .returns(a.ref("AssignmentActionResult"))
636
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
665
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
637
666
  .handler(a.handler.function(assignmentAction)),
638
667
  cancelAssignment: a
639
668
  .mutation()
@@ -644,7 +673,7 @@ export const schema = a.schema({
644
673
  note: a.string(),
645
674
  })
646
675
  .returns(a.ref("AssignmentActionResult"))
647
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
676
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
648
677
  .handler(a.handler.function(assignmentAction)),
649
678
  reopenAssignment: a
650
679
  .mutation()
@@ -655,7 +684,7 @@ export const schema = a.schema({
655
684
  note: a.string(),
656
685
  })
657
686
  .returns(a.ref("AssignmentActionResult"))
658
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
687
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
659
688
  .handler(a.handler.function(assignmentAction)),
660
689
  retryImmediateAssignment: a
661
690
  .mutation()
@@ -666,7 +695,7 @@ export const schema = a.schema({
666
695
  note: a.string(),
667
696
  })
668
697
  .returns(a.ref("AssignmentActionResult"))
669
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
698
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
670
699
  .handler(a.handler.function(assignmentAction)),
671
700
  listNewsroomProcedureDefinitions: a
672
701
  .query()
@@ -680,7 +709,7 @@ export const schema = a.schema({
680
709
  procedureKey: a.string(),
681
710
  })
682
711
  .returns(a.json())
683
- .authorization((allow) => [allow.group(adminGroup), allow.custom()])
712
+ .authorization((allow) => [allow.group(adminGroup)])
684
713
  .handler(a.handler.function(procedureAction)),
685
714
  saveNewsroomProcedureDefinition: a
686
715
  .mutation()
@@ -718,7 +747,7 @@ export const schema = a.schema({
718
747
  actorLabel: a.string(),
719
748
  })
720
749
  .returns(a.json())
721
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
750
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
722
751
  .handler(a.handler.function(procedureAction)),
723
752
  getNewsroomProcedureRun: a
724
753
  .query()
@@ -726,7 +755,7 @@ export const schema = a.schema({
726
755
  id: a.id().required(),
727
756
  })
728
757
  .returns(a.json())
729
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
758
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
730
759
  .handler(a.handler.function(procedureAction)),
731
760
  listNewsroomProcedureRunsByProcedure: a
732
761
  .query()
@@ -734,7 +763,7 @@ export const schema = a.schema({
734
763
  procedureId: a.id().required(),
735
764
  })
736
765
  .returns(a.json())
737
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
766
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
738
767
  .handler(a.handler.function(procedureAction)),
739
768
  Assignment: modelWithoutSubscriptions({
740
769
  id: a.id().required(),
@@ -783,7 +812,6 @@ export const schema = a.schema({
783
812
  .authorization((allow) => [
784
813
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
785
814
  allow.authenticated("identityPool").to(authoringOperations),
786
- allow.custom().to(authoringOperations),
787
815
  ]),
788
816
  AssignmentEvent: modelWithoutSubscriptions({
789
817
  id: a.id().required(),
@@ -805,7 +833,6 @@ export const schema = a.schema({
805
833
  ])
806
834
  .authorization((allow) => [
807
835
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
808
- allow.custom().to(authoringOperations),
809
836
  ]),
810
837
  ProcedureDefinition: modelWithoutSubscriptions({
811
838
  id: a.id().required(),
@@ -829,7 +856,6 @@ export const schema = a.schema({
829
856
  ])
830
857
  .authorization((allow) => [
831
858
  allow.group(adminGroup),
832
- allow.custom().to(authoringOperations),
833
859
  ]),
834
860
  ProcedureVersion: modelWithoutSubscriptions({
835
861
  id: a.id().required(),
@@ -855,7 +881,6 @@ export const schema = a.schema({
855
881
  ])
856
882
  .authorization((allow) => [
857
883
  allow.group(adminGroup),
858
- allow.custom().to(authoringOperations),
859
884
  ]),
860
885
  ProcedureRun: modelWithoutSubscriptions({
861
886
  id: a.id().required(),
@@ -887,7 +912,6 @@ export const schema = a.schema({
887
912
  .authorization((allow) => [
888
913
  allow.group("editor").to(["read"]),
889
914
  allow.group(adminGroup).to(authoringOperations),
890
- allow.custom().to(authoringOperations),
891
915
  ]),
892
916
  NewsroomSection: modelWithoutSubscriptions({
893
917
  id: a.id().required(),
@@ -914,7 +938,6 @@ export const schema = a.schema({
914
938
  ])
915
939
  .authorization((allow) => [
916
940
  allow.groups(categoryWriteGroups),
917
- allow.custom().to(authoringOperations),
918
941
  ]),
919
942
  KnowledgeCorpus: modelWithoutSubscriptions({
920
943
  id: a.id().required(),
@@ -931,7 +954,6 @@ export const schema = a.schema({
931
954
  ])
932
955
  .authorization((allow) => [
933
956
  allow.groups(categoryWriteGroups).to(["read"]),
934
- allow.custom().to(authoringOperations),
935
957
  ]),
936
958
  KnowledgeImportRun: modelWithoutSubscriptions({
937
959
  id: a.id().required(),
@@ -958,7 +980,6 @@ export const schema = a.schema({
958
980
  ])
959
981
  .authorization((allow) => [
960
982
  allow.groups(categoryWriteGroups).to(["read"]),
961
- allow.custom().to(authoringOperations),
962
983
  ]),
963
984
  KnowledgeRawPayload: modelWithoutSubscriptions({
964
985
  id: a.id().required(),
@@ -975,7 +996,6 @@ export const schema = a.schema({
975
996
  ])
976
997
  .authorization((allow) => [
977
998
  allow.groups(categoryWriteGroups),
978
- allow.custom().to(authoringOperations),
979
999
  ]),
980
1000
  KnowledgeArtifact: modelWithoutSubscriptions({
981
1001
  id: a.id().required(),
@@ -994,7 +1014,6 @@ export const schema = a.schema({
994
1014
  ])
995
1015
  .authorization((allow) => [
996
1016
  allow.groups(categoryWriteGroups).to(["read"]),
997
- allow.custom().to(authoringOperations),
998
1017
  ]),
999
1018
  CategorySet: modelWithoutSubscriptions({
1000
1019
  id: a.id().required(),
@@ -1023,7 +1042,6 @@ export const schema = a.schema({
1023
1042
  ])
1024
1043
  .authorization((allow) => [
1025
1044
  allow.groups(categoryWriteGroups),
1026
- allow.custom().to(authoringOperations),
1027
1045
  ]),
1028
1046
  Category: modelWithoutSubscriptions({
1029
1047
  id: a.id().required(),
@@ -1064,7 +1082,6 @@ export const schema = a.schema({
1064
1082
  ])
1065
1083
  .authorization((allow) => [
1066
1084
  allow.groups(categoryWriteGroups),
1067
- allow.custom().to(authoringOperations),
1068
1085
  ]),
1069
1086
  CategoryKeyword: modelWithoutSubscriptions({
1070
1087
  id: a.id().required(),
@@ -1092,7 +1109,6 @@ export const schema = a.schema({
1092
1109
  ])
1093
1110
  .authorization((allow) => [
1094
1111
  allow.groups(categoryWriteGroups),
1095
- allow.custom().to(authoringOperations),
1096
1112
  ]),
1097
1113
  LexicalSteeringRule: modelWithoutSubscriptions({
1098
1114
  id: a.id().required(),
@@ -1120,7 +1136,6 @@ export const schema = a.schema({
1120
1136
  ])
1121
1137
  .authorization((allow) => [
1122
1138
  allow.groups(categoryWriteGroups),
1123
- allow.custom().to(authoringOperations),
1124
1139
  ]),
1125
1140
  SteeringProposal: modelWithoutSubscriptions({
1126
1141
  id: a.id().required(),
@@ -1157,7 +1172,6 @@ export const schema = a.schema({
1157
1172
  ])
1158
1173
  .authorization((allow) => [
1159
1174
  allow.groups(categoryWriteGroups).to(["read"]),
1160
- allow.custom().to(authoringOperations),
1161
1175
  ]),
1162
1176
  SteeringDecision: modelWithoutSubscriptions({
1163
1177
  id: a.id().required(),
@@ -1176,7 +1190,6 @@ export const schema = a.schema({
1176
1190
  ])
1177
1191
  .authorization((allow) => [
1178
1192
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1179
- allow.custom().to(authoringOperations),
1180
1193
  ]),
1181
1194
  Reference: realtimeModel({
1182
1195
  id: a.id().required(),
@@ -1227,7 +1240,6 @@ export const schema = a.schema({
1227
1240
  ])
1228
1241
  .authorization((allow) => [
1229
1242
  allow.groups(categoryWriteGroups).to(["read"]),
1230
- allow.custom().to(authoringOperations),
1231
1243
  ]),
1232
1244
  ReferenceAttachment: modelWithoutSubscriptions({
1233
1245
  id: a.id().required(),
@@ -1256,7 +1268,6 @@ export const schema = a.schema({
1256
1268
  ])
1257
1269
  .authorization((allow) => [
1258
1270
  allow.groups(categoryWriteGroups).to(["read"]),
1259
- allow.custom().to(authoringOperations),
1260
1271
  ]),
1261
1272
  SemanticNode: modelWithoutSubscriptions({
1262
1273
  id: a.id().required(),
@@ -1293,7 +1304,6 @@ export const schema = a.schema({
1293
1304
  ])
1294
1305
  .authorization((allow) => [
1295
1306
  allow.groups(categoryWriteGroups).to(["read"]),
1296
- allow.custom().to(authoringOperations),
1297
1307
  ]),
1298
1308
  Message: realtimeModel({
1299
1309
  id: a.id().required(),
@@ -1341,7 +1351,6 @@ export const schema = a.schema({
1341
1351
  ])
1342
1352
  .authorization((allow) => [
1343
1353
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1344
- allow.custom().to(authoringOperations),
1345
1354
  ]),
1346
1355
  MessageThread: realtimeModel({
1347
1356
  id: a.id().required(),
@@ -1378,7 +1387,6 @@ export const schema = a.schema({
1378
1387
  .authorization((allow) => [
1379
1388
  allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
1380
1389
  allow.authenticated("identityPool").to(authoringOperations),
1381
- allow.custom().to(authoringOperations),
1382
1390
  ]),
1383
1391
  ModelAttachment: modelWithoutSubscriptions({
1384
1392
  id: a.id().required(),
@@ -1409,7 +1417,6 @@ export const schema = a.schema({
1409
1417
  ])
1410
1418
  .authorization((allow) => [
1411
1419
  allow.groups(categoryWriteGroups).to(["read"]),
1412
- allow.custom().to(authoringOperations),
1413
1420
  ]),
1414
1421
  SemanticRelationType: modelWithoutSubscriptions({
1415
1422
  id: a.id().required(),
@@ -1436,7 +1443,6 @@ export const schema = a.schema({
1436
1443
  ])
1437
1444
  .authorization((allow) => [
1438
1445
  allow.groups(categoryWriteGroups),
1439
- allow.custom().to(authoringOperations),
1440
1446
  ]),
1441
1447
  SemanticRelation: modelWithoutSubscriptions({
1442
1448
  id: a.id().required(),
@@ -1486,7 +1492,6 @@ export const schema = a.schema({
1486
1492
  ])
1487
1493
  .authorization((allow) => [
1488
1494
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1489
- allow.custom().to(authoringOperations),
1490
1495
  ]),
1491
1496
  Item: modelWithoutSubscriptions({
1492
1497
  id: a.id().required(),
@@ -1535,7 +1540,6 @@ export const schema = a.schema({
1535
1540
  ])
1536
1541
  .authorization((allow) => [
1537
1542
  allow.groups(contentWriteGroups),
1538
- allow.custom().to(authoringOperations),
1539
1543
  ]),
1540
1544
  Tag: modelWithoutSubscriptions({
1541
1545
  id: a.id().required(),
@@ -1551,7 +1555,6 @@ export const schema = a.schema({
1551
1555
  ])
1552
1556
  .authorization((allow) => [
1553
1557
  allow.groups(contentWriteGroups),
1554
- allow.custom().to(authoringOperations),
1555
1558
  ]),
1556
1559
  ItemTag: modelWithoutSubscriptions({
1557
1560
  id: a.id().required(),
@@ -1570,7 +1573,6 @@ export const schema = a.schema({
1570
1573
  ])
1571
1574
  .authorization((allow) => [
1572
1575
  allow.groups(contentWriteGroups),
1573
- allow.custom().to(authoringOperations),
1574
1576
  ]),
1575
1577
  MediaAsset: modelWithoutSubscriptions({
1576
1578
  id: a.id().required(),
@@ -1602,7 +1604,6 @@ export const schema = a.schema({
1602
1604
  ])
1603
1605
  .authorization((allow) => [
1604
1606
  allow.groups(contentWriteGroups),
1605
- allow.custom().to(authoringOperations),
1606
1607
  ]),
1607
1608
  Edition: modelWithoutSubscriptions({
1608
1609
  id: a.id().required(),
@@ -1633,7 +1634,6 @@ export const schema = a.schema({
1633
1634
  ])
1634
1635
  .authorization((allow) => [
1635
1636
  allow.groups(contentWriteGroups),
1636
- allow.custom().to(authoringOperations),
1637
1637
  ]),
1638
1638
  EditionItem: modelWithoutSubscriptions({
1639
1639
  id: a.id().required(),
@@ -1655,7 +1655,6 @@ export const schema = a.schema({
1655
1655
  ])
1656
1656
  .authorization((allow) => [
1657
1657
  allow.groups(contentWriteGroups),
1658
- allow.custom().to(authoringOperations),
1659
1658
  ]),
1660
1659
  PublishedItem: modelWithoutSubscriptions({
1661
1660
  id: a.id().required(),
@@ -1695,7 +1694,6 @@ export const schema = a.schema({
1695
1694
  .authorization((allow) => [
1696
1695
  allow.guest().to(["read"]),
1697
1696
  allow.groups(contentWriteGroups),
1698
- allow.custom().to(authoringOperations),
1699
1697
  ]),
1700
1698
  PublishedMediaAsset: modelWithoutSubscriptions({
1701
1699
  id: a.id().required(),
@@ -1730,7 +1728,6 @@ export const schema = a.schema({
1730
1728
  .authorization((allow) => [
1731
1729
  allow.guest().to(["read"]),
1732
1730
  allow.groups(contentWriteGroups),
1733
- allow.custom().to(authoringOperations),
1734
1731
  ]),
1735
1732
  PublishedEdition: modelWithoutSubscriptions({
1736
1733
  id: a.id().required(),
@@ -1755,7 +1752,6 @@ export const schema = a.schema({
1755
1752
  .authorization((allow) => [
1756
1753
  allow.guest().to(["read"]),
1757
1754
  allow.groups(contentWriteGroups),
1758
- allow.custom().to(authoringOperations),
1759
1755
  ]),
1760
1756
  PublishedEditionItem: modelWithoutSubscriptions({
1761
1757
  id: a.id().required(),
@@ -1779,7 +1775,6 @@ export const schema = a.schema({
1779
1775
  .authorization((allow) => [
1780
1776
  allow.guest().to(["read"]),
1781
1777
  allow.groups(contentWriteGroups),
1782
- allow.custom().to(authoringOperations),
1783
1778
  ]),
1784
1779
  PublishedCategorySet: modelWithoutSubscriptions({
1785
1780
  id: a.id().required(),
@@ -1804,7 +1799,6 @@ export const schema = a.schema({
1804
1799
  .authorization((allow) => [
1805
1800
  allow.guest().to(["read"]),
1806
1801
  allow.groups(contentWriteGroups),
1807
- allow.custom().to(authoringOperations),
1808
1802
  ]),
1809
1803
  PublishedCategory: modelWithoutSubscriptions({
1810
1804
  id: a.id().required(),
@@ -1839,10 +1833,10 @@ export const schema = a.schema({
1839
1833
  .authorization((allow) => [
1840
1834
  allow.guest().to(["read"]),
1841
1835
  allow.groups(contentWriteGroups),
1842
- allow.custom().to(authoringOperations),
1843
1836
  ]),
1844
1837
  }).authorization((allow) => [
1845
1838
  allow.resource(categoryAction),
1839
+ allow.resource(contentActions),
1846
1840
  allow.resource(manageUserRole),
1847
1841
  allow.resource(modelAttachmentUpload),
1848
1842
  allow.resource(newsroomSummary),