import type { DependencyArtifactBuildResultBody, DependencyArtifactContentType } from "../../../release-assets/dependency-artifact-contracts.js"; import { type TransportRetryConfig } from "../veryfront-api-transport.js"; import { type DependencyArtifactAssetUploadResponse, type DependencyArtifactBuildResultResponse, type LookupDomainResponse, type PageInfo, type Project, type ProjectFile, type ReleaseAssetManifestApiResponse, type ReleaseAssetManifestBuildResponse, type ReleaseAssetManifestStateResponse, type ReleaseAssetUploadResponse } from "./schemas/index.js"; export type TokenProvider = () => string; export interface ListFilesOptions { cursor?: string; limit?: number; path?: string; pattern?: string; sortBy?: "path" | "updated_at"; sortOrder?: "asc" | "desc"; } export interface FileListResult { files: ProjectFile[]; page_info: PageInfo; release_id?: string; release_version?: string | null; environment_id?: string; environment_name?: string; } export interface FileDetail { path: string; content: string; id?: string; version_id?: string; type?: string; size?: number; release_id?: string; release_version?: string | null; } export interface GetFileOptions { /** True when the caller is probing an optional candidate and expects a possible 404. */ expectedMissing?: boolean; } export interface StyleArtifactSelector { branch?: string; environmentName?: string; releaseId?: string; } export interface ResolveStyleArtifactInput extends StyleArtifactSelector { styleProfileHash: string; } export interface EnsureStyleArtifactBuildInput extends ResolveStyleArtifactInput { force?: boolean; } export interface UpsertStyleArtifactInput extends ResolveStyleArtifactInput { status?: "building" | "ready" | "failed"; artifactHash?: string; assetPath?: string; contentType?: string; etag?: string; buildRunId?: string; failureReason?: string; } export interface ProjectStyleArtifactResolution { status: "ready" | "missing" | "building" | "failed"; artifactHash?: string; assetPath?: string; etag?: string; contentType?: string; buildRunId?: string; failureReason?: string; updatedAt?: string; } export declare class VeryfrontAPIOperations { private apiBaseUrl; private projectId?; private tokenProvider; private transport; constructor(apiBaseUrl: string, tokenOrProvider: string | TokenProvider, retryConfig: TransportRetryConfig, projectId?: string | undefined); setTokenProvider(provider: TokenProvider): void; getToken(): string; setProjectId(projectId: string): void; getProjectId(): string; listProjects(options?: { search?: string; limit?: number; sortBy?: string; sortOrder?: "asc" | "desc"; }): Promise; getProject(projectRef: string): Promise; listBranchFiles(projectRef: string, branchRef?: string, options?: ListFilesOptions): Promise; listAllBranchFiles(projectRef: string, branchRef?: string, options?: Omit): Promise; getBranchFile(projectRef: string, branchRef: string, pathOrId: string, options?: GetFileOptions): Promise; getBranchFileContentBytesWithinLimit(projectRef: string, branchRef: string, pathOrId: string, maximumBytes: number, options?: GetFileOptions): Promise; listEnvironmentFiles(projectRef: string, environmentName?: string, options?: ListFilesOptions): Promise; listAllEnvironmentFiles(projectRef: string, environmentName?: string, options?: Omit): Promise; getEnvironmentFile(projectRef: string, environmentName: string, pathOrId: string, options?: GetFileOptions): Promise; getEnvironmentFileContentBytesWithinLimit(projectRef: string, environmentName: string, pathOrId: string, maximumBytes: number, options?: GetFileOptions): Promise; listReleaseFiles(projectRef: string, version?: string, options?: ListFilesOptions): Promise; listAllReleaseFiles(projectRef: string, version?: string, options?: Omit): Promise; getReleaseFile(projectRef: string, version: string, pathOrId: string, options?: GetFileOptions): Promise; getReleaseFileContentBytesWithinLimit(projectRef: string, version: string, pathOrId: string, maximumBytes: number, options?: GetFileOptions): Promise; lookupProjectByDomain(domain: string): Promise; resolveStyleArtifact(projectRef: string, input: ResolveStyleArtifactInput): Promise; ensureStyleArtifactBuild(projectRef: string, input: EnsureStyleArtifactBuildInput): Promise; upsertStyleArtifact(projectRef: string, input: UpsertStyleArtifactInput): Promise; uploadDependencyArtifactAsset(artifactId: string, attemptCount: number, contentHash: string, contentType: DependencyArtifactContentType, bytes: Uint8Array): Promise; reportDependencyArtifactBuildResult(artifactId: string, attemptCount: number, result: DependencyArtifactBuildResultBody): Promise; beginReleaseAssetManifestBuild(projectRef: string, version: string): Promise; uploadReleaseAsset(projectRef: string, version: string, contentHash: string, contentType: string, bytes: Uint8Array): Promise; putReleaseAssetManifest(projectRef: string, version: string, manifest: unknown): Promise; reportReleaseAssetManifestState(projectRef: string, version: string, state: "partial" | "failed", error?: string): Promise; getReleaseAssetManifest(projectRef: string, version: string, signal?: AbortSignal): Promise; private request; } //# sourceMappingURL=operations.d.ts.map