place.hud.previewApp
Keep a frame app, checked as place.hud.publishApp checks one, for 30 minutes in this server's memory, to run at /a/preview/<id> as a published one runs: its writes answered as a preview's, never sent, its entries those of app where given. Nothing reaches the person's PDS. 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 | 3n3kx77shzvju |
| Indexed |
Procedure
procedure · POSTInput
application/jsonapp
string · at-uriThe published app it would replace, whose entries the preview reads.
Its document, UTF-8, everything it loads inline.
maxLength: 2000000
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
summary
stringWhat it is.
maxLength: 3000maxGraphemes: 300
words
unknownIts words by language, en among them.
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: sign in.
LimitReached
This server keeps as many previews as it holds: try again in a while.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
place.hud.getAppPreview
queryA frame app's preview.
-
place.hud.publishApp
procedurePublish a frame app.
-
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.getFrameApp
queryA frame app HUD serves.
-
place.hud.getChatApp
queryAn app a chat made, as its page shows it.