whio-api-sdk 1.0.238-beta-staging → 1.0.239-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.
@@ -1,5 +1,5 @@
1
1
  import { BaseClient } from './base-client';
2
- import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto } from '../types';
2
+ import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto, ForwardToTiakiResponse } from '../types';
3
3
  export declare class SessionModule extends BaseClient {
4
4
  createSession(sessionData: CreateSessionDto): Promise<Session>;
5
5
  getSessions(): Promise<Session[]>;
@@ -14,4 +14,5 @@ export declare class SessionModule extends BaseClient {
14
14
  sessionId: string;
15
15
  }>;
16
16
  setAudioStreamStatus(data: SetAudioStreamStatusDto): Promise<Session>;
17
+ forwardToTiaki(sessionId: string): Promise<ForwardToTiakiResponse>;
17
18
  }
@@ -60,4 +60,9 @@ export class SessionModule extends BaseClient {
60
60
  return this.request(`${urls.sessions}/set-audio-stream-status`, 'PATCH', data);
61
61
  });
62
62
  }
63
+ forwardToTiaki(sessionId) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ return this.request(`${urls.sessions}/forward-to-tiaki/${sessionId}`, 'POST');
66
+ });
67
+ }
63
68
  }
@@ -131,6 +131,7 @@ export declare class ApiSDK extends BaseClient {
131
131
  sessionId: string;
132
132
  }>;
133
133
  setAudioStreamStatus(...args: Parameters<SessionModule['setAudioStreamStatus']>): Promise<import("./types").Session>;
134
+ forwardToTiaki(...args: Parameters<SessionModule['forwardToTiaki']>): Promise<import("./types").ForwardToTiakiResponse>;
134
135
  createAgent(...args: Parameters<AgentModule['createAgent']>): Promise<import("./types").Agent>;
135
136
  getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").Agent[]>;
136
137
  getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").Agent>;
@@ -516,6 +516,11 @@ export class ApiSDK extends BaseClient {
516
516
  return this.sessions.setAudioStreamStatus(...args);
517
517
  });
518
518
  }
519
+ forwardToTiaki(...args) {
520
+ return __awaiter(this, void 0, void 0, function* () {
521
+ return this.sessions.forwardToTiaki(...args);
522
+ });
523
+ }
519
524
  // Agent methods
520
525
  createAgent(...args) {
521
526
  return __awaiter(this, void 0, void 0, function* () {
@@ -67,3 +67,7 @@ export interface SetAudioStreamStatusDto {
67
67
  sessionId: string;
68
68
  audioStreamStatus: AudioStreamStatus;
69
69
  }
70
+ export interface ForwardToTiakiResponse {
71
+ success: boolean;
72
+ message?: string;
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.238-beta-staging",
3
+ "version": "1.0.239-beta-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
1
  import { BaseClient } from './base-client';
2
- import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto } from '../types';
2
+ import { Session, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto, ForwardToTiakiResponse } from '../types';
3
3
  import urls from '../urls';
4
4
 
5
5
  export class SessionModule extends BaseClient {
@@ -42,4 +42,8 @@ export class SessionModule extends BaseClient {
42
42
  public async setAudioStreamStatus(data: SetAudioStreamStatusDto): Promise<Session> {
43
43
  return this.request<Session>(`${urls.sessions}/set-audio-stream-status`, 'PATCH', data);
44
44
  }
45
+
46
+ public async forwardToTiaki(sessionId: string): Promise<ForwardToTiakiResponse> {
47
+ return this.request<ForwardToTiakiResponse>(`${urls.sessions}/forward-to-tiaki/${sessionId}`, 'POST');
48
+ }
45
49
  }
package/src/sdk/sdk.ts CHANGED
@@ -462,6 +462,10 @@ export class ApiSDK extends BaseClient {
462
462
  return this.sessions.setAudioStreamStatus(...args);
463
463
  }
464
464
 
465
+ public async forwardToTiaki(...args: Parameters<SessionModule['forwardToTiaki']>) {
466
+ return this.sessions.forwardToTiaki(...args);
467
+ }
468
+
465
469
  // Agent methods
466
470
  public async createAgent(...args: Parameters<AgentModule['createAgent']>) {
467
471
  return this.agents.createAgent(...args);
@@ -77,3 +77,8 @@ export interface SetAudioStreamStatusDto {
77
77
  sessionId: string;
78
78
  audioStreamStatus: AudioStreamStatus;
79
79
  }
80
+
81
+ export interface ForwardToTiakiResponse {
82
+ success: boolean;
83
+ message?: string;
84
+ }