export const SITE = 'https://blento.app'; type Permissions = { collections: readonly string[]; rpc: Record; blobs: readonly string[]; }; export const permissions = { // collections you can create/delete/update // example: only allow create and delete // collections: ['xyz.statusphere.status?action=create&action=update'], collections: [ 'app.blento.card', 'app.blento.page', 'app.blento.settings', 'app.blento.comment', 'app.blento.guestbook.entry', 'site.standard.publication', 'site.standard.document', 'xyz.statusphere.status' ], // what types of authenticated proxied requests you can make to services // example: allow authenticated proxying to bsky appview to get a users liked posts //rpc: {'did:web:api.bsky.app#bsky_appview': ['app.bsky.feed.getActorLikes']} rpc: {}, // what types of blobs you can upload to a users PDS // example: allowing video and html uploads // blobs: ['video/*', 'text/html'] // example: allowing all blob types // blobs: ['*/*'] blobs: ['*/*'] } as const satisfies Permissions; // Extract base collection name (before any query params) type ExtractCollectionBase = T extends `${infer Base}?${string}` ? Base : T; export type AllowedCollection = ExtractCollectionBase<(typeof permissions.collections)[number]>; // which PDS to use for signup // ATTENTION: pds.rip is only for development, all accounts get deleted automatically after a week export const signUpPDS = 'https://selfhosted.social/';