FileAdapterMetadata: {
    contentType: string;
    etag: string;
    fileSizeInBytes: number;
    updatedAt: Date;
}

File metadata object returned when reading file information. Contains properties describing file state, size, and modification times. Immutable snapshot used for cache validation and file information endpoints.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • contentType: string

    MIME type of the file content. Determines how browsers/clients should handle the file (e.g., display vs. download).

  • etag: string

    Entity tag (ETag) for cache validation. Used in HTTP ETag headers and If-Match conditionals to detect file changes. Different storage backends may use different formats, but value remains unique per file version.

  • fileSizeInBytes: number

    Size of the file in bytes. Used for progress tracking, quota validation, and file listings.

  • updatedAt: Date

    File's last modification date (creation or update). Tracks when the file was created (if new) or last updated (if modified). Used for cache validation, sorting, and auditing.