{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clousd-com/json-schema/clousd-com-run-schema.json",
  "title": "Run",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clousd-com-openapi.yml#/components/schemas/Run",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "device": {
      "type": "string"
    },
    "devices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "a parent run on several phones"
    },
    "children": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "parent": {
      "type": "string"
    },
    "task": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "created",
        "running",
        "paused",
        "cancelling",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "succeeded": {
      "type": "boolean"
    },
    "answer": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "structured_output": {
      "type": "object"
    },
    "card": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "question",
            "permission"
          ]
        },
        "question": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "action": {
          "type": "string"
        }
      }
    },
    "steps": {
      "type": "integer"
    },
    "seconds": {
      "type": "integer"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "done": {
      "type": "string",
      "format": "date-time"
    }
  }
}