{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compuute-se/json-schema/compuute-se-usage-summary-schema.json",
  "title": "UsageSummary",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leads-compuute-se-openapi.json#/components/schemas/UsageSummary",
  "properties": {
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "monthly_limit": {
      "type": "integer",
      "title": "Monthly Limit"
    },
    "used_this_month": {
      "type": "integer",
      "title": "Used This Month"
    },
    "remaining": {
      "type": "integer",
      "title": "Remaining"
    },
    "reset_at": {
      "type": "string",
      "title": "Reset At"
    },
    "entries": {
      "items": {
        "$ref": "#/$defs/UsageEntry"
      },
      "type": "array",
      "title": "Entries"
    },
    "total_entries": {
      "type": "integer",
      "title": "Total Entries"
    }
  },
  "type": "object",
  "required": [
    "tier",
    "monthly_limit",
    "used_this_month",
    "remaining",
    "reset_at",
    "entries",
    "total_entries"
  ],
  "$defs": {
    "UsageEntry": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "endpoint": {
          "type": "string",
          "title": "Endpoint"
        },
        "leads_returned": {
          "type": "integer",
          "title": "Leads Returned"
        },
        "cost_usd": {
          "type": "number",
          "title": "Cost Usd"
        },
        "request_at": {
          "type": "string",
          "format": "date-time",
          "title": "Request At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "endpoint",
        "leads_returned",
        "cost_usd",
        "request_at"
      ],
      "title": "UsageEntry"
    }
  }
}