{"_id":"@wydev/amail","_rev":"10-5b045d3792a343583088ef0e4e2bbf1d","name":"@wydev/amail","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@wydev/amail","version":"1.0.0","keywords":["amail","email","smtp","sdk","resend-compatible"],"license":"MIT","_id":"@wydev/amail@1.0.0","maintainers":[{"name":"wydev","email":"sun05985@gmail.com"}],"dist":{"shasum":"6f36dd8c6b4251cb1d7e95e6d6c303b8f34a9718","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.0.0.tgz","fileCount":6,"integrity":"sha512-V4o6jwODYuEh+lD7CJ/+eFBXzbDbTD0eHAD22w/SdEeOXefrAkZMwiEQhZbgPO2wF//L/ko6wqZK1XGRzWxEhw==","signatures":[{"sig":"MEQCIBUJvKYn433j1oUcvaYQxKfYuEt8/Cdf3sldGsUKOC0gAiByi5NTenwOjwK9D173TPdyka7q0uqRU53Aa4KGD9WEIQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29934},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"52b329b43e6bf86d2243c13418a83b25be68524c","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"wydev","email":"sun05985@gmail.com"},"_npmVersion":"11.6.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.0.0_1780822490644_0.4100254875394851","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@wydev/amail","version":"1.1.5","keywords":["amail","email","smtp","sdk","resend-compatible"],"license":"MIT","_id":"@wydev/amail@1.1.5","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"dist":{"shasum":"ca9b13000d8c7dadb8b797a73e28979fa46f24e8","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.1.5.tgz","fileCount":6,"integrity":"sha512-CqqjTcLUpGv6ZVbTEmTX+y9kUltydIN2sS52I5NcG4qfW4jPRAUhTXKjJjF8LHIbv20EGIV88PRdvxFJ5ssq/Q==","signatures":[{"sig":"MEYCIQCeOo7ynVimoAWC7SwrBWKfUFhSrZgUu0KMWb2jEFKCpQIhAK/nkGxcKIjGYl2XNpCu0n41glOFoJAySjmWVSWz6dT2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30170},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"e58ffcc544e07711c5db5835a7f7239562e73198","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"sunwuyuan","email":"sun05985@gmail.com"},"_npmVersion":"11.6.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.1.5_1781094407301_0.15133032560312598","host":"s3://npm-registry-packages-npm-production"}},"1.1.8":{"name":"@wydev/amail","version":"1.1.8","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.1.8","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"18c766844ad64a489d8d9db37e9270d22be61138","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.1.8.tgz","fileCount":6,"integrity":"sha512-oNcIHxTnDgx+RaIsKixo+PcgVfcspIUrHQNYCXOqcwHLI57JLMckymt2rRMSQgnvycxuPl6CkzFTuOkxugaDTA==","signatures":[{"sig":"MEUCIQDg1mq1HqO6zLEPbVGu3ppDE7ER6QXV53hj5+FJqSVqaQIgBkx7HgUrFIVFVscR5fwwpqZIRKyw15IcCFNYLpk+Lgc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30243},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"9954916dabd1c24cb5b7d889ddd32ccbead7a7c4","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.1.8_1781138462296_0.8404341113648899","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@wydev/amail","version":"1.2.1","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.1","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"bc2fa67f4dc1cb452387db3a0219dfc3d2372ed0","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.1.tgz","fileCount":6,"integrity":"sha512-VykU937VfiBdIhL1YLDIe6OtzeKE/j3LvzcpnpYnxs/2FgK2IGV3sR0rKQVqmLfhFspRbb2DGIAgqla/f4Kgtg==","signatures":[{"sig":"MEUCIEQgwJKmxZE7K0lP0ak1TYXPxQ6tHHspeyFDb/OVghtqAiEA9lqJvOHsplDeJ2J0xOcah0FXYoq2tlKHkZPgFVhGjSk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30231},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"cd0e5376391886b2b2624862b3b25f6ebda95d95","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.1_1781153808737_0.5411677847439762","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@wydev/amail","version":"1.2.2","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.2","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"75cde9528a26bfa4c203a1b574d72c1a9d9d7a54","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.2.tgz","fileCount":6,"integrity":"sha512-3DXZfv/R/UaoNMgmEchO39f37YThQmsLEjQBcDMKI4gV42r/kX5Z9wDLQqZYhW5dODqibummbKmUkwJx7bmfgw==","signatures":[{"sig":"MEYCIQCIf18Y+Vf4eRWS7751pan1XCYAP+DxEJNvWHxbDVBStAIhALumJ2KbXJ5/t/vBNtvG2ENWbeN+7ppCWOwphlNsLiNG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30231},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"4ba72c872a9b21f909ece99483609ed7b83927dc","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.2_1781154333156_0.05685876073494067","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@wydev/amail","version":"1.2.3","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.3","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"05e1884aa5f8d6a6e4616c784c37761b8bd6ef22","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.3.tgz","fileCount":6,"integrity":"sha512-CsT2AfSm5x9VUQwfEL5MfPb2EYF4H+pqXdKoDllfN+VQOINsLa74iZxjF2xV7fnjlOSMbg5RySDR9VNQuY4ZNA==","signatures":[{"sig":"MEQCIFm+t6UnxY7dZtDLCKDOmJpO5nSUZT7qaKIVvstDeysJAiBx77WuGYtv0GQ3oKApKOZmSk6Bwp//Z2J8o2pZAXN71Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30231},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"6064e0904f45bc406ed51f4c16c110925179e138","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.3_1781154918895_0.8111616849195673","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@wydev/amail","version":"1.2.4","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.4","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"2ffadd6b9f12f577a604789db58e3507aa8833dd","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.4.tgz","fileCount":6,"integrity":"sha512-3SQaP9WT9f3nCY4YnPGaMc34lgUFG+/JvTvgirKZpartiehKZ5mkZtdPoqEmon4zlp1/5JYaPKYG1kxr1sdc4w==","signatures":[{"sig":"MEYCIQDx4vVz81leMPuiSYXMSofCzNqTjknu8r8GfVH0lwbJ3wIhANC+jBPezdqWYuDWOe9/subQzV4utzXvlcZJ622pdp72","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32405},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"56b2f5fa66a5b2bcbd2c1102d97fcb787dc10aa1","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.4_1781157895981_0.8650961781388584","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@wydev/amail","version":"1.2.5","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.5","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"de6d8ea22e45a3dc7b6aa601cc722479d5384c2a","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.5.tgz","fileCount":6,"integrity":"sha512-YLKVM12172oOSsMjMnm5WSZWCRhkc2WoUwkr/HbGVVD16PLZO2ExY7j/LEEg9/jmtrBZzzgKH9bN9BR71DcS+w==","signatures":[{"sig":"MEUCIQD9fLKrNIUKTs+oosRdarQansICUe0plHTCR8m/zm1rzAIgCKhOyf782QTUP/O4RIIV8y/AiMgwSf9LI4tNNCgkK3Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31439},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"440cd60fb9712065be0351bf7e9dad3485ed083e","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.5_1781267272119_0.4922790339227505","host":"s3://npm-registry-packages-npm-production"}},"1.2.7":{"name":"@wydev/amail","version":"1.2.7","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"author":{"name":"Moonrend"},"license":"MIT","_id":"@wydev/amail@1.2.7","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"dist":{"shasum":"74f4de8db28c40bb573bdc7b7a933308214d54e7","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.2.7.tgz","fileCount":6,"integrity":"sha512-nPF8JsYHkG68Oh2k//DKvBVS6/iz77/TzT3/pzc2kehebZA/pUN2FFTtDJP8HwrrOR4EeWb+Mpb3B1pDFpgGQQ==","signatures":[{"sig":"MEQCIDn0IOmWLU0QZ57uZUZUd0Xag3XO39fKBkTfTh5lhqpMAiASgMVOMOaPaL9YdovLJBh6QL9c1rxu0jE0aW39vjxDAQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.2.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31439},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"6bfca08295b09c976a45f3ae29b84aff4d68c0cb","scripts":{"dev":"tsdown --watch","build":"tsdown"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"repository":{"url":"git+https://github.com/Moonrend/Amail.git","type":"git"},"_npmVersion":"11.13.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/amail_1.2.7_1781271142902_0.45577695519005945","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@wydev/amail","version":"1.3.0","description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","license":"MIT","type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Moonrend/Amail.git"},"homepage":"https://github.com/Moonrend/Amail#readme","bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"author":{"name":"Moonrend"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsdown","dev":"tsdown --watch"},"devDependencies":{"tsdown":"^0.11.0","typescript":"^5.8.3"},"engines":{"node":">=18"},"keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"gitHead":"e0b1c4ea9e649e5beb136f897bfd1c7a65651717","_id":"@wydev/amail@1.3.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-k0IJzcg7YPA8smemTA2nRLrtHHWKiCwEufGd/ylUALINmBuwGea6445zraWUI/snlGQLeZ9fKUlkxb+kWd9x6g==","shasum":"dd42f7554aaf748c33bde379d18921490714154b","tarball":"https://registry.npmjs.org/@wydev/amail/-/amail-1.3.0.tgz","fileCount":6,"unpackedSize":33611,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@wydev%2famail@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGcdLxThxQCJcxFNp74Ga/KXRLJBXwqw8Eehnf4VBn+WAiEA0lADdC3cCBHDUotJ+0ME2/+0tdei/YRZu54gSvEtIlo="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4bbfcd7f-83b0-4a5e-a95a-8481479cd5d6"}},"directories":{},"maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/amail_1.3.0_1789290413950_0.8579616143151556"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-07T08:54:50.470Z","modified":"2026-09-13T09:06:54.441Z","1.0.0":"2026-06-07T08:54:50.772Z","1.1.5":"2026-06-10T12:26:47.445Z","1.1.8":"2026-06-11T00:41:02.460Z","1.2.1":"2026-06-11T04:56:48.869Z","1.2.2":"2026-06-11T05:05:33.332Z","1.2.3":"2026-06-11T05:15:19.045Z","1.2.4":"2026-06-11T06:04:56.125Z","1.2.5":"2026-06-12T12:27:52.286Z","1.2.7":"2026-06-12T13:32:23.072Z","1.3.0":"2026-09-13T09:06:54.099Z"},"bugs":{"url":"https://github.com/Moonrend/Amail/issues"},"author":{"name":"Moonrend"},"license":"MIT","homepage":"https://github.com/Moonrend/Amail#readme","keywords":["amail","email","smtp","sdk","resend-compatible","nodejs"],"repository":{"type":"git","url":"git+https://github.com/Moonrend/Amail.git"},"description":"Official Node.js SDK for Amail — self-hosted email proxy gateway with Resend-compatible API","maintainers":[{"name":"sunwuyuan","email":"sun05985@gmail.com"}],"readme":"# @wydev/amail\n\nAmail Node SDK（1.3.0）。发件邮箱由通道「发件人覆盖」决定，不必传真实 From。\n\n## 安装\n\n```bash\nnpm install @wydev/amail\n```\n\n## 使用\n\n```typescript\nimport { Amail } from '@wydev/amail';\n\nconst amail = new Amail('am_your_api_key', {\n  baseUrl: 'https://amail.your-domain.com',\n});\n\nconst { data, error } = await amail.emails.send({\n  to: 'user@example.com',\n  subject: '你好',\n  html: '<h1>测试邮件</h1>',\n});\n\nif (error) {\n  console.error(error);\n} else {\n  console.log('已发送:', data.id);\n}\n```\n\n## API\n\n### `new Amail(key?, options?)`\n\n创建客户端。\n\n- `key`：API Key，可从 `AMAIL_API_KEY` 读取。\n- `options.baseUrl`：服务地址，默认 `http://localhost:3000`。\n- `options.userAgent`：自定义 User-Agent。\n- `options.providerId`：默认 SMTP 通道 ID，省略为 `auto`。可从 `AMAIL_PROVIDER_ID` 读取。\n\n### `amail.emails`\n\n#### `emails.send(payload, options?)`\n\n发送单封邮件。等同 `emails.create()`。\n\n`providerId` 可省略（默认 `auto`），也可在初始化或单次发送时指定。`from` 只需传显示名，实际发件邮箱由通道配置覆盖。\n\n```typescript\nconst { data, error } = await amail.emails.send({\n  from: '示例',\n  to: ['user1@example.com', 'user2@example.com'],\n  subject: '你好',\n  html: '<p>测试邮件</p>',\n  text: '测试邮件',\n  cc: 'cc@example.com',\n  bcc: 'bcc@example.com',\n  replyTo: 'reply@example.com',\n  headers: { 'X-Trace': 'demo' },\n  tags: [{ name: 'type', value: 'test' }],\n  scheduledAt: '2024-12-01T12:00:00Z',\n}, {\n  idempotencyKey: 'unique-key-123',\n});\n```\n\n#### `emails.get(id)` / `emails.list(options?)`\n\n```typescript\nawait amail.emails.get('email_id');\nawait amail.emails.list({ limit: 10 });\nawait amail.emails.list({ limit: 10, after: 'email_id' });\n```\n\n#### `emails.update(id, payload)` / `emails.cancel(id)` / `emails.remove(id)`\n\n改期尚未发出的定时邮件；取消排队或定时邮件（`remove` 走 `DELETE`）。\n\n```typescript\nawait amail.emails.update('email_id', { scheduledAt: 'in 10 minutes' });\nawait amail.emails.cancel('email_id');\n```\n\n#### `emails.providers()`\n\n```typescript\nconst { data } = await amail.emails.providers();\n```\n\n### `amail.batch`\n\n#### `batch.send(payload, options?)`\n\n批量发送。等同 `batch.create()`。不支持附件。\n\n```typescript\nconst { data, error } = await amail.batch.send([\n  { to: 'user1@example.com', subject: '你好 1', html: '<p>测试邮件 1</p>' },\n  { to: 'user2@example.com', subject: '你好 2', html: '<p>测试邮件 2</p>' },\n], { batchValidation: 'permissive' });\n```\n\n## 错误\n\nAPI 错误返回 `{ data, error }`。\n\n```typescript\nconst { data, error } = await amail.emails.send({ ... });\n\nif (error) {\n  console.log(error.statusCode);\n  console.log(error.name);\n  console.log(error.message);\n}\n```\n\n## 从 Resend 迁移\n\n```typescript\nimport { Resend } from 'resend';\nconst resend = new Resend('re_xxx');\n\nimport { Amail } from '@wydev/amail';\nconst amail = new Amail('am_xxx', { baseUrl: 'https://amail.your-domain.com' });\n```\n\nAmail 会按通道的「发件人覆盖」填写发件邮箱；`providerId` 默认 `auto`。\n\n## 许可证\n\nMIT\n","readmeFilename":"README.md"}