/** * Daytona Toolbox API * Daytona Toolbox API * * The version of the OpenAPI document: v0.0.0-dev * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { CreateContextRequest } from '../models'; import type { InterpreterContext } from '../models'; import type { ListContextsResponse } from '../models'; /** * InterpreterApi - axios parameter creator * @export */ export declare const InterpreterApiAxiosParamCreator: (configuration?: Configuration) => { /** * Creates a new isolated interpreter context with optional working directory and language * @summary Create a new interpreter context * @param {CreateContextRequest} request Context configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInterpreterContext: (request: CreateContextRequest, options?: RawAxiosRequestConfig) => Promise; /** * Deletes an interpreter context and shuts down its worker process * @summary Delete an interpreter context * @param {string} id Context ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInterpreterContext: (id: string, options?: RawAxiosRequestConfig) => Promise; /** * Executes code in a specified context (or default context if not specified) via WebSocket streaming * @summary Execute code in an interpreter context * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeInterpreterCode: (options?: RawAxiosRequestConfig) => Promise; /** * Returns information about all user-created interpreter contexts (excludes default context) * @summary List all user-created interpreter contexts * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInterpreterContexts: (options?: RawAxiosRequestConfig) => Promise; }; /** * InterpreterApi - functional programming interface * @export */ export declare const InterpreterApiFp: (configuration?: Configuration) => { /** * Creates a new isolated interpreter context with optional working directory and language * @summary Create a new interpreter context * @param {CreateContextRequest} request Context configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInterpreterContext(request: CreateContextRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Deletes an interpreter context and shuts down its worker process * @summary Delete an interpreter context * @param {string} id Context ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInterpreterContext(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: string; }>>; /** * Executes code in a specified context (or default context if not specified) via WebSocket streaming * @summary Execute code in an interpreter context * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeInterpreterCode(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns information about all user-created interpreter contexts (excludes default context) * @summary List all user-created interpreter contexts * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInterpreterContexts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * InterpreterApi - factory interface * @export */ export declare const InterpreterApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Creates a new isolated interpreter context with optional working directory and language * @summary Create a new interpreter context * @param {CreateContextRequest} request Context configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInterpreterContext(request: CreateContextRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Deletes an interpreter context and shuts down its worker process * @summary Delete an interpreter context * @param {string} id Context ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInterpreterContext(id: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: string; }>; /** * Executes code in a specified context (or default context if not specified) via WebSocket streaming * @summary Execute code in an interpreter context * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeInterpreterCode(options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns information about all user-created interpreter contexts (excludes default context) * @summary List all user-created interpreter contexts * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInterpreterContexts(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * InterpreterApi - object-oriented interface * @export * @class InterpreterApi * @extends {BaseAPI} */ export declare class InterpreterApi extends BaseAPI { /** * Creates a new isolated interpreter context with optional working directory and language * @summary Create a new interpreter context * @param {CreateContextRequest} request Context configuration * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InterpreterApi */ createInterpreterContext(request: CreateContextRequest, options?: RawAxiosRequestConfig): Promise>; /** * Deletes an interpreter context and shuts down its worker process * @summary Delete an interpreter context * @param {string} id Context ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InterpreterApi */ deleteInterpreterContext(id: string, options?: RawAxiosRequestConfig): Promise>; /** * Executes code in a specified context (or default context if not specified) via WebSocket streaming * @summary Execute code in an interpreter context * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InterpreterApi */ executeInterpreterCode(options?: RawAxiosRequestConfig): Promise>; /** * Returns information about all user-created interpreter contexts (excludes default context) * @summary List all user-created interpreter contexts * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InterpreterApi */ listInterpreterContexts(options?: RawAxiosRequestConfig): Promise>; }