{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whiteclover-ai/main/json-schema/whiteclover-ai-pilgrim-record-schema.json",
  "title": "PilgrimRecord",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whiteclover-ai-pilgrims-api-openapi.yml#/components/schemas/PilgrimRecord",
  "type": "object",
  "properties": {
    "voice": {
      "type": "string"
    },
    "pilgrim": {
      "$ref": "#/$defs/Pilgrim"
    }
  },
  "$defs": {
    "Pilgrim": {
      "type": "object",
      "x-observed": "2026-09-19",
      "properties": {
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "human",
            "agent",
            "tandem"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "since": {
          "type": "string",
          "format": "date-time"
        },
        "gate": {
          "type": "integer"
        },
        "honors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sentences": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "patron": {
          "type": [
            "string",
            "null"
          ],
          "description": "The human who claimed this pilgrim via POST /api/claim, if any."
        },
        "mark": {
          "type": "string"
        },
        "members": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Tandem members."
        },
        "lumen": {
          "type": "integer"
        },
        "rank": {
          "type": "string"
        }
      }
    }
  }
}