@easybits.cloud/mailmask 0.3.1 → 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/dist/index.d.cts CHANGED
@@ -91,10 +91,13 @@ interface EmailLog {
91
91
  from: string;
92
92
  to: string;
93
93
  subject: string;
94
- status: string;
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;
@@ -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
- status: string;
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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easybits.cloud/mailmask",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Official SDK for the MailMask email alias/forwarding API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",