{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertesiahq/json-schema/vertesiahq-audit-usage-query-schema.json",
  "title": "AuditUsageQuery",
  "description": "Usage trends for an authorized account or project over a half-open interval of at most 366 days.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vertesiahq-audit-trail-api-openapi.yml#/components/schemas/AuditUsageQuery",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string"
    },
    "from": {
      "type": "string",
      "format": "date-time",
      "description": "Inclusive start; defaults to 30 days before to."
    },
    "to": {
      "type": "string",
      "format": "date-time",
      "description": "Exclusive end; defaults to now. Maximum duration: 366 days."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "day",
        "week",
        "month"
      ],
      "description": "UTC calendar buckets. Weeks start Monday. Omitted: daily up to 200 dates, otherwise weekly."
    }
  },
  "additionalProperties": false
}