def list_pages(self, space_id) -> List[Dict]:
        """Gets all pages in a specific space."""
        space_info = self.get_space(space_id)
        url = f"{self.base_url}/spaces/{space_id}/content"
        space = self._make_request(url)

        pages_info = []
        for page in space.get("pages"):
            GitbookClient._extract_page_info(
                pages_info, page, space_info.get("title", "ROOT")
            )
        return pages_info
Gets all pages in a specific space.
llama-index-integrations/readers/llama-index-readers-gitbook/llama_index/readers/gitbook/gitbook_client.py