@anthusai/papyrus 1.0.0-next.3 → 1.0.0-next.31

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 (127) hide show
  1. package/amplify/auth/resource.js +17 -4
  2. package/amplify/auth/resource.ts +21 -4
  3. package/amplify/data/resource.js +26 -70
  4. package/amplify/data/resource.ts +27 -70
  5. package/amplify/data/schema.js +26 -58
  6. package/amplify/data/schema.ts +27 -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 +45 -3
  12. package/amplify/rebuild-trigger-settings.js +22 -0
  13. package/amplify/rebuild-trigger-settings.ts +42 -0
  14. package/amplify/site-backend-config.ts +12 -1
  15. package/amplify/site-backend.js +41 -27
  16. package/amplify/site-backend.ts +51 -34
  17. package/amplify/storage/resource.js +3 -0
  18. package/amplify/storage/resource.ts +3 -0
  19. package/app/%5F_preview/[[...path]]/route.ts +8 -0
  20. package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +2 -0
  21. package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
  22. package/app/api/media/[...path]/route.ts +5 -16
  23. package/app/api/revalidate/route.ts +8 -7
  24. package/app/articles/[slug]/page.tsx +6 -4
  25. package/app/blog-rhythm.css +278 -0
  26. package/app/globals.css +21 -0
  27. package/app/layout.tsx +20 -0
  28. package/app/newsroom/[section]/[...selection]/page.tsx +6 -5
  29. package/app/newsroom/[section]/page.tsx +4 -3
  30. package/app/newsroom/articles/[id]/page.tsx +15 -0
  31. package/app/newsroom/articles/page.tsx +13 -0
  32. package/app/newsroom/layout.tsx +2 -9
  33. package/app/page.tsx +18 -5
  34. package/app/robots.ts +11 -0
  35. package/bin/papyrus-app.mjs +12 -2
  36. package/bin/papyrus-infra.mjs +74 -18
  37. package/components/archive-shell.tsx +2 -22
  38. package/components/article-video.tsx +247 -3
  39. package/components/blog-page-background.tsx +23 -6
  40. package/components/markus-ir-preview.tsx +300 -0
  41. package/components/newspaper.tsx +6 -2
  42. package/components/newsroom-access-gate.tsx +67 -0
  43. package/components/newsroom-article-editor.tsx +741 -0
  44. package/components/newsroom-articles-view.tsx +129 -0
  45. package/components/newsroom-client-shell.tsx +12 -0
  46. package/components/newsroom-ops-overview.tsx +28 -11
  47. package/components/newsroom-ops-shell.tsx +3 -1
  48. package/components/papyrus-console-shell.tsx +4 -2
  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 +6 -63
  55. package/components/use-blog-header-obstacles.ts +81 -0
  56. package/components/use-brand-fonts-ready.ts +28 -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 +95 -0
  61. package/infra/build-specs.ts +142 -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/amplify-outputs-path.ts +5 -1
  68. package/lib/blog-feature-solver.ts +459 -0
  69. package/lib/blog-rhythm.ts +134 -0
  70. package/lib/brand-fonts-watch.ts +43 -0
  71. package/lib/brand-fonts.ts +112 -0
  72. package/lib/cached-content-repository.ts +14 -1
  73. package/lib/category-repository.ts +1 -93
  74. package/lib/content-actions-demo.ts +190 -0
  75. package/lib/content-repository.ts +6 -0
  76. package/lib/content-source-context.ts +26 -0
  77. package/lib/content-types.ts +4 -0
  78. package/lib/edition-routes.ts +31 -29
  79. package/lib/graphql-content-repository.ts +240 -43
  80. package/lib/media-route-response.ts +45 -0
  81. package/lib/newspaper-layout.ts +3 -2
  82. package/lib/newsroom-articles.ts +325 -0
  83. package/lib/newsroom-base-path.ts +12 -3
  84. package/lib/newsroom-category-drilldown.ts +3 -2
  85. package/lib/newsroom-demo-articles.ts +90 -0
  86. package/lib/newsroom-forum-routes.ts +6 -4
  87. package/lib/newsroom-index-filters.ts +14 -10
  88. package/lib/newsroom-media-backend.ts +142 -0
  89. package/lib/newsroom-media.ts +182 -0
  90. package/lib/newsroom-nav.ts +3 -0
  91. package/lib/papyrus-web-locations.ts +7 -6
  92. package/lib/presentation-footer.ts +3 -2
  93. package/lib/pretext-layout.ts +12 -3
  94. package/lib/reader-base-path.ts +24 -0
  95. package/lib/reader-static-params.ts +13 -0
  96. package/lib/renderer.ts +7 -0
  97. package/lib/revalidate-secret.ts +59 -0
  98. package/lib/root-route-redirect.ts +16 -0
  99. package/lib/semantic-graph.ts +5 -0
  100. package/lib/site-brand.ts +51 -0
  101. package/lib/site-env.ts +52 -0
  102. package/lib/staging-gate.ts +37 -0
  103. package/lib/staging-gated-path.ts +23 -0
  104. package/lib/staging-preview-object.ts +114 -0
  105. package/lib/video-mode.ts +42 -0
  106. package/lib/video-script.ts +77 -0
  107. package/middleware.ts +52 -10
  108. package/package.json +41 -1
  109. package/renderers/pretext/article-page.tsx +39 -3
  110. package/renderers/pretext/presentation-shared.tsx +113 -0
  111. package/renderers/pretext/presentation-shell.tsx +15 -102
  112. package/renderers/pretext/rhythm-article-page.tsx +165 -0
  113. package/renderers/pretext/rhythm-blog-presentation.tsx +279 -0
  114. package/renderers/pretext/rhythm-shell-style.ts +35 -0
  115. package/routes.manifest.json +37 -2
  116. package/scripts/videoml/build-browser-bundle.mjs +22 -0
  117. package/scripts/videoml/build-preview-bundle.mjs +50 -0
  118. package/scripts/videoml/bundle-common.mjs +129 -0
  119. package/scripts/videoml/preview/preview-entry.tsx +381 -0
  120. package/scripts/videoml/preview/preview-stage-fit.ts +28 -0
  121. package/scripts/videoml/preview/preview-timing.ts +42 -0
  122. package/scripts/videoml/preview.html +77 -0
  123. package/scripts/videoml/standard-entry.tsx +46 -0
  124. package/src/sync.mjs +30 -6
  125. package/amplify/functions/graphql-jwt-authorizer/handler.ts +0 -193
  126. package/amplify/functions/graphql-jwt-authorizer/resource.js +0 -14
  127. package/amplify/functions/graphql-jwt-authorizer/resource.ts +0 -15
