Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(core): align usage and log charges with Instant API (#4693)
## Summary Follow up on merged SDK PR #4651 to match the Instant names in [platform PR #13432](https://github.com/ComposioHQ/platform/pull/13432) ([PLEN-4181](https://linear.app/composio/issue/PLEN-4181/update-api-contract-to-new-names)). The summary charge remains a top-level sibling of `entities`. ## Changes - Rename the TypeScript summary field to `instantCharge` and the Python field to `instant_charge`. - Rename typed tool-log metadata to `metadata.instant_charge`, keeping the exact USD string and optional charge behavior. - Update regression tests, API documentation, and the core changeset. No old-name aliases are added. ## Type of change - [x] Bug fix - [x] Breaking change - [x] Documentation ## How Has This Been Tested? - TypeScript: 14 focused usage/log tests; `@composio/core` typecheck; Oxlint. - Python: 10 focused usage/log tests; Ruff check and formatting with the repository config. - Docs: 608 static tests; lint (existing warnings), link validation, typecheck, full production build, semantic artifact check with `--allow-stale`. - Changeset validation and `git diff --check`. ## Checklist - [x] I have read the Code of Conduct and this PR adheres to it - [x] I have read and understand every line of this diff, including any LLM-generated code - [x] Any third-party docs links or promotional content follow the third-party links policy - [x] I ran linters/tests locally and they passed - [x] I updated documentation as needed - [x] I added tests or explain why not applicable - [x] I added a changeset if this change affects published packages ## Additional context #4651 is already merged, so this is its follow-up. Stacked child: #4694 covers session configuration, account selectors, and execution-contract renames. Merge this PR first, then retarget #4694 to `next`. Published generated clients still use the old names; SDK-owned response schemas consume the new fields without modifying generated code. --------- Co-authored-by: jkomyno <alberto@composio.dev>