TypeScript client for the Control Room API. Generated from spec/openapi.yaml using hey-api/openapi-ts.
bun add @getcontrolroom/sdk-tsimport { createCRClient, listBookings } from "@getcontrolroom/sdk-ts";
const client = createCRClient({
baseUrl: "https://api.controlroom.app",
token: "your-bearer-token",
});
const { data } = await listBookings({ client });Service-to-service (app → api, server-side only):
const client = createCRClient({
baseUrl: "https://api.controlroom.app",
userId: "usr_...",
serviceSecret: process.env.CR_SERVICE_SECRET,
});Bearer token (mobile clients, user sessions):
const client = createCRClient({
baseUrl: "https://api.controlroom.app",
token: "your-bearer-token",
});Default timeout is 30 seconds. Override with timeoutMs:
const client = createCRClient({
baseUrl: "https://api.controlroom.app",
token: "your-token",
timeoutMs: 10_000, // 10 seconds
});Requires the spec at ../spec/openapi.yaml.
cd bedrock && make generate-tsMIT — see LICENSE.
Built by Control Room · Developed by Clover Labs