Skip to content

run-space

Generated reference page for spec/v1/schemas/resources/run-space.json.

Metadata

  • Type: JSON Schema
  • Source: spec/v1/schemas/resources/run-space.json
  • Raw: View Raw

Summary

Source

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-service.spec/v1/schemas/resources/run-space.json",
  "type": "object",
  "additionalProperties": false,
  "required": ["runSpaceId", "orgId", "providerType", "runEnv", "kind", "status", "createdAt", "updatedAt"],
  "properties": {
    "runSpaceId": {
      "$ref": "../common/identity.json#/$defs/runSpaceId"
    },
    "orgId": {
      "$ref": "../common/identity.json#/$defs/orgId"
    },
    "providerType": {
      "$ref": "../common/enums.json#/$defs/providerType"
    },
    "runEnv": {
      "$ref": "../common/enums.json#/$defs/taskRunEnv"
    },
    "kind": {
      "type": "string",
      "enum": ["workspace", "instance", "slot", "invocation", "custom"]
    },
    "status": {
      "type": "string",
      "enum": ["provisioning", "ready", "occupied", "reclaiming", "terminated", "failed"]
    },
    "currentSessionId": {
      "$ref": "../common/identity.json#/$defs/sessionId"
    },
    "currentRunId": {
      "$ref": "../common/identity.json#/$defs/runId"
    },
    "currentAttemptId": {
      "$ref": "../common/identity.json#/$defs/attemptId"
    },
    "locator": {
      "type": "object",
      "additionalProperties": true
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "createdAt": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    },
    "updatedAt": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    },
    "terminatedAt": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    }
  }
}

白皮书与规范内容以仓库真源为准。