social.colibri.beta.voice.moderate

Acts on someone in a voice channel. An absent field leaves the current value unchanged.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · procedure
Kindprocedure
Authorityvoice.beta.colibri.social
Commit rev3n2a42pwrll22
Indexed
cid bafyreidvdtakoycirnbj5ilw3ejetsuvr3odqxttiwensx2db7nye5xrra

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Acts on someone in a voice channel. An absent field leaves the current value unchanged.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The requesting user lacks the voice.moderate permission.",
          "name": "Forbidden"
        },
        {
          "description": "No channel matches the given space reference.",
          "name": "ChannelNotFound"
        },
        {
          "description": "The subject is not currently connected to the channel.",
          "name": "NotInVoice"
        },
        {
          "description": "The moveTo channel is not a voice channel in the same space.",
          "name": "NotVoiceChannel"
        },
        {
          "description": "This AppView has no voice SFU running.",
          "name": "VoiceUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channel": {
              "description": "The voice channel the subject is in.",
              "format": "space-ref",
              "type": "string"
            },
            "deafened": {
              "description": "Whether the subject cannot hear others. Absent leaves the current value unchanged.",
              "type": "boolean"
            },
            "disconnect": {
              "description": "Whether to disconnect the subject from the channel.",
              "type": "boolean"
            },
            "moveTo": {
              "description": "The voice channel to move the subject to. It must be in the same space as the channel. The subject may join it for this call even when they can't see it, without access to its text chat.",
              "format": "space-ref",
              "type": "string"
            },
            "muted": {
              "description": "Whether the subject's microphone is muted. Absent leaves the current value unchanged.",
              "type": "boolean"
            },
            "subject": {
              "description": "Who to act on.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "channel",
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.voice.moderate",
  "lexicon": 1
}