{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aristocles-com-au/json-schema/aristocles-com-au-api-response-usage-dashboard-schema.json",
  "title": "ApiResponse[UsageDashboard]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aristocles-com-au-usage-api-openapi.yml#/components/schemas/ApiResponse_UsageDashboard_",
  "properties": {
    "data": {
      "$ref": "#/$defs/UsageDashboard"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "EndpointUsage": {
      "properties": {
        "endpoint": {
          "type": "string",
          "title": "Endpoint"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "endpoint",
        "count"
      ],
      "title": "EndpointUsage"
    },
    "Meta": {
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp"
        },
        "source": {
          "type": "string",
          "title": "Source",
          "default": "aristocles-api"
        },
        "version": {
          "type": "string",
          "title": "Version",
          "default": "1.0"
        }
      },
      "type": "object",
      "title": "Meta"
    },
    "UsageDashboard": {
      "properties": {
        "tier": {
          "type": "string",
          "title": "Tier"
        },
        "daily_limit": {
          "type": "integer",
          "title": "Daily Limit"
        },
        "requests_today": {
          "type": "integer",
          "title": "Requests Today"
        },
        "remaining": {
          "type": "integer",
          "title": "Remaining"
        },
        "endpoints": {
          "items": {
            "$ref": "#/$defs/EndpointUsage"
          },
          "type": "array",
          "title": "Endpoints"
        }
      },
      "type": "object",
      "required": [
        "tier",
        "daily_limit",
        "requests_today",
        "remaining",
        "endpoints"
      ],
      "title": "UsageDashboard"
    }
  }
}