{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/magicmarkets-com/json-schema/magicmarkets-com-heartbeat-list-envelope-schema.json",
  "title": "HeartbeatListEnvelope",
  "description": "List response. Note the data is wrapped under a `heartbeats` key, unlike other list endpoints which return a flat array.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/magicmarkets-com-openapi.yaml#/components/schemas/HeartbeatListEnvelope",
  "type": "object",
  "required": [
    "status",
    "data"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok"
      ]
    },
    "data": {
      "type": "object",
      "required": [
        "heartbeats"
      ],
      "properties": {
        "heartbeats": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HeartbeatResponse"
          }
        }
      }
    }
  },
  "$defs": {
    "HeartbeatResponse": {
      "type": "object",
      "required": [
        "heartbeat_id",
        "expiry_time"
      ],
      "properties": {
        "heartbeat_id": {
          "type": "string"
        },
        "expiry_time": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}