/** * 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 { GitAddRequest } from '../models'; import type { GitBranchRequest } from '../models'; import type { GitCheckoutRequest } from '../models'; import type { GitCloneRequest } from '../models'; import type { GitCommitInfo } from '../models'; import type { GitCommitRequest } from '../models'; import type { GitCommitResponse } from '../models'; import type { GitGitDeleteBranchRequest } from '../models'; import type { GitRepoRequest } from '../models'; import type { GitStatus } from '../models'; import type { ListBranchResponse } from '../models'; /** * GitApi - axios parameter creator * @export */ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) => { /** * Add files to the Git staging area * @summary Add files to Git staging * @param {GitAddRequest} request Add files request * @param {*} [options] Override http request option. * @throws {RequiredError} */ addFiles: (request: GitAddRequest, options?: RawAxiosRequestConfig) => Promise; /** * Switch to a different branch or commit in the Git repository * @summary Checkout branch or commit * @param {GitCheckoutRequest} request Checkout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkoutBranch: (request: GitCheckoutRequest, options?: RawAxiosRequestConfig) => Promise; /** * Clone a Git repository to the specified path * @summary Clone a Git repository * @param {GitCloneRequest} request Clone repository request * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneRepository: (request: GitCloneRequest, options?: RawAxiosRequestConfig) => Promise; /** * Commit staged changes to the Git repository * @summary Commit changes * @param {GitCommitRequest} request Commit request * @param {*} [options] Override http request option. * @throws {RequiredError} */ commitChanges: (request: GitCommitRequest, options?: RawAxiosRequestConfig) => Promise; /** * Create a new branch in the Git repository * @summary Create a new branch * @param {GitBranchRequest} request Create branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBranch: (request: GitBranchRequest, options?: RawAxiosRequestConfig) => Promise; /** * Delete a branch from the Git repository * @summary Delete a branch * @param {GitGitDeleteBranchRequest} request Delete branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBranch: (request: GitGitDeleteBranchRequest, options?: RawAxiosRequestConfig) => Promise; /** * Get the commit history of the Git repository * @summary Get commit history * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCommitHistory: (path: string, options?: RawAxiosRequestConfig) => Promise; /** * Get the Git status of the repository at the specified path * @summary Get Git status * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStatus: (path: string, options?: RawAxiosRequestConfig) => Promise; /** * Get a list of all branches in the Git repository * @summary List branches * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBranches: (path: string, options?: RawAxiosRequestConfig) => Promise; /** * Pull changes from the remote Git repository * @summary Pull changes from remote * @param {GitRepoRequest} request Pull request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pullChanges: (request: GitRepoRequest, options?: RawAxiosRequestConfig) => Promise; /** * Push local changes to the remote Git repository * @summary Push changes to remote * @param {GitRepoRequest} request Push request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pushChanges: (request: GitRepoRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * GitApi - functional programming interface * @export */ export declare const GitApiFp: (configuration?: Configuration) => { /** * Add files to the Git staging area * @summary Add files to Git staging * @param {GitAddRequest} request Add files request * @param {*} [options] Override http request option. * @throws {RequiredError} */ addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Switch to a different branch or commit in the Git repository * @summary Checkout branch or commit * @param {GitCheckoutRequest} request Checkout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkoutBranch(request: GitCheckoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Clone a Git repository to the specified path * @summary Clone a Git repository * @param {GitCloneRequest} request Clone repository request * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneRepository(request: GitCloneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Commit staged changes to the Git repository * @summary Commit changes * @param {GitCommitRequest} request Commit request * @param {*} [options] Override http request option. * @throws {RequiredError} */ commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Create a new branch in the Git repository * @summary Create a new branch * @param {GitBranchRequest} request Create branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBranch(request: GitBranchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Delete a branch from the Git repository * @summary Delete a branch * @param {GitGitDeleteBranchRequest} request Delete branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBranch(request: GitGitDeleteBranchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get the commit history of the Git repository * @summary Get commit history * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCommitHistory(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Get the Git status of the repository at the specified path * @summary Get Git status * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStatus(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get a list of all branches in the Git repository * @summary List branches * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBranches(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Pull changes from the remote Git repository * @summary Pull changes from remote * @param {GitRepoRequest} request Pull request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Push local changes to the remote Git repository * @summary Push changes to remote * @param {GitRepoRequest} request Push request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * GitApi - factory interface * @export */ export declare const GitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Add files to the Git staging area * @summary Add files to Git staging * @param {GitAddRequest} request Add files request * @param {*} [options] Override http request option. * @throws {RequiredError} */ addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Switch to a different branch or commit in the Git repository * @summary Checkout branch or commit * @param {GitCheckoutRequest} request Checkout request * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkoutBranch(request: GitCheckoutRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Clone a Git repository to the specified path * @summary Clone a Git repository * @param {GitCloneRequest} request Clone repository request * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneRepository(request: GitCloneRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Commit staged changes to the Git repository * @summary Commit changes * @param {GitCommitRequest} request Commit request * @param {*} [options] Override http request option. * @throws {RequiredError} */ commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Create a new branch in the Git repository * @summary Create a new branch * @param {GitBranchRequest} request Create branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBranch(request: GitBranchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Delete a branch from the Git repository * @summary Delete a branch * @param {GitGitDeleteBranchRequest} request Delete branch request * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBranch(request: GitGitDeleteBranchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get the commit history of the Git repository * @summary Get commit history * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCommitHistory(path: string, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Get the Git status of the repository at the specified path * @summary Get Git status * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStatus(path: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a list of all branches in the Git repository * @summary List branches * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBranches(path: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Pull changes from the remote Git repository * @summary Pull changes from remote * @param {GitRepoRequest} request Pull request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Push local changes to the remote Git repository * @summary Push changes to remote * @param {GitRepoRequest} request Push request * @param {*} [options] Override http request option. * @throws {RequiredError} */ pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * GitApi - object-oriented interface * @export * @class GitApi * @extends {BaseAPI} */ export declare class GitApi extends BaseAPI { /** * Add files to the Git staging area * @summary Add files to Git staging * @param {GitAddRequest} request Add files request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): Promise>; /** * Switch to a different branch or commit in the Git repository * @summary Checkout branch or commit * @param {GitCheckoutRequest} request Checkout request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ checkoutBranch(request: GitCheckoutRequest, options?: RawAxiosRequestConfig): Promise>; /** * Clone a Git repository to the specified path * @summary Clone a Git repository * @param {GitCloneRequest} request Clone repository request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ cloneRepository(request: GitCloneRequest, options?: RawAxiosRequestConfig): Promise>; /** * Commit staged changes to the Git repository * @summary Commit changes * @param {GitCommitRequest} request Commit request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): Promise>; /** * Create a new branch in the Git repository * @summary Create a new branch * @param {GitBranchRequest} request Create branch request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ createBranch(request: GitBranchRequest, options?: RawAxiosRequestConfig): Promise>; /** * Delete a branch from the Git repository * @summary Delete a branch * @param {GitGitDeleteBranchRequest} request Delete branch request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ deleteBranch(request: GitGitDeleteBranchRequest, options?: RawAxiosRequestConfig): Promise>; /** * Get the commit history of the Git repository * @summary Get commit history * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ getCommitHistory(path: string, options?: RawAxiosRequestConfig): Promise>; /** * Get the Git status of the repository at the specified path * @summary Get Git status * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ getStatus(path: string, options?: RawAxiosRequestConfig): Promise>; /** * Get a list of all branches in the Git repository * @summary List branches * @param {string} path Repository path * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ listBranches(path: string, options?: RawAxiosRequestConfig): Promise>; /** * Pull changes from the remote Git repository * @summary Pull changes from remote * @param {GitRepoRequest} request Pull request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise>; /** * Push local changes to the remote Git repository * @summary Push changes to remote * @param {GitRepoRequest} request Push request * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GitApi */ pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise>; }