AuditEvent
@mandaitor/sdk / AuditEvent
Interface: AuditEvent
Defined in: @mandaitor/sdk/dist/types.d.ts:159
A single immutable entry in a mandate's audit log. Events are hash-chained (each carries the previous event's hash) so the log is tamper-evident.
Properties
actor
actor:
Subject
Defined in: @mandaitor/sdk/dist/types.d.ts:169
Who triggered this event
event_hash
event_hash:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:175
Hash of this event
event_id
event_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:161
Unique event identifier
event_type
event_type:
AuditEventType
Defined in: @mandaitor/sdk/dist/types.d.ts:167
Event type
hash_algorithm?
optionalhash_algorithm?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:179
Algorithm used to compute event_hash (e.g., "SHA_256"). Present from crypto-agility v1.
mandate_id
mandate_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:163
Mandate this event belongs to
payload
payload:
Record<string,unknown>
Defined in: @mandaitor/sdk/dist/types.d.ts:171
Event-specific payload
previous_hash
previous_hash:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:173
Hash of the previous event (chain integrity)
signing_algorithm?
optionalsigning_algorithm?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:181
Algorithm used to produce the KMS signature (e.g., "RSASSA_PSS_SHA_256"). Present from crypto-agility v1.
tenant_id
tenant_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:165
Tenant ID
timestamp
timestamp:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:177
ISO 8601 timestamp