SDK reference / Models

Models.Sandboxes namespace

Types

TypeKindDescription
ClaimSandboxRequestclassClaim request for a pooled claimable sandbox (W46).
CloseSandboxSessionRequestclassEnds a session (W106).
CodeModeExecuteRequestclassCode-Mode read-and-plan script execution request (W46; zero k8s/host/cell-service reach).
CodeModeExecuteResponseclassResult of Code-Mode read-and-plan script execution (W46).
ConnectSandboxSessionRequestclassThe console gateway's redemption of a session's ticket (W106; ADR-0718, ADR-0609).
ConnectSandboxSessionResponseclassWhere the console gateway brokers the owner's connection to; the sandbox has no public URL (ADR-0718).
CreateSandboxSnapshotRequestclassRequest payload to snapshot a running sandbox's workspace. At most 5 manual snapshots exist per sandbox and a snapshot holds at most 256 MiB.
DeclareSandboxPortRequestclassDeclares a port. Declaring a port that is already declared changes its label.
DevEnvironmentclassPersistent cloud DevEnvironment backed by `devcontainer.json` and a durable home volume (W109; ADR-0718).
DevEnvironmentMergePatchUpdateclassPersistent cloud DevEnvironment backed by `devcontainer.json` and a durable home volume (W109; ADR-0718).
DevEnvironmentMergePatchUpdate_devcontainerJsonMember1class
DevEnvironmentMergePatchUpdate_displayNameMember1class
DevEnvironmentMergePatchUpdate_idleTimeoutMinutesMember1class
DevEnvironmentMergePatchUpdate_repositoryUrlMember1class
DevEnvironmentRepositoryStatusclassThe repository state read inside a running dev environment with `git status`. Nothing here is a guess: when the read fails the call fails.
DevEnvironmentStateenumDevEnvironment lifecycle states (W109; ADR-0718).
DevEnvironment_annotationsclassAt most 256 KiB in all; never policy input.
DevEnvironment_labelsclassAt most 64.
ExecSandboxRequestclassRequest payload for `:exec` inside a running sandbox (ADR-0904).
ExecSandboxResponseclassResponse from `:exec`; marked untrusted (`untrustedOutput: true` + `X-Untrusted-Output: true`, ADR-0902 / ADR-0904).
ExtendSandboxRequestclassRequest payload for `:extend`: more lifetime for a running sandbox.
ListSandboxFilesRequestclassRequest payload for `:listFiles`: names, sizes and kinds under one workspace directory.
ListSandboxFilesResponseclassResponse from `:listFiles`; the names are the sandbox's own data and so untrusted (ADR-0902).
OpenDevEnvironmentSessionRequestclassGateway-brokered session on a dev environment (ADR-0918; R2 passkey verification required).
OpenSandboxSessionRequestclassGateway-brokered IDE/Console session request (W106; R2 passkey verification required).
OpenSandboxSessionResponseclassGateway-brokered IDE/Console session response (no public ingress URL exposed; W106).
ReadSandboxFilesRequestclassRequest payload for `:readFiles` (`<= 20 MiB` total per call).
ReadSandboxFilesResponseclassResponse from `:readFiles`; marked untrusted (`untrustedOutput: true` + `X-Untrusted-Output: true`).
ResizeSandboxRequestclassRequest payload for `:resize`: the shape the sandbox has when it next wakes.
RestoreSandboxSnapshotResponseclassWhat `:restore` wrote back into the running sandbox.
SandboxclassEphemeral isolated sandbox running untrusted agent code in the `UNTRUSTED` node pool (ADR-0904, ADR-0718).
SandboxEgressModeenumOutbound network egress policy for a sandbox (ADR-0904 §Egress).
SandboxFileEntryclassOne workspace file entry for `:writeFiles` or `:readFiles`.
SandboxFileListingclassOne entry of a sandbox workspace listing (`:listFiles`): a file, a directory or a symbolic link, never its content.
SandboxMergePatchUpdateclassEphemeral isolated sandbox running untrusted agent code in the `UNTRUSTED` node pool (ADR-0904, ADR-0718).
SandboxMergePatchUpdate_allowedEgressDomainsMember1class
SandboxMergePatchUpdate_displayNameMember1class
SandboxMergePatchUpdate_idleTimeoutSecondsMember1class
SandboxPortclassOne port declared on a sandbox or dev environment (ADR-0918). Only a declared port can be reached through a `port` session; the gateway relays to nothing else.
SandboxPortListclassThe ports declared on a sandbox or dev environment.
SandboxSessionEndclassHow a session ended and what was saved back (W106; ADR-0718).
SandboxSessionInfoclassOne console-gateway session of a sandbox (W106; ADR-0718): who opened it, when, and how it ended. The ticket and its digest are never listed.
SandboxShapeenumSandbox compute shape (ADR-0904 §Shapes): `s1` (1 vCPU / 1 GiB), `s2` (2 vCPU / 4 GiB), `s4` (4 vCPU / 8 GiB).
SandboxSnapshotclassOne saved copy of a sandbox's workspace (`/workspace`): the files' names, modes and content digests, with the bytes kept in the project's content store.
SandboxStateenumSandbox lifecycle states.
SandboxTemplateenumSandbox session template (ADR-0718; brokered via console gateway, never a public URL).
SandboxTierenumSandbox isolation tier (ADR-0904 §Isolation).
Sandbox_annotationsclassAt most 256 KiB in all; never policy input.
Sandbox_labelsclassAt most 64.
SaveSandboxWorkspaceResponseclassWorkspace auto-save request/response models (W106).
WriteSandboxFilesRequestclassRequest payload for `:writeFiles` (`<= 20 MiB` total per call).
WriteSandboxFilesResponseclassResponse from `:writeFiles`.