@unboundcx/sdk 4.13.118 → 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.
|
|
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",
|
package/services/emergency.js
CHANGED
|
@@ -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', {});
|
|
@@ -31,6 +31,7 @@ export class CcBotsService {
|
|
|
31
31
|
* @param {string} params.slug
|
|
32
32
|
* @param {string} [params.soulMd]
|
|
33
33
|
* @param {string} [params.modelId] platform catalog id
|
|
34
|
+
* @param {string} [params.modelTier] basic | standard | advanced
|
|
34
35
|
* @param {string} [params.provider]
|
|
35
36
|
* @param {string} [params.model]
|
|
36
37
|
* @param {string} [params.queueId]
|
|
@@ -42,6 +43,7 @@ export class CcBotsService {
|
|
|
42
43
|
slug,
|
|
43
44
|
soulMd,
|
|
44
45
|
modelId,
|
|
46
|
+
modelTier,
|
|
45
47
|
provider,
|
|
46
48
|
model,
|
|
47
49
|
queueId,
|
|
@@ -57,6 +59,7 @@ export class CcBotsService {
|
|
|
57
59
|
const body = { name, slug };
|
|
58
60
|
if (soulMd !== undefined) body.soulMd = soulMd;
|
|
59
61
|
if (modelId !== undefined) body.modelId = modelId;
|
|
62
|
+
if (modelTier !== undefined) body.modelTier = modelTier;
|
|
60
63
|
if (provider !== undefined) body.provider = provider;
|
|
61
64
|
if (model !== undefined) body.model = model;
|
|
62
65
|
if (queueId !== undefined) body.queueId = queueId;
|
|
@@ -90,6 +93,7 @@ export class CcBotsService {
|
|
|
90
93
|
'provider',
|
|
91
94
|
'model',
|
|
92
95
|
'modelId',
|
|
96
|
+
'modelTier',
|
|
93
97
|
'mediaProvider',
|
|
94
98
|
'mediaModel',
|
|
95
99
|
'voiceId',
|
|
@@ -192,6 +196,7 @@ export class CcBotsService {
|
|
|
192
196
|
'provider',
|
|
193
197
|
'model',
|
|
194
198
|
'modelId',
|
|
199
|
+
'modelTier',
|
|
195
200
|
'mediaProvider',
|
|
196
201
|
'mediaModel',
|
|
197
202
|
'voiceId',
|