AuditEvent
@mandaitor/sdk / AuditEvent
Interface: AuditEvent
Defined in: @mandaitor/sdk/dist/types.d.ts:202
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:212
Who triggered this event
event_hash
event_hash:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:218
Hash of this event
event_id
event_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:204
Unique event identifier
event_type
event_type:
AuditEventType
Defined in: @mandaitor/sdk/dist/types.d.ts:210
Event type
hash_algorithm?
optionalhash_algorithm?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:222
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:206
Mandate this event belongs to
payload
payload:
Record<string,unknown>
Defined in: @mandaitor/sdk/dist/types.d.ts:214
Event-specific payload
previous_hash
previous_hash:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:216
Hash of the previous event (chain integrity)
signing_algorithm?
optionalsigning_algorithm?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:224
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:208
Tenant ID
timestamp
timestamp:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:220
ISO 8601 timestamp