@devries-cameron20 / composio Mirror · read-only / commits / da3881c90
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 11:00 UTC

docs(changelog): finalize SDK release notes (#4595)

This PR: - describes the Python `0.23.0` and TypeScript `0.20.0` releases around the faster handrolled API client - documents the authentication and session-update behavior included since the previous stable releases - adds migration guidance for explicit project-key opt-out and concurrent session updates - aligns the pending Changesets notes with the public changelog wording - keeps internal event context and the underlying client prerelease identifier out of public release notes ## Validation - `pnpm test:release-workflow` - `pnpm validate:changesets` - `pnpm exec prettier --check docs/content/changelog/09-22-26-sdk-releases.mdx .changeset/use-owned-composio-client.md .changeset/owned-client-surface.md` - `git diff --check`

Alberto Schiabel committed Sep 23, 2026 at 14:03 UTC da3881c907b3d478f353ceaa1474ccbe3b0ca349
3 files changed +36 -10
.changeset/owned-client-surface.md
+1 -1
@@ -17,5 +17,5 @@ Expose the rest of the owned client surface on the `Composio` class:
17 - `CIMD_OAUTH` joins `AuthSchemeTypes`.
18 - `triggers.listActive()` returns `{}` for `state` and `triggerConfig` when the API sends `null`.
19 - `ToolkitAuthField` gains `userVisible` (from `user_visible`) and `ToolkitAuthConfigDetails` gains `requiredScopes` (from `required_scopes`), both omitted when the API does not send them.
20 -- `@composio/client` moves to `2.0.0-rc.8`. The API removed `validate_credentials` from the connected-account refresh, so `connectedAccounts.refresh()` now ignores `validateCredentials` and logs a warning when it is set.
20 +- `@composio/client` moves from the old autogenerated client to the new handrolled client. The API removed `validate_credentials` from the connected-account refresh, so `connectedAccounts.refresh()` now ignores `validateCredentials` and logs a warning when it is set.
21 - `logger` and `logLevel` options on `new Composio({...})`. `logger` accepts any `{ error, warn, info, debug }` sink (`console`, pino, winston, ...) and receives the SDK's formatted, credential-redacted output; `logLevel` (`'silent' | 'error' | 'warn' | 'info' | 'debug'`) overrides `COMPOSIO_LOG_LEVEL`. The owned client's runtime deprecation warnings (response `Deprecation`/`Sunset` headers and deprecated request inputs) are now routed through that SDK logger instead of `console`. The client's per-request lifecycle logs are emitted only at `'debug'`. `tools.get`/`getRawComposioTools` send the API's `query` parameter in place of the deprecated `search` wire parameter; the SDK's public `search` option is unchanged.
.changeset/use-owned-composio-client.md
+1 -1
@@ -2,4 +2,4 @@
2 '@composio/core': minor
3 ---
4
5 -Replace the frozen Stainless `@composio/client` with the owned `2.0.0-rc.8` client.
5 +Replace the old autogenerated `@composio/client` with the new handrolled client.
docs/content/changelog/09-22-26-sdk-releases.mdx
+34 -8
@@ -1,10 +1,10 @@
1 ---
2 -title: 'Python SDK 0.23.0 and TypeScript SDK 0.20.0 move to the Composio-owned client'
3 -description: 'Both SDKs now use the Composio-owned 2.0.0-rc.8 client and add webhook, logs, keyring, usage, custom toolkit, connected account, toolkit, and session APIs.'
2 +title: 'Python SDK 0.23.0 and TypeScript SDK 0.20.0 add a faster API client'
3 +description: 'Both SDKs now use a faster handrolled client, expose more v3.1 APIs, and tighten authentication and session updates.'
4 date: '2026-09-22'
5 ---
6
7 -Python SDK `0.23.0` and TypeScript SDK `0.20.0` replace the frozen generated client with the Composio-owned client (`composio-client` `2.0.0rc8` and `@composio/client` `2.0.0-rc.8`). The TypeScript APIs shipped first in the `1.0.0` betas. The Python `2.0.0b0` beta only swapped the client, so `0.23.0` is the first Python release with these APIs. Both are now part of the stable release line.
7 +Python SDK `0.23.0` and TypeScript SDK `0.20.0` replace the old autogenerated client with a new handrolled one. Its lightweight HTTP transport is substantially faster while preserving the SDK APIs you already use. The client also covers more of Composio's v3.1 API.
8
9 ### Release versions
10
@@ -14,18 +14,44 @@ Python SDK `0.23.0` and TypeScript SDK `0.20.0` replace the frozen generated cli
14 | TypeScript `@composio/core` | `0.20.0` |
15 | TypeScript `@composio/slim` | `0.20.0` |
16
17 -### Owned client
17 +### Faster API requests
18
19 -The owned client covers the released v3.1 operations while preserving the SDK's existing imports, types, retries, timeouts, error classes, raw responses, streaming responses, and `AbortSignal` support.
19 +The new client reduces request overhead without changing existing imports, types, retries, timeouts, error classes, raw responses, streaming responses, or `AbortSignal` support. TypeScript users also get configurable SDK logging through `logger` and `logLevel`; Python routes client deprecations through `ComposioDeprecationWarning`.
20
21 -### What's new
21 +### More of the Composio API
22
23 - Project webhooks (`webhooks.subscriptions` and `webhooks.endpoints`), tool execution logs, customer-managed keyring transfer keys, experimental usage metering, and experimental project-owned custom toolkits.
24 - Connected account revocation and deferred OAuth completion.
25 - Toolkit bulk retrieval, changelogs, OAuth scope recommendations, and grant contexts. Toolkit auth details now include each field's end-user visibility and the scopes an auth method always requests.
26 - Tool Router session configuration history through `session.listConfigHistory()` in TypeScript and `session.list_config_history()` in Python.
27 -- `userApiKey` and `orgApiKey` in TypeScript, and `user_api_key` and `org_api_key` in Python, for user- and organization-scoped operations. A project API key is still required.
28 -- Configurable SDK logging with redacted output. TypeScript routes owned-client deprecation warnings through the SDK logger, and Python raises them as `ComposioDeprecationWarning`.
27 +- `userApiKey` and `orgApiKey` in TypeScript, and `user_api_key` and `org_api_key` in Python, for user- and organization-scoped operations.
28 +
29 +### Safer authentication and session updates
30 +
31 +You can now authenticate without a project key by setting `apiKey: null` in TypeScript or `disable_api_key=True` in Python, then supplying a user or organization API key. Consumer requests can be scoped with `orgId` and `projectId` in TypeScript or `org_id` and `project_id` in Python.
32 +
33 +Session MCP configuration exports only the credential and project scope used for the session request, and only when the MCP URL has the same origin as the configured Composio API. `session.update()` now uses the session's last observed config version by default. Concurrent writes raise a typed conflict instead of silently overwriting a newer configuration, and nullable policy fields can remove stored overrides.
34 +
35 +<Callout type="warn">
36 + **Migration note**
37 +
38 + In TypeScript, `apiKey: null` now explicitly disables project-key fallbacks. If you want the SDK
39 + to fall back to `COMPOSIO_API_KEY` or the CLI config when an environment variable is missing, pass
40 + `undefined` or omit `apiKey` instead:
41 +
42 + ```typescript
43 + import { Composio } from '@composio/core';
44 +
45 + const composio = new Composio({
46 + apiKey: process.env.COMPOSIO_API_KEY,
47 + });
48 + ```
49 +
50 + Session updates now reject stale writes with `ComposioSessionConfigConflictError` in TypeScript
51 + or `SessionConfigConflictError` in Python. Re-fetch the session and retry, or pass
52 + `expectedConfigVersion: false` (`expected_config_version=False` in Python) when you explicitly
53 + need last-writer-wins behavior.
54 +</Callout>
55
56 <Callout>
57 `connectedAccounts.refresh()` is deprecated because the API deprecated its endpoint. The API also