@unboundcx/sdk 4.13.9 → 4.13.10

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.9",
3
+ "version": "4.13.10",
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",
@@ -844,4 +844,25 @@ export class TaskService {
844
844
  const result = await internalRequest(this.sdk, '/taskRouter/tasks/', 'PUT', params);
845
845
  return result;
846
846
  }
847
+
848
+ /**
849
+ * Get the voice transcript for a task, keyed by the media-manager
850
+ * bridgeId (not sipCallId) so it works across requeue/transfer.
851
+ *
852
+ * @param {string} taskId - The task ID to fetch a transcript for
853
+ * @returns {Promise<Object>} { bridgeId, messages } — bridgeId is null
854
+ * and messages is [] for chat/email tasks or tasks with no bridge yet.
855
+ */
856
+ async getTranscript(taskId) {
857
+ this.sdk.validateParams(
858
+ { taskId },
859
+ { taskId: { type: 'string', required: true } },
860
+ );
861
+ return await internalRequest(
862
+ this.sdk,
863
+ `/taskRouter/tasks/${taskId}/transcript`,
864
+ 'GET',
865
+ {},
866
+ );
867
+ }
847
868
  }