full diff

at.happyproto.registry.putProject

happyproto.at +4 −0
From
bafyreiegrlkbbziy3vk6xnpejjjawhbvt7ht2my442sbinw5fsxi3rydxu indexed 2026-10-26 21:34 UTC View this version
To
bafyreifugz5mefomwvudojydfj3ws6su2qkxdfo6pc7sh7qadoz5vxnhde indexed 2026-11-01 21:46 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Create or update a plugin project in the caller's repo. The first call writes the site.standard.publication, the at.happyproto.registry.project and the software.release.project, in that order, so each is indexed after what it depends on. Later calls update the publication and the at.happyproto.registry.project only; the project record itself is never changed.",
66 "errors": [
77 {
88 "description": "The caller's identity could not be determined, so there is no repo to write to.",
99 "name": "AuthRequired"
1010 },
1111 {
1212 "description": "The registry has no identity configured. An operator problem, not a caller's.",
1313 "name": "NotConfigured"
1414 },
1515 {
1616 "description": "The input breaks a rule the registry applies, so it would refuse the records. The message names the field.",
1717 "name": "InvalidRecord"
1818 },
1919 {
20 "description": "The input breaks the method's lexicon, such as a field of the wrong format or past its length, and HappyView refused it before the registry saw it. The message names the field.",
21 "name": "InvalidRequest"
22 },
23 {
2024 "description": "A record could not be written to the caller's repo. Records written before the failure stay, and the same call can be made again.",
2125 "name": "Upstream"
2226 },
2327 {
2428 "description": "The caller's at.happyproto.registry.project record no longer has the CID given in swapCid.",
2529 "name": "InvalidSwap"
2630 }
2731 ],
2832 "input": {
2933 "encoding": "application/json",
3034 "schema": {
3135 "properties": {
3236 "name": {
3337 "description": "The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens.",
3438 "maxLength": 64,
3539 "minLength": 1,
3640 "type": "string"
3741 },
3842 "project": {
3943 "ref": "#project",
4044 "type": "ref"
4145 },
4246 "publication": {
4347 "ref": "#publication",
4448 "type": "ref"
4549 },
4650 "swapCid": {
4751 "description": "Update only if the caller's at.happyproto.registry.project record still has this CID, so a concurrent update is not silently overwritten.",
4852 "format": "cid",
4953 "type": "string"
5054 },
5155 "validateOnly": {
5256 "default": false,
5357 "description": "Check the input against every rule the registry applies, and write nothing. Works without authentication, but only a signed-in call is also checked against the caller's existing records.",
5458 "type": "boolean"
5559 }
5660 },
5761 "required": [
5862 "name",
5963 "publication",
6064 "project"
6165 ],
6266 "type": "object"
6367 }
6468 },
6569 "output": {
6670 "encoding": "application/json",
6771 "schema": {
6872 "properties": {
6973 "created": {
7074 "description": "True when this call created the project. Absent when validateOnly was set.",
7175 "type": "boolean"
7276 },
7377 "project": {
7478 "description": "The software.release.project. Absent when validateOnly was set.",
7579 "ref": "at.happyproto.registry.defs#ref",
7680 "type": "ref"
7781 },
7882 "publication": {
7983 "description": "The site.standard.publication. Absent when validateOnly was set.",
8084 "ref": "at.happyproto.registry.defs#ref",
8185 "type": "ref"
8286 },
8387 "sidecar": {
8488 "description": "The at.happyproto.registry.project. Absent when validateOnly was set.",
8589 "ref": "at.happyproto.registry.defs#ref",
8690 "type": "ref"
8791 },
8892 "valid": {
8993 "description": "Always true; invalid input is an error, not a result.",
9094 "type": "boolean"
9195 }
9296 },
9397 "required": [
9498 "valid"
9599 ],
96100 "type": "object"
97101 }
98102 },
99103 "type": "procedure"
100104 },
101105 "project": {
102106 "description": "What the registry writes to the project's at.happyproto.registry.project.",
103107 "properties": {
104108 "authors": {
105109 "items": {
106110 "ref": "at.happyproto.registry.project#author",
107111 "type": "ref"
108112 },
109113 "minLength": 1,
110114 "type": "array"
111115 },
112116 "keywords": {
113117 "items": {
114118 "maxGraphemes": 32,
115119 "maxLength": 320,
116120 "type": "string"
117121 },
118122 "maxLength": 20,
119123 "type": "array"
120124 },
121125 "pluginType": {
122126 "knownValues": [
123127 "auth",
124128 "library",
125129 "interpreter"
126130 ],
127131 "type": "string"
128132 },
129133 "security": {
130134 "items": {
131135 "ref": "at.happyproto.registry.project#contact",
132136 "type": "ref"
133137 },
134138 "minLength": 1,
135139 "type": "array"
136140 }
137141 },
138142 "required": [
139143 "pluginType",
140144 "authors",
141145 "security"
142146 ],
143147 "type": "object"
144148 },
145149 "publication": {
146150 "description": "What the registry writes to the project's site.standard.publication.",
147151 "properties": {
148152 "description": {
149153 "maxGraphemes": 300,
150154 "maxLength": 3000,
151155 "type": "string"
152156 },
153157 "icon": {
154158 "accept": [
155159 "image/png",
156160 "image/jpeg",
157161 "image/webp",
158162 "image/gif",
159163 "image/avif"
160164 ],
161165 "description": "A blob already uploaded to the caller's repo: a PNG, JPEG, WebP, GIF or AVIF image, the raster types the registry copies and serves. SVG is refused, since it can carry script.",
162166 "maxSize": 1000000,
163167 "type": "blob"
164168 },
165169 "name": {
166170 "description": "The plugin's display name.",
167171 "maxGraphemes": 64,
168172 "maxLength": 640,
169173 "minLength": 1,
170174 "type": "string"
171175 }
172176 },
173177 "required": [
174178 "name"
175179 ],
176180 "type": "object"
177181 }
178182 },
179183 "id": "at.happyproto.registry.putProject",
180184 "lexicon": 1
181185}

Compare other versions