Skip to content

basalt / audit/src / AuditVerifyResult

Interface: AuditVerifyResult ​

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

Properties ​

checked ​

> checked: number

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

Chained entries that verified before the first failure (all of them when ok).


entryId? ​

> optional entryId?: string

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

Id of the offending row, when there is one.


firstBrokenAt? ​

> optional firstBrokenAt?: number

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

seq of the first entry that failed.


> optional head?: AuditChainHead

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

Last verified entry — record it outside the database to detect later truncation of the tail.


ok ​

> ok: boolean

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


reason? ​

> optional reason?: AuditVerifyFailure

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


tenantId ​

> tenantId: string | undefined

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

The chain verified (undefined = system chain).


unchained ​

> unchained: number

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

Rows of this tenant written without a chain. Legacy ones (see legacyUntil) are not verifiable but not broken; the others are listed in unverified and fail the verification.


unverified ​

> unverified: string[]

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

Ids of rows attributed to this tenant that are outside its chain and are NOT legacy — written after the chain began (or claiming a chain position they do not have). trail() serves them like any other row, so their presence makes the result ok: false. At most 100 are listed.

Released under the MIT License.