@wildix/wda-stream-client 1.1.25 → 1.1.27
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/models/models_0.js +30 -7
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +28 -5
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +2 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +121 -101
- package/dist-types/commands/QueryConversationsCommand.d.ts +25 -30
- package/dist-types/models/models_0.d.ts +174 -15
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
4
|
-
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
|
|
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.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
|
+
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.ServiceEventType = exports.ServiceAnalyticsLiveProgressEventTrigger = exports.ServiceAgentType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
name = "ForbiddenException";
|
|
@@ -64,6 +64,11 @@ exports.CallRecordPauseReason = {
|
|
|
64
64
|
HOLD: "hold",
|
|
65
65
|
PAUSE: "pause",
|
|
66
66
|
};
|
|
67
|
+
exports.CallFlowTranscriptionStatus = {
|
|
68
|
+
AVAILABLE: "AVAILABLE",
|
|
69
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
70
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
71
|
+
};
|
|
67
72
|
var CallFlowAttachment;
|
|
68
73
|
(function (CallFlowAttachment) {
|
|
69
74
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -73,11 +78,14 @@ var CallFlowAttachment;
|
|
|
73
78
|
return visitor.fax(value.fax);
|
|
74
79
|
if (value.voicemail !== undefined)
|
|
75
80
|
return visitor.voicemail(value.voicemail);
|
|
81
|
+
if (value.transcription !== undefined)
|
|
82
|
+
return visitor.transcription(value.transcription);
|
|
76
83
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
77
84
|
};
|
|
78
85
|
})(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
|
|
79
86
|
exports.CallFlowAttachmentType = {
|
|
80
87
|
FAX: "FAX",
|
|
88
|
+
TRANSCRIPTION: "TRANSCRIPTION",
|
|
81
89
|
VOICEMAIL: "VOICEMAIL",
|
|
82
90
|
};
|
|
83
91
|
exports.CallParticipantRole = {
|
|
@@ -104,11 +112,6 @@ exports.License = {
|
|
|
104
112
|
UC: "uc",
|
|
105
113
|
XBEES: "x-bees",
|
|
106
114
|
};
|
|
107
|
-
exports.CallFlowTranscriptionStatus = {
|
|
108
|
-
AVAILABLE: "AVAILABLE",
|
|
109
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
110
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
-
};
|
|
112
115
|
exports.RecordType = {
|
|
113
116
|
CALL: "call",
|
|
114
117
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -276,6 +279,7 @@ exports.LiveEventType = {
|
|
|
276
279
|
CONFERENCE_JOIN: "conference_join",
|
|
277
280
|
CONFERENCE_LEAVE: "conference_leave",
|
|
278
281
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
282
|
+
SERVICE: "service",
|
|
279
283
|
};
|
|
280
284
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
281
285
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -470,6 +474,7 @@ exports.WebsocketAction = {
|
|
|
470
474
|
exports.WebsocketTopic = {
|
|
471
475
|
CONVERSATIONS: "conversations",
|
|
472
476
|
PRESENCE: "presence",
|
|
477
|
+
SERVICES: "services",
|
|
473
478
|
TRANSCRIPTIONS: "transcriptions",
|
|
474
479
|
};
|
|
475
480
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -481,6 +486,24 @@ exports.PresenceEventType = {
|
|
|
481
486
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
482
487
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
483
488
|
};
|
|
489
|
+
exports.ServiceAgentType = {
|
|
490
|
+
DYNAMIC: "DYNAMIC",
|
|
491
|
+
STATIC: "STATIC",
|
|
492
|
+
};
|
|
493
|
+
exports.ServiceAnalyticsLiveProgressEventTrigger = {
|
|
494
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
495
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
496
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
497
|
+
SERVICE_CALL_END: "service.call_end",
|
|
498
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
499
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
500
|
+
SERVICE_END: "service.end",
|
|
501
|
+
SERVICE_INIT: "service.init",
|
|
502
|
+
SERVICE_UPDATE: "service.update",
|
|
503
|
+
};
|
|
504
|
+
exports.ServiceEventType = {
|
|
505
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
506
|
+
};
|
|
484
507
|
exports.WebhookEventType = {
|
|
485
508
|
CALL_COMPLETED: "call:completed",
|
|
486
509
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -176,6 +176,8 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
176
176
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
177
177
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
178
178
|
'PresenceEventType': smithy_client_1.expectString,
|
|
179
|
+
'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
180
|
+
'ServiceEventType': smithy_client_1.expectString,
|
|
179
181
|
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
180
182
|
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
181
183
|
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -58,6 +58,11 @@ export const CallRecordPauseReason = {
|
|
|
58
58
|
HOLD: "hold",
|
|
59
59
|
PAUSE: "pause",
|
|
60
60
|
};
|
|
61
|
+
export const CallFlowTranscriptionStatus = {
|
|
62
|
+
AVAILABLE: "AVAILABLE",
|
|
63
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
64
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
65
|
+
};
|
|
61
66
|
export var CallFlowAttachment;
|
|
62
67
|
(function (CallFlowAttachment) {
|
|
63
68
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -67,11 +72,14 @@ export var CallFlowAttachment;
|
|
|
67
72
|
return visitor.fax(value.fax);
|
|
68
73
|
if (value.voicemail !== undefined)
|
|
69
74
|
return visitor.voicemail(value.voicemail);
|
|
75
|
+
if (value.transcription !== undefined)
|
|
76
|
+
return visitor.transcription(value.transcription);
|
|
70
77
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
71
78
|
};
|
|
72
79
|
})(CallFlowAttachment || (CallFlowAttachment = {}));
|
|
73
80
|
export const CallFlowAttachmentType = {
|
|
74
81
|
FAX: "FAX",
|
|
82
|
+
TRANSCRIPTION: "TRANSCRIPTION",
|
|
75
83
|
VOICEMAIL: "VOICEMAIL",
|
|
76
84
|
};
|
|
77
85
|
export const CallParticipantRole = {
|
|
@@ -98,11 +106,6 @@ export const License = {
|
|
|
98
106
|
UC: "uc",
|
|
99
107
|
XBEES: "x-bees",
|
|
100
108
|
};
|
|
101
|
-
export const CallFlowTranscriptionStatus = {
|
|
102
|
-
AVAILABLE: "AVAILABLE",
|
|
103
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
-
};
|
|
106
109
|
export const RecordType = {
|
|
107
110
|
CALL: "call",
|
|
108
111
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -270,6 +273,7 @@ export const LiveEventType = {
|
|
|
270
273
|
CONFERENCE_JOIN: "conference_join",
|
|
271
274
|
CONFERENCE_LEAVE: "conference_leave",
|
|
272
275
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
276
|
+
SERVICE: "service",
|
|
273
277
|
};
|
|
274
278
|
export const CallAnalyticsLiveProgressEventTrigger = {
|
|
275
279
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -464,6 +468,7 @@ export const WebsocketAction = {
|
|
|
464
468
|
export const WebsocketTopic = {
|
|
465
469
|
CONVERSATIONS: "conversations",
|
|
466
470
|
PRESENCE: "presence",
|
|
471
|
+
SERVICES: "services",
|
|
467
472
|
TRANSCRIPTIONS: "transcriptions",
|
|
468
473
|
};
|
|
469
474
|
export const PresenceAnalyticsEventType = {
|
|
@@ -475,6 +480,24 @@ export const PresenceEventType = {
|
|
|
475
480
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
476
481
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
477
482
|
};
|
|
483
|
+
export const ServiceAgentType = {
|
|
484
|
+
DYNAMIC: "DYNAMIC",
|
|
485
|
+
STATIC: "STATIC",
|
|
486
|
+
};
|
|
487
|
+
export const ServiceAnalyticsLiveProgressEventTrigger = {
|
|
488
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
489
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
490
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
491
|
+
SERVICE_CALL_END: "service.call_end",
|
|
492
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
493
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
494
|
+
SERVICE_END: "service.end",
|
|
495
|
+
SERVICE_INIT: "service.init",
|
|
496
|
+
SERVICE_UPDATE: "service.update",
|
|
497
|
+
};
|
|
498
|
+
export const ServiceEventType = {
|
|
499
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
500
|
+
};
|
|
478
501
|
export const WebhookEventType = {
|
|
479
502
|
CALL_COMPLETED: "call:completed",
|
|
480
503
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
@@ -165,6 +165,8 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
165
165
|
'PresenceAnalyticsStatusEvent': _json,
|
|
166
166
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
167
167
|
'PresenceEventType': __expectString,
|
|
168
|
+
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
169
|
+
'ServiceEventType': __expectString,
|
|
168
170
|
'WebhookCallCompletedEvent': _json,
|
|
169
171
|
'WebhookCallLiveCompletedEvent': _json,
|
|
170
172
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
@@ -314,7 +314,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
314
314
|
* type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION" || "CALL.POST_TRANSCRIPTION", // required
|
|
315
315
|
* data: { // CallAttachmentConsumeEventData
|
|
316
316
|
* type: "voicemail" || "fax" || "transcription", // required
|
|
317
|
-
* url: "STRING_VALUE",
|
|
317
|
+
* url: "STRING_VALUE",
|
|
318
318
|
* destinations: [ // CallFlowAttachmentDestinationList
|
|
319
319
|
* { // CallFlowAttachmentDestination
|
|
320
320
|
* phone: "STRING_VALUE",
|
|
@@ -359,7 +359,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
359
359
|
* flowIndex: Number("int"), // required
|
|
360
360
|
* flowStartTime: Number("long"), // required
|
|
361
361
|
* callStartTime: Number("long"), // required
|
|
362
|
-
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
|
|
362
|
+
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service", // required
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|