Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

e2b

Package Overview
Dependencies
Maintainers
3
Versions
150
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.7 to 0.13.0

328

dist/index.d.ts

@@ -114,3 +114,3 @@ import * as openapi_typescript_fetch_dist_cjs_types from 'openapi-typescript-fetch/dist/cjs/types';

responses: {
/** The build has started */
/** The build was accepted */
202: {

@@ -126,19 +126,3 @@ content: {

content: {
"multipart/form-data": {
/** @description Alias of the template */
alias?: string;
/**
* Format: binary
* @description Docker build context
*/
buildContext: string;
/** @description Dockerfile content */
dockerfile: string;
/** @description Start command to execute in the template after the build */
startCmd?: string;
/** @description CPU cores for the template */
cpuCount?: string;
/** @description Memory limit for the template in MB */
memoryMB?: string;
};
"application/json": components["schemas"]["TemplateBuildRequest"];
};

@@ -157,3 +141,3 @@ };

responses: {
/** The build has started */
/** The build was accepted */
202: {

@@ -169,19 +153,3 @@ content: {

content: {
"multipart/form-data": {
/** @description Alias of the template */
alias?: string;
/**
* Format: binary
* @description Docker build context
*/
buildContext: string;
/** @description Dockerfile content */
dockerfile: string;
/** @description Start command to execute in the template after the build */
startCmd?: string;
/** @description CPU cores for the template */
cpuCount?: string;
/** @description Memory limit for the template in MB */
memoryMB?: string;
};
"application/json": components["schemas"]["TemplateBuildRequest"];
};

@@ -206,4 +174,4 @@ };

"/templates/{templateID}/builds/{buildID}": {
/** Get template build info */
get: {
/** Start the build */
post: {
parameters: {

@@ -214,16 +182,7 @@ path: {

};
query: {
/** Index of the starting build log that should be returned with the template */
logsOffset?: number;
};
};
responses: {
/** Successfully returned the template */
200: {
content: {
"application/json": components["schemas"]["TemplateBuild"];
};
};
/** The build has started */
202: unknown;
401: components["responses"]["401"];
404: components["responses"]["404"];
500: components["responses"]["500"];

@@ -259,108 +218,12 @@ };

};
"/envs": {
/** List all environments */
"/templates/{templateID}/builds/{buildID}/status": {
/** Get template build info */
get: {
responses: {
/** Successfully returned all environments */
200: {
content: {
"application/json": components["schemas"]["Environment"][];
};
};
401: components["responses"]["401"];
500: components["responses"]["500"];
};
};
/** Create a new environment */
post: {
responses: {
/** The build has started */
202: {
content: {
"application/json": components["schemas"]["Environment"];
};
};
401: components["responses"]["401"];
500: components["responses"]["500"];
};
requestBody: {
content: {
"multipart/form-data": {
/** @description Alias of the environment */
alias?: string;
/**
* Format: binary
* @description Docker build context
*/
buildContext: string;
/** @description Dockerfile content */
dockerfile: string;
/** @description Start command to execute in the template after the build */
startCmd?: string;
};
};
};
};
};
"/envs/{envID}": {
/** Rebuild an environment */
post: {
parameters: {
path: {
envID: components["parameters"]["envID"];
};
};
responses: {
/** The build has started */
202: {
content: {
"application/json": components["schemas"]["Environment"];
};
};
401: components["responses"]["401"];
500: components["responses"]["500"];
};
requestBody: {
content: {
"multipart/form-data": {
/** @description Alias of the environment */
alias?: string;
/**
* Format: binary
* @description Docker build context
*/
buildContext: string;
/** @description Dockerfile content */
dockerfile: string;
/** @description Start command to execute in the template after the build */
startCmd?: string;
};
};
};
};
/** Delete an environment */
delete: {
parameters: {
path: {
envID: components["parameters"]["envID"];
};
};
responses: {
/** The environment was deleted successfully */
204: never;
401: components["responses"]["401"];
500: components["responses"]["500"];
};
};
};
"/envs/{envID}/builds/{buildID}": {
/** Get environment build info */
get: {
parameters: {
path: {
envID: components["parameters"]["envID"];
templateID: components["parameters"]["templateID"];
buildID: components["parameters"]["buildID"];
};
query: {
/** Index of the starting build log that should be returned with the environment */
/** Index of the starting build log that should be returned with the template */
logsOffset?: number;

@@ -370,6 +233,6 @@ };

responses: {
/** Successfully returned the environment */
/** Successfully returned the template */
200: {
content: {
"application/json": components["schemas"]["EnvironmentBuild"];
"application/json": components["schemas"]["TemplateBuild"];
};

@@ -383,87 +246,2 @@ };

};
"/envs/{envID}/builds/{buildID}/logs": {
/** Add a build log */
post: {
parameters: {
path: {
envID: components["parameters"]["envID"];
buildID: components["parameters"]["buildID"];
};
};
responses: {
/** Successfully added log */
201: unknown;
401: components["responses"]["401"];
404: components["responses"]["404"];
};
requestBody: {
content: {
"application/json": {
/** @description API secret */
apiSecret: string;
logs: string[];
};
};
};
};
};
"/instances": {
/** List all running instances */
get: {
responses: {
/** Successfully returned all running instances */
200: {
content: {
"application/json": components["schemas"]["RunningInstance"][];
};
};
400: components["responses"]["400"];
401: components["responses"]["401"];
500: components["responses"]["500"];
};
};
/** Create an instance from the environment */
post: {
responses: {
/** The instance was created successfully */
201: {
content: {
"application/json": components["schemas"]["Instance"];
};
};
400: components["responses"]["400"];
401: components["responses"]["401"];
500: components["responses"]["500"];
};
requestBody: {
content: {
"application/json": components["schemas"]["NewInstance"];
};
};
};
};
"/instances/{instanceID}/refreshes": {
/** Refresh the instance extending its time to live */
post: {
parameters: {
path: {
instanceID: components["parameters"]["instanceID"];
};
};
responses: {
/** Successfully refreshed the instance */
204: never;
401: components["responses"]["401"];
404: components["responses"]["404"];
};
requestBody: {
content: {
"application/json": {
/** @description Duration for which the instance should be kept alive in seconds */
duration?: number;
};
};
};
};
};
}

@@ -515,2 +293,6 @@ interface components {

buildID: string;
/** @description CPU cores for the sandbox */
cpuCount: number;
/** @description Memory limit for the sandbox in MB */
memoryMB: number;
/** @description Whether the template is public or only accessible by the team */

@@ -520,3 +302,17 @@ public: boolean;

aliases?: string[];
} & {
storageGB: unknown;
};
TemplateBuildRequest: {
/** @description Alias of the template */
alias?: string;
/** @description Dockerfile for the template */
dockerfile: string;
/** @description Start command to execute in the template after the build */
startCmd?: string;
/** @description CPU cores for the template */
cpuCount?: number;
/** @description Memory limit for the template in MB */
memoryMB?: number;
};
TemplateBuild: {

@@ -549,60 +345,2 @@ /**

};
Environment: {
/** @description Identifier of the environment */
envID: string;
/** @description Identifier of the last successful build for given environment */
buildID: string;
/** @description Whether the environment is public or only accessible by the team */
public: boolean;
/** @description Aliases of the environment */
aliases?: string[];
};
EnvironmentBuild: {
/**
* @description Build logs
* @default []
*/
logs: string[];
/** @description Identifier of the environment */
envID: string;
/** @description Identifier of the build */
buildID: string;
/**
* @description Status of the environment
* @enum {string}
*/
status?: "building" | "ready" | "error";
} & {
finished: unknown;
};
InstanceMetadata: {
[key: string]: string;
};
NewInstance: {
/** @description Identifier of the required environment */
envID: string;
metadata?: components["schemas"]["InstanceMetadata"];
};
Instance: {
/** @description Identifier of the environment from which is the instance created */
envID: string;
/** @description Identifier of the instance */
instanceID: string;
/** @description Identifier of the client */
clientID: string;
};
RunningInstance: {
/** @description Identifier of the environment from which is the instance created */
envID: string;
/** @description Identifier of the instance */
instanceID: string;
/** @description Identifier of the client */
clientID: string;
/**
* Format: date-time
* @description Time when the instance was started
*/
startedAt: string;
metadata?: components["schemas"]["InstanceMetadata"];
};
};

@@ -639,4 +377,2 @@ responses: {

sandboxID: string;
envID: string;
instanceID: string;
};

@@ -643,0 +379,0 @@ }

2

package.json
{
"name": "e2b",
"version": "0.12.7",
"version": "0.13.0",
"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