@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.
- package/amplify/auth/resource.js +17 -4
- package/amplify/auth/resource.ts +21 -4
- package/amplify/data/resource.js +52 -70
- package/amplify/data/resource.ts +57 -70
- package/amplify/data/schema.js +52 -58
- package/amplify/data/schema.ts +57 -58
- package/amplify/functions/console-chat-responder/py/execute_tactus_runner.py +0 -10
- package/amplify/functions/console-chat-responder/resource.js +0 -7
- package/amplify/functions/console-chat-responder/resource.ts +0 -8
- package/amplify/functions/console-chat-responder/src/main.rs +0 -9
- package/amplify/functions/content-actions/handler.py +149 -0
- package/amplify/functions/content-actions/requirements.txt +4 -0
- package/amplify/functions/content-actions/resource.js +40 -0
- package/amplify/functions/content-actions/resource.ts +54 -0
- package/amplify/functions/shared/python-bundle.js +17 -2
- package/amplify/functions/shared/python-bundle.ts +23 -2
- package/amplify/rebuild-trigger-settings.js +22 -0
- package/amplify/rebuild-trigger-settings.ts +42 -0
- package/amplify/site-backend-config.ts +12 -1
- package/amplify/site-backend.js +51 -27
- package/amplify/site-backend.ts +66 -34
- package/amplify/storage/resource.js +3 -0
- package/amplify/storage/resource.ts +3 -0
- package/app/%5F_preview/[[...path]]/route.ts +8 -0
- package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +4 -2
- package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
- package/app/api/revalidate/route.ts +8 -7
- package/app/articles/[slug]/page.tsx +3 -1
- package/app/blog-rhythm.css +278 -0
- package/app/globals.css +22 -4
- package/app/layout.tsx +24 -12
- package/app/newsroom/articles/[id]/page.tsx +15 -0
- package/app/newsroom/articles/page.tsx +13 -0
- package/app/page.tsx +12 -4
- package/app/robots.ts +11 -0
- package/bin/papyrus-app.mjs +12 -2
- package/bin/papyrus-infra.mjs +74 -18
- package/components/archive-shell.tsx +2 -22
- package/components/article-video.tsx +247 -3
- package/components/blog-page-background.tsx +23 -6
- package/components/markus-ir-preview.tsx +300 -0
- package/components/news-desk-page.tsx +1 -4
- package/components/newspaper.tsx +2 -1
- package/components/newsroom-access-gate.tsx +66 -0
- package/components/newsroom-article-editor.tsx +741 -0
- package/components/newsroom-articles-view.tsx +129 -0
- package/components/newsroom-ops-overview.tsx +28 -11
- package/components/newsroom-ops-shell.tsx +3 -1
- package/components/pictogram-figure.tsx +9 -2
- package/components/presentation-header.tsx +135 -0
- package/components/presentation-rhythm-hrule.tsx +17 -0
- package/components/settings-page.tsx +2 -1
- package/components/staging-banner.tsx +11 -0
- package/components/topic-steering-workspace.tsx +1 -59
- package/components/use-blog-header-obstacles.ts +81 -0
- package/components/use-brand-fonts-ready.ts +31 -0
- package/components/use-rhythm-overlay.ts +29 -0
- package/infra/amplify-app-shell.js +285 -80
- package/infra/amplify-app-shell.ts +326 -113
- package/infra/build-specs.js +94 -0
- package/infra/build-specs.ts +141 -0
- package/infra/github-oidc-provider.js +24 -0
- package/infra/github-oidc-provider.ts +30 -0
- package/infra/index.js +3 -0
- package/infra/site-config.js +273 -0
- package/infra/site-config.ts +336 -0
- package/lib/blog-feature-solver.ts +459 -0
- package/lib/blog-rhythm.ts +134 -0
- package/lib/brand-fonts.ts +112 -0
- package/lib/cached-content-repository.ts +2 -1
- package/lib/category-repository.ts +1 -93
- package/lib/content-actions-client.ts +98 -0
- package/lib/content-actions-demo.ts +190 -0
- package/lib/content-repository.ts +3 -0
- package/lib/content-source-context.ts +26 -0
- package/lib/content-types.ts +3 -0
- package/lib/edition-routes.ts +31 -29
- package/lib/empty-theme.css +1 -0
- package/lib/graphql-content-repository.ts +201 -42
- package/lib/layout-scenarios.ts +8 -8
- package/lib/newspaper-layout.ts +3 -2
- package/lib/newsroom-articles.ts +325 -0
- package/lib/newsroom-demo-articles.ts +90 -0
- package/lib/newsroom-media-backend.ts +142 -0
- package/lib/newsroom-media.ts +182 -0
- package/lib/newsroom-nav.ts +3 -0
- package/lib/papyrus-web-locations.ts +7 -6
- package/lib/presentation-footer.ts +3 -2
- package/lib/pretext-layout.ts +7 -3
- package/lib/reader-base-path.ts +24 -0
- package/lib/reader-static-params.ts +8 -0
- package/lib/renderer.ts +7 -0
- package/lib/revalidate-secret.ts +59 -0
- package/lib/root-route-redirect.ts +16 -0
- package/lib/site-brand-tenant.ts +3 -22
- package/lib/site-brand.ts +95 -42
- package/lib/site-env.ts +52 -0
- package/lib/staging-gate.ts +37 -0
- package/lib/staging-gated-path.ts +22 -0
- package/lib/staging-preview-object.ts +98 -0
- package/lib/video-mode.ts +42 -0
- package/lib/video-script.ts +63 -0
- package/middleware.ts +56 -42
- package/package.json +39 -1
- package/renderers/pretext/article-page.tsx +40 -9
- package/renderers/pretext/presentation-shared.tsx +113 -0
- package/renderers/pretext/presentation-shell.tsx +18 -112
- package/renderers/pretext/rhythm-article-page.tsx +165 -0
- package/renderers/pretext/rhythm-blog-presentation.tsx +280 -0
- package/renderers/pretext/rhythm-shell-style.ts +35 -0
- package/routes.manifest.json +37 -2
- package/scripts/videoml/build-browser-bundle.mjs +22 -0
- package/scripts/videoml/build-preview-bundle.mjs +50 -0
- package/scripts/videoml/bundle-common.mjs +129 -0
- package/scripts/videoml/preview/preview-entry.tsx +381 -0
- package/scripts/videoml/preview/preview-stage-fit.ts +28 -0
- package/scripts/videoml/preview/preview-timing.ts +42 -0
- package/scripts/videoml/preview.html +77 -0
- package/scripts/videoml/standard-entry.tsx +46 -0
- package/src/sync.mjs +30 -6
- package/src/with-papyrus.mjs +15 -2
- package/amplify/functions/graphql-jwt-authorizer/handler.ts +0 -193
- package/amplify/functions/graphql-jwt-authorizer/resource.js +0 -14
- package/amplify/functions/graphql-jwt-authorizer/resource.ts +0 -15
- package/publications/anth_us/brand.ts +0 -68
- package/publications/anth_us/theme.css +0 -66
- package/publications/pilobol_us/brand.ts +0 -37
- package/publications/pilobol_us/theme.css +0 -140
- package/publications/threat_intelligence/blog-defense/graph.ts +0 -636
- package/publications/threat_intelligence/blog-defense/layout.ts +0 -934
- package/publications/threat_intelligence/blog-defense/page-background.tsx +0 -590
- package/publications/threat_intelligence/brand.ts +0 -40
- package/publications/threat_intelligence/pictograms/art.tsx +0 -608
- package/publications/threat_intelligence/pictograms/figure.tsx +0 -82
- package/publications/threat_intelligence/pictograms/registry.ts +0 -30
- package/publications/threat_intelligence/pictograms/system.tsx +0 -305
- package/publications/threat_intelligence/seed/seed-edition-content.json +0 -629
- package/publications/threat_intelligence/theme.css +0 -1440
- /package/{publications/papyrus/theme.css → app/papyrus-theme.css} +0 -0
package/amplify/data/resource.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
+
import { contentActions } from "../functions/content-actions/resource";
|
|
5
5
|
import { knowledgeQuery } from "../functions/knowledge-query/resource";
|
|
6
6
|
import { manageUserRole } from "../functions/manage-user-role/resource";
|
|
7
7
|
import { modelAttachmentUpload } from "../functions/model-attachment-upload/resource";
|
|
@@ -44,7 +44,6 @@ const schema = a.schema({
|
|
|
44
44
|
.authorization((allow) => [
|
|
45
45
|
allow.owner(),
|
|
46
46
|
allow.group(adminGroup),
|
|
47
|
-
allow.custom().to(["read"]),
|
|
48
47
|
]),
|
|
49
48
|
|
|
50
49
|
UserIdentity: a
|
|
@@ -65,7 +64,6 @@ const schema = a.schema({
|
|
|
65
64
|
])
|
|
66
65
|
.authorization((allow) => [
|
|
67
66
|
allow.group(adminGroup),
|
|
68
|
-
allow.custom().to(["read"]),
|
|
69
67
|
]),
|
|
70
68
|
|
|
71
69
|
UserRoleAssignment: a
|
|
@@ -318,7 +316,6 @@ const schema = a.schema({
|
|
|
318
316
|
.returns(a.ref("ReferenceCurationActionResult"))
|
|
319
317
|
.authorization((allow) => [
|
|
320
318
|
allow.groups(categoryWriteGroups),
|
|
321
|
-
allow.custom(),
|
|
322
319
|
])
|
|
323
320
|
.handler(a.handler.function(categoryAction)),
|
|
324
321
|
|
|
@@ -334,7 +331,6 @@ const schema = a.schema({
|
|
|
334
331
|
.returns(a.ref("ReferenceQualityActionResult"))
|
|
335
332
|
.authorization((allow) => [
|
|
336
333
|
allow.groups(categoryWriteGroups),
|
|
337
|
-
allow.custom(),
|
|
338
334
|
])
|
|
339
335
|
.handler(a.handler.function(categoryAction)),
|
|
340
336
|
|
|
@@ -350,7 +346,6 @@ const schema = a.schema({
|
|
|
350
346
|
.returns(a.ref("ReferenceInsightActionResult"))
|
|
351
347
|
.authorization((allow) => [
|
|
352
348
|
allow.groups(categoryWriteGroups),
|
|
353
|
-
allow.custom(),
|
|
354
349
|
])
|
|
355
350
|
.handler(a.handler.function(categoryAction)),
|
|
356
351
|
|
|
@@ -366,7 +361,6 @@ const schema = a.schema({
|
|
|
366
361
|
.returns(a.ref("ReferenceCorpusMoveActionResult"))
|
|
367
362
|
.authorization((allow) => [
|
|
368
363
|
allow.groups(categoryWriteGroups),
|
|
369
|
-
allow.custom(),
|
|
370
364
|
])
|
|
371
365
|
.handler(a.handler.function(categoryAction)),
|
|
372
366
|
|
|
@@ -381,7 +375,6 @@ const schema = a.schema({
|
|
|
381
375
|
.returns(a.ref("ReferenceCurationStartResult"))
|
|
382
376
|
.authorization((allow) => [
|
|
383
377
|
allow.groups(categoryWriteGroups),
|
|
384
|
-
allow.custom(),
|
|
385
378
|
])
|
|
386
379
|
.handler(a.handler.function(categoryAction)),
|
|
387
380
|
|
|
@@ -393,7 +386,6 @@ const schema = a.schema({
|
|
|
393
386
|
.returns(a.ref("ReferenceCurationStatusResult"))
|
|
394
387
|
.authorization((allow) => [
|
|
395
388
|
allow.groups(categoryWriteGroups),
|
|
396
|
-
allow.custom(),
|
|
397
389
|
])
|
|
398
390
|
.handler(a.handler.function(categoryAction)),
|
|
399
391
|
|
|
@@ -505,16 +497,51 @@ const schema = a.schema({
|
|
|
505
497
|
getNewsroomSummary: a
|
|
506
498
|
.query()
|
|
507
499
|
.returns(a.ref("NewsroomSummary"))
|
|
508
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
500
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
509
501
|
.handler(a.handler.function(newsroomSummary)),
|
|
510
502
|
|
|
503
|
+
deriveMarkus: a
|
|
504
|
+
.query()
|
|
505
|
+
.arguments({ input: a.json().required() })
|
|
506
|
+
.returns(a.json())
|
|
507
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
508
|
+
.handler(a.handler.function(contentActions)),
|
|
509
|
+
|
|
510
|
+
saveItemDraft: a
|
|
511
|
+
.mutation()
|
|
512
|
+
.arguments({ input: a.json().required() })
|
|
513
|
+
.returns(a.json())
|
|
514
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
515
|
+
.handler(a.handler.function(contentActions)),
|
|
516
|
+
|
|
517
|
+
publishItem: a
|
|
518
|
+
.mutation()
|
|
519
|
+
.arguments({ input: a.json().required() })
|
|
520
|
+
.returns(a.json())
|
|
521
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
522
|
+
.handler(a.handler.function(contentActions)),
|
|
523
|
+
|
|
524
|
+
unpublishItem: a
|
|
525
|
+
.mutation()
|
|
526
|
+
.arguments({ input: a.json().required() })
|
|
527
|
+
.returns(a.json())
|
|
528
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
529
|
+
.handler(a.handler.function(contentActions)),
|
|
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
|
+
|
|
511
538
|
knowledgeQuery: a
|
|
512
539
|
.query()
|
|
513
540
|
.arguments({
|
|
514
541
|
input: a.json().required(),
|
|
515
542
|
})
|
|
516
543
|
.returns(a.json())
|
|
517
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
544
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
518
545
|
.handler(a.handler.function(knowledgeQuery)),
|
|
519
546
|
|
|
520
547
|
updateNewsroomSummary: a
|
|
@@ -525,7 +552,7 @@ const schema = a.schema({
|
|
|
525
552
|
reason: a.string(),
|
|
526
553
|
})
|
|
527
554
|
.returns(a.ref("NewsroomSummary"))
|
|
528
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
555
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
529
556
|
.handler(a.handler.function(newsroomSummary)),
|
|
530
557
|
|
|
531
558
|
ModelAttachmentUploadSlot: a.customType({
|
|
@@ -585,7 +612,7 @@ const schema = a.schema({
|
|
|
585
612
|
status: a.string(),
|
|
586
613
|
})
|
|
587
614
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
588
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
615
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
589
616
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
590
617
|
|
|
591
618
|
completeModelAttachmentUpload: a
|
|
@@ -607,7 +634,7 @@ const schema = a.schema({
|
|
|
607
634
|
status: a.string(),
|
|
608
635
|
})
|
|
609
636
|
.returns(a.ref("ModelAttachment"))
|
|
610
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
637
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
611
638
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
612
639
|
|
|
613
640
|
abortModelAttachmentUpload: a
|
|
@@ -629,7 +656,7 @@ const schema = a.schema({
|
|
|
629
656
|
status: a.string(),
|
|
630
657
|
})
|
|
631
658
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
632
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
659
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
633
660
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
634
661
|
|
|
635
662
|
createModelAttachmentDownload: a
|
|
@@ -638,7 +665,7 @@ const schema = a.schema({
|
|
|
638
665
|
attachmentId: a.id().required(),
|
|
639
666
|
})
|
|
640
667
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
641
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
668
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
642
669
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
643
670
|
|
|
644
671
|
AssignmentActionResult: a.customType({
|
|
@@ -732,7 +759,7 @@ const schema = a.schema({
|
|
|
732
759
|
limit: a.integer(),
|
|
733
760
|
})
|
|
734
761
|
.returns(a.ref("AssignmentContext").array().required())
|
|
735
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
762
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
736
763
|
.handler(a.handler.function(assignmentAction)),
|
|
737
764
|
|
|
738
765
|
listAssignmentQueue: a
|
|
@@ -743,7 +770,7 @@ const schema = a.schema({
|
|
|
743
770
|
limit: a.integer(),
|
|
744
771
|
})
|
|
745
772
|
.returns(a.ref("AssignmentContext").array().required())
|
|
746
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
773
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
747
774
|
.handler(a.handler.function(assignmentAction)),
|
|
748
775
|
|
|
749
776
|
getAssignmentContext: a
|
|
@@ -752,7 +779,7 @@ const schema = a.schema({
|
|
|
752
779
|
assignmentId: a.id().required(),
|
|
753
780
|
})
|
|
754
781
|
.returns(a.ref("AssignmentContext"))
|
|
755
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
782
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
756
783
|
.handler(a.handler.function(assignmentAction)),
|
|
757
784
|
|
|
758
785
|
claimAssignment: a
|
|
@@ -769,7 +796,7 @@ const schema = a.schema({
|
|
|
769
796
|
note: a.string(),
|
|
770
797
|
})
|
|
771
798
|
.returns(a.ref("AssignmentActionResult"))
|
|
772
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
799
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
773
800
|
.handler(a.handler.function(assignmentAction)),
|
|
774
801
|
|
|
775
802
|
releaseAssignment: a
|
|
@@ -781,7 +808,7 @@ const schema = a.schema({
|
|
|
781
808
|
note: a.string(),
|
|
782
809
|
})
|
|
783
810
|
.returns(a.ref("AssignmentActionResult"))
|
|
784
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
811
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
785
812
|
.handler(a.handler.function(assignmentAction)),
|
|
786
813
|
|
|
787
814
|
completeAssignment: a
|
|
@@ -793,7 +820,7 @@ const schema = a.schema({
|
|
|
793
820
|
note: a.string(),
|
|
794
821
|
})
|
|
795
822
|
.returns(a.ref("AssignmentActionResult"))
|
|
796
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
823
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
797
824
|
.handler(a.handler.function(assignmentAction)),
|
|
798
825
|
|
|
799
826
|
cancelAssignment: a
|
|
@@ -805,7 +832,7 @@ const schema = a.schema({
|
|
|
805
832
|
note: a.string(),
|
|
806
833
|
})
|
|
807
834
|
.returns(a.ref("AssignmentActionResult"))
|
|
808
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
835
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
809
836
|
.handler(a.handler.function(assignmentAction)),
|
|
810
837
|
|
|
811
838
|
reopenAssignment: a
|
|
@@ -817,7 +844,7 @@ const schema = a.schema({
|
|
|
817
844
|
note: a.string(),
|
|
818
845
|
})
|
|
819
846
|
.returns(a.ref("AssignmentActionResult"))
|
|
820
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
847
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
821
848
|
.handler(a.handler.function(assignmentAction)),
|
|
822
849
|
|
|
823
850
|
retryImmediateAssignment: a
|
|
@@ -829,7 +856,7 @@ const schema = a.schema({
|
|
|
829
856
|
note: a.string(),
|
|
830
857
|
})
|
|
831
858
|
.returns(a.ref("AssignmentActionResult"))
|
|
832
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
859
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
833
860
|
.handler(a.handler.function(assignmentAction)),
|
|
834
861
|
|
|
835
862
|
listNewsroomProcedureDefinitions: a
|
|
@@ -845,7 +872,7 @@ const schema = a.schema({
|
|
|
845
872
|
procedureKey: a.string(),
|
|
846
873
|
})
|
|
847
874
|
.returns(a.json())
|
|
848
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
875
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
849
876
|
.handler(a.handler.function(procedureAction)),
|
|
850
877
|
|
|
851
878
|
saveNewsroomProcedureDefinition: a
|
|
@@ -887,7 +914,7 @@ const schema = a.schema({
|
|
|
887
914
|
actorLabel: a.string(),
|
|
888
915
|
})
|
|
889
916
|
.returns(a.json())
|
|
890
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
917
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
891
918
|
.handler(a.handler.function(procedureAction)),
|
|
892
919
|
|
|
893
920
|
getNewsroomProcedureRun: a
|
|
@@ -896,7 +923,7 @@ const schema = a.schema({
|
|
|
896
923
|
id: a.id().required(),
|
|
897
924
|
})
|
|
898
925
|
.returns(a.json())
|
|
899
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
926
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
900
927
|
.handler(a.handler.function(procedureAction)),
|
|
901
928
|
|
|
902
929
|
listNewsroomProcedureRunsByProcedure: a
|
|
@@ -905,7 +932,7 @@ const schema = a.schema({
|
|
|
905
932
|
procedureId: a.id().required(),
|
|
906
933
|
})
|
|
907
934
|
.returns(a.json())
|
|
908
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
935
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
909
936
|
.handler(a.handler.function(procedureAction)),
|
|
910
937
|
|
|
911
938
|
Assignment: a
|
|
@@ -956,7 +983,6 @@ const schema = a.schema({
|
|
|
956
983
|
.authorization((allow) => [
|
|
957
984
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
958
985
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
959
|
-
allow.custom().to(authoringOperations),
|
|
960
986
|
]),
|
|
961
987
|
|
|
962
988
|
AssignmentEvent: a
|
|
@@ -980,7 +1006,6 @@ const schema = a.schema({
|
|
|
980
1006
|
])
|
|
981
1007
|
.authorization((allow) => [
|
|
982
1008
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
983
|
-
allow.custom().to(authoringOperations),
|
|
984
1009
|
]),
|
|
985
1010
|
|
|
986
1011
|
ProcedureDefinition: a
|
|
@@ -1006,7 +1031,6 @@ const schema = a.schema({
|
|
|
1006
1031
|
])
|
|
1007
1032
|
.authorization((allow) => [
|
|
1008
1033
|
allow.group(adminGroup),
|
|
1009
|
-
allow.custom().to(authoringOperations),
|
|
1010
1034
|
]),
|
|
1011
1035
|
|
|
1012
1036
|
ProcedureVersion: a
|
|
@@ -1034,7 +1058,6 @@ const schema = a.schema({
|
|
|
1034
1058
|
])
|
|
1035
1059
|
.authorization((allow) => [
|
|
1036
1060
|
allow.group(adminGroup),
|
|
1037
|
-
allow.custom().to(authoringOperations),
|
|
1038
1061
|
]),
|
|
1039
1062
|
|
|
1040
1063
|
ProcedureRun: a
|
|
@@ -1068,7 +1091,6 @@ const schema = a.schema({
|
|
|
1068
1091
|
.authorization((allow) => [
|
|
1069
1092
|
allow.group("editor").to(["read"]),
|
|
1070
1093
|
allow.group(adminGroup).to(authoringOperations),
|
|
1071
|
-
allow.custom().to(authoringOperations),
|
|
1072
1094
|
]),
|
|
1073
1095
|
|
|
1074
1096
|
NewsroomSection: a
|
|
@@ -1097,7 +1119,6 @@ const schema = a.schema({
|
|
|
1097
1119
|
])
|
|
1098
1120
|
.authorization((allow) => [
|
|
1099
1121
|
allow.groups(categoryWriteGroups),
|
|
1100
|
-
allow.custom().to(authoringOperations),
|
|
1101
1122
|
]),
|
|
1102
1123
|
|
|
1103
1124
|
KnowledgeCorpus: a
|
|
@@ -1116,7 +1137,6 @@ const schema = a.schema({
|
|
|
1116
1137
|
])
|
|
1117
1138
|
.authorization((allow) => [
|
|
1118
1139
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1119
|
-
allow.custom().to(authoringOperations),
|
|
1120
1140
|
]),
|
|
1121
1141
|
|
|
1122
1142
|
KnowledgeImportRun: a
|
|
@@ -1145,7 +1165,6 @@ const schema = a.schema({
|
|
|
1145
1165
|
])
|
|
1146
1166
|
.authorization((allow) => [
|
|
1147
1167
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1148
|
-
allow.custom().to(authoringOperations),
|
|
1149
1168
|
]),
|
|
1150
1169
|
|
|
1151
1170
|
KnowledgeRawPayload: a
|
|
@@ -1164,7 +1183,6 @@ const schema = a.schema({
|
|
|
1164
1183
|
])
|
|
1165
1184
|
.authorization((allow) => [
|
|
1166
1185
|
allow.groups(categoryWriteGroups),
|
|
1167
|
-
allow.custom().to(authoringOperations),
|
|
1168
1186
|
]),
|
|
1169
1187
|
|
|
1170
1188
|
KnowledgeArtifact: a
|
|
@@ -1185,7 +1203,6 @@ const schema = a.schema({
|
|
|
1185
1203
|
])
|
|
1186
1204
|
.authorization((allow) => [
|
|
1187
1205
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1188
|
-
allow.custom().to(authoringOperations),
|
|
1189
1206
|
]),
|
|
1190
1207
|
|
|
1191
1208
|
CategorySet: a
|
|
@@ -1216,7 +1233,6 @@ const schema = a.schema({
|
|
|
1216
1233
|
])
|
|
1217
1234
|
.authorization((allow) => [
|
|
1218
1235
|
allow.groups(categoryWriteGroups),
|
|
1219
|
-
allow.custom().to(authoringOperations),
|
|
1220
1236
|
]),
|
|
1221
1237
|
|
|
1222
1238
|
Category: a
|
|
@@ -1259,7 +1275,6 @@ const schema = a.schema({
|
|
|
1259
1275
|
])
|
|
1260
1276
|
.authorization((allow) => [
|
|
1261
1277
|
allow.groups(categoryWriteGroups),
|
|
1262
|
-
allow.custom().to(authoringOperations),
|
|
1263
1278
|
]),
|
|
1264
1279
|
|
|
1265
1280
|
CategoryKeyword: a
|
|
@@ -1289,7 +1304,6 @@ const schema = a.schema({
|
|
|
1289
1304
|
])
|
|
1290
1305
|
.authorization((allow) => [
|
|
1291
1306
|
allow.groups(categoryWriteGroups),
|
|
1292
|
-
allow.custom().to(authoringOperations),
|
|
1293
1307
|
]),
|
|
1294
1308
|
|
|
1295
1309
|
LexicalSteeringRule: a
|
|
@@ -1319,7 +1333,6 @@ const schema = a.schema({
|
|
|
1319
1333
|
])
|
|
1320
1334
|
.authorization((allow) => [
|
|
1321
1335
|
allow.groups(categoryWriteGroups),
|
|
1322
|
-
allow.custom().to(authoringOperations),
|
|
1323
1336
|
]),
|
|
1324
1337
|
|
|
1325
1338
|
SteeringProposal: a
|
|
@@ -1358,7 +1371,6 @@ const schema = a.schema({
|
|
|
1358
1371
|
])
|
|
1359
1372
|
.authorization((allow) => [
|
|
1360
1373
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1361
|
-
allow.custom().to(authoringOperations),
|
|
1362
1374
|
]),
|
|
1363
1375
|
|
|
1364
1376
|
SteeringDecision: a
|
|
@@ -1379,7 +1391,6 @@ const schema = a.schema({
|
|
|
1379
1391
|
])
|
|
1380
1392
|
.authorization((allow) => [
|
|
1381
1393
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1382
|
-
allow.custom().to(authoringOperations),
|
|
1383
1394
|
]),
|
|
1384
1395
|
|
|
1385
1396
|
Reference: a
|
|
@@ -1432,7 +1443,6 @@ const schema = a.schema({
|
|
|
1432
1443
|
])
|
|
1433
1444
|
.authorization((allow) => [
|
|
1434
1445
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1435
|
-
allow.custom().to(authoringOperations),
|
|
1436
1446
|
]),
|
|
1437
1447
|
|
|
1438
1448
|
ReferenceAttachment: a
|
|
@@ -1463,7 +1473,6 @@ const schema = a.schema({
|
|
|
1463
1473
|
])
|
|
1464
1474
|
.authorization((allow) => [
|
|
1465
1475
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1466
|
-
allow.custom().to(authoringOperations),
|
|
1467
1476
|
]),
|
|
1468
1477
|
|
|
1469
1478
|
SemanticNode: a
|
|
@@ -1507,7 +1516,6 @@ const schema = a.schema({
|
|
|
1507
1516
|
])
|
|
1508
1517
|
.authorization((allow) => [
|
|
1509
1518
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1510
|
-
allow.custom().to(authoringOperations),
|
|
1511
1519
|
]),
|
|
1512
1520
|
|
|
1513
1521
|
Message: a
|
|
@@ -1557,7 +1565,6 @@ const schema = a.schema({
|
|
|
1557
1565
|
])
|
|
1558
1566
|
.authorization((allow) => [
|
|
1559
1567
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1560
|
-
allow.custom().to(authoringOperations),
|
|
1561
1568
|
allow.authenticated("identityPool").to(["read", "create", "update"]),
|
|
1562
1569
|
]),
|
|
1563
1570
|
|
|
@@ -1597,7 +1604,6 @@ const schema = a.schema({
|
|
|
1597
1604
|
.authorization((allow) => [
|
|
1598
1605
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1599
1606
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1600
|
-
allow.custom().to(authoringOperations),
|
|
1601
1607
|
]),
|
|
1602
1608
|
|
|
1603
1609
|
ModelAttachment: a
|
|
@@ -1630,7 +1636,6 @@ const schema = a.schema({
|
|
|
1630
1636
|
])
|
|
1631
1637
|
.authorization((allow) => [
|
|
1632
1638
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1633
|
-
allow.custom().to(authoringOperations),
|
|
1634
1639
|
]),
|
|
1635
1640
|
|
|
1636
1641
|
SemanticRelationType: a
|
|
@@ -1659,7 +1664,6 @@ const schema = a.schema({
|
|
|
1659
1664
|
])
|
|
1660
1665
|
.authorization((allow) => [
|
|
1661
1666
|
allow.groups(categoryWriteGroups),
|
|
1662
|
-
allow.custom().to(authoringOperations),
|
|
1663
1667
|
]),
|
|
1664
1668
|
|
|
1665
1669
|
SemanticRelation: a
|
|
@@ -1711,7 +1715,6 @@ const schema = a.schema({
|
|
|
1711
1715
|
])
|
|
1712
1716
|
.authorization((allow) => [
|
|
1713
1717
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1714
|
-
allow.custom().to(authoringOperations),
|
|
1715
1718
|
]),
|
|
1716
1719
|
|
|
1717
1720
|
Item: a
|
|
@@ -1762,7 +1765,6 @@ const schema = a.schema({
|
|
|
1762
1765
|
])
|
|
1763
1766
|
.authorization((allow) => [
|
|
1764
1767
|
allow.groups(contentWriteGroups),
|
|
1765
|
-
allow.custom().to(authoringOperations),
|
|
1766
1768
|
]),
|
|
1767
1769
|
|
|
1768
1770
|
Tag: a
|
|
@@ -1780,7 +1782,6 @@ const schema = a.schema({
|
|
|
1780
1782
|
])
|
|
1781
1783
|
.authorization((allow) => [
|
|
1782
1784
|
allow.groups(contentWriteGroups),
|
|
1783
|
-
allow.custom().to(authoringOperations),
|
|
1784
1785
|
]),
|
|
1785
1786
|
|
|
1786
1787
|
ItemTag: a
|
|
@@ -1801,7 +1802,6 @@ const schema = a.schema({
|
|
|
1801
1802
|
])
|
|
1802
1803
|
.authorization((allow) => [
|
|
1803
1804
|
allow.groups(contentWriteGroups),
|
|
1804
|
-
allow.custom().to(authoringOperations),
|
|
1805
1805
|
]),
|
|
1806
1806
|
|
|
1807
1807
|
MediaAsset: a
|
|
@@ -1835,7 +1835,6 @@ const schema = a.schema({
|
|
|
1835
1835
|
])
|
|
1836
1836
|
.authorization((allow) => [
|
|
1837
1837
|
allow.groups(contentWriteGroups),
|
|
1838
|
-
allow.custom().to(authoringOperations),
|
|
1839
1838
|
]),
|
|
1840
1839
|
|
|
1841
1840
|
Edition: a
|
|
@@ -1869,7 +1868,6 @@ const schema = a.schema({
|
|
|
1869
1868
|
])
|
|
1870
1869
|
.authorization((allow) => [
|
|
1871
1870
|
allow.groups(contentWriteGroups),
|
|
1872
|
-
allow.custom().to(authoringOperations),
|
|
1873
1871
|
]),
|
|
1874
1872
|
|
|
1875
1873
|
EditionSlot: a
|
|
@@ -1896,7 +1894,6 @@ const schema = a.schema({
|
|
|
1896
1894
|
])
|
|
1897
1895
|
.authorization((allow) => [
|
|
1898
1896
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1899
|
-
allow.custom().to(authoringOperations),
|
|
1900
1897
|
]),
|
|
1901
1898
|
|
|
1902
1899
|
EditionItem: a
|
|
@@ -1920,7 +1917,6 @@ const schema = a.schema({
|
|
|
1920
1917
|
])
|
|
1921
1918
|
.authorization((allow) => [
|
|
1922
1919
|
allow.groups(contentWriteGroups),
|
|
1923
|
-
allow.custom().to(authoringOperations),
|
|
1924
1920
|
]),
|
|
1925
1921
|
|
|
1926
1922
|
PublishedItem: a
|
|
@@ -1962,7 +1958,6 @@ const schema = a.schema({
|
|
|
1962
1958
|
.authorization((allow) => [
|
|
1963
1959
|
allow.guest().to(["read"]),
|
|
1964
1960
|
allow.groups(contentWriteGroups),
|
|
1965
|
-
allow.custom().to(authoringOperations),
|
|
1966
1961
|
]),
|
|
1967
1962
|
|
|
1968
1963
|
PublishedMediaAsset: a
|
|
@@ -1999,7 +1994,6 @@ const schema = a.schema({
|
|
|
1999
1994
|
.authorization((allow) => [
|
|
2000
1995
|
allow.guest().to(["read"]),
|
|
2001
1996
|
allow.groups(contentWriteGroups),
|
|
2002
|
-
allow.custom().to(authoringOperations),
|
|
2003
1997
|
]),
|
|
2004
1998
|
|
|
2005
1999
|
PublishedEdition: a
|
|
@@ -2026,7 +2020,6 @@ const schema = a.schema({
|
|
|
2026
2020
|
.authorization((allow) => [
|
|
2027
2021
|
allow.guest().to(["read"]),
|
|
2028
2022
|
allow.groups(contentWriteGroups),
|
|
2029
|
-
allow.custom().to(authoringOperations),
|
|
2030
2023
|
]),
|
|
2031
2024
|
|
|
2032
2025
|
PublishedEditionItem: a
|
|
@@ -2052,7 +2045,6 @@ const schema = a.schema({
|
|
|
2052
2045
|
.authorization((allow) => [
|
|
2053
2046
|
allow.guest().to(["read"]),
|
|
2054
2047
|
allow.groups(contentWriteGroups),
|
|
2055
|
-
allow.custom().to(authoringOperations),
|
|
2056
2048
|
]),
|
|
2057
2049
|
|
|
2058
2050
|
PublishedCategorySet: a
|
|
@@ -2079,7 +2071,6 @@ const schema = a.schema({
|
|
|
2079
2071
|
.authorization((allow) => [
|
|
2080
2072
|
allow.guest().to(["read"]),
|
|
2081
2073
|
allow.groups(contentWriteGroups),
|
|
2082
|
-
allow.custom().to(authoringOperations),
|
|
2083
2074
|
]),
|
|
2084
2075
|
|
|
2085
2076
|
PublishedCategory: a
|
|
@@ -2116,10 +2107,10 @@ const schema = a.schema({
|
|
|
2116
2107
|
.authorization((allow) => [
|
|
2117
2108
|
allow.guest().to(["read"]),
|
|
2118
2109
|
allow.groups(contentWriteGroups),
|
|
2119
|
-
allow.custom().to(authoringOperations),
|
|
2120
2110
|
]),
|
|
2121
2111
|
}).authorization((allow) => [
|
|
2122
2112
|
allow.resource(categoryAction),
|
|
2113
|
+
allow.resource(contentActions),
|
|
2123
2114
|
allow.resource(manageUserRole),
|
|
2124
2115
|
allow.resource(modelAttachmentUpload),
|
|
2125
2116
|
allow.resource(newsroomSummary),
|
|
@@ -2140,9 +2131,5 @@ export const data = defineData({
|
|
|
2140
2131
|
apiKeyAuthorizationMode: {
|
|
2141
2132
|
expiresInDays: 365,
|
|
2142
2133
|
},
|
|
2143
|
-
lambdaAuthorizationMode: {
|
|
2144
|
-
function: graphqlJwtAuthorizer,
|
|
2145
|
-
timeToLiveInSeconds: 300,
|
|
2146
|
-
},
|
|
2147
2134
|
},
|
|
2148
2135
|
});
|