{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loyaltyvip-com/json-schema/loyaltyvip-com-tier-schema.json",
  "title": "Tier",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loyaltyvip-com-openapi.yml#/components/schemas/Tier",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "level": {
      "type": "integer"
    },
    "qualification": {
      "type": [
        "string",
        "null"
      ]
    },
    "qualification_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "qualification_unit": {
      "type": [
        "string",
        "null"
      ]
    },
    "benefits": {
      "type": "array",
      "items": {}
    },
    "verified": {
      "type": "boolean"
    },
    "source": {
      "type": [
        "string",
        "null"
      ],
      "description": "Provenance: 'seed' (hand-authored), 'scraped' (read from the program's own page), 'bedrock' (model-recalled; served only once a human has verified it)."
    },
    "confirmed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When this tier was last confirmed, by a reviewer or by reading the program's own page. **Null means nobody has ever confirmed it** — the common case today. A hand-authored row's updated_at is the date the migration ran, not a confirmation, so it is not reported here."
    },
    "confirmed_by": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "review",
        "scrape",
        null
      ],
      "description": "What confirmed it: 'review' (a human approved the row) or 'scrape' (read off the program's published page)."
    }
  }
}