/** * 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 { FileInfo } from '../models'; import type { FilesDownloadRequest } from '../models'; import type { Match } from '../models'; import type { ReplaceRequest } from '../models'; import type { ReplaceResult } from '../models'; import type { SearchFilesResponse } from '../models'; /** * FileSystemApi - axios parameter creator * @export */ export declare const FileSystemApiAxiosParamCreator: (configuration?: Configuration) => { /** * Create a folder with the specified path and optional permissions * @summary Create a folder * @param {string} path Folder path to create * @param {string} mode Octal permission mode (default: 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFolder: (path: string, mode: string, options?: RawAxiosRequestConfig) => Promise; /** * Delete a file or directory at the specified path * @summary Delete a file or directory * @param {string} path File or directory path to delete * @param {boolean} [recursive] Enable recursive deletion for directories * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile: (path: string, recursive?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Download a file by providing its path * @summary Download a file * @param {string} path File path to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile: (path: string, options?: RawAxiosRequestConfig) => Promise; /** * Download multiple files by providing their paths * @summary Download multiple files * @param {FilesDownloadRequest} downloadFiles Paths of files to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFiles: (downloadFiles: FilesDownloadRequest, options?: RawAxiosRequestConfig) => Promise; /** * Search for text pattern within files in a directory * @summary Find text in files * @param {string} path Directory path to search in * @param {string} pattern Text pattern to search for * @param {*} [options] Override http request option. * @throws {RequiredError} */ findInFiles: (path: string, pattern: string, options?: RawAxiosRequestConfig) => Promise; /** * Get detailed information about a file or directory * @summary Get file information * @param {string} path File or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFileInfo: (path: string, options?: RawAxiosRequestConfig) => Promise; /** * List files and directories in the specified path * @summary List files and directories * @param {string} [path] Directory path to list (defaults to working directory) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFiles: (path?: string, options?: RawAxiosRequestConfig) => Promise; /** * Move or rename a file or directory from source to destination * @summary Move or rename file/directory * @param {string} source Source file or directory path * @param {string} destination Destination file or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveFile: (source: string, destination: string, options?: RawAxiosRequestConfig) => Promise; /** * Replace text pattern with new value in multiple files * @summary Replace text in files * @param {ReplaceRequest} request Replace request * @param {*} [options] Override http request option. * @throws {RequiredError} */ replaceInFiles: (request: ReplaceRequest, options?: RawAxiosRequestConfig) => Promise; /** * Search for files matching a specific pattern in a directory * @summary Search files by pattern * @param {string} path Directory path to search in * @param {string} pattern File pattern to match (e.g., *.txt, *.go) * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchFiles: (path: string, pattern: string, options?: RawAxiosRequestConfig) => Promise; /** * Set file permissions, ownership, and group for a file or directory * @summary Set file permissions * @param {string} path File or directory path * @param {string} [owner] Owner (username or UID) * @param {string} [group] Group (group name or GID) * @param {string} [mode] File mode in octal format (e.g., 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ setFilePermissions: (path: string, owner?: string, group?: string, mode?: string, options?: RawAxiosRequestConfig) => Promise; /** * Upload a file to the specified path * @summary Upload a file * @param {string} path Destination path for the uploaded file * @param {File} file File to upload * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile: (path: string, file: File, options?: RawAxiosRequestConfig) => Promise; /** * Upload multiple files with their destination paths * @summary Upload multiple files * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFiles: (options?: RawAxiosRequestConfig) => Promise; }; /** * FileSystemApi - functional programming interface * @export */ export declare const FileSystemApiFp: (configuration?: Configuration) => { /** * Create a folder with the specified path and optional permissions * @summary Create a folder * @param {string} path Folder path to create * @param {string} mode Octal permission mode (default: 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFolder(path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Delete a file or directory at the specified path * @summary Delete a file or directory * @param {string} path File or directory path to delete * @param {boolean} [recursive] Enable recursive deletion for directories * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile(path: string, recursive?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Download a file by providing its path * @summary Download a file * @param {string} path File path to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Download multiple files by providing their paths * @summary Download multiple files * @param {FilesDownloadRequest} downloadFiles Paths of files to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFiles(downloadFiles: FilesDownloadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>>; /** * Search for text pattern within files in a directory * @summary Find text in files * @param {string} path Directory path to search in * @param {string} pattern Text pattern to search for * @param {*} [options] Override http request option. * @throws {RequiredError} */ findInFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Get detailed information about a file or directory * @summary Get file information * @param {string} path File or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFileInfo(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * List files and directories in the specified path * @summary List files and directories * @param {string} [path] Directory path to list (defaults to working directory) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFiles(path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Move or rename a file or directory from source to destination * @summary Move or rename file/directory * @param {string} source Source file or directory path * @param {string} destination Destination file or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveFile(source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Replace text pattern with new value in multiple files * @summary Replace text in files * @param {ReplaceRequest} request Replace request * @param {*} [options] Override http request option. * @throws {RequiredError} */ replaceInFiles(request: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Search for files matching a specific pattern in a directory * @summary Search files by pattern * @param {string} path Directory path to search in * @param {string} pattern File pattern to match (e.g., *.txt, *.go) * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Set file permissions, ownership, and group for a file or directory * @summary Set file permissions * @param {string} path File or directory path * @param {string} [owner] Owner (username or UID) * @param {string} [group] Group (group name or GID) * @param {string} [mode] File mode in octal format (e.g., 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ setFilePermissions(path: string, owner?: string, group?: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Upload a file to the specified path * @summary Upload a file * @param {string} path Destination path for the uploaded file * @param {File} file File to upload * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile(path: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>>; /** * Upload multiple files with their destination paths * @summary Upload multiple files * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFiles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * FileSystemApi - factory interface * @export */ export declare const FileSystemApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Create a folder with the specified path and optional permissions * @summary Create a folder * @param {string} path Folder path to create * @param {string} mode Octal permission mode (default: 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFolder(path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Delete a file or directory at the specified path * @summary Delete a file or directory * @param {string} path File or directory path to delete * @param {boolean} [recursive] Enable recursive deletion for directories * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile(path: string, recursive?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Download a file by providing its path * @summary Download a file * @param {string} path File path to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile(path: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Download multiple files by providing their paths * @summary Download multiple files * @param {FilesDownloadRequest} downloadFiles Paths of files to download * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFiles(downloadFiles: FilesDownloadRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: object; }>; /** * Search for text pattern within files in a directory * @summary Find text in files * @param {string} path Directory path to search in * @param {string} pattern Text pattern to search for * @param {*} [options] Override http request option. * @throws {RequiredError} */ findInFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Get detailed information about a file or directory * @summary Get file information * @param {string} path File or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFileInfo(path: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * List files and directories in the specified path * @summary List files and directories * @param {string} [path] Directory path to list (defaults to working directory) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFiles(path?: string, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Move or rename a file or directory from source to destination * @summary Move or rename file/directory * @param {string} source Source file or directory path * @param {string} destination Destination file or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveFile(source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Replace text pattern with new value in multiple files * @summary Replace text in files * @param {ReplaceRequest} request Replace request * @param {*} [options] Override http request option. * @throws {RequiredError} */ replaceInFiles(request: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Search for files matching a specific pattern in a directory * @summary Search files by pattern * @param {string} path Directory path to search in * @param {string} pattern File pattern to match (e.g., *.txt, *.go) * @param {*} [options] Override http request option. * @throws {RequiredError} */ searchFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Set file permissions, ownership, and group for a file or directory * @summary Set file permissions * @param {string} path File or directory path * @param {string} [owner] Owner (username or UID) * @param {string} [group] Group (group name or GID) * @param {string} [mode] File mode in octal format (e.g., 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} */ setFilePermissions(path: string, owner?: string, group?: string, mode?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Upload a file to the specified path * @summary Upload a file * @param {string} path Destination path for the uploaded file * @param {File} file File to upload * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile(path: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: object; }>; /** * Upload multiple files with their destination paths * @summary Upload multiple files * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFiles(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * FileSystemApi - object-oriented interface * @export * @class FileSystemApi * @extends {BaseAPI} */ export declare class FileSystemApi extends BaseAPI { /** * Create a folder with the specified path and optional permissions * @summary Create a folder * @param {string} path Folder path to create * @param {string} mode Octal permission mode (default: 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ createFolder(path: string, mode: string, options?: RawAxiosRequestConfig): Promise>; /** * Delete a file or directory at the specified path * @summary Delete a file or directory * @param {string} path File or directory path to delete * @param {boolean} [recursive] Enable recursive deletion for directories * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ deleteFile(path: string, recursive?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Download a file by providing its path * @summary Download a file * @param {string} path File path to download * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ downloadFile(path: string, options?: RawAxiosRequestConfig): Promise>; /** * Download multiple files by providing their paths * @summary Download multiple files * @param {FilesDownloadRequest} downloadFiles Paths of files to download * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ downloadFiles(downloadFiles: FilesDownloadRequest, options?: RawAxiosRequestConfig): Promise>; /** * Search for text pattern within files in a directory * @summary Find text in files * @param {string} path Directory path to search in * @param {string} pattern Text pattern to search for * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ findInFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): Promise>; /** * Get detailed information about a file or directory * @summary Get file information * @param {string} path File or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ getFileInfo(path: string, options?: RawAxiosRequestConfig): Promise>; /** * List files and directories in the specified path * @summary List files and directories * @param {string} [path] Directory path to list (defaults to working directory) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ listFiles(path?: string, options?: RawAxiosRequestConfig): Promise>; /** * Move or rename a file or directory from source to destination * @summary Move or rename file/directory * @param {string} source Source file or directory path * @param {string} destination Destination file or directory path * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ moveFile(source: string, destination: string, options?: RawAxiosRequestConfig): Promise>; /** * Replace text pattern with new value in multiple files * @summary Replace text in files * @param {ReplaceRequest} request Replace request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ replaceInFiles(request: ReplaceRequest, options?: RawAxiosRequestConfig): Promise>; /** * Search for files matching a specific pattern in a directory * @summary Search files by pattern * @param {string} path Directory path to search in * @param {string} pattern File pattern to match (e.g., *.txt, *.go) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ searchFiles(path: string, pattern: string, options?: RawAxiosRequestConfig): Promise>; /** * Set file permissions, ownership, and group for a file or directory * @summary Set file permissions * @param {string} path File or directory path * @param {string} [owner] Owner (username or UID) * @param {string} [group] Group (group name or GID) * @param {string} [mode] File mode in octal format (e.g., 0755) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ setFilePermissions(path: string, owner?: string, group?: string, mode?: string, options?: RawAxiosRequestConfig): Promise>; /** * Upload a file to the specified path * @summary Upload a file * @param {string} path Destination path for the uploaded file * @param {File} file File to upload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ uploadFile(path: string, file: File, options?: RawAxiosRequestConfig): Promise>; /** * Upload multiple files with their destination paths * @summary Upload multiple files * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileSystemApi */ uploadFiles(options?: RawAxiosRequestConfig): Promise>; }