{"_id":"@resend/chat-sdk-adapter","_rev":"13-4ee8c354975c38ed3cdf54ad3b238c6e","name":"@resend/chat-sdk-adapter","dist-tags":{"latest":"0.6.1"},"versions":{"0.1.0":{"name":"@resend/chat-sdk-adapter","version":"0.1.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":{"name":"João Melo"},"license":"MIT","_id":"@resend/chat-sdk-adapter@0.1.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"jopcmelo","email":"jopcmelo@gmail.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"a2346ae83feff9b377ef78a771380f05bf732822","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.1.0.tgz","fileCount":43,"integrity":"sha512-isiO1K/JXD0IMHgDcYbqnud740oXGVg9PMBf3mwAXSleSQN8w1eZbDdZDJ8XOA5qt7tMgc87p5o5vP6syuvhzg==","signatures":[{"sig":"MEYCIQDYvmVtWjxf3h56af3fsivo85KFgf9s/zPRmwemqxMRTgIhAJYEAKMGkB9OH/UeWM0VO81i52i9ez8ExeLt5D64+KbB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65424},"main":"dist/index.js","type":"module","_from":"file:resend-chat-sdk-adapter-0.1.0.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"pnpm build && changeset publish","version":"changeset version","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary"},"_npmUser":{"name":"jopcmelo","email":"jopcmelo@gmail.com"},"_resolved":"/tmp/bb20362100ecbead61a62f510c181f4d/resend-chat-sdk-adapter-0.1.0.tgz","_integrity":"sha512-isiO1K/JXD0IMHgDcYbqnud740oXGVg9PMBf3mwAXSleSQN8w1eZbDdZDJ8XOA5qt7tMgc87p5o5vP6syuvhzg==","repository":{"url":"git+https://github.com/resend/resend-chat-sdk.git","type":"git"},"_npmVersion":"10.9.4","description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"22.22.0","dependencies":{"resend":"6.9.2","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1","@react-email/render":"2.0.4","@react-email/components":"1.0.8"},"_hasShrinkwrap":false,"devDependencies":{"chat":"4.15.0","react":"^19.2.4","vitest":"^3.0.0","ultracite":"^7.2.4","typescript":"^5.7.0","@types/node":"^22.0.0","@types/mdast":"^4.0.4","@types/react":"^19.2.14","@biomejs/biome":"^2.4.4","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.15.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.1.0_1772484674047_0.6220763861580232","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@resend/chat-sdk-adapter","version":"0.1.1","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":{"name":"João Melo"},"license":"MIT","_id":"@resend/chat-sdk-adapter@0.1.1","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"6ae0452894725a34be7c33044a6dd1c222af21a1","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.1.1.tgz","fileCount":43,"integrity":"sha512-8rGteBhvmIOU38zUun6Jwfgw3hfxKmyhvz329lJ6XIKidHy9wTWMoV9DpuR6typiiKhNnSZeDEB6/3kE3S2J3A==","signatures":[{"sig":"MEUCIQCoECK9FhzgV6KyQxs3Cd1Ijy8+oe1HLPbWRkuEPAnPqwIgK0nzJPykTpYlB6tyxLn+SUZO0eB8do/NBvGTcGeBG3E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65875},"main":"dist/index.js","type":"module","_from":"file:resend-chat-sdk-adapter-0.1.1.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"pnpm build && changeset publish","version":"changeset version","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary"},"_npmUser":{"name":"jopcmelo","email":"joao@resend.com"},"_resolved":"/tmp/5d81df18c0a9ac121fab6c01085596f2/resend-chat-sdk-adapter-0.1.1.tgz","_integrity":"sha512-8rGteBhvmIOU38zUun6Jwfgw3hfxKmyhvz329lJ6XIKidHy9wTWMoV9DpuR6typiiKhNnSZeDEB6/3kE3S2J3A==","repository":{"url":"git+https://github.com/resend/resend-chat-sdk.git","type":"git"},"_npmVersion":"10.9.4","description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"22.22.1","dependencies":{"resend":"6.9.2","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1","@react-email/render":"2.0.4","@react-email/components":"1.0.8"},"_hasShrinkwrap":false,"devDependencies":{"chat":"4.20.0","react":"^19.2.4","vitest":"^3.0.0","ultracite":"^7.2.4","typescript":"^5.7.0","@types/node":"^22.0.0","@types/mdast":"^4.0.4","@types/react":"^19.2.14","@biomejs/biome":"^2.4.4","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.20.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.1.1_1773407658702_0.9883139364572338","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@resend/chat-sdk-adapter","version":"0.2.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":{"name":"João Melo"},"license":"MIT","_id":"@resend/chat-sdk-adapter@0.2.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"3179fa11733ea934ff20aa766ae3016c82982c97","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.2.0.tgz","fileCount":43,"integrity":"sha512-x4lNOZHb2vgcZjyYQH+lk/DWdntQpLpKTKXM4/XkfYgZ+p33yU4jZUsgyerhw0t7Dr1VIhzny9CRiCwUcgCqFg==","signatures":[{"sig":"MEYCIQDiZt51TEC1coyGQBh4T0c18AQGLovN1KhW6/r9gZOTjAIhAOE89BvoXNp/aFe0NG/eKh6h0wrIbVoRd+GSoXVnozbc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65743},"main":"dist/index.js","type":"module","_from":"file:resend-chat-sdk-adapter-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"pnpm build && changeset publish","version":"changeset version","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary"},"_npmUser":{"name":"jopcmelo","email":"joao@resend.com"},"_resolved":"/tmp/aa84f5f7207ba93d9bfd411c349f1877/resend-chat-sdk-adapter-0.2.0.tgz","_integrity":"sha512-x4lNOZHb2vgcZjyYQH+lk/DWdntQpLpKTKXM4/XkfYgZ+p33yU4jZUsgyerhw0t7Dr1VIhzny9CRiCwUcgCqFg==","repository":{"url":"git+https://github.com/resend/resend-chat-sdk.git","type":"git"},"_npmVersion":"10.9.7","description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"22.22.2","dependencies":{"resend":"6.9.2","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"chat":"4.20.0","react":"^19.2.4","vitest":"^3.0.0","ultracite":"^7.2.4","typescript":"^5.7.0","@types/node":"^22.0.0","@types/mdast":"^4.0.4","@types/react":"^19.2.14","@biomejs/biome":"^2.4.4","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.20.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.2.0_1776876262814_0.6255830554527861","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@resend/chat-sdk-adapter","version":"0.2.1","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":{"name":"João Melo"},"license":"MIT","_id":"@resend/chat-sdk-adapter@0.2.1","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"cf60ac1ca9cd4535f0acdc447084beb4de02f67f","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.2.1.tgz","fileCount":43,"integrity":"sha512-JuOrGKBmV9x9XOEeZRNQy0Tg3uuuo4rvzSfqyYk+k9PV8Oo5YyNhB39nNr/LOW/Bw4qCI5MchXhdSC2fx0JbnQ==","signatures":[{"sig":"MEYCIQCov/tTNhiT80kTLbKF/jiTy9QYDERPp0bNyck54sRsqgIhALG8CES8uY9OQXXurkomLZpEJsVMrj7V8thIZQI9xY1e","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67438},"main":"dist/index.js","type":"module","_from":"file:resend-chat-sdk-adapter-0.2.1.tgz","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"pnpm build && changeset publish","version":"changeset version","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary"},"_npmUser":{"name":"jopcmelo","email":"joao@resend.com"},"_resolved":"/tmp/a18885af4f04d36271da658c76464112/resend-chat-sdk-adapter-0.2.1.tgz","_integrity":"sha512-JuOrGKBmV9x9XOEeZRNQy0Tg3uuuo4rvzSfqyYk+k9PV8Oo5YyNhB39nNr/LOW/Bw4qCI5MchXhdSC2fx0JbnQ==","repository":{"url":"git+https://github.com/resend/resend-chat-sdk.git","type":"git"},"_npmVersion":"10.9.7","description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"22.22.2","dependencies":{"resend":"6.9.2","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"chat":"4.20.0","react":"^19.2.4","vitest":"^3.0.0","ultracite":"^7.2.4","typescript":"^5.7.0","@types/node":"^22.0.0","@types/mdast":"^4.0.4","@types/react":"^19.2.14","@biomejs/biome":"^2.4.4","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.20.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.2.1_1776879827800_0.9115994474351097","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@resend/chat-sdk-adapter","version":"0.2.2","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":{"name":"João Melo"},"license":"MIT","_id":"@resend/chat-sdk-adapter@0.2.2","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"1d09d46ffc66afd12b024bb2f0e60bf94ff1b876","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.2.2.tgz","fileCount":43,"integrity":"sha512-sKATpJDsZX+mfEIRfyU5w8+RUKLDHNr+G+LVAWs3or4iYvCoIKDbpUdc9XMrXH8YBQXCubff2LanrV8Gr9kR5A==","signatures":[{"sig":"MEUCIC+F9jFqZB7ReDzdsu6RYR1fLylA1R4vIbGbjZq0AxTGAiEA4Hnk8lMlZJOELi+P8auQVA35kLaO27u/7RM448UzuGU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67601},"main":"dist/index.js","type":"module","_from":"file:resend-chat-sdk-adapter-0.2.2.tgz","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"pnpm build && changeset publish","version":"changeset version","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary"},"_npmUser":{"name":"jopcmelo","email":"joao@resend.com"},"_resolved":"/tmp/f3790a66b01fd13e76b2556cbc624d3e/resend-chat-sdk-adapter-0.2.2.tgz","_integrity":"sha512-sKATpJDsZX+mfEIRfyU5w8+RUKLDHNr+G+LVAWs3or4iYvCoIKDbpUdc9XMrXH8YBQXCubff2LanrV8Gr9kR5A==","repository":{"url":"git+https://github.com/resend/resend-chat-sdk.git","type":"git"},"_npmVersion":"10.9.7","description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"22.22.2","dependencies":{"resend":"6.9.2","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"chat":"4.20.0","react":"^19.2.4","vitest":"^3.0.0","ultracite":"^7.2.4","typescript":"^5.7.0","@types/node":"^22.0.0","@types/mdast":"^4.0.4","@types/react":"^19.2.14","@biomejs/biome":"^2.4.4","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.20.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.2.2_1776880685610_0.5454694260000712","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@resend/chat-sdk-adapter","version":"0.3.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":"João Melo","license":"MIT","_id":"@resend/chat-sdk-adapter@0.3.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"8d4b223cca475e08e4e1e584bd667e9e0fe967d9","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.3.0.tgz","fileCount":43,"integrity":"sha512-Sbyt4NlVv6UeQtd8u4gYjhn5HUegnzDGM28Fq5m6gn2F1R7TB/EdHnd6Girr0dsytg4yC/dgYYXC8AnjXJA6yw==","signatures":[{"sig":"MEUCIQCmDhdFFGddkjwvIFPAc87+5v5XGxQ+ZUADHkKmF2w4KgIgJsdCACzN3hbuLIXBgya/YquwL7rY9kf4z0GyAvqaCAw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@resend%2fchat-sdk-adapter@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":70546},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"node --import tsx/esm ./scripts/release.mts","version":"changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary","release:build":"pnpm build","release:dry-run":"node --import tsx/esm ./scripts/release.mts --dry-run"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e113d8d-070c-42ff-a2fc-b8862f67167c"}},"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"24.19.0","dependencies":{"resend":"^6.9.2","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","chat":"4.20.0","svix":"1.99.1","react":"19.2.4","remark":"15.0.1","vitest":"3.2.7","react-dom":"19.2.4","ultracite":"7.2.4","pkg-pr-new":"0.0.66","typescript":"5.9.3","@types/node":"22.20.1","@types/mdast":"4.0.4","@types/react":"19.2.14","@actions/core":"3.0.0","@actions/exec":"3.0.0","@biomejs/biome":"2.5.8","@actions/github":"9.1.0","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.37.0","mdast-util-to-string":"4.0.0","@chat-adapter/state-memory":"4.37.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.3.0_1786631180444_0.04904588426467993","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@resend/chat-sdk-adapter","version":"0.4.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":"João Melo","license":"MIT","_id":"@resend/chat-sdk-adapter@0.4.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"83dc9d572b569db6cc83134714be918310382e71","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.4.0.tgz","fileCount":43,"integrity":"sha512-u8uwFZhlgr/AK1IKuI8zMQbRd3jtJyGvC1jlJVI/iCCXDVq56IP4rz9+MRMFtLqMF5LmaNDUC260MTFE+d7VNQ==","signatures":[{"sig":"MEUCIQDch2CsUwzD3ERKN1cMu7ZAhNKxBmWftbsk7whnmwPJvwIgYgnLDCR1rX6wUMGx4MtTTOeTI/MonhgKZ0HeNRmhBW0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDXoUUsxLshW/q4JdgJHb3XmIPDBpiI3ri8Sgouaa7hOQIgSMDOSAeO6SYlbaEu3tNDF3CZ5Mb9zrt9z5ImwFhCAq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@resend%2fchat-sdk-adapter@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":93648},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"node --import tsx/esm ./scripts/release.mts","version":"changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary","release:build":"pnpm build","release:dry-run":"node --import tsx/esm ./scripts/release.mts --dry-run"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0e113d8d-070c-42ff-a2fc-b8862f67167c"}},"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"24.21.0","dependencies":{"resend":"^6.33.0","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","chat":"4.20.0","svix":"1.99.1","react":"19.2.4","remark":"15.0.1","vitest":"3.2.7","react-dom":"19.2.4","ultracite":"7.2.4","pkg-pr-new":"0.0.66","typescript":"5.9.3","@types/node":"22.20.1","@types/mdast":"4.0.4","@types/react":"19.2.14","@actions/core":"3.0.0","@actions/exec":"3.0.0","@biomejs/biome":"2.5.8","@actions/github":"9.1.0","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.37.0","mdast-util-to-string":"4.0.0","@chat-adapter/state-memory":"4.37.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.4.0_1792000404211_0.11734070424397403","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@resend/chat-sdk-adapter","version":"0.5.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":"João Melo","license":"MIT","_id":"@resend/chat-sdk-adapter@0.5.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"f876a83a05d33fbdac378e170ff683aacfb3032e","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.5.0.tgz","fileCount":43,"integrity":"sha512-etPtbaFCco8qgZiZWRMIscKPubkJfts1ec/lo466fW1ENfpvbUxtXjptHIeCvXlKTBtlF/ZrifpjIti+YJDN5Q==","signatures":[{"sig":"MEQCIEw1HAPYW0PodcYh52rSzEdr+conSKC5pVOPcL8ZrCKrAiALBltj5O8YHnamT2uI7k6lp3suOl0g27oQGH2zmLs0bA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCKeDRmFaNDRpKmWWjWVMrtIjR6WEg+5urubqaM8BJ6dwIgK+CCdiASb9uIsZ9jrCiAKKmzXPM20lANrEjvD/CKO8U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@resend%2fchat-sdk-adapter@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":98238},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"node --import tsx/esm ./scripts/release.mts","version":"changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary","release:build":"pnpm build","release:dry-run":"node --import tsx/esm ./scripts/release.mts --dry-run"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0e113d8d-070c-42ff-a2fc-b8862f67167c"}},"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"24.22.0","dependencies":{"resend":"^6.34.1","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","chat":"4.20.0","svix":"1.99.1","react":"19.2.4","remark":"15.0.1","vitest":"3.2.7","react-dom":"19.2.4","ultracite":"7.2.4","pkg-pr-new":"0.0.66","typescript":"5.9.3","@types/node":"22.20.1","@types/mdast":"4.0.4","@types/react":"19.2.14","@actions/core":"3.0.0","@actions/exec":"3.0.0","@biomejs/biome":"2.5.8","@actions/github":"9.1.0","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.37.0","mdast-util-to-string":"4.0.0","@chat-adapter/state-memory":"4.37.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.5.0_1792183738644_0.08423489076899582","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@resend/chat-sdk-adapter","version":"0.6.0","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"author":"João Melo","license":"MIT","_id":"@resend/chat-sdk-adapter@0.6.0","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"carolmoreschi","email":"carol@resend.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"homepage":"https://github.com/resend/resend-chat-sdk","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"137337d22a2217b6f5229b45d1dd404591aaf8b5","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.6.0.tgz","fileCount":43,"integrity":"sha512-Br0kAi941XxnoZbUsYf3RgIYY3OiimaLHH89C+nLlNtyPxcflD5Rf1FPHyviYtpH66itmc/5cXEGrRTrtazkbQ==","signatures":[{"sig":"MEYCIQDaPCYvvBe/EtCN9Er6FMnE/+uV8Sq3E4z46l7hwc+6fwIhAOwavIhPrltIazAckLUC7iFpa51TRz1AK2ivnf5+80XS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDegAxeSVH12TPd54OOYpAIRZcVmp8k0wiC5w7t0ydDUwIhAOOc+krOTw2XsIUjrwoXwE2790xesYumPRhIss/NtOqT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@resend%2fchat-sdk-adapter@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":136496},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"node --import tsx/esm ./scripts/release.mts","version":"changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary","release:build":"pnpm build","release:dry-run":"node --import tsx/esm ./scripts/release.mts --dry-run"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0e113d8d-070c-42ff-a2fc-b8862f67167c"}},"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","directories":{},"_nodeVersion":"24.22.2","dependencies":{"resend":"^6.34.1","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","chat":"4.20.0","svix":"1.99.1","react":"19.3.1","remark":"15.0.1","vitest":"3.2.7","react-dom":"19.3.1","ultracite":"7.2.4","pkg-pr-new":"0.0.66","typescript":"5.9.3","@types/node":"22.20.1","@types/mdast":"4.0.4","@types/react":"19.3.0","@actions/core":"3.0.1","@actions/exec":"3.0.0","@biomejs/biome":"2.5.8","@actions/github":"9.1.1","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.37.0","mdast-util-to-string":"4.0.0","@chat-adapter/state-memory":"4.37.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-sdk-adapter_0.6.0_1793796184198_0.04300687027846939","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"_id":"@resend/chat-sdk-adapter@0.6.1","bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"dist":{"shasum":"9d00e4cd180936bb7b74e9cc1f9a92fcff219dc1","tarball":"https://registry.npmjs.org/@resend/chat-sdk-adapter/-/chat-sdk-adapter-0.6.1.tgz","fileCount":43,"integrity":"sha512-XbVTw6b4BPCFNTC1lm8QwnQ1o1BXZqCE7P2oca4+J8R/3v56g1bt/3qoBOd2Igv4iRsVku3oslILk3BLIqZ1eg==","signatures":[{"sig":"MEUCIQCAoJF2Z1Kdt/wxg3Fh9p1Y2Z21uXsCcF/J+XLCe3ODvQIgJFIymwaDF2FHwlCcO7Tkjam3A/HIGRWqtSzBT58jWUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD3/ITvYK33CXuj3xrYYB0fY2fQTwflufc1PTfdTXUTwgIhAIDiyQk0Rx9EBPCRT5QBCXfR6wfn1xlR4nJQ8OVEuZxK"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@resend%2fchat-sdk-adapter@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":136461},"main":"dist/index.js","name":"@resend/chat-sdk-adapter","type":"module","types":"dist/index.d.ts","author":"João Melo","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"license":"MIT","scripts":{"lint":"biome check .","test":"vitest run --passWithNoTests","build":"tsc","format":"biome format --write .","release":"node --import tsx/esm ./scripts/release.mts","version":"changeset version && pnpm install --no-frozen-lockfile && pnpm lint:fix","lint:fix":"biome check --write .","typecheck":"tsc --noEmit","test:watch":"vitest","canary:exit":"changeset pre exit","canary:enter":"changeset pre enter canary","release:build":"pnpm build","release:dry-run":"node --import tsx/esm ./scripts/release.mts --dry-run"},"version":"0.6.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"0e113d8d-070c-42ff-a2fc-b8862f67167c"}},"homepage":"https://github.com/resend/resend-chat-sdk","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","directories":{},"maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"_nodeVersion":"24.22.3","dependencies":{"resend":"^6.34.1","react-email":"^6.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.23.12","chat":"4.20.0","svix":"1.99.1","react":"19.3.1","remark":"15.0.1","vitest":"3.2.7","react-dom":"19.3.1","ultracite":"7.2.4","pkg-pr-new":"0.0.66","typescript":"5.9.3","@types/node":"22.20.1","@types/mdast":"4.0.4","@types/react":"19.3.0","@actions/core":"3.0.1","@actions/exec":"3.0.0","@biomejs/biome":"2.5.8","@actions/github":"9.1.1","@changesets/cli":"2.29.8","@changesets/pre":"2.0.2","@chat-adapter/shared":"4.37.0","mdast-util-to-string":"4.0.0","@chat-adapter/state-memory":"4.37.0"},"peerDependencies":{"chat":"^4.15.0","@chat-adapter/shared":"^4.15.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chat-sdk-adapter_0.6.1_1794599586171_0.4100976121260802"}}},"time":{"created":"2026-03-02T20:51:13.944Z","modified":"2026-11-13T19:53:06.640Z","0.1.0":"2026-03-02T20:51:14.192Z","0.1.1":"2026-03-13T13:14:18.841Z","0.2.0":"2026-04-22T16:44:22.952Z","0.2.1":"2026-04-22T17:43:47.945Z","0.2.2":"2026-04-22T17:58:05.767Z","0.3.0":"2026-08-13T14:26:20.615Z","0.4.0":"2026-10-14T17:53:24.309Z","0.5.0":"2026-10-16T20:48:58.741Z","0.6.0":"2026-11-04T12:43:04.316Z","0.6.1":"2026-11-13T19:53:06.250Z"},"bugs":{"url":"https://github.com/resend/resend-chat-sdk/issues"},"author":"João Melo","license":"MIT","homepage":"https://github.com/resend/resend-chat-sdk","keywords":["resend","email","chat","adapter","vercel","chat-sdk","webhook"],"repository":{"url":"https://github.com/resend/resend-chat-sdk.git","type":"git"},"description":"Vercel Chat SDK adapter for Resend email","maintainers":[{"name":"bukinoshita","email":"bukinoshita@gmail.com"},{"name":"zenorocha","email":"zno.rocha@gmail.com"},{"name":"rehan","email":"rehan.vdm4@gmail.com"},{"name":"dielduarte","email":"magdiel.kesller@gmail.com"},{"name":"jopcmelo","email":"joao@resend.com"},{"name":"cisneiros","email":"alexandre@cisneiros.com"},{"name":"gabrielmfern","email":"gabrielmfern@outlook.com"},{"name":"lucasfcosta","email":"lucas@lucasfcosta.com"}],"readme":"# @resend/chat-sdk-adapter\n\nVercel Chat SDK adapter for [Resend](https://resend.com) email. Bidirectional: receive emails via Resend webhooks, send emails via Resend API.\n\nThe adapter works with a Resend [Inbox](https://resend.com/docs/api-reference/inboxes/create-inbox) or with [Receiving](https://resend.com/docs/dashboard/receiving/introduction). Set `inboxId` or `inboxEmailAddress` to use an inbox. See [Inboxes](#inboxes).\n\n## Install\n\n```bash\npnpm add @resend/chat-sdk-adapter chat @chat-adapter/shared @chat-adapter/state-memory\n```\n\n## Quick Start\n\n```ts\nimport { createResendAdapter } from \"@resend/chat-sdk-adapter\";\nimport { MemoryStateAdapter } from \"@chat-adapter/state-memory\";\nimport { Chat } from \"chat\";\n\nconst resend = createResendAdapter({\n  fromAddress: \"bot@yourdomain.com\",\n  fromName: \"My Bot\",         // optional\n  // apiKey: \"re_...\",        // or set RESEND_API_KEY env var\n  // webhookSecret: \"whsec_...\" // or set RESEND_WEBHOOK_SECRET env var\n});\n\nconst chat = new Chat({\n  userName: \"email-bot\",\n  adapters: { resend },\n  state: new MemoryStateAdapter(),\n});\n\n// New inbound email (new thread)\nchat.onNewMention(async (thread, message) => {\n  await thread.subscribe();\n  await thread.post(`Got your email: ${message.text}`);\n});\n\n// Follow-up email in a subscribed thread\nchat.onSubscribedMessage(async (thread, message) => {\n  await thread.post(`Reply: ${message.text}`);\n});\n```\n\nForward Resend webhooks to your server's `/webhook` endpoint. See [examples/basic](./examples/basic) for a full working server.\n\n## Configuration\n\n### Environment Variables\n\n| Variable | Description |\n|---|---|\n| `RESEND_API_KEY` | Resend API key (overridden by `config.apiKey`) |\n| `RESEND_WEBHOOK_SECRET` | Webhook signing secret (overridden by `config.webhookSecret`, ignored with `config.webhookVerifier`) |\n| `FROM_ADDRESS` | Used by example apps only |\n\n### `ResendAdapterConfig`\n\n```ts\ntype ResendAdapterConfig = {\n  /** Sender email address (required). */\n  fromAddress: string;\n  /** Display name for the From header. */\n  fromName?: string;\n  /** Resend API key, or a function that returns one. Falls back to RESEND_API_KEY env var. */\n  apiKey?: string | (() => string | Promise<string>);\n  /** With an inbox, start a new inbox thread from `openDM()`. Defaults to `false`. */\n  startInboxThreads?: boolean;\n  /** Webhook signing secret. Falls back to RESEND_WEBHOOK_SECRET env var. */\n  webhookSecret?: string;\n  /** Custom webhook verifier, used in place of the signing secret. */\n  webhookVerifier?: (request: Request, body: string) => unknown | Promise<unknown>;\n} & (\n  /** Resend inbox ID. Handles `inbox.email.received` and replies in the inbox thread. */\n  | { inboxId?: string; inboxEmailAddress?: never }\n  /** Resend inbox email address. Works as `inboxId` does. */\n  | { inboxId?: never; inboxEmailAddress?: string }\n);\n```\n\nSet `inboxId` or `inboxEmailAddress`, not both. Setting both is a type error.\n\n## Features\n\n### Inboxes\n\nSet `inboxId` or `inboxEmailAddress` to build the bot on a Resend Inbox. The inbox groups email into threads, and the bot replies inside the thread. Resend sets the recipients and the threading headers.\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"agent@yourdomain.com\", // the inbox address\n  inboxId: \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\",\n});\n```\n\nYou can also select the inbox by its email address:\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"agent@yourdomain.com\",\n  inboxEmailAddress: \"agent@yourdomain.com\",\n});\n```\n\nSet `inboxId` or `inboxEmailAddress`, not both. The adapter throws an error when you set both. The `inbox.email.received` payload identifies the inbox by its ID. With `inboxEmailAddress`, the adapter gets the inbox ID with `resend.inboxes.get()` on the first `inbox.email.received` event and keeps it. If the inbox does not exist, `handleWebhook()` throws an error. Thread IDs use the inbox ID in both cases.\n\nSubscribe your webhook to `inbox.email.received`. With an inbox set, the adapter:\n\n- Handles `inbox.email.received` events for that inbox only, and, with `startInboxThreads`, `inbox.draft.sent` events for the threads that `openDM()` starts. It ignores other inboxes and `email.received` events.\n- Fetches the email with `resend.inboxes.threads.emails.get()`. The webhook payload has no body.\n- Maps each inbox thread to one Chat SDK thread, with the ID `resend:{inboxId}:{threadId}`. The channel is the inbox.\n- Fetches the thread history with `fetchMessages()`, from `resend.inboxes.threads.emails.list()`, and one email with `fetchMessage()`. An outbound email, sent from the inbox, has `author.isMe` and `author.isBot` set, also when a person sent it from the Resend dashboard. The inbox API lists the oldest emails first, so the default `backward` fetch without a cursor lists the whole thread to find the newest emails. Without an inbox, `fetchMessages()` returns no messages and `fetchMessage()` returns `null`, because the Receiving API keeps no thread history.\n- Posts with `resend.inboxes.threads.emails.reply()`, to the last received email of the thread, or to its last email when it has no received email. The reply goes to the `Reply-To` addresses of a received email, or to its sender when it has none. For a sent email, it goes to that email's `to` recipients. The reply is sent from the inbox address, so `fromName` does not apply to it.\n\nA sender can set `Reply-To` to any address. Check `message.raw.replyTo` before the bot replies with anything sensitive.\n\n### Start Inbox Threads\n\nBy default, `openDM()` sends with `resend.emails.send()` from `fromAddress`, as without an inbox, so the email is not in the inbox. Set `startInboxThreads` to start a new inbox thread instead:\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"agent@yourdomain.com\",\n  inboxId: \"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1\",\n  startInboxThreads: true,\n});\n\nconst threadId = await resend.openDM(\"user@example.com\");\nawait resend.postMessage(threadId, \"Your order has shipped.\");\n```\n\nThe first post creates a standalone draft with `resend.inboxes.drafts.create()`, with the subject `New message`, and sends it with `resend.inboxes.drafts.send()`. Resend creates the thread when it sends the draft, and returns the thread ID only in the `inbox.draft.sent` event. So the thread ID from `openDM()` is a placeholder until that event arrives. After that, the adapter replies in the Resend thread, and processes replies from the recipient in the thread of `openDM()`.\n\nWith `startInboxThreads`:\n\n- Subscribe your webhook to `inbox.draft.sent`, as well as `inbox.email.received`.\n- Use a persistent state adapter, such as Redis. The adapter keeps the link between the placeholder and the Resend thread in the state adapter, and the first post, the `inbox.draft.sent` event and the replies can reach different server instances.\n- With `inboxEmailAddress`, call `initialize()` first, so that the adapter can get the inbox ID.\n\nA second post before the `inbox.draft.sent` event throws an error. Until the event arrives, `fetchMessages()` returns no messages.\n\n### API Key Function\n\nSet `apiKey` to a function to get the key when the adapter needs it. The adapter calls the function each time it calls the Resend API, so a rotated or short-lived key takes effect without a new adapter.\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"bot@yourdomain.com\",\n  apiKey: () => getResendApiKey(),\n});\n```\n\n### Custom Webhook Verification\n\nBy default, the adapter verifies the Svix signature of each webhook with `webhookSecret`. Set `webhookVerifier` when a trusted proxy verifies the Resend signature and forwards the webhook with its own credential. The adapter then calls the verifier in place of the signature check, and ignores `webhookSecret` and `RESEND_WEBHOOK_SECRET`.\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"bot@yourdomain.com\",\n  webhookVerifier: (request, body) => verifyProxyToken(request),\n});\n```\n\nThe verifier receives the `Request` and the raw body text. Return a truthy value to accept the webhook. Return a falsy value or throw to reject it, and the adapter responds with `401`. The verifier replaces the Svix check, including its timestamp check, so it must reject replayed requests itself.\n\n### API Key Function\n\nSet `apiKey` to a function to get the key when the adapter needs it. The adapter calls the function each time it calls the Resend API, so a rotated or short-lived key takes effect without a new adapter.\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"bot@yourdomain.com\",\n  apiKey: () => getResendApiKey(),\n});\n```\n\n### Custom Webhook Verification\n\nBy default, the adapter verifies the Svix signature of each webhook with `webhookSecret`. Set `webhookVerifier` when a trusted proxy verifies the Resend signature and forwards the webhook with its own credential. The adapter then calls the verifier in place of the signature check, and ignores `webhookSecret` and `RESEND_WEBHOOK_SECRET`.\n\n```ts\nconst resend = createResendAdapter({\n  fromAddress: \"bot@yourdomain.com\",\n  webhookVerifier: (request, body) => verifyProxyToken(request),\n});\n```\n\nThe verifier receives the `Request` and the raw body text. Return a truthy value to accept the webhook. Return a falsy value or throw to reject it, and the adapter responds with `401`. The verifier replaces the Svix check, including its timestamp check, so it must reject replayed requests itself.\n\n### Email Threading\n\nWithout an inbox, threads are resolved using standard `Message-ID`, `In-Reply-To`, and `References` email headers. Reply chains are automatically grouped into Chat SDK threads.\n\n### Send Emails Proactively\n\nUse `openDM` to start a new email thread to any address:\n\n```ts\nconst threadId = await resend.openDM(\"user@example.com\");\nawait resend.postMessage(threadId, \"Hello from the bot!\");\n```\n\n### Card Emails\n\nSend HTML emails with Chat SDK card elements. The adapter renders them with [React Email](https://react.email). Put a `link-button` inside an `actions` element:\n\n```ts\nawait thread.post({\n  card: {\n    type: \"card\",\n    title: \"Order Confirmed\",\n    children: [\n      { type: \"text\", content: \"Your order #1234 has been shipped.\" },\n      { type: \"divider\" },\n      {\n        type: \"actions\",\n        children: [\n          { type: \"link-button\", label: \"Track Order\", url: \"https://example.com/track/1234\" },\n        ],\n      },\n    ],\n  },\n  fallbackText: \"Order #1234 confirmed\",\n});\n```\n\n### Attachments\n\nInbound email attachments are in `message.raw.attachments`, as `ResendAttachment` objects. The adapter does not download the attachment content.\n\n- An attachment of an `email.received` email has `filename` and `contentType`.\n- An attachment of an inbox email has `id`, `filename`, `size` and `contentType`. The inbox API does not return the MIME type, so `contentType` is always `application/octet-stream`.\n\n```ts\nimport type { ResendRawMessage } from \"@resend/chat-sdk-adapter\";\n\nchat.onNewMention(async (thread, message) => {\n  const raw = message.raw as ResendRawMessage;\n  for (const attachment of raw.attachments ?? []) {\n    console.log(attachment.filename, attachment.contentType, attachment.size);\n  }\n});\n```\n\n## Unsupported Operations\n\nEmail is inherently one-shot. The following operations throw `NotImplementedError`:\n\n- `editMessage` / `deleteMessage`\n- `addReaction` / `removeReaction`\n- `startTyping`\n\n## Examples\n\n| Example | Description |\n|---|---|\n| [basic](./examples/basic) | Echo bot - replies to every email |\n| [welcome-cards](./examples/welcome-cards) | Sends a styled card email on first contact |\n| [notifications](./examples/notifications) | Proactive emails via `openDM()` + HTTP POST |\n| [support-bot](./examples/support-bot) | Multi-turn support with subscribe/unsubscribe |\n| [attachments](./examples/attachments) | Detects attachments and replies with a summary |\n\n## Documentation\n\nOfficial docs available at [resend.com/docs/chat-sdk](https://resend.com/docs/chat-sdk).\n\n## License\n\nMIT\n","readmeFilename":""}