# place.hud.getFrameApp

> A published frame app as its page shows it, read from its author's PDS: its name, what it is, who made it, its kinds of entry and the files they take, where its document is, its icon and its words in a language. One its record or blobs can't be read for, or that this server refuses (HUD_APP_BLOCKS), is not found. No auth required (a session it carries is read only to say whether it is enough to save in the app).

- Kind: query
- 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.getFrameApp)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getFrameApp/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.getFrameApp/analytics)

## Query (`place.hud.getFrameApp`)

Type: query · GET

### Parameters (query string)

- `app` (string · at-uri, required): The app's place.hud.app record, its authority a DID or a handle.
- `lang` (string): The language its words are wanted in, as en or pt-BR: in English where it has none in it.
  - Constraints: maxLength: 35

### Output (application/json)

- `accept` (array): The files its kinds take (their blob fields), each type once with the largest maxSize any gives it; left out where it takes none. place.hud.uploadAppBlob takes these.
  - `items` (ref)
    - Reference: `#file`
- `app` (string · at-uri, required): The app's record, by its author's DID.
- `by` (ref, required): Who made it.
  - Reference: `place.hud.defs#actor`
- `cid` (string · cid): The version of the record read, as its PDS said it.
- `icon` (string · uri): Its icon's address, through HUD's blob proxy.
- `instances` (boolean): Whether this server makes private instances of apps (place.hud.createInstance): its page offers one.
- `kinds` (array, required): Its kinds of entry, each one place.hud.createAppEntry writes.
  - `items` (ref)
    - Reference: `#kind`
- `name` (string, required)
  - Constraints: maxLength: 64
- `origins` (array): The https origins its document loads pictures and audio from: its frame's policy lets them in img-src and media-src alone. Left out where it names none.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `place.hud.app#origin`
- `reads` (array): The public collections it reads beyond its entries (place.hud.listAppRecords, place.hud.getAppRecords). Left out where it names none.
  - Constraints: maxLength: 16
  - `items` (ref)
    - Reference: `place.hud.app#collection`
- `signInAgain` (boolean): Whether the session the request carries is short of what saving in this app needs (its entries and its files): its page asks to sign in again. Left out signed out.
- `summary` (string)
  - Constraints: maxLength: 300
- `url` (string, required): Its document's path on this server, /frame/<did>/<rkey>: framed sandboxed, scripts alone.
  - Constraints: maxLength: 128
- `words` (unknown, required): Its words in the language asked for, each it lacks in English: an object of {text, note} by key.
- `writers` (array): Who may write its entries, where it names them: anyone else's saves are refused. Left out where anyone may.
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `place.hud.defs#actor`
- `writes` (array): The collections it writes in the person's own repository beyond its entries (place.hud.createAppRecord, place.hud.deleteAppRecord), once they allow it. Left out where it names none.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `place.hud.app#collection`

### Errors

- `NotFound`: No such app: its record or blobs can't be read, it isn't one HUD runs, or this server took it down.
- `InvalidRequest`: The input is not what the method takes.

## #file (`place.hud.getFrameApp#file`)

Type: object

A type of file an app takes, and the most bytes one may be.

### Properties

- `maxSize` (integer, required)
  - Constraints: minimum: 1, maximum: 10000000
- `mimeType` (string, required)
  - Constraints: maxLength: 64, knownValues: image/jpeg | image/png | image/webp | image/gif | audio/mpeg | audio/mp4 | audio/ogg | application/octet-stream

## #kind (`place.hud.getFrameApp#kind`)

Type: object

One of an app's kinds of entry.

### Properties

