full diff

io.atcr.hold.notifyManifest

From
bafyreihuiwxnikwoai3qfuveusjn5ibyt3kqzzkmzoeqqqyd6obugb4axy indexed 2026-11-13 01:03 UTC View this version
To
bafyreifcfn5q4yqfrmtteivicikyyukkb6plyraodqtuxlzilhnlbr2wxm indexed 2026-02-18 19:30 UTC View this version

Compatibility

breaking 9 breaking changes, 0 non-breaking changes.

Breaking changes (9)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "io.atcr.hold.notifyManifest:input", src: "io.atcr.hold.notifyManifest:input", tgt: "io.atcr.hold.notifyManifest:input.manifest", kind: "prop", name: Some("manifest") }
  • RemovedVertex RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest#blobInfo.mediaType" }
  • RemovedVertex RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest#manifestInfo.subject" }
  • RemovedVertex RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest:input.visibility" }
  • RemovedEdge RemovedEdge { src: "io.atcr.hold.notifyManifest#blobInfo", tgt: "io.atcr.hold.notifyManifest#blobInfo.mediaType", kind: "prop", name: Some("mediaType") }
  • RemovedEdge RemovedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo", tgt: "io.atcr.hold.notifyManifest#manifestInfo.subject", kind: "prop", name: Some("subject") }
  • RemovedEdge RemovedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo.subject", tgt: "io.atcr.hold.notifyManifest#blobInfo", kind: "ref", name: None }
  • RemovedEdge RemovedEdge { src: "io.atcr.hold.notifyManifest:input", tgt: "io.atcr.hold.notifyManifest:input.visibility", kind: "prop", name: Some("visibility") }
  • ConstraintTightened ConstraintTightened { vertex_id: "io.atcr.hold.notifyManifest:input.operation", sort: "knownValues", old_value: "[\"push\",\"pull\",\"visibility\"]", new_value: "[\"push\",\"pull\"]" }

Migration guidance

Removed

  • RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest#blobInfo.mediaType" }
  • RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest#manifestInfo.subject" }
  • RemovedVertex { vertex_id: "io.atcr.hold.notifyManifest:input.visibility" }

Constraint changes

  • ConstraintTightened ConstraintTightened { vertex_id: "io.atcr.hold.notifyManifest:input.operation", sort: "knownValues", old_value: "[\"push\",\"pull\",\"visibility\"]", new_value: "[\"push\",\"pull\"]" }

