Repository navigation
feat: add the inbound.rejected webhook event - #72
Merged
Merged
Conversation
bjornftw
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Non-breaking; a minor release.
The API has a new webhook event,
inbound.rejected, sent when an inbound message is rejected during SMTP. The regenerated types add it toWebhookEvent, so you can subscribe a webhook to it and compare a received payload'sevent()with it.WebhookEventis open: SDK versions without the constant already decode the event and keep its raw name.No hand-written code changes; the PR only regenerates
src/main/java/co/lettermint/types.API changes in the regenerated types
WebhookEventinbound.rejectedasWebhookEvent.INBOUND_REJECTED(also inWebhookEvent.values())The spec's
openapiversion string moved from 3.1.0 to 3.1.2. That has no effect on the SDK.Usage
Checks
./gradlew generateTypeswith the latest spec: 217 files rewritten; the diff is the spec header in every file plus the newWebhookEventconstant./gradlew checkGeneratedTypeswith the latest spec: up to date (217 files)./gradlew checkGeneratedTypesin header-only mode (as in CI): passed (217 files)./gradlew build --no-daemonon JDK 24: passed./gradlew clean build --no-daemonon JDK 17: passed (103 tests, 0 failures, 0 skipped)Automatic-Module-Name: co.lettermintpresent, no okhttp bundledNot run locally
./gradlew checkstyleMain checkstyleTest: the build has no checkstyle tasks, and the workflow ignores the result (|| true).Suggested release tag
v3.3.0(latest tag:v3.2.0).