@@ -1,7 +1,6 @@
1
1
  import { type ClientSchema, a, defineData } from "@aws-amplify/backend";
2
2
  import { assignmentAction } from "../functions/assignment-action/resource";
3
3
  import { categoryAction } from "../functions/category-action/resource";
4
- import { graphqlJwtAuthorizer } from "../functions/graphql-jwt-authorizer/resource";
5
4
  import { contentActions } from "../functions/content-actions/resource";
6
5
  import { knowledgeQuery } from "../functions/knowledge-query/resource";
7
6
  import { manageUserRole } from "../functions/manage-user-role/resource";
@@ -45,7 +44,6 @@ const schema = a.schema({
45
44
  .authorization((allow) => [
46
45
  allow.owner(),
47
46
  allow.group(adminGroup),
48
- allow.custom().to(["read"]),
49
47
  ]),
50
48
 
51
49
  UserIdentity: a
@@ -66,7 +64,6 @@ const schema = a.schema({
66
64
  ])
67
65
  .authorization((allow) => [
68
66
  allow.group(adminGroup),
69
- allow.custom().to(["read"]),
70
67
  ]),
71
68
 
72
69
  UserRoleAssignment: a
@@ -319,7 +316,6 @@ const schema = a.schema({
319
316
  .returns(a.ref("ReferenceCurationActionResult"))
320
317
  .authorization((allow) => [
321
318
  allow.groups(categoryWriteGroups),
322
- allow.custom(),
323
319
  ])
324
320
  .handler(a.handler.function(categoryAction)),
325
321
 
@@ -335,7 +331,6 @@ const schema = a.schema({
335
331
  .returns(a.ref("ReferenceQualityActionResult"))
336
332
  .authorization((allow) => [
337
333
  allow.groups(categoryWriteGroups),
338
- allow.custom(),
339
334
  ])
340
335
  .handler(a.handler.function(categoryAction)),
341
336
 
@@ -351,7 +346,6 @@ const schema = a.schema({
351
346
  .returns(a.ref("ReferenceInsightActionResult"))
352
347
  .authorization((allow) => [
353
348
  allow.groups(categoryWriteGroups),
354
- allow.custom(),
355
349
  ])
356
350
  .handler(a.handler.function(categoryAction)),
357
351
 
@@ -367,7 +361,6 @@ const schema = a.schema({
367
361
  .returns(a.ref("ReferenceCorpusMoveActionResult"))
368
362
  .authorization((allow) => [
369
363
  allow.groups(categoryWriteGroups),
370
- allow.custom(),
371
364
  ])
372
365
  .handler(a.handler.function(categoryAction)),
373
366
 
@@ -382,7 +375,6 @@ const schema = a.schema({
382
375
  .returns(a.ref("ReferenceCurationStartResult"))
383
376
  .authorization((allow) => [
384
377
  allow.groups(categoryWriteGroups),
385
- allow.custom(),
386
378
  ])
387
379
  .handler(a.handler.function(categoryAction)),
388
380
 
@@ -394,7 +386,6 @@ const schema = a.schema({
394
386
  .returns(a.ref("ReferenceCurationStatusResult"))
395
387
  .authorization((allow) => [
396
388
  allow.groups(categoryWriteGroups),
397
- allow.custom(),
398
389
  ])
399
390
  .handler(a.handler.function(categoryAction)),
400
391
 
@@ -506,7 +497,7 @@ const schema = a.schema({
506
497
  getNewsroomSummary: a
507
498
  .query()
508
499
  .returns(a.ref("NewsroomSummary"))
509
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
500
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
510
501
  .handler(a.handler.function(newsroomSummary)),
511
502
 
512
503
  deriveMarkus: a
@@ -537,13 +528,20 @@ const schema = a.schema({
537
528
  .authorization((allow) => [allow.groups(contentWriteGroups)])
538
529
  .handler(a.handler.function(contentActions)),
539
530
 
531
+ requestStagingBuild: a
532
+ .mutation()
533
+ .arguments({ input: a.json().required() })
534
+ .returns(a.json())
535
+ .authorization((allow) => [allow.groups(contentWriteGroups)])
536
+ .handler(a.handler.function(contentActions)),
537
+
540
538
  knowledgeQuery: a
541
539
  .query()
542
540
  .arguments({
543
541
  input: a.json().required(),
544
542
  })
545
543
  .returns(a.json())
546
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
544
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
547
545
  .handler(a.handler.function(knowledgeQuery)),
548
546
 
549
547
  updateNewsroomSummary: a
@@ -554,7 +552,7 @@ const schema = a.schema({
554
552
  reason: a.string(),
555
553
  })
556
554
  .returns(a.ref("NewsroomSummary"))
557
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
555
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
558
556
  .handler(a.handler.function(newsroomSummary)),
559
557
 
560
558
  ModelAttachmentUploadSlot: a.customType({
@@ -614,7 +612,7 @@ const schema = a.schema({
614
612
  status: a.string(),
615
613
  })
616
614
  .returns(a.ref("ModelAttachmentUploadSlot"))
617
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
615
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
618
616
  .handler(a.handler.function(modelAttachmentUpload)),
619
617
 
620
618
  completeModelAttachmentUpload: a
@@ -636,7 +634,7 @@ const schema = a.schema({
636
634
  status: a.string(),
637
635
  })
638
636
  .returns(a.ref("ModelAttachment"))
639
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
637
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
640
638
  .handler(a.handler.function(modelAttachmentUpload)),
641
639
 
642
640
  abortModelAttachmentUpload: a
@@ -658,7 +656,7 @@ const schema = a.schema({
658
656
  status: a.string(),
659
657
  })
660
658
  .returns(a.ref("ModelAttachmentUploadAbortResult"))
661
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
659
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
662
660
  .handler(a.handler.function(modelAttachmentUpload)),
663
661
 
664
662
  createModelAttachmentDownload: a
@@ -667,7 +665,7 @@ const schema = a.schema({
667
665
  attachmentId: a.id().required(),
668
666
  })
669
667
  .returns(a.ref("ModelAttachmentDownloadSlot"))
670
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
668
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
671
669
  .handler(a.handler.function(modelAttachmentUpload)),
672
670
 
673
671
  AssignmentActionResult: a.customType({
@@ -761,7 +759,7 @@ const schema = a.schema({
761
759
  limit: a.integer(),
762
760
  })
763
761
  .returns(a.ref("AssignmentContext").array().required())
764
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
762
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
765
763
  .handler(a.handler.function(assignmentAction)),
766
764
 
767
765
  listAssignmentQueue: a
@@ -772,7 +770,7 @@ const schema = a.schema({
772
770
  limit: a.integer(),
773
771
  })
774
772
  .returns(a.ref("AssignmentContext").array().required())
775
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
773
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
776
774
  .handler(a.handler.function(assignmentAction)),
777
775
 
778
776
  getAssignmentContext: a
@@ -781,7 +779,7 @@ const schema = a.schema({
781
779
  assignmentId: a.id().required(),
782
780
  })
783
781
  .returns(a.ref("AssignmentContext"))
784
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
782
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
785
783
  .handler(a.handler.function(assignmentAction)),
786
784
 
787
785
  claimAssignment: a
@@ -798,7 +796,7 @@ const schema = a.schema({
798
796
  note: a.string(),
799
797
  })
800
798
  .returns(a.ref("AssignmentActionResult"))
801
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
799
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
802
800
  .handler(a.handler.function(assignmentAction)),
803
801
 
804
802
  releaseAssignment: a
@@ -810,7 +808,7 @@ const schema = a.schema({
810
808
  note: a.string(),
811
809
  })
812
810
  .returns(a.ref("AssignmentActionResult"))
813
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
811
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
814
812
  .handler(a.handler.function(assignmentAction)),
815
813
 
816
814
  completeAssignment: a
@@ -822,7 +820,7 @@ const schema = a.schema({
822
820
  note: a.string(),
823
821
  })
824
822
  .returns(a.ref("AssignmentActionResult"))
825
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
823
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
826
824
  .handler(a.handler.function(assignmentAction)),
827
825
 
828
826
  cancelAssignment: a
@@ -834,7 +832,7 @@ const schema = a.schema({
834
832
  note: a.string(),
835
833
  })
836
834
  .returns(a.ref("AssignmentActionResult"))
837
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
835
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
838
836
  .handler(a.handler.function(assignmentAction)),
839
837
 
840
838
  reopenAssignment: a
@@ -846,7 +844,7 @@ const schema = a.schema({
846
844
  note: a.string(),
847
845
  })
848
846
  .returns(a.ref("AssignmentActionResult"))
849
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
847
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
850
848
  .handler(a.handler.function(assignmentAction)),
851
849
 
852
850
  retryImmediateAssignment: a
@@ -858,7 +856,7 @@ const schema = a.schema({
858
856
  note: a.string(),
859
857
  })
860
858
  .returns(a.ref("AssignmentActionResult"))
861
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
859
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
862
860
  .handler(a.handler.function(assignmentAction)),
863
861
 
864
862
  listNewsroomProcedureDefinitions: a
@@ -874,7 +872,7 @@ const schema = a.schema({
874
872
  procedureKey: a.string(),
875
873
  })
876
874
  .returns(a.json())
877
- .authorization((allow) => [allow.group(adminGroup), allow.custom()])
875
+ .authorization((allow) => [allow.group(adminGroup)])
878
876
  .handler(a.handler.function(procedureAction)),
879
877
 
880
878
  saveNewsroomProcedureDefinition: a
@@ -916,7 +914,7 @@ const schema = a.schema({
916
914
  actorLabel: a.string(),
917
915
  })
918
916
  .returns(a.json())
919
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
917
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
920
918
  .handler(a.handler.function(procedureAction)),
921
919
 
922
920
  getNewsroomProcedureRun: a
@@ -925,7 +923,7 @@ const schema = a.schema({
925
923
  id: a.id().required(),
926
924
  })
927
925
  .returns(a.json())
928
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
926
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
929
927
  .handler(a.handler.function(procedureAction)),
930
928
 
931
929
  listNewsroomProcedureRunsByProcedure: a
@@ -934,7 +932,7 @@ const schema = a.schema({
934
932
  procedureId: a.id().required(),
935
933
  })
936
934
  .returns(a.json())
937
- .authorization((allow) => [allow.groups(categoryWriteGroups), allow.custom()])
935
+ .authorization((allow) => [allow.groups(categoryWriteGroups)])
938
936
  .handler(a.handler.function(procedureAction)),
939
937
 
940
938
  Assignment: a
@@ -985,7 +983,6 @@ const schema = a.schema({
985
983
  .authorization((allow) => [
986
984
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
987
985
  allow.authenticated("identityPool").to(authoringOperations),
988
- allow.custom().to(authoringOperations),
989
986
  ]),
990
987
 
991
988
  AssignmentEvent: a
@@ -1009,7 +1006,6 @@ const schema = a.schema({
1009
1006
  ])
1010
1007
  .authorization((allow) => [
1011
1008
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1012
- allow.custom().to(authoringOperations),
1013
1009
  ]),
1014
1010
 
1015
1011
  ProcedureDefinition: a
@@ -1035,7 +1031,6 @@ const schema = a.schema({
1035
1031
  ])
1036
1032
  .authorization((allow) => [
1037
1033
  allow.group(adminGroup),
1038
- allow.custom().to(authoringOperations),
1039
1034
  ]),
1040
1035
 
1041
1036
  ProcedureVersion: a
@@ -1063,7 +1058,6 @@ const schema = a.schema({
1063
1058
  ])
1064
1059
  .authorization((allow) => [
1065
1060
  allow.group(adminGroup),
1066
- allow.custom().to(authoringOperations),
1067
1061
  ]),
1068
1062
 
1069
1063
  ProcedureRun: a
@@ -1097,7 +1091,6 @@ const schema = a.schema({
1097
1091
  .authorization((allow) => [
1098
1092
  allow.group("editor").to(["read"]),
1099
1093
  allow.group(adminGroup).to(authoringOperations),
1100
- allow.custom().to(authoringOperations),
1101
1094
  ]),
1102
1095
 
1103
1096
  NewsroomSection: a
@@ -1126,7 +1119,6 @@ const schema = a.schema({
1126
1119
  ])
1127
1120
  .authorization((allow) => [
1128
1121
  allow.groups(categoryWriteGroups),
1129
- allow.custom().to(authoringOperations),
1130
1122
  ]),
1131
1123
 
1132
1124
  KnowledgeCorpus: a
@@ -1145,7 +1137,6 @@ const schema = a.schema({
1145
1137
  ])
1146
1138
  .authorization((allow) => [
1147
1139
  allow.groups(categoryWriteGroups).to(["read"]),
1148
- allow.custom().to(authoringOperations),
1149
1140
  ]),
1150
1141
 
1151
1142
  KnowledgeImportRun: a
@@ -1174,7 +1165,6 @@ const schema = a.schema({
1174
1165
  ])
1175
1166
  .authorization((allow) => [
1176
1167
  allow.groups(categoryWriteGroups).to(["read"]),
1177
- allow.custom().to(authoringOperations),
1178
1168
  ]),
1179
1169
 
1180
1170
  KnowledgeRawPayload: a
@@ -1193,7 +1183,6 @@ const schema = a.schema({
1193
1183
  ])
1194
1184
  .authorization((allow) => [
1195
1185
  allow.groups(categoryWriteGroups),
1196
- allow.custom().to(authoringOperations),
1197
1186
  ]),
1198
1187
 
1199
1188
  KnowledgeArtifact: a
@@ -1214,7 +1203,6 @@ const schema = a.schema({
1214
1203
  ])
1215
1204
  .authorization((allow) => [
1216
1205
  allow.groups(categoryWriteGroups).to(["read"]),
1217
- allow.custom().to(authoringOperations),
1218
1206
  ]),
1219
1207
 
1220
1208
  CategorySet: a
@@ -1245,7 +1233,6 @@ const schema = a.schema({
1245
1233
  ])
1246
1234
  .authorization((allow) => [
1247
1235
  allow.groups(categoryWriteGroups),
1248
- allow.custom().to(authoringOperations),
1249
1236
  ]),
1250
1237
 
1251
1238
  Category: a
@@ -1288,7 +1275,6 @@ const schema = a.schema({
1288
1275
  ])
1289
1276
  .authorization((allow) => [
1290
1277
  allow.groups(categoryWriteGroups),
1291
- allow.custom().to(authoringOperations),
1292
1278
  ]),
1293
1279
 
1294
1280
  CategoryKeyword: a
@@ -1318,7 +1304,6 @@ const schema = a.schema({
1318
1304
  ])
1319
1305
  .authorization((allow) => [
1320
1306
  allow.groups(categoryWriteGroups),
1321
- allow.custom().to(authoringOperations),
1322
1307
  ]),
1323
1308
 
1324
1309
  LexicalSteeringRule: a
@@ -1348,7 +1333,6 @@ const schema = a.schema({
1348
1333
  ])
1349
1334
  .authorization((allow) => [
1350
1335
  allow.groups(categoryWriteGroups),
1351
- allow.custom().to(authoringOperations),
1352
1336
  ]),
1353
1337
 
1354
1338
  SteeringProposal: a
@@ -1387,7 +1371,6 @@ const schema = a.schema({
1387
1371
  ])
1388
1372
  .authorization((allow) => [
1389
1373
  allow.groups(categoryWriteGroups).to(["read"]),
1390
- allow.custom().to(authoringOperations),
1391
1374
  ]),
1392
1375
 
1393
1376
  SteeringDecision: a
@@ -1408,7 +1391,6 @@ const schema = a.schema({
1408
1391
  ])
1409
1392
  .authorization((allow) => [
1410
1393
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1411
- allow.custom().to(authoringOperations),
1412
1394
  ]),
1413
1395
 
1414
1396
  Reference: a
@@ -1461,7 +1443,6 @@ const schema = a.schema({
1461
1443
  ])
1462
1444
  .authorization((allow) => [
1463
1445
  allow.groups(categoryWriteGroups).to(["read"]),
1464
- allow.custom().to(authoringOperations),
1465
1446
  ]),
1466
1447
 
1467
1448
  ReferenceAttachment: a
@@ -1492,7 +1473,6 @@ const schema = a.schema({
1492
1473
  ])
1493
1474
  .authorization((allow) => [
1494
1475
  allow.groups(categoryWriteGroups).to(["read"]),
1495
- allow.custom().to(authoringOperations),
1496
1476
  ]),
1497
1477
 
1498
1478
  SemanticNode: a
@@ -1536,7 +1516,6 @@ const schema = a.schema({
1536
1516
  ])
1537
1517
  .authorization((allow) => [
1538
1518
  allow.groups(categoryWriteGroups).to(["read"]),
1539
- allow.custom().to(authoringOperations),
1540
1519
  ]),
1541
1520
 
1542
1521
  Message: a
@@ -1586,7 +1565,6 @@ const schema = a.schema({
1586
1565
  ])
1587
1566
  .authorization((allow) => [
1588
1567
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1589
- allow.custom().to(authoringOperations),
1590
1568
  allow.authenticated("identityPool").to(["read", "create", "update"]),
1591
1569
  ]),
1592
1570
 
@@ -1626,7 +1604,6 @@ const schema = a.schema({
1626
1604
  .authorization((allow) => [
1627
1605
  allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
1628
1606
  allow.authenticated("identityPool").to(authoringOperations),
1629
- allow.custom().to(authoringOperations),
1630
1607
  ]),
1631
1608
 
1632
1609
  ModelAttachment: a
@@ -1659,7 +1636,6 @@ const schema = a.schema({
1659
1636
  ])
1660
1637
  .authorization((allow) => [
1661
1638
  allow.groups(categoryWriteGroups).to(["read"]),
1662
- allow.custom().to(authoringOperations),
1663
1639
  ]),
1664
1640
 
1665
1641
  SemanticRelationType: a
@@ -1688,7 +1664,6 @@ const schema = a.schema({
1688
1664
  ])
1689
1665
  .authorization((allow) => [
1690
1666
  allow.groups(categoryWriteGroups),
1691
- allow.custom().to(authoringOperations),
1692
1667
  ]),
1693
1668
 
1694
1669
  SemanticRelation: a
@@ -1740,7 +1715,6 @@ const schema = a.schema({
1740
1715
  ])
1741
1716
  .authorization((allow) => [
1742
1717
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1743
- allow.custom().to(authoringOperations),
1744
1718
  ]),
1745
1719
 
1746
1720
  Item: a
@@ -1791,7 +1765,6 @@ const schema = a.schema({
1791
1765
  ])
1792
1766
  .authorization((allow) => [
1793
1767
  allow.groups(contentWriteGroups),
1794
- allow.custom().to(authoringOperations),
1795
1768
  ]),
1796
1769
 
1797
1770
  Tag: a
@@ -1809,7 +1782,6 @@ const schema = a.schema({
1809
1782
  ])
1810
1783
  .authorization((allow) => [
1811
1784
  allow.groups(contentWriteGroups),
1812
- allow.custom().to(authoringOperations),
1813
1785
  ]),
1814
1786
 
1815
1787
  ItemTag: a
@@ -1830,7 +1802,6 @@ const schema = a.schema({
1830
1802
  ])
1831
1803
  .authorization((allow) => [
1832
1804
  allow.groups(contentWriteGroups),
1833
- allow.custom().to(authoringOperations),
1834
1805
  ]),
1835
1806
 
1836
1807
  MediaAsset: a
@@ -1864,7 +1835,6 @@ const schema = a.schema({
1864
1835
  ])
1865
1836
  .authorization((allow) => [
1866
1837
  allow.groups(contentWriteGroups),
1867
- allow.custom().to(authoringOperations),
1868
1838
  ]),
1869
1839
 
1870
1840
  Edition: a
@@ -1898,7 +1868,6 @@ const schema = a.schema({
1898
1868
  ])
1899
1869
  .authorization((allow) => [
1900
1870
  allow.groups(contentWriteGroups),
1901
- allow.custom().to(authoringOperations),
1902
1871
  ]),
1903
1872
 
1904
1873
  EditionSlot: a
@@ -1925,7 +1894,6 @@ const schema = a.schema({
1925
1894
  ])
1926
1895
  .authorization((allow) => [
1927
1896
  allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
1928
- allow.custom().to(authoringOperations),
1929
1897
  ]),
1930
1898
 
1931
1899
  EditionItem: a
@@ -1949,7 +1917,6 @@ const schema = a.schema({
1949
1917
  ])
1950
1918
  .authorization((allow) => [
1951
1919
  allow.groups(contentWriteGroups),
1952
- allow.custom().to(authoringOperations),
1953
1920
  ]),
1954
1921
 
1955
1922
  PublishedItem: a
@@ -1991,7 +1958,6 @@ const schema = a.schema({
1991
1958
  .authorization((allow) => [
1992
1959
  allow.guest().to(["read"]),
1993
1960
  allow.groups(contentWriteGroups),
1994
- allow.custom().to(authoringOperations),
1995
1961
  ]),
1996
1962
 
1997
1963
  PublishedMediaAsset: a
@@ -2028,7 +1994,6 @@ const schema = a.schema({
2028
1994
  .authorization((allow) => [
2029
1995
  allow.guest().to(["read"]),
2030
1996
  allow.groups(contentWriteGroups),
2031
- allow.custom().to(authoringOperations),
2032
1997
  ]),
2033
1998
 
2034
1999
  PublishedEdition: a
@@ -2055,7 +2020,6 @@ const schema = a.schema({
2055
2020
  .authorization((allow) => [
2056
2021
  allow.guest().to(["read"]),
2057
2022
  allow.groups(contentWriteGroups),
2058
- allow.custom().to(authoringOperations),
2059
2023
  ]),
2060
2024
 
2061
2025
  PublishedEditionItem: a
@@ -2081,7 +2045,6 @@ const schema = a.schema({
2081
2045
  .authorization((allow) => [
2082
2046
  allow.guest().to(["read"]),
2083
2047
  allow.groups(contentWriteGroups),
2084
- allow.custom().to(authoringOperations),
2085
2048
  ]),
2086
2049
 
2087
2050
  PublishedCategorySet: a
@@ -2108,7 +2071,6 @@ const schema = a.schema({
2108
2071
  .authorization((allow) => [
2109
2072
  allow.guest().to(["read"]),
2110
2073
  allow.groups(contentWriteGroups),
2111
- allow.custom().to(authoringOperations),
2112
2074
  ]),
2113
2075
 
2114
2076
  PublishedCategory: a
@@ -2145,7 +2107,6 @@ const schema = a.schema({
2145
2107
  .authorization((allow) => [
2146
2108
  allow.guest().to(["read"]),
2147
2109
  allow.groups(contentWriteGroups),
2148
- allow.custom().to(authoringOperations),
2149
2110
  ]),
2150
2111
  }).authorization((allow) => [
2151
2112
  allow.resource(categoryAction),
@@ -2170,9 +2131,5 @@ export const data = defineData({
2170
2131
  apiKeyAuthorizationMode: {
2171
2132
  expiresInDays: 365,
2172
2133
  },
2173
- lambdaAuthorizationMode: {
2174
- function: graphqlJwtAuthorizer,
2175
- timeToLiveInSeconds: 300,
2176
- },
2177
2134
  },
2178
2135
  });