import { HashAlgo } from "../../hasher/types"; export type SessionStatus = 'ready' | 'importing' | 'importing_failed' | 'uploading' | 'assembling' | 'assembly_failed' | 'complete' | 'assemble' | 'deleting'; export interface Session { id: string; exp_hash: string | null; exp_hash_algo: HashAlgo | null; exp_size: number; status: SessionStatus; status_message: string | null; owner: string | null; filename: string; mime: string | null; import_type: string | null; import_dest: string | null; updated: Date; created: Date; } export interface Chunks { [key: string]: number; } export interface SessionWithChunks extends Session { chunks: Chunks; }