{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A multi-day training block (e.g. a training camp) grouping several activities. Kimbia publishes ONLY world-facing adventures. Totals (distance/movingTime/elevationGain) sum just the member days that are themselves public - most-restrictive-wins, so a hidden day can never leak back through the aggregate.",
      "key": "tid",
      "record": {
        "properties": {
          "description": {
            "description": "Athlete-provided description of the adventure.",
            "maxLength": 3000,
            "type": "string"
          },
          "distance": {
            "description": "Total distance in meters across public member days only. String-encoded decimal, e.g. '51214.6'.",
            "maxLength": 64,
            "type": "string"
          },
          "elevationGain": {
            "description": "Total elevation gain in meters across public member days only. String-encoded decimal.",
            "maxLength": 64,
            "type": "string"
          },
          "movingTime": {
            "description": "Total moving time in seconds across public member days only.",
            "minimum": 0,
            "type": "integer"
          },
          "parts": {
            "description": "at-uris of the public member-day app.kimbia.activity records, one per day, in day order. The activity record is the source of truth; a non-public day is simply not referenced.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "startDate": {
            "description": "Day only (e.g. '2026-06-30'), never an exact instant - the day of the first public member day.",
            "format": "datetime",
            "type": "string"
          },
          "title": {
            "description": "Athlete-provided name for the adventure.",
            "maxLength": 300,
            "type": "string"
          }
        },
        "required": [
          "distance",
          "movingTime",
          "elevationGain",
          "parts"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.kimbia.adventure",
  "lexicon": 1
}
