@wildix/wda-stream-client 1.1.46 → 1.1.48

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.
@@ -6,6 +6,9 @@ const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
6
6
  const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
7
7
  const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
8
8
  const GetOngoingCallCommand_1 = require("./commands/GetOngoingCallCommand");
9
+ const GetOngoingCallTranscriptionCommand_1 = require("./commands/GetOngoingCallTranscriptionCommand");
10
+ const GetOngoingConferenceCommand_1 = require("./commands/GetOngoingConferenceCommand");
11
+ const GetOngoingConferenceTranscriptionCommand_1 = require("./commands/GetOngoingConferenceTranscriptionCommand");
9
12
  const ListServicesCommand_1 = require("./commands/ListServicesCommand");
10
13
  const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
11
14
  const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
@@ -17,6 +20,9 @@ const commands = {
17
20
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
18
21
  GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
19
22
  GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
23
+ GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
24
+ GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
25
+ GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
20
26
  ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
21
27
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
22
28
  QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingCallTranscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOngoingCallTranscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingCallTranscription", {})
15
+ .n("WdaStreamClient", "GetOngoingCallTranscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingCallTranscriptionCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingCallTranscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingCallTranscriptionCommand = GetOngoingCallTranscriptionCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingConferenceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOngoingConferenceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingConference", {})
15
+ .n("WdaStreamClient", "GetOngoingConferenceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingConferenceCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingConferenceCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingConferenceCommand = GetOngoingConferenceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingConferenceTranscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetOngoingConferenceTranscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingConferenceTranscription", {})
15
+ .n("WdaStreamClient", "GetOngoingConferenceTranscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingConferenceTranscriptionCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingConferenceTranscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingConferenceTranscriptionCommand = GetOngoingConferenceTranscriptionCommand;
@@ -5,6 +5,9 @@ tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
5
5
  tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
6
6
  tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
7
7
  tslib_1.__exportStar(require("./GetOngoingCallCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetOngoingCallTranscriptionCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetOngoingConferenceCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetOngoingConferenceTranscriptionCommand"), exports);
8
11
  tslib_1.__exportStar(require("./ListServicesCommand"), exports);
9
12
  tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
10
13
  tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
3
+ exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.de_GetOngoingConferenceCommand = exports.de_GetOngoingCallTranscriptionCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingConferenceTranscriptionCommand = exports.se_GetOngoingConferenceCommand = exports.se_GetOngoingCallTranscriptionCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
4
4
  const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const models_1_1 = require("../models/models_1");
@@ -77,6 +77,54 @@ const se_GetOngoingCallCommand = async (input, context) => {
77
77
  return b.build();
78
78
  };
79
79
  exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
80
+ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
81
+ const b = (0, core_2.requestBuilder)(input, context);
82
+ const headers = {};
83
+ b.bp("/v2/stream/calls/{callId}/transcription");
84
+ b.p('callId', () => input.callId, '{callId}', false);
85
+ const query = (0, smithy_client_1.map)({
86
+ [_c]: [, input[_c]],
87
+ });
88
+ let body;
89
+ b.m("GET")
90
+ .h(headers)
91
+ .q(query)
92
+ .b(body);
93
+ return b.build();
94
+ };
95
+ exports.se_GetOngoingCallTranscriptionCommand = se_GetOngoingCallTranscriptionCommand;
96
+ const se_GetOngoingConferenceCommand = async (input, context) => {
97
+ const b = (0, core_2.requestBuilder)(input, context);
98
+ const headers = {};
99
+ b.bp("/v2/stream/conferences/{conferenceId}");
100
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
101
+ const query = (0, smithy_client_1.map)({
102
+ [_c]: [, input[_c]],
103
+ });
104
+ let body;
105
+ b.m("GET")
106
+ .h(headers)
107
+ .q(query)
108
+ .b(body);
109
+ return b.build();
110
+ };
111
+ exports.se_GetOngoingConferenceCommand = se_GetOngoingConferenceCommand;
112
+ const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
113
+ const b = (0, core_2.requestBuilder)(input, context);
114
+ const headers = {};
115
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
116
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
117
+ const query = (0, smithy_client_1.map)({
118
+ [_c]: [, input[_c]],
119
+ });
120
+ let body;
121
+ b.m("GET")
122
+ .h(headers)
123
+ .q(query)
124
+ .b(body);
125
+ return b.build();
126
+ };
127
+ exports.se_GetOngoingConferenceTranscriptionCommand = se_GetOngoingConferenceTranscriptionCommand;
80
128
  const se_ListServicesCommand = async (input, context) => {
81
129
  const b = (0, core_2.requestBuilder)(input, context);
82
130
  const headers = {
@@ -290,12 +338,59 @@ const de_GetOngoingCallCommand = async (output, context) => {
290
338
  const doc = (0, smithy_client_1.take)(data, {
291
339
  'company': smithy_client_1.expectString,
292
340
  'flows': smithy_client_1._json,
293
- 'transcriptions': smithy_client_1._json,
294
341
  });
295
342
  Object.assign(contents, doc);
296
343
  return contents;
297
344
  };
298
345
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
346
+ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
347
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
348
+ return de_CommandError(output, context);
349
+ }
350
+ const contents = (0, smithy_client_1.map)({
351
+ $metadata: deserializeMetadata(output),
352
+ });
353
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
354
+ const doc = (0, smithy_client_1.take)(data, {
355
+ 'company': smithy_client_1.expectString,
356
+ 'flows': smithy_client_1._json,
357
+ 'transcriptions': smithy_client_1._json,
358
+ });
359
+ Object.assign(contents, doc);
360
+ return contents;
361
+ };
362
+ exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
363
+ const de_GetOngoingConferenceCommand = async (output, context) => {
364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
365
+ return de_CommandError(output, context);
366
+ }
367
+ const contents = (0, smithy_client_1.map)({
368
+ $metadata: deserializeMetadata(output),
369
+ });
370
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
371
+ const doc = (0, smithy_client_1.take)(data, {
372
+ 'conference': smithy_client_1._json,
373
+ });
374
+ Object.assign(contents, doc);
375
+ return contents;
376
+ };
377
+ exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
378
+ const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
379
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
380
+ return de_CommandError(output, context);
381
+ }
382
+ const contents = (0, smithy_client_1.map)({
383
+ $metadata: deserializeMetadata(output),
384
+ });
385
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
386
+ const doc = (0, smithy_client_1.take)(data, {
387
+ 'conference': smithy_client_1._json,
388
+ 'transcriptions': smithy_client_1._json,
389
+ });
390
+ Object.assign(contents, doc);
391
+ return contents;
392
+ };
393
+ exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
299
394
  const de_ListServicesCommand = async (output, context) => {
300
395
  if (output.statusCode !== 200 && output.statusCode >= 300) {
301
396
  return de_CommandError(output, context);
@@ -3,6 +3,9 @@ import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
5
5
  import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
6
+ import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
7
+ import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
8
+ import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
6
9
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
7
10
  import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
8
11
  import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
@@ -14,6 +17,9 @@ const commands = {
14
17
  DescribeEventCommand,
15
18
  GetConferenceIdCommand,
16
19
  GetOngoingCallCommand,
20
+ GetOngoingCallTranscriptionCommand,
21
+ GetOngoingConferenceCommand,
22
+ GetOngoingConferenceTranscriptionCommand,
17
23
  ListServicesCommand,
18
24
  QueryConversationsCommand,
19
25
  QueryPresenceCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingCallTranscriptionCommand, se_GetOngoingCallTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingCallTranscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingCallTranscription", {})
12
+ .n("WdaStreamClient", "GetOngoingCallTranscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingCallTranscriptionCommand)
15
+ .de(de_GetOngoingCallTranscriptionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingConferenceCommand, se_GetOngoingConferenceCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingConferenceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingConference", {})
12
+ .n("WdaStreamClient", "GetOngoingConferenceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingConferenceCommand)
15
+ .de(de_GetOngoingConferenceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingConferenceTranscriptionCommand, se_GetOngoingConferenceTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingConferenceTranscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingConferenceTranscription", {})
12
+ .n("WdaStreamClient", "GetOngoingConferenceTranscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingConferenceTranscriptionCommand)
15
+ .de(de_GetOngoingConferenceTranscriptionCommand)
16
+ .build() {
17
+ }
@@ -2,6 +2,9 @@ export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
4
  export * from "./GetOngoingCallCommand";
5
+ export * from "./GetOngoingCallTranscriptionCommand";
6
+ export * from "./GetOngoingConferenceCommand";
7
+ export * from "./GetOngoingConferenceTranscriptionCommand";
5
8
  export * from "./ListServicesCommand";
6
9
  export * from "./QueryConversationsCommand";
7
10
  export * from "./QueryPresenceCommand";
@@ -70,6 +70,51 @@ export const se_GetOngoingCallCommand = async (input, context) => {
70
70
  .b(body);
71
71
  return b.build();
72
72
  };
73
+ export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
74
+ const b = rb(input, context);
75
+ const headers = {};
76
+ b.bp("/v2/stream/calls/{callId}/transcription");
77
+ b.p('callId', () => input.callId, '{callId}', false);
78
+ const query = map({
79
+ [_c]: [, input[_c]],
80
+ });
81
+ let body;
82
+ b.m("GET")
83
+ .h(headers)
84
+ .q(query)
85
+ .b(body);
86
+ return b.build();
87
+ };
88
+ export const se_GetOngoingConferenceCommand = async (input, context) => {
89
+ const b = rb(input, context);
90
+ const headers = {};
91
+ b.bp("/v2/stream/conferences/{conferenceId}");
92
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
93
+ const query = map({
94
+ [_c]: [, input[_c]],
95
+ });
96
+ let body;
97
+ b.m("GET")
98
+ .h(headers)
99
+ .q(query)
100
+ .b(body);
101
+ return b.build();
102
+ };
103
+ export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
104
+ const b = rb(input, context);
105
+ const headers = {};
106
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
107
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
108
+ const query = map({
109
+ [_c]: [, input[_c]],
110
+ });
111
+ let body;
112
+ b.m("GET")
113
+ .h(headers)
114
+ .q(query)
115
+ .b(body);
116
+ return b.build();
117
+ };
73
118
  export const se_ListServicesCommand = async (input, context) => {
74
119
  const b = rb(input, context);
75
120
  const headers = {
@@ -275,6 +320,50 @@ export const de_GetOngoingCallCommand = async (output, context) => {
275
320
  const doc = take(data, {
276
321
  'company': __expectString,
277
322
  'flows': _json,
323
+ });
324
+ Object.assign(contents, doc);
325
+ return contents;
326
+ };
327
+ export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
328
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
329
+ return de_CommandError(output, context);
330
+ }
331
+ const contents = map({
332
+ $metadata: deserializeMetadata(output),
333
+ });
334
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
335
+ const doc = take(data, {
336
+ 'company': __expectString,
337
+ 'flows': _json,
338
+ 'transcriptions': _json,
339
+ });
340
+ Object.assign(contents, doc);
341
+ return contents;
342
+ };
343
+ export const de_GetOngoingConferenceCommand = async (output, context) => {
344
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
345
+ return de_CommandError(output, context);
346
+ }
347
+ const contents = map({
348
+ $metadata: deserializeMetadata(output),
349
+ });
350
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
351
+ const doc = take(data, {
352
+ 'conference': _json,
353
+ });
354
+ Object.assign(contents, doc);
355
+ return contents;
356
+ };
357
+ export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
358
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
359
+ return de_CommandError(output, context);
360
+ }
361
+ const contents = map({
362
+ $metadata: deserializeMetadata(output),
363
+ });
364
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
365
+ const doc = take(data, {
366
+ 'conference': _json,
278
367
  'transcriptions': _json,
279
368
  });
280
369
  Object.assign(contents, doc);
@@ -3,6 +3,9 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
3
3
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
5
5
  import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
6
+ import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
7
+ import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
8
+ import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
6
9
  import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
7
10
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
8
11
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
@@ -35,6 +38,24 @@ export interface WdaStream {
35
38
  getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
36
39
  getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
37
40
  getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
41
+ /**
42
+ * @see {@link GetOngoingCallTranscriptionCommand}
43
+ */
44
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallTranscriptionCommandOutput>;
45
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
46
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
47
+ /**
48
+ * @see {@link GetOngoingConferenceCommand}
49
+ */
50
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceCommandOutput>;
51
+ getOngoingConference(args: GetOngoingConferenceCommandInput, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
52
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link GetOngoingConferenceTranscriptionCommand}
55
+ */
56
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
57
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
58
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
38
59
  /**
39
60
  * @see {@link ListServicesCommand}
40
61
  */
@@ -2,6 +2,9 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
2
2
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
3
3
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
4
4
  import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
5
+ import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
6
+ import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
7
+ import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
5
8
  import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
6
9
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
7
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
@@ -18,11 +21,11 @@ export { __Client };
18
21
  /**
19
22
  * @public
20
23
  */
21
- export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
24
+ export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
22
25
  /**
23
26
  * @public
24
27
  */
25
- export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
28
+ export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
26
29
  /**
27
30
  * @public
28
31
  */
@@ -216,52 +216,6 @@ declare const GetOngoingCallCommand_base: {
216
216
  * // statusChangeDate: "STRING_VALUE", // required
217
217
  * // },
218
218
  * // ],
219
- * // transcriptions: [ // CallAnalyticsLiveTranscriptionEventList
220
- * // { // CallAnalyticsLiveTranscriptionEvent
221
- * // id: "STRING_VALUE", // required
222
- * // pbx: "STRING_VALUE", // required
223
- * // time: Number("long"), // required
224
- * // company: "STRING_VALUE", // required
225
- * // licenses: [ // LicensesList // required
226
- * // "x-bees" || "uc",
227
- * // ],
228
- * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
229
- * // flowIndex: Number("int"), // required
230
- * // flowStartTime: Number("long"), // required
231
- * // callStartTime: Number("long"), // required
232
- * // chunk: { // CallTranscriptionChunk
233
- * // id: "STRING_VALUE", // required
234
- * // time: Number("long"), // required
235
- * // speaker: "callee" || "caller", // required
236
- * // text: "STRING_VALUE", // required
237
- * // language: "STRING_VALUE",
238
- * // isFinal: true || false, // required
239
- * // start: Number("long"), // required
240
- * // end: Number("long"), // required
241
- * // sentiment: "STRING_VALUE",
242
- * // },
243
- * // participant: {
244
- * // type: "REMOTE" || "LOCAL", // required
245
- * // phone: "STRING_VALUE",
246
- * // name: "STRING_VALUE",
247
- * // company: "STRING_VALUE",
248
- * // email: "STRING_VALUE",
249
- * // userId: "STRING_VALUE",
250
- * // userExtension: "STRING_VALUE",
251
- * // userDepartment: "STRING_VALUE",
252
- * // groupId: "STRING_VALUE",
253
- * // groupName: "STRING_VALUE",
254
- * // userAgent: "STRING_VALUE",
255
- * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
256
- * // role: "CLIENT" || "AGENT", // required
257
- * // license: "STRING_VALUE",
258
- * // sipCallId: "STRING_VALUE",
259
- * // publicAddress: "STRING_VALUE",
260
- * // privateAddress: "STRING_VALUE",
261
- * // location: "STRING_VALUE",
262
- * // },
263
- * // },
264
- * // ],
265
219
  * // };
266
220
  *
267
221
  * ```
@@ -0,0 +1,297 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
2
+ import { GetOngoingCallTranscriptionInput, GetOngoingCallTranscriptionOutput } from "../models/models_1";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOngoingCallTranscriptionCommand}.
14
+ */
15
+ export interface GetOngoingCallTranscriptionCommandInput extends GetOngoingCallTranscriptionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOngoingCallTranscriptionCommand}.
21
+ */
22
+ export interface GetOngoingCallTranscriptionCommandOutput extends GetOngoingCallTranscriptionOutput, __MetadataBearer {
23
+ }
24
+ declare const GetOngoingCallTranscriptionCommand_base: {
25
+ new (input: GetOngoingCallTranscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOngoingCallTranscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves information and transcription for ongoing call.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaStreamClient, GetOngoingCallTranscriptionCommand } from "@wildix/wda-stream-client"; // ES Modules import
35
+ * // const { WdaStreamClient, GetOngoingCallTranscriptionCommand } = require("@wildix/wda-stream-client"); // CommonJS import
36
+ * const client = new WdaStreamClient(config);
37
+ * const input = { // GetOngoingCallTranscriptionInput
38
+ * company: "STRING_VALUE",
39
+ * callId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetOngoingCallTranscriptionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetOngoingCallTranscriptionOutput
44
+ * // company: "STRING_VALUE", // required
45
+ * // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
46
+ * // { // CallAnalyticsLiveProgressEventFlow
47
+ * // flowIndex: Number("int"), // required
48
+ * // startTime: Number("long"), // required
49
+ * // endTime: Number("long"), // required
50
+ * // connectTime: Number("long"),
51
+ * // talkTime: Number("long"),
52
+ * // waitTime: Number("long"),
53
+ * // queueTime: Number("long"),
54
+ * // holdTime: Number("long"),
55
+ * // duration: Number("long"), // required
56
+ * // caller: { // CallParticipant
57
+ * // type: "REMOTE" || "LOCAL", // required
58
+ * // phone: "STRING_VALUE",
59
+ * // name: "STRING_VALUE",
60
+ * // company: "STRING_VALUE",
61
+ * // email: "STRING_VALUE",
62
+ * // userId: "STRING_VALUE",
63
+ * // userExtension: "STRING_VALUE",
64
+ * // userDepartment: "STRING_VALUE",
65
+ * // groupId: "STRING_VALUE",
66
+ * // groupName: "STRING_VALUE",
67
+ * // userAgent: "STRING_VALUE",
68
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
69
+ * // role: "CLIENT" || "AGENT", // required
70
+ * // license: "STRING_VALUE",
71
+ * // sipCallId: "STRING_VALUE",
72
+ * // publicAddress: "STRING_VALUE",
73
+ * // privateAddress: "STRING_VALUE",
74
+ * // location: "STRING_VALUE",
75
+ * // },
76
+ * // callee: {
77
+ * // type: "REMOTE" || "LOCAL", // required
78
+ * // phone: "STRING_VALUE",
79
+ * // name: "STRING_VALUE",
80
+ * // company: "STRING_VALUE",
81
+ * // email: "STRING_VALUE",
82
+ * // userId: "STRING_VALUE",
83
+ * // userExtension: "STRING_VALUE",
84
+ * // userDepartment: "STRING_VALUE",
85
+ * // groupId: "STRING_VALUE",
86
+ * // groupName: "STRING_VALUE",
87
+ * // userAgent: "STRING_VALUE",
88
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
89
+ * // role: "CLIENT" || "AGENT", // required
90
+ * // license: "STRING_VALUE",
91
+ * // sipCallId: "STRING_VALUE",
92
+ * // publicAddress: "STRING_VALUE",
93
+ * // privateAddress: "STRING_VALUE",
94
+ * // location: "STRING_VALUE",
95
+ * // },
96
+ * // service: "STRING_VALUE",
97
+ * // serviceNumber: "STRING_VALUE",
98
+ * // destination: "STRING_VALUE",
99
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
100
+ * // trunkName: "STRING_VALUE",
101
+ * // trunkDirection: "STRING_VALUE",
102
+ * // queueName: "STRING_VALUE",
103
+ * // queueId: "STRING_VALUE",
104
+ * // tags: [ // CallFlowTags
105
+ * // "STRING_VALUE",
106
+ * // ],
107
+ * // flags: [ // CallFlowFlags
108
+ * // "STRING_VALUE",
109
+ * // ],
110
+ * // callerMos: "STRING_VALUE",
111
+ * // calleeMos: "STRING_VALUE",
112
+ * // xhoppersConfId: "STRING_VALUE",
113
+ * // recordings: [ // CallFlowRecordings
114
+ * // "STRING_VALUE",
115
+ * // ],
116
+ * // recordingsData: [ // CallFlowRecordingsData
117
+ * // { // CallFlowRecording
118
+ * // fileName: "STRING_VALUE", // required
119
+ * // start: Number("long"), // required
120
+ * // end: Number("long"), // required
121
+ * // owner: "callee" || "caller" || "system", // required
122
+ * // url: "STRING_VALUE", // required
123
+ * // pauses: [ // CallRecordPausesList // required
124
+ * // { // CallRecordPause
125
+ * // start: Number("long"),
126
+ * // end: Number("long"),
127
+ * // reason: "pause" || "hold",
128
+ * // },
129
+ * // ],
130
+ * // },
131
+ * // ],
132
+ * // mergeWith: "STRING_VALUE",
133
+ * // splitReason: "STRING_VALUE",
134
+ * // splitTransferType: "STRING_VALUE",
135
+ * // remotePhone: "STRING_VALUE",
136
+ * // remotePhoneCountryCode: Number("int"),
137
+ * // remotePhoneCountryCodeStr: "STRING_VALUE",
138
+ * // remotePhoneLocation: "STRING_VALUE",
139
+ * // callStatus: "COMPLETED" || "MISSED",
140
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
141
+ * // transcriptionLanguage: "STRING_VALUE",
142
+ * // transcriptionSeconds: Number("int"),
143
+ * // attachment: "STRING_VALUE",
144
+ * // attachmentType: "VOICEMAIL" || "FAX",
145
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
146
+ * // { // CallFlowAttachmentDestination
147
+ * // phone: "STRING_VALUE",
148
+ * // name: "STRING_VALUE",
149
+ * // email: "STRING_VALUE",
150
+ * // userId: "STRING_VALUE",
151
+ * // userExtension: "STRING_VALUE",
152
+ * // userDepartment: "STRING_VALUE",
153
+ * // groupId: "STRING_VALUE",
154
+ * // groupName: "STRING_VALUE",
155
+ * // },
156
+ * // ],
157
+ * // attachments: [ // CallFlowAttachments
158
+ * // { // CallFlowAttachment Union: only one key present
159
+ * // recording: {
160
+ * // fileName: "STRING_VALUE", // required
161
+ * // start: Number("long"), // required
162
+ * // end: Number("long"), // required
163
+ * // owner: "callee" || "caller" || "system", // required
164
+ * // url: "STRING_VALUE", // required
165
+ * // pauses: [ // required
166
+ * // {
167
+ * // start: Number("long"),
168
+ * // end: Number("long"),
169
+ * // reason: "pause" || "hold",
170
+ * // },
171
+ * // ],
172
+ * // },
173
+ * // fax: { // CallFlowFax
174
+ * // url: "STRING_VALUE", // required
175
+ * // status: "ok" || "error",
176
+ * // destinations: [
177
+ * // {
178
+ * // phone: "STRING_VALUE",
179
+ * // name: "STRING_VALUE",
180
+ * // email: "STRING_VALUE",
181
+ * // userId: "STRING_VALUE",
182
+ * // userExtension: "STRING_VALUE",
183
+ * // userDepartment: "STRING_VALUE",
184
+ * // groupId: "STRING_VALUE",
185
+ * // groupName: "STRING_VALUE",
186
+ * // },
187
+ * // ],
188
+ * // owner: "callee" || "caller" || "system",
189
+ * // error: "STRING_VALUE",
190
+ * // },
191
+ * // voicemail: { // CallFlowVoicemail
192
+ * // url: "STRING_VALUE", // required
193
+ * // destinations: [
194
+ * // {
195
+ * // phone: "STRING_VALUE",
196
+ * // name: "STRING_VALUE",
197
+ * // email: "STRING_VALUE",
198
+ * // userId: "STRING_VALUE",
199
+ * // userExtension: "STRING_VALUE",
200
+ * // userDepartment: "STRING_VALUE",
201
+ * // groupId: "STRING_VALUE",
202
+ * // groupName: "STRING_VALUE",
203
+ * // },
204
+ * // ],
205
+ * // owner: "callee" || "caller" || "system",
206
+ * // },
207
+ * // },
208
+ * // ],
209
+ * // notifications: { // CallFlowNotifications
210
+ * // destinations: "<CallFlowAttachmentDestinationList>",
211
+ * // type: [ // NotificationsType
212
+ * // "STRING_VALUE",
213
+ * // ],
214
+ * // },
215
+ * // status: "CONNECTING" || "TALKING" || "HOLD", // required
216
+ * // statusChangeDate: "STRING_VALUE", // required
217
+ * // },
218
+ * // ],
219
+ * // transcriptions: [ // CallAnalyticsLiveTranscriptionEventList
220
+ * // { // CallAnalyticsLiveTranscriptionEvent
221
+ * // id: "STRING_VALUE", // required
222
+ * // pbx: "STRING_VALUE", // required
223
+ * // time: Number("long"), // required
224
+ * // company: "STRING_VALUE", // required
225
+ * // licenses: [ // LicensesList // required
226
+ * // "x-bees" || "uc",
227
+ * // ],
228
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
229
+ * // flowIndex: Number("int"), // required
230
+ * // flowStartTime: Number("long"), // required
231
+ * // callStartTime: Number("long"), // required
232
+ * // chunk: { // CallTranscriptionChunk
233
+ * // id: "STRING_VALUE", // required
234
+ * // time: Number("long"), // required
235
+ * // speaker: "callee" || "caller", // required
236
+ * // text: "STRING_VALUE", // required
237
+ * // language: "STRING_VALUE",
238
+ * // isFinal: true || false, // required
239
+ * // start: Number("long"), // required
240
+ * // end: Number("long"), // required
241
+ * // sentiment: "STRING_VALUE",
242
+ * // },
243
+ * // participant: {
244
+ * // type: "REMOTE" || "LOCAL", // required
245
+ * // phone: "STRING_VALUE",
246
+ * // name: "STRING_VALUE",
247
+ * // company: "STRING_VALUE",
248
+ * // email: "STRING_VALUE",
249
+ * // userId: "STRING_VALUE",
250
+ * // userExtension: "STRING_VALUE",
251
+ * // userDepartment: "STRING_VALUE",
252
+ * // groupId: "STRING_VALUE",
253
+ * // groupName: "STRING_VALUE",
254
+ * // userAgent: "STRING_VALUE",
255
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
256
+ * // role: "CLIENT" || "AGENT", // required
257
+ * // license: "STRING_VALUE",
258
+ * // sipCallId: "STRING_VALUE",
259
+ * // publicAddress: "STRING_VALUE",
260
+ * // privateAddress: "STRING_VALUE",
261
+ * // location: "STRING_VALUE",
262
+ * // },
263
+ * // },
264
+ * // ],
265
+ * // };
266
+ *
267
+ * ```
268
+ *
269
+ * @param GetOngoingCallTranscriptionCommandInput - {@link GetOngoingCallTranscriptionCommandInput}
270
+ * @returns {@link GetOngoingCallTranscriptionCommandOutput}
271
+ * @see {@link GetOngoingCallTranscriptionCommandInput} for command's `input` shape.
272
+ * @see {@link GetOngoingCallTranscriptionCommandOutput} for command's `response` shape.
273
+ * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
274
+ *
275
+ * @throws {@link ValidationException} (client fault)
276
+ *
277
+ * @throws {@link MatchNotFoundException} (client fault)
278
+ *
279
+ * @throws {@link WdaStreamServiceException}
280
+ * <p>Base exception class for all service exceptions from WdaStream service.</p>
281
+ *
282
+ *
283
+ * @public
284
+ */
285
+ export declare class GetOngoingCallTranscriptionCommand extends GetOngoingCallTranscriptionCommand_base {
286
+ /** @internal type navigation helper, not in runtime. */
287
+ protected static __types: {
288
+ api: {
289
+ input: GetOngoingCallTranscriptionInput;
290
+ output: GetOngoingCallTranscriptionOutput;
291
+ };
292
+ sdk: {
293
+ input: GetOngoingCallTranscriptionCommandInput;
294
+ output: GetOngoingCallTranscriptionCommandOutput;
295
+ };
296
+ };
297
+ }
@@ -0,0 +1,106 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
2
+ import { GetOngoingConferenceInput, GetOngoingConferenceOutput } from "../models/models_1";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOngoingConferenceCommand}.
14
+ */
15
+ export interface GetOngoingConferenceCommandInput extends GetOngoingConferenceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOngoingConferenceCommand}.
21
+ */
22
+ export interface GetOngoingConferenceCommandOutput extends GetOngoingConferenceOutput, __MetadataBearer {
23
+ }
24
+ declare const GetOngoingConferenceCommand_base: {
25
+ new (input: GetOngoingConferenceCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOngoingConferenceCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves information for ongoing conference.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaStreamClient, GetOngoingConferenceCommand } from "@wildix/wda-stream-client"; // ES Modules import
35
+ * // const { WdaStreamClient, GetOngoingConferenceCommand } = require("@wildix/wda-stream-client"); // CommonJS import
36
+ * const client = new WdaStreamClient(config);
37
+ * const input = { // GetOngoingConferenceInput
38
+ * company: "STRING_VALUE",
39
+ * conferenceId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetOngoingConferenceCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetOngoingConferenceOutput
44
+ * // conference: { // ConferenceAnalyticsLiveProgressEvent
45
+ * // id: "STRING_VALUE", // required
46
+ * // time: Number("long"), // required
47
+ * // company: "STRING_VALUE", // required
48
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
49
+ * // start: "STRING_VALUE", // required
50
+ * // subject: "STRING_VALUE", // required
51
+ * // participants: [ // ConferenceParticipantsList // required
52
+ * // { // ConferenceParticipant
53
+ * // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
54
+ * // role: "CLIENT" || "AGENT",
55
+ * // jid: "STRING_VALUE",
56
+ * // name: "STRING_VALUE",
57
+ * // email: "STRING_VALUE",
58
+ * // phone: "STRING_VALUE",
59
+ * // department: "STRING_VALUE",
60
+ * // company: "STRING_VALUE",
61
+ * // pbxSerial: "STRING_VALUE",
62
+ * // pbxExtension: "STRING_VALUE",
63
+ * // pbxGroupId: "STRING_VALUE",
64
+ * // xbsId: "STRING_VALUE",
65
+ * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
66
+ * // },
67
+ * // ],
68
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
69
+ * // transcriptionLanguage: "STRING_VALUE",
70
+ * // participantsGroupIds: [ // ConversationParticipantsGroupList
71
+ * // "STRING_VALUE",
72
+ * // ],
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param GetOngoingConferenceCommandInput - {@link GetOngoingConferenceCommandInput}
79
+ * @returns {@link GetOngoingConferenceCommandOutput}
80
+ * @see {@link GetOngoingConferenceCommandInput} for command's `input` shape.
81
+ * @see {@link GetOngoingConferenceCommandOutput} for command's `response` shape.
82
+ * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ *
86
+ * @throws {@link MatchNotFoundException} (client fault)
87
+ *
88
+ * @throws {@link WdaStreamServiceException}
89
+ * <p>Base exception class for all service exceptions from WdaStream service.</p>
90
+ *
91
+ *
92
+ * @public
93
+ */
94
+ export declare class GetOngoingConferenceCommand extends GetOngoingConferenceCommand_base {
95
+ /** @internal type navigation helper, not in runtime. */
96
+ protected static __types: {
97
+ api: {
98
+ input: GetOngoingConferenceInput;
99
+ output: GetOngoingConferenceOutput;
100
+ };
101
+ sdk: {
102
+ input: GetOngoingConferenceCommandInput;
103
+ output: GetOngoingConferenceCommandOutput;
104
+ };
105
+ };
106
+ }
@@ -0,0 +1,142 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
2
+ import { GetOngoingConferenceTranscriptionInput, GetOngoingConferenceTranscriptionOutput } from "../models/models_1";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOngoingConferenceTranscriptionCommand}.
14
+ */
15
+ export interface GetOngoingConferenceTranscriptionCommandInput extends GetOngoingConferenceTranscriptionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOngoingConferenceTranscriptionCommand}.
21
+ */
22
+ export interface GetOngoingConferenceTranscriptionCommandOutput extends GetOngoingConferenceTranscriptionOutput, __MetadataBearer {
23
+ }
24
+ declare const GetOngoingConferenceTranscriptionCommand_base: {
25
+ new (input: GetOngoingConferenceTranscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOngoingConferenceTranscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves information and transcription for ongoing conference.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaStreamClient, GetOngoingConferenceTranscriptionCommand } from "@wildix/wda-stream-client"; // ES Modules import
35
+ * // const { WdaStreamClient, GetOngoingConferenceTranscriptionCommand } = require("@wildix/wda-stream-client"); // CommonJS import
36
+ * const client = new WdaStreamClient(config);
37
+ * const input = { // GetOngoingConferenceTranscriptionInput
38
+ * company: "STRING_VALUE",
39
+ * conferenceId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetOngoingConferenceTranscriptionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetOngoingConferenceTranscriptionOutput
44
+ * // conference: { // ConferenceAnalyticsLiveProgressEvent
45
+ * // id: "STRING_VALUE", // required
46
+ * // time: Number("long"), // required
47
+ * // company: "STRING_VALUE", // required
48
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
49
+ * // start: "STRING_VALUE", // required
50
+ * // subject: "STRING_VALUE", // required
51
+ * // participants: [ // ConferenceParticipantsList // required
52
+ * // { // ConferenceParticipant
53
+ * // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
54
+ * // role: "CLIENT" || "AGENT",
55
+ * // jid: "STRING_VALUE",
56
+ * // name: "STRING_VALUE",
57
+ * // email: "STRING_VALUE",
58
+ * // phone: "STRING_VALUE",
59
+ * // department: "STRING_VALUE",
60
+ * // company: "STRING_VALUE",
61
+ * // pbxSerial: "STRING_VALUE",
62
+ * // pbxExtension: "STRING_VALUE",
63
+ * // pbxGroupId: "STRING_VALUE",
64
+ * // xbsId: "STRING_VALUE",
65
+ * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
66
+ * // },
67
+ * // ],
68
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
69
+ * // transcriptionLanguage: "STRING_VALUE",
70
+ * // participantsGroupIds: [ // ConversationParticipantsGroupList
71
+ * // "STRING_VALUE",
72
+ * // ],
73
+ * // },
74
+ * // transcriptions: [ // ConferenceAnalyticsLiveTranscriptionEventList
75
+ * // { // ConferenceAnalyticsLiveTranscriptionEvent
76
+ * // id: "STRING_VALUE", // required
77
+ * // time: Number("long"), // required
78
+ * // company: "STRING_VALUE", // required
79
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
80
+ * // conferenceStartTime: Number("long"), // required
81
+ * // transcriptionStartTime: Number("long"), // required
82
+ * // chunk: { // ConferenceTranscriptionChunk
83
+ * // id: "STRING_VALUE", // required
84
+ * // time: Number("long"), // required
85
+ * // jid: "STRING_VALUE", // required
86
+ * // text: "STRING_VALUE", // required
87
+ * // language: "STRING_VALUE",
88
+ * // isFinal: true || false, // required
89
+ * // start: Number("long"), // required
90
+ * // end: Number("long"), // required
91
+ * // sentiment: "STRING_VALUE",
92
+ * // },
93
+ * // participant: {
94
+ * // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
95
+ * // role: "CLIENT" || "AGENT",
96
+ * // jid: "STRING_VALUE",
97
+ * // name: "STRING_VALUE",
98
+ * // email: "STRING_VALUE",
99
+ * // phone: "STRING_VALUE",
100
+ * // department: "STRING_VALUE",
101
+ * // company: "STRING_VALUE",
102
+ * // pbxSerial: "STRING_VALUE",
103
+ * // pbxExtension: "STRING_VALUE",
104
+ * // pbxGroupId: "STRING_VALUE",
105
+ * // xbsId: "STRING_VALUE",
106
+ * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
107
+ * // },
108
+ * // },
109
+ * // ],
110
+ * // };
111
+ *
112
+ * ```
113
+ *
114
+ * @param GetOngoingConferenceTranscriptionCommandInput - {@link GetOngoingConferenceTranscriptionCommandInput}
115
+ * @returns {@link GetOngoingConferenceTranscriptionCommandOutput}
116
+ * @see {@link GetOngoingConferenceTranscriptionCommandInput} for command's `input` shape.
117
+ * @see {@link GetOngoingConferenceTranscriptionCommandOutput} for command's `response` shape.
118
+ * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
119
+ *
120
+ * @throws {@link ValidationException} (client fault)
121
+ *
122
+ * @throws {@link MatchNotFoundException} (client fault)
123
+ *
124
+ * @throws {@link WdaStreamServiceException}
125
+ * <p>Base exception class for all service exceptions from WdaStream service.</p>
126
+ *
127
+ *
128
+ * @public
129
+ */
130
+ export declare class GetOngoingConferenceTranscriptionCommand extends GetOngoingConferenceTranscriptionCommand_base {
131
+ /** @internal type navigation helper, not in runtime. */
132
+ protected static __types: {
133
+ api: {
134
+ input: GetOngoingConferenceTranscriptionInput;
135
+ output: GetOngoingConferenceTranscriptionOutput;
136
+ };
137
+ sdk: {
138
+ input: GetOngoingConferenceTranscriptionCommandInput;
139
+ output: GetOngoingConferenceTranscriptionCommandOutput;
140
+ };
141
+ };
142
+ }
@@ -2,6 +2,9 @@ export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
4
  export * from "./GetOngoingCallCommand";
5
+ export * from "./GetOngoingCallTranscriptionCommand";
6
+ export * from "./GetOngoingConferenceCommand";
7
+ export * from "./GetOngoingConferenceTranscriptionCommand";
5
8
  export * from "./ListServicesCommand";
6
9
  export * from "./QueryConversationsCommand";
7
10
  export * from "./QueryPresenceCommand";
@@ -1,5 +1,5 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
- import { CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, ChatAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveProgressEvent } from "./models_0";
2
+ import { CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, ChatAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent } from "./models_0";
3
3
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
4
4
  /**
5
5
  * @public
@@ -25,8 +25,49 @@ export interface GetOngoingCallInput {
25
25
  export interface GetOngoingCallOutput {
26
26
  company: string;
27
27
  flows: (CallAnalyticsLiveProgressEventFlow)[];
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface GetOngoingCallTranscriptionInput {
33
+ company?: string | undefined;
34
+ callId: string;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface GetOngoingCallTranscriptionOutput {
40
+ company: string;
41
+ flows: (CallAnalyticsLiveProgressEventFlow)[];
28
42
  transcriptions?: (CallAnalyticsLiveTranscriptionEvent)[] | undefined;
29
43
  }
44
+ /**
45
+ * @public
46
+ */
47
+ export interface GetOngoingConferenceInput {
48
+ company?: string | undefined;
49
+ conferenceId: string;
50
+ }
51
+ /**
52
+ * @public
53
+ */
54
+ export interface GetOngoingConferenceOutput {
55
+ conference: ConferenceAnalyticsLiveProgressEvent;
56
+ }
57
+ /**
58
+ * @public
59
+ */
60
+ export interface GetOngoingConferenceTranscriptionInput {
61
+ company?: string | undefined;
62
+ conferenceId: string;
63
+ }
64
+ /**
65
+ * @public
66
+ */
67
+ export interface GetOngoingConferenceTranscriptionOutput {
68
+ conference: ConferenceAnalyticsLiveProgressEvent;
69
+ transcriptions?: (ConferenceAnalyticsLiveTranscriptionEvent)[] | undefined;
70
+ }
30
71
  /**
31
72
  * @public
32
73
  */
@@ -2,6 +2,9 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "../commands
2
2
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "../commands/DescribeEventCommand";
3
3
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "../commands/GetConferenceIdCommand";
4
4
  import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "../commands/GetOngoingCallCommand";
5
+ import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "../commands/GetOngoingCallTranscriptionCommand";
6
+ import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "../commands/GetOngoingConferenceCommand";
7
+ import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "../commands/GetOngoingConferenceTranscriptionCommand";
5
8
  import { ListServicesCommandInput, ListServicesCommandOutput } from "../commands/ListServicesCommand";
6
9
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
7
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "../commands/QueryPresenceCommand";
@@ -25,6 +28,18 @@ export declare const se_GetConferenceIdCommand: (input: GetConferenceIdCommandIn
25
28
  * serializeAws_restJson1GetOngoingCallCommand
26
29
  */
27
30
  export declare const se_GetOngoingCallCommand: (input: GetOngoingCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
+ /**
32
+ * serializeAws_restJson1GetOngoingCallTranscriptionCommand
33
+ */
34
+ export declare const se_GetOngoingCallTranscriptionCommand: (input: GetOngoingCallTranscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
+ /**
36
+ * serializeAws_restJson1GetOngoingConferenceCommand
37
+ */
38
+ export declare const se_GetOngoingConferenceCommand: (input: GetOngoingConferenceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
+ /**
40
+ * serializeAws_restJson1GetOngoingConferenceTranscriptionCommand
41
+ */
42
+ export declare const se_GetOngoingConferenceTranscriptionCommand: (input: GetOngoingConferenceTranscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
43
  /**
29
44
  * serializeAws_restJson1ListServicesCommand
30
45
  */
@@ -61,6 +76,18 @@ export declare const de_GetConferenceIdCommand: (output: __HttpResponse, context
61
76
  * deserializeAws_restJson1GetOngoingCallCommand
62
77
  */
63
78
  export declare const de_GetOngoingCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingCallCommandOutput>;
79
+ /**
80
+ * deserializeAws_restJson1GetOngoingCallTranscriptionCommand
81
+ */
82
+ export declare const de_GetOngoingCallTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingCallTranscriptionCommandOutput>;
83
+ /**
84
+ * deserializeAws_restJson1GetOngoingConferenceCommand
85
+ */
86
+ export declare const de_GetOngoingConferenceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConferenceCommandOutput>;
87
+ /**
88
+ * deserializeAws_restJson1GetOngoingConferenceTranscriptionCommand
89
+ */
90
+ export declare const de_GetOngoingConferenceTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConferenceTranscriptionCommandOutput>;
64
91
  /**
65
92
  * deserializeAws_restJson1ListServicesCommand
66
93
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-stream-client",
3
3
  "description": "@wildix/wda-stream-client client",
4
- "version": "1.1.46",
4
+ "version": "1.1.48",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",