{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gainsight/main/json-schema/gainsight-page-view-events-page-schema.json",
  "title": "PageViewEventsPage",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gainsight-pageviewevent-api-openapi.yml#/components/schemas/PageViewEventsPage",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of result records",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/PageViewEvent"
      }
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of records matching filters",
      "readOnly": true
    },
    "scrollId": {
      "type": "string",
      "description": "If passed on subsequent requests as the scrollId parameter, will fetch the next page",
      "readOnly": true
    }
  },
  "$defs": {
    "PageViewEvent": {
      "type": "object",
      "required": [
        "identifyId",
        "propertyKey",
        "userType"
      ],
      "properties": {
        "eventId": {
          "type": "string"
        },
        "identifyId": {
          "type": "string"
        },
        "propertyKey": {
          "type": "string"
        },
        "date": {
          "type": "integer",
          "format": "int64"
        },
        "eventType": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "userType": {
          "type": "string",
          "enum": [
            "LEAD",
            "USER",
            "VISITOR",
            "EMPTY_USER_TYPE"
          ]
        },
        "accountId": {
          "type": "string"
        },
        "globalContext": {
          "type": "object"
        },
        "scheme": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "queryString": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "queryParams": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "remoteHost": {
          "type": "string"
        },
        "referrer": {
          "type": "string"
        },
        "screenHeight": {
          "type": "integer",
          "format": "int32"
        },
        "screenWidth": {
          "type": "integer",
          "format": "int32"
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "pageTitle": {
          "type": "string"
        }
      },
      "title": "PageViewEvent",
      "description": "Page Event object"
    }
  }
}