@tsky/client / agent / Agent
Agent
Defined in: client/src/agent.ts:1180
Constructors
new Agent()
new Agent(handler): AgentDefined in: client/src/agent.ts:1183
Parameters
handler
CredentialManager
Returns
Properties
client
client: Client;Defined in: client/src/agent.ts:1181
Accessors
search
Get Signature
get search(): SearchDefined in: client/src/agent.ts:1239
Returns
session
Get Signature
get session(): undefined | AtpSessionDataDefined in: client/src/agent.ts:1189
Returns
undefined | AtpSessionData
user
Get Signature
get user(): UserDefined in: client/src/agent.ts:1243
Returns
video
Get Signature
get video(): VideoDefined in: client/src/agent.ts:1251
Returns
Methods
actor()
actor(identifier): Promise<ActorLazyProfile>Defined in: client/src/agent.ts:1196
Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth.
Parameters
identifier
`did:${string}`
Returns
Promise<ActorLazyProfile>
feed()
feed(params, options?): Promise<Paginator<Output>>Defined in: client/src/agent.ts:1203
Get a hydrated feed from an actor's selected feed generator. Implemented by App View.
Parameters
params
Params
options?
undefined
Returns
Promise<Paginator<Output>>
posts()
posts(uris, options?): Promise<PostView[]>Defined in: client/src/agent.ts:1259
Parameters
uris
string[]
options?
Returns
Promise<PostView[]>
resolveDIDFromHandle()
resolveDIDFromHandle(handle, options): Promise<Output>Defined in: client/src/agent.ts:1309
Parameters
handle
string
options
RPCOptions = {}
Returns
Promise<Output>
sendInteractions()
sendInteractions(interactions, options): Promise<Output>Defined in: client/src/agent.ts:1227
Send information about interactions with feed items back to the feed generator that served them.
Parameters
interactions
Interaction[]
options
RPCOptions = {}
Returns
Promise<Output>
startpacks()
Call Signature
startpacks(uri, options?): Promise<Output>Defined in: client/src/agent.ts:1273
Gets a view of a starter pack.
Parameters
uri
string
options?
Returns
Promise<Output>
Call Signature
startpacks(uris, options?): Promise<StarterPackViewBasic[]>Defined in: client/src/agent.ts:1280
Get views for a list of starter packs.
Parameters
uris
string[]
options?
Returns
Promise<StarterPackViewBasic[]>