@anthusai/papyrus 1.0.0-next.5 → 1.0.0-next.51
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 +44 -80
- package/amplify/data/resource.ts +45 -80
- package/amplify/data/schema.js +47 -60
- package/amplify/data/schema.ts +50 -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 +175 -4
- 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 +31 -0
- package/amplify/publication/reproject-on-deploy.ts +36 -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/rebuild-trigger-settings.js +22 -0
- package/amplify/rebuild-trigger-settings.ts +42 -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 +158 -1
- package/amplify/site-backend-names.js +103 -0
- package/amplify/site-backend-names.ts +166 -0
- package/amplify/site-backend.js +160 -175
- package/amplify/site-backend.ts +200 -200
- package/amplify/storage-backups/construct.js +31 -0
- package/amplify/storage-backups/construct.ts +47 -0
- package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +3 -1
- package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
- package/app/[year]/[month]/[day]/page/[pageNumber]/page.tsx +1 -1
- package/app/[year]/[month]/[day]/page.tsx +1 -1
- package/app/[year]/[month]/[day]/section/[sectionKey]/page.tsx +1 -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 +8 -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 +6 -5
- package/app/newsroom/[section]/page.tsx +4 -3
- package/app/newsroom/articles/[id]/page.tsx +15 -0
- package/app/newsroom/articles/page.tsx +13 -0
- package/app/newsroom/layout.tsx +4 -9
- package/app/page.tsx +18 -5
- package/app/robots.ts +2 -5
- package/bin/papyrus-infra.mjs +3 -3
- package/components/amplify-client-provider.tsx +4 -22
- package/components/archive-shell.tsx +2 -22
- package/components/article-video.tsx +136 -1
- package/components/blog-page-background.tsx +23 -6
- package/components/markus-ir-preview.tsx +300 -0
- package/components/news-desk-taxonomy-client.ts +51 -0
- package/components/newspaper.tsx +6 -2
- package/components/newsroom-access-gate.tsx +67 -0
- package/components/newsroom-article-editor.tsx +741 -0
- package/components/newsroom-articles-view.tsx +129 -0
- package/components/newsroom-client-shell.tsx +12 -0
- package/components/newsroom-ops-overview.tsx +28 -11
- package/components/newsroom-ops-shell.tsx +3 -1
- 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/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 +75 -65
- package/components/use-blog-header-obstacles.ts +81 -0
- package/components/use-brand-fonts-ready.ts +28 -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/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 +190 -0
- 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 +61 -9
- package/lib/media-route-response.ts +45 -0
- package/lib/newspaper-layout.ts +3 -2
- package/lib/newsroom-articles.ts +325 -0
- package/lib/newsroom-base-path.ts +12 -3
- package/lib/newsroom-category-drilldown.ts +3 -2
- package/lib/newsroom-demo-articles.ts +90 -0
- 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 +3 -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/reader-base-path.ts +24 -0
- package/lib/reader-cache-lifetime.ts +5 -0
- package/lib/reader-static-params.ts +13 -0
- 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-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/signup-csv.ts +24 -0
- package/lib/site-brand.ts +38 -0
- package/lib/staging-gated-path.ts +23 -0
- package/lib/staging-preview-object.ts +21 -5
- package/lib/video-script.ts +14 -0
- package/middleware.ts +11 -19
- package/package.json +43 -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 +42 -9
- package/src/sync.mjs +30 -6
- package/src/with-papyrus.d.mts +1 -0
- package/src/with-papyrus.mjs +27 -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/amplify/data/resource.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { a, defineData } from "@aws-amplify/backend";
|
|
2
2
|
import { assignmentAction } from "../functions/assignment-action/resource.js";
|
|
3
3
|
import { categoryAction } from "../functions/category-action/resource.js";
|
|
4
|
-
import { graphqlJwtAuthorizer } from "../functions/graphql-jwt-authorizer/resource.js";
|
|
5
4
|
import { contentActions } from "../functions/content-actions/resource.js";
|
|
6
5
|
import { knowledgeQuery } from "../functions/knowledge-query/resource.js";
|
|
7
6
|
import { manageUserRole } from "../functions/manage-user-role/resource.js";
|
|
@@ -13,7 +12,7 @@ import { emailSubmissionProcessor } from "../functions/email-submission-processo
|
|
|
13
12
|
import { sesInboundReceive } from "../functions/ses-inbound-receive/resource.js";
|
|
14
13
|
import { slackDelivery } from "../functions/slack-delivery/resource.js";
|
|
15
14
|
import { slackEvents } from "../functions/slack-events/resource.js";
|
|
16
|
-
import { schema as leanSchema } from "./schema.js";
|
|
15
|
+
import { schema as leanSchema, schemaWithPlugins } from "./schema.js";
|
|
17
16
|
const authoringOperations = [
|
|
18
17
|
"read",
|
|
19
18
|
"create",
|
|
@@ -44,7 +43,6 @@ const schema = a.schema({
|
|
|
44
43
|
.authorization((allow) => [
|
|
45
44
|
allow.owner(),
|
|
46
45
|
allow.group(adminGroup),
|
|
47
|
-
allow.custom().to(["read"]),
|
|
48
46
|
]),
|
|
49
47
|
UserIdentity: a
|
|
50
48
|
.model({
|
|
@@ -64,7 +62,6 @@ const schema = a.schema({
|
|
|
64
62
|
])
|
|
65
63
|
.authorization((allow) => [
|
|
66
64
|
allow.group(adminGroup),
|
|
67
|
-
allow.custom().to(["read"]),
|
|
68
65
|
]),
|
|
69
66
|
UserRoleAssignment: a
|
|
70
67
|
.model({
|
|
@@ -290,11 +287,12 @@ const schema = a.schema({
|
|
|
290
287
|
actorLabel: a.string(),
|
|
291
288
|
note: a.string(),
|
|
292
289
|
reasonCode: a.string(),
|
|
290
|
+
decisionRelationId: a.id(),
|
|
291
|
+
shareable: a.boolean(),
|
|
293
292
|
})
|
|
294
293
|
.returns(a.ref("ReferenceCurationActionResult"))
|
|
295
294
|
.authorization((allow) => [
|
|
296
295
|
allow.groups(categoryWriteGroups),
|
|
297
|
-
allow.custom(),
|
|
298
296
|
])
|
|
299
297
|
.handler(a.handler.function(categoryAction)),
|
|
300
298
|
setReferenceQualityRating: a
|
|
@@ -309,7 +307,6 @@ const schema = a.schema({
|
|
|
309
307
|
.returns(a.ref("ReferenceQualityActionResult"))
|
|
310
308
|
.authorization((allow) => [
|
|
311
309
|
allow.groups(categoryWriteGroups),
|
|
312
|
-
allow.custom(),
|
|
313
310
|
])
|
|
314
311
|
.handler(a.handler.function(categoryAction)),
|
|
315
312
|
createReferenceInsight: a
|
|
@@ -324,7 +321,6 @@ const schema = a.schema({
|
|
|
324
321
|
.returns(a.ref("ReferenceInsightActionResult"))
|
|
325
322
|
.authorization((allow) => [
|
|
326
323
|
allow.groups(categoryWriteGroups),
|
|
327
|
-
allow.custom(),
|
|
328
324
|
])
|
|
329
325
|
.handler(a.handler.function(categoryAction)),
|
|
330
326
|
moveReferenceCorpus: a
|
|
@@ -339,7 +335,6 @@ const schema = a.schema({
|
|
|
339
335
|
.returns(a.ref("ReferenceCorpusMoveActionResult"))
|
|
340
336
|
.authorization((allow) => [
|
|
341
337
|
allow.groups(categoryWriteGroups),
|
|
342
|
-
allow.custom(),
|
|
343
338
|
])
|
|
344
339
|
.handler(a.handler.function(categoryAction)),
|
|
345
340
|
startReferenceCuration: a
|
|
@@ -353,7 +348,6 @@ const schema = a.schema({
|
|
|
353
348
|
.returns(a.ref("ReferenceCurationStartResult"))
|
|
354
349
|
.authorization((allow) => [
|
|
355
350
|
allow.groups(categoryWriteGroups),
|
|
356
|
-
allow.custom(),
|
|
357
351
|
])
|
|
358
352
|
.handler(a.handler.function(categoryAction)),
|
|
359
353
|
getReferenceCurationStatus: a
|
|
@@ -364,7 +358,6 @@ const schema = a.schema({
|
|
|
364
358
|
.returns(a.ref("ReferenceCurationStatusResult"))
|
|
365
359
|
.authorization((allow) => [
|
|
366
360
|
allow.groups(categoryWriteGroups),
|
|
367
|
-
allow.custom(),
|
|
368
361
|
])
|
|
369
362
|
.handler(a.handler.function(categoryAction)),
|
|
370
363
|
createCategorySetDraft: a
|
|
@@ -467,7 +460,7 @@ const schema = a.schema({
|
|
|
467
460
|
getNewsroomSummary: a
|
|
468
461
|
.query()
|
|
469
462
|
.returns(a.ref("NewsroomSummary"))
|
|
470
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
463
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
471
464
|
.handler(a.handler.function(newsroomSummary)),
|
|
472
465
|
deriveMarkus: a
|
|
473
466
|
.query()
|
|
@@ -493,13 +486,19 @@ const schema = a.schema({
|
|
|
493
486
|
.returns(a.json())
|
|
494
487
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
495
488
|
.handler(a.handler.function(contentActions)),
|
|
489
|
+
requestStagingBuild: a
|
|
490
|
+
.mutation()
|
|
491
|
+
.arguments({ input: a.json().required() })
|
|
492
|
+
.returns(a.json())
|
|
493
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
494
|
+
.handler(a.handler.function(contentActions)),
|
|
496
495
|
knowledgeQuery: a
|
|
497
496
|
.query()
|
|
498
497
|
.arguments({
|
|
499
498
|
input: a.json().required(),
|
|
500
499
|
})
|
|
501
500
|
.returns(a.json())
|
|
502
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
501
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
503
502
|
.handler(a.handler.function(knowledgeQuery)),
|
|
504
503
|
updateNewsroomSummary: a
|
|
505
504
|
.mutation()
|
|
@@ -509,7 +508,7 @@ const schema = a.schema({
|
|
|
509
508
|
reason: a.string(),
|
|
510
509
|
})
|
|
511
510
|
.returns(a.ref("NewsroomSummary"))
|
|
512
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
511
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
513
512
|
.handler(a.handler.function(newsroomSummary)),
|
|
514
513
|
ModelAttachmentUploadSlot: a.customType({
|
|
515
514
|
ok: a.boolean().required(),
|
|
@@ -565,7 +564,7 @@ const schema = a.schema({
|
|
|
565
564
|
status: a.string(),
|
|
566
565
|
})
|
|
567
566
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
568
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
567
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
569
568
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
570
569
|
completeModelAttachmentUpload: a
|
|
571
570
|
.mutation()
|
|
@@ -586,7 +585,7 @@ const schema = a.schema({
|
|
|
586
585
|
status: a.string(),
|
|
587
586
|
})
|
|
588
587
|
.returns(a.ref("ModelAttachment"))
|
|
589
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
588
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
590
589
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
591
590
|
abortModelAttachmentUpload: a
|
|
592
591
|
.mutation()
|
|
@@ -607,7 +606,7 @@ const schema = a.schema({
|
|
|
607
606
|
status: a.string(),
|
|
608
607
|
})
|
|
609
608
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
610
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
609
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
611
610
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
612
611
|
createModelAttachmentDownload: a
|
|
613
612
|
.mutation()
|
|
@@ -615,7 +614,7 @@ const schema = a.schema({
|
|
|
615
614
|
attachmentId: a.id().required(),
|
|
616
615
|
})
|
|
617
616
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
618
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
617
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
619
618
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
620
619
|
AssignmentActionResult: a.customType({
|
|
621
620
|
ok: a.boolean().required(),
|
|
@@ -702,7 +701,7 @@ const schema = a.schema({
|
|
|
702
701
|
limit: a.integer(),
|
|
703
702
|
})
|
|
704
703
|
.returns(a.ref("AssignmentContext").array().required())
|
|
705
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
704
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
706
705
|
.handler(a.handler.function(assignmentAction)),
|
|
707
706
|
listAssignmentQueue: a
|
|
708
707
|
.query()
|
|
@@ -712,7 +711,7 @@ const schema = a.schema({
|
|
|
712
711
|
limit: a.integer(),
|
|
713
712
|
})
|
|
714
713
|
.returns(a.ref("AssignmentContext").array().required())
|
|
715
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
714
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
716
715
|
.handler(a.handler.function(assignmentAction)),
|
|
717
716
|
getAssignmentContext: a
|
|
718
717
|
.query()
|
|
@@ -720,7 +719,7 @@ const schema = a.schema({
|
|
|
720
719
|
assignmentId: a.id().required(),
|
|
721
720
|
})
|
|
722
721
|
.returns(a.ref("AssignmentContext"))
|
|
723
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
722
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
724
723
|
.handler(a.handler.function(assignmentAction)),
|
|
725
724
|
claimAssignment: a
|
|
726
725
|
.mutation()
|
|
@@ -736,7 +735,7 @@ const schema = a.schema({
|
|
|
736
735
|
note: a.string(),
|
|
737
736
|
})
|
|
738
737
|
.returns(a.ref("AssignmentActionResult"))
|
|
739
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
738
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
740
739
|
.handler(a.handler.function(assignmentAction)),
|
|
741
740
|
releaseAssignment: a
|
|
742
741
|
.mutation()
|
|
@@ -747,7 +746,7 @@ const schema = a.schema({
|
|
|
747
746
|
note: a.string(),
|
|
748
747
|
})
|
|
749
748
|
.returns(a.ref("AssignmentActionResult"))
|
|
750
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
749
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
751
750
|
.handler(a.handler.function(assignmentAction)),
|
|
752
751
|
completeAssignment: a
|
|
753
752
|
.mutation()
|
|
@@ -758,7 +757,7 @@ const schema = a.schema({
|
|
|
758
757
|
note: a.string(),
|
|
759
758
|
})
|
|
760
759
|
.returns(a.ref("AssignmentActionResult"))
|
|
761
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
760
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
762
761
|
.handler(a.handler.function(assignmentAction)),
|
|
763
762
|
cancelAssignment: a
|
|
764
763
|
.mutation()
|
|
@@ -769,7 +768,7 @@ const schema = a.schema({
|
|
|
769
768
|
note: a.string(),
|
|
770
769
|
})
|
|
771
770
|
.returns(a.ref("AssignmentActionResult"))
|
|
772
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
771
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
773
772
|
.handler(a.handler.function(assignmentAction)),
|
|
774
773
|
reopenAssignment: a
|
|
775
774
|
.mutation()
|
|
@@ -780,7 +779,7 @@ const schema = a.schema({
|
|
|
780
779
|
note: a.string(),
|
|
781
780
|
})
|
|
782
781
|
.returns(a.ref("AssignmentActionResult"))
|
|
783
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
782
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
784
783
|
.handler(a.handler.function(assignmentAction)),
|
|
785
784
|
retryImmediateAssignment: a
|
|
786
785
|
.mutation()
|
|
@@ -791,7 +790,7 @@ const schema = a.schema({
|
|
|
791
790
|
note: a.string(),
|
|
792
791
|
})
|
|
793
792
|
.returns(a.ref("AssignmentActionResult"))
|
|
794
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
793
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
795
794
|
.handler(a.handler.function(assignmentAction)),
|
|
796
795
|
listNewsroomProcedureDefinitions: a
|
|
797
796
|
.query()
|
|
@@ -805,7 +804,7 @@ const schema = a.schema({
|
|
|
805
804
|
procedureKey: a.string(),
|
|
806
805
|
})
|
|
807
806
|
.returns(a.json())
|
|
808
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
807
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
809
808
|
.handler(a.handler.function(procedureAction)),
|
|
810
809
|
saveNewsroomProcedureDefinition: a
|
|
811
810
|
.mutation()
|
|
@@ -843,7 +842,7 @@ const schema = a.schema({
|
|
|
843
842
|
actorLabel: a.string(),
|
|
844
843
|
})
|
|
845
844
|
.returns(a.json())
|
|
846
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
845
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
847
846
|
.handler(a.handler.function(procedureAction)),
|
|
848
847
|
getNewsroomProcedureRun: a
|
|
849
848
|
.query()
|
|
@@ -851,7 +850,7 @@ const schema = a.schema({
|
|
|
851
850
|
id: a.id().required(),
|
|
852
851
|
})
|
|
853
852
|
.returns(a.json())
|
|
854
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
853
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
855
854
|
.handler(a.handler.function(procedureAction)),
|
|
856
855
|
listNewsroomProcedureRunsByProcedure: a
|
|
857
856
|
.query()
|
|
@@ -859,7 +858,7 @@ const schema = a.schema({
|
|
|
859
858
|
procedureId: a.id().required(),
|
|
860
859
|
})
|
|
861
860
|
.returns(a.json())
|
|
862
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
861
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
863
862
|
.handler(a.handler.function(procedureAction)),
|
|
864
863
|
Assignment: a
|
|
865
864
|
.model({
|
|
@@ -909,7 +908,6 @@ const schema = a.schema({
|
|
|
909
908
|
.authorization((allow) => [
|
|
910
909
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
911
910
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
912
|
-
allow.custom().to(authoringOperations),
|
|
913
911
|
]),
|
|
914
912
|
AssignmentEvent: a
|
|
915
913
|
.model({
|
|
@@ -932,7 +930,6 @@ const schema = a.schema({
|
|
|
932
930
|
])
|
|
933
931
|
.authorization((allow) => [
|
|
934
932
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
935
|
-
allow.custom().to(authoringOperations),
|
|
936
933
|
]),
|
|
937
934
|
ProcedureDefinition: a
|
|
938
935
|
.model({
|
|
@@ -957,7 +954,6 @@ const schema = a.schema({
|
|
|
957
954
|
])
|
|
958
955
|
.authorization((allow) => [
|
|
959
956
|
allow.group(adminGroup),
|
|
960
|
-
allow.custom().to(authoringOperations),
|
|
961
957
|
]),
|
|
962
958
|
ProcedureVersion: a
|
|
963
959
|
.model({
|
|
@@ -984,7 +980,6 @@ const schema = a.schema({
|
|
|
984
980
|
])
|
|
985
981
|
.authorization((allow) => [
|
|
986
982
|
allow.group(adminGroup),
|
|
987
|
-
allow.custom().to(authoringOperations),
|
|
988
983
|
]),
|
|
989
984
|
ProcedureRun: a
|
|
990
985
|
.model({
|
|
@@ -1017,7 +1012,6 @@ const schema = a.schema({
|
|
|
1017
1012
|
.authorization((allow) => [
|
|
1018
1013
|
allow.group("editor").to(["read"]),
|
|
1019
1014
|
allow.group(adminGroup).to(authoringOperations),
|
|
1020
|
-
allow.custom().to(authoringOperations),
|
|
1021
1015
|
]),
|
|
1022
1016
|
NewsroomSection: a
|
|
1023
1017
|
.model({
|
|
@@ -1045,7 +1039,6 @@ const schema = a.schema({
|
|
|
1045
1039
|
])
|
|
1046
1040
|
.authorization((allow) => [
|
|
1047
1041
|
allow.groups(categoryWriteGroups),
|
|
1048
|
-
allow.custom().to(authoringOperations),
|
|
1049
1042
|
]),
|
|
1050
1043
|
KnowledgeCorpus: a
|
|
1051
1044
|
.model({
|
|
@@ -1063,7 +1056,6 @@ const schema = a.schema({
|
|
|
1063
1056
|
])
|
|
1064
1057
|
.authorization((allow) => [
|
|
1065
1058
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1066
|
-
allow.custom().to(authoringOperations),
|
|
1067
1059
|
]),
|
|
1068
1060
|
KnowledgeImportRun: a
|
|
1069
1061
|
.model({
|
|
@@ -1091,7 +1083,6 @@ const schema = a.schema({
|
|
|
1091
1083
|
])
|
|
1092
1084
|
.authorization((allow) => [
|
|
1093
1085
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1094
|
-
allow.custom().to(authoringOperations),
|
|
1095
1086
|
]),
|
|
1096
1087
|
KnowledgeRawPayload: a
|
|
1097
1088
|
.model({
|
|
@@ -1109,7 +1100,6 @@ const schema = a.schema({
|
|
|
1109
1100
|
])
|
|
1110
1101
|
.authorization((allow) => [
|
|
1111
1102
|
allow.groups(categoryWriteGroups),
|
|
1112
|
-
allow.custom().to(authoringOperations),
|
|
1113
1103
|
]),
|
|
1114
1104
|
KnowledgeArtifact: a
|
|
1115
1105
|
.model({
|
|
@@ -1129,7 +1119,6 @@ const schema = a.schema({
|
|
|
1129
1119
|
])
|
|
1130
1120
|
.authorization((allow) => [
|
|
1131
1121
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1132
|
-
allow.custom().to(authoringOperations),
|
|
1133
1122
|
]),
|
|
1134
1123
|
CategorySet: a
|
|
1135
1124
|
.model({
|
|
@@ -1159,7 +1148,6 @@ const schema = a.schema({
|
|
|
1159
1148
|
])
|
|
1160
1149
|
.authorization((allow) => [
|
|
1161
1150
|
allow.groups(categoryWriteGroups),
|
|
1162
|
-
allow.custom().to(authoringOperations),
|
|
1163
1151
|
]),
|
|
1164
1152
|
Category: a
|
|
1165
1153
|
.model({
|
|
@@ -1201,7 +1189,6 @@ const schema = a.schema({
|
|
|
1201
1189
|
])
|
|
1202
1190
|
.authorization((allow) => [
|
|
1203
1191
|
allow.groups(categoryWriteGroups),
|
|
1204
|
-
allow.custom().to(authoringOperations),
|
|
1205
1192
|
]),
|
|
1206
1193
|
CategoryKeyword: a
|
|
1207
1194
|
.model({
|
|
@@ -1230,7 +1217,6 @@ const schema = a.schema({
|
|
|
1230
1217
|
])
|
|
1231
1218
|
.authorization((allow) => [
|
|
1232
1219
|
allow.groups(categoryWriteGroups),
|
|
1233
|
-
allow.custom().to(authoringOperations),
|
|
1234
1220
|
]),
|
|
1235
1221
|
LexicalSteeringRule: a
|
|
1236
1222
|
.model({
|
|
@@ -1259,7 +1245,6 @@ const schema = a.schema({
|
|
|
1259
1245
|
])
|
|
1260
1246
|
.authorization((allow) => [
|
|
1261
1247
|
allow.groups(categoryWriteGroups),
|
|
1262
|
-
allow.custom().to(authoringOperations),
|
|
1263
1248
|
]),
|
|
1264
1249
|
SteeringProposal: a
|
|
1265
1250
|
.model({
|
|
@@ -1297,7 +1282,6 @@ const schema = a.schema({
|
|
|
1297
1282
|
])
|
|
1298
1283
|
.authorization((allow) => [
|
|
1299
1284
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1300
|
-
allow.custom().to(authoringOperations),
|
|
1301
1285
|
]),
|
|
1302
1286
|
SteeringDecision: a
|
|
1303
1287
|
.model({
|
|
@@ -1317,7 +1301,6 @@ const schema = a.schema({
|
|
|
1317
1301
|
])
|
|
1318
1302
|
.authorization((allow) => [
|
|
1319
1303
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1320
|
-
allow.custom().to(authoringOperations),
|
|
1321
1304
|
]),
|
|
1322
1305
|
Reference: a
|
|
1323
1306
|
.model({
|
|
@@ -1369,7 +1352,6 @@ const schema = a.schema({
|
|
|
1369
1352
|
])
|
|
1370
1353
|
.authorization((allow) => [
|
|
1371
1354
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1372
|
-
allow.custom().to(authoringOperations),
|
|
1373
1355
|
]),
|
|
1374
1356
|
ReferenceAttachment: a
|
|
1375
1357
|
.model({
|
|
@@ -1399,7 +1381,6 @@ const schema = a.schema({
|
|
|
1399
1381
|
])
|
|
1400
1382
|
.authorization((allow) => [
|
|
1401
1383
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1402
|
-
allow.custom().to(authoringOperations),
|
|
1403
1384
|
]),
|
|
1404
1385
|
SemanticNode: a
|
|
1405
1386
|
.model({
|
|
@@ -1442,7 +1423,6 @@ const schema = a.schema({
|
|
|
1442
1423
|
])
|
|
1443
1424
|
.authorization((allow) => [
|
|
1444
1425
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1445
|
-
allow.custom().to(authoringOperations),
|
|
1446
1426
|
]),
|
|
1447
1427
|
Message: a
|
|
1448
1428
|
.model({
|
|
@@ -1491,7 +1471,6 @@ const schema = a.schema({
|
|
|
1491
1471
|
])
|
|
1492
1472
|
.authorization((allow) => [
|
|
1493
1473
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1494
|
-
allow.custom().to(authoringOperations),
|
|
1495
1474
|
allow.authenticated("identityPool").to(["read", "create", "update"]),
|
|
1496
1475
|
]),
|
|
1497
1476
|
MessageThread: a
|
|
@@ -1530,7 +1509,6 @@ const schema = a.schema({
|
|
|
1530
1509
|
.authorization((allow) => [
|
|
1531
1510
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1532
1511
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1533
|
-
allow.custom().to(authoringOperations),
|
|
1534
1512
|
]),
|
|
1535
1513
|
ModelAttachment: a
|
|
1536
1514
|
.model({
|
|
@@ -1562,7 +1540,6 @@ const schema = a.schema({
|
|
|
1562
1540
|
])
|
|
1563
1541
|
.authorization((allow) => [
|
|
1564
1542
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1565
|
-
allow.custom().to(authoringOperations),
|
|
1566
1543
|
]),
|
|
1567
1544
|
SemanticRelationType: a
|
|
1568
1545
|
.model({
|
|
@@ -1590,7 +1567,6 @@ const schema = a.schema({
|
|
|
1590
1567
|
])
|
|
1591
1568
|
.authorization((allow) => [
|
|
1592
1569
|
allow.groups(categoryWriteGroups),
|
|
1593
|
-
allow.custom().to(authoringOperations),
|
|
1594
1570
|
]),
|
|
1595
1571
|
SemanticRelation: a
|
|
1596
1572
|
.model({
|
|
@@ -1641,7 +1617,6 @@ const schema = a.schema({
|
|
|
1641
1617
|
])
|
|
1642
1618
|
.authorization((allow) => [
|
|
1643
1619
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1644
|
-
allow.custom().to(authoringOperations),
|
|
1645
1620
|
]),
|
|
1646
1621
|
Item: a
|
|
1647
1622
|
.model({
|
|
@@ -1691,7 +1666,6 @@ const schema = a.schema({
|
|
|
1691
1666
|
])
|
|
1692
1667
|
.authorization((allow) => [
|
|
1693
1668
|
allow.groups(contentWriteGroups),
|
|
1694
|
-
allow.custom().to(authoringOperations),
|
|
1695
1669
|
]),
|
|
1696
1670
|
Tag: a
|
|
1697
1671
|
.model({
|
|
@@ -1708,7 +1682,6 @@ const schema = a.schema({
|
|
|
1708
1682
|
])
|
|
1709
1683
|
.authorization((allow) => [
|
|
1710
1684
|
allow.groups(contentWriteGroups),
|
|
1711
|
-
allow.custom().to(authoringOperations),
|
|
1712
1685
|
]),
|
|
1713
1686
|
ItemTag: a
|
|
1714
1687
|
.model({
|
|
@@ -1728,7 +1701,6 @@ const schema = a.schema({
|
|
|
1728
1701
|
])
|
|
1729
1702
|
.authorization((allow) => [
|
|
1730
1703
|
allow.groups(contentWriteGroups),
|
|
1731
|
-
allow.custom().to(authoringOperations),
|
|
1732
1704
|
]),
|
|
1733
1705
|
MediaAsset: a
|
|
1734
1706
|
.model({
|
|
@@ -1761,7 +1733,6 @@ const schema = a.schema({
|
|
|
1761
1733
|
])
|
|
1762
1734
|
.authorization((allow) => [
|
|
1763
1735
|
allow.groups(contentWriteGroups),
|
|
1764
|
-
allow.custom().to(authoringOperations),
|
|
1765
1736
|
]),
|
|
1766
1737
|
Edition: a
|
|
1767
1738
|
.model({
|
|
@@ -1794,7 +1765,6 @@ const schema = a.schema({
|
|
|
1794
1765
|
])
|
|
1795
1766
|
.authorization((allow) => [
|
|
1796
1767
|
allow.groups(contentWriteGroups),
|
|
1797
|
-
allow.custom().to(authoringOperations),
|
|
1798
1768
|
]),
|
|
1799
1769
|
EditionSlot: a
|
|
1800
1770
|
.model({
|
|
@@ -1820,7 +1790,6 @@ const schema = a.schema({
|
|
|
1820
1790
|
])
|
|
1821
1791
|
.authorization((allow) => [
|
|
1822
1792
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1823
|
-
allow.custom().to(authoringOperations),
|
|
1824
1793
|
]),
|
|
1825
1794
|
EditionItem: a
|
|
1826
1795
|
.model({
|
|
@@ -1843,7 +1812,6 @@ const schema = a.schema({
|
|
|
1843
1812
|
])
|
|
1844
1813
|
.authorization((allow) => [
|
|
1845
1814
|
allow.groups(contentWriteGroups),
|
|
1846
|
-
allow.custom().to(authoringOperations),
|
|
1847
1815
|
]),
|
|
1848
1816
|
PublishedItem: a
|
|
1849
1817
|
.model({
|
|
@@ -1884,7 +1852,6 @@ const schema = a.schema({
|
|
|
1884
1852
|
.authorization((allow) => [
|
|
1885
1853
|
allow.guest().to(["read"]),
|
|
1886
1854
|
allow.groups(contentWriteGroups),
|
|
1887
|
-
allow.custom().to(authoringOperations),
|
|
1888
1855
|
]),
|
|
1889
1856
|
PublishedMediaAsset: a
|
|
1890
1857
|
.model({
|
|
@@ -1920,7 +1887,6 @@ const schema = a.schema({
|
|
|
1920
1887
|
.authorization((allow) => [
|
|
1921
1888
|
allow.guest().to(["read"]),
|
|
1922
1889
|
allow.groups(contentWriteGroups),
|
|
1923
|
-
allow.custom().to(authoringOperations),
|
|
1924
1890
|
]),
|
|
1925
1891
|
PublishedEdition: a
|
|
1926
1892
|
.model({
|
|
@@ -1946,7 +1912,6 @@ const schema = a.schema({
|
|
|
1946
1912
|
.authorization((allow) => [
|
|
1947
1913
|
allow.guest().to(["read"]),
|
|
1948
1914
|
allow.groups(contentWriteGroups),
|
|
1949
|
-
allow.custom().to(authoringOperations),
|
|
1950
1915
|
]),
|
|
1951
1916
|
PublishedEditionItem: a
|
|
1952
1917
|
.model({
|
|
@@ -1971,7 +1936,6 @@ const schema = a.schema({
|
|
|
1971
1936
|
.authorization((allow) => [
|
|
1972
1937
|
allow.guest().to(["read"]),
|
|
1973
1938
|
allow.groups(contentWriteGroups),
|
|
1974
|
-
allow.custom().to(authoringOperations),
|
|
1975
1939
|
]),
|
|
1976
1940
|
PublishedCategorySet: a
|
|
1977
1941
|
.model({
|
|
@@ -1997,7 +1961,6 @@ const schema = a.schema({
|
|
|
1997
1961
|
.authorization((allow) => [
|
|
1998
1962
|
allow.guest().to(["read"]),
|
|
1999
1963
|
allow.groups(contentWriteGroups),
|
|
2000
|
-
allow.custom().to(authoringOperations),
|
|
2001
1964
|
]),
|
|
2002
1965
|
PublishedCategory: a
|
|
2003
1966
|
.model({
|
|
@@ -2033,7 +1996,6 @@ const schema = a.schema({
|
|
|
2033
1996
|
.authorization((allow) => [
|
|
2034
1997
|
allow.guest().to(["read"]),
|
|
2035
1998
|
allow.groups(contentWriteGroups),
|
|
2036
|
-
allow.custom().to(authoringOperations),
|
|
2037
1999
|
]),
|
|
2038
2000
|
}).authorization((allow) => [
|
|
2039
2001
|
allow.resource(categoryAction),
|
|
@@ -2047,17 +2009,19 @@ const schema = a.schema({
|
|
|
2047
2009
|
allow.resource(slackEvents),
|
|
2048
2010
|
allow.resource(slackDelivery),
|
|
2049
2011
|
]);
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2012
|
+
/**
|
|
2013
|
+
* The site's data API. Amplify allows one `defineData` per backend and registers it when called, so this is
|
|
2014
|
+
* a function: a site without plugins passes none and gets exactly the base schema.
|
|
2015
|
+
*/
|
|
2016
|
+
export function defineSiteData(pluginDefinitions = {}) {
|
|
2017
|
+
return defineData({
|
|
2018
|
+
name: "PapyrusCmsApi",
|
|
2019
|
+
schema: Object.keys(pluginDefinitions).length === 0 ? leanSchema : schemaWithPlugins(pluginDefinitions),
|
|
2020
|
+
authorizationModes: {
|
|
2021
|
+
defaultAuthorizationMode: "userPool",
|
|
2022
|
+
apiKeyAuthorizationMode: {
|
|
2023
|
+
expiresInDays: 365,
|
|
2024
|
+
},
|
|
2061
2025
|
},
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2026
|
+
});
|
|
2027
|
+
}
|