@wildix/wda-stream-client 1.1.39 → 1.1.40

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 QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
10
13
  const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
11
14
  const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
@@ -16,6 +19,9 @@ const commands = {
16
19
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
17
20
  GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
18
21
  GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
22
+ GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
23
+ GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
24
+ GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
19
25
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
20
26
  QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
21
27
  QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
@@ -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("./QueryConversationsCommand"), exports);
9
12
  tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
10
13
  tslib_1.__exportStar(require("./QueryPresencesCommand"), 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_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = 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_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_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 core_1 = require("@aws-sdk/core");
@@ -76,6 +76,54 @@ const se_GetOngoingCallCommand = async (input, context) => {
76
76
  return b.build();
77
77
  };
78
78
  exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
79
+ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
80
+ const b = (0, core_2.requestBuilder)(input, context);
81
+ const headers = {};
82
+ b.bp("/v2/stream/calls/{callId}/transcription");
83
+ b.p('callId', () => input.callId, '{callId}', false);
84
+ const query = (0, smithy_client_1.map)({
85
+ [_c]: [, input[_c]],
86
+ });
87
+ let body;
88
+ b.m("GET")
89
+ .h(headers)
90
+ .q(query)
91
+ .b(body);
92
+ return b.build();
93
+ };
94
+ exports.se_GetOngoingCallTranscriptionCommand = se_GetOngoingCallTranscriptionCommand;
95
+ const se_GetOngoingConferenceCommand = async (input, context) => {
96
+ const b = (0, core_2.requestBuilder)(input, context);
97
+ const headers = {};
98
+ b.bp("/v2/stream/conferences/{conferenceId}");
99
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
100
+ const query = (0, smithy_client_1.map)({
101
+ [_c]: [, input[_c]],
102
+ });
103
+ let body;
104
+ b.m("GET")
105
+ .h(headers)
106
+ .q(query)
107
+ .b(body);
108
+ return b.build();
109
+ };
110
+ exports.se_GetOngoingConferenceCommand = se_GetOngoingConferenceCommand;
111
+ const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
112
+ const b = (0, core_2.requestBuilder)(input, context);
113
+ const headers = {};
114
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
115
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
116
+ const query = (0, smithy_client_1.map)({
117
+ [_c]: [, input[_c]],
118
+ });
119
+ let body;
120
+ b.m("GET")
121
+ .h(headers)
122
+ .q(query)
123
+ .b(body);
124
+ return b.build();
125
+ };
126
+ exports.se_GetOngoingConferenceTranscriptionCommand = se_GetOngoingConferenceTranscriptionCommand;
79
127
  const se_QueryConversationsCommand = async (input, context) => {
80
128
  const b = (0, core_2.requestBuilder)(input, context);
81
129
  const headers = {
@@ -263,12 +311,59 @@ const de_GetOngoingCallCommand = async (output, context) => {
263
311
  const doc = (0, smithy_client_1.take)(data, {
264
312
  'company': smithy_client_1.expectString,
265
313
  'flows': smithy_client_1._json,
266
- 'transcriptions': smithy_client_1._json,
267
314
  });
268
315
  Object.assign(contents, doc);
269
316
  return contents;
270
317
  };
271
318
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
319
+ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
321
+ return de_CommandError(output, context);
322
+ }
323
+ const contents = (0, smithy_client_1.map)({
324
+ $metadata: deserializeMetadata(output),
325
+ });
326
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
327
+ const doc = (0, smithy_client_1.take)(data, {
328
+ 'company': smithy_client_1.expectString,
329
+ 'flows': smithy_client_1._json,
330
+ 'transcriptions': smithy_client_1._json,
331
+ });
332
+ Object.assign(contents, doc);
333
+ return contents;
334
+ };
335
+ exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
336
+ const de_GetOngoingConferenceCommand = async (output, context) => {
337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
338
+ return de_CommandError(output, context);
339
+ }
340
+ const contents = (0, smithy_client_1.map)({
341
+ $metadata: deserializeMetadata(output),
342
+ });
343
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
344
+ const doc = (0, smithy_client_1.take)(data, {
345
+ 'conference': smithy_client_1._json,
346
+ });
347
+ Object.assign(contents, doc);
348
+ return contents;
349
+ };
350
+ exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
351
+ const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
352
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
353
+ return de_CommandError(output, context);
354
+ }
355
+ const contents = (0, smithy_client_1.map)({
356
+ $metadata: deserializeMetadata(output),
357
+ });
358
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
359
+ const doc = (0, smithy_client_1.take)(data, {
360
+ 'conference': smithy_client_1._json,
361
+ 'transcriptions': smithy_client_1._json,
362
+ });
363
+ Object.assign(contents, doc);
364
+ return contents;
365
+ };
366
+ exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
272
367
  const de_QueryConversationsCommand = async (output, context) => {
273
368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
274
369
  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 { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
7
10
  import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
8
11
  import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
@@ -13,6 +16,9 @@ const commands = {
13
16
  DescribeEventCommand,
14
17
  GetConferenceIdCommand,
15
18
  GetOngoingCallCommand,
19
+ GetOngoingCallTranscriptionCommand,
20
+ GetOngoingConferenceCommand,
21
+ GetOngoingConferenceTranscriptionCommand,
16
22
  QueryConversationsCommand,
17
23
  QueryPresenceCommand,
18
24
  QueryPresencesCommand,
@@ -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 "./QueryConversationsCommand";
6
9
  export * from "./QueryPresenceCommand";
7
10
  export * from "./QueryPresencesCommand";
@@ -69,6 +69,51 @@ export const se_GetOngoingCallCommand = async (input, context) => {
69
69
  .b(body);
70
70
  return b.build();
71
71
  };
72
+ export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
73
+ const b = rb(input, context);
74
+ const headers = {};
75
+ b.bp("/v2/stream/calls/{callId}/transcription");
76
+ b.p('callId', () => input.callId, '{callId}', false);
77
+ const query = map({
78
+ [_c]: [, input[_c]],
79
+ });
80
+ let body;
81
+ b.m("GET")
82
+ .h(headers)
83
+ .q(query)
84
+ .b(body);
85
+ return b.build();
86
+ };
87
+ export const se_GetOngoingConferenceCommand = async (input, context) => {
88
+ const b = rb(input, context);
89
+ const headers = {};
90
+ b.bp("/v2/stream/conferences/{conferenceId}");
91
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
92
+ const query = map({
93
+ [_c]: [, input[_c]],
94
+ });
95
+ let body;
96
+ b.m("GET")
97
+ .h(headers)
98
+ .q(query)
99
+ .b(body);
100
+ return b.build();
101
+ };
102
+ export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
103
+ const b = rb(input, context);
104
+ const headers = {};
105
+ b.bp("/v2/stream/conferences/{conferenceId}/transcription");
106
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
107
+ const query = map({
108
+ [_c]: [, input[_c]],
109
+ });
110
+ let body;
111
+ b.m("GET")
112
+ .h(headers)
113
+ .q(query)
114
+ .b(body);
115
+ return b.build();
116
+ };
72
117
  export const se_QueryConversationsCommand = async (input, context) => {
73
118
  const b = rb(input, context);
74
119
  const headers = {
@@ -249,6 +294,50 @@ export const de_GetOngoingCallCommand = async (output, context) => {
249
294
  const doc = take(data, {
250
295
  'company': __expectString,
251
296
  'flows': _json,
297
+ });
298
+ Object.assign(contents, doc);
299
+ return contents;
300
+ };
301
+ export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
302
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
303
+ return de_CommandError(output, context);
304
+ }
305
+ const contents = map({
306
+ $metadata: deserializeMetadata(output),
307
+ });
308
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
309
+ const doc = take(data, {
310
+ 'company': __expectString,
311
+ 'flows': _json,
312
+ 'transcriptions': _json,
313
+ });
314
+ Object.assign(contents, doc);
315
+ return contents;
316
+ };
317
+ export const de_GetOngoingConferenceCommand = async (output, context) => {
318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
319
+ return de_CommandError(output, context);
320
+ }
321
+ const contents = map({
322
+ $metadata: deserializeMetadata(output),
323
+ });
324
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
325
+ const doc = take(data, {
326
+ 'conference': _json,
327
+ });
328
+ Object.assign(contents, doc);
329
+ return contents;
330
+ };
331
+ export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
332
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
333
+ return de_CommandError(output, context);
334
+ }
335
+ const contents = map({
336
+ $metadata: deserializeMetadata(output),
337
+ });
338
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
339
+ const doc = take(data, {
340
+ 'conference': _json,
252
341
  'transcriptions': _json,
253
342
  });
254
343
  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 { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
7
10
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
8
11
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -34,6 +37,24 @@ export interface WdaStream {
34
37
  getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
35
38
  getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
36
39
  getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
40
+ /**
41
+ * @see {@link GetOngoingCallTranscriptionCommand}
42
+ */
43
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallTranscriptionCommandOutput>;
44
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
45
+ getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link GetOngoingConferenceCommand}
48
+ */
49
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceCommandOutput>;
50
+ getOngoingConference(args: GetOngoingConferenceCommandInput, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
51
+ getOngoingConference(args: GetOngoingConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link GetOngoingConferenceTranscriptionCommand}
54
+ */
55
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
56
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
57
+ getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
37
58
  /**
38
59
  * @see {@link QueryConversationsCommand}
39
60
  */
@@ -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 { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
6
9
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
7
10
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -17,11 +20,11 @@ export { __Client };
17
20
  /**
18
21
  * @public
19
22
  */
20
- export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
23
+ export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
21
24
  /**
22
25
  * @public
23
26
  */
24
- export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
27
+ export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
25
28
  /**
26
29
  * @public
27
30
  */
@@ -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", // 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_0";
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", // 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_0";
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", // 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_0";
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", // 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", // 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 "./QueryConversationsCommand";
6
9
  export * from "./QueryPresenceCommand";
7
10
  export * from "./QueryPresencesCommand";
@@ -5136,8 +5136,49 @@ export interface GetOngoingCallInput {
5136
5136
  export interface GetOngoingCallOutput {
5137
5137
  company: string;
5138
5138
  flows: (CallAnalyticsLiveProgressEventFlow)[];
5139
+ }
5140
+ /**
5141
+ * @public
5142
+ */
5143
+ export interface GetOngoingCallTranscriptionInput {
5144
+ company?: string | undefined;
5145
+ callId: string;
5146
+ }
5147
+ /**
5148
+ * @public
5149
+ */
5150
+ export interface GetOngoingCallTranscriptionOutput {
5151
+ company: string;
5152
+ flows: (CallAnalyticsLiveProgressEventFlow)[];
5139
5153
  transcriptions?: (CallAnalyticsLiveTranscriptionEvent)[] | undefined;
5140
5154
  }
5155
+ /**
5156
+ * @public
5157
+ */
5158
+ export interface GetOngoingConferenceInput {
5159
+ company?: string | undefined;
5160
+ conferenceId: string;
5161
+ }
5162
+ /**
5163
+ * @public
5164
+ */
5165
+ export interface GetOngoingConferenceOutput {
5166
+ conference: ConferenceAnalyticsLiveProgressEvent;
5167
+ }
5168
+ /**
5169
+ * @public
5170
+ */
5171
+ export interface GetOngoingConferenceTranscriptionInput {
5172
+ company?: string | undefined;
5173
+ conferenceId: string;
5174
+ }
5175
+ /**
5176
+ * @public
5177
+ */
5178
+ export interface GetOngoingConferenceTranscriptionOutput {
5179
+ conference: ConferenceAnalyticsLiveProgressEvent;
5180
+ transcriptions?: (ConferenceAnalyticsLiveTranscriptionEvent)[] | undefined;
5181
+ }
5141
5182
  /**
5142
5183
  * @public
5143
5184
  * @enum
@@ -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 { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
6
9
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "../commands/QueryPresenceCommand";
7
10
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "../commands/QueryPresencesCommand";
@@ -24,6 +27,18 @@ export declare const se_GetConferenceIdCommand: (input: GetConferenceIdCommandIn
24
27
  * serializeAws_restJson1GetOngoingCallCommand
25
28
  */
26
29
  export declare const se_GetOngoingCallCommand: (input: GetOngoingCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ /**
31
+ * serializeAws_restJson1GetOngoingCallTranscriptionCommand
32
+ */
33
+ export declare const se_GetOngoingCallTranscriptionCommand: (input: GetOngoingCallTranscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_restJson1GetOngoingConferenceCommand
36
+ */
37
+ export declare const se_GetOngoingConferenceCommand: (input: GetOngoingConferenceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * serializeAws_restJson1GetOngoingConferenceTranscriptionCommand
40
+ */
41
+ export declare const se_GetOngoingConferenceTranscriptionCommand: (input: GetOngoingConferenceTranscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
42
  /**
28
43
  * serializeAws_restJson1QueryConversationsCommand
29
44
  */
@@ -56,6 +71,18 @@ export declare const de_GetConferenceIdCommand: (output: __HttpResponse, context
56
71
  * deserializeAws_restJson1GetOngoingCallCommand
57
72
  */
58
73
  export declare const de_GetOngoingCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingCallCommandOutput>;
74
+ /**
75
+ * deserializeAws_restJson1GetOngoingCallTranscriptionCommand
76
+ */
77
+ export declare const de_GetOngoingCallTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingCallTranscriptionCommandOutput>;
78
+ /**
79
+ * deserializeAws_restJson1GetOngoingConferenceCommand
80
+ */
81
+ export declare const de_GetOngoingConferenceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConferenceCommandOutput>;
82
+ /**
83
+ * deserializeAws_restJson1GetOngoingConferenceTranscriptionCommand
84
+ */
85
+ export declare const de_GetOngoingConferenceTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingConferenceTranscriptionCommandOutput>;
59
86
  /**
60
87
  * deserializeAws_restJson1QueryConversationsCommand
61
88
  */
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.39",
4
+ "version": "1.1.40",
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",