{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-user-limits-schema.json",
  "title": "UserLimits",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-user-api-openapi.yml#/components/schemas/UserLimits",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "presets": {
      "type": "object",
      "properties": {
        "used": {
          "type": "integer"
        },
        "limit": {
          "type": "integer"
        }
      }
    },
    "assets": {
      "type": "object",
      "properties": {
        "used": {
          "type": "integer"
        },
        "limit": {
          "type": "integer"
        }
      }
    },
    "upgrade_url": {
      "type": "string",
      "description": "Legacy alias of packages_url."
    },
    "credits": {
      "type": "object",
      "description": "Credit balance — the only thing a render actually fails on.",
      "properties": {
        "balance": {
          "type": "number"
        },
        "spent_on_renders": {
          "type": "number"
        },
        "grant_withheld": {
          "type": "boolean",
          "description": "Starter credits are held until the email is confirmed."
        }
      }
    },
    "packages_url": {
      "type": "string",
      "description": "Where to buy credits."
    },
    "email_verified": {
      "type": "boolean"
    }
  }
}