@wildix/wda-stream-client 1.1.38 → 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.
- package/dist-cjs/WdaStream.js +8 -0
- package/dist-cjs/commands/GetOngoingCallCommand.js +21 -0
- package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/GetOngoingConferenceCommand.js +21 -0
- package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +129 -1
- package/dist-es/WdaStream.js +8 -0
- package/dist-es/commands/GetOngoingCallCommand.js +17 -0
- package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +17 -0
- package/dist-es/commands/GetOngoingConferenceCommand.js +17 -0
- package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +17 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +120 -0
- package/dist-types/WdaStream.d.ts +28 -0
- package/dist-types/WdaStreamClient.d.ts +6 -2
- package/dist-types/commands/GetOngoingCallCommand.d.ts +251 -0
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +297 -0
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +106 -0
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +142 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +56 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -5,6 +5,10 @@ const WdaStreamClient_1 = require("./WdaStreamClient");
|
|
|
5
5
|
const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
|
|
6
6
|
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
7
7
|
const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
|
|
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");
|
|
8
12
|
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
9
13
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
10
14
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
@@ -14,6 +18,10 @@ const commands = {
|
|
|
14
18
|
ConsumeEventCommand: ConsumeEventCommand_1.ConsumeEventCommand,
|
|
15
19
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
16
20
|
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
21
|
+
GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
|
|
22
|
+
GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
|
|
23
|
+
GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
|
|
24
|
+
GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
|
|
17
25
|
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
18
26
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
19
27
|
QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOngoingCallCommand = 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 GetOngoingCallCommand 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", "GetOngoingCall", {})
|
|
15
|
+
.n("WdaStreamClient", "GetOngoingCallCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetOngoingCallCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetOngoingCallCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetOngoingCallCommand = GetOngoingCallCommand;
|
|
@@ -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;
|
|
@@ -4,6 +4,10 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
|
|
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);
|
|
7
11
|
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
8
12
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
9
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_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = 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");
|
|
@@ -60,6 +60,70 @@ const se_GetConferenceIdCommand = async (input, context) => {
|
|
|
60
60
|
return b.build();
|
|
61
61
|
};
|
|
62
62
|
exports.se_GetConferenceIdCommand = se_GetConferenceIdCommand;
|
|
63
|
+
const se_GetOngoingCallCommand = async (input, context) => {
|
|
64
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
65
|
+
const headers = {};
|
|
66
|
+
b.bp("/v2/stream/calls/{callId}");
|
|
67
|
+
b.p('callId', () => input.callId, '{callId}', false);
|
|
68
|
+
const query = (0, smithy_client_1.map)({
|
|
69
|
+
[_c]: [, input[_c]],
|
|
70
|
+
});
|
|
71
|
+
let body;
|
|
72
|
+
b.m("GET")
|
|
73
|
+
.h(headers)
|
|
74
|
+
.q(query)
|
|
75
|
+
.b(body);
|
|
76
|
+
return b.build();
|
|
77
|
+
};
|
|
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;
|
|
63
127
|
const se_QueryConversationsCommand = async (input, context) => {
|
|
64
128
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
65
129
|
const headers = {
|
|
@@ -236,6 +300,70 @@ const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
236
300
|
return contents;
|
|
237
301
|
};
|
|
238
302
|
exports.de_GetConferenceIdCommand = de_GetConferenceIdCommand;
|
|
303
|
+
const de_GetOngoingCallCommand = async (output, context) => {
|
|
304
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
305
|
+
return de_CommandError(output, context);
|
|
306
|
+
}
|
|
307
|
+
const contents = (0, smithy_client_1.map)({
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
});
|
|
310
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
311
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
312
|
+
'company': smithy_client_1.expectString,
|
|
313
|
+
'flows': smithy_client_1._json,
|
|
314
|
+
});
|
|
315
|
+
Object.assign(contents, doc);
|
|
316
|
+
return contents;
|
|
317
|
+
};
|
|
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;
|
|
239
367
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
240
368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
241
369
|
return de_CommandError(output, context);
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -2,6 +2,10 @@ import { WdaStreamClient, } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
|
|
5
|
+
import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
|
|
6
|
+
import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
7
|
+
import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
|
|
8
|
+
import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
5
9
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
6
10
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
7
11
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
@@ -11,6 +15,10 @@ const commands = {
|
|
|
11
15
|
ConsumeEventCommand,
|
|
12
16
|
DescribeEventCommand,
|
|
13
17
|
GetConferenceIdCommand,
|
|
18
|
+
GetOngoingCallCommand,
|
|
19
|
+
GetOngoingCallTranscriptionCommand,
|
|
20
|
+
GetOngoingConferenceCommand,
|
|
21
|
+
GetOngoingConferenceTranscriptionCommand,
|
|
14
22
|
QueryConversationsCommand,
|
|
15
23
|
QueryPresenceCommand,
|
|
16
24
|
QueryPresencesCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetOngoingCallCommand, se_GetOngoingCallCommand, } 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 GetOngoingCallCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaStream", "GetOngoingCall", {})
|
|
12
|
+
.n("WdaStreamClient", "GetOngoingCallCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetOngoingCallCommand)
|
|
15
|
+
.de(de_GetOngoingCallCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./ConsumeEventCommand";
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
|
+
export * from "./GetOngoingCallCommand";
|
|
5
|
+
export * from "./GetOngoingCallTranscriptionCommand";
|
|
6
|
+
export * from "./GetOngoingConferenceCommand";
|
|
7
|
+
export * from "./GetOngoingConferenceTranscriptionCommand";
|
|
4
8
|
export * from "./QueryConversationsCommand";
|
|
5
9
|
export * from "./QueryPresenceCommand";
|
|
6
10
|
export * from "./QueryPresencesCommand";
|
|
@@ -54,6 +54,66 @@ export const se_GetConferenceIdCommand = async (input, context) => {
|
|
|
54
54
|
.b(body);
|
|
55
55
|
return b.build();
|
|
56
56
|
};
|
|
57
|
+
export const se_GetOngoingCallCommand = async (input, context) => {
|
|
58
|
+
const b = rb(input, context);
|
|
59
|
+
const headers = {};
|
|
60
|
+
b.bp("/v2/stream/calls/{callId}");
|
|
61
|
+
b.p('callId', () => input.callId, '{callId}', false);
|
|
62
|
+
const query = map({
|
|
63
|
+
[_c]: [, input[_c]],
|
|
64
|
+
});
|
|
65
|
+
let body;
|
|
66
|
+
b.m("GET")
|
|
67
|
+
.h(headers)
|
|
68
|
+
.q(query)
|
|
69
|
+
.b(body);
|
|
70
|
+
return b.build();
|
|
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
|
+
};
|
|
57
117
|
export const se_QueryConversationsCommand = async (input, context) => {
|
|
58
118
|
const b = rb(input, context);
|
|
59
119
|
const headers = {
|
|
@@ -223,6 +283,66 @@ export const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
223
283
|
Object.assign(contents, doc);
|
|
224
284
|
return contents;
|
|
225
285
|
};
|
|
286
|
+
export const de_GetOngoingCallCommand = async (output, context) => {
|
|
287
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
+
return de_CommandError(output, context);
|
|
289
|
+
}
|
|
290
|
+
const contents = map({
|
|
291
|
+
$metadata: deserializeMetadata(output),
|
|
292
|
+
});
|
|
293
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
294
|
+
const doc = take(data, {
|
|
295
|
+
'company': __expectString,
|
|
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,
|
|
341
|
+
'transcriptions': _json,
|
|
342
|
+
});
|
|
343
|
+
Object.assign(contents, doc);
|
|
344
|
+
return contents;
|
|
345
|
+
};
|
|
226
346
|
export const de_QueryConversationsCommand = async (output, context) => {
|
|
227
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
348
|
return de_CommandError(output, context);
|
|
@@ -2,6 +2,10 @@ import { WdaStreamClient } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
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";
|
|
5
9
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
6
10
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
7
11
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -27,6 +31,30 @@ export interface WdaStream {
|
|
|
27
31
|
getConferenceId(args: GetConferenceIdCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceIdCommandOutput>;
|
|
28
32
|
getConferenceId(args: GetConferenceIdCommandInput, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
29
33
|
getConferenceId(args: GetConferenceIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link GetOngoingCallCommand}
|
|
36
|
+
*/
|
|
37
|
+
getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
|
|
38
|
+
getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
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;
|
|
30
58
|
/**
|
|
31
59
|
* @see {@link QueryConversationsCommand}
|
|
32
60
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
3
3
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
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";
|
|
4
8
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
5
9
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
6
10
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -16,11 +20,11 @@ export { __Client };
|
|
|
16
20
|
/**
|
|
17
21
|
* @public
|
|
18
22
|
*/
|
|
19
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
23
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
20
24
|
/**
|
|
21
25
|
* @public
|
|
22
26
|
*/
|
|
23
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
27
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
24
28
|
/**
|
|
25
29
|
* @public
|
|
26
30
|
*/
|