{ "lexicon": 1, "id": "place.hud.getAccountData", "description": "What HUD holds of the signed-in person, before they delete it.", "defs": { "main": { "type": "query", "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; and whether they chose a theme. Requires auth: the workspace's web session (its cookie) or a HUD access token as Bearer.", "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "did", "canvases", "shared", "invitations", "themes", "chosenTheme" ], "properties": { "did": { "type": "string", "format": "did", "description": "The person." }, "canvases": { "type": "array", "items": { "type": "ref", "ref": "#ownedCanvas" }, "description": "The canvases they own, which go for everyone in them." }, "shared": { "type": "integer", "minimum": 0, "description": "How many canvases of others they are in: they leave each, and the tiles they put there go." }, "invitations": { "type": "integer", "minimum": 0, "description": "How many invitations wait for them: each is declined." }, "themes": { "type": "integer", "minimum": 0, "description": "How many place.hud.theme records their repository holds." }, "chosenTheme": { "type": "boolean", "description": "Whether they chose a theme for their pages and apps." } } } }, "errors": [ { "name": "AuthRequired", "description": "No live web session or HUD access token: sign in." } ] }, "ownedCanvas": { "type": "object", "description": "A canvas the person owns.", "required": [ "canvas", "name", "members" ], "properties": { "canvas": { "type": "string", "minLength": 12, "maxLength": 12, "description": "Its id." }, "name": { "type": "string", "maxLength": 640, "description": "Its name." }, "members": { "type": "integer", "minimum": 0, "description": "How many others are in it, invited ones too." } } } } }