const __DEV__oAuthCallbackUrl = "http://127.0.0.1:3000/oauth/callback"; const oAuthScopes = [ "atproto", "repo:sh.tangled.publicKey", "repo:sh.tangled.repo", "repo:sh.tangled.repo.pull", "repo:sh.tangled.repo.pull.comment", "repo:sh.tangled.repo.artifact", "repo:sh.tangled.repo.issue", "repo:sh.tangled.repo.issue.comment", "repo:sh.tangled.repo.collaborator", "repo:sh.tangled.knot", "repo:sh.tangled.knot.member", "repo:sh.tangled.spindle", "repo:sh.tangled.spindle.member", "repo:sh.tangled.graph.follow", "repo:sh.tangled.feed.star", "repo:sh.tangled.feed.reaction", "repo:sh.tangled.label.definition", "repo:sh.tangled.label.op", "repo:sh.tangled.string", "repo:sh.tangled.actor.profile", "blob:*/*", "rpc:sh.tangled.repo.create?aud=*", "rpc:sh.tangled.repo.delete?aud=*", "rpc:sh.tangled.repo.merge?aud=*", "rpc:sh.tangled.repo.hiddenRef?aud=*", "rpc:sh.tangled.repo.deleteBranch?aud=*", "rpc:sh.tangled.repo.setDefaultBranch?aud=*", "rpc:sh.tangled.repo.forkSync?aud=*", "rpc:sh.tangled.repo.forkStatus?aud=*", "rpc:sh.tangled.repo.mergeCheck?aud=*", "rpc:sh.tangled.pipeline.cancelPipeline?aud=*", "rpc:sh.tangled.repo.addSecret?aud=*", "rpc:sh.tangled.repo.removeSecret?aud=*", "rpc:sh.tangled.repo.listSecrets?aud=*", ]; const oAuthScopesString = oAuthScopes .reduce((prev, curr) => `${prev} ${curr}`) .trim(); export const __DEV__loopbackOAuthMetadata = { client_id: `http://localhost?redirect_uri=${encodeURIComponent(__DEV__oAuthCallbackUrl)}&scope=${encodeURIComponent(oAuthScopesString)}`, redirect_uris: [__DEV__oAuthCallbackUrl], scope: oAuthScopesString, token_endpoint_auth_method: "none", response_types: ["code"], grant_types: ["authorization_code", "refresh_token"], application_type: "web", dpop_bound_access_tokens: true, subject_type: "public", client_name: "Strand Localhost", }; export const DEFAULT_STALE_TIME = 5 * 60 * 1000; export const CONSTELLATION_URL = new URL( "https://constellation.microcosm.blue/", ); export const HANDLE_RESOLVER_URL = new URL("https://slingshot.microcosm.blue/"); export const SLINGSHOT_URL = new URL("https://slingshot.microcosm.blue/"); /** * Default Bluesky client URL. Use the base route, e.g. https://catsky.social/ or https://bsky.app/ or https://witchsky.app/ * Configurable by client in the future. */ export const DEFAULT_BSKY_CLIENT_URL = new URL("https://catsky.social/"); /** * Lodestone is a lightweight universal AT-URI resolver service. * See more here: https://github.com/gemstone-systems/lodestone/ */ export const LODESTONE_URL = new URL("https://lodestone.gmstn.systems/");