Cereal docs
TypeScript SDKTypeScript signatures

client.sandboxes

TypeScript client.sandboxes signature, generated from CerealClient.

This is the TypeScript interface. See client setup and behavior.

interface ClientSurface {
readonly sandboxes: {
    get(input: {
        readonly id: string;
    }): Promise<Sandbox>;
    exec(input: {
        readonly id: string;
        readonly command: string;
        readonly stdin?: string;
        readonly encoding?: "utf8" | "base64";
        readonly cwd?: string;
        readonly env?: Readonly<Record<string, string>>;
        readonly timeoutSeconds?: number;
        readonly background?: boolean;
        readonly name?: string;
    }): Promise<SandboxCallResult>;
    env(input: {
        readonly id: string;
        readonly set?: Readonly<Record<string, string>>;
        readonly unset?: ReadonlyArray<string>;
        readonly replace?: boolean;
    }): Promise<SandboxEnvNames>;
};
}

For the wire contract, use HTTP reference. Composite helpers are explained in the API/SDK map.