@easybits.cloud/mailmask 0.3.0 → 0.3.2
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/README.md +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ await mm.suppressions.list(domainId);
|
|
|
54
54
|
await mm.suppressions.remove(domainId, "fixed@example.com");
|
|
55
55
|
|
|
56
56
|
// Webhooks (Developer plan) — secret is shown once
|
|
57
|
-
const wh = await mm.webhooks.create(domainId, { url: "https://app.example.com/hooks/mailmask", events: ["email.received", "email.bounced"] });
|
|
57
|
+
const wh = await mm.webhooks.create(domainId, { url: "https://app.example.com/hooks/mailmask", events: ["email.received", "email.delivered", "email.bounced"] });
|
|
58
58
|
|
|
59
59
|
// On your server: verify the signature with the raw body
|
|
60
60
|
import { verifyWebhookSignature } from "@easybits.cloud/mailmask";
|
package/dist/index.d.cts
CHANGED
|
@@ -91,10 +91,13 @@ interface EmailLog {
|
|
|
91
91
|
from: string;
|
|
92
92
|
to: string;
|
|
93
93
|
subject: string;
|
|
94
|
-
|
|
94
|
+
/** Entrantes: forwarded, discarded, failed, rule_matched. Salientes: sent → delivered | bounced | complained. */
|
|
95
|
+
status: "forwarded" | "discarded" | "failed" | "rule_matched" | "sent" | "delivered" | "bounced" | "complained";
|
|
95
96
|
forwardedTo: string;
|
|
96
97
|
sizeBytes: number;
|
|
97
98
|
error?: string;
|
|
99
|
+
/** Id interno de SES; cruza el log con los eventos de entrega. Sólo en salientes. */
|
|
100
|
+
sesMessageId?: string;
|
|
98
101
|
}
|
|
99
102
|
interface SendEmailInput {
|
|
100
103
|
to: string;
|
|
@@ -152,7 +155,7 @@ interface Suppression {
|
|
|
152
155
|
reason: string;
|
|
153
156
|
createdAt: string;
|
|
154
157
|
}
|
|
155
|
-
type WebhookEvent = "email.received" | "email.sent" | "email.bounced" | "email.complained";
|
|
158
|
+
type WebhookEvent = "email.received" | "email.sent" | "email.delivered" | "email.bounced" | "email.complained";
|
|
156
159
|
interface Webhook {
|
|
157
160
|
id: string;
|
|
158
161
|
domainId: string;
|
|
@@ -321,6 +324,7 @@ declare class SendResource {
|
|
|
321
324
|
send(domainId: string, input: SendEmailInput, opts?: SendOptions): Promise<{
|
|
322
325
|
ok: boolean;
|
|
323
326
|
messageId: string;
|
|
327
|
+
sesMessageId: string;
|
|
324
328
|
}>;
|
|
325
329
|
bulkSend(domainId: string, input: BulkSendInput): Promise<BulkJobCreated>;
|
|
326
330
|
bulkStatus(domainId: string, jobId: string): Promise<BulkJob>;
|
package/dist/index.d.ts
CHANGED
|
@@ -91,10 +91,13 @@ interface EmailLog {
|
|
|
91
91
|
from: string;
|
|
92
92
|
to: string;
|
|
93
93
|
subject: string;
|
|
94
|
-
|
|
94
|
+
/** Entrantes: forwarded, discarded, failed, rule_matched. Salientes: sent → delivered | bounced | complained. */
|
|
95
|
+
status: "forwarded" | "discarded" | "failed" | "rule_matched" | "sent" | "delivered" | "bounced" | "complained";
|
|
95
96
|
forwardedTo: string;
|
|
96
97
|
sizeBytes: number;
|
|
97
98
|
error?: string;
|
|
99
|
+
/** Id interno de SES; cruza el log con los eventos de entrega. Sólo en salientes. */
|
|
100
|
+
sesMessageId?: string;
|
|
98
101
|
}
|
|
99
102
|
interface SendEmailInput {
|
|
100
103
|
to: string;
|
|
@@ -152,7 +155,7 @@ interface Suppression {
|
|
|
152
155
|
reason: string;
|
|
153
156
|
createdAt: string;
|
|
154
157
|
}
|
|
155
|
-
type WebhookEvent = "email.received" | "email.sent" | "email.bounced" | "email.complained";
|
|
158
|
+
type WebhookEvent = "email.received" | "email.sent" | "email.delivered" | "email.bounced" | "email.complained";
|
|
156
159
|
interface Webhook {
|
|
157
160
|
id: string;
|
|
158
161
|
domainId: string;
|
|
@@ -321,6 +324,7 @@ declare class SendResource {
|
|
|
321
324
|
send(domainId: string, input: SendEmailInput, opts?: SendOptions): Promise<{
|
|
322
325
|
ok: boolean;
|
|
323
326
|
messageId: string;
|
|
327
|
+
sesMessageId: string;
|
|
324
328
|
}>;
|
|
325
329
|
bulkSend(domainId: string, input: BulkSendInput): Promise<BulkJobCreated>;
|
|
326
330
|
bulkStatus(domainId: string, jobId: string): Promise<BulkJob>;
|