{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "What deleteAccountData would delete: the canvases the person owns, each with how many others are in it; how many canvases of others they are in, and invitations waiting; the place.hud.theme records in their own repository; whether they chose a theme; and how many chats they have. Requires auth: the workspace's web session (its cookie) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "allowedApps": {
              "description": "The frame apps they allow to save entries (place.hud.allowAppEntries), forgotten with the rest. The entries themselves, place.hud.app.entry records in their repository, stay.",
              "items": {
                "ref": "place.hud.defs#allowedApp",
                "type": "ref"
              },
              "type": "array"
            },
            "canvases": {
              "description": "The canvases they own, which go for everyone in them.",
              "items": {
                "ref": "#ownedCanvas",
                "type": "ref"
              },
              "type": "array"
            },
            "chats": {
              "description": "How many chats they have (place.hud.listChats): each goes, its answer stopped if the model is writing one.",
              "minimum": 0,
              "type": "integer"
            },
            "chosenTheme": {
              "description": "Whether they chose a theme for their pages and apps.",
              "type": "boolean"
            },
            "did": {
              "description": "The person.",
              "format": "did",
              "type": "string"
            },
            "invitations": {
              "description": "How many invitations wait for them: each is declined.",
              "minimum": 0,
              "type": "integer"
            },
            "links": {
              "description": "How many tiles and chat answers they shared by link (place.hud.listShareLinks): each link goes, and opened again, is not found. A canvas's link goes with the canvas.",
              "minimum": 0,
              "type": "integer"
            },
            "shared": {
              "description": "How many canvases of others they are in: they leave each, and the tiles they put there go.",
              "minimum": 0,
              "type": "integer"
            },
            "themes": {
              "description": "How many place.hud.theme records their repository holds.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "did",
            "canvases",
            "shared",
            "invitations",
            "themes",
            "chosenTheme"
          ],
          "type": "object"
        }
      },
      "type": "query"
    },
    "ownedCanvas": {
      "description": "A canvas the person owns.",
      "properties": {
        "canvas": {
          "description": "Its id.",
          "maxLength": 12,
          "minLength": 12,
          "type": "string"
        },
        "members": {
          "description": "How many others are in it, invited ones too.",
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "description": "Its name.",
          "maxLength": 640,
          "type": "string"
        }
      },
      "required": [
        "canvas",
        "name",
        "members"
      ],
      "type": "object"
    }
  },
  "description": "What HUD holds of the signed-in person, before they delete it.",
  "id": "place.hud.getAccountData",
  "lexicon": 1
}
