@masters-union/outbound-sdk 0.2.11 → 0.2.13

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 CHANGED
@@ -443,8 +443,9 @@ interface IncomingWebhookEventV2 {
443
443
  /** The JSON body POSTed to a v2 webhook endpoint. */
444
444
  interface IncomingWebhookPayloadV2 {
445
445
  webhookId: string;
446
- /** Batch-level idempotency key (also in the X-Webhook-Delivery-Id header). */
447
- deliveryId: string;
446
+ /** Webhook delivery (dispatch) id one per POST/batch, stable across retries.
447
+ * Batch-level idempotency key (also in the X-Webhook-Delivery-Id header). */
448
+ webhookDeliveryId: string;
448
449
  version: 2;
449
450
  timestamp: string;
450
451
  events: IncomingWebhookEventV2[];
@@ -457,14 +458,18 @@ type AnyIncomingWebhookPayload = IncomingWebhookPayload | IncomingWebhookPayload
457
458
  interface CreateWebhookParams {
458
459
  url: string;
459
460
  events: WebhookEvent[];
461
+ /** Seconds between retry attempts. Min 30, max 86400 (24 hours). Defaults to 300 (5 minutes). */
460
462
  retryInterval?: number;
463
+ /** Number of retry attempts on delivery failure. Between 0 and 10. Defaults to 3. */
461
464
  maxRetries?: number;
462
465
  }
463
466
  interface UpdateWebhookParams {
464
467
  url?: string;
465
468
  events?: WebhookEvent[];
466
469
  active?: boolean;
470
+ /** Seconds between retry attempts. Min 30, max 86400 (24 hours). */
467
471
  retryInterval?: number;
472
+ /** Number of retry attempts on delivery failure. Between 0 and 10. */
468
473
  maxRetries?: number;
469
474
  }
470
475
  interface Webhook {
package/dist/index.d.ts CHANGED
@@ -443,8 +443,9 @@ interface IncomingWebhookEventV2 {
443
443
  /** The JSON body POSTed to a v2 webhook endpoint. */
444
444
  interface IncomingWebhookPayloadV2 {
445
445
  webhookId: string;
446
- /** Batch-level idempotency key (also in the X-Webhook-Delivery-Id header). */
447
- deliveryId: string;
446
+ /** Webhook delivery (dispatch) id one per POST/batch, stable across retries.
447
+ * Batch-level idempotency key (also in the X-Webhook-Delivery-Id header). */
448
+ webhookDeliveryId: string;
448
449
  version: 2;
449
450
  timestamp: string;
450
451
  events: IncomingWebhookEventV2[];
@@ -457,14 +458,18 @@ type AnyIncomingWebhookPayload = IncomingWebhookPayload | IncomingWebhookPayload
457
458
  interface CreateWebhookParams {
458
459
  url: string;
459
460
  events: WebhookEvent[];
461
+ /** Seconds between retry attempts. Min 30, max 86400 (24 hours). Defaults to 300 (5 minutes). */
460
462
  retryInterval?: number;
463
+ /** Number of retry attempts on delivery failure. Between 0 and 10. Defaults to 3. */
461
464
  maxRetries?: number;
462
465
  }
463
466
  interface UpdateWebhookParams {
464
467
  url?: string;
465
468
  events?: WebhookEvent[];
466
469
  active?: boolean;
470
+ /** Seconds between retry attempts. Min 30, max 86400 (24 hours). */
467
471
  retryInterval?: number;
472
+ /** Number of retry attempts on delivery failure. Between 0 and 10. */
468
473
  maxRetries?: number;
469
474
  }
470
475
  interface Webhook {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masters-union/outbound-sdk",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Official Node.js SDK for the Outbound Email SaaS platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",