{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-primary-event-list-schema.json",
  "title": "PrimaryEventList",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-webhooks-api-openapi.yml#/components/schemas/PrimaryEventList",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "total_results": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PrimaryEvent"
      }
    }
  },
  "$defs": {
    "PrimaryEvent": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "primary_event"
          ]
        },
        "api_version": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "2.0.0"
          ]
        },
        "id": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 255
        },
        "title": {
          "type": "string",
          "maxLength": 1023
        },
        "summary": {
          "type": "string",
          "maxLength": 65535
        },
        "scope": {
          "type": "string"
        },
        "event": {
          "type": "string"
        },
        "filter": {
          "type": "string"
        },
        "event_type": {
          "type": "string",
          "enum": [
            "create",
            "update",
            "delete"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "queued",
            "snapshotting",
            "tombstone"
          ]
        },
        "gateway_payload": {
          "type": "object"
        },
        "consumer_payload": {
          "type": "object"
        },
        "generated_at": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "ids_in_gateway_payload": {
          "type": "array",
          "readOnly": true,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "resourceUrl": {
                "type": "string",
                "format": "uri-reference"
              },
              "resourceType": {
                "type": "string"
              }
            }
          }
        },
        "ids_in_consumer_payload": {
          "type": "array",
          "readOnly": true,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "resourceUrl": {
                "type": "string",
                "format": "uri-reference"
              },
              "resourceType": {
                "type": "string"
              }
            }
          }
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "readOnly": true,
          "format": "uri"
        }
      }
    }
  }
}