@anthusai/papyrus 1.0.0-next.10 → 1.0.0-next.12
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/data/resource.js +20 -70
- package/amplify/data/resource.ts +20 -70
- package/amplify/data/schema.js +20 -58
- package/amplify/data/schema.ts +20 -58
- package/amplify/functions/console-chat-responder/py/execute_tactus_runner.py +0 -10
- package/amplify/functions/console-chat-responder/resource.js +0 -7
- package/amplify/functions/console-chat-responder/resource.ts +0 -8
- package/amplify/functions/console-chat-responder/src/main.rs +0 -9
- package/amplify/site-backend.js +5 -25
- package/amplify/site-backend.ts +6 -32
- package/infra/amplify-app-shell.js +60 -18
- package/infra/amplify-app-shell.ts +65 -22
- package/infra/build-specs.js +1 -1
- package/infra/build-specs.ts +0 -1
- package/infra/site-config.js +14 -1
- package/infra/site-config.ts +21 -1
- package/lib/category-repository.ts +1 -93
- package/package.json +1 -1
- package/routes.manifest.json +1 -1
- 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";
|
|
@@ -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({
|
|
@@ -294,7 +291,6 @@ const schema = a.schema({
|
|
|
294
291
|
.returns(a.ref("ReferenceCurationActionResult"))
|
|
295
292
|
.authorization((allow) => [
|
|
296
293
|
allow.groups(categoryWriteGroups),
|
|
297
|
-
allow.custom(),
|
|
298
294
|
])
|
|
299
295
|
.handler(a.handler.function(categoryAction)),
|
|
300
296
|
setReferenceQualityRating: a
|
|
@@ -309,7 +305,6 @@ const schema = a.schema({
|
|
|
309
305
|
.returns(a.ref("ReferenceQualityActionResult"))
|
|
310
306
|
.authorization((allow) => [
|
|
311
307
|
allow.groups(categoryWriteGroups),
|
|
312
|
-
allow.custom(),
|
|
313
308
|
])
|
|
314
309
|
.handler(a.handler.function(categoryAction)),
|
|
315
310
|
createReferenceInsight: a
|
|
@@ -324,7 +319,6 @@ const schema = a.schema({
|
|
|
324
319
|
.returns(a.ref("ReferenceInsightActionResult"))
|
|
325
320
|
.authorization((allow) => [
|
|
326
321
|
allow.groups(categoryWriteGroups),
|
|
327
|
-
allow.custom(),
|
|
328
322
|
])
|
|
329
323
|
.handler(a.handler.function(categoryAction)),
|
|
330
324
|
moveReferenceCorpus: a
|
|
@@ -339,7 +333,6 @@ const schema = a.schema({
|
|
|
339
333
|
.returns(a.ref("ReferenceCorpusMoveActionResult"))
|
|
340
334
|
.authorization((allow) => [
|
|
341
335
|
allow.groups(categoryWriteGroups),
|
|
342
|
-
allow.custom(),
|
|
343
336
|
])
|
|
344
337
|
.handler(a.handler.function(categoryAction)),
|
|
345
338
|
startReferenceCuration: a
|
|
@@ -353,7 +346,6 @@ const schema = a.schema({
|
|
|
353
346
|
.returns(a.ref("ReferenceCurationStartResult"))
|
|
354
347
|
.authorization((allow) => [
|
|
355
348
|
allow.groups(categoryWriteGroups),
|
|
356
|
-
allow.custom(),
|
|
357
349
|
])
|
|
358
350
|
.handler(a.handler.function(categoryAction)),
|
|
359
351
|
getReferenceCurationStatus: a
|
|
@@ -364,7 +356,6 @@ const schema = a.schema({
|
|
|
364
356
|
.returns(a.ref("ReferenceCurationStatusResult"))
|
|
365
357
|
.authorization((allow) => [
|
|
366
358
|
allow.groups(categoryWriteGroups),
|
|
367
|
-
allow.custom(),
|
|
368
359
|
])
|
|
369
360
|
.handler(a.handler.function(categoryAction)),
|
|
370
361
|
createCategorySetDraft: a
|
|
@@ -467,7 +458,7 @@ const schema = a.schema({
|
|
|
467
458
|
getNewsroomSummary: a
|
|
468
459
|
.query()
|
|
469
460
|
.returns(a.ref("NewsroomSummary"))
|
|
470
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
461
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
471
462
|
.handler(a.handler.function(newsroomSummary)),
|
|
472
463
|
deriveMarkus: a
|
|
473
464
|
.query()
|
|
@@ -505,7 +496,7 @@ const schema = a.schema({
|
|
|
505
496
|
input: a.json().required(),
|
|
506
497
|
})
|
|
507
498
|
.returns(a.json())
|
|
508
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
499
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
509
500
|
.handler(a.handler.function(knowledgeQuery)),
|
|
510
501
|
updateNewsroomSummary: a
|
|
511
502
|
.mutation()
|
|
@@ -515,7 +506,7 @@ const schema = a.schema({
|
|
|
515
506
|
reason: a.string(),
|
|
516
507
|
})
|
|
517
508
|
.returns(a.ref("NewsroomSummary"))
|
|
518
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
509
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
519
510
|
.handler(a.handler.function(newsroomSummary)),
|
|
520
511
|
ModelAttachmentUploadSlot: a.customType({
|
|
521
512
|
ok: a.boolean().required(),
|
|
@@ -571,7 +562,7 @@ const schema = a.schema({
|
|
|
571
562
|
status: a.string(),
|
|
572
563
|
})
|
|
573
564
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
574
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
565
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
575
566
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
576
567
|
completeModelAttachmentUpload: a
|
|
577
568
|
.mutation()
|
|
@@ -592,7 +583,7 @@ const schema = a.schema({
|
|
|
592
583
|
status: a.string(),
|
|
593
584
|
})
|
|
594
585
|
.returns(a.ref("ModelAttachment"))
|
|
595
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
586
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
596
587
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
597
588
|
abortModelAttachmentUpload: a
|
|
598
589
|
.mutation()
|
|
@@ -613,7 +604,7 @@ const schema = a.schema({
|
|
|
613
604
|
status: a.string(),
|
|
614
605
|
})
|
|
615
606
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
616
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
607
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
617
608
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
618
609
|
createModelAttachmentDownload: a
|
|
619
610
|
.mutation()
|
|
@@ -621,7 +612,7 @@ const schema = a.schema({
|
|
|
621
612
|
attachmentId: a.id().required(),
|
|
622
613
|
})
|
|
623
614
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
624
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
615
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
625
616
|
.handler(a.handler.function(modelAttachmentUpload)),
|
|
626
617
|
AssignmentActionResult: a.customType({
|
|
627
618
|
ok: a.boolean().required(),
|
|
@@ -708,7 +699,7 @@ const schema = a.schema({
|
|
|
708
699
|
limit: a.integer(),
|
|
709
700
|
})
|
|
710
701
|
.returns(a.ref("AssignmentContext").array().required())
|
|
711
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
702
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
712
703
|
.handler(a.handler.function(assignmentAction)),
|
|
713
704
|
listAssignmentQueue: a
|
|
714
705
|
.query()
|
|
@@ -718,7 +709,7 @@ const schema = a.schema({
|
|
|
718
709
|
limit: a.integer(),
|
|
719
710
|
})
|
|
720
711
|
.returns(a.ref("AssignmentContext").array().required())
|
|
721
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
712
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
722
713
|
.handler(a.handler.function(assignmentAction)),
|
|
723
714
|
getAssignmentContext: a
|
|
724
715
|
.query()
|
|
@@ -726,7 +717,7 @@ const schema = a.schema({
|
|
|
726
717
|
assignmentId: a.id().required(),
|
|
727
718
|
})
|
|
728
719
|
.returns(a.ref("AssignmentContext"))
|
|
729
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
720
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
730
721
|
.handler(a.handler.function(assignmentAction)),
|
|
731
722
|
claimAssignment: a
|
|
732
723
|
.mutation()
|
|
@@ -742,7 +733,7 @@ const schema = a.schema({
|
|
|
742
733
|
note: a.string(),
|
|
743
734
|
})
|
|
744
735
|
.returns(a.ref("AssignmentActionResult"))
|
|
745
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
736
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
746
737
|
.handler(a.handler.function(assignmentAction)),
|
|
747
738
|
releaseAssignment: a
|
|
748
739
|
.mutation()
|
|
@@ -753,7 +744,7 @@ const schema = a.schema({
|
|
|
753
744
|
note: a.string(),
|
|
754
745
|
})
|
|
755
746
|
.returns(a.ref("AssignmentActionResult"))
|
|
756
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
747
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
757
748
|
.handler(a.handler.function(assignmentAction)),
|
|
758
749
|
completeAssignment: a
|
|
759
750
|
.mutation()
|
|
@@ -764,7 +755,7 @@ const schema = a.schema({
|
|
|
764
755
|
note: a.string(),
|
|
765
756
|
})
|
|
766
757
|
.returns(a.ref("AssignmentActionResult"))
|
|
767
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
758
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
768
759
|
.handler(a.handler.function(assignmentAction)),
|
|
769
760
|
cancelAssignment: a
|
|
770
761
|
.mutation()
|
|
@@ -775,7 +766,7 @@ const schema = a.schema({
|
|
|
775
766
|
note: a.string(),
|
|
776
767
|
})
|
|
777
768
|
.returns(a.ref("AssignmentActionResult"))
|
|
778
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
769
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
779
770
|
.handler(a.handler.function(assignmentAction)),
|
|
780
771
|
reopenAssignment: a
|
|
781
772
|
.mutation()
|
|
@@ -786,7 +777,7 @@ const schema = a.schema({
|
|
|
786
777
|
note: a.string(),
|
|
787
778
|
})
|
|
788
779
|
.returns(a.ref("AssignmentActionResult"))
|
|
789
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
780
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
790
781
|
.handler(a.handler.function(assignmentAction)),
|
|
791
782
|
retryImmediateAssignment: a
|
|
792
783
|
.mutation()
|
|
@@ -797,7 +788,7 @@ const schema = a.schema({
|
|
|
797
788
|
note: a.string(),
|
|
798
789
|
})
|
|
799
790
|
.returns(a.ref("AssignmentActionResult"))
|
|
800
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
791
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
801
792
|
.handler(a.handler.function(assignmentAction)),
|
|
802
793
|
listNewsroomProcedureDefinitions: a
|
|
803
794
|
.query()
|
|
@@ -811,7 +802,7 @@ const schema = a.schema({
|
|
|
811
802
|
procedureKey: a.string(),
|
|
812
803
|
})
|
|
813
804
|
.returns(a.json())
|
|
814
|
-
.authorization((allow) => [allow.group(adminGroup)
|
|
805
|
+
.authorization((allow) => [allow.group(adminGroup)])
|
|
815
806
|
.handler(a.handler.function(procedureAction)),
|
|
816
807
|
saveNewsroomProcedureDefinition: a
|
|
817
808
|
.mutation()
|
|
@@ -849,7 +840,7 @@ const schema = a.schema({
|
|
|
849
840
|
actorLabel: a.string(),
|
|
850
841
|
})
|
|
851
842
|
.returns(a.json())
|
|
852
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
843
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
853
844
|
.handler(a.handler.function(procedureAction)),
|
|
854
845
|
getNewsroomProcedureRun: a
|
|
855
846
|
.query()
|
|
@@ -857,7 +848,7 @@ const schema = a.schema({
|
|
|
857
848
|
id: a.id().required(),
|
|
858
849
|
})
|
|
859
850
|
.returns(a.json())
|
|
860
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
851
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
861
852
|
.handler(a.handler.function(procedureAction)),
|
|
862
853
|
listNewsroomProcedureRunsByProcedure: a
|
|
863
854
|
.query()
|
|
@@ -865,7 +856,7 @@ const schema = a.schema({
|
|
|
865
856
|
procedureId: a.id().required(),
|
|
866
857
|
})
|
|
867
858
|
.returns(a.json())
|
|
868
|
-
.authorization((allow) => [allow.groups(categoryWriteGroups)
|
|
859
|
+
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
869
860
|
.handler(a.handler.function(procedureAction)),
|
|
870
861
|
Assignment: a
|
|
871
862
|
.model({
|
|
@@ -915,7 +906,6 @@ const schema = a.schema({
|
|
|
915
906
|
.authorization((allow) => [
|
|
916
907
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
917
908
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
918
|
-
allow.custom().to(authoringOperations),
|
|
919
909
|
]),
|
|
920
910
|
AssignmentEvent: a
|
|
921
911
|
.model({
|
|
@@ -938,7 +928,6 @@ const schema = a.schema({
|
|
|
938
928
|
])
|
|
939
929
|
.authorization((allow) => [
|
|
940
930
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
941
|
-
allow.custom().to(authoringOperations),
|
|
942
931
|
]),
|
|
943
932
|
ProcedureDefinition: a
|
|
944
933
|
.model({
|
|
@@ -963,7 +952,6 @@ const schema = a.schema({
|
|
|
963
952
|
])
|
|
964
953
|
.authorization((allow) => [
|
|
965
954
|
allow.group(adminGroup),
|
|
966
|
-
allow.custom().to(authoringOperations),
|
|
967
955
|
]),
|
|
968
956
|
ProcedureVersion: a
|
|
969
957
|
.model({
|
|
@@ -990,7 +978,6 @@ const schema = a.schema({
|
|
|
990
978
|
])
|
|
991
979
|
.authorization((allow) => [
|
|
992
980
|
allow.group(adminGroup),
|
|
993
|
-
allow.custom().to(authoringOperations),
|
|
994
981
|
]),
|
|
995
982
|
ProcedureRun: a
|
|
996
983
|
.model({
|
|
@@ -1023,7 +1010,6 @@ const schema = a.schema({
|
|
|
1023
1010
|
.authorization((allow) => [
|
|
1024
1011
|
allow.group("editor").to(["read"]),
|
|
1025
1012
|
allow.group(adminGroup).to(authoringOperations),
|
|
1026
|
-
allow.custom().to(authoringOperations),
|
|
1027
1013
|
]),
|
|
1028
1014
|
NewsroomSection: a
|
|
1029
1015
|
.model({
|
|
@@ -1051,7 +1037,6 @@ const schema = a.schema({
|
|
|
1051
1037
|
])
|
|
1052
1038
|
.authorization((allow) => [
|
|
1053
1039
|
allow.groups(categoryWriteGroups),
|
|
1054
|
-
allow.custom().to(authoringOperations),
|
|
1055
1040
|
]),
|
|
1056
1041
|
KnowledgeCorpus: a
|
|
1057
1042
|
.model({
|
|
@@ -1069,7 +1054,6 @@ const schema = a.schema({
|
|
|
1069
1054
|
])
|
|
1070
1055
|
.authorization((allow) => [
|
|
1071
1056
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1072
|
-
allow.custom().to(authoringOperations),
|
|
1073
1057
|
]),
|
|
1074
1058
|
KnowledgeImportRun: a
|
|
1075
1059
|
.model({
|
|
@@ -1097,7 +1081,6 @@ const schema = a.schema({
|
|
|
1097
1081
|
])
|
|
1098
1082
|
.authorization((allow) => [
|
|
1099
1083
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1100
|
-
allow.custom().to(authoringOperations),
|
|
1101
1084
|
]),
|
|
1102
1085
|
KnowledgeRawPayload: a
|
|
1103
1086
|
.model({
|
|
@@ -1115,7 +1098,6 @@ const schema = a.schema({
|
|
|
1115
1098
|
])
|
|
1116
1099
|
.authorization((allow) => [
|
|
1117
1100
|
allow.groups(categoryWriteGroups),
|
|
1118
|
-
allow.custom().to(authoringOperations),
|
|
1119
1101
|
]),
|
|
1120
1102
|
KnowledgeArtifact: a
|
|
1121
1103
|
.model({
|
|
@@ -1135,7 +1117,6 @@ const schema = a.schema({
|
|
|
1135
1117
|
])
|
|
1136
1118
|
.authorization((allow) => [
|
|
1137
1119
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1138
|
-
allow.custom().to(authoringOperations),
|
|
1139
1120
|
]),
|
|
1140
1121
|
CategorySet: a
|
|
1141
1122
|
.model({
|
|
@@ -1165,7 +1146,6 @@ const schema = a.schema({
|
|
|
1165
1146
|
])
|
|
1166
1147
|
.authorization((allow) => [
|
|
1167
1148
|
allow.groups(categoryWriteGroups),
|
|
1168
|
-
allow.custom().to(authoringOperations),
|
|
1169
1149
|
]),
|
|
1170
1150
|
Category: a
|
|
1171
1151
|
.model({
|
|
@@ -1207,7 +1187,6 @@ const schema = a.schema({
|
|
|
1207
1187
|
])
|
|
1208
1188
|
.authorization((allow) => [
|
|
1209
1189
|
allow.groups(categoryWriteGroups),
|
|
1210
|
-
allow.custom().to(authoringOperations),
|
|
1211
1190
|
]),
|
|
1212
1191
|
CategoryKeyword: a
|
|
1213
1192
|
.model({
|
|
@@ -1236,7 +1215,6 @@ const schema = a.schema({
|
|
|
1236
1215
|
])
|
|
1237
1216
|
.authorization((allow) => [
|
|
1238
1217
|
allow.groups(categoryWriteGroups),
|
|
1239
|
-
allow.custom().to(authoringOperations),
|
|
1240
1218
|
]),
|
|
1241
1219
|
LexicalSteeringRule: a
|
|
1242
1220
|
.model({
|
|
@@ -1265,7 +1243,6 @@ const schema = a.schema({
|
|
|
1265
1243
|
])
|
|
1266
1244
|
.authorization((allow) => [
|
|
1267
1245
|
allow.groups(categoryWriteGroups),
|
|
1268
|
-
allow.custom().to(authoringOperations),
|
|
1269
1246
|
]),
|
|
1270
1247
|
SteeringProposal: a
|
|
1271
1248
|
.model({
|
|
@@ -1303,7 +1280,6 @@ const schema = a.schema({
|
|
|
1303
1280
|
])
|
|
1304
1281
|
.authorization((allow) => [
|
|
1305
1282
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1306
|
-
allow.custom().to(authoringOperations),
|
|
1307
1283
|
]),
|
|
1308
1284
|
SteeringDecision: a
|
|
1309
1285
|
.model({
|
|
@@ -1323,7 +1299,6 @@ const schema = a.schema({
|
|
|
1323
1299
|
])
|
|
1324
1300
|
.authorization((allow) => [
|
|
1325
1301
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1326
|
-
allow.custom().to(authoringOperations),
|
|
1327
1302
|
]),
|
|
1328
1303
|
Reference: a
|
|
1329
1304
|
.model({
|
|
@@ -1375,7 +1350,6 @@ const schema = a.schema({
|
|
|
1375
1350
|
])
|
|
1376
1351
|
.authorization((allow) => [
|
|
1377
1352
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1378
|
-
allow.custom().to(authoringOperations),
|
|
1379
1353
|
]),
|
|
1380
1354
|
ReferenceAttachment: a
|
|
1381
1355
|
.model({
|
|
@@ -1405,7 +1379,6 @@ const schema = a.schema({
|
|
|
1405
1379
|
])
|
|
1406
1380
|
.authorization((allow) => [
|
|
1407
1381
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1408
|
-
allow.custom().to(authoringOperations),
|
|
1409
1382
|
]),
|
|
1410
1383
|
SemanticNode: a
|
|
1411
1384
|
.model({
|
|
@@ -1448,7 +1421,6 @@ const schema = a.schema({
|
|
|
1448
1421
|
])
|
|
1449
1422
|
.authorization((allow) => [
|
|
1450
1423
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1451
|
-
allow.custom().to(authoringOperations),
|
|
1452
1424
|
]),
|
|
1453
1425
|
Message: a
|
|
1454
1426
|
.model({
|
|
@@ -1497,7 +1469,6 @@ const schema = a.schema({
|
|
|
1497
1469
|
])
|
|
1498
1470
|
.authorization((allow) => [
|
|
1499
1471
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1500
|
-
allow.custom().to(authoringOperations),
|
|
1501
1472
|
allow.authenticated("identityPool").to(["read", "create", "update"]),
|
|
1502
1473
|
]),
|
|
1503
1474
|
MessageThread: a
|
|
@@ -1536,7 +1507,6 @@ const schema = a.schema({
|
|
|
1536
1507
|
.authorization((allow) => [
|
|
1537
1508
|
allow.groups(categoryWriteGroups).to(["read", "create", "update"]),
|
|
1538
1509
|
allow.authenticated("identityPool").to(authoringOperations),
|
|
1539
|
-
allow.custom().to(authoringOperations),
|
|
1540
1510
|
]),
|
|
1541
1511
|
ModelAttachment: a
|
|
1542
1512
|
.model({
|
|
@@ -1568,7 +1538,6 @@ const schema = a.schema({
|
|
|
1568
1538
|
])
|
|
1569
1539
|
.authorization((allow) => [
|
|
1570
1540
|
allow.groups(categoryWriteGroups).to(["read"]),
|
|
1571
|
-
allow.custom().to(authoringOperations),
|
|
1572
1541
|
]),
|
|
1573
1542
|
SemanticRelationType: a
|
|
1574
1543
|
.model({
|
|
@@ -1596,7 +1565,6 @@ const schema = a.schema({
|
|
|
1596
1565
|
])
|
|
1597
1566
|
.authorization((allow) => [
|
|
1598
1567
|
allow.groups(categoryWriteGroups),
|
|
1599
|
-
allow.custom().to(authoringOperations),
|
|
1600
1568
|
]),
|
|
1601
1569
|
SemanticRelation: a
|
|
1602
1570
|
.model({
|
|
@@ -1647,7 +1615,6 @@ const schema = a.schema({
|
|
|
1647
1615
|
])
|
|
1648
1616
|
.authorization((allow) => [
|
|
1649
1617
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1650
|
-
allow.custom().to(authoringOperations),
|
|
1651
1618
|
]),
|
|
1652
1619
|
Item: a
|
|
1653
1620
|
.model({
|
|
@@ -1697,7 +1664,6 @@ const schema = a.schema({
|
|
|
1697
1664
|
])
|
|
1698
1665
|
.authorization((allow) => [
|
|
1699
1666
|
allow.groups(contentWriteGroups),
|
|
1700
|
-
allow.custom().to(authoringOperations),
|
|
1701
1667
|
]),
|
|
1702
1668
|
Tag: a
|
|
1703
1669
|
.model({
|
|
@@ -1714,7 +1680,6 @@ const schema = a.schema({
|
|
|
1714
1680
|
])
|
|
1715
1681
|
.authorization((allow) => [
|
|
1716
1682
|
allow.groups(contentWriteGroups),
|
|
1717
|
-
allow.custom().to(authoringOperations),
|
|
1718
1683
|
]),
|
|
1719
1684
|
ItemTag: a
|
|
1720
1685
|
.model({
|
|
@@ -1734,7 +1699,6 @@ const schema = a.schema({
|
|
|
1734
1699
|
])
|
|
1735
1700
|
.authorization((allow) => [
|
|
1736
1701
|
allow.groups(contentWriteGroups),
|
|
1737
|
-
allow.custom().to(authoringOperations),
|
|
1738
1702
|
]),
|
|
1739
1703
|
MediaAsset: a
|
|
1740
1704
|
.model({
|
|
@@ -1767,7 +1731,6 @@ const schema = a.schema({
|
|
|
1767
1731
|
])
|
|
1768
1732
|
.authorization((allow) => [
|
|
1769
1733
|
allow.groups(contentWriteGroups),
|
|
1770
|
-
allow.custom().to(authoringOperations),
|
|
1771
1734
|
]),
|
|
1772
1735
|
Edition: a
|
|
1773
1736
|
.model({
|
|
@@ -1800,7 +1763,6 @@ const schema = a.schema({
|
|
|
1800
1763
|
])
|
|
1801
1764
|
.authorization((allow) => [
|
|
1802
1765
|
allow.groups(contentWriteGroups),
|
|
1803
|
-
allow.custom().to(authoringOperations),
|
|
1804
1766
|
]),
|
|
1805
1767
|
EditionSlot: a
|
|
1806
1768
|
.model({
|
|
@@ -1826,7 +1788,6 @@ const schema = a.schema({
|
|
|
1826
1788
|
])
|
|
1827
1789
|
.authorization((allow) => [
|
|
1828
1790
|
allow.groups(categoryWriteGroups).to(categoryAppendOnlyOperations),
|
|
1829
|
-
allow.custom().to(authoringOperations),
|
|
1830
1791
|
]),
|
|
1831
1792
|
EditionItem: a
|
|
1832
1793
|
.model({
|
|
@@ -1849,7 +1810,6 @@ const schema = a.schema({
|
|
|
1849
1810
|
])
|
|
1850
1811
|
.authorization((allow) => [
|
|
1851
1812
|
allow.groups(contentWriteGroups),
|
|
1852
|
-
allow.custom().to(authoringOperations),
|
|
1853
1813
|
]),
|
|
1854
1814
|
PublishedItem: a
|
|
1855
1815
|
.model({
|
|
@@ -1890,7 +1850,6 @@ const schema = a.schema({
|
|
|
1890
1850
|
.authorization((allow) => [
|
|
1891
1851
|
allow.guest().to(["read"]),
|
|
1892
1852
|
allow.groups(contentWriteGroups),
|
|
1893
|
-
allow.custom().to(authoringOperations),
|
|
1894
1853
|
]),
|
|
1895
1854
|
PublishedMediaAsset: a
|
|
1896
1855
|
.model({
|
|
@@ -1926,7 +1885,6 @@ const schema = a.schema({
|
|
|
1926
1885
|
.authorization((allow) => [
|
|
1927
1886
|
allow.guest().to(["read"]),
|
|
1928
1887
|
allow.groups(contentWriteGroups),
|
|
1929
|
-
allow.custom().to(authoringOperations),
|
|
1930
1888
|
]),
|
|
1931
1889
|
PublishedEdition: a
|
|
1932
1890
|
.model({
|
|
@@ -1952,7 +1910,6 @@ const schema = a.schema({
|
|
|
1952
1910
|
.authorization((allow) => [
|
|
1953
1911
|
allow.guest().to(["read"]),
|
|
1954
1912
|
allow.groups(contentWriteGroups),
|
|
1955
|
-
allow.custom().to(authoringOperations),
|
|
1956
1913
|
]),
|
|
1957
1914
|
PublishedEditionItem: a
|
|
1958
1915
|
.model({
|
|
@@ -1977,7 +1934,6 @@ const schema = a.schema({
|
|
|
1977
1934
|
.authorization((allow) => [
|
|
1978
1935
|
allow.guest().to(["read"]),
|
|
1979
1936
|
allow.groups(contentWriteGroups),
|
|
1980
|
-
allow.custom().to(authoringOperations),
|
|
1981
1937
|
]),
|
|
1982
1938
|
PublishedCategorySet: a
|
|
1983
1939
|
.model({
|
|
@@ -2003,7 +1959,6 @@ const schema = a.schema({
|
|
|
2003
1959
|
.authorization((allow) => [
|
|
2004
1960
|
allow.guest().to(["read"]),
|
|
2005
1961
|
allow.groups(contentWriteGroups),
|
|
2006
|
-
allow.custom().to(authoringOperations),
|
|
2007
1962
|
]),
|
|
2008
1963
|
PublishedCategory: a
|
|
2009
1964
|
.model({
|
|
@@ -2039,7 +1994,6 @@ const schema = a.schema({
|
|
|
2039
1994
|
.authorization((allow) => [
|
|
2040
1995
|
allow.guest().to(["read"]),
|
|
2041
1996
|
allow.groups(contentWriteGroups),
|
|
2042
|
-
allow.custom().to(authoringOperations),
|
|
2043
1997
|
]),
|
|
2044
1998
|
}).authorization((allow) => [
|
|
2045
1999
|
allow.resource(categoryAction),
|
|
@@ -2061,9 +2015,5 @@ export const data = defineData({
|
|
|
2061
2015
|
apiKeyAuthorizationMode: {
|
|
2062
2016
|
expiresInDays: 365,
|
|
2063
2017
|
},
|
|
2064
|
-
lambdaAuthorizationMode: {
|
|
2065
|
-
function: graphqlJwtAuthorizer,
|
|
2066
|
-
timeToLiveInSeconds: 300,
|
|
2067
|
-
},
|
|
2068
2018
|
},
|
|
2069
2019
|
});
|