{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/distribea-com/json-schema/distribea-com-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/distribea-com-account-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "required": [
    "plan",
    "tier",
    "credits",
    "downloads_today",
    "protected_channels"
  ],
  "properties": {
    "plan": {
      "type": "string"
    },
    "tier": {
      "type": "string",
      "enum": [
        "free",
        "trial",
        "paid"
      ]
    },
    "credits": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Credit balance."
    },
    "downloads_today": {
      "type": "integer"
    },
    "protected_channels": {
      "type": "integer"
    },
    "upgrade_url": {
      "type": "string",
      "format": "uri",
      "description": "Present when the account has no paid plan."
    }
  }
}