Skip to main content

Client

View as Markdown

This page lists the TypeScript SDK names for the Client. The doc comment of each API gives its parameters, defaults, and errors. Read them in the TypeScript SDK API reference.

API names​

TaskTypeScript APIDex behavior
Create a ClientClient, with ClientOptionsClient requests
Start a FlowstartFlow, with StartFlowOptionsStart a Flow
Invoke an RPCinvokeRPC, or invokeRPCWithOptions with RPCInvokeOptionsInvoke an RPC
Read AttributesgetAttributesRead Attributes
Wait for a Flow to closewaitForFlowWait for a Flow
Wait for a Step execution to completewaitForStepCompletion, with WaitForStepCompletionOptionsWait for a Step
Wait until an Attribute matcheswaitForAttributeMatch, with WaitForAttributeOptionsWait for an Attribute match
Describe a FlowdescribeFlowDescribe a Flow
Search FlowssearchFlowsSearch Flows
Stop a FlowstopFlow, with StopFlowOptionsStop a Flow
Skip a TimerskipTimerSkip a Timer
Update FlowConfigupdateFlowConfigUpdate FlowConfig
Write and read a StreamwriteStream, readStream, and listStreamMessagesStream
Time travel a FlowtimeTravel, with TimeTravelOptionsTime travel
Upload Flow definitionsuploadFlowDefinitions, with FlowDefinitionDocument. Since 1.45Flow definitions
Handle a failed requestDexServiceError, with ErrorSubStatusClient requests

Every Client request method is asynchronous and returns a Promise. Call close when the application shuts down.

Example​

Example: examples/typescript/src/primitives/client-apis/controller.ts