place.hud.defs
The shapes HUD's workspace methods share: canvases, their members and tiles, tabs, and the live events.
Details · defs
| Kind | defs |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbje7dhbju |
| Indexed |
Checks
Validunlimited-stringdefs.by.properties.kindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.canvasViewerState.properties.roleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.member.properties.roleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.shareLink.properties.kindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.sharedTile.properties.widthNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.storage.properties.kindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.tileEvent.properties.opNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"actor": {
"description": "A person, by DID and handle.",
"properties": {
"did": {
"format": "did",
"type": "string"
},
"handle": {
"description": "Their handle, verified, where known.",
"maxLength": 253,
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
},
"allowedApp": {
"description": "A frame app a person allows to save entries.",
"properties": {
"app": {
"description": "Its place.hud.app record.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"app"
],
"type": "object"
},
"by": {
"description": "Who caused a change.",
"properties": {
"did": {
"description": "The person, or the person an agent acts for.",
"format": "did",
"type": "string"
},
"handle": {
"description": "Their handle, where known.",
"maxLength": 253,
"type": "string"
},
"kind": {
"description": "person: on a workspace page, or another client of these methods; agent: an MCP client of theirs, through HUD's canvas tools.",
"knownValues": [
"person",
"agent"
],
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
},
"canvasView": {
"description": "A canvas, apart from its tiles.",
"properties": {
"key": {
"description": "The canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"link": {
"description": "Its link, while anyone with the link can view it.",
"ref": "place.hud.defs#shareLink",
"type": "ref"
},
"members": {
"description": "Its owner and those it invited.",
"items": {
"ref": "place.hud.defs#member",
"type": "ref"
},
"maxLength": 20,
"type": "array"
},
"owner": {
"description": "The canvas's owner, its space's authority.",
"format": "did",
"type": "string"
},
"record": {
"description": "The canvas's info, a place.hud.canvas record, as kept: its name, createdAt and updatedAt.",
"type": "unknown"
},
"storage": {
"ref": "place.hud.defs#storage",
"type": "ref"
},
"tileCount": {
"description": "How many tiles it holds.",
"minimum": 0,
"type": "integer"
},
"viewer": {
"ref": "place.hud.defs#canvasViewerState",
"type": "ref"
}
},
"required": [
"key",
"owner",
"record"
],
"type": "object"
},
"canvasViewerState": {
"description": "The person asking, in a canvas.",
"properties": {
"invitedBy": {
"description": "Who invited the person, while the invitation waits: an invitation, not yet a canvas they are in.",
"format": "did",
"type": "string"
},
"role": {
"description": "The person's role in it.",
"knownValues": [
"owner",
"editor",
"viewer"
],
"type": "string"
}
},
"type": "object"
},
"canvasesEvent": {
"description": "The person's workspace changed: a canvas made, renamed, shared, deleted, opened, closed or reordered, an invitation, where canvases are kept. Read getWorkspace again.",
"properties": {
"by": {
"ref": "place.hud.defs#by",
"type": "ref"
},
"canvas": {
"description": "The canvas that changed; none when it concerns all the person's, as where they are kept.",
"maxLength": 12,
"minLength": 12,
"type": "string"
}
},
"type": "object"
},
"contrastProblem": {
"description": "A text of a palette that reads at under 4.5:1 on a surface it is drawn on.",
"properties": {
"on": {
"description": "The palette's colour it is drawn on, by its field.",
"maxLength": 32,
"type": "string"
},
"ratio": {
"description": "How it reads, as 3.21 for 3.21:1.",
"maxLength": 8,
"type": "string"
},
"text": {
"description": "The palette's colour drawn as text, by its field.",
"maxLength": 32,
"type": "string"
}
},
"required": [
"text",
"on",
"ratio"
],
"type": "object"
},
"launcher": {
"description": "A query a bundled view offers a workspace's New tile: its app, the domain whose icon it shows, its title, and the query to call, its params made the person's.",
"properties": {
"app": {
"description": "The app's name, as an account's profile names the domain of its method (Bluesky for bsky.app).",
"maxLength": 64,
"type": "string"
},
"domain": {
"description": "The domain of the app, from its method's NSID: its icon is /icon/<domain>.",
"maxLength": 253,
"type": "string"
},
"method": {
"format": "nsid",
"type": "string"
},
"params": {
"description": "The query's params, as an object.",
"type": "unknown"
},
"service": {
"description": "The service the query is called at, as did:…#fragment.",
"maxLength": 2048,
"type": "string"
},
"title": {
"maxLength": 120,
"type": "string"
}
},
"required": [
"app",
"domain",
"title",
"method",
"service",
"params"
],
"type": "object"
},
"member": {
"description": "A member of a canvas: its owner, or someone it invited.",
"properties": {
"did": {
"format": "did",
"type": "string"
},
"handle": {
"description": "Their handle, verified when they were invited or signed in.",
"maxLength": 253,
"type": "string"
},
"invitedBy": {
"description": "Who invited them; none for the owner.",
"format": "did",
"type": "string"
},
"pending": {
"description": "True while their invitation waits: they are not in it yet.",
"type": "boolean"
},
"role": {
"knownValues": [
"owner",
"editor",
"viewer"
],
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
},
"palette": {
"description": "A theme's colours, each named for what it colours rather than its hue, as a hex colour #rrggbb. Every text reads at 4.5:1 or better on what it is drawn on.",
"properties": {
"accent": {
"description": "What marks rather than acts: links, the tab one is on, the row a search picks.",
"maxLength": 7,
"type": "string"
},
"accentSoft": {
"description": "Behind what the accent marks: the row a search picks.",
"maxLength": 7,
"type": "string"
},
"attention": {
"description": "What waits or runs, and an agent's work.",
"maxLength": 7,
"type": "string"
},
"background": {
"description": "A tile's body, and the page's chrome: what is drawn on the canvas.",
"maxLength": 7,
"type": "string"
},
"border": {
"description": "Lines between parts, and a card's hairline.",
"maxLength": 7,
"type": "string"
},
"borderStrong": {
"description": "A stronger edge, for a field or a column that has focus nearby.",
"maxLength": 7,
"type": "string"
},
"canvas": {
"description": "The grey behind the tiles.",
"maxLength": 7,
"type": "string"
},
"danger": {
"description": "What failed, is removed, or is dangerous.",
"maxLength": 7,
"type": "string"
},
"done": {
"description": "What is done: a pull merged.",
"maxLength": 7,
"type": "string"
},
"neutral": {
"description": "What closed or was skipped.",
"maxLength": 7,
"type": "string"
},
"notice": {
"description": "A notice's surface: what a reader should know, and the toast that says what an agent did.",
"maxLength": 7,
"type": "string"
},
"onNotice": {
"description": "A notice's text.",
"maxLength": 7,
"type": "string"
},
"onPrimary": {
"description": "Text on the main buttons.",
"maxLength": 7,
"type": "string"
},
"onSolid": {
"description": "Text on a state's pill, drawn in success, danger, done, attention or neutral.",
"maxLength": 7,
"type": "string"
},
"panel": {
"description": "A surface a little apart from the background: a header.",
"maxLength": 7,
"type": "string"
},
"primary": {
"description": "The main buttons, and the edge of what has focus.",
"maxLength": 7,
"type": "string"
},
"soft": {
"description": "A surface further apart: a hovered row, a field.",
"maxLength": 7,
"type": "string"
},
"success": {
"description": "What is open, passed, or added.",
"maxLength": 7,
"type": "string"
},
"text": {
"description": "The body's text.",
"maxLength": 7,
"type": "string"
},
"textFaint": {
"description": "Text said more quietly still: hints, placeholders.",
"maxLength": 7,
"type": "string"
},
"textMuted": {
"description": "Text said quietly: times, counts.",
"maxLength": 7,
"type": "string"
}
},
"required": [
"canvas",
"background",
"panel",
"soft",
"border",
"borderStrong",
"text",
"textMuted",
"textFaint",
"primary",
"onPrimary",
"accent",
"accentSoft",
"success",
"danger",
"done",
"attention",
"neutral",
"onSolid",
"notice",
"onNotice"
],
"type": "object"
},
"presenceEvent": {
"description": "Who is on an open canvas: as a stream opens it, and as anyone comes or goes, by whom.",
"properties": {
"by": {
"ref": "place.hud.defs#by",
"type": "ref"
},
"canvas": {
"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"present": {
"description": "Who has it open now, each once.",
"items": {
"ref": "place.hud.defs#actor",
"type": "ref"
},
"type": "array"
}
},
"required": [
"canvas",
"present"
],
"type": "object"
},
"shareLink": {
"description": "A link a person shared: anyone with it can view what it shares, a canvas as it is now, or a tile or a chat's answer as it was shared.",
"properties": {
"canvas": {
"description": "The canvas it shares, for kind canvas: told its sharer alone, never a link's holder.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"key": {
"description": "The link's key: 128 random bits in base32, lowercase, unpadded; never derived from what it shares. Its pages are /c/<key>, /t/<key> and /chat/<key>.",
"maxLength": 26,
"minLength": 26,
"type": "string"
},
"kind": {
"description": "What it shares: canvas, a canvas, live; tile, one tile's call; chat, one answer of a chat.",
"knownValues": [
"canvas",
"tile",
"chat"
],
"type": "string"
},
"title": {
"description": "What it is called: the canvas's name, the tile's title, or the question the answer is to.",
"maxLength": 200,
"type": "string"
},
"url": {
"description": "Its page on this server: /c/<id>, /t/<id> or /chat/<id>.",
"format": "uri",
"type": "string"
}
},
"required": [
"key",
"kind",
"url",
"title",
"createdAt"
],
"type": "object"
},
"sharedCall": {
"description": "A tile on a shared page: one of HUD's read tools and its arguments, an inline view among them where it has one, never its result. The page calls it as whoever opens it.",
"properties": {
"arguments": {
"description": "Its arguments, an object of at most 64 KiB as JSON.",
"type": "unknown"
},
"title": {
"maxLength": 200,
"type": "string"
},
"tool": {
"description": "The read tool, by its MCP name.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"tool",
"arguments",
"title"
],
"type": "object"
},
"sharedTile": {
"description": "A tile of a canvas shared by link, as its link's holders see it: its call and its place, never who added it.",
"properties": {
"arguments": {
"description": "Its arguments, an object of at most 64 KiB as JSON.",
"type": "unknown"
},
"icon": {
"description": "The icon of the app whose data it shows, as a tileView's.",
"format": "uri",
"type": "string"
},
"key": {
"description": "The tile's id: 12 hex digits, what callSharedTool names it by.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"stack": {
"description": "The column-head tile it is stacked under; none for a head.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"title": {
"maxLength": 200,
"type": "string"
},
"tool": {
"description": "The read tool, by its MCP name.",
"maxLength": 64,
"type": "string"
},
"width": {
"description": "Its column's width, a share of the strip's visible width; a stacked tile's column is its head's.",
"knownValues": [
"third",
"half",
"two-thirds",
"full"
],
"type": "string"
}
},
"required": [
"key",
"tool",
"arguments",
"title",
"width"
],
"type": "object"
},
"storage": {
"description": "Where a canvas is kept.",
"properties": {
"kind": {
"description": "space: a personal space on the owner's PDS; file: the HUD server's own files.",
"knownValues": [
"file",
"space"
],
"type": "string"
},
"reason": {
"description": "Why it is not in a space, where spaces are on.",
"maxLength": 1000,
"type": "string"
},
"uri": {
"description": "The canvas's space, for kind space.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
"tab": {
"description": "A canvas open as a tab.",
"properties": {
"canvas": {
"ref": "place.hud.defs#canvasView",
"type": "ref"
}
},
"required": [
"canvas"
],
"type": "object"
},
"tabRef": {
"description": "A tab, by its canvas.",
"properties": {
"canvas": {
"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
}
},
"required": [
"canvas"
],
"type": "object"
},
"theme": {
"description": "A theme the workspace is drawn in: one of HUD's, by key, or a person's place.hud.theme record, by uri; never both. Light and dark are HUD's own look in that scheme, as each platform draws it, so they have no palette; every other theme is a palette, drawn over its scheme's look.",
"properties": {
"colorScheme": {
"description": "Whether it is light or dark: what its palette falls back on, and how a platform draws what the theme does not colour, as scrollbars and system controls.",
"knownValues": [
"light",
"dark"
],
"maxLength": 16,
"type": "string"
},
"creator": {
"description": "Who made a person's theme.",
"ref": "#actor",
"type": "ref"
},
"key": {
"description": "One of HUD's themes, as setTheme names it.",
"knownValues": [
"light",
"dark",
"amber",
"blueprint",
"dusk",
"frost",
"paper",
"phosphor"
],
"maxLength": 64,
"type": "string"
},
"name": {
"description": "What it is called, as the workspace lists it.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"palette": {
"description": "Its colours; none for light and dark, HUD's own look.",
"ref": "#palette",
"type": "ref"
},
"uri": {
"description": "A person's theme: its place.hud.theme record, as setTheme names it.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"name",
"colorScheme"
],
"type": "object"
},
"tileEvent": {
"description": "A tile of an open canvas changed. One change may move others, each its own event: a column's head taken off, the next in its stack heads it.",
"properties": {
"by": {
"ref": "place.hud.defs#by",
"type": "ref"
},
"canvas": {
"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"key": {
"description": "The tile's id.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"op": {
"description": "add: a tile added; update: its place, width, stack or title changed; remove: taken off.",
"knownValues": [
"add",
"update",
"remove"
],
"type": "string"
},
"tile": {
"description": "The tile as it now is; none once removed.",
"ref": "place.hud.defs#tileView",
"type": "ref"
}
},
"required": [
"canvas",
"op",
"key"
],
"type": "object"
},
"tileView": {
"description": "A tile: one of HUD's read tools and its arguments, never its result, as a column of the strip, or stacked in one.",
"properties": {
"author": {
"description": "The member who added it, in whose repo its record is.",
"format": "did",
"type": "string"
},
"icon": {
"description": "The icon of the app whose data it shows: its favicon, from this server's /icon/<domain>, the domain the NSID's first two segments reversed (app.bsky → bsky.app), of the collection a record tile shows or the method a query tile calls. None where it names no NSID; it answers 404 where the app has no icon.",
"format": "uri",
"type": "string"
},
"key": {
"description": "The tile's id: 12 hex digits, its record's key.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"record": {
"description": "The tile, a place.hud.tile record, as kept: its tool and arguments (or argumentsJson), title, order, width, stack, by, createdAt and from.",
"type": "unknown"
},
"uri": {
"description": "The tile's record, in its canvas's space, where the canvas is kept in one; none for one kept on the HUD server.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"key",
"author",
"record"
],
"type": "object"
}
},
"description": "The shapes HUD's workspace methods share: canvases, their members and tiles, tabs, and the live events.",
"id": "place.hud.defs",
"lexicon": 1
}