{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fallax-io/json-schema/fallax-io-event-page-schema.json",
  "title": "EventPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fallax-io-events-api-openapi.yml#/components/schemas/EventPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page."
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "data",
    "nextCursor",
    "hasMore"
  ],
  "$defs": {
    "Event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "occurredAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "campaign": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ]
        },
        "person": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "firstName": {
              "type": [
                "string",
                "null"
              ]
            },
            "lastName": {
              "type": [
                "string",
                "null"
              ]
            },
            "department": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "email",
            "firstName",
            "lastName",
            "department"
          ]
        }
      },
      "required": [
        "id",
        "type",
        "occurredAt",
        "campaign",
        "person"
      ]
    }
  }
}