Skip to content

agent


@tsky/client / agent / Preferences

Preferences ​

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

Constructors ​

new Preferences() ​

ts
new Preferences(client): Preferences

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

Parameters ​

client ​

Client

Returns ​

Preferences

Properties ​

client ​

ts
client: Client;

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

Methods ​

get() ​

ts
get(options): Promise<Preferences>

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

Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth.

Parameters ​

options ​

RPCOptions = {}

Returns ​

Promise<Preferences>


set() ​

ts
set(preferences, options): Promise<void>

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

Set the private preferences attached to the account.

Parameters ​

preferences ​

Preferences

options ​

RPCOptions = {}

Returns ​

Promise<void>