Astrada TypeScript SDK
    Preparing search index...

    Type Alias WebhookEvent

    WebhookEvent:
        | {
            [K in ModelledEventType]: WebhookEventBase<K, WebhookEventPayloads[K]>
        }[ModelledEventType]
        | WebhookEventBase<
            Exclude<WebhookEventType, ModelledEventType>,
            Record<string, unknown>,
        >

    A verified webhook delivery. Narrow it on type: if (event.type === 'transaction.created') { event.data.status }. An event type newer than this SDK arrives with its type as sent and data as parsed JSON.