Bitbucket Data Center API Client
    Preparing search index...

    Type Alias BitbucketWebhookEvent

    BitbucketWebhookEvent: {
        [K in WebhookEventKey]: { event: K; payload: WebhookEventPayloadMap[K] }
    }[WebhookEventKey]

    The result of parseWebhookEvent: a discriminated union keyed by event. Narrow on event (e.g. via switch or ===) to get a correctly typed payload.

    This union only models the event keys in WebhookEventPayloadMap. If a future Bitbucket version adds a new event, parseWebhookEvent still returns it as-is at runtime (event holds the raw string, payload the raw body) — use isWebhookEventKey to defensively check event before trusting the narrowed payload type if you need to guard against that.