Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions spec/openapi.infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,20 @@ components:
type: string
description: Optional name for the snapshot template. If a snapshot template with this name already exists, a new build will be assigned to the existing template instead of creating a new one.

SandboxPauseRequest:
type: object
properties:
memory:
type: boolean
default: true
description: >-
Whether to capture a full memory snapshot. When false, only the
filesystem is persisted and resuming the sandbox cold-boots
(reboots) it from disk, losing in-memory state, running processes,
and open connections. Resume it with an explicit request (connect or
resume); auto-resume, which can be triggered by arbitrary traffic,
refuses such a sandbox. Defaults to true.

TeamMetric:
description: Team metric with timestamp
required:
Expand Down Expand Up @@ -2396,6 +2410,12 @@ paths:
AdminTeamAuth: []
parameters:
- $ref: "#/components/parameters/sandboxID"
requestBody:
required: false
content:
application/json:
schema:
$ref: "#/components/schemas/SandboxPauseRequest"
responses:
"204":
description: The sandbox was paused successfully and can be resumed
Expand Down
13 changes: 12 additions & 1 deletion src/core/shared/contracts/infra-api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,11 @@ export interface paths {
}
cookie?: never
}
requestBody?: never
requestBody?: {
content: {
'application/json': components['schemas']['SandboxPauseRequest']
}
}
responses: {
/** @description The sandbox was paused successfully and can be resumed */
204: {
Expand Down Expand Up @@ -2645,6 +2649,13 @@ export interface components {
/** @description Optional name for the snapshot template. If a snapshot template with this name already exists, a new build will be assigned to the existing template instead of creating a new one. */
name?: string
}
SandboxPauseRequest: {
/**
* @description Whether to capture a full memory snapshot. When false, only the filesystem is persisted and resuming the sandbox cold-boots (reboots) it from disk, losing in-memory state, running processes, and open connections. Resume it with an explicit request (connect or resume); auto-resume, which can be triggered by arbitrary traffic, refuses such a sandbox. Defaults to true.
* @default true
*/
memory: boolean
}
/** @description Team metric with timestamp */
TeamMetric: {
/**
Expand Down
Loading