Notes

  • Breaking: RequiredEdgeAdded { vertex_id: "io.atcr.hold.notifyManifest:input", src: "io.atcr.hold.notifyManifest:input", tgt: "io.atcr.hold.notifyManifest:input.manifest", kind: "prop", name: Some("manifest") }
  • Breaking: RemovedEdge { src: "io.atcr.hold.notifyManifest#blobInfo", tgt: "io.atcr.hold.notifyManifest#blobInfo.mediaType", kind: "prop", name: Some("mediaType") }
  • Breaking: RemovedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo", tgt: "io.atcr.hold.notifyManifest#manifestInfo.subject", kind: "prop", name: Some("subject") }
  • Breaking: RemovedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo.subject", tgt: "io.atcr.hold.notifyManifest#blobInfo", kind: "ref", name: None }
  • Breaking: RemovedEdge { src: "io.atcr.hold.notifyManifest:input", tgt: "io.atcr.hold.notifyManifest:input.visibility", kind: "prop", name: Some("visibility") }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "blobInfo": {
55 "properties": {
66 "digest": {
77 "maxLength": 128,
88 "type": "string"
99 },
10 "mediaType": {
11 "maxLength": 256,
12 "type": "string"
13 },
1410 "size": {
1511 "type": "integer"
1612 }
1713 },
1814 "type": "object"
1915 },
2016 "childManifestInfo": {
2117 "properties": {
2218 "digest": {
2319 "maxLength": 128,
2420 "type": "string"
2521 },
2622 "mediaType": {
2723 "maxLength": 256,
2824 "type": "string"
2925 },
3026 "platform": {
3127 "ref": "#platformInfo",
3228 "type": "ref"
3329 },
3430 "size": {
3531 "type": "integer"
3632 }
3733 },
3834 "type": "object"
3935 },
4036 "layerInfo": {
4137 "properties": {
4238 "digest": {
4339 "maxLength": 128,
4440 "type": "string"
4541 },
4642 "mediaType": {
4743 "maxLength": 256,
4844 "type": "string"
4945 },
5046 "size": {
5147 "type": "integer"
5248 }
5349 },
5450 "type": "object"
5551 },
5652 "main": {
57 "description": "Notify hold about a manifest push, pull or visibility change. For pushes: records the repository's visibility and the manifest's blobs, creates layer records and optionally posts to Bluesky. For pulls: just increments stats. Pushes and pulls always increment the matching count. For visibility changes: records the new visibility and nothing else, so no counter moves and no manifest body is needed.",
53 "description": "Notify hold about a manifest push or pull operation. For pushes: creates layer records and optionally posts to Bluesky. For pulls: just increments stats. Always increments pull/push counts.",
5854 "errors": [
5955 {
6056 "name": "InvalidOperation"
6157 },
6258 {
6359 "name": "UserMismatch"
6460 },
6561 {
6662 "name": "QuotaExceeded"
6763 }
6864 ],
6965 "input": {
7066 "encoding": "application/json",
7167 "schema": {
7268 "properties": {
7369 "manifest": {
74 "description": "The pushed manifest. Required for 'push'; absent for 'pull' and 'visibility'.",
7570 "ref": "#manifestInfo",
7671 "type": "ref"
7772 },
7873 "manifestDigest": {
7974 "description": "Manifest digest for building layer record AT-URIs",
8075 "maxLength": 128,
8176 "type": "string"
8277 },
8378 "operation": {
8479 "default": "push",
85 "description": "Operation type (defaults to 'push' for backward compatibility). 'visibility' records a new visibility for an already pushed manifest and does nothing else; it carries no manifest body and moves no counter.",
80 "description": "Operation type (defaults to 'push' for backward compatibility)",
8681 "knownValues": [
8782 "push",
88 "pull",
89 "visibility"
83 "pull"
9084 ],
9185 "maxLength": 16,
9286 "type": "string"
9387 },
9488 "repository": {
9589 "description": "Image repository name",
9690 "maxLength": 256,
9791 "type": "string"
9892 },
9993 "tag": {
10094 "description": "Image tag (optional, required for Bluesky posts)",
10195 "maxLength": 128,
10296 "type": "string"
10397 },
10498 "userDid": {
10599 "description": "DID of the image owner",
106100 "format": "did",
107101 "type": "string"
108 },
109 "visibility": {
110 "default": "public",
111 "description": "Visibility of the sailor repository this manifest belongs to. The hold records it against the manifest and enforces it on OCI blob reads: a layer or image config blob named only by private manifests is served to the hold's owner and crew only, even on a public hold. Absent means public. Re-sending the notification with a different value is how a repository is flipped. Honoured on a push only; ignored on a pull, whose token belongs to the puller rather than the repository owner.",
112 "knownValues": [
113 "public",
114 "private"
115 ],
116 "maxLength": 16,
117 "type": "string"
118102 }
119103 },
120104 "required": [
121105 "repository",
122106 "userDid",
123 "manifestDigest"
107 "manifestDigest",
108 "manifest"
124109 ],
125110 "type": "object"
126111 }
127112 },
128113 "output": {
129114 "encoding": "application/json",
130115 "schema": {
131116 "properties": {
132117 "layersCreated": {
133118 "description": "Number of layer records created (push only)",
134119 "type": "integer"
135120 },
136121 "operation": {
137122 "description": "The operation that was performed ('push' or 'pull')",
138123 "maxLength": 16,
139124 "type": "string"
140125 },
141126 "postCreated": {
142127 "description": "Whether a Bluesky post was created (push only)",
143128 "type": "boolean"
144129 },
145130 "postUri": {
146131 "description": "AT-URI of the created Bluesky post (if postCreated is true)",
147132 "format": "at-uri",
148133 "type": "string"
149134 },
150135 "statsUpdated": {
151136 "description": "Whether stats were successfully updated",
152137 "type": "boolean"
153138 },
154139 "success": {
155140 "description": "Whether the operation completed successfully",
156141 "type": "boolean"
157142 }
158143 },
159144 "required": [
160145 "success",
161146 "operation",
162147 "statsUpdated"
163148 ],
164149 "type": "object"
165150 }
166151 },
167152 "type": "procedure"
168153 },
169154 "manifestInfo": {
170155 "description": "OCI manifest information",
171156 "properties": {
172157 "config": {
173158 "ref": "#blobInfo",
174159 "type": "ref"
175160 },
176161 "layers": {
177162 "items": {
178163 "ref": "#layerInfo",
179164 "type": "ref"
180165 },
181166 "type": "array"
182167 },
183168 "manifests": {
184169 "description": "Child manifests for multi-arch images",
185170 "items": {
186171 "ref": "#childManifestInfo",
187172 "type": "ref"
188173 },
189174 "type": "array"
190175 },
191176 "mediaType": {
192177 "description": "OCI media type",
193178 "maxLength": 256,
194179 "type": "string"
195 },
196 "subject": {
197 "description": "Manifest this artifact refers to (attestations, signatures, SBOMs). Absent for ordinary images.",
198 "ref": "#blobInfo",
199 "type": "ref"
200180 }
201181 },
202182 "type": "object"
203183 },
204184 "platformInfo": {
205185 "properties": {
206186 "architecture": {
207187 "maxLength": 64,
208188 "type": "string"
209189 },
210190 "os": {
211191 "maxLength": 64,
212192 "type": "string"
213193 }
214194 },
215195 "type": "object"
216196 }
217197 },
218198 "id": "io.atcr.hold.notifyManifest",
219199 "lexicon": 1
220200}