@unboundcx/sdk 4.0.4 → 4.0.5
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 +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unboundcx/sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
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
|
@@ -428,6 +428,19 @@ export class VideoService {
|
|
|
428
428
|
return await this.sdk._fetch(`/video/${roomId}`, 'GET', params);
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
// Live roster for a meeting card: { counts, inMeeting: [...], inWaiting: [...] }.
|
|
432
|
+
async getLivePresence(roomId) {
|
|
433
|
+
this.sdk.validateParams(
|
|
434
|
+
{ roomId },
|
|
435
|
+
{ roomId: { type: 'string', required: true } },
|
|
436
|
+
);
|
|
437
|
+
const result = await this.sdk._fetch(
|
|
438
|
+
`/video/${roomId}/livePresence`,
|
|
439
|
+
'GET',
|
|
440
|
+
);
|
|
441
|
+
return result;
|
|
442
|
+
}
|
|
443
|
+
|
|
431
444
|
async listMeetings(options = {}) {
|
|
432
445
|
// Validate optional parameters
|
|
433
446
|
const validationSchema = {};
|