AfterEvent
type AfterEvent = | { application: Application; at: string; type: "application.created" | "application.updated";} | { application: Application; applicationKey: string; at: string; type: "application.deleted";} | { at: string; eventType: EventType; type: "event-type.upserted";} | { at: string; eventType: EventType; name: string; type: "event-type.deleted";} | { applicationKey: string; at: string; endpoint: Endpoint; type: | "endpoint.created" | "endpoint.updated" | "endpoint.deleted" | "endpoint.secret-rotated" | "endpoint.disabled" | "endpoint.enabled" | "endpoint.auto-disabled";} | { applicationKey: string; at: string; deliveryIds: string[]; message: Message; type: "message.published";} | { applicationKey: string; at: string; attempt: DeliveryAttempt; delivery: Delivery; type: "delivery.succeeded";} | { applicationKey: string; at: string; attempts: DeliveryAttempt[]; delivery: Delivery; type: "delivery.exhausted";} | { applicationKey: string; at: string; messages: Message[]; type: "message.pruned";} | { applicationKey?: string; at: string; entries: AuditEntry[]; type: "audit.pruned";};Defined in: src/hooks/contract.ts:92
Event delivered to WebhooksHooks.after — the committed mutation. Carries the resulting state in full: for destructive events this is the last chance to offload the payload before it is gone from storage.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ application: Application; at: string; type: "application.created" | "application.updated";}Type Literal
Section titled “Type Literal”{ application: Application; applicationKey: string; at: string; type: "application.deleted";}| Name | Type | Description | Defined in |
|---|---|---|---|
application |
Application |
- | src/hooks/contract.ts:98 |
applicationKey |
string |
- | src/hooks/contract.ts:97 |
at |
string |
- | src/hooks/contract.ts:99 |
type |
"application.deleted" |
Carries the deleted application — everything under it is already gone. | src/hooks/contract.ts:96 |
Type Literal
Section titled “Type Literal”{ at: string; eventType: EventType; type: "event-type.upserted";}Type Literal
Section titled “Type Literal”{ at: string; eventType: EventType; name: string; type: "event-type.deleted";}Type Literal
Section titled “Type Literal”{ applicationKey: string; at: string; endpoint: Endpoint; type: | "endpoint.created" | "endpoint.updated" | "endpoint.deleted" | "endpoint.secret-rotated" | "endpoint.disabled" | "endpoint.enabled" | "endpoint.auto-disabled";}Type Literal
Section titled “Type Literal”{ applicationKey: string; at: string; deliveryIds: string[]; message: Message; type: "message.published";}Type Literal
Section titled “Type Literal”{ applicationKey: string; at: string; attempt: DeliveryAttempt; delivery: Delivery; type: "delivery.succeeded";}Type Literal
Section titled “Type Literal”{ applicationKey: string; at: string; attempts: DeliveryAttempt[]; delivery: Delivery; type: "delivery.exhausted";}| Name | Type | Description | Defined in |
|---|---|---|---|
applicationKey |
string |
- | src/hooks/contract.ts:134 |
at |
string |
- | src/hooks/contract.ts:137 |
attempts |
DeliveryAttempt[] |
- | src/hooks/contract.ts:136 |
delivery |
Delivery |
- | src/hooks/contract.ts:135 |
type |
"delivery.exhausted" |
Dead-letter offload point: the retry schedule is exhausted. | src/hooks/contract.ts:133 |
Type Literal
Section titled “Type Literal”{ applicationKey: string; at: string; messages: Message[]; type: "message.pruned";}| Name | Type | Description | Defined in |
|---|---|---|---|
applicationKey |
string |
- | src/hooks/contract.ts:142 |
at |
string |
- | src/hooks/contract.ts:144 |
messages |
Message[] |
- | src/hooks/contract.ts:143 |
type |
"message.pruned" |
Messages removed by retention. Carries the full messages — offload now or lose them. | src/hooks/contract.ts:141 |
Type Literal
Section titled “Type Literal”{ applicationKey?: string; at: string; entries: AuditEntry[]; type: "audit.pruned";}| Name | Type | Description | Defined in |
|---|---|---|---|
applicationKey? |
string |
- | src/hooks/contract.ts:149 |
at |
string |
- | src/hooks/contract.ts:151 |
entries |
AuditEntry[] |
- | src/hooks/contract.ts:150 |
type |
"audit.pruned" |
Audit entries removed by retention (oldest-first). | src/hooks/contract.ts:148 |