This commit is contained in:
Manav Rathi
2024-08-05 20:19:10 +05:30
parent 164d875324
commit 2e683bb625
2 changed files with 11 additions and 0 deletions

View File

@@ -110,6 +110,14 @@ export interface FileWithUpdatedPublicMagicMetadata {
}
export interface FileMagicMetadataProps {
/**
* The visibility of the file
*
* The file's visibility is user specific attribute, and thus we keep it in
* the private magic metadata. This allows the file's owner to share a file
* and edit its visibility without making revealing their visibility
* preference to the people with whom they have shared the file.
*/
visibility?: FileVisibility;
filePaths?: string[];
}

View File

@@ -7,6 +7,9 @@ export interface MagicMetadataCore<T> {
export type EncryptedMagicMetadata = MagicMetadataCore<string>;
/**
* The visibility of an {@link EnteFile}.
*/
export enum FileVisibility {
VISIBLE = 0,
ARCHIVED = 1,