org.hypercerts.context.measurement
Schema Diff
+5 -0
Compatibility Analysis
Backward Compatible
Backward compatible. 4 non-breaking changes.
Non-Breaking Changes (4)
- AddedVertex AddedVertex { vertex_id: "app.certified.signature.defs#list" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.context.measurement:body.signatures" }
- AddedEdge AddedEdge { src: "org.hypercerts.context.measurement:body", tgt: "org.hypercerts.context.measurement:body.signatures", kind: "prop", name: Some("signatures") }
- AddedEdge AddedEdge { src: "org.hypercerts.context.measurement:body.signatures", tgt: "app.certified.signature.defs#list", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "app.certified.signature.defs#list" }AddedVertex { vertex_id: "org.hypercerts.context.measurement:body.signatures" }
Additional Notes
- Non-breaking: AddedEdge { src: "org.hypercerts.context.measurement:body", tgt: "org.hypercerts.context.measurement:body.signatures", kind: "prop", name: Some("signatures") }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.measurement:body.signatures", tgt: "app.certified.signature.defs#list", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Measurement data related to one or more records (e.g. activities, projects, etc.).",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"comment": {
10
10
"description": "Short comment of this measurement, suitable for previews and list views. Rich text annotations may be provided via `commentFacets`.",
11
11
"maxGraphemes": 300,
12
12
"maxLength": 3000,
13
13
"type": "string"
14
14
},
15
15
"commentFacets": {
16
16
"description": "Rich text annotations for `comment` (mentions, URLs, hashtags, etc).",
17
17
"items": {
18
18
"ref": "app.bsky.richtext.facet",
19
19
"type": "ref"
20
20
},
21
21
"type": "array"
22
22
},
23
23
"createdAt": {
24
24
"description": "Client-declared timestamp when this record was originally created",
25
25
"format": "datetime",
26
26
"type": "string"
27
27
},
28
28
"endDate": {
29
29
"description": "The end date and time when the measurement ended. For one-time measurements, this should equal the start date.",
30
30
"format": "datetime",
31
31
"type": "string"
32
32
},
33
33
"evidenceURI": {
34
34
"description": "URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)",
35
35
"items": {
36
36
"format": "uri",
37
37
"type": "string"
38
38
},
39
39
"maxLength": 50,
40
40
"type": "array"
41
41
},
42
42
"locations": {
43
43
"description": "Optional geographic references related to where the measurement was taken. Each referenced record must conform with the app.certified.location lexicon.",
44
44
"items": {
45
45
"ref": "com.atproto.repo.strongRef",
46
46
"type": "ref"
47
47
},
48
48
"maxLength": 100,
49
49
"type": "array"
50
50
},
51
51
"measurers": {
52
52
"description": "DIDs of the entities that performed this measurement",
53
53
"items": {
54
54
"ref": "app.certified.defs#did",
55
55
"type": "ref"
56
56
},
57
57
"maxLength": 100,
58
58
"type": "array"
59
59
},
60
60
"methodType": {
61
61
"description": "Short identifier for the measurement methodology",
62
62
"maxLength": 30,
63
63
"type": "string"
64
64
},
65
65
"methodURI": {
66
66
"description": "URI to methodology documentation, standard protocol, or measurement procedure",
67
67
"format": "uri",
68
68
"type": "string"
69
69
},
70
70
"metric": {
71
71
"description": "The metric being measured, e.g. forest area restored, number of users, etc.",
72
72
"maxLength": 500,
73
73
"type": "string"
74
74
},
75
+
"signatures": {
76
+
"description": "Optional cryptographic signatures attesting to this record's content.",
77
+
"ref": "app.certified.signature.defs#list",
78
+
"type": "ref"
79
+
},
75
80
"startDate": {
76
81
"description": "The start date and time when the measurement began.",
77
82
"format": "datetime",
78
83
"type": "string"
79
84
},
80
85
"subjects": {
81
86
"description": "Strong references to the records this measurement refers to (e.g. activities, projects, or claims).",
82
87
"items": {
83
88
"ref": "com.atproto.repo.strongRef",
84
89
"type": "ref"
85
90
},
86
91
"maxLength": 100,
87
92
"type": "array"
88
93
},
89
94
"unit": {
90
95
"description": "The unit of the measured value (e.g. kg CO₂e, hectares, %, index score).",
91
96
"maxLength": 50,
92
97
"type": "string"
93
98
},
94
99
"value": {
95
100
"description": "The measured value as a numeric string (e.g. '1234.56')",
96
101
"maxLength": 500,
97
102
"type": "string"
98
103
}
99
104
},
100
105
"required": [
101
106
"metric",
102
107
"unit",
103
108
"value",
104
109
"createdAt"
105
110
],
106
111
"type": "object"
107
112
},
108
113
"type": "record"
109
114
}
110
115
},
111
116
"id": "org.hypercerts.context.measurement",
112
117
"lexicon": 1
113
118
}