Skip to content

feat: typed webhook events (catalog v2, 50 events)#7

Open
fjalil7 wants to merge 1 commit into
mainfrom
feature/bil-1567
Open

feat: typed webhook events (catalog v2, 50 events)#7
fjalil7 wants to merge 1 commit into
mainfrom
feature/bil-1567

Conversation

@fjalil7

@fjalil7 fjalil7 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Part of BIL-1567 — bring the v2 webhook event catalog (50 events) to the SDK.

Adds typed webhook payloads:

  • Event-name constants (WebhookEventType) for all 50 events
  • One *Data struct per event, camelCase json tags matching the wire
  • Shared auxiliary types for nested shapes (plan, card, features, seats, …)
  • A WebhookEvent envelope; VerifyAndParse now returns it, with per-event As<Event>() narrowing

Same surface as the other SDKs (Node is the source of truth); cross-SDK parity verified.

Verified: go build ./... + go test ./... green.

🤖 Generated with Claude Code

Add the v2 webhook catalog (50 events) as typed payloads: event-name
constants, one type per event, shared auxiliary types for nested shapes,
and a typed envelope with per-event narrowing. The webhook parser now
returns the typed envelope instead of an untyped map.
@linear-code

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

BIL-1567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant