{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "kind": {
      "description": "A kind of entry an app saves (place.hud.app.entry).",
      "properties": {
        "def": {
          "description": "A lexicon object def (type object, its properties and which are required) each entry's data is checked against. A bytes field names its maxLength, and a kind's bytes fields hold at most 700000 bytes together.",
          "type": "unknown"
        },
        "name": {
          "description": "Its name, a def's in the app's lexicon: 1 to 64 letters and digits in lowerCamelCase, as lap or bestLap.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name",
        "def"
      ],
      "type": "object"
    },
    "main": {
      "description": "Kept in the account that published it, keyed by a name it picks (1 to 64 of a-z, 0-9 and -), its address /a/<handle>/<key>. HUD reads it, and its blobs by CID, from that account's PDS (place.hud.getFrameApp), and runs its document with no network, no cookies and nothing of the page's. Republishing replaces it: entries name the version that wrote them.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "html": {
            "accept": [
              "text/html"
            ],
            "description": "Its document, UTF-8, everything it loads inline: framed sandboxed, allowed scripts and nothing else.",
            "maxSize": 2000000,
            "type": "blob"
          },
          "icon": {
            "accept": [
              "image/png",
              "image/webp"
            ],
            "description": "Its icon, square.",
            "maxSize": 256000,
            "type": "blob"
          },
          "kinds": {
            "description": "The kinds of entry it saves, each checked against its def before it is written.",
            "items": {
              "ref": "#kind",
              "type": "ref"
            },
            "maxLength": 16,
            "minLength": 1,
            "type": "array"
          },
          "name": {
            "description": "What the app is called.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "summary": {
            "description": "What it is, in a sentence or two, as its page and its link's preview say.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "words": {
            "accept": [
              "application/json"
            ],
            "description": "Its words, as a JSON object by language (en among them): each language's words by key, as the app reads them.",
            "maxSize": 512000,
            "type": "blob"
          },
          "writers": {
            "description": "Who may write its entries, when given: place.hud.createAppEntry refuses anyone else, and place.hud.listAppEntries leaves out others' entries. Anyone, where it is left out.",
            "items": {
              "ref": "#writer",
              "type": "ref"
            },
            "maxLength": 200,
            "type": "array"
          }
        },
        "required": [
          "name",
          "html",
          "kinds",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "writer": {
      "description": "An account an app lets write its entries.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    }
  },
  "description": "A frame app someone published for HUD to run: an HTML document in a sandboxed frame, and the kinds of entry it saves.",
  "id": "place.hud.app",
  "lexicon": 1
}