- `name` (string, required)
  - Constraints: maxLength: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "file": {
      "description": "A type of file an app takes, and the most bytes one may be.",
      "properties": {
        "maxSize": {
          "maximum": 10000000,
          "minimum": 1,
          "type": "integer"
        },
        "mimeType": {
          "knownValues": [
            "image/jpeg",
            "image/png",
            "image/webp",
            "image/gif",
            "audio/mpeg",
            "audio/mp4",
            "audio/ogg",
            "application/octet-stream"
          ],
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "mimeType",
        "maxSize"
      ],
      "type": "object"
    },
    "kind": {
      "description": "One of an app's kinds of entry.",
      "properties": {
        "name": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "A published frame app as its page shows it, read from its author's PDS: its name, what it is, who made it, its kinds of entry and the files they take, where its document is, its icon and its words in a language. One its record or blobs can't be read for, or that this server refuses (HUD_APP_BLOCKS), is not found. No auth required (a session it carries is read only to say whether it is enough to save in the app).",
      "errors": [
        {
          "description": "No such app: its record or blobs can't be read, it isn't one HUD runs, or this server took it down.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes.",
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "accept": {
              "description": "The files its kinds take (their blob fields), each type once with the largest maxSize any gives it; left out where it takes none. place.hud.uploadAppBlob takes these.",
              "items": {
                "ref": "#file",
                "type": "ref"
              },
              "type": "array"
            },
            "app": {
              "description": "The app's record, by its author's DID.",
              "format": "at-uri",
              "type": "string"
            },
            "by": {
              "description": "Who made it.",
              "ref": "place.hud.defs#actor",
              "type": "ref"
            },
            "cid": {
              "description": "The version of the record read, as its PDS said it.",
              "format": "cid",
              "type": "string"
            },
            "icon": {
              "description": "Its icon's address, through HUD's blob proxy.",
              "format": "uri",
              "type": "string"
            },
            "instances": {
              "description": "Whether this server makes private instances of apps (place.hud.createInstance): its page offers one.",
              "type": "boolean"
            },
            "kinds": {
              "description": "Its kinds of entry, each one place.hud.createAppEntry writes.",
              "items": {
                "ref": "#kind",
                "type": "ref"
              },
              "type": "array"
            },
            "name": {
              "maxLength": 64,
              "type": "string"
            },
            "origins": {
              "description": "The https origins its document loads pictures and audio from: its frame's policy lets them in img-src and media-src alone. Left out where it names none.",
              "items": {
                "ref": "place.hud.app#origin",
                "type": "ref"
              },
              "maxLength": 8,
              "type": "array"
            },
            "reads": {
              "description": "The public collections it reads beyond its entries (place.hud.listAppRecords, place.hud.getAppRecords). Left out where it names none.",
              "items": {
                "ref": "place.hud.app#collection",
                "type": "ref"
              },
              "maxLength": 16,
              "type": "array"
            },
            "signInAgain": {
              "description": "Whether the session the request carries is short of what saving in this app needs (its entries and its files): its page asks to sign in again. Left out signed out.",
              "type": "boolean"
            },
            "summary": {
              "maxLength": 300,
              "type": "string"
            },
            "url": {
              "description": "Its document's path on this server, /frame/<did>/<rkey>: framed sandboxed, scripts alone.",
              "maxLength": 128,
              "type": "string"
            },
            "words": {
              "description": "Its words in the language asked for, each it lacks in English: an object of {text, note} by key.",
              "type": "unknown"
            },
            "writers": {
              "description": "Who may write its entries, where it names them: anyone else's saves are refused. Left out where anyone may.",
              "items": {
                "ref": "place.hud.defs#actor",
                "type": "ref"
              },
              "maxLength": 200,
              "type": "array"
            },
            "writes": {
              "description": "The collections it writes in the person's own repository beyond its entries (place.hud.createAppRecord, place.hud.deleteAppRecord), once they allow it. Left out where it names none.",
              "items": {
                "ref": "place.hud.app#collection",
                "type": "ref"
              },
              "maxLength": 8,
              "type": "array"
            }
          },
          "required": [
            "app",
            "name",
            "by",
            "kinds",
            "url",
            "words"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "app": {
            "description": "The app's place.hud.app record, its authority a DID or a handle.",
            "format": "at-uri",
            "type": "string"
          },
          "lang": {
            "description": "The language its words are wanted in, as en or pt-BR: in English where it has none in it.",
            "maxLength": 35,
            "type": "string"
          }
        },
        "required": [
          "app"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "A frame app HUD serves.",
  "id": "place.hud.getFrameApp",
  "lexicon": 1
}
```
