org.hypercerts.claim.measurement

hypercerts.org

Schema Diff

+41 -8

From

CID
bafyreihq7skxpqf...
Indexed At
2026-01-24 18:07 UTC
View this version

To

CID
bafyreig5kv4tkz2...
Indexed At
2026-01-25 01:21 UTC
View this version
1 1
{
2 2
  "id": "org.hypercerts.claim.measurement",
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 -
          "measurers",
11 10
          "metric",
11 +
          "unit",
12 12
          "value",
13 13
          "createdAt"
14 14
        ],
15 15
        "properties": {
16 +
          "unit": {
17 +
            "type": "string",
18 +
            "maxLength": 50,
19 +
            "description": "The unit of the measured value (e.g. kg CO₂e, hectares, %, index score)."
20 +
          },
16 21
          "value": {
17 22
            "type": "string",
18 23
            "maxLength": 500,
19 -
            "description": "The measured value"
24 +
            "description": "The measured numeric value."
20 25
          },
21 26
          "metric": {
22 27
            "type": "string",
23 28
            "maxLength": 500,
24 -
            "description": "The metric being measured"
29 +
            "description": "The metric being measured, e.g. forest area restored, number of users, etc."
25 30
          },
31 +
          "comment": {
32 +
            "type": "string",
33 +
            "maxLength": 3000,
34 +
            "description": "Short comment of this measurement, suitable for previews and list views. Rich text annotations may be provided via `commentFacets`.",
35 +
            "maxGraphemes": 300
36 +
          },
37 +
          "endDate": {
38 +
            "type": "string",
39 +
            "format": "datetime",
40 +
            "description": "The end date and time when the measurement ended. If it was a one time measurement, the endDate should be equal to the startDate."
41 +
          },
26 42
          "subject": {
27 43
            "ref": "com.atproto.repo.strongRef",
28 44
            "type": "ref",
29 45
            "description": "A strong reference to the record this measurement refers to (e.g. an activity, project, or claim)."
30 46
          },
31 -
          "location": {
32 -
            "ref": "com.atproto.repo.strongRef",
33 -
            "type": "ref",
34 -
            "description": "A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location"
35 -
          },
36 47
          "createdAt": {
37 48
            "type": "string",
38 49
            "format": "datetime",
39 50
            "description": "Client-declared timestamp when this record was originally created"
40 51
          },
52 +
          "locations": {
53 +
            "type": "array",
54 +
            "items": {
55 +
              "ref": "com.atproto.repo.strongRef",
56 +
              "type": "ref"
57 +
            },
58 +
            "maxLength": 100,
59 +
            "description": "Optional geographic references related to where the measurement was taken. Each referenced record must conform with the app.certified.location lexicon."
60 +
          },
41 61
          "measurers": {
42 62
            "type": "array",
43 63
            "items": {
44 64
              "ref": "app.certified.defs#did",
45 65
              "type": "ref"
46 66
            },
47 67
            "maxLength": 100,
48 68
            "description": "DIDs of the entity (or entities) that measured this data"
49 69
          },
50 70
          "methodURI": {
51 71
            "type": "string",
52 72
            "format": "uri",
53 73
            "description": "URI to methodology documentation, standard protocol, or measurement procedure"
54 74
          },
75 +
          "startDate": {
76 +
            "type": "string",
77 +
            "format": "datetime",
78 +
            "description": "The start date and time when the measurement began."
79 +
          },
55 80
          "methodType": {
56 81
            "type": "string",
57 82
            "maxLength": 30,
58 83
            "description": "Short identifier for the measurement methodology"
59 84
          },
60 85
          "evidenceURI": {
61 86
            "type": "array",
62 87
            "items": {
63 88
              "type": "string",
64 89
              "format": "uri"
65 90
            },
66 91
            "maxLength": 50,
67 92
            "description": "URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)"
93 +
          },
94 +
          "commentFacets": {
95 +
            "type": "array",
96 +
            "items": {
97 +
              "ref": "app.bsky.richtext.facet",
98 +
              "type": "ref"
99 +
            },
100 +
            "description": "Rich text annotations for `comment` (mentions, URLs, hashtags, etc)."
68 101
          }
69 102
        }
70 103
      },
71 104
      "description": "Measurement data related to a hypercert record (e.g. an activity and its impact)."
72 105
    }
73 106
  },
74 107
  "$type": "com.atproto.lexicon.schema",
75 108
  "lexicon": 1
76 109
}

Compare Other Versions

Lexicon Garden

@