Skip to main content

@idpass/data-collect-core / AuditLogEntry

Interface: AuditLogEntry

Defined in: interfaces/types.ts:264

Audit log entry for tracking all system changes with cryptographic signatures.

Provides complete audit trail with tamper-evident logging for compliance and security requirements.

Example​

const auditEntry: AuditLogEntry = {
guid: "audit-123",
timestamp: "2024-01-01T12:00:00Z",
userId: "user-456",
action: "create-individual",
eventGuid: "event-789",
entityGuid: "person-101",
changes: { name: "John Doe", age: 30 },
signature: "sha256:abc123..."
};

Properties​

guid​

guid: string

Defined in: interfaces/types.ts:266

Unique identifier for this audit log entry


timestamp​

timestamp: string

Defined in: interfaces/types.ts:268

ISO timestamp when the action occurred


userId​

userId: string

Defined in: interfaces/types.ts:270

User who performed the action


action​

action: string

Defined in: interfaces/types.ts:272

Type of action performed


eventGuid​

eventGuid: string

Defined in: interfaces/types.ts:274

GUID of the related event/form submission


entityGuid​

entityGuid: string

Defined in: interfaces/types.ts:276

GUID of the entity that was affected


changes​

changes: object

Defined in: interfaces/types.ts:278

Object containing the actual changes made


signature​

signature: string

Defined in: interfaces/types.ts:280

Cryptographic signature for tamper detection