Repository navigation
feat: add the inbound.rejected webhook event - #45
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
WebhookEventgains"inbound.rejected". Webhooks can subscribe to it, and the API sends it when an inbound message is rejected during SMTP.WebhookEventalready accepted unknown event names asstr, so this only adds the literal for type checkers and documents the event.Non-breaking. Target: minor.
API changes in the regenerated types
WebhookEventinbound.rejectedLiteral["inbound.rejected"]memberThe spec's
openapiversion string moved from 3.1.0 to 3.1.2. That has no effect on the SDK.Usage
Checks
Python 3.14.6, after
pip install -e ".[dev]":python -m ruff check src tests scripts: passedpython -m ruff format --check src tests scripts: 28 files already formattedpython -m mypy: no issues in 35 source filespython scripts/unasync.py --check:_syncup to datepython scripts/generate.py --check: generated files up to date with the pinned spec. The header-only mode that CI runs also passes.python -m pytest tests/: 305 passedThe same test job (ruff, mypy, unasync and generate checks, pytest) on Python 3.10.20, 3.11.13, 3.12.11 and 3.13.4: passed, 305 tests each.
Build job, Python 3.12.11:
python -m build: sdist and wheel builtpython -m twine check --strict dist/*: passedUPGRADE.mdandpy.typedpresent, client constructsNot run locally
Nothing. Every CI step was run locally.
Suggested release tag
v3.3.0