feat (api): Sandbox info lifecycle network#1213
feat (api): Sandbox info lifecycle network#1213matthewlouisbrockman wants to merge 7 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: adb2229 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 |
Package ArtifactsBuilt from 10f9e15. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.14.2-sandbox-info-lifecycle-network.0.tgzCLI ( npm install ./e2b-cli-2.8.2-sandbox-info-lifecycle-network.0.tgzPython SDK ( pip install ./e2b-2.15.3+sandbox.info.lifecycle.network-py3-none-any.whl |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
mishushakov
left a comment
There was a problem hiding this comment.
looks good with minor type change

extracts the
allow_internet_access,lifecycle, andnetworkconfigs to the get info responses from the api when present.Create a sandbox with lifecycle and network rules, check info while running, pause it, and check info again. Network rules, lifecycle config, and
allowInternetAccessall returned while running and pausedNote
Medium Risk
Updates the public
sandbox inforesponse shape across OpenAPI, JS, and Python SDKs, which may impact downstream consumers that assume the previous schema. Risk is moderate since changes are additive/optional but touch generated models and response mapping logic.Overview
Sandbox info responses now include network and lifecycle configuration when present. The OpenAPI spec and generated JS schema extend
SandboxDetailwithallowInternetAccess,network, and a newlifecycleobject (withSandboxOnTimeoutandSandboxLifecycle).The JS SDK updates
SandboxApi.getFullInfo()and exported types to return these fields, introducingSandboxInfoLifecyclefor info responses. The Python SDK updates generated client models accordingly, addsSandboxLifecycle/SandboxOnTimeoutmodels, and mapsSandboxDetail.network/SandboxDetail.lifecycleintoSandboxInfo(plus exportsSandboxInfoLifecycle).A changeset bumps
@e2b/python-sdkande2bas minor for the expanded info payload.Written by Cursor Bugbot for commit adb2229. This will update automatically on new commits. Configure here.