world.treeline.actor.preferences

Athlete display units, default sports, and privacy preferences for Treeline.

Repository @treeline.world did:plc:sjejpugpajgvxweilujzjcmq namespace authority
Details · record, key literal:self
Kindrecord
Record keyliteral:self
Authorityactor.treeline.world
Commit rev3n2ow67k57c2v
Indexed

Showing version bafyreicpdyfjkqrk34iyfct5hnubualwbtvygw67igjkmp7qcyifnf7gte. Show the latest

cid bafyreicpdyfjkqrk34iyfct5hnubualwbtvygw67igjkmp7qcyifnf7gte

Checks

Valid
JSONDownload
{
  "$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"
          },
          "defaultHideHealthStats": {
            "default": false,
            "description": "Deprecated: Treeline no longer writes this (#1174); see defaultIncludeHealthData. Was the default for new activities to hide heart rate, power and cadence from public views (activity.record hideHealthStats).",
            "type": "boolean"
          },
          "defaultHideStartEndMeters": {
            "default": 0,
            "description": "Default distance in meters trimmed from start and end for privacy.",
            "maximum": 100000,
            "minimum": 0,
            "type": "integer"
          },
          "defaultIncludeHealthData": {
            "default": false,
            "description": "Default for the 'Include heart rate, power and cadence' choice when publishing an activity. When false, new activities are published without heart rate, power, cadence, temperature or energy, in the record stats or in the telemetry file.",
            "type": "boolean"
          },
          "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"
          },
          "defaultViewDensity": {
            "description": "How the athlete's archive and feed render activities: 'cards' (the default) or a 'compact' list. Unset means 'cards'.",
            "knownValues": [
              "cards",
              "compact"
            ],
            "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"
          },
          "themeMode": {
            "description": "The athlete's chosen colour theme: 'daylight', 'dusk', or 'system' (follow the operating system). Unset means 'system'. Synced across the athlete's sessions.",
            "knownValues": [
              "daylight",
              "dusk",
              "system"
            ],
            "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
}