a tool for shared writing and social publishing
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";
9
10export const PubLeafletAuthFullPermissions: LexiconDoc = {
11 lexicon: 1,
12 id: "pub.leaflet.authFullPermissions",
13 defs: {
14 main: {
15 type: "permission-set",
16 title: "Full Leaflet Permissions",
17 detail:
18 "Manage creating and updating leaflet documents and publications and all interactions on them.",
19 permissions: [
20 {
21 type: "permission",
22 resource: "repo",
23 action: ["create", "update", "delete"],
24 collection: [
25 PubLeafletDocument.id,
26 PubLeafletPublication.id,
27 PubLeafletComment.id,
28 PubLeafletPollDefinition.id,
29 PubLeafletPollVote.id,
30 PubLeafletPublicationSubscription.id,
31 ],
32 },
33 ],
34 },
35 },
36};