full diff

place.hud.previewApp

From
bafyreiahqhnoqavwpu73nm43jh3j6dstlszw4wtiostovjdnxbyr3cz26a indexed 2026-11-30 20:31 UTC View this version
To
bafyreidudnlva2wqvx7rt6aiwnuuecainqzdq5o3e5kvgvqkwtx3xe74sq indexed 2026-12-01 00:05 UTC View this version

Compatibility

backward compatible Backward compatible. 17 non-breaking changes.

Non-breaking changes (17)
  • AddedVertex AddedVertex { vertex_id: "place.hud.app#collection" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.app#origin" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.origins" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.origins:items" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.reads" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.reads:items" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.writes" }
  • AddedVertex AddedVertex { vertex_id: "place.hud.previewApp:input.writes:items" }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.origins", kind: "prop", name: Some("origins") }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.reads", kind: "prop", name: Some("reads") }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.writes", kind: "prop", name: Some("writes") }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.origins", tgt: "place.hud.previewApp:input.origins:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.origins:items", tgt: "place.hud.app#origin", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.reads", tgt: "place.hud.previewApp:input.reads:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.reads:items", tgt: "place.hud.app#collection", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.writes", tgt: "place.hud.previewApp:input.writes:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "place.hud.previewApp:input.writes:items", tgt: "place.hud.app#collection", kind: "ref", name: None }

Migration guidance

Added

  • AddedVertex { vertex_id: "place.hud.app#collection" }
  • AddedVertex { vertex_id: "place.hud.app#origin" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.origins" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.origins:items" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.reads" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.reads:items" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.writes" }
  • AddedVertex { vertex_id: "place.hud.previewApp:input.writes:items" }

Notes

  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.origins", kind: "prop", name: Some("origins") }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.reads", kind: "prop", name: Some("reads") }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input", tgt: "place.hud.previewApp:input.writes", kind: "prop", name: Some("writes") }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.origins", tgt: "place.hud.previewApp:input.origins:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.origins:items", tgt: "place.hud.app#origin", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.reads", tgt: "place.hud.previewApp:input.reads:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.reads:items", tgt: "place.hud.app#collection", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.writes", tgt: "place.hud.previewApp:input.writes:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "place.hud.previewApp:input.writes:items", tgt: "place.hud.app#collection", kind: "ref", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "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.",
66 "errors": [
77 {
88 "description": "The app is not one HUD runs: what is wrong is named.",
99 "name": "InvalidRequest"
1010 },
1111 {
1212 "description": "No live web session or HUD access token: sign in.",
1313 "name": "AuthRequired"
1414 },
1515 {
1616 "description": "This server keeps as many previews as it holds: try again in a while.",
1717 "name": "LimitReached"
1818 }
1919 ],
2020 "input": {
2121 "encoding": "application/json",
2222 "schema": {
2323 "properties": {
2424 "app": {
2525 "description": "The published app it would replace, whose entries the preview reads.",
2626 "format": "at-uri",
2727 "type": "string"
2828 },
2929 "html": {
3030 "description": "Its document, UTF-8, everything it loads inline.",
3131 "maxLength": 2000000,
3232 "type": "string"
3333 },
3434 "kinds": {
3535 "description": "Its kinds of entry, each a name (1 to 64 letters and digits in lowerCamelCase) and a lexicon object def.",
3636 "items": {
3737 "ref": "place.hud.app#kind",
3838 "type": "ref"
3939 },
4040 "maxLength": 16,
4141 "minLength": 1,
4242 "type": "array"
4343 },
4444 "name": {
4545 "description": "What the app is called.",
4646 "maxGraphemes": 64,
4747 "maxLength": 640,
4848 "type": "string"
4949 },
50 "origins": {
51 "description": "The https origins it loads pictures and audio from, as place.hud.app holds them: each one a view HUD trusts names.",
52 "items": {
53 "ref": "place.hud.app#origin",
54 "type": "ref"
55 },
56 "maxLength": 8,
57 "type": "array"
58 },
59 "reads": {
60 "description": "Public collections it reads beyond its entries, as place.hud.app holds them.",
61 "items": {
62 "ref": "place.hud.app#collection",
63 "type": "ref"
64 },
65 "maxLength": 16,
66 "type": "array"
67 },
5068 "summary": {
5169 "description": "What it is.",
5270 "maxGraphemes": 300,
5371 "maxLength": 3000,
5472 "type": "string"
5573 },
5674 "words": {
5775 "description": "Its words by language, en among them.",
5876 "type": "unknown"
5977 },
6078 "writers": {
6179 "description": "Who alone may write its entries: anyone where it is left out.",
6280 "items": {
6381 "ref": "place.hud.app#writer",
6482 "type": "ref"
6583 },
6684 "maxLength": 200,
6785 "type": "array"
86 },
87 "writes": {
88 "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.",
89 "items": {
90 "ref": "place.hud.app#collection",
91 "type": "ref"
92 },
93 "maxLength": 8,
94 "type": "array"
6895 }
6996 },
7097 "required": [
7198 "name",
7299 "html",
73100 "kinds"
74101 ],
75102 "type": "object"
76103 }
77104 },
78105 "output": {
79106 "encoding": "application/json",
80107 "schema": {
81108 "properties": {
82109 "preview": {
83110 "description": "The preview's id: 26 characters of a-z and 2-7.",
84111 "maxLength": 26,
85112 "minLength": 26,
86113 "type": "string"
87114 },
88115 "url": {
89116 "description": "Its page's path: /a/preview/<id>.",
90117 "maxLength": 64,
91118 "type": "string"
92119 }
93120 },
94121 "required": [
95122 "preview",
96123 "url"
97124 ],
98125 "type": "object"
99126 }
100127 },
101128 "type": "procedure"
102129 }
103130 },
104131 "description": "Preview a frame app before publishing it.",
105132 "id": "place.hud.previewApp",
106133 "lexicon": 1
107134}

Compare other versions