UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

24 lines (23 loc) • 907 B
import { type Transport } from "@connectrpc/connect"; import { Secrets } from "./workspace-secrets.js"; import { Variables } from "./workspace-variables.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; readonly variables: Variables; private readonly sessionManager?; constructor(options?: WorkspaceOptions); close(): Promise<void>; [Symbol.asyncDispose](): Promise<void>; }