fix(composio): request Gmail read scope for triggers (#2191)

This commit is contained in:
Aqil Aziz
2026-05-19 20:02:23 -07:00
committed by GitHub
parent ad61b4cec7
commit b0fe42b0af
7 changed files with 190 additions and 11 deletions
+23
View File
@@ -165,6 +165,29 @@ export function handleIntegrations(ctx) {
return true;
}
if (
method === "POST" &&
/^\/agent-integrations\/composio\/authorize\/?$/.test(url)
) {
const toolkit =
typeof parsedBody?.toolkit === "string" ? parsedBody.toolkit.trim() : "";
if (!toolkit) {
json(res, 400, {
success: false,
error: "Missing required field: toolkit",
});
return true;
}
json(res, 200, {
success: true,
data: {
connectUrl: `https://composio.example/${toolkit}/consent`,
connectionId: `conn-${toolkit}-pending`,
},
});
return true;
}
if (
method === "GET" &&
/^\/agent-integrations\/composio\/triggers\/available(\?.*)?$/.test(url)