@anthusai/papyrus 1.0.0-next.4 → 1.0.0-next.40

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 (147) hide show
  1. package/amplify/auth/redirect-urls.js +54 -0
  2. package/amplify/auth/redirect-urls.ts +66 -0
  3. package/amplify/auth/resource.js +20 -5
  4. package/amplify/auth/resource.ts +27 -5
  5. package/amplify/data/resource.js +28 -70
  6. package/amplify/data/resource.ts +29 -70
  7. package/amplify/data/schema.js +33 -58
  8. package/amplify/data/schema.ts +34 -58
  9. package/amplify/functions/category-action/handler.ts +5 -3
  10. package/amplify/functions/console-chat-responder/py/execute_tactus_runner.py +0 -10
  11. package/amplify/functions/console-chat-responder/resource.js +0 -7
  12. package/amplify/functions/console-chat-responder/resource.ts +0 -8
  13. package/amplify/functions/console-chat-responder/src/main.rs +0 -9
  14. package/amplify/functions/content-actions/handler.py +45 -3
  15. package/amplify/functions/shared/reference-curation-metadata.ts +29 -0
  16. package/amplify/inbound-email/ses-intake.js +86 -0
  17. package/amplify/inbound-email/ses-intake.ts +110 -0
  18. package/amplify/rebuild-trigger-settings.js +22 -0
  19. package/amplify/rebuild-trigger-settings.ts +42 -0
  20. package/amplify/resolver-waves.js +26 -0
  21. package/amplify/resolver-waves.ts +34 -0
  22. package/amplify/site-backend-config.ts +36 -1
  23. package/amplify/site-backend-names.js +103 -0
  24. package/amplify/site-backend-names.ts +166 -0
  25. package/amplify/site-backend.js +93 -170
  26. package/amplify/site-backend.ts +126 -196
  27. package/amplify/storage/resource.js +3 -0
  28. package/amplify/storage/resource.ts +3 -0
  29. package/amplify/storage-backups/construct.js +31 -0
  30. package/amplify/storage-backups/construct.ts +47 -0
  31. package/app/%5F_preview/[[...path]]/route.ts +8 -0
  32. package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +2 -0
  33. package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
  34. package/app/api/media/[...path]/route.ts +5 -16
  35. package/app/api/revalidate/route.ts +8 -7
  36. package/app/articles/[slug]/page.tsx +6 -4
  37. package/app/blog-rhythm.css +278 -0
  38. package/app/globals.css +21 -0
  39. package/app/layout.tsx +16 -0
  40. package/app/newsroom/[section]/[...selection]/page.tsx +6 -5
  41. package/app/newsroom/[section]/page.tsx +4 -3
  42. package/app/newsroom/articles/[id]/page.tsx +15 -0
  43. package/app/newsroom/articles/page.tsx +13 -0
  44. package/app/newsroom/layout.tsx +4 -9
  45. package/app/page.tsx +18 -5
  46. package/app/robots.ts +2 -5
  47. package/bin/papyrus-app.mjs +12 -2
  48. package/bin/papyrus-infra.mjs +29 -3
  49. package/components/amplify-client-provider.tsx +4 -22
  50. package/components/archive-shell.tsx +2 -22
  51. package/components/article-video.tsx +247 -3
  52. package/components/blog-page-background.tsx +23 -6
  53. package/components/markus-ir-preview.tsx +300 -0
  54. package/components/news-desk-taxonomy-client.ts +51 -0
  55. package/components/newspaper.tsx +6 -2
  56. package/components/newsroom-access-gate.tsx +67 -0
  57. package/components/newsroom-article-editor.tsx +741 -0
  58. package/components/newsroom-articles-view.tsx +129 -0
  59. package/components/newsroom-client-shell.tsx +12 -0
  60. package/components/newsroom-ops-overview.tsx +28 -11
  61. package/components/newsroom-ops-shell.tsx +3 -1
  62. package/components/newsroom-references-view.tsx +83 -8
  63. package/components/papyrus-console-shell.tsx +4 -2
  64. package/components/pictogram-figure.tsx +9 -2
  65. package/components/presentation-header.tsx +135 -0
  66. package/components/presentation-rhythm-hrule.tsx +17 -0
  67. package/components/reference-cyclotron-status.tsx +109 -0
  68. package/components/reference-relevance-review.tsx +75 -0
  69. package/components/settings-page.tsx +2 -1
  70. package/components/topic-steering-workspace.tsx +54 -64
  71. package/components/use-blog-header-obstacles.ts +81 -0
  72. package/components/use-brand-fonts-ready.ts +28 -0
  73. package/components/use-rhythm-overlay.ts +29 -0
  74. package/infra/amplify-app-shell.js +212 -50
  75. package/infra/amplify-app-shell.ts +240 -53
  76. package/infra/build-specs.js +14 -5
  77. package/infra/build-specs.ts +17 -7
  78. package/infra/github-oidc-provider.js +24 -0
  79. package/infra/github-oidc-provider.ts +30 -0
  80. package/infra/index.js +1 -0
  81. package/infra/site-config.js +167 -10
  82. package/infra/site-config.ts +196 -14
  83. package/lib/amplify-outputs-path.ts +5 -1
  84. package/lib/blog-feature-solver.ts +459 -0
  85. package/lib/blog-rhythm.ts +134 -0
  86. package/lib/brand-fonts-watch.ts +43 -0
  87. package/lib/brand-fonts.ts +112 -0
  88. package/lib/cached-content-repository.ts +12 -0
  89. package/lib/category-repository.ts +42 -93
  90. package/lib/content-actions-demo.ts +190 -0
  91. package/lib/content-repository.ts +3 -0
  92. package/lib/content-source-context.ts +12 -2
  93. package/lib/content-types.ts +4 -0
  94. package/lib/edition-routes.ts +31 -29
  95. package/lib/graphql-content-repository.ts +61 -9
  96. package/lib/media-route-response.ts +45 -0
  97. package/lib/newspaper-layout.ts +3 -2
  98. package/lib/newsroom-articles.ts +325 -0
  99. package/lib/newsroom-base-path.ts +12 -3
  100. package/lib/newsroom-category-drilldown.ts +3 -2
  101. package/lib/newsroom-demo-articles.ts +90 -0
  102. package/lib/newsroom-forum-routes.ts +6 -4
  103. package/lib/newsroom-index-filters.ts +14 -10
  104. package/lib/newsroom-media-backend.ts +142 -0
  105. package/lib/newsroom-media.ts +182 -0
  106. package/lib/newsroom-nav.ts +3 -0
  107. package/lib/oauth-redirect-priority.ts +40 -0
  108. package/lib/papyrus-web-locations.ts +7 -6
  109. package/lib/presentation-footer.ts +3 -2
  110. package/lib/pretext-layout.ts +12 -3
  111. package/lib/reader-base-path.ts +24 -0
  112. package/lib/reader-static-params.ts +13 -0
  113. package/lib/reference-policy.ts +5 -0
  114. package/lib/relevance-decisions.ts +103 -0
  115. package/lib/relevance-status.ts +63 -0
  116. package/lib/renderer.ts +7 -0
  117. package/lib/revalidate-secret.ts +59 -0
  118. package/lib/robots-policy.ts +14 -0
  119. package/lib/root-route-redirect.ts +16 -0
  120. package/lib/semantic-graph.ts +7 -0
  121. package/lib/site-brand.ts +51 -0
  122. package/lib/staging-gated-path.ts +23 -0
  123. package/lib/staging-preview-object.ts +114 -0
  124. package/lib/video-mode.ts +42 -0
  125. package/lib/video-script.ts +77 -0
  126. package/middleware.ts +23 -18
  127. package/package.json +45 -1
  128. package/renderers/pretext/article-page.tsx +39 -3
  129. package/renderers/pretext/presentation-shared.tsx +113 -0
  130. package/renderers/pretext/presentation-shell.tsx +15 -102
  131. package/renderers/pretext/rhythm-article-page.tsx +165 -0
  132. package/renderers/pretext/rhythm-blog-presentation.tsx +279 -0
  133. package/renderers/pretext/rhythm-shell-style.ts +35 -0
  134. package/routes.manifest.json +45 -2
  135. package/scripts/videoml/build-browser-bundle.mjs +22 -0
  136. package/scripts/videoml/build-preview-bundle.mjs +50 -0
  137. package/scripts/videoml/bundle-common.mjs +129 -0
  138. package/scripts/videoml/preview/preview-entry.tsx +381 -0
  139. package/scripts/videoml/preview/preview-stage-fit.ts +28 -0
  140. package/scripts/videoml/preview/preview-timing.ts +42 -0
  141. package/scripts/videoml/preview.html +77 -0
  142. package/scripts/videoml/standard-entry.tsx +46 -0
  143. package/src/sync.mjs +30 -6
  144. package/src/with-papyrus.mjs +19 -2
  145. package/amplify/functions/graphql-jwt-authorizer/handler.ts +0 -193
  146. package/amplify/functions/graphql-jwt-authorizer/resource.js +0 -14
  147. package/amplify/functions/graphql-jwt-authorizer/resource.ts +0 -15
