@wildix/wda-stream-client 1.1.47 → 1.1.49
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 +77 -41
- package/dist-cjs/models/models_1.js +44 -0
- package/dist-cjs/protocols/Aws_restJson1.js +146 -8
- 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 +76 -38
- package/dist-es/models/models_1.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +142 -6
- package/dist-types/WdaStream.d.ts +8 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +203 -12
- package/dist-types/commands/DescribeEventCommand.d.ts +411 -117
- package/dist-types/commands/GetConferenceIdCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingCallCommand.d.ts +3 -1
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +3 -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 +5 -5
- 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 +1355 -423
- package/dist-types/models/models_1.d.ts +471 -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";
|
|
@@ -252,8 +252,10 @@ exports.CallConsumeEventType = {
|
|
|
252
252
|
CALL_END: "CALL.END",
|
|
253
253
|
CALL_LIVE: "CALL.LIVE",
|
|
254
254
|
CALL_POST_TRANSCRIPTION: "CALL.POST_TRANSCRIPTION",
|
|
255
|
+
CALL_RECORD_PAUSE: "CALL.RECORD_PAUSE",
|
|
255
256
|
CALL_RECORD_START: "CALL.RECORD_START",
|
|
256
257
|
CALL_RECORD_STOP: "CALL.RECORD_STOP",
|
|
258
|
+
CALL_RECORD_UNPAUSE: "CALL.RECORD_UNPAUSE",
|
|
257
259
|
CALL_SPLIT: "CALL.SPLIT",
|
|
258
260
|
CALL_START: "CALL.START",
|
|
259
261
|
CALL_TRANSCRIPTION: "CALL.TRANSCRIPTION",
|
|
@@ -276,13 +278,20 @@ exports.LiveEventType = {
|
|
|
276
278
|
CONFERENCE_JOIN: "conference_join",
|
|
277
279
|
CONFERENCE_LEAVE: "conference_leave",
|
|
278
280
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
281
|
+
SERVICE: "service",
|
|
282
|
+
SERVICE_AGENT: "service_agent",
|
|
283
|
+
SERVICE_CALL: "service_call",
|
|
284
|
+
SERVICE_CALL_COMPLETE: "service_call_complete",
|
|
285
|
+
SERVICE_COMPLETE: "service_complete",
|
|
279
286
|
};
|
|
280
287
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
281
288
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
282
289
|
AGENTS_START: "call.agents_start",
|
|
283
290
|
ATTACHMENT: "call.attachment",
|
|
291
|
+
RECORD_PAUSE: "call.record_pause",
|
|
284
292
|
RECORD_START: "call.record_start",
|
|
285
293
|
RECORD_STOP: "call.record_stop",
|
|
294
|
+
RECORD_UNPAUSE: "call.record_unpause",
|
|
286
295
|
SPLIT: "call.split",
|
|
287
296
|
START: "call.start",
|
|
288
297
|
TRANSCRIPTION: "call.transcription",
|
|
@@ -371,6 +380,27 @@ exports.PresenceConsumeEventType = {
|
|
|
371
380
|
PRESENCE: "PRESENCE",
|
|
372
381
|
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
373
382
|
};
|
|
383
|
+
exports.ServiceAgentType = {
|
|
384
|
+
DYNAMIC: "DYNAMIC",
|
|
385
|
+
STATIC: "STATIC",
|
|
386
|
+
};
|
|
387
|
+
exports.ServiceConsumeEventType = {
|
|
388
|
+
SERVICE_AGENT_JOIN: "SERVICE.AGENT_JOIN",
|
|
389
|
+
SERVICE_AGENT_LEAVE: "SERVICE.AGENT_LEAVE",
|
|
390
|
+
SERVICE_AGENT_UPDATE: "SERVICE.AGENT_UPDATE",
|
|
391
|
+
SERVICE_CALL_END: "SERVICE.CALL_END",
|
|
392
|
+
SERVICE_CALL_INIT: "SERVICE.CALL_INIT",
|
|
393
|
+
SERVICE_CALL_UPDATE: "SERVICE.CALL_UPDATE",
|
|
394
|
+
SERVICE_END: "SERVICE.END",
|
|
395
|
+
SERVICE_INIT: "SERVICE.INIT",
|
|
396
|
+
SERVICE_UPDATE: "SERVICE.UPDATE",
|
|
397
|
+
};
|
|
398
|
+
exports.ServiceCallAction = {
|
|
399
|
+
ANSWER: "ANSWER",
|
|
400
|
+
CANCEL: "CANCEL",
|
|
401
|
+
REJECT: "REJECT",
|
|
402
|
+
RING: "RING",
|
|
403
|
+
};
|
|
374
404
|
exports.SmsConsumeEventType = {
|
|
375
405
|
SMS_INBOUND: "SMS.INBOUND",
|
|
376
406
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -413,6 +443,10 @@ var ConsumeEventInputEvent;
|
|
|
413
443
|
return visitor.callRecordStart(value.callRecordStart);
|
|
414
444
|
if (value.callRecordStop !== undefined)
|
|
415
445
|
return visitor.callRecordStop(value.callRecordStop);
|
|
446
|
+
if (value.callRecordPause !== undefined)
|
|
447
|
+
return visitor.callRecordPause(value.callRecordPause);
|
|
448
|
+
if (value.callRecordUnpause !== undefined)
|
|
449
|
+
return visitor.callRecordUnpause(value.callRecordUnpause);
|
|
416
450
|
if (value.callAttachment !== undefined)
|
|
417
451
|
return visitor.callAttachment(value.callAttachment);
|
|
418
452
|
if (value.callTranscription !== undefined)
|
|
@@ -457,6 +491,24 @@ var ConsumeEventInputEvent;
|
|
|
457
491
|
return visitor.presence(value.presence);
|
|
458
492
|
if (value.presenceTelephony !== undefined)
|
|
459
493
|
return visitor.presenceTelephony(value.presenceTelephony);
|
|
494
|
+
if (value.serviceInit !== undefined)
|
|
495
|
+
return visitor.serviceInit(value.serviceInit);
|
|
496
|
+
if (value.serviceUpdate !== undefined)
|
|
497
|
+
return visitor.serviceUpdate(value.serviceUpdate);
|
|
498
|
+
if (value.serviceEnd !== undefined)
|
|
499
|
+
return visitor.serviceEnd(value.serviceEnd);
|
|
500
|
+
if (value.serviceCallInit !== undefined)
|
|
501
|
+
return visitor.serviceCallInit(value.serviceCallInit);
|
|
502
|
+
if (value.serviceCallUpdate !== undefined)
|
|
503
|
+
return visitor.serviceCallUpdate(value.serviceCallUpdate);
|
|
504
|
+
if (value.serviceCallEnd !== undefined)
|
|
505
|
+
return visitor.serviceCallEnd(value.serviceCallEnd);
|
|
506
|
+
if (value.serviceAgentJoin !== undefined)
|
|
507
|
+
return visitor.serviceAgentJoin(value.serviceAgentJoin);
|
|
508
|
+
if (value.serviceAgentUpdate !== undefined)
|
|
509
|
+
return visitor.serviceAgentUpdate(value.serviceAgentUpdate);
|
|
510
|
+
if (value.serviceAgentLeave !== undefined)
|
|
511
|
+
return visitor.serviceAgentLeave(value.serviceAgentLeave);
|
|
460
512
|
if (value.usageStt !== undefined)
|
|
461
513
|
return visitor.usageStt(value.usageStt);
|
|
462
514
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -470,6 +522,7 @@ exports.WebsocketAction = {
|
|
|
470
522
|
exports.WebsocketTopic = {
|
|
471
523
|
CONVERSATIONS: "conversations",
|
|
472
524
|
PRESENCE: "presence",
|
|
525
|
+
SERVICES: "services",
|
|
473
526
|
TRANSCRIPTIONS: "transcriptions",
|
|
474
527
|
};
|
|
475
528
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -481,11 +534,34 @@ exports.PresenceEventType = {
|
|
|
481
534
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
482
535
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
483
536
|
};
|
|
537
|
+
exports.ServiceAnalyticsEventTrigger = {
|
|
538
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
539
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
540
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
541
|
+
SERVICE_CALL_END: "service.call_end",
|
|
542
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
543
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
544
|
+
SERVICE_END: "service.end",
|
|
545
|
+
SERVICE_INIT: "service.init",
|
|
546
|
+
SERVICE_UPDATE: "service.update",
|
|
547
|
+
};
|
|
548
|
+
exports.ServiceCallEventType = {
|
|
549
|
+
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
550
|
+
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
551
|
+
};
|
|
552
|
+
exports.ServiceEventType = {
|
|
553
|
+
LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
|
|
554
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
555
|
+
};
|
|
484
556
|
exports.WebhookEventType = {
|
|
485
557
|
CALL_COMPLETED: "call:completed",
|
|
486
558
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
487
559
|
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
488
560
|
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
561
|
+
CALL_LIVE_RECORD_PAUSE: "call:live:record:pause",
|
|
562
|
+
CALL_LIVE_RECORD_START: "call:live:record:start",
|
|
563
|
+
CALL_LIVE_RECORD_STOP: "call:live:record:stop",
|
|
564
|
+
CALL_LIVE_RECORD_UNPAUSE: "call:live:record:unpause",
|
|
489
565
|
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
490
566
|
CALL_SUMMARY_COMPLETED: "call:summary:completed",
|
|
491
567
|
CALL_TRANSCRIPTION_COMPLETED: "call:transcription:completed",
|
|
@@ -521,43 +597,3 @@ exports.WebsocketEvent = {
|
|
|
521
597
|
SUBSCRIBED: "subscribed",
|
|
522
598
|
UNSUBSCRIBE: "unsubscribed",
|
|
523
599
|
};
|
|
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 = {
|
|
@@ -215,9 +236,9 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
215
236
|
'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
216
237
|
'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
217
238
|
'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
218
|
-
'CallAnalyticsLiveTranscriptionEvent':
|
|
239
|
+
'CallAnalyticsLiveTranscriptionEvent': _ => de_CallAnalyticsLiveTranscriptionEvent(_, context),
|
|
219
240
|
'CallAnalyticsRecordEvent': smithy_client_1._json,
|
|
220
|
-
'CallAnalyticsTranscriptionRecordEvent':
|
|
241
|
+
'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
|
|
221
242
|
'CallEventType': smithy_client_1.expectString,
|
|
222
243
|
'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
223
244
|
'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -240,11 +261,21 @@ 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,
|
|
246
273
|
'WebhookCallLiveProgressEvent': smithy_client_1._json,
|
|
247
|
-
'
|
|
274
|
+
'WebhookCallLiveRecordPauseEvent': smithy_client_1._json,
|
|
275
|
+
'WebhookCallLiveRecordStartEvent': smithy_client_1._json,
|
|
276
|
+
'WebhookCallLiveRecordStopEvent': smithy_client_1._json,
|
|
277
|
+
'WebhookCallLiveRecordUnpauseEvent': smithy_client_1._json,
|
|
278
|
+
'WebhookCallLiveTranscriptionEvent': _ => de_WebhookCallLiveTranscriptionEvent(_, context),
|
|
248
279
|
'WebhookCallSummaryCompletedEvent': smithy_client_1._json,
|
|
249
280
|
'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
|
|
250
281
|
'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
|
|
@@ -327,7 +358,7 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
|
327
358
|
const doc = (0, smithy_client_1.take)(data, {
|
|
328
359
|
'company': smithy_client_1.expectString,
|
|
329
360
|
'flows': smithy_client_1._json,
|
|
330
|
-
'transcriptions':
|
|
361
|
+
'transcriptions': _ => de_CallAnalyticsLiveTranscriptionEventList(_, context),
|
|
331
362
|
});
|
|
332
363
|
Object.assign(contents, doc);
|
|
333
364
|
return contents;
|
|
@@ -364,6 +395,21 @@ const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
|
364
395
|
return contents;
|
|
365
396
|
};
|
|
366
397
|
exports.de_GetOngoingConferenceTranscriptionCommand = de_GetOngoingConferenceTranscriptionCommand;
|
|
398
|
+
const de_ListServicesCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
+
return de_CommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const contents = (0, smithy_client_1.map)({
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
});
|
|
405
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
406
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
407
|
+
'services': smithy_client_1._json,
|
|
408
|
+
});
|
|
409
|
+
Object.assign(contents, doc);
|
|
410
|
+
return contents;
|
|
411
|
+
};
|
|
412
|
+
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
367
413
|
const de_QueryConversationsCommand = async (output, context) => {
|
|
368
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
415
|
return de_CommandError(output, context);
|
|
@@ -484,7 +530,7 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
484
530
|
'message': smithy_client_1.expectString,
|
|
485
531
|
});
|
|
486
532
|
Object.assign(contents, doc);
|
|
487
|
-
const exception = new
|
|
533
|
+
const exception = new models_1_1.MatchNotFoundException({
|
|
488
534
|
$metadata: deserializeMetadata(parsedOutput),
|
|
489
535
|
...contents
|
|
490
536
|
});
|
|
@@ -497,7 +543,7 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
497
543
|
'message': smithy_client_1.expectString,
|
|
498
544
|
});
|
|
499
545
|
Object.assign(contents, doc);
|
|
500
|
-
const exception = new
|
|
546
|
+
const exception = new models_1_1.PresenceNotAvailableException({
|
|
501
547
|
$metadata: deserializeMetadata(parsedOutput),
|
|
502
548
|
...contents
|
|
503
549
|
});
|
|
@@ -514,8 +560,10 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
514
560
|
callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
|
|
515
561
|
callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
|
|
516
562
|
callPostTranscription: value => ({ "callPostTranscription": (0, smithy_client_1._json)(value) }),
|
|
563
|
+
callRecordPause: value => ({ "callRecordPause": (0, smithy_client_1._json)(value) }),
|
|
517
564
|
callRecordStart: value => ({ "callRecordStart": (0, smithy_client_1._json)(value) }),
|
|
518
565
|
callRecordStop: value => ({ "callRecordStop": (0, smithy_client_1._json)(value) }),
|
|
566
|
+
callRecordUnpause: value => ({ "callRecordUnpause": (0, smithy_client_1._json)(value) }),
|
|
519
567
|
callSplit: value => ({ "callSplit": (0, smithy_client_1._json)(value) }),
|
|
520
568
|
callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
|
|
521
569
|
callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
|
|
@@ -535,6 +583,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
535
583
|
conferenceTranscription: value => ({ "conferenceTranscription": (0, smithy_client_1._json)(value) }),
|
|
536
584
|
presence: value => ({ "presence": (0, smithy_client_1._json)(value) }),
|
|
537
585
|
presenceTelephony: value => ({ "presenceTelephony": (0, smithy_client_1._json)(value) }),
|
|
586
|
+
serviceAgentJoin: value => ({ "serviceAgentJoin": (0, smithy_client_1._json)(value) }),
|
|
587
|
+
serviceAgentLeave: value => ({ "serviceAgentLeave": (0, smithy_client_1._json)(value) }),
|
|
588
|
+
serviceAgentUpdate: value => ({ "serviceAgentUpdate": (0, smithy_client_1._json)(value) }),
|
|
589
|
+
serviceCallEnd: value => ({ "serviceCallEnd": (0, smithy_client_1._json)(value) }),
|
|
590
|
+
serviceCallInit: value => ({ "serviceCallInit": (0, smithy_client_1._json)(value) }),
|
|
591
|
+
serviceCallUpdate: value => ({ "serviceCallUpdate": (0, smithy_client_1._json)(value) }),
|
|
592
|
+
serviceEnd: value => ({ "serviceEnd": (0, smithy_client_1._json)(value) }),
|
|
593
|
+
serviceInit: value => ({ "serviceInit": (0, smithy_client_1._json)(value) }),
|
|
594
|
+
serviceUpdate: value => ({ "serviceUpdate": (0, smithy_client_1._json)(value) }),
|
|
538
595
|
smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
|
|
539
596
|
smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
|
|
540
597
|
usageStt: value => ({ "usageStt": (0, smithy_client_1._json)(value) }),
|
|
@@ -612,10 +669,80 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
612
669
|
'licenses': smithy_client_1._json,
|
|
613
670
|
'pbx': smithy_client_1.expectString,
|
|
614
671
|
'time': smithy_client_1.expectLong,
|
|
615
|
-
'transcriptions':
|
|
672
|
+
'transcriptions': (_) => de_CallTranscriptionList(_, context),
|
|
673
|
+
'type': smithy_client_1.expectString,
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
677
|
+
return (0, smithy_client_1.take)(output, {
|
|
678
|
+
'callStartTime': smithy_client_1.expectLong,
|
|
679
|
+
'chunk': (_) => de_CallTranscriptionChunk(_, context),
|
|
680
|
+
'company': smithy_client_1.expectString,
|
|
681
|
+
'event': smithy_client_1.expectString,
|
|
682
|
+
'flowIndex': smithy_client_1.expectInt32,
|
|
683
|
+
'flowStartTime': smithy_client_1.expectLong,
|
|
684
|
+
'id': smithy_client_1.expectString,
|
|
685
|
+
'licenses': smithy_client_1._json,
|
|
686
|
+
'participant': smithy_client_1._json,
|
|
687
|
+
'pbx': smithy_client_1.expectString,
|
|
688
|
+
'time': smithy_client_1.expectLong,
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
const de_CallAnalyticsLiveTranscriptionEventList = (output, context) => {
|
|
692
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
693
|
+
return de_CallAnalyticsLiveTranscriptionEvent(entry, context);
|
|
694
|
+
});
|
|
695
|
+
return retVal;
|
|
696
|
+
};
|
|
697
|
+
const de_CallAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
698
|
+
return (0, smithy_client_1.take)(output, {
|
|
699
|
+
'company': smithy_client_1.expectString,
|
|
700
|
+
'complete': smithy_client_1.expectBoolean,
|
|
701
|
+
'id': smithy_client_1.expectString,
|
|
702
|
+
'licenses': smithy_client_1._json,
|
|
703
|
+
'pbx': smithy_client_1.expectString,
|
|
704
|
+
'time': smithy_client_1.expectLong,
|
|
705
|
+
'transcriptions': (_) => de_CallTranscriptionList(_, context),
|
|
616
706
|
'type': smithy_client_1.expectString,
|
|
617
707
|
});
|
|
618
708
|
};
|
|
709
|
+
const de_CallTranscription = (output, context) => {
|
|
710
|
+
return (0, smithy_client_1.take)(output, {
|
|
711
|
+
'callStartTime': smithy_client_1.expectLong,
|
|
712
|
+
'chunks': (_) => de_CallTranscriptionChunksMap(_, context),
|
|
713
|
+
'flowIndex': smithy_client_1.expectInt32,
|
|
714
|
+
'flowStartTime': smithy_client_1.expectLong,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
const de_CallTranscriptionChunk = (output, context) => {
|
|
718
|
+
return (0, smithy_client_1.take)(output, {
|
|
719
|
+
'confidence': smithy_client_1.limitedParseDouble,
|
|
720
|
+
'end': smithy_client_1.expectLong,
|
|
721
|
+
'id': smithy_client_1.expectString,
|
|
722
|
+
'isFinal': smithy_client_1.expectBoolean,
|
|
723
|
+
'language': smithy_client_1.expectString,
|
|
724
|
+
'sentiment': smithy_client_1.expectString,
|
|
725
|
+
'speaker': smithy_client_1.expectString,
|
|
726
|
+
'start': smithy_client_1.expectLong,
|
|
727
|
+
'text': smithy_client_1.expectString,
|
|
728
|
+
'time': smithy_client_1.expectLong,
|
|
729
|
+
});
|
|
730
|
+
};
|
|
731
|
+
const de_CallTranscriptionChunksMap = (output, context) => {
|
|
732
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
733
|
+
if (value === null) {
|
|
734
|
+
return acc;
|
|
735
|
+
}
|
|
736
|
+
acc[key] = de_CallTranscriptionChunk(value, context);
|
|
737
|
+
return acc;
|
|
738
|
+
}, {});
|
|
739
|
+
};
|
|
740
|
+
const de_CallTranscriptionList = (output, context) => {
|
|
741
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
742
|
+
return de_CallTranscription(entry, context);
|
|
743
|
+
});
|
|
744
|
+
return retVal;
|
|
745
|
+
};
|
|
619
746
|
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
620
747
|
return (0, smithy_client_1.take)(output, {
|
|
621
748
|
'chatId': smithy_client_1.expectString,
|
|
@@ -626,6 +753,17 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
|
626
753
|
'type': smithy_client_1.expectString,
|
|
627
754
|
});
|
|
628
755
|
};
|
|
756
|
+
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
757
|
+
return (0, smithy_client_1.take)(output, {
|
|
758
|
+
'company': smithy_client_1.expectString,
|
|
759
|
+
'data': (_) => de_CallAnalyticsLiveTranscriptionEvent(_, context),
|
|
760
|
+
'id': smithy_client_1.expectString,
|
|
761
|
+
'integrationId': smithy_client_1.expectString,
|
|
762
|
+
'pbx': smithy_client_1.expectString,
|
|
763
|
+
'time': smithy_client_1.expectLong,
|
|
764
|
+
'type': smithy_client_1.expectString,
|
|
765
|
+
});
|
|
766
|
+
};
|
|
629
767
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
630
768
|
return (0, smithy_client_1.take)(output, {
|
|
631
769
|
'connectionId': smithy_client_1.expectString,
|
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