site.mochott.account.getAuthorization

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.

Repository @tokimeki.blue did:plc:4tr5dqti7nmu6g2czpthntak namespace authority
Details · query
Kindquery
Authorityaccount.mochott.site
Indexed
cid bafyreihafveyk4aevpi76zbhswche6ais43l7gdzf33b2ccudvlad7teky

Checks

Valid
  • unlimited-string defs.main.parameters.properties.displayNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$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, or with display=popup on a page that closes itself.",
              "format": "uri",
              "type": "string"
            },
            "authorized": {
              "description": "mochott holds a live authorization for the account.",
              "type": "boolean"
            }
          },
          "required": [
            "authorized",
            "authorizeUrl"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "display": {
            "description": "How the client opens authorizeUrl. 'popup': in a popup window; the sign-in then ends on a mochott page that closes itself (the PDS's authorization page sends Cross-Origin-Opener-Policy, so window.opener is gone and nothing is posted back: check again when the client's window regains focus). Omitted or unknown: the sign-in ends on the mochott dashboard.",
            "knownValues": [
              "popup"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Whether mochott holds the requesting account's authorization (OAuth). Requires auth.",
  "id": "site.mochott.account.getAuthorization",
  "lexicon": 1,
  "revision": 2
}