Files
mnote/src/types/media.ts
T

28 lines
634 B
TypeScript
Raw Normal View History

2025-11-23 10:45:45 +08:00
export interface MediaAsset {
id: string;
workspace_id: string;
document_id: string;
asset_type: string;
file_url: string | null;
thumbnail_url: string | null;
file_name: string | null;
file_size: number | null;
mime_type: string | null;
ocr_text: string | null;
ocr_status: string | null;
created_at: string;
updated_at: string;
}
export interface MediaSelection {
assetId: string;
fileUrl: string;
thumbnailUrl?: string | null;
assetType?: string;
fileName?: string | null;
fileSize?: number | null;
mimeType?: string | null;
}
export type MediaKind = "image" | "video" | "audio" | "file";