{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cliponit-app/json-schema/cliponit-app-quota-schema.json",
  "title": "Quota",
  "description": "Plan limits and current usage. Booleans tell which features the plan unlocks (403 otherwise).",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cliponit-app-openapi.yml#/components/schemas/Quota",
  "type": "object",
  "required": [
    "plan",
    "videos_used",
    "videos_limit",
    "max_bytes",
    "retention_days",
    "searches_today",
    "watermark",
    "logo",
    "premiere_xml",
    "edit_captions",
    "translate",
    "broll_music",
    "api_mcp"
  ],
  "properties": {
    "plan": {
      "$ref": "#/$defs/PlanId"
    },
    "videos_used": {
      "type": "integer",
      "description": "Non-demo videos created this calendar month"
    },
    "videos_limit": {
      "type": "integer",
      "description": "Monthly video quota (free: 2 total)"
    },
    "max_bytes": {
      "type": "integer",
      "description": "Max upload size per video, in bytes"
    },
    "max_video_s": {
      "type": [
        "number",
        "null"
      ],
      "description": "Max duration per video in seconds (free: 1200), null = unlimited"
    },
    "retention_days": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Videos older than this are deleted"
    },
    "searches_today": {
      "type": "integer"
    },
    "searches_limit": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Daily `findMoment` quota (free: 5), null = unlimited"
    },
    "watermark": {
      "type": "boolean",
      "description": "true = exports carry the ClipOnIt watermark"
    },
    "logo": {
      "type": "boolean",
      "description": "Custom logo on exports"
    },
    "premiere_xml": {
      "type": "boolean"
    },
    "edit_captions": {
      "type": "boolean",
      "description": "Subtitle text overrides"
    },
    "translate": {
      "type": "boolean",
      "description": "Subtitles in another language"
    },
    "broll_music": {
      "type": "boolean"
    },
    "api_mcp": {
      "type": "boolean",
      "description": "API key + MCP server access"
    }
  },
  "$defs": {
    "PlanId": {
      "type": "string",
      "enum": [
        "free",
        "starter",
        "pro",
        "business"
      ]
    }
  }
}