@luxorai/sandbox
Version:
TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud
22 lines (21 loc) • 818 B
TypeScript
import { type Transport } from "@connectrpc/connect";
import { Secrets } from "./workspace-secrets.js";
export interface WorkspaceOptions {
workspaceId?: string;
authToken?: string;
/** Alias for authToken. Pass one or the other, not both. */
apiKey?: string;
/** Cloud API endpoint, independent of sandbox endpoint configuration. */
baseUrl?: string;
transport?: Transport;
timeoutMs?: number;
rootCertificates?: string | Buffer | Array<string | Buffer>;
}
/** Owns workspace scope, authentication, and connection lifetime. */
export declare class WorkspaceClient implements AsyncDisposable {
readonly secrets: Secrets;
private readonly sessionManager?;
constructor(options?: WorkspaceOptions);
close(): Promise<void>;
[Symbol.asyncDispose](): Promise<void>;
}