{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fuxux-com/json-schema/fuxux-com-usage-response-schema.json",
  "title": "UsageResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fuxux-com-usage-api-openapi.yml#/components/schemas/UsageResponse",
  "type": "object",
  "properties": {
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "creator",
        "growth",
        "pro"
      ]
    },
    "limits": {
      "type": "object",
      "properties": {
        "accounts": {
          "type": "integer",
          "description": "-1 means unlimited."
        },
        "aiPerMonth": {
          "type": [
            "integer",
            "null"
          ]
        },
        "postsPerMonth": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Published posts allowed per month on the plan of the space's owner; null when unlimited."
        },
        "xUnitsPerMonth": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Monthly allowance for publishing to X. 0 means X is not included in the plan. A post is 1 unit, a post with a link 13."
        }
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "accounts": {
          "type": "integer"
        },
        "aiThisMonth": {
          "type": "integer"
        },
        "postsThisMonth": {
          "type": "integer"
        },
        "xUnitsThisMonth": {
          "type": "integer"
        }
      }
    }
  }
}