Files
sim/apps/sim/lib/uploads/index.ts
Waleed 8226e7b40a fix(copilot-cleanup): support azure blob upload in copilot, remove dead code & consolidate other copilot files (#1147)
* cleanup

* support azure blob image upload

* imports cleanup

* PR comments

* ack PR comments

* fix key validation
2025-08-26 20:06:43 -07:00

39 lines
970 B
TypeScript

// BlobClient and S3Client are server-only - import from specific files when needed
// export * as BlobClient from '@/lib/uploads/blob/blob-client'
// export * as S3Client from '@/lib/uploads/s3/s3-client'
export {
bufferToBase64,
createFileContent as createAnthropicFileContent,
type FileAttachment,
getContentType as getAnthropicContentType,
getFileExtension,
getMimeTypeFromExtension,
isSupportedFileType,
type MessageContent as AnthropicMessageContent,
MIME_TYPE_MAPPING,
} from '@/lib/uploads/file-utils'
export {
BLOB_CHAT_CONFIG,
BLOB_CONFIG,
BLOB_KB_CONFIG,
S3_CHAT_CONFIG,
S3_CONFIG,
S3_KB_CONFIG,
UPLOAD_DIR,
USE_BLOB_STORAGE,
USE_S3_STORAGE,
} from '@/lib/uploads/setup'
export {
type CustomStorageConfig,
deleteFile,
downloadFile,
type FileInfo,
getPresignedUrl,
getPresignedUrlWithConfig,
getServePathPrefix,
getStorageProvider,
isUsingCloudStorage,
uploadFile,
} from '@/lib/uploads/storage-client'