@wildix/wda-stream-client 1.1.41 → 1.1.44
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/ListServicesCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -41
- package/dist-cjs/models/models_1.js +44 -0
- package/dist-cjs/protocols/Aws_restJson1.js +54 -3
- package/dist-es/WdaStream.js +2 -0
- package/dist-es/commands/ListServicesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +64 -38
- package/dist-es/models/models_1.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +50 -1
- package/dist-types/WdaStream.d.ts +8 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +178 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
- package/dist-types/commands/GetOngoingCallCommand.d.ts +2 -2
- package/dist-types/commands/ListServicesCommand.d.ts +87 -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 +1 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1146 -301
- package/dist-types/models/models_1.d.ts +272 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -6,6 +6,7 @@ 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 ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
9
10
|
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
10
11
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
11
12
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
@@ -16,6 +17,7 @@ const commands = {
|
|
|
16
17
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
17
18
|
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
18
19
|
GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
|
|
20
|
+
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
19
21
|
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
20
22
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
21
23
|
QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListServicesCommand = 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 ListServicesCommand 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", "ListServices", {})
|
|
15
|
+
.n("WdaStreamClient", "ListServicesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListServicesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListServicesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListServicesCommand = ListServicesCommand;
|
|
@@ -5,6 +5,7 @@ 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("./ListServicesCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
10
11
|
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.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.ServiceAnalyticsEventTrigger = 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,6 +276,11 @@ 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",
|
|
279
284
|
};
|
|
280
285
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
281
286
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -371,6 +376,38 @@ exports.PresenceConsumeEventType = {
|
|
|
371
376
|
PRESENCE: "PRESENCE",
|
|
372
377
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
373
378
|
};
|
|
379
|
+
exports.ServiceAnalyticsEventTrigger = {
|
|
380
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
381
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
382
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
383
|
+
SERVICE_CALL_END: "service.call_end",
|
|
384
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
385
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
386
|
+
SERVICE_END: "service.end",
|
|
387
|
+
SERVICE_INIT: "service.init",
|
|
388
|
+
SERVICE_UPDATE: "service.update",
|
|
389
|
+
};
|
|
390
|
+
exports.ServiceAgentType = {
|
|
391
|
+
DYNAMIC: "DYNAMIC",
|
|
392
|
+
STATIC: "STATIC",
|
|
393
|
+
};
|
|
394
|
+
exports.ServiceConsumeEventType = {
|
|
395
|
+
SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
|
|
396
|
+
SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
|
|
397
|
+
SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
|
|
398
|
+
SERVICE_CALL_END: "SERVICE.CALL_END",
|
|
399
|
+
SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
|
|
400
|
+
SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
|
|
401
|
+
SERVICE_END: "SERVICE.END",
|
|
402
|
+
SERVICE_INIT: "SERVICE.INIT",
|
|
403
|
+
SERVICE_UPDATE: "SERVICE.UPDATE",
|
|
404
|
+
};
|
|
405
|
+
exports.ServiceCallAction = {
|
|
406
|
+
ANSWER: "ANSWER",
|
|
407
|
+
CANCEL: "CANCEL",
|
|
408
|
+
REJECT: "REJECT",
|
|
409
|
+
RING: "RING",
|
|
410
|
+
};
|
|
374
411
|
exports.SmsConsumeEventType = {
|
|
375
412
|
SMS_INBOUND: "SMS.INBOUND",
|
|
376
413
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -457,6 +494,24 @@ var ConsumeEventInputEvent;
|
|
|
457
494
|
return visitor.presence(value.presence);
|
|
458
495
|
if (value.presenceTelephony !== undefined)
|
|
459
496
|
return visitor.presenceTelephony(value.presenceTelephony);
|
|
497
|
+
if (value.serviceInit !== undefined)
|
|
498
|
+
return visitor.serviceInit(value.serviceInit);
|
|
499
|
+
if (value.serviceUpdate !== undefined)
|
|
500
|
+
return visitor.serviceUpdate(value.serviceUpdate);
|
|
501
|
+
if (value.serviceEnd !== undefined)
|
|
502
|
+
return visitor.serviceEnd(value.serviceEnd);
|
|
503
|
+
if (value.serviceCallInit !== undefined)
|
|
504
|
+
return visitor.serviceCallInit(value.serviceCallInit);
|
|
505
|
+
if (value.serviceCallUpdate !== undefined)
|
|
506
|
+
return visitor.serviceCallUpdate(value.serviceCallUpdate);
|
|
507
|
+
if (value.serviceCallEnd !== undefined)
|
|
508
|
+
return visitor.serviceCallEnd(value.serviceCallEnd);
|
|
509
|
+
if (value.serviceAgentJoin !== undefined)
|
|
510
|
+
return visitor.serviceAgentJoin(value.serviceAgentJoin);
|
|
511
|
+
if (value.serviceAgentUpdate !== undefined)
|
|
512
|
+
return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
|
|
513
|
+
if (value.serviceAgentLeave !== undefined)
|
|
514
|
+
return visitor.serviceAgentLeave(value.serviceAgentLeave);
|
|
460
515
|
if (value.usageStt !== undefined)
|
|
461
516
|
return visitor.usageStt(value.usageStt);
|
|
462
517
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -470,6 +525,7 @@ exports.WebsocketAction = {
|
|
|
470
525
|
exports.WebsocketTopic = {
|
|
471
526
|
CONVERSATIONS: "conversations",
|
|
472
527
|
PRESENCE: "presence",
|
|
528
|
+
SERVICES: "services",
|
|
473
529
|
TRANSCRIPTIONS: "transcriptions",
|
|
474
530
|
};
|
|
475
531
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -481,6 +537,14 @@ exports.PresenceEventType = {
|
|
|
481
537
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
482
538
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
483
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
|
+
};
|
|
484
548
|
exports.WebhookEventType = {
|
|
485
549
|
CALL_COMPLETED: "call:completed",
|
|
486
550
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -521,43 +585,3 @@ exports.WebsocketEvent = {
|
|
|
521
585
|
SUBSCRIBED: "subscribed",
|
|
522
586
|
UNSUBSCRIBE: "unsubscribed",
|
|
523
587
|
};
|
|
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;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = void 0;
|
|
4
|
+
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
|
+
class MatchNotFoundException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
|
+
name = "MatchNotFoundException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "MatchNotFoundException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MatchNotFoundException = MatchNotFoundException;
|
|
18
|
+
exports.PresenceStatus = {
|
|
19
|
+
AWAY: "AWAY",
|
|
20
|
+
DND: "DND",
|
|
21
|
+
OFFLINE: "OFFLINE",
|
|
22
|
+
ONLINE: "ONLINE",
|
|
23
|
+
ONLY_SIP: "ONLY_SIP",
|
|
24
|
+
};
|
|
25
|
+
exports.TelephonyStatus = {
|
|
26
|
+
REGISTERED: "REGISTERED",
|
|
27
|
+
RINGING: "RINGING",
|
|
28
|
+
RT: "RT",
|
|
29
|
+
TALKING: "TALKING",
|
|
30
|
+
UNREGISTERED: "UNREGISTERED",
|
|
31
|
+
};
|
|
32
|
+
class PresenceNotAvailableException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
33
|
+
name = "PresenceNotAvailableException";
|
|
34
|
+
$fault = "client";
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "PresenceNotAvailableException",
|
|
38
|
+
$fault: "client",
|
|
39
|
+
...opts
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.PresenceNotAvailableException = PresenceNotAvailableException;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
3
|
+
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
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");
|
|
6
7
|
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const core_2 = require("@smithy/core");
|
|
8
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -76,6 +77,26 @@ const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
76
77
|
return b.build();
|
|
77
78
|
};
|
|
78
79
|
exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
|
|
80
|
+
const se_ListServicesCommand = async (input, context) => {
|
|
81
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
82
|
+
const headers = {
|
|
83
|
+
'content-type': 'application/json',
|
|
84
|
+
};
|
|
85
|
+
b.bp("/v2/stream/services");
|
|
86
|
+
const query = (0, smithy_client_1.map)({
|
|
87
|
+
[_c]: [, input[_c]],
|
|
88
|
+
});
|
|
89
|
+
let body;
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
|
+
'filter': _ => (0, smithy_client_1._json)(_),
|
|
92
|
+
}));
|
|
93
|
+
b.m("POST")
|
|
94
|
+
.h(headers)
|
|
95
|
+
.q(query)
|
|
96
|
+
.b(body);
|
|
97
|
+
return b.build();
|
|
98
|
+
};
|
|
99
|
+
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
79
100
|
const se_QueryConversationsCommand = async (input, context) => {
|
|
80
101
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
81
102
|
const headers = {
|
|
@@ -192,6 +213,12 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
192
213
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
193
214
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
194
215
|
'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,
|
|
195
222
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
196
223
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
197
224
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -269,6 +296,21 @@ const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
269
296
|
return contents;
|
|
270
297
|
};
|
|
271
298
|
exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
|
|
299
|
+
const de_ListServicesCommand = async (output, context) => {
|
|
300
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
301
|
+
return de_CommandError(output, context);
|
|
302
|
+
}
|
|
303
|
+
const contents = (0, smithy_client_1.map)({
|
|
304
|
+
$metadata: deserializeMetadata(output),
|
|
305
|
+
});
|
|
306
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
308
|
+
'services': smithy_client_1._json,
|
|
309
|
+
});
|
|
310
|
+
Object.assign(contents, doc);
|
|
311
|
+
return contents;
|
|
312
|
+
};
|
|
313
|
+
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
272
314
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
273
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
274
316
|
return de_CommandError(output, context);
|
|
@@ -389,7 +431,7 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
389
431
|
'message': smithy_client_1.expectString,
|
|
390
432
|
});
|
|
391
433
|
Object.assign(contents, doc);
|
|
392
|
-
const exception = new
|
|
434
|
+
const exception = new models_1_1.MatchNotFoundException({
|
|
393
435
|
$metadata: deserializeMetadata(parsedOutput),
|
|
394
436
|
...contents
|
|
395
437
|
});
|
|
@@ -402,7 +444,7 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
402
444
|
'message': smithy_client_1.expectString,
|
|
403
445
|
});
|
|
404
446
|
Object.assign(contents, doc);
|
|
405
|
-
const exception = new
|
|
447
|
+
const exception = new models_1_1.PresenceNotAvailableException({
|
|
406
448
|
$metadata: deserializeMetadata(parsedOutput),
|
|
407
449
|
...contents
|
|
408
450
|
});
|
|
@@ -440,6 +482,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
440
482
|
conferenceTranscription: value => ({ "conferenceTranscription": (0, smithy_client_1._json)(value) }),
|
|
441
483
|
presence: value => ({ "presence": (0, smithy_client_1._json)(value) }),
|
|
442
484
|
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) }),
|
|
443
494
|
smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
|
|
444
495
|
smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
|
|
445
496
|
usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -3,6 +3,7 @@ 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 { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
6
7
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
7
8
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
8
9
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
@@ -13,6 +14,7 @@ const commands = {
|
|
|
13
14
|
DescribeEventCommand,
|
|
14
15
|
GetConferenceIdCommand,
|
|
15
16
|
GetOngoingCallCommand,
|
|
17
|
+
ListServicesCommand,
|
|
16
18
|
QueryConversationsCommand,
|
|
17
19
|
QueryPresenceCommand,
|
|
18
20
|
QueryPresencesCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListServicesCommand, se_ListServicesCommand, } 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 ListServicesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaStream", "ListServices", {})
|
|
12
|
+
.n("WdaStreamClient", "ListServicesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListServicesCommand)
|
|
15
|
+
.de(de_ListServicesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./ConsumeEventCommand";
|
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
4
|
export * from "./GetOngoingCallCommand";
|
|
5
|
+
export * from "./ListServicesCommand";
|
|
5
6
|
export * from "./QueryConversationsCommand";
|
|
6
7
|
export * from "./QueryPresenceCommand";
|
|
7
8
|
export * from "./QueryPresencesCommand";
|
package/dist-es/models/index.js
CHANGED
|
@@ -270,6 +270,11 @@ 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
|
+
SERVICE_CALL_COMPLETE: "service_call_complete",
|
|
277
|
+
SERVICE_COMPLETE: "service_complete",
|
|
273
278
|
};
|
|
274
279
|
export const CallAnalyticsLiveProgressEventTrigger = {
|
|
275
280
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -365,6 +370,38 @@ export const PresenceConsumeEventType = {
|
|
|
365
370
|
PRESENCE: "PRESENCE",
|
|
366
371
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
367
372
|
};
|
|
373
|
+
export const ServiceAnalyticsEventTrigger = {
|
|
374
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
375
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
376
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
377
|
+
SERVICE_CALL_END: "service.call_end",
|
|
378
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
379
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
380
|
+
SERVICE_END: "service.end",
|
|
381
|
+
SERVICE_INIT: "service.init",
|
|
382
|
+
SERVICE_UPDATE: "service.update",
|
|
383
|
+
};
|
|
384
|
+
export const ServiceAgentType = {
|
|
385
|
+
DYNAMIC: "DYNAMIC",
|
|
386
|
+
STATIC: "STATIC",
|
|
387
|
+
};
|
|
388
|
+
export const ServiceConsumeEventType = {
|
|
389
|
+
SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
|
|
390
|
+
SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
|
|
391
|
+
SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
|
|
392
|
+
SERVICE_CALL_END: "SERVICE.CALL_END",
|
|
393
|
+
SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
|
|
394
|
+
SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
|
|
395
|
+
SERVICE_END: "SERVICE.END",
|
|
396
|
+
SERVICE_INIT: "SERVICE.INIT",
|
|
397
|
+
SERVICE_UPDATE: "SERVICE.UPDATE",
|
|
398
|
+
};
|
|
399
|
+
export const ServiceCallAction = {
|
|
400
|
+
ANSWER: "ANSWER",
|
|
401
|
+
CANCEL: "CANCEL",
|
|
402
|
+
REJECT: "REJECT",
|
|
403
|
+
RING: "RING",
|
|
404
|
+
};
|
|
368
405
|
export const SmsConsumeEventType = {
|
|
369
406
|
SMS_INBOUND: "SMS.INBOUND",
|
|
370
407
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -451,6 +488,24 @@ export var ConsumeEventInputEvent;
|
|
|
451
488
|
return visitor.presence(value.presence);
|
|
452
489
|
if (value.presenceTelephony !== undefined)
|
|
453
490
|
return visitor.presenceTelephony(value.presenceTelephony);
|
|
491
|
+
if (value.serviceInit !== undefined)
|
|
492
|
+
return visitor.serviceInit(value.serviceInit);
|
|
493
|
+
if (value.serviceUpdate !== undefined)
|
|
494
|
+
return visitor.serviceUpdate(value.serviceUpdate);
|
|
495
|
+
if (value.serviceEnd !== undefined)
|
|
496
|
+
return visitor.serviceEnd(value.serviceEnd);
|
|
497
|
+
if (value.serviceCallInit !== undefined)
|
|
498
|
+
return visitor.serviceCallInit(value.serviceCallInit);
|
|
499
|
+
if (value.serviceCallUpdate !== undefined)
|
|
500
|
+
return visitor.serviceCallUpdate(value.serviceCallUpdate);
|
|
501
|
+
if (value.serviceCallEnd !== undefined)
|
|
502
|
+
return visitor.serviceCallEnd(value.serviceCallEnd);
|
|
503
|
+
if (value.serviceAgentJoin !== undefined)
|
|
504
|
+
return visitor.serviceAgentJoin(value.serviceAgentJoin);
|
|
505
|
+
if (value.serviceAgentUpdate !== undefined)
|
|
506
|
+
return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
|
|
507
|
+
if (value.serviceAgentLeave !== undefined)
|
|
508
|
+
return visitor.serviceAgentLeave(value.serviceAgentLeave);
|
|
454
509
|
if (value.usageStt !== undefined)
|
|
455
510
|
return visitor.usageStt(value.usageStt);
|
|
456
511
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -464,6 +519,7 @@ export const WebsocketAction = {
|
|
|
464
519
|
export const WebsocketTopic = {
|
|
465
520
|
CONVERSATIONS: "conversations",
|
|
466
521
|
PRESENCE: "presence",
|
|
522
|
+
SERVICES: "services",
|
|
467
523
|
TRANSCRIPTIONS: "transcriptions",
|
|
468
524
|
};
|
|
469
525
|
export const PresenceAnalyticsEventType = {
|
|
@@ -475,6 +531,14 @@ export const PresenceEventType = {
|
|
|
475
531
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
476
532
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
477
533
|
};
|
|
534
|
+
export const ServiceCallEventType = {
|
|
535
|
+
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
536
|
+
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
537
|
+
};
|
|
538
|
+
export const ServiceEventType = {
|
|
539
|
+
LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
|
|
540
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
541
|
+
};
|
|
478
542
|
export const WebhookEventType = {
|
|
479
543
|
CALL_COMPLETED: "call:completed",
|
|
480
544
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -515,41 +579,3 @@ export const WebsocketEvent = {
|
|
|
515
579
|
SUBSCRIBED: "subscribed",
|
|
516
580
|
UNSUBSCRIBE: "unsubscribed",
|
|
517
581
|
};
|
|
518
|
-
export class MatchNotFoundException extends __BaseException {
|
|
519
|
-
name = "MatchNotFoundException";
|
|
520
|
-
$fault = "client";
|
|
521
|
-
constructor(opts) {
|
|
522
|
-
super({
|
|
523
|
-
name: "MatchNotFoundException",
|
|
524
|
-
$fault: "client",
|
|
525
|
-
...opts
|
|
526
|
-
});
|
|
527
|
-
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
export const PresenceStatus = {
|
|
531
|
-
AWAY: "AWAY",
|
|
532
|
-
DND: "DND",
|
|
533
|
-
OFFLINE: "OFFLINE",
|
|
534
|
-
ONLINE: "ONLINE",
|
|
535
|
-
ONLY_SIP: "ONLY_SIP",
|
|
536
|
-
};
|
|
537
|
-
export const TelephonyStatus = {
|
|
538
|
-
REGISTERED: "REGISTERED",
|
|
539
|
-
RINGING: "RINGING",
|
|
540
|
-
RT: "RT",
|
|
541
|
-
TALKING: "TALKING",
|
|
542
|
-
UNREGISTERED: "UNREGISTERED",
|
|
543
|
-
};
|
|
544
|
-
export class PresenceNotAvailableException extends __BaseException {
|
|
545
|
-
name = "PresenceNotAvailableException";
|
|
546
|
-
$fault = "client";
|
|
547
|
-
constructor(opts) {
|
|
548
|
-
super({
|
|
549
|
-
name: "PresenceNotAvailableException",
|
|
550
|
-
$fault: "client",
|
|
551
|
-
...opts
|
|
552
|
-
});
|
|
553
|
-
Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
|
|
2
|
+
export class MatchNotFoundException extends __BaseException {
|
|
3
|
+
name = "MatchNotFoundException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "MatchNotFoundException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export const PresenceStatus = {
|
|
15
|
+
AWAY: "AWAY",
|
|
16
|
+
DND: "DND",
|
|
17
|
+
OFFLINE: "OFFLINE",
|
|
18
|
+
ONLINE: "ONLINE",
|
|
19
|
+
ONLY_SIP: "ONLY_SIP",
|
|
20
|
+
};
|
|
21
|
+
export const TelephonyStatus = {
|
|
22
|
+
REGISTERED: "REGISTERED",
|
|
23
|
+
RINGING: "RINGING",
|
|
24
|
+
RT: "RT",
|
|
25
|
+
TALKING: "TALKING",
|
|
26
|
+
UNREGISTERED: "UNREGISTERED",
|
|
27
|
+
};
|
|
28
|
+
export class PresenceNotAvailableException extends __BaseException {
|
|
29
|
+
name = "PresenceNotAvailableException";
|
|
30
|
+
$fault = "client";
|
|
31
|
+
constructor(opts) {
|
|
32
|
+
super({
|
|
33
|
+
name: "PresenceNotAvailableException",
|
|
34
|
+
$fault: "client",
|
|
35
|
+
...opts
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|