Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update JS SDK generated API client
Tomas Valenta417035073c6a
diff --git a/.changeset/wet-hounds-check.md b/.changeset/wet-hounds-check.mdnew file mode 100644index 000000000..aa26bbe73--- /dev/null+++ b/.changeset/wet-hounds-check.md@@ -0,0 +1,5 @@+---+"@e2b/sdk": patch+---++Update APIdiff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsindex 73fc6176b..0919fd304 100644--- a/packages/js-sdk/src/api/schema.gen.ts+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -4,65 +4,65 @@*/export interface paths {- '/health': {+ "/health": {/** Health check */get: {responses: {/** Request was successful */200: unknown;- 401: components['responses']['401'];+ 401: components["responses"]["401"];};};};- '/instances': {+ "/instances": {/** Create an instance from the environment */post: {responses: {/** The instance was created successfully */201: {content: {- 'application/json': components['schemas']['Instance'];+ "application/json": components["schemas"]["Instance"];};};- 400: components['responses']['400'];- 401: components['responses']['401'];- 500: components['responses']['500'];+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];};requestBody: {content: {- 'application/json': components['schemas']['NewInstance'];+ "application/json": components["schemas"]["NewInstance"];};};};};- '/instances/{instanceID}/refreshes': {+ "/instances/{instanceID}/refreshes": {/** Refresh the instance extending its time to live */post: {parameters: {path: {- instanceID: components['parameters']['instanceID'];+ instanceID: components["parameters"]["instanceID"];};};responses: {/** Successfully refreshed the instance */204: never;- 401: components['responses']['401'];- 404: components['responses']['404'];+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];};};};- '/envs': {+ "/envs": {/** List all environments */get: {responses: {/** Successfully returned all environments */200: {content: {- 'application/json': components['schemas']['Environment'][];+ "application/json": components["schemas"]["Environment"][];};};- 401: components['responses']['401'];- 500: components['responses']['500'];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];};};/** Create a new environment */@@ -71,15 +71,15 @@ export interface paths {/** The build has started */202: {content: {- 'application/json': components['schemas']['Environment'];+ "application/json": components["schemas"]["Environment"];};};- 401: components['responses']['401'];- 500: components['responses']['500'];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];};requestBody: {content: {- 'multipart/form-data': {+ "multipart/form-data": {/*** Format: binary* @description Docker build context@@ -92,27 +92,27 @@ export interface paths {};};};- '/envs/{envID}': {+ "/envs/{envID}": {/** Rebuild an environment */post: {parameters: {path: {- envID: components['parameters']['envID'];+ envID: components["parameters"]["envID"];};};responses: {/** The build has started */202: {content: {- 'application/json': components['schemas']['Environment'];+ "application/json": components["schemas"]["Environment"];};};- 401: components['responses']['401'];- 500: components['responses']['500'];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];};requestBody: {content: {- 'multipart/form-data': {+ "multipart/form-data": {/*** Format: binary* @description Docker build context@@ -120,20 +120,18 @@ export interface paths {buildContext: string;/** @description Dockerfile content */dockerfile: string;- /** @description ID of the environment */- envID: string;};};};};};- '/envs/{envID}/builds/{buildID}': {+ "/envs/{envID}/builds/{buildID}": {/** Get environment build info */get: {parameters: {path: {- envID: components['parameters']['envID'];- buildID: components['parameters']['buildID'];+ envID: components["parameters"]["envID"];+ buildID: components["parameters"]["buildID"];};query: {/** Index of the starting build log that should be returned with the environment */@@ -144,33 +142,33 @@ export interface paths {/** Successfully returned the environment */200: {content: {- 'application/json': components['schemas']['EnvironmentBuild'];+ "application/json": components["schemas"]["EnvironmentBuild"];};};- 401: components['responses']['401'];- 404: components['responses']['404'];- 500: components['responses']['500'];+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];+ 500: components["responses"]["500"];};};};- '/envs/{envID}/builds/{buildID}/logs': {+ "/envs/{envID}/builds/{buildID}/logs": {/** Add a build log */post: {parameters: {path: {- envID: components['parameters']['envID'];- buildID: components['parameters']['buildID'];+ envID: components["parameters"]["envID"];+ buildID: components["parameters"]["buildID"];};};responses: {/** Successfully added log */201: unknown;- 401: components['responses']['401'];- 404: components['responses']['404'];+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];};requestBody: {content: {- 'application/json': {+ "application/json": {/** @description API secret */apiSecret: string;logs: string[];@@ -194,6 +192,8 @@ export interface components {buildID: string;/** @description Whether the environment is public or only accessible by the team */public: boolean;+ /** @description Aliases of the environment */+ aliases?: string[];};EnvironmentBuild: {/**@@ -209,7 +209,7 @@ export interface components {* @description Status of the environment* @enum {string}*/- status?: 'building' | 'ready' | 'error';+ status?: "building" | "ready" | "error";} & {finished: unknown;};@@ -235,25 +235,25 @@ export interface components {/** Bad request */400: {content: {- 'application/json': components['schemas']['Error'];+ "application/json": components["schemas"]["Error"];};};/** Authentication error */401: {content: {- 'application/json': components['schemas']['Error'];+ "application/json": components["schemas"]["Error"];};};/** Not found */404: {content: {- 'application/json': components['schemas']['Error'];+ "application/json": components["schemas"]["Error"];};};/** Server error */500: {content: {- 'application/json': components['schemas']['Error'];+ "application/json": components["schemas"]["Error"];};};};@@ -264,8 +264,6 @@ export interface components {};}-export interface operations {-}+export interface operations {}-export interface external {-}+export interface external {}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7dfa346c2..fea90e49c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2849,7 +2849,6 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==}- dev: true/@types/[email protected]:resolution: {integrity: sha512-HksnYH4Ljr4VQgEy2lTStbCKv/P590tmPe5HqOnv9Gprffgv5WXAY+Y5Gqniu0GGqeTCUdBnzC3QSrzPkBkAMA==}@@ -6571,7 +6570,7 @@ packages:resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}engines: {node: '>= 10.13.0'}dependencies:- '@types/node': 20.8.10+ '@types/node': 18.18.6merge-stream: 2.0.0supports-color: 8.1.1dev: falsediff --git a/spec/openapi.yml b/spec/openapi.ymlindex c64498409..19c5fab51 100644--- a/spec/openapi.yml+++ b/spec/openapi.yml@@ -88,6 +88,11 @@ components:public:type: booleandescription: Whether the environment is public or only accessible by the team+ aliases:+ type: array+ description: Aliases of the environment+ items:+ type: stringEnvironmentBuild:required:- envID@@ -274,7 +279,6 @@ paths:required:- buildContext- dockerfile- - envIDproperties:buildContext:description: Docker build context@@ -283,9 +287,6 @@ paths:dockerfile:type: stringdescription: Dockerfile content- envID:- type: string- description: ID of the environmentencoding:buildContext:contentType: application/octet-stream@@ -361,4 +362,4 @@ paths:401:$ref: "#/components/responses/401"404:- $ref: "#/components/responses/404"\ No newline at end of file+ $ref: "#/components/responses/404"