{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Remove a member (root admin: any non-root; main admin: members only). Their media are hidden; mirrors updated.",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "NotMember"
        },
        {
          "name": "CannotRemoveRoot"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "revoke": {
              "type": "boolean"
            }
          },
          "required": [
            "homeId",
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "ok": {
              "type": "boolean"
            }
          },
          "required": [
            "ok"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.home.removeMember",
  "lexicon": 1
}
