New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

e2b

Package Overview
Dependencies
Maintainers
3
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e2b - npm Package Compare versions

Comparing version 0.12.2-stateless-sdk.2 to 0.12.2-stateless-sdk.3

61

dist/index.d.ts

@@ -1414,33 +1414,49 @@ import * as openapi_typescript_fetch_dist_cjs_types from 'openapi-typescript-fetch/dist/cjs/types';

/**
* Creates a new sandbox.
* @param lifetime Lifetime of the sandbox in milliseconds
* @param opts Sandbox options
* @returns Sandbox ID
* Creates a new sandbox and keeps it alive for the specified time.
* @param apiKey API key
* @param keepAliveFor Automatically kill the sandbox after specified number of milliseconds
* @param opts Sandbox creation options
* @returns ID of the created sandbox
*/
declare function create(lifetime: number, opts?: SandboxOpts): Promise<string>;
declare function create({ apiKey }: {
apiKey?: string;
}, { keepAliveFor, ...opts }: Omit<SandboxOpts, 'apiKey'> & {
keepAliveFor: number;
}): Promise<string>;
/**
* Executes a command in a sandbox and waits until it finishes.
* @overload
* @param cmd Command to run
* @param sandboxId Sandbox ID
* @returns Process output
*/
/**
* Executes a command in a sandbox and waits until it finishes.
* @param cmd Command to run
* @param sandboxID Sandbox ID
* Executes a command inside a sandbox.
* @param apiKey API key
* @param sandboxID ID of the sandbox in which execute the command
* @param opts Process options
* @returns Process output
* @returns Process' output
*/
declare function exec(cmd: string, sandboxID: string, opts?: Omit<ProcessOpts, 'cmd'> & {
apiKey: string;
}): Promise<ProcessOutput>;
declare function exec({ apiKey, sandboxID }: {
sandboxID: string;
apiKey?: string;
}, opts: ProcessOpts): Promise<ProcessOutput>;
/**
* Kills a sandbox.
* @param sandboxID Sandbox ID
* @param apiKey API key
* @param sandboxID ID of the sandbox to kill
*/
declare function kill(sandboxID: string, apiKey?: string): Promise<void>;
declare function kill({ apiKey, sandboxID }: {
sandboxID: string;
apiKey?: string;
}): Promise<void>;
/**
* Downloads a file from a sandbox and returns its contents as a byte array.
* @param apiKey API key
* @param sandboxID ID of the sandbox from which to download a file
* @param path Path to a file inside the sandbox to download
* @returns File's contents as a byte array
*/
declare function downloadFile({ apiKey, sandboxID }: {
sandboxID: string;
apiKey?: string;
}, { path }: {
path: string;
}): Promise<Uint8Array>;
declare const stateless_create: typeof create;
declare const stateless_downloadFile: typeof downloadFile;
declare const stateless_exec: typeof exec;

@@ -1451,2 +1467,3 @@ declare const stateless_kill: typeof kill;

stateless_create as create,
stateless_downloadFile as downloadFile,
stateless_exec as exec,

@@ -1457,2 +1474,2 @@ stateless_kill as kill,

export { API_HOST, Action, Artifact, ClientType, DataAnalysis as CodeInterpreter, CodeRuntime, DataAnalysis, DownloadFileFormat, EnvVars, FileInfo, FilesystemEvent, FilesystemEventListener, FilesystemManager, FilesystemOperation, FilesystemWatcher, OpenPort, Process, ProcessManager, ProcessMessage, ProcessOutput, RunPythonOpts, RunningSandbox, SANDBOX_DOMAIN, Sandbox, SandboxMetadata, SandboxOpts, Terminal, TerminalManager, TerminalOutput, client as api, components, Sandbox as default, paths, runCode, stateless, withAPIKey, withAccessToken };
export { API_HOST, Action, Artifact, ClientType, DataAnalysis as CodeInterpreter, CodeRuntime, DataAnalysis, DownloadFileFormat, EnvVars, FileInfo, FilesystemEvent, FilesystemEventListener, FilesystemManager, FilesystemOperation, FilesystemWatcher, OpenPort, Process, ProcessManager, ProcessMessage, ProcessOutput, RunPythonOpts, RunningSandbox, SANDBOX_DOMAIN, Sandbox, SandboxMetadata, SandboxOpts, Terminal, TerminalManager, TerminalOutput, client as api, components, Sandbox as default, stateless as experimental_stateless, paths, runCode, withAPIKey, withAccessToken };
{
"name": "e2b",
"version": "0.12.2-stateless-sdk.2",
"version": "0.12.2-stateless-sdk.3",
"description": "E2B SDK that give agents cloud environments",

@@ -5,0 +5,0 @@ "homepage": "https://e2b.dev",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc