world.treeline.actor.preferences

treeline.world

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Athlete display units, default sports, and privacy preferences for Treeline.",
      "key": "literal:self",
      "record": {
        "properties": {
          "allowReuse": {
            "default": "coAthletes",
            "description": "Who may save this athlete's public activities as their own: 'coAthletes' (tagged co-athletes and confirmed group matches, the default), 'everyone' (co-athletes save as an activity; anyone else saves as a route), or 'nobody'. Unset means 'coAthletes'.",
            "knownValues": [
              "everyone",
              "coAthletes",
              "nobody"
            ],
            "type": "string"
          },
          "defaultGear": {
            "description": "Per-sport default gear. Preselected in the upload and edit pickers and used as the default for the gear backfill. One entry per sport; gear that is retired or deleted is ignored.",
            "items": {
              "ref": "#sportGearDefault",
              "type": "ref"
            },
            "maxLength": 32,
            "type": "array"
          },
          "defaultHideStartEndMeters": {
            "default": 0,
            "description": "Default distance in meters trimmed from start and end for privacy.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer"
          },
          "defaultPrivacy": {
            "default": "public",
            "description": "Default visibility setting for new activities ('public' or 'unlisted'). Restricted/private training logs and groups/circles belong to ATProto Permissioned Spaces (Proposal 0016). Historical values ('followers', 'private', 'permissioned') are retained for schema compatibility.",
            "knownValues": [
              "public",
              "unlisted",
              "followers",
              "private",
              "permissioned"
            ],
            "type": "string"
          },
          "defaultSport": {
            "description": "Default sport category selected when recording or uploading activities.",
            "type": "string"
          },
          "distanceUnits": {
            "default": "km",
            "description": "Preferred unit of measurement for distance.",
            "knownValues": [
              "km",
              "mi"
            ],
            "type": "string"
          },
          "elevationUnits": {
            "default": "m",
            "description": "Preferred unit of measurement for elevation.",
            "knownValues": [
              "m",
              "ft"
            ],
            "type": "string"
          },
          "temperatureUnits": {
            "default": "c",
            "description": "Preferred unit of measurement for temperature.",
            "knownValues": [
              "c",
              "f"
            ],
            "type": "string"
          },
          "unitSystem": {
            "description": "[Deprecated in v0.10: Use distanceUnits, elevationUnits, temperatureUnits] Legacy unit system.",
            "knownValues": [
              "metric",
              "imperial"
            ],
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp when preferences were last updated.",
            "format": "datetime",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "record"
    },
    "sportGearDefault": {
      "properties": {
        "gearUri": {
          "description": "AT-URI of the world.treeline.gear.item to use by default for this sport.",
          "format": "at-uri",
          "maxLength": 512,
          "type": "string"
        },
        "sport": {
          "description": "Sport identifier, as used in activity.sport.",
          "maxGraphemes": 64,
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "sport",
        "gearUri"
      ],
      "type": "object"
    }
  },
  "id": "world.treeline.actor.preferences",
  "lexicon": 1
}

Validate Record

Validate a record against world.treeline.actor.preferences

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:sjejpugpajgvxweilujzjcmq
CID
bafyreig6hezzh73y2uqnkojqh73ojrpfmwk5jsgblhs6hysz36ot4lerge
Indexed At
2026-10-05 16:16 UTC
AT-URI
at://did:plc:sjejpugpajgvxweilujzjcmq/com.atproto.lexicon.schema/world.treeline.actor.preferences

Version History (3 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@