Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: align schemas with actual types for alias and schemaRef.message
- Move alias inside connection in DefaultCreateConnectedAccountParamsSchema to match the actual API shape used by initiate() - Make schemaRef.message optional in output Zod schema to match the raw interface updated in ce978fda Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Abir Taheer committed
Apr 9, 2026 at 20:31 UTC
636cec51d93fc7fe598356dd92bad1033b7c6325
2 files changed
+3
-3
ts/packages/core/src/types/connectedAccounts.types.ts
+2
-2
@@ -42,8 +42,8 @@ export const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
42
data?: Record<string, unknown>;
43
callback_url?: string;
44
user_id?: string;
45
+ alias?: string;
46
};
46
- alias?: string;
47
}> = z.object({
48
auth_config: z.object({
49
id: z.string(),
@@ -53,8 +53,8 @@ export const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
53
data: z.record(z.string(), z.unknown()).optional(),
54
callback_url: z.string().optional(),
55
user_id: z.string().optional(),
56
+ alias: z.string().optional(),
57
}),
57
- alias: z.string().optional(),
58
});
59
60
export const CreateConnectedAccountOptionsSchema: z.ZodType<{
ts/packages/core/src/types/toolRouter.types.ts
+1
-1
@@ -397,7 +397,7 @@ const ToolRouterSessionSearchTimeInfoSchema = z.object({
397
398
const ToolRouterSessionSearchToolSchemasSchemaRefSchema = z.object({
399
args: z.object({ toolSlugs: z.array(z.string()) }),
400
- message: z.string(),
400
+ message: z.string().optional(),
401
tool: z.literal('COMPOSIO_GET_TOOL_SCHEMAS'),
402
});
403