{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Resource identifier returned by the operation."
          },
          "receiptId": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "type": {
            "type": "string",
            "enum": [
              "index.deindexed",
              "index.reindexed"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "source_key": {
            "type": "string"
          },
          "before": {
            "type": "string",
            "enum": [
              "indexed",
              "not_indexed"
            ]
          },
          "after": {
            "type": "string",
            "enum": [
              "indexed",
              "not_indexed"
            ]
          },
          "observation_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        },
        "required": [
          "id",
          "receiptId",
          "type",
          "createdAt",
          "url",
          "source_key",
          "before",
          "after",
          "observation_ids"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "events"
  ],
  "additionalProperties": {}
}
