{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/valjeanspecialty/json-schema/valjeanspecialty-event-list-schema.json",
  "title": "EventList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/valjeanspecialty-events-api-openapi.yml#/components/schemas/EventList",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    },
    "next_after": {
      "type": [
        "integer",
        "null"
      ]
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "events",
    "next_after",
    "has_more"
  ],
  "$defs": {
    "Event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Cursor: pass the last one as ?after= to get only newer events."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "type": {
          "type": "string"
        },
        "submission_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "data": {
          "type": "object",
          "description": "Depends on type; see the webhooks section. Status events add status_text in plain words."
        }
      },
      "required": [
        "id",
        "created_at",
        "type",
        "submission_id",
        "data"
      ]
    }
  }
}