@wildix/wda-stream-client 1.1.4 → 1.1.11
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 +17 -7
- package/dist-cjs/protocols/Aws_restJson1.js +12 -1
- package/dist-es/models/models_0.js +15 -5
- package/dist-es/protocols/Aws_restJson1.js +12 -1
- package/dist-types/commands/ConsumeEventCommand.d.ts +4 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +350 -318
- package/dist-types/commands/QueryConversationsCommand.d.ts +55 -100
- package/dist-types/models/models_0.d.ts +172 -48
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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 = 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.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
|
|
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;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
name = "ValidationException";
|
|
@@ -145,6 +145,14 @@ exports.ChatDirection = {
|
|
|
145
145
|
INTERNAL: "INTERNAL",
|
|
146
146
|
OUTBOUND: "OUTBOUND",
|
|
147
147
|
};
|
|
148
|
+
exports.ChatParticipantRole = {
|
|
149
|
+
AGENT: "AGENT",
|
|
150
|
+
CLIENT: "CLIENT",
|
|
151
|
+
};
|
|
152
|
+
exports.ChatParticipantType = {
|
|
153
|
+
LOCAL: "LOCAL",
|
|
154
|
+
REMOTE: "REMOTE",
|
|
155
|
+
};
|
|
148
156
|
exports.ChatStatus = {
|
|
149
157
|
COMPLETED: "COMPLETED",
|
|
150
158
|
MISSED: "MISSED",
|
|
@@ -152,6 +160,11 @@ exports.ChatStatus = {
|
|
|
152
160
|
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
153
161
|
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
154
162
|
};
|
|
163
|
+
exports.ChatTag = {
|
|
164
|
+
SMS: "sms",
|
|
165
|
+
TELEPHONY: "telephony",
|
|
166
|
+
WHATSAPP: "whatsapp",
|
|
167
|
+
};
|
|
155
168
|
var ButtonHandler;
|
|
156
169
|
(function (ButtonHandler) {
|
|
157
170
|
ButtonHandler.visit = (value, visitor) => {
|
|
@@ -193,6 +206,7 @@ exports.MessageSmsStatus = {
|
|
|
193
206
|
TRYING: "trying",
|
|
194
207
|
};
|
|
195
208
|
exports.MessageType = {
|
|
209
|
+
DELETED: "deleted",
|
|
196
210
|
REGULAR: "regular",
|
|
197
211
|
SYSTEM: "system",
|
|
198
212
|
};
|
|
@@ -311,15 +325,11 @@ exports.ChatEventType = {
|
|
|
311
325
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
312
326
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
313
327
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
328
|
+
LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
|
|
314
329
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
315
330
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
316
331
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
317
332
|
};
|
|
318
|
-
exports.ChatTag = {
|
|
319
|
-
SMS: "sms",
|
|
320
|
-
TELEPHONY: "telephony",
|
|
321
|
-
WHATSAPP: "whatsapp",
|
|
322
|
-
};
|
|
323
333
|
exports.ConferenceConsumeDirection = {
|
|
324
334
|
INBOUND: "inbound",
|
|
325
335
|
INTERNAL: "internal",
|
|
@@ -158,9 +158,10 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
158
158
|
'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
159
159
|
'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
160
160
|
'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
|
|
161
|
+
'ChatAnalyticsLiveTranscriptionEvent': smithy_client_1._json,
|
|
161
162
|
'ChatAnalyticsManagerMissedEvent': smithy_client_1._json,
|
|
162
163
|
'ChatAnalyticsRecordEvent': smithy_client_1._json,
|
|
163
|
-
'ChatAnalyticsTranscriptionRecordEvent':
|
|
164
|
+
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
164
165
|
'ChatEventType': smithy_client_1.expectString,
|
|
165
166
|
'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
|
|
166
167
|
'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
|
|
@@ -485,6 +486,16 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
485
486
|
'type': smithy_client_1.expectString,
|
|
486
487
|
});
|
|
487
488
|
};
|
|
489
|
+
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
490
|
+
return (0, smithy_client_1.take)(output, {
|
|
491
|
+
'chatId': smithy_client_1.expectString,
|
|
492
|
+
'company': smithy_client_1.expectString,
|
|
493
|
+
'id': smithy_client_1.expectString,
|
|
494
|
+
'time': smithy_client_1.expectLong,
|
|
495
|
+
'transcription': smithy_client_1._json,
|
|
496
|
+
'type': smithy_client_1.expectString,
|
|
497
|
+
});
|
|
498
|
+
};
|
|
488
499
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
489
500
|
return (0, smithy_client_1.take)(output, {
|
|
490
501
|
'connectionId': smithy_client_1.expectString,
|
|
@@ -139,6 +139,14 @@ export const ChatDirection = {
|
|
|
139
139
|
INTERNAL: "INTERNAL",
|
|
140
140
|
OUTBOUND: "OUTBOUND",
|
|
141
141
|
};
|
|
142
|
+
export const ChatParticipantRole = {
|
|
143
|
+
AGENT: "AGENT",
|
|
144
|
+
CLIENT: "CLIENT",
|
|
145
|
+
};
|
|
146
|
+
export const ChatParticipantType = {
|
|
147
|
+
LOCAL: "LOCAL",
|
|
148
|
+
REMOTE: "REMOTE",
|
|
149
|
+
};
|
|
142
150
|
export const ChatStatus = {
|
|
143
151
|
COMPLETED: "COMPLETED",
|
|
144
152
|
MISSED: "MISSED",
|
|
@@ -146,6 +154,11 @@ export const ChatStatus = {
|
|
|
146
154
|
WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
|
|
147
155
|
WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
|
|
148
156
|
};
|
|
157
|
+
export const ChatTag = {
|
|
158
|
+
SMS: "sms",
|
|
159
|
+
TELEPHONY: "telephony",
|
|
160
|
+
WHATSAPP: "whatsapp",
|
|
161
|
+
};
|
|
149
162
|
export var ButtonHandler;
|
|
150
163
|
(function (ButtonHandler) {
|
|
151
164
|
ButtonHandler.visit = (value, visitor) => {
|
|
@@ -187,6 +200,7 @@ export const MessageSmsStatus = {
|
|
|
187
200
|
TRYING: "trying",
|
|
188
201
|
};
|
|
189
202
|
export const MessageType = {
|
|
203
|
+
DELETED: "deleted",
|
|
190
204
|
REGULAR: "regular",
|
|
191
205
|
SYSTEM: "system",
|
|
192
206
|
};
|
|
@@ -305,15 +319,11 @@ export const ChatEventType = {
|
|
|
305
319
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
306
320
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
307
321
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
322
|
+
LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
|
|
308
323
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
309
324
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
310
325
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
311
326
|
};
|
|
312
|
-
export const ChatTag = {
|
|
313
|
-
SMS: "sms",
|
|
314
|
-
TELEPHONY: "telephony",
|
|
315
|
-
WHATSAPP: "whatsapp",
|
|
316
|
-
};
|
|
317
327
|
export const ConferenceConsumeDirection = {
|
|
318
328
|
INBOUND: "inbound",
|
|
319
329
|
INTERNAL: "internal",
|
|
@@ -147,9 +147,10 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
147
147
|
'ChatAnalyticsLiveCompleteEvent': _json,
|
|
148
148
|
'ChatAnalyticsLiveInterruptedEvent': _json,
|
|
149
149
|
'ChatAnalyticsLiveProgressEvent': _json,
|
|
150
|
+
'ChatAnalyticsLiveTranscriptionEvent': _json,
|
|
150
151
|
'ChatAnalyticsManagerMissedEvent': _json,
|
|
151
152
|
'ChatAnalyticsRecordEvent': _json,
|
|
152
|
-
'ChatAnalyticsTranscriptionRecordEvent':
|
|
153
|
+
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
153
154
|
'ChatEventType': __expectString,
|
|
154
155
|
'ConferenceAnalyticsLiveCompleteEvent': _json,
|
|
155
156
|
'ConferenceAnalyticsLiveInterruptedEvent': _json,
|
|
@@ -468,6 +469,16 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
468
469
|
'type': __expectString,
|
|
469
470
|
});
|
|
470
471
|
};
|
|
472
|
+
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
473
|
+
return take(output, {
|
|
474
|
+
'chatId': __expectString,
|
|
475
|
+
'company': __expectString,
|
|
476
|
+
'id': __expectString,
|
|
477
|
+
'time': __expectLong,
|
|
478
|
+
'transcription': _json,
|
|
479
|
+
'type': __expectString,
|
|
480
|
+
});
|
|
481
|
+
};
|
|
471
482
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
472
483
|
return take(output, {
|
|
473
484
|
'connectionId': __expectString,
|
|
@@ -460,6 +460,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
460
460
|
* company: "STRING_VALUE", // required
|
|
461
461
|
* time: Number("long"), // required
|
|
462
462
|
* data: { // ChatMessageConsumeEventData
|
|
463
|
+
* subject: "STRING_VALUE", // required
|
|
463
464
|
* channel: { // Channel
|
|
464
465
|
* subject: "STRING_VALUE",
|
|
465
466
|
* description: "STRING_VALUE",
|
|
@@ -649,7 +650,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
649
650
|
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
650
651
|
* sms: true || false,
|
|
651
652
|
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
652
|
-
* type: "regular" || "system", // required
|
|
653
|
+
* type: "regular" || "system" || "deleted", // required
|
|
653
654
|
* giphy: {
|
|
654
655
|
* id: "STRING_VALUE", // required
|
|
655
656
|
* size: "STRING_VALUE", // required
|
|
@@ -690,6 +691,8 @@ declare const ConsumeEventCommand_base: {
|
|
|
690
691
|
* ],
|
|
691
692
|
* customersCount: Number("int"), // required
|
|
692
693
|
* },
|
|
694
|
+
* service: "STRING_VALUE",
|
|
695
|
+
* serviceTitle: "STRING_VALUE",
|
|
693
696
|
* },
|
|
694
697
|
* },
|
|
695
698
|
* chatNew: { // ChatNewConsumeEvent
|