@anthusai/papyrus 1.0.0-next.6 → 1.0.0-next.61
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/app/tailwind.css +1 -0
- 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-curation-provider.tsx +17 -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 +92 -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/publication-cyclotron-panel.tsx +57 -0
- package/components/reader-auth-control.tsx +8 -5
- package/components/reference-curation-controls.tsx +77 -0
- package/components/reference-cyclotron-status.tsx +109 -0
- package/components/reference-priming.tsx +18 -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/curation-client.ts +61 -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/publication-cyclotron.ts +74 -0
- 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 +54 -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/schema.js
CHANGED
|
@@ -20,7 +20,7 @@ const categoryWriteGroups = ["editor", "admin"];
|
|
|
20
20
|
const categoryAppendOnlyOperations = ["read", "create"];
|
|
21
21
|
const modelWithoutSubscriptions = (fields) => a.model(fields).disableOperations(["subscriptions"]);
|
|
22
22
|
const realtimeModel = (fields) => a.model(fields);
|
|
23
|
-
|
|
23
|
+
const baseDefinitions = {
|
|
24
24
|
UserProfile: modelWithoutSubscriptions({
|
|
25
25
|
id: a.id().required(),
|
|
26
26
|
email: a.email(),
|
|
@@ -245,11 +245,12 @@ export const schema = a.schema({
|
|
|
245
245
|
actorLabel: a.string(),
|
|
246
246
|
note: a.string(),
|
|
247
247
|
reasonCode: a.string(),
|
|
248
|
+
decisionRelationId: a.id(),
|
|
249
|
+
shareable: a.boolean(),
|
|
248
250
|
})
|
|
249
251
|
.returns(a.ref("ReferenceCurationActionResult"))
|
|
250
252
|
.authorization((allow) => [
|
|
251
253
|
allow.groups(categoryWriteGroups),
|
|
252
|
-
allow.custom(),
|
|
253
254
|
])
|
|
254
255
|
.handler(a.handler.function(categoryAction)),
|
|
255
256
|
setReferenceQualityRating: a
|
|
@@ -264,7 +265,6 @@ export const schema = a.schema({
|
|
|
264
265
|
.returns(a.ref("ReferenceQualityActionResult"))
|
|
265
266
|
.authorization((allow) => [
|
|
266
267
|
allow.groups(categoryWriteGroups),
|
|
267
|
-
allow.custom(),
|
|
268
268
|
])
|
|
269
269
|
.handler(a.handler.function(categoryAction)),
|
|
270
270
|
createCategorySetDraft: a
|
|
@@ -367,7 +367,7 @@ export const schema = a.schema({
|
|
|
367
367
|
getNewsroomSummary: a
|
|
368
368
|
.query()
|
|
369
369
|
.returns(a.ref("NewsroomSummary"))
|
|
370
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
370
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
371
371
|
.handler(a.handler.function(newsroomSummary)),
|
|
372
372
|
deriveMarkus: a
|
|
373
373
|
.query()
|
|
@@ -405,7 +405,7 @@ export const schema = a.schema({
|
|
|
405
405
|
input: a.json().required(),
|
|
406
406
|
})
|
|
407
407
|
.returns(a.json())
|
|
408
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
408
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
409
409
|
.handler(a.handler.function(knowledgeQuery)),
|
|
410
410
|
updateNewsroomSummary: a
|
|
411
411
|
.mutation()
|
|
@@ -415,7 +415,7 @@ export const schema = a.schema({
|
|
|
415
415
|
reason: a.string(),
|
|
416
416
|
})
|
|
417
417
|
.returns(a.ref("NewsroomSummary"))
|
|
418
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
418
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
419
419
|
.handler(a.handler.function(newsroomSummary)),
|
|
420
420
|
ModelAttachmentUploadSlot: a.customType({
|
|
421
421
|
ok: a.boolean().required(),
|
|
@@ -471,7 +471,7 @@ export const schema = a.schema({
|
|
|
471
471
|
status: a.string(),
|
|
472
472
|
})
|
|
473
473
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
474
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
474
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
475
475
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
476
476
|
completeModelAttachmentUpload: a
|
|
477
477
|
.mutation()
|
|
@@ -492,7 +492,7 @@ export const schema = a.schema({
|
|
|
492
492
|
status: a.string(),
|
|
493
493
|
})
|
|
494
494
|
.returns(a.ref("ModelAttachment"))
|
|
495
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
495
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
496
496
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
497
497
|
abortModelAttachmentUpload: a
|
|
498
498
|
.mutation()
|
|
@@ -513,7 +513,7 @@ export const schema = a.schema({
|
|
|
513
513
|
status: a.string(),
|
|
514
514
|
})
|
|
515
515
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
516
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
516
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
517
517
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
518
518
|
createModelAttachmentDownload: a
|
|
519
519
|
.mutation()
|
|
@@ -521,7 +521,7 @@ export const schema = a.schema({
|
|
|
521
521
|
attachmentId: a.id().required(),
|
|
522
522
|
})
|
|
523
523
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
524
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
524
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
525
525
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
526
526
|
AssignmentActionResult: a.customType({
|
|
527
527
|
ok: a.boolean().required(),
|
|
@@ -608,7 +608,7 @@ export const schema = a.schema({
|
|
|
608
608
|
limit: a.integer(),
|
|
609
609
|
})
|
|
610
610
|
.returns(a.ref("AssignmentContext").array().required())
|
|
611
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
611
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
612
612
|
.handler(a.handler.function(assignmentAction)),
|
|
613
613
|
listAssignmentQueue: a
|
|
614
614
|
.query()
|
|
@@ -618,7 +618,7 @@ export const schema = a.schema({
|
|
|
618
618
|
limit: a.integer(),
|
|
619
619
|
})
|
|
620
620
|
.returns(a.ref("AssignmentContext").array().required())
|
|
621
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
621
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
622
622
|
.handler(a.handler.function(assignmentAction)),
|
|
623
623
|
getAssignmentContext: a
|
|
624
624
|
.query()
|
|
@@ -626,7 +626,7 @@ export const schema = a.schema({
|
|
|
626
626
|
assignmentId: a.id().required(),
|
|
627
627
|
})
|
|
628
628
|
.returns(a.ref("AssignmentContext"))
|
|
629
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
629
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
630
630
|
.handler(a.handler.function(assignmentAction)),
|
|
631
631
|
claimAssignment: a
|
|
632
632
|
.mutation()
|
|
@@ -642,7 +642,7 @@ export const schema = a.schema({
|
|
|
642
642
|
note: a.string(),
|
|
643
643
|
})
|
|
644
644
|
.returns(a.ref("AssignmentActionResult"))
|
|
645
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
645
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
646
646
|
.handler(a.handler.function(assignmentAction)),
|
|
647
647
|
releaseAssignment: a
|
|
648
648
|
.mutation()
|
|
@@ -653,7 +653,7 @@ export const schema = a.schema({
|
|
|
653
653
|
note: a.string(),
|
|
654
654
|
})
|
|
655
655
|
.returns(a.ref("AssignmentActionResult"))
|
|
656
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
656
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
657
657
|
.handler(a.handler.function(assignmentAction)),
|
|
658
658
|
completeAssignment: a
|
|
659
659
|
.mutation()
|
|
@@ -664,7 +664,7 @@ export const schema = a.schema({
|
|
|
664
664
|
note: a.string(),
|
|
665
665
|
})
|
|
666
666
|
.returns(a.ref("AssignmentActionResult"))
|
|
667
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
667
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
668
668
|
.handler(a.handler.function(assignmentAction)),
|
|
669
669
|
cancelAssignment: a
|
|
670
670
|
.mutation()
|
|
@@ -675,7 +675,7 @@ export const schema = a.schema({
|
|
|
675
675
|
note: a.string(),
|
|
676
676
|
})
|
|
677
677
|
.returns(a.ref("AssignmentActionResult"))
|
|
678
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
678
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
679
679
|
.handler(a.handler.function(assignmentAction)),
|
|
680
680
|
reopenAssignment: a
|
|
681
681
|
.mutation()
|
|
@@ -686,7 +686,7 @@ export const schema = a.schema({
|
|
|
686
686
|
note: a.string(),
|
|
687
687
|
})
|
|
688
688
|
.returns(a.ref("AssignmentActionResult"))
|
|
689
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
689
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
690
690
|
.handler(a.handler.function(assignmentAction)),
|
|
691
691
|
retryImmediateAssignment: a
|
|
692
692
|
.mutation()
|
|
@@ -697,7 +697,7 @@ export const schema = a.schema({
|
|
|
697
697
|
note: a.string(),
|
|
698
698
|
})
|
|
699
699
|
.returns(a.ref("AssignmentActionResult"))
|
|
700
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
700
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
701
701
|
.handler(a.handler.function(assignmentAction)),
|
|
702
702
|
listNewsroomProcedureDefinitions: a
|
|
703
703
|
.query()
|
|
@@ -711,7 +711,7 @@ export const schema = a.schema({
|
|
|
711
711
|
procedureKey: a.string(),
|
|
712
712
|
})
|
|
713
713
|
.returns(a.json())
|
|
714
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
714
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
715
715
|
.handler(a.handler.function(procedureAction)),
|
|
716
716
|
saveNewsroomProcedureDefinition: a
|
|
717
717
|
.mutation()
|
|
@@ -749,7 +749,7 @@ export const schema = a.schema({
|
|
|
749
749
|
actorLabel: a.string(),
|
|
750
750
|
})
|
|
751
751
|
.returns(a.json())
|
|
752
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
752
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
753
753
|
.handler(a.handler.function(procedureAction)),
|
|
754
754
|
getNewsroomProcedureRun: a
|
|
755
755
|
.query()
|
|
@@ -757,7 +757,7 @@ export const schema = a.schema({
|
|
|
757
757
|
id: a.id().required(),
|
|
758
758
|
})
|
|
759
759
|
.returns(a.json())
|
|
760
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
760
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
761
761
|
.handler(a.handler.function(procedureAction)),
|
|
762
762
|
listNewsroomProcedureRunsByProcedure: a
|
|
763
763
|
.query()
|
|
@@ -765,7 +765,7 @@ export const schema = a.schema({
|
|
|
765
765
|
procedureId: a.id().required(),
|
|
766
766
|
})
|
|
767
767
|
.returns(a.json())
|
|
768
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
768
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
769
769
|
.handler(a.handler.function(procedureAction)),
|
|
770
770
|
Assignment: modelWithoutSubscriptions({
|
|
771
771
|
id: a.id().required(),
|
|
@@ -814,7 +814,6 @@ export const schema = a.schema({
|
|
|
814
814
|
.authorization((allow) => [
|
|
815
815
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
816
816
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
817
|
-
allow.custom().to(authoringOperations),
|
|
818
817
|
]),
|
|
819
818
|
AssignmentEvent: modelWithoutSubscriptions({
|
|
820
819
|
id: a.id().required(),
|
|
@@ -836,7 +835,6 @@ export const schema = a.schema({
|
|
|
836
835
|
])
|
|
837
836
|
.authorization((allow) => [
|
|
838
837
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
839
|
-
allow.custom().to(authoringOperations),
|
|
840
838
|
]),
|
|
841
839
|
ProcedureDefinition: modelWithoutSubscriptions({
|
|
842
840
|
id: a.id().required(),
|
|
@@ -860,7 +858,6 @@ export const schema = a.schema({
|
|
|
860
858
|
])
|
|
861
859
|
.authorization((allow) => [
|
|
862
860
|
allow.group(adminGroup),
|
|
863
|
-
allow.custom().to(authoringOperations),
|
|
864
861
|
]),
|
|
865
862
|
ProcedureVersion: modelWithoutSubscriptions({
|
|
866
863
|
id: a.id().required(),
|
|
@@ -886,7 +883,6 @@ export const schema = a.schema({
|
|
|
886
883
|
])
|
|
887
884
|
.authorization((allow) => [
|
|
888
885
|
allow.group(adminGroup),
|
|
889
|
-
allow.custom().to(authoringOperations),
|
|
890
886
|
]),
|
|
891
887
|
ProcedureRun: modelWithoutSubscriptions({
|
|
892
888
|
id: a.id().required(),
|
|
@@ -918,7 +914,6 @@ export const schema = a.schema({
|
|
|
918
914
|
.authorization((allow) => [
|
|
919
915
|
allow.group("editor").to(["read"]),
|
|
920
916
|
allow.group(adminGroup).to(authoringOperations),
|
|
921
|
-
allow.custom().to(authoringOperations),
|
|
922
917
|
]),
|
|
923
918
|
NewsroomSection: modelWithoutSubscriptions({
|
|
924
919
|
id: a.id().required(),
|
|
@@ -945,7 +940,6 @@ export const schema = a.schema({
|
|
|
945
940
|
])
|
|
946
941
|
.authorization((allow) => [
|
|
947
942
|
allow.groups(categoryWriteGroups),
|
|
948
|
-
allow.custom().to(authoringOperations),
|
|
949
943
|
]),
|
|
950
944
|
KnowledgeCorpus: modelWithoutSubscriptions({
|
|
951
945
|
id: a.id().required(),
|
|
@@ -962,7 +956,6 @@ export const schema = a.schema({
|
|
|
962
956
|
])
|
|
963
957
|
.authorization((allow) => [
|
|
964
958
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
965
|
-
allow.custom().to(authoringOperations),
|
|
966
959
|
]),
|
|
967
960
|
KnowledgeImportRun: modelWithoutSubscriptions({
|
|
968
961
|
id: a.id().required(),
|
|
@@ -989,7 +982,6 @@ export const schema = a.schema({
|
|
|
989
982
|
])
|
|
990
983
|
.authorization((allow) => [
|
|
991
984
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
992
|
-
allow.custom().to(authoringOperations),
|
|
993
985
|
]),
|
|
994
986
|
KnowledgeRawPayload: modelWithoutSubscriptions({
|
|
995
987
|
id: a.id().required(),
|
|
@@ -1006,7 +998,6 @@ export const schema = a.schema({
|
|
|
1006
998
|
])
|
|
1007
999
|
.authorization((allow) => [
|
|
1008
1000
|
allow.groups(categoryWriteGroups),
|
|
1009
|
-
allow.custom().to(authoringOperations),
|
|
1010
1001
|
]),
|
|
1011
1002
|
KnowledgeArtifact: modelWithoutSubscriptions({
|
|
1012
1003
|
id: a.id().required(),
|
|
@@ -1025,7 +1016,6 @@ export const schema = a.schema({
|
|
|
1025
1016
|
])
|
|
1026
1017
|
.authorization((allow) => [
|
|
1027
1018
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1028
|
-
allow.custom().to(authoringOperations),
|
|
1029
1019
|
]),
|
|
1030
1020
|
CategorySet: modelWithoutSubscriptions({
|
|
1031
1021
|
id: a.id().required(),
|
|
@@ -1054,7 +1044,6 @@ export const schema = a.schema({
|
|
|
1054
1044
|
])
|
|
1055
1045
|
.authorization((allow) => [
|
|
1056
1046
|
allow.groups(categoryWriteGroups),
|
|
1057
|
-
allow.custom().to(authoringOperations),
|
|
1058
1047
|
]),
|
|
1059
1048
|
Category: modelWithoutSubscriptions({
|
|
1060
1049
|
id: a.id().required(),
|
|
@@ -1095,7 +1084,6 @@ export const schema = a.schema({
|
|
|
1095
1084
|
])
|
|
1096
1085
|
.authorization((allow) => [
|
|
1097
1086
|
allow.groups(categoryWriteGroups),
|
|
1098
|
-
allow.custom().to(authoringOperations),
|
|
1099
1087
|
]),
|
|
1100
1088
|
CategoryKeyword: modelWithoutSubscriptions({
|
|
1101
1089
|
id: a.id().required(),
|
|
@@ -1123,7 +1111,6 @@ export const schema = a.schema({
|
|
|
1123
1111
|
])
|
|
1124
1112
|
.authorization((allow) => [
|
|
1125
1113
|
allow.groups(categoryWriteGroups),
|
|
1126
|
-
allow.custom().to(authoringOperations),
|
|
1127
1114
|
]),
|
|
1128
1115
|
LexicalSteeringRule: modelWithoutSubscriptions({
|
|
1129
1116
|
id: a.id().required(),
|
|
@@ -1151,7 +1138,6 @@ export const schema = a.schema({
|
|
|
1151
1138
|
])
|
|
1152
1139
|
.authorization((allow) => [
|
|
1153
1140
|
allow.groups(categoryWriteGroups),
|
|
1154
|
-
allow.custom().to(authoringOperations),
|
|
1155
1141
|
]),
|
|
1156
1142
|
SteeringProposal: modelWithoutSubscriptions({
|
|
1157
1143
|
id: a.id().required(),
|
|
@@ -1188,7 +1174,6 @@ export const schema = a.schema({
|
|
|
1188
1174
|
])
|
|
1189
1175
|
.authorization((allow) => [
|
|
1190
1176
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1191
|
-
allow.custom().to(authoringOperations),
|
|
1192
1177
|
]),
|
|
1193
1178
|
SteeringDecision: modelWithoutSubscriptions({
|
|
1194
1179
|
id: a.id().required(),
|
|
@@ -1207,7 +1192,6 @@ export const schema = a.schema({
|
|
|
1207
1192
|
])
|
|
1208
1193
|
.authorization((allow) => [
|
|
1209
1194
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1210
|
-
allow.custom().to(authoringOperations),
|
|
1211
1195
|
]),
|
|
1212
1196
|
Reference: realtimeModel({
|
|
1213
1197
|
id: a.id().required(),
|
|
@@ -1258,7 +1242,6 @@ export const schema = a.schema({
|
|
|
1258
1242
|
])
|
|
1259
1243
|
.authorization((allow) => [
|
|
1260
1244
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1261
|
-
allow.custom().to(authoringOperations),
|
|
1262
1245
|
]),
|
|
1263
1246
|
ReferenceAttachment: modelWithoutSubscriptions({
|
|
1264
1247
|
id: a.id().required(),
|
|
@@ -1287,7 +1270,6 @@ export const schema = a.schema({
|
|
|
1287
1270
|
])
|
|
1288
1271
|
.authorization((allow) => [
|
|
1289
1272
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1290
|
-
allow.custom().to(authoringOperations),
|
|
1291
1273
|
]),
|
|
1292
1274
|
SemanticNode: modelWithoutSubscriptions({
|
|
1293
1275
|
id: a.id().required(),
|
|
@@ -1308,6 +1290,11 @@ export const schema = a.schema({
|
|
|
1308
1290
|
displayName: a.string(),
|
|
1309
1291
|
description: a.string(),
|
|
1310
1292
|
aliases: a.string().array(),
|
|
1293
|
+
authorityScore: a.float(),
|
|
1294
|
+
authorityRank: a.integer(),
|
|
1295
|
+
acceptedReferenceMentionCount: a.integer(),
|
|
1296
|
+
distinctSourceKindCount: a.integer(),
|
|
1297
|
+
relationCount: a.integer(),
|
|
1311
1298
|
status: a.string().required(),
|
|
1312
1299
|
importRunId: a.id(),
|
|
1313
1300
|
createdAt: a.datetime(),
|
|
@@ -1324,7 +1311,6 @@ export const schema = a.schema({
|
|
|
1324
1311
|
])
|
|
1325
1312
|
.authorization((allow) => [
|
|
1326
1313
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1327
|
-
allow.custom().to(authoringOperations),
|
|
1328
1314
|
]),
|
|
1329
1315
|
Message: realtimeModel({
|
|
1330
1316
|
id: a.id().required(),
|
|
@@ -1372,7 +1358,6 @@ export const schema = a.schema({
|
|
|
1372
1358
|
])
|
|
1373
1359
|
.authorization((allow) => [
|
|
1374
1360
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1375
|
-
allow.custom().to(authoringOperations),
|
|
1376
1361
|
]),
|
|
1377
1362
|
MessageThread: realtimeModel({
|
|
1378
1363
|
id: a.id().required(),
|
|
@@ -1409,7 +1394,6 @@ export const schema = a.schema({
|
|
|
1409
1394
|
.authorization((allow) => [
|
|
1410
1395
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1411
1396
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1412
|
-
allow.custom().to(authoringOperations),
|
|
1413
1397
|
]),
|
|
1414
1398
|
ModelAttachment: modelWithoutSubscriptions({
|
|
1415
1399
|
id: a.id().required(),
|
|
@@ -1440,7 +1424,6 @@ export const schema = a.schema({
|
|
|
1440
1424
|
])
|
|
1441
1425
|
.authorization((allow) => [
|
|
1442
1426
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1443
|
-
allow.custom().to(authoringOperations),
|
|
1444
1427
|
]),
|
|
1445
1428
|
SemanticRelationType: modelWithoutSubscriptions({
|
|
1446
1429
|
id: a.id().required(),
|
|
@@ -1467,7 +1450,6 @@ export const schema = a.schema({
|
|
|
1467
1450
|
])
|
|
1468
1451
|
.authorization((allow) => [
|
|
1469
1452
|
allow.groups(categoryWriteGroups),
|
|
1470
|
-
allow.custom().to(authoringOperations),
|
|
1471
1453
|
]),
|
|
1472
1454
|
SemanticRelation: modelWithoutSubscriptions({
|
|
1473
1455
|
id: a.id().required(),
|
|
@@ -1517,7 +1499,6 @@ export const schema = a.schema({
|
|
|
1517
1499
|
])
|
|
1518
1500
|
.authorization((allow) => [
|
|
1519
1501
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1520
|
-
allow.custom().to(authoringOperations),
|
|
1521
1502
|
]),
|
|
1522
1503
|
Item: modelWithoutSubscriptions({
|
|
1523
1504
|
id: a.id().required(),
|
|
@@ -1566,7 +1547,6 @@ export const schema = a.schema({
|
|
|
1566
1547
|
])
|
|
1567
1548
|
.authorization((allow) => [
|
|
1568
1549
|
allow.groups(contentWriteGroups),
|
|
1569
|
-
allow.custom().to(authoringOperations),
|
|
1570
1550
|
]),
|
|
1571
1551
|
Tag: modelWithoutSubscriptions({
|
|
1572
1552
|
id: a.id().required(),
|
|
@@ -1582,7 +1562,6 @@ export const schema = a.schema({
|
|
|
1582
1562
|
])
|
|
1583
1563
|
.authorization((allow) => [
|
|
1584
1564
|
allow.groups(contentWriteGroups),
|
|
1585
|
-
allow.custom().to(authoringOperations),
|
|
1586
1565
|
]),
|
|
1587
1566
|
ItemTag: modelWithoutSubscriptions({
|
|
1588
1567
|
id: a.id().required(),
|
|
@@ -1601,7 +1580,6 @@ export const schema = a.schema({
|
|
|
1601
1580
|
])
|
|
1602
1581
|
.authorization((allow) => [
|
|
1603
1582
|
allow.groups(contentWriteGroups),
|
|
1604
|
-
allow.custom().to(authoringOperations),
|
|
1605
1583
|
]),
|
|
1606
1584
|
MediaAsset: modelWithoutSubscriptions({
|
|
1607
1585
|
id: a.id().required(),
|
|
@@ -1633,7 +1611,6 @@ export const schema = a.schema({
|
|
|
1633
1611
|
])
|
|
1634
1612
|
.authorization((allow) => [
|
|
1635
1613
|
allow.groups(contentWriteGroups),
|
|
1636
|
-
allow.custom().to(authoringOperations),
|
|
1637
1614
|
]),
|
|
1638
1615
|
Edition: modelWithoutSubscriptions({
|
|
1639
1616
|
id: a.id().required(),
|
|
@@ -1664,7 +1641,6 @@ export const schema = a.schema({
|
|
|
1664
1641
|
])
|
|
1665
1642
|
.authorization((allow) => [
|
|
1666
1643
|
allow.groups(contentWriteGroups),
|
|
1667
|
-
allow.custom().to(authoringOperations),
|
|
1668
1644
|
]),
|
|
1669
1645
|
EditionItem: modelWithoutSubscriptions({
|
|
1670
1646
|
id: a.id().required(),
|
|
@@ -1686,7 +1662,6 @@ export const schema = a.schema({
|
|
|
1686
1662
|
])
|
|
1687
1663
|
.authorization((allow) => [
|
|
1688
1664
|
allow.groups(contentWriteGroups),
|
|
1689
|
-
allow.custom().to(authoringOperations),
|
|
1690
1665
|
]),
|
|
1691
1666
|
PublishedItem: modelWithoutSubscriptions({
|
|
1692
1667
|
id: a.id().required(),
|
|
@@ -1726,7 +1701,6 @@ export const schema = a.schema({
|
|
|
1726
1701
|
.authorization((allow) => [
|
|
1727
1702
|
allow.guest().to(["read"]),
|
|
1728
1703
|
allow.groups(contentWriteGroups),
|
|
1729
|
-
allow.custom().to(authoringOperations),
|
|
1730
1704
|
]),
|
|
1731
1705
|
PublishedMediaAsset: modelWithoutSubscriptions({
|
|
1732
1706
|
id: a.id().required(),
|
|
@@ -1761,7 +1735,6 @@ export const schema = a.schema({
|
|
|
1761
1735
|
.authorization((allow) => [
|
|
1762
1736
|
allow.guest().to(["read"]),
|
|
1763
1737
|
allow.groups(contentWriteGroups),
|
|
1764
|
-
allow.custom().to(authoringOperations),
|
|
1765
1738
|
]),
|
|
1766
1739
|
PublishedEdition: modelWithoutSubscriptions({
|
|
1767
1740
|
id: a.id().required(),
|
|
@@ -1786,7 +1759,6 @@ export const schema = a.schema({
|
|
|
1786
1759
|
.authorization((allow) => [
|
|
1787
1760
|
allow.guest().to(["read"]),
|
|
1788
1761
|
allow.groups(contentWriteGroups),
|
|
1789
|
-
allow.custom().to(authoringOperations),
|
|
1790
1762
|
]),
|
|
1791
1763
|
PublishedEditionItem: modelWithoutSubscriptions({
|
|
1792
1764
|
id: a.id().required(),
|
|
@@ -1810,7 +1782,6 @@ export const schema = a.schema({
|
|
|
1810
1782
|
.authorization((allow) => [
|
|
1811
1783
|
allow.guest().to(["read"]),
|
|
1812
1784
|
allow.groups(contentWriteGroups),
|
|
1813
|
-
allow.custom().to(authoringOperations),
|
|
1814
1785
|
]),
|
|
1815
1786
|
PublishedCategorySet: modelWithoutSubscriptions({
|
|
1816
1787
|
id: a.id().required(),
|
|
@@ -1835,7 +1806,6 @@ export const schema = a.schema({
|
|
|
1835
1806
|
.authorization((allow) => [
|
|
1836
1807
|
allow.guest().to(["read"]),
|
|
1837
1808
|
allow.groups(contentWriteGroups),
|
|
1838
|
-
allow.custom().to(authoringOperations),
|
|
1839
1809
|
]),
|
|
1840
1810
|
PublishedCategory: modelWithoutSubscriptions({
|
|
1841
1811
|
id: a.id().required(),
|
|
@@ -1870,9 +1840,9 @@ export const schema = a.schema({
|
|
|
1870
1840
|
.authorization((allow) => [
|
|
1871
1841
|
allow.guest().to(["read"]),
|
|
1872
1842
|
allow.groups(contentWriteGroups),
|
|
1873
|
-
allow.custom().to(authoringOperations),
|
|
1874
1843
|
]),
|
|
1875
|
-
}
|
|
1844
|
+
};
|
|
1845
|
+
export const schema = a.schema(baseDefinitions).authorization((allow) => [
|
|
1876
1846
|
allow.resource(categoryAction),
|
|
1877
1847
|
allow.resource(contentActions),
|
|
1878
1848
|
allow.resource(manageUserRole),
|
|
@@ -1880,3 +1850,14 @@ export const schema = a.schema({
|
|
|
1880
1850
|
allow.resource(newsroomSummary),
|
|
1881
1851
|
allow.resource(procedureAction),
|
|
1882
1852
|
]);
|
|
1853
|
+
/** The deployed schema of a site that enables plugins: the base definitions plus what each plugin contributes (docs/plugins.md). */
|
|
1854
|
+
export function schemaWithPlugins(pluginDefinitions) {
|
|
1855
|
+
return a.schema({ ...baseDefinitions, ...pluginDefinitions }).authorization((allow) => [
|
|
1856
|
+
allow.resource(categoryAction),
|
|
1857
|
+
allow.resource(contentActions),
|
|
1858
|
+
allow.resource(manageUserRole),
|
|
1859
|
+
allow.resource(modelAttachmentUpload),
|
|
1860
|
+
allow.resource(newsroomSummary),
|
|
1861
|
+
allow.resource(procedureAction),
|
|
1862
|
+
]);
|
|
1863
|
+
}
|