mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
refactor(core): message tracker abstraction and formatter plugin registry
This commit is contained in:
9 files changed
+361
-90
No files matched your search
@@ -169,6 +169,22 @@ export interface WebhookEvent {
|
||||
installationId?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A forge-agnostic webhook event after provider verification and
|
||||
* normalization: the canonical shape every provider's `parse` output conforms
|
||||
* to, plus the tenant scope (`groupId`) and receipt time carried through the
|
||||
* delivery pipeline.
|
||||
*/
|
||||
export interface NormalizedWebhook {
|
||||
provider: WebhookProvider;
|
||||
deliveryId: string;
|
||||
event: string;
|
||||
groupId?: string;
|
||||
payload: Record<string, unknown>;
|
||||
installationId?: number;
|
||||
receivedAt: number;
|
||||
}
|
||||
|
||||
export interface NeutralAuthor {
|
||||
name: string;
|
||||
iconUrl?: string;
|
||||
|
||||
Reference in new issue
Block a user