@fragno-dev/resend-fragment
v0.0.1
Published
Resend fragment
Readme
@fragno-dev/resend-fragment
Resend integration fragment for Fragno.
Resend threading v2
This package now uses a canonical local message store:
emailThreadremains the denormalized thread summary and thread-resolution table.emailMessageis the single local source of truth for stored inbound and outbound messages.- outbound
/emailsroutes now read canonicalemailMessagerows filtered todirection="outbound". - thread timelines now read canonical
emailMessagerows filtered bythreadId. - inbound webhook processing resolves threads from canonical
messageIdrows plusreplyTokenand heuristic fallbacks. - status webhooks update one canonical row instead of mirroring into a second table.
Breaking changes
- Outgoing message IDs are now stable local canonical IDs. They no longer get replaced with the provider email ID after send.
resendIdin route payloads is now always the provider email ID (providerEmailId) when one exists.- Webhook callback payloads now expose canonical
emailMessageIdplusproviderEmailId. - The old duplicated local table model (
email,receivedEmail,emailThreadMessage) has been removed in favor ofemailMessage.
Development
pnpm exec turbo types:check --filter=@fragno-dev/resend-fragment --output-logs=errors-only
pnpm exec turbo test --filter=@fragno-dev/resend-fragment --output-logs=errors-only