{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/session-exchange-com/json-schema/session-exchange-com-router-heartbeat-request-schema.json",
  "title": "RouterHeartbeatRequest",
  "description": "`POST /fleet/routers/{id}/heartbeat` — observed state from the router itself\n(01 §3.4). Kept in memory only; never contains secret values.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/session-exchange-com-openapi.json#/components/schemas/RouterHeartbeatRequest",
  "properties": {
    "router_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Router Id"
    },
    "build": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Build"
    },
    "image_digest": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Digest"
    },
    "role": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Role"
    },
    "channel": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Channel"
    },
    "config_fingerprint": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Config Fingerprint"
    },
    "env_names_sha256": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Env Names Sha256"
    },
    "posture": {
      "additionalProperties": true,
      "type": "object",
      "title": "Posture"
    },
    "capabilities": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 64,
      "title": "Capabilities"
    },
    "counters": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "number"
          }
        ]
      },
      "type": "object",
      "title": "Counters"
    }
  },
  "type": "object"
}