Skip to content

Commit

Permalink
✨ Open up some more useful endpoints to admin tokens (bluesky-social#…
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit authored Oct 25, 2024
1 parent c307a75 commit 09656d6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/ozone/src/api/proxied.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.actor.getProfiles({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.actor.getProfiles(
request.params,
Expand All @@ -32,7 +32,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.feed.getAuthorFeed({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.feed.getAuthorFeed(
request.params,
Expand Down Expand Up @@ -60,7 +60,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.feed.getPostThread({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.feed.getPostThread(
request.params,
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getFollows({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getFollows(
request.params,
Expand All @@ -102,7 +102,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getFollowers({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getFollowers(
request.params,
Expand All @@ -116,7 +116,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getList({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getList(
request.params,
Expand All @@ -130,7 +130,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getLists({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getLists(
request.params,
Expand Down Expand Up @@ -212,7 +212,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getStarterPack({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getStarterPack(
request.params,
Expand All @@ -226,7 +226,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getStarterPacks({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.graph.getStarterPacks(
request.params,
Expand All @@ -240,7 +240,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.graph.getActorStarterPacks({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res =
await ctx.appviewAgent.api.app.bsky.graph.getActorStarterPacks(
Expand All @@ -255,7 +255,7 @@ export default function (server: Server, ctx: AppContext) {
})

server.app.bsky.feed.getLikes({
auth: ctx.authVerifier.moderator,
auth: ctx.authVerifier.modOrAdminToken,
handler: async (request) => {
const res = await ctx.appviewAgent.api.app.bsky.feed.getLikes(
request.params,
Expand Down

0 comments on commit 09656d6

Please sign in to comment.