{
"id": "social.pace.feed.activity",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"startedAt",
"endedAt",
"type",
"createdAt"
],
"properties": {
"type": {
"ref": "social.pace.feed.defs#activityType",
"type": "ref"
},
"route": {
"type": "blob",
"accept": [
"application/vnd.garmin.tcx+xml",
"application/gpx+xml."
],
"description": "An export of the route taken during the activity, if any. A GPX or TCX file. Reminder, all atproto blobs are public. And is recommended if you do this to trim start and end."
},
"steps": {
"type": "integer",
"description": "The number of steps taken during the activity."
},
"splits": {
"type": "array",
"items": {
"ref": "social.pace.feed.defs#split",
"type": "ref"
},
"description": "Array of splits if any."
},
"endedAt": {
"type": "string",
"format": "datetime",
"description": "When the activity ended."
},
"calories": {
"type": "integer",
"description": "The number of active calories burned during the activity."
},
"distance": {
"type": "string",
"description": "The distance covered during the activity, if any. This is a string to allow for float values. pace.social support is in feet and meters."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the activity was created"
},
"startedAt": {
"type": "string",
"format": "datetime",
"description": "When the activity was started."
},
"distanceUnits": {
"enum": [
"feet",
"miles",
"meters",
"kilometers"
],
"type": "string",
"maxLength": 10,
"description": "The units used for distance measurement."
}
}
},
"description": "A recording of an activity. Like running, walking, lifting weights, etc. Helpful to create the rkey tid from the start time and clock id 23 so you can upsert easily."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}