@tsky/client / agent / PostView
PostView
Defined in: client/src/agent.ts:490
Implements
PostView
Constructors
new PostView()
new PostView(client, payload): PostViewDefined in: client/src/agent.ts:512
Parameters
client
payload
PostView
Returns
Properties
$type?
optional $type: string;Defined in: client/src/agent.ts:510
Implementation of
AppBskyFeedDefs.PostView.$typeauthor
author: ProfileViewBasic;Defined in: client/src/agent.ts:491
Implementation of
AppBskyFeedDefs.PostView.authorcid
cid: string;Defined in: client/src/agent.ts:492
Implementation of
AppBskyFeedDefs.PostView.cidclient
client: Client;Defined in: client/src/agent.ts:513
embed?
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
AppBskyFeedDefs.PostView.embedindexedAt
indexedAt: string;Defined in: client/src/agent.ts:493
Implementation of
AppBskyFeedDefs.PostView.indexedAtlabels?
optional labels: Label[];Defined in: client/src/agent.ts:503
Implementation of
AppBskyFeedDefs.PostView.labelslikeCount?
optional likeCount: number;Defined in: client/src/agent.ts:504
Implementation of
AppBskyFeedDefs.PostView.likeCountquoteCount?
optional quoteCount: number;Defined in: client/src/agent.ts:505
Implementation of
AppBskyFeedDefs.PostView.quoteCountrecord
record: unknown;Defined in: client/src/agent.ts:494
Implementation of
AppBskyFeedDefs.PostView.recordreplyCount?
optional replyCount: number;Defined in: client/src/agent.ts:506
Implementation of
AppBskyFeedDefs.PostView.replyCountrepostCount?
optional repostCount: number;Defined in: client/src/agent.ts:507
Implementation of
AppBskyFeedDefs.PostView.repostCountthreadgate?
optional threadgate: ThreadgateView;Defined in: client/src/agent.ts:508
Implementation of
AppBskyFeedDefs.PostView.threadgateuri
uri: string;Defined in: client/src/agent.ts:495
Implementation of
AppBskyFeedDefs.PostView.uriviewer?
optional viewer: ViewerState;Defined in: client/src/agent.ts:509
Implementation of
AppBskyFeedDefs.PostView.viewerMethods
isOfCurrentUser()
isOfCurrentUser(): booleanDefined in: client/src/agent.ts:532
Returns
boolean
likes()
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()
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()
remove(options): Promise<void>Defined in: client/src/agent.ts:537
Parameters
options
RPCOptions = {}
Returns
Promise<void>
repostedBy()
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()
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()
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
posts
string[]
options
RPCOptions = {}
Returns
Promise<Output>