Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

feat: Add toolkit versions support and deprecation flags to TypeScript SDK (#2096)

Musthaq Ahamad613589625ebe
diff --git a/.changeset/forty-houses-know.md b/.changeset/forty-houses-know.md
new file mode 100644
index 000000000..d94e8a1fe
--- /dev/null
+++ b/.changeset/forty-houses-know.md
@@ -0,0 +1,52 @@
+---
+'@composio/core': patch
+---
+
+
+Add toolkit versions support and deprecation flags to TypeScript SDK
+
+This PR adds support for toolkit versions in the TypeScript SDK and introduces new fields for tracking tool deprecation status and no-auth capabilities.
+
+### Core Features
+- **Toolkit Versions Support**:
+ - Added `toolkit_versions` parameter to the `Triggers` class, defaulting to `"latest"`
+ - Made `Triggers` class generic to accept provider configuration
+ - Pass `toolkit_versions` when listing trigger types
+
+### New Fields
+- **Tool Types**:
+ - Added `isDeprecated` field to track deprecated tools
+ - Added `isNoAuth` field to identify tools that support no-auth mode
+
+- **Trigger Types**:
+ - Added `version` field to track trigger versions
+
+- **Toolkit Metadata**:
+ - Added `availableVersions` array to track all available versions
+
+### Code Changes
+- Updated `Composio` class to pass config to `Triggers` constructor
+- Updated `Tools.get()` to include new `isDeprecated` and `isNoAuth` fields
+- Updated transformers for toolkits and triggers to handle new fields
+- Added TypeScript types for all new fields
+
+### Tests
+- Updated trigger tests to account for `toolkit_versions` and `cursor` parameters
+- Fixed generic type usage in `Triggers` test declarations
+- All 376 tests passing ✅
+
+### Dependencies
+- Updated `@composio/client` to version `0.1.0-alpha.38`
+- Updated `pnpm-lock.yaml` with dependency resolution changes
+
+## Testing
+```bash
+pnpm --filter @composio/core test
+```
+All tests passing (376/376) ✅
+
+## Breaking Changes
+None - All changes are backwards compatible with default values
+
+## Related Issues
+Fixes toolkit version handling and deprecation flag tracking in TypeScript SDK
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a77911153..3c734a9dc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13,8 +13,8 @@ catalogs:
specifier: ^4.20250917.0
version: 4.20250917.0
'@composio/client':
- specifier: 0.1.0-alpha.37
- version: 0.1.0-alpha.37
+ specifier: 0.1.0-alpha.38
+ version: 0.1.0-alpha.38
ai:
specifier: 5.0.44
version: 5.0.44
@@ -110,7 +110,7 @@ importers:
devDependencies:
'@ai-sdk/anthropic':
specifier: ^1.2.12
- version: 1.2.12([email protected])
+ version: 1.2.12([email protected])
'@anthropic-ai/sdk':
specifier: ^0.52.0
version: 0.52.0
@@ -131,7 +131,7 @@ importers:
version: link:../ts/packages/providers/openai
'@composio/openai-agents':
specifier: ^0.2.0
- version: 0.2.0(@composio/core@ts+packages+core)(@openai/[email protected]([email protected])([email protected]))([email protected])
+ version: 0.2.0(@composio/core@ts+packages+core)(@openai/[email protected]([email protected])([email protected]))([email protected])
'@composio/vercel':
specifier: workspace:*
version: link:../ts/packages/providers/vercel
@@ -140,19 +140,19 @@ importers:
version: 1.19.0(@modelcontextprotocol/[email protected])
'@langchain/langgraph':
specifier: ^0.2.72
'@langchain/openai':
specifier: ^0.5.10
'@llamaindex/openai':
specifier: ^0.4.20
- version: 0.4.20(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ version: 0.4.20(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
'@llamaindex/workflow':
specifier: ^1.1.24
'@openai/agents':
specifier: ^0.2.1
'@types/convict':
specifier: ^6.1.6
version: 6.1.6
@@ -170,10 +170,10 @@ importers:
version: 1.9.7
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
composio-core:
specifier: ^0.5.39
hono:
specifier: ^4.7.11
version: 4.8.0
@@ -188,7 +188,7 @@ importers:
version: 1.2.1
openai:
specifier: ^4.94.0
react:
specifier: ^18.3.1
version: 18.3.1
@@ -709,7 +709,7 @@ importers:
version: 1.0.0-alpha.1
'@composio/client':
specifier: 'catalog:'
- version: 0.1.0-alpha.37
+ version: 0.1.0-alpha.38
'@composio/core':
specifier: workspace:*
version: link:../core
@@ -803,7 +803,7 @@ importers:
dependencies:
'@composio/client':
specifier: 'catalog:'
- version: 0.1.0-alpha.37
+ version: 0.1.0-alpha.38
'@composio/json-schema-to-zod':
specifier: workspace:*
version: link:../json-schema-to-zod
@@ -1329,8 +1329,8 @@ packages:
'@cloudflare/[email protected]':
resolution: {integrity: sha512-Lsn9dZoRYZZCXXHZNa50cMP8kWhQZG9M7WjxNSiXFzC8bk4Wh/0SYYo4YINxEjEt6h2o69LmAhFaJ+qgaJTh8Q==}
- '@composio/[email protected]':
- resolution: {integrity: sha512-2YzXiRXlxqOgEz7nEh1aKdJ9vwQRb69+RX6UH+LTDmuTwW+pOjI2qbhIBxTbP2z9e2SyHVG0/AtMxc9tR5jU0w==}
+ '@composio/[email protected]':
+ resolution: {integrity: sha512-+Gm5EQdFCu408YqPb9rKdVK7QD9eLS5wJTeYw1QH9eA6hfLmTBKVHFLc32tbLlY9nFwmClyF7KIB6y4NUfYcQw==}
'@composio/[email protected]':
resolution: {integrity: sha512-IpbfST0SSs/CEv+PIf6+EL0feNuJhQyUrOHJLPge8NhyLLrCyVqvujRIPyRUUjy0NDsked/Mm5VpJmYM6OACbg==}
@@ -1919,138 +1919,163 @@ packages:
resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}
cpu: [arm]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==}
cpu: [arm]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==}
cpu: [ppc64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}
cpu: [arm64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==}
cpu: [arm64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}
cpu: [x64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==}
cpu: [x64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-D8n8wgWmPDakc83LORcfJepdOSN6MvWNzzz2ux0MnIbOqdieRZwVYY32zxVx+IFUT8er5KPcyU3XXsn+GzG/0Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-0DZzkvuEOqQUP9mo2kjjKNok5AmnOr1jB2XYjkaoNRwpAYMDzRmAqUIa1nRi58S2WswqSfPOWLNOr0FDT3H5RQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-EGZ1xwhBI7dNISwxjChqBGELCWMGDvmxZXKjQRuqMrakhO8QoMgqCrdjnAqJq/CScxfRn+Bb7suXBElKQpPDiw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-sD7J+h5nFLMMmOXYH4DD9UtSNBD05tWSSdWAcEyzqW8Cn5UxXvsHAxmxSesYUsTOBmUnjtxghKDl15EvfqLFbQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-NEE2vQ6wcxYav1/A22OOxoSOGiKnNmDzCYFOZ949xFmrWZOVII1Bp3NqVVpvj+3UeHMFyN5eP/V5hzViQ5CZNA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-DOYMrDm5E6/8bm/yQLCWyuDJwUnlevR8xtF8bs+gjZ7cyUNYXiSf/E8Kp0Ss5xasIaXSHzb888V1BE4i1hFhAA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}
@@ -2405,24 +2430,28 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ libc: [musl]
resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}
@@ -3009,36 +3038,42 @@ packages:
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
+ libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
+ libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}
@@ -3152,56 +3187,67 @@ packages:
resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==}
cpu: [arm]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==}
cpu: [arm]
os: [linux]
+ libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==}
cpu: [arm64]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==}
cpu: [arm64]
os: [linux]
+ libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==}
cpu: [loong64]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==}
cpu: [ppc64]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==}
cpu: [riscv64]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==}
cpu: [riscv64]
os: [linux]
+ libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==}
cpu: [s390x]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==}
cpu: [x64]
os: [linux]
+ libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==}
cpu: [x64]
os: [linux]
+ libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==}
@@ -6805,11 +6851,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 3.25.76
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ zod: 4.1.12
dependencies:
@@ -6853,12 +6899,6 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.4([email protected])
zod: 4.1.12
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.9([email protected])
- zod: 3.25.76
-
dependencies:
'@ai-sdk/provider': 2.0.0
@@ -7214,15 +7254,15 @@ snapshots:
'@cloudflare/[email protected]': {}
- '@composio/[email protected]': {}
+ '@composio/[email protected]': {}
'@composio/[email protected]': {}
- '@composio/[email protected](@composio/core@ts+packages+core)(@openai/[email protected]([email protected])([email protected]))([email protected])':
+ '@composio/[email protected](@composio/core@ts+packages+core)(@openai/[email protected]([email protected])([email protected]))([email protected])':
dependencies:
'@composio/core': link:ts/packages/core
- '@openai/agents': 0.2.1([email protected])([email protected])
- zod: 3.25.76
+ '@openai/agents': 0.2.1([email protected])([email protected])
+ zod: 4.1.12
'@cspotcode/[email protected]':
dependencies:
@@ -7935,6 +7975,23 @@ snapshots:
transitivePeerDependencies:
- openai
+ dependencies:
+ '@cfworker/json-schema': 4.1.1
+ ansi-styles: 5.2.0
+ camelcase: 6.3.0
+ decamelize: 1.2.0
+ js-tiktoken: 1.0.20
+ mustache: 4.2.0
+ p-queue: 6.6.2
+ p-retry: 4.6.2
+ uuid: 10.0.0
+ zod: 3.25.76
+ zod-to-json-schema: 3.24.6([email protected])
+ transitivePeerDependencies:
+ - openai
+
dependencies:
'@cfworker/json-schema': 4.1.1
@@ -7957,14 +8014,19 @@ snapshots:
uuid: 10.0.0
+ dependencies:
+ uuid: 10.0.0
+
dependencies:
'@types/json-schema': 7.0.15
p-queue: 6.6.2
p-retry: 4.6.2
uuid: 9.0.1
optionalDependencies:
react: 18.3.1
@@ -7978,15 +8040,15 @@ snapshots:
react: 18.3.1
react-dom: 19.1.0([email protected])
dependencies:
- '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
+ '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
uuid: 10.0.0
zod: 3.25.76
optionalDependencies:
- zod-to-json-schema: 3.24.6([email protected])
+ zod-to-json-schema: 3.24.6([email protected])
transitivePeerDependencies:
- react
@@ -8003,9 +8065,9 @@ snapshots:
- react
- react-dom
dependencies:
js-tiktoken: 1.0.20
zod: 3.25.32
@@ -8013,9 +8075,9 @@ snapshots:
- encoding
- ws
dependencies:
js-tiktoken: 1.0.21
zod: 3.25.76
@@ -8031,9 +8093,9 @@ snapshots:
transitivePeerDependencies:
- ws
dependencies:
js-tiktoken: 1.0.21
'@llamaindex/[email protected]':
@@ -8061,15 +8123,6 @@ snapshots:
tree-sitter: 0.22.4
web-tree-sitter: 0.24.7
- dependencies:
- '@llamaindex/core': 0.6.22
- '@llamaindex/env': 0.1.30
- transitivePeerDependencies:
- - ws
- - zod
-
dependencies:
'@llamaindex/core': 0.6.22
@@ -8079,13 +8132,13 @@ snapshots:
- ws
- zod
optionalDependencies:
'@modelcontextprotocol/sdk': 1.18.0
hono: 4.8.0
rxjs: 7.8.2
- zod: 3.25.76
+ zod: 4.1.12
optionalDependencies:
@@ -8095,11 +8148,15 @@ snapshots:
rxjs: 7.8.2
zod: 4.1.12
+ optionalDependencies:
+ zod: 3.25.76
+
dependencies:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- hono
@@ -8121,6 +8178,19 @@ snapshots:
- rxjs
- zod
+ dependencies:
+ '@llamaindex/core': 0.6.22
+ '@llamaindex/env': 0.1.30
+ '@llamaindex/workflow-core': 1.3.3([email protected])
+ transitivePeerDependencies:
+ - '@modelcontextprotocol/sdk'
+ - hono
+ - next
+ - p-retry
+ - rxjs
+ - zod
+
'@manypkg/[email protected]':
dependencies:
'@babel/runtime': 7.27.6
@@ -8396,13 +8466,13 @@ snapshots:
- supports-color
- ws
dependencies:
debug: 4.4.1([email protected])
optionalDependencies:
'@modelcontextprotocol/sdk': 1.18.0
- zod: 3.25.76
+ zod: 4.1.12
transitivePeerDependencies:
- supports-color
- ws
@@ -8427,12 +8497,12 @@ snapshots:
- supports-color
- ws
dependencies:
- '@openai/agents-core': 0.2.1([email protected])([email protected])
+ '@openai/agents-core': 0.2.1([email protected])([email protected])
debug: 4.4.1([email protected])
- zod: 3.25.76
+ zod: 4.1.12
transitivePeerDependencies:
- supports-color
- ws
@@ -8461,13 +8531,13 @@ snapshots:
- supports-color
- utf-8-validate
dependencies:
- '@openai/agents-core': 0.2.1([email protected])([email protected])
+ '@openai/agents-core': 0.2.1([email protected])([email protected])
'@types/ws': 8.18.1
debug: 4.4.1([email protected])
ws: 8.18.2
- zod: 3.25.76
+ zod: 4.1.12
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -8501,14 +8571,14 @@ snapshots:
- utf-8-validate
- ws
dependencies:
- '@openai/agents-core': 0.2.1([email protected])([email protected])
- '@openai/agents-openai': 0.2.1([email protected])([email protected])
- '@openai/agents-realtime': 0.2.1([email protected])
+ '@openai/agents-core': 0.2.1([email protected])([email protected])
+ '@openai/agents-openai': 0.2.1([email protected])([email protected])
+ '@openai/agents-realtime': 0.2.1([email protected])
debug: 4.4.1([email protected])
- zod: 3.25.76
+ zod: 4.1.12
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -10171,23 +10241,23 @@ snapshots:
has-own-prop: 2.0.0
repeat-string: 1.6.1
dependencies:
- '@ai-sdk/openai': 2.0.35([email protected])
+ '@ai-sdk/openai': 2.0.35([email protected])
'@cloudflare/workers-types': 4.20250917.0
'@composio/mcp': 1.0.3-0
'@hey-api/client-axios': 0.2.12([email protected])
- ai: 5.0.44([email protected])
+ ai: 5.0.44([email protected])
axios: 1.10.0
chalk: 4.1.2
cli-progress: 3.12.0
commander: 12.1.0
inquirer: 10.2.2
open: 8.4.2
pusher-js: 8.4.0-rc2
resolve-package-path: 4.0.3
uuid: 10.0.0
@@ -11273,15 +11343,15 @@ snapshots:
dependencies:
- '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))
+ '@langchain/textsplitters': 0.1.0(@langchain/[email protected]([email protected]([email protected])([email protected])))
js-tiktoken: 1.0.21
js-yaml: 4.1.0
jsonpointer: 5.0.1
- langsmith: 0.3.68(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ langsmith: 0.3.68(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
openapi-types: 12.1.3
p-retry: 4.6.2
uuid: 10.0.0
@@ -11308,6 +11378,18 @@ snapshots:
optionalDependencies:
+ dependencies:
+ '@types/uuid': 10.0.0
+ chalk: 4.1.2
+ console-table-printer: 2.14.3
+ p-queue: 6.6.2
+ p-retry: 4.6.2
+ semver: 7.7.2
+ uuid: 10.0.0
+ optionalDependencies:
+
dependencies:
'@types/uuid': 10.0.0
@@ -11320,7 +11402,7 @@ snapshots:
optionalDependencies:
dependencies:
'@types/uuid': 10.0.0
chalk: 4.1.2
@@ -11333,7 +11415,7 @@ snapshots:
'@opentelemetry/api': 1.9.0
'@opentelemetry/exporter-trace-otlp-proto': 0.203.0(@opentelemetry/[email protected])
'@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/[email protected])
@@ -11401,7 +11483,7 @@ snapshots:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
'@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@llamaindex/workflow': 1.1.24(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])
'@types/lodash': 4.17.20
'@types/node': 24.6.2
lodash: 4.17.21
@@ -11733,6 +11815,21 @@ snapshots:
transitivePeerDependencies:
- encoding
+ dependencies:
+ '@types/node': 18.19.112
+ '@types/node-fetch': 2.6.12
+ abort-controller: 3.0.0
+ agentkeepalive: 4.6.0
+ form-data-encoder: 1.7.2
+ formdata-node: 4.4.1
+ node-fetch: 2.7.0
+ optionalDependencies:
+ ws: 8.18.2
+ zod: 4.1.12
+ transitivePeerDependencies:
+ - encoding
+
optionalDependencies:
ws: 8.18.2
@@ -11757,6 +11854,12 @@ snapshots:
optionalDependencies:
ws: 8.18.2
zod: 3.25.76
+ optional: true
+
+ optionalDependencies:
+ ws: 8.18.2
+ zod: 4.1.12
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 3d99c56ca..dc8eb208c 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -14,7 +14,7 @@ packages:
catalog:
'@cloudflare/vitest-pool-workers': ^0.9.2
'@cloudflare/workers-types': ^4.20250917.0
- '@composio/client': 0.1.0-alpha.37
+ '@composio/client': 0.1.0-alpha.38
ai: 5.0.44
openai: ^5.20.3
tsup: ^8.5.0
diff --git a/ts/packages/core/src/composio.ts b/ts/packages/core/src/composio.ts
index 1dc9f7220..29ed020cc 100644
--- a/ts/packages/core/src/composio.ts
+++ b/ts/packages/core/src/composio.ts
@@ -138,7 +138,7 @@ export class Composio<
*/
tools: Tools<unknown, unknown, TProvider>;
toolkits: Toolkits;
- triggers: Triggers;
+ triggers: Triggers<TProvider>;
provider: TProvider;
files: Files;
authConfigs: AuthConfigs;
@@ -233,7 +233,7 @@ export class Composio<
this.tools = new Tools(this.client, this.provider, this.config);
this.mcp = new MCP(this.client);
this.toolkits = new Toolkits(this.client);
- this.triggers = new Triggers(this.client);
+ this.triggers = new Triggers(this.client, this.config);
this.authConfigs = new AuthConfigs(this.client);
this.files = new Files(this.client);
this.connectedAccounts = new ConnectedAccounts(this.client);
diff --git a/ts/packages/core/src/models/Tools.ts b/ts/packages/core/src/models/Tools.ts
index 7786dca7b..46653bdd5 100644
--- a/ts/packages/core/src/models/Tools.ts
+++ b/ts/packages/core/src/models/Tools.ts
@@ -108,6 +108,8 @@ export class Tools<
inputParameters: tool.input_parameters,
outputParameters: tool.output_parameters,
availableVersions: tool.available_versions,
+ isDeprecated: tool.is_deprecated,
+ isNoAuth: tool.no_auth,
});
}
diff --git a/ts/packages/core/src/models/Triggers.ts b/ts/packages/core/src/models/Triggers.ts
index c5184682c..3a26a5d8b 100644
--- a/ts/packages/core/src/models/Triggers.ts
+++ b/ts/packages/core/src/models/Triggers.ts
@@ -31,18 +31,23 @@ import {
transformTriggerTypeListResponse,
transformTriggerTypeRetrieveResponse,
} from '../utils/transformers/triggers';
+import { ToolkitVersionParam } from '../types/tool.types';
+import { ComposioConfig } from '../composio';
+import { BaseComposioProvider } from '../provider/BaseProvider';
/**
* Trigger (Instance) class
* /api/v3/trigger_instances
*
*/
-export class Triggers {
+export class Triggers<TProvider extends BaseComposioProvider<unknown, unknown, unknown>> {
private client: ComposioClient;
private pusherService: PusherService;
+ private toolkitVersions: ToolkitVersionParam;
- constructor(client: ComposioClient) {
+ constructor(client: ComposioClient, config?: ComposioConfig<TProvider>) {
this.client = client;
this.pusherService = new PusherService(client);
+ this.toolkitVersions = config?.toolkitVersions ?? 'latest';
telemetry.instrument(this);
}
@@ -271,6 +276,7 @@ export class Triggers {
cursor: parsedQuery.cursor,
limit: parsedQuery.limit,
toolkit_slugs: parsedQuery.toolkits,
+ toolkit_versions: this.toolkitVersions,
});
return transformTriggerTypeListResponse(result);
diff --git a/ts/packages/core/src/types/tool.types.ts b/ts/packages/core/src/types/tool.types.ts
index 2f47ce2df..d606b45fd 100644
--- a/ts/packages/core/src/types/tool.types.ts
+++ b/ts/packages/core/src/types/tool.types.ts
@@ -116,12 +116,14 @@ export const ToolSchema = z.object({
tags: z.array(z.string()).describe('The tags of the tool. eg: Important').default([]).optional(),
toolkit: ToolkitSchema.describe('The toolkit of the tool').optional(),
version: z.string().describe('The version of the tool, e.g. "20250909_00"').optional(),
+ isDeprecated: z.boolean().describe('Whether the tool is deprecated').optional(),
availableVersions: z
.array(z.string())
.describe('Available versions of the tool.')
.default([])
.optional(),
scopes: z.array(z.string()).describe('The scopes of the tool. eg: ["task:add"]').optional(),
+ isNoAuth: z.boolean().describe('Do the tool support no auth?').optional(),
});
export type Tool = z.infer<typeof ToolSchema>;
diff --git a/ts/packages/core/src/types/toolkit.types.ts b/ts/packages/core/src/types/toolkit.types.ts
index 86c4c5e62..467a19966 100644
--- a/ts/packages/core/src/types/toolkit.types.ts
+++ b/ts/packages/core/src/types/toolkit.types.ts
@@ -36,6 +36,7 @@ export const ToolKitMetaSchema = z.object({
toolsCount: z.number().optional(),
triggersCount: z.number().optional(),
updatedAt: z.string().optional(),
+ availableVersions: z.array(z.string()).optional(),
});
export const ToolKitItemSchema = z.object({
diff --git a/ts/packages/core/src/types/triggers.types.ts b/ts/packages/core/src/types/triggers.types.ts
index 9c4505791..8ae76d7a2 100644
--- a/ts/packages/core/src/types/triggers.types.ts
+++ b/ts/packages/core/src/types/triggers.types.ts
@@ -161,6 +161,7 @@ export const TriggerTypeSchema = z.object({
}),
payload: z.record(z.unknown()),
config: z.record(z.unknown()),
+ version: z.string().optional(),
});
export type TriggerType = z.infer<typeof TriggerTypeSchema>;
diff --git a/ts/packages/core/src/utils/transformers/toolkits.ts b/ts/packages/core/src/utils/transformers/toolkits.ts
index 03e778559..f854196cc 100644
--- a/ts/packages/core/src/utils/transformers/toolkits.ts
+++ b/ts/packages/core/src/utils/transformers/toolkits.ts
@@ -62,6 +62,7 @@ export const transformToolkitRetrieveResponse = (
slug: category.slug,
name: category.name,
})),
+ availableVersions: response.meta.available_versions,
// appUrl: response.meta.app_url, @TODO Update the client type to include this
},
isLocalToolkit: response.is_local_toolkit,
diff --git a/ts/packages/core/src/utils/transformers/triggers.ts b/ts/packages/core/src/utils/transformers/triggers.ts
index 7c0b2d458..fc0e20119 100644
--- a/ts/packages/core/src/utils/transformers/triggers.ts
+++ b/ts/packages/core/src/utils/transformers/triggers.ts
@@ -63,6 +63,7 @@ export function transformTriggerTypeRetrieveResponse(
slug: response.toolkit.slug,
name: response.toolkit.name,
},
+ version: response.version,
payload: response.payload,
config: response.config,
}));
diff --git a/ts/packages/core/test/models/triggers.test.ts b/ts/packages/core/test/models/triggers.test.ts
index f64c04dd6..587592a4c 100644
--- a/ts/packages/core/test/models/triggers.test.ts
+++ b/ts/packages/core/test/models/triggers.test.ts
@@ -109,6 +109,7 @@ const mockTriggerTypes = {
name: 'github',
logo: 'https://example.com/github.png',
},
+ version: '20250101_00',
},
],
total_pages: 1,
@@ -133,6 +134,7 @@ const mockTriggerType = {
name: 'github',
logo: 'https://example.com/github.png',
},
+ version: '20250101_00',
};
const mockTriggerEnum = {
@@ -199,7 +201,7 @@ const mockIncomingTriggerPayload: IncomingTriggerPayload = {
};
describe('Triggers', () => {
- let triggers: Triggers;
+ let triggers: Triggers<any>;
let mockClient: ReturnType<typeof createMockClient>;
let mockPusherService: {
subscribe: Mock;
@@ -455,7 +457,12 @@ describe('Triggers', () => {
const result = await triggers.listTypes();
- expect(mockClient.triggersTypes.list).toHaveBeenCalledWith({});
+ expect(mockClient.triggersTypes.list).toHaveBeenCalledWith({
+ cursor: undefined,
+ limit: undefined,
+ toolkit_slugs: undefined,
+ toolkit_versions: 'latest',
+ });
expect(result).toEqual({
items: mockTriggerTypes.items.map(item => ({
...item,
@@ -473,8 +480,10 @@ describe('Triggers', () => {
const result = await triggers.listTypes(query);
expect(mockClient.triggersTypes.list).toHaveBeenCalledWith({
+ cursor: undefined,
limit: query.limit,
toolkit_slugs: query.toolkits,
+ toolkit_versions: 'latest',
});
expect(result).toEqual({
items: mockTriggerTypes.items,