org.hypercerts.context.attachment
Schema Diff
+20 -4
Compatibility Analysis
Breaking Changes Detected
4 breaking changes, 16 non-breaking changes.
Breaking Changes (4)
- RemovedVertex RemovedVertex { vertex_id: "pub.leaflet.pages.linearDocument#main" }
- RemovedEdge RemovedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "pub.leaflet.pages.linearDocument#main", kind: "ref", name: None }
- KindChanged KindChanged { vertex_id: "org.hypercerts.context.attachment:body.description", old_kind: "ref", new_kind: "union" }
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.context.attachment:body.contentType", sort: "knownValues", value: "[\"report\",\"audit\",\"evidence\",\"testimonial\",\"methodology\"]" }
Non-Breaking Changes (16)
- AddedVertex AddedVertex { vertex_id: "app.certified.signature.defs#list" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant0" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant1" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant2" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.signatures" }
- AddedVertex AddedVertex { vertex_id: "org.hypercerts.defs#descriptionString" }
- AddedVertex AddedVertex { vertex_id: "pub.leaflet.pages.linearDocument" }
- 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.description", tgt: "org.hypercerts.context.attachment:body.description:variant0", kind: "variant", name: Some("org.hypercerts.defs#descriptionString") }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "org.hypercerts.context.attachment:body.description:variant1", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "org.hypercerts.context.attachment:body.description:variant2", kind: "variant", name: Some("com.atproto.repo.strongRef") }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant0", tgt: "org.hypercerts.defs#descriptionString", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant1", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant2", tgt: "com.atproto.repo.strongRef", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "org.hypercerts.context.attachment:body.signatures", tgt: "app.certified.signature.defs#list", kind: "ref", name: None }
- ConstraintRemoved ConstraintRemoved { vertex_id: "org.hypercerts.context.attachment:body.description", sort: "ref" }
Migration Guidance
Removed Elements
RemovedVertex { vertex_id: "pub.leaflet.pages.linearDocument#main" }
Added Elements
AddedVertex { vertex_id: "app.certified.signature.defs#list" }AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant0" }AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant1" }AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.description:variant2" }AddedVertex { vertex_id: "org.hypercerts.context.attachment:body.signatures" }AddedVertex { vertex_id: "org.hypercerts.defs#descriptionString" }AddedVertex { vertex_id: "pub.leaflet.pages.linearDocument" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "org.hypercerts.context.attachment:body.contentType", sort: "knownValues", value: "[\"report\",\"audit\",\"evidence\",\"testimonial\",\"methodology\"]" }
- ConstraintRemoved ConstraintRemoved { vertex_id: "org.hypercerts.context.attachment:body.description", sort: "ref" }
Additional Notes
- Breaking: RemovedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "pub.leaflet.pages.linearDocument#main", kind: "ref", name: None }
- Breaking: KindChanged { vertex_id: "org.hypercerts.context.attachment:body.description", old_kind: "ref", new_kind: "union" }
- 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.description", tgt: "org.hypercerts.context.attachment:body.description:variant0", kind: "variant", name: Some("org.hypercerts.defs#descriptionString") }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "org.hypercerts.context.attachment:body.description:variant1", kind: "variant", name: Some("pub.leaflet.pages.linearDocument") }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.description", tgt: "org.hypercerts.context.attachment:body.description:variant2", kind: "variant", name: Some("com.atproto.repo.strongRef") }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant0", tgt: "org.hypercerts.defs#descriptionString", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant1", tgt: "pub.leaflet.pages.linearDocument", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "org.hypercerts.context.attachment:body.description:variant2", tgt: "com.atproto.repo.strongRef", kind: "ref", name: None }
- 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
-
"description": "The type of attachment, e.g. report, audit, evidence, testimonial, methodology, etc."
58
+
"description": "The type of attachment. Values beyond the known set are permitted.",
59
+
"knownValues": [
60
+
"report",
61
+
"audit",
62
+
"evidence",
63
+
"testimonial",
64
+
"methodology"
65
+
]
54
66
},
55
67
"description": {
56
-
"ref": "pub.leaflet.pages.linearDocument#main",
57
-
"type": "ref",
58
-
"description": "Rich-text description, represented as a Leaflet linear document."
68
+
"refs": [
69
+
"org.hypercerts.defs#descriptionString",
70
+
"pub.leaflet.pages.linearDocument",
71
+
"com.atproto.repo.strongRef"
72
+
],
73
+
"type": "union",
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."
59
75
},
60
76
"shortDescription": {
61
77
"type": "string",
62
78
"maxLength": 3000,
63
79
"description": "Short summary of this attachment, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
64
80
"maxGraphemes": 300
65
81
},
66
82
"shortDescriptionFacets": {
67
83
"type": "array",
68
84
"items": {
69
85
"ref": "app.bsky.richtext.facet",
70
86
"type": "ref"
71
87
},
72
88
"description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc)."
73
89
}
74
90
}
75
91
},
76
92
"description": "An attachment providing commentary, context, evidence, or documentary material related to a hypercert record (e.g. an activity, project, claim, or evaluation)."
77
93
}
78
94
},
79
95
"$type": "com.atproto.lexicon.schema",
80
96
"lexicon": 1
81
97
}