mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
refactor(core): message tracker abstraction and formatter plugin registry
This commit is contained in:
parent
486f38365f
commit
eaec039ad4
9 changed files with 361 additions and 90 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue