@atproto/api 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,6 +57,7 @@ await agent.getTimeline(params, opts)
57
57
  await agent.getAuthorFeed(params, opts)
58
58
  await agent.getPostThread(params, opts)
59
59
  await agent.getPost(params)
60
+ await agent.getPosts(params, opts)
60
61
  await agent.getLikes(params, opts)
61
62
  await agent.getRepostedBy(params, opts)
62
63
  await agent.post(record)
@@ -77,6 +78,7 @@ await agent.deleteFollow(followUri)
77
78
  await agent.getProfile(params, opts)
78
79
  await agent.upsertProfile(updateFn)
79
80
  await agent.getProfiles(params, opts)
81
+ await agent.getSuggestions(params, opts)
80
82
  await agent.searchActors(params, opts)
81
83
  await agent.searchActorsTypeahead(params, opts)
82
84
  await agent.mute(did)
@@ -6,12 +6,14 @@ export declare class BskyAgent extends AtpAgent {
6
6
  getAuthorFeed: typeof this.api.app.bsky.feed.getAuthorFeed;
7
7
  getPostThread: typeof this.api.app.bsky.feed.getPostThread;
8
8
  getPost: typeof this.api.app.bsky.feed.post.get;
9
+ getPosts: typeof this.api.app.bsky.feed.getPosts;
9
10
  getLikes: typeof this.api.app.bsky.feed.getLikes;
10
11
  getRepostedBy: typeof this.api.app.bsky.feed.getRepostedBy;
11
12
  getFollows: typeof this.api.app.bsky.graph.getFollows;
12
13
  getFollowers: typeof this.api.app.bsky.graph.getFollowers;
13
14
  getProfile: typeof this.api.app.bsky.actor.getProfile;
14
15
  getProfiles: typeof this.api.app.bsky.actor.getProfiles;
16
+ getSuggestions: typeof this.api.app.bsky.actor.getSuggestions;
15
17
  searchActors: typeof this.api.app.bsky.actor.searchActors;
16
18
  searchActorsTypeahead: typeof this.api.app.bsky.actor.searchActorsTypeahead;
17
19
  listNotifications: typeof this.api.app.bsky.notification.listNotifications;
@@ -3585,6 +3585,13 @@ export declare const schemaDict: {
3585
3585
  value: {
3586
3586
  type: string;
3587
3587
  };
3588
+ labels: {
3589
+ type: string;
3590
+ items: {
3591
+ type: string;
3592
+ ref: string;
3593
+ };
3594
+ };
3588
3595
  embeds: {
3589
3596
  type: string;
3590
3597
  items: {
@@ -1,6 +1,7 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
2
  import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
3
  import * as AppBskyActorDefs from '../actor/defs';
4
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
4
5
  import * as AppBskyEmbedImages from './images';
5
6
  import * as AppBskyEmbedExternal from './external';
6
7
  import * as AppBskyEmbedRecordWithMedia from './recordWithMedia';
@@ -24,6 +25,7 @@ export interface ViewRecord {
24
25
  cid: string;
25
26
  author: AppBskyActorDefs.ProfileViewBasic;
26
27
  value: {};
28
+ labels?: ComAtprotoLabelDefs.Label[];
27
29
  embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
28
30
  $type: string;
29
31
  [k: string]: unknown;
package/dist/index.js CHANGED
@@ -10907,6 +10907,13 @@ var schemaDict = {
10907
10907
  value: {
10908
10908
  type: "unknown"
10909
10909
  },
10910
+ labels: {
10911
+ type: "array",
10912
+ items: {
10913
+ type: "ref",
10914
+ ref: "lex:com.atproto.label.defs#label"
10915
+ }
10916
+ },
10910
10917
  embeds: {
10911
10918
  type: "array",
10912
10919
  items: {
@@ -16501,12 +16508,14 @@ var BskyAgent = class extends AtpAgent {
16501
16508
  this.getAuthorFeed = (params2, opts) => this.api.app.bsky.feed.getAuthorFeed(params2, opts);
16502
16509
  this.getPostThread = (params2, opts) => this.api.app.bsky.feed.getPostThread(params2, opts);
16503
16510
  this.getPost = (params2) => this.api.app.bsky.feed.post.get(params2);
16511
+ this.getPosts = (params2, opts) => this.api.app.bsky.feed.getPosts(params2, opts);
16504
16512
  this.getLikes = (params2, opts) => this.api.app.bsky.feed.getLikes(params2, opts);
16505
16513
  this.getRepostedBy = (params2, opts) => this.api.app.bsky.feed.getRepostedBy(params2, opts);
16506
16514
  this.getFollows = (params2, opts) => this.api.app.bsky.graph.getFollows(params2, opts);
16507
16515
  this.getFollowers = (params2, opts) => this.api.app.bsky.graph.getFollowers(params2, opts);
16508
16516
  this.getProfile = (params2, opts) => this.api.app.bsky.actor.getProfile(params2, opts);
16509
16517
  this.getProfiles = (params2, opts) => this.api.app.bsky.actor.getProfiles(params2, opts);
16518
+ this.getSuggestions = (params2, opts) => this.api.app.bsky.actor.getSuggestions(params2, opts);
16510
16519
  this.searchActors = (params2, opts) => this.api.app.bsky.actor.searchActors(params2, opts);
16511
16520
  this.searchActorsTypeahead = (params2, opts) => this.api.app.bsky.actor.searchActorsTypeahead(params2, opts);
16512
16521
  this.listNotifications = (params2, opts) => this.api.app.bsky.notification.listNotifications(params2, opts);