{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Allow one published frame app to save the person's entries in their repository (place.hud.createAppEntry), kept with their HUD data as their theme is, at most 500 apps: getWorkspace's allowedApps lists them. Asked of them in HUD's own page, never in an app's frame. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "No app there: its record can't be read (to allow it), or its author's account can't be found.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes, the person allows 500 apps already, or the server could not keep it.",
          "name": "InvalidRequest"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "app": {
              "description": "The app's place.hud.app record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "app"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "allowedApps": {
              "description": "Every app the person allows to save entries, the latest first.",
              "items": {
                "ref": "place.hud.defs#allowedApp",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "allowedApps"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Allow a frame app to save the person's entries.",
  "id": "place.hud.allowAppEntries",
  "lexicon": 1
}
