@unboundcx/sdk 2.8.0 → 2.8.1

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": "2.8.0",
3
+ "version": "2.8.1",
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
@@ -379,11 +379,12 @@ export class VideoService {
379
379
  return result;
380
380
  }
381
381
 
382
- async validateGuestToken(token) {
382
+ async validateGuestToken(id, token) {
383
383
  this.sdk.validateParams(
384
- { token },
384
+ { id, token },
385
385
  {
386
- token: { type: 'string', required: true },
386
+ id: { type: 'string', required: true },
387
+ token: { type: 'string', required: false },
387
388
  },
388
389
  );
389
390
 
@@ -392,7 +393,7 @@ export class VideoService {
392
393
  };
393
394
 
394
395
  const result = await this.sdk._fetch(
395
- '/video/validateGuestToken',
396
+ `/video/${id}/validate`,
396
397
  'POST',
397
398
  params,
398
399
  );