Skip to content

Commit

Permalink
Merge branch 'add-shortcuts-to-bskyagent' of https://github.com/think…
Browse files Browse the repository at this point in the history
…verse/atproto into thinkverse-add-shortcuts-to-bskyagent
  • Loading branch information
pfrazee committed Apr 26, 2023
2 parents ece4b61 + 8256df3 commit 23cf788
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ await agent.getTimeline(params, opts)
await agent.getAuthorFeed(params, opts)
await agent.getPostThread(params, opts)
await agent.getPost(params)
await agent.getPosts(params, opts)
await agent.getLikes(params, opts)
await agent.getRepostedBy(params, opts)
await agent.post(record)
Expand All @@ -77,6 +78,7 @@ await agent.deleteFollow(followUri)
await agent.getProfile(params, opts)
await agent.upsertProfile(updateFn)
await agent.getProfiles(params, opts)
await agent.getSuggestions(params, opts)
await agent.searchActors(params, opts)
await agent.searchActorsTypeahead(params, opts)
await agent.mute(did)
Expand Down
6 changes: 6 additions & 0 deletions packages/api/src/bsky-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class BskyAgent extends AtpAgent {
getPost: typeof this.api.app.bsky.feed.post.get = (params) =>
this.api.app.bsky.feed.post.get(params)

getPosts: typeof this.api.app.bsky.feed.getPosts = (params, opts) =>
this.api.app.bsky.feed.getPosts(params, opts)

getLikes: typeof this.api.app.bsky.feed.getLikes = (params, opts) =>
this.api.app.bsky.feed.getLikes(params, opts)

Expand All @@ -41,6 +44,9 @@ export class BskyAgent extends AtpAgent {
getProfiles: typeof this.api.app.bsky.actor.getProfiles = (params, opts) =>
this.api.app.bsky.actor.getProfiles(params, opts)

getSuggestions: typeof this.api.app.bsky.actor.getSuggestions = (params, opts) =>
this.api.app.bsky.actor.getSuggestions(params, opts)

searchActors: typeof this.api.app.bsky.actor.searchActors = (params, opts) =>
this.api.app.bsky.actor.searchActors(params, opts)

Expand Down

0 comments on commit 23cf788

Please sign in to comment.