@wildix/wda-stream-client 1.1.30 → 1.1.32
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 +2 -0
- package/dist-cjs/commands/GetOngoingCallCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +1 -23
- package/dist-cjs/protocols/Aws_restJson1.js +33 -3
- package/dist-es/WdaStream.js +2 -0
- package/dist-es/commands/GetOngoingCallCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +0 -22
- package/dist-es/protocols/Aws_restJson1.js +30 -2
- package/dist-types/WdaStream.d.ts +7 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +44 -72
- package/dist-types/commands/GetOngoingCallCommand.d.ts +296 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +14 -98
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -5,6 +5,7 @@ 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");
|
|
8
9
|
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
9
10
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
10
11
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
ConsumeEventCommand: ConsumeEventCommand_1.ConsumeEventCommand,
|
|
15
16
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
16
17
|
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
18
|
+
GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
|
|
17
19
|
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
18
20
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
19
21
|
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;
|
|
@@ -4,6 +4,7 @@ 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);
|
|
7
8
|
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./QueryPresencesCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
|
-
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.
|
|
4
|
+
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
name = "ForbiddenException";
|
|
@@ -276,9 +276,6 @@ exports.LiveEventType = {
|
|
|
276
276
|
CONFERENCE_JOIN: "conference_join",
|
|
277
277
|
CONFERENCE_LEAVE: "conference_leave",
|
|
278
278
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
279
|
-
SERVICE: "service",
|
|
280
|
-
SERVICE_AGENT: "service_agent",
|
|
281
|
-
SERVICE_CALL: "service_call",
|
|
282
279
|
};
|
|
283
280
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
284
281
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -473,7 +470,6 @@ exports.WebsocketAction = {
|
|
|
473
470
|
exports.WebsocketTopic = {
|
|
474
471
|
CONVERSATIONS: "conversations",
|
|
475
472
|
PRESENCE: "presence",
|
|
476
|
-
SERVICES: "services",
|
|
477
473
|
TRANSCRIPTIONS: "transcriptions",
|
|
478
474
|
};
|
|
479
475
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -485,24 +481,6 @@ exports.PresenceEventType = {
|
|
|
485
481
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
486
482
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
487
483
|
};
|
|
488
|
-
exports.ServiceAgentType = {
|
|
489
|
-
DYNAMIC: "DYNAMIC",
|
|
490
|
-
STATIC: "STATIC",
|
|
491
|
-
};
|
|
492
|
-
exports.ServiceAnalyticsLiveProgressEventTrigger = {
|
|
493
|
-
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
494
|
-
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
495
|
-
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
496
|
-
SERVICE_CALL_END: "service.call_end",
|
|
497
|
-
SERVICE_CALL_INIT: "service.call_init",
|
|
498
|
-
SERVICE_CALL_UPDATE: "service.call_update",
|
|
499
|
-
SERVICE_END: "service.end",
|
|
500
|
-
SERVICE_INIT: "service.init",
|
|
501
|
-
SERVICE_UPDATE: "service.update",
|
|
502
|
-
};
|
|
503
|
-
exports.ServiceEventType = {
|
|
504
|
-
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
505
|
-
};
|
|
506
484
|
exports.WebhookEventType = {
|
|
507
485
|
CALL_COMPLETED: "call:completed",
|
|
508
486
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -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_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;
|
|
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,22 @@ 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;
|
|
63
79
|
const se_QueryConversationsCommand = async (input, context) => {
|
|
64
80
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
65
81
|
const headers = {
|
|
@@ -176,8 +192,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
176
192
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
177
193
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
178
194
|
'PresenceEventType': smithy_client_1.expectString,
|
|
179
|
-
'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
180
|
-
'ServiceEventType': smithy_client_1.expectString,
|
|
181
195
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
182
196
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
183
197
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -238,6 +252,22 @@ const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
238
252
|
return contents;
|
|
239
253
|
};
|
|
240
254
|
exports.de_GetConferenceIdCommand = de_GetConferenceIdCommand;
|
|
255
|
+
const de_GetOngoingCallCommand = async (output, context) => {
|
|
256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
257
|
+
return de_CommandError(output, context);
|
|
258
|
+
}
|
|
259
|
+
const contents = (0, smithy_client_1.map)({
|
|
260
|
+
$metadata: deserializeMetadata(output),
|
|
261
|
+
});
|
|
262
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
263
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
264
|
+
'flows': smithy_client_1._json,
|
|
265
|
+
'transcriptions': smithy_client_1._json,
|
|
266
|
+
});
|
|
267
|
+
Object.assign(contents, doc);
|
|
268
|
+
return contents;
|
|
269
|
+
};
|
|
270
|
+
exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
|
|
241
271
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
242
272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
243
273
|
return de_CommandError(output, context);
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -2,6 +2,7 @@ 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";
|
|
5
6
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
6
7
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
7
8
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
@@ -11,6 +12,7 @@ const commands = {
|
|
|
11
12
|
ConsumeEventCommand,
|
|
12
13
|
DescribeEventCommand,
|
|
13
14
|
GetConferenceIdCommand,
|
|
15
|
+
GetOngoingCallCommand,
|
|
14
16
|
QueryConversationsCommand,
|
|
15
17
|
QueryPresenceCommand,
|
|
16
18
|
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
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./ConsumeEventCommand";
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
|
+
export * from "./GetOngoingCallCommand";
|
|
4
5
|
export * from "./QueryConversationsCommand";
|
|
5
6
|
export * from "./QueryPresenceCommand";
|
|
6
7
|
export * from "./QueryPresencesCommand";
|
|
@@ -270,9 +270,6 @@ export const LiveEventType = {
|
|
|
270
270
|
CONFERENCE_JOIN: "conference_join",
|
|
271
271
|
CONFERENCE_LEAVE: "conference_leave",
|
|
272
272
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
273
|
-
SERVICE: "service",
|
|
274
|
-
SERVICE_AGENT: "service_agent",
|
|
275
|
-
SERVICE_CALL: "service_call",
|
|
276
273
|
};
|
|
277
274
|
export const CallAnalyticsLiveProgressEventTrigger = {
|
|
278
275
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -467,7 +464,6 @@ export const WebsocketAction = {
|
|
|
467
464
|
export const WebsocketTopic = {
|
|
468
465
|
CONVERSATIONS: "conversations",
|
|
469
466
|
PRESENCE: "presence",
|
|
470
|
-
SERVICES: "services",
|
|
471
467
|
TRANSCRIPTIONS: "transcriptions",
|
|
472
468
|
};
|
|
473
469
|
export const PresenceAnalyticsEventType = {
|
|
@@ -479,24 +475,6 @@ export const PresenceEventType = {
|
|
|
479
475
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
480
476
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
481
477
|
};
|
|
482
|
-
export const ServiceAgentType = {
|
|
483
|
-
DYNAMIC: "DYNAMIC",
|
|
484
|
-
STATIC: "STATIC",
|
|
485
|
-
};
|
|
486
|
-
export const ServiceAnalyticsLiveProgressEventTrigger = {
|
|
487
|
-
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
488
|
-
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
489
|
-
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
490
|
-
SERVICE_CALL_END: "service.call_end",
|
|
491
|
-
SERVICE_CALL_INIT: "service.call_init",
|
|
492
|
-
SERVICE_CALL_UPDATE: "service.call_update",
|
|
493
|
-
SERVICE_END: "service.end",
|
|
494
|
-
SERVICE_INIT: "service.init",
|
|
495
|
-
SERVICE_UPDATE: "service.update",
|
|
496
|
-
};
|
|
497
|
-
export const ServiceEventType = {
|
|
498
|
-
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
499
|
-
};
|
|
500
478
|
export const WebhookEventType = {
|
|
501
479
|
CALL_COMPLETED: "call:completed",
|
|
502
480
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -54,6 +54,21 @@ 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
|
+
};
|
|
57
72
|
export const se_QueryConversationsCommand = async (input, context) => {
|
|
58
73
|
const b = rb(input, context);
|
|
59
74
|
const headers = {
|
|
@@ -165,8 +180,6 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
165
180
|
'PresenceAnalyticsStatusEvent': _json,
|
|
166
181
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
167
182
|
'PresenceEventType': __expectString,
|
|
168
|
-
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
169
|
-
'ServiceEventType': __expectString,
|
|
170
183
|
'WebhookCallCompletedEvent': _json,
|
|
171
184
|
'WebhookCallLiveCompletedEvent': _json,
|
|
172
185
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
@@ -225,6 +238,21 @@ export const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
225
238
|
Object.assign(contents, doc);
|
|
226
239
|
return contents;
|
|
227
240
|
};
|
|
241
|
+
export const de_GetOngoingCallCommand = async (output, context) => {
|
|
242
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
243
|
+
return de_CommandError(output, context);
|
|
244
|
+
}
|
|
245
|
+
const contents = map({
|
|
246
|
+
$metadata: deserializeMetadata(output),
|
|
247
|
+
});
|
|
248
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
249
|
+
const doc = take(data, {
|
|
250
|
+
'flows': _json,
|
|
251
|
+
'transcriptions': _json,
|
|
252
|
+
});
|
|
253
|
+
Object.assign(contents, doc);
|
|
254
|
+
return contents;
|
|
255
|
+
};
|
|
228
256
|
export const de_QueryConversationsCommand = async (output, context) => {
|
|
229
257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
230
258
|
return de_CommandError(output, context);
|
|
@@ -2,6 +2,7 @@ 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";
|
|
5
6
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
6
7
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
7
8
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -27,6 +28,12 @@ export interface WdaStream {
|
|
|
27
28
|
getConferenceId(args: GetConferenceIdCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceIdCommandOutput>;
|
|
28
29
|
getConferenceId(args: GetConferenceIdCommandInput, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
29
30
|
getConferenceId(args: GetConferenceIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link GetOngoingCallCommand}
|
|
33
|
+
*/
|
|
34
|
+
getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
|
|
35
|
+
getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
36
|
+
getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
30
37
|
/**
|
|
31
38
|
* @see {@link QueryConversationsCommand}
|
|
32
39
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
5
6
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
6
7
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -16,11 +17,11 @@ export { __Client };
|
|
|
16
17
|
/**
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
20
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
20
21
|
/**
|
|
21
22
|
* @public
|
|
22
23
|
*/
|
|
23
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
24
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
@@ -359,7 +359,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
359
359
|
* flowIndex: Number("int"), // required
|
|
360
360
|
* flowStartTime: Number("long"), // required
|
|
361
361
|
* callStartTime: Number("long"), // required
|
|
362
|
-
* type: "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"
|
|
362
|
+
* type: "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
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|