|
8 | 8 | "key": "tid", |
9 | 9 | "record": { |
10 | 10 | "type": "object", |
11 | | - "required": ["measurers", "metric", "value", "createdAt"], |
| 11 | + "required": ["metric", "unit", "value", "createdAt"], |
12 | 12 | "properties": { |
13 | 13 | "subject": { |
14 | 14 | "type": "ref", |
15 | 15 | "ref": "com.atproto.repo.strongRef", |
16 | 16 | "description": "A strong reference to the record this measurement refers to (e.g. an activity, project, or claim)." |
17 | 17 | }, |
18 | | - "measurers": { |
19 | | - "type": "array", |
20 | | - "description": "DIDs of the entity (or entities) that measured this data", |
21 | | - "items": { |
22 | | - "type": "ref", |
23 | | - "ref": "app.certified.defs#did" |
24 | | - }, |
25 | | - "maxLength": 100 |
26 | | - }, |
27 | 18 | "metric": { |
28 | 19 | "type": "string", |
29 | | - "description": "The metric being measured", |
| 20 | + "description": "The metric being measured, e.g. forest area restored, number of users, etc.", |
30 | 21 | "maxLength": 500 |
31 | 22 | }, |
| 23 | + "unit": { |
| 24 | + "type": "string", |
| 25 | + "description": "The unit of the measured value (e.g. kg CO₂e, hectares, %, index score).", |
| 26 | + "maxLength": 50 |
| 27 | + }, |
32 | 28 | "value": { |
33 | 29 | "type": "string", |
34 | | - "description": "The measured value", |
| 30 | + "description": "The measured numeric value.", |
35 | 31 | "maxLength": 500 |
36 | 32 | }, |
| 33 | + "startDate": { |
| 34 | + "type": "string", |
| 35 | + "format": "datetime", |
| 36 | + "description": "The start date and time when the measurement began." |
| 37 | + }, |
| 38 | + "endDate": { |
| 39 | + "type": "string", |
| 40 | + "format": "datetime", |
| 41 | + "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." |
| 42 | + }, |
| 43 | + "locations": { |
| 44 | + "type": "array", |
| 45 | + "description": "Optional geographic references related to where the measurement was taken. Each referenced record must conform with the app.certified.location lexicon.", |
| 46 | + "items": { |
| 47 | + "type": "ref", |
| 48 | + "ref": "com.atproto.repo.strongRef" |
| 49 | + }, |
| 50 | + "maxLength": 100 |
| 51 | + }, |
37 | 52 | "methodType": { |
38 | 53 | "type": "string", |
39 | 54 | "description": "Short identifier for the measurement methodology", |
|
53 | 68 | }, |
54 | 69 | "maxLength": 50 |
55 | 70 | }, |
56 | | - "location": { |
57 | | - "type": "ref", |
58 | | - "ref": "com.atproto.repo.strongRef", |
59 | | - "description": "A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location" |
| 71 | + "measurers": { |
| 72 | + "type": "array", |
| 73 | + "description": "DIDs of the entity (or entities) that measured this data", |
| 74 | + "items": { |
| 75 | + "type": "ref", |
| 76 | + "ref": "app.certified.defs#did" |
| 77 | + }, |
| 78 | + "maxLength": 100 |
| 79 | + }, |
| 80 | + "comment": { |
| 81 | + "type": "string", |
| 82 | + "description": "Short comment of this measurement, suitable for previews and list views. Rich text annotations may be provided via `commentFacets`.", |
| 83 | + "maxLength": 3000, |
| 84 | + "maxGraphemes": 300 |
| 85 | + }, |
| 86 | + "commentFacets": { |
| 87 | + "type": "array", |
| 88 | + "description": "Rich text annotations for `comment` (mentions, URLs, hashtags, etc).", |
| 89 | + "items": { |
| 90 | + "type": "ref", |
| 91 | + "ref": "app.bsky.richtext.facet" |
| 92 | + } |
60 | 93 | }, |
61 | 94 | "createdAt": { |
62 | 95 | "type": "string", |
|
0 commit comments