{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/rhythm.schema.json",
  "title": "Rhythm event",
  "type": "object",
  "required": ["sequence", "name", "category"],
  "properties": {
    "sequence": { "type": "integer", "minimum": 0, "x-heart-privacy": "public" },
    "name": {
      "type": "string",
      "pattern": "^[a-z0-9_-]+(\\.[a-z0-9_-]+)+$",
      "x-heart-privacy": "public"
    },
    "category": {
      "enum": ["system", "state", "component", "ai", "tending", "evolving", "valve", "circulation", "security", "domain"],
      "x-heart-privacy": "public"
    },
    "severity": { "$ref": "common.schema.json#/$defs/severity", "x-heart-privacy": "public" },
    "component": { "type": "string", "x-heart-privacy": "internal" },
    "summary": { "type": "string", "x-heart-privacy": "internal" },
    "attributes": { "type": "object", "x-heart-privacy": "private" },
    "ext": { "$ref": "common.schema.json#/$defs/ext", "x-heart-privacy": "private" }
  }
}
