{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-vaults-api-openapi.yml#/components/schemas/Event",
  "type": "object",
  "properties": {
    "id": {
      "type": "number"
    },
    "vault_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "curator_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "protocol_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "protocol_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "chain_id": {
      "type": [
        "number",
        "null"
      ]
    },
    "event_type": {
      "type": "string"
    },
    "severity": {
      "type": "string",
      "enum": [
        "Info",
        "Warning",
        "Critical"
      ]
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "tx_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "block_number": {
      "type": [
        "number",
        "null"
      ]
    },
    "links": {},
    "occurred_at": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "incident_scope": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "vault",
        "protocol",
        "curator",
        null
      ]
    },
    "incident_severity": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "minor",
        "major",
        null
      ]
    },
    "loss_amount_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "remediation_status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "resolved",
        "unresolved",
        null
      ]
    },
    "user_compensation": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "full",
        "partial",
        "none",
        null
      ]
    },
    "post_mortem_url": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "vault_id",
    "curator_id",
    "protocol_id",
    "protocol_version",
    "chain_id",
    "event_type",
    "severity",
    "title",
    "description",
    "tx_hash",
    "block_number",
    "occurred_at",
    "created_at",
    "incident_scope",
    "incident_severity",
    "loss_amount_usd",
    "remediation_status",
    "user_compensation",
    "post_mortem_url"
  ]
}