{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gainsight/main/json-schema/gainsight-event-input-schema.json",
  "title": "EventInput",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gainsight-events-api-openapi.yml#/components/schemas/EventInput",
  "type": "object",
  "required": [
    "eventType",
    "objectType",
    "operation",
    "payload"
  ],
  "properties": {
    "eventType": {
      "type": "string",
      "description": "Event type identifier"
    },
    "objectType": {
      "type": "string",
      "description": "Object type associated with the event"
    },
    "operation": {
      "type": "string",
      "enum": [
        "INSERT",
        "UPDATE",
        "UPSERT",
        "DELETE"
      ],
      "description": "Operation type"
    },
    "companyId": {
      "type": "string",
      "description": "Associated company Gsid"
    },
    "payload": {
      "type": "object",
      "description": "Event payload data"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Event timestamp"
    },
    "sourceSystem": {
      "type": "string",
      "description": "Source system identifier"
    }
  }
}