diff --git a/spec/openapi.infra.yaml b/spec/openapi.infra.yaml index f32b6ee17..aa6d23c48 100644 --- a/spec/openapi.infra.yaml +++ b/spec/openapi.infra.yaml @@ -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 @@ -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 diff --git a/src/types/infra-api.types.ts b/src/types/infra-api.types.ts index 6b47362a1..d0b15aeb0 100644 --- a/src/types/infra-api.types.ts +++ b/src/types/infra-api.types.ts @@ -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: { @@ -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: {