@unboundcx/sdk 4.13.161 → 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.161",
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",
@@ -250,4 +250,26 @@ export class CcBotsService {
250
250
  { body: { queueId } },
251
251
  );
252
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
+ }
253
275
  }