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
30 changes: 19 additions & 11 deletions spec/openapi.infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,22 +283,19 @@ components:
type: string
description: Specify host mask which will be used for all sandbox requests

SandboxAutoResumePolicy:
type: string
description: Auto-resume policy for paused sandboxes. Default is off.
default: "off"
enum:
- any
- "off"
SandboxAutoResumeEnabled:
type: boolean
description: Auto-resume enabled flag for paused sandboxes. Default false.
default: false

SandboxAutoResumeConfig:
type: object
description: Auto-resume configuration for paused sandboxes. Default is off.
description: Auto-resume configuration for paused sandboxes.
required:
- policy
- enabled
properties:
policy:
$ref: "#/components/schemas/SandboxAutoResumePolicy"
enabled:
$ref: "#/components/schemas/SandboxAutoResumeEnabled"

SandboxLog:
description: Log entry with timestamp and line
Expand Down Expand Up @@ -2074,6 +2071,17 @@ paths:
schema:
$ref: "#/components/schemas/LogsDirection"
description: Direction of the logs that should be returned
- in: query
name: level
schema:
$ref: "#/components/schemas/LogLevel"
description: Minimum log level to return. Logs below this level are excluded
- in: query
name: search
schema:
type: string
maxLength: 256
description: Case-sensitive substring match on log message content
responses:
"200":
description: Successfully returned the sandbox logs
Expand Down
15 changes: 9 additions & 6 deletions src/types/infra-api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ export interface paths {
limit?: number
/** @description Direction of the logs that should be returned */
direction?: components['schemas']['LogsDirection']
/** @description Minimum log level to return. Logs below this level are excluded */
level?: components['schemas']['LogLevel']
/** @description Case-sensitive substring match on log message content */
search?: string
}
header?: never
path: {
Expand Down Expand Up @@ -2203,14 +2207,13 @@ export interface components {
maskRequestHost?: string
}
/**
* @description Auto-resume policy for paused sandboxes. Default is off.
* @default off
* @enum {string}
* @description Auto-resume enabled flag for paused sandboxes. Default false.
* @default false
*/
SandboxAutoResumePolicy: 'any' | 'off'
/** @description Auto-resume configuration for paused sandboxes. Default is off. */
SandboxAutoResumeEnabled: boolean
/** @description Auto-resume configuration for paused sandboxes. */
SandboxAutoResumeConfig: {
policy: components['schemas']['SandboxAutoResumePolicy']
enabled: components['schemas']['SandboxAutoResumeEnabled']
}
/** @description Log entry with timestamp and line */
SandboxLog: {
Expand Down
Loading