Skip to content

agent


@tsky/client / agent / PostView

PostView ​

Defined in: client/src/agent.ts:490

Implements ​

  • PostView

Constructors ​

new PostView() ​

ts
new PostView(client, payload): PostView

Defined in: client/src/agent.ts:512

Parameters ​

client ​

Client

payload ​

PostView

Returns ​

PostView

Properties ​

$type? ​

ts
optional $type: string;

Defined in: client/src/agent.ts:510

Implementation of ​

ts
AppBskyFeedDefs.PostView.$type

author ​

ts
author: ProfileViewBasic;

Defined in: client/src/agent.ts:491

Implementation of ​

ts
AppBskyFeedDefs.PostView.author

cid ​

ts
cid: string;

Defined in: client/src/agent.ts:492

Implementation of ​

ts
AppBskyFeedDefs.PostView.cid

client ​

ts
client: Client;

Defined in: client/src/agent.ts:513


embed? ​

ts
optional embed: 
  | Typed<View, string>
  | Typed<View, string>
  | Typed<View, string>
  | Typed<View, string>
| Typed<View, string>;

Defined in: client/src/agent.ts:496

Implementation of ​

ts
AppBskyFeedDefs.PostView.embed

indexedAt ​

ts
indexedAt: string;

Defined in: client/src/agent.ts:493

Implementation of ​

ts
AppBskyFeedDefs.PostView.indexedAt

labels? ​

ts
optional labels: Label[];

Defined in: client/src/agent.ts:503

Implementation of ​

ts
AppBskyFeedDefs.PostView.labels

likeCount? ​

ts
optional likeCount: number;

Defined in: client/src/agent.ts:504

Implementation of ​

ts
AppBskyFeedDefs.PostView.likeCount

quoteCount? ​

ts
optional quoteCount: number;

Defined in: client/src/agent.ts:505

Implementation of ​

ts
AppBskyFeedDefs.PostView.quoteCount

record ​

ts
record: unknown;

Defined in: client/src/agent.ts:494

Implementation of ​

ts
AppBskyFeedDefs.PostView.record

replyCount? ​

ts
optional replyCount: number;

Defined in: client/src/agent.ts:506

Implementation of ​

ts
AppBskyFeedDefs.PostView.replyCount

repostCount? ​

ts
optional repostCount: number;

Defined in: client/src/agent.ts:507

Implementation of ​

ts
AppBskyFeedDefs.PostView.repostCount

threadgate? ​

ts
optional threadgate: ThreadgateView;

Defined in: client/src/agent.ts:508

Implementation of ​

ts
AppBskyFeedDefs.PostView.threadgate

uri ​

ts
uri: string;

Defined in: client/src/agent.ts:495

Implementation of ​

ts
AppBskyFeedDefs.PostView.uri

viewer? ​

ts
optional viewer: ViewerState;

Defined in: client/src/agent.ts:509

Implementation of ​

ts
AppBskyFeedDefs.PostView.viewer

Methods ​

isOfCurrentUser() ​

ts
isOfCurrentUser(): boolean

Defined in: client/src/agent.ts:532

Returns ​

boolean


likes() ​

ts
likes(params, options): Promise<Paginator<Output>>

Defined in: client/src/agent.ts:561

Get like records which reference a subject (by AT-URI and CID).

Parameters ​

params ​

Omit<Params, "uri"> = {}

options ​

RPCOptions = {}

Returns ​

Promise<Paginator<Output>>


quotes() ​

ts
quotes(params, options): Promise<Paginator<Output>>

Defined in: client/src/agent.ts:585

Get a list of quotes for a given post.

Parameters ​

params ​

Omit<Params, "uri"> = {}

options ​

RPCOptions = {}

Returns ​

Promise<Paginator<Output>>


remove() ​

ts
remove(options): Promise<void>

Defined in: client/src/agent.ts:537

Parameters ​

options ​

RPCOptions = {}

Returns ​

Promise<void>


repostedBy() ​

ts
repostedBy(params, options): Promise<Paginator<Output>>

Defined in: client/src/agent.ts:606

Get a list of reposts for a given post.

Parameters ​

params ​

Omit<Params, "uri"> = {}

options ​

RPCOptions = {}

Returns ​

Promise<Paginator<Output>>


threads() ​

ts
threads(params, options): Promise<Output>

Defined in: client/src/agent.ts:546

Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.

Parameters ​

params ​

Omit<Params, "uri"> = {}

options ​

RPCOptions = {}

Returns ​

Promise<Output>


getMany() ​

ts
static getMany(
   client, 
   posts, 
options): Promise<Output>

Defined in: client/src/agent.ts:629

Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.

Parameters ​

client ​

Client

posts ​

string[]

options ​

RPCOptions = {}

Returns ​

Promise<Output>