The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
openapi: 3.1.0
info:
title: BoxLite Apps API
version: 1.0.0
description: Organization-scoped App management used by the BoxLite CLI. Use a platform user token or an organization API key with the indicated Apps permission.
servers:
- url: /api/v1/{organizationId}
variables:
organizationId: { default: your-organization }
security: [{ bearer: [] }]
paths:
/apps:
get:
operationId: listApps
summary: List active Apps in this organization
x-permissions: [read:apps]
responses:
'200': { description: Active Apps, content: { application/json: { schema: { type: array, items: { $ref: '#/components/schemas/AppSummary' } } } } }
default: { $ref: '#/components/responses/Error' }
post:
operationId: createApp
summary: Create an App with its main environment
x-permissions: [write:apps]
requestBody:
required: true
content:
application/json: { schema: { type: object, required: [name], properties: { name: { type: string } } } }
responses:
'201': { description: App details and deployment guide, content: { application/json: { schema: { type: object, required: [app, prompt], properties: { app: { $ref: '#/components/schemas/AppSummary' }, prompt: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}:
parameters: [{ $ref: '#/components/parameters/App' }]
get:
operationId: getApp
summary: Read App metadata, sign-in providers and environment status
x-permissions: [read:apps]
responses:
'200': { description: App status, content: { application/json: { schema: { type: object, required: [name, envs, sign_in_providers], properties: { name: { type: string }, envs: { type: array, items: { $ref: '#/components/schemas/Environment' } }, sign_in_providers: { type: array, items: { type: string } } } } } } }
default: { $ref: '#/components/responses/Error' }
delete:
operationId: deleteApp
summary: Soft-delete the App during its retention period
x-permissions: [delete:apps]
responses:
'204': { description: App deleted }
default: { $ref: '#/components/responses/Error' }
/apps/deleted:
get:
operationId: listDeletedApps
summary: List Apps in their recovery period
x-permissions: [read:apps]
responses:
'200': { description: Recoverable Apps, content: { application/json: { schema: { type: array, items: { type: object, required: [name, deletedAt, purgeAfter], properties: { name: { type: string }, deletedAt: { type: string }, purgeAfter: { type: string } } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/deleted/{name}/restore:
parameters: [{ $ref: '#/components/parameters/Name' }]
post:
operationId: restoreApp
summary: Restore a deleted App before its purge date
x-permissions: [write:apps]
responses:
'200': { description: Restored App, content: { application/json: { schema: { $ref: '#/components/schemas/AppSummary' } } } }
default: { $ref: '#/components/responses/Error' }
/apps/deleted/{name}:
parameters: [{ $ref: '#/components/parameters/Name' }]
delete:
operationId: purgeApp
summary: Permanently purge an App already in its recovery period
x-permissions: [delete:apps]
responses:
'204': { description: App purged }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/uploads:
parameters: [{ $ref: '#/components/parameters/App' }]
post:
operationId: createUpload
summary: Submit a source manifest and discover missing blobs
x-permissions: [write:apps]
requestBody:
required: true
content:
application/json: { schema: { type: object, required: [manifest], properties: { manifest: { type: array, items: { $ref: '#/components/schemas/SourceFile' } } } } }
responses:
'200': { description: Upload and missing digests, content: { application/json: { schema: { type: object, required: [upload_id, missing], properties: { upload_id: { type: string }, missing: { type: array, items: { $ref: '#/components/schemas/Digest' } } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/uploads/{id}/files/{sha}:
parameters:
- { $ref: '#/components/parameters/App' }
- { $ref: '#/components/parameters/UploadId' }
- { name: sha, in: path, required: true, schema: { $ref: '#/components/schemas/Digest' } }
put:
operationId: putUploadFile
summary: Upload a missing file by its manifest digest
x-permissions: [write:apps]
requestBody: { required: true, content: { application/octet-stream: { schema: { type: string, format: binary } } } }
responses:
'200': { description: Stored blob, content: { application/json: { schema: { type: object, required: [sha256, bytes, deduped], properties: { sha256: { $ref: '#/components/schemas/Digest' }, bytes: { type: integer }, deduped: { type: boolean } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/uploads/{id}/complete:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/UploadId' }]
post:
operationId: completeUpload
summary: Finalize a source snapshot after uploading its blobs
x-permissions: [write:apps]
responses:
'200': { description: Source snapshot, content: { application/json: { schema: { type: object, required: [snapshot_id, files, bytes], properties: { snapshot_id: { type: string }, files: { type: integer }, bytes: { type: integer } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getEnvironment
summary: Read status and spec version of one environment
x-permissions: [read:apps]
responses:
'200': { description: Environment status, content: { application/json: { schema: { $ref: '#/components/schemas/Environment' } } } }
default: { $ref: '#/components/responses/Error' }
delete:
operationId: deleteEnvironment
summary: Remove an environment other than main
x-permissions: [write:apps]
responses:
'200': { description: Deleted environment, content: { application/json: { schema: { type: object, required: [deleted], properties: { deleted: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/plan:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: planDeployment
summary: Validate the proposed manifest and compare it to the running configuration
x-permissions: [write:apps]
requestBody: { required: true, content: { application/json: { schema: { $ref: '#/components/schemas/PlanRequest' } } } }
responses:
'200': { description: Validation findings and proposed changes, content: { application/json: { schema: { $ref: '#/components/schemas/Plan' } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/deployments:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: submitDeployment
summary: Deploy a snapshot, apply configuration, or roll back to a previous deployment
x-permissions: [write:apps]
parameters: [{ name: Idempotency-Key, in: header, schema: { type: string, maxLength: 200 } }]
requestBody: { required: true, content: { application/json: { schema: { $ref: '#/components/schemas/DeploymentRequest' } } } }
responses:
'202': { $ref: '#/components/responses/Deployment' }
'200': { $ref: '#/components/responses/Deployment' }
default: { $ref: '#/components/responses/Error' }
get:
operationId: listDeployments
summary: List deployments in reverse chronological order
x-permissions: [read:apps]
parameters: [{ $ref: '#/components/parameters/Limit' }]
responses:
'200': { description: Deployment history, content: { application/json: { schema: { type: array, items: { $ref: '#/components/schemas/Deployment' } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/deployments/{n}:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }, { $ref: '#/components/parameters/Number' }]
get:
operationId: getDeployment
summary: Read a deployment's status, steps and diagnostics
x-permissions: [read:apps]
responses:
'200': { $ref: '#/components/responses/Deployment' }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/deployments/{n}/events:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }, { $ref: '#/components/parameters/Number' }]
get:
operationId: followDeployment
summary: Replay deployment events, then follow until the done event
x-permissions: [read:apps]
parameters: [{ name: Last-Event-ID, in: header, schema: { type: integer, minimum: 0 } }]
responses:
'200': { description: SSE events with numeric IDs and JSON data, content: { text/event-stream: { schema: { type: string } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/logs:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getLogs
summary: Read service logs or follow the stream of new lines
x-permissions: [read:apps]
parameters:
- { name: source, in: query, schema: { type: string } }
- { name: since, in: query, schema: { type: string } }
- { $ref: '#/components/parameters/Limit' }
- { name: follow, in: query, schema: { type: string, enum: ['1'] }, description: Select the SSE response. }
- { name: box, in: query, schema: { type: string, enum: ['1'] }, description: Read the supervisor buffer as JSON. }
responses:
'200':
description: Historical log records or SSE log events
content:
application/json:
schema:
oneOf:
- { type: array, items: { $ref: '#/components/schemas/Log' } }
- { type: object, required: [lines], properties: { lines: { type: array, items: { $ref: '#/components/schemas/Log' } } } }
text/event-stream: { schema: { type: string } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/logs/search:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: searchLogs
summary: Filter logs by text, severity, time or deployment
x-permissions: [read:apps]
parameters:
- { name: source, in: query, schema: { type: string } }
- { name: level, in: query, schema: { enum: [error, warn, info] } }
- { name: since, in: query, schema: { type: string } }
- { name: until, in: query, schema: { type: string } }
- { name: deployment, in: query, schema: { type: integer } }
- { $ref: '#/components/parameters/Limit' }
responses:
'200': { description: Matching log records, content: { application/json: { schema: { type: array, items: { $ref: '#/components/schemas/Log' } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/vars:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: listVariables
summary: List resolved variable metadata and visible values
x-permissions: [read:apps]
responses:
'200': { description: Variables and secret references, content: { application/json: { schema: { type: array, items: { $ref: '#/components/schemas/Variable' } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/actions:
parameters: [{ $ref: '#/components/parameters/App' }]
post:
operationId: updateVariables
summary: Apply variable and secret changes to an environment
x-permissions: [write:apps]
parameters: [{ name: env, in: query, schema: { type: string, default: main } }]
requestBody: { required: true, content: { application/json: { schema: { $ref: '#/components/schemas/VariableChange' } } } }
responses:
'200': { description: Updated App details, content: { application/json: { schema: { $ref: '#/components/schemas/AppSummary' } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/secrets/{name}:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Name' }]
put:
operationId: setSecret
summary: Store an App secret for use by a manifest reference
x-permissions: [write:apps]
requestBody: { required: true, content: { application/json: { schema: { type: object, required: [value], properties: { value: { type: string, writeOnly: true } } } } } }
responses:
'200': { description: Secret metadata, content: { application/json: { schema: { type: object, required: [name], properties: { name: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/db:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getDatabase
summary: Get database availability and its name
x-permissions: [read:apps]
responses:
'200': { description: Database metadata, content: { application/json: { schema: { type: object, required: [status], properties: { status: { enum: [none, unknown, ready] }, database: { type: string }, size_bytes: { type: [integer, 'null'] } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/db/connect:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: connectDatabase
summary: Upgrade to a binary PostgreSQL WebSocket, one database session per connection
x-permissions: [read:apps, write:apps]
parameters:
- { name: write, in: query, schema: { type: string, enum: ['1'] }, description: Use the database owner and require write permission. Omit for a reader connection. }
- { name: X-BoxLite-Proxy-Session, in: header, schema: { type: string, pattern: '^[A-Za-z0-9-]{8,64}$' } }
responses:
'101': { description: Switching to WebSocket. Each binary message carries PostgreSQL wire bytes. }
'403': { description: Organization credentials or permissions rejected during the upgrade. }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/dev-env:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getDevEnvironment
summary: Get runtime environment variables and the name of an optional hosted database
x-permissions: [write:apps]
responses:
'200': { description: Development environment, content: { application/json: { schema: { type: object, required: [env, database], properties: { env: { type: object, additionalProperties: { type: string } }, database: { type: [object, 'null'], properties: { name: { type: string } }, required: [name] } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/open-ticket:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: createOpenTicket
summary: Open the App as the current user or a specified test identity
x-permissions: [read:apps, write:apps]
requestBody:
content:
application/json: { schema: { type: object, properties: { next: { type: string }, as: { type: string, format: email, description: Requires write permission. }, role: { enum: [owner, user] } } } }
responses:
'201': { description: Single-use URL, content: { application/json: { schema: { type: object, required: [url], properties: { url: { type: string, format: uri }, expires_at: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/auth/test-sessions:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: createTestSession
summary: Issue an end-user test session for the workload origin
x-permissions: [write:apps]
requestBody:
required: true
content:
application/json: { schema: { type: object, required: [email], properties: { email: { type: string, format: email }, role: { enum: [owner, user] } } } }
responses:
'201': { description: Workload session cookie, content: { application/json: { schema: { type: object, required: [cookie], properties: { cookie: { type: string }, expires_at: { type: string }, role: { enum: [owner, user] } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/view:
parameters: [{ $ref: '#/components/parameters/App' }]
get:
operationId: getAppView
summary: Read the App overview for an environment
x-permissions: [read:apps]
parameters: [{ name: env, in: query, schema: { type: string } }]
responses:
'200': { description: Read the App overview for an environment, content: { application/json: { schema: { $ref: '#/components/schemas/AppSummary' } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/spec:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getEnvironmentSpec
summary: Read the effective manifest and assigned resources
x-permissions: [read:apps]
parameters: [{ name: version, in: query, schema: { type: integer } }]
responses:
'200': { description: Read the effective manifest and assigned resources, content: { application/json: { schema: { type: object, required: [version], properties: { version: { type: integer }, app: { type: string }, environment: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/services:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: listServices
summary: Read service state for an environment
x-permissions: [read:apps]
responses:
'200': { description: Read service state for an environment, content: { application/json: { schema: { type: array, items: { type: object, required: [name, state], properties: { name: { type: string }, state: { type: string } } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/context:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getEnvironmentContext
summary: Read the environment context for development and diagnostics
x-permissions: [read:apps]
responses:
'200': { description: Read the environment context for development and diagnostics, content: { application/json: { schema: { type: object, required: [app, env], properties: { app: { type: string }, env: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/deployments/{n}/source:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }, { $ref: '#/components/parameters/Number' }]
get:
operationId: getDeploymentSource
summary: Download the deployed source as a gzip-compressed tar archive
x-permissions: [read:apps]
responses:
'200': { description: Download the deployed source as a gzip-compressed tar archive, content: { application/gzip: { schema: { type: string, format: binary } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/deployments/{n}:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Number' }]
get:
operationId: getDeploymentView
summary: Read deployment steps and classified failure details
x-permissions: [read:apps]
parameters: [{ name: env, in: query, schema: { type: string } }]
responses:
'200': { description: Read deployment steps and classified failure details, content: { application/json: { schema: { type: object, properties: { number: { type: integer }, failure: { type: [object, 'null'] } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/logs:
parameters: [{ $ref: '#/components/parameters/App' }]
get:
operationId: getDashboardLogs
summary: Read App activity and visitor request logs
x-permissions: [read:apps]
parameters: [{ name: env, in: query, schema: { type: string } }, { name: since, in: query, schema: { type: string } }, { $ref: '#/components/parameters/Limit' }, { name: deployment, in: query, schema: { type: integer } }]
responses:
'200': { description: Read App activity and visitor request logs, content: { application/json: { schema: { type: array, items: { type: object, properties: { source: { type: string }, line: { type: string } } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/db/restore:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: restoreDatabase
summary: Restore a database snapshot or a point in time
x-permissions: [write:apps]
requestBody:
required: true
content:
application/json: { schema: { type: object, anyOf: [{ required: [snapshot] }, { required: [to] }], properties: { snapshot: { type: string }, to: { type: string, format: date-time } } } }
responses:
'200': { description: Restore point and pre-restore branch, content: { application/json: { schema: { type: object, required: [restored_to, preserved_as], properties: { restored_to: { type: string }, preserved_as: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/db/applied:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: getAppliedMigrations
summary: Read migration records applied to the environment database
x-permissions: [read:apps]
responses:
'200': { description: Applied migrations, content: { application/json: { schema: { type: array, items: { type: object, properties: { file: { type: string }, sha256: { type: string } } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/probe:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
get:
operationId: probeEnvironment
summary: Probe the exposed service through the environment's public ingress
x-permissions: [read:apps]
parameters: [{ name: path, in: query, schema: { type: string } }]
responses:
'200': { description: Health probe result, content: { application/json: { schema: { type: object, required: [ok], properties: { ok: { type: boolean }, url: { type: [string, 'null'] }, reason: { type: string } } } } } }
default: { $ref: '#/components/responses/Error' }
/apps/{app}/envs/{env}/db/sql:
parameters: [{ $ref: '#/components/parameters/App' }, { $ref: '#/components/parameters/Env' }]
post:
operationId: runSql
summary: Execute read-only SQL, explain a query, or allow writes explicitly
x-permissions: [read:apps, write:apps]
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [query]
properties:
query: { type: string, minLength: 1, maxLength: 200000 }
write: { type: boolean, description: Requires write permission. Schema changes on main use migrations. }
explain: { type: boolean }
responses:
'200':
description: Column names, rows and query execution statistics
content:
application/json:
schema:
type: object
required: [columns, rows, row_count, elapsed_ms, truncated]
properties:
columns: { type: array, items: { type: string } }
rows: { type: array, items: { type: array, items: {} } }
row_count: { type: integer }
elapsed_ms: { type: number }
truncated: { type: boolean }
default: { $ref: '#/components/responses/Error' }
components:
securitySchemes:
bearer: { type: http, scheme: bearer }
parameters:
App: { name: app, in: path, required: true, description: App name or ID, schema: { type: string } }
Env: { name: env, in: path, required: true, schema: { type: string } }
Name: { name: name, in: path, required: true, schema: { type: string } }
UploadId: { name: id, in: path, required: true, schema: { type: string } }
Number: { name: n, in: path, required: true, schema: { type: integer, minimum: 1 } }
Limit: { name: limit, in: query, schema: { type: integer, minimum: 1 } }
responses:
Error:
description: Organization authorization, resource, validation or service error
content:
application/json:
schema:
type: object
required: [error]
properties:
error: { type: object, required: [code, message], properties: { code: { type: string }, message: { type: string }, next: { type: string }, request_id: { type: string } } }
Deployment:
description: Deployment and its current state
content:
application/json: { schema: { $ref: '#/components/schemas/Deployment' } }
schemas:
Digest: { type: string, pattern: '^[0-9a-f]{64}$' }
AppSummary:
type: object
required: [id, name, status]
properties: { id: { type: string }, name: { type: string }, status: { type: string }, url: { type: [string, 'null'] } }
Environment:
type: object
required: [name, status, url, spec_version]
properties:
name: { type: string }
status: { type: string }
url: { type: [string, 'null'] }
spec_version: { type: [integer, 'null'] }
live_deployment: { type: [object, 'null'], properties: { number: { type: integer } } }
latest_deployment: { type: [object, 'null'], properties: { number: { type: integer }, status: { type: string } } }
SourceFile:
type: object
required: [path, size, mode, sha256]
properties:
path: { type: string, minLength: 1, maxLength: 1024, description: Normalized relative POSIX path }
size: { type: integer, minimum: 0 }
mode: { type: integer, minimum: 0, maximum: 4095 }
sha256: { $ref: '#/components/schemas/Digest' }
Manifest:
description: Raw boxlite.toml text or a normalized, environment-specific manifest.
type: [object, string]
properties:
app: { type: string }
environment: { type: string }
runtime: { type: object, properties: { image: { enum: [node, python, base] }, size: { type: string }, build: { type: array, items: { type: string } }, output: { type: [string, 'null'] } } }
services: { type: array, items: { type: object, required: [name], properties: { name: { type: string }, command: { type: string }, static: { type: string }, port: { type: integer }, health: { type: string } } } }
database: { type: [object, 'null'], properties: { migrations: { type: string } } }
variables: { $ref: '#/components/schemas/StringMap' }
secrets: { $ref: '#/components/schemas/StringMap' }
StringMap: { type: object, additionalProperties: { type: string } }
Migrations:
type: array
maxItems: 1000
items: { type: object, required: [file, sha256, sql], properties: { file: { type: string }, sha256: { $ref: '#/components/schemas/Digest' }, sql: { type: string } } }
PlanRequest:
type: object
required: [manifest]
properties:
manifest: { $ref: '#/components/schemas/Manifest' }
base_version: { type: integer, minimum: 0 }
migrations: { $ref: '#/components/schemas/Migrations' }
upload: { type: object, properties: { files: { type: integer }, bytes: { type: integer }, warnings: { type: array, items: {} } } }
Plan:
type: object
required: [latest_version, stale, changes, errors, warnings]
properties:
latest_version: { type: integer }
stale: { type: boolean }
changes: { type: array, items: { type: object, required: [kind, path], properties: { kind: { type: string }, path: { type: string } } } }
errors: { $ref: '#/components/schemas/Diagnostics' }
warnings: { $ref: '#/components/schemas/Diagnostics' }
Diagnostics: { type: array, items: { type: object, required: [rule, message], properties: { rule: { type: string }, message: { type: string } } } }
DeploymentRequest:
type: object
oneOf:
- required: [kind, manifest, snapshot_id]
properties: { kind: { const: deploy } }
- required: [kind, manifest]
properties: { kind: { const: apply } }
- required: [kind, to]
properties: { kind: { const: rollback } }
properties:
kind: { enum: [deploy, apply, rollback] }
manifest: { $ref: '#/components/schemas/Manifest' }
snapshot_id: { type: string }
base_version: { type: integer, minimum: 0 }
migrations: { $ref: '#/components/schemas/Migrations' }
message: { type: string, maxLength: 500 }
force: { type: boolean }
to: { type: integer, minimum: 1 }
with_database: { type: boolean }
Deployment:
type: object
required: [number, kind, status]
properties:
number: { type: integer }
kind: { enum: [deploy, apply, rollback] }
status: { type: string }
spec_version: { type: [integer, 'null'] }
snapshot_id: { type: [string, 'null'] }
error: { type: [object, 'null'] }
Log:
type: object
required: [ts, source, line]
properties: { id: { type: integer }, ts: { type: string }, source: { type: string }, level: { type: string }, line: { type: string }, deployment: { type: [integer, 'null'] } }
Variable:
type: object
required: [name, value, source, secret, resolved]
properties: { name: { type: string }, value: { type: [string, 'null'] }, source: { type: string }, secret: { type: boolean }, resolved: { type: boolean } }
VariableChange:
type: object
oneOf:
- required: [type, name, value]
properties: { type: { enum: [setVariable, addSecret] }, name: { type: string }, value: { type: string } }
- required: [type, name]
properties: { type: { enum: [removeVariable, removeSecret] }, name: { type: string } }
- required: [type, name, from]
properties: { type: { const: referenceSecret }, name: { type: string }, from: { type: string } }
- required: [type, values]
properties: { type: { const: importVariables }, values: { $ref: '#/components/schemas/StringMap' } }