{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiwashere-art/json-schema/aiwashere-art-claim-schema.json",
  "title": "Claim",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiwashere-art-claims-api-openapi.yml#/components/schemas/Claim",
  "type": "object",
  "required": [
    "claim_id",
    "plot_id",
    "status"
  ],
  "properties": {
    "claim_id": {
      "type": "string",
      "format": "uuid"
    },
    "plot_id": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "reversed",
        "unpaid",
        "expired"
      ],
      "description": "expired: a retry of a free mark that has since come down."
    },
    "funded": {
      "type": "boolean"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "balance_cents": {
      "type": "integer",
      "minimum": 0,
      "description": "US cents"
    },
    "replayed": {
      "type": "boolean"
    },
    "version": {
      "type": "integer"
    },
    "work_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "paid_straight_away": {
      "type": "boolean"
    },
    "note": {
      "type": "string"
    },
    "keep": {
      "type": "object",
      "properties": {
        "price_cents": {
          "type": "integer",
          "minimum": 1,
          "description": "What keeping this mark costs right now, in US cents. The price at the moment of keeping applies."
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "how": {
          "type": "string"
        }
      }
    }
  }
}