@visulima/email 1.0.0-alpha.9 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +782 -0
- package/LICENSE.md +541 -847
- package/README.md +212 -191
- package/dist/crypto/index.d.ts +304 -4
- package/dist/crypto/index.js +1 -1
- package/dist/deliverability/dmarc-report.d.ts +95 -0
- package/dist/deliverability/dmarc-report.js +1 -0
- package/dist/deliverability/index.d.ts +360 -0
- package/dist/deliverability/index.js +1 -0
- package/dist/events/index.d.ts +31 -0
- package/dist/events/index.js +1 -0
- package/dist/inbound/index.d.ts +375 -0
- package/dist/inbound/index.js +1 -0
- package/dist/index.d.ts +94 -9
- package/dist/index.js +1 -1
- package/dist/middleware/index.d.ts +346 -0
- package/dist/middleware/index.js +1 -0
- package/dist/packem_shared/ALL_EVENTS-3kwh5CBE.js +1 -0
- package/dist/packem_shared/DkimSigner-CiLBaXrg.js +18 -0
- package/dist/packem_shared/DraftMailMessage-CGTVuy2z.js +1 -0
- package/dist/packem_shared/EmailError-B-sEf3bp.js +1 -0
- package/dist/packem_shared/Mail-C1zp-fqt.js +1 -0
- package/dist/packem_shared/MailMessage-DQRgs5Dz.js +1 -0
- package/dist/packem_shared/MemoryEventStore-CuhfO9aj.js +1 -0
- package/dist/packem_shared/MemoryQueue-Dl1Fa6OJ.js +1 -0
- package/dist/packem_shared/MemorySuppressionStore-DZnbz-_B.js +1 -0
- package/dist/packem_shared/RATE_LIMIT_PRESETS-BPADLgcA.js +1 -0
- package/dist/packem_shared/RequiredOptionError-DuNNY_a5.js +1 -0
- package/dist/packem_shared/SmimeEncrypter-DavopRlE.js +6 -0
- package/dist/packem_shared/SmimeSigner-0onWksAv.js +8 -0
- package/dist/packem_shared/addDarkModeSupport-DZYxULjl.js +1 -0
- package/dist/packem_shared/address-formatter-BWR2Dddx.js +1 -0
- package/dist/packem_shared/aggregate-features-BqEjPd42.js +1 -0
- package/dist/packem_shared/ahaSendProvider-D81_wUA1.js +1 -0
- package/dist/packem_shared/arcMessageSignatureBase-DDLEHW2E.js +17 -0
- package/dist/packem_shared/attachment-processor-CMp7qqMI.js +1 -0
- package/dist/packem_shared/awsSesProvider-BGZJUIep.js +32 -0
- package/dist/packem_shared/azureProvider-CmcK4bsf.js +1 -0
- package/dist/packem_shared/brevoProvider-C1BDXr41.js +1 -0
- package/dist/packem_shared/build-mime-message-B6927SQy.js +3 -0
- package/dist/packem_shared/buildListUnsubscribe-Cdr8MvR_.js +1 -0
- package/dist/packem_shared/buildMtaStsPolicy-oEQg8y_C.js +6 -0
- package/dist/packem_shared/circuitBreakerMiddleware-D2SA_07f.js +1 -0
- package/dist/packem_shared/cloudflareEmailProvider-Bv-ty-74.js +1 -0
- package/dist/packem_shared/composeMiddleware-BHwLLEzK.js +1 -0
- package/dist/packem_shared/create-logger-BQTS3f-I.js +1 -0
- package/dist/packem_shared/createSuppressionStore-CeAZKCbY.js +1 -0
- package/dist/packem_shared/createTestEmail-D3XPGiHY.js +1 -0
- package/dist/packem_shared/createWorker-_-yMWcNQ.js +1 -0
- package/dist/packem_shared/dedupeMiddleware-B6ajWOTi.js +1 -0
- package/dist/packem_shared/defineInboundHandler-CnL2BzlL.js +1 -0
- package/dist/packem_shared/defineProvider-C9q-7iwt.js +1 -0
- package/dist/packem_shared/detectMimeType-DFH3kp6K.js +1 -0
- package/dist/packem_shared/emailMatchers-DZDkrZ_3.js +1 -0
- package/dist/packem_shared/event-bus.d-DEl3w_EW.d.ts +104 -0
- package/dist/packem_shared/extractCidReferences-BuoTREMp.js +1 -0
- package/dist/packem_shared/extractReply-BUjIBt9A.js +5 -0
- package/dist/packem_shared/failoverProvider-BgX6zfnY.js +1 -0
- package/dist/packem_shared/format-address-DTl-9O70.js +1 -0
- package/dist/packem_shared/generate-boundary-DQbzDiOI.js +1 -0
- package/dist/packem_shared/generate-message-id-gXAuMz4g.js +1 -0
- package/dist/packem_shared/headers-to-record-De1Eg951.js +1 -0
- package/dist/packem_shared/httpProvider-DJAsYSun.js +1 -0
- package/dist/packem_shared/index-BoZvzveg.js +11 -0
- package/dist/packem_shared/infobipProvider-lHyGrXgZ.js +1 -0
- package/dist/packem_shared/injectPreheader-CF9WHZ7J.js +1 -0
- package/dist/packem_shared/inlineCss-BQ7d2Cyz.js +1 -0
- package/dist/packem_shared/isValidSigningCertUrl-Bii1AMGC.js +3 -0
- package/dist/packem_shared/loggingMiddleware-CZIiVMVp.js +1 -0
- package/dist/packem_shared/loopsProvider-DyloxzNC.js +1 -0
- package/dist/packem_shared/mail.d-B9SSqyy0.d.ts +909 -0
- package/dist/packem_shared/{mailCrabProvider-CM_CFDca.js → mailCrabProvider-CPtBT6Th.js} +1 -1
- package/dist/packem_shared/mailPaceProvider-CJEvOFBh.js +1 -0
- package/dist/packem_shared/mailchannelsProvider-osRkW_tz.js +1 -0
- package/dist/packem_shared/mailerSendProvider-C_6LzARK.js +1 -0
- package/dist/packem_shared/mailgunProvider-DkISvMPe.js +1 -0
- package/dist/packem_shared/mailjetProvider-CV0i4Xzh.js +1 -0
- package/dist/packem_shared/mailomatProvider-B5YFonEO.js +1 -0
- package/dist/packem_shared/mailtrapProvider-C4ZquIPz.js +1 -0
- package/dist/packem_shared/make-request-BlK_B72c.js +1 -0
- package/dist/packem_shared/mandrillProvider-DWPFh_Sj.js +1 -0
- package/dist/packem_shared/mockProvider-Behywbl1.js +1 -0
- package/dist/packem_shared/netcoreProvider-C5TEciaN.js +1 -0
- package/dist/packem_shared/nodemailerProvider-BFHobXxt.js +1 -0
- package/dist/packem_shared/normalizeMessageId-DAx2pGe2.js +1 -0
- package/dist/packem_shared/oauth2Middleware-CodqXkyj.js +1 -0
- package/dist/packem_shared/opentelemetryProvider-ByHC01ub.js +1 -0
- package/dist/packem_shared/outlook365Provider-63ggDpqV.js +1 -0
- package/dist/packem_shared/parseAddress-DdbViBAJ.js +1 -0
- package/dist/packem_shared/parseArfReport-Ds6S3c4J.js +6 -0
- package/dist/packem_shared/parseCloudflareInbound-C__j-oNa.js +1 -0
- package/dist/packem_shared/parseDmarcRecord-DXZ-_rF0.js +1 -0
- package/dist/packem_shared/parseMailgunInbound-BpC6uPNe.js +1 -0
- package/dist/packem_shared/parsePostmarkInbound-Co3_c6-9.js +1 -0
- package/dist/packem_shared/parseSendGridInbound-DsALoijO.js +4 -0
- package/dist/packem_shared/parseSesInbound-CH5tHIjp.js +1 -0
- package/dist/packem_shared/parseTlsReport-wPe1lIDs.js +1 -0
- package/dist/packem_shared/plunkProvider-yTlrJVEp.js +1 -0
- package/dist/packem_shared/postProcessHtml-DqKi2Ucg.js +1 -0
- package/dist/packem_shared/postalProvider-CRX_bMYD.js +1 -0
- package/dist/packem_shared/postmarkProvider-CDx85Yge.js +1 -0
- package/dist/packem_shared/provider-base-C7PuopYK.js +1 -0
- package/dist/packem_shared/provider.d-J-y6iogK.d.ts +28 -0
- package/dist/packem_shared/quoted-printable-nSGDA1tA.js +7 -0
- package/dist/packem_shared/resendProvider-CiclWxzr.js +1 -0
- package/dist/packem_shared/retry-3pnxTuNs.js +1 -0
- package/dist/packem_shared/retryMiddleware-DbViDX4r.js +1 -0
- package/dist/packem_shared/roundRobinProvider-D1by5KGW.js +1 -0
- package/dist/packem_shared/sanitize-header-DJhgZl3y.js +1 -0
- package/dist/packem_shared/scalewayProvider-BcND48qO.js +1 -0
- package/dist/packem_shared/sendGridProvider-D8ZLgY62.js +1 -0
- package/dist/packem_shared/smtpProvider-Bm0yP97W.js +25 -0
- package/dist/packem_shared/sparkpostProvider-CTYfSRaV.js +1 -0
- package/dist/packem_shared/sweegoProvider-DOoin_vi.js +1 -0
- package/dist/packem_shared/toEmailSnapshot-DeRqM5SJ.js +1 -0
- package/dist/packem_shared/tracer.d-MU42G1jG.d.ts +494 -0
- package/dist/packem_shared/types.d-BId55FW2.d.ts +107 -0
- package/dist/packem_shared/types.d-CmoWvdZi.d.ts +61 -0
- package/dist/packem_shared/types.d-DCkecJse.d.ts +51 -0
- package/dist/packem_shared/types.d-Mpu0HZoG.d.ts +24 -0
- package/dist/packem_shared/types.d-ejzh-xBP.d.ts +209 -0
- package/dist/packem_shared/types.d-lcJZmwRK.d.ts +69 -0
- package/dist/packem_shared/types.d-nyR1ty1Q.d.ts +9 -0
- package/dist/packem_shared/utils-BfYfPB_I.js +1 -0
- package/dist/packem_shared/validate-email-options-mCM9dVug.js +1 -0
- package/dist/packem_shared/verifyMailgunWebhook-Cwl0OD3P.js +1 -0
- package/dist/packem_shared/verifyPostmarkWebhook-C72ZvbrG.js +1 -0
- package/dist/packem_shared/verifyResendWebhook-YK2zNDXR.js +1 -0
- package/dist/packem_shared/verifySendGridWebhook-Dbwc1tfG.js +1 -0
- package/dist/packem_shared/withEvents-CCVblSqj.js +1 -0
- package/dist/packem_shared/withMetrics-DWywX_6M.js +1 -0
- package/dist/packem_shared/withRender-VP9wE5Yr.js +1 -0
- package/dist/packem_shared/withSuppression-DBaZDMAr.js +1 -0
- package/dist/packem_shared/withTelemetry-DL2qo0Hp.js +1 -0
- package/dist/packem_shared/zeptomailProvider-DKBPSHPj.js +1 -0
- package/dist/providers/ahasend/index.d.ts +36 -3
- package/dist/providers/ahasend/index.js +1 -1
- package/dist/providers/aws-ses/index.d.ts +47 -3
- package/dist/providers/aws-ses/index.js +1 -1
- package/dist/providers/azure/index.d.ts +52 -3
- package/dist/providers/azure/index.js +1 -1
- package/dist/providers/brevo/index.d.ts +65 -3
- package/dist/providers/brevo/index.js +1 -1
- package/dist/providers/cloudflare-email/index.d.ts +36 -0
- package/dist/providers/cloudflare-email/index.js +1 -0
- package/dist/providers/failover/index.d.ts +27 -3
- package/dist/providers/failover/index.js +1 -1
- package/dist/providers/http/index.d.ts +35 -3
- package/dist/providers/http/index.js +1 -1
- package/dist/providers/infobip/index.d.ts +56 -3
- package/dist/providers/infobip/index.js +1 -1
- package/dist/providers/loops/index.d.ts +47 -0
- package/dist/providers/loops/index.js +1 -0
- package/dist/providers/mailchannels/index.d.ts +26 -0
- package/dist/providers/mailchannels/index.js +1 -0
- package/dist/providers/mailcrab/index.d.ts +32 -3
- package/dist/providers/mailcrab/index.js +1 -1
- package/dist/providers/mailersend/index.d.ts +51 -3
- package/dist/providers/mailersend/index.js +1 -1
- package/dist/providers/mailgun/index.d.ts +73 -3
- package/dist/providers/mailgun/index.js +1 -1
- package/dist/providers/mailjet/index.d.ts +72 -3
- package/dist/providers/mailjet/index.js +1 -1
- package/dist/providers/mailomat/index.d.ts +40 -3
- package/dist/providers/mailomat/index.js +1 -1
- package/dist/providers/mailpace/index.d.ts +52 -3
- package/dist/providers/mailpace/index.js +1 -1
- package/dist/providers/mailtrap/index.d.ts +44 -3
- package/dist/providers/mailtrap/index.js +1 -1
- package/dist/providers/mandrill/index.d.ts +87 -3
- package/dist/providers/mandrill/index.js +1 -1
- package/dist/providers/mock/index.d.ts +12 -3
- package/dist/providers/mock/index.js +1 -1
- package/dist/providers/netcore/index.d.ts +35 -0
- package/dist/providers/netcore/index.js +1 -0
- package/dist/providers/nodemailer/index.d.ts +38 -3
- package/dist/providers/nodemailer/index.js +1 -1
- package/dist/providers/opentelemetry/index.d.ts +37 -3
- package/dist/providers/opentelemetry/index.js +1 -1
- package/dist/providers/outlook365/index.d.ts +48 -0
- package/dist/providers/outlook365/index.js +1 -0
- package/dist/providers/plunk/index.d.ts +38 -3
- package/dist/providers/plunk/index.js +1 -1
- package/dist/providers/postal/index.d.ts +48 -3
- package/dist/providers/postal/index.js +1 -1
- package/dist/providers/postmark/index.d.ts +60 -3
- package/dist/providers/postmark/index.js +1 -1
- package/dist/providers/resend/index.d.ts +51 -3
- package/dist/providers/resend/index.js +1 -1
- package/dist/providers/roundrobin/index.d.ts +27 -3
- package/dist/providers/roundrobin/index.js +1 -1
- package/dist/providers/scaleway/index.d.ts +44 -3
- package/dist/providers/scaleway/index.js +1 -1
- package/dist/providers/sendgrid/index.d.ts +84 -3
- package/dist/providers/sendgrid/index.js +1 -1
- package/dist/providers/smtp/index.d.ts +71 -3
- package/dist/providers/smtp/index.js +1 -1
- package/dist/providers/sparkpost/index.d.ts +43 -0
- package/dist/providers/sparkpost/index.js +1 -0
- package/dist/providers/sweego/index.d.ts +40 -3
- package/dist/providers/sweego/index.js +1 -1
- package/dist/providers/zeptomail/index.d.ts +37 -3
- package/dist/providers/zeptomail/index.js +1 -1
- package/dist/queue/bullmq-queue.d.ts +46 -0
- package/dist/queue/bullmq-queue.js +1 -0
- package/dist/queue/index.d.ts +147 -0
- package/dist/queue/index.js +1 -0
- package/dist/queue/pg-boss-queue.d.ts +41 -0
- package/dist/queue/pg-boss-queue.js +1 -0
- package/dist/queue/sqs-queue.d.ts +72 -0
- package/dist/queue/sqs-queue.js +1 -0
- package/dist/queue/unstorage-queue.d.ts +199 -0
- package/dist/queue/unstorage-queue.js +1 -0
- package/dist/render/index.d.ts +107 -0
- package/dist/render/index.js +1 -0
- package/dist/template-engines/handlebars.d.ts +23 -22
- package/dist/template-engines/handlebars.js +1 -1
- package/dist/template-engines/html-to-text.d.ts +24 -24
- package/dist/template-engines/html-to-text.js +1 -1
- package/dist/template-engines/i18n.d.ts +61 -0
- package/dist/template-engines/i18n.js +1 -0
- package/dist/template-engines/jsx-email.d.ts +11 -0
- package/dist/template-engines/jsx-email.js +1 -0
- package/dist/template-engines/liquid.d.ts +12 -0
- package/dist/template-engines/liquid.js +1 -0
- package/dist/template-engines/mjml.d.ts +10 -10
- package/dist/template-engines/mjml.js +1 -1
- package/dist/template-engines/react-email.d.ts +9 -9
- package/dist/template-engines/react-email.js +1 -1
- package/dist/template-engines/vue-email.d.ts +9 -9
- package/dist/template-engines/vue-email.js +1 -1
- package/dist/test/index.d.ts +155 -0
- package/dist/test/index.js +1 -0
- package/dist/utils/cache.d.ts +49 -48
- package/dist/utils/cache.js +1 -1
- package/dist/utils/format-email-address.d.ts +8 -7
- package/dist/utils/format-email-address.js +1 -1
- package/dist/utils/normalize-email-aliases.d.ts +20 -20
- package/dist/utils/normalize-email-aliases.js +1 -1
- package/dist/utils/parse-address.d.ts +18 -17
- package/dist/utils/parse-address.js +1 -1
- package/dist/utils/parse-eml.d.ts +22 -0
- package/dist/utils/parse-eml.js +6 -0
- package/dist/utils/result.d.ts +49 -0
- package/dist/utils/result.js +1 -0
- package/dist/utils/validation/check-feature-support.d.ts +53 -0
- package/dist/utils/validation/check-feature-support.js +1 -0
- package/dist/utils/validation/validate-email.d.ts +5 -5
- package/dist/utils/validation/validate-email.js +1 -1
- package/dist/webhooks/index.d.ts +231 -0
- package/dist/webhooks/index.js +1 -0
- package/package.json +191 -81
- package/dist/attachment-helpers.d.ts +0 -64
- package/dist/crypto/dkim-signer.d.ts +0 -48
- package/dist/crypto/smime-encrypter.d.ts +0 -53
- package/dist/crypto/smime-signer.d.ts +0 -48
- package/dist/crypto/types.d.ts +0 -101
- package/dist/draft-mail-message.d.ts +0 -13
- package/dist/errors/email-error.d.ts +0 -17
- package/dist/errors/required-option-error.d.ts +0 -10
- package/dist/mail-message.d.ts +0 -425
- package/dist/mail.d.ts +0 -206
- package/dist/packem_shared/DkimSigner-pFd4c3fZ.js +0 -18
- package/dist/packem_shared/EmailError-zm2ffVav.js +0 -1
- package/dist/packem_shared/Mail-6Bltpy_p.js +0 -1
- package/dist/packem_shared/MailMessage-B76GPBBA.js +0 -1
- package/dist/packem_shared/RequiredOptionError-CevW3u2K.js +0 -1
- package/dist/packem_shared/SmimeEncrypter-CBevU534.js +0 -6
- package/dist/packem_shared/SmimeSigner-CObA4jzT.js +0 -8
- package/dist/packem_shared/address-formatter-Cm_E_ZMa.js +0 -1
- package/dist/packem_shared/ahaSendProvider-DlFKEQ6D.js +0 -1
- package/dist/packem_shared/attachment-processor-2rHmfa7j.js +0 -1
- package/dist/packem_shared/awsSesProvider-Ba-eVJxZ.js +0 -32
- package/dist/packem_shared/azureProvider-CQYAkgVF.js +0 -1
- package/dist/packem_shared/brevoProvider-5p6jjiK9.js +0 -1
- package/dist/packem_shared/build-mime-message-IYaUqqPJ.js +0 -2
- package/dist/packem_shared/create-logger-BiWdqFNg.js +0 -1
- package/dist/packem_shared/defineProvider-B9rSklAJ.js +0 -1
- package/dist/packem_shared/detectMimeType-S8WRsNtY.js +0 -1
- package/dist/packem_shared/failoverProvider-CAHQQueo.js +0 -1
- package/dist/packem_shared/generate-boundary-Cx8nXYS0.js +0 -1
- package/dist/packem_shared/generate-message-id-D4uA8gkj.js +0 -1
- package/dist/packem_shared/headers-to-record-Qo124ImV.js +0 -1
- package/dist/packem_shared/httpProvider-CZD6LZX3.js +0 -1
- package/dist/packem_shared/infobipProvider-CtLwrUaP.js +0 -1
- package/dist/packem_shared/mailPaceProvider-B6yKvh6z.js +0 -1
- package/dist/packem_shared/mailerSendProvider-CeeIXFnW.js +0 -1
- package/dist/packem_shared/mailgunProvider-mmjKzouh.js +0 -1
- package/dist/packem_shared/mailjetProvider-DwN6i0VA.js +0 -1
- package/dist/packem_shared/mailomatProvider-DMQmjKHT.js +0 -1
- package/dist/packem_shared/mailtrapProvider-BN3UBEQw.js +0 -1
- package/dist/packem_shared/make-request-BDzF9W9D.js +0 -1
- package/dist/packem_shared/mandrillProvider-370y7CLu.js +0 -1
- package/dist/packem_shared/mockProvider-DN5ZwutD.js +0 -1
- package/dist/packem_shared/nodemailerProvider-_w8QXMU-.js +0 -1
- package/dist/packem_shared/opentelemetryProvider-C_ZXOLSd.js +0 -1
- package/dist/packem_shared/plunkProvider-DfJumQ4U.js +0 -1
- package/dist/packem_shared/postalProvider-Bavx2FcH.js +0 -1
- package/dist/packem_shared/postmarkProvider-DFC0uvjO.js +0 -1
- package/dist/packem_shared/provider-base-Cmzx6BTO.js +0 -1
- package/dist/packem_shared/readFile-BlZxbhCU-C8bCdiA2.js +0 -1
- package/dist/packem_shared/resendProvider-CfqU7UdE.js +0 -1
- package/dist/packem_shared/roundRobinProvider-1WQnuKR8.js +0 -1
- package/dist/packem_shared/sanitize-header-wWav-Scu.js +0 -1
- package/dist/packem_shared/scalewayProvider-be1HPimL.js +0 -1
- package/dist/packem_shared/sendGridProvider-BVI1sq3n.js +0 -1
- package/dist/packem_shared/smtpProvider-BV-ufR53.js +0 -23
- package/dist/packem_shared/sweegoProvider-7419CSAq.js +0 -1
- package/dist/packem_shared/validate-email-options-DfJ7llf8.js +0 -1
- package/dist/packem_shared/zeptomailProvider-C2lh0Xmo.js +0 -1
- package/dist/providers/ahasend/provider.d.ts +0 -7
- package/dist/providers/ahasend/types.d.ts +0 -28
- package/dist/providers/aws-ses/provider.d.ts +0 -8
- package/dist/providers/aws-ses/types.d.ts +0 -38
- package/dist/providers/azure/provider.d.ts +0 -7
- package/dist/providers/azure/types.d.ts +0 -44
- package/dist/providers/brevo/provider.d.ts +0 -7
- package/dist/providers/brevo/types.d.ts +0 -57
- package/dist/providers/failover/provider.d.ts +0 -7
- package/dist/providers/failover/types.d.ts +0 -19
- package/dist/providers/http/provider.d.ts +0 -7
- package/dist/providers/http/types.d.ts +0 -27
- package/dist/providers/infobip/provider.d.ts +0 -7
- package/dist/providers/infobip/types.d.ts +0 -48
- package/dist/providers/mailcrab/provider.d.ts +0 -9
- package/dist/providers/mailcrab/types.d.ts +0 -22
- package/dist/providers/mailersend/provider.d.ts +0 -7
- package/dist/providers/mailersend/types.d.ts +0 -43
- package/dist/providers/mailgun/provider.d.ts +0 -7
- package/dist/providers/mailgun/types.d.ts +0 -65
- package/dist/providers/mailjet/provider.d.ts +0 -7
- package/dist/providers/mailjet/types.d.ts +0 -64
- package/dist/providers/mailomat/provider.d.ts +0 -7
- package/dist/providers/mailomat/types.d.ts +0 -32
- package/dist/providers/mailpace/provider.d.ts +0 -7
- package/dist/providers/mailpace/types.d.ts +0 -44
- package/dist/providers/mailtrap/provider.d.ts +0 -7
- package/dist/providers/mailtrap/types.d.ts +0 -36
- package/dist/providers/mandrill/provider.d.ts +0 -7
- package/dist/providers/mandrill/types.d.ts +0 -79
- package/dist/providers/mock/provider.d.ts +0 -8
- package/dist/providers/mock/types.d.ts +0 -50
- package/dist/providers/nodemailer/provider.d.ts +0 -7
- package/dist/providers/nodemailer/types.d.ts +0 -30
- package/dist/providers/opentelemetry/provider.d.ts +0 -8
- package/dist/providers/opentelemetry/types.d.ts +0 -31
- package/dist/providers/plunk/provider.d.ts +0 -7
- package/dist/providers/plunk/types.d.ts +0 -30
- package/dist/providers/postal/provider.d.ts +0 -7
- package/dist/providers/postal/types.d.ts +0 -40
- package/dist/providers/postmark/provider.d.ts +0 -7
- package/dist/providers/postmark/types.d.ts +0 -52
- package/dist/providers/provider.d.ts +0 -27
- package/dist/providers/resend/provider.d.ts +0 -7
- package/dist/providers/resend/types.d.ts +0 -43
- package/dist/providers/roundrobin/provider.d.ts +0 -7
- package/dist/providers/roundrobin/types.d.ts +0 -19
- package/dist/providers/scaleway/provider.d.ts +0 -7
- package/dist/providers/scaleway/types.d.ts +0 -36
- package/dist/providers/sendgrid/provider.d.ts +0 -7
- package/dist/providers/sendgrid/types.d.ts +0 -76
- package/dist/providers/smtp/provider.d.ts +0 -7
- package/dist/providers/smtp/types.d.ts +0 -63
- package/dist/providers/sweego/provider.d.ts +0 -7
- package/dist/providers/sweego/types.d.ts +0 -32
- package/dist/providers/utils/address-formatter.d.ts +0 -139
- package/dist/providers/utils/attachment-processor.d.ts +0 -58
- package/dist/providers/utils/index.d.ts +0 -4
- package/dist/providers/utils/payload-builder.d.ts +0 -78
- package/dist/providers/utils/provider-base.d.ts +0 -69
- package/dist/providers/zeptomail/provider.d.ts +0 -7
- package/dist/providers/zeptomail/types.d.ts +0 -29
- package/dist/template-engines/types.d.ts +0 -8
- package/dist/types.d.ts +0 -203
- package/dist/utils/build-mime-message.d.ts +0 -8
- package/dist/utils/create-logger.d.ts +0 -16
- package/dist/utils/format-email-addresses.d.ts +0 -8
- package/dist/utils/generate-boundary.d.ts +0 -7
- package/dist/utils/generate-message-id.d.ts +0 -6
- package/dist/utils/headers-to-record.d.ts +0 -9
- package/dist/utils/is-port-available.d.ts +0 -9
- package/dist/utils/make-request.d.ts +0 -18
- package/dist/utils/retry.d.ts +0 -10
- package/dist/utils/sanitize-header.d.ts +0 -14
- package/dist/utils/to-base64.d.ts +0 -8
- package/dist/utils/validation/check-mx-records.d.ts +0 -42
- package/dist/utils/validation/check-mx-records.js +0 -1
- package/dist/utils/validation/disposable-email-domains.d.ts +0 -13
- package/dist/utils/validation/disposable-email-domains.js +0 -1
- package/dist/utils/validation/role-accounts.d.ts +0 -21
- package/dist/utils/validation/role-accounts.js +0 -1
- package/dist/utils/validation/validate-email-options.d.ts +0 -8
- package/dist/utils/validation/verify-email.d.ts +0 -47
- package/dist/utils/validation/verify-email.js +0 -1
- package/dist/utils/validation/verify-smtp.d.ts +0 -39
- package/dist/utils/validation/verify-smtp.js +0 -4
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Mandrill configuration
|
|
7
|
+
*/
|
|
8
|
+
interface MandrillConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Mandrill API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Mandrill API endpoint
|
|
15
|
+
* Defaults to: https://mandrillapp.com/api/1.0
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mandrill-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface MandrillEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Global merge variables
|
|
25
|
+
*/
|
|
26
|
+
globalMergeVars?: {
|
|
27
|
+
content: unknown;
|
|
28
|
+
name: string;
|
|
29
|
+
}[];
|
|
30
|
+
/**
|
|
31
|
+
* Google Analytics campaign
|
|
32
|
+
*/
|
|
33
|
+
googleAnalyticsCampaign?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Google Analytics domains
|
|
36
|
+
*/
|
|
37
|
+
googleAnalyticsDomains?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Per-recipient merge variables
|
|
40
|
+
*/
|
|
41
|
+
mergeVars?: {
|
|
42
|
+
rcpt: string;
|
|
43
|
+
vars: {
|
|
44
|
+
content: unknown;
|
|
45
|
+
name: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
/**
|
|
49
|
+
* Metadata (key-value pairs)
|
|
50
|
+
*/
|
|
51
|
+
metadata?: Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Send at timestamp (ISO 8601 format)
|
|
54
|
+
*/
|
|
55
|
+
sendAt?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Subaccount ID
|
|
58
|
+
*/
|
|
59
|
+
subaccount?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Tags for categorization
|
|
62
|
+
*/
|
|
63
|
+
tags?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Template content (for template-based emails)
|
|
66
|
+
*/
|
|
67
|
+
templateContent?: {
|
|
68
|
+
content: string;
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
/**
|
|
72
|
+
* Mandrill template name
|
|
73
|
+
*/
|
|
74
|
+
templateName?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Template variables (merge vars)
|
|
77
|
+
*/
|
|
78
|
+
templateVariables?: {
|
|
79
|
+
content: unknown;
|
|
80
|
+
name: string;
|
|
81
|
+
}[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Mandrill Provider for sending emails through Mandrill API
|
|
85
|
+
*/
|
|
86
|
+
declare const mandrillProvider: ProviderFactory<MandrillConfig>;
|
|
87
|
+
export { type MandrillConfig, type MandrillEmailOptions, type ProviderFactory, mandrillProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as d}from"../../packem_shared/mandrillProvider-
|
|
1
|
+
import{default as d}from"../../packem_shared/mandrillProvider-DWPFh_Sj.js";export{d as mandrillProvider};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { M as MockConfig, a as MockEmailEntry } from "../../packem_shared/types.d-DCkecJse.js";
|
|
4
|
+
export type { b as MockEmailOptions, R as RandomDelayRange } from "../../packem_shared/types.d-DCkecJse.js";
|
|
5
|
+
import "../../packem_shared/types.d-ejzh-xBP.js";
|
|
6
|
+
import 'node:buffer';
|
|
7
|
+
/**
|
|
8
|
+
* Mock Provider for testing emails without actually sending them
|
|
9
|
+
* Stores emails in memory for later retrieval and inspection
|
|
10
|
+
*/
|
|
11
|
+
declare const mockProvider: ProviderFactory<MockConfig, MockEmailEntry[]>;
|
|
12
|
+
export { type MockConfig, type MockEmailEntry, type ProviderFactory, mockProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/mockProvider-
|
|
1
|
+
import{default as e}from"../../packem_shared/mockProvider-Behywbl1.js";export{e as mockProvider};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Netcore (Pepipost) configuration.
|
|
7
|
+
*/
|
|
8
|
+
interface NetcoreConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Netcore Email API key (sent as the `api_key` header).
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* API endpoint override.
|
|
15
|
+
*/
|
|
16
|
+
endpoint?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Netcore-specific email options.
|
|
20
|
+
*/
|
|
21
|
+
interface NetcoreEmailOptions extends EmailOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Variables substituted into the Netcore template.
|
|
24
|
+
*/
|
|
25
|
+
templateData?: Record<string, unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Stored template id to send instead of inline content.
|
|
28
|
+
*/
|
|
29
|
+
templateId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Netcore (Pepipost) provider — sends email through the Netcore Email API (v5.1).
|
|
33
|
+
*/
|
|
34
|
+
declare const netcoreProvider: ProviderFactory<NetcoreConfig>;
|
|
35
|
+
export { type NetcoreConfig, type NetcoreEmailOptions, type ProviderFactory, netcoreProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as o}from"../../packem_shared/netcoreProvider-C5TEciaN.js";export{o as netcoreProvider};
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { c as EmailAddress, B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Nodemailer configuration
|
|
7
|
+
* Accepts any nodemailer transport configuration
|
|
8
|
+
* Common transports: SMTP, Sendmail, SES, etc.
|
|
9
|
+
*/
|
|
10
|
+
interface NodemailerConfig extends BaseConfig {
|
|
11
|
+
/**
|
|
12
|
+
* Default from address (optional, can be overridden per email)
|
|
13
|
+
*/
|
|
14
|
+
defaultFrom?: EmailAddress;
|
|
15
|
+
/**
|
|
16
|
+
* Nodemailer transport configuration
|
|
17
|
+
* Can be a transport object or a transport name (e.g., 'smtp', 'sendmail')
|
|
18
|
+
* For SMTP: { host, port, secure, auth: { user, pass } }
|
|
19
|
+
* For Sendmail: { path: '/usr/sbin/sendmail' }
|
|
20
|
+
* For SES: { SES: { ... } }
|
|
21
|
+
* See: https://nodemailer.com/transports/
|
|
22
|
+
*/
|
|
23
|
+
transport: Record<string, unknown> | string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Nodemailer-specific email options
|
|
27
|
+
*/
|
|
28
|
+
interface NodemailerEmailOptions extends EmailOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Override transport for this specific email
|
|
31
|
+
*/
|
|
32
|
+
transportOverride?: Record<string, unknown> | string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Nodemailer Provider for sending emails via nodemailer
|
|
36
|
+
*/
|
|
37
|
+
declare const nodemailerProvider: ProviderFactory<NodemailerConfig>;
|
|
38
|
+
export { type NodemailerConfig, type NodemailerEmailOptions, type ProviderFactory, nodemailerProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"../../packem_shared/nodemailerProvider-
|
|
1
|
+
import{default as o}from"../../packem_shared/nodemailerProvider-BFHobXxt.js";export{o as nodemailerProvider};
|
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { a as Provider, P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
import { T as Tracer } from "../../packem_shared/tracer.d-MU42G1jG.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* OpenTelemetry configuration
|
|
7
|
+
*/
|
|
8
|
+
interface OpenTelemetryConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* The provider to wrap with OpenTelemetry instrumentation
|
|
11
|
+
* Can be a Provider instance or ProviderFactory function
|
|
12
|
+
*/
|
|
13
|
+
provider: Provider | ProviderFactory;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to record email content in spans (default: false)
|
|
16
|
+
* When false, only metadata is recorded
|
|
17
|
+
*/
|
|
18
|
+
recordContent?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Service name for OpenTelemetry spans (default: "email")
|
|
21
|
+
*/
|
|
22
|
+
serviceName?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional OpenTelemetry tracer instance
|
|
25
|
+
* If not provided, uses the global tracer
|
|
26
|
+
*/
|
|
27
|
+
tracer?: Tracer;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* OpenTelemetry-specific email options
|
|
31
|
+
*/
|
|
32
|
+
type OpenTelemetryEmailOptions = EmailOptions;
|
|
33
|
+
/**
|
|
34
|
+
* OpenTelemetry Provider for instrumenting email sending with OpenTelemetry traces and metrics
|
|
35
|
+
*/
|
|
36
|
+
declare const opentelemetryProvider: ProviderFactory<OpenTelemetryConfig, Provider>;
|
|
37
|
+
export { type OpenTelemetryConfig, type OpenTelemetryEmailOptions, type Provider, type ProviderFactory, opentelemetryProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"../../packem_shared/opentelemetryProvider-
|
|
1
|
+
import{default as o}from"../../packem_shared/opentelemetryProvider-ByHC01ub.js";export{o as opentelemetryProvider};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { M as MaybePromise, B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Outlook365 / Microsoft Graph configuration.
|
|
7
|
+
*
|
|
8
|
+
* Authentication is delegated: supply a static `accessToken` or an async
|
|
9
|
+
* `getAccessToken` (e.g. backed by `@azure/msal-node`). The provider never bundles an
|
|
10
|
+
* auth SDK, so it stays dependency-light and runtime-agnostic.
|
|
11
|
+
*/
|
|
12
|
+
interface Outlook365Config extends BaseConfig {
|
|
13
|
+
/**
|
|
14
|
+
* A static OAuth2 access token with the `Mail.Send` scope. Prefer
|
|
15
|
+
* {@link Outlook365Config.getAccessToken} for tokens that expire.
|
|
16
|
+
*/
|
|
17
|
+
accessToken?: string;
|
|
18
|
+
/**
|
|
19
|
+
* API endpoint override (default `https://graph.microsoft.com/v1.0`).
|
|
20
|
+
*/
|
|
21
|
+
endpoint?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a fresh OAuth2 access token with the `Mail.Send` scope.
|
|
24
|
+
*/
|
|
25
|
+
getAccessToken?: () => MaybePromise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to keep a copy in the Sent Items folder (default true).
|
|
28
|
+
*/
|
|
29
|
+
saveToSentItems?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The mailbox to send as: a user id/UPN. Defaults to `me` (the token's own mailbox).
|
|
32
|
+
*/
|
|
33
|
+
userId?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Outlook365-specific email options.
|
|
37
|
+
*/
|
|
38
|
+
interface Outlook365EmailOptions extends EmailOptions {
|
|
39
|
+
/**
|
|
40
|
+
* Message importance.
|
|
41
|
+
*/
|
|
42
|
+
importance?: "high" | "low" | "normal";
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Outlook365 provider — sends email through the Microsoft Graph `sendMail` endpoint.
|
|
46
|
+
*/
|
|
47
|
+
declare const outlook365Provider: ProviderFactory<Outlook365Config>;
|
|
48
|
+
export { type Outlook365Config, type Outlook365EmailOptions, type ProviderFactory, outlook365Provider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as e}from"../../packem_shared/outlook365Provider-63ggDpqV.js";export{e as outlook365Provider};
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Plunk configuration
|
|
7
|
+
*/
|
|
8
|
+
interface PlunkConfig extends BaseConfig {
|
|
9
|
+
apiKey: string;
|
|
10
|
+
endpoint?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Plunk-specific email options
|
|
14
|
+
*/
|
|
15
|
+
interface PlunkEmailOptions extends EmailOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Data to pass to the email template
|
|
18
|
+
*/
|
|
19
|
+
data?: Record<string, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Subscriber email (used for tracking and analytics)
|
|
22
|
+
* If not provided, uses the first 'to' address
|
|
23
|
+
*/
|
|
24
|
+
subscriber?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Subscriber ID (optional identifier for the subscriber)
|
|
27
|
+
*/
|
|
28
|
+
subscriberId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Template ID for template-based emails
|
|
31
|
+
*/
|
|
32
|
+
templateId?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Plunk Provider for sending emails through Plunk API.
|
|
36
|
+
*/
|
|
37
|
+
declare const plunkProvider: ProviderFactory<PlunkConfig>;
|
|
38
|
+
export { type PlunkConfig, type PlunkEmailOptions, type ProviderFactory, plunkProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"../../packem_shared/plunkProvider-
|
|
1
|
+
import{default as o}from"../../packem_shared/plunkProvider-yTlrJVEp.js";export{o as plunkProvider};
|
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Postal configuration
|
|
7
|
+
*/
|
|
8
|
+
interface PostalConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Postal server API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Postal API endpoint
|
|
15
|
+
* Defaults to: https://{host}/api/v1
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Postal server host
|
|
20
|
+
*/
|
|
21
|
+
host: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Postal-specific email options
|
|
25
|
+
*/
|
|
26
|
+
interface PostalEmailOptions extends EmailOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Postal message ID (for tracking)
|
|
29
|
+
*/
|
|
30
|
+
postalMessageId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Tags for categorization
|
|
33
|
+
*/
|
|
34
|
+
tags?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Postal template ID for template-based emails
|
|
37
|
+
*/
|
|
38
|
+
templateId?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Template variables for Postal templates
|
|
41
|
+
*/
|
|
42
|
+
templateVariables?: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Postal Provider for sending emails through Postal API.
|
|
46
|
+
*/
|
|
47
|
+
declare const postalProvider: ProviderFactory<PostalConfig>;
|
|
48
|
+
export { type PostalConfig, type PostalEmailOptions, type ProviderFactory, postalProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/postalProvider-
|
|
1
|
+
import{default as a}from"../../packem_shared/postalProvider-CRX_bMYD.js";export{a as postalProvider};
|
|
@@ -1,3 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Postmark configuration
|
|
7
|
+
*/
|
|
8
|
+
interface PostmarkConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Postmark API endpoint
|
|
11
|
+
* Defaults to: https://api.postmarkapp.com
|
|
12
|
+
*/
|
|
13
|
+
endpoint?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Postmark Server API Token
|
|
16
|
+
*/
|
|
17
|
+
serverToken: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Postmark-specific email options
|
|
21
|
+
*/
|
|
22
|
+
interface PostmarkEmailOptions extends EmailOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Inline CSS for HTML emails
|
|
25
|
+
*/
|
|
26
|
+
inlineCss?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Message stream ID
|
|
29
|
+
*/
|
|
30
|
+
messageStream?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Metadata (key-value pairs)
|
|
33
|
+
*/
|
|
34
|
+
metadata?: Record<string, string>;
|
|
35
|
+
/**
|
|
36
|
+
* Postmark template alias (alternative to templateId)
|
|
37
|
+
*/
|
|
38
|
+
templateAlias?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Postmark template ID for template-based emails
|
|
41
|
+
*/
|
|
42
|
+
templateId?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Template model/variables for Postmark templates
|
|
45
|
+
*/
|
|
46
|
+
templateModel?: Record<string, unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Track links
|
|
49
|
+
*/
|
|
50
|
+
trackLinks?: "HtmlAndText" | "HtmlOnly" | "TextOnly" | "None";
|
|
51
|
+
/**
|
|
52
|
+
* Track opens
|
|
53
|
+
*/
|
|
54
|
+
trackOpens?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Postmark Provider for sending emails through Postmark API.
|
|
58
|
+
*/
|
|
59
|
+
declare const postmarkProvider: ProviderFactory<PostmarkConfig>;
|
|
60
|
+
export { type PostmarkConfig, type PostmarkEmailOptions, type ProviderFactory, postmarkProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/postmarkProvider-
|
|
1
|
+
import{default as a}from"../../packem_shared/postmarkProvider-CDx85Yge.js";export{a as postmarkProvider};
|
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions, d as EmailTag } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Resend configuration
|
|
7
|
+
*/
|
|
8
|
+
interface ResendConfig extends BaseConfig {
|
|
9
|
+
apiKey: string;
|
|
10
|
+
endpoint?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Resend-specific email tag type with additional constraints
|
|
14
|
+
*/
|
|
15
|
+
interface ResendEmailTag extends EmailTag {
|
|
16
|
+
/**
|
|
17
|
+
* Tag name - must only contain ASCII letters, numbers, underscores, or dashes
|
|
18
|
+
* Max length: 256 characters
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Tag value - must only contain ASCII letters, numbers, underscores, or dashes
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Resend-specific email options
|
|
28
|
+
*/
|
|
29
|
+
interface ResendEmailOptions extends Omit<EmailOptions, "tags"> {
|
|
30
|
+
/**
|
|
31
|
+
* Schedule email for delivery at a specific time
|
|
32
|
+
*/
|
|
33
|
+
scheduledAt?: Date | string;
|
|
34
|
+
/**
|
|
35
|
+
* Tags for categorizing emails
|
|
36
|
+
*/
|
|
37
|
+
tags?: ResendEmailTag[];
|
|
38
|
+
/**
|
|
39
|
+
* Template data for template-based emails
|
|
40
|
+
*/
|
|
41
|
+
templateData?: Record<string, unknown>;
|
|
42
|
+
/**
|
|
43
|
+
* Template ID for template-based emails
|
|
44
|
+
*/
|
|
45
|
+
templateId?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Resend Provider for sending emails through Resend API.
|
|
49
|
+
*/
|
|
50
|
+
declare const resendProvider: ProviderFactory<ResendConfig, unknown, ResendEmailOptions>;
|
|
51
|
+
export { type ProviderFactory, type ResendConfig, type ResendEmailOptions, type ResendEmailTag, resendProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as d}from"../../packem_shared/resendProvider-
|
|
1
|
+
import{default as d}from"../../packem_shared/resendProvider-CiclWxzr.js";export{d as resendProvider};
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Round Robin configuration
|
|
7
|
+
*/
|
|
8
|
+
interface RoundRobinConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Array of provider instances or provider factories to use for round-robin distribution
|
|
11
|
+
* Can be Provider instances or ProviderFactory functions
|
|
12
|
+
*/
|
|
13
|
+
mailers: unknown[];
|
|
14
|
+
/**
|
|
15
|
+
* Time in milliseconds to wait before retrying with next provider if current is unavailable (default: 60)
|
|
16
|
+
*/
|
|
17
|
+
retryAfter?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Round Robin-specific email options
|
|
21
|
+
*/
|
|
22
|
+
type RoundRobinEmailOptions = EmailOptions;
|
|
23
|
+
/**
|
|
24
|
+
* Round Robin Provider for distributing email sending across multiple providers
|
|
25
|
+
*/
|
|
26
|
+
declare const roundRobinProvider: ProviderFactory<RoundRobinConfig>;
|
|
27
|
+
export { type ProviderFactory, type RoundRobinConfig, type RoundRobinEmailOptions, roundRobinProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as d}from"../../packem_shared/roundRobinProvider-
|
|
1
|
+
import{default as d}from"../../packem_shared/roundRobinProvider-D1by5KGW.js";export{d as roundRobinProvider};
|
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-J-y6iogK.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-ejzh-xBP.js";
|
|
4
|
+
import 'node:buffer';
|
|
5
|
+
/**
|
|
6
|
+
* Scaleway configuration
|
|
7
|
+
*/
|
|
8
|
+
interface ScalewayConfig extends BaseConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Scaleway API key
|
|
11
|
+
*/
|
|
12
|
+
apiKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* Scaleway API endpoint
|
|
15
|
+
* Defaults to: https://api.scaleway.com/transactional-email/v1alpha1
|
|
16
|
+
*/
|
|
17
|
+
endpoint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Scaleway region (e.g., "fr-par", "nl-ams")
|
|
20
|
+
*/
|
|
21
|
+
region: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Scaleway-specific email options
|
|
25
|
+
*/
|
|
26
|
+
interface ScalewayEmailOptions extends EmailOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Project ID (optional)
|
|
29
|
+
*/
|
|
30
|
+
projectId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Scaleway template ID for template-based emails
|
|
33
|
+
*/
|
|
34
|
+
templateId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Template variables for Scaleway templates
|
|
37
|
+
*/
|
|
38
|
+
templateVariables?: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Scaleway Provider for sending emails through Scaleway API
|
|
42
|
+
*/
|
|
43
|
+
declare const scalewayProvider: ProviderFactory<ScalewayConfig>;
|
|
44
|
+
export { type ProviderFactory, type ScalewayConfig, type ScalewayEmailOptions, scalewayProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"../../packem_shared/scalewayProvider-
|
|
1
|
+
import{default as r}from"../../packem_shared/scalewayProvider-BcND48qO.js";export{r as scalewayProvider};
|