@wildix/wda-stream-client 1.1.47 → 1.1.48
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 +170 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -3
- 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 +1196 -394
- package/dist-types/models/models_1.d.ts +313 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -9,6 +9,7 @@ const GetOngoingCallCommand_1 = require("./commands/GetOngoingCallCommand");
|
|
|
9
9
|
const GetOngoingCallTranscriptionCommand_1 = require("./commands/GetOngoingCallTranscriptionCommand");
|
|
10
10
|
const GetOngoingConferenceCommand_1 = require("./commands/GetOngoingConferenceCommand");
|
|
11
11
|
const GetOngoingConferenceTranscriptionCommand_1 = require("./commands/GetOngoingConferenceTranscriptionCommand");
|
|
12
|
+
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
12
13
|
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
13
14
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
14
15
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
@@ -22,6 +23,7 @@ const commands = {
|
|
|
22
23
|
GetOngoingCallTranscriptionCommand: GetOngoingCallTranscriptionCommand_1.GetOngoingCallTranscriptionCommand,
|
|
23
24
|
GetOngoingConferenceCommand: GetOngoingConferenceCommand_1.GetOngoingConferenceCommand,
|
|
24
25
|
GetOngoingConferenceTranscriptionCommand: GetOngoingConferenceTranscriptionCommand_1.GetOngoingConferenceTranscriptionCommand,
|
|
26
|
+
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
25
27
|
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
26
28
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
27
29
|
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;
|
|
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./GetOngoingCallCommand"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./GetOngoingCallTranscriptionCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./GetOngoingConferenceCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./GetOngoingConferenceTranscriptionCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
13
14
|
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.ServiceAnalyticsEventTrigger = 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.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,27 @@ exports.PresenceConsumeEventType = {
|
|
|
371
376
|
PRESENCE: "PRESENCE",
|
|
372
377
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
373
378
|
};
|
|
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
|
+
};
|
|
374
400
|
exports.SmsConsumeEventType = {
|
|
375
401
|
SMS_INBOUND: "SMS.INBOUND",
|
|
376
402
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -457,6 +483,24 @@ var ConsumeEventInputEvent;
|
|
|
457
483
|
return visitor.presence(value.presence);
|
|
458
484
|
if (value.presenceTelephony !== undefined)
|
|
459
485
|
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);
|
|
460
504
|
if (value.usageStt !== undefined)
|
|
461
505
|
return visitor.usageStt(value.usageStt);
|
|
462
506
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -470,6 +514,7 @@ exports.WebsocketAction = {
|
|
|
470
514
|
exports.WebsocketTopic = {
|
|
471
515
|
CONVERSATIONS: "conversations",
|
|
472
516
|
PRESENCE: "presence",
|
|
517
|
+
SERVICES: "services",
|
|
473
518
|
TRANSCRIPTIONS: "transcriptions",
|
|
474
519
|
};
|
|
475
520
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -481,6 +526,25 @@ exports.PresenceEventType = {
|
|
|
481
526
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
482
527
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
483
528
|
};
|
|
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
|
+
};
|
|
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_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;
|
|
3
|
+
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = 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_ListServicesCommand = 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");
|
|
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");
|
|
@@ -124,6 +125,26 @@ const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
|
|
|
124
125
|
return b.build();
|
|
125
126
|
};
|
|
126
127
|
exports.se_GetOngoingConferenceTranscriptionCommand = se_GetOngoingConferenceTranscriptionCommand;
|
|
128
|
+
const se_ListServicesCommand = async (input, context) => {
|
|
129
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
130
|
+
const headers = {
|
|
131
|
+
'content-type': 'application/json',
|
|
132
|
+
};
|
|
133
|
+
b.bp("/v2/stream/services");
|
|
134
|
+
const query = (0, smithy_client_1.map)({
|
|
135
|
+
[_c]: [, input[_c]],
|
|
136
|
+
});
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
139
|
+
'filter': _ => (0, smithy_client_1._json)(_),
|
|
140
|
+
}));
|
|
141
|
+
b.m("POST")
|
|
142
|
+
.h(headers)
|
|
143
|
+
.q(query)
|
|
144
|
+
.b(body);
|
|
145
|
+
return b.build();
|
|
146
|
+
};
|
|
147
|
+
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
127
148
|
const se_QueryConversationsCommand = async (input, context) => {
|
|
128
149
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
129
150
|
const headers = {
|
|
@@ -240,6 +261,12 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
240
261
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
241
262
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
242
263
|
'PresenceEventType': smithy_client_1.expectString,
|
|
264
|
+
'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
265
|
+
'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
266
|
+
'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
267
|
+
'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
268
|
+
'ServiceCallEventType': smithy_client_1.expectString,
|
|
269
|
+
'ServiceEventType': smithy_client_1.expectString,
|
|
243
270
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
244
271
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
245
272
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -364,6 +391,21 @@ const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
|
364
391
|
return contents;
|
|
365
392
|
};
|
|
366
393
|
exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
|
|
394
|
+
const de_ListServicesCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
|
+
}
|
|
398
|
+
const contents = (0, smithy_client_1.map)({
|
|
399
|
+
$metadata: deserializeMetadata(output),
|
|
400
|
+
});
|
|
401
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
402
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
403
|
+
'services': smithy_client_1._json,
|
|
404
|
+
});
|
|
405
|
+
Object.assign(contents, doc);
|
|
406
|
+
return contents;
|
|
407
|
+
};
|
|
408
|
+
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
367
409
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
368
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
411
|
return de_CommandError(output, context);
|
|
@@ -484,7 +526,7 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
484
526
|
'message': smithy_client_1.expectString,
|
|
485
527
|
});
|
|
486
528
|
Object.assign(contents, doc);
|
|
487
|
-
const exception = new
|
|
529
|
+
const exception = new models_1_1.MatchNotFoundException({
|
|
488
530
|
$metadata: deserializeMetadata(parsedOutput),
|
|
489
531
|
...contents
|
|
490
532
|
});
|
|
@@ -497,7 +539,7 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
497
539
|
'message': smithy_client_1.expectString,
|
|
498
540
|
});
|
|
499
541
|
Object.assign(contents, doc);
|
|
500
|
-
const exception = new
|
|
542
|
+
const exception = new models_1_1.PresenceNotAvailableException({
|
|
501
543
|
$metadata: deserializeMetadata(parsedOutput),
|
|
502
544
|
...contents
|
|
503
545
|
});
|
|
@@ -535,6 +577,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
535
577
|
conferenceTranscription: value => ({ "conferenceTranscription": (0, smithy_client_1._json)(value) }),
|
|
536
578
|
presence: value => ({ "presence": (0, smithy_client_1._json)(value) }),
|
|
537
579
|
presenceTelephony: value => ({ "presenceTelephony": (0, smithy_client_1._json)(value) }),
|
|
580
|
+
serviceAgentJoin: value => ({ "serviceAgentJoin": (0, smithy_client_1._json)(value) }),
|
|
581
|
+
serviceAgentLeave: value => ({ "serviceAgentLeave": (0, smithy_client_1._json)(value) }),
|
|
582
|
+
serviceAgentUpdate: value => ({ "serviceAgentUpdate": (0, smithy_client_1._json)(value) }),
|
|
583
|
+
serviceCallEnd: value => ({ "serviceCallEnd": (0, smithy_client_1._json)(value) }),
|
|
584
|
+
serviceCallInit: value => ({ "serviceCallInit": (0, smithy_client_1._json)(value) }),
|
|
585
|
+
serviceCallUpdate: value => ({ "serviceCallUpdate": (0, smithy_client_1._json)(value) }),
|
|
586
|
+
serviceEnd: value => ({ "serviceEnd": (0, smithy_client_1._json)(value) }),
|
|
587
|
+
serviceInit: value => ({ "serviceInit": (0, smithy_client_1._json)(value) }),
|
|
588
|
+
serviceUpdate: value => ({ "serviceUpdate": (0, smithy_client_1._json)(value) }),
|
|
538
589
|
smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
|
|
539
590
|
smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
|
|
540
591
|
usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -6,6 +6,7 @@ import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
|
|
|
6
6
|
import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
7
7
|
import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
|
|
8
8
|
import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
9
|
+
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
9
10
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
10
11
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
11
12
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
@@ -19,6 +20,7 @@ const commands = {
|
|
|
19
20
|
GetOngoingCallTranscriptionCommand,
|
|
20
21
|
GetOngoingConferenceCommand,
|
|
21
22
|
GetOngoingConferenceTranscriptionCommand,
|
|
23
|
+
ListServicesCommand,
|
|
22
24
|
QueryConversationsCommand,
|
|
23
25
|
QueryPresenceCommand,
|
|
24
26
|
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
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./GetOngoingCallCommand";
|
|
|
5
5
|
export * from "./GetOngoingCallTranscriptionCommand";
|
|
6
6
|
export * from "./GetOngoingConferenceCommand";
|
|
7
7
|
export * from "./GetOngoingConferenceTranscriptionCommand";
|
|
8
|
+
export * from "./ListServicesCommand";
|
|
8
9
|
export * from "./QueryConversationsCommand";
|
|
9
10
|
export * from "./QueryPresenceCommand";
|
|
10
11
|
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,27 @@ export const PresenceConsumeEventType = {
|
|
|
365
370
|
PRESENCE: "PRESENCE",
|
|
366
371
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
367
372
|
};
|
|
373
|
+
export const ServiceAgentType = {
|
|
374
|
+
DYNAMIC: "DYNAMIC",
|
|
375
|
+
STATIC: "STATIC",
|
|
376
|
+
};
|
|
377
|
+
export const ServiceConsumeEventType = {
|
|
378
|
+
SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
|
|
379
|
+
SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
|
|
380
|
+
SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
|
|
381
|
+
SERVICE_CALL_END: "SERVICE.CALL_END",
|
|
382
|
+
SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
|
|
383
|
+
SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
|
|
384
|
+
SERVICE_END: "SERVICE.END",
|
|
385
|
+
SERVICE_INIT: "SERVICE.INIT",
|
|
386
|
+
SERVICE_UPDATE: "SERVICE.UPDATE",
|
|
387
|
+
};
|
|
388
|
+
export const ServiceCallAction = {
|
|
389
|
+
ANSWER: "ANSWER",
|
|
390
|
+
CANCEL: "CANCEL",
|
|
391
|
+
REJECT: "REJECT",
|
|
392
|
+
RING: "RING",
|
|
393
|
+
};
|
|
368
394
|
export const SmsConsumeEventType = {
|
|
369
395
|
SMS_INBOUND: "SMS.INBOUND",
|
|
370
396
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -451,6 +477,24 @@ export var ConsumeEventInputEvent;
|
|
|
451
477
|
return visitor.presence(value.presence);
|
|
452
478
|
if (value.presenceTelephony !== undefined)
|
|
453
479
|
return visitor.presenceTelephony(value.presenceTelephony);
|
|
480
|
+
if (value.serviceInit !== undefined)
|
|
481
|
+
return visitor.serviceInit(value.serviceInit);
|
|
482
|
+
if (value.serviceUpdate !== undefined)
|
|
483
|
+
return visitor.serviceUpdate(value.serviceUpdate);
|
|
484
|
+
if (value.serviceEnd !== undefined)
|
|
485
|
+
return visitor.serviceEnd(value.serviceEnd);
|
|
486
|
+
if (value.serviceCallInit !== undefined)
|
|
487
|
+
return visitor.serviceCallInit(value.serviceCallInit);
|
|
488
|
+
if (value.serviceCallUpdate !== undefined)
|
|
489
|
+
return visitor.serviceCallUpdate(value.serviceCallUpdate);
|
|
490
|
+
if (value.serviceCallEnd !== undefined)
|
|
491
|
+
return visitor.serviceCallEnd(value.serviceCallEnd);
|
|
492
|
+
if (value.serviceAgentJoin !== undefined)
|
|
493
|
+
return visitor.serviceAgentJoin(value.serviceAgentJoin);
|
|
494
|
+
if (value.serviceAgentUpdate !== undefined)
|
|
495
|
+
return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
|
|
496
|
+
if (value.serviceAgentLeave !== undefined)
|
|
497
|
+
return visitor.serviceAgentLeave(value.serviceAgentLeave);
|
|
454
498
|
if (value.usageStt !== undefined)
|
|
455
499
|
return visitor.usageStt(value.usageStt);
|
|
456
500
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -464,6 +508,7 @@ export const WebsocketAction = {
|
|
|
464
508
|
export const WebsocketTopic = {
|
|
465
509
|
CONVERSATIONS: "conversations",
|
|
466
510
|
PRESENCE: "presence",
|
|
511
|
+
SERVICES: "services",
|
|
467
512
|
TRANSCRIPTIONS: "transcriptions",
|
|
468
513
|
};
|
|
469
514
|
export const PresenceAnalyticsEventType = {
|
|
@@ -475,6 +520,25 @@ export const PresenceEventType = {
|
|
|
475
520
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
476
521
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
477
522
|
};
|
|
523
|
+
export const ServiceAnalyticsEventTrigger = {
|
|
524
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
525
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
526
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
527
|
+
SERVICE_CALL_END: "service.call_end",
|
|
528
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
529
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
530
|
+
SERVICE_END: "service.end",
|
|
531
|
+
SERVICE_INIT: "service.init",
|
|
532
|
+
SERVICE_UPDATE: "service.update",
|
|
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
|
+
}
|