Skip to main content
import type { UploadResult, StorageFile, StorageGetAllOptions } from '@collab-kit/utils';

UploadResult

Returned by client.storage.upload().
interface UploadResult {
  key: string;
  url: string;
}

StorageFile

Represents a stored file returned by client.storage.getAll().
interface StorageFile {
  key: string;
  url: string;
  filename: string;
  mimeType: string | null;
  size: number;
  uploadedAt: string;
  uploadedBy: string | null;
}

StorageGetAllOptions

Filter options for client.storage.getAll().
interface StorageGetAllOptions {
  mimeType?: string | string[];
  userId?: string;
}