From fc5ba4d4f428695994b73ebb659e1a7d9fdc4806 Mon Sep 17 00:00:00 2001 From: Zen Agent Date: Wed, 29 Apr 2026 10:51:37 +0000 Subject: [PATCH 1/2] docs(tools): fix stale proxy connected_account_id docstring [PLEN-2345] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The proxy endpoint stopped accepting empty auth context (returns 400 ``ExternalProxy_MissingAuthContext`` when neither ``connected_account_id`` nor ``custom_connection_data`` is provided), so the docstring's claim that an omitted id falls back to "the default account for the project" no longer matches runtime behavior — callers were hitting an undocumented 400 in production. Updates both the sync and async ``proxy()`` methods in ``composio_client/resources/tools.py``. CONTRIBUTING.md notes that manual patches in generated files are persisted across regenerations. Co-Authored-By: Claude Opus 4.7 Co-authored-by: Karan Vaidya Co-authored-by: Uday Sidagana <129588963+Uday-sidagana@users.noreply.github.com> --- src/composio_client/resources/tools.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/composio_client/resources/tools.py b/src/composio_client/resources/tools.py index 71c688aa..752a70df 100644 --- a/src/composio_client/resources/tools.py +++ b/src/composio_client/resources/tools.py @@ -383,8 +383,10 @@ def proxy( body: The request body (for POST, PUT, and PATCH requests) - connected_account_id: The ID of the connected account to use for authentication (if not provided, will - use the default account for the project) + connected_account_id: The ID of the connected account to use for authentication. Required + unless ``custom_connection_data`` is provided — the proxy endpoint + returns 400 ``ExternalProxy_MissingAuthContext`` when both are + omitted. parameters: Additional HTTP headers or query parameters to include in the request @@ -788,8 +790,10 @@ async def proxy( body: The request body (for POST, PUT, and PATCH requests) - connected_account_id: The ID of the connected account to use for authentication (if not provided, will - use the default account for the project) + connected_account_id: The ID of the connected account to use for authentication. Required + unless ``custom_connection_data`` is provided — the proxy endpoint + returns 400 ``ExternalProxy_MissingAuthContext`` when both are + omitted. parameters: Additional HTTP headers or query parameters to include in the request From d51feb45e8900ad3cbbe3776c4c4533d8c74df42 Mon Sep 17 00:00:00 2001 From: Zen Agent Date: Thu, 30 Apr 2026 07:13:18 +0000 Subject: [PATCH 2/2] docs(tools): ASCII-only proxy docstring [PLEN-2345] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses jkomyno's review on PR #62. The generated client sources were ASCII-only before this change; the previous commit introduced two em dashes (sync + async ``proxy()`` docstrings). Replacing each ``provided —`` with ``provided. `` keeps the file consistent with the rest of the generated tree and avoids surprising downstream tooling that assumes ASCII. Co-authored-by: Karan Vaidya Co-authored-by: Uday Sidagana <129588963+Uday-sidagana@users.noreply.github.com> Co-authored-by: karan --- src/composio_client/resources/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composio_client/resources/tools.py b/src/composio_client/resources/tools.py index 752a70df..1b0d3844 100644 --- a/src/composio_client/resources/tools.py +++ b/src/composio_client/resources/tools.py @@ -384,7 +384,7 @@ def proxy( body: The request body (for POST, PUT, and PATCH requests) connected_account_id: The ID of the connected account to use for authentication. Required - unless ``custom_connection_data`` is provided — the proxy endpoint + unless ``custom_connection_data`` is provided. The proxy endpoint returns 400 ``ExternalProxy_MissingAuthContext`` when both are omitted. @@ -791,7 +791,7 @@ async def proxy( body: The request body (for POST, PUT, and PATCH requests) connected_account_id: The ID of the connected account to use for authentication. Required - unless ``custom_connection_data`` is provided — the proxy endpoint + unless ``custom_connection_data`` is provided. The proxy endpoint returns 400 ``ExternalProxy_MissingAuthContext`` when both are omitted.