{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/domainlab-app/json-schema/domainlab-app-event-schema.json",
  "title": "Event",
  "description": "A detected change event",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/domainlab-app-openapi.json#/components/schemas/Event",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "detected_at": {
      "type": "string",
      "format": "date-time"
    },
    "description": {
      "type": "string"
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "payload": {
      "type": [
        "object",
        "null"
      ],
      "description": "Before/after detail of the change"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "event_type": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "domain": {
      "type": "object",
      "description": "Present on GET /events (cross-domain listing) only",
      "properties": {
        "id": {
          "type": "integer"
        },
        "domain_name": {
          "type": "string"
        }
      }
    }
  }
}