{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudbrowser-tv/json-schema/cloudbrowser-tv-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudbrowser-tv-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "basic",
        "pro"
      ]
    },
    "includedSeconds": {
      "type": "integer"
    },
    "usedSeconds": {
      "type": "integer"
    },
    "runningBrowsers": {
      "type": "integer",
      "description": "Running or reserved slots, including pending or uncertain operations."
    },
    "concurrencyLimit": {
      "type": "integer"
    },
    "periodStartsAt": {
      "type": "string",
      "format": "date-time"
    },
    "periodEndsAt": {
      "type": "string",
      "format": "date-time"
    },
    "period": {
      "type": "string",
      "description": "UTC calendar month for Free; subscription billing period for paid plans."
    },
    "billingEnabled": {
      "type": "boolean"
    },
    "remainingSeconds": {
      "type": "integer",
      "minimum": 0
    },
    "estimatedOverageCents": {
      "type": "integer",
      "minimum": 0
    },
    "canManageBilling": {
      "type": "boolean"
    },
    "hasBillingAccount": {
      "type": "boolean"
    },
    "cancelAtPeriodEnd": {
      "type": "boolean"
    },
    "billingIssue": {
      "type": "boolean"
    },
    "pendingPlan": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "free",
        "basic",
        "pro",
        null
      ]
    },
    "subscriptionStatus": {
      "type": "string"
    },
    "billingMode": {
      "type": "string"
    },
    "computeBlock": {
      "type": [
        "object",
        "null"
      ],
      "description": "Current billing restriction on starting/resuming compute, independent of historical browser pause reasons. Paid overage alone does not block compute. Concurrency admission is checked separately.",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "free_allowance_exhausted",
            "payment_required"
          ]
        },
        "message": {
          "type": "string"
        },
        "resetsAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}