{
  "id": "rocketchat",
  "kind": "channel",
  "channels": ["rocketchat"],
  "name": "Rocket.Chat",
  "description": "Rocket.Chat channel plugin",
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "channels": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "rocketchat": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "enabled": { "type": "boolean" },
              "serverUrl": { "type": "string" },
              "dmPolicy": {
                "type": "string",
                "enum": ["pairing", "allowlist", "open", "disabled"]
              },
              "groupPolicy": {
                "type": "string",
                "enum": ["open", "allowlist", "disabled"]
              },
              "allowFrom": {
                "type": "array",
                "items": { "type": "string" }
              },
              "commandAllowFrom": {
                "type": "array",
                "items": { "type": "string" }
              },
              "accounts": {
                "type": "object",
                "additionalProperties": true
              },
              "rooms": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    }
  }
}
