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.

blocks()

Adds a StepActorBlocks step.

createPost(record)

Adds a StepCreatePost step.

feed(uri)

Adds a StepFeed step.

feedGenerator(uri)

Adds a StepFeedGenerator step.

init(agent)

static

Initializes a new Trotsky instance with the specified agent.

list(uri)

Adds a StepList step.

mutes()

Adds a StepActorMutes step.

notifications()

Adds a StepNotifications step.

notificationsUnreadCount()

Adds a StepNotificationsUnreadCount step.

notificationsUpdateSeen()

Adds a StepNotificationsUpdateSeen step.

post(uri)

Adds a StepPost step.

posts(uris)

Adds a StepPosts step.

save(path)

Adds a StepSave step.

searchActors(queryParams)

Adds a StepSearchActors step.

searchPosts(queryParams)

Adds a StepSearchPosts step.

searchStarterPacks(queryParams)

Adds a StepSearchStarterPacks step.

starterPack(uri)

Adds a StepStarterPack step.

starterPacks(uris)

Adds a StepStarterPacks step.

streamPosts()

Adds a StepStreamPosts step.

suggestedFeeds()

Adds a StepSuggestedFeeds step.

suggestions()

Adds a StepActorSuggestions step.

tap(interceptor)

Adds a StepTap step.

timeline(queryParams)

Adds a StepTimeline step.

wait(duration)

Adds a StepWait step.

when(predicate)

Adds a StepWhen step.