Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Updates SandboxApiOpts type with added headers field (#677)

Mish Ushakovf4e002658367
diff --git a/.changeset/tiny-ways-return.md b/.changeset/tiny-ways-return.md
new file mode 100644
index 000000000..ee8d4a391
--- /dev/null
+++ b/.changeset/tiny-ways-return.md
@@ -0,0 +1,5 @@
+---
+'e2b': patch
+---
+
+changed type of SandboxApiOpts
diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.ts
index ecaae0ed7..96941ebf1 100644
--- a/packages/js-sdk/src/sandbox/sandboxApi.ts
+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts
@@ -8,7 +8,10 @@ import { TemplateError } from '../errors'
*/
export interface SandboxApiOpts
extends Partial<
- Pick<ConnectionOpts, 'apiKey' | 'debug' | 'domain' | 'requestTimeoutMs'>
+ Pick<
+ ConnectionOpts,
+ 'apiKey' | 'headers' | 'debug' | 'domain' | 'requestTimeoutMs'
+ >
> {}
export interface SandboxListOpts extends SandboxApiOpts {