place.hud.publishApp
Write a place.hud.app record in the person's own repository at rkey, a new one or in place of the one there, its blobs uploaded before (place.hud.uploadBlob with purpose app), checked as HUD checks an app it runs: its lexicon, its kinds' defs and its words. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3kx77sturju |
| Indexed |
Showing version bafyreiaorf7cfpe6e2nm43nnnztwsnc5nt6w6jkrziywji7yjglicpijm4. Show the latest
Procedure
procedure · POSTInput
application/jsonIts document, uploaded first (place.hud.uploadBlob with purpose app).
maxSize: 2000000accept: text/html
icon
blobIts icon, uploaded first.
maxSize: 256000accept: image/png, image/webp
Its kinds of entry, each a name (1 to 64 letters and digits in lowerCamelCase) and a lexicon object def.
minLength: 1maxLength: 16
What the app is called.
maxLength: 640maxGraphemes: 64
origins
arrayThe https origins it loads pictures and audio from, as place.hud.app holds them: each one a view HUD trusts names.
maxLength: 8
reads
arrayPublic collections it reads beyond its entries, as place.hud.app holds them.
maxLength: 16
The app's record key, its address's last part: 1 to 64 of a-z, 0-9 and -.
minLength: 1maxLength: 64
summary
stringWhat it is.
maxLength: 3000maxGraphemes: 300
words
blobIts words by language, uploaded first.
maxSize: 512000accept: application/json
writers
arrayWho alone may write its entries: anyone where it is left out.
maxLength: 200
writes
arrayCollections it writes in the person's repository beyond its entries, as place.hud.app holds them: each one whose record lexicon HUD bundles.
maxLength: 8
Output
application/jsonErrors
InvalidRequest
The app is not one HUD runs: what is wrong is named.
AuthRequired
No live web session or HUD access token, or the person's sign-in at their PDS ended: sign in.
UpstreamFailure
Their PDS refused the write; or they signed in before HUD asked to publish apps, which the message says: sign in again.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
place.hud.app
recordA frame app someone published for HUD to run: an HTML document in a sandboxed frame, and the kinds of entry it saves.
-
place.hud.previewApp
procedurePreview a frame app before publishing it.
-
place.hud.createAppRecord
procedureWrite a record a frame app makes in the person's own repository.
-
Publish an app a chat made.
-
place.hud.createAppEntry
procedureSave an entry for a frame app.