Skip to content

feat: events - #149

Merged
matoous merged 1 commit into
mainfrom
md/events
Sep 6, 2026
Merged

feat: events#149
matoous merged 1 commit into
mainfrom
md/events

Conversation

@matoous

@matoous matoous commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Adds typed event handling with signature verification, synchronous and asynchronous callbacks, and resource fetching.

var events = client.eventsHandler(secret, event ->
  System.out.printf("Unhandled event %s: %s%n", event.id(), event.type()));

events.onMemberUpdated(event -> {
  var member = event.fetchObject();
  System.out.printf("Member updated: %s%n", member.id());
});

events.handle(rawBody, signatureHeader);

Includes Javadocs, concise documentation, and a standalone HTTP-server example.

@matoous matoous self-assigned this Sep 6, 2026
@matoous
matoous force-pushed the md/events branch 4 times, most recently from 21a6ac6 to 9d1af9e Compare September 6, 2026 19:33
Adds typed event handling with signature verification, synchronous and asynchronous callbacks, and resource fetching.

```java
var events = client.eventsHandler(secret, event ->
  System.out.printf("Unhandled event %s: %s%n", event.id(), event.type()));

events.onMemberUpdated(event -> {
  var member = event.fetchObject();
  System.out.printf("Member updated: %s%n", member.id());
});

events.handle(rawBody, signatureHeader);
```

Includes Javadocs, concise documentation, and a standalone HTTP-server
example. Updates the specification to OpenAPI 3.1 for event definitions
while preserving existing API models.
@matoous
matoous merged commit 050cd0b into main Sep 6, 2026
12 checks passed
@matoous
matoous deleted the md/events branch September 6, 2026 20:13
@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