/** * 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 { Command } from '../models'; import type { CreateSessionRequest } from '../models'; import type { ExecuteRequest } from '../models'; import type { ExecuteResponse } from '../models'; import type { PtyCreateRequest } from '../models'; import type { PtyCreateResponse } from '../models'; import type { PtyListResponse } from '../models'; import type { PtyResizeRequest } from '../models'; import type { PtySessionInfo } from '../models'; import type { Session } from '../models'; import type { SessionExecuteRequest } from '../models'; import type { SessionExecuteResponse } from '../models'; /** * ProcessApi - axios parameter creator * @export */ export declare const ProcessApiAxiosParamCreator: (configuration?: Configuration) => { /** * Establish a WebSocket connection to interact with a pseudo-terminal session * @summary Connect to PTY session via WebSocket * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ connectPtySession: (sessionId: string, options?: RawAxiosRequestConfig) => Promise; /** * Create a new pseudo-terminal session with specified configuration * @summary Create a new PTY session * @param {PtyCreateRequest} request PTY session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPtySession: (request: PtyCreateRequest, options?: RawAxiosRequestConfig) => Promise; /** * Create a new shell session for command execution * @summary Create a new session * @param {CreateSessionRequest} request Session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSession: (request: CreateSessionRequest, options?: RawAxiosRequestConfig) => Promise; /** * Delete a pseudo-terminal session and terminate its process * @summary Delete a PTY session * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deletePtySession: (sessionId: string, options?: RawAxiosRequestConfig) => Promise; /** * Delete an existing shell session * @summary Delete a session * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSession: (sessionId: string, options?: RawAxiosRequestConfig) => Promise; /** * Execute a shell command and return the output and exit code * @summary Execute a command * @param {ExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeCommand: (request: ExecuteRequest, options?: RawAxiosRequestConfig) => Promise; /** * Get detailed information about a specific pseudo-terminal session * @summary Get PTY session information * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPtySession: (sessionId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get details of a specific session including its commands * @summary Get session details * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSession: (sessionId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get details of a specific command within a session * @summary Get session command details * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommand: (sessionId: string, commandId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming. * @summary Get session command logs * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {boolean} [follow] Follow logs in real-time (WebSocket only) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommandLogs: (sessionId: string, commandId: string, follow?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Get a list of all active pseudo-terminal sessions * @summary List all PTY sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPtySessions: (options?: RawAxiosRequestConfig) => Promise; /** * Get a list of all active shell sessions * @summary List all sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions: (options?: RawAxiosRequestConfig) => Promise; /** * Resize the terminal dimensions of a pseudo-terminal session * @summary Resize a PTY session * @param {string} sessionId PTY session ID * @param {PtyResizeRequest} request Resize request with new dimensions * @param {*} [options] Override http request option. * @throws {RequiredError} */ resizePtySession: (sessionId: string, request: PtyResizeRequest, options?: RawAxiosRequestConfig) => Promise; /** * Execute a command within an existing shell session * @summary Execute command in session * @param {string} sessionId Session ID * @param {SessionExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ sessionExecuteCommand: (sessionId: string, request: SessionExecuteRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * ProcessApi - functional programming interface * @export */ export declare const ProcessApiFp: (configuration?: Configuration) => { /** * Establish a WebSocket connection to interact with a pseudo-terminal session * @summary Connect to PTY session via WebSocket * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ connectPtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Create a new pseudo-terminal session with specified configuration * @summary Create a new PTY session * @param {PtyCreateRequest} request PTY session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPtySession(request: PtyCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Create a new shell session for command execution * @summary Create a new session * @param {CreateSessionRequest} request Session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSession(request: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Delete a pseudo-terminal session and terminate its process * @summary Delete a PTY session * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deletePtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>>; /** * Delete an existing shell session * @summary Delete a session * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Execute a shell command and return the output and exit code * @summary Execute a command * @param {ExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeCommand(request: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get detailed information about a specific pseudo-terminal session * @summary Get PTY session information * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get details of a specific session including its commands * @summary Get session details * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSession(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get details of a specific command within a session * @summary Get session command details * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommand(sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming. * @summary Get session command logs * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {boolean} [follow] Follow logs in real-time (WebSocket only) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommandLogs(sessionId: string, commandId: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get a list of all active pseudo-terminal sessions * @summary List all PTY sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPtySessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get a list of all active shell sessions * @summary List all sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Resize the terminal dimensions of a pseudo-terminal session * @summary Resize a PTY session * @param {string} sessionId PTY session ID * @param {PtyResizeRequest} request Resize request with new dimensions * @param {*} [options] Override http request option. * @throws {RequiredError} */ resizePtySession(sessionId: string, request: PtyResizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Execute a command within an existing shell session * @summary Execute command in session * @param {string} sessionId Session ID * @param {SessionExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ sessionExecuteCommand(sessionId: string, request: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * ProcessApi - factory interface * @export */ export declare const ProcessApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Establish a WebSocket connection to interact with a pseudo-terminal session * @summary Connect to PTY session via WebSocket * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ connectPtySession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Create a new pseudo-terminal session with specified configuration * @summary Create a new PTY session * @param {PtyCreateRequest} request PTY session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPtySession(request: PtyCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Create a new shell session for command execution * @summary Create a new session * @param {CreateSessionRequest} request Session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSession(request: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Delete a pseudo-terminal session and terminate its process * @summary Delete a PTY session * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deletePtySession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: object; }>; /** * Delete an existing shell session * @summary Delete a session * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Execute a shell command and return the output and exit code * @summary Execute a command * @param {ExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeCommand(request: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get detailed information about a specific pseudo-terminal session * @summary Get PTY session information * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPtySession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get details of a specific session including its commands * @summary Get session details * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSession(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get details of a specific command within a session * @summary Get session command details * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommand(sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming. * @summary Get session command logs * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {boolean} [follow] Follow logs in real-time (WebSocket only) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSessionCommandLogs(sessionId: string, commandId: string, follow?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a list of all active pseudo-terminal sessions * @summary List all PTY sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPtySessions(options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a list of all active shell sessions * @summary List all sessions * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions(options?: RawAxiosRequestConfig): AxiosPromise>; /** * Resize the terminal dimensions of a pseudo-terminal session * @summary Resize a PTY session * @param {string} sessionId PTY session ID * @param {PtyResizeRequest} request Resize request with new dimensions * @param {*} [options] Override http request option. * @throws {RequiredError} */ resizePtySession(sessionId: string, request: PtyResizeRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Execute a command within an existing shell session * @summary Execute command in session * @param {string} sessionId Session ID * @param {SessionExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} */ sessionExecuteCommand(sessionId: string, request: SessionExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * ProcessApi - object-oriented interface * @export * @class ProcessApi * @extends {BaseAPI} */ export declare class ProcessApi extends BaseAPI { /** * Establish a WebSocket connection to interact with a pseudo-terminal session * @summary Connect to PTY session via WebSocket * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ connectPtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise>; /** * Create a new pseudo-terminal session with specified configuration * @summary Create a new PTY session * @param {PtyCreateRequest} request PTY session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ createPtySession(request: PtyCreateRequest, options?: RawAxiosRequestConfig): Promise>; /** * Create a new shell session for command execution * @summary Create a new session * @param {CreateSessionRequest} request Session creation request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ createSession(request: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise>; /** * Delete a pseudo-terminal session and terminate its process * @summary Delete a PTY session * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ deletePtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise>; /** * Delete an existing shell session * @summary Delete a session * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ deleteSession(sessionId: string, options?: RawAxiosRequestConfig): Promise>; /** * Execute a shell command and return the output and exit code * @summary Execute a command * @param {ExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ executeCommand(request: ExecuteRequest, options?: RawAxiosRequestConfig): Promise>; /** * Get detailed information about a specific pseudo-terminal session * @summary Get PTY session information * @param {string} sessionId PTY session ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ getPtySession(sessionId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get details of a specific session including its commands * @summary Get session details * @param {string} sessionId Session ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ getSession(sessionId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get details of a specific command within a session * @summary Get session command details * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ getSessionCommand(sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming. * @summary Get session command logs * @param {string} sessionId Session ID * @param {string} commandId Command ID * @param {boolean} [follow] Follow logs in real-time (WebSocket only) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ getSessionCommandLogs(sessionId: string, commandId: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Get a list of all active pseudo-terminal sessions * @summary List all PTY sessions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ listPtySessions(options?: RawAxiosRequestConfig): Promise>; /** * Get a list of all active shell sessions * @summary List all sessions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ listSessions(options?: RawAxiosRequestConfig): Promise>; /** * Resize the terminal dimensions of a pseudo-terminal session * @summary Resize a PTY session * @param {string} sessionId PTY session ID * @param {PtyResizeRequest} request Resize request with new dimensions * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ resizePtySession(sessionId: string, request: PtyResizeRequest, options?: RawAxiosRequestConfig): Promise>; /** * Execute a command within an existing shell session * @summary Execute command in session * @param {string} sessionId Session ID * @param {SessionExecuteRequest} request Command execution request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessApi */ sessionExecuteCommand(sessionId: string, request: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise>; }