@easybits.cloud/mailmask 0.3.0 → 0.3.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/README.md +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- 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
|
@@ -152,7 +152,7 @@ interface Suppression {
|
|
|
152
152
|
reason: string;
|
|
153
153
|
createdAt: string;
|
|
154
154
|
}
|
|
155
|
-
type WebhookEvent = "email.received" | "email.sent" | "email.bounced" | "email.complained";
|
|
155
|
+
type WebhookEvent = "email.received" | "email.sent" | "email.delivered" | "email.bounced" | "email.complained";
|
|
156
156
|
interface Webhook {
|
|
157
157
|
id: string;
|
|
158
158
|
domainId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ interface Suppression {
|
|
|
152
152
|
reason: string;
|
|
153
153
|
createdAt: string;
|
|
154
154
|
}
|
|
155
|
-
type WebhookEvent = "email.received" | "email.sent" | "email.bounced" | "email.complained";
|
|
155
|
+
type WebhookEvent = "email.received" | "email.sent" | "email.delivered" | "email.bounced" | "email.complained";
|
|
156
156
|
interface Webhook {
|
|
157
157
|
id: string;
|
|
158
158
|
domainId: string;
|