Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 19:30 UTC
feat(json-schema-to-zod): support zod 3 and 4 (#2066)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com> Co-authored-by: Musthaq Ahamad <53584487+haxzie@users.noreply.github.com>
Alberto Schiabel committed
Oct 31, 2025 at 09:18 UTC
e4c6c497bc9e1027158e2ce566ae6d272fa22f18
41 files changed
+2666
-972
.gitignore
+4
-1
@@ -66,4 +66,7 @@ __pycache__/
66
.vscode
67
temp/
68
fern/llms-txt-worker/public/*
69
-!fern/llms-txt-worker/public/.keepFolder
\ No newline at end of file
69
+!fern/llms-txt-worker/public/.keepFolder
70
+
71
+# E2E test node_modules
72
+test/e2e/*/node_modules
\ No newline at end of file
.pnpmfile.cjs
new
+20
@@ -0,0 +1,20 @@
1
+/**
2
+ * Alias manager for pnpm.
3
+ */
4
+function readPackage(pkg, context) {
5
+ /**
6
+ * Alias zod-to-json-schema to @finom/zod-to-json-schema, to work around this issue:
7
+ * https://github.com/StefanTerdell/zod-to-json-schema/issues/178.
8
+ */
9
+ if (pkg.dependencies && pkg.dependencies['zod-to-json-schema']) {
10
+ pkg.dependencies['zod-to-json-schema'] = 'npm:@finom/zod-to-json-schema@3.24.11'
11
+ context.log(`zod-to-json-schema => @finom/zod-to-json-schema in dependencies of ${pkg.name}`)
12
+ }
13
+ return pkg
14
+}
15
+
16
+module.exports = {
17
+ hooks: {
18
+ readPackage
19
+ }
20
+}
fern/assets/Inter-Regular.woff2
Binary files /dev/null and b/fern/assets/Inter-Regular.woff2 differ
fern/assets/Roobert-Medium.woff2
Binary files /dev/null and b/fern/assets/Roobert-Medium.woff2 differ
fern/assets/Roobert-Regular.woff2
Binary files /dev/null and b/fern/assets/Roobert-Regular.woff2 differ
fern/docs.yml
+7
-4
@@ -29,6 +29,9 @@ typography:
29
- path: assets/IBMPlexMono-Light.ttf
30
weight: '400'
31
navbar-links:
32
+- type: primary
33
+ text: V1 Docs
34
+ url: https://v1.docs.composio.dev
35
- type: filled
36
text: LOG IN
37
url: https://platform.composio.dev/auth
@@ -108,7 +111,7 @@ navigation:
111
path: pages/dist/get-started/providers.mdx
112
slug: providers
113
- section: Tools
111
- icon: wrench
114
+ icon: tools
115
skip-slug: true
116
contents:
117
- page: Authenticating Tools
@@ -136,7 +139,7 @@ navigation:
139
path: pages/dist/tool-calling/toolkit-versioning.mdx
140
slug: toolkit-versioning
141
- section: Authentication
139
- icon: key
142
+ icon: lock
143
skip-slug: true
144
contents:
145
- page: Custom Auth Configs
@@ -159,7 +162,7 @@ navigation:
162
path: pages/dist/triggers/using-triggers.mdx
163
slug: using-triggers
164
- section: MCP
162
- icon: database
165
+ icon: server
166
skip-slug: true
167
contents:
168
- page: Quickstart
@@ -175,7 +178,7 @@ navigation:
178
path: pages/dist/mcp/partner-api.mdx
179
slug: mcp-partner-api
180
- section: Tool Router (Beta)
178
- icon: flask
181
+ icon: tools
182
skip-slug: true
183
contents:
184
- page: Quick Start
fern/package.json
-2
@@ -39,7 +39,6 @@
39
"supergateway": "^2.8.3"
40
},
41
"devDependencies": {
42
- "@openai/agents": "^0.2.1",
42
"@ai-sdk/anthropic": "^1.2.12",
43
"@anthropic-ai/sdk": "^0.52.0",
44
"@composio/core": "workspace:*",
@@ -47,7 +46,6 @@
46
"@composio/langchain": "workspace:*",
47
"@composio/llamaindex": "workspace:*",
48
"@composio/openai": "workspace:*",
50
- "@composio/openai-agents": "workspace:*",
49
"@composio/vercel": "workspace:*",
50
"@google/genai": "^1.1.0",
51
"@langchain/langgraph": "^0.2.72",
fern/pages/src/get-started/welcome.mdx
+19
-69
@@ -1,62 +1,35 @@
1
---
2
title: Welcome to Composio
3
-subtitle: Composio is the simplest way to connect AI agents to external tools and services.
4
-image: "https://og.composio.dev/api/og?title=Welcome%20to%20Composio"
3
+image: "https://og.composio.dev/api/og?title=Welcome%20to%20Composio" # image for socials
4
keywords: ''
5
+# subtitle: 'Our API and SDKs enable developers to build AI applications and experiences that are a step above the rest.'
6
hide-nav-links: false
7
---
8
9
-<CardGroup cols={2}>
10
- <Card
11
- icon="key"
12
- title="Managed authentication"
13
- href="/docs/authenticating-tools"
14
- >
15
- Handle OAuth, API keys, and custom auth flows automatically
16
- </Card>
9
+<Frame>
10
+ <img src="../../../assets/images/hero.png" alt="Composio introduction image" />
11
+</Frame>
12
18
- <Card
19
- icon="wrench"
20
- title="Tool execution"
21
- href="/docs/executing-tools"
22
- >
23
- Execute actions across 500+ toolkits with support for most AI frameworks
24
- </Card>
25
-
26
- <Card
27
- icon="database"
28
- title="MCP server"
29
- href="/docs/mcp-quickstart"
30
- >
31
- Hosted MCP servers for all 500+ toolkits.
32
- </Card>
13
+Composio is the fastest way to enable your AI agents to take real-world actions—without dealing with individual API integrations, authentication flows, or complex tool formatting.
14
34
- <Card
35
- icon="bolt"
36
- title="Triggers"
37
- href="/docs/using-triggers"
38
- >
39
- Subscribe to external events and trigger workflows automatically
40
- </Card>
41
-</CardGroup>
15
+- **Access 3000+ tools** out of the box across popular apps like Slack, GitHub, Notion, and more. [Browse tools →](/toolkits/introduction)
16
+- **Enforce strict access and data controls** with [fine-grained permissions](/docs/authenticating-tools) for each tool and user.
17
+- **Trigger agents and workflows** using [external events](/docs/using-triggers) (e.g., new message in Slack, new issue in GitHub).
18
+- **Customize tools** for your proprietary APIs or internal functions via [modifiers](/docs/modifying-tool-schemas).
19
+- **Integrate seamlessly** with frameworks like OpenAI, Anthropic, LangChain, Vercel AI SDK, and more.
20
+- **Enhance reliability** with [input/output processing hooks](/docs/modifying-tool-inputs) to clean or transform data on the fly.
21
43
-***
22
+No more writing dozens of integrations. Composio handles auth, tool normalization, and execution—so your agents can focus on reasoning, not plumbing.
23
45
-## Get started
24
+**We even optimize tool calls automatically for better accuracy**
25
47
-<CardGroup cols={2}>
48
- <Card icon="rocket" title="Quickstart" href="/docs/quickstart">
49
- Build your first agent
50
- </Card>
26
+## Get started in minutes
27
52
- <Card icon="code" title="Providers" href="/docs/providers">
53
- Integrate with OpenAI, Anthropic, Vercel AI SDK, and more
54
- </Card>
55
-</CardGroup>
28
+Watch our step-by-step implementation tutorials:
29
30
<Tabs>
31
<Tab title="Python">
59
-<div style={{position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', marginBottom: '20px', marginTop: '20px'}}>
32
+<div style={{position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', marginBottom: '20px'}}>
33
<iframe
34
style={{position: 'absolute', top: 0, left: 0, width: '100%', height: '100%'}}
35
src="https://www.youtube.com/embed/wkqlR8322F4"
@@ -68,7 +41,7 @@ hide-nav-links: false
41
</div>
42
</Tab>
43
<Tab title="TypeScript">
71
-<div style={{position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', marginBottom: '20px', marginTop: '20px'}}>
44
+<div style={{position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', marginBottom: '20px'}}>
45
<iframe
46
style={{position: 'absolute', top: 0, left: 0, width: '100%', height: '100%'}}
47
src="https://www.youtube.com/embed/ZRGb4xGl-kc"
@@ -79,27 +52,4 @@ hide-nav-links: false
52
></iframe>
53
</div>
54
</Tab>
82
-</Tabs>
83
-
84
-***
85
-
86
-## Why Composio?
87
-
88
-Composio is the fastest way to enable your AI agents to take real-world actions—without dealing with individual API integrations, authentication flows, or complex tool formatting.
89
-
90
-- **Access 500+ toolkits** out of the box across popular apps like Slack, GitHub, Notion, and more. [Browse toolkits →](/toolkits/introduction)
91
-- **Enforce strict access and data controls** with [fine-grained permissions](/docs/authenticating-tools) for each tool and user.
92
-- **Trigger agents and workflows** using [external events](/docs/using-triggers) (e.g., new message in Slack, new issue in GitHub).
93
-- **Use MCP servers** for all 500+ toolkits, compatible with any [MCP client](/docs/mcp-quickstart).
94
-- **Search, plan and authenticate** across all tools with [Tool Router](/docs/tool-router/quick-start).
95
-- **Integrate seamlessly** with frameworks like [OpenAI](/providers/openai), [Anthropic](/providers/anthropic), [LangChain](/providers/langchain), [Vercel AI SDK](/providers/vercel), and more.
96
-
97
-<Card icon="flask" title="Tool Router (Beta)" href="/docs/tool-router/quick-start">
98
- Search, plan, and handle authentication across all the tools.
99
-</Card>
100
-
101
-***
102
-
103
-## Community
104
-
105
-Join our [Discord](https://discord.gg/composio) community!
\ No newline at end of file
55
+</Tabs>
\ No newline at end of file
fern/pages/src/mcp/quickstart.mdx
+3
@@ -82,6 +82,9 @@ npm install @composio/core
82
## Next steps
83
84
<Cards>
85
+ <Card title="Authentication" href="/docs/mcp-authentication" icon="lock">
86
+ Handle user authentication and connections
87
+ </Card>
88
<Card title="Server management" href="/docs/mcp-server-management" icon="server">
89
Create and manage MCP servers
90
</Card>
fern/pages/src/tool-router/quick-start.mdx
+81
-156
@@ -11,142 +11,55 @@ Tool Router automatically discovers, authenticates, and executes the right tools
11
12
This is what powers complex agentic products like [Rube](https://rube.app).
13
14
-## Quick start
14
16
-<Steps toc={true}>
17
- <Step title="Install SDKs">
18
- Install the Composio SDK and OpenAI Agents SDK:
15
+### Quick Start
16
20
- <CodeGroup>
17
+Create a presigned URL for each user session. This URL exposes Tool Router capabilities through the Model Context Protocol (MCP).
18
22
- ```bash Python
23
- pip install composio_openai_agents openai-agents
24
- ```
25
-
26
- ```bash TypeScript
27
- pnpm install @composio/core @composio/openai-agents @openai/agents
28
- ```
29
-
30
- </CodeGroup>
31
-
32
- Get your Composio API key from [settings](https://platform.composio.dev/?next_page=/settings) and set it as an environment variable:
33
-
34
- ```bash
35
- export COMPOSIO_API_KEY="your-api-key"
36
- ```
37
- </Step>
38
-
39
- <Step title="Create Tool Router session">
40
- Initialize Composio and create a session for your user:
41
-
42
- <Tip icon="info">
43
- **Authentication is handled automatically**
44
-
45
- Tool Router provides auth URLs when needed. For production, consider [pre-configuring authentication](/docs/authenticating-tools).
46
- </Tip>
47
-
48
- <CodeGroup>
49
-
50
- <SnippetCode
51
- src="fern/snippets/tool-router/python/quickstart.py"
52
- startLine={1}
53
- endLine={16}
54
- title="Python"
55
- />
56
-
57
- <SnippetCode
58
- src="fern/snippets/tool-router/typescript/quickstart.ts"
59
- startLine={1}
60
- endLine={17}
61
- title="TypeScript"
62
- />
63
-
64
- </CodeGroup>
65
-
66
- This generates a secure MCP endpoint URL that your AI agent will use to access Tool Router.
67
- </Step>
68
-
69
- <Step title="Set up your agent">
70
- Configure an OpenAI agent with the Tool Router MCP endpoint:
71
-
72
- <CodeGroup>
73
-
74
- <SnippetCode
75
- src="fern/snippets/tool-router/python/quickstart.py"
76
- startLine={17}
77
- endLine={33}
78
- title="Python"
79
- />
80
-
81
- <SnippetCode
82
- src="fern/snippets/tool-router/typescript/quickstart.ts"
83
- startLine={20}
84
- endLine={30}
85
- title="TypeScript"
86
- />
87
-
88
- </CodeGroup>
89
- </Step>
90
-
91
- <Step title="Run your agent">
92
- Execute the agent with a task:
93
-
94
- <CodeGroup>
95
-
96
- <SnippetCode
97
- src="fern/snippets/tool-router/python/quickstart.py"
98
- startLine={34}
99
- endLine={42}
100
- title="Python"
101
- />
19
+<CodeGroup>
20
+<SnippetCode
21
+ src="fern/snippets/tool-router/python/quick-start.py"
22
+ startLine={1}
23
+ endLine={17}
24
+ title="Python"
25
+/>
26
+
27
+<SnippetCode
28
+ src="fern/snippets/tool-router/typescript/quick-start.ts"
29
+ startLine={1}
30
+ endLine={25}
31
+ title="TypeScript"
32
+/>
33
+</CodeGroup>
34
103
- <SnippetCode
104
- src="fern/snippets/tool-router/typescript/quickstart.ts"
105
- startLine={32}
106
- endLine={41}
107
- title="TypeScript"
108
- />
35
+<Tip icon="info">
36
+**What are sessions?**
37
110
- </CodeGroup>
111
- </Step>
112
-</Steps>
38
+A session encapsulates a single conversation between a user and the language model.
39
114
-### Visualizing Tool Router in MCP Inspector
40
+Sessions are designed for security. Each presigned URL contains user authentication credentials and should never be stored long-term or exposed to the client. Generate a new URL for each conversation.
41
+</Tip>
42
116
-You can inspect the session URL in any MCP client. Here's what it looks like in the MCP Inspector:
43
+The URL you get here is an MCP [StreamableHTTP URL](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http). You can use this URL in any MCP client, you can see how it lists tools inside the inspector here.
44
45
<Frame>
46
<img src="../../../assets/images/tool-router/inspector.jpeg" alt="Tool Router Inspector" />
47
</Frame>
48
122
-## How Tool Router works
123
-
124
-The Tool Router executes a three-phase workflow:
125
-
126
-**1. Discovery**
127
-Searches across all available tools to find ones matching your task. Returns relevant toolkits with their descriptions, schemas, and connection status.
128
-
129
-**2. Authentication**
130
-Checks if the user has an active connection to the required toolkit. If not, creates an auth config and returns a connection URL using [Auth Link](/docs/authenticating-tools#hosted-authentication-connect-link). The user completes authentication through this link.
131
-
132
-**3. Execution**
133
-Loads authenticated tools into context and executes them. Supports parallel execution across multiple tools for efficiency.
134
-
135
-<Tip icon="info">
136
-**What are sessions?**
137
-
138
-Sessions are designed for security. Each presigned URL contains user authentication credentials and should never be stored long-term or exposed to the client. Generate a new URL for each conversation.
139
-</Tip>
140
-
141
-## Works with any MCP client
49
+### Building on top of this URL with providers
50
143
-The session URL you created is a standard MCP endpoint. Use it with any framework that supports MCP:
51
+_The necessary scaffolding will be integrated into existing providers abstraction before `toolRouter` is generally available._
52
145
-<Info>
146
-Tool Router uses Streamable HTTP transport for MCP communication. Make sure your MCP client supports HTTP transport (most do).
147
-</Info>
53
+Use the presigned URL with any frameworks that support MCP directly, few examples below:
54
55
<CardGroup cols={2}>
56
+ <Card
57
+ title="OpenAI"
58
+ icon={<img src="../../../assets/images/openai-logo.svg" width="24" height="24" />}
59
+ href="https://platform.openai.com/docs/guides/tools-connectors-mcp"
60
+ >
61
+ Connect via OpenAI's MCP connector to use Tool Router with GPT models
62
+ </Card>
63
<Card
64
title="Vercel AI SDK"
65
icon={<img src="../../../assets/images/vercel-logo.svg" width="24" height="24" />}
@@ -170,11 +83,32 @@ Tool Router uses Streamable HTTP transport for MCP communication. Make sure your
83
</Card>
84
</CardGroup>
85
173
-<Note>
174
-The necessary scaffolding will be integrated into existing provider abstractions before Tool Router is generally available.
175
-</Note>
86
177
-## Available meta tools
87
+
88
+
89
+
90
+## How Tool Router Works
91
+
92
+The Tool Router executes a three-phase workflow:
93
+
94
+**1. Discovery**
95
+Searches across all available tools to find ones matching your task. Returns relevant toolkits with their descriptions, schemas, and connection status.
96
+
97
+**2. Authentication**
98
+Checks if the user has an active connection to the required toolkit. If not, creates an auth config and returns a connection URL using [Auth Link](/docs/authenticating-tools#hosted-authentication-connect-link). The user completes authentication through this link.
99
+
100
+**3. Execution**
101
+Loads authenticated tools into context and executes them. Supports parallel execution across multiple tools for efficiency.
102
+
103
+### Context Management
104
+
105
+The Tool Router intelligently manages context to avoid overwhelming the LLM with unnecessary information. Tools are only loaded into context when needed—search discovers relevant tools, and multi execute loads them just-in-time for execution. When working with large outputs, the remote workbench stores them as files in persistent storage, allowing iteration without consuming context windows. The system also segments tools within each MCP server, exposing only the subset required for the current task.
106
+
107
+<Info>
108
+The tool router currently consumes about ~20k tokens of context on modern models like `gpt-5` and `claude-4.5-sonnet`. This number can vary based on the model's tokenizer, we will work towards reducing this number in the future.
109
+</Info>
110
+
111
+### Available Tools
112
113
The router exposes six meta tools through MCP. These tools orchestrate the complete workflow from discovery to execution:
114
@@ -217,59 +151,50 @@ The router exposes six meta tools through MCP. These tools orchestrate the compl
151
</AccordionGroup>
152
153
220
-## Customization
154
+## Customizing the Tool Router
155
222
-### Restricting toolkits
156
+### Restricting Toolkits
157
158
Control which toolkits are available by specifying them during session creation. This limits which apps your users can access.
159
160
<CodeGroup>
161
```python
228
-session = composio.experimental.tool_router.create_session(
229
- user_id="user@example.com",
230
- toolkits=["github", "slack", "gmail"]
231
-)
162
+session = composio.experimental.toolRouter.createSession("hey@example.com", {
163
+ toolkits: ["github", "slack"],
164
+})
165
```
166
167
```typescript
235
-const session = await composio.experimental.toolRouter.createSession(
236
- "user@example.com",
237
- {
238
- toolkits: ["github", "slack", "gmail"]
239
- }
240
-);
168
+const session = await composio.experimental.toolRouter.createSession("hey@example.com", {
169
+ toolkits: ["github", "slack"],
170
+})
171
+
172
```
173
</CodeGroup>
174
175
245
-### Manual connection management
176
+### Manual Connection Management
177
+
178
+You can manually manage connections, this is advanced and still a bit of work in progress.
179
+
180
+To manually manage connections, you can set `manuallyManageConnections` to `true` and limit the toolkits you want to use.
181
247
-For advanced use cases, you can manually manage connections:
182
+Once you pass the auth config id, you can use our regular functions to connect accounts and check authentication status.
183
184
<CodeGroup>
250
-```python
251
-session = composio.experimental.tool_router.create_session(
252
- user_id="user@example.com",
253
- toolkits=[{"toolkit": "gmail", "auth_config_id": "ac_nnn"}],
254
- manually_manage_connections=True
255
-)
256
-```
185
186
```typescript
259
-const session = await composio.experimental.toolRouter.createSession(
260
- "user@example.com",
261
- {
262
- toolkits: [{ toolkit: 'gmail', authConfigId: 'ac_nnn' }],
263
- manuallyManageConnections: true
264
- }
265
-);
187
+// Access the experimental ToolRouter
188
+const session = await composio.experimental.toolRouter.createSession("hey@example.com", {
189
+ toolkits: [{ toolkit: 'gmail', authConfigId: 'ac_nnn' }],
190
+ manuallyManageConnections: true,
191
+});
192
```
267
-</CodeGroup>
193
269
-When you pass the auth config ID, you can use regular Composio functions to connect accounts and check authentication status.
194
+</CodeGroup>
195
196
## Feedback
197
273
-This is still very experimental and work in progress, and you can expect the contracts to change and improve as we iterate on this. That said, we would love to hear your feedback on this.
198
+This is still very experimental and work in progress, you can expect the contracts to change and improve as we iterate on this. That said we would love to hear your feedback on this
199
275
-Give us feedback on this GitHub discussion [here](https://github.com/ComposioHQ/composio/discussions/2011).
\ No newline at end of file
200
+Give us feedback on this github discussion [here](https://github.com/ComposioHQ/composio/discussions/2011)
\ No newline at end of file
fern/scripts/build-snippets.ts
+1
-1
@@ -583,4 +583,4 @@ async function main() {
583
main().catch(error => {
584
console.error('❌ Fatal error:', error);
585
process.exit(1);
586
-});
\ No newline at end of file
586
+});
fern/snippets/tool-router/python/quick-start.py
new
+15
@@ -0,0 +1,15 @@
1
+from composio import Composio
2
+composio = Composio()
3
+
4
+userId = "hey@example.com"
5
+# Create a tool router session
6
+session = composio.experimental.tool_router.create_session(
7
+ user_id=userId,
8
+)
9
+# Returns:
10
+# {
11
+# 'session_id': '<session_id>',
12
+# 'url': '<mcp_url>'
13
+# }
14
+
15
+mcpUrl = session['url']
\ No newline at end of file
fern/snippets/tool-router/python/quickstart.py
deleted
-42
@@ -1,42 +0,0 @@
1
-import asyncio
2
-import os
3
-from composio import Composio
4
-from composio_openai_agents import OpenAIAgentsProvider
5
-from agents import Agent, Runner, HostedMCPTool
6
-
7
-async def main() -> None:
8
- # Initialize Composio and create Tool Router session
9
- composio = Composio(
10
- api_key=os.getenv("COMPOSIO_API_KEY"), # Uses env var by default
11
- provider=OpenAIAgentsProvider()
12
- )
13
- session = composio.experimental.tool_router.create_session(
14
- user_id="user@example.com",
15
- toolkits=["gmail", "github"] # Optional: Limit available toolkits
16
- )
17
-
18
- # Set up OpenAI agent with Tool Router MCP endpoint
19
- agent = Agent(
20
- name="Assistant",
21
- instructions="You are a helpful assistant that can access Gmail and GitHub. "
22
- "Help users fetch emails, create issues, manage pull requests, and more.",
23
- tools=[
24
- HostedMCPTool(
25
- tool_config={
26
- "type": "mcp",
27
- "server_label": "tool_router",
28
- "server_url": session['url'],
29
- "require_approval": "never",
30
- }
31
- )
32
- ],
33
- )
34
-
35
- # Execute the agent
36
- result = await Runner.run(
37
- agent,
38
- "Fetch the contributors to composiohq/composio github repository and email the list to user@example.com"
39
- )
40
- print(result.final_output)
41
-
42
-asyncio.run(main())
\ No newline at end of file
fern/snippets/tool-router/typescript/quick-start.ts
new
+14
@@ -0,0 +1,14 @@
1
+import { Composio } from '@composio/core';
2
+
3
+const composio = new Composio();
4
+const userId = 'hey@example.com';
5
+
6
+// Access the experimental ToolRouter
7
+const session = await composio.experimental.toolRouter.createSession(userId);
8
+// Returns:
9
+// {
10
+// sessionId: "<session_id>",
11
+// url: "<mcp_url>"
12
+// }
13
+
14
+const mcpUrl = session.url;
fern/snippets/tool-router/typescript/quickstart.ts
deleted
-41
@@ -1,41 +0,0 @@
1
-import { Composio } from '@composio/core';
2
-import { OpenAIAgentsProvider } from '@composio/openai-agents';
3
-import { Agent, hostedMcpTool, run } from '@openai/agents';
4
-
5
-async function main() {
6
- // Initialize Composio with OpenAI Agents Provider
7
- const composio = new Composio({
8
- apiKey: process.env.COMPOSIO_API_KEY,
9
- provider: new OpenAIAgentsProvider()
10
- });
11
-
12
- // Create a Tool Router session for your user
13
- const session = await composio.experimental.toolRouter.createSession(
14
- 'user@example.com',
15
- {
16
- toolkits: ['gmail', 'github'] // Optional: Limit available toolkits
17
- }
18
- );
19
-
20
- // Create an agent with Tool Router MCP endpoint
21
- const agent = new Agent({
22
- name: 'Assistant',
23
- instructions: 'You are a helpful assistant that can access Gmail and GitHub. Help users fetch emails, create issues, manage pull requests, and more.',
24
- tools: [
25
- hostedMcpTool({
26
- serverLabel: 'tool_router',
27
- serverUrl: session.url,
28
- }),
29
- ],
30
- });
31
-
32
- // Execute the agent
33
- const result = await run(
34
- agent,
35
- 'Fetch the contributors to composiohq/composio github repository and email the list to user@example.com'
36
- );
37
-
38
- console.log(result.finalOutput);
39
-}
40
-
41
-main();
\ No newline at end of file
fern/tools/introduction.mdx
new
+37
@@ -0,0 +1,37 @@
1
+---
2
+title: Introduction to Tools
3
+---
4
+
5
+Tools are the building blocks of Composio. They are used to interact with external APIs and services.
6
+
7
+Composio comes with support for 250+ apps with built in authentication and actions.
8
+
9
+<CardGroup>
10
+<Card title="Twitter Tool" href="/tools/twitter" icon="fa-brands fa-x-twitter">
11
+View the authentication and actions for the Twitter tool.
12
+</Card>
13
+
14
+<Card title="Gmail Tool" href="/tools/gmail" icon="fa-solid fa-envelope">
15
+ View the authentication and actions for the Gmail tool.
16
+</Card>
17
+
18
+<Card title="Github Tool" href="/tools/github" icon="fa-brands fa-github">
19
+ View the authentication and actions for the Github tool.
20
+</Card>
21
+
22
+<Card title="Notion Tool" href="/tools/notion" icon="fa-solid fa-book">
23
+ View the authentication and actions for the Notion tool.
24
+</Card>
25
+
26
+<Card title="Google Sheets Tool" href="/tools/googlesheets" icon="fa-solid fa-file-spreadsheet">
27
+ View the authentication and actions for the Google Sheets tool.
28
+</Card>
29
+
30
+<Card title="Shopify Tool" href="/tools/shopify" icon="fa-brands fa-shopify">
31
+ View the authentication and actions for the Shopify tool.
32
+</Card>
33
+
34
+<Card title="Stripe Tool" href="/tools/stripe" icon="fa-brands fa-stripe">
35
+View the authentication and actions for the Stripe tool.
36
+</Card>
37
+</CardGroup>
fern/v1.yml
new
+773
@@ -0,0 +1,773 @@
1
+tabs:
2
+ docs:
3
+ display-name: Docs
4
+ skip-slug: true
5
+ icon: book
6
+ guides:
7
+ display-name: Guides
8
+ slug: guides
9
+ icon: map
10
+ sdk-reference:
11
+ display-name: SDK Reference
12
+ href: https://deepwiki.com/ComposioHQ/composio
13
+ icon: code
14
+ api-reference:
15
+ display-name: API Reference
16
+ slug: api-reference
17
+ icon: server
18
+ frameworks:
19
+ display-name: Frameworks
20
+ slug: frameworks
21
+ skip-slug: true
22
+ icon: file
23
+ tools:
24
+ display-name: Tools
25
+ slug: tools
26
+ skip-slug: true
27
+ icon: puzzle
28
+
29
+navigation:
30
+ - tab: docs
31
+ layout:
32
+ - section: Getting Started
33
+ icon: rocket
34
+ contents:
35
+ - page: Welcome
36
+ path: pages/v1/getting-started/welcome.mdx
37
+ - page: Installation
38
+ path: pages/v1/getting-started/installation.mdx
39
+ - page: Quickstart
40
+ path: pages/v1/getting-started/quickstart.mdx
41
+ - section: Tool Calling
42
+ icon: wrench
43
+ contents:
44
+ - page: Introduction
45
+ path: pages/v1/tool-calling/introduction.mdx
46
+ - page: Fetching Tools
47
+ path: pages/v1/tool-calling/fetching-tools.mdx
48
+ - page: Executing Tools
49
+ path: pages/v1/tool-calling/executing-tools.mdx
50
+ - page: Customizing Tools
51
+ path: pages/v1/tool-calling/custom-tools.mdx
52
+ - page: Processing Tools
53
+ path: pages/v1/tool-calling/processing-tools.mdx
54
+ - page: Adding Your Own App
55
+ path: pages/v1/tool-calling/add-your-app.mdx
56
+ - section: Auth
57
+ icon: lock
58
+ contents:
59
+ - page: Introduction
60
+ path: pages/v1/authentication/introduction.mdx
61
+ - page: Set up Integrations
62
+ path: pages/v1/authentication/integration.mdx
63
+ - section: Connecting Users
64
+ slug: connection
65
+ path: pages/v1/authentication/connection.mdx
66
+ contents:
67
+ - page: To OAuth Apps
68
+ path: pages/v1/authentication/oauth.mdx
69
+ slug: oauth
70
+ - page: To Token Apps
71
+ path: pages/v1/authentication/non-oauth.mdx
72
+ slug: non-oauth
73
+ - page: White-labelling
74
+ path: pages/v1/authentication/white-labelling.mdx
75
+ - page: Injecting Custom Credentials
76
+ path: pages/v1/authentication/injecting-credentials.mdx
77
+ - section: Triggers
78
+ icon: bolt
79
+ contents:
80
+ - page: Using Triggers
81
+ path: pages/v1/triggers/triggers.mdx
82
+
83
+ - section: MCP
84
+ icon: plug
85
+ contents:
86
+ - page: Introduction
87
+ path: pages/v1/mcp/introduction.mdx
88
+ - section: MCP Clients
89
+ slug: clients
90
+ contents:
91
+ - page: Cursor
92
+ path: pages/v1/mcp/cursor.mdx
93
+ - page: Claude
94
+ path: pages/v1/mcp/claude.mdx
95
+ - page: Windsurf
96
+ path: pages/v1/mcp/windsurf.mdx
97
+
98
+ - section: Changelog
99
+ icon: calendar
100
+ contents:
101
+ - page: API V3 Migration
102
+ path: pages/v1/changelogs/overview.mdx
103
+
104
+ - tab: frameworks
105
+ layout:
106
+ - section: Model Providers
107
+ contents:
108
+ - page: OpenAI
109
+ path: pages/v1/frameworks/openai.mdx
110
+ slug: openai
111
+ - page: Gemini
112
+ path: pages/v1/frameworks/gemini.mdx
113
+ slug: gemini
114
+ - section: Frameworks
115
+ contents:
116
+ - page: LangChain
117
+ path: pages/v1/frameworks/langchain.mdx
118
+ slug: langchain
119
+ - page: LangGraph
120
+ path: pages/v1/frameworks/langgraph.mdx
121
+ slug: langgraph
122
+ - page: CrewAI
123
+ path: pages/v1/frameworks/crewai.mdx
124
+ slug: crewai
125
+ - page: Vercel AI
126
+ path: pages/v1/frameworks/vercel.mdx
127
+ slug: vercel
128
+ - page: Autogen
129
+ path: pages/v1/frameworks/autogen.mdx
130
+ slug: autogen
131
+ - section: Creating Frameworks
132
+ contents:
133
+ - page: Python SDK
134
+ path: pages/v1/frameworks/guides/python-sdk.mdx
135
+ icon: fa-brands fa-python
136
+ - section: Other Frameworks
137
+ slug: frameworks
138
+ contents:
139
+ - page: LlamaIndex
140
+ path: pages/v1/frameworks/llamaindex.mdx
141
+ slug: llamaindex
142
+ - page: SmolAgents
143
+ path: pages/v1/frameworks/smolagents.mdx
144
+ slug: smolagents
145
+ - page: Cloudflare Worker AI
146
+ path: pages/v1/frameworks/cloudflare.mdx
147
+ slug: cloudflare
148
+ - page: CamelAI
149
+ path: pages/v1/frameworks/camelai.mdx
150
+ slug: camelai
151
+ - page: Google
152
+ path: pages/v1/frameworks/google.mdx
153
+ slug: google
154
+ - page: Griptape
155
+ path: pages/v1/frameworks/griptape.mdx
156
+ slug: griptape
157
+ - page: Groq
158
+ path: pages/v1/frameworks/groq.mdx
159
+ - page: IBM
160
+ path: pages/v1/frameworks/ibm.mdx
161
+ slug: ibm
162
+ - page: Julep
163
+ path: pages/v1/frameworks/julep.mdx
164
+ slug: julep
165
+ - page: Letta
166
+ path: pages/v1/frameworks/letta.mdx
167
+ - page: LiteLLM
168
+ path: pages/v1/frameworks/litellm.mdx
169
+ slug: litellm
170
+ - page: Lyzr
171
+ path: pages/v1/frameworks/lyzr.mdx
172
+ slug: lyzr
173
+ - page: PraisonAI
174
+ path: pages/v1/frameworks/praisonai.mdx
175
+ - page: Agno
176
+ path: pages/v1/frameworks/agno.mdx
177
+ slug: agno
178
+ - page: Together
179
+ path: pages/v1/frameworks/together.mdx
180
+ slug: together
181
+ - page: Mastra
182
+ path: pages/v1/frameworks/mastra.mdx
183
+ slug: mastra
184
+ - page: Livekit
185
+ path: pages/v1/frameworks/livekit.mdx
186
+ slug: livekit
187
+
188
+ - tab: api-reference
189
+ layout:
190
+ - section: API Reference
191
+ contents:
192
+ - api: v1
193
+ api-name: v1
194
+ paginated: true
195
+ skip-slug: true
196
+ flattened: false
197
+ - api: v3
198
+ api-name: v3
199
+ flattened: false
200
+ paginated: true
201
+ slug: v3
202
+
203
+ - tab: sdk-reference
204
+ - tab: tools
205
+ layout:
206
+ - section: Tools
207
+ contents:
208
+ - page: Introduction
209
+ path: pages/tools/introduction.mdx
210
+ # - page: Ably
211
+ # path: pages/tools/ably.mdx
212
+ # - page: Accelo
213
+ # path: pages/tools/accelo.mdx
214
+ # - page: Acculynx
215
+ # path: pages/tools/acculynx.mdx
216
+ # - page: Active Campaign
217
+ # path: pages/tools/active_campaign.mdx
218
+ # - page: Adobe
219
+ # path: pages/tools/adobe.mdx
220
+ # - page: Aero Workflow
221
+ # path: pages/tools/aero_workflow.mdx
222
+ # - page: Affinity
223
+ # path: pages/tools/affinity.mdx
224
+ # - page: Agencyzoom
225
+ # path: pages/tools/agencyzoom.mdx
226
+ # - page: Ahrefs
227
+ # path: pages/tools/ahrefs.mdx
228
+ # - page: Airtable
229
+ # path: pages/tools/airtable.mdx
230
+ # - page: Alchemy
231
+ # path: pages/tools/alchemy.mdx
232
+ # - page: Altoviz
233
+ # path: pages/tools/altoviz.mdx
234
+ # - page: Amazon
235
+ # path: pages/tools/amazon.mdx
236
+ # - page: Amcards
237
+ # path: pages/tools/amcards.mdx
238
+ # - page: Amplitude
239
+ # path: pages/tools/amplitude.mdx
240
+ # - page: Apaleo
241
+ # path: pages/tools/apaleo.mdx
242
+ # - page: Apollo
243
+ # path: pages/tools/apollo.mdx
244
+ # - page: Appdrag
245
+ # path: pages/tools/appdrag.mdx
246
+ # - page: Appsflyer
247
+ # path: pages/tools/appsflyer.mdx
248
+ # - page: Asana
249
+ # path: pages/tools/asana.mdx
250
+ # - page: Ashby
251
+ # path: pages/tools/ashby.mdx
252
+ # - page: Atlassian
253
+ # path: pages/tools/atlassian.mdx
254
+ # - page: Attio
255
+ # path: pages/tools/attio.mdx
256
+ # - page: Auth0
257
+ # path: pages/tools/auth0.mdx
258
+ # - page: Axonaut
259
+ # path: pages/tools/axonaut.mdx
260
+ # - page: Bamboohr
261
+ # path: pages/tools/bamboohr.mdx
262
+ # - page: Bannerbear
263
+ # path: pages/tools/bannerbear.mdx
264
+ # - page: Baserow
265
+ # path: pages/tools/baserow.mdx
266
+ # - page: Battlenet
267
+ # path: pages/tools/battlenet.mdx
268
+ # - page: Beeminder
269
+ # path: pages/tools/beeminder.mdx
270
+ # - page: Bitbucket
271
+ # path: pages/tools/bitbucket.mdx
272
+ # - page: Bitwarden
273
+ # path: pages/tools/bitwarden.mdx
274
+ # - page: Blackbaud
275
+ # path: pages/tools/blackbaud.mdx
276
+ # - page: Blackboard
277
+ # path: pages/tools/blackboard.mdx
278
+ # - page: Boldsign
279
+ # path: pages/tools/boldsign.mdx
280
+ # - page: Bolna
281
+ # path: pages/tools/bolna.mdx
282
+ # - page: Borneo
283
+ # path: pages/tools/borneo.mdx
284
+ # - page: Botbaba
285
+ # path: pages/tools/botbaba.mdx
286
+ # - page: Box
287
+ # path: pages/tools/box.mdx
288
+ # - page: Braintree
289
+ # path: pages/tools/braintree.mdx
290
+ # - page: Brandfetch
291
+ # path: pages/tools/brandfetch.mdx
292
+ # - page: Breezy Hr
293
+ # path: pages/tools/breezy_hr.mdx
294
+ # - page: Brevo
295
+ # path: pages/tools/brevo.mdx
296
+ # - page: Brex
297
+ # path: pages/tools/brex.mdx
298
+ # - page: Brex Staging
299
+ # path: pages/tools/brex_staging.mdx
300
+ # - page: Brightpearl
301
+ # path: pages/tools/brightpearl.mdx
302
+ # - page: Browseai
303
+ # path: pages/tools/browseai.mdx
304
+ # - page: Browserbase Tool
305
+ # path: pages/tools/browserbase_tool.mdx
306
+ # - page: Browserhub
307
+ # path: pages/tools/browserhub.mdx
308
+ # - page: Bubble
309
+ # path: pages/tools/bubble.mdx
310
+ # - page: Cal
311
+ # path: pages/tools/cal.mdx
312
+ # - page: Calendly
313
+ # path: pages/tools/calendly.mdx
314
+ # - page: Canva
315
+ # path: pages/tools/canva.mdx
316
+ # - page: Canvas
317
+ # path: tools/canvas.mdx
318
+ # - page: Chatwork
319
+ # path: tools/chatwork.mdx
320
+ # - page: Chmeetings
321
+ # path: tools/chmeetings.mdx
322
+ # - page: Clickup
323
+ # path: tools/clickup.mdx
324
+ # - page: Close
325
+ # path: tools/close.mdx
326
+ # - page: Cloudflare
327
+ # path: tools/cloudflare.mdx
328
+ # - page: Coda
329
+ # path: tools/coda.mdx
330
+ # - page: Codeinterpreter
331
+ # path: tools/codeinterpreter.mdx
332
+ # - page: Coinbase
333
+ # path: tools/coinbase.mdx
334
+ # - page: Coinmarketcal
335
+ # path: tools/coinmarketcal.mdx
336
+ # - page: Composio
337
+ # path: tools/composio.mdx
338
+ # - page: Composio Search
339
+ # path: tools/composio_search.mdx
340
+ # - page: Confluence
341
+ # path: tools/confluence.mdx
342
+ # - page: Contentful
343
+ # path: tools/contentful.mdx
344
+ # - page: Crustdata
345
+ # path: tools/crustdata.mdx
346
+ # - page: Customer Io
347
+ # path: tools/customer_io.mdx
348
+ # - page: D2Lbrightspace
349
+ # path: tools/d2lbrightspace.mdx
350
+ # - page: Dailybot
351
+ # path: tools/dailybot.mdx
352
+ # - page: Datadog
353
+ # path: tools/datadog.mdx
354
+ # - page: Datagma
355
+ # path: tools/datagma.mdx
356
+ # - page: Datarobot
357
+ # path: tools/datarobot.mdx
358
+ # - page: Deel
359
+ # path: tools/deel.mdx
360
+ # - page: Demio
361
+ # path: tools/demio.mdx
362
+ # - page: Dialpad
363
+ # path: tools/dialpad.mdx
364
+ # - page: Digicert
365
+ # path: tools/digicert.mdx
366
+ # - page: Discord
367
+ # path: tools/discord.mdx
368
+ # - page: Discordbot
369
+ # path: tools/discordbot.mdx
370
+ # - page: Docmosis
371
+ # path: tools/docmosis.mdx
372
+ # - page: Docusign
373
+ # path: tools/docusign.mdx
374
+ # - page: Dropbox
375
+ # path: tools/dropbox.mdx
376
+ # - page: Dropbox Sign
377
+ # path: tools/dropbox_sign.mdx
378
+ # - page: Dynamics365
379
+ # path: tools/dynamics365.mdx
380
+ # - page: Echtpost
381
+ # path: tools/echtpost.mdx
382
+ # - page: Elevenlabs
383
+ # path: tools/elevenlabs.mdx
384
+ # - page: Entelligence
385
+ # path: tools/entelligence.mdx
386
+ # - page: Epic Games
387
+ # path: tools/epic_games.mdx
388
+ # - page: Eventbrite
389
+ # path: tools/eventbrite.mdx
390
+ # - page: Exa
391
+ # path: tools/exa.mdx
392
+ # - page: Exist
393
+ # path: tools/exist.mdx
394
+ # - page: Facebook
395
+ # path: tools/facebook.mdx
396
+ # - page: Factorial
397
+ # path: tools/factorial.mdx
398
+ # - page: Figma
399
+ # path: tools/figma.mdx
400
+ # - page: Finage
401
+ # path: tools/finage.mdx
402
+ # - page: Firecrawl
403
+ # path: tools/firecrawl.mdx
404
+ # - page: Fireflies
405
+ # path: tools/fireflies.mdx
406
+ # - page: Fitbit
407
+ # path: tools/fitbit.mdx
408
+ # - page: Flutterwave
409
+ # path: tools/flutterwave.mdx
410
+ # - page: Fomo
411
+ # path: tools/fomo.mdx
412
+ # - page: Formcarry
413
+ # path: tools/formcarry.mdx
414
+ # - page: Formsite
415
+ # path: tools/formsite.mdx
416
+ # - page: Foursquare
417
+ # path: tools/foursquare.mdx
418
+ # - page: Freshbooks
419
+ # path: tools/freshbooks.mdx
420
+ # - page: Freshdesk
421
+ # path: tools/freshdesk.mdx
422
+ # - page: Front
423
+ # path: tools/front.mdx
424
+ # - page: Github
425
+ # path: tools/github.mdx
426
+ # - page: Gmail
427
+ # path: tools/gmail.mdx
428
+ # - page: Go To Webinar
429
+ # path: tools/go_to_webinar.mdx
430
+ # - page: Gong
431
+ # path: tools/gong.mdx
432
+ # - page: Google Analytics
433
+ # path: tools/google_analytics.mdx
434
+ # - page: Google Maps
435
+ # path: tools/google_maps.mdx
436
+ # - page: Googleads
437
+ # path: tools/googleads.mdx
438
+ # - page: Googlebigquery
439
+ # path: tools/googlebigquery.mdx
440
+ # - page: Googlecalendar
441
+ # path: tools/googlecalendar.mdx
442
+ # - page: Googledocs
443
+ # path: tools/googledocs.mdx
444
+ # - page: Googledrive
445
+ # path: tools/googledrive.mdx
446
+ # - page: Googlemeet
447
+ # path: tools/googlemeet.mdx
448
+ # - page: Googlephotos
449
+ # path: tools/googlephotos.mdx
450
+ # - page: Googlesheets
451
+ # path: tools/googlesheets.mdx
452
+ # - page: Googlesuper
453
+ # path: tools/googlesuper.mdx
454
+ # - page: Googletasks
455
+ # path: tools/googletasks.mdx
456
+ # - page: Gorgias
457
+ # path: tools/gorgias.mdx
458
+ # - page: Gumroad
459
+ # path: tools/gumroad.mdx
460
+ # - page: Guru
461
+ # path: tools/guru.mdx
462
+ # - page: Hackernews
463
+ # path: tools/hackernews.mdx
464
+ # - page: Hackerrank Work
465
+ # path: tools/hackerrank_work.mdx
466
+ # - page: Harvest
467
+ # path: tools/harvest.mdx
468
+ # - page: Helcim
469
+ # path: tools/helcim.mdx
470
+ # - page: Heygen
471
+ # path: tools/heygen.mdx
472
+ # - page: Highlevel
473
+ # path: tools/highlevel.mdx
474
+ # - page: Hubspot
475
+ # path: tools/hubspot.mdx
476
+ # - page: Humanloop
477
+ # path: tools/humanloop.mdx
478
+ # - page: Icims Talent Cloud
479
+ # path: tools/icims_talent_cloud.mdx
480
+ # - page: Idea Scale
481
+ # path: tools/idea_scale.mdx
482
+ # - page: Intercom
483
+ # path: tools/intercom.mdx
484
+ # - page: Interzoid
485
+ # path: tools/interzoid.mdx
486
+ # - page: Jira
487
+ # path: tools/jira.mdx
488
+ # - page: Junglescout
489
+ # path: tools/junglescout.mdx
490
+ # - page: Keap
491
+ # path: tools/keap.mdx
492
+ # - page: Klaviyo
493
+ # path: tools/klaviyo.mdx
494
+ # - page: Klipfolio
495
+ # path: tools/klipfolio.mdx
496
+ # - page: Kommo
497
+ # path: tools/kommo.mdx
498
+ # - page: Lastpass
499
+ # path: tools/lastpass.mdx
500
+ # - page: Launch Darkly
501
+ # path: tools/launch_darkly.mdx
502
+ # - page: Lever
503
+ # path: tools/lever.mdx
504
+ # - page: Lever Sandbox
505
+ # path: tools/lever_sandbox.mdx
506
+ # - page: Lexoffice
507
+ # path: tools/lexoffice.mdx
508
+ # - page: Linear
509
+ # path: tools/linear.mdx
510
+ # - page: Linkedin
511
+ # path: tools/linkedin.mdx
512
+ # - page: Linkhut
513
+ # path: tools/linkhut.mdx
514
+ # - page: Linkup
515
+ # path: tools/linkup.mdx
516
+ # - page: Listennotes
517
+ # path: tools/listennotes.mdx
518
+ # - page: Lmnt
519
+ # path: tools/lmnt.mdx
520
+ # - page: Mailchimp
521
+ # path: tools/mailchimp.mdx
522
+ # - page: Mailerlite
523
+ # path: tools/mailerlite.mdx
524
+ # - page: Maintainx
525
+ # path: tools/maintainx.mdx
526
+ # - page: Mboum
527
+ # path: tools/mboum.mdx
528
+ # - page: Mem0
529
+ # path: tools/mem0.mdx
530
+ # - page: Metaads
531
+ # path: tools/metaads.mdx
532
+ # - page: Metatextai
533
+ # path: tools/metatextai.mdx
534
+ # - page: Microsoft Clarity
535
+ # path: tools/microsoft_clarity.mdx
536
+ # - page: Microsoft Teams
537
+ # path: tools/microsoft_teams.mdx
538
+ # - page: Microsoft Tenant
539
+ # path: tools/microsoft_tenant.mdx
540
+ # - page: Miro
541
+ # path: tools/miro.mdx
542
+ # - page: Mixpanel
543
+ # path: tools/mixpanel.mdx
544
+ # - page: Mocean
545
+ # path: tools/mocean.mdx
546
+ # - page: Monday
547
+ # path: tools/monday.mdx
548
+ # - page: Mopinion
549
+ # path: tools/mopinion.mdx
550
+ # - page: More Trees
551
+ # path: tools/more_trees.mdx
552
+ # - page: Moxie
553
+ # path: tools/moxie.mdx
554
+ # - page: Moz
555
+ # path: tools/moz.mdx
556
+ # - page: Mural
557
+ # path: tools/mural.mdx
558
+ # - page: Ncscale
559
+ # path: tools/ncscale.mdx
560
+ # - page: Neon
561
+ # path: tools/neon.mdx
562
+ # - page: Netsuite
563
+ # path: tools/netsuite.mdx
564
+ # - page: Ngrok
565
+ # path: tools/ngrok.mdx
566
+ # - page: Notion
567
+ # path: tools/notion.mdx
568
+ # - page: Oncehub
569
+ # path: tools/oncehub.mdx
570
+ # - page: One Drive
571
+ # path: tools/one_drive.mdx
572
+ # - page: Onepage
573
+ # path: tools/onepage.mdx
574
+ # - page: Open Sea
575
+ # path: tools/open_sea.mdx
576
+ # - page: Outlook
577
+ # path: tools/outlook.mdx
578
+ # - page: Pagerduty
579
+ # path: tools/pagerduty.mdx
580
+ # - page: Pandadoc
581
+ # path: tools/pandadoc.mdx
582
+ # - page: Peopledatalabs
583
+ # path: tools/peopledatalabs.mdx
584
+ # - page: Perplexityai
585
+ # path: tools/perplexityai.mdx
586
+ # - page: Piggy
587
+ # path: tools/piggy.mdx
588
+ # - page: Pipedrive
589
+ # path: tools/pipedrive.mdx
590
+ # - page: Placekey
591
+ # path: tools/placekey.mdx
592
+ # - page: Posthog
593
+ # path: tools/posthog.mdx
594
+ # - page: Precoro
595
+ # path: tools/precoro.mdx
596
+ # - page: Printnode
597
+ # path: tools/printnode.mdx
598
+ # - page: Process Street
599
+ # path: tools/process_street.mdx
600
+ # - page: Productboard
601
+ # path: tools/productboard.mdx
602
+ # - page: Qualaroo
603
+ # path: tools/qualaroo.mdx
604
+ # - page: Quickbooks
605
+ # path: tools/quickbooks.mdx
606
+ # - page: Rafflys
607
+ # path: tools/rafflys.mdx
608
+ # - page: Ramp
609
+ # path: tools/ramp.mdx
610
+ # - page: Ravenseotools
611
+ # path: tools/ravenseotools.mdx
612
+ # - page: Recallai
613
+ # path: tools/recallai.mdx
614
+ # - page: Reddit
615
+ # path: tools/reddit.mdx
616
+ # - page: Resend
617
+ # path: tools/resend.mdx
618
+ # - page: Retellai
619
+ # path: tools/retellai.mdx
620
+ # - page: Ring Central
621
+ # path: tools/ring_central.mdx
622
+ # - page: Rippling
623
+ # path: tools/rippling.mdx
624
+ # - page: Rocket Reach
625
+ # path: tools/rocket_reach.mdx
626
+ # - page: Rocketlane
627
+ # path: tools/rocketlane.mdx
628
+ # - page: Sage
629
+ # path: tools/sage.mdx
630
+ # - page: Salesforce
631
+ # path: tools/salesforce.mdx
632
+ # - page: Screenshotone
633
+ # path: tools/screenshotone.mdx
634
+ # - page: Seismic
635
+ # path: tools/seismic.mdx
636
+ # - page: Semanticscholar
637
+ # path: tools/semanticscholar.mdx
638
+ # - page: Semrush
639
+ # path: tools/semrush.mdx
640
+ # - page: Sendgrid
641
+ # path: tools/sendgrid.mdx
642
+ # - page: Sentry
643
+ # path: tools/sentry.mdx
644
+ # - page: Serpapi
645
+ # path: tools/serpapi.mdx
646
+ # - page: Servicem8
647
+ # path: tools/servicem8.mdx
648
+ # - page: Servicenow
649
+ # path: tools/servicenow.mdx
650
+ # - page: Share Point
651
+ # path: tools/share_point.mdx
652
+ # - page: Shopify
653
+ # path: tools/shopify.mdx
654
+ # - page: Shortcut
655
+ # path: tools/shortcut.mdx
656
+ # - page: Simplesat
657
+ # path: tools/simplesat.mdx
658
+ # - page: Slack
659
+ # path: tools/slack.mdx
660
+ # - page: Slackbot
661
+ # path: tools/slackbot.mdx
662
+ # - page: Smartrecruiters
663
+ # path: tools/smartrecruiters.mdx
664
+ # - page: Smugmug
665
+ # path: tools/smugmug.mdx
666
+ # - page: Snowflake
667
+ # path: tools/snowflake.mdx
668
+ # - page: Square
669
+ # path: tools/square.mdx
670
+ # - page: Stack Exchange
671
+ # path: tools/stack_exchange.mdx
672
+ # - page: Stripe
673
+ # path: tools/stripe.mdx
674
+ # - page: Supabase
675
+ # path: tools/supabase.mdx
676
+ # - page: Survey Monkey
677
+ # path: tools/survey_monkey.mdx
678
+ # - page: Tapform
679
+ # path: tools/tapform.mdx
680
+ # - page: Tavily
681
+ # path: tools/tavily.mdx
682
+ # - page: Terminus
683
+ # path: tools/terminus.mdx
684
+ # - page: Text To Pdf
685
+ # path: tools/text_to_pdf.mdx
686
+ # - page: Textrazor
687
+ # path: tools/textrazor.mdx
688
+ # - page: Timecamp
689
+ # path: tools/timecamp.mdx
690
+ # - page: Timekit
691
+ # path: tools/timekit.mdx
692
+ # - page: Timely
693
+ # path: tools/timely.mdx
694
+ # - page: Tinypng
695
+ # path: tools/tinypng.mdx
696
+ # - page: Tinyurl
697
+ # path: tools/tinyurl.mdx
698
+ # - page: Tisane
699
+ # path: tools/tisane.mdx
700
+ # - page: Todoist
701
+ # path: tools/todoist.mdx
702
+ # - page: Toneden
703
+ # path: tools/toneden.mdx
704
+ # - page: Trello
705
+ # path: tools/trello.mdx
706
+ # - page: Twitch
707
+ # path: tools/twitch.mdx
708
+ # - page: Twitter
709
+ # path: tools/twitter.mdx
710
+ # - page: Twitter Media
711
+ # path: tools/twitter_media.mdx
712
+ # - page: Typefully
713
+ # path: tools/typefully.mdx
714
+ # - page: Venly
715
+ # path: tools/venly.mdx
716
+ # - page: Vero
717
+ # path: tools/vero.mdx
718
+ # - page: Visme
719
+ # path: tools/visme.mdx
720
+ # - page: Waboxapp
721
+ # path: tools/waboxapp.mdx
722
+ # - page: Wakatime
723
+ # path: tools/wakatime.mdx
724
+ # - page: Wave Accounting
725
+ # path: tools/wave_accounting.mdx
726
+ # - page: Weathermap
727
+ # path: tools/weathermap.mdx
728
+ # - page: Webex
729
+ # path: tools/webex.mdx
730
+ # - page: Webflow
731
+ # path: tools/webflow.mdx
732
+ # - page: Whatsapp
733
+ # path: tools/whatsapp.mdx
734
+ # - page: Wiz
735
+ # path: tools/wiz.mdx
736
+ # - page: Workiom
737
+ # path: tools/workiom.mdx
738
+ # - page: Wrike
739
+ # path: tools/wrike.mdx
740
+ # - page: Xero
741
+ # path: tools/xero.mdx
742
+ # - page: Yandex
743
+ # path: tools/yandex.mdx
744
+ # - page: Ynab
745
+ # path: tools/ynab.mdx
746
+ # - page: Yousearch
747
+ # path: tools/yousearch.mdx
748
+ # - page: Youtube
749
+ # path: tools/youtube.mdx
750
+ # - page: Zendesk
751
+ # path: tools/zendesk.mdx
752
+ # - page: Zenrows
753
+ # path: tools/zenrows.mdx
754
+ # - page: Zenserp
755
+ # path: tools/zenserp.mdx
756
+ # - page: Zoho
757
+ # path: tools/zoho.mdx
758
+ # - page: Zoho Bigin
759
+ # path: tools/zoho_bigin.mdx
760
+ # - page: Zoho Books
761
+ # path: tools/zoho_books.mdx
762
+ # - page: Zoho Desk
763
+ # path: tools/zoho_desk.mdx
764
+ # - page: Zoho Inventory
765
+ # path: tools/zoho_inventory.mdx
766
+ # - page: Zoho Invoice
767
+ # path: tools/zoho_invoice.mdx
768
+ # - page: Zoho Mail
769
+ # path: tools/zoho_mail.mdx
770
+ # - page: Zoom
771
+ # path: tools/zoom.mdx
772
+ # - page: Zoominfo
773
+ # path: tools/zoominfo.mdx
fern/v3.yml
new
+729
@@ -0,0 +1,729 @@
1
+tabs:
2
+ docs:
3
+ display-name: Guides
4
+ icon: book
5
+ slug: docs
6
+ sdk-reference:
7
+ display-name: SDK Reference
8
+ href: https://deepwiki.com/ComposioHQ/composio
9
+ icon: code
10
+ api-reference:
11
+ display-name: API Reference
12
+ icon: server
13
+ skip-slug: true
14
+ tools:
15
+ display-name: Tools
16
+ icon: tools
17
+ skip-slug: true
18
+ providers:
19
+ display-name: Providers
20
+ icon: code
21
+ skip-slug: true
22
+ examples:
23
+ display-name: Examples
24
+ icon: running
25
+ skip-slug: true
26
+ changelog:
27
+ display-name: Changelog
28
+ icon: history
29
+ changelog: ./pages/v3/changelog
30
+
31
+# landing-page:
32
+# page: Composio Documentation
33
+# path: pages/index.mdx
34
+
35
+navigation:
36
+ - tab: docs
37
+ layout:
38
+ - section: Get Started
39
+ icon: rocket
40
+ skip-slug: true
41
+ contents:
42
+ - page: Welcome
43
+ path: pages/v3/get-started/welcome.mdx
44
+ slug: welcome
45
+ - page: Quickstart
46
+ path: pages/v3/get-started/quickstart.mdx
47
+ slug: quickstart
48
+ - page: Providers
49
+ path: pages/v3/get-started/providers.mdx
50
+ slug: providers
51
+ - section: Tools
52
+ icon: tools
53
+ skip-slug: true
54
+ contents:
55
+ - page: Executing Tools
56
+ path: pages/v3/tool-calling/executing-tools.mdx
57
+ slug: executing-tools
58
+ - page: Authenticating Tools
59
+ path: pages/v3/tool-calling/authenticating-tools.mdx
60
+ slug: authenticating-tools
61
+ - page: Fetch and Filter Tools
62
+ path: pages/v3/tool-calling/fetching-tools.mdx
63
+ slug: fetching-tools
64
+ - section: Modifiers
65
+ slug: modifiers
66
+ contents:
67
+ - page: Schema Modifiers
68
+ path: pages/v3/tool-calling/schema-modifiers.mdx
69
+ slug: schema-modifiers
70
+ - page: Before Tool Execution
71
+ path: pages/v3/tool-calling/before-execution-modifiers.mdx
72
+ slug: before-execution
73
+ - page: After Tool Execution
74
+ path: pages/v3/tool-calling/after-execution-modifiers.mdx
75
+ slug: after-execution
76
+ - page: Extending Toolkits with your own tools
77
+ path: pages/v3/tool-calling/extending-toolkits.mdx
78
+ slug: extending-toolkits
79
+ - section: Authentication
80
+ icon: lock
81
+ skip-slug: true
82
+ contents:
83
+ - page: Custom Auth Configs
84
+ path: pages/v3/authentication/custom-auth-configs.mdx
85
+ slug: custom-auth-configs
86
+ - page: Programmatic Auth Configs
87
+ path: pages/v3/authentication/programmatic-auth-configs.mdx
88
+ slug: programmatic-auth-configs
89
+ - page: Custom Auth Parameters
90
+ path: pages/v3/authentication/custom-auth-params.mdx
91
+ slug: custom-auth-params
92
+ - section: Triggers
93
+ icon: bolt
94
+ skip-slug: true
95
+ contents:
96
+ - page: Using Triggers
97
+ path: pages/v3/triggers/using-triggers.mdx
98
+ slug: using-triggers
99
+ - section: MCP
100
+ icon: server
101
+ skip-slug: true
102
+ contents:
103
+ - page: Introduction
104
+ path: pages/v3/mcp/introduction.mdx
105
+ slug: mcp-introduction
106
+ - tab: examples
107
+ layout:
108
+ - section: Examples
109
+ icon: utensils
110
+ contents:
111
+ - page: Full Stack Chat App
112
+ path: pages/v3/examples/vercel-composio.mdx
113
+ - page: Gmail Filterer
114
+ path: pages/v3/examples/gmail-filterer.mdx
115
+ - tab: providers
116
+ layout:
117
+ - section: Providers
118
+ icon: code
119
+ contents:
120
+ - page: OpenAI Provider
121
+ path: pages/v3/providers/openai.mdx
122
+ - page: Anthropic Provider
123
+ path: pages/v3/providers/anthropic.mdx
124
+ - page: LangGraph Provider
125
+ path: pages/v3/providers/langgraph.mdx
126
+ - page: CrewAI Provider
127
+ path: pages/v3/providers/crewai.mdx
128
+ - page: Vercel AI SDK Provider
129
+ path: pages/v3/providers/vercel.mdx
130
+ - page: Google ADK Provider
131
+ path: pages/v3/providers/google-adk.mdx
132
+ - page: OpenAI Agents Provider
133
+ path: pages/v3/providers/openai-agents.mdx
134
+ - page: Mastra Provider
135
+ path: pages/v3/providers/mastra.mdx
136
+ - page: Custom Provider
137
+ path: pages/v3/providers/custom.mdx
138
+ - tab: tools
139
+ layout:
140
+ - section: Tools
141
+ contents:
142
+ - page: Introduction
143
+ path: pages/tools/introduction.mdx
144
+ - page: Ably
145
+ path: pages/tools/ably.mdx
146
+ - page: Accelo
147
+ path: pages/tools/accelo.mdx
148
+ # - page: Acculynx
149
+ # path: pages/tools/acculynx.mdx
150
+ # - page: Active Campaign
151
+ # path: pages/tools/active_campaign.mdx
152
+ # - page: Adobe
153
+ # path: pages/tools/adobe.mdx
154
+ # - page: Aero Workflow
155
+ # path: pages/tools/aero_workflow.mdx
156
+ # - page: Affinity
157
+ # path: pages/tools/affinity.mdx
158
+ # - page: Agencyzoom
159
+ # path: pages/tools/agencyzoom.mdx
160
+ # - page: Ahrefs
161
+ # path: pages/tools/ahrefs.mdx
162
+ # - page: Airtable
163
+ # path: pages/tools/airtable.mdx
164
+ # - page: Alchemy
165
+ # path: pages/tools/alchemy.mdx
166
+ # - page: Altoviz
167
+ # path: pages/tools/altoviz.mdx
168
+ # - page: Amazon
169
+ # path: pages/tools/amazon.mdx
170
+ # - page: Amcards
171
+ # path: pages/tools/amcards.mdx
172
+ # - page: Amplitude
173
+ # path: pages/tools/amplitude.mdx
174
+ # - page: Apaleo
175
+ # path: pages/tools/apaleo.mdx
176
+ # - page: Apollo
177
+ # path: pages/tools/apollo.mdx
178
+ # - page: Appdrag
179
+ # path: pages/tools/appdrag.mdx
180
+ # - page: Appsflyer
181
+ # path: pages/tools/appsflyer.mdx
182
+ # - page: Asana
183
+ # path: pages/tools/asana.mdx
184
+ # - page: Ashby
185
+ # path: pages/tools/ashby.mdx
186
+ # - page: Atlassian
187
+ # path: pages/tools/atlassian.mdx
188
+ # - page: Attio
189
+ # path: pages/tools/attio.mdx
190
+ # - page: Auth0
191
+ # path: pages/tools/auth0.mdx
192
+ # - page: Axonaut
193
+ # path: pages/tools/axonaut.mdx
194
+ # - page: Bamboohr
195
+ # path: pages/tools/bamboohr.mdx
196
+ # - page: Bannerbear
197
+ # path: pages/tools/bannerbear.mdx
198
+ # - page: Baserow
199
+ # path: pages/tools/baserow.mdx
200
+ # - page: Battlenet
201
+ # path: pages/tools/battlenet.mdx
202
+ # - page: Beeminder
203
+ # path: pages/tools/beeminder.mdx
204
+ # - page: Bitbucket
205
+ # path: pages/tools/bitbucket.mdx
206
+ # - page: Bitwarden
207
+ # path: pages/tools/bitwarden.mdx
208
+ # - page: Blackbaud
209
+ # path: pages/tools/blackbaud.mdx
210
+ # - page: Blackboard
211
+ # path: pages/tools/blackboard.mdx
212
+ # - page: Boldsign
213
+ # path: pages/tools/boldsign.mdx
214
+ # - page: Bolna
215
+ # path: pages/tools/bolna.mdx
216
+ # - page: Borneo
217
+ # path: pages/tools/borneo.mdx
218
+ # - page: Botbaba
219
+ # path: pages/tools/botbaba.mdx
220
+ # - page: Box
221
+ # path: pages/tools/box.mdx
222
+ # - page: Braintree
223
+ # path: pages/tools/braintree.mdx
224
+ # - page: Brandfetch
225
+ # path: pages/tools/brandfetch.mdx
226
+ # - page: Breezy Hr
227
+ # path: pages/tools/breezy_hr.mdx
228
+ # - page: Brevo
229
+ # path: pages/tools/brevo.mdx
230
+ # - page: Brex
231
+ # path: pages/tools/brex.mdx
232
+ # - page: Brex Staging
233
+ # path: pages/tools/brex_staging.mdx
234
+ # - page: Brightpearl
235
+ # path: pages/tools/brightpearl.mdx
236
+ # - page: Browseai
237
+ # path: pages/tools/browseai.mdx
238
+ # - page: Browserbase Tool
239
+ # path: pages/tools/browserbase_tool.mdx
240
+ # - page: Browserhub
241
+ # path: pages/tools/browserhub.mdx
242
+ # - page: Bubble
243
+ # path: pages/tools/bubble.mdx
244
+ # - page: Cal
245
+ # path: pages/tools/cal.mdx
246
+ # - page: Calendly
247
+ # path: pages/tools/calendly.mdx
248
+ # - page: Canva
249
+ # path: pages/tools/canva.mdx
250
+ # - page: Canvas
251
+ # path: pages/tools/canvas.mdx
252
+ # - page: Chatwork
253
+ # path: pages/tools/chatwork.mdx
254
+ # - page: Chmeetings
255
+ # path: pages/tools/chmeetings.mdx
256
+ # - page: Clickup
257
+ # path: pages/tools/clickup.mdx
258
+ # - page: Close
259
+ # path: pages/tools/close.mdx
260
+ # - page: Cloudflare
261
+ # path: pages/tools/cloudflare.mdx
262
+ # - page: Coda
263
+ # path: pages/tools/coda.mdx
264
+ # - page: Codeinterpreter
265
+ # path: pages/tools/codeinterpreter.mdx
266
+ # - page: Coinbase
267
+ # path: pages/tools/coinbase.mdx
268
+ # - page: Coinmarketcal
269
+ # path: pages/tools/coinmarketcal.mdx
270
+ # - page: Composio
271
+ # path: pages/tools/composio.mdx
272
+ # - page: Composio Search
273
+ # path: pages/tools/composio_search.mdx
274
+ # - page: Confluence
275
+ # path: pages/tools/confluence.mdx
276
+ # - page: Contentful
277
+ # path: pages/tools/contentful.mdx
278
+ # - page: Crustdata
279
+ # path: pages/tools/crustdata.mdx
280
+ # - page: Customer Io
281
+ # path: pages/tools/customer_io.mdx
282
+ # - page: D2Lbrightspace
283
+ # path: pages/tools/d2lbrightspace.mdx
284
+ # - page: Dailybot
285
+ # path: pages/tools/dailybot.mdx
286
+ # - page: Datadog
287
+ # path: pages/tools/datadog.mdx
288
+ # - page: Datagma
289
+ # path: pages/tools/datagma.mdx
290
+ # - page: Datarobot
291
+ # path: pages/tools/datarobot.mdx
292
+ # - page: Deel
293
+ # path: pages/tools/deel.mdx
294
+ # - page: Demio
295
+ # path: pages/tools/demio.mdx
296
+ # - page: Dialpad
297
+ # path: pages/tools/dialpad.mdx
298
+ # - page: Digicert
299
+ # path: pages/tools/digicert.mdx
300
+ # - page: Discord
301
+ # path: pages/tools/discord.mdx
302
+ # - page: Discordbot
303
+ # path: pages/tools/discordbot.mdx
304
+ # - page: Docmosis
305
+ # path: pages/tools/docmosis.mdx
306
+ # - page: Docusign
307
+ # path: pages/tools/docusign.mdx
308
+ # - page: Dropbox
309
+ # path: pages/tools/dropbox.mdx
310
+ # - page: Dropbox Sign
311
+ # path: pages/tools/dropbox_sign.mdx
312
+ # - page: Dynamics365
313
+ # path: pages/tools/dynamics365.mdx
314
+ # - page: Echtpost
315
+ # path: pages/tools/echtpost.mdx
316
+ # - page: Elevenlabs
317
+ # path: pages/tools/elevenlabs.mdx
318
+ # - page: Entelligence
319
+ # path: pages/tools/entelligence.mdx
320
+ # - page: Epic Games
321
+ # path: pages/tools/epic_games.mdx
322
+ # - page: Eventbrite
323
+ # path: pages/tools/eventbrite.mdx
324
+ # - page: Exa
325
+ # path: pages/tools/exa.mdx
326
+ # - page: Exist
327
+ # path: pages/tools/exist.mdx
328
+ # - page: Facebook
329
+ # path: pages/tools/facebook.mdx
330
+ # - page: Factorial
331
+ # path: pages/tools/factorial.mdx
332
+ # - page: Figma
333
+ # path: pages/tools/figma.mdx
334
+ # - page: Finage
335
+ # path: pages/tools/finage.mdx
336
+ # - page: Firecrawl
337
+ # path: pages/tools/firecrawl.mdx
338
+ # - page: Fireflies
339
+ # path: pages/tools/fireflies.mdx
340
+ # - page: Fitbit
341
+ # path: pages/tools/fitbit.mdx
342
+ # - page: Flutterwave
343
+ # path: pages/tools/flutterwave.mdx
344
+ # - page: Fomo
345
+ # path: pages/tools/fomo.mdx
346
+ # - page: Formcarry
347
+ # path: pages/tools/formcarry.mdx
348
+ # - page: Formsite
349
+ # path: pages/tools/formsite.mdx
350
+ # - page: Foursquare
351
+ # path: pages/tools/foursquare.mdx
352
+ # - page: Freshbooks
353
+ # path: pages/tools/freshbooks.mdx
354
+ # - page: Freshdesk
355
+ # path: pages/tools/freshdesk.mdx
356
+ # - page: Front
357
+ # path: pages/tools/front.mdx
358
+ # - page: Github
359
+ # path: pages/tools/github.mdx
360
+ # - page: Gmail
361
+ # path: pages/tools/gmail.mdx
362
+ # - page: Go To Webinar
363
+ # path: pages/tools/go_to_webinar.mdx
364
+ # - page: Gong
365
+ # path: pages/tools/gong.mdx
366
+ # - page: Google Analytics
367
+ # path: pages/tools/google_analytics.mdx
368
+ # - page: Google Maps
369
+ # path: pages/tools/google_maps.mdx
370
+ # - page: Googleads
371
+ # path: pages/tools/googleads.mdx
372
+ # - page: Googlebigquery
373
+ # path: pages/tools/googlebigquery.mdx
374
+ # - page: Googlecalendar
375
+ # path: pages/tools/googlecalendar.mdx
376
+ # - page: Googledocs
377
+ # path: pages/tools/googledocs.mdx
378
+ # - page: Googledrive
379
+ # path: pages/tools/googledrive.mdx
380
+ # - page: Googlemeet
381
+ # path: pages/tools/googlemeet.mdx
382
+ # - page: Googlephotos
383
+ # path: pages/tools/googlephotos.mdx
384
+ # - page: Googlesheets
385
+ # path: pages/tools/googlesheets.mdx
386
+ # - page: Googlesuper
387
+ # path: pages/tools/googlesuper.mdx
388
+ # - page: Googletasks
389
+ # path: pages/tools/googletasks.mdx
390
+ # - page: Gorgias
391
+ # path: pages/tools/gorgias.mdx
392
+ # - page: Gumroad
393
+ # path: pages/tools/gumroad.mdx
394
+ # - page: Guru
395
+ # path: pages/tools/guru.mdx
396
+ # - page: Hackernews
397
+ # path: pages/tools/hackernews.mdx
398
+ # - page: Hackerrank Work
399
+ # path: pages/tools/hackerrank_work.mdx
400
+ # - page: Harvest
401
+ # path: pages/tools/harvest.mdx
402
+ # - page: Helcim
403
+ # path: pages/tools/helcim.mdx
404
+ # - page: Heygen
405
+ # path: pages/tools/heygen.mdx
406
+ # - page: Highlevel
407
+ # path: pages/tools/highlevel.mdx
408
+ # - page: Hubspot
409
+ # path: pages/tools/hubspot.mdx
410
+ # - page: Humanloop
411
+ # path: pages/tools/humanloop.mdx
412
+ # - page: Icims Talent Cloud
413
+ # path: pages/tools/icims_talent_cloud.mdx
414
+ # - page: Idea Scale
415
+ # path: pages/tools/idea_scale.mdx
416
+ # - page: Intercom
417
+ # path: pages/tools/intercom.mdx
418
+ # - page: Interzoid
419
+ # path: pages/tools/interzoid.mdx
420
+ # - page: Jira
421
+ # path: pages/tools/jira.mdx
422
+ # - page: Junglescout
423
+ # path: pages/tools/junglescout.mdx
424
+ # - page: Keap
425
+ # path: pages/tools/keap.mdx
426
+ # - page: Klaviyo
427
+ # path: pages/tools/klaviyo.mdx
428
+ # - page: Klipfolio
429
+ # path: pages/tools/klipfolio.mdx
430
+ # - page: Kommo
431
+ # path: pages/tools/kommo.mdx
432
+ # - page: Lastpass
433
+ # path: pages/tools/lastpass.mdx
434
+ # - page: Launch Darkly
435
+ # path: pages/tools/launch_darkly.mdx
436
+ # - page: Lever
437
+ # path: pages/tools/lever.mdx
438
+ # - page: Lever Sandbox
439
+ # path: pages/tools/lever_sandbox.mdx
440
+ # - page: Lexoffice
441
+ # path: pages/tools/lexoffice.mdx
442
+ # - page: Linear
443
+ # path: pages/tools/linear.mdx
444
+ # - page: Linkedin
445
+ # path: pages/tools/linkedin.mdx
446
+ # - page: Linkhut
447
+ # path: pages/tools/linkhut.mdx
448
+ # - page: Linkup
449
+ # path: pages/tools/linkup.mdx
450
+ # - page: Listennotes
451
+ # path: pages/tools/listennotes.mdx
452
+ # - page: Lmnt
453
+ # path: pages/tools/lmnt.mdx
454
+ # - page: Mailchimp
455
+ # path: pages/tools/mailchimp.mdx
456
+ # - page: Mailerlite
457
+ # path: pages/tools/mailerlite.mdx
458
+ # - page: Maintainx
459
+ # path: pages/tools/maintainx.mdx
460
+ # - page: Mboum
461
+ # path: pages/tools/mboum.mdx
462
+ # - page: Mem0
463
+ # path: pages/tools/mem0.mdx
464
+ # - page: Metaads
465
+ # path: pages/tools/metaads.mdx
466
+ # - page: Metatextai
467
+ # path: pages/tools/metatextai.mdx
468
+ # - page: Microsoft Clarity
469
+ # path: pages/tools/microsoft_clarity.mdx
470
+ # - page: Microsoft Teams
471
+ # path: pages/tools/microsoft_teams.mdx
472
+ # - page: Microsoft Tenant
473
+ # path: pages/tools/microsoft_tenant.mdx
474
+ # - page: Miro
475
+ # path: pages/tools/miro.mdx
476
+ # - page: Mixpanel
477
+ # path: pages/tools/mixpanel.mdx
478
+ # - page: Mocean
479
+ # path: pages/tools/mocean.mdx
480
+ # - page: Monday
481
+ # path: pages/tools/monday.mdx
482
+ # - page: Mopinion
483
+ # path: pages/tools/mopinion.mdx
484
+ # - page: More Trees
485
+ # path: pages/tools/more_trees.mdx
486
+ # - page: Moxie
487
+ # path: pages/tools/moxie.mdx
488
+ # - page: Moz
489
+ # path: pages/tools/moz.mdx
490
+ # - page: Mural
491
+ # path: pages/tools/mural.mdx
492
+ # - page: Ncscale
493
+ # path: pages/tools/ncscale.mdx
494
+ # - page: Neon
495
+ # path: pages/tools/neon.mdx
496
+ # - page: Netsuite
497
+ # path: pages/tools/netsuite.mdx
498
+ # - page: Ngrok
499
+ # path: pages/tools/ngrok.mdx
500
+ # - page: Notion
501
+ # path: pages/tools/notion.mdx
502
+ # - page: Oncehub
503
+ # path: pages/tools/oncehub.mdx
504
+ # - page: One Drive
505
+ # path: pages/tools/one_drive.mdx
506
+ # - page: Onepage
507
+ # path: pages/tools/onepage.mdx
508
+ # - page: Open Sea
509
+ # path: pages/tools/open_sea.mdx
510
+ # - page: Outlook
511
+ # path: pages/tools/outlook.mdx
512
+ # - page: Pagerduty
513
+ # path: pages/tools/pagerduty.mdx
514
+ # - page: Pandadoc
515
+ # path: pages/tools/pandadoc.mdx
516
+ # - page: Peopledatalabs
517
+ # path: pages/tools/peopledatalabs.mdx
518
+ # - page: Perplexityai
519
+ # path: pages/tools/perplexityai.mdx
520
+ # - page: Piggy
521
+ # path: pages/tools/piggy.mdx
522
+ # - page: Pipedrive
523
+ # path: pages/tools/pipedrive.mdx
524
+ # - page: Placekey
525
+ # path: pages/tools/placekey.mdx
526
+ # - page: Posthog
527
+ # path: pages/tools/posthog.mdx
528
+ # - page: Precoro
529
+ # path: pages/tools/precoro.mdx
530
+ # - page: Printnode
531
+ # path: pages/tools/printnode.mdx
532
+ # - page: Process Street
533
+ # path: pages/tools/process_street.mdx
534
+ # - page: Productboard
535
+ # path: pages/tools/productboard.mdx
536
+ # - page: Qualaroo
537
+ # path: pages/tools/qualaroo.mdx
538
+ # - page: Quickbooks
539
+ # path: pages/tools/quickbooks.mdx
540
+ # - page: Rafflys
541
+ # path: pages/tools/rafflys.mdx
542
+ # - page: Ramp
543
+ # path: pages/tools/ramp.mdx
544
+ # - page: Ravenseotools
545
+ # path: pages/tools/ravenseotools.mdx
546
+ # - page: Recallai
547
+ # path: pages/tools/recallai.mdx
548
+ # - page: Reddit
549
+ # path: pages/tools/reddit.mdx
550
+ # - page: Resend
551
+ # path: pages/tools/resend.mdx
552
+ # - page: Retellai
553
+ # path: pages/tools/retellai.mdx
554
+ # - page: Ring Central
555
+ # path: pages/tools/ring_central.mdx
556
+ # - page: Rippling
557
+ # path: pages/tools/rippling.mdx
558
+ # - page: Rocket Reach
559
+ # path: pages/tools/rocket_reach.mdx
560
+ # - page: Rocketlane
561
+ # path: pages/tools/rocketlane.mdx
562
+ # - page: Sage
563
+ # path: pages/tools/sage.mdx
564
+ # - page: Salesforce
565
+ # path: pages/tools/salesforce.mdx
566
+ # - page: Screenshotone
567
+ # path: pages/tools/screenshotone.mdx
568
+ # - page: Seismic
569
+ # path: pages/tools/seismic.mdx
570
+ # - page: Semanticscholar
571
+ # path: pages/tools/semanticscholar.mdx
572
+ # - page: Semrush
573
+ # path: pages/tools/semrush.mdx
574
+ # - page: Sendgrid
575
+ # path: pages/tools/sendgrid.mdx
576
+ # - page: Sentry
577
+ # path: pages/tools/sentry.mdx
578
+ # - page: Serpapi
579
+ # path: pages/tools/serpapi.mdx
580
+ # - page: Servicem8
581
+ # path: pages/tools/servicem8.mdx
582
+ # - page: Servicenow
583
+ # path: pages/tools/servicenow.mdx
584
+ # - page: Share Point
585
+ # path: pages/tools/share_point.mdx
586
+ # - page: Shopify
587
+ # path: pages/tools/shopify.mdx
588
+ # - page: Shortcut
589
+ # path: pages/tools/shortcut.mdx
590
+ # - page: Simplesat
591
+ # path: pages/tools/simplesat.mdx
592
+ # - page: Slack
593
+ # path: pages/tools/slack.mdx
594
+ # - page: Slackbot
595
+ # path: pages/tools/slackbot.mdx
596
+ # - page: Smartrecruiters
597
+ # path: pages/tools/smartrecruiters.mdx
598
+ # - page: Smugmug
599
+ # path: pages/tools/smugmug.mdx
600
+ # - page: Snowflake
601
+ # path: pages/tools/snowflake.mdx
602
+ # - page: Square
603
+ # path: pages/tools/square.mdx
604
+ # - page: Stack Exchange
605
+ # path: pages/tools/stack_exchange.mdx
606
+ # - page: Stripe
607
+ # path: pages/tools/stripe.mdx
608
+ # - page: Supabase
609
+ # path: pages/tools/supabase.mdx
610
+ # - page: Survey Monkey
611
+ # path: pages/tools/survey_monkey.mdx
612
+ # - page: Tapform
613
+ # path: pages/tools/tapform.mdx
614
+ # - page: Tavily
615
+ # path: pages/tools/tavily.mdx
616
+ # - page: Terminus
617
+ # path: pages/tools/terminus.mdx
618
+ # - page: Text To Pdf
619
+ # path: pages/tools/text_to_pdf.mdx
620
+ # - page: Textrazor
621
+ # path: pages/tools/textrazor.mdx
622
+ # - page: Timecamp
623
+ # path: pages/tools/timecamp.mdx
624
+ # - page: Timekit
625
+ # path: pages/tools/timekit.mdx
626
+ # - page: Timely
627
+ # path: pages/tools/timely.mdx
628
+ # - page: Tinypng
629
+ # path: pages/tools/tinypng.mdx
630
+ # - page: Tinyurl
631
+ # path: pages/tools/tinyurl.mdx
632
+ # - page: Tisane
633
+ # path: pages/tools/tisane.mdx
634
+ # - page: Todoist
635
+ # path: pages/tools/todoist.mdx
636
+ # - page: Toneden
637
+ # path: pages/tools/toneden.mdx
638
+ # - page: Trello
639
+ # path: pages/tools/trello.mdx
640
+ # - page: Twitch
641
+ # path: pages/tools/twitch.mdx
642
+ # - page: Twitter
643
+ # path: pages/tools/twitter.mdx
644
+ # - page: Twitter Media
645
+ # path: pages/tools/twitter_media.mdx
646
+ # - page: Typefully
647
+ # path: pages/tools/typefully.mdx
648
+ # - page: Venly
649
+ # path: pages/tools/venly.mdx
650
+ # - page: Vero
651
+ # path: pages/tools/vero.mdx
652
+ # - page: Visme
653
+ # path: pages/tools/visme.mdx
654
+ # - page: Waboxapp
655
+ # path: pages/tools/waboxapp.mdx
656
+ # - page: Wakatime
657
+ # path: pages/tools/wakatime.mdx
658
+ # - page: Wave Accounting
659
+ # path: pages/tools/wave_accounting.mdx
660
+ # - page: Weathermap
661
+ # path: pages/tools/weathermap.mdx
662
+ # - page: Webex
663
+ # path: pages/tools/webex.mdx
664
+ # - page: Webflow
665
+ # path: pages/tools/webflow.mdx
666
+ # - page: Whatsapp
667
+ # path: pages/tools/whatsapp.mdx
668
+ # - page: Wiz
669
+ # path: pages/tools/wiz.mdx
670
+ # - page: Workiom
671
+ # path: pages/tools/workiom.mdx
672
+ # - page: Wrike
673
+ # path: pages/tools/wrike.mdx
674
+ # - page: Xero
675
+ # path: pages/tools/xero.mdx
676
+ # - page: Yandex
677
+ # path: pages/tools/yandex.mdx
678
+ # - page: Ynab
679
+ # path: pages/tools/ynab.mdx
680
+ # - page: Yousearch
681
+ # path: pages/tools/yousearch.mdx
682
+ # - page: Youtube
683
+ # path: pages/tools/youtube.mdx
684
+ # - page: Zendesk
685
+ # path: pages/tools/zendesk.mdx
686
+ # - page: Zenrows
687
+ # path: pages/tools/zenrows.mdx
688
+ # - page: Zenserp
689
+ # path: pages/tools/zenserp.mdx
690
+ # - page: Zoho
691
+ # path: pages/tools/zoho.mdx
692
+ # - page: Zoho Bigin
693
+ # path: pages/tools/zoho_bigin.mdx
694
+ # - page: Zoho Books
695
+ # path: pages/tools/zoho_books.mdx
696
+ # - page: Zoho Desk
697
+ # path: pages/tools/zoho_desk.mdx
698
+ # - page: Zoho Inventory
699
+ # path: pages/tools/zoho_inventory.mdx
700
+ # - page: Zoho Invoice
701
+ # path: pages/tools/zoho_invoice.mdx
702
+ # - page: Zoho Mail
703
+ # path: pages/tools/zoho_mail.mdx
704
+ # - page: Zoom
705
+ # path: pages/tools/zoom.mdx
706
+ # - page: Zoominfo
707
+ # path: pages/tools/zoominfo.mdx
708
+ - tab: sdk-reference
709
+ layout:
710
+ - section: Python
711
+ icon: python
712
+ contents:
713
+ - page: Python SDK
714
+ path: pages/v3/sdk/python/index.mdx
715
+ - section: TypeScript
716
+ icon: typescript
717
+ contents:
718
+ - page: TypeScript SDK
719
+ path: pages/v3/sdk/typescript/index.mdx
720
+ - tab: api-reference
721
+ layout:
722
+ - section: API Reference
723
+ contents:
724
+ - api: v3
725
+ api-name: v3
726
+ skip-slug: true
727
+ paginated: false
728
+ flattened: true
729
+ - tab: changelog
\ No newline at end of file
pnpm-lock.yaml
+301
-337
@@ -37,8 +37,10 @@ catalogs:
37
specifier: ^4.37.0
38
version: 4.37.1
39
zod:
40
- specifier: 3.25.76
41
- version: 3.25.76
40
+ specifier: ^4.1.0
41
+ version: 4.1.12
42
+
43
+pnpmfileChecksum: sha256-qa2FxUigWfUZ2Ug6qlTJxC5QYOXtigTnTBguG0OK50Q=
44
45
importers:
46
@@ -94,7 +96,7 @@ importers:
96
version: 3.2.4(@types/node@22.15.32)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
97
zod:
98
specifier: 'catalog:'
97
- version: 3.25.76
99
+ version: 4.1.12
100
101
fern:
102
dependencies:
@@ -129,9 +131,6 @@ importers:
131
'@composio/openai':
132
specifier: workspace:*
133
version: link:../ts/packages/providers/openai
132
- '@composio/openai-agents':
133
- specifier: workspace:*
134
- version: link:../ts/packages/providers/openai-agents
134
'@composio/vercel':
135
specifier: workspace:*
136
version: link:../ts/packages/providers/vercel
@@ -150,9 +149,6 @@ importers:
149
'@llamaindex/workflow':
150
specifier: ^1.1.24
151
version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.8.0)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.12)
153
- '@openai/agents':
154
- specifier: ^0.2.1
155
- version: 0.2.1(ws@8.18.2)(zod@4.1.12)
152
'@types/convict':
153
specifier: ^6.1.6
154
version: 6.1.6
@@ -173,7 +169,7 @@ importers:
169
version: 5.0.44(zod@4.1.12)
170
composio-core:
171
specifier: ^0.5.39
176
- version: 0.5.39(@ai-sdk/openai@2.0.35(zod@4.1.12))(@cloudflare/workers-types@4.20250917.0)(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@langchain/openai@0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2))(ai@5.0.44(zod@4.1.12))(langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@4.1.12))(ws@8.18.2))(openai@4.104.0(ws@8.18.2)(zod@4.1.12))
172
+ version: 0.5.39(@ai-sdk/openai@2.0.42(zod@4.1.12))(@cloudflare/workers-types@4.20250917.0)(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@langchain/openai@0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2))(ai@5.0.44(zod@4.1.12))(langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@4.1.12))(ws@8.18.2))(openai@4.104.0(ws@8.18.2)(zod@4.1.12))
173
hono:
174
specifier: ^4.7.11
175
version: 4.8.0
@@ -242,16 +238,16 @@ importers:
238
version: link:../../packages/core
239
'@mastra/mcp':
240
specifier: ^0.12.0
245
- version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)
241
+ version: 0.12.0(@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
242
dotenv:
243
specifier: ^16.4.1
244
version: 16.5.0
245
zod:
246
specifier: 'catalog:'
251
- version: 3.25.76
247
+ version: 4.1.12
248
zod-to-json-schema:
253
- specifier: ^3.24.5
254
- version: 3.24.6(zod@3.25.76)
249
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
250
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
251
devDependencies:
252
'@types/bun':
253
specifier: ^1.2.9
@@ -311,7 +307,7 @@ importers:
307
version: 16.5.0
308
zod:
309
specifier: 'catalog:'
314
- version: 3.25.76
310
+ version: 4.1.12
311
devDependencies:
312
'@types/bun':
313
specifier: ^1.2.9
@@ -389,8 +385,8 @@ importers:
385
specifier: ^16.4.1
386
version: 16.5.0
387
zod-to-json-schema:
392
- specifier: ^3.24.5
393
- version: 3.24.5(zod@4.1.12)
388
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
389
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
390
devDependencies:
391
'@types/bun':
392
specifier: ^1.2.9
@@ -462,7 +458,7 @@ importers:
458
dependencies:
459
'@ai-sdk/openai':
460
specifier: ^1.3.16
465
- version: 1.3.22(zod@3.25.76)
461
+ version: 1.3.22(zod@4.1.12)
462
'@composio/core':
463
specifier: workspace:*
464
version: link:../../packages/core
@@ -471,16 +467,16 @@ importers:
467
version: link:../../packages/providers/mastra
468
'@mastra/core':
469
specifier: ^0.16.3
474
- version: 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76)
470
+ version: 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)
471
'@mastra/mcp':
472
specifier: ^0.12.0
477
- version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)
473
+ version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
474
dotenv:
475
specifier: ^16.4.1
476
version: 16.5.0
477
zod:
478
specifier: 'catalog:'
483
- version: 3.25.76
479
+ version: 4.1.12
480
devDependencies:
481
'@types/bun':
482
specifier: ^1.2.9
@@ -555,19 +551,19 @@ importers:
551
version: 1.18.0
552
'@openai/agents':
553
specifier: ^0.1.4
558
- version: 0.1.4(ws@8.18.2)(zod@3.25.76)
554
+ version: 0.1.4(ws@8.18.2)(zod@4.1.12)
555
dotenv:
556
specifier: ^16.4.1
557
version: 16.5.0
558
openai:
559
specifier: ^5.16.0
564
- version: 5.16.0(ws@8.18.2)(zod@3.25.76)
560
+ version: 5.16.0(ws@8.18.2)(zod@4.1.12)
561
zod:
562
specifier: 'catalog:'
567
- version: 3.25.76
563
+ version: 4.1.12
564
zod-to-json-schema:
569
- specifier: ^3.24.5
570
- version: 3.24.5(zod@3.25.76)
565
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
566
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
567
devDependencies:
568
'@types/bun':
569
specifier: ^1.2.9
@@ -624,13 +620,13 @@ importers:
620
version: 16.5.0
621
openai:
622
specifier: ^5.19.1
627
- version: 5.19.1(ws@8.18.2)(zod@3.25.76)
623
+ version: 5.19.1(ws@8.18.2)(zod@4.1.12)
624
zod:
625
specifier: 'catalog:'
630
- version: 3.25.76
626
+ version: 4.1.12
627
zod-to-json-schema:
632
- specifier: ^3.24.5
633
- version: 3.24.5(zod@3.25.76)
628
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
629
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
630
devDependencies:
631
'@types/bun':
632
specifier: ^1.2.9
@@ -676,8 +672,8 @@ importers:
672
specifier: ^16.5.0
673
version: 16.5.0
674
zod-to-json-schema:
679
- specifier: ^3.24.6
680
- version: 3.24.6(zod@4.1.12)
675
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
676
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
677
devDependencies:
678
'@types/bun':
679
specifier: ^1.2.9
@@ -815,7 +811,7 @@ importers:
811
version: 4.1.2
812
openai:
813
specifier: ^5.16.0
818
- version: 5.16.0(ws@8.18.2)(zod@3.25.76)
814
+ version: 5.16.0(ws@8.18.2)(zod@4.1.12)
815
pusher-js:
816
specifier: ^8.4.0
817
version: 8.4.0
@@ -826,8 +822,8 @@ importers:
822
specifier: 'catalog:'
823
version: 13.0.0
824
zod-to-json-schema:
829
- specifier: ^3.24.5
830
- version: 3.24.5(zod@3.25.76)
825
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
826
+ version: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
827
devDependencies:
828
'@type-challenges/utils':
829
specifier: ^0.1.1
@@ -849,7 +845,7 @@ importers:
845
version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
846
zod:
847
specifier: 'catalog:'
852
- version: 3.25.76
848
+ version: 4.1.12
849
850
ts/packages/json-schema-to-zod:
851
devDependencies:
@@ -870,10 +866,36 @@ importers:
866
version: 3.2.4(@types/node@24.0.3)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
867
zod:
868
specifier: 'catalog:'
869
+ version: 4.1.12
870
+
871
+ ts/packages/json-schema-to-zod/test/e2e/zod-v3:
872
+ dependencies:
873
+ '@composio/json-schema-to-zod':
874
+ specifier: workspace:*
875
+ version: link:../../..
876
+ zod:
877
+ specifier: 3.25.76
878
version: 3.25.76
879
zod-to-json-schema:
875
- specifier: ^3.24.5
876
- version: 3.24.5(zod@3.25.76)
880
+ specifier: npm:@finom/zod-to-json-schema@3.24.11
881
+ version: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
882
+ devDependencies:
883
+ vitest:
884
+ specifier: 'catalog:'
885
+ version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
886
+
887
+ ts/packages/json-schema-to-zod/test/e2e/zod-v4:
888
+ dependencies:
889
+ '@composio/json-schema-to-zod':
890
+ specifier: workspace:*
891
+ version: link:../../..
892
+ zod:
893
+ specifier: ^4.1.0
894
+ version: 4.1.12
895
+ devDependencies:
896
+ vitest:
897
+ specifier: 'catalog:'
898
+ version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
899
900
ts/packages/providers/anthropic:
901
dependencies:
@@ -882,7 +904,7 @@ importers:
904
version: 0.52.0
905
'@mastra/mcp':
906
specifier: ^0.12.0
885
- version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
907
+ version: 0.12.0(@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
908
devDependencies:
909
'@composio/core':
910
specifier: workspace:*
@@ -936,7 +958,7 @@ importers:
958
dependencies:
959
'@langchain/core':
960
specifier: ^0.3.63
939
- version: 0.3.63(openai@6.7.0(ws@8.18.2)(zod@3.25.76))
961
+ version: 0.3.63(openai@6.7.0(ws@8.18.2)(zod@4.1.12))
962
devDependencies:
963
'@composio/core':
964
specifier: workspace:*
@@ -952,13 +974,13 @@ importers:
974
version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
975
zod:
976
specifier: 'catalog:'
955
- version: 3.25.76
977
+ version: 4.1.12
978
979
ts/packages/providers/llamaindex:
980
dependencies:
981
llamaindex:
982
specifier: ^0.12.0
961
- version: 0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76)
983
+ version: 0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.12)
984
devDependencies:
985
'@composio/core':
986
specifier: workspace:*
@@ -973,11 +995,11 @@ importers:
995
ts/packages/providers/mastra:
996
dependencies:
997
'@mastra/core':
976
- specifier: ^0.16.2
977
- version: 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76)
998
+ specifier: ^0.21.1
999
+ version: 0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)
1000
'@mastra/mcp':
1001
specifier: ^0.12.0
980
- version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)
1002
+ version: 0.12.0(@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)
1003
devDependencies:
1004
'@composio/core':
1005
specifier: workspace:*
@@ -993,7 +1015,7 @@ importers:
1015
version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1016
zod:
1017
specifier: 'catalog:'
996
- version: 3.25.76
1018
+ version: 4.1.12
1019
1020
ts/packages/providers/openai:
1021
dependencies:
@@ -1021,7 +1043,7 @@ importers:
1043
version: link:../../core
1044
'@openai/agents':
1045
specifier: ^0.1.3
1024
- version: 0.1.3(ws@8.18.2)(zod@3.25.76)
1046
+ version: 0.1.3(ws@8.18.2)(zod@4.1.12)
1047
tsup:
1048
specifier: 'catalog:'
1049
version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
@@ -1033,7 +1055,7 @@ importers:
1055
version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1056
zod:
1057
specifier: 'catalog:'
1036
- version: 3.25.76
1058
+ version: 4.1.12
1059
1060
ts/packages/providers/vercel:
1061
devDependencies:
@@ -1042,7 +1064,7 @@ importers:
1064
version: link:../../core
1065
ai:
1066
specifier: 'catalog:'
1045
- version: 5.0.44(zod@3.25.76)
1067
+ version: 5.0.44(zod@4.1.12)
1068
tsup:
1069
specifier: 'catalog:'
1070
version: 8.5.0(jiti@1.21.7)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.1)
@@ -1054,7 +1076,7 @@ importers:
1076
version: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
1077
zod:
1078
specifier: 'catalog:'
1057
- version: 3.25.76
1079
+ version: 4.1.12
1080
1081
ts/packages/ts-builders:
1082
dependencies:
@@ -1087,6 +1109,12 @@ packages:
1109
peerDependencies:
1110
zod: ^3.0.0
1111
1112
+ '@ai-sdk/anthropic@2.0.23':
1113
+ resolution: {integrity: sha512-ZEBiiv1UhjGjBwUU63pFhLK5LCSlNDb1idY9K1oZHm5/Fda1cuTojf32tOp0opH0RPbPAN/F8fyyNjbU33n9Kw==}
1114
+ engines: {node: '>=18'}
1115
+ peerDependencies:
1116
+ zod: ^3.25.76 || ^4.1.8
1117
+
1118
'@ai-sdk/gateway@1.0.15':
1119
resolution: {integrity: sha512-xySXoQ29+KbGuGfmDnABx+O6vc7Gj7qugmj1kGpn0rW0rQNn6UKUuvscKMzWyv1Uv05GyC1vqHq8ZhEOLfXscQ==}
1120
engines: {node: '>=18'}
@@ -1099,6 +1127,24 @@ packages:
1127
peerDependencies:
1128
zod: ^3.25.76 || ^4
1129
1130
+ '@ai-sdk/gateway@1.0.33':
1131
+ resolution: {integrity: sha512-v9i3GPEo4t3fGcSkQkc07xM6KJN75VUv7C1Mqmmsu2xD8lQwnQfsrgAXyNuWe20yGY0eHuheSPDZhiqsGKtH1g==}
1132
+ engines: {node: '>=18'}
1133
+ peerDependencies:
1134
+ zod: ^3.25.76 || ^4.1.8
1135
+
1136
+ '@ai-sdk/google@2.0.17':
1137
+ resolution: {integrity: sha512-6LyuUrCZuiULg0rUV+kT4T2jG19oUntudorI4ttv1ARkSbwl8A39ue3rA487aDDy6fUScdbGFiV5Yv/o4gidVA==}
1138
+ engines: {node: '>=18'}
1139
+ peerDependencies:
1140
+ zod: ^3.25.76 || ^4.1.8
1141
+
1142
+ '@ai-sdk/openai-compatible@1.0.19':
1143
+ resolution: {integrity: sha512-hnsqPCCSNKgpZRNDOAIXZs7OcUDM4ut5ggWxj2sjB4tNL/aBn/xrM7pJkqu+WuPowyrE60wPVSlw0LvtXAlMXQ==}
1144
+ engines: {node: '>=18'}
1145
+ peerDependencies:
1146
+ zod: ^3.25.76 || ^4.1.8
1147
+
1148
'@ai-sdk/openai@1.3.22':
1149
resolution: {integrity: sha512-QwA+2EkG0QyjVR+7h6FE7iOu2ivNqAVMm9UJZkVxxTk5OIq5fFJDTEI/zICEMuHImTTXR2JjsL6EirJ28Jc4cw==}
1150
engines: {node: '>=18'}
@@ -1117,12 +1163,24 @@ packages:
1163
peerDependencies:
1164
zod: ^3.25.76 || ^4
1165
1166
+ '@ai-sdk/openai@2.0.42':
1167
+ resolution: {integrity: sha512-9mM6QS8k0ooH9qMC27nlrYLQmNDnO6Rk0JTmFo/yUxpABEWOcvQhMWNHbp9lFL6Ty5vkdINrujhsAQfWuEleOg==}
1168
+ engines: {node: '>=18'}
1169
+ peerDependencies:
1170
+ zod: ^3.25.76 || ^4.1.8
1171
+
1172
'@ai-sdk/provider-utils@2.2.8':
1173
resolution: {integrity: sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==}
1174
engines: {node: '>=18'}
1175
peerDependencies:
1176
zod: ^3.23.8
1177
1178
+ '@ai-sdk/provider-utils@3.0.10':
1179
+ resolution: {integrity: sha512-T1gZ76gEIwffep6MWI0QNy9jgoybUHE7TRaHB5k54K8mF91ciGFlbtCGxDYhMH3nCRergKwYFIDeFF0hJSIQHQ==}
1180
+ engines: {node: '>=18'}
1181
+ peerDependencies:
1182
+ zod: ^3.25.76 || ^4.1.8
1183
+
1184
'@ai-sdk/provider-utils@3.0.4':
1185
resolution: {integrity: sha512-/3Z6lfUp8r+ewFd9yzHkCmPlMOJUXup2Sx3aoUyrdXLhOmAfHRl6Z4lDbIdV0uvw/QYoBcVLJnvXN7ncYeS3uQ==}
1186
engines: {node: '>=18'}
@@ -1171,6 +1229,12 @@ packages:
1229
peerDependencies:
1230
zod: ^3.23.8
1231
1232
+ '@ai-sdk/xai@2.0.23':
1233
+ resolution: {integrity: sha512-Xo4r5W/Wvi4mkCD98DoafNxj9V3xysUlWOeqAYpqKeKkNQ2xtOTly2MHq+gP6wKud0Y/mI7hemkCMQgH6HOwzQ==}
1234
+ engines: {node: '>=18'}
1235
+ peerDependencies:
1236
+ zod: ^3.25.76 || ^4.1.8
1237
+
1238
'@alloc/quick-lru@5.2.0':
1239
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
1240
engines: {node: '>=10'}
@@ -2182,6 +2246,10 @@ packages:
2246
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
2247
engines: {node: '>=12'}
2248
2249
+ '@isaacs/ttlcache@1.4.1':
2250
+ resolution: {integrity: sha512-RQgQ4uQ+pLbqXfOmieB91ejmLwvSgv9nLx6sT6sD83s7umBypgg+OIBOBbEUiJXrfpnp9j0mRhYYdzp9uqq3lA==}
2251
+ engines: {node: '>=12'}
2252
+
2253
'@jridgewell/gen-mapping@0.3.8':
2254
resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
2255
engines: {node: '>=6.0.0'}
@@ -2357,6 +2425,12 @@ packages:
2425
peerDependencies:
2426
zod: ^3.25.0 || ^4.0.0
2427
2428
+ '@mastra/core@0.21.1':
2429
+ resolution: {integrity: sha512-lyASrQCLiW+tleVRL16pBN5YfBg14IBEXYl2uGmrOsJ0QiPX/pHzcmYe0n7Oh48dYzu9YB/MgbQuY5PLzks8uQ==}
2430
+ engines: {node: '>=20'}
2431
+ peerDependencies:
2432
+ zod: ^3.25.0 || ^4.0.0
2433
+
2434
'@mastra/mcp@0.12.0':
2435
resolution: {integrity: sha512-KODbJ/ztABQrWeIRyDDYM031hMY91gOZZ42wiJQo9JbtX38nXlpcoVSz5Pqm+4WIIDMfz32gcT1V4ie8979C3Q==}
2436
peerDependencies:
@@ -2369,6 +2443,12 @@ packages:
2443
ai: ^4.0.0 || ^5.0.0
2444
zod: ^3.25.0 || ^4.0.0
2445
2446
+ '@mastra/schema-compat@0.11.4':
2447
+ resolution: {integrity: sha512-oh3+enP3oYftZlmJAKQQj5VXR86KgTMwfMnwALZyLk04dPSWfVD2wGytoDg5Qbi3rX9qHj6g0rMNa0CUjR6aTg==}
2448
+ peerDependencies:
2449
+ ai: ^4.0.0 || ^5.0.0
2450
+ zod: ^3.25.0 || ^4.0.0
2451
+
2452
'@modelcontextprotocol/sdk@1.18.0':
2453
resolution: {integrity: sha512-JvKyB6YwS3quM+88JPR0axeRgvdDu3Pv6mdZUy+w4qVkCzGgumb9bXG/TmtDRQv+671yaofVfXSQmFLlWU5qPQ==}
2454
engines: {node: '>=18'}
@@ -2486,14 +2566,6 @@ packages:
2566
zod:
2567
optional: true
2568
2489
- '@openai/agents-core@0.2.1':
2490
- resolution: {integrity: sha512-1CYv9UPbCrT2tEj/APA1PseaChJ4Tl1Kqn0y9/ApYLrt+AKiYTJhgOxtv9+Wu9hO9+8ePu3g9Ay1IoEqlBxl+A==}
2491
- peerDependencies:
2492
- zod: ^3.25.40 || ^4.0
2493
- peerDependenciesMeta:
2494
- zod:
2495
- optional: true
2496
-
2569
'@openai/agents-openai@0.1.3':
2570
resolution: {integrity: sha512-nyC+ShxxLtDtQrcAdpfegmrmOKou0jHPrl1iTFizo2f/KqeJ0n8OvNOmiixMxYgAOA2D3KqxdkHcgdAIQlH7TQ==}
2571
peerDependencies:
@@ -2504,11 +2576,6 @@ packages:
2576
peerDependencies:
2577
zod: ^3.25.40
2578
2507
- '@openai/agents-openai@0.2.1':
2508
- resolution: {integrity: sha512-2LCPkdXk6aHLwI6mINlYyj/yHYxgshCpZDxhTHIiDbBxWFFBg4bUiJ2KTCH3z7vKKIzm/JFrePvQukMpJoi+XA==}
2509
- peerDependencies:
2510
- zod: ^3.25.40 || ^4.0
2511
-
2579
'@openai/agents-realtime@0.1.3':
2580
resolution: {integrity: sha512-8uB63JuZkGew+Ccd+aZg2C4FkCRu3MpVg/+6veJzrYzjYsJx8ncUUTIYzDBs71m86+WJwlzmKv0pcGAzbMXx5g==}
2581
peerDependencies:
@@ -2519,11 +2586,6 @@ packages:
2586
peerDependencies:
2587
zod: ^3.25.40
2588
2522
- '@openai/agents-realtime@0.2.1':
2523
- resolution: {integrity: sha512-x1F8pwvA4Zz2Xt23IqLOyIFUIFafx27sq5yuGfeDP3MDdr2q59af4fXnoJ6wrNoqvjZiKO+JCdwXyYSFHqQmug==}
2524
- peerDependencies:
2525
- zod: ^3.25.40 || ^4.0
2526
-
2589
'@openai/agents@0.1.3':
2590
resolution: {integrity: sha512-uGB831WPmUuJjCVIKbAcFMZLokkfSu/F7XSlbMs1mfCP1yD+47ZGQbn0C0PPiOoMN05dbmaq9tbYbjVYbruhDA==}
2591
peerDependencies:
@@ -2534,10 +2596,12 @@ packages:
2596
peerDependencies:
2597
zod: ^3.25.40
2598
2537
- '@openai/agents@0.2.1':
2538
- resolution: {integrity: sha512-fUwGNZ5jC5OsM5VaFac7mYeF9bxt4EbCkfs7UuwYWsrIz2HuF0zbOLH3pk51GlcWuHmRbnbkWziTI/E+N54IMg==}
2599
+ '@openrouter/ai-sdk-provider@1.2.0':
2600
+ resolution: {integrity: sha512-stuIwq7Yb7DNmk3GuCtz+oS3nZOY4TXEV3V5KsknDGQN7Fpu3KRMQVWRc1J073xKdf0FC9EHOctSyzsACmp5Ag==}
2601
+ engines: {node: '>=18'}
2602
peerDependencies:
2540
- zod: ^3.25.40 || ^4.0
2603
+ ai: ^5.0.0
2604
+ zod: ^3.24.1 || ^v4
2605
2606
'@opentelemetry/api-logs@0.203.0':
2607
resolution: {integrity: sha512-9B9RU0H7Ya1Dx/Rkyc4stuBZSGVQF27WigitInx2QQoj6KUpEFYPKoWjdFTunJYxmXmh17HeBvbMa1EhGyPmqQ==}
@@ -3534,6 +3598,10 @@ packages:
3598
resolution: {integrity: sha512-xoh5rJ+tgsRKoXnkBPFRLZ7rjKM0AfVbC68UZ/ECXoDbfggb9RbEySN359acY1vS3qZ0jVTVWzbtfapwm5ztxw==}
3599
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
3600
3601
+ '@vercel/oidc@3.0.3':
3602
+ resolution: {integrity: sha512-yNEQvPcVrK9sIe637+I0jD6leluPxzwJKx/Haw6F4H77CdDsszUn5V3o96LPziXkSNE2B83+Z3mjqGKBK/R6Gg==}
3603
+ engines: {node: '>= 20'}
3604
+
3605
'@vitest/expect@3.2.4':
3606
resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==}
3607
@@ -3634,6 +3702,12 @@ packages:
3702
peerDependencies:
3703
zod: ^3.25.76 || ^4
3704
3705
+ ai@5.0.60:
3706
+ resolution: {integrity: sha512-80U/3kmdBW6g+JkLXpz/P2EwkyEaWlPlYtuLUpx/JYK9F7WZh9NnkYoh1KvUi1Sbpo0NyurBTvX0a2AG9mmbDA==}
3707
+ engines: {node: '>=18'}
3708
+ peerDependencies:
3709
+ zod: ^3.25.76 || ^4.1.8
3710
+
3711
ajv@6.12.6:
3712
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
3713
@@ -4866,6 +4940,10 @@ packages:
4940
is-natural-number@4.0.1:
4941
resolution: {integrity: sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==}
4942
4943
+ is-network-error@1.3.0:
4944
+ resolution: {integrity: sha512-6oIwpsgRfnDiyEDLMay/GqCl3HoAtH5+RUKW29gYkL0QA+ipzpDLA16yQs7/RHCSu+BwgbJaOUqa4A99qNVQVw==}
4945
+ engines: {node: '>=16'}
4946
+
4947
is-number@7.0.0:
4948
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
4949
engines: {node: '>=0.12.0'}
@@ -5561,6 +5639,10 @@ packages:
5639
resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==}
5640
engines: {node: '>=8'}
5641
5642
+ p-retry@7.1.0:
5643
+ resolution: {integrity: sha512-xL4PiFRQa/f9L9ZvR4/gUCRNus4N8YX80ku8kv9Jqz+ZokkiZLM0bcvX0gm1F3PDi9SPRsww1BDsTWgE6Y1GLQ==}
5644
+ engines: {node: '>=20'}
5645
+
5646
p-timeout@3.2.0:
5647
resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==}
5648
engines: {node: '>=8'}
@@ -6809,11 +6891,6 @@ packages:
6891
zod-from-json-schema@0.5.0:
6892
resolution: {integrity: sha512-W1v1YIoimOJfvuorGGp1QroizLL3jEGELJtgrHiVg/ytxVZdh/BTTVyPypGB7YK30LHrCkkebbjuyHIjBGCEzw==}
6893
6812
- zod-to-json-schema@3.24.5:
6813
- resolution: {integrity: sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==}
6814
- peerDependencies:
6815
- zod: ^3.24.1
6816
-
6894
zod-to-json-schema@3.24.6:
6895
resolution: {integrity: sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg==}
6896
peerDependencies:
@@ -6850,11 +6927,11 @@ snapshots:
6927
'@ai-sdk/provider-utils': 2.2.8(zod@4.1.12)
6928
zod: 4.1.12
6929
6853
- '@ai-sdk/gateway@1.0.15(zod@3.25.76)':
6930
+ '@ai-sdk/anthropic@2.0.23(zod@4.1.12)':
6931
dependencies:
6932
'@ai-sdk/provider': 2.0.0
6856
- '@ai-sdk/provider-utils': 3.0.7(zod@3.25.76)
6857
- zod: 3.25.76
6933
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
6934
+ zod: 4.1.12
6935
6936
'@ai-sdk/gateway@1.0.15(zod@4.1.12)':
6937
dependencies:
@@ -6862,23 +6939,30 @@ snapshots:
6939
'@ai-sdk/provider-utils': 3.0.7(zod@4.1.12)
6940
zod: 4.1.12
6941
6865
- '@ai-sdk/gateway@1.0.23(zod@3.25.76)':
6942
+ '@ai-sdk/gateway@1.0.23(zod@4.1.12)':
6943
dependencies:
6944
'@ai-sdk/provider': 2.0.0
6868
- '@ai-sdk/provider-utils': 3.0.9(zod@3.25.76)
6869
- zod: 3.25.76
6945
+ '@ai-sdk/provider-utils': 3.0.9(zod@4.1.12)
6946
+ zod: 4.1.12
6947
6871
- '@ai-sdk/gateway@1.0.23(zod@4.1.12)':
6948
+ '@ai-sdk/gateway@1.0.33(zod@4.1.12)':
6949
dependencies:
6950
'@ai-sdk/provider': 2.0.0
6874
- '@ai-sdk/provider-utils': 3.0.9(zod@4.1.12)
6951
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
6952
+ '@vercel/oidc': 3.0.3
6953
zod: 4.1.12
6954
6877
- '@ai-sdk/openai@1.3.22(zod@3.25.76)':
6955
+ '@ai-sdk/google@2.0.17(zod@4.1.12)':
6956
dependencies:
6879
- '@ai-sdk/provider': 1.1.3
6880
- '@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
6881
- zod: 3.25.76
6957
+ '@ai-sdk/provider': 2.0.0
6958
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
6959
+ zod: 4.1.12
6960
+
6961
+ '@ai-sdk/openai-compatible@1.0.19(zod@4.1.12)':
6962
+ dependencies:
6963
+ '@ai-sdk/provider': 2.0.0
6964
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
6965
+ zod: 4.1.12
6966
6967
'@ai-sdk/openai@1.3.22(zod@4.1.12)':
6968
dependencies:
@@ -6898,12 +6982,11 @@ snapshots:
6982
'@ai-sdk/provider-utils': 3.0.9(zod@4.1.12)
6983
zod: 4.1.12
6984
6901
- '@ai-sdk/provider-utils@2.2.8(zod@3.25.76)':
6985
+ '@ai-sdk/openai@2.0.42(zod@4.1.12)':
6986
dependencies:
6903
- '@ai-sdk/provider': 1.1.3
6904
- nanoid: 3.3.11
6905
- secure-json-parse: 2.7.0
6906
- zod: 3.25.76
6987
+ '@ai-sdk/provider': 2.0.0
6988
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
6989
+ zod: 4.1.12
6990
6991
'@ai-sdk/provider-utils@2.2.8(zod@4.1.12)':
6992
dependencies:
@@ -6912,21 +6995,20 @@ snapshots:
6995
secure-json-parse: 2.7.0
6996
zod: 4.1.12
6997
6915
- '@ai-sdk/provider-utils@3.0.4(zod@4.1.12)':
6998
+ '@ai-sdk/provider-utils@3.0.10(zod@4.1.12)':
6999
dependencies:
7000
'@ai-sdk/provider': 2.0.0
7001
'@standard-schema/spec': 1.0.0
6919
- eventsource-parser: 3.0.3
7002
+ eventsource-parser: 3.0.6
7003
zod: 4.1.12
6921
- zod-to-json-schema: 3.24.6(zod@4.1.12)
7004
6923
- '@ai-sdk/provider-utils@3.0.5(zod@3.25.76)':
7005
+ '@ai-sdk/provider-utils@3.0.4(zod@4.1.12)':
7006
dependencies:
7007
'@ai-sdk/provider': 2.0.0
7008
'@standard-schema/spec': 1.0.0
6927
- eventsource-parser: 3.0.6
6928
- zod: 3.25.76
6929
- zod-to-json-schema: 3.24.6(zod@3.25.76)
7009
+ eventsource-parser: 3.0.3
7010
+ zod: 4.1.12
7011
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
7012
7013
'@ai-sdk/provider-utils@3.0.5(zod@4.1.12)':
7014
dependencies:
@@ -6934,14 +7016,7 @@ snapshots:
7016
'@standard-schema/spec': 1.0.0
7017
eventsource-parser: 3.0.6
7018
zod: 4.1.12
6937
- zod-to-json-schema: 3.24.6(zod@4.1.12)
6938
-
6939
- '@ai-sdk/provider-utils@3.0.7(zod@3.25.76)':
6940
- dependencies:
6941
- '@ai-sdk/provider': 2.0.0
6942
- '@standard-schema/spec': 1.0.0
6943
- eventsource-parser: 3.0.6
6944
- zod: 3.25.76
7019
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
7020
7021
'@ai-sdk/provider-utils@3.0.7(zod@4.1.12)':
7022
dependencies:
@@ -6950,13 +7025,6 @@ snapshots:
7025
eventsource-parser: 3.0.6
7026
zod: 4.1.12
7027
6953
- '@ai-sdk/provider-utils@3.0.9(zod@3.25.76)':
6954
- dependencies:
6955
- '@ai-sdk/provider': 2.0.0
6956
- '@standard-schema/spec': 1.0.0
6957
- eventsource-parser: 3.0.6
6958
- zod: 3.25.76
6959
-
7028
'@ai-sdk/provider-utils@3.0.9(zod@4.1.12)':
7029
dependencies:
7030
'@ai-sdk/provider': 2.0.0
@@ -6972,16 +7040,6 @@ snapshots:
7040
dependencies:
7041
json-schema: 0.4.0
7042
6975
- '@ai-sdk/react@1.2.12(react@18.3.1)(zod@3.25.76)':
6976
- dependencies:
6977
- '@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
6978
- '@ai-sdk/ui-utils': 1.2.11(zod@3.25.76)
6979
- react: 18.3.1
6980
- swr: 2.3.3(react@18.3.1)
6981
- throttleit: 2.1.0
6982
- optionalDependencies:
6983
- zod: 3.25.76
6984
-
7043
'@ai-sdk/react@1.2.12(react@18.3.1)(zod@4.1.12)':
7044
dependencies:
7045
'@ai-sdk/provider-utils': 2.2.8(zod@4.1.12)
@@ -6992,19 +7050,19 @@ snapshots:
7050
optionalDependencies:
7051
zod: 4.1.12
7052
6995
- '@ai-sdk/ui-utils@1.2.11(zod@3.25.76)':
6996
- dependencies:
6997
- '@ai-sdk/provider': 1.1.3
6998
- '@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
6999
- zod: 3.25.76
7000
- zod-to-json-schema: 3.24.6(zod@3.25.76)
7001
-
7053
'@ai-sdk/ui-utils@1.2.11(zod@4.1.12)':
7054
dependencies:
7055
'@ai-sdk/provider': 1.1.3
7056
'@ai-sdk/provider-utils': 2.2.8(zod@4.1.12)
7057
zod: 4.1.12
7007
- zod-to-json-schema: 3.24.6(zod@4.1.12)
7058
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
7059
+
7060
+ '@ai-sdk/xai@2.0.23(zod@4.1.12)':
7061
+ dependencies:
7062
+ '@ai-sdk/openai-compatible': 1.0.19(zod@4.1.12)
7063
+ '@ai-sdk/provider': 2.0.0
7064
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
7065
+ zod: 4.1.12
7066
7067
'@alloc/quick-lru@5.2.0': {}
7068
@@ -7581,6 +7639,10 @@ snapshots:
7639
'@eslint/core': 0.15.0
7640
levn: 0.4.1
7641
7642
+ '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)':
7643
+ dependencies:
7644
+ zod: 3.25.76
7645
+
7646
'@finom/zod-to-json-schema@3.24.11(zod@4.1.12)':
7647
dependencies:
7648
zod: 4.1.12
@@ -7610,7 +7672,7 @@ snapshots:
7672
google-auth-library: 9.15.1
7673
ws: 8.18.2
7674
zod: 3.25.76
7613
- zod-to-json-schema: 3.24.6(zod@3.25.76)
7675
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
7676
optionalDependencies:
7677
'@modelcontextprotocol/sdk': 1.18.0
7678
transitivePeerDependencies:
@@ -7919,6 +7981,8 @@ snapshots:
7981
wrap-ansi: 8.1.0
7982
wrap-ansi-cjs: wrap-ansi@7.0.0
7983
7984
+ '@isaacs/ttlcache@1.4.1': {}
7985
+
7986
'@jridgewell/gen-mapping@0.3.8':
7987
dependencies:
7988
'@jridgewell/set-array': 1.2.1
@@ -7958,7 +8022,7 @@ snapshots:
8022
p-retry: 4.6.2
8023
uuid: 10.0.0
8024
zod: 3.25.76
7961
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8025
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
8026
transitivePeerDependencies:
8027
- openai
8028
@@ -7975,24 +8039,24 @@ snapshots:
8039
p-retry: 4.6.2
8040
uuid: 10.0.0
8041
zod: 3.25.76
7978
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8042
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
8043
transitivePeerDependencies:
8044
- openai
8045
7982
- '@langchain/core@0.3.63(openai@6.7.0(ws@8.18.2)(zod@3.25.76))':
8046
+ '@langchain/core@0.3.63(openai@6.7.0(ws@8.18.2)(zod@4.1.12))':
8047
dependencies:
8048
'@cfworker/json-schema': 4.1.1
8049
ansi-styles: 5.2.0
8050
camelcase: 6.3.0
8051
decamelize: 1.2.0
8052
js-tiktoken: 1.0.20
7989
- langsmith: 0.3.33(openai@6.7.0(ws@8.18.2)(zod@3.25.76))
8053
+ langsmith: 0.3.33(openai@6.7.0(ws@8.18.2)(zod@4.1.12))
8054
mustache: 4.2.0
8055
p-queue: 6.6.2
8056
p-retry: 4.6.2
8057
uuid: 10.0.0
8058
zod: 3.25.76
7995
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8059
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
8060
transitivePeerDependencies:
8061
- openai
8062
@@ -8135,10 +8199,6 @@ snapshots:
8199
rxjs: 7.8.2
8200
zod: 4.1.12
8201
8138
- '@llamaindex/workflow-core@1.3.3(zod@3.25.76)':
8139
- optionalDependencies:
8140
- zod: 3.25.76
8141
-
8202
'@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.8.0)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@4.1.12)':
8203
dependencies:
8204
'@llamaindex/core': 0.6.22
@@ -8165,19 +8225,6 @@ snapshots:
8225
- rxjs
8226
- zod
8227
8168
- '@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@3.25.76)':
8169
- dependencies:
8170
- '@llamaindex/core': 0.6.22
8171
- '@llamaindex/env': 0.1.30
8172
- '@llamaindex/workflow-core': 1.3.3(zod@3.25.76)
8173
- transitivePeerDependencies:
8174
- - '@modelcontextprotocol/sdk'
8175
- - hono
8176
- - next
8177
- - p-retry
8178
- - rxjs
8179
- - zod
8180
-
8228
'@manypkg/find-root@1.1.0':
8229
dependencies:
8230
'@babel/runtime': 7.27.6
@@ -8194,15 +8241,15 @@ snapshots:
8241
globby: 11.1.0
8242
read-yaml-file: 1.1.0
8243
8197
- '@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76)':
8244
+ '@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)':
8245
dependencies:
8246
'@a2a-js/sdk': 0.2.5
8247
'@ai-sdk/provider': 1.1.3
8201
- '@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
8202
- '@ai-sdk/provider-utils-v5': '@ai-sdk/provider-utils@3.0.5(zod@3.25.76)'
8248
+ '@ai-sdk/provider-utils': 2.2.8(zod@4.1.12)
8249
+ '@ai-sdk/provider-utils-v5': '@ai-sdk/provider-utils@3.0.5(zod@4.1.12)'
8250
'@ai-sdk/provider-v5': '@ai-sdk/provider@2.0.0'
8204
- '@ai-sdk/ui-utils': 1.2.11(zod@3.25.76)
8205
- '@mastra/schema-compat': 0.11.3(ai@4.3.19(react@18.3.1)(zod@3.25.76))(zod@3.25.76)
8251
+ '@ai-sdk/ui-utils': 1.2.11(zod@4.1.12)
8252
+ '@mastra/schema-compat': 0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)
8253
'@opentelemetry/api': 1.9.0
8254
'@opentelemetry/auto-instrumentations-node': 0.62.1(@opentelemetry/api@1.9.0)(@opentelemetry/core@2.0.1(@opentelemetry/api@1.9.0))
8255
'@opentelemetry/core': 2.0.1(@opentelemetry/api@1.9.0)
@@ -8217,12 +8264,12 @@ snapshots:
8264
'@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/api@1.9.0)
8265
'@opentelemetry/semantic-conventions': 1.36.0
8266
'@sindresorhus/slugify': 2.2.1
8220
- ai: 4.3.19(react@18.3.1)(zod@3.25.76)
8221
- ai-v5: ai@5.0.28(zod@3.25.76)
8267
+ ai: 4.3.19(react@18.3.1)(zod@4.1.12)
8268
+ ai-v5: ai@5.0.28(zod@4.1.12)
8269
date-fns: 3.6.0
8270
dotenv: 16.6.1
8271
hono: 4.9.7
8225
- hono-openapi: 0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@3.25.76)
8272
+ hono-openapi: 0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@4.1.12)
8273
js-tiktoken: 1.0.20
8274
json-schema: 0.4.0
8275
json-schema-to-zod: 2.6.1
@@ -8232,8 +8279,8 @@ snapshots:
8279
radash: 12.1.1
8280
sift: 17.1.3
8281
xstate: 5.20.2
8235
- zod: 3.25.76
8236
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8282
+ zod: 4.1.12
8283
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
8284
transitivePeerDependencies:
8285
- '@hono/arktype-validator'
8286
- '@hono/effect-validator'
@@ -8251,15 +8298,22 @@ snapshots:
8298
- valibot
8299
- zod-openapi
8300
8254
- '@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)':
8301
+ '@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)':
8302
dependencies:
8303
'@a2a-js/sdk': 0.2.5
8304
+ '@ai-sdk/anthropic-v5': '@ai-sdk/anthropic@2.0.23(zod@4.1.12)'
8305
+ '@ai-sdk/google-v5': '@ai-sdk/google@2.0.17(zod@4.1.12)'
8306
+ '@ai-sdk/openai-compatible-v5': '@ai-sdk/openai-compatible@1.0.19(zod@4.1.12)'
8307
+ '@ai-sdk/openai-v5': '@ai-sdk/openai@2.0.42(zod@4.1.12)'
8308
'@ai-sdk/provider': 1.1.3
8309
'@ai-sdk/provider-utils': 2.2.8(zod@4.1.12)
8259
- '@ai-sdk/provider-utils-v5': '@ai-sdk/provider-utils@3.0.5(zod@4.1.12)'
8310
+ '@ai-sdk/provider-utils-v5': '@ai-sdk/provider-utils@3.0.10(zod@4.1.12)'
8311
'@ai-sdk/provider-v5': '@ai-sdk/provider@2.0.0'
8312
'@ai-sdk/ui-utils': 1.2.11(zod@4.1.12)
8262
- '@mastra/schema-compat': 0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)
8313
+ '@ai-sdk/xai-v5': '@ai-sdk/xai@2.0.23(zod@4.1.12)'
8314
+ '@isaacs/ttlcache': 1.4.1
8315
+ '@mastra/schema-compat': 0.11.4(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)
8316
+ '@openrouter/ai-sdk-provider-v5': '@openrouter/ai-sdk-provider@1.2.0(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)'
8317
'@opentelemetry/api': 1.9.0
8318
'@opentelemetry/auto-instrumentations-node': 0.62.1(@opentelemetry/api@1.9.0)(@opentelemetry/core@2.0.1(@opentelemetry/api@1.9.0))
8319
'@opentelemetry/core': 2.0.1(@opentelemetry/api@1.9.0)
@@ -8272,25 +8326,26 @@ snapshots:
8326
'@opentelemetry/sdk-node': 0.203.0(@opentelemetry/api@1.9.0)
8327
'@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/api@1.9.0)
8328
'@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/api@1.9.0)
8275
- '@opentelemetry/semantic-conventions': 1.36.0
8329
+ '@opentelemetry/semantic-conventions': 1.37.0
8330
'@sindresorhus/slugify': 2.2.1
8331
ai: 4.3.19(react@18.3.1)(zod@4.1.12)
8278
- ai-v5: ai@5.0.28(zod@4.1.12)
8332
+ ai-v5: ai@5.0.60(zod@4.1.12)
8333
date-fns: 3.6.0
8334
dotenv: 16.6.1
8335
hono: 4.9.7
8336
hono-openapi: 0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@4.1.12)
8283
- js-tiktoken: 1.0.20
8337
+ js-tiktoken: 1.0.21
8338
json-schema: 0.4.0
8339
json-schema-to-zod: 2.6.1
8340
p-map: 7.0.3
8341
+ p-retry: 7.1.0
8342
pino: 9.7.0
8343
pino-pretty: 13.0.0
8344
radash: 12.1.1
8345
sift: 17.1.3
8346
xstate: 5.20.2
8347
zod: 4.1.12
8293
- zod-to-json-schema: 3.24.6(zod@4.1.12)
8348
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
8349
transitivePeerDependencies:
8350
- '@hono/arktype-validator'
8351
- '@hono/effect-validator'
@@ -8308,26 +8363,26 @@ snapshots:
8363
- valibot
8364
- zod-openapi
8365
8311
- '@mastra/mcp@0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)':
8366
+ '@mastra/mcp@0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)':
8367
dependencies:
8368
'@apidevtools/json-schema-ref-parser': 14.2.1(@types/json-schema@7.0.15)
8314
- '@mastra/core': 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76)
8369
+ '@mastra/core': 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)
8370
'@modelcontextprotocol/sdk': 1.18.0
8371
date-fns: 4.1.0
8372
exit-hook: 4.0.0
8373
fast-deep-equal: 3.1.3
8374
uuid: 11.1.0
8320
- zod: 3.25.76
8375
+ zod: 4.1.12
8376
zod-from-json-schema: 0.5.0
8377
zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8378
transitivePeerDependencies:
8379
- '@types/json-schema'
8380
- supports-color
8381
8327
- '@mastra/mcp@0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)':
8382
+ '@mastra/mcp@0.12.0(@mastra/core@0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12))(@types/json-schema@7.0.15)(zod@4.1.12)':
8383
dependencies:
8384
'@apidevtools/json-schema-ref-parser': 14.2.1(@types/json-schema@7.0.15)
8330
- '@mastra/core': 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)
8385
+ '@mastra/core': 0.21.1(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.12)
8386
'@modelcontextprotocol/sdk': 1.18.0
8387
date-fns: 4.1.0
8388
exit-hook: 4.0.0
@@ -8340,23 +8395,23 @@ snapshots:
8395
- '@types/json-schema'
8396
- supports-color
8397
8343
- '@mastra/schema-compat@0.11.3(ai@4.3.19(react@18.3.1)(zod@3.25.76))(zod@3.25.76)':
8398
+ '@mastra/schema-compat@0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)':
8399
dependencies:
8345
- ai: 4.3.19(react@18.3.1)(zod@3.25.76)
8400
+ ai: 4.3.19(react@18.3.1)(zod@4.1.12)
8401
json-schema: 0.4.0
8347
- zod: 3.25.76
8402
+ zod: 4.1.12
8403
zod-from-json-schema: 0.5.0
8404
zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8350
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8405
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
8406
8352
- '@mastra/schema-compat@0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)':
8407
+ '@mastra/schema-compat@0.11.4(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)':
8408
dependencies:
8409
ai: 4.3.19(react@18.3.1)(zod@4.1.12)
8410
json-schema: 0.4.0
8411
zod: 4.1.12
8412
zod-from-json-schema: 0.5.0
8413
zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8359
- zod-to-json-schema: 3.24.6(zod@4.1.12)
8414
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)'
8415
8416
'@modelcontextprotocol/sdk@1.18.0':
8417
dependencies:
@@ -8371,7 +8426,7 @@ snapshots:
8426
pkce-challenge: 5.0.0
8427
raw-body: 3.0.0
8428
zod: 3.25.76
8374
- zod-to-json-schema: 3.24.6(zod@3.25.76)
8429
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
8430
transitivePeerDependencies:
8431
- supports-color
8432
@@ -8431,32 +8486,21 @@ snapshots:
8486
'@nodelib/fs.scandir': 2.1.5
8487
fastq: 1.19.1
8488
8434
- '@openai/agents-core@0.1.3(ws@8.18.2)(zod@3.25.76)':
8435
- dependencies:
8436
- debug: 4.4.1(supports-color@10.0.0)
8437
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8438
- optionalDependencies:
8439
- '@modelcontextprotocol/sdk': 1.18.0
8440
- zod: 3.25.76
8441
- transitivePeerDependencies:
8442
- - supports-color
8443
- - ws
8444
-
8445
- '@openai/agents-core@0.1.4(ws@8.18.2)(zod@3.25.76)':
8489
+ '@openai/agents-core@0.1.3(ws@8.18.2)(zod@4.1.12)':
8490
dependencies:
8491
debug: 4.4.1(supports-color@10.0.0)
8448
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8492
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8493
optionalDependencies:
8494
'@modelcontextprotocol/sdk': 1.18.0
8451
- zod: 3.25.76
8495
+ zod: 4.1.12
8496
transitivePeerDependencies:
8497
- supports-color
8498
- ws
8499
8456
- '@openai/agents-core@0.2.1(ws@8.18.2)(zod@4.1.12)':
8500
+ '@openai/agents-core@0.1.4(ws@8.18.2)(zod@4.1.12)':
8501
dependencies:
8502
debug: 4.4.1(supports-color@10.0.0)
8459
- openai: 6.7.0(ws@8.18.2)(zod@4.1.12)
8503
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8504
optionalDependencies:
8505
'@modelcontextprotocol/sdk': 1.18.0
8506
zod: 4.1.12
@@ -8464,63 +8508,41 @@ snapshots:
8508
- supports-color
8509
- ws
8510
8467
- '@openai/agents-openai@0.1.3(ws@8.18.2)(zod@3.25.76)':
8511
+ '@openai/agents-openai@0.1.3(ws@8.18.2)(zod@4.1.12)':
8512
dependencies:
8469
- '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@3.25.76)
8513
+ '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@4.1.12)
8514
debug: 4.4.1(supports-color@10.0.0)
8471
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8472
- zod: 3.25.76
8473
- transitivePeerDependencies:
8474
- - supports-color
8475
- - ws
8476
-
8477
- '@openai/agents-openai@0.1.4(ws@8.18.2)(zod@3.25.76)':
8478
- dependencies:
8479
- '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@3.25.76)
8480
- debug: 4.4.1(supports-color@10.0.0)
8481
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8482
- zod: 3.25.76
8515
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8516
+ zod: 4.1.12
8517
transitivePeerDependencies:
8518
- supports-color
8519
- ws
8520
8487
- '@openai/agents-openai@0.2.1(ws@8.18.2)(zod@4.1.12)':
8521
+ '@openai/agents-openai@0.1.4(ws@8.18.2)(zod@4.1.12)':
8522
dependencies:
8489
- '@openai/agents-core': 0.2.1(ws@8.18.2)(zod@4.1.12)
8523
+ '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@4.1.12)
8524
debug: 4.4.1(supports-color@10.0.0)
8491
- openai: 6.7.0(ws@8.18.2)(zod@4.1.12)
8525
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8526
zod: 4.1.12
8527
transitivePeerDependencies:
8528
- supports-color
8529
- ws
8530
8497
- '@openai/agents-realtime@0.1.3(zod@3.25.76)':
8531
+ '@openai/agents-realtime@0.1.3(zod@4.1.12)':
8532
dependencies:
8499
- '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@3.25.76)
8533
+ '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@4.1.12)
8534
'@types/ws': 8.18.1
8535
debug: 4.4.1(supports-color@10.0.0)
8536
ws: 8.18.2
8503
- zod: 3.25.76
8504
- transitivePeerDependencies:
8505
- - bufferutil
8506
- - supports-color
8507
- - utf-8-validate
8508
-
8509
- '@openai/agents-realtime@0.1.4(zod@3.25.76)':
8510
- dependencies:
8511
- '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@3.25.76)
8512
- '@types/ws': 8.18.1
8513
- debug: 4.4.1(supports-color@10.0.0)
8514
- ws: 8.18.2
8515
- zod: 3.25.76
8537
+ zod: 4.1.12
8538
transitivePeerDependencies:
8539
- bufferutil
8540
- supports-color
8541
- utf-8-validate
8542
8521
- '@openai/agents-realtime@0.2.1(zod@4.1.12)':
8543
+ '@openai/agents-realtime@0.1.4(zod@4.1.12)':
8544
dependencies:
8523
- '@openai/agents-core': 0.2.1(ws@8.18.2)(zod@4.1.12)
8545
+ '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@4.1.12)
8546
'@types/ws': 8.18.1
8547
debug: 4.4.1(supports-color@10.0.0)
8548
ws: 8.18.2
@@ -8530,47 +8552,38 @@ snapshots:
8552
- supports-color
8553
- utf-8-validate
8554
8533
- '@openai/agents@0.1.3(ws@8.18.2)(zod@3.25.76)':
8555
+ '@openai/agents@0.1.3(ws@8.18.2)(zod@4.1.12)':
8556
dependencies:
8535
- '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@3.25.76)
8536
- '@openai/agents-openai': 0.1.3(ws@8.18.2)(zod@3.25.76)
8537
- '@openai/agents-realtime': 0.1.3(zod@3.25.76)
8557
+ '@openai/agents-core': 0.1.3(ws@8.18.2)(zod@4.1.12)
8558
+ '@openai/agents-openai': 0.1.3(ws@8.18.2)(zod@4.1.12)
8559
+ '@openai/agents-realtime': 0.1.3(zod@4.1.12)
8560
debug: 4.4.1(supports-color@10.0.0)
8539
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8540
- zod: 3.25.76
8561
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8562
+ zod: 4.1.12
8563
transitivePeerDependencies:
8564
- bufferutil
8565
- supports-color
8566
- utf-8-validate
8567
- ws
8568
8547
- '@openai/agents@0.1.4(ws@8.18.2)(zod@3.25.76)':
8569
+ '@openai/agents@0.1.4(ws@8.18.2)(zod@4.1.12)':
8570
dependencies:
8549
- '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@3.25.76)
8550
- '@openai/agents-openai': 0.1.4(ws@8.18.2)(zod@3.25.76)
8551
- '@openai/agents-realtime': 0.1.4(zod@3.25.76)
8571
+ '@openai/agents-core': 0.1.4(ws@8.18.2)(zod@4.1.12)
8572
+ '@openai/agents-openai': 0.1.4(ws@8.18.2)(zod@4.1.12)
8573
+ '@openai/agents-realtime': 0.1.4(zod@4.1.12)
8574
debug: 4.4.1(supports-color@10.0.0)
8553
- openai: 5.20.3(ws@8.18.2)(zod@3.25.76)
8554
- zod: 3.25.76
8575
+ openai: 5.20.3(ws@8.18.2)(zod@4.1.12)
8576
+ zod: 4.1.12
8577
transitivePeerDependencies:
8578
- bufferutil
8579
- supports-color
8580
- utf-8-validate
8581
- ws
8582
8561
- '@openai/agents@0.2.1(ws@8.18.2)(zod@4.1.12)':
8583
+ '@openrouter/ai-sdk-provider@1.2.0(ai@4.3.19(react@18.3.1)(zod@4.1.12))(zod@4.1.12)':
8584
dependencies:
8563
- '@openai/agents-core': 0.2.1(ws@8.18.2)(zod@4.1.12)
8564
- '@openai/agents-openai': 0.2.1(ws@8.18.2)(zod@4.1.12)
8565
- '@openai/agents-realtime': 0.2.1(zod@4.1.12)
8566
- debug: 4.4.1(supports-color@10.0.0)
8567
- openai: 6.7.0(ws@8.18.2)(zod@4.1.12)
8585
+ ai: 4.3.19(react@18.3.1)(zod@4.1.12)
8586
zod: 4.1.12
8569
- transitivePeerDependencies:
8570
- - bufferutil
8571
- - supports-color
8572
- - utf-8-validate
8573
- - ws
8587
8588
'@opentelemetry/api-logs@0.203.0':
8589
dependencies:
@@ -9778,6 +9791,8 @@ snapshots:
9791
'@typescript-eslint/types': 8.34.1
9792
eslint-visitor-keys: 4.2.1
9793
9794
+ '@vercel/oidc@3.0.3': {}
9795
+
9796
'@vitest/expect@3.2.4':
9797
dependencies:
9798
'@types/chai': 5.2.2
@@ -9865,18 +9880,6 @@ snapshots:
9880
dependencies:
9881
humanize-ms: 1.2.1
9882
9868
- ai@4.3.19(react@18.3.1)(zod@3.25.76):
9869
- dependencies:
9870
- '@ai-sdk/provider': 1.1.3
9871
- '@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
9872
- '@ai-sdk/react': 1.2.12(react@18.3.1)(zod@3.25.76)
9873
- '@ai-sdk/ui-utils': 1.2.11(zod@3.25.76)
9874
- '@opentelemetry/api': 1.9.0
9875
- jsondiffpatch: 0.6.0
9876
- zod: 3.25.76
9877
- optionalDependencies:
9878
- react: 18.3.1
9879
-
9883
ai@4.3.19(react@18.3.1)(zod@4.1.12):
9884
dependencies:
9885
'@ai-sdk/provider': 1.1.3
@@ -9889,14 +9892,6 @@ snapshots:
9892
optionalDependencies:
9893
react: 18.3.1
9894
9892
- ai@5.0.28(zod@3.25.76):
9893
- dependencies:
9894
- '@ai-sdk/gateway': 1.0.15(zod@3.25.76)
9895
- '@ai-sdk/provider': 2.0.0
9896
- '@ai-sdk/provider-utils': 3.0.7(zod@3.25.76)
9897
- '@opentelemetry/api': 1.9.0
9898
- zod: 3.25.76
9899
-
9895
ai@5.0.28(zod@4.1.12):
9896
dependencies:
9897
'@ai-sdk/gateway': 1.0.15(zod@4.1.12)
@@ -9905,19 +9900,19 @@ snapshots:
9900
'@opentelemetry/api': 1.9.0
9901
zod: 4.1.12
9902
9908
- ai@5.0.44(zod@3.25.76):
9903
+ ai@5.0.44(zod@4.1.12):
9904
dependencies:
9910
- '@ai-sdk/gateway': 1.0.23(zod@3.25.76)
9905
+ '@ai-sdk/gateway': 1.0.23(zod@4.1.12)
9906
'@ai-sdk/provider': 2.0.0
9912
- '@ai-sdk/provider-utils': 3.0.9(zod@3.25.76)
9907
+ '@ai-sdk/provider-utils': 3.0.9(zod@4.1.12)
9908
'@opentelemetry/api': 1.9.0
9914
- zod: 3.25.76
9909
+ zod: 4.1.12
9910
9916
- ai@5.0.44(zod@4.1.12):
9911
+ ai@5.0.60(zod@4.1.12):
9912
dependencies:
9918
- '@ai-sdk/gateway': 1.0.23(zod@4.1.12)
9913
+ '@ai-sdk/gateway': 1.0.33(zod@4.1.12)
9914
'@ai-sdk/provider': 2.0.0
9920
- '@ai-sdk/provider-utils': 3.0.9(zod@4.1.12)
9915
+ '@ai-sdk/provider-utils': 3.0.10(zod@4.1.12)
9916
'@opentelemetry/api': 1.9.0
9917
zod: 4.1.12
9918
@@ -10228,9 +10223,9 @@ snapshots:
10223
has-own-prop: 2.0.0
10224
repeat-string: 1.6.1
10225
10231
- composio-core@0.5.39(@ai-sdk/openai@2.0.35(zod@4.1.12))(@cloudflare/workers-types@4.20250917.0)(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@langchain/openai@0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2))(ai@5.0.44(zod@4.1.12))(langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@4.1.12))(ws@8.18.2))(openai@4.104.0(ws@8.18.2)(zod@4.1.12)):
10226
+ composio-core@0.5.39(@ai-sdk/openai@2.0.42(zod@4.1.12))(@cloudflare/workers-types@4.20250917.0)(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@langchain/openai@0.5.13(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(ws@8.18.2))(ai@5.0.44(zod@4.1.12))(langchain@0.3.28(@langchain/core@0.3.63(openai@4.104.0(ws@8.18.2)(zod@4.1.12)))(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(axios@1.10.0)(openai@4.104.0(ws@8.18.2)(zod@4.1.12))(ws@8.18.2))(openai@4.104.0(ws@8.18.2)(zod@4.1.12)):
10227
dependencies:
10233
- '@ai-sdk/openai': 2.0.35(zod@4.1.12)
10228
+ '@ai-sdk/openai': 2.0.42(zod@4.1.12)
10229
'@cloudflare/workers-types': 4.20250917.0
10230
'@composio/mcp': 1.0.3-0
10231
'@hey-api/client-axios': 0.2.12(axios@1.10.0)
@@ -10249,7 +10244,7 @@ snapshots:
10244
resolve-package-path: 4.0.3
10245
uuid: 10.0.0
10246
zod: 3.25.76
10252
- zod-to-json-schema: 3.24.6(zod@3.25.76)
10247
+ zod-to-json-schema: '@finom/zod-to-json-schema@3.24.11(zod@3.25.76)'
10248
transitivePeerDependencies:
10249
- debug
10250
@@ -11060,15 +11055,6 @@ snapshots:
11055
11056
help-me@5.0.0: {}
11057
11063
- hono-openapi@0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@3.25.76):
11064
- dependencies:
11065
- json-schema-walker: 2.0.0
11066
- openapi-types: 12.1.3
11067
- optionalDependencies:
11068
- effect: 3.16.16
11069
- hono: 4.9.7
11070
- zod: 3.25.76
11071
-
11058
hono-openapi@0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@4.1.12):
11059
dependencies:
11060
json-schema-walker: 2.0.0
@@ -11209,6 +11195,8 @@ snapshots:
11195
11196
is-natural-number@4.0.1: {}
11197
11198
+ is-network-error@1.3.0: {}
11199
+
11200
is-number@7.0.0: {}
11201
11202
is-promise@4.0.0: {}
@@ -11377,7 +11365,7 @@ snapshots:
11365
optionalDependencies:
11366
openai: 4.104.0(ws@8.18.2)(zod@4.1.12)
11367
11380
- langsmith@0.3.33(openai@6.7.0(ws@8.18.2)(zod@3.25.76)):
11368
+ langsmith@0.3.33(openai@6.7.0(ws@8.18.2)(zod@4.1.12)):
11369
dependencies:
11370
'@types/uuid': 10.0.0
11371
chalk: 4.1.2
@@ -11387,7 +11375,7 @@ snapshots:
11375
semver: 7.7.2
11376
uuid: 10.0.0
11377
optionalDependencies:
11390
- openai: 6.7.0(ws@8.18.2)(zod@3.25.76)
11378
+ openai: 6.7.0(ws@8.18.2)(zod@4.1.12)
11379
11380
langsmith@0.3.68(@opentelemetry/api@1.9.0)(@opentelemetry/exporter-trace-otlp-proto@0.203.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@2.0.1(@opentelemetry/api@1.9.0))(openai@4.104.0(ws@8.18.2)(zod@4.1.12)):
11381
dependencies:
@@ -11465,28 +11453,6 @@ snapshots:
11453
- web-tree-sitter
11454
- zod
11455
11468
- llamaindex@0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76):
11469
- dependencies:
11470
- '@llamaindex/core': 0.6.22
11471
- '@llamaindex/env': 0.1.30
11472
- '@llamaindex/node-parser': 2.0.22(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)
11473
- '@llamaindex/workflow': 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@3.25.76)
11474
- '@types/lodash': 4.17.20
11475
- '@types/node': 24.6.2
11476
- lodash: 4.17.21
11477
- magic-bytes.js: 1.12.1
11478
- transitivePeerDependencies:
11479
- - '@huggingface/transformers'
11480
- - '@modelcontextprotocol/sdk'
11481
- - gpt-tokenizer
11482
- - hono
11483
- - next
11484
- - p-retry
11485
- - rxjs
11486
- - tree-sitter
11487
- - web-tree-sitter
11488
- - zod
11489
-
11456
load-tsconfig@0.2.5: {}
11457
11458
locate-path@5.0.0:
@@ -11822,10 +11788,15 @@ snapshots:
11788
ws: 8.18.2
11789
zod: 3.25.76
11790
11825
- openai@5.19.1(ws@8.18.2)(zod@3.25.76):
11791
+ openai@5.16.0(ws@8.18.2)(zod@4.1.12):
11792
optionalDependencies:
11793
ws: 8.18.2
11828
- zod: 3.25.76
11794
+ zod: 4.1.12
11795
+
11796
+ openai@5.19.1(ws@8.18.2)(zod@4.1.12):
11797
+ optionalDependencies:
11798
+ ws: 8.18.2
11799
+ zod: 4.1.12
11800
11801
openai@5.20.3(ws@8.18.2)(zod@3.25.76):
11802
optionalDependencies:
@@ -11837,16 +11808,11 @@ snapshots:
11808
ws: 8.18.2
11809
zod: 4.1.12
11810
11840
- openai@6.7.0(ws@8.18.2)(zod@3.25.76):
11841
- optionalDependencies:
11842
- ws: 8.18.2
11843
- zod: 3.25.76
11844
- optional: true
11845
-
11811
openai@6.7.0(ws@8.18.2)(zod@4.1.12):
11812
optionalDependencies:
11813
ws: 8.18.2
11814
zod: 4.1.12
11815
+ optional: true
11816
11817
openapi-types@12.1.3: {}
11818
@@ -11909,6 +11875,10 @@ snapshots:
11875
'@types/retry': 0.12.0
11876
retry: 0.13.1
11877
11878
+ p-retry@7.1.0:
11879
+ dependencies:
11880
+ is-network-error: 1.3.0
11881
+
11882
p-timeout@3.2.0:
11883
dependencies:
11884
p-finally: 1.0.0
@@ -13448,21 +13418,15 @@ snapshots:
13418
dependencies:
13419
zod: 4.1.12
13420
13451
- zod-to-json-schema@3.24.5(zod@3.25.76):
13452
- dependencies:
13453
- zod: 3.25.76
13454
-
13455
- zod-to-json-schema@3.24.5(zod@4.1.12):
13456
- dependencies:
13457
- zod: 4.1.12
13458
-
13421
zod-to-json-schema@3.24.6(zod@3.25.76):
13422
dependencies:
13423
zod: 3.25.76
13424
+ optional: true
13425
13426
zod-to-json-schema@3.24.6(zod@4.1.12):
13427
dependencies:
13428
zod: 4.1.12
13429
+ optional: true
13430
13431
zod@3.22.3: {}
13432
pnpm-workspace.yaml
+2
-1
@@ -2,6 +2,7 @@ packages:
2
- ts/packages/core
3
- ts/packages/cli
4
- ts/packages/json-schema-to-zod
5
+ - ts/packages/json-schema-to-zod/test/e2e/*
6
- ts/packages/providers/*
7
- ts/packages/ts-builders
8
- ts/packages/wrappers/*
@@ -23,7 +24,7 @@ catalog:
24
uuid: ^13.0.0
25
vitest: ^3.2.4
26
wrangler: ^4.37.0
26
- zod: 3.25.76
27
+ zod: ^4.1.0
28
29
minimumReleaseAge: 1440
30
ts/packages/core/src/models/CustomTools.ts
+2
-2
@@ -81,9 +81,9 @@ export class CustomTools {
81
throw new Error('Invalid tool options');
82
}
83
// generate the input parameters schema
84
- const paramsSchema: InputParamsSchema = (await zodToJsonSchema(inputParams, {
84
+ const paramsSchema: InputParamsSchema = zodToJsonSchema(inputParams, {
85
name: 'input',
86
- })) as InputParamsSchema;
86
+ }) as InputParamsSchema;
87
const paramsSchemaJson = paramsSchema.definitions.input;
88
const toolSchema: Tool = {
89
name: name,
ts/packages/json-schema-to-zod/eslint.config.mjs
+5
-5
@@ -1,6 +1,6 @@
1
module.exports = {
2
- extends: ['../../.eslintrc.cjs'],
3
- // parserOptions: {
4
- // project: ['./tsconfig.json'],
5
- // },
6
-}
2
+ extends: ['../../.eslintrc.cjs'],
3
+ // parserOptions: {
4
+ // project: ['./tsconfig.json'],
5
+ // },
6
+};
ts/packages/json-schema-to-zod/package.json
+5
-3
@@ -23,7 +23,10 @@
23
"scripts": {
24
"clean": "git clean -xdf node_modules",
25
"build": "tsup",
26
- "test": "vitest run"
26
+ "test": "vitest run",
27
+ "typecheck:src": "tsc --noEmit -p ./tsconfig.src.json",
28
+ "typecheck:test": "tsc --noEmit -p ./tsconfig.test.json",
29
+ "typecheck": "pnpm run typecheck:src && pnpm run typecheck:test"
30
},
31
"keywords": [],
32
"author": "",
@@ -35,10 +38,9 @@
38
"tsup": "catalog:",
39
"typescript": "catalog:",
40
"vitest": "catalog:",
38
- "zod-to-json-schema": "^3.24.5",
41
"zod": "catalog:"
42
},
43
"peerDependencies": {
42
- "zod": ">=3.25.76 <5"
44
+ "zod": ">=3.25.76 <4 || >=4.1 <5"
45
}
46
}
ts/packages/json-schema-to-zod/src/parsers/parse-schema.ts
+7
-1
@@ -65,7 +65,13 @@ const addDefaults = (
65
const inAnyOfOrOneOf = refs?.path.some(segment => segment === 'anyOf' || segment === 'oneOf');
66
67
// If we're in anyOf/oneOf and this is a non-nullable type, skip the default
68
- if (inAnyOfOrOneOf && jsonSchema.type && jsonSchema.type !== 'null' && !jsonSchema.nullable) {
68
+ if (
69
+ inAnyOfOrOneOf &&
70
+ jsonSchema.type &&
71
+ jsonSchema.type !== 'null' &&
72
+ // @ts-ignore: `nullable` is not publicly available in Zod 4
73
+ !jsonSchema.nullable
74
+ ) {
75
return zodSchema;
76
}
77
}
ts/packages/json-schema-to-zod/src/utils/half.ts
+1
-1
@@ -1,3 +1,3 @@
1
export const half = <T>(arr: T[]): [T[], T[]] => {
2
- return [arr.slice(0, arr.length / 2), arr.slice(arr.length / 2)];
2
+ return [arr.slice(0, arr.length / 2), arr.slice(arr.length / 2)];
3
};
ts/packages/json-schema-to-zod/src/utils/omit.ts
+6
-6
@@ -1,8 +1,8 @@
1
export const omit = <T extends object, K extends keyof T>(obj: T, ...keys: K[]): Omit<T, K> =>
2
- Object.keys(obj).reduce((acc: Record<string, unknown>, key) => {
3
- if (!keys.includes(key as K)) {
4
- acc[key] = obj[key as K];
5
- }
2
+ Object.keys(obj).reduce((acc: Record<string, unknown>, key) => {
3
+ if (!keys.includes(key as K)) {
4
+ acc[key] = obj[key as K];
5
+ }
6
7
- return acc;
8
- }, {}) as Omit<T, K>;
7
+ return acc;
8
+ }, {}) as Omit<T, K>;
ts/packages/json-schema-to-zod/test/comprehensive-edge-case-tests.ts
+1
-10
@@ -1,5 +1,4 @@
1
import { jsonSchemaToZod } from '../src/json-schema-to-zod';
2
-import zodToJsonSchema from 'zod-to-json-schema';
2
import type { JsonSchema } from '../src/types';
3
4
console.log('=== Testing Complex Schema Edge Cases ===\n');
@@ -52,7 +51,7 @@ console.log('Original schema:');
51
console.log(JSON.stringify(originalAnyOfSchema, null, 2));
52
53
const zodSchema1 = jsonSchemaToZod(originalAnyOfSchema);
55
-const backToJson1 = zodToJsonSchema(zodSchema1, { target: 'jsonSchema7' });
54
+const backToJson1 = {}; // zodToJsonSchema removed - no longer compatible with zod v4
55
56
console.log('\nConverted back to JSON:');
57
console.log(JSON.stringify(backToJson1, null, 2));
@@ -130,10 +129,6 @@ console.log('Original schema:');
129
console.log(JSON.stringify(arrayUnionSchema, null, 2));
130
131
const zodSchema2 = jsonSchemaToZod(arrayUnionSchema);
133
-const backToJson2 = zodToJsonSchema(zodSchema2, { target: 'jsonSchema7' });
134
-
135
-console.log('\nConverted back to JSON:');
136
-console.log(JSON.stringify(backToJson2, null, 2));
132
133
console.log('\nTesting parsing:');
134
try {
@@ -229,10 +224,6 @@ console.log('Original schema:');
224
console.log(JSON.stringify(complexNestedSchema, null, 2));
225
226
const zodSchema3 = jsonSchemaToZod(complexNestedSchema);
232
-const backToJson3 = zodToJsonSchema(zodSchema3, { target: 'jsonSchema7' });
233
-
234
-console.log('\nConverted back to JSON:');
235
-console.log(JSON.stringify(backToJson3, null, 2));
227
228
console.log('\nTesting parsing:');
229
try {
ts/packages/json-schema-to-zod/test/e2e/.gitignore
new
+1
@@ -0,0 +1 @@
1
+node_modules/
ts/packages/json-schema-to-zod/test/e2e/README.md
new
+8
@@ -0,0 +1,8 @@
1
+# E2E Tests
2
+
3
+End-to-end tests that verify `@composio/json-schema-to-zod` works correctly with different versions of zod.
4
+
5
+## Structure
6
+
7
+- `zod-v3/` - Tests with zod 3.25.76 and `zod-to-json-schema` for round-trip conversion
8
+- `zod-v4/` - Tests with zod ^4.0.0 and native `z.toJSONSchema()` for validation
ts/packages/json-schema-to-zod/test/e2e/zod-v3/basic.test.ts
new
+102
@@ -0,0 +1,102 @@
1
+import { describe, it, expect } from 'vitest';
2
+import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
3
+import type { JsonSchema } from '@composio/json-schema-to-zod';
4
+
5
+describe('E2E with Zod v3 - Basic functionality', () => {
6
+ it('should convert basic string schema', () => {
7
+ const schema: JsonSchema = { type: 'string' };
8
+ const zodSchema = jsonSchemaToZod(schema);
9
+
10
+ // Note: instanceof check doesn't work reliably across zod versions
11
+ expect(zodSchema.parse('hello')).toBe('hello');
12
+ expect(() => zodSchema.parse(123)).toThrow();
13
+ });
14
+
15
+ it('should convert object schema with validation', () => {
16
+ const schema: JsonSchema = {
17
+ type: 'object',
18
+ properties: {
19
+ name: { type: 'string' },
20
+ age: { type: 'number', minimum: 0 },
21
+ },
22
+ required: ['name'],
23
+ };
24
+ const zodSchema = jsonSchemaToZod(schema);
25
+
26
+ expect(zodSchema.parse({ name: 'John', age: 30 })).toEqual({ name: 'John', age: 30 });
27
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
28
+ expect(() => zodSchema.parse({ age: 30 })).toThrow();
29
+ });
30
+
31
+ it('should convert array schema', () => {
32
+ const schema: JsonSchema = {
33
+ type: 'array',
34
+ items: { type: 'string' },
35
+ };
36
+ const zodSchema = jsonSchemaToZod(schema);
37
+
38
+ expect(zodSchema.parse(['one', 'two', 'three'])).toEqual(['one', 'two', 'three']);
39
+ expect(() => zodSchema.parse(['one', 2])).toThrow();
40
+ });
41
+
42
+ it('should validate email format', () => {
43
+ const schema: JsonSchema = {
44
+ type: 'string',
45
+ format: 'email',
46
+ };
47
+ const zodSchema = jsonSchemaToZod(schema);
48
+
49
+ expect(zodSchema.parse('test@example.com')).toBe('test@example.com');
50
+ expect(() => zodSchema.parse('invalid-email')).toThrow();
51
+ });
52
+
53
+ it('should handle complex nested schemas', () => {
54
+ const schema: JsonSchema = {
55
+ type: 'object',
56
+ properties: {
57
+ user: {
58
+ type: 'object',
59
+ properties: {
60
+ name: { type: 'string' },
61
+ contacts: {
62
+ type: 'array',
63
+ items: {
64
+ type: 'object',
65
+ properties: {
66
+ type: { type: 'string' },
67
+ value: { type: 'string' },
68
+ },
69
+ required: ['type', 'value'],
70
+ },
71
+ },
72
+ },
73
+ required: ['name'],
74
+ },
75
+ },
76
+ required: ['user'],
77
+ };
78
+ const zodSchema = jsonSchemaToZod(schema);
79
+
80
+ const validData = {
81
+ user: {
82
+ name: 'Jane Doe',
83
+ contacts: [
84
+ { type: 'email', value: 'jane@example.com' },
85
+ { type: 'phone', value: '555-1234' },
86
+ ],
87
+ },
88
+ };
89
+ expect(zodSchema.parse(validData)).toEqual(validData);
90
+ });
91
+
92
+ it('should handle anyOf schemas', () => {
93
+ const schema: JsonSchema = {
94
+ anyOf: [{ type: 'string' }, { type: 'number' }],
95
+ };
96
+ const zodSchema = jsonSchemaToZod(schema);
97
+
98
+ expect(zodSchema.parse('hello')).toBe('hello');
99
+ expect(zodSchema.parse(42)).toBe(42);
100
+ expect(() => zodSchema.parse(true)).toThrow();
101
+ });
102
+});
ts/packages/json-schema-to-zod/test/e2e/zod-v3/package.json
new
+17
@@ -0,0 +1,17 @@
1
+{
2
+ "name": "@test-e2e/json-schema-to-zod-e2e-zod-v3",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "test": "vitest run"
8
+ },
9
+ "dependencies": {
10
+ "@composio/json-schema-to-zod": "workspace:*",
11
+ "zod": "3.25.76",
12
+ "zod-to-json-schema": "^3.24.5"
13
+ },
14
+ "devDependencies": {
15
+ "vitest": "catalog:"
16
+ }
17
+}
ts/packages/json-schema-to-zod/test/e2e/zod-v3/round-trip.test.ts
new
+173
@@ -0,0 +1,173 @@
1
+import { describe, it, expect } from 'vitest';
2
+import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
3
+import zodToJsonSchema from 'zod-to-json-schema';
4
+import type { JsonSchema } from '@composio/json-schema-to-zod';
5
+
6
+describe('E2E with Zod v3 - Round-trip conversion', () => {
7
+ const testRoundTrip = (originalSchema: JsonSchema, expectedAdditionalProperties: any) => {
8
+ const zodSchema = jsonSchemaToZod(originalSchema);
9
+ const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
10
+
11
+ const { $schema, ...cleanConverted } = convertedBack;
12
+
13
+ return {
14
+ zodSchema,
15
+ convertedBack: cleanConverted,
16
+ additionalPropertiesMatch:
17
+ convertedBack.additionalProperties === expectedAdditionalProperties,
18
+ };
19
+ };
20
+
21
+ it('should preserve additionalProperties: true for empty objects', () => {
22
+ const schema: JsonSchema = {
23
+ type: 'object',
24
+ additionalProperties: true,
25
+ };
26
+
27
+ const { zodSchema, convertedBack, additionalPropertiesMatch } = testRoundTrip(schema, true);
28
+
29
+ expect(additionalPropertiesMatch).toBe(true);
30
+ expect(convertedBack.additionalProperties).toBe(true);
31
+ expect(convertedBack.type).toBe('object');
32
+ expect(convertedBack.properties).toEqual({});
33
+
34
+ expect(zodSchema.parse({})).toEqual({});
35
+ expect(zodSchema.parse({ any: 'value', number: 123 })).toEqual({ any: 'value', number: 123 });
36
+ });
37
+
38
+ it('should preserve additionalProperties: true for objects with properties', () => {
39
+ const schema: JsonSchema = {
40
+ type: 'object',
41
+ properties: {
42
+ name: { type: 'string' },
43
+ age: { type: 'number' },
44
+ },
45
+ required: ['name'],
46
+ additionalProperties: true,
47
+ };
48
+
49
+ const { zodSchema, convertedBack, additionalPropertiesMatch } = testRoundTrip(schema, true);
50
+
51
+ expect(additionalPropertiesMatch).toBe(true);
52
+ expect(convertedBack.additionalProperties).toBe(true);
53
+ expect(convertedBack.properties).toBeDefined();
54
+ expect(convertedBack.required).toEqual(['name']);
55
+
56
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
57
+ expect(zodSchema.parse({ name: 'John', age: 30, extra: 'field' })).toEqual({
58
+ name: 'John',
59
+ age: 30,
60
+ extra: 'field',
61
+ });
62
+ });
63
+
64
+ it('should preserve additionalProperties: false for empty objects', () => {
65
+ const schema: JsonSchema = {
66
+ type: 'object',
67
+ additionalProperties: false,
68
+ };
69
+
70
+ const zodSchema = jsonSchemaToZod(schema);
71
+ const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
72
+
73
+ // zod-to-json-schema may convert z.object({}).strict() to { not: {} }
74
+ // which is semantically equivalent to additionalProperties: false
75
+ expect(
76
+ convertedBack.additionalProperties === false ||
77
+ (convertedBack.not && typeof convertedBack.not === 'object')
78
+ ).toBe(true);
79
+ expect(convertedBack.type).toBe('object');
80
+
81
+ expect(zodSchema.parse({})).toEqual({});
82
+ expect(() => zodSchema.parse({ extra: 'field' })).toThrow();
83
+ });
84
+
85
+ it('should preserve additionalProperties: false for objects with properties', () => {
86
+ const schema: JsonSchema = {
87
+ type: 'object',
88
+ properties: {
89
+ name: { type: 'string' },
90
+ },
91
+ additionalProperties: false,
92
+ };
93
+
94
+ const zodSchema = jsonSchemaToZod(schema);
95
+ const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
96
+
97
+ expect(convertedBack.additionalProperties).toBe(false);
98
+ expect(convertedBack.properties).toBeDefined();
99
+
100
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
101
+ expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
102
+ });
103
+
104
+ it('should handle additionalProperties with type schema', () => {
105
+ const schema: JsonSchema = {
106
+ type: 'object',
107
+ properties: {
108
+ name: { type: 'string' },
109
+ },
110
+ additionalProperties: { type: 'number' },
111
+ };
112
+
113
+ const zodSchema = jsonSchemaToZod(schema);
114
+ const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
115
+
116
+ expect(convertedBack.additionalProperties).toEqual({ type: 'number' });
117
+ expect(convertedBack.properties).toBeDefined();
118
+
119
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
120
+ expect(zodSchema.parse({ name: 'John', age: 30 })).toEqual({ name: 'John', age: 30 });
121
+ expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
122
+ });
123
+
124
+ it('should handle nested objects with different additionalProperties settings', () => {
125
+ const schema: JsonSchema = {
126
+ type: 'object',
127
+ properties: {
128
+ strictChild: {
129
+ type: 'object',
130
+ properties: {
131
+ name: { type: 'string' },
132
+ },
133
+ additionalProperties: false,
134
+ },
135
+ flexibleChild: {
136
+ type: 'object',
137
+ properties: {
138
+ age: { type: 'number' },
139
+ },
140
+ additionalProperties: true,
141
+ },
142
+ },
143
+ additionalProperties: { type: 'string' },
144
+ };
145
+
146
+ const zodSchema = jsonSchemaToZod(schema);
147
+ const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
148
+
149
+ expect(convertedBack.additionalProperties).toEqual({ type: 'string' });
150
+ expect(convertedBack.properties?.strictChild).toBeDefined();
151
+ expect(convertedBack.properties?.flexibleChild).toBeDefined();
152
+
153
+ const validData = {
154
+ strictChild: { name: 'John' },
155
+ flexibleChild: { age: 30, extra: 'allowed' },
156
+ extraString: 'this should be a string',
157
+ };
158
+ expect(zodSchema.parse(validData)).toEqual(validData);
159
+
160
+ // Test invalid cases
161
+ expect(() =>
162
+ zodSchema.parse({
163
+ strictChild: { name: 'John', extra: 'not allowed' },
164
+ })
165
+ ).toThrow();
166
+
167
+ expect(() =>
168
+ zodSchema.parse({
169
+ extraNumber: 123, // should be string according to additionalProperties
170
+ })
171
+ ).toThrow();
172
+ });
173
+});
ts/packages/json-schema-to-zod/test/e2e/zod-v4/basic.test.ts
new
+102
@@ -0,0 +1,102 @@
1
+import { describe, it, expect } from 'vitest';
2
+import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
3
+import type { JsonSchema } from '@composio/json-schema-to-zod';
4
+
5
+describe('E2E with Zod v4 - Basic functionality', () => {
6
+ it('should convert basic string schema', () => {
7
+ const schema: JsonSchema = { type: 'string' };
8
+ const zodSchema = jsonSchemaToZod(schema);
9
+
10
+ // Note: instanceof check doesn't work reliably across zod versions
11
+ expect(zodSchema.parse('hello')).toBe('hello');
12
+ expect(() => zodSchema.parse(123)).toThrow();
13
+ });
14
+
15
+ it('should convert object schema with validation', () => {
16
+ const schema: JsonSchema = {
17
+ type: 'object',
18
+ properties: {
19
+ name: { type: 'string' },
20
+ age: { type: 'number', minimum: 0 },
21
+ },
22
+ required: ['name'],
23
+ };
24
+ const zodSchema = jsonSchemaToZod(schema);
25
+
26
+ expect(zodSchema.parse({ name: 'John', age: 30 })).toEqual({ name: 'John', age: 30 });
27
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
28
+ expect(() => zodSchema.parse({ age: 30 })).toThrow();
29
+ });
30
+
31
+ it('should convert array schema', () => {
32
+ const schema: JsonSchema = {
33
+ type: 'array',
34
+ items: { type: 'string' },
35
+ };
36
+ const zodSchema = jsonSchemaToZod(schema);
37
+
38
+ expect(zodSchema.parse(['one', 'two', 'three'])).toEqual(['one', 'two', 'three']);
39
+ expect(() => zodSchema.parse(['one', 2])).toThrow();
40
+ });
41
+
42
+ it('should validate email format', () => {
43
+ const schema: JsonSchema = {
44
+ type: 'string',
45
+ format: 'email',
46
+ };
47
+ const zodSchema = jsonSchemaToZod(schema);
48
+
49
+ expect(zodSchema.parse('test@example.com')).toBe('test@example.com');
50
+ expect(() => zodSchema.parse('invalid-email')).toThrow();
51
+ });
52
+
53
+ it('should handle complex nested schemas', () => {
54
+ const schema: JsonSchema = {
55
+ type: 'object',
56
+ properties: {
57
+ user: {
58
+ type: 'object',
59
+ properties: {
60
+ name: { type: 'string' },
61
+ contacts: {
62
+ type: 'array',
63
+ items: {
64
+ type: 'object',
65
+ properties: {
66
+ type: { type: 'string' },
67
+ value: { type: 'string' },
68
+ },
69
+ required: ['type', 'value'],
70
+ },
71
+ },
72
+ },
73
+ required: ['name'],
74
+ },
75
+ },
76
+ required: ['user'],
77
+ };
78
+ const zodSchema = jsonSchemaToZod(schema);
79
+
80
+ const validData = {
81
+ user: {
82
+ name: 'Jane Doe',
83
+ contacts: [
84
+ { type: 'email', value: 'jane@example.com' },
85
+ { type: 'phone', value: '555-1234' },
86
+ ],
87
+ },
88
+ };
89
+ expect(zodSchema.parse(validData)).toEqual(validData);
90
+ });
91
+
92
+ it('should handle anyOf schemas', () => {
93
+ const schema: JsonSchema = {
94
+ anyOf: [{ type: 'string' }, { type: 'number' }],
95
+ };
96
+ const zodSchema = jsonSchemaToZod(schema);
97
+
98
+ expect(zodSchema.parse('hello')).toBe('hello');
99
+ expect(zodSchema.parse(42)).toBe(42);
100
+ expect(() => zodSchema.parse(true)).toThrow();
101
+ });
102
+});
ts/packages/json-schema-to-zod/test/e2e/zod-v4/package.json
new
+16
@@ -0,0 +1,16 @@
1
+{
2
+ "name": "@test-e2e/json-schema-to-zod-e2e-zod-v4",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "test": "vitest run"
8
+ },
9
+ "dependencies": {
10
+ "@composio/json-schema-to-zod": "workspace:*",
11
+ "zod": "^4.1.0"
12
+ },
13
+ "devDependencies": {
14
+ "vitest": "catalog:"
15
+ }
16
+}
ts/packages/json-schema-to-zod/test/e2e/zod-v4/round-trip.test.ts
new
+166
@@ -0,0 +1,166 @@
1
+import { describe, it, expect } from 'vitest';
2
+import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
3
+import type { JsonSchema } from '@composio/json-schema-to-zod';
4
+
5
+describe('E2E with Zod v4 - Round-trip conversion with native toJSONSchema', () => {
6
+ it('should convert basic schemas and verify parsing behavior', () => {
7
+ const schema: JsonSchema = {
8
+ type: 'object',
9
+ properties: {
10
+ name: { type: 'string' },
11
+ age: { type: 'number' },
12
+ },
13
+ required: ['name'],
14
+ additionalProperties: false,
15
+ };
16
+
17
+ const zodSchema = jsonSchemaToZod(schema);
18
+
19
+ // Test parsing behavior
20
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
21
+ expect(zodSchema.parse({ name: 'John', age: 30 })).toEqual({ name: 'John', age: 30 });
22
+ expect(() => zodSchema.parse({ age: 30 })).toThrow();
23
+ expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
24
+ });
25
+
26
+ it('should handle additionalProperties: true', () => {
27
+ const schema: JsonSchema = {
28
+ type: 'object',
29
+ properties: {
30
+ name: { type: 'string' },
31
+ },
32
+ additionalProperties: true,
33
+ };
34
+
35
+ const zodSchema = jsonSchemaToZod(schema);
36
+
37
+ // Test parsing behavior
38
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
39
+ expect(zodSchema.parse({ name: 'John', extra: 'allowed', another: 123 })).toEqual({
40
+ name: 'John',
41
+ extra: 'allowed',
42
+ another: 123,
43
+ });
44
+ });
45
+
46
+ it('should handle additionalProperties with type constraint', () => {
47
+ const schema: JsonSchema = {
48
+ type: 'object',
49
+ properties: {
50
+ name: { type: 'string' },
51
+ },
52
+ additionalProperties: { type: 'number' },
53
+ };
54
+
55
+ const zodSchema = jsonSchemaToZod(schema);
56
+
57
+ // Test parsing behavior
58
+ expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
59
+ expect(zodSchema.parse({ name: 'John', age: 30, count: 5 })).toEqual({
60
+ name: 'John',
61
+ age: 30,
62
+ count: 5,
63
+ });
64
+ expect(() => zodSchema.parse({ name: 'John', extra: 'string' })).toThrow();
65
+ });
66
+
67
+ it('should handle nested objects with different additionalProperties settings', () => {
68
+ const schema: JsonSchema = {
69
+ type: 'object',
70
+ properties: {
71
+ strictChild: {
72
+ type: 'object',
73
+ properties: {
74
+ name: { type: 'string' },
75
+ },
76
+ additionalProperties: false,
77
+ },
78
+ flexibleChild: {
79
+ type: 'object',
80
+ properties: {
81
+ age: { type: 'number' },
82
+ },
83
+ additionalProperties: true,
84
+ },
85
+ },
86
+ additionalProperties: { type: 'string' },
87
+ };
88
+
89
+ const zodSchema = jsonSchemaToZod(schema);
90
+
91
+ // Test parsing behavior
92
+ const validData = {
93
+ strictChild: { name: 'John' },
94
+ flexibleChild: { age: 30, extra: 'allowed' },
95
+ extraString: 'this should be a string',
96
+ };
97
+ expect(zodSchema.parse(validData)).toEqual(validData);
98
+
99
+ // Test invalid cases
100
+ expect(() =>
101
+ zodSchema.parse({
102
+ strictChild: { name: 'John', extra: 'not allowed' },
103
+ })
104
+ ).toThrow();
105
+
106
+ expect(() =>
107
+ zodSchema.parse({
108
+ extraNumber: 123, // should be string according to additionalProperties
109
+ })
110
+ ).toThrow();
111
+ });
112
+
113
+ it('should handle complex nested arrays', () => {
114
+ const schema: JsonSchema = {
115
+ type: 'array',
116
+ items: {
117
+ type: 'object',
118
+ properties: {
119
+ id: { type: 'number' },
120
+ tags: {
121
+ type: 'array',
122
+ items: { type: 'string' },
123
+ },
124
+ },
125
+ required: ['id'],
126
+ },
127
+ };
128
+
129
+ const zodSchema = jsonSchemaToZod(schema);
130
+
131
+ const validData = [{ id: 1, tags: ['a', 'b'] }, { id: 2, tags: ['c'] }, { id: 3 }];
132
+ expect(zodSchema.parse(validData)).toEqual(validData);
133
+
134
+ expect(() =>
135
+ zodSchema.parse([
136
+ { tags: ['a', 'b'] }, // missing required id
137
+ ])
138
+ ).toThrow();
139
+ });
140
+
141
+ it('should handle union types with anyOf', () => {
142
+ const schema: JsonSchema = {
143
+ anyOf: [
144
+ { type: 'string', minLength: 3 },
145
+ { type: 'number', minimum: 0 },
146
+ {
147
+ type: 'object',
148
+ properties: {
149
+ type: { type: 'string' },
150
+ },
151
+ required: ['type'],
152
+ },
153
+ ],
154
+ };
155
+
156
+ const zodSchema = jsonSchemaToZod(schema);
157
+
158
+ expect(zodSchema.parse('hello')).toBe('hello');
159
+ expect(zodSchema.parse(42)).toBe(42);
160
+ expect(zodSchema.parse({ type: 'custom' })).toEqual({ type: 'custom' });
161
+
162
+ expect(() => zodSchema.parse('ab')).toThrow(); // too short
163
+ expect(() => zodSchema.parse(-1)).toThrow(); // negative
164
+ expect(() => zodSchema.parse({ foo: 'bar' })).toThrow(); // missing required type
165
+ });
166
+});
ts/packages/json-schema-to-zod/test/json-to-zod.test.ts
-278
@@ -1,6 +1,5 @@
1
import { describe, it, expect } from 'vitest';
2
import { z } from 'zod/v3';
3
-import zodToJsonSchema from 'zod-to-json-schema';
3
import { jsonSchemaToZod } from '../src/json-schema-to-zod';
4
import type { JsonSchema } from '../src/types';
5
@@ -1110,283 +1109,6 @@ describe('jsonSchemaToZod', () => {
1109
});
1110
});
1111
1113
- describe('AdditionalProperties Round-Trip Conversion', () => {
1114
- // Helper function to test round-trip conversion
1115
- const testRoundTrip = (originalSchema: JsonSchema, expectedAdditionalProperties: any) => {
1116
- const zodSchema = jsonSchemaToZod(originalSchema);
1117
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1118
-
1119
- // Remove $schema field for comparison
1120
- const { $schema, ...cleanConverted } = convertedBack;
1121
-
1122
- return {
1123
- zodSchema,
1124
- convertedBack: cleanConverted,
1125
- additionalPropertiesMatch:
1126
- convertedBack.additionalProperties === expectedAdditionalProperties,
1127
- };
1128
- };
1129
-
1130
- it('should preserve additionalProperties: true for empty objects', () => {
1131
- const schema: JsonSchema = {
1132
- type: 'object',
1133
- additionalProperties: true,
1134
- };
1135
-
1136
- const { zodSchema, convertedBack, additionalPropertiesMatch } = testRoundTrip(schema, true);
1137
-
1138
- expect(additionalPropertiesMatch).toBe(true);
1139
- expect(convertedBack.additionalProperties).toBe(true);
1140
- expect(convertedBack.type).toBe('object');
1141
- expect(convertedBack.properties).toEqual({});
1142
-
1143
- // Test parsing behavior
1144
- expect(zodSchema.parse({})).toEqual({});
1145
- expect(zodSchema.parse({ any: 'value', number: 123 })).toEqual({ any: 'value', number: 123 });
1146
- });
1147
-
1148
- it('should preserve additionalProperties: true for objects with properties', () => {
1149
- const schema: JsonSchema = {
1150
- type: 'object',
1151
- properties: {
1152
- name: { type: 'string' },
1153
- age: { type: 'number' },
1154
- },
1155
- required: ['name'],
1156
- additionalProperties: true,
1157
- };
1158
-
1159
- const { zodSchema, convertedBack, additionalPropertiesMatch } = testRoundTrip(schema, true);
1160
-
1161
- expect(additionalPropertiesMatch).toBe(true);
1162
- expect(convertedBack.additionalProperties).toBe(true);
1163
- expect(convertedBack.properties).toBeDefined();
1164
- expect(convertedBack.required).toEqual(['name']);
1165
-
1166
- // Test parsing behavior
1167
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1168
- expect(zodSchema.parse({ name: 'John', age: 30, extra: 'field' })).toEqual({
1169
- name: 'John',
1170
- age: 30,
1171
- extra: 'field',
1172
- });
1173
- });
1174
-
1175
- it('should preserve additionalProperties: false for empty objects', () => {
1176
- const schema: JsonSchema = {
1177
- type: 'object',
1178
- additionalProperties: false,
1179
- };
1180
-
1181
- const zodSchema = jsonSchemaToZod(schema);
1182
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1183
-
1184
- // Note: zod-to-json-schema may convert z.object({}).strict() to { not: {} }
1185
- // which is semantically equivalent to additionalProperties: false
1186
- expect(
1187
- convertedBack.additionalProperties === false ||
1188
- (convertedBack.not && typeof convertedBack.not === 'object')
1189
- ).toBe(true);
1190
- expect(convertedBack.type).toBe('object');
1191
-
1192
- // Test parsing behavior - this is the most important part
1193
- expect(zodSchema.parse({})).toEqual({});
1194
- expect(() => zodSchema.parse({ extra: 'field' })).toThrow();
1195
- });
1196
-
1197
- it('should preserve additionalProperties: false for objects with properties', () => {
1198
- const schema: JsonSchema = {
1199
- type: 'object',
1200
- properties: {
1201
- name: { type: 'string' },
1202
- },
1203
- additionalProperties: false,
1204
- };
1205
-
1206
- const zodSchema = jsonSchemaToZod(schema);
1207
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1208
-
1209
- expect(convertedBack.additionalProperties).toBe(false);
1210
- expect(convertedBack.properties).toBeDefined();
1211
-
1212
- // Test parsing behavior
1213
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1214
- expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
1215
- });
1216
-
1217
- it('should handle additionalProperties with empty schema {}', () => {
1218
- const schema: JsonSchema = {
1219
- type: 'object',
1220
- properties: {
1221
- name: { type: 'string' },
1222
- },
1223
- additionalProperties: {},
1224
- };
1225
-
1226
- const zodSchema = jsonSchemaToZod(schema);
1227
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1228
-
1229
- // Empty schema {} should remain as {} (not become true)
1230
- expect(convertedBack.additionalProperties).toEqual({});
1231
- expect(convertedBack.properties).toBeDefined();
1232
-
1233
- // Test parsing behavior - should allow any additional properties
1234
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1235
- expect(zodSchema.parse({ name: 'John', extra: 'field', number: 123 })).toEqual({
1236
- name: 'John',
1237
- extra: 'field',
1238
- number: 123,
1239
- });
1240
- });
1241
-
1242
- it('should handle additionalProperties with type schema', () => {
1243
- const schema: JsonSchema = {
1244
- type: 'object',
1245
- properties: {
1246
- name: { type: 'string' },
1247
- },
1248
- additionalProperties: { type: 'number' },
1249
- };
1250
-
1251
- const zodSchema = jsonSchemaToZod(schema);
1252
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1253
-
1254
- expect(convertedBack.additionalProperties).toEqual({ type: 'number' });
1255
- expect(convertedBack.properties).toBeDefined();
1256
-
1257
- // Test parsing behavior
1258
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1259
- expect(zodSchema.parse({ name: 'John', age: 30 })).toEqual({ name: 'John', age: 30 });
1260
- expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
1261
- });
1262
-
1263
- it('should handle additionalProperties with complex schema', () => {
1264
- const schema: JsonSchema = {
1265
- type: 'object',
1266
- properties: {
1267
- name: { type: 'string' },
1268
- },
1269
- additionalProperties: {
1270
- type: 'object',
1271
- properties: {
1272
- value: { type: 'string' },
1273
- count: { type: 'number' },
1274
- },
1275
- required: ['value'],
1276
- },
1277
- };
1278
-
1279
- const zodSchema = jsonSchemaToZod(schema);
1280
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1281
-
1282
- expect(convertedBack.additionalProperties).toEqual({
1283
- type: 'object',
1284
- properties: {
1285
- value: { type: 'string' },
1286
- count: { type: 'number' },
1287
- },
1288
- required: ['value'],
1289
- additionalProperties: false,
1290
- });
1291
-
1292
- // Test parsing behavior
1293
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1294
- expect(zodSchema.parse({ name: 'John', meta: { value: 'test', count: 5 } })).toEqual({
1295
- name: 'John',
1296
- meta: { value: 'test', count: 5 },
1297
- });
1298
- expect(() => zodSchema.parse({ name: 'John', meta: { count: 5 } })).toThrow(); // missing required 'value'
1299
- });
1300
-
1301
- it('should handle objects with no properties and additionalProperties undefined (default behavior)', () => {
1302
- const schema: JsonSchema = {
1303
- type: 'object',
1304
- };
1305
-
1306
- const zodSchema = jsonSchemaToZod(schema);
1307
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1308
-
1309
- // When additionalProperties is undefined, it should default to false behavior (strict)
1310
- expect(convertedBack.additionalProperties).toBe(false);
1311
- expect(convertedBack.type).toBe('object');
1312
-
1313
- // Test parsing behavior - should reject additional properties
1314
- expect(zodSchema.parse({})).toEqual({});
1315
- expect(() => zodSchema.parse({ any: 'value', number: 123 })).toThrow();
1316
- });
1317
-
1318
- it('should handle objects with properties and additionalProperties undefined (default behavior)', () => {
1319
- const schema: JsonSchema = {
1320
- type: 'object',
1321
- properties: {
1322
- name: { type: 'string' },
1323
- },
1324
- };
1325
-
1326
- const zodSchema = jsonSchemaToZod(schema);
1327
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1328
-
1329
- // When additionalProperties is undefined, it should default to false behavior (strict)
1330
- expect(convertedBack.additionalProperties).toBe(false);
1331
- expect(convertedBack.properties).toBeDefined();
1332
-
1333
- // Test parsing behavior - should reject additional properties
1334
- expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1335
- expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
1336
- });
1337
-
1338
- it('should handle nested objects with different additionalProperties settings', () => {
1339
- const schema: JsonSchema = {
1340
- type: 'object',
1341
- properties: {
1342
- strictChild: {
1343
- type: 'object',
1344
- properties: {
1345
- name: { type: 'string' },
1346
- },
1347
- additionalProperties: false,
1348
- },
1349
- flexibleChild: {
1350
- type: 'object',
1351
- properties: {
1352
- age: { type: 'number' },
1353
- },
1354
- additionalProperties: true,
1355
- },
1356
- },
1357
- additionalProperties: { type: 'string' },
1358
- };
1359
-
1360
- const zodSchema = jsonSchemaToZod(schema);
1361
- const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1362
-
1363
- expect(convertedBack.additionalProperties).toEqual({ type: 'string' });
1364
- expect(convertedBack.properties?.strictChild).toBeDefined();
1365
- expect(convertedBack.properties?.flexibleChild).toBeDefined();
1366
-
1367
- // Test parsing behavior
1368
- const validData = {
1369
- strictChild: { name: 'John' },
1370
- flexibleChild: { age: 30, extra: 'allowed' },
1371
- extraString: 'this should be a string',
1372
- };
1373
- expect(zodSchema.parse(validData)).toEqual(validData);
1374
-
1375
- // Test invalid cases
1376
- expect(() =>
1377
- zodSchema.parse({
1378
- strictChild: { name: 'John', extra: 'not allowed' },
1379
- })
1380
- ).toThrow();
1381
-
1382
- expect(() =>
1383
- zodSchema.parse({
1384
- extraNumber: 123, // should be string according to additionalProperties
1385
- })
1386
- ).toThrow();
1387
- });
1388
- });
1389
-
1112
describe('Object Detection Without Explicit Type', () => {
1113
it('should detect object schema with only properties defined', () => {
1114
const schema: JsonSchema = {
ts/packages/json-schema-to-zod/tsconfig.json
+4
-11
@@ -1,15 +1,8 @@
1
{
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.options.json",
4
"compilerOptions": {
3
- "target": "es2022",
4
- "module": "esnext",
5
- "declaration": true,
6
- "outDir": "./dist",
7
- "rootDir": "./src",
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "moduleResolution": "bundler",
11
- "skipLibCheck": true,
12
- "resolveJsonModule": true
5
+ "rootDir": "."
6
},
14
- "include": ["src"]
7
+ "include": ["src/**/*", "test/**/*", "package.json"]
8
}
ts/packages/json-schema-to-zod/tsconfig.options.json
new
+22
@@ -0,0 +1,22 @@
1
+{
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es2022",
5
+ "module": "es2022",
6
+ "lib": ["es2022", "DOM"],
7
+ "declaration": true,
8
+ "outDir": "./dist",
9
+ "rootDir": ".",
10
+ "strict": true,
11
+ "esModuleInterop": true,
12
+ "moduleResolution": "bundler",
13
+ "skipLibCheck": true,
14
+ "resolveJsonModule": true,
15
+ "pretty": true,
16
+ "noImplicitReturns": true,
17
+ "noFallthroughCasesInSwitch": true,
18
+ "noUnusedLocals": false,
19
+ "noUnusedParameters": false
20
+ },
21
+ "exclude": ["node_modules", "**/dist"]
22
+}
ts/packages/json-schema-to-zod/tsconfig.src.json
new
+11
@@ -0,0 +1,11 @@
1
+{
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.options.json",
4
+ "compilerOptions": {
5
+ "outDir": "./dist",
6
+ "rootDir": ".",
7
+ "baseUrl": "."
8
+ },
9
+ "include": ["src/**/*", "package.json"],
10
+ "exclude": ["node_modules", "../../../node_modules", "**/dist"]
11
+}
ts/packages/json-schema-to-zod/tsconfig.test.json
new
+10
@@ -0,0 +1,10 @@
1
+{
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.options.json",
4
+ "compilerOptions": {
5
+ "rootDir": ".",
6
+ "baseUrl": "."
7
+ },
8
+ "include": ["src/**/*", "test/**/*", "package.json"],
9
+ "exclude": ["node_modules", "../../../node_modules", "**/dist", "test/e2e", "test-sandboxes"]
10
+}
ts/packages/providers/mastra/package.json
+1
-1
@@ -35,7 +35,7 @@
35
"packageManager": "pnpm@10.17.0",
36
"peerDependencies": {
37
"@composio/core": "0.2.1",
38
- "@mastra/core": "^0.16.2",
38
+ "@mastra/core": "^0.21.1",
39
"@mastra/mcp": "^0.12.0"
40
},
41
"devDependencies": {