Root cause found by probing the live API: Composio v3 rejects POST /connected_accounts for Composio-managed OAuth auth configs with a 400 pointing at POST /connected_accounts/link, and the renderer threw the failure away inside a .then, so clicking Connect did nothing and no browser opened. - createConnectedAccount now calls POST /connected_accounts/link with auth_config_id and user_id and reads connected_account_id and redirect_url; the local mirror records INITIALIZING until the poll adopts Composio's real status. - Connect failures (and a blocked external-URL open) now show as a single line on the page instead of vanishing.
37 lines
686 B
TypeScript
37 lines
686 B
TypeScript
export interface ComposioToolkitSummaryDto {
|
|
slug: string;
|
|
name: string;
|
|
description: string;
|
|
logo: string | null;
|
|
categories: string[];
|
|
authSchemes: string[];
|
|
noAuth: boolean;
|
|
toolsCount: number;
|
|
}
|
|
|
|
export interface ListComposioToolkitsInput {
|
|
orgId: string;
|
|
}
|
|
|
|
export interface ConnectComposioToolkitInput {
|
|
orgId: string;
|
|
toolkitSlug: string;
|
|
toolkitName: string;
|
|
}
|
|
|
|
export interface ConnectComposioToolkitResult {
|
|
accountId: string;
|
|
redirectUrl: string | null;
|
|
}
|
|
|
|
export interface RefreshComposioAccountsInput {
|
|
orgId: string;
|
|
}
|
|
|
|
export interface ConnectorGrantInput {
|
|
orgId: string;
|
|
agentId: string;
|
|
toolkitSlug: string;
|
|
employeeId: string;
|
|
}
|