{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/varonis/refs/heads/main/json-schema/varonis-datalert-threat-model-schema.json",
  "title": "ThreatModel",
  "description": "ThreatModel schema from Varonis DatAlert API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the threat model."
    },
    "name": {
      "type": "string",
      "description": "Display name of the threat model."
    },
    "category": {
      "type": "string",
      "description": "Category classification of the threat model aligned with MITRE ATT&CK framework."
    },
    "severity": {
      "type": "string",
      "enum": [
        "Low",
        "Medium",
        "High"
      ],
      "description": "Default severity level assigned to alerts generated by this model."
    },
    "source": {
      "type": "string",
      "description": "Source or origin of the threat model such as built-in or custom."
    }
  }
}