Astrada TypeScript SDK
    Preparing search index...

    Interface WebhookEventBase<T, D>

    interface WebhookEventBase<T extends string, D> {
        data: D;
        id: string;
        timestamp: Date;
        type: T;
    }

    Type Parameters

    • T extends string
    • D
    Index
    data: D
    id: string

    The delivery id (webhook-id). The same event retried keeps its id: use it to skip duplicates.

    timestamp: Date

    When the delivery was sent (webhook-timestamp).

    type: T

    The event type, from the webhook-event-type header.