{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Lifts a ban, letting the community issue the subject space credentials again.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller lacks the member.unban permission.",
          "name": "Forbidden"
        },
        {
          "description": "No community exists at the given DID.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The subject is not currently banned from this community.",
          "name": "NotBanned"
        },
        {
          "description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
          "name": "CredentialsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "community": {
              "description": "The community to lift the ban in.",
              "format": "did",
              "type": "string"
            },
            "reason": {
              "description": "Human-readable reason for lifting the ban.",
              "maxLength": 512,
              "type": "string"
            },
            "subject": {
              "description": "The member to unban.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "community",
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.community.unban",
  "lexicon": 1
}
