File sharing

This commit is contained in:
2026-10-29 20:44:26 -03:00
parent b65d8efad8
commit de1ad70068
18 changed files with 582 additions and 59 deletions
+13
View File
@@ -19,10 +19,23 @@ export function download_blob(blob: Blob, file_name: string) {
setTimeout(() => URL.revokeObjectURL(url), 60_000);
}
export interface ShareEntry {
id: string;
// The link secret encrypted with the master key
secret: string;
}
// What the files API returns, size is of the encrypted file
export interface FileEntry {
id: string;
date_created: string;
size: number;
metadata: string;
share: ShareEntry | null;
}
// What the public shares API returns, metadata is encrypted with the link secret
export interface SharedFileEntry {
size: number;
metadata: string;
}