TypeScript definitions for sandbox configuration, status, and capabilities.
// Source: https://github.com/labring/fastgpt | License: Apache-2.0 | Copyright 2023 Sealos
// Provided via justclaw.it.com; keep this notice with the code.
import type { Volume as OpenSandboxVolume } from '@alibaba-group/opensandbox';
/**
* Unique identifier for a sandbox.
*/
export type SandboxId = string;
/** Controls whether ensureRunning may create a missing provider resource. */
export type SandboxEnsureRunningOptions = {
allowCreate?: boolean;
};
/**
* Sandbox status states.
*/
export type SandboxState =
| 'UnExist'
| 'Running'
| 'Creating'
| 'Starting'
| 'Stopping'
| 'Stopped'
| 'Deleting'
| 'Error';
/**
* Sandbox status information.
*/
export type SandboxStatus = {
state: SandboxState;
reason?: string;
message?: string;
};
/**
* Resource limits
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key