@devries-cameron20 / composio Mirror · read-only / commits / da5777128
Fork 0

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, 22:00 UTC

feat: enhance tool validation to include authConfigIds (#1743)

Himanshu Dixit committed Jul 10, 2025 at 13:43 UTC da577712844da380e1dbc3406807ccbeddf8b9b5
4 files changed +19 -17
.changeset/dirty-shoes-rhyme.md deleted
-13
@@ -1,13 +0,0 @@
1 ----
2 -'@composio/core': minor
3 -'@composio/anthropic': minor
4 -'@composio/cloudflare': minor
5 -'@composio/google': minor
6 -'@composio/langchain': minor
7 -'@composio/mastra': minor
8 -'@composio/openai': minor
9 -'@composio/openai-agents': minor
10 -'@composio/vercel': minor
11 ----
12 -
13 -add auth config ids support
.changeset/polite-suits-accept.md new
+13
@@ -0,0 +1,13 @@
1 +---
2 +'@composio/core': patch
3 +'@composio/anthropic': patch
4 +'@composio/cloudflare': patch
5 +'@composio/google': patch
6 +'@composio/langchain': patch
7 +'@composio/mastra': patch
8 +'@composio/openai': patch
9 +'@composio/openai-agents': patch
10 +'@composio/vercel': patch
11 +---
12 +
13 +dont't validate if authConfigIds is provided
ts/packages/core/src/models/Tools.ts
+5 -3
@@ -384,16 +384,18 @@ export class Tools<
384 cause: queryParams.error,
385 });
386 }
387 - // check if the query params contains atleast one of the following: tools, toolkits, search
387 +
388 + // check if the query params contains atleast one of the following: tools, toolkits, search, authConfigIds
389 if (
390 !(
391 'tools' in queryParams.data ||
392 'toolkits' in queryParams.data ||
392 - 'search' in queryParams.data
393 + 'search' in queryParams.data ||
394 + 'authConfigIds' in queryParams.data
395 )
396 ) {
397 throw new ValidationError(
396 - 'Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search'
398 + 'Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search, authConfigIds'
399 );
400 }
401
ts/packages/core/src/types/tool.types.ts
+1 -1
@@ -138,7 +138,7 @@ export const ToolListParamsSchema = z.object({
138 toolkits: z.array(z.string()).optional(),
139 scopes: z.array(z.string()).optional(),
140 tags: z.array(z.string()).optional(),
141 - limit: z.coerce.number().optional(),
141 + limit: z.number().optional(),
142 search: z.string().optional(),
143 authConfigIds: z.array(z.string()).optional(),
144 });