Skip to content

agent


@tsky/client / agent / User

User

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

Extends

Constructors

new User()

ts
new User(client, did): User

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

Parameters

client

Client

did

`did:${string}`

Returns

User

Inherited from

ActorLazyProfile.constructor

Properties

client

ts
client: Client;

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

Inherited from

ActorLazyProfile.client


did

ts
did: `did:${string}`;

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

Inherited from

ActorLazyProfile.did

Accessors

muted

Get Signature

ts
get muted(): Muted

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

Returns

Muted


preferences

Get Signature

ts
get preferences(): Preferences

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

Returns

Preferences


suggestion

Get Signature

ts
get suggestion(): Suggestion

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

Returns

Suggestion

Methods

feed()

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

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

Get a list of feeds (feed generator records) created by the actor (in the actor's repo).

Parameters

params?

Omit<Params, "actor">

options?

RPCOptions

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.feed


feeds()

ts
feeds(limit?, options?): Promise<Paginator<Output>>

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

Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.

Parameters

limit?

number

options?

RPCOptions

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.feeds


followers()

ts
followers(limit?, options?): Promise<Paginator<Output>>

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

Enumerates accounts which follow a specified account (actor).

Parameters

limit?

number

options?

RPCOptions = {}

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.followers


follows()

ts
follows(limit?, options?): Promise<Paginator<Output>>

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

Enumerates accounts which a specified account (actor) follows.

Parameters

limit?

number

options?

RPCOptions = {}

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.follows


likes()

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

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

Get a list of posts liked by the current user

Parameters

limit?

number

options?

RPCOptions = {}

Returns

Promise<Paginator<Output>>


lists()

ts
lists(limit?, options?): Promise<Paginator<Output>>

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

Enumerates the lists created by a specified account (actor).

Parameters

limit?

number

options?

RPCOptions = {}

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.lists


muteActor()

ts
muteActor(identifier, options): Promise<XRPCResponse<never>>

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

Creates a mute relationship for the specified account. Mutes are private in Bluesky.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>


muteActorList()

ts
muteActorList(identifier, options): Promise<XRPCResponse<never>>

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

Mute an entire list (specified by AT-URI) of actors. This creates a mute relationship for all actors on the specified list. Mutes are private on Bluesky.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>


muteThread()

ts
muteThread(identifier, options): Promise<XRPCResponse<never>>

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

Mutes a thread preventing notifications from the thread and any of its children. Mutes are private in Bluesky.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>


profile()

ts
profile(): Promise<ActorProfile>

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

Returns

Promise<ActorProfile>

Inherited from

ActorLazyProfile.profile


relationships()

ts
relationships(others?, options?): Promise<{
  $type: string;
  actor: undefined | ActorLazyProfile;
  relationships: (
     | Typed<NotFoundActor, string>
     | Typed<Relationship, string>)[];
}>

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

Enumerates public relationships between one account, and a list of other accounts. Does not require auth.

Parameters

others?

string[]

options?

RPCOptions

Returns

Promise<{ $type: string; actor: undefined | ActorLazyProfile; relationships: ( | Typed<NotFoundActor, string> | Typed<Relationship, string>)[]; }>

Inherited from

ActorLazyProfile.relationships


starterPacks()

ts
starterPacks(limit?, options?): Promise<Paginator<Output>>

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

Get a list of starter packs created by the actor.

Parameters

limit?

number

options?

RPCOptions = {}

Returns

Promise<Paginator<Output>>

Inherited from

ActorLazyProfile.starterPacks


timeline()

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

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

Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.

Parameters

params

Params

options?

undefined

Returns

Promise<Paginator<Output>>


toJSON()

ts
toJSON(): object

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

Returns

object

did
ts
did: `did:${string}`;

Inherited from

ActorLazyProfile.toJSON


unmuteActor()

ts
unmuteActor(identifier, options): Promise<XRPCResponse<never>>

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

Unmutes the specified account.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>


unmuteActorList()

ts
unmuteActorList(identifier, options): Promise<XRPCResponse<never>>

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

Unmute an entire list (specified by AT-URI) of actors. This removes the mute relationship for all actors on the specified list.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>


unmuteThread()

ts
unmuteThread(identifier, options): Promise<XRPCResponse<never>>

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

Unmutes the specified thread.

Parameters

identifier

string

options

RPCOptions = {}

Returns

Promise<XRPCResponse<never>>