@wildix/wda-stream-client 1.1.3 → 1.1.6
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 +23 -2
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +50 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +132 -220
- package/dist-types/commands/QueryConversationsCommand.d.ts +24 -46
- package/dist-types/models/models_0.d.ts +352 -35
- 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 = void 0;
|
|
3
|
+
exports.ChatEventType = 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.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.ChatTag = 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",
|
|
@@ -193,6 +201,7 @@ exports.MessageSmsStatus = {
|
|
|
193
201
|
TRYING: "trying",
|
|
194
202
|
};
|
|
195
203
|
exports.MessageType = {
|
|
204
|
+
DELETED: "deleted",
|
|
196
205
|
REGULAR: "regular",
|
|
197
206
|
SYSTEM: "system",
|
|
198
207
|
};
|
|
@@ -304,15 +313,23 @@ exports.CallFlowConsumeStatus = {
|
|
|
304
313
|
};
|
|
305
314
|
exports.ChatConsumeEventType = {
|
|
306
315
|
CHAT_MESSAGE: "CHAT.MESSAGE",
|
|
316
|
+
CHAT_NEW: "CHAT.NEW",
|
|
317
|
+
CHAT_UPDATE: "CHAT.UPDATE",
|
|
307
318
|
};
|
|
308
319
|
exports.ChatEventType = {
|
|
309
320
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
310
321
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
311
322
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
323
|
+
LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
|
|
312
324
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
313
325
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
314
326
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
315
327
|
};
|
|
328
|
+
exports.ChatTag = {
|
|
329
|
+
SMS: "sms",
|
|
330
|
+
TELEPHONY: "telephony",
|
|
331
|
+
WHATSAPP: "whatsapp",
|
|
332
|
+
};
|
|
316
333
|
exports.ConferenceConsumeDirection = {
|
|
317
334
|
INBOUND: "inbound",
|
|
318
335
|
INTERNAL: "internal",
|
|
@@ -418,6 +435,10 @@ var ConsumeEventInputEvent;
|
|
|
418
435
|
return visitor.conferenceStats(value.conferenceStats);
|
|
419
436
|
if (value.chatMessage !== undefined)
|
|
420
437
|
return visitor.chatMessage(value.chatMessage);
|
|
438
|
+
if (value.chatNew !== undefined)
|
|
439
|
+
return visitor.chatNew(value.chatNew);
|
|
440
|
+
if (value.chatUpdate !== undefined)
|
|
441
|
+
return visitor.chatUpdate(value.chatUpdate);
|
|
421
442
|
if (value.smsInbound !== undefined)
|
|
422
443
|
return visitor.smsInbound(value.smsInbound);
|
|
423
444
|
if (value.smsStatus !== undefined)
|
|
@@ -158,6 +158,7 @@ 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
164
|
'ChatAnalyticsTranscriptionRecordEvent': smithy_client_1._json,
|
|
@@ -390,6 +391,8 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
390
391
|
callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
|
|
391
392
|
callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
|
|
392
393
|
chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
|
|
394
|
+
chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
|
|
395
|
+
chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
|
|
393
396
|
conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
|
|
394
397
|
conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
|
|
395
398
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
|
|
@@ -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",
|
|
@@ -187,6 +195,7 @@ export const MessageSmsStatus = {
|
|
|
187
195
|
TRYING: "trying",
|
|
188
196
|
};
|
|
189
197
|
export const MessageType = {
|
|
198
|
+
DELETED: "deleted",
|
|
190
199
|
REGULAR: "regular",
|
|
191
200
|
SYSTEM: "system",
|
|
192
201
|
};
|
|
@@ -298,15 +307,23 @@ export const CallFlowConsumeStatus = {
|
|
|
298
307
|
};
|
|
299
308
|
export const ChatConsumeEventType = {
|
|
300
309
|
CHAT_MESSAGE: "CHAT.MESSAGE",
|
|
310
|
+
CHAT_NEW: "CHAT.NEW",
|
|
311
|
+
CHAT_UPDATE: "CHAT.UPDATE",
|
|
301
312
|
};
|
|
302
313
|
export const ChatEventType = {
|
|
303
314
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
304
315
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
305
316
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
317
|
+
LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
|
|
306
318
|
MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
|
|
307
319
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
308
320
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
309
321
|
};
|
|
322
|
+
export const ChatTag = {
|
|
323
|
+
SMS: "sms",
|
|
324
|
+
TELEPHONY: "telephony",
|
|
325
|
+
WHATSAPP: "whatsapp",
|
|
326
|
+
};
|
|
310
327
|
export const ConferenceConsumeDirection = {
|
|
311
328
|
INBOUND: "inbound",
|
|
312
329
|
INTERNAL: "internal",
|
|
@@ -412,6 +429,10 @@ export var ConsumeEventInputEvent;
|
|
|
412
429
|
return visitor.conferenceStats(value.conferenceStats);
|
|
413
430
|
if (value.chatMessage !== undefined)
|
|
414
431
|
return visitor.chatMessage(value.chatMessage);
|
|
432
|
+
if (value.chatNew !== undefined)
|
|
433
|
+
return visitor.chatNew(value.chatNew);
|
|
434
|
+
if (value.chatUpdate !== undefined)
|
|
435
|
+
return visitor.chatUpdate(value.chatUpdate);
|
|
415
436
|
if (value.smsInbound !== undefined)
|
|
416
437
|
return visitor.smsInbound(value.smsInbound);
|
|
417
438
|
if (value.smsStatus !== undefined)
|
|
@@ -147,6 +147,7 @@ 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
153
|
'ChatAnalyticsTranscriptionRecordEvent': _json,
|
|
@@ -373,6 +374,8 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
373
374
|
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
374
375
|
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
375
376
|
chatMessage: value => ({ "chatMessage": _json(value) }),
|
|
377
|
+
chatNew: value => ({ "chatNew": _json(value) }),
|
|
378
|
+
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
376
379
|
conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
|
|
377
380
|
conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
|
|
378
381
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
|
|
@@ -456,10 +456,11 @@ declare const ConsumeEventCommand_base: {
|
|
|
456
456
|
* ],
|
|
457
457
|
* },
|
|
458
458
|
* chatMessage: { // ChatMessageConsumeEvent
|
|
459
|
-
* type: "CHAT.MESSAGE", // required
|
|
459
|
+
* type: "CHAT.MESSAGE" || "CHAT.NEW" || "CHAT.UPDATE", // required
|
|
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,53 @@ declare const ConsumeEventCommand_base: {
|
|
|
690
691
|
* ],
|
|
691
692
|
* customersCount: Number("int"), // required
|
|
692
693
|
* },
|
|
694
|
+
* service: "STRING_VALUE",
|
|
695
|
+
* serviceTitle: "STRING_VALUE",
|
|
696
|
+
* },
|
|
697
|
+
* },
|
|
698
|
+
* chatNew: { // ChatNewConsumeEvent
|
|
699
|
+
* type: "CHAT.MESSAGE" || "CHAT.NEW" || "CHAT.UPDATE", // required
|
|
700
|
+
* company: "STRING_VALUE", // required
|
|
701
|
+
* time: Number("long"), // required
|
|
702
|
+
* data: { // ChatNewConsumeEventData
|
|
703
|
+
* channelId: "STRING_VALUE", // required
|
|
704
|
+
* channelType: "direct" || "group", // required
|
|
705
|
+
* subject: "STRING_VALUE", // required
|
|
706
|
+
* service: "STRING_VALUE",
|
|
707
|
+
* serviceTitle: "STRING_VALUE",
|
|
708
|
+
* participants: { // ChatConsumeEventParticipants
|
|
709
|
+
* agents: [ // required
|
|
710
|
+
* "<User>",
|
|
711
|
+
* ],
|
|
712
|
+
* agentsCount: Number("int"), // required
|
|
713
|
+
* customers: "<UsersList>", // required
|
|
714
|
+
* customersCount: Number("int"), // required
|
|
715
|
+
* },
|
|
716
|
+
* tags: [ // ChatTags
|
|
717
|
+
* "sms" || "telephony" || "whatsapp",
|
|
718
|
+
* ],
|
|
719
|
+
* sender: "<User>", // required
|
|
720
|
+
* },
|
|
721
|
+
* },
|
|
722
|
+
* chatUpdate: { // ChatUpdateConsumeEvent
|
|
723
|
+
* type: "CHAT.MESSAGE" || "CHAT.NEW" || "CHAT.UPDATE", // required
|
|
724
|
+
* company: "STRING_VALUE", // required
|
|
725
|
+
* time: Number("long"), // required
|
|
726
|
+
* data: { // ChatUpdateConsumeEventData
|
|
727
|
+
* channelId: "STRING_VALUE", // required
|
|
728
|
+
* channelType: "direct" || "group", // required
|
|
729
|
+
* subject: "STRING_VALUE", // required
|
|
730
|
+
* service: "STRING_VALUE",
|
|
731
|
+
* serviceTitle: "STRING_VALUE",
|
|
732
|
+
* participants: {
|
|
733
|
+
* agents: "<UsersList>", // required
|
|
734
|
+
* agentsCount: Number("int"), // required
|
|
735
|
+
* customers: "<UsersList>", // required
|
|
736
|
+
* customersCount: Number("int"), // required
|
|
737
|
+
* },
|
|
738
|
+
* tags: [
|
|
739
|
+
* "sms" || "telephony" || "whatsapp",
|
|
740
|
+
* ],
|
|
693
741
|
* },
|
|
694
742
|
* },
|
|
695
743
|
* smsInbound: { // SmsInboundConsumeEvent
|