Hierarchy
-
OccurrenceReader↳OccurrenceWriter
Methods
payload
▸ payload():Promise<string>
The exact verified JSON the provider sent, byte for byte.
It is returned as a string and parsed by the handler, so provider integers
and decimals never pass through a host float on the way in.
Returns
Promise<string>
Inherited from
OccurrenceReader.payloadreadFile
▸ readFile(part, range): Promise<ArrayBuffer>
Read a private email part from this occurrence. Each range is at most
256 KiB and shares ordinary transaction file-read limits. Part names
come from the retained manifest; file IDs and URLs grant no authority.
Parameters
Returns
Promise<ArrayBuffer>
Inherited from
OccurrenceReader.readFileread
▸ read<V>(validator): Promise<Infer<V>>
Validate the retained JSON in the host and return its declared type.
Validation happens during processing, after durable intake. Use payload()
when provider decimal or large integer spelling must remain exact.
Type parameters
Parameters
Returns
Promise<Infer<V>>
Inherited from
OccurrenceReader.readgrantFile
▸ grantFile(part, options): Promise<FileRef>
Parameters
Returns
Promise<FileRef>