@unboundcx/sdk 4.13.119 → 4.13.120

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "4.13.119",
3
+ "version": "4.13.120",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -9,6 +9,19 @@ export class EmergencyService {
9
9
  return await internalRequest(this.sdk, '/emergency/me', 'GET', {});
10
10
  }
11
11
 
12
+ async deleteMyLocation() {
13
+ return await internalRequest(this.sdk, '/emergency/me', 'DELETE', {});
14
+ }
15
+
16
+ async listPersonalPlaces() {
17
+ return await internalRequest(this.sdk, '/emergency/personal', 'GET', {});
18
+ }
19
+
20
+ async deletePersonalPlace(id) {
21
+ this.sdk.validateParams({ id }, { id: { type: 'string', required: true } });
22
+ return await internalRequest(this.sdk, `/emergency/personal/${id}`, 'DELETE', {});
23
+ }
24
+
12
25
  async saveMyLocation(body) {
13
26
  this.sdk.validateParams(
14
27
  { body },
@@ -52,6 +65,18 @@ export class EmergencyService {
52
65
  });
53
66
  }
54
67
 
68
+ async listSiteDevices(id) {
69
+ this.sdk.validateParams({ id }, { id: { type: 'string', required: true } });
70
+ return await internalRequest(this.sdk, `/emergency/sites/${id}/devices`, 'GET', {});
71
+ }
72
+
73
+ async listSiteCalls(id, query = {}) {
74
+ this.sdk.validateParams({ id }, { id: { type: 'string', required: true } });
75
+ return await internalRequest(this.sdk, `/emergency/sites/${id}/calls`, 'GET', {
76
+ query,
77
+ });
78
+ }
79
+
55
80
  async deleteSite(id) {
56
81
  this.sdk.validateParams({ id }, { id: { type: 'string', required: true } });
57
82
  return await internalRequest(this.sdk, `/emergency/sites/${id}`, 'DELETE', {});