Repository navigation
feat(email): add audited Resend queue primitives - #174
Merged
Merged
Conversation
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.
Scope
Add the next development layer to the existing queue: encrypted asynchronous job payloads, sender authorization and blocklist checks, Redis quota scopes, a PostgreSQL audit adapter, a Resend transport with idempotency headers, signed webhook verification, event deduplication, and safe uncertain-send state handling. The legacy
queuedDeliveryAPI remains exported.Verification
bun run buildbun test— 10 unit testsbun test— 16 tests, including deduplication, quota enforcement, encrypted job payloads, worker restart behavior, restriction pausing, and UNKNOWN status persistenceRemaining work
This is an implementation-stage PR. The package is not production complete: no REST service, CLI, MCP tools, admin PWA, alert routing, app-wide migration, deployed worker/database, encrypted PostgreSQL PII fields, provider/domain verification, or production delivery verification is included. Existing MyNaPoster compatibility callers do not yet provide the PostgreSQL audit store and tenant scope required by the new asynchronous API. Do not publish or deploy from this branch.
No external email was sent.