app.kimbia.activity

kimbia.app

Schema Diff

+5 -0

From

CID
bafyreidriem6vx3...
Indexed At
2026-07-10 09:07 UTC
View this version

To

CID
bafyreigm4ofwtak...
Indexed At
2026-07-19 20:27 UTC
View this version

Compatibility Analysis

Backward Compatible

Backward compatible. 2 non-breaking changes.

Non-Breaking Changes (2)
  • AddedVertex AddedVertex { vertex_id: "app.kimbia.activity:body.altitude" }
  • AddedEdge AddedEdge { src: "app.kimbia.activity:body", tgt: "app.kimbia.activity:body.altitude", kind: "prop", name: Some("altitude") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "app.kimbia.activity:body.altitude" }

Additional Notes

  • Non-breaking: AddedEdge { src: "app.kimbia.activity:body", tgt: "app.kimbia.activity:body.altitude", kind: "prop", name: Some("altitude") }
1 1
{
2 2
  "id": "app.kimbia.activity",
3 3
  "defs": {
4 4
    "main": {
5 5
      "key": "tid",
6 6
      "type": "record",
7 7
      "record": {
8 8
        "type": "object",
9 9
        "required": [
10 10
          "sportType",
11 11
          "startedAt",
12 12
          "distance",
13 13
          "movingTime"
14 14
        ],
15 15
        "properties": {
16 16
          "title": {
17 17
            "type": "string",
18 18
            "maxLength": 300,
19 19
            "description": "Athlete-provided name for the activity."
20 20
          },
21 21
          "device": {
22 22
            "type": "string",
23 23
            "maxLength": 300,
24 24
            "description": "Name of the device that recorded the activity."
25 25
          },
26 26
          "source": {
27 27
            "type": "string",
28 28
            "maxLength": 128,
29 29
            "description": "Where the activity data was imported from.",
30 30
            "knownValues": [
31 31
              "strava",
32 32
              "manual",
33 33
              "fit-file",
34 34
              "gpx-file"
35 35
            ]
36 36
          },
37 +
          "altitude": {
38 +
            "type": "string",
39 +
            "maxLength": 20000,
40 +
            "description": "Delta-encoded integer-metre altitude stream (same signed-varint base64 as the polyline), one value per polyline point for the elevation profile. Follows the polyline's crop; omitted when the map is hidden or no elevation was recorded."
41 +
          },
37 42
          "avgSpeed": {
38 43
            "type": "string",
39 44
            "maxLength": 64,
40 45
            "description": "Average speed in meters per second. String-encoded decimal."
41 46
          },
42 47
          "distance": {
43 48
            "type": "string",
44 49
            "maxLength": 64,
45 50
            "description": "Total distance in meters. String-encoded decimal, e.g. '51214.6'."
46 51
          },
47 52
          "polyline": {
48 53
            "type": "string",
49 54
            "maxLength": 20000,
50 55
            "description": "Google encoded-polyline (precision 5) of a simplified, privacy-trimmed route for map display. Cropped by default; full for races or when the athlete opts the full track public; omitted when the map is hidden."
51 56
          },
52 57
          "sportType": {
53 58
            "type": "string",
54 59
            "maxLength": 128,
55 60
            "description": "The type of activity.",
56 61
            "knownValues": [
57 62
              "run",
58 63
              "ride",
59 64
              "swim",
60 65
              "walk",
61 66
              "hike",
62 67
              "other"
63 68
            ]
64 69
          },
65 70
          "startedAt": {
66 71
            "type": "string",
67 72
            "format": "datetime",
68 73
            "description": "When the activity started. PRIVACY NOTE: by default this is the athlete's local civil day at NOON UTC (e.g. '2026-06-30T12:00:00.000Z') - noon keeps the day correct for clients that re-zone the instant and leaks no timezone, while the exact time is hidden. When the athlete opts their exact times public, it is instead the TRUE start instant in their local zone with its real offset (e.g. '2026-06-30T09:30:00.000+02:00'). Read the date portion for the activity's day; do not assume the time-of-day is meaningful unless an offset is present."
69 74
          },
70 75
          "movingTime": {
71 76
            "type": "integer",
72 77
            "minimum": 0,
73 78
            "description": "Time spent in motion, in seconds."
74 79
          },
75 80
          "description": {
76 81
            "type": "string",
77 82
            "maxLength": 3000,
78 83
            "description": "Athlete-provided description of the activity."
79 84
          },
80 85
          "elapsedTime": {
81 86
            "type": "integer",
82 87
            "minimum": 0,
83 88
            "description": "Total/finish time in seconds. Published for races (the official or chip time)."
84 89
          },
85 90
          "elevationGain": {
86 91
            "type": "string",
87 92
            "maxLength": 64,
88 93
            "description": "Total elevation gain in meters. String-encoded decimal."
89 94
          }
90 95
        }
91 96
      },
92 97
      "description": "A recorded training session or race (run, ride, swim, ...). Kimbia publishes ONLY public activities, projected to a privacy-safe public field set. This lexicon captures the core, interoperable activity fields. Floats are string-encoded decimals (DAG-CBOR has no float type); durations are integer seconds."
93 98
    }
94 99
  },
95 100
  "$type": "com.atproto.lexicon.schema",
96 101
  "lexicon": 1,
97 102
  "description": "PROVISIONAL: activities are generic enough that they belong in a community-driven lexicon rather than an app namespace. When a community schema stabilizes, Kimbia will migrate to it and deprecate this one in its favor."
98 103
}

Compare Other Versions

Lexicon Garden

@