DhruvMaradiya
01/08/2026, 7:11 PMcomposio generate --type-tools
It generated the types successfully but its not up to latest version of toolkit, also I can't specify version for which to generate typesUday
01/09/2026, 8:28 AMlatest toolkit version param which should generate the types for the latest versions. This is expected behaviour as each toolkit has different toolkit versions.
Could you share any details which point to the latest version not being used? It'll help us in debugging.
Thanks!DhruvMaradiya
01/10/2026, 7:39 PMtypescript
type NOTION_FETCH_DATA_INPUT = {
/**
* Get All
* @description If true, fetches both pages and databases accessible to the Notion integration. Only one of `get_pages`, `get_databases`, or `get_all` can be true.
* @default false
*/
get_all: boolean;
/**
* Get Databases
* @description If true, fetches all databases accessible to the Notion integration. Only one of `get_pages`, `get_databases`, or `get_all` can be true.
* @default false
*/
get_databases: boolean;
/**
* Get Pages
* @description If true, fetches all pages accessible to the Notion integration. Only one of `get_pages`, `get_databases`, or `get_all` can be true.
* @default false
*/
get_pages: boolean;
/**
* Page Size
* @description The maximum number of items to retrieve. Must be between 1 and 100, inclusive. Defaults to 100. Note: this action currently only fetches the first page of results, so `page_size` effectively sets the maximum number of items returned.
* @default 100
*/
page_size: number | null;
/**
* Query
* @description An optional search query to filter pages and/or databases by their title or content. If not provided (None or empty string), all accessible items matching the selected type (pages, databases, or both) are returned.
* @default null
*/
query: string | null;
};
But input schema for notion has changed in latest versionDhruvMaradiya
01/10/2026, 7:40 PMjson
{
"description": "Defines the parameters for fetching data (pages and/or databases) from Notion.\nUse the `fetch_type` parameter to specify what type of data to retrieve.",
"properties": {
"fetch_type": {
"description": "Specifies what type of Notion data to fetch. Use 'pages' to fetch only pages, 'databases' to fetch only databases, or 'all' to fetch both pages and databases.",
"enum": [
"pages",
"databases",
"all"
],
"title": "Fetch Type",
"type": "string"
},
"original_page_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Original Page Size"
},
"page_size": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": 100,
"description": "The maximum number of items per page (1-100). IMPORTANT: Notion API enforces a hard maximum of 100 items per request - values above 100 will be automatically capped to 100. To retrieve more than 100 items, use pagination by passing the returned 'next_cursor' value in subsequent requests. Defaults to 100.",
"title": "Page Size"
},
"page_size_was_capped": {
"default": false,
"title": "Page Size Was Capped",
"type": "boolean"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "An optional search query to filter pages and/or databases by their title or content.",
"examples": [
"Quarterly Report",
"User Research Notes"
],
"title": "Query"
}
},
"required": [
"fetch_type"
],
"title": "FetchDataRequest",
"type": "object"
}Uday
01/11/2026, 6:54 AM