Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Regenerate logs endpoint from API spec
Tomas Valentaf00c58658e78
diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsindex 57782ea72..3ba2d2fc1 100644--- a/packages/js-sdk/src/api/schema.gen.ts+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -57,9 +57,9 @@ export interface paths {sandboxID: components["parameters"]["sandboxID"];};query: {- /** Index of the starting log that should be returned with the sandbox */- offset?: number;- /** Maximum number of logs that should be returned with the sandbox */+ /** Starting timestamp of the logs that should be returned */+ start?: number;+ /** Maximum number of logs that should be returned */limit?: number;};};@@ -264,10 +264,20 @@ export interface components {schemas: {SandboxMetadata: { [key: string]: string };SandboxLogs: {- /** @description Logs of the sandbox */- logs: string[];- /** @description Index of the last log */- logsOffset: number;+ /** @description Logs of the sandbox with timestamp and line */+ logs: {+ /**+ * Format: date-time+ * @description Timestamp of the log entry+ */+ timestamp: string;+ /** @description Log line content */+ line: string;+ }[];+ /** @description ID of the sandbox */+ sandboxID: string;+ /** @description ID of the environment */+ envID: string;};Sandbox: {/** @description Identifier of the template from which is the sandbox created */diff --git a/spec/openapi.yml b/spec/openapi.ymlindex 65fb0d922..eb85a5ead 100644--- a/spec/openapi.yml+++ b/spec/openapi.yml@@ -73,13 +73,31 @@ components:SandboxLogs:required:- logs+ - sandboxID+ - envIDproperties:logs:type: arrayitems:- type: string- description: Logs of the sandbox-+ type: object+ required:+ - timestamp+ - line+ properties:+ timestamp:+ type: string+ format: date-time+ description: Timestamp of the log entry+ line:+ type: string+ description: Log line content+ description: Logs of the sandbox with timestamp and line+ sandboxID:+ type: string+ description: ID of the sandbox+ envID:+ type: string+ description: ID of the environmentSandbox:required:- templateID@@ -305,9 +323,8 @@ paths:parameters:- $ref: "#/components/parameters/sandboxID"- in: query- name: since+ name: startschema:- default: 0type: integerdescription: Starting timestamp of the logs that should be returned- in: query