Setu-TS
    Preparing search index...

    Interface AuditEntry

    One immutable audit trail entry.

    0.1.0

    interface AuditEntry {
        action: string;
        after?: Readonly<Record<string, unknown>>;
        before?: Readonly<Record<string, unknown>>;
        metadata?: Readonly<Record<string, unknown>>;
        resource: string;
        resourceId?: string;
        result: "success" | "failure";
        userId?: string;
    }
    Index
    action: string

    The action performed (e.g. "user.delete").

    after?: Readonly<Record<string, unknown>>

    Resource state after the action.

    before?: Readonly<Record<string, unknown>>

    Resource state before the action.

    metadata?: Readonly<Record<string, unknown>>

    Additional context (IP, request ID, …).

    resource: string

    The resource kind acted on (e.g. "user").

    resourceId?: string

    The specific resource instance, when applicable.

    result: "success" | "failure"

    Whether the action succeeded.

    userId?: string

    The acting principal's ID.