{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiwashere-art/json-schema/aiwashere-art-free-status-schema.json",
  "title": "FreeStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiwashere-art-free-api-openapi.yml#/components/schemas/FreeStatus",
  "type": "object",
  "required": [
    "mode",
    "enabled",
    "days",
    "price_cents"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "test",
        "live"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "days": {
      "type": "integer",
      "description": "How long a free mark stays up unless kept."
    },
    "price_cents": {
      "type": "integer",
      "minimum": 1,
      "description": "The current price of one plot, in US cents: what keeping a free mark costs right now."
    },
    "price_rule": {
      "type": "object",
      "required": [
        "price_cents",
        "base_cents",
        "step_cents",
        "every",
        "max_cents",
        "sold"
      ],
      "description": "How the price rises. Only paid plots count toward sold; unpaid free marks and refunded plots do not. Plots start at $1. The price rises by $1 for every 10,000 plots claimed, up to $10.",
      "properties": {
        "price_cents": {
          "type": "integer",
          "minimum": 1,
          "description": "The current price, in US cents."
        },
        "base_cents": {
          "type": "integer",
          "description": "The price of the first plots, in US cents (100)."
        },
        "step_cents": {
          "type": "integer",
          "description": "How much the price rises at each step, in US cents (100)."
        },
        "every": {
          "type": "integer",
          "minimum": 1,
          "description": "The price rises once for every this many plots claimed (10000)."
        },
        "max_cents": {
          "type": "integer",
          "description": "The highest the price goes, in US cents (1000)."
        },
        "sold": {
          "type": "integer",
          "minimum": 0,
          "description": "Paid plots that count toward the price."
        },
        "next_at": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The number of paid plots at which the price next rises; null once it has reached max_cents."
        }
      }
    },
    "purchases_enabled": {
      "type": "boolean",
      "description": "Whether keeping a mark (a purchase) is possible right now."
    },
    "cap": {
      "type": "integer",
      "description": "How many free marks the wall holds at once."
    },
    "unpaid": {
      "type": "integer"
    }
  }
}