{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Lists the repo-backed communities the requesting user belongs to that have not finished moving onto spaces. The AppView reads this live from the user's own public repo and each candidate's public repo. A community that cannot move, such as one inside its owner's repo or one whose repo did not respond, is listed in state blocked with a reason.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The requesting user's own PDS could not be read, so no candidate list could be built at all.",
          "name": "UpstreamFailure"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "communities": {
              "description": "Unmigrated legacy communities, in the user's preferred sidebar order where the legacy repo recorded one. This is not paginated: a user's community list is small and every entry costs a live read.",
              "items": {
                "description": "An unmigrated legacy community.",
                "ref": "social.colibri.beta.community.defs#legacyCommunityView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "communities"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "includeUnadministered": {
            "default": false,
            "description": "Whether to include communities the user belongs to but does not administer. They come back with viewerIsAdmin false.",
            "type": "boolean"
          }
        },
        "required": [],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.community.listMigratable",
  "lexicon": 1
}
