TypeScript SDK OpenAPI-generated types
The TypeScript SDK now derives core response and streaming types directly from OpenAPI, improving autocomplete and keeping SDK contracts aligned with the API.
@runtypelabs/sdk 3.0 and 4.0 moved the core TypeScript contracts onto the same OpenAPI specification that powers the API reference. Streaming events and entities such as Prompts, Integrations, Flows, Tools, Records, Surfaces, and Schedule Runs now use spec-derived types.
The major-version releases provide more accurate compile-time feedback while leaving runtime responses unchanged. Existing applications keep the same API behavior, with stronger autocomplete and earlier detection when code relies on an unsupported field.
This keeps the SDK and API documentation aligned as the platform evolves, with generated types following the published contract automatically.