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
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"description": "The app is not one HUD runs: what is wrong is named.",
"name": "InvalidRequest"
},
{
"description": "No live web session or HUD access token, or the person's sign-in at their PDS ended: sign in.",
"name": "AuthRequired"
},
{
"description": "Their PDS refused the write; or they signed in before HUD asked to publish apps, which the message says: sign in again.",
"name": "UpstreamFailure"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"html": {
"accept": [
"text/html"
],
"description": "Its document, uploaded first (place.hud.uploadBlob with purpose app).",
"maxSize": 2000000,
"type": "blob"
},
"icon": {
"accept": [
"image/png",
"image/webp"
],
"description": "Its icon, uploaded first.",
"maxSize": 256000,
"type": "blob"
},
"kinds": {
"description": "Its kinds of entry, each a name (1 to 64 letters and digits in lowerCamelCase) and a lexicon object def.",
"items": {
"ref": "place.hud.app#kind",
"type": "ref"
},
"maxLength": 16,
"minLength": 1,
"type": "array"
},
"name": {
"description": "What the app is called.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"origins": {
"description": "The https origins it loads pictures and audio from, as place.hud.app holds them: each one a view HUD trusts names.",
"items": {
"ref": "place.hud.app#origin",
"type": "ref"
},
"maxLength": 8,
"type": "array"
},
"reads": {
"description": "Public collections it reads beyond its entries, as place.hud.app holds them.",
"items": {
"ref": "place.hud.app#collection",
"type": "ref"
},
"maxLength": 16,
"type": "array"
},
"rkey": {
"description": "The app's record key, its address's last part: 1 to 64 of a-z, 0-9 and -.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"summary": {
"description": "What it is.",
"maxGraphemes": 300,
"maxLength": 3000,
"type": "string"
},
"words": {
"accept": [
"application/json"
],
"description": "Its words by language, uploaded first.",
"maxSize": 512000,
"type": "blob"
},
"writers": {
"description": "Who alone may write its entries: anyone where it is left out.",
"items": {
"ref": "place.hud.app#writer",
"type": "ref"
},
"maxLength": 200,
"type": "array"
},
"writes": {
"description": "Collections it writes in the person's repository beyond its entries, as place.hud.app holds them: each one whose record lexicon HUD bundles.",
"items": {
"ref": "place.hud.app#collection",
"type": "ref"
},
"maxLength": 8,
"type": "array"
}
},
"required": [
"rkey",
"name",
"html",
"kinds"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
},
"url": {
"description": "The app's page, to share: /a/<handle>/<rkey> on this server.",
"format": "uri",
"type": "string"
}
},
"required": [
"uri",
"cid",
"url"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Publish a frame app.",
"id": "place.hud.publishApp",
"lexicon": 1
}