org.hypercerts.context.attachment
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.attachment:body.signatures" }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body", tgt: "org.hypercerts.context.attachment:body.signatures", kind: "prop", name: Some("signatures") }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment: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.attachment:body.signatures" }
Additional Notes
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body", tgt: "org.hypercerts.context.attachment:body.signatures", kind: "prop", name: Some("signatures") }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.signatures", tgt: "app.certified.signature.defs#list", kind: "ref", name: None }
1
1
{
2
2
"id": "org.hypercerts.context.attachment",
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
"title",
11
11
"createdAt"
12
12
],
13
13
"properties": {
14
14
"title": {
15
15
"type": "string",
16
16
"maxLength": 256,
17
17
"description": "Display title for this attachment (e.g. 'Impact Assessment Report', 'Audit Findings')"
18
18
},
19
19
"content": {
20
20
"type": "array",
21
21
"items": {
22
22
"refs": [
23
23
"org.hypercerts.defs#uri",
24
24
"org.hypercerts.defs#smallBlob"
25
25
],
26
26
"type": "union"
27
27
},
28
28
"maxLength": 100,
29
29
"description": "The files, documents, or external references included in this attachment record."
30
30
},
31
31
"location": {
32
32
"ref": "com.atproto.repo.strongRef",
33
33
"type": "ref",
34
34
"description": "A strong reference to the location where this attachment's subject matter occurred. The record referenced must conform with the lexicon app.certified.location."
35
35
},
36
36
"subjects": {
37
37
"type": "array",
38
38
"items": {
39
39
"ref": "com.atproto.repo.strongRef",
40
40
"type": "ref"
41
41
},
42
42
"maxLength": 100,
43
43
"description": "References to the subject(s) the attachment is connected to—this may be an activity claim, outcome claim, measurement, evaluation, or even another attachment. This is optional as the attachment can exist before the claim is recorded."
44
44
},
45
45
"createdAt": {
46
46
"type": "string",
47
47
"format": "datetime",
48
48
"description": "Client-declared timestamp when this record was originally created."
49
49
},
50
+
"signatures": {
51
+
"ref": "app.certified.signature.defs#list",
52
+
"type": "ref",
53
+
"description": "Optional cryptographic signatures attesting to this record's content."
54
+
},
50
55
"contentType": {
51
56
"type": "string",
52
57
"maxLength": 64,
53
58
"description": "The type of attachment. Values beyond the known set are permitted.",
54
59
"knownValues": [
55
60
"report",
56
61
"audit",
57
62
"evidence",
58
63
"testimonial",
59
64
"methodology"
60
65
]
61
66
},
62
67
"description": {
63
68
"refs": [
64
69
"org.hypercerts.defs#descriptionString",
65
70
"pub.leaflet.pages.linearDocument",
66
71
"com.atproto.repo.strongRef"
67
72
],
68
73
"type": "union",
69
74
"description": "Long-form description of the attachment. An inline string for plain text or markdown, a Leaflet linear document for rich-text content, or a strong reference to an external description record."
70
75
},
71
76
"shortDescription": {
72
77
"type": "string",
73
78
"maxLength": 3000,
74
79
"description": "Short summary of this attachment, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
75
80
"maxGraphemes": 300
76
81
},
77
82
"shortDescriptionFacets": {
78
83
"type": "array",
79
84
"items": {
80
85
"ref": "app.bsky.richtext.facet",
81
86
"type": "ref"
82
87
},
83
88
"description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc)."
84
89
}
85
90
}
86
91
},
87
92
"description": "An attachment providing commentary, context, evidence, or documentary material related to a hypercert record (e.g. an activity, project, claim, or evaluation)."
88
93
}
89
94
},
90
95
"$type": "com.atproto.lexicon.schema",
91
96
"lexicon": 1
92
97
}