refactor(sdk): import API types via components instead of paths#1362
refactor(sdk): import API types via components instead of paths#1362mishushakov wants to merge 2 commits into
Conversation
Replace verbose `paths['/route']['method']['responses'|'requestBody'] ['200'|'content']['application/json']` traversal with direct `components['schemas'][...]` references — matches existing convention in sandboxApi.ts and reads at a glance. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 878f4f7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 878f4f7. Bugbot is set up for automated code reviews on this repo. Configure here. |
Package ArtifactsBuilt from e7eb3f6. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.28.1-mishushakov-import-api-types-via-components.0.tgzCLI ( npm install ./e2b-cli-2.10.5-mishushakov-import-api-types-via-components.0.tgzPython SDK ( pip install ./e2b-2.26.0+mishushakov.import.api.types.via.components-py3-none-any.whl |
Summary
paths['/route']['method']['responses'|'requestBody'][...]traversal with directcomponents['schemas'][...]references inpackages/js-sdk/src/template/buildApi.tsandpackages/cli/src/commands/template/build.ts.sandboxApi.tsand reads at a glance.Test plan
pnpm run format/lint/typecheckpass fore2band@e2b/cli🤖 Generated with Claude Code