Skip to content

basalt / audit/src / AuditVerifyOptions

Interface: AuditVerifyOptions ​

Defined in: audit/src/index.ts:595

Properties ​

expectedHead? ​

> optional expectedHead?: AuditChainHead

Defined in: audit/src/index.ts:611

A head recorded earlier OUTSIDE the database (see head in the result). The chain must still contain that entry with that hash: a chain truncated below it fails with 'truncated', a different hash at that seq with 'head-mismatch'. Without an anchor, deleting the tail leaves no gap.


from? ​

> optional from?: number

Defined in: audit/src/index.ts:602

First seq to check (inclusive, default 1). Anchored on the entry at from - 1.


legacyUntil? ​

> optional legacyUntil?: number

Defined in: audit/src/index.ts:619

Rows outside the chain with at <= legacyUntil are legacy (written before integrity was enabled) and only counted in unchained; later ones fail the verification ('unchained-entry'). Default: the at of the chain's first entry (and, with no chain yet, every row is legacy). Pass 0 for a trail that was chained from the start: then no row outside the chain is accepted.


tenantId? ​

> optional tenantId?: string

Defined in: audit/src/index.ts:600

The chain to verify. Inside a tenant context the context tenant is FORCED (like Audit.trail); otherwise omitted = the system chain.


to? ​

> optional to?: number

Defined in: audit/src/index.ts:604

Last seq to check (inclusive, default: the head).

Released under the MIT License.