~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
40 lines · 1.4 KB Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.internal.getViewer",
  "defs": {
    "main": {
      "type": "query",
      "description": "Who is asking: by the console's session cookie, or their service auth. Nothing, for no one. For the console to show who is signed in, and the other accounts it can switch to.",
      "parameters": {
        "type": "params",
        "properties": {}
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "actor": {
              "type": "ref",
              "ref": "org.atgrp.internal.defs#actorView",
              "description": "Who is asking, with the handle their DID document names and canCreateGroup; absent when no one is."
            },
            "accounts": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "org.atgrp.internal.defs#actorView"
              },
              "description": "The other accounts this browser is signed in to, by the console's cookies, the one used last first, which it can switch to; absent when there are none."
            },
            "signUpAt": {
              "type": "string",
              "format": "uri",
              "description": "The PDS this host signs someone with no account up at (SIGNUP_PDS), as the console's sign-in offers it."
            }
          }
        }
      }
    }
  }
}