@sendly/node
Advanced tools
+13
-0
@@ -514,2 +514,9 @@ /** | ||
| /** | ||
| * Webhook mode - filters which events are delivered | ||
| * - "all": Receives all events (sandbox + production) | ||
| * - "test": Only sandbox/test events (livemode: false) | ||
| * - "live": Only production events (livemode: true) - requires verification | ||
| */ | ||
| type WebhookMode = "all" | "test" | "live"; | ||
| /** | ||
| * Circuit breaker state for webhook delivery | ||
@@ -534,2 +541,4 @@ */ | ||
| description?: string; | ||
| /** Event mode filter */ | ||
| mode: WebhookMode; | ||
| /** Whether the webhook is active */ | ||
@@ -579,2 +588,4 @@ isActive: boolean; | ||
| description?: string; | ||
| /** Event mode filter (defaults to "all") */ | ||
| mode?: WebhookMode; | ||
| /** Custom metadata */ | ||
@@ -593,2 +604,4 @@ metadata?: Record<string, unknown>; | ||
| description?: string; | ||
| /** Event mode filter */ | ||
| mode?: WebhookMode; | ||
| /** Enable/disable webhook */ | ||
@@ -595,0 +608,0 @@ isActive?: boolean; |
+13
-0
@@ -514,2 +514,9 @@ /** | ||
| /** | ||
| * Webhook mode - filters which events are delivered | ||
| * - "all": Receives all events (sandbox + production) | ||
| * - "test": Only sandbox/test events (livemode: false) | ||
| * - "live": Only production events (livemode: true) - requires verification | ||
| */ | ||
| type WebhookMode = "all" | "test" | "live"; | ||
| /** | ||
| * Circuit breaker state for webhook delivery | ||
@@ -534,2 +541,4 @@ */ | ||
| description?: string; | ||
| /** Event mode filter */ | ||
| mode: WebhookMode; | ||
| /** Whether the webhook is active */ | ||
@@ -579,2 +588,4 @@ isActive: boolean; | ||
| description?: string; | ||
| /** Event mode filter (defaults to "all") */ | ||
| mode?: WebhookMode; | ||
| /** Custom metadata */ | ||
@@ -593,2 +604,4 @@ metadata?: Record<string, unknown>; | ||
| description?: string; | ||
| /** Event mode filter */ | ||
| mode?: WebhookMode; | ||
| /** Enable/disable webhook */ | ||
@@ -595,0 +608,0 @@ isActive?: boolean; |
+2
-0
@@ -1044,2 +1044,3 @@ "use strict"; | ||
| ...options.description && { description: options.description }, | ||
| ...options.mode && { mode: options.mode }, | ||
| ...options.metadata && { metadata: options.metadata } | ||
@@ -1135,2 +1136,3 @@ } | ||
| ...options.isActive !== void 0 && { is_active: options.isActive }, | ||
| ...options.mode !== void 0 && { mode: options.mode }, | ||
| ...options.metadata !== void 0 && { metadata: options.metadata } | ||
@@ -1137,0 +1139,0 @@ } |
+2
-0
@@ -984,2 +984,3 @@ // src/errors.ts | ||
| ...options.description && { description: options.description }, | ||
| ...options.mode && { mode: options.mode }, | ||
| ...options.metadata && { metadata: options.metadata } | ||
@@ -1075,2 +1076,3 @@ } | ||
| ...options.isActive !== void 0 && { is_active: options.isActive }, | ||
| ...options.mode !== void 0 && { mode: options.mode }, | ||
| ...options.metadata !== void 0 && { metadata: options.metadata } | ||
@@ -1077,0 +1079,0 @@ } |
+1
-1
| { | ||
| "name": "@sendly/node", | ||
| "version": "3.0.0", | ||
| "version": "3.1.0", | ||
| "description": "Official Sendly Node.js SDK for SMS messaging", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
205598
0.57%5277
0.32%