@unboundcx/sdk 4.13.160 → 4.13.162
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.162",
|
|
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",
|
|
@@ -101,6 +101,7 @@ export class CcBotsService {
|
|
|
101
101
|
'paused',
|
|
102
102
|
'acceptChannels',
|
|
103
103
|
'useChannels',
|
|
104
|
+
'defaultTools',
|
|
104
105
|
'groupId',
|
|
105
106
|
'groupOverrides',
|
|
106
107
|
'inherit',
|
|
@@ -249,4 +250,26 @@ export class CcBotsService {
|
|
|
249
250
|
{ body: { queueId } },
|
|
250
251
|
);
|
|
251
252
|
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Log a CC bot out of a queue (soft-deletes queueUsers + worker removeQueues).
|
|
256
|
+
* @param {string} id
|
|
257
|
+
* @param {Object} params
|
|
258
|
+
* @param {string} params.queueId
|
|
259
|
+
* @returns {Promise<Object>}
|
|
260
|
+
*/
|
|
261
|
+
async removeFromQueue(id, { queueId } = {}) {
|
|
262
|
+
this.sdk.validateParams(
|
|
263
|
+
{ id, queueId },
|
|
264
|
+
{
|
|
265
|
+
id: { type: 'string', required: true },
|
|
266
|
+
queueId: { type: 'string', required: true },
|
|
267
|
+
},
|
|
268
|
+
);
|
|
269
|
+
return internalRequest(
|
|
270
|
+
this.sdk,
|
|
271
|
+
`/taskRouter/ccBots/${id}/queues/${queueId}`,
|
|
272
|
+
'DELETE',
|
|
273
|
+
);
|
|
274
|
+
}
|
|
252
275
|
}
|