{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "channelView": {
      "properties": {
        "files": {
          "description": "Its tabs' files, each read with getSpaceBlob from the channel's space.",
          "items": {
            "ref": "fyi.opensocial.defs#file",
            "type": "ref"
          },
          "type": "array"
        },
        "formerly": {
          "description": "The slugs it had before: links to them still find it.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "people": {
          "items": {
            "format": "did",
            "type": "string"
          },
          "type": "array"
        },
        "slug": {
          "type": "string"
        },
        "tabs": {
          "items": {
            "ref": "fyi.opensocial.site#tab",
            "type": "ref"
          },
          "type": "array"
        },
        "uri": {
          "description": "Its space.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "slug",
        "name",
        "people",
        "tabs"
      ],
      "type": "object"
    },
    "main": {
      "description": "The group's channels kept for chosen people that you're one of: each with who it's for, its tabs and their files. Nobody else learns they exist.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channels": {
              "items": {
                "ref": "#channelView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "channels"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.listPeopleChannels",
  "lexicon": 1
}
