TypeScript SDK
Package and entry points
@duraton/sdk: install, imports, and the scoped entries for client-only and AI-only code.Defining workflows
workflow: name, triggers, retry, flow control, and the optional step and tool manifests.Steps
The
StepContext and every step.* signature.connect
Run a runner over an outbound WebSocket - no inbound URL.
REST client
createClient: events, runs, approvals, workflows, and errors.AI steps
step.ai.generate, wrap, embed, loop, providers, cost, and the cache store.REST API
Overview
Base URL, authentication, conventions, and the resource map.
Runs
List, filter, paginate, stream, and summarise runs; read steps, logs, and AI spend.
Events and workflows
Send events, read the event log, and trigger a workflow by hand.
Control
Cancel, pause, resume, replay, retry from a step, and the control-action audit log.
Approvals
Decide parked runs.
Webhooks, runners, limits
Deliveries and endpoints, apps and runners, rate limits and defaults.
Protocol
Protocol reference
How Duraton drives a runner: the endpoints, routing, and status codes.
Errors
Status codes, the
409 conflict table, and how the SDK surfaces them.