@unboundcx/sdk 4.13.158 → 4.13.160
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 +1 -1
- package/services/video.js +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.160",
|
|
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/video.js
CHANGED
|
@@ -1135,6 +1135,32 @@ export class VideoService {
|
|
|
1135
1135
|
return result;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
+
/**
|
|
1139
|
+
* Host-only: (re)generate the post-meeting AI summary from the saved
|
|
1140
|
+
* transcript. Use when a meeting has a transcript but no summary (the
|
|
1141
|
+
* post-close job failed), or to refresh a stale one. Creates a new
|
|
1142
|
+
* summary; prior host edits are superseded.
|
|
1143
|
+
* @param {string} roomId - The video room ID
|
|
1144
|
+
* @returns {Promise<{summary: Object|null, reason?: 'too_short'|'no_transcript', wordCount?: number}>}
|
|
1145
|
+
* Same shape as getSummary(); `summary` is null with a `reason` when
|
|
1146
|
+
* there was nothing to summarize.
|
|
1147
|
+
*/
|
|
1148
|
+
async regenerateSummary(roomId) {
|
|
1149
|
+
this.sdk.validateParams(
|
|
1150
|
+
{ roomId },
|
|
1151
|
+
{
|
|
1152
|
+
roomId: { type: 'string', required: true },
|
|
1153
|
+
},
|
|
1154
|
+
);
|
|
1155
|
+
|
|
1156
|
+
const result = await internalRequest(
|
|
1157
|
+
this.sdk,
|
|
1158
|
+
`/video/${roomId}/summary/regenerate`,
|
|
1159
|
+
'POST',
|
|
1160
|
+
);
|
|
1161
|
+
return result;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1138
1164
|
/**
|
|
1139
1165
|
* Host-only edit of a video room's post-meeting AI summary
|
|
1140
1166
|
* @param {string} roomId - The video room ID
|