Skip to content

AuditEvent

Defined in: src/schema.ts:119

A stored, chained audit event.

Property Type Description Defined in
action string What happened, e.g. "invoice.paid", "member.role_changed". src/schema.ts:127
actor AuditActor - src/schema.ts:132
context AuditContext - src/schema.ts:134
description? string Optional human-readable sentence (“Alice changed Bob’s role to admin”). src/schema.ts:139
id string evt_ + 26-char time-sortable id (ADR 0010). src/schema.ts:121
integrity AuditIntegrity - src/schema.ts:140
metadata JsonObject Action-specific data (typed per action via defineActions). src/schema.ts:136
occurredAt string ISO-8601: when it happened (caller-supplied, or record time). src/schema.ts:129
outcome? AuditOutcome - src/schema.ts:137
recordedAt string ISO-8601: when the log accepted it. src/schema.ts:131
seq number Position in the tenant’s chain: contiguous from 1. src/schema.ts:125
targets AuditTarget[] - src/schema.ts:133
tenant string The tenant (customer organization) the event belongs to. src/schema.ts:123