import type { ContentTypes } from "@cargo-ai/types"; import { z } from "zod"; import type { ApiType, DateToString } from "../types.js"; export declare namespace Content { type Library = ApiType; type LibraryKind = ApiType; type FileKind = ApiType; type File = ApiType; namespace Api { type GetFileResult = { file: File; }; type AllFilesResult = { files: File[]; }; type UpdateFilePayload = DateToString<{ uuid: string; name?: string; folderUuid?: string | null; }>; type UpdateFileResult = { file: File; }; type UploadFilePayload = { file: any; folderUuid?: string; /** * When set, replace this file's content in place (keeping its uuid) * instead of creating a new file. Ignored if no such file exists. */ uuid?: string; onProgress: (progressPercentage: number) => void; onComplete: (payload: { uuid?: string; s3Filename: string; contentType: string; name: string; }) => void; onError: () => void; }; const zodUpdateFileErrorReason: z.ZodEnum<{ folderNotFound: "folderNotFound"; fileNotFound: "fileNotFound"; }>; const zodRemoveFileErrorReason: z.ZodEnum<{ fileNotFound: "fileNotFound"; }>; const zodReadBytesFileErrorReason: z.ZodEnum<{ fileNotFound: "fileNotFound"; tooLarge: "tooLarge"; }>; type CreateLibraryPayload = DateToString<{ name: string; extractorSlug: string; config: Record; connectorUuid: string; folderUuid?: string; }>; const zodCreateLibraryErrorReason: z.ZodEnum<{ connectorNotFound: "connectorNotFound"; integrationNotFound: "integrationNotFound"; integrationNotCompatible: "integrationNotCompatible"; }>; type CreateLibraryResult = { library: Library; }; type ListLibrariesResult = { libraries: Library[]; }; type GetLibraryResult = { library: Library; }; type UpdateLibraryPayload = DateToString<{ uuid: string; name?: string; config?: Record; folderUuid?: string | null; }>; const zodUpdateLibraryErrorReason: z.ZodEnum<{ libraryNotFound: "libraryNotFound"; }>; type UpdateLibraryResult = { library: Library; }; const zodRemoveLibraryErrorReason: z.ZodEnum<{ libraryNotFound: "libraryNotFound"; libraryHasFiles: "libraryHasFiles"; }>; } const fileKeys: { all: (workspaceUuid: string) => readonly ["files", string]; }; } //# sourceMappingURL=content.d.ts.map