{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outcometick-com/json-schema/outcometick-com-run-schema.json",
  "title": "Run",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outcometick-com-openapi.json#/components/schemas/Run",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "staging, queued, running, done, failed, ..."
    },
    "language": {
      "type": "string",
      "enum": [
        "python@3.14",
        "nodejs@24"
      ]
    },
    "mode": {
      "type": "string"
    },
    "venue": {
      "type": "string"
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "from": {
      "type": "string",
      "format": "date",
      "description": "UTC day, YYYY-MM-DD"
    },
    "to": {
      "type": "string",
      "format": "date",
      "description": "UTC day, YYYY-MM-DD"
    },
    "market_days": {
      "type": "integer"
    },
    "credits_held": {
      "type": "integer"
    },
    "credits_spent": {
      "type": [
        "integer",
        "null"
      ]
    },
    "rejection": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "report": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "progress": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "queue_position": {
      "type": [
        "integer",
        "null"
      ]
    },
    "archive_available": {
      "type": "boolean"
    },
    "archive_bytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "source_sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_ms": {
      "type": "integer"
    },
    "started_ms": {
      "type": [
        "integer",
        "null"
      ]
    },
    "finished_ms": {
      "type": [
        "integer",
        "null"
      ]
    }
  }
}