{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Moderates a member's participation in a voice channel: server-mute, server-deafen, or force-disconnect. Requires the `voice.moderate` community permission and the caller must outrank the target. Server-mute/deafen are enforced by the SFU and persist for the room's lifetime, disconnect is transient (the target may rejoin).",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "description": "DID of the moderated member.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "action": {
            "description": "The moderation action to apply.",
            "knownValues": [
              "mute",
              "unmute",
              "deafen",
              "undeafen",
              "disconnect"
            ],
            "type": "string"
          },
          "channel": {
            "description": "AT-URI of the voice channel.",
            "format": "at-uri",
            "type": "string"
          },
          "community": {
            "description": "AT-URI of the community the channel belongs to.",
            "format": "at-uri",
            "type": "string"
          },
          "target": {
            "description": "DID of the member to moderate.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "community",
          "channel",
          "target",
          "action"
        ],
        "type": "params"
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.voice.moderate",
  "lexicon": 1,
  "revision": 1
}
