{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/leadstrategist-dk/json-schema/leadstrategist-dk-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leadstrategist-dk-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "calls_used": {
      "type": "integer"
    },
    "calls_limit": {
      "type": [
        "integer",
        "null"
      ]
    },
    "calls_remaining": {
      "type": [
        "integer",
        "null"
      ]
    },
    "prepaid_credits": {
      "type": "integer",
      "description": "Prepaid credits left; used after the monthly allowance or the free trial."
    },
    "paid_through": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "allowed": {
      "type": "boolean"
    },
    "beta": {
      "type": "object",
      "description": "Present during the free beta: the monthly beta allowance.",
      "properties": {
        "monthly_credits": {
          "type": "integer"
        },
        "resets": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "trial": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "started_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "ends_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "card_required": {
          "type": "boolean",
          "description": "True while a card-required trial waits for a payment card."
        },
        "note": {
          "type": "string"
        }
      }
    }
  }
}