Skip to content

AuditEventInput

Defined in: src/schema.ts:147

What callers pass to record(). Everything the log derives itself (seq, recordedAt, integrity) is omitted; id and occurredAt are optional.

Type Parameter Default type
TAction extends string string
TMetadata JsonObject
Property Type Description Defined in
action TAction - src/schema.ts:151
actor? AuditActor Defaults to the ambient request context’s actor (see @xtandard/audit/context). src/schema.ts:155
context? AuditContext Merged over the ambient request context (explicit keys win). src/schema.ts:158
description? string - src/schema.ts:161
id? string Supply your own id for idempotent re-recording (same id + same content = no-op). src/schema.ts:149
metadata? TMetadata - src/schema.ts:159
occurredAt? string | Date ISO-8601 or Date. Defaults to now. src/schema.ts:153
outcome? AuditOutcome - src/schema.ts:160
targets? AuditTarget[] - src/schema.ts:156
tenant string - src/schema.ts:150