world.treeline.actor.preferences
Athlete display units, default sports, and privacy preferences for Treeline.
Details · record, key literal:self
| Kind | record |
|---|---|
| Record key | literal:self |
| Authority | actor.treeline.world |
| Commit rev | 3n344a6loyk2v |
| Indexed |
Checks
Validunlimited-stringdefs.main.record.properties.allowReuseNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.defaultPrivacyNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.defaultSportNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.defaultViewDensityNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.distanceUnitsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.elevationUnitsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.temperatureUnitsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.themeModeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.unitSystemNo maxLength, maxGraphemes or format limits this string.
{
"$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"
},
"defaultCompanions": {
"description": "Per-sport default companions. Preselected in upload and edit pickers. Entries pointing to inactive or deleted companions are ignored.",
"items": {
"ref": "#sportCompanionDefault",
"type": "ref"
},
"maxLength": 64,
"type": "array"
},
"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"
},
"sportCompanionDefault": {
"properties": {
"companionUri": {
"description": "AT-URI of the world.treeline.companion.profile to preselect for this sport.",
"format": "at-uri",
"maxLength": 512,
"type": "string"
},
"role": {
"description": "Optional default role for this companion when preselected for this sport.",
"knownValues": [
"trail",
"canicross",
"bikejoring",
"skijoring",
"sled",
"riding",
"pack",
"carried",
"other"
],
"maxLength": 64,
"type": "string"
},
"sport": {
"description": "Sport identifier, as used in activity.sport.",
"maxGraphemes": 64,
"maxLength": 64,
"type": "string"
}
},
"required": [
"sport",
"companionUri"
],
"type": "object"
},
"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
}