{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentberg-ai/json-schema/agentberg-ai-upgrade-telemetry-schema.json",
  "title": "UpgradeTelemetry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentberg-ai-telemetry-api-openapi.yml#/components/schemas/UpgradeTelemetry",
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Agent Id"
    },
    "from_version": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "From Version"
    },
    "to_version": {
      "type": "string",
      "maxLength": 20,
      "title": "To Version"
    },
    "files_applied": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Files Applied"
    },
    "files_protected": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Files Protected"
    },
    "heartbeat_ok": {
      "type": "boolean",
      "title": "Heartbeat Ok",
      "default": false
    },
    "error": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "to_version"
  ]
}