Skip to main content

@idpass/data-collect-core / AttachmentMetadata

Interface: AttachmentMetadata

Defined in: interfaces/types.ts:994

Metadata for a file attachment associated with an entity.

Tracks filename, MIME type, content hash for integrity verification, and sync status for offline-first upload workflows.

Properties

guid

guid: string

Defined in: interfaces/types.ts:996

Unique identifier for this attachment


entityGuid

entityGuid: string

Defined in: interfaces/types.ts:998

GUID of the entity this attachment belongs to


filename

filename: string

Defined in: interfaces/types.ts:1000

Original filename


mimeType

mimeType: string

Defined in: interfaces/types.ts:1002

MIME type of the file (e.g., "image/jpeg", "application/pdf")


sizeBytes

sizeBytes: number

Defined in: interfaces/types.ts:1004

File size in bytes


hash

hash: string

Defined in: interfaces/types.ts:1006

SHA-256 hash of the file content for integrity verification


createdAt

createdAt: string

Defined in: interfaces/types.ts:1008

ISO timestamp when the attachment was created


syncStatus

syncStatus: "pending" | "uploaded" | "failed"

Defined in: interfaces/types.ts:1010

Sync status: pending (not uploaded), uploaded (synced), failed (upload error)


tenantId

tenantId: string

Defined in: interfaces/types.ts:1012

Tenant identifier for multi-tenant isolation