@idpass/data-collect-core / AttachmentMetadata
Interface: AttachmentMetadata
Defined in: interfaces/types.ts:1075
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:1077
Unique identifier for this attachment
entityGuid
entityGuid:
string
Defined in: interfaces/types.ts:1079
GUID of the entity this attachment belongs to
filename
filename:
string
Defined in: interfaces/types.ts:1081
Original filename
mimeType
mimeType:
string
Defined in: interfaces/types.ts:1083
MIME type of the file (e.g., "image/jpeg", "application/pdf")
sizeBytes
sizeBytes:
number
Defined in: interfaces/types.ts:1085
File size in bytes
hash
hash:
string
Defined in: interfaces/types.ts:1087
SHA-256 hash of the file content for integrity verification
createdAt
createdAt:
string
Defined in: interfaces/types.ts:1089
ISO timestamp when the attachment was created
syncStatus
syncStatus:
"pending"|"uploaded"|"failed"
Defined in: interfaces/types.ts:1091
Sync status: pending (not uploaded), uploaded (synced), failed (upload error)
tenantId
tenantId:
string
Defined in: interfaces/types.ts:1093
Tenant identifier for multi-tenant isolation