import { PythonVersion, GpuType } from "./common"; export { PythonVersion, GpuType }; export interface BuildStep { type: "pip" | "shell" | "micromamba"; command: string; } export interface AWSCredentials { AWS_ACCESS_KEY_ID?: string; AWS_SECRET_ACCESS_KEY?: string; AWS_SESSION_TOKEN?: string; AWS_REGION?: string; } export interface GCPCredentials { GCP_ACCESS_TOKEN?: string; } export interface DockerHubCredentials { DOCKERHUB_USERNAME?: string; DOCKERHUB_PASSWORD?: string; } export interface NGCCredentials { NGC_API_KEY?: string; } export type ImageCredentialKeys = "AWS_ACCESS_KEY_ID" | "AWS_SECRET_ACCESS_KEY" | "AWS_SESSION_TOKEN" | "AWS_REGION" | "DOCKERHUB_USERNAME" | "DOCKERHUB_PASSWORD" | "GCP_ACCESS_TOKEN" | "NGC_API_KEY"; export type ImageCredentials = AWSCredentials | DockerHubCredentials | GCPCredentials | NGCCredentials | Record | ImageCredentialKeys[]; export interface BuildImageRequest { pythonVersion?: string; pythonPackages?: string[]; commands?: string[]; existingImageUri?: string; existingImageCreds?: Record; buildSteps?: BuildStep[]; envVars?: string[]; dockerfile?: string; buildCtxObject?: string; secrets?: string[]; gpu?: string; ignorePython?: boolean; } export interface BuildImageResponse { imageId?: string; msg?: string; done?: boolean; success?: boolean; pythonVersion?: string; warning?: boolean; } export interface VerifyImageBuildRequest { pythonVersion?: string; pythonPackages?: string[]; commands?: string[]; forceRebuild?: boolean; existingImageUri?: string; buildSteps?: BuildStep[]; envVars?: string[]; dockerfile?: string; buildCtxObject?: string; secrets?: string[]; gpu?: string; ignorePython?: boolean; imageId?: string; } export interface VerifyImageBuildResponse { imageId?: string; valid?: boolean; exists?: boolean; } export interface ImageBuildResult { success: boolean; imageId?: string; pythonVersion?: string; } export interface ImageConfig { pythonVersion: PythonVersion | string; pythonPackages: string[] | string; commands: string[]; buildSteps: BuildStep[]; baseImage: string; baseImageCreds: ImageCredentials; envVars: string[] | Record | string; secrets: string[]; dockerfile: string; gpu: string; ignorePython: boolean; includeFilesPatterns: string[]; buildCtxObject: string; imageId: string; } export declare class ImageCredentialValueNotFound extends Error { keyName: string; constructor(keyName: string, message?: string); }