whio-api-sdk 1.0.207-beta-staging → 1.0.209-beta-staging

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.
@@ -114,6 +114,7 @@ export declare class ApiSDK extends BaseClient {
114
114
  message: string;
115
115
  sessionId: string;
116
116
  }>;
117
+ setAudioStreamStatus(...args: Parameters<SessionModule['setAudioStreamStatus']>): Promise<import("./types").Session>;
117
118
  createAgent(...args: Parameters<AgentModule['createAgent']>): Promise<import("./types").Agent>;
118
119
  getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").Agent[]>;
119
120
  getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").Agent>;
@@ -194,4 +195,6 @@ export declare class ApiSDK extends BaseClient {
194
195
  onWebSocketEvent(...args: Parameters<WebSocketModule['on']>): void;
195
196
  offWebSocketEvent(...args: Parameters<WebSocketModule['off']>): void;
196
197
  getWebSocketStats(): import("./types").WebSocketConnectionStats;
198
+ subscribe(...args: Parameters<WebSocketModule['on']>): void;
199
+ unsubscribe(...args: Parameters<WebSocketModule['off']>): void;
197
200
  }
@@ -434,6 +434,11 @@ export class ApiSDK extends BaseClient {
434
434
  return this.sessions.rerunTranscription(...args);
435
435
  });
436
436
  }
437
+ setAudioStreamStatus(...args) {
438
+ return __awaiter(this, void 0, void 0, function* () {
439
+ return this.sessions.setAudioStreamStatus(...args);
440
+ });
441
+ }
437
442
  // Agent methods
438
443
  createAgent(...args) {
439
444
  return __awaiter(this, void 0, void 0, function* () {
@@ -795,4 +800,10 @@ export class ApiSDK extends BaseClient {
795
800
  getWebSocketStats() {
796
801
  return this.websocket.getConnectionStats();
797
802
  }
803
+ subscribe(...args) {
804
+ return this.websocket.on(...args);
805
+ }
806
+ unsubscribe(...args) {
807
+ return this.websocket.off(...args);
808
+ }
798
809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.207-beta-staging",
3
+ "version": "1.0.209-beta-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -370,6 +370,10 @@ export class ApiSDK extends BaseClient {
370
370
  return this.sessions.rerunTranscription(...args);
371
371
  }
372
372
 
373
+ public async setAudioStreamStatus(...args: Parameters<SessionModule['setAudioStreamStatus']>) {
374
+ return this.sessions.setAudioStreamStatus(...args);
375
+ }
376
+
373
377
  // Agent methods
374
378
  public async createAgent(...args: Parameters<AgentModule['createAgent']>) {
375
379
  return this.agents.createAgent(...args);
@@ -672,4 +676,12 @@ export class ApiSDK extends BaseClient {
672
676
  public getWebSocketStats() {
673
677
  return this.websocket.getConnectionStats();
674
678
  }
679
+
680
+ public subscribe(...args: Parameters<WebSocketModule['on']>) {
681
+ return this.websocket.on(...args);
682
+ }
683
+
684
+ public unsubscribe(...args: Parameters<WebSocketModule['off']>) {
685
+ return this.websocket.off(...args);
686
+ }
675
687
  }