add Google Picker hook and API types

This commit is contained in:
CREDO23 2026-03-10 20:21:48 +02:00
parent 1e2c54eea6
commit a42a5a936c
4 changed files with 180 additions and 0 deletions

View file

@ -266,6 +266,17 @@ class ConnectorsApiService {
);
};
/**
* Get Google Picker token (access_token + client_id + picker_api_key) for a Drive connector
*/
getDrivePickerToken = async (connectorId: number) => {
return baseApiService.get<{
access_token: string;
client_id: string;
picker_api_key: string;
}>(`/api/v1/connectors/${connectorId}/drive-picker-token`);
};
// =============================================================================
// MCP Connector Methods
// =============================================================================