@unboundcx/sdk 4.13.161 → 4.13.163

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