{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kibo-commerce/main/json-schema/kibo-commerce-history-collection-schema.json",
  "title": "HistoryCollection",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kibo-commerce-audit-logs-openapi.yml#/components/schemas/HistoryCollection",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/History"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "pageCount": {
      "format": "int32",
      "type": "integer"
    },
    "pageSize": {
      "format": "int32",
      "type": "integer"
    },
    "startIndex": {
      "format": "int32",
      "type": "integer"
    },
    "totalCount": {
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "History": {
      "properties": {
        "action": {
          "type": [
            "string",
            "null"
          ]
        },
        "appKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "correlationId": {
          "type": [
            "string",
            "null"
          ]
        },
        "entityId": {
          "type": [
            "string",
            "null"
          ]
        },
        "entityType": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "initiatingAppId": {
          "type": [
            "string",
            "null"
          ]
        },
        "ipAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "objectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "siteId": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "tenantId": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "timestamp": {
          "format": "date-time",
          "type": "string"
        },
        "userId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}