{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Ask a private account to approve the caller as a follower. The owner approves by adding the caller to its followers space with putMembers, and refuses by dismissing the request; the app drops a request once it's approved. Served by the account's serving app (the servingApp of its declaration), with atproto service auth (iss the caller, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to the app.",
      "errors": [
        {
          "description": "Not a private account this app serves.",
          "name": "AccountNotFound"
        },
        {
          "description": "A block between the caller and the account.",
          "name": "NotAllowed"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actor": {
              "description": "The private account.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "actor"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "state": {
              "knownValues": [
                "requested",
                "allowed"
              ],
              "type": "string"
            }
          },
          "required": [
            "state"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.umbrae.private.requestFollow",
  "lexicon": 1
}
