full diff

io.atcr.hold.notifyManifest

seamark.cr +25 −5
From
bafyreifcfn5q4yqfrmtteivicikyyukkb6plyraodqtuxlzilhnlbr2wxm indexed 2026-02-18 19:30 UTC View this version
To
bafyreihuiwxnikwoai3qfuveusjn5ibyt3kqzzkmzoeqqqyd6obugb4axy indexed 2026-11-13 01:03 UTC View this version

Compatibility

breaking 2 breaking changes, 7 non-breaking changes.

Breaking changes (2)
  • RequiredEdgeRemoved RequiredEdgeRemoved { 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") }
  • ConstraintTightened ConstraintTightened { vertex_id: "io.atcr.hold.notifyManifest:input.operation", sort: "knownValues", old_value: "[\"push\",\"pull\"]", new_value: "[\"push\",\"pull\",\"visibility\"]" }
Non-breaking changes (7)
  • AddedVertex AddedVertex { vertex_id: "io.atcr.hold.notifyManifest#blobInfo.mediaType" }
  • AddedVertex AddedVertex { vertex_id: "io.atcr.hold.notifyManifest#manifestInfo.subject" }
  • AddedVertex AddedVertex { vertex_id: "io.atcr.hold.notifyManifest:input.visibility" }
  • AddedEdge AddedEdge { src: "io.atcr.hold.notifyManifest#blobInfo", tgt: "io.atcr.hold.notifyManifest#blobInfo.mediaType", kind: "prop", name: Some("mediaType") }
  • AddedEdge AddedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo", tgt: "io.atcr.hold.notifyManifest#manifestInfo.subject", kind: "prop", name: Some("subject") }
  • AddedEdge AddedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo.subject", tgt: "io.atcr.hold.notifyManifest#blobInfo", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "io.atcr.hold.notifyManifest:input", tgt: "io.atcr.hold.notifyManifest:input.visibility", kind: "prop", name: Some("visibility") }

Migration guidance

Added

  • AddedVertex { vertex_id: "io.atcr.hold.notifyManifest#blobInfo.mediaType" }
  • AddedVertex { vertex_id: "io.atcr.hold.notifyManifest#manifestInfo.subject" }
  • AddedVertex { 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\"]", new_value: "[\"push\",\"pull\",\"visibility\"]" }

Notes

  • Breaking: RequiredEdgeRemoved { 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") }
  • Non-breaking: AddedEdge { src: "io.atcr.hold.notifyManifest#blobInfo", tgt: "io.atcr.hold.notifyManifest#blobInfo.mediaType", kind: "prop", name: Some("mediaType") }
  • Non-breaking: AddedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo", tgt: "io.atcr.hold.notifyManifest#manifestInfo.subject", kind: "prop", name: Some("subject") }
  • Non-breaking: AddedEdge { src: "io.atcr.hold.notifyManifest#manifestInfo.subject", tgt: "io.atcr.hold.notifyManifest#blobInfo", kind: "ref", name: None }
  • Non-breaking: AddedEdge { 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 },
1014 "size": {
1115 "type": "integer"
1216 }
1317 },
1418 "type": "object"
1519 },
1620 "childManifestInfo": {
1721 "properties": {
1822 "digest": {
1923 "maxLength": 128,
2024 "type": "string"
2125 },
2226 "mediaType": {
2327 "maxLength": 256,
2428 "type": "string"
2529 },
2630 "platform": {
2731 "ref": "#platformInfo",
2832 "type": "ref"
2933 },
3034 "size": {
3135 "type": "integer"
3236 }
3337 },
3438 "type": "object"
3539 },
3640 "layerInfo": {
3741 "properties": {
3842 "digest": {
3943 "maxLength": 128,
4044 "type": "string"
4145 },
4246 "mediaType": {
4347 "maxLength": 256,
4448 "type": "string"
4549 },
4650 "size": {
4751 "type": "integer"
4852 }
4953 },
5054 "type": "object"
5155 },
5256 "main": {
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.",
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.",
5458 "errors": [
5559 {
5660 "name": "InvalidOperation"
5761 },
5862 {
5963 "name": "UserMismatch"
6064 },
6165 {
6266 "name": "QuotaExceeded"
6367 }
6468 ],
6569 "input": {
6670 "encoding": "application/json",
6771 "schema": {
6872 "properties": {
6973 "manifest": {
74 "description": "The pushed manifest. Required for 'push'; absent for 'pull' and 'visibility'.",
7075 "ref": "#manifestInfo",
7176 "type": "ref"
7277 },
7378 "manifestDigest": {
7479 "description": "Manifest digest for building layer record AT-URIs",
7580 "maxLength": 128,
7681 "type": "string"
7782 },
7883 "operation": {
7984 "default": "push",
80 "description": "Operation type (defaults to 'push' for backward compatibility)",
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.",
8186 "knownValues": [
8287 "push",
83 "pull"
88 "pull",
89 "visibility"
8490 ],
8591 "maxLength": 16,
8692 "type": "string"
8793 },
8894 "repository": {
8995 "description": "Image repository name",
9096 "maxLength": 256,
9197 "type": "string"
9298 },
9399 "tag": {
94100 "description": "Image tag (optional, required for Bluesky posts)",
95101 "maxLength": 128,
96102 "type": "string"
97103 },
98104 "userDid": {
99105 "description": "DID of the image owner",
100106 "format": "did",
101107 "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"
102118 }
103119 },
104120 "required": [
105121 "repository",
106122 "userDid",
107 "manifestDigest",
108 "manifest"
123 "manifestDigest"
109124 ],
110125 "type": "object"
111126 }
112127 },
113128 "output": {
114129 "encoding": "application/json",
115130 "schema": {
116131 "properties": {
117132 "layersCreated": {
118133 "description": "Number of layer records created (push only)",
119134 "type": "integer"
120135 },
121136 "operation": {
122137 "description": "The operation that was performed ('push' or 'pull')",
123138 "maxLength": 16,
124139 "type": "string"
125140 },
126141 "postCreated": {
127142 "description": "Whether a Bluesky post was created (push only)",
128143 "type": "boolean"
129144 },
130145 "postUri": {
131146 "description": "AT-URI of the created Bluesky post (if postCreated is true)",
132147 "format": "at-uri",
133148 "type": "string"
134149 },
135150 "statsUpdated": {
136151 "description": "Whether stats were successfully updated",
137152 "type": "boolean"
138153 },
139154 "success": {
140155 "description": "Whether the operation completed successfully",
141156 "type": "boolean"
142157 }
143158 },
144159 "required": [
145160 "success",
146161 "operation",
147162 "statsUpdated"
148163 ],
149164 "type": "object"
150165 }
151166 },
152167 "type": "procedure"
153168 },
154169 "manifestInfo": {
155170 "description": "OCI manifest information",
156171 "properties": {
157172 "config": {
158173 "ref": "#blobInfo",
159174 "type": "ref"
160175 },
161176 "layers": {
162177 "items": {
163178 "ref": "#layerInfo",
164179 "type": "ref"
165180 },
166181 "type": "array"
167182 },
168183 "manifests": {
169184 "description": "Child manifests for multi-arch images",
170185 "items": {
171186 "ref": "#childManifestInfo",
172187 "type": "ref"
173188 },
174189 "type": "array"
175190 },
176191 "mediaType": {
177192 "description": "OCI media type",
178193 "maxLength": 256,
179194 "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"
180200 }
181201 },
182202 "type": "object"
183203 },
184204 "platformInfo": {
185205 "properties": {
186206 "architecture": {
187207 "maxLength": 64,
188208 "type": "string"
189209 },
190210 "os": {
191211 "maxLength": 64,
192212 "type": "string"
193213 }
194214 },
195215 "type": "object"
196216 }
197217 },
198218 "id": "io.atcr.hold.notifyManifest",
199219 "lexicon": 1
200220}