{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pho-chat/json-schema/pho-chat-event-page-schema.json",
  "title": "EventPage",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pho-chat-openapi.json#/components/schemas/EventPage",
  "type": "object",
  "properties": {
    "object": {
      "const": "list"
    },
    "status": {
      "type": "string"
    },
    "last_seq": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    }
  },
  "$defs": {
    "Event": {
      "type": "object",
      "properties": {
        "seq": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "phase": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Human sentence (Vietnamese today). Key off `type`, not this."
        },
        "step": {
          "type": [
            "string",
            "null"
          ]
        },
        "data": {
          "type": "object"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}