{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/usage.schema.json",
  "title": "usage",
  "description": "Model use on one day (UTC), from GET /ai/usage.",
  "type": "object",
  "required": [
    "day"
  ],
  "properties": {
    "day": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "x-heart-privacy": "public"
    },
    "calls": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "inputTokens": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "outputTokens": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "costUsd": {
      "type": "number",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "budgetUsd": {
      "description": "The daily budget in force that day, in US dollars.",
      "type": "number",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
