@continuous-labs/sdk is the TypeScript SDK for the Continuous Simulation API. Speakeasy generates it from the public OpenAPI contract, and it lives in the continuous-labs-ai/continuous-typescript repository. The package is published on npm. The package is an ES module only; from CommonJS, load it with await import("@continuous-labs/sdk"). The repository’s RUNTIMES.md lists the supported JavaScript runtimes. The SDK is in beta: a release may include breaking changes without a major version update, so pin the package to a specific version.
Install
pnpm add @continuous-labs/sdk, bun add @continuous-labs/sdk, and yarn add @continuous-labs/sdk work too.
Send a request
SetCONTINUOUS_API_KEY_AUTH to your API key, then list your Simulators:
apiKeyAuth. This example uses top-level await in an ES module.
HTTP errors throw ContinuousError from @continuous-labs/sdk/models/errors. An ErrorT carries the API’s problem body in data$.code and data$.detail; see Errors for the codes.
Every method is also available as a standalone function, for example simulatorsListSimulators, for bundles that need tree shaking.