12345import { Snapshots } from "@opencomputer/sdk"; const snapshots = new Snapshots(); // or with explicit config: const snapshots = new Snapshots({ apiKey: "...", apiUrl: "..." });
body apiKeystringOPENCOMPUTER_API_KEY env var)body apiUrlstringOPENCOMPUTER_API_URL env var)snapshots.create(opts)body namestringrequiredbody imageImagerequiredbody onBuildLogs(log: string) => voidPromise<SnapshotInfo>snapshots.get(name)body namestringrequiredPromise<SnapshotInfo>snapshots.delete(name)body namestringrequiredPromise<void>12345678910interface SnapshotInfo { id: string; name: string; status: string; // "building" | "ready" | "failed" contentHash: string; checkpointId: string; manifest: object; createdAt: string; lastUsedAt: string; }