Skip to content

AfterEvent

type AfterEvent =
| {
at: string;
events: AuditEvent[];
tenant: string;
type: "events.recorded";
}
| {
at: string;
event: AuditEvent;
sections: AuditSection[];
tenant: string;
type: "event.erased";
}
| {
at: string;
format: string;
query: AuditQuery;
tenant: string;
type: "events.exported";
}
| {
at: string;
base: | AuditCheckpoint
| null;
count: number;
tenant: string;
throughSeq: number;
type: "events.pruned";
}
| {
action: ActionDefinition;
at: string;
type: "action.upserted";
}
| {
action: ActionDefinition;
at: string;
name: string;
type: "action.deleted";
}
| {
at: string;
checkpoint: AuditCheckpoint;
tenant: string;
type: "checkpoint.created";
};

Defined in: src/hooks/contract.ts:79

Event delivered to AuditHooks.after — the committed mutation.

{
at: string;
events: AuditEvent[];
tenant: string;
type: "events.recorded";
}

{
at: string;
event: AuditEvent;
sections: AuditSection[];
tenant: string;
type: "event.erased";
}

{
at: string;
format: string;
query: AuditQuery;
tenant: string;
type: "events.exported";
}

{
at: string;
base: | AuditCheckpoint
| null;
count: number;
tenant: string;
throughSeq: number;
type: "events.pruned";
}
Name Type Description Defined in
at string - src/hooks/contract.ts:96
base | AuditCheckpoint | null - src/hooks/contract.ts:95
count number - src/hooks/contract.ts:94
tenant string - src/hooks/contract.ts:92
throughSeq number - src/hooks/contract.ts:93
type "events.pruned" Retention removed a prefix of the chain; base anchors what remains. src/hooks/contract.ts:91

{
action: ActionDefinition;
at: string;
type: "action.upserted";
}

{
action: ActionDefinition;
at: string;
name: string;
type: "action.deleted";
}

{
at: string;
checkpoint: AuditCheckpoint;
tenant: string;
type: "checkpoint.created";
}