Skip to content

Packages  ›  trotsky  ›  Trotsky

Trotsky class

Trotsky orchestrates a sequence of steps that interact with an .

Signature:

typescript
export declare class Trotsky extends StepBuilder

Extends: StepBuilder

Methods

Method

Modifiers

Description

actor(param)

Adds a StepActor step.

actors(param)

Adds a StepActors step.

createPost(record)

Adds a StepCreatePost step.

init(agent)

static

Initializes a new Trotsky instance with the specified agent.

list(uri)

Adds a StepList step.

post(uri)

Adds a StepPost step.

posts(uris)

Adds a StepPosts step.

save(path)

Adds a StepSave step.

searchPosts(queryParams)

Adds a StepSearchPosts step.

streamPosts()

Adds a StepStreamPosts step.

tap(interceptor)

Adds a StepTap step.

wait(duration)

Adds a StepWait step.

when(predicate)

Adds a StepWhen step.