a tool for shared writing and social publishing
at update/reader 38 lines 1.2 kB view raw
1import { LexiconDoc } from "@atproto/lexicon"; 2import { PubLeafletDocument } from "./document"; 3import { 4 PubLeafletPublication, 5 PubLeafletPublicationSubscription, 6} from "./publication"; 7import { PubLeafletComment } from "./comment"; 8import { PubLeafletPollDefinition, PubLeafletPollVote } from "./polls"; 9import { PubLeafletInteractionsRecommend } from "./interactions"; 10 11export const PubLeafletAuthFullPermissions: LexiconDoc = { 12 lexicon: 1, 13 id: "pub.leaflet.authFullPermissions", 14 defs: { 15 main: { 16 type: "permission-set", 17 title: "Full Leaflet Permissions", 18 detail: 19 "Manage creating and updating leaflet documents and publications and all interactions on them.", 20 permissions: [ 21 { 22 type: "permission", 23 resource: "repo", 24 action: ["create", "update", "delete"], 25 collection: [ 26 PubLeafletDocument.id, 27 PubLeafletPublication.id, 28 PubLeafletComment.id, 29 PubLeafletPollDefinition.id, 30 PubLeafletPollVote.id, 31 PubLeafletPublicationSubscription.id, 32 PubLeafletInteractionsRecommend.id, 33 ], 34 }, 35 ], 36 }, 37 }, 38};