Expand description
Document intake, verification, storage, and retention contracts. Document intake, safety review, storage, and retention values.
Documents carry vaccine proofs, waivers, medical records, incident evidence, and other source artifacts that staff and agents rely on. The domain separates received/extracted facts from verified facts, records virus/PII handling state, and keeps storage references explicit so automation cannot treat unreviewed uploads as compliance truth.
Structs§
- Content
Length Bytes - Non-zero document size used to reject empty uploads before extraction or review.
- File
Name - Mime
Type - MIME type reported for a document before extraction, virus scanning, or storage policy decisions.
- Original
File - Original uploaded file metadata preserved for audit, extraction, and staff review.
- Original
File Builder - Use builder syntax to set the inputs and finish with
build(). - Sha256
Digest - SHA-256 digest used to detect duplicate, tampered, or drifted document payloads.
- Storage
Bucket - Storage
Key - Storage key for the immutable document object used as review or compliance evidence.
- Storage
Ref - Storage pointer to the immutable object that backs a reviewed or source document.
- Storage
RefBuilder - Use builder syntax to set the inputs and finish with
build(). - Storage
Version - Optional object-version marker for document retention and supersession audits.
Enums§
- Classification
- Document classification used to route vaccine, waiver, medical, photo, and incident evidence.
- Content
Length Error - Validation error for document size constraints.
- File
Name Error - Mime
Type Error - PiiRedaction
Status - PII redaction state used before document content is exposed to agents or reports.
- Sha256
Digest Error - Validation error for document hash formatting.
- Source
- Source route through which a document entered the review and storage pipeline.
- Status
- Normalized lifecycle states used to reconcile source-system data with domain workflows.
- Storage
Bucket Error - Storage
KeyError - Storage
Version Error - Virus
Scan Status - Virus-scan outcome used before documents may become staff-visible evidence.