# 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.

- Kind: object
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.frame)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.frame/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.frame/analytics)

## Object (`place.hud.frame`)

Type: object

### Properties

- `account` (ref): The account's area.
  - Reference: `#account`
- `action` (ref): The app's one primary action, drawn signed in.
  - Reference: `#action`
- `aside` (ref): A screen drawn beside the main column where the window has the room.
  - Reference: `#aside`
- `bands` (ref): The window widths at which the navigation changes.
  - Reference: `#bands`
- `destinations` (string): What the navigation lists: tabs, the app's tabs, drawn as a bottom bar, a rail or a sidebar by the window's width.
  - Constraints: maxLength: 32, knownValues: tabs
- `links` (array): Links drawn at the navigation's foot.
  - Constraints: maxLength: 12
  - `items` (ref)
    - Reference: `#link`
- `sizes` (ref): The widths of the column a view's measure asks for.
  - Reference: `#sizes`

## #account (`place.hud.frame#account`)

Type: object

The account's area: its picture and its items.

### Properties

- `items` (array): What the account's area lists.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `#item`
- `picture` (ref): Where the account's picture is read, and the tab it is drawn on.
  - Reference: `#picture`

## #action (`place.hud.frame#action`)

Type: object

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` (ref, required): The call it opens, drawn by a view, as a screen on the tab on show.
  - Reference: `#call`
- `icon` (string, required): Its icon.
  - Constraints: maxLength: 32, knownValues: feed | search | compass | notification | people | settings | plus | photo | imagePlus | logOut | logIn | grid | heart | star | comment | activity | repo | issue | pull | release
- `label` (string, required): Its label.
  - Constraints: minLength: 1, maxLength: 400, maxGraphemes: 40

## #aside (`place.hud.frame#aside`)

Type: object

A screen drawn right of the main column.

### Properties

- `call` (ref, required): The screen, drawn by a view.
  - Reference: `#call`
- `width` (integer): Its width in CSS pixels.
  - Constraints: minimum: 200, maximum: 480, default: 320

## #bands (`place.hud.frame#bands`)

Type: object

The window widths, in CSS pixels, at which the navigation changes.

### Properties

- `rail` (integer): From this width, a rail in place of a bottom bar.
  - Constraints: minimum: 320, maximum: 4000, default: 600
- `sidebar` (integer): From this width, a labelled sidebar; wider than rail.
  - Constraints: minimum: 320, maximum: 4000, default: 1200

## #call (`place.hud.frame#call`)

Type: object

A tool call, as an app's tabs and routes name one.

### Properties

- `args` (unknown): The tool's arguments.
- `name` (string, required): The tool's name: query, describe_app, get_record or list_records.
  - Constraints: maxLength: 64

## #item (`place.hud.frame#item`)

Type: object

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` (string): A line drawn over a host item.
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `call` (ref): The screen it opens, drawn by a view.
  - Reference: `#call`
- `host` (string): What the host does: signOut, drawn signed in; signIn, drawn signed out.
  - Constraints: maxLength: 32, knownValues: signOut | signIn
- `icon` (string): Its icon.
  - Constraints: maxLength: 32, knownValues: feed | search | compass | notification | people | settings | plus | photo | imagePlus | logOut | logIn | grid | heart | star | comment | activity | repo | issue | pull | release
- `label` (string): Its label.
  - Constraints: minLength: 1, maxLength: 400, maxGraphemes: 40

## #link (`place.hud.frame#link`)

Type: object

A link at the navigation's foot.

### Properties

- `href` (string, required): Where it goes: a path starting with / or an https URL.
  - Constraints: maxLength: 2000
- `label` (string, required): Its label.
  - Constraints: minLength: 1, maxLength: 400, maxGraphemes: 40

## #picture (`place.hud.frame#picture`)

Type: object

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` (string, required): A dotted path to the picture in the query's answer.
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `call` (ref, required): A query call that reads it.
  - Reference: `#call`
- `handle` (string): A dotted path to the account's handle in the same answer, for its row among the accounts.
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `name` (string): A dotted path to the account's name in the same answer, for its row among the accounts.
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `tab` (string, required): The label of the tab whose icon it becomes.
  - Constraints: maxLength: 400, maxGraphemes: 40

## #sizes (`place.hud.frame#sizes`)

Type: object

The widths, in CSS pixels, of the column a view's measure asks for.

### Properties

- `content` (integer): The column of a view whose measure is content.
  - Constraints: minimum: 320, maximum: 1600, default: 600
- `wide` (integer): The column of a view whose measure is wide; no narrower than content.
  - Constraints: minimum: 320, maximum: 2400, default: 935

## Schema

```json
{
  "$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
}
```