@@ -245,11 +245,12 @@ export const schema = a.schema({
245
245
  actorLabel: a.string(),
246
246
  note: a.string(),
247
247
  reasonCode: a.string(),
248
+ decisionRelationId: a.id(),
249
+ shareable: a.boolean(),
248
250
  })
249
251
  .returns(a.ref("ReferenceCurationActionResult"))
250
252
  .authorization((allow) => [
251
253
  allow.groups(categoryWriteGroups),
252
- allow.custom(),
253
254
  ])
254
255
  .handler(a.handler.function(categoryAction)),
255
256
  setReferenceQualityRating: a
@@ -264,7 +265,6 @@ export const schema = a.schema({
264
265
  .returns(a.ref("ReferenceQualityActionResult"))
265
266
  .authorization((allow) => [
266
267
  allow.groups(categoryWriteGroups),
267
- allow.custom(),
268
268
  ])
269
269
  .handler(a.handler.function(categoryAction)),
270
270
  createCategorySetDraft: a
@@ -367,7 +367,7 @@ export const schema = a.schema({
367
367
  getNewsroomSummary: a
368
368
  .query()
369
369
  .returns(a.ref("NewsroomSummary"))
370
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
370
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
371
371
  .handler(a.handler.function(newsroomSummary)),
372
372
  deriveMarkus: a
373
373
  .query()
@@ -393,13 +393,19 @@ export const schema = a.schema({
393
393
  .returns(a.json())
394
394
  .authorization((allow) => [allow.groups(contentWriteGroups)])
395
395
  .handler(a.handler.function(contentActions)),
396
+ requestStagingBuild: a
397
+ .mutation()
398
+ .arguments({ input: a.json().required() })
399
+ .returns(a.json())
400
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
401
+ .handler(a.handler.function(contentActions)),
396
402
  knowledgeQuery: a
397
403
  .query()
398
404
  .arguments({
399
405
  input: a.json().required(),
400
406
  })
401
407
  .returns(a.json())
402
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
408
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
403
409
  .handler(a.handler.function(knowledgeQuery)),
404
410
  updateNewsroomSummary: a
405
411
  .mutation()
@@ -409,7 +415,7 @@ export const schema = a.schema({
409
415
  reason: a.string(),
410
416
  })
411
417
  .returns(a.ref("NewsroomSummary"))
412
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
418
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
413
419
  .handler(a.handler.function(newsroomSummary)),
414
420
  ModelAttachmentUploadSlot: a.customType({
415
421
  ok: a.boolean().required(),
@@ -465,7 +471,7 @@ export const schema = a.schema({
465
471
  status: a.string(),
466
472
  })
467
473
  .returns(a.ref("ModelAttachmentUploadSlot"))
468
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
474
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
469
475
  .handler(a.handler.function(modelAttachmentUpload)),
470
476
  completeModelAttachmentUpload: a
471
477
  .mutation()
@@ -486,7 +492,7 @@ export const schema = a.schema({
486
492
  status: a.string(),
487
493
  })
488
494
  .returns(a.ref("ModelAttachment"))
489
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
495
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
490
496
  .handler(a.handler.function(modelAttachmentUpload)),
491
497
  abortModelAttachmentUpload: a
492
498
  .mutation()
@@ -507,7 +513,7 @@ export const schema = a.schema({
507
513
  status: a.string(),
508
514
  })
509
515
  .returns(a.ref("ModelAttachmentUploadAbortResult"))
510
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
516
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
511
517
  .handler(a.handler.function(modelAttachmentUpload)),
512
518
  createModelAttachmentDownload: a
513
519
  .mutation()
@@ -515,7 +521,7 @@ export const schema = a.schema({
515
521
  attachmentId: a.id().required(),
516
522
  })
517
523
  .returns(a.ref("ModelAttachmentDownloadSlot"))
518
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
524
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
519
525
  .handler(a.handler.function(modelAttachmentUpload)),
520
526
  AssignmentActionResult: a.customType({
521
527
  ok: a.boolean().required(),
@@ -602,7 +608,7 @@ export const schema = a.schema({
602
608
  limit: a.integer(),
603
609
  })
604
610
  .returns(a.ref("AssignmentContext").array().required())
605
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
611
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
606
612
  .handler(a.handler.function(assignmentAction)),
607
613
  listAssignmentQueue: a
608
614
  .query()
@@ -612,7 +618,7 @@ export const schema = a.schema({
612
618
  limit: a.integer(),
613
619
  })
614
620
  .returns(a.ref("AssignmentContext").array().required())
615
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
621
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
616
622
  .handler(a.handler.function(assignmentAction)),
617
623
  getAssignmentContext: a
618
624
  .query()
@@ -620,7 +626,7 @@ export const schema = a.schema({
620
626
  assignmentId: a.id().required(),
621
627
  })
622
628
  .returns(a.ref("AssignmentContext"))
623
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
629
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
624
630
  .handler(a.handler.function(assignmentAction)),
625
631
  claimAssignment: a
626
632
  .mutation()
@@ -636,7 +642,7 @@ export const schema = a.schema({
636
642
  note: a.string(),
637
643
  })
638
644
  .returns(a.ref("AssignmentActionResult"))
639
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
645
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
640
646
  .handler(a.handler.function(assignmentAction)),
641
647
  releaseAssignment: a
642
648
  .mutation()
@@ -647,7 +653,7 @@ export const schema = a.schema({
647
653
  note: a.string(),
648
654
  })
649
655
  .returns(a.ref("AssignmentActionResult"))
650
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
656
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
651
657
  .handler(a.handler.function(assignmentAction)),
652
658
  completeAssignment: a
653
659
  .mutation()
@@ -658,7 +664,7 @@ export const schema = a.schema({
658
664
  note: a.string(),
659
665
  })
660
666
  .returns(a.ref("AssignmentActionResult"))
661
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
667
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
662
668
  .handler(a.handler.function(assignmentAction)),
663
669
  cancelAssignment: a
664
670
  .mutation()
@@ -669,7 +675,7 @@ export const schema = a.schema({
669
675
  note: a.string(),
670
676
  })
671
677
  .returns(a.ref("AssignmentActionResult"))
672
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
678
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
673
679
  .handler(a.handler.function(assignmentAction)),
674
680
  reopenAssignment: a
675
681
  .mutation()
@@ -680,7 +686,7 @@ export const schema = a.schema({
680
686
  note: a.string(),
681
687
  })
682
688
  .returns(a.ref("AssignmentActionResult"))
683
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
689
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
684
690
  .handler(a.handler.function(assignmentAction)),
685
691
  retryImmediateAssignment: a
686
692
  .mutation()
@@ -691,7 +697,7 @@ export const schema = a.schema({
691
697
  note: a.string(),
692
698
  })
693
699
  .returns(a.ref("AssignmentActionResult"))
694
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
700
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
695
701
  .handler(a.handler.function(assignmentAction)),
696
702
  listNewsroomProcedureDefinitions: a
697
703
  .query()
@@ -705,7 +711,7 @@ export const schema = a.schema({
705
711
  procedureKey: a.string(),
706
712
  })
707
713
  .returns(a.json())
708
- .authorization((allow) => [allow.group(adminGroup), allow.custom()])
714
+ .authorization((allow) => [allow.group(adminGroup)])
709
715
  .handler(a.handler.function(procedureAction)),
710
716
  saveNewsroomProcedureDefinition: a
711
717
  .mutation()
@@ -743,7 +749,7 @@ export const schema = a.schema({
743
749
  actorLabel: a.string(),
744
750
  })
745
751
  .returns(a.json())
746
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
752
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
747
753
  .handler(a.handler.function(procedureAction)),
748
754
  getNewsroomProcedureRun: a
749
755
  .query()
@@ -751,7 +757,7 @@ export const schema = a.schema({
751
757
  id: a.id().required(),
752
758
  })
753
759
  .returns(a.json())
754
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
760
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
755
761
  .handler(a.handler.function(procedureAction)),
756
762
  listNewsroomProcedureRunsByProcedure: a
757
763
  .query()
@@ -759,7 +765,7 @@ export const schema = a.schema({
759
765
  procedureId: a.id().required(),
760
766
  })
761
767
  .returns(a.json())
762
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
768
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
763
769
  .handler(a.handler.function(procedureAction)),
764
770
  Assignment: modelWithoutSubscriptions({
765
771
  id: a.id().required(),
@@ -808,7 +814,6 @@ export const schema = a.schema({
808
814
  .authorization((allow) => [
809
815
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
810
816
  allow.authenticated("identityPool").to(authoringOperations),
811
- allow.custom().to(authoringOperations),
812
817
  ]),
813
818
  AssignmentEvent: modelWithoutSubscriptions({
814
819
  id: a.id().required(),
@@ -830,7 +835,6 @@ export const schema = a.schema({
830
835
  ])
831
836
  .authorization((allow) => [
832
837
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
833
- allow.custom().to(authoringOperations),
834
838
  ]),
835
839
  ProcedureDefinition: modelWithoutSubscriptions({
836
840
  id: a.id().required(),
@@ -854,7 +858,6 @@ export const schema = a.schema({
854
858
  ])
855
859
  .authorization((allow) => [
856
860
  allow.group(adminGroup),
857
- allow.custom().to(authoringOperations),
858
861
  ]),
859
862
  ProcedureVersion: modelWithoutSubscriptions({
860
863
  id: a.id().required(),
@@ -880,7 +883,6 @@ export const schema = a.schema({
880
883
  ])
881
884
  .authorization((allow) => [
882
885
  allow.group(adminGroup),
883
- allow.custom().to(authoringOperations),
884
886
  ]),
885
887
  ProcedureRun: modelWithoutSubscriptions({
886
888
  id: a.id().required(),
@@ -912,7 +914,6 @@ export const schema = a.schema({
912
914
  .authorization((allow) => [
913
915
  allow.group("editor").to(["read"]),
914
916
  allow.group(adminGroup).to(authoringOperations),
915
- allow.custom().to(authoringOperations),
916
917
  ]),
917
918
  NewsroomSection: modelWithoutSubscriptions({
918
919
  id: a.id().required(),
@@ -939,7 +940,6 @@ export const schema = a.schema({
939
940
  ])
940
941
  .authorization((allow) => [
941
942
  allow.groups(categoryWriteGroups),
942
- allow.custom().to(authoringOperations),
943
943
  ]),
944
944
  KnowledgeCorpus: modelWithoutSubscriptions({
945
945
  id: a.id().required(),
@@ -956,7 +956,6 @@ export const schema = a.schema({
956
956
  ])
957
957
  .authorization((allow) => [
958
958
  allow.groups(categoryWriteGroups).to(["read"]),
959
- allow.custom().to(authoringOperations),
960
959
  ]),
961
960
  KnowledgeImportRun: modelWithoutSubscriptions({
962
961
  id: a.id().required(),
@@ -983,7 +982,6 @@ export const schema = a.schema({
983
982
  ])
984
983
  .authorization((allow) => [
985
984
  allow.groups(categoryWriteGroups).to(["read"]),
986
- allow.custom().to(authoringOperations),
987
985
  ]),
988
986
  KnowledgeRawPayload: modelWithoutSubscriptions({
989
987
  id: a.id().required(),
@@ -1000,7 +998,6 @@ export const schema = a.schema({
1000
998
  ])
1001
999
  .authorization((allow) => [
1002
1000
  allow.groups(categoryWriteGroups),
1003
- allow.custom().to(authoringOperations),
1004
1001
  ]),
1005
1002
  KnowledgeArtifact: modelWithoutSubscriptions({
1006
1003
  id: a.id().required(),
@@ -1019,7 +1016,6 @@ export const schema = a.schema({
1019
1016
  ])
1020
1017
  .authorization((allow) => [
1021
1018
  allow.groups(categoryWriteGroups).to(["read"]),
1022
- allow.custom().to(authoringOperations),
1023
1019
  ]),
1024
1020
  CategorySet: modelWithoutSubscriptions({
1025
1021
  id: a.id().required(),
@@ -1048,7 +1044,6 @@ export const schema = a.schema({
1048
1044
  ])
1049
1045
  .authorization((allow) => [
1050
1046
  allow.groups(categoryWriteGroups),
1051
- allow.custom().to(authoringOperations),
1052
1047
  ]),
1053
1048
  Category: modelWithoutSubscriptions({
1054
1049
  id: a.id().required(),
@@ -1089,7 +1084,6 @@ export const schema = a.schema({
1089
1084
  ])
1090
1085
  .authorization((allow) => [
1091
1086
  allow.groups(categoryWriteGroups),
1092
- allow.custom().to(authoringOperations),
1093
1087
  ]),
1094
1088
  CategoryKeyword: modelWithoutSubscriptions({
1095
1089
  id: a.id().required(),
@@ -1117,7 +1111,6 @@ export const schema = a.schema({
1117
1111
  ])
1118
1112
  .authorization((allow) => [
1119
1113
  allow.groups(categoryWriteGroups),
1120
- allow.custom().to(authoringOperations),
1121
1114
  ]),
1122
1115
  LexicalSteeringRule: modelWithoutSubscriptions({
1123
1116
  id: a.id().required(),
@@ -1145,7 +1138,6 @@ export const schema = a.schema({
1145
1138
  ])
1146
1139
  .authorization((allow) => [
1147
1140
  allow.groups(categoryWriteGroups),
1148
- allow.custom().to(authoringOperations),
1149
1141
  ]),
1150
1142
  SteeringProposal: modelWithoutSubscriptions({
1151
1143
  id: a.id().required(),
@@ -1182,7 +1174,6 @@ export const schema = a.schema({
1182
1174
  ])
1183
1175
  .authorization((allow) => [
1184
1176
  allow.groups(categoryWriteGroups).to(["read"]),
1185
- allow.custom().to(authoringOperations),
1186
1177
  ]),
1187
1178
  SteeringDecision: modelWithoutSubscriptions({
1188
1179
  id: a.id().required(),
@@ -1201,7 +1192,6 @@ export const schema = a.schema({
1201
1192
  ])
1202
1193
  .authorization((allow) => [
1203
1194
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1204
- allow.custom().to(authoringOperations),
1205
1195
  ]),
1206
1196
  Reference: realtimeModel({
1207
1197
  id: a.id().required(),
@@ -1252,7 +1242,6 @@ export const schema = a.schema({
1252
1242
  ])
1253
1243
  .authorization((allow) => [
1254
1244
  allow.groups(categoryWriteGroups).to(["read"]),
1255
- allow.custom().to(authoringOperations),
1256
1245
  ]),
1257
1246
  ReferenceAttachment: modelWithoutSubscriptions({
1258
1247
  id: a.id().required(),
@@ -1281,7 +1270,6 @@ export const schema = a.schema({
1281
1270
  ])
1282
1271
  .authorization((allow) => [
1283
1272
  allow.groups(categoryWriteGroups).to(["read"]),
1284
- allow.custom().to(authoringOperations),
1285
1273
  ]),
1286
1274
  SemanticNode: modelWithoutSubscriptions({
1287
1275
  id: a.id().required(),
@@ -1302,6 +1290,11 @@ export const schema = a.schema({
1302
1290
  displayName: a.string(),
1303
1291
  description: a.string(),
1304
1292
  aliases: a.string().array(),
1293
+ authorityScore: a.float(),
1294
+ authorityRank: a.integer(),
1295
+ acceptedReferenceMentionCount: a.integer(),
1296
+ distinctSourceKindCount: a.integer(),
1297
+ relationCount: a.integer(),
1305
1298
  status: a.string().required(),
1306
1299
  importRunId: a.id(),
1307
1300
  createdAt: a.datetime(),
@@ -1318,7 +1311,6 @@ export const schema = a.schema({
1318
1311
  ])
1319
1312
  .authorization((allow) => [
1320
1313
  allow.groups(categoryWriteGroups).to(["read"]),
1321
- allow.custom().to(authoringOperations),
1322
1314
  ]),
1323
1315
  Message: realtimeModel({
1324
1316
  id: a.id().required(),
@@ -1366,7 +1358,6 @@ export const schema = a.schema({
1366
1358
  ])
1367
1359
  .authorization((allow) => [
1368
1360
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1369
- allow.custom().to(authoringOperations),
1370
1361
  ]),
1371
1362
  MessageThread: realtimeModel({
1372
1363
  id: a.id().required(),
@@ -1403,7 +1394,6 @@ export const schema = a.schema({
1403
1394
  .authorization((allow) => [
1404
1395
  allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
1405
1396
  allow.authenticated("identityPool").to(authoringOperations),
1406
- allow.custom().to(authoringOperations),
1407
1397
  ]),
1408
1398
  ModelAttachment: modelWithoutSubscriptions({
1409
1399
  id: a.id().required(),
@@ -1434,7 +1424,6 @@ export const schema = a.schema({
1434
1424
  ])
1435
1425
  .authorization((allow) => [
1436
1426
  allow.groups(categoryWriteGroups).to(["read"]),
1437
- allow.custom().to(authoringOperations),
1438
1427
  ]),
1439
1428
  SemanticRelationType: modelWithoutSubscriptions({
1440
1429
  id: a.id().required(),
@@ -1461,7 +1450,6 @@ export const schema = a.schema({
1461
1450
  ])
1462
1451
  .authorization((allow) => [
1463
1452
  allow.groups(categoryWriteGroups),
1464
- allow.custom().to(authoringOperations),
1465
1453
  ]),
1466
1454
  SemanticRelation: modelWithoutSubscriptions({
1467
1455
  id: a.id().required(),
@@ -1511,7 +1499,6 @@ export const schema = a.schema({
1511
1499
  ])
1512
1500
  .authorization((allow) => [
1513
1501
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1514
- allow.custom().to(authoringOperations),
1515
1502
  ]),
1516
1503
  Item: modelWithoutSubscriptions({
1517
1504
  id: a.id().required(),
@@ -1560,7 +1547,6 @@ export const schema = a.schema({
1560
1547
  ])
1561
1548
  .authorization((allow) => [
1562
1549
  allow.groups(contentWriteGroups),
1563
- allow.custom().to(authoringOperations),
1564
1550
  ]),
1565
1551
  Tag: modelWithoutSubscriptions({
1566
1552
  id: a.id().required(),
@@ -1576,7 +1562,6 @@ export const schema = a.schema({
1576
1562
  ])
1577
1563
  .authorization((allow) => [
1578
1564
  allow.groups(contentWriteGroups),
1579
- allow.custom().to(authoringOperations),
1580
1565
  ]),
1581
1566
  ItemTag: modelWithoutSubscriptions({
1582
1567
  id: a.id().required(),
@@ -1595,7 +1580,6 @@ export const schema = a.schema({
1595
1580
  ])
1596
1581
  .authorization((allow) => [
1597
1582
  allow.groups(contentWriteGroups),
1598
- allow.custom().to(authoringOperations),
1599
1583
  ]),
1600
1584
  MediaAsset: modelWithoutSubscriptions({
1601
1585
  id: a.id().required(),
@@ -1627,7 +1611,6 @@ export const schema = a.schema({
1627
1611
  ])
1628
1612
  .authorization((allow) => [
1629
1613
  allow.groups(contentWriteGroups),
1630
- allow.custom().to(authoringOperations),
1631
1614
  ]),
1632
1615
  Edition: modelWithoutSubscriptions({
1633
1616
  id: a.id().required(),
@@ -1658,7 +1641,6 @@ export const schema = a.schema({
1658
1641
  ])
1659
1642
  .authorization((allow) => [
1660
1643
  allow.groups(contentWriteGroups),
1661
- allow.custom().to(authoringOperations),
1662
1644
  ]),
1663
1645
  EditionItem: modelWithoutSubscriptions({
1664
1646
  id: a.id().required(),
@@ -1680,7 +1662,6 @@ export const schema = a.schema({
1680
1662
  ])
1681
1663
  .authorization((allow) => [
1682
1664
  allow.groups(contentWriteGroups),
1683
- allow.custom().to(authoringOperations),
1684
1665
  ]),
1685
1666
  PublishedItem: modelWithoutSubscriptions({
1686
1667
  id: a.id().required(),
@@ -1720,7 +1701,6 @@ export const schema = a.schema({
1720
1701
  .authorization((allow) => [
1721
1702
  allow.guest().to(["read"]),
1722
1703
  allow.groups(contentWriteGroups),
1723
- allow.custom().to(authoringOperations),
1724
1704
  ]),
1725
1705
  PublishedMediaAsset: modelWithoutSubscriptions({
1726
1706
  id: a.id().required(),
@@ -1755,7 +1735,6 @@ export const schema = a.schema({
1755
1735
  .authorization((allow) => [
1756
1736
  allow.guest().to(["read"]),
1757
1737
  allow.groups(contentWriteGroups),
1758
- allow.custom().to(authoringOperations),
1759
1738
  ]),
1760
1739
  PublishedEdition: modelWithoutSubscriptions({
1761
1740
  id: a.id().required(),
@@ -1780,7 +1759,6 @@ export const schema = a.schema({
1780
1759
  .authorization((allow) => [
1781
1760
  allow.guest().to(["read"]),
1782
1761
  allow.groups(contentWriteGroups),
1783
- allow.custom().to(authoringOperations),
1784
1762
  ]),
1785
1763
  PublishedEditionItem: modelWithoutSubscriptions({
1786
1764
  id: a.id().required(),
@@ -1804,7 +1782,6 @@ export const schema = a.schema({
1804
1782
  .authorization((allow) => [
1805
1783
  allow.guest().to(["read"]),
1806
1784
  allow.groups(contentWriteGroups),
1807
- allow.custom().to(authoringOperations),
1808
1785
  ]),
1809
1786
  PublishedCategorySet: modelWithoutSubscriptions({
1810
1787
  id: a.id().required(),
@@ -1829,7 +1806,6 @@ export const schema = a.schema({
1829
1806
  .authorization((allow) => [
1830
1807
  allow.guest().to(["read"]),
1831
1808
  allow.groups(contentWriteGroups),
1832
- allow.custom().to(authoringOperations),
1833
1809
  ]),
1834
1810
  PublishedCategory: modelWithoutSubscriptions({
1835
1811
  id: a.id().required(),
@@ -1864,7 +1840,6 @@ export const schema = a.schema({
1864
1840
  .authorization((allow) => [
1865
1841
  allow.guest().to(["read"]),
1866
1842
  allow.groups(contentWriteGroups),
1867
- allow.custom().to(authoringOperations),
1868
1843
  ]),
1869
1844
  }).authorization((allow) => [
1870
1845
  allow.resource(categoryAction),