{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buyingmesh-com/json-schema/buyingmesh-com-traffic-summary-schema.json",
  "title": "TrafficSummary",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buyingmesh-com-openapi.yaml#/components/schemas/TrafficSummary",
  "type": "object",
  "required": [
    "periodDays",
    "totals",
    "daily",
    "funnel",
    "agents",
    "paths",
    "recent"
  ],
  "properties": {
    "periodDays": {
      "type": "integer"
    },
    "totals": {
      "type": "object",
      "properties": {
        "requests": {
          "type": "integer"
        },
        "agents": {
          "type": "integer"
        },
        "humans": {
          "type": "integer"
        },
        "apiClients": {
          "type": "integer"
        }
      }
    },
    "daily": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "funnel": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "stage": {
            "type": "string"
          },
          "requests": {
            "type": "integer"
          },
          "last_seen": {
            "type": [
              "string",
              "null"
            ]
          },
          "sample": {
            "type": "boolean"
          }
        }
      }
    },
    "agents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "requests": {
            "type": "integer"
          },
          "last_seen": {
            "type": "string"
          }
        }
      }
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "recent": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}