Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

New

Manav Rathib91d854a924c
diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.ts
index 38ab2e41fb..7ea4912144 100644
--- a/web/packages/media/file-metadata.ts
+++ b/web/packages/media/file-metadata.ts
@@ -83,6 +83,46 @@ export interface Metadata {
deviceFolder?: string;
}
+/**
+ * Mutable metadata associated with an {@link EnteFile}.
+ *
+ * - Unlike {@link Metadata}, this can change after the file has been
+ * uploaded.
+ *
+ * - Unlike {@link MagicMetadata}, this is available to all the people with
+ * whom the file has been shared.
+ *
+ * For more details, see [Note: Metadatum].
+ */
+export interface PublicMagicMetadata {
+ /**
+ * Modified value of the date time associated with an {@link EnteFile}.
+ *
+ * Epoch microseconds.
+ *
+ * This field stores edits to the {@link creationTime} {@link Metadata}
+ * field.
+ */
+ editedTime?: number;
+ /**
+ * Modified name of the {@link EnteFile}.
+ *
+ * This field stores edits to the {@link title} {@link Metadata} field.
+ */
+ editedName?: string;
+ /**
+ * An arbitrary caption / description string that the user has added to the
+ * file.
+ *
+ * The length of this field is capped to some arbitrary maximum by client
+ * side checks.
+ */
+ caption?: string;
+ uploaderName?: string;
+ w?: number;
+ h?: number;
+}
+
/**
* Metadata about a file extracted from various sources (like Exif) when
* uploading it into Ente.