@mailpier/inbox 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,350 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/testing/index.ts
21
+ var testing_exports = {};
22
+ __export(testing_exports, {
23
+ findCodes: () => findCodes,
24
+ findLinks: () => findLinks,
25
+ startFakeMailPier: () => startFakeMailPier
26
+ });
27
+ module.exports = __toCommonJS(testing_exports);
28
+
29
+ // src/testing/fakeServer.ts
30
+ var import_node_http = require("http");
31
+ var import_node_crypto = require("crypto");
32
+ var MAX_TAKE = 100;
33
+ var GUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
34
+ async function startFakeMailPier(options = {}) {
35
+ const apiKey = options.apiKey ?? "mpi_test_key";
36
+ const account = options.account ?? "demo";
37
+ const environment = options.environment ?? "qa";
38
+ const domains = (options.domains ?? ["mailpier.io"]).map((d) => d.toLowerCase());
39
+ const zoneFor = (d) => `${environment}.${account}.${d}`;
40
+ const zones = domains.map(zoneFor);
41
+ const zone = zones[0];
42
+ let seq = 0;
43
+ let store = [];
44
+ let failures = [];
45
+ const waiters = /* @__PURE__ */ new Set();
46
+ const requests = [];
47
+ const inEnv = (address) => {
48
+ const a = address.trim().toLowerCase();
49
+ return zones.some((z) => a.endsWith(`@${z}`) || a.endsWith(`.${z}`));
50
+ };
51
+ function deliver(mail) {
52
+ const recipients = (Array.isArray(mail.to) ? mail.to : [mail.to]).map((t) => t.trim()).filter(Boolean);
53
+ if (recipients.length === 0) throw new Error("deliver needs at least one recipient.");
54
+ const id = (0, import_node_crypto.randomUUID)();
55
+ const attachments = (mail.attachments ?? []).map((a) => ({
56
+ fileName: a.fileName,
57
+ contentType: a.contentType ?? "application/octet-stream",
58
+ bytes: typeof a.content === "string" ? Buffer.from(a.content, "utf8") : Buffer.from(a.content)
59
+ }));
60
+ const raw = buildEml(id, mail, recipients, attachments);
61
+ store.push({
62
+ seq: ++seq,
63
+ id,
64
+ received: (mail.receivedUtc ?? /* @__PURE__ */ new Date()).getTime(),
65
+ mail,
66
+ to: recipients,
67
+ links: mail.links ?? findLinks(mail.html, mail.text),
68
+ codes: mail.codes ?? findCodes(mail.subject, mail.text),
69
+ attachments,
70
+ raw
71
+ });
72
+ for (const w of [...waiters]) w();
73
+ return id;
74
+ }
75
+ const summary = (s) => clean({
76
+ id: s.id,
77
+ receivedUtc: new Date(s.received).toISOString(),
78
+ from: s.mail.from ?? "sender@example.com",
79
+ to: s.to.filter(inEnv),
80
+ subject: s.mail.subject,
81
+ sizeBytes: s.raw.length,
82
+ hasAttachments: s.attachments.length > 0
83
+ });
84
+ const detail = (s) => clean({
85
+ ...summary(s),
86
+ text: s.mail.text,
87
+ html: s.mail.html,
88
+ headers: clean({
89
+ from: clean({ name: s.mail.fromName, address: s.mail.from ?? "sender@example.com" }),
90
+ to: s.to.map((a) => ({ address: a })),
91
+ cc: [],
92
+ subject: s.mail.subject,
93
+ date: new Date(s.received).toISOString(),
94
+ messageId: `<${s.id}@fake.mailpier.test>`
95
+ }),
96
+ links: s.links.map((l) => clean({ href: l.href, text: l.text })),
97
+ codes: s.codes,
98
+ attachments: s.attachments.map((a, index) => ({ index, fileName: a.fileName, contentType: a.contentType, size: a.bytes.length })),
99
+ auth: { spf: "pass", dkim: "pass", dmarc: "pass" },
100
+ spam: { score: 0.1, verdict: "ham" }
101
+ });
102
+ function matches(f) {
103
+ let afterSeq = 0;
104
+ if (f.since !== void 0 && f.afterId) afterSeq = store.find((s) => s.id === f.afterId)?.seq ?? 0;
105
+ return store.filter((s) => s.to.some(inEnv) && (!f.to || s.to.some((t) => t.toLowerCase() === f.to.toLowerCase())) && (!f.subject || (s.mail.subject ?? "").toLowerCase().includes(f.subject.toLowerCase())) && (f.since === void 0 || s.received >= f.since) && s.seq > afterSeq);
106
+ }
107
+ const server = (0, import_node_http.createServer)((req, res) => {
108
+ handle(req, res).catch((err) => {
109
+ if (!res.headersSent) send(res, 500, { error: `Fake server error: ${String(err)}` });
110
+ else res.end();
111
+ });
112
+ });
113
+ async function handle(req, res) {
114
+ const u = new URL(req.url ?? "/", "http://fake");
115
+ const method = req.method ?? "GET";
116
+ requests.push({ method, url: u.pathname + u.search, authorization: req.headers.authorization });
117
+ res.setHeader("Cache-Control", "no-store");
118
+ if (u.pathname === "/_fake/deliver" && method === "POST") {
119
+ const body = await readJson(req);
120
+ if (!body || typeof body !== "object") return send(res, 400, { error: "JSON body required." });
121
+ return send(res, 201, { id: deliver(body) });
122
+ }
123
+ if (!u.pathname.startsWith("/v1/")) return send(res, 404, { error: "Not found." });
124
+ if ((req.headers.authorization ?? "") !== `Bearer ${apiKey}`) {
125
+ res.setHeader("WWW-Authenticate", "Bearer");
126
+ return send(res, 401, { error: "Missing, unknown or revoked API key. Send Authorization: Bearer mpi_..." });
127
+ }
128
+ const f = failures[0];
129
+ if (f) {
130
+ if ((f.times ?? 1) <= 1) failures.shift();
131
+ else f.times = (f.times ?? 1) - 1;
132
+ if (f.retryAfter !== void 0) res.setHeader("Retry-After", String(f.retryAfter));
133
+ return send(res, f.status, { error: f.error ?? (f.status === 429 ? "Too many requests. Slow down and retry after the Retry-After seconds." : "The service is not available right now. Retry in a moment.") });
134
+ }
135
+ const q = u.searchParams;
136
+ const to = q.get("to")?.trim() || void 0;
137
+ if (to && !inEnv(to) && u.pathname.startsWith("/v1/messages")) {
138
+ return send(res, 400, { error: `${to} is not an address of environment ${environment} (${zones.map((z) => `*@${z}`).join(", ")}).` });
139
+ }
140
+ const sinceText = q.get("since");
141
+ let since;
142
+ if (sinceText) {
143
+ since = Date.parse(sinceText);
144
+ if (Number.isNaN(since)) return send(res, 400, { error: "since must be an ISO 8601 date/time." });
145
+ }
146
+ const filter = { to, subject: q.get("subject") ?? void 0, since, afterId: q.get("afterId") ?? void 0 };
147
+ const parts = u.pathname.split("/").filter(Boolean);
148
+ if (u.pathname === "/v1/me" && method === "GET") {
149
+ return send(res, 200, {
150
+ account: { slug: account, name: "Demo", plan: "Team", status: "Active", monthlyQuota: 1e4, apiRequestsPerMinute: 600 },
151
+ environment: { name: environment, displayName: environment.toUpperCase(), retentionMinutes: 720, retentionHours: 12, isMain: environment === "main" },
152
+ domains,
153
+ addressPattern: `anything@${zone}`,
154
+ fullOriginalPattern: `jane.doe@example.com.${zone}`,
155
+ usage: { month: (/* @__PURE__ */ new Date()).toISOString().slice(0, 7), messages: store.length, quota: 1e4 },
156
+ key: { name: "test", prefix: apiKey.slice(0, 12) }
157
+ });
158
+ }
159
+ if (u.pathname === "/v1/addresses" && method === "POST") {
160
+ const body = await readJson(req, true);
161
+ if (body === "invalid") return send(res, 400, { error: "The body must be a JSON object, or empty." });
162
+ const prefix = body?.prefix?.trim();
163
+ if (prefix && !/^[a-z0-9-]{1,30}$/.test(prefix)) {
164
+ return send(res, 400, { error: "prefix may only hold a-z, 0-9 and '-' (at most 30 characters)." });
165
+ }
166
+ const domain = body?.domain?.trim().toLowerCase() || domains[0];
167
+ if (!domains.includes(domain)) return send(res, 400, { error: `domain must be one of: ${domains.join(", ")}.` });
168
+ const local = (prefix ? `${prefix}-` : "") + randomLocal();
169
+ return send(res, 201, { address: `${local}@${zoneFor(domain)}`, domain, account, environment, workspace: environment });
170
+ }
171
+ if (u.pathname === "/v1/messages" && method === "GET") {
172
+ const take = clamp(int(q.get("take"), 50), 1, MAX_TAKE);
173
+ const skip = clamp(int(q.get("skip"), 0), 0, 1e4);
174
+ const items = matches(filter).sort((a, b) => b.received - a.received || b.seq - a.seq).slice(skip, skip + take).map(summary);
175
+ return send(res, 200, { items, skip, take });
176
+ }
177
+ if (u.pathname === "/v1/messages/wait" && method === "GET") {
178
+ const seconds = clamp(int(q.get("timeoutSeconds"), 30), 1, 120);
179
+ const first = () => matches(filter).sort((a, b) => a.received - b.received || a.seq - b.seq)[0];
180
+ const found = first() ?? await new Promise((resolve) => {
181
+ const done = (s) => {
182
+ clearTimeout(timer);
183
+ waiters.delete(check);
184
+ res.off("close", gone);
185
+ resolve(s);
186
+ };
187
+ const check = () => {
188
+ const s = first();
189
+ if (s) done(s);
190
+ };
191
+ const gone = () => done(void 0);
192
+ const timer = setTimeout(() => done(void 0), seconds * 1e3);
193
+ waiters.add(check);
194
+ res.on("close", gone);
195
+ });
196
+ if (!found) {
197
+ res.statusCode = 204;
198
+ return res.end();
199
+ }
200
+ return send(res, 200, detail(found));
201
+ }
202
+ if (u.pathname === "/v1/messages" && method === "DELETE") {
203
+ if (!to) return send(res, 400, { error: "to (one of this environment's addresses) is required." });
204
+ const gone = matches({ to });
205
+ store = store.filter((s) => !gone.includes(s));
206
+ return send(res, 200, { deleted: gone.length, skippedShared: 0 });
207
+ }
208
+ if (parts[0] === "v1" && parts[1] === "messages" && parts[2] && GUID.test(parts[2])) {
209
+ const s = store.find((m) => m.id.toLowerCase() === parts[2].toLowerCase() && m.to.some(inEnv));
210
+ const notFound = () => send(res, 404, { error: "No such message in this environment." });
211
+ if (parts.length === 3 && method === "GET") return s ? send(res, 200, detail(s)) : notFound();
212
+ if (parts.length === 3 && method === "DELETE") {
213
+ if (!s) return notFound();
214
+ store = store.filter((m) => m !== s);
215
+ res.statusCode = 204;
216
+ return res.end();
217
+ }
218
+ if (parts.length === 4 && parts[3] === "raw" && method === "GET") {
219
+ if (!s) return notFound();
220
+ res.writeHead(200, { "Content-Type": "message/rfc822", "Content-Disposition": `attachment; filename="${s.id}.eml"` });
221
+ return res.end(s.raw);
222
+ }
223
+ if (parts.length === 5 && parts[3] === "attachments" && /^\d+$/.test(parts[4]) && method === "GET") {
224
+ const a = s?.attachments[Number(parts[4])];
225
+ if (!a) return notFound();
226
+ res.writeHead(200, { "Content-Type": a.contentType, "Content-Disposition": `attachment; filename="${a.fileName}"` });
227
+ return res.end(a.bytes);
228
+ }
229
+ }
230
+ return send(res, 404, { error: "Not found." });
231
+ }
232
+ await new Promise((resolve, reject) => {
233
+ server.once("error", reject);
234
+ server.listen(options.port ?? 0, "127.0.0.1", () => resolve());
235
+ });
236
+ const port = server.address().port;
237
+ return {
238
+ url: `http://127.0.0.1:${port}`,
239
+ apiKey,
240
+ zone,
241
+ requests,
242
+ deliver,
243
+ failNext: (f) => {
244
+ failures.push({ ...f });
245
+ },
246
+ count: () => store.length,
247
+ reset: () => {
248
+ store = [];
249
+ failures = [];
250
+ requests.length = 0;
251
+ },
252
+ close: () => new Promise((resolve) => {
253
+ for (const w of [...waiters]) w();
254
+ server.closeAllConnections?.();
255
+ server.close(() => resolve());
256
+ })
257
+ };
258
+ }
259
+ function send(res, status, body) {
260
+ const text = JSON.stringify(body);
261
+ res.writeHead(status, { "Content-Type": "application/json; charset=utf-8", "Content-Length": Buffer.byteLength(text) });
262
+ res.end(text);
263
+ }
264
+ async function readJson(req, optional = false) {
265
+ const chunks = [];
266
+ for await (const c of req) chunks.push(c);
267
+ const text = Buffer.concat(chunks).toString("utf8");
268
+ if (!text.trim()) return void 0;
269
+ try {
270
+ const v = JSON.parse(text);
271
+ return v && typeof v === "object" && !Array.isArray(v) ? v : optional ? "invalid" : void 0;
272
+ } catch {
273
+ return optional ? "invalid" : void 0;
274
+ }
275
+ }
276
+ function clean(o) {
277
+ for (const k of Object.keys(o)) if (o[k] === void 0 || o[k] === null) delete o[k];
278
+ return o;
279
+ }
280
+ var int = (v, d) => {
281
+ const n = Number.parseInt(v ?? "", 10);
282
+ return Number.isFinite(n) ? n : d;
283
+ };
284
+ var clamp = (n, lo, hi) => Math.min(Math.max(n, lo), hi);
285
+ function randomLocal() {
286
+ const abc = "abcdefghijklmnopqrstuvwxyz0123456789";
287
+ return [...(0, import_node_crypto.randomBytes)(10)].map((b) => abc[b % abc.length]).join("");
288
+ }
289
+ function findLinks(html, text) {
290
+ const out = [];
291
+ const seen = /* @__PURE__ */ new Set();
292
+ if (html) {
293
+ for (const m of html.matchAll(/<a\s[^>]*href\s*=\s*["']([^"']+)["'][^>]*>([\s\S]*?)<\/a>/gi)) {
294
+ const href = m[1].replace(/&amp;/g, "&");
295
+ if (!/^https?:/i.test(href) || seen.has(href)) continue;
296
+ seen.add(href);
297
+ const t = m[2].replace(/<[^>]+>/g, "").trim();
298
+ out.push(t ? { href, text: t } : { href });
299
+ }
300
+ }
301
+ for (const m of (text ?? "").matchAll(/https?:\/\/[^\s<>"')]+/gi)) {
302
+ const href = m[0].replace(/[.,;:!?]+$/, "");
303
+ if (!seen.has(href)) {
304
+ seen.add(href);
305
+ out.push({ href });
306
+ }
307
+ }
308
+ return out;
309
+ }
310
+ function findCodes(subject, text) {
311
+ const out = [];
312
+ for (const m of `${subject ?? ""}
313
+ ${text ?? ""}`.matchAll(/(?<![\w\/.-])\d{4,8}(?!\w|[.\/-]\d)/g)) if (!out.includes(m[0])) out.push(m[0]);
314
+ return out;
315
+ }
316
+ function buildEml(id, mail, to, atts) {
317
+ const boundary = `=_fake_${id}`;
318
+ const lines = [
319
+ `From: ${mail.fromName ? `"${mail.fromName}" ` : ""}<${mail.from ?? "sender@example.com"}>`,
320
+ `To: ${to.join(", ")}`,
321
+ `Subject: ${mail.subject ?? ""}`,
322
+ `Message-ID: <${id}@fake.mailpier.test>`,
323
+ "MIME-Version: 1.0",
324
+ `Content-Type: multipart/mixed; boundary="${boundary}"`,
325
+ "",
326
+ `--${boundary}`,
327
+ "Content-Type: text/plain; charset=utf-8",
328
+ "",
329
+ mail.text ?? ""
330
+ ];
331
+ if (mail.html) lines.push(`--${boundary}`, "Content-Type: text/html; charset=utf-8", "", mail.html);
332
+ for (const a of atts) {
333
+ lines.push(
334
+ `--${boundary}`,
335
+ `Content-Type: ${a.contentType}; name="${a.fileName}"`,
336
+ "Content-Transfer-Encoding: base64",
337
+ `Content-Disposition: attachment; filename="${a.fileName}"`,
338
+ "",
339
+ a.bytes.toString("base64")
340
+ );
341
+ }
342
+ lines.push(`--${boundary}--`, "");
343
+ return Buffer.from(lines.join("\r\n"), "utf8");
344
+ }
345
+ // Annotate the CommonJS export names for ESM import in node:
346
+ 0 && (module.exports = {
347
+ findCodes,
348
+ findLinks,
349
+ startFakeMailPier
350
+ });
@@ -0,0 +1,75 @@
1
+ interface FakeAttachment {
2
+ fileName: string;
3
+ contentType?: string;
4
+ content: string | Uint8Array;
5
+ }
6
+ interface FakeMail {
7
+ /** Envelope recipient(s). */
8
+ to: string | string[];
9
+ from?: string;
10
+ fromName?: string;
11
+ subject?: string;
12
+ text?: string;
13
+ html?: string;
14
+ /** Defaults to the links found in html (href) and text (http/https URLs). */
15
+ links?: {
16
+ href: string;
17
+ text?: string;
18
+ }[];
19
+ /** Defaults to 4-8 digit numbers found in the subject and text. */
20
+ codes?: string[];
21
+ attachments?: FakeAttachment[];
22
+ /** Defaults to now. */
23
+ receivedUtc?: Date;
24
+ }
25
+ interface FakeMailPierOptions {
26
+ /** The only key the fake accepts. Default "mpi_test_key". */
27
+ apiKey?: string;
28
+ account?: string;
29
+ environment?: string;
30
+ /** Base domains; the first is the default for new addresses. Default ["mailpier.io"]. */
31
+ domains?: string[];
32
+ /** Port to listen on (127.0.0.1); 0 = any free port. */
33
+ port?: number;
34
+ }
35
+ interface FailNext {
36
+ status: number;
37
+ /** Retry-After seconds (sent on 429). */
38
+ retryAfter?: number;
39
+ error?: string;
40
+ /** How many requests in a row get this answer. Default 1. */
41
+ times?: number;
42
+ }
43
+ interface FakeMailPier {
44
+ /** e.g. http://127.0.0.1:53211 (use as baseUrl). */
45
+ readonly url: string;
46
+ readonly apiKey: string;
47
+ /** The default zone, e.g. qa.demo.mailpier.io: any `<anything>@<zone>` belongs to the environment. */
48
+ readonly zone: string;
49
+ /** Every request seen (method, path with query, Authorization header), oldest first. */
50
+ readonly requests: {
51
+ method: string;
52
+ url: string;
53
+ authorization?: string;
54
+ }[];
55
+ /** Stores a mail as if MailPier had received it; wakes waiting long-polls. Returns its id. */
56
+ deliver(mail: FakeMail): string;
57
+ /** The next API request(s) get this error instead of their answer (after the key check). */
58
+ failNext(f: FailNext): void;
59
+ /** Number of stored mails (all addresses). */
60
+ count(): number;
61
+ reset(): void;
62
+ close(): Promise<void>;
63
+ }
64
+ /** Starts the fake on 127.0.0.1. Always close() it (afterAll). */
65
+ declare function startFakeMailPier(options?: FakeMailPierOptions): Promise<FakeMailPier>;
66
+ /** Links like MailPier reports them: <a href> in the HTML (with its text), else http(s) URLs in the text. */
67
+ declare function findLinks(html?: string, text?: string): {
68
+ href: string;
69
+ text?: string;
70
+ }[];
71
+ /** One-time codes: 4-8 digit numbers in the subject and text, in order, without duplicates. */
72
+ declare function findCodes(subject?: string, text?: string): string[];
73
+
74
+ export { findCodes, findLinks, startFakeMailPier };
75
+ export type { FailNext, FakeAttachment, FakeMail, FakeMailPier, FakeMailPierOptions };
@@ -0,0 +1,75 @@
1
+ interface FakeAttachment {
2
+ fileName: string;
3
+ contentType?: string;
4
+ content: string | Uint8Array;
5
+ }
6
+ interface FakeMail {
7
+ /** Envelope recipient(s). */
8
+ to: string | string[];
9
+ from?: string;
10
+ fromName?: string;
11
+ subject?: string;
12
+ text?: string;
13
+ html?: string;
14
+ /** Defaults to the links found in html (href) and text (http/https URLs). */
15
+ links?: {
16
+ href: string;
17
+ text?: string;
18
+ }[];
19
+ /** Defaults to 4-8 digit numbers found in the subject and text. */
20
+ codes?: string[];
21
+ attachments?: FakeAttachment[];
22
+ /** Defaults to now. */
23
+ receivedUtc?: Date;
24
+ }
25
+ interface FakeMailPierOptions {
26
+ /** The only key the fake accepts. Default "mpi_test_key". */
27
+ apiKey?: string;
28
+ account?: string;
29
+ environment?: string;
30
+ /** Base domains; the first is the default for new addresses. Default ["mailpier.io"]. */
31
+ domains?: string[];
32
+ /** Port to listen on (127.0.0.1); 0 = any free port. */
33
+ port?: number;
34
+ }
35
+ interface FailNext {
36
+ status: number;
37
+ /** Retry-After seconds (sent on 429). */
38
+ retryAfter?: number;
39
+ error?: string;
40
+ /** How many requests in a row get this answer. Default 1. */
41
+ times?: number;
42
+ }
43
+ interface FakeMailPier {
44
+ /** e.g. http://127.0.0.1:53211 (use as baseUrl). */
45
+ readonly url: string;
46
+ readonly apiKey: string;
47
+ /** The default zone, e.g. qa.demo.mailpier.io: any `<anything>@<zone>` belongs to the environment. */
48
+ readonly zone: string;
49
+ /** Every request seen (method, path with query, Authorization header), oldest first. */
50
+ readonly requests: {
51
+ method: string;
52
+ url: string;
53
+ authorization?: string;
54
+ }[];
55
+ /** Stores a mail as if MailPier had received it; wakes waiting long-polls. Returns its id. */
56
+ deliver(mail: FakeMail): string;
57
+ /** The next API request(s) get this error instead of their answer (after the key check). */
58
+ failNext(f: FailNext): void;
59
+ /** Number of stored mails (all addresses). */
60
+ count(): number;
61
+ reset(): void;
62
+ close(): Promise<void>;
63
+ }
64
+ /** Starts the fake on 127.0.0.1. Always close() it (afterAll). */
65
+ declare function startFakeMailPier(options?: FakeMailPierOptions): Promise<FakeMailPier>;
66
+ /** Links like MailPier reports them: <a href> in the HTML (with its text), else http(s) URLs in the text. */
67
+ declare function findLinks(html?: string, text?: string): {
68
+ href: string;
69
+ text?: string;
70
+ }[];
71
+ /** One-time codes: 4-8 digit numbers in the subject and text, in order, without duplicates. */
72
+ declare function findCodes(subject?: string, text?: string): string[];
73
+
74
+ export { findCodes, findLinks, startFakeMailPier };
75
+ export type { FailNext, FakeAttachment, FakeMail, FakeMailPier, FakeMailPierOptions };