@wildix/wda-stream-client 1.1.46 → 1.1.47
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 +6 -2
- package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/{ListServicesCommand.js → GetOngoingConferenceCommand.js} +7 -7
- package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +41 -65
- package/dist-cjs/protocols/Aws_restJson1.js +77 -33
- package/dist-es/WdaStream.js +6 -2
- 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 +3 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +38 -64
- package/dist-es/protocols/Aws_restJson1.js +68 -28
- package/dist-types/WdaStream.d.ts +19 -6
- package/dist-types/WdaStreamClient.d.ts +5 -3
- package/dist-types/commands/ConsumeEventCommand.d.ts +1 -170
- package/dist-types/commands/DescribeEventCommand.d.ts +44 -120
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -47
- 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/QueryConversationsCommand.d.ts +4 -4
- package/dist-types/commands/QueryPresenceCommand.d.ts +1 -1
- package/dist-types/commands/QueryPresencesCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +351 -1153
- package/dist-types/protocols/Aws_restJson1.d.ts +23 -5
- package/package.json +1 -1
- package/dist-cjs/models/models_1.js +0 -44
- package/dist-es/commands/ListServicesCommand.js +0 -17
- package/dist-es/models/models_1.js +0 -39
- package/dist-types/commands/ListServicesCommand.d.ts +0 -87
- package/dist-types/models/models_1.d.ts +0 -272
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -6,7 +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
|
|
9
|
+
const GetOngoingCallTranscriptionCommand_1 = require("./commands/GetOngoingCallTranscriptionCommand");
|
|
10
|
+
const GetOngoingConferenceCommand_1 = require("./commands/GetOngoingConferenceCommand");
|
|
11
|
+
const GetOngoingConferenceTranscriptionCommand_1 = require("./commands/GetOngoingConferenceTranscriptionCommand");
|
|
10
12
|
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
11
13
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
12
14
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
@@ -17,7 +19,9 @@ const commands = {
|
|
|
17
19
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
18
20
|
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
19
21
|
GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
|
|
20
|
-
|
|
22
|
+
GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
|
|
23
|
+
GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
|
|
24
|
+
GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
|
|
21
25
|
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
22
26
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
23
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;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetOngoingConferenceCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class GetOngoingConferenceCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("WdaStream", "
|
|
15
|
-
.n("WdaStreamClient", "
|
|
14
|
+
.s("WdaStream", "GetOngoingConference", {})
|
|
15
|
+
.n("WdaStreamClient", "GetOngoingConferenceCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetOngoingConferenceCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetOngoingConferenceCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
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,7 +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("./
|
|
8
|
+
tslib_1.__exportStar(require("./GetOngoingCallTranscriptionCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetOngoingConferenceCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./GetOngoingConferenceTranscriptionCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./QueryPresencesCommand"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -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.
|
|
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,11 +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
|
-
SERVICE_CALL_COMPLETE: "service_call_complete",
|
|
283
|
-
SERVICE_COMPLETE: "service_complete",
|
|
284
279
|
};
|
|
285
280
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
286
281
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -376,27 +371,6 @@ exports.PresenceConsumeEventType = {
|
|
|
376
371
|
PRESENCE: "PRESENCE",
|
|
377
372
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
378
373
|
};
|
|
379
|
-
exports.ServiceAgentType = {
|
|
380
|
-
DYNAMIC: "DYNAMIC",
|
|
381
|
-
STATIC: "STATIC",
|
|
382
|
-
};
|
|
383
|
-
exports.ServiceConsumeEventType = {
|
|
384
|
-
SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
|
|
385
|
-
SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
|
|
386
|
-
SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
|
|
387
|
-
SERVICE_CALL_END: "SERVICE.CALL_END",
|
|
388
|
-
SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
|
|
389
|
-
SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
|
|
390
|
-
SERVICE_END: "SERVICE.END",
|
|
391
|
-
SERVICE_INIT: "SERVICE.INIT",
|
|
392
|
-
SERVICE_UPDATE: "SERVICE.UPDATE",
|
|
393
|
-
};
|
|
394
|
-
exports.ServiceCallAction = {
|
|
395
|
-
ANSWER: "ANSWER",
|
|
396
|
-
CANCEL: "CANCEL",
|
|
397
|
-
REJECT: "REJECT",
|
|
398
|
-
RING: "RING",
|
|
399
|
-
};
|
|
400
374
|
exports.SmsConsumeEventType = {
|
|
401
375
|
SMS_INBOUND: "SMS.INBOUND",
|
|
402
376
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -483,24 +457,6 @@ var ConsumeEventInputEvent;
|
|
|
483
457
|
return visitor.presence(value.presence);
|
|
484
458
|
if (value.presenceTelephony !== undefined)
|
|
485
459
|
return visitor.presenceTelephony(value.presenceTelephony);
|
|
486
|
-
if (value.serviceInit !== undefined)
|
|
487
|
-
return visitor.serviceInit(value.serviceInit);
|
|
488
|
-
if (value.serviceUpdate !== undefined)
|
|
489
|
-
return visitor.serviceUpdate(value.serviceUpdate);
|
|
490
|
-
if (value.serviceEnd !== undefined)
|
|
491
|
-
return visitor.serviceEnd(value.serviceEnd);
|
|
492
|
-
if (value.serviceCallInit !== undefined)
|
|
493
|
-
return visitor.serviceCallInit(value.serviceCallInit);
|
|
494
|
-
if (value.serviceCallUpdate !== undefined)
|
|
495
|
-
return visitor.serviceCallUpdate(value.serviceCallUpdate);
|
|
496
|
-
if (value.serviceCallEnd !== undefined)
|
|
497
|
-
return visitor.serviceCallEnd(value.serviceCallEnd);
|
|
498
|
-
if (value.serviceAgentJoin !== undefined)
|
|
499
|
-
return visitor.serviceAgentJoin(value.serviceAgentJoin);
|
|
500
|
-
if (value.serviceAgentUpdate !== undefined)
|
|
501
|
-
return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
|
|
502
|
-
if (value.serviceAgentLeave !== undefined)
|
|
503
|
-
return visitor.serviceAgentLeave(value.serviceAgentLeave);
|
|
504
460
|
if (value.usageStt !== undefined)
|
|
505
461
|
return visitor.usageStt(value.usageStt);
|
|
506
462
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -514,7 +470,6 @@ exports.WebsocketAction = {
|
|
|
514
470
|
exports.WebsocketTopic = {
|
|
515
471
|
CONVERSATIONS: "conversations",
|
|
516
472
|
PRESENCE: "presence",
|
|
517
|
-
SERVICES: "services",
|
|
518
473
|
TRANSCRIPTIONS: "transcriptions",
|
|
519
474
|
};
|
|
520
475
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -526,25 +481,6 @@ exports.PresenceEventType = {
|
|
|
526
481
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
527
482
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
528
483
|
};
|
|
529
|
-
exports.ServiceAnalyticsEventTrigger = {
|
|
530
|
-
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
531
|
-
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
532
|
-
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
533
|
-
SERVICE_CALL_END: "service.call_end",
|
|
534
|
-
SERVICE_CALL_INIT: "service.call_init",
|
|
535
|
-
SERVICE_CALL_UPDATE: "service.call_update",
|
|
536
|
-
SERVICE_END: "service.end",
|
|
537
|
-
SERVICE_INIT: "service.init",
|
|
538
|
-
SERVICE_UPDATE: "service.update",
|
|
539
|
-
};
|
|
540
|
-
exports.ServiceCallEventType = {
|
|
541
|
-
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
542
|
-
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
543
|
-
};
|
|
544
|
-
exports.ServiceEventType = {
|
|
545
|
-
LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
|
|
546
|
-
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
547
|
-
};
|
|
548
484
|
exports.WebhookEventType = {
|
|
549
485
|
CALL_COMPLETED: "call:completed",
|
|
550
486
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -585,3 +521,43 @@ exports.WebsocketEvent = {
|
|
|
585
521
|
SUBSCRIBED: "subscribed",
|
|
586
522
|
UNSUBSCRIBE: "unsubscribed",
|
|
587
523
|
};
|
|
524
|
+
class MatchNotFoundException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
525
|
+
name = "MatchNotFoundException";
|
|
526
|
+
$fault = "client";
|
|
527
|
+
constructor(opts) {
|
|
528
|
+
super({
|
|
529
|
+
name: "MatchNotFoundException",
|
|
530
|
+
$fault: "client",
|
|
531
|
+
...opts
|
|
532
|
+
});
|
|
533
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
exports.MatchNotFoundException = MatchNotFoundException;
|
|
537
|
+
exports.PresenceStatus = {
|
|
538
|
+
AWAY: "AWAY",
|
|
539
|
+
DND: "DND",
|
|
540
|
+
OFFLINE: "OFFLINE",
|
|
541
|
+
ONLINE: "ONLINE",
|
|
542
|
+
ONLY_SIP: "ONLY_SIP",
|
|
543
|
+
};
|
|
544
|
+
exports.TelephonyStatus = {
|
|
545
|
+
REGISTERED: "REGISTERED",
|
|
546
|
+
RINGING: "RINGING",
|
|
547
|
+
RT: "RT",
|
|
548
|
+
TALKING: "TALKING",
|
|
549
|
+
UNREGISTERED: "UNREGISTERED",
|
|
550
|
+
};
|
|
551
|
+
class PresenceNotAvailableException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
552
|
+
name = "PresenceNotAvailableException";
|
|
553
|
+
$fault = "client";
|
|
554
|
+
constructor(opts) {
|
|
555
|
+
super({
|
|
556
|
+
name: "PresenceNotAvailableException",
|
|
557
|
+
$fault: "client",
|
|
558
|
+
...opts
|
|
559
|
+
});
|
|
560
|
+
Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
exports.PresenceNotAvailableException = PresenceNotAvailableException;
|
|
@@ -1,9 +1,8 @@
|
|
|
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.
|
|
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
|
-
const models_1_1 = require("../models/models_1");
|
|
7
6
|
const core_1 = require("@aws-sdk/core");
|
|
8
7
|
const core_2 = require("@smithy/core");
|
|
9
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -77,26 +76,54 @@ const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
77
76
|
return b.build();
|
|
78
77
|
};
|
|
79
78
|
exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
|
|
80
|
-
const
|
|
79
|
+
const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
81
80
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
|
-
const headers = {
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
b.bp("/v2/stream/services");
|
|
81
|
+
const headers = {};
|
|
82
|
+
b.bp("/v2/stream/calls/{callId}/transcription");
|
|
83
|
+
b.p('callId', () => input.callId, '{callId}', false);
|
|
86
84
|
const query = (0, smithy_client_1.map)({
|
|
87
85
|
[_c]: [, input[_c]],
|
|
88
86
|
});
|
|
89
87
|
let body;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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")
|
|
94
105
|
.h(headers)
|
|
95
106
|
.q(query)
|
|
96
107
|
.b(body);
|
|
97
108
|
return b.build();
|
|
98
109
|
};
|
|
99
|
-
exports.
|
|
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;
|
|
100
127
|
const se_QueryConversationsCommand = async (input, context) => {
|
|
101
128
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
102
129
|
const headers = {
|
|
@@ -213,12 +240,6 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
213
240
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
214
241
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
215
242
|
'PresenceEventType': smithy_client_1.expectString,
|
|
216
|
-
'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
217
|
-
'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
218
|
-
'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
219
|
-
'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
220
|
-
'ServiceCallEventType': smithy_client_1.expectString,
|
|
221
|
-
'ServiceEventType': smithy_client_1.expectString,
|
|
222
243
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
223
244
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
224
245
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -290,13 +311,12 @@ const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
290
311
|
const doc = (0, smithy_client_1.take)(data, {
|
|
291
312
|
'company': smithy_client_1.expectString,
|
|
292
313
|
'flows': smithy_client_1._json,
|
|
293
|
-
'transcriptions': smithy_client_1._json,
|
|
294
314
|
});
|
|
295
315
|
Object.assign(contents, doc);
|
|
296
316
|
return contents;
|
|
297
317
|
};
|
|
298
318
|
exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
|
|
299
|
-
const
|
|
319
|
+
const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
300
320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
301
321
|
return de_CommandError(output, context);
|
|
302
322
|
}
|
|
@@ -305,12 +325,45 @@ const de_ListServicesCommand = async (output, context) => {
|
|
|
305
325
|
});
|
|
306
326
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
307
327
|
const doc = (0, smithy_client_1.take)(data, {
|
|
308
|
-
'
|
|
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,
|
|
309
362
|
});
|
|
310
363
|
Object.assign(contents, doc);
|
|
311
364
|
return contents;
|
|
312
365
|
};
|
|
313
|
-
exports.
|
|
366
|
+
exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
|
|
314
367
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
315
368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
369
|
return de_CommandError(output, context);
|
|
@@ -431,7 +484,7 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
431
484
|
'message': smithy_client_1.expectString,
|
|
432
485
|
});
|
|
433
486
|
Object.assign(contents, doc);
|
|
434
|
-
const exception = new
|
|
487
|
+
const exception = new models_0_1.MatchNotFoundException({
|
|
435
488
|
$metadata: deserializeMetadata(parsedOutput),
|
|
436
489
|
...contents
|
|
437
490
|
});
|
|
@@ -444,7 +497,7 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
444
497
|
'message': smithy_client_1.expectString,
|
|
445
498
|
});
|
|
446
499
|
Object.assign(contents, doc);
|
|
447
|
-
const exception = new
|
|
500
|
+
const exception = new models_0_1.PresenceNotAvailableException({
|
|
448
501
|
$metadata: deserializeMetadata(parsedOutput),
|
|
449
502
|
...contents
|
|
450
503
|
});
|
|
@@ -482,15 +535,6 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
482
535
|
conferenceTranscription: value => ({ "conferenceTranscription": (0, smithy_client_1._json)(value) }),
|
|
483
536
|
presence: value => ({ "presence": (0, smithy_client_1._json)(value) }),
|
|
484
537
|
presenceTelephony: value => ({ "presenceTelephony": (0, smithy_client_1._json)(value) }),
|
|
485
|
-
serviceAgentJoin: value => ({ "serviceAgentJoin": (0, smithy_client_1._json)(value) }),
|
|
486
|
-
serviceAgentLeave: value => ({ "serviceAgentLeave": (0, smithy_client_1._json)(value) }),
|
|
487
|
-
serviceAgentUpdate: value => ({ "serviceAgentUpdate": (0, smithy_client_1._json)(value) }),
|
|
488
|
-
serviceCallEnd: value => ({ "serviceCallEnd": (0, smithy_client_1._json)(value) }),
|
|
489
|
-
serviceCallInit: value => ({ "serviceCallInit": (0, smithy_client_1._json)(value) }),
|
|
490
|
-
serviceCallUpdate: value => ({ "serviceCallUpdate": (0, smithy_client_1._json)(value) }),
|
|
491
|
-
serviceEnd: value => ({ "serviceEnd": (0, smithy_client_1._json)(value) }),
|
|
492
|
-
serviceInit: value => ({ "serviceInit": (0, smithy_client_1._json)(value) }),
|
|
493
|
-
serviceUpdate: value => ({ "serviceUpdate": (0, smithy_client_1._json)(value) }),
|
|
494
538
|
smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
|
|
495
539
|
smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
|
|
496
540
|
usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -3,7 +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 {
|
|
6
|
+
import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
7
|
+
import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
|
|
8
|
+
import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
7
9
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
8
10
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
9
11
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
@@ -14,7 +16,9 @@ const commands = {
|
|
|
14
16
|
DescribeEventCommand,
|
|
15
17
|
GetConferenceIdCommand,
|
|
16
18
|
GetOngoingCallCommand,
|
|
17
|
-
|
|
19
|
+
GetOngoingCallTranscriptionCommand,
|
|
20
|
+
GetOngoingConferenceCommand,
|
|
21
|
+
GetOngoingConferenceTranscriptionCommand,
|
|
18
22
|
QueryConversationsCommand,
|
|
19
23
|
QueryPresenceCommand,
|
|
20
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,7 +2,9 @@ export * from "./ConsumeEventCommand";
|
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
4
|
export * from "./GetOngoingCallCommand";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./GetOngoingCallTranscriptionCommand";
|
|
6
|
+
export * from "./GetOngoingConferenceCommand";
|
|
7
|
+
export * from "./GetOngoingConferenceTranscriptionCommand";
|
|
6
8
|
export * from "./QueryConversationsCommand";
|
|
7
9
|
export * from "./QueryPresenceCommand";
|
|
8
10
|
export * from "./QueryPresencesCommand";
|
package/dist-es/models/index.js
CHANGED