@wildix/wda-stream-client 1.1.26 → 1.1.28
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 +29 -10
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +27 -8
- 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 +135 -92
- package/dist-types/commands/QueryConversationsCommand.d.ts +42 -25
- package/dist-types/models/models_0.d.ts +116 -94
- 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.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = 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.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.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,11 +64,6 @@ 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
|
-
};
|
|
72
67
|
var CallFlowAttachment;
|
|
73
68
|
(function (CallFlowAttachment) {
|
|
74
69
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -78,14 +73,11 @@ var CallFlowAttachment;
|
|
|
78
73
|
return visitor.fax(value.fax);
|
|
79
74
|
if (value.voicemail !== undefined)
|
|
80
75
|
return visitor.voicemail(value.voicemail);
|
|
81
|
-
if (value.transcription !== undefined)
|
|
82
|
-
return visitor.transcription(value.transcription);
|
|
83
76
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
84
77
|
};
|
|
85
78
|
})(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
|
|
86
79
|
exports.CallFlowAttachmentType = {
|
|
87
80
|
FAX: "FAX",
|
|
88
|
-
TRANSCRIPTION: "TRANSCRIPTION",
|
|
89
81
|
VOICEMAIL: "VOICEMAIL",
|
|
90
82
|
};
|
|
91
83
|
exports.CallParticipantRole = {
|
|
@@ -112,6 +104,11 @@ exports.License = {
|
|
|
112
104
|
UC: "uc",
|
|
113
105
|
XBEES: "x-bees",
|
|
114
106
|
};
|
|
107
|
+
exports.CallFlowTranscriptionStatus = {
|
|
108
|
+
AVAILABLE: "AVAILABLE",
|
|
109
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
110
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
+
};
|
|
115
112
|
exports.RecordType = {
|
|
116
113
|
CALL: "call",
|
|
117
114
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -279,6 +276,9 @@ exports.LiveEventType = {
|
|
|
279
276
|
CONFERENCE_JOIN: "conference_join",
|
|
280
277
|
CONFERENCE_LEAVE: "conference_leave",
|
|
281
278
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
279
|
+
SERVICE: "service",
|
|
280
|
+
SERVICE_AGENT: "service_agent",
|
|
281
|
+
SERVICE_CALL: "service_call",
|
|
282
282
|
};
|
|
283
283
|
exports.CallAnalyticsLiveProgressEventTrigger = {
|
|
284
284
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -473,6 +473,7 @@ exports.WebsocketAction = {
|
|
|
473
473
|
exports.WebsocketTopic = {
|
|
474
474
|
CONVERSATIONS: "conversations",
|
|
475
475
|
PRESENCE: "presence",
|
|
476
|
+
SERVICES: "services",
|
|
476
477
|
TRANSCRIPTIONS: "transcriptions",
|
|
477
478
|
};
|
|
478
479
|
exports.PresenceAnalyticsEventType = {
|
|
@@ -484,6 +485,24 @@ exports.PresenceEventType = {
|
|
|
484
485
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
485
486
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
486
487
|
};
|
|
488
|
+
exports.ServiceAgentType = {
|
|
489
|
+
DYNAMIC: "DYNAMIC",
|
|
490
|
+
STATIC: "STATIC",
|
|
491
|
+
};
|
|
492
|
+
exports.ServiceAnalyticsLiveProgressEventTrigger = {
|
|
493
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
494
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
495
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
496
|
+
SERVICE_CALL_END: "service.call_end",
|
|
497
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
498
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
499
|
+
SERVICE_END: "service.end",
|
|
500
|
+
SERVICE_INIT: "service.init",
|
|
501
|
+
SERVICE_UPDATE: "service.update",
|
|
502
|
+
};
|
|
503
|
+
exports.ServiceEventType = {
|
|
504
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
505
|
+
};
|
|
487
506
|
exports.WebhookEventType = {
|
|
488
507
|
CALL_COMPLETED: "call:completed",
|
|
489
508
|
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,11 +58,6 @@ 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
|
-
};
|
|
66
61
|
export var CallFlowAttachment;
|
|
67
62
|
(function (CallFlowAttachment) {
|
|
68
63
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -72,14 +67,11 @@ export var CallFlowAttachment;
|
|
|
72
67
|
return visitor.fax(value.fax);
|
|
73
68
|
if (value.voicemail !== undefined)
|
|
74
69
|
return visitor.voicemail(value.voicemail);
|
|
75
|
-
if (value.transcription !== undefined)
|
|
76
|
-
return visitor.transcription(value.transcription);
|
|
77
70
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
71
|
};
|
|
79
72
|
})(CallFlowAttachment || (CallFlowAttachment = {}));
|
|
80
73
|
export const CallFlowAttachmentType = {
|
|
81
74
|
FAX: "FAX",
|
|
82
|
-
TRANSCRIPTION: "TRANSCRIPTION",
|
|
83
75
|
VOICEMAIL: "VOICEMAIL",
|
|
84
76
|
};
|
|
85
77
|
export const CallParticipantRole = {
|
|
@@ -106,6 +98,11 @@ export const License = {
|
|
|
106
98
|
UC: "uc",
|
|
107
99
|
XBEES: "x-bees",
|
|
108
100
|
};
|
|
101
|
+
export const CallFlowTranscriptionStatus = {
|
|
102
|
+
AVAILABLE: "AVAILABLE",
|
|
103
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
+
};
|
|
109
106
|
export const RecordType = {
|
|
110
107
|
CALL: "call",
|
|
111
108
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -273,6 +270,9 @@ export const LiveEventType = {
|
|
|
273
270
|
CONFERENCE_JOIN: "conference_join",
|
|
274
271
|
CONFERENCE_LEAVE: "conference_leave",
|
|
275
272
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
273
|
+
SERVICE: "service",
|
|
274
|
+
SERVICE_AGENT: "service_agent",
|
|
275
|
+
SERVICE_CALL: "service_call",
|
|
276
276
|
};
|
|
277
277
|
export const CallAnalyticsLiveProgressEventTrigger = {
|
|
278
278
|
AGENTS_CANCEL: "call.agents_cancel",
|
|
@@ -467,6 +467,7 @@ export const WebsocketAction = {
|
|
|
467
467
|
export const WebsocketTopic = {
|
|
468
468
|
CONVERSATIONS: "conversations",
|
|
469
469
|
PRESENCE: "presence",
|
|
470
|
+
SERVICES: "services",
|
|
470
471
|
TRANSCRIPTIONS: "transcriptions",
|
|
471
472
|
};
|
|
472
473
|
export const PresenceAnalyticsEventType = {
|
|
@@ -478,6 +479,24 @@ export const PresenceEventType = {
|
|
|
478
479
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
479
480
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
480
481
|
};
|
|
482
|
+
export const ServiceAgentType = {
|
|
483
|
+
DYNAMIC: "DYNAMIC",
|
|
484
|
+
STATIC: "STATIC",
|
|
485
|
+
};
|
|
486
|
+
export const ServiceAnalyticsLiveProgressEventTrigger = {
|
|
487
|
+
SERVICE_AGENT_JOIN: "service.agent_join",
|
|
488
|
+
SERVICE_AGENT_LEAVE: "service.agent_leave",
|
|
489
|
+
SERVICE_AGENT_UPDATE: "service.agent_update",
|
|
490
|
+
SERVICE_CALL_END: "service.call_end",
|
|
491
|
+
SERVICE_CALL_INIT: "service.call_init",
|
|
492
|
+
SERVICE_CALL_UPDATE: "service.call_update",
|
|
493
|
+
SERVICE_END: "service.end",
|
|
494
|
+
SERVICE_INIT: "service.init",
|
|
495
|
+
SERVICE_UPDATE: "service.update",
|
|
496
|
+
};
|
|
497
|
+
export const ServiceEventType = {
|
|
498
|
+
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
499
|
+
};
|
|
481
500
|
export const WebhookEventType = {
|
|
482
501
|
CALL_COMPLETED: "call:completed",
|
|
483
502
|
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", // required
|
|
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" || "service_agent" || "service_call", // required
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|