a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add full permissions permission set

+69 -1
+2
lexicons/build.ts
··· 9 9 import * as path from "path"; 10 10 import { PubLeafletRichTextFacet } from "./src/facet"; 11 11 import { PubLeafletComment } from "./src/comment"; 12 + import { PubLeafletAuthFullPermissions } from "./src/authFullPermissions"; 12 13 13 14 const outdir = path.join("lexicons", "pub", "leaflet"); 14 15 ··· 21 22 PubLeafletDocument, 22 23 PubLeafletComment, 23 24 PubLeafletRichTextFacet, 25 + PubLeafletAuthFullPermissions, 24 26 PageLexicons.PubLeafletPagesLinearDocument, 25 27 PageLexicons.PubLeafletPagesCanvasDocument, 26 28 ...ThemeLexicons,
+30
lexicons/pub/leaflet/authFullPermissions.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.authFullPermissions", 4 + "defs": { 5 + "main": { 6 + "type": "permission-set", 7 + "title": "Full Leaflet Permissions", 8 + "detail": "Manage creating and updating leaflet documents and publications and all interactions on them.", 9 + "permissions": [ 10 + { 11 + "type": "permission", 12 + "resource": "repo", 13 + "action": [ 14 + "create", 15 + "update", 16 + "delete" 17 + ], 18 + "collection": [ 19 + "pub.leaflet.document", 20 + "pub.leaflet.publication", 21 + "pub.leaflet.comment", 22 + "pub.leaflet.poll.definition", 23 + "pub.leaflet.poll.vote", 24 + "pub.leaflet.graph.subscription" 25 + ] 26 + } 27 + ] 28 + } 29 + } 30 + }
+36
lexicons/src/authFullPermissions.ts
··· 1 + import { LexiconDoc } from "@atproto/lexicon"; 2 + import { PubLeafletDocument } from "./document"; 3 + import { 4 + PubLeafletPublication, 5 + PubLeafletPublicationSubscription, 6 + } from "./publication"; 7 + import { PubLeafletComment } from "./comment"; 8 + import { PubLeafletPollDefinition, PubLeafletPollVote } from "./polls"; 9 + 10 + export 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 + };
+1 -1
package.json
··· 7 7 "dev": "TZ=UTC next dev --turbo", 8 8 "publish-lexicons": "tsx lexicons/publish.ts", 9 9 "generate-db-types": "supabase gen types --local > supabase/database.types.ts && drizzle-kit introspect && rm -rf ./drizzle/*.sql ./drizzle/meta", 10 - "lexgen": "tsx ./lexicons/build.ts && lex gen-api ./lexicons/api ./lexicons/pub/leaflet/* ./lexicons/pub/leaflet/*/* ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* --yes && find './lexicons/api' -type f -exec sed -i 's/\\.js'/'/g' {} \\;", 10 + "lexgen": "tsx ./lexicons/build.ts && lex gen-api ./lexicons/api ./lexicons/pub/leaflet/document.json ./lexicons/pub/leaflet/comment.json ./lexicons/pub/leaflet/publication.json ./lexicons/pub/leaflet/*/* ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* --yes && find './lexicons/api' -type f -exec sed -i 's/\\.js'/'/g' {} \\;", 11 11 "wrangler-dev": "wrangler dev", 12 12 "build-appview": "esbuild appview/index.ts --outfile=appview/dist/index.js --bundle --platform=node", 13 13 "build-feed-service": "esbuild feeds/index.ts --outfile=feeds/dist/index.js --bundle --platform=node",