@sendly/node 1.0.5 → 1.0.7

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 CHANGED
@@ -137,7 +137,7 @@ const sendly = new Sendly({
137
137
  apiKey: 'sk_live_v1_xxx',
138
138
 
139
139
  // Optional: Custom base URL (for testing)
140
- baseUrl: 'https://sendly.live/api',
140
+ baseUrl: 'https://sendly.live/api/v1',
141
141
 
142
142
  // Optional: Request timeout in ms (default: 30000)
143
143
  timeout: 60000,
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ interface SendlyConfig {
12
12
  apiKey: string;
13
13
  /**
14
14
  * Base URL for the Sendly API
15
- * @default "https://sendly.live/api"
15
+ * @default "https://sendly.live/api/v1"
16
16
  */
17
17
  baseUrl?: string;
18
18
  /**
@@ -309,7 +309,7 @@ interface BatchMessageResult {
309
309
  /**
310
310
  * Batch status values
311
311
  */
312
- type BatchStatus = "processing" | "completed" | "partial_failure";
312
+ type BatchStatus = "processing" | "completed" | "partial_failure" | "failed";
313
313
  /**
314
314
  * Response from sending batch messages
315
315
  */
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ interface SendlyConfig {
12
12
  apiKey: string;
13
13
  /**
14
14
  * Base URL for the Sendly API
15
- * @default "https://sendly.live/api"
15
+ * @default "https://sendly.live/api/v1"
16
16
  */
17
17
  baseUrl?: string;
18
18
  /**
@@ -309,7 +309,7 @@ interface BatchMessageResult {
309
309
  /**
310
310
  * Batch status values
311
311
  */
312
- type BatchStatus = "processing" | "completed" | "partial_failure";
312
+ type BatchStatus = "processing" | "completed" | "partial_failure" | "failed";
313
313
  /**
314
314
  * Response from sending batch messages
315
315
  */
package/dist/index.js CHANGED
@@ -182,7 +182,7 @@ var TimeoutError = class extends SendlyError {
182
182
  };
183
183
 
184
184
  // src/utils/http.ts
185
- var DEFAULT_BASE_URL = "https://sendly.live/api/";
185
+ var DEFAULT_BASE_URL = "https://sendly.live/api/v1";
186
186
  var DEFAULT_TIMEOUT = 3e4;
187
187
  var DEFAULT_MAX_RETRIES = 3;
188
188
  var HttpClient = class {
@@ -339,7 +339,7 @@ var HttpClient = class {
339
339
  Authorization: `Bearer ${this.config.apiKey}`,
340
340
  "Content-Type": "application/json",
341
341
  Accept: "application/json",
342
- "User-Agent": "@sendly/node/1.0.0",
342
+ "User-Agent": "@sendly/node/1.0.5",
343
343
  ...additionalHeaders
344
344
  };
345
345
  }
@@ -979,7 +979,7 @@ var MessagesResource = class {
979
979
  };
980
980
 
981
981
  // src/client.ts
982
- var DEFAULT_BASE_URL2 = "https://sendly.live/api";
982
+ var DEFAULT_BASE_URL2 = "https://sendly.live/api/v1";
983
983
  var DEFAULT_TIMEOUT2 = 3e4;
984
984
  var DEFAULT_MAX_RETRIES2 = 3;
985
985
  var Sendly = class {
package/dist/index.mjs CHANGED
@@ -122,7 +122,7 @@ var TimeoutError = class extends SendlyError {
122
122
  };
123
123
 
124
124
  // src/utils/http.ts
125
- var DEFAULT_BASE_URL = "https://sendly.live/api/";
125
+ var DEFAULT_BASE_URL = "https://sendly.live/api/v1";
126
126
  var DEFAULT_TIMEOUT = 3e4;
127
127
  var DEFAULT_MAX_RETRIES = 3;
128
128
  var HttpClient = class {
@@ -279,7 +279,7 @@ var HttpClient = class {
279
279
  Authorization: `Bearer ${this.config.apiKey}`,
280
280
  "Content-Type": "application/json",
281
281
  Accept: "application/json",
282
- "User-Agent": "@sendly/node/1.0.0",
282
+ "User-Agent": "@sendly/node/1.0.5",
283
283
  ...additionalHeaders
284
284
  };
285
285
  }
@@ -919,7 +919,7 @@ var MessagesResource = class {
919
919
  };
920
920
 
921
921
  // src/client.ts
922
- var DEFAULT_BASE_URL2 = "https://sendly.live/api";
922
+ var DEFAULT_BASE_URL2 = "https://sendly.live/api/v1";
923
923
  var DEFAULT_TIMEOUT2 = 3e4;
924
924
  var DEFAULT_MAX_RETRIES2 = 3;
925
925
  var Sendly = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendly/node",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Official Sendly Node.js SDK for SMS messaging",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",