{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bundledView": {
      "description": "A view HUD bundles, as a view given inline may be: less what only a bundled view may say at its top (app, records, profile and the like). What its layout does that only a bundled view may, a procedure called or a feed told what was read, stays: a problem the playground shows.",
      "properties": {
        "app": {
          "description": "The app the bundled view names, as Bluesky.",
          "maxLength": 64,
          "type": "string"
        },
        "name": {
          "description": "Its file's name in views/ without .json, as grain-gallery-view.",
          "maxLength": 64,
          "type": "string"
        },
        "view": {
          "description": "Its place.hud.view document.",
          "type": "unknown"
        }
      },
      "required": [
        "name",
        "app",
        "view"
      ],
      "type": "object"
    },
    "main": {
      "description": "What the playground starts a view from: the bundled views, to start from one; the component catalog, to complete what is typed; and HUD's themes, to draw it in. The same for everyone. No auth required.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "catalog": {
              "description": "The components and the grammar of a view's document, as describe_collection gives them.",
              "type": "unknown"
            },
            "chat": {
              "description": "Whether this HUD serves the chat to the caller, at /chat: with no model to chat with it does not, nor where the operator names the accounts it answers and the caller, signed in or not, is none of them; then the pages name no Chat.",
              "type": "boolean"
            },
            "themes": {
              "description": "HUD's themes: light and dark, then the rest, as getWorkspace lists them.",
              "items": {
                "ref": "place.hud.defs#theme",
                "type": "ref"
              },
              "type": "array"
            },
            "views": {
              "description": "The bundled views list_records, get_record and query draw, by name; app pages are not among them.",
              "items": {
                "ref": "#bundledView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "views",
            "catalog",
            "themes"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "What the playground starts from, at /playground.",
  "id": "place.hud.getPlayground",
  "lexicon": 1
}
