@basetenlabs/client - v0.5.0
    Preparing search index...

    Type Alias components

    This file was auto-generated by openapi-typescript. Do not make direct changes to the file.

    type components = {
        headers: never;
        parameters: never;
        pathItems: never;
        requestBodies: never;
        responses: never;
        schemas: {
            ApplyEditRequest: { codeEdit: string; model?: string };
            ApplyEditResponse: {
                message?: string;
                originalContent?: string;
                path?: string;
                provider?: string;
                success?: boolean;
                updatedContent?: string;
            };
            ArchiveChange: {
                kind: components["schemas"]["ArchiveChangeKind"];
                path: string;
                size?: number;
            };
            ArchiveChangeKind: "added"
            | "modified"
            | "deleted";
            ArchiveExportState: "running" | "succeeded" | "failed";
            ArchiveManifest: {
                added?: number;
                apiVersion?: string;
                createdAt: string;
                deleted?: string[];
                excludes?: string[];
                imageDevice?: string;
                modified?: number;
                payloadBytes?: number;
                processes?: boolean;
                root: string;
                version: number;
            };
            ArchiveQuiesceState: "active"
            | "quiescing"
            | "quiesced"
            | "restoring";
            ArchiveRestoreState:
                | "downloading"
                | "extracting"
                | "relaunching"
                | "succeeded"
                | "failed";
            ContentSearchMatch: {
                column: number;
                context?: string;
                line: number;
                path: string;
                text: string;
            };
            ContentSearchResponse: {
                matches: components["schemas"]["ContentSearchMatch"][];
                query: string;
                total: number;
            };
            DeleteFilesystemParams: { recursive?: boolean };
            DeleteFilesystemTreeParams: { recursive?: boolean };
            DeleteNetworkProcessMonitorResponse: { [key: string]: unknown };
            Directory: {
                files: components["schemas"]["File"][];
                name: string;
                path: string;
                subdirectories: components["schemas"]["Subdirectory"][];
            };
            DriveListResponse: { mounts?: components["schemas"]["DriveMountInfo"][] };
            DriveMountInfo: {
                driveName?: string;
                drivePath?: string;
                gidMap?: string;
                mountPath?: string;
                readOnly?: boolean;
                uidMap?: string;
            };
            DriveMountRequest: {
                driveName: string;
                drivePath?: string;
                gidMap?: string;
                mountPath: string;
                readOnly?: boolean;
                uidMap?: string;
            };
            DriveMountResponse: {
                driveName?: string;
                drivePath?: string;
                gidMap?: string;
                message?: string;
                mountPath?: string;
                readOnly?: boolean;
                success?: boolean;
                uidMap?: string;
            };
            DriveUnmountResponse: {
                message?: string;
                mountPath?: string;
                success?: boolean;
            };
            ErrorResponse: { error: string };
            ExportOptions: {
                async?: boolean;
                dryRun?: boolean;
                excludes?: string[];
                headers?: { [key: string]: string };
                imageDevice?: string;
                imageMountPoint?: string;
                multipart?: components["schemas"]["MultipartUpload"];
                saveProcesses?: boolean;
                stopTimeoutSeconds?: number;
                url?: string;
            };
            ExportProgress: {
                error?: string;
                finishedAt?: string;
                size?: number;
                startedAt?: string;
                state?: components["schemas"]["ArchiveExportState"];
                uploaded?: boolean;
            };
            ExportResult: {
                changes?: components["schemas"]["ArchiveChange"][];
                duration?: string;
                manifest: components["schemas"]["ArchiveManifest"];
                size?: number;
                stoppedProcesses?: string[];
                uploaded?: boolean;
            };
            File: {
                group: string;
                lastModified: string;
                name: string;
                owner: string;
                path: string;
                permissions: string;
                size: number;
            };
            FileRequest: {
                content?: string;
                isDirectory?: boolean;
                permissions?: string;
            };
            FilesystemMultipartUpload: {
                initiatedAt?: string;
                parts?: {
                    [key: string]: {
                        etag?: string;
                        partNumber?: number;
                        size?: number;
                        uploadedAt?: string;
                    };
                };
                path?: string;
                permissions?: number;
                uploadId?: string;
            };
            FilesystemUploadedPart: {
                etag?: string;
                partNumber?: number;
                size?: number;
                uploadedAt?: string;
            };
            FileWithContent: {
                content: string;
                group: string;
                lastModified: string;
                name: string;
                owner: string;
                path: string;
                permissions: string;
                size: number;
            };
            FindMatch: { path: string; type: string };
            FindResponse: {
                matches: components["schemas"]["FindMatch"][];
                total: number;
            };
            FuzzySearchMatch: { path: string; score: number; type: string };
            FuzzySearchResponse: {
                matches: components["schemas"]["FuzzySearchMatch"][];
                total: number;
            };
            GetCodegenRerankingParams: {
                filePattern?: string;
                query: string;
                scoreThreshold?: number;
                tokenLimit?: number;
            };
            GetFilesystemContentSearchParams: {
                caseSensitive?: boolean;
                contextLines?: number;
                excludeDirs?: string;
                filePattern?: string;
                maxResults?: number;
                query: string;
            };
            GetFilesystemFindParams: {
                excludeDirs?: string;
                excludeHidden?: boolean;
                maxResults?: number;
                patterns?: string;
                type?: string;
            };
            GetFilesystemParams: { download?: boolean };
            GetFilesystemResponse:
                | components["schemas"]["Directory"]
                | components["schemas"]["FileWithContent"]
                | string;
            GetFilesystemSearchParams: {
                excludeDirs?: string;
                excludeHidden?: boolean;
                maxResults?: number;
                patterns?: string;
                query?: string;
            };
            GetNetworkProcessPortsResponse: { [key: string]: unknown };
            GetProcessResponse: components["schemas"]["ProcessResponse"][];
            GetWatchFilesystemParams: { ignore?: string };
            HandlerReloadResponse: {
                applied?: number;
                generation?: number;
                removed?: number;
            };
            HealthResponse: {
                arch: string;
                buildTime: string;
                gitCommit: string;
                goVersion: string;
                lastUpgrade: components["schemas"]["UpgradeStatus"];
                os: string;
                startedAt: string;
                status: string;
                upgradeCount: number;
                uptime: string;
                uptimeSeconds: number;
                version: string;
            };
            MultipartCompleteRequest: {
                parts?: components["schemas"]["MultipartPartInfo"][];
            };
            MultipartInitiateRequest: { permissions?: string };
            MultipartInitiateResponse: { path?: string; uploadId?: string };
            MultipartListPartsResponse: {
                parts?: components["schemas"]["FilesystemUploadedPart"][];
                uploadId?: string;
            };
            MultipartListUploadsResponse: {
                uploads?: components["schemas"]["FilesystemMultipartUpload"][];
            };
            MultipartPartInfo: { etag?: string; partNumber?: number };
            MultipartUpload: {
                abortUrl?: string;
                completeUrl?: string;
                partSize?: number;
                partUrls?: string[];
            };
            MultipartUploadPartResponse: {
                etag?: string;
                partNumber?: number;
                size?: number;
            };
            PortMonitorRequest: { callback?: string };
            PostNetworkProcessMonitorResponse: { [key: string]: unknown };
            ProcessLogs: { logs: string; stderr: string; stdout: string };
            ProcessRequest: {
                command: string;
                env?: { [key: string]: string };
                keepAlive?: boolean;
                maxRestarts?: number;
                name?: string;
                restartOnFailure?: boolean;
                stdin?: boolean;
                timeout?: number;
                waitForCompletion?: boolean;
                waitForPorts?: number[];
                workingDir?: string;
            };
            ProcessResponse: {
                command: string;
                completedAt: string;
                exitCode: number;
                keepAlive?: boolean;
                logs: string;
                maxRestarts?: number;
                name: string;
                pid: string;
                restartCount?: number;
                restartOnFailure?: boolean;
                startedAt: string;
                status: "failed"
                | "killed"
                | "stopped"
                | "running"
                | "completed";
                stderr: string;
                stdin?: boolean;
                stdout: string;
                workingDir: string;
            };
            ProcessUpgradeState: "idle"
            | "running"
            | "completed"
            | "failed";
            PutFilesystemMultipartPartParams: { partNumber: number };
            QuiesceStatus: {
                export?: components["schemas"]["ExportProgress"];
                readOnlyRoot?: boolean;
                reason?: string;
                restore?: components["schemas"]["RestoreProgress"];
                since?: string;
                state: components["schemas"]["ArchiveQuiesceState"];
                stoppedProcesses?: string[];
            };
            RankedFile: { content?: string; path?: string; score?: number };
            RerankingResponse: {
                files?: components["schemas"]["RankedFile"][];
                message?: string;
                success?: boolean;
            };
            RestoreProgress: {
                deleted?: number;
                downloaded?: number;
                error?: string;
                finishedAt?: string;
                restored?: number;
                size?: number;
                startedAt?: string;
                state?: components["schemas"]["ArchiveRestoreState"];
            };
            Subdirectory: { name: string; path: string };
            SuccessResponse: { message: string; path?: string };
            TreeRequest: { files?: { [key: string]: string } };
            TunnelConfigRequest: { config: string };
            UpgradeRequest: { baseUrl?: string; version?: string };
            UpgradeStatus: {
                binaryPath?: string;
                bytesDownloaded?: number;
                downloadUrl?: string;
                error?: string;
                lastAttempt?: string;
                status: components["schemas"]["ProcessUpgradeState"];
                step: string;
                version: string;
            };
        };
    }
    Index
    headers: never
    parameters: never
    pathItems: never
    requestBodies: never
    responses: never
    schemas: {
        ApplyEditRequest: { codeEdit: string; model?: string };
        ApplyEditResponse: {
            message?: string;
            originalContent?: string;
            path?: string;
            provider?: string;
            success?: boolean;
            updatedContent?: string;
        };
        ArchiveChange: {
            kind: components["schemas"]["ArchiveChangeKind"];
            path: string;
            size?: number;
        };
        ArchiveChangeKind: "added"
        | "modified"
        | "deleted";
        ArchiveExportState: "running" | "succeeded" | "failed";
        ArchiveManifest: {
            added?: number;
            apiVersion?: string;
            createdAt: string;
            deleted?: string[];
            excludes?: string[];
            imageDevice?: string;
            modified?: number;
            payloadBytes?: number;
            processes?: boolean;
            root: string;
            version: number;
        };
        ArchiveQuiesceState: "active"
        | "quiescing"
        | "quiesced"
        | "restoring";
        ArchiveRestoreState:
            | "downloading"
            | "extracting"
            | "relaunching"
            | "succeeded"
            | "failed";
        ContentSearchMatch: {
            column: number;
            context?: string;
            line: number;
            path: string;
            text: string;
        };
        ContentSearchResponse: {
            matches: components["schemas"]["ContentSearchMatch"][];
            query: string;
            total: number;
        };
        DeleteFilesystemParams: { recursive?: boolean };
        DeleteFilesystemTreeParams: { recursive?: boolean };
        DeleteNetworkProcessMonitorResponse: { [key: string]: unknown };
        Directory: {
            files: components["schemas"]["File"][];
            name: string;
            path: string;
            subdirectories: components["schemas"]["Subdirectory"][];
        };
        DriveListResponse: { mounts?: components["schemas"]["DriveMountInfo"][] };
        DriveMountInfo: {
            driveName?: string;
            drivePath?: string;
            gidMap?: string;
            mountPath?: string;
            readOnly?: boolean;
            uidMap?: string;
        };
        DriveMountRequest: {
            driveName: string;
            drivePath?: string;
            gidMap?: string;
            mountPath: string;
            readOnly?: boolean;
            uidMap?: string;
        };
        DriveMountResponse: {
            driveName?: string;
            drivePath?: string;
            gidMap?: string;
            message?: string;
            mountPath?: string;
            readOnly?: boolean;
            success?: boolean;
            uidMap?: string;
        };
        DriveUnmountResponse: {
            message?: string;
            mountPath?: string;
            success?: boolean;
        };
        ErrorResponse: { error: string };
        ExportOptions: {
            async?: boolean;
            dryRun?: boolean;
            excludes?: string[];
            headers?: { [key: string]: string };
            imageDevice?: string;
            imageMountPoint?: string;
            multipart?: components["schemas"]["MultipartUpload"];
            saveProcesses?: boolean;
            stopTimeoutSeconds?: number;
            url?: string;
        };
        ExportProgress: {
            error?: string;
            finishedAt?: string;
            size?: number;
            startedAt?: string;
            state?: components["schemas"]["ArchiveExportState"];
            uploaded?: boolean;
        };
        ExportResult: {
            changes?: components["schemas"]["ArchiveChange"][];
            duration?: string;
            manifest: components["schemas"]["ArchiveManifest"];
            size?: number;
            stoppedProcesses?: string[];
            uploaded?: boolean;
        };
        File: {
            group: string;
            lastModified: string;
            name: string;
            owner: string;
            path: string;
            permissions: string;
            size: number;
        };
        FileRequest: {
            content?: string;
            isDirectory?: boolean;
            permissions?: string;
        };
        FilesystemMultipartUpload: {
            initiatedAt?: string;
            parts?: {
                [key: string]: {
                    etag?: string;
                    partNumber?: number;
                    size?: number;
                    uploadedAt?: string;
                };
            };
            path?: string;
            permissions?: number;
            uploadId?: string;
        };
        FilesystemUploadedPart: {
            etag?: string;
            partNumber?: number;
            size?: number;
            uploadedAt?: string;
        };
        FileWithContent: {
            content: string;
            group: string;
            lastModified: string;
            name: string;
            owner: string;
            path: string;
            permissions: string;
            size: number;
        };
        FindMatch: { path: string; type: string };
        FindResponse: {
            matches: components["schemas"]["FindMatch"][];
            total: number;
        };
        FuzzySearchMatch: { path: string; score: number; type: string };
        FuzzySearchResponse: {
            matches: components["schemas"]["FuzzySearchMatch"][];
            total: number;
        };
        GetCodegenRerankingParams: {
            filePattern?: string;
            query: string;
            scoreThreshold?: number;
            tokenLimit?: number;
        };
        GetFilesystemContentSearchParams: {
            caseSensitive?: boolean;
            contextLines?: number;
            excludeDirs?: string;
            filePattern?: string;
            maxResults?: number;
            query: string;
        };
        GetFilesystemFindParams: {
            excludeDirs?: string;
            excludeHidden?: boolean;
            maxResults?: number;
            patterns?: string;
            type?: string;
        };
        GetFilesystemParams: { download?: boolean };
        GetFilesystemResponse:
            | components["schemas"]["Directory"]
            | components["schemas"]["FileWithContent"]
            | string;
        GetFilesystemSearchParams: {
            excludeDirs?: string;
            excludeHidden?: boolean;
            maxResults?: number;
            patterns?: string;
            query?: string;
        };
        GetNetworkProcessPortsResponse: { [key: string]: unknown };
        GetProcessResponse: components["schemas"]["ProcessResponse"][];
        GetWatchFilesystemParams: { ignore?: string };
        HandlerReloadResponse: {
            applied?: number;
            generation?: number;
            removed?: number;
        };
        HealthResponse: {
            arch: string;
            buildTime: string;
            gitCommit: string;
            goVersion: string;
            lastUpgrade: components["schemas"]["UpgradeStatus"];
            os: string;
            startedAt: string;
            status: string;
            upgradeCount: number;
            uptime: string;
            uptimeSeconds: number;
            version: string;
        };
        MultipartCompleteRequest: {
            parts?: components["schemas"]["MultipartPartInfo"][];
        };
        MultipartInitiateRequest: { permissions?: string };
        MultipartInitiateResponse: { path?: string; uploadId?: string };
        MultipartListPartsResponse: {
            parts?: components["schemas"]["FilesystemUploadedPart"][];
            uploadId?: string;
        };
        MultipartListUploadsResponse: {
            uploads?: components["schemas"]["FilesystemMultipartUpload"][];
        };
        MultipartPartInfo: { etag?: string; partNumber?: number };
        MultipartUpload: {
            abortUrl?: string;
            completeUrl?: string;
            partSize?: number;
            partUrls?: string[];
        };
        MultipartUploadPartResponse: {
            etag?: string;
            partNumber?: number;
            size?: number;
        };
        PortMonitorRequest: { callback?: string };
        PostNetworkProcessMonitorResponse: { [key: string]: unknown };
        ProcessLogs: { logs: string; stderr: string; stdout: string };
        ProcessRequest: {
            command: string;
            env?: { [key: string]: string };
            keepAlive?: boolean;
            maxRestarts?: number;
            name?: string;
            restartOnFailure?: boolean;
            stdin?: boolean;
            timeout?: number;
            waitForCompletion?: boolean;
            waitForPorts?: number[];
            workingDir?: string;
        };
        ProcessResponse: {
            command: string;
            completedAt: string;
            exitCode: number;
            keepAlive?: boolean;
            logs: string;
            maxRestarts?: number;
            name: string;
            pid: string;
            restartCount?: number;
            restartOnFailure?: boolean;
            startedAt: string;
            status: "failed"
            | "killed"
            | "stopped"
            | "running"
            | "completed";
            stderr: string;
            stdin?: boolean;
            stdout: string;
            workingDir: string;
        };
        ProcessUpgradeState: "idle"
        | "running"
        | "completed"
        | "failed";
        PutFilesystemMultipartPartParams: { partNumber: number };
        QuiesceStatus: {
            export?: components["schemas"]["ExportProgress"];
            readOnlyRoot?: boolean;
            reason?: string;
            restore?: components["schemas"]["RestoreProgress"];
            since?: string;
            state: components["schemas"]["ArchiveQuiesceState"];
            stoppedProcesses?: string[];
        };
        RankedFile: { content?: string; path?: string; score?: number };
        RerankingResponse: {
            files?: components["schemas"]["RankedFile"][];
            message?: string;
            success?: boolean;
        };
        RestoreProgress: {
            deleted?: number;
            downloaded?: number;
            error?: string;
            finishedAt?: string;
            restored?: number;
            size?: number;
            startedAt?: string;
            state?: components["schemas"]["ArchiveRestoreState"];
        };
        Subdirectory: { name: string; path: string };
        SuccessResponse: { message: string; path?: string };
        TreeRequest: { files?: { [key: string]: string } };
        TunnelConfigRequest: { config: string };
        UpgradeRequest: { baseUrl?: string; version?: string };
        UpgradeStatus: {
            binaryPath?: string;
            bytesDownloaded?: number;
            downloadUrl?: string;
            error?: string;
            lastAttempt?: string;
            status: components["schemas"]["ProcessUpgradeState"];
            step: string;
            version: string;
        };
    }