Skip to content

feat(sdk): events - #265

Merged
matoous merged 2 commits into
mainfrom
md/webhooks
Sep 6, 2026
Merged

feat(sdk): events#265
matoous merged 2 commits into
mainfrom
md/webhooks

Conversation

@matoous

@matoous matoous commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Adds typed event handling with signature verification, sync/async callbacks, and resource fetching.

def fallback(event: EventNotification) -> None:
  print("Unhandled event", event.id, event.type)

events = client.events_handler(secret, fallback)

@events.on_member_updated
def member_updated(event: MemberUpdatedEvent) -> None:
  member = event.fetch_object()
  print("Member updated", member.id)

events.handle(raw_body, signature_header)

Includes concise documentation and standalone Flask and FastAPI examples.

@matoous matoous self-assigned this Apr 12, 2026
Initial draft of a webhook capabilities. The goal of this PR is to
test the interfacing between the webhooks service that we are working
on and the SDKs.
@matoous
matoous force-pushed the md/webhooks branch 3 times, most recently from 411a078 to 901b65f Compare September 6, 2026 14:15
@matoous matoous changed the title feat(sdk): webhooks feat(sdk): events Sep 6, 2026
@matoous
matoous force-pushed the md/webhooks branch 2 times, most recently from 50b4d32 to f4430c3 Compare September 6, 2026 14:23
Generate event models from OpenAPI webhooks and route verified notifications through sync and async callbacks.
@matoous
matoous marked this pull request as ready for review September 6, 2026 14:37
@matoous
matoous merged commit 19ca9c8 into main Sep 6, 2026
16 checks passed
@matoous
matoous deleted the md/webhooks branch September 6, 2026 14:38
@sumup-release-bot sumup-release-bot Bot mentioned this pull request Sep 6, 2026
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