{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "The account asking: by the session cookie the pages' login sets, or a service token. Nothing, for no one.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"accounts": {
"description": "The other accounts this browser is logged in to, which it can switch to without logging in again; absent when none.",
"items": {
"ref": "dev.knotless.defs#actorView",
"type": "ref"
},
"type": "array"
},
"actor": {
"description": "The account asking; absent when no one is.",
"ref": "dev.knotless.defs#actorView",
"type": "ref"
},
"admin": {
"description": "Whether the account asking is one of this appview's operators, who moderate it and see how it is used; absent when not.",
"type": "boolean"
},
"delegated": {
"description": "Whether this appview's gateway writes for the account asking, which delegated writes to it: collaborators push to its repositories through it, and runners land their merge queues. Absent when not.",
"type": "boolean"
},
"login": {
"description": "Whether this appview's pages can log people in: it is an OAuth client, with a public URL.",
"type": "boolean"
},
"spaces": {
"description": "Whether the account asking has a PDS with spaces, which private repositories live in; absent when no one asks, or this appview does not know yet.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "query"
}
},
"description": "Who is asking this appview, as its pages show it.",
"id": "dev.knotless.getViewer",
"lexicon": 1
}