@anthusai/papyrus 1.0.0-next.6 → 1.0.0-next.60
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/redirect-urls.js +54 -0
- package/amplify/auth/redirect-urls.ts +66 -0
- package/amplify/auth/resource.js +20 -5
- package/amplify/auth/resource.ts +27 -5
- package/amplify/data/resource.js +38 -80
- package/amplify/data/resource.ts +38 -80
- package/amplify/data/schema.js +41 -60
- package/amplify/data/schema.ts +43 -60
- package/amplify/functions/category-action/handler.ts +5 -3
- 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 +144 -2
- package/amplify/functions/content-actions/requirements.txt +2 -1
- package/amplify/functions/content-actions/resource.js +6 -1
- package/amplify/functions/content-actions/resource.ts +9 -2
- package/amplify/functions/renditions/handler.py +120 -0
- package/amplify/functions/renditions/requirements.txt +4 -0
- package/amplify/functions/shared/python-bundle.js +42 -2
- package/amplify/functions/shared/python-bundle.ts +47 -2
- package/amplify/functions/shared/reference-curation-metadata.ts +29 -0
- package/amplify/inbound-email/ses-intake.js +86 -0
- package/amplify/inbound-email/ses-intake.ts +110 -0
- package/amplify/plugins/registry.js +19 -0
- package/amplify/plugins/registry.ts +23 -0
- package/amplify/plugins/signup/function/handler.py +200 -0
- package/amplify/plugins/signup/function/resource.js +27 -0
- package/amplify/plugins/signup/function/resource.ts +35 -0
- package/amplify/plugins/signup/papyrus.plugin.js +59 -0
- package/amplify/plugins/signup/papyrus.plugin.ts +74 -0
- package/amplify/plugins/signup/schema.js +40 -0
- package/amplify/plugins/signup/schema.ts +41 -0
- package/amplify/plugins/signup/waf.js +48 -0
- package/amplify/plugins/signup/waf.ts +51 -0
- package/amplify/plugins/types.js +1 -0
- package/amplify/plugins/types.ts +39 -0
- package/amplify/plugins/wire.js +24 -0
- package/amplify/plugins/wire.ts +26 -0
- package/amplify/publication/default-publication.js +18 -0
- package/amplify/publication/default-publication.ts +20 -0
- package/amplify/publication/invalidation-alarm.js +26 -0
- package/amplify/publication/invalidation-alarm.ts +30 -0
- package/amplify/publication/redirect-and-index.js +37 -0
- package/amplify/publication/renditions-function.js +74 -0
- package/amplify/publication/renditions-function.ts +112 -0
- package/amplify/publication/renditions-settings.js +51 -0
- package/amplify/publication/renditions-settings.ts +58 -0
- package/amplify/publication/reproject-on-deploy.js +73 -0
- package/amplify/publication/reproject-on-deploy.ts +78 -0
- package/amplify/publication/s3-projection-settings.js +67 -0
- package/amplify/publication/s3-projection-settings.ts +101 -0
- package/amplify/publication/s3-projection.js +151 -0
- package/amplify/publication/s3-projection.ts +201 -0
- package/amplify/resolver-waves.js +26 -0
- package/amplify/resolver-waves.ts +34 -0
- package/amplify/revalidate-invalidation-settings.js +30 -0
- package/amplify/revalidate-invalidation-settings.ts +35 -0
- package/amplify/revalidate-secret-policy.js +13 -0
- package/amplify/revalidate-secret-policy.ts +19 -0
- package/amplify/site-backend-config.js +65 -1
- package/amplify/site-backend-config.ts +153 -2
- package/amplify/site-backend-names.js +103 -0
- package/amplify/site-backend-names.ts +166 -0
- package/amplify/site-backend.js +143 -176
- package/amplify/site-backend.ts +181 -201
- package/amplify/storage-backups/construct.js +31 -0
- package/amplify/storage-backups/construct.ts +47 -0
- package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +8 -1
- package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
- package/app/[year]/[month]/[day]/page/[pageNumber]/page.tsx +6 -1
- package/app/[year]/[month]/[day]/page.tsx +1 -1
- package/app/[year]/[month]/[day]/section/[sectionKey]/page.tsx +6 -1
- package/app/api/archive/editions/route.ts +1 -1
- package/app/api/media/[...path]/route.ts +5 -16
- package/app/api/revalidate/route.ts +15 -7
- package/app/archive/page.tsx +1 -1
- package/app/articles/[slug]/page.tsx +7 -5
- package/app/blog-rhythm.css +278 -0
- package/app/globals.css +2 -0
- package/app/layout.tsx +16 -0
- package/app/newsroom/[section]/[...selection]/page.tsx +9 -6
- package/app/newsroom/[section]/page.tsx +6 -3
- package/app/newsroom/layout.tsx +4 -9
- package/app/newsroom/settings/page.tsx +6 -0
- package/app/newsroom/work/page.tsx +10 -0
- package/app/page.tsx +22 -8
- package/app/robots.ts +2 -5
- package/bin/papyrus-infra.mjs +3 -3
- package/components/amplify-client-provider.tsx +5 -22
- package/components/archive-shell.tsx +2 -22
- package/components/article-video.tsx +152 -5
- package/components/blog-page-background.tsx +23 -6
- package/components/markus-ir-preview.tsx +22 -1
- package/components/news-desk-page.tsx +4 -15
- package/components/news-desk-taxonomy-client.ts +53 -2
- package/components/newspaper.tsx +6 -2
- package/components/newsroom-access-gate.tsx +2 -1
- package/components/newsroom-article-editor.tsx +109 -5
- package/components/newsroom-board-view.tsx +100 -0
- package/components/newsroom-client-shell.tsx +12 -0
- package/components/newsroom-fonts/playfair-display-700.ttf +0 -0
- package/components/newsroom-fonts/playfair-display-900.ttf +0 -0
- package/components/newsroom-fonts/playfair-display-OFL.txt +93 -0
- package/components/newsroom-fonts/plus-jakarta-sans-400.ttf +0 -0
- package/components/newsroom-fonts/plus-jakarta-sans-600.ttf +0 -0
- package/components/newsroom-fonts/plus-jakarta-sans-OFL.txt +93 -0
- package/components/newsroom-newsprint-board.css +48 -0
- package/components/newsroom-ops-overview.tsx +28 -11
- package/components/newsroom-ops-shell.tsx +7 -1
- package/components/newsroom-organizer-shell.tsx +130 -0
- package/components/newsroom-organizer.css +63 -0
- package/components/newsroom-references-view.tsx +83 -8
- package/components/papyrus-console-shell.tsx +4 -2
- package/components/pictogram-figure.tsx +9 -2
- package/components/presentation-header.tsx +135 -0
- package/components/presentation-rhythm-hrule.tsx +17 -0
- package/components/reader-auth-control.tsx +8 -5
- package/components/reference-cyclotron-status.tsx +109 -0
- package/components/reference-relevance-review.tsx +75 -0
- package/components/settings-page.tsx +2 -1
- package/components/signup-entries-panel.tsx +94 -0
- package/components/topic-steering-workspace.tsx +74 -6
- package/components/use-blog-header-obstacles.ts +81 -0
- package/components/use-brand-fonts-ready.ts +28 -0
- package/components/use-near-viewport.ts +30 -0
- package/components/use-rhythm-overlay.ts +29 -0
- package/infra/amplify-app-shell.js +202 -71
- package/infra/amplify-app-shell.ts +211 -77
- package/infra/build-specs.js +23 -8
- package/infra/build-specs.ts +27 -11
- package/infra/site-config.js +259 -34
- package/infra/site-config.ts +314 -43
- package/lib/amplify-outputs-path.ts +5 -1
- package/lib/amplify-server-runtime.ts +36 -1
- package/lib/blog-feature-solver.ts +459 -0
- package/lib/blog-rhythm.ts +134 -0
- package/lib/brand-fonts-watch.ts +43 -0
- package/lib/brand-fonts.ts +112 -0
- package/lib/cached-content-repository.ts +12 -0
- package/lib/category-repository.ts +42 -93
- package/lib/content-actions-demo.ts +19 -1
- package/lib/content-repository.ts +3 -0
- package/lib/content-source-context.ts +12 -2
- package/lib/content-types.ts +4 -0
- package/lib/edition-routes.ts +31 -29
- package/lib/graphql-content-repository.ts +67 -24
- package/lib/media-route-response.ts +45 -0
- package/lib/newspaper-layout.ts +3 -2
- package/lib/newsroom-base-path.ts +12 -3
- package/lib/newsroom-board.ts +60 -0
- package/lib/newsroom-category-drilldown.ts +3 -2
- package/lib/newsroom-forum-routes.ts +6 -4
- package/lib/newsroom-index-filters.ts +14 -10
- package/lib/newsroom-media-backend.ts +142 -0
- package/lib/newsroom-media.ts +182 -0
- package/lib/newsroom-nav.ts +1 -0
- package/lib/newsroom-organizer-nav.ts +34 -0
- package/lib/newsroom-section-routing.ts +20 -0
- package/lib/oauth-redirect-priority.ts +40 -0
- package/lib/papyrus-web-locations.ts +7 -6
- package/lib/plugin-settings.ts +11 -0
- package/lib/presentation-footer.ts +3 -2
- package/lib/pretext-layout.ts +12 -3
- package/lib/rate-limit-retry.ts +55 -0
- package/lib/reader-base-path.ts +24 -0
- package/lib/reader-cache-lifetime.ts +5 -0
- package/lib/reader-static-params.ts +85 -4
- package/lib/reader-storage-url.ts +9 -12
- package/lib/reference-policy.ts +5 -0
- package/lib/relevance-decisions.ts +103 -0
- package/lib/relevance-status.ts +63 -0
- package/lib/renderer.ts +7 -0
- package/lib/revalidate-prewarm.ts +53 -0
- package/lib/revalidate-secret.ts +59 -0
- package/lib/robots-policy.ts +14 -0
- package/lib/root-route-redirect.ts +16 -0
- package/lib/semantic-graph.ts +7 -0
- package/lib/shared-credentials-provider.ts +61 -0
- package/lib/signup-csv.ts +24 -0
- package/lib/site-brand.ts +40 -0
- package/lib/staging-gated-path.ts +23 -0
- package/lib/staging-preview-object.ts +21 -5
- package/lib/test-editor-override.ts +4 -0
- package/lib/video-loading.ts +22 -0
- package/lib/video-script.ts +14 -0
- package/middleware.ts +11 -19
- package/package.json +48 -1
- package/renderers/pretext/article-page.tsx +39 -3
- package/renderers/pretext/presentation-shared.tsx +113 -0
- package/renderers/pretext/presentation-shell.tsx +15 -102
- package/renderers/pretext/rhythm-article-page.tsx +165 -0
- package/renderers/pretext/rhythm-blog-presentation.tsx +279 -0
- package/renderers/pretext/rhythm-shell-style.ts +35 -0
- package/routes.manifest.json +52 -12
- package/src/sync.mjs +30 -6
- package/src/with-papyrus.d.mts +9 -0
- package/src/with-papyrus.mjs +48 -3
- 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/amplify/data/resource.ts
CHANGED
|
@@ -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";
|
|
@@ -13,7 +12,7 @@ import { emailSubmissionProcessor } from "../functions/email-submission-processo
|
|
|
13
12
|
import { sesInboundReceive } from "../functions/ses-inbound-receive/resource";
|
|
14
13
|
import { slackDelivery } from "../functions/slack-delivery/resource";
|
|
15
14
|
import { slackEvents } from "../functions/slack-events/resource";
|
|
16
|
-
import { schema as leanSchema } from "./schema";
|
|
15
|
+
import { schema as leanSchema, schemaWithPlugins } from "./schema";
|
|
17
16
|
const authoringOperations: ("read" | "create" | "update" | "delete")[] = [
|
|
18
17
|
"read",
|
|
19
18
|
"create",
|
|
@@ -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
|
|
@@ -315,11 +312,12 @@ const schema = a.schema({
|
|
|
315
312
|
actorLabel: a.string(),
|
|
316
313
|
note: a.string(),
|
|
317
314
|
reasonCode: a.string(),
|
|
315
|
+
decisionRelationId: a.id(),
|
|
316
|
+
shareable: a.boolean(),
|
|
318
317
|
})
|
|
319
318
|
.returns(a.ref("ReferenceCurationActionResult"))
|
|
320
319
|
.authorization((allow) => [
|
|
321
320
|
allow.groups(categoryWriteGroups),
|
|
322
|
-
allow.custom(),
|
|
323
321
|
])
|
|
324
322
|
.handler(a.handler.function(categoryAction)),
|
|
325
323
|
|
|
@@ -335,7 +333,6 @@ const schema = a.schema({
|
|
|
335
333
|
.returns(a.ref("ReferenceQualityActionResult"))
|
|
336
334
|
.authorization((allow) => [
|
|
337
335
|
allow.groups(categoryWriteGroups),
|
|
338
|
-
allow.custom(),
|
|
339
336
|
])
|
|
340
337
|
.handler(a.handler.function(categoryAction)),
|
|
341
338
|
|
|
@@ -351,7 +348,6 @@ const schema = a.schema({
|
|
|
351
348
|
.returns(a.ref("ReferenceInsightActionResult"))
|
|
352
349
|
.authorization((allow) => [
|
|
353
350
|
allow.groups(categoryWriteGroups),
|
|
354
|
-
allow.custom(),
|
|
355
351
|
])
|
|
356
352
|
.handler(a.handler.function(categoryAction)),
|
|
357
353
|
|
|
@@ -367,7 +363,6 @@ const schema = a.schema({
|
|
|
367
363
|
.returns(a.ref("ReferenceCorpusMoveActionResult"))
|
|
368
364
|
.authorization((allow) => [
|
|
369
365
|
allow.groups(categoryWriteGroups),
|
|
370
|
-
allow.custom(),
|
|
371
366
|
])
|
|
372
367
|
.handler(a.handler.function(categoryAction)),
|
|
373
368
|
|
|
@@ -382,7 +377,6 @@ const schema = a.schema({
|
|
|
382
377
|
.returns(a.ref("ReferenceCurationStartResult"))
|
|
383
378
|
.authorization((allow) => [
|
|
384
379
|
allow.groups(categoryWriteGroups),
|
|
385
|
-
allow.custom(),
|
|
386
380
|
])
|
|
387
381
|
.handler(a.handler.function(categoryAction)),
|
|
388
382
|
|
|
@@ -394,7 +388,6 @@ const schema = a.schema({
|
|
|
394
388
|
.returns(a.ref("ReferenceCurationStatusResult"))
|
|
395
389
|
.authorization((allow) => [
|
|
396
390
|
allow.groups(categoryWriteGroups),
|
|
397
|
-
allow.custom(),
|
|
398
391
|
])
|
|
399
392
|
.handler(a.handler.function(categoryAction)),
|
|
400
393
|
|
|
@@ -506,7 +499,7 @@ const schema = a.schema({
|
|
|
506
499
|
getNewsroomSummary: a
|
|
507
500
|
.query()
|
|
508
501
|
.returns(a.ref("NewsroomSummary"))
|
|
509
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
502
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
510
503
|
.handler(a.handler.function(newsroomSummary)),
|
|
511
504
|
|
|
512
505
|
deriveMarkus: a
|
|
@@ -550,7 +543,7 @@ const schema = a.schema({
|
|
|
550
543
|
input: a.json().required(),
|
|
551
544
|
})
|
|
552
545
|
.returns(a.json())
|
|
553
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
546
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
554
547
|
.handler(a.handler.function(knowledgeQuery)),
|
|
555
548
|
|
|
556
549
|
updateNewsroomSummary: a
|
|
@@ -561,7 +554,7 @@ const schema = a.schema({
|
|
|
561
554
|
reason: a.string(),
|
|
562
555
|
})
|
|
563
556
|
.returns(a.ref("NewsroomSummary"))
|
|
564
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
557
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
565
558
|
.handler(a.handler.function(newsroomSummary)),
|
|
566
559
|
|
|
567
560
|
ModelAttachmentUploadSlot: a.customType({
|
|
@@ -621,7 +614,7 @@ const schema = a.schema({
|
|
|
621
614
|
status: a.string(),
|
|
622
615
|
})
|
|
623
616
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
624
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
617
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
625
618
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
626
619
|
|
|
627
620
|
completeModelAttachmentUpload: a
|
|
@@ -643,7 +636,7 @@ const schema = a.schema({
|
|
|
643
636
|
status: a.string(),
|
|
644
637
|
})
|
|
645
638
|
.returns(a.ref("ModelAttachment"))
|
|
646
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
639
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
647
640
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
648
641
|
|
|
649
642
|
abortModelAttachmentUpload: a
|
|
@@ -665,7 +658,7 @@ const schema = a.schema({
|
|
|
665
658
|
status: a.string(),
|
|
666
659
|
})
|
|
667
660
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
668
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
661
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
669
662
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
670
663
|
|
|
671
664
|
createModelAttachmentDownload: a
|
|
@@ -674,7 +667,7 @@ const schema = a.schema({
|
|
|
674
667
|
attachmentId: a.id().required(),
|
|
675
668
|
})
|
|
676
669
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
677
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
670
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
678
671
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
679
672
|
|
|
680
673
|
AssignmentActionResult: a.customType({
|
|
@@ -768,7 +761,7 @@ const schema = a.schema({
|
|
|
768
761
|
limit: a.integer(),
|
|
769
762
|
})
|
|
770
763
|
.returns(a.ref("AssignmentContext").array().required())
|
|
771
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
764
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
772
765
|
.handler(a.handler.function(assignmentAction)),
|
|
773
766
|
|
|
774
767
|
listAssignmentQueue: a
|
|
@@ -779,7 +772,7 @@ const schema = a.schema({
|
|
|
779
772
|
limit: a.integer(),
|
|
780
773
|
})
|
|
781
774
|
.returns(a.ref("AssignmentContext").array().required())
|
|
782
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
775
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
783
776
|
.handler(a.handler.function(assignmentAction)),
|
|
784
777
|
|
|
785
778
|
getAssignmentContext: a
|
|
@@ -788,7 +781,7 @@ const schema = a.schema({
|
|
|
788
781
|
assignmentId: a.id().required(),
|
|
789
782
|
})
|
|
790
783
|
.returns(a.ref("AssignmentContext"))
|
|
791
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
784
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
792
785
|
.handler(a.handler.function(assignmentAction)),
|
|
793
786
|
|
|
794
787
|
claimAssignment: a
|
|
@@ -805,7 +798,7 @@ const schema = a.schema({
|
|
|
805
798
|
note: a.string(),
|
|
806
799
|
})
|
|
807
800
|
.returns(a.ref("AssignmentActionResult"))
|
|
808
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
801
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
809
802
|
.handler(a.handler.function(assignmentAction)),
|
|
810
803
|
|
|
811
804
|
releaseAssignment: a
|
|
@@ -817,7 +810,7 @@ const schema = a.schema({
|
|
|
817
810
|
note: a.string(),
|
|
818
811
|
})
|
|
819
812
|
.returns(a.ref("AssignmentActionResult"))
|
|
820
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
813
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
821
814
|
.handler(a.handler.function(assignmentAction)),
|
|
822
815
|
|
|
823
816
|
completeAssignment: a
|
|
@@ -829,7 +822,7 @@ const schema = a.schema({
|
|
|
829
822
|
note: a.string(),
|
|
830
823
|
})
|
|
831
824
|
.returns(a.ref("AssignmentActionResult"))
|
|
832
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
825
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
833
826
|
.handler(a.handler.function(assignmentAction)),
|
|
834
827
|
|
|
835
828
|
cancelAssignment: a
|
|
@@ -841,7 +834,7 @@ const schema = a.schema({
|
|
|
841
834
|
note: a.string(),
|
|
842
835
|
})
|
|
843
836
|
.returns(a.ref("AssignmentActionResult"))
|
|
844
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
837
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
845
838
|
.handler(a.handler.function(assignmentAction)),
|
|
846
839
|
|
|
847
840
|
reopenAssignment: a
|
|
@@ -853,7 +846,7 @@ const schema = a.schema({
|
|
|
853
846
|
note: a.string(),
|
|
854
847
|
})
|
|
855
848
|
.returns(a.ref("AssignmentActionResult"))
|
|
856
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
849
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
857
850
|
.handler(a.handler.function(assignmentAction)),
|
|
858
851
|
|
|
859
852
|
retryImmediateAssignment: a
|
|
@@ -865,7 +858,7 @@ const schema = a.schema({
|
|
|
865
858
|
note: a.string(),
|
|
866
859
|
})
|
|
867
860
|
.returns(a.ref("AssignmentActionResult"))
|
|
868
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
861
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
869
862
|
.handler(a.handler.function(assignmentAction)),
|
|
870
863
|
|
|
871
864
|
listNewsroomProcedureDefinitions: a
|
|
@@ -881,7 +874,7 @@ const schema = a.schema({
|
|
|
881
874
|
procedureKey: a.string(),
|
|
882
875
|
})
|
|
883
876
|
.returns(a.json())
|
|
884
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
877
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
885
878
|
.handler(a.handler.function(procedureAction)),
|
|
886
879
|
|
|
887
880
|
saveNewsroomProcedureDefinition: a
|
|
@@ -923,7 +916,7 @@ const schema = a.schema({
|
|
|
923
916
|
actorLabel: a.string(),
|
|
924
917
|
})
|
|
925
918
|
.returns(a.json())
|
|
926
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
919
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
927
920
|
.handler(a.handler.function(procedureAction)),
|
|
928
921
|
|
|
929
922
|
getNewsroomProcedureRun: a
|
|
@@ -932,7 +925,7 @@ const schema = a.schema({
|
|
|
932
925
|
id: a.id().required(),
|
|
933
926
|
})
|
|
934
927
|
.returns(a.json())
|
|
935
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
928
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
936
929
|
.handler(a.handler.function(procedureAction)),
|
|
937
930
|
|
|
938
931
|
listNewsroomProcedureRunsByProcedure: a
|
|
@@ -941,7 +934,7 @@ const schema = a.schema({
|
|
|
941
934
|
procedureId: a.id().required(),
|
|
942
935
|
})
|
|
943
936
|
.returns(a.json())
|
|
944
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
937
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
945
938
|
.handler(a.handler.function(procedureAction)),
|
|
946
939
|
|
|
947
940
|
Assignment: a
|
|
@@ -992,7 +985,6 @@ const schema = a.schema({
|
|
|
992
985
|
.authorization((allow) => [
|
|
993
986
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
994
987
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
995
|
-
allow.custom().to(authoringOperations),
|
|
996
988
|
]),
|
|
997
989
|
|
|
998
990
|
AssignmentEvent: a
|
|
@@ -1016,7 +1008,6 @@ const schema = a.schema({
|
|
|
1016
1008
|
])
|
|
1017
1009
|
.authorization((allow) => [
|
|
1018
1010
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1019
|
-
allow.custom().to(authoringOperations),
|
|
1020
1011
|
]),
|
|
1021
1012
|
|
|
1022
1013
|
ProcedureDefinition: a
|
|
@@ -1042,7 +1033,6 @@ const schema = a.schema({
|
|
|
1042
1033
|
])
|
|
1043
1034
|
.authorization((allow) => [
|
|
1044
1035
|
allow.group(adminGroup),
|
|
1045
|
-
allow.custom().to(authoringOperations),
|
|
1046
1036
|
]),
|
|
1047
1037
|
|
|
1048
1038
|
ProcedureVersion: a
|
|
@@ -1070,7 +1060,6 @@ const schema = a.schema({
|
|
|
1070
1060
|
])
|
|
1071
1061
|
.authorization((allow) => [
|
|
1072
1062
|
allow.group(adminGroup),
|
|
1073
|
-
allow.custom().to(authoringOperations),
|
|
1074
1063
|
]),
|
|
1075
1064
|
|
|
1076
1065
|
ProcedureRun: a
|
|
@@ -1104,7 +1093,6 @@ const schema = a.schema({
|
|
|
1104
1093
|
.authorization((allow) => [
|
|
1105
1094
|
allow.group("editor").to(["read"]),
|
|
1106
1095
|
allow.group(adminGroup).to(authoringOperations),
|
|
1107
|
-
allow.custom().to(authoringOperations),
|
|
1108
1096
|
]),
|
|
1109
1097
|
|
|
1110
1098
|
NewsroomSection: a
|
|
@@ -1133,7 +1121,6 @@ const schema = a.schema({
|
|
|
1133
1121
|
])
|
|
1134
1122
|
.authorization((allow) => [
|
|
1135
1123
|
allow.groups(categoryWriteGroups),
|
|
1136
|
-
allow.custom().to(authoringOperations),
|
|
1137
1124
|
]),
|
|
1138
1125
|
|
|
1139
1126
|
KnowledgeCorpus: a
|
|
@@ -1152,7 +1139,6 @@ const schema = a.schema({
|
|
|
1152
1139
|
])
|
|
1153
1140
|
.authorization((allow) => [
|
|
1154
1141
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1155
|
-
allow.custom().to(authoringOperations),
|
|
1156
1142
|
]),
|
|
1157
1143
|
|
|
1158
1144
|
KnowledgeImportRun: a
|
|
@@ -1181,7 +1167,6 @@ const schema = a.schema({
|
|
|
1181
1167
|
])
|
|
1182
1168
|
.authorization((allow) => [
|
|
1183
1169
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1184
|
-
allow.custom().to(authoringOperations),
|
|
1185
1170
|
]),
|
|
1186
1171
|
|
|
1187
1172
|
KnowledgeRawPayload: a
|
|
@@ -1200,7 +1185,6 @@ const schema = a.schema({
|
|
|
1200
1185
|
])
|
|
1201
1186
|
.authorization((allow) => [
|
|
1202
1187
|
allow.groups(categoryWriteGroups),
|
|
1203
|
-
allow.custom().to(authoringOperations),
|
|
1204
1188
|
]),
|
|
1205
1189
|
|
|
1206
1190
|
KnowledgeArtifact: a
|
|
@@ -1221,7 +1205,6 @@ const schema = a.schema({
|
|
|
1221
1205
|
])
|
|
1222
1206
|
.authorization((allow) => [
|
|
1223
1207
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1224
|
-
allow.custom().to(authoringOperations),
|
|
1225
1208
|
]),
|
|
1226
1209
|
|
|
1227
1210
|
CategorySet: a
|
|
@@ -1252,7 +1235,6 @@ const schema = a.schema({
|
|
|
1252
1235
|
])
|
|
1253
1236
|
.authorization((allow) => [
|
|
1254
1237
|
allow.groups(categoryWriteGroups),
|
|
1255
|
-
allow.custom().to(authoringOperations),
|
|
1256
1238
|
]),
|
|
1257
1239
|
|
|
1258
1240
|
Category: a
|
|
@@ -1295,7 +1277,6 @@ const schema = a.schema({
|
|
|
1295
1277
|
])
|
|
1296
1278
|
.authorization((allow) => [
|
|
1297
1279
|
allow.groups(categoryWriteGroups),
|
|
1298
|
-
allow.custom().to(authoringOperations),
|
|
1299
1280
|
]),
|
|
1300
1281
|
|
|
1301
1282
|
CategoryKeyword: a
|
|
@@ -1325,7 +1306,6 @@ const schema = a.schema({
|
|
|
1325
1306
|
])
|
|
1326
1307
|
.authorization((allow) => [
|
|
1327
1308
|
allow.groups(categoryWriteGroups),
|
|
1328
|
-
allow.custom().to(authoringOperations),
|
|
1329
1309
|
]),
|
|
1330
1310
|
|
|
1331
1311
|
LexicalSteeringRule: a
|
|
@@ -1355,7 +1335,6 @@ const schema = a.schema({
|
|
|
1355
1335
|
])
|
|
1356
1336
|
.authorization((allow) => [
|
|
1357
1337
|
allow.groups(categoryWriteGroups),
|
|
1358
|
-
allow.custom().to(authoringOperations),
|
|
1359
1338
|
]),
|
|
1360
1339
|
|
|
1361
1340
|
SteeringProposal: a
|
|
@@ -1394,7 +1373,6 @@ const schema = a.schema({
|
|
|
1394
1373
|
])
|
|
1395
1374
|
.authorization((allow) => [
|
|
1396
1375
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1397
|
-
allow.custom().to(authoringOperations),
|
|
1398
1376
|
]),
|
|
1399
1377
|
|
|
1400
1378
|
SteeringDecision: a
|
|
@@ -1415,7 +1393,6 @@ const schema = a.schema({
|
|
|
1415
1393
|
])
|
|
1416
1394
|
.authorization((allow) => [
|
|
1417
1395
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1418
|
-
allow.custom().to(authoringOperations),
|
|
1419
1396
|
]),
|
|
1420
1397
|
|
|
1421
1398
|
Reference: a
|
|
@@ -1468,7 +1445,6 @@ const schema = a.schema({
|
|
|
1468
1445
|
])
|
|
1469
1446
|
.authorization((allow) => [
|
|
1470
1447
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1471
|
-
allow.custom().to(authoringOperations),
|
|
1472
1448
|
]),
|
|
1473
1449
|
|
|
1474
1450
|
ReferenceAttachment: a
|
|
@@ -1499,7 +1475,6 @@ const schema = a.schema({
|
|
|
1499
1475
|
])
|
|
1500
1476
|
.authorization((allow) => [
|
|
1501
1477
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1502
|
-
allow.custom().to(authoringOperations),
|
|
1503
1478
|
]),
|
|
1504
1479
|
|
|
1505
1480
|
SemanticNode: a
|
|
@@ -1543,7 +1518,6 @@ const schema = a.schema({
|
|
|
1543
1518
|
])
|
|
1544
1519
|
.authorization((allow) => [
|
|
1545
1520
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1546
|
-
allow.custom().to(authoringOperations),
|
|
1547
1521
|
]),
|
|
1548
1522
|
|
|
1549
1523
|
Message: a
|
|
@@ -1593,7 +1567,6 @@ const schema = a.schema({
|
|
|
1593
1567
|
])
|
|
1594
1568
|
.authorization((allow) => [
|
|
1595
1569
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1596
|
-
allow.custom().to(authoringOperations),
|
|
1597
1570
|
allow.authenticated("identityPool").to(["read", "create", "update"]),
|
|
1598
1571
|
]),
|
|
1599
1572
|
|
|
@@ -1633,7 +1606,6 @@ const schema = a.schema({
|
|
|
1633
1606
|
.authorization((allow) => [
|
|
1634
1607
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1635
1608
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1636
|
-
allow.custom().to(authoringOperations),
|
|
1637
1609
|
]),
|
|
1638
1610
|
|
|
1639
1611
|
ModelAttachment: a
|
|
@@ -1666,7 +1638,6 @@ const schema = a.schema({
|
|
|
1666
1638
|
])
|
|
1667
1639
|
.authorization((allow) => [
|
|
1668
1640
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1669
|
-
allow.custom().to(authoringOperations),
|
|
1670
1641
|
]),
|
|
1671
1642
|
|
|
1672
1643
|
SemanticRelationType: a
|
|
@@ -1695,7 +1666,6 @@ const schema = a.schema({
|
|
|
1695
1666
|
])
|
|
1696
1667
|
.authorization((allow) => [
|
|
1697
1668
|
allow.groups(categoryWriteGroups),
|
|
1698
|
-
allow.custom().to(authoringOperations),
|
|
1699
1669
|
]),
|
|
1700
1670
|
|
|
1701
1671
|
SemanticRelation: a
|
|
@@ -1747,7 +1717,6 @@ const schema = a.schema({
|
|
|
1747
1717
|
])
|
|
1748
1718
|
.authorization((allow) => [
|
|
1749
1719
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1750
|
-
allow.custom().to(authoringOperations),
|
|
1751
1720
|
]),
|
|
1752
1721
|
|
|
1753
1722
|
Item: a
|
|
@@ -1798,7 +1767,6 @@ const schema = a.schema({
|
|
|
1798
1767
|
])
|
|
1799
1768
|
.authorization((allow) => [
|
|
1800
1769
|
allow.groups(contentWriteGroups),
|
|
1801
|
-
allow.custom().to(authoringOperations),
|
|
1802
1770
|
]),
|
|
1803
1771
|
|
|
1804
1772
|
Tag: a
|
|
@@ -1816,7 +1784,6 @@ const schema = a.schema({
|
|
|
1816
1784
|
])
|
|
1817
1785
|
.authorization((allow) => [
|
|
1818
1786
|
allow.groups(contentWriteGroups),
|
|
1819
|
-
allow.custom().to(authoringOperations),
|
|
1820
1787
|
]),
|
|
1821
1788
|
|
|
1822
1789
|
ItemTag: a
|
|
@@ -1837,7 +1804,6 @@ const schema = a.schema({
|
|
|
1837
1804
|
])
|
|
1838
1805
|
.authorization((allow) => [
|
|
1839
1806
|
allow.groups(contentWriteGroups),
|
|
1840
|
-
allow.custom().to(authoringOperations),
|
|
1841
1807
|
]),
|
|
1842
1808
|
|
|
1843
1809
|
MediaAsset: a
|
|
@@ -1871,7 +1837,6 @@ const schema = a.schema({
|
|
|
1871
1837
|
])
|
|
1872
1838
|
.authorization((allow) => [
|
|
1873
1839
|
allow.groups(contentWriteGroups),
|
|
1874
|
-
allow.custom().to(authoringOperations),
|
|
1875
1840
|
]),
|
|
1876
1841
|
|
|
1877
1842
|
Edition: a
|
|
@@ -1905,7 +1870,6 @@ const schema = a.schema({
|
|
|
1905
1870
|
])
|
|
1906
1871
|
.authorization((allow) => [
|
|
1907
1872
|
allow.groups(contentWriteGroups),
|
|
1908
|
-
allow.custom().to(authoringOperations),
|
|
1909
1873
|
]),
|
|
1910
1874
|
|
|
1911
1875
|
EditionSlot: a
|
|
@@ -1932,7 +1896,6 @@ const schema = a.schema({
|
|
|
1932
1896
|
])
|
|
1933
1897
|
.authorization((allow) => [
|
|
1934
1898
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1935
|
-
allow.custom().to(authoringOperations),
|
|
1936
1899
|
]),
|
|
1937
1900
|
|
|
1938
1901
|
EditionItem: a
|
|
@@ -1956,7 +1919,6 @@ const schema = a.schema({
|
|
|
1956
1919
|
])
|
|
1957
1920
|
.authorization((allow) => [
|
|
1958
1921
|
allow.groups(contentWriteGroups),
|
|
1959
|
-
allow.custom().to(authoringOperations),
|
|
1960
1922
|
]),
|
|
1961
1923
|
|
|
1962
1924
|
PublishedItem: a
|
|
@@ -1998,7 +1960,6 @@ const schema = a.schema({
|
|
|
1998
1960
|
.authorization((allow) => [
|
|
1999
1961
|
allow.guest().to(["read"]),
|
|
2000
1962
|
allow.groups(contentWriteGroups),
|
|
2001
|
-
allow.custom().to(authoringOperations),
|
|
2002
1963
|
]),
|
|
2003
1964
|
|
|
2004
1965
|
PublishedMediaAsset: a
|
|
@@ -2035,7 +1996,6 @@ const schema = a.schema({
|
|
|
2035
1996
|
.authorization((allow) => [
|
|
2036
1997
|
allow.guest().to(["read"]),
|
|
2037
1998
|
allow.groups(contentWriteGroups),
|
|
2038
|
-
allow.custom().to(authoringOperations),
|
|
2039
1999
|
]),
|
|
2040
2000
|
|
|
2041
2001
|
PublishedEdition: a
|
|
@@ -2062,7 +2022,6 @@ const schema = a.schema({
|
|
|
2062
2022
|
.authorization((allow) => [
|
|
2063
2023
|
allow.guest().to(["read"]),
|
|
2064
2024
|
allow.groups(contentWriteGroups),
|
|
2065
|
-
allow.custom().to(authoringOperations),
|
|
2066
2025
|
]),
|
|
2067
2026
|
|
|
2068
2027
|
PublishedEditionItem: a
|
|
@@ -2088,7 +2047,6 @@ const schema = a.schema({
|
|
|
2088
2047
|
.authorization((allow) => [
|
|
2089
2048
|
allow.guest().to(["read"]),
|
|
2090
2049
|
allow.groups(contentWriteGroups),
|
|
2091
|
-
allow.custom().to(authoringOperations),
|
|
2092
2050
|
]),
|
|
2093
2051
|
|
|
2094
2052
|
PublishedCategorySet: a
|
|
@@ -2115,7 +2073,6 @@ const schema = a.schema({
|
|
|
2115
2073
|
.authorization((allow) => [
|
|
2116
2074
|
allow.guest().to(["read"]),
|
|
2117
2075
|
allow.groups(contentWriteGroups),
|
|
2118
|
-
allow.custom().to(authoringOperations),
|
|
2119
2076
|
]),
|
|
2120
2077
|
|
|
2121
2078
|
PublishedCategory: a
|
|
@@ -2152,7 +2109,6 @@ const schema = a.schema({
|
|
|
2152
2109
|
.authorization((allow) => [
|
|
2153
2110
|
allow.guest().to(["read"]),
|
|
2154
2111
|
allow.groups(contentWriteGroups),
|
|
2155
|
-
allow.custom().to(authoringOperations),
|
|
2156
2112
|
]),
|
|
2157
2113
|
}).authorization((allow) => [
|
|
2158
2114
|
allow.resource(categoryAction),
|
|
@@ -2169,17 +2125,19 @@ const schema = a.schema({
|
|
|
2169
2125
|
|
|
2170
2126
|
export type Schema = ClientSchema<typeof schema>;
|
|
2171
2127
|
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2128
|
+
/**
|
|
2129
|
+
* The site's data API. Amplify allows one `defineData` per backend and registers it when called, so this is
|
|
2130
|
+
* a function: a site without plugins passes none and gets exactly the base schema.
|
|
2131
|
+
*/
|
|
2132
|
+
export function defineSiteData(pluginDefinitions: Record<string, unknown> = {}) {
|
|
2133
|
+
return defineData({
|
|
2134
|
+
name: "PapyrusCmsApi",
|
|
2135
|
+
schema: Object.keys(pluginDefinitions).length === 0 ? leanSchema : schemaWithPlugins(pluginDefinitions),
|
|
2136
|
+
authorizationModes: {
|
|
2137
|
+
defaultAuthorizationMode: "userPool",
|
|
2138
|
+
apiKeyAuthorizationMode: {
|
|
2139
|
+
expiresInDays: 365,
|
|
2140
|
+
},
|
|
2183
2141
|
},
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2142
|
+
});
|
|
2143
|
+
}
|