{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Lists a community's text channels that every member can read, for the bridge that holds the registration. Each channel's viewer state says whether the registration may read and post in it now.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not the bridge this registration belongs to.",
          "name": "Forbidden"
        },
        {
          "description": "No community exists at the given DID.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The community has no bridge registration with that id.",
          "name": "RegistrationNotFound"
        },
        {
          "description": "The bridge sent too many requests. Retry after the interval in the response headers.",
          "name": "RateLimited"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channels": {
              "description": "The channels, in the community's order.",
              "items": {
                "description": "A channel.",
                "ref": "social.colibri.beta.community.defs#channelView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "channels"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "community": {
            "description": "The community the registration belongs to.",
            "format": "did",
            "type": "string"
          },
          "registration": {
            "description": "Record key of the registration.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "community",
          "registration"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.bridge.listChannels",
  "lexicon": 1
}
