@visulima/email 2.1.6 → 2.1.7
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 +7 -0
- package/dist/crypto/index.d.ts +183 -183
- package/dist/crypto/index.js +1 -1
- package/dist/deliverability/dmarc-report.d.ts +43 -43
- package/dist/deliverability/dmarc-report.js +1 -1
- package/dist/deliverability/index.d.ts +201 -201
- package/dist/events/index.d.ts +17 -17
- package/dist/inbound/index.d.ts +180 -180
- package/dist/index.d.ts +35 -46
- package/dist/index.js +1 -1
- package/dist/middleware/index.d.ts +213 -216
- package/dist/middleware/index.js +1 -1
- package/dist/packem_shared/{DkimSigner-CiLBaXrg.js → DkimSigner-sLcIw9bp.js} +6 -6
- package/dist/packem_shared/{DraftMailMessage-CGTVuy2z.js → DraftMailMessage-C3YTXqWo.js} +1 -1
- package/dist/packem_shared/EmailError-CDvYwuqz.js +1 -0
- package/dist/packem_shared/{Mail-CYAwMRnX.js → Mail-CIyxkmxu.js} +1 -1
- package/dist/packem_shared/MailMessage-DuEXJiCg.js +1 -0
- package/dist/packem_shared/{RequiredOptionError-DuNNY_a5.js → RequiredOptionError-DU2lxzk3.js} +1 -1
- package/dist/packem_shared/SmimeEncrypter-CzTbQM-z.js +6 -0
- package/dist/packem_shared/SmimeSigner-DjLShaOw.js +8 -0
- package/dist/packem_shared/{ahaSendProvider-DSuZIzaQ.js → ahaSendProvider-br1yB2un.js} +1 -1
- package/dist/packem_shared/arcMessageSignatureBase-D54jQIWu.js +17 -0
- package/dist/packem_shared/attachment-processor-D1cbAhQi.js +1 -0
- package/dist/packem_shared/{autoSendProvider-DqAoelWR.js → autoSendProvider-BSP8ueOC.js} +1 -1
- package/dist/packem_shared/{awsSesProvider-ClK1FUln.js → awsSesProvider-zRICW1pH.js} +13 -13
- package/dist/packem_shared/azureProvider-DwN4c5dC.js +1 -0
- package/dist/packem_shared/{brevoProvider-CIzuIDlt.js → brevoProvider-C491beE_.js} +1 -1
- package/dist/packem_shared/{build-mime-message-BW5FQ2Bt.js → build-mime-message-DT67qfMp.js} +1 -1
- package/dist/packem_shared/{circuitBreakerMiddleware-D2SA_07f.js → circuitBreakerMiddleware-N0CKF90q.js} +1 -1
- package/dist/packem_shared/{cloudflareEmailProvider-B8mOEl3N.js → cloudflareEmailProvider-8JxzLbpX.js} +1 -1
- package/dist/packem_shared/{createTestEmail-f12yLlWn.js → createTestEmail-D_ksEez3.js} +1 -1
- package/dist/packem_shared/dedupeMiddleware-CYYI_O7S.js +1 -0
- package/dist/packem_shared/{detectMimeType-DFH3kp6K.js → detectMimeType-CmYmWDXE.js} +1 -1
- package/dist/packem_shared/event-bus.d-BNQA-FZE.d.ts +104 -0
- package/dist/packem_shared/{failoverProvider-BgX6zfnY.js → failoverProvider-6qwE_HSJ.js} +1 -1
- package/dist/packem_shared/generate-boundary-0xGe9GqK.js +1 -0
- package/dist/packem_shared/{httpProvider-aBfTXyCT.js → httpProvider-BqrdZhGw.js} +1 -1
- package/dist/packem_shared/index-Gd7m-UQA.js +11 -0
- package/dist/packem_shared/{infobipProvider-DxzsONUX.js → infobipProvider-C2FU6VMP.js} +1 -1
- package/dist/packem_shared/isValidSigningCertUrl-DNxPA0Q-.js +3 -0
- package/dist/packem_shared/{loopsProvider-QBsAH6Ee.js → loopsProvider-Bz63so6m.js} +1 -1
- package/dist/packem_shared/mail.d-xKtvoKMK.d.ts +909 -0
- package/dist/packem_shared/{mailCrabProvider-DRE5snM9.js → mailCrabProvider-bkQy-2a1.js} +1 -1
- package/dist/packem_shared/{mailPaceProvider-DCa-4ghl.js → mailPaceProvider-S1AB-AYq.js} +1 -1
- package/dist/packem_shared/{mailchannelsProvider-GiwkYBdD.js → mailchannelsProvider-B_K6X4VY.js} +1 -1
- package/dist/packem_shared/{mailerSendProvider-RK6IbUrL.js → mailerSendProvider-DPEww2H1.js} +1 -1
- package/dist/packem_shared/mailgunProvider-DKxzVbDW.js +1 -0
- package/dist/packem_shared/mailjetProvider-C2TQcujL.js +1 -0
- package/dist/packem_shared/{mailomatProvider-DPDpVS8r.js → mailomatProvider-B8-5bQsu.js} +1 -1
- package/dist/packem_shared/{mailtrapProvider-DtrS4Q34.js → mailtrapProvider-DW7TLOdG.js} +1 -1
- package/dist/packem_shared/{make-request-B9XjBynA.js → make-request-CylyuRaN.js} +1 -1
- package/dist/packem_shared/{mandrillProvider-B84zH-eV.js → mandrillProvider-S-0lKNGd.js} +1 -1
- package/dist/packem_shared/{mockProvider-Behywbl1.js → mockProvider-BAl292mW.js} +1 -1
- package/dist/packem_shared/{netcoreProvider-D-wtCyJj.js → netcoreProvider-DajMprlo.js} +1 -1
- package/dist/packem_shared/{nodemailerProvider-BFHobXxt.js → nodemailerProvider-DRo0lJ6g.js} +1 -1
- package/dist/packem_shared/{opentelemetryProvider-ByHC01ub.js → opentelemetryProvider-C6spx2CD.js} +1 -1
- package/dist/packem_shared/{outlook365Provider-Btk4Emig.js → outlook365Provider-B0o7UZBW.js} +1 -1
- package/dist/packem_shared/{plunkProvider-Bw8e6460.js → plunkProvider-DJzEUEtU.js} +1 -1
- package/dist/packem_shared/{postalProvider-CT8zr89z.js → postalProvider-DHFjFE3Y.js} +1 -1
- package/dist/packem_shared/{postmarkProvider-CQSqZWDs.js → postmarkProvider-Dt1EGGBA.js} +1 -1
- package/dist/packem_shared/{provider-base-C7PuopYK.js → provider-base-DjPzWncP.js} +1 -1
- package/dist/packem_shared/{provider.d-J-y6iogK.d.ts → provider.d-Cx5YQJdP.d.ts} +9 -9
- package/dist/packem_shared/{resendProvider-drJYlvLP.js → resendProvider-qjI86j_d.js} +1 -1
- package/dist/packem_shared/{retry-ipI5DRJ8.js → retry-CG9iT2wF.js} +1 -1
- package/dist/packem_shared/{roundRobinProvider-D1by5KGW.js → roundRobinProvider-CO5YvhgR.js} +1 -1
- package/dist/packem_shared/{scalewayProvider-DU5gXQrl.js → scalewayProvider-CihQKhw6.js} +1 -1
- package/dist/packem_shared/{sendGridProvider-BuTbEXW8.js → sendGridProvider-Dkc5AKlC.js} +1 -1
- package/dist/packem_shared/{smtpProvider-5MI3-EPh.js → smtpProvider-CIXMxPu-.js} +12 -12
- package/dist/packem_shared/{sparkpostProvider-UAsFYIjP.js → sparkpostProvider-CKxQhpyB.js} +1 -1
- package/dist/packem_shared/{sweegoProvider-SUz0LIcA.js → sweegoProvider-DjmAs6La.js} +1 -1
- package/dist/packem_shared/{tracer.d-MU42G1jG.d.ts → tracer.d-sb5yrt_n.d.ts} +2 -2
- package/dist/packem_shared/types.d-B0t3PQ3t.d.ts +107 -0
- package/dist/packem_shared/{types.d-ejzh-xBP.d.ts → types.d-B9295M4_.d.ts} +82 -82
- package/dist/packem_shared/types.d-BzoHR9nB.d.ts +61 -0
- package/dist/packem_shared/types.d-C5geVKes.d.ts +51 -0
- package/dist/packem_shared/types.d-GKqPNk0I.d.ts +24 -0
- package/dist/packem_shared/types.d-I-KeZ5w2.d.ts +9 -0
- package/dist/packem_shared/types.d-kHO4kX9q.d.ts +69 -0
- package/dist/packem_shared/utils-DjEtR3qT.js +1 -0
- package/dist/packem_shared/verifyMailgunWebhook-DNk080BF.js +1 -0
- package/dist/packem_shared/verifyPostmarkWebhook-B4OIEHQF.js +1 -0
- package/dist/packem_shared/verifyResendWebhook-C7E32LZ1.js +1 -0
- package/dist/packem_shared/verifySendGridWebhook-1l9bqIMw.js +1 -0
- package/dist/packem_shared/withEvents-CytsykaK.js +1 -0
- package/dist/packem_shared/{withSuppression-DBaZDMAr.js → withSuppression-BoaO4Qdz.js} +1 -1
- package/dist/packem_shared/{zeptomailProvider-DXNX9mG_.js → zeptomailProvider-DSTC9pUi.js} +1 -1
- package/dist/providers/ahasend/index.d.ts +18 -18
- package/dist/providers/ahasend/index.js +1 -1
- package/dist/providers/autosend/index.d.ts +30 -30
- package/dist/providers/autosend/index.js +1 -1
- package/dist/providers/aws-ses/index.d.ts +20 -20
- package/dist/providers/aws-ses/index.js +1 -1
- package/dist/providers/azure/index.d.ts +26 -26
- package/dist/providers/azure/index.js +1 -1
- package/dist/providers/brevo/index.d.ts +35 -35
- package/dist/providers/brevo/index.js +1 -1
- package/dist/providers/cloudflare-email/index.d.ts +25 -25
- package/dist/providers/cloudflare-email/index.js +1 -1
- package/dist/providers/failover/index.d.ts +14 -14
- package/dist/providers/failover/index.js +1 -1
- package/dist/providers/http/index.d.ts +15 -15
- package/dist/providers/http/index.js +1 -1
- package/dist/providers/infobip/index.d.ts +28 -28
- package/dist/providers/infobip/index.js +1 -1
- package/dist/providers/loops/index.d.ts +25 -25
- package/dist/providers/loops/index.js +1 -1
- package/dist/providers/mailchannels/index.d.ts +13 -13
- package/dist/providers/mailchannels/index.js +1 -1
- package/dist/providers/mailcrab/index.d.ts +17 -17
- package/dist/providers/mailcrab/index.js +1 -1
- package/dist/providers/mailersend/index.d.ts +24 -24
- package/dist/providers/mailersend/index.js +1 -1
- package/dist/providers/mailgun/index.d.ts +37 -37
- package/dist/providers/mailgun/index.js +1 -1
- package/dist/providers/mailjet/index.d.ts +36 -36
- package/dist/providers/mailjet/index.js +1 -1
- package/dist/providers/mailomat/index.d.ts +20 -20
- package/dist/providers/mailomat/index.js +1 -1
- package/dist/providers/mailpace/index.d.ts +24 -24
- package/dist/providers/mailpace/index.js +1 -1
- package/dist/providers/mailtrap/index.d.ts +22 -22
- package/dist/providers/mailtrap/index.js +1 -1
- package/dist/providers/mandrill/index.d.ts +36 -36
- package/dist/providers/mandrill/index.js +1 -1
- package/dist/providers/mock/index.d.ts +8 -8
- package/dist/providers/mock/index.js +1 -1
- package/dist/providers/netcore/index.d.ts +17 -17
- package/dist/providers/netcore/index.js +1 -1
- package/dist/providers/nodemailer/index.d.ts +22 -22
- package/dist/providers/nodemailer/index.js +1 -1
- package/dist/providers/opentelemetry/index.d.ts +20 -20
- package/dist/providers/opentelemetry/index.js +1 -1
- package/dist/providers/outlook365/index.d.ts +82 -82
- package/dist/providers/outlook365/index.js +1 -1
- package/dist/providers/plunk/index.d.ts +18 -18
- package/dist/providers/plunk/index.js +1 -1
- package/dist/providers/postal/index.d.ts +24 -24
- package/dist/providers/postal/index.js +1 -1
- package/dist/providers/postmark/index.d.ts +30 -30
- package/dist/providers/postmark/index.js +1 -1
- package/dist/providers/resend/index.d.ts +24 -24
- package/dist/providers/resend/index.js +1 -1
- package/dist/providers/roundrobin/index.d.ts +14 -14
- package/dist/providers/roundrobin/index.js +1 -1
- package/dist/providers/scaleway/index.d.ts +22 -22
- package/dist/providers/scaleway/index.js +1 -1
- package/dist/providers/sendgrid/index.d.ts +25 -25
- package/dist/providers/sendgrid/index.js +1 -1
- package/dist/providers/smtp/index.d.ts +11 -11
- package/dist/providers/smtp/index.js +1 -1
- package/dist/providers/sparkpost/index.d.ts +21 -21
- package/dist/providers/sparkpost/index.js +1 -1
- package/dist/providers/sweego/index.d.ts +20 -20
- package/dist/providers/sweego/index.js +1 -1
- package/dist/providers/zeptomail/index.d.ts +17 -17
- package/dist/providers/zeptomail/index.js +1 -1
- package/dist/queue/bullmq-queue.d.ts +26 -26
- package/dist/queue/index.d.ts +86 -86
- package/dist/queue/pg-boss-queue.d.ts +13 -13
- package/dist/queue/sqs-queue.d.ts +20 -20
- package/dist/queue/unstorage-queue.d.ts +47 -47
- package/dist/queue/unstorage-queue.js +1 -1
- package/dist/render/cid.d.ts +12 -12
- package/dist/render/css-inline.d.ts +12 -12
- package/dist/render/css-inline.js +1 -1
- package/dist/render/dark-mode.d.ts +12 -12
- package/dist/render/preheader.d.ts +16 -16
- package/dist/template-engines/handlebars.d.ts +19 -19
- package/dist/template-engines/handlebars.js +1 -1
- package/dist/template-engines/html-to-text.d.ts +12 -12
- package/dist/template-engines/html-to-text.js +1 -1
- package/dist/template-engines/i18n.d.ts +43 -43
- package/dist/template-engines/i18n.js +1 -1
- package/dist/template-engines/jsx-email.d.ts +8 -8
- package/dist/template-engines/jsx-email.js +1 -1
- package/dist/template-engines/liquid.d.ts +9 -9
- package/dist/template-engines/liquid.js +1 -1
- package/dist/template-engines/mjml.d.ts +9 -9
- package/dist/template-engines/mjml.js +1 -1
- package/dist/template-engines/react-email.d.ts +8 -8
- package/dist/template-engines/react-email.js +1 -1
- package/dist/template-engines/vue-email.d.ts +8 -8
- package/dist/template-engines/vue-email.js +1 -1
- package/dist/test/index.d.ts +89 -89
- package/dist/test/index.js +1 -1
- package/dist/utils/cache.d.ts +27 -27
- package/dist/utils/format-email-address.d.ts +6 -6
- package/dist/utils/format-email-address.js +1 -1
- package/dist/utils/normalize-email-aliases.d.ts +19 -19
- package/dist/utils/parse-address.d.ts +16 -16
- package/dist/utils/parse-eml.d.ts +18 -18
- package/dist/utils/result.d.ts +30 -30
- package/dist/utils/result.js +1 -1
- package/dist/utils/validation/check-feature-support.d.ts +33 -33
- package/dist/utils/validation/validate-email.d.ts +4 -4
- package/dist/webhooks/index.d.ts +134 -134
- package/dist/webhooks/index.js +1 -1
- package/package.json +1 -1
- package/dist/packem_shared/EmailError-B-sEf3bp.js +0 -1
- package/dist/packem_shared/MailMessage-DQRgs5Dz.js +0 -1
- package/dist/packem_shared/SmimeEncrypter-DavopRlE.js +0 -6
- package/dist/packem_shared/SmimeSigner-0onWksAv.js +0 -8
- package/dist/packem_shared/arcMessageSignatureBase-DDLEHW2E.js +0 -17
- package/dist/packem_shared/attachment-processor-CMp7qqMI.js +0 -1
- package/dist/packem_shared/azureProvider-Cw_Tmde6.js +0 -1
- package/dist/packem_shared/dedupeMiddleware-B6ajWOTi.js +0 -1
- package/dist/packem_shared/event-bus.d-DEl3w_EW.d.ts +0 -104
- package/dist/packem_shared/generate-boundary-DQbzDiOI.js +0 -1
- package/dist/packem_shared/index-BoZvzveg.js +0 -11
- package/dist/packem_shared/isValidSigningCertUrl-Bii1AMGC.js +0 -3
- package/dist/packem_shared/mail.d-B9SSqyy0.d.ts +0 -909
- package/dist/packem_shared/mailgunProvider-D9HUWGKN.js +0 -1
- package/dist/packem_shared/mailjetProvider-DelLs2Vt.js +0 -1
- package/dist/packem_shared/types.d-BId55FW2.d.ts +0 -107
- package/dist/packem_shared/types.d-CmoWvdZi.d.ts +0 -61
- package/dist/packem_shared/types.d-DCkecJse.d.ts +0 -51
- package/dist/packem_shared/types.d-Mpu0HZoG.d.ts +0 -24
- package/dist/packem_shared/types.d-lcJZmwRK.d.ts +0 -69
- package/dist/packem_shared/types.d-nyR1ty1Q.d.ts +0 -9
- package/dist/packem_shared/utils-BfYfPB_I.js +0 -1
- package/dist/packem_shared/verifyMailgunWebhook-Cwl0OD3P.js +0 -1
- package/dist/packem_shared/verifyPostmarkWebhook-C72ZvbrG.js +0 -1
- package/dist/packem_shared/verifyResendWebhook-YK2zNDXR.js +0 -1
- package/dist/packem_shared/verifySendGridWebhook-Dbwc1tfG.js +0 -1
- package/dist/packem_shared/withEvents-CCVblSqj.js +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { a as Provider, P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
import { T as Tracer } from "../../packem_shared/tracer.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { a as Provider, P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
import { T as Tracer } from "../../packem_shared/tracer.d-sb5yrt_n.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* OpenTelemetry configuration
|
|
7
|
-
*/
|
|
6
|
+
* OpenTelemetry configuration
|
|
7
|
+
*/
|
|
8
8
|
interface OpenTelemetryConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* The provider to wrap with OpenTelemetry instrumentation
|
|
11
|
+
* Can be a Provider instance or ProviderFactory function
|
|
12
|
+
*/
|
|
13
13
|
provider: Provider | ProviderFactory;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* Whether to record email content in spans (default: false)
|
|
16
|
+
* When false, only metadata is recorded
|
|
17
|
+
*/
|
|
18
18
|
recordContent?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Service name for OpenTelemetry spans (default: "email")
|
|
21
|
+
*/
|
|
22
22
|
serviceName?: string;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
* Optional OpenTelemetry tracer instance
|
|
25
|
+
* If not provided, uses the global tracer
|
|
26
|
+
*/
|
|
27
27
|
tracer?: Tracer;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* OpenTelemetry-specific email options
|
|
31
|
-
*/
|
|
30
|
+
* OpenTelemetry-specific email options
|
|
31
|
+
*/
|
|
32
32
|
type OpenTelemetryEmailOptions = EmailOptions;
|
|
33
33
|
/**
|
|
34
|
-
* OpenTelemetry Provider for instrumenting email sending with OpenTelemetry traces and metrics
|
|
35
|
-
*/
|
|
34
|
+
* OpenTelemetry Provider for instrumenting email sending with OpenTelemetry traces and metrics
|
|
35
|
+
*/
|
|
36
36
|
declare const opentelemetryProvider: ProviderFactory<OpenTelemetryConfig, Provider>;
|
|
37
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-C6spx2CD.js";export{o as opentelemetryProvider};
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { M as MaybePromise, B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { M as MaybePromise, B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Which OAuth2 flow a config resolves to.
|
|
7
|
-
*/
|
|
6
|
+
* Which OAuth2 flow a config resolves to.
|
|
7
|
+
*/
|
|
8
8
|
type Outlook365AuthMode = "accessToken" | "clientCredentials" | "getAccessToken" | "refreshToken";
|
|
9
9
|
/**
|
|
10
|
-
* Outlook365 / Microsoft Graph configuration.
|
|
11
|
-
*
|
|
12
|
-
* Four authentication modes are supported, in precedence order:
|
|
13
|
-
*
|
|
14
|
-
* 1. `getAccessToken` — bring your own async token source (e.g. `@azure/msal-node`).
|
|
15
|
-
* 2. `accessToken` — a static token, for scripts and tests.
|
|
16
|
-
* 3. `refreshToken` — delegated flow; the provider exchanges the refresh token for access tokens and caches them. Requires `tenantId` + `clientId`.
|
|
17
|
-
* 4. `clientCredentials` (selected by supplying `clientSecret`) — app-only flow. Requires `tenantId` + `clientId`, and `userId` must name a real mailbox, since app-only tokens have no `me`.
|
|
18
|
-
*
|
|
19
|
-
* A confidential-client delegated config and an app-only config with a leftover `refreshToken`
|
|
20
|
-
* are indistinguishable — both carry `tenantId`, `clientId`, `clientSecret` and `refreshToken`.
|
|
21
|
-
* Set {@link Outlook365Config.authMode} to pin the flow when both are present.
|
|
22
|
-
*
|
|
23
|
-
* The built-in flows talk to the Azure AD token endpoint over `fetch` — no auth SDK is
|
|
24
|
-
* bundled, so the provider stays dependency-light and runtime-agnostic.
|
|
25
|
-
*/
|
|
10
|
+
* Outlook365 / Microsoft Graph configuration.
|
|
11
|
+
*
|
|
12
|
+
* Four authentication modes are supported, in precedence order:
|
|
13
|
+
*
|
|
14
|
+
* 1. `getAccessToken` — bring your own async token source (e.g. `@azure/msal-node`).
|
|
15
|
+
* 2. `accessToken` — a static token, for scripts and tests.
|
|
16
|
+
* 3. `refreshToken` — delegated flow; the provider exchanges the refresh token for access tokens and caches them. Requires `tenantId` + `clientId`.
|
|
17
|
+
* 4. `clientCredentials` (selected by supplying `clientSecret`) — app-only flow. Requires `tenantId` + `clientId`, and `userId` must name a real mailbox, since app-only tokens have no `me`.
|
|
18
|
+
*
|
|
19
|
+
* A confidential-client delegated config and an app-only config with a leftover `refreshToken`
|
|
20
|
+
* are indistinguishable — both carry `tenantId`, `clientId`, `clientSecret` and `refreshToken`.
|
|
21
|
+
* Set {@link Outlook365Config.authMode} to pin the flow when both are present.
|
|
22
|
+
*
|
|
23
|
+
* The built-in flows talk to the Azure AD token endpoint over `fetch` — no auth SDK is
|
|
24
|
+
* bundled, so the provider stays dependency-light and runtime-agnostic.
|
|
25
|
+
*/
|
|
26
26
|
interface Outlook365Config extends BaseConfig {
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* A static OAuth2 access token with the `Mail.Send` scope. Prefer
|
|
29
|
+
* {@link Outlook365Config.getAccessToken} for tokens that expire.
|
|
30
|
+
*/
|
|
31
31
|
accessToken?: string;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
* Pins the authentication flow instead of inferring it from which credentials are present.
|
|
34
|
+
* Use it when a config could match more than one flow — most notably `clientCredentials`
|
|
35
|
+
* vs `refreshToken` when both a client secret and a refresh token are supplied.
|
|
36
|
+
*/
|
|
37
37
|
authMode?: Outlook365AuthMode;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
* Azure AD login authority (default `https://login.microsoftonline.com`). Override for
|
|
40
|
+
* sovereign clouds, e.g. `https://login.microsoftonline.us`.
|
|
41
|
+
*/
|
|
42
42
|
authority?: string;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
* Application (client) id of the Azure AD app registration. Required by the
|
|
45
|
+
* `refreshToken` and `clientSecret` flows.
|
|
46
|
+
*/
|
|
47
47
|
clientId?: string;
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
* Client secret of the Azure AD app registration. Supplying this without a
|
|
50
|
+
* {@link Outlook365Config.refreshToken} selects the app-only (client credentials) flow.
|
|
51
|
+
* It is also sent with the delegated flow when the app is a confidential client.
|
|
52
|
+
*/
|
|
53
53
|
clientSecret?: string;
|
|
54
54
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
* API endpoint override (default `https://graph.microsoft.com/v1.0`).
|
|
56
|
+
*/
|
|
57
57
|
endpoint?: string;
|
|
58
58
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
* Returns a fresh OAuth2 access token with the `Mail.Send` scope.
|
|
60
|
+
*/
|
|
61
61
|
getAccessToken?: () => MaybePromise<string>;
|
|
62
62
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
* Time source in milliseconds — injectable for tests. Defaults to `Date.now`.
|
|
64
|
+
*/
|
|
65
65
|
now?: () => number;
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
* Called whenever Azure AD rotates the refresh token, so it can be persisted. Awaited
|
|
68
|
+
* before the access token is handed out, so a rejected promise is reported rather than
|
|
69
|
+
* surfacing as an unhandled rejection.
|
|
70
|
+
*
|
|
71
|
+
* The rotated token is adopted in-process regardless of whether persisting succeeds — the
|
|
72
|
+
* previous token is already dead at Azure AD, so the new one is the only usable value. A
|
|
73
|
+
* persist failure is logged rather than failing the send, but the stored token is then
|
|
74
|
+
* stale and sending will break on restart.
|
|
75
|
+
* @param refreshToken The new refresh token.
|
|
76
|
+
*/
|
|
77
77
|
onRefreshToken?: (refreshToken: string) => MaybePromise<void>;
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
* A long-lived OAuth2 refresh token, selecting the delegated flow. Obtain it via the
|
|
80
|
+
* authorization-code flow with the `offline_access` scope.
|
|
81
|
+
*/
|
|
82
82
|
refreshToken?: string;
|
|
83
83
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
* Whether to keep a copy in the Sent Items folder (default true).
|
|
85
|
+
*/
|
|
86
86
|
saveToSentItems?: boolean;
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
* Scope override for the built-in flows. Defaults to
|
|
89
|
+
* `["https://graph.microsoft.com/.default"]` for the app-only flow and
|
|
90
|
+
* `["https://graph.microsoft.com/Mail.Send", "offline_access"]` for the delegated flow.
|
|
91
|
+
*/
|
|
92
92
|
scopes?: string[];
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
* Azure AD tenant id (or `common` / `organizations` for the delegated flow). Required by
|
|
95
|
+
* the `refreshToken` and `clientSecret` flows.
|
|
96
|
+
*/
|
|
97
97
|
tenantId?: string;
|
|
98
98
|
/**
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
* Renew the access token this many milliseconds before it expires (default 60000).
|
|
100
|
+
* Negative values are clamped to 0. A value larger than the token lifetime disables
|
|
101
|
+
* caching, costing one token request per send.
|
|
102
|
+
*/
|
|
103
103
|
tokenRefreshSkewMs?: number;
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
* The mailbox to send as: a user id/UPN. Defaults to `me` (the token's own mailbox).
|
|
106
|
+
* The app-only flow has no `me`, so it requires an explicit value.
|
|
107
|
+
*/
|
|
108
108
|
userId?: string;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
* Outlook365-specific email options.
|
|
112
|
-
*/
|
|
111
|
+
* Outlook365-specific email options.
|
|
112
|
+
*/
|
|
113
113
|
interface Outlook365EmailOptions extends EmailOptions {
|
|
114
114
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
* Message importance.
|
|
116
|
+
*/
|
|
117
117
|
importance?: "high" | "low" | "normal";
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
|
-
* Outlook365 provider — sends email through the Microsoft Graph `sendMail` endpoint.
|
|
121
|
-
*
|
|
122
|
-
* Authenticates with a caller-supplied token (`accessToken` / `getAccessToken`), the delegated
|
|
123
|
-
* refresh-token flow, or the app-only client-credentials flow. See {@link Outlook365Config}.
|
|
124
|
-
*/
|
|
120
|
+
* Outlook365 provider — sends email through the Microsoft Graph `sendMail` endpoint.
|
|
121
|
+
*
|
|
122
|
+
* Authenticates with a caller-supplied token (`accessToken` / `getAccessToken`), the delegated
|
|
123
|
+
* refresh-token flow, or the app-only client-credentials flow. See {@link Outlook365Config}.
|
|
124
|
+
*/
|
|
125
125
|
declare const outlook365Provider: ProviderFactory<Outlook365Config, unknown, Outlook365EmailOptions>;
|
|
126
126
|
export { type Outlook365AuthMode, type Outlook365Config, type Outlook365EmailOptions, type ProviderFactory, outlook365Provider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/outlook365Provider-
|
|
1
|
+
import{default as e}from"../../packem_shared/outlook365Provider-B0o7UZBW.js";export{e as outlook365Provider};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Plunk configuration
|
|
7
|
-
*/
|
|
6
|
+
* Plunk configuration
|
|
7
|
+
*/
|
|
8
8
|
interface PlunkConfig extends BaseConfig {
|
|
9
9
|
apiKey: string;
|
|
10
10
|
endpoint?: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Plunk-specific email options
|
|
14
|
-
*/
|
|
13
|
+
* Plunk-specific email options
|
|
14
|
+
*/
|
|
15
15
|
interface PlunkEmailOptions extends EmailOptions {
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Data to pass to the email template
|
|
18
|
+
*/
|
|
19
19
|
data?: Record<string, unknown>;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* Subscriber email (used for tracking and analytics)
|
|
22
|
+
* If not provided, uses the first 'to' address
|
|
23
|
+
*/
|
|
24
24
|
subscriber?: string;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* Subscriber ID (optional identifier for the subscriber)
|
|
27
|
+
*/
|
|
28
28
|
subscriberId?: string;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Template ID for template-based emails
|
|
31
|
+
*/
|
|
32
32
|
templateId?: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Plunk Provider for sending emails through Plunk API.
|
|
36
|
-
*/
|
|
35
|
+
* Plunk Provider for sending emails through Plunk API.
|
|
36
|
+
*/
|
|
37
37
|
declare const plunkProvider: ProviderFactory<PlunkConfig>;
|
|
38
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-DJzEUEtU.js";export{o as plunkProvider};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Postal configuration
|
|
7
|
-
*/
|
|
6
|
+
* Postal configuration
|
|
7
|
+
*/
|
|
8
8
|
interface PostalConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* Postal server API key
|
|
11
|
+
*/
|
|
12
12
|
apiKey: string;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* Postal API endpoint
|
|
15
|
+
* Defaults to: https://{host}/api/v1
|
|
16
|
+
*/
|
|
17
17
|
endpoint?: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Postal server host
|
|
20
|
+
*/
|
|
21
21
|
host: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Postal-specific email options
|
|
25
|
-
*/
|
|
24
|
+
* Postal-specific email options
|
|
25
|
+
*/
|
|
26
26
|
interface PostalEmailOptions extends EmailOptions {
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Postal message ID (for tracking)
|
|
29
|
+
*/
|
|
30
30
|
postalMessageId?: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Tags for categorization
|
|
33
|
+
*/
|
|
34
34
|
tags?: string[];
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Postal template ID for template-based emails
|
|
37
|
+
*/
|
|
38
38
|
templateId?: number;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Template variables for Postal templates
|
|
41
|
+
*/
|
|
42
42
|
templateVariables?: Record<string, unknown>;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Postal Provider for sending emails through Postal API.
|
|
46
|
-
*/
|
|
45
|
+
* Postal Provider for sending emails through Postal API.
|
|
46
|
+
*/
|
|
47
47
|
declare const postalProvider: ProviderFactory<PostalConfig>;
|
|
48
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-DHFjFE3Y.js";export{a as postalProvider};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Postmark configuration
|
|
7
|
-
*/
|
|
6
|
+
* Postmark configuration
|
|
7
|
+
*/
|
|
8
8
|
interface PostmarkConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* Postmark API endpoint
|
|
11
|
+
* Defaults to: https://api.postmarkapp.com
|
|
12
|
+
*/
|
|
13
13
|
endpoint?: string;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* Postmark Server API Token
|
|
16
|
+
*/
|
|
17
17
|
serverToken: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Postmark-specific email options
|
|
21
|
-
*/
|
|
20
|
+
* Postmark-specific email options
|
|
21
|
+
*/
|
|
22
22
|
interface PostmarkEmailOptions extends EmailOptions {
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Inline CSS for HTML emails
|
|
25
|
+
*/
|
|
26
26
|
inlineCss?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Message stream ID
|
|
29
|
+
*/
|
|
30
30
|
messageStream?: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Metadata (key-value pairs)
|
|
33
|
+
*/
|
|
34
34
|
metadata?: Record<string, string>;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Postmark template alias (alternative to templateId)
|
|
37
|
+
*/
|
|
38
38
|
templateAlias?: string;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Postmark template ID for template-based emails
|
|
41
|
+
*/
|
|
42
42
|
templateId?: number;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
* Template model/variables for Postmark templates
|
|
45
|
+
*/
|
|
46
46
|
templateModel?: Record<string, unknown>;
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
* Track links
|
|
49
|
+
*/
|
|
50
50
|
trackLinks?: "HtmlAndText" | "HtmlOnly" | "TextOnly" | "None";
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Track opens
|
|
53
|
+
*/
|
|
54
54
|
trackOpens?: boolean;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Postmark Provider for sending emails through Postmark API.
|
|
58
|
-
*/
|
|
57
|
+
* Postmark Provider for sending emails through Postmark API.
|
|
58
|
+
*/
|
|
59
59
|
declare const postmarkProvider: ProviderFactory<PostmarkConfig>;
|
|
60
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-Dt1EGGBA.js";export{a as postmarkProvider};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions, d as EmailTag } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions, d as EmailTag } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Resend configuration
|
|
7
|
-
*/
|
|
6
|
+
* Resend configuration
|
|
7
|
+
*/
|
|
8
8
|
interface ResendConfig extends BaseConfig {
|
|
9
9
|
apiKey: string;
|
|
10
10
|
endpoint?: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Resend-specific email tag type with additional constraints
|
|
14
|
-
*/
|
|
13
|
+
* Resend-specific email tag type with additional constraints
|
|
14
|
+
*/
|
|
15
15
|
interface ResendEmailTag extends EmailTag {
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
* Tag name - must only contain ASCII letters, numbers, underscores, or dashes
|
|
18
|
+
* Max length: 256 characters
|
|
19
|
+
*/
|
|
20
20
|
name: string;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
* Tag value - must only contain ASCII letters, numbers, underscores, or dashes
|
|
23
|
+
*/
|
|
24
24
|
value: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Resend-specific email options
|
|
28
|
-
*/
|
|
27
|
+
* Resend-specific email options
|
|
28
|
+
*/
|
|
29
29
|
interface ResendEmailOptions extends Omit<EmailOptions, "tags"> {
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Schedule email for delivery at a specific time
|
|
32
|
+
*/
|
|
33
33
|
scheduledAt?: Date | string;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Tags for categorizing emails
|
|
36
|
+
*/
|
|
37
37
|
tags?: ResendEmailTag[];
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
* Template data for template-based emails
|
|
40
|
+
*/
|
|
41
41
|
templateData?: Record<string, unknown>;
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
* Template ID for template-based emails
|
|
44
|
+
*/
|
|
45
45
|
templateId?: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Resend Provider for sending emails through Resend API.
|
|
49
|
-
*/
|
|
48
|
+
* Resend Provider for sending emails through Resend API.
|
|
49
|
+
*/
|
|
50
50
|
declare const resendProvider: ProviderFactory<ResendConfig, unknown, ResendEmailOptions>;
|
|
51
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-qjI86j_d.js";export{d as resendProvider};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { P as ProviderFactory } from "../../packem_shared/provider.d-
|
|
2
|
-
export type { a as Provider } from "../../packem_shared/provider.d-
|
|
3
|
-
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-
|
|
1
|
+
import { P as ProviderFactory } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
2
|
+
export type { a as Provider } from "../../packem_shared/provider.d-Cx5YQJdP.js";
|
|
3
|
+
import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-B9295M4_.js";
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
/**
|
|
6
|
-
* Round Robin configuration
|
|
7
|
-
*/
|
|
6
|
+
* Round Robin configuration
|
|
7
|
+
*/
|
|
8
8
|
interface RoundRobinConfig extends BaseConfig {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* Array of provider instances or provider factories to use for round-robin distribution
|
|
11
|
+
* Can be Provider instances or ProviderFactory functions
|
|
12
|
+
*/
|
|
13
13
|
mailers: unknown[];
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* Time in milliseconds to wait before retrying with next provider if current is unavailable (default: 60)
|
|
16
|
+
*/
|
|
17
17
|
retryAfter?: number;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Round Robin-specific email options
|
|
21
|
-
*/
|
|
20
|
+
* Round Robin-specific email options
|
|
21
|
+
*/
|
|
22
22
|
type RoundRobinEmailOptions = EmailOptions;
|
|
23
23
|
/**
|
|
24
|
-
* Round Robin Provider for distributing email sending across multiple providers
|
|
25
|
-
*/
|
|
24
|
+
* Round Robin Provider for distributing email sending across multiple providers
|
|
25
|
+
*/
|
|
26
26
|
declare const roundRobinProvider: ProviderFactory<RoundRobinConfig>;
|
|
27
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-CO5YvhgR.js";export{d as roundRobinProvider};
|