{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A client writing long posts asks this before the first one. Without the authorization, mochott cannot delete an article whose long post was deleted in an app that deletes posts alone; the client should then open authorizeUrl so the account signs in to mochott once.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "authorizeUrl": {
              "description": "Where the account signs in to mochott. After signing in it lands on the mochott dashboard.",
              "format": "uri",
              "type": "string"
            },
            "authorized": {
              "description": "mochott holds a live authorization for the account.",
              "type": "boolean"
            }
          },
          "required": [
            "authorized",
            "authorizeUrl"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "Whether mochott holds the requesting account's authorization (OAuth). Requires auth.",
  "id": "site.mochott.account.getAuthorization",
  "lexicon": 1,
  "revision": 1
}
