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.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ at: string; events: AuditEvent[]; tenant: string; type: "events.recorded";}Type Literal
Section titled “Type Literal”{ at: string; event: AuditEvent; sections: AuditSection[]; tenant: string; type: "event.erased";}Type Literal
Section titled “Type Literal”{ at: string; format: string; query: AuditQuery; tenant: string; type: "events.exported";}Type Literal
Section titled “Type Literal”{ 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 |
Type Literal
Section titled “Type Literal”{ action: ActionDefinition; at: string; type: "action.upserted";}Type Literal
Section titled “Type Literal”{ action: ActionDefinition; at: string; name: string; type: "action.deleted";}Type Literal
Section titled “Type Literal”{ at: string; checkpoint: AuditCheckpoint; tenant: string; type: "checkpoint.created";}