place.hud.frame

An operator's app file's frame (frame in <HUD_APPS>/<domain>.json): how a client's shell draws the app's navigation, its one primary action, the account's area, footer links and an aside around its screens. An object in a file, not a method, so it needs no auth. hud_core::operator holds a frame to this lexicon, then to its own rules: no key but these, each call drawn by a view, each icon one a shell draws.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · object
Kindobject
Authorityhud.place
Commit rev3n3jbjebdk3ju
Indexed
cid bafyreigkzxys3426faythcjgbtmduiljxpvgabjvonlpm5dom7lwykxgaq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "account": {
      "description": "The account's area: its picture and its items.",
      "properties": {
        "items": {
          "description": "What the account's area lists.",
          "items": {
            "ref": "#item",
            "type": "ref"
          },
          "maxLength": 8,
          "type": "array"
        },
        "picture": {
          "description": "Where the account's picture is read, and the tab it is drawn on.",
          "ref": "#picture",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "action": {
      "description": "The app's one primary action: a filled button in the sidebar, an icon in the rail; not drawn in the bottom bar's band, where the screen's own bar has it.",
      "properties": {
        "call": {
          "description": "The call it opens, drawn by a view, as a screen on the tab on show.",
          "ref": "#call",
          "type": "ref"
        },
        "icon": {
          "description": "Its icon.",
          "knownValues": [
            "feed",
            "search",
            "compass",
            "notification",
            "people",
            "settings",
            "plus",
            "photo",
            "imagePlus",
            "logOut",
            "logIn",
            "grid",
            "heart",
            "star",
            "comment",
            "activity",
            "repo",
            "issue",
            "pull",
            "release"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "label": {
          "description": "Its label.",
          "maxGraphemes": 40,
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "label",
        "icon",
        "call"
      ],
      "type": "object"
    },
    "aside": {
      "description": "A screen drawn right of the main column.",
      "properties": {
        "call": {
          "description": "The screen, drawn by a view.",
          "ref": "#call",
          "type": "ref"
        },
        "width": {
          "default": 320,
          "description": "Its width in CSS pixels.",
          "maximum": 480,
          "minimum": 200,
          "type": "integer"
        }
      },
      "required": [
        "call"
      ],
      "type": "object"
    },
    "bands": {
      "description": "The window widths, in CSS pixels, at which the navigation changes.",
      "properties": {
        "rail": {
          "default": 600,
          "description": "From this width, a rail in place of a bottom bar.",
          "maximum": 4000,
          "minimum": 320,
          "type": "integer"
        },
        "sidebar": {
          "default": 1200,
          "description": "From this width, a labelled sidebar; wider than rail.",
          "maximum": 4000,
          "minimum": 320,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "call": {
      "description": "A tool call, as an app's tabs and routes name one.",
      "properties": {
        "args": {
          "description": "The tool's arguments.",
          "type": "unknown"
        },
        "name": {
          "description": "The tool's name: query, describe_app, get_record or list_records.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "item": {
      "description": "One of the account's items: a screen of the app's (label, icon and call), drawn signed in, or one the host draws (host).",
      "properties": {
        "about": {
          "description": "A line drawn over a host item.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        },
        "call": {
          "description": "The screen it opens, drawn by a view.",
          "ref": "#call",
          "type": "ref"
        },
        "host": {
          "description": "What the host does: signOut, drawn signed in; signIn, drawn signed out.",
          "knownValues": [
            "signOut",
            "signIn"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "icon": {
          "description": "Its icon.",
          "knownValues": [
            "feed",
            "search",
            "compass",
            "notification",
            "people",
            "settings",
            "plus",
            "photo",
            "imagePlus",
            "logOut",
            "logIn",
            "grid",
            "heart",
            "star",
            "comment",
            "activity",
            "repo",
            "issue",
            "pull",
            "release"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "label": {
          "description": "Its label.",
          "maxGraphemes": 40,
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    },
    "link": {
      "description": "A link at the navigation's foot.",
      "properties": {
        "href": {
          "description": "Where it goes: a path starting with / or an https URL.",
          "maxLength": 2000,
          "type": "string"
        },
        "label": {
          "description": "Its label.",
          "maxGraphemes": 40,
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "label",
        "href"
      ],
      "type": "object"
    },
    "main": {
      "description": "An operator's app file's frame (frame in <HUD_APPS>/<domain>.json): how a client's shell draws the app's navigation, its one primary action, the account's area, footer links and an aside around its screens. An object in a file, not a method, so it needs no auth. hud_core::operator holds a frame to this lexicon, then to its own rules: no key but these, each call drawn by a view, each icon one a shell draws.",
      "properties": {
        "account": {
          "description": "The account's area.",
          "ref": "#account",
          "type": "ref"
        },
        "action": {
          "description": "The app's one primary action, drawn signed in.",
          "ref": "#action",
          "type": "ref"
        },
        "aside": {
          "description": "A screen drawn beside the main column where the window has the room.",
          "ref": "#aside",
          "type": "ref"
        },
        "bands": {
          "description": "The window widths at which the navigation changes.",
          "ref": "#bands",
          "type": "ref"
        },
        "destinations": {
          "description": "What the navigation lists: tabs, the app's tabs, drawn as a bottom bar, a rail or a sidebar by the window's width.",
          "knownValues": [
            "tabs"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "links": {
          "description": "Links drawn at the navigation's foot.",
          "items": {
            "ref": "#link",
            "type": "ref"
          },
          "maxLength": 12,
          "type": "array"
        },
        "sizes": {
          "description": "The widths of the column a view's measure asks for.",
          "ref": "#sizes",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "picture": {
      "description": "The account's picture: read once from a query's answer (the account's profile, called as each account the app is signed in to), it becomes the icon of a tab, and with its name and handle beside it a row of the accounts the host lists (a view's Accounts).",
      "properties": {
        "at": {
          "description": "A dotted path to the picture in the query's answer.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        },
        "call": {
          "description": "A query call that reads it.",
          "ref": "#call",
          "type": "ref"
        },
        "handle": {
          "description": "A dotted path to the account's handle in the same answer, for its row among the accounts.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "description": "A dotted path to the account's name in the same answer, for its row among the accounts.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        },
        "tab": {
          "description": "The label of the tab whose icon it becomes.",
          "maxGraphemes": 40,
          "maxLength": 400,
          "type": "string"
        }
      },
      "required": [
        "tab",
        "call",
        "at"
      ],
      "type": "object"
    },
    "sizes": {
      "description": "The widths, in CSS pixels, of the column a view's measure asks for.",
      "properties": {
        "content": {
          "default": 600,
          "description": "The column of a view whose measure is content.",
          "maximum": 1600,
          "minimum": 320,
          "type": "integer"
        },
        "wide": {
          "default": 935,
          "description": "The column of a view whose measure is wide; no narrower than content.",
          "maximum": 2400,
          "minimum": 320,
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "id": "place.hud.frame",
  "lexicon": 1
}