@anthusai/papyrus 1.0.0-next.4 → 1.0.0-next.41
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 +28 -70
- package/amplify/data/resource.ts +29 -70
- package/amplify/data/schema.js +33 -58
- package/amplify/data/schema.ts +34 -58
- 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 +45 -3
- 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/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/site-backend-config.ts +36 -1
- package/amplify/site-backend-names.js +103 -0
- package/amplify/site-backend-names.ts +166 -0
- package/amplify/site-backend.js +93 -170
- package/amplify/site-backend.ts +126 -196
- package/amplify/storage/resource.js +3 -0
- package/amplify/storage/resource.ts +3 -0
- package/amplify/storage-backups/construct.js +31 -0
- package/amplify/storage-backups/construct.ts +47 -0
- package/app/%5F_preview/[[...path]]/route.ts +8 -0
- package/app/[year]/[month]/[day]/[articleSlug]/page.tsx +2 -0
- package/app/[year]/[month]/[day]/edition-route-page.tsx +2 -0
- package/app/api/media/[...path]/route.ts +5 -16
- package/app/api/revalidate/route.ts +8 -7
- package/app/articles/[slug]/page.tsx +6 -4
- package/app/blog-rhythm.css +278 -0
- package/app/globals.css +21 -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-app.mjs +12 -2
- package/bin/papyrus-infra.mjs +29 -3
- package/components/amplify-client-provider.tsx +4 -22
- package/components/archive-shell.tsx +2 -22
- package/components/article-video.tsx +247 -3
- package/components/blog-page-background.tsx +23 -6
- package/components/markus-ir-preview.tsx +300 -0
- package/components/news-desk-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/topic-steering-workspace.tsx +54 -64
- 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 +228 -50
- package/infra/amplify-app-shell.ts +256 -53
- package/infra/build-specs.js +15 -5
- package/infra/build-specs.ts +18 -7
- package/infra/github-oidc-provider.js +24 -0
- package/infra/github-oidc-provider.ts +30 -0
- package/infra/index.js +1 -0
- package/infra/site-config.js +236 -11
- package/infra/site-config.ts +276 -15
- 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/presentation-footer.ts +3 -2
- package/lib/pretext-layout.ts +12 -3
- package/lib/reader-base-path.ts +24 -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/site-brand.ts +51 -0
- package/lib/staging-gated-path.ts +23 -0
- package/lib/staging-preview-object.ts +114 -0
- package/lib/video-mode.ts +42 -0
- package/lib/video-script.ts +77 -0
- package/middleware.ts +23 -18
- package/package.json +45 -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 +45 -2
- package/scripts/videoml/build-browser-bundle.mjs +22 -0
- package/scripts/videoml/build-preview-bundle.mjs +50 -0
- package/scripts/videoml/bundle-common.mjs +129 -0
- package/scripts/videoml/preview/preview-entry.tsx +381 -0
- package/scripts/videoml/preview/preview-stage-fit.ts +28 -0
- package/scripts/videoml/preview/preview-timing.ts +42 -0
- package/scripts/videoml/preview.html +77 -0
- package/scripts/videoml/standard-entry.tsx +46 -0
- package/src/sync.mjs +30 -6
- package/src/with-papyrus.mjs +19 -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.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";
|
|
@@ -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
|
|
@@ -537,13 +530,20 @@ const schema = a.schema({
|
|
|
537
530
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
538
531
|
.handler(a.handler.function(contentActions)),
|
|
539
532
|
|
|
533
|
+
requestStagingBuild: a
|
|
534
|
+
.mutation()
|
|
535
|
+
.arguments({ input: a.json().required() })
|
|
536
|
+
.returns(a.json())
|
|
537
|
+
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
538
|
+
.handler(a.handler.function(contentActions)),
|
|
539
|
+
|
|
540
540
|
knowledgeQuery: a
|
|
541
541
|
.query()
|
|
542
542
|
.arguments({
|
|
543
543
|
input: a.json().required(),
|
|
544
544
|
})
|
|
545
545
|
.returns(a.json())
|
|
546
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
546
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
547
547
|
.handler(a.handler.function(knowledgeQuery)),
|
|
548
548
|
|
|
549
549
|
updateNewsroomSummary: a
|
|
@@ -554,7 +554,7 @@ const schema = a.schema({
|
|
|
554
554
|
reason: a.string(),
|
|
555
555
|
})
|
|
556
556
|
.returns(a.ref("NewsroomSummary"))
|
|
557
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
557
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
558
558
|
.handler(a.handler.function(newsroomSummary)),
|
|
559
559
|
|
|
560
560
|
ModelAttachmentUploadSlot: a.customType({
|
|
@@ -614,7 +614,7 @@ const schema = a.schema({
|
|
|
614
614
|
status: a.string(),
|
|
615
615
|
})
|
|
616
616
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
617
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
617
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
618
618
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
619
619
|
|
|
620
620
|
completeModelAttachmentUpload: a
|
|
@@ -636,7 +636,7 @@ const schema = a.schema({
|
|
|
636
636
|
status: a.string(),
|
|
637
637
|
})
|
|
638
638
|
.returns(a.ref("ModelAttachment"))
|
|
639
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
639
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
640
640
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
641
641
|
|
|
642
642
|
abortModelAttachmentUpload: a
|
|
@@ -658,7 +658,7 @@ const schema = a.schema({
|
|
|
658
658
|
status: a.string(),
|
|
659
659
|
})
|
|
660
660
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
661
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
661
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
662
662
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
663
663
|
|
|
664
664
|
createModelAttachmentDownload: a
|
|
@@ -667,7 +667,7 @@ const schema = a.schema({
|
|
|
667
667
|
attachmentId: a.id().required(),
|
|
668
668
|
})
|
|
669
669
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
670
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
670
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
671
671
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
672
672
|
|
|
673
673
|
AssignmentActionResult: a.customType({
|
|
@@ -761,7 +761,7 @@ const schema = a.schema({
|
|
|
761
761
|
limit: a.integer(),
|
|
762
762
|
})
|
|
763
763
|
.returns(a.ref("AssignmentContext").array().required())
|
|
764
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
764
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
765
765
|
.handler(a.handler.function(assignmentAction)),
|
|
766
766
|
|
|
767
767
|
listAssignmentQueue: a
|
|
@@ -772,7 +772,7 @@ const schema = a.schema({
|
|
|
772
772
|
limit: a.integer(),
|
|
773
773
|
})
|
|
774
774
|
.returns(a.ref("AssignmentContext").array().required())
|
|
775
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
775
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
776
776
|
.handler(a.handler.function(assignmentAction)),
|
|
777
777
|
|
|
778
778
|
getAssignmentContext: a
|
|
@@ -781,7 +781,7 @@ const schema = a.schema({
|
|
|
781
781
|
assignmentId: a.id().required(),
|
|
782
782
|
})
|
|
783
783
|
.returns(a.ref("AssignmentContext"))
|
|
784
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
784
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
785
785
|
.handler(a.handler.function(assignmentAction)),
|
|
786
786
|
|
|
787
787
|
claimAssignment: a
|
|
@@ -798,7 +798,7 @@ const schema = a.schema({
|
|
|
798
798
|
note: a.string(),
|
|
799
799
|
})
|
|
800
800
|
.returns(a.ref("AssignmentActionResult"))
|
|
801
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
801
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
802
802
|
.handler(a.handler.function(assignmentAction)),
|
|
803
803
|
|
|
804
804
|
releaseAssignment: a
|
|
@@ -810,7 +810,7 @@ const schema = a.schema({
|
|
|
810
810
|
note: a.string(),
|
|
811
811
|
})
|
|
812
812
|
.returns(a.ref("AssignmentActionResult"))
|
|
813
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
813
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
814
814
|
.handler(a.handler.function(assignmentAction)),
|
|
815
815
|
|
|
816
816
|
completeAssignment: a
|
|
@@ -822,7 +822,7 @@ const schema = a.schema({
|
|
|
822
822
|
note: a.string(),
|
|
823
823
|
})
|
|
824
824
|
.returns(a.ref("AssignmentActionResult"))
|
|
825
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
825
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
826
826
|
.handler(a.handler.function(assignmentAction)),
|
|
827
827
|
|
|
828
828
|
cancelAssignment: a
|
|
@@ -834,7 +834,7 @@ const schema = a.schema({
|
|
|
834
834
|
note: a.string(),
|
|
835
835
|
})
|
|
836
836
|
.returns(a.ref("AssignmentActionResult"))
|
|
837
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
837
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
838
838
|
.handler(a.handler.function(assignmentAction)),
|
|
839
839
|
|
|
840
840
|
reopenAssignment: a
|
|
@@ -846,7 +846,7 @@ const schema = a.schema({
|
|
|
846
846
|
note: a.string(),
|
|
847
847
|
})
|
|
848
848
|
.returns(a.ref("AssignmentActionResult"))
|
|
849
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
849
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
850
850
|
.handler(a.handler.function(assignmentAction)),
|
|
851
851
|
|
|
852
852
|
retryImmediateAssignment: a
|
|
@@ -858,7 +858,7 @@ const schema = a.schema({
|
|
|
858
858
|
note: a.string(),
|
|
859
859
|
})
|
|
860
860
|
.returns(a.ref("AssignmentActionResult"))
|
|
861
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
861
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
862
862
|
.handler(a.handler.function(assignmentAction)),
|
|
863
863
|
|
|
864
864
|
listNewsroomProcedureDefinitions: a
|
|
@@ -874,7 +874,7 @@ const schema = a.schema({
|
|
|
874
874
|
procedureKey: a.string(),
|
|
875
875
|
})
|
|
876
876
|
.returns(a.json())
|
|
877
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
877
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
878
878
|
.handler(a.handler.function(procedureAction)),
|
|
879
879
|
|
|
880
880
|
saveNewsroomProcedureDefinition: a
|
|
@@ -916,7 +916,7 @@ const schema = a.schema({
|
|
|
916
916
|
actorLabel: a.string(),
|
|
917
917
|
})
|
|
918
918
|
.returns(a.json())
|
|
919
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
919
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
920
920
|
.handler(a.handler.function(procedureAction)),
|
|
921
921
|
|
|
922
922
|
getNewsroomProcedureRun: a
|
|
@@ -925,7 +925,7 @@ const schema = a.schema({
|
|
|
925
925
|
id: a.id().required(),
|
|
926
926
|
})
|
|
927
927
|
.returns(a.json())
|
|
928
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
928
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
929
929
|
.handler(a.handler.function(procedureAction)),
|
|
930
930
|
|
|
931
931
|
listNewsroomProcedureRunsByProcedure: a
|
|
@@ -934,7 +934,7 @@ const schema = a.schema({
|
|
|
934
934
|
procedureId: a.id().required(),
|
|
935
935
|
})
|
|
936
936
|
.returns(a.json())
|
|
937
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
937
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
938
938
|
.handler(a.handler.function(procedureAction)),
|
|
939
939
|
|
|
940
940
|
Assignment: a
|
|
@@ -985,7 +985,6 @@ const schema = a.schema({
|
|
|
985
985
|
.authorization((allow) => [
|
|
986
986
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
987
987
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
988
|
-
allow.custom().to(authoringOperations),
|
|
989
988
|
]),
|
|
990
989
|
|
|
991
990
|
AssignmentEvent: a
|
|
@@ -1009,7 +1008,6 @@ const schema = a.schema({
|
|
|
1009
1008
|
])
|
|
1010
1009
|
.authorization((allow) => [
|
|
1011
1010
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1012
|
-
allow.custom().to(authoringOperations),
|
|
1013
1011
|
]),
|
|
1014
1012
|
|
|
1015
1013
|
ProcedureDefinition: a
|
|
@@ -1035,7 +1033,6 @@ const schema = a.schema({
|
|
|
1035
1033
|
])
|
|
1036
1034
|
.authorization((allow) => [
|
|
1037
1035
|
allow.group(adminGroup),
|
|
1038
|
-
allow.custom().to(authoringOperations),
|
|
1039
1036
|
]),
|
|
1040
1037
|
|
|
1041
1038
|
ProcedureVersion: a
|
|
@@ -1063,7 +1060,6 @@ const schema = a.schema({
|
|
|
1063
1060
|
])
|
|
1064
1061
|
.authorization((allow) => [
|
|
1065
1062
|
allow.group(adminGroup),
|
|
1066
|
-
allow.custom().to(authoringOperations),
|
|
1067
1063
|
]),
|
|
1068
1064
|
|
|
1069
1065
|
ProcedureRun: a
|
|
@@ -1097,7 +1093,6 @@ const schema = a.schema({
|
|
|
1097
1093
|
.authorization((allow) => [
|
|
1098
1094
|
allow.group("editor").to(["read"]),
|
|
1099
1095
|
allow.group(adminGroup).to(authoringOperations),
|
|
1100
|
-
allow.custom().to(authoringOperations),
|
|
1101
1096
|
]),
|
|
1102
1097
|
|
|
1103
1098
|
NewsroomSection: a
|
|
@@ -1126,7 +1121,6 @@ const schema = a.schema({
|
|
|
1126
1121
|
])
|
|
1127
1122
|
.authorization((allow) => [
|
|
1128
1123
|
allow.groups(categoryWriteGroups),
|
|
1129
|
-
allow.custom().to(authoringOperations),
|
|
1130
1124
|
]),
|
|
1131
1125
|
|
|
1132
1126
|
KnowledgeCorpus: a
|
|
@@ -1145,7 +1139,6 @@ const schema = a.schema({
|
|
|
1145
1139
|
])
|
|
1146
1140
|
.authorization((allow) => [
|
|
1147
1141
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1148
|
-
allow.custom().to(authoringOperations),
|
|
1149
1142
|
]),
|
|
1150
1143
|
|
|
1151
1144
|
KnowledgeImportRun: a
|
|
@@ -1174,7 +1167,6 @@ const schema = a.schema({
|
|
|
1174
1167
|
])
|
|
1175
1168
|
.authorization((allow) => [
|
|
1176
1169
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1177
|
-
allow.custom().to(authoringOperations),
|
|
1178
1170
|
]),
|
|
1179
1171
|
|
|
1180
1172
|
KnowledgeRawPayload: a
|
|
@@ -1193,7 +1185,6 @@ const schema = a.schema({
|
|
|
1193
1185
|
])
|
|
1194
1186
|
.authorization((allow) => [
|
|
1195
1187
|
allow.groups(categoryWriteGroups),
|
|
1196
|
-
allow.custom().to(authoringOperations),
|
|
1197
1188
|
]),
|
|
1198
1189
|
|
|
1199
1190
|
KnowledgeArtifact: a
|
|
@@ -1214,7 +1205,6 @@ const schema = a.schema({
|
|
|
1214
1205
|
])
|
|
1215
1206
|
.authorization((allow) => [
|
|
1216
1207
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1217
|
-
allow.custom().to(authoringOperations),
|
|
1218
1208
|
]),
|
|
1219
1209
|
|
|
1220
1210
|
CategorySet: a
|
|
@@ -1245,7 +1235,6 @@ const schema = a.schema({
|
|
|
1245
1235
|
])
|
|
1246
1236
|
.authorization((allow) => [
|
|
1247
1237
|
allow.groups(categoryWriteGroups),
|
|
1248
|
-
allow.custom().to(authoringOperations),
|
|
1249
1238
|
]),
|
|
1250
1239
|
|
|
1251
1240
|
Category: a
|
|
@@ -1288,7 +1277,6 @@ const schema = a.schema({
|
|
|
1288
1277
|
])
|
|
1289
1278
|
.authorization((allow) => [
|
|
1290
1279
|
allow.groups(categoryWriteGroups),
|
|
1291
|
-
allow.custom().to(authoringOperations),
|
|
1292
1280
|
]),
|
|
1293
1281
|
|
|
1294
1282
|
CategoryKeyword: a
|
|
@@ -1318,7 +1306,6 @@ const schema = a.schema({
|
|
|
1318
1306
|
])
|
|
1319
1307
|
.authorization((allow) => [
|
|
1320
1308
|
allow.groups(categoryWriteGroups),
|
|
1321
|
-
allow.custom().to(authoringOperations),
|
|
1322
1309
|
]),
|
|
1323
1310
|
|
|
1324
1311
|
LexicalSteeringRule: a
|
|
@@ -1348,7 +1335,6 @@ const schema = a.schema({
|
|
|
1348
1335
|
])
|
|
1349
1336
|
.authorization((allow) => [
|
|
1350
1337
|
allow.groups(categoryWriteGroups),
|
|
1351
|
-
allow.custom().to(authoringOperations),
|
|
1352
1338
|
]),
|
|
1353
1339
|
|
|
1354
1340
|
SteeringProposal: a
|
|
@@ -1387,7 +1373,6 @@ const schema = a.schema({
|
|
|
1387
1373
|
])
|
|
1388
1374
|
.authorization((allow) => [
|
|
1389
1375
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1390
|
-
allow.custom().to(authoringOperations),
|
|
1391
1376
|
]),
|
|
1392
1377
|
|
|
1393
1378
|
SteeringDecision: a
|
|
@@ -1408,7 +1393,6 @@ const schema = a.schema({
|
|
|
1408
1393
|
])
|
|
1409
1394
|
.authorization((allow) => [
|
|
1410
1395
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1411
|
-
allow.custom().to(authoringOperations),
|
|
1412
1396
|
]),
|
|
1413
1397
|
|
|
1414
1398
|
Reference: a
|
|
@@ -1461,7 +1445,6 @@ const schema = a.schema({
|
|
|
1461
1445
|
])
|
|
1462
1446
|
.authorization((allow) => [
|
|
1463
1447
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1464
|
-
allow.custom().to(authoringOperations),
|
|
1465
1448
|
]),
|
|
1466
1449
|
|
|
1467
1450
|
ReferenceAttachment: a
|
|
@@ -1492,7 +1475,6 @@ const schema = a.schema({
|
|
|
1492
1475
|
])
|
|
1493
1476
|
.authorization((allow) => [
|
|
1494
1477
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1495
|
-
allow.custom().to(authoringOperations),
|
|
1496
1478
|
]),
|
|
1497
1479
|
|
|
1498
1480
|
SemanticNode: a
|
|
@@ -1536,7 +1518,6 @@ const schema = a.schema({
|
|
|
1536
1518
|
])
|
|
1537
1519
|
.authorization((allow) => [
|
|
1538
1520
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1539
|
-
allow.custom().to(authoringOperations),
|
|
1540
1521
|
]),
|
|
1541
1522
|
|
|
1542
1523
|
Message: a
|
|
@@ -1586,7 +1567,6 @@ const schema = a.schema({
|
|
|
1586
1567
|
])
|
|
1587
1568
|
.authorization((allow) => [
|
|
1588
1569
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1589
|
-
allow.custom().to(authoringOperations),
|
|
1590
1570
|
allow.authenticated("identityPool").to(["read", "create", "update"]),
|
|
1591
1571
|
]),
|
|
1592
1572
|
|
|
@@ -1626,7 +1606,6 @@ const schema = a.schema({
|
|
|
1626
1606
|
.authorization((allow) => [
|
|
1627
1607
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1628
1608
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1629
|
-
allow.custom().to(authoringOperations),
|
|
1630
1609
|
]),
|
|
1631
1610
|
|
|
1632
1611
|
ModelAttachment: a
|
|
@@ -1659,7 +1638,6 @@ const schema = a.schema({
|
|
|
1659
1638
|
])
|
|
1660
1639
|
.authorization((allow) => [
|
|
1661
1640
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1662
|
-
allow.custom().to(authoringOperations),
|
|
1663
1641
|
]),
|
|
1664
1642
|
|
|
1665
1643
|
SemanticRelationType: a
|
|
@@ -1688,7 +1666,6 @@ const schema = a.schema({
|
|
|
1688
1666
|
])
|
|
1689
1667
|
.authorization((allow) => [
|
|
1690
1668
|
allow.groups(categoryWriteGroups),
|
|
1691
|
-
allow.custom().to(authoringOperations),
|
|
1692
1669
|
]),
|
|
1693
1670
|
|
|
1694
1671
|
SemanticRelation: a
|
|
@@ -1740,7 +1717,6 @@ const schema = a.schema({
|
|
|
1740
1717
|
])
|
|
1741
1718
|
.authorization((allow) => [
|
|
1742
1719
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1743
|
-
allow.custom().to(authoringOperations),
|
|
1744
1720
|
]),
|
|
1745
1721
|
|
|
1746
1722
|
Item: a
|
|
@@ -1791,7 +1767,6 @@ const schema = a.schema({
|
|
|
1791
1767
|
])
|
|
1792
1768
|
.authorization((allow) => [
|
|
1793
1769
|
allow.groups(contentWriteGroups),
|
|
1794
|
-
allow.custom().to(authoringOperations),
|
|
1795
1770
|
]),
|
|
1796
1771
|
|
|
1797
1772
|
Tag: a
|
|
@@ -1809,7 +1784,6 @@ const schema = a.schema({
|
|
|
1809
1784
|
])
|
|
1810
1785
|
.authorization((allow) => [
|
|
1811
1786
|
allow.groups(contentWriteGroups),
|
|
1812
|
-
allow.custom().to(authoringOperations),
|
|
1813
1787
|
]),
|
|
1814
1788
|
|
|
1815
1789
|
ItemTag: a
|
|
@@ -1830,7 +1804,6 @@ const schema = a.schema({
|
|
|
1830
1804
|
])
|
|
1831
1805
|
.authorization((allow) => [
|
|
1832
1806
|
allow.groups(contentWriteGroups),
|
|
1833
|
-
allow.custom().to(authoringOperations),
|
|
1834
1807
|
]),
|
|
1835
1808
|
|
|
1836
1809
|
MediaAsset: a
|
|
@@ -1864,7 +1837,6 @@ const schema = a.schema({
|
|
|
1864
1837
|
])
|
|
1865
1838
|
.authorization((allow) => [
|
|
1866
1839
|
allow.groups(contentWriteGroups),
|
|
1867
|
-
allow.custom().to(authoringOperations),
|
|
1868
1840
|
]),
|
|
1869
1841
|
|
|
1870
1842
|
Edition: a
|
|
@@ -1898,7 +1870,6 @@ const schema = a.schema({
|
|
|
1898
1870
|
])
|
|
1899
1871
|
.authorization((allow) => [
|
|
1900
1872
|
allow.groups(contentWriteGroups),
|
|
1901
|
-
allow.custom().to(authoringOperations),
|
|
1902
1873
|
]),
|
|
1903
1874
|
|
|
1904
1875
|
EditionSlot: a
|
|
@@ -1925,7 +1896,6 @@ const schema = a.schema({
|
|
|
1925
1896
|
])
|
|
1926
1897
|
.authorization((allow) => [
|
|
1927
1898
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1928
|
-
allow.custom().to(authoringOperations),
|
|
1929
1899
|
]),
|
|
1930
1900
|
|
|
1931
1901
|
EditionItem: a
|
|
@@ -1949,7 +1919,6 @@ const schema = a.schema({
|
|
|
1949
1919
|
])
|
|
1950
1920
|
.authorization((allow) => [
|
|
1951
1921
|
allow.groups(contentWriteGroups),
|
|
1952
|
-
allow.custom().to(authoringOperations),
|
|
1953
1922
|
]),
|
|
1954
1923
|
|
|
1955
1924
|
PublishedItem: a
|
|
@@ -1991,7 +1960,6 @@ const schema = a.schema({
|
|
|
1991
1960
|
.authorization((allow) => [
|
|
1992
1961
|
allow.guest().to(["read"]),
|
|
1993
1962
|
allow.groups(contentWriteGroups),
|
|
1994
|
-
allow.custom().to(authoringOperations),
|
|
1995
1963
|
]),
|
|
1996
1964
|
|
|
1997
1965
|
PublishedMediaAsset: a
|
|
@@ -2028,7 +1996,6 @@ const schema = a.schema({
|
|
|
2028
1996
|
.authorization((allow) => [
|
|
2029
1997
|
allow.guest().to(["read"]),
|
|
2030
1998
|
allow.groups(contentWriteGroups),
|
|
2031
|
-
allow.custom().to(authoringOperations),
|
|
2032
1999
|
]),
|
|
2033
2000
|
|
|
2034
2001
|
PublishedEdition: a
|
|
@@ -2055,7 +2022,6 @@ const schema = a.schema({
|
|
|
2055
2022
|
.authorization((allow) => [
|
|
2056
2023
|
allow.guest().to(["read"]),
|
|
2057
2024
|
allow.groups(contentWriteGroups),
|
|
2058
|
-
allow.custom().to(authoringOperations),
|
|
2059
2025
|
]),
|
|
2060
2026
|
|
|
2061
2027
|
PublishedEditionItem: a
|
|
@@ -2081,7 +2047,6 @@ const schema = a.schema({
|
|
|
2081
2047
|
.authorization((allow) => [
|
|
2082
2048
|
allow.guest().to(["read"]),
|
|
2083
2049
|
allow.groups(contentWriteGroups),
|
|
2084
|
-
allow.custom().to(authoringOperations),
|
|
2085
2050
|
]),
|
|
2086
2051
|
|
|
2087
2052
|
PublishedCategorySet: a
|
|
@@ -2108,7 +2073,6 @@ const schema = a.schema({
|
|
|
2108
2073
|
.authorization((allow) => [
|
|
2109
2074
|
allow.guest().to(["read"]),
|
|
2110
2075
|
allow.groups(contentWriteGroups),
|
|
2111
|
-
allow.custom().to(authoringOperations),
|
|
2112
2076
|
]),
|
|
2113
2077
|
|
|
2114
2078
|
PublishedCategory: a
|
|
@@ -2145,7 +2109,6 @@ const schema = a.schema({
|
|
|
2145
2109
|
.authorization((allow) => [
|
|
2146
2110
|
allow.guest().to(["read"]),
|
|
2147
2111
|
allow.groups(contentWriteGroups),
|
|
2148
|
-
allow.custom().to(authoringOperations),
|
|
2149
2112
|
]),
|
|
2150
2113
|
}).authorization((allow) => [
|
|
2151
2114
|
allow.resource(categoryAction),
|
|
@@ -2170,9 +2133,5 @@ export const data = defineData({
|
|
|
2170
2133
|
apiKeyAuthorizationMode: {
|
|
2171
2134
|
expiresInDays: 365,
|
|
2172
2135
|
},
|
|
2173
|
-
lambdaAuthorizationMode: {
|
|
2174
|
-
function: graphqlJwtAuthorizer,
|
|
2175
|
-
timeToLiveInSeconds: 300,
|
|
2176
|
-
},
|
|
2177
2136
|
},
|
|
2178
2137
|
});
|