@masters-union/outbound-sdk 0.4.0 → 0.4.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/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -337,7 +337,7 @@ interface AddSuppressionParams {
|
|
|
337
337
|
interface SuppressionResponse {
|
|
338
338
|
suppression: Suppression;
|
|
339
339
|
}
|
|
340
|
-
type WebhookEvent = 'send' | 'delivery' | 'bounce' | 'complaint' | 'open' | 'click' | 'reject' | 'rendering_failure' | '
|
|
340
|
+
type WebhookEvent = 'send' | 'delivery' | 'bounce' | 'complaint' | 'open' | 'click' | 'reject' | 'rendering_failure' | 'dropped' | 'unsubscribe' | 'resubscribe';
|
|
341
341
|
/** @deprecated v1 is discontinued — all webhooks now use {@link IncomingWebhookEventV2}. */
|
|
342
342
|
interface IncomingWebhookEvent {
|
|
343
343
|
eventType: WebhookEvent;
|
|
@@ -358,7 +358,7 @@ interface IncomingWebhookPayload {
|
|
|
358
358
|
events: IncomingWebhookEvent[];
|
|
359
359
|
}
|
|
360
360
|
/** Internal status a v2 event maps to (past-tense of `event`). */
|
|
361
|
-
type WebhookEventStatus = 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'rejected' | 'rendering_failed' | '
|
|
361
|
+
type WebhookEventStatus = 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'rejected' | 'rendering_failed' | 'dropped' | 'unsubscribed' | 'resubscribed' | 'ping';
|
|
362
362
|
/** Curated, event-specific details. Only the keys relevant to the event are set. */
|
|
363
363
|
interface WebhookEventDetails {
|
|
364
364
|
/** bounce */
|
|
@@ -366,7 +366,7 @@ interface WebhookEventDetails {
|
|
|
366
366
|
bounceSubType?: string | null;
|
|
367
367
|
smtpStatus?: string | null;
|
|
368
368
|
diagnosticCode?: string | null;
|
|
369
|
-
/** bounce / reject / rendering_failure /
|
|
369
|
+
/** bounce / reject / rendering_failure / dropped (dropped carries the drop reason) */
|
|
370
370
|
failedReason?: string | null;
|
|
371
371
|
/** bounce / complaint — true when we auto-added the address to the suppression list */
|
|
372
372
|
suppressed?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -337,7 +337,7 @@ interface AddSuppressionParams {
|
|
|
337
337
|
interface SuppressionResponse {
|
|
338
338
|
suppression: Suppression;
|
|
339
339
|
}
|
|
340
|
-
type WebhookEvent = 'send' | 'delivery' | 'bounce' | 'complaint' | 'open' | 'click' | 'reject' | 'rendering_failure' | '
|
|
340
|
+
type WebhookEvent = 'send' | 'delivery' | 'bounce' | 'complaint' | 'open' | 'click' | 'reject' | 'rendering_failure' | 'dropped' | 'unsubscribe' | 'resubscribe';
|
|
341
341
|
/** @deprecated v1 is discontinued — all webhooks now use {@link IncomingWebhookEventV2}. */
|
|
342
342
|
interface IncomingWebhookEvent {
|
|
343
343
|
eventType: WebhookEvent;
|
|
@@ -358,7 +358,7 @@ interface IncomingWebhookPayload {
|
|
|
358
358
|
events: IncomingWebhookEvent[];
|
|
359
359
|
}
|
|
360
360
|
/** Internal status a v2 event maps to (past-tense of `event`). */
|
|
361
|
-
type WebhookEventStatus = 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'rejected' | 'rendering_failed' | '
|
|
361
|
+
type WebhookEventStatus = 'sent' | 'delivered' | 'bounced' | 'complained' | 'opened' | 'clicked' | 'rejected' | 'rendering_failed' | 'dropped' | 'unsubscribed' | 'resubscribed' | 'ping';
|
|
362
362
|
/** Curated, event-specific details. Only the keys relevant to the event are set. */
|
|
363
363
|
interface WebhookEventDetails {
|
|
364
364
|
/** bounce */
|
|
@@ -366,7 +366,7 @@ interface WebhookEventDetails {
|
|
|
366
366
|
bounceSubType?: string | null;
|
|
367
367
|
smtpStatus?: string | null;
|
|
368
368
|
diagnosticCode?: string | null;
|
|
369
|
-
/** bounce / reject / rendering_failure /
|
|
369
|
+
/** bounce / reject / rendering_failure / dropped (dropped carries the drop reason) */
|
|
370
370
|
failedReason?: string | null;
|
|
371
371
|
/** bounce / complaint — true when we auto-added the address to the suppression list */
|
|
372
372
|
suppressed?: boolean;
|