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, 03:37 UTC
| 1 | --- |
| 2 | title: 'Python SDK 0.18.2 and TypeScript SDK 0.15.0 tighten JSON Schema types and secret redaction' |
| 3 | description: 'Python SDK 0.18.2 and TypeScript SDK 0.15.0 redact secrets inside JSON telemetry payloads, replace the loose JSON Schema property type with a recursive one, and add OpenAI v6 and v7 support.' |
| 4 | date: '2026-08-07' |
| 5 | --- |
| 6 | |
| 7 | Python SDK `composio` `0.18.2` and TypeScript SDK `@composio/core` `0.15.0` redact secrets that appear inside JSON payloads in telemetry, give `JSONSchemaProperty` a precise recursive type, and harden several request and upload paths. `@composio/openai` `0.11.0` adds support for OpenAI v6 and v7. |
| 8 | |
| 9 | ### SDK versions |
| 10 | |
| 11 | | SDK | Version | |
| 12 | | ----------------------------------------- | -------- | |
| 13 | | Python `composio` | `0.18.2` | |
| 14 | | TypeScript `@composio/core` | `0.15.0` | |
| 15 | | TypeScript `@composio/slim` | `0.15.0` | |
| 16 | | TypeScript `@composio/openai` | `0.11.0` | |
| 17 | | TypeScript `@composio/experimental` | `0.2.2` | |
| 18 | | TypeScript `@composio/json-schema-to-zod` | `0.2.2` | |
| 19 | |
| 20 | ### Secret redaction in telemetry |
| 21 | |
| 22 | Telemetry error text is redacted before it leaves the process, but the key/value rule required the separator to follow the key name directly. In JSON — and in a Python `dict` repr — the key's own closing quote sits between the name and the colon, so a serialized body such as `{"api_key": "sk-live-..."}` never matched and the value was sent verbatim. That is the shape error messages usually carry: an API error envelope, or a rejected request body echoed back. |
| 23 | |
| 24 | Both SDKs now redact these values. |
| 25 | |
| 26 | **Before:** |
| 27 | |
| 28 | ``` |
| 29 | Request failed: {"api_key": "sk-live-abc123", "user_id": "u_42"} |
| 30 | ``` |
| 31 | |
| 32 | **After:** |
| 33 | |
| 34 | ``` |
| 35 | Request failed: {"api_key": "[REDACTED]", "user_id": "u_42"} |
| 36 | ``` |
| 37 | |
| 38 | ### Typed JSON Schema properties |
| 39 | |
| 40 | <Callout type="warn"> |
| 41 | **Type-level breaking change** |
| 42 | |
| 43 | `JSONSchemaProperty` — re-exported from `@composio/core` and reachable through `Tool.input_parameters` and `Tool.output_parameters` — is now a concrete recursive interface instead of effectively `any`. Runtime behavior is unchanged, but code that indexed into it without narrowing may see new type errors: `properties` entries are now possibly `undefined`, and `default` and `enum` values are `unknown`. |
| 44 | </Callout> |
| 45 | |
| 46 | **Before:** |
| 47 | |
| 48 | ```typescript |
| 49 | // @noErrors |
| 50 | const type = tool.input_parameters.properties.query.type; |
| 51 | const fallback: string = tool.input_parameters.properties.query.default; |
| 52 | ``` |
| 53 | |
| 54 | **After:** |
| 55 | |
| 56 | ```typescript |
| 57 | // @noErrors |
| 58 | const type = tool.input_parameters.properties?.query?.type; |
| 59 | const rawDefault = tool.input_parameters.properties?.query?.default; |
| 60 | const fallback = typeof rawDefault === 'string' ? rawDefault : undefined; |
| 61 | ``` |
| 62 | |
| 63 | `@composio/json-schema-to-zod` now also models the parser-supported `min`, `max`, and `example` JSON Schema extensions in its exported recursive schema type. |
| 64 | |
| 65 | ### What's new |
| 66 | |
| 67 | - `@composio/openai` supports OpenAI versions 6 and 7. The OpenAI runtime dependency in `@composio/core` and `@composio/slim` has been refreshed to version 7. |
| 68 | |
| 69 | ### Improvements |
| 70 | |
| 71 | - The background npm version check is now bounded by an abort timeout, so a registry outage cannot leave the request pending indefinitely. |
| 72 | - Sensitive upload path segments are matched using the target filesystem's actual case sensitivity, so case-insensitive mounts cannot bypass the denylist and distinct paths on case-sensitive mounts are not over-blocked. |
| 73 | - Unread response bodies are released on the paths the SDK knowingly abandons: every intermediate redirect body in `ssrfSafeFetch`, and the response body before throwing on a failed URL upload. |
| 74 | |
| 75 | ### Dependency updates |
| 76 | |
| 77 | Runtime dependencies across the TypeScript SDK packages and the Python core and provider packages have been refreshed. |
| 78 | |
| 79 | ### Backward compatibility |
| 80 | |
| 81 | Runtime behavior is unchanged in both SDKs. The only upgrade impact is at the TypeScript type level, for consumers that read `JSONSchemaProperty` fields without narrowing. |