@wildix/wda-stream-client 1.1.1 → 1.1.3

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChannelType = 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.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChatAttachment = 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 = void 0;
3
+ exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = 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.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 = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  name = "ValidationException";
@@ -120,29 +120,31 @@ exports.CallTranscriptionSpeaker = {
120
120
  CALLEE: "callee",
121
121
  CALLER: "caller",
122
122
  };
123
- var ChatAttachment;
124
- (function (ChatAttachment) {
125
- ChatAttachment.visit = (value, visitor) => {
126
- if (value.file !== undefined)
127
- return visitor.file(value.file);
128
- if (value.image !== undefined)
129
- return visitor.image(value.image);
130
- return visitor._(value.$unknown[0], value.$unknown[1]);
131
- };
132
- })(ChatAttachment || (exports.ChatAttachment = ChatAttachment = {}));
123
+ exports.ChannelAccess = {
124
+ PRIVATE: "private",
125
+ PUBLIC: "public",
126
+ };
127
+ exports.ChannelType = {
128
+ DIRECT: "direct",
129
+ GROUP: "group",
130
+ };
131
+ exports.ChannelContextEventAttendeeStatus = {
132
+ ACCEPTED: "accepted",
133
+ DECLINED: "declined",
134
+ NONE: "none",
135
+ TENTATIVE: "tentative",
136
+ };
137
+ exports.ChannelContextSource = {
138
+ KITE: "kite",
139
+ };
140
+ exports.ChannelWhatsAppStatus = {
141
+ CHANNEL_CLOSED: "24h_channel_closed",
142
+ };
133
143
  exports.ChatDirection = {
134
144
  INBOUND: "INBOUND",
135
145
  INTERNAL: "INTERNAL",
136
146
  OUTBOUND: "OUTBOUND",
137
147
  };
138
- exports.ChatParticipantRole = {
139
- AGENT: "AGENT",
140
- CLIENT: "CLIENT",
141
- };
142
- exports.ChatParticipantType = {
143
- LOCAL: "LOCAL",
144
- REMOTE: "REMOTE",
145
- };
146
148
  exports.ChatStatus = {
147
149
  COMPLETED: "COMPLETED",
148
150
  MISSED: "MISSED",
@@ -150,10 +152,55 @@ exports.ChatStatus = {
150
152
  WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
151
153
  WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
152
154
  };
153
- exports.ChatTag = {
154
- SMS: "sms",
155
- TELEPHONY: "telephony",
156
- WHATSAPP: "whatsapp",
155
+ var ButtonHandler;
156
+ (function (ButtonHandler) {
157
+ ButtonHandler.visit = (value, visitor) => {
158
+ if (value.link !== undefined)
159
+ return visitor.link(value.link);
160
+ if (value.reply !== undefined)
161
+ return visitor.reply(value.reply);
162
+ if (value.action !== undefined)
163
+ return visitor.action(value.action);
164
+ return visitor._(value.$unknown[0], value.$unknown[1]);
165
+ };
166
+ })(ButtonHandler || (exports.ButtonHandler = ButtonHandler = {}));
167
+ exports.ButtonVariant = {
168
+ CONTAINED: "contained",
169
+ OUTLINED: "outlined",
170
+ };
171
+ var ActionElement;
172
+ (function (ActionElement) {
173
+ ActionElement.visit = (value, visitor) => {
174
+ if (value.button !== undefined)
175
+ return visitor.button(value.button);
176
+ return visitor._(value.$unknown[0], value.$unknown[1]);
177
+ };
178
+ })(ActionElement || (exports.ActionElement = ActionElement = {}));
179
+ var Element;
180
+ (function (Element) {
181
+ Element.visit = (value, visitor) => {
182
+ if (value.template !== undefined)
183
+ return visitor.template(value.template);
184
+ if (value.actions !== undefined)
185
+ return visitor.actions(value.actions);
186
+ return visitor._(value.$unknown[0], value.$unknown[1]);
187
+ };
188
+ })(Element || (exports.Element = Element = {}));
189
+ exports.MessageSmsStatus = {
190
+ DELIVERED: "delivered",
191
+ ERROR: "error",
192
+ SENT: "sent",
193
+ TRYING: "trying",
194
+ };
195
+ exports.MessageType = {
196
+ REGULAR: "regular",
197
+ SYSTEM: "system",
198
+ };
199
+ exports.MessageWhatsAppStatus = {
200
+ DELIVERED: "delivered",
201
+ ERROR: "error",
202
+ SENT: "sent",
203
+ TRYING: "trying",
157
204
  };
158
205
  exports.ConferenceDirection = {
159
206
  INBOUND: "INBOUND",
@@ -255,13 +302,8 @@ exports.CallFlowConsumeStatus = {
255
302
  HOLD: "hold",
256
303
  TALKING: "talking",
257
304
  };
258
- exports.ChannelType = {
259
- DIRECT: "direct",
260
- GROUP: "group",
261
- };
262
305
  exports.ChatConsumeEventType = {
263
- CHAT_NEW: "CHAT.NEW",
264
- CHAT_UPDATE: "CHAT.UPDATE",
306
+ CHAT_MESSAGE: "CHAT.MESSAGE",
265
307
  };
266
308
  exports.ChatEventType = {
267
309
  LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
@@ -269,6 +311,7 @@ exports.ChatEventType = {
269
311
  LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
270
312
  MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
271
313
  RECORD_EVENT: "ChatAnalyticsRecordEvent",
314
+ TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
272
315
  };
273
316
  exports.ConferenceConsumeDirection = {
274
317
  INBOUND: "inbound",
@@ -373,10 +416,8 @@ var ConsumeEventInputEvent;
373
416
  return visitor.conferenceEnd(value.conferenceEnd);
374
417
  if (value.conferenceStats !== undefined)
375
418
  return visitor.conferenceStats(value.conferenceStats);
376
- if (value.chatNew !== undefined)
377
- return visitor.chatNew(value.chatNew);
378
- if (value.chatUpdate !== undefined)
379
- return visitor.chatUpdate(value.chatUpdate);
419
+ if (value.chatMessage !== undefined)
420
+ return visitor.chatMessage(value.chatMessage);
380
421
  if (value.smsInbound !== undefined)
381
422
  return visitor.smsInbound(value.smsInbound);
382
423
  if (value.smsStatus !== undefined)
@@ -160,6 +160,7 @@ const de_DescribeEventCommand = async (output, context) => {
160
160
  'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
161
161
  'ChatAnalyticsManagerMissedEvent': smithy_client_1._json,
162
162
  'ChatAnalyticsRecordEvent': smithy_client_1._json,
163
+ 'ChatAnalyticsTranscriptionRecordEvent': smithy_client_1._json,
163
164
  'ChatEventType': smithy_client_1.expectString,
164
165
  'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
165
166
  'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
@@ -388,8 +389,7 @@ const se_ConsumeEventInputEvent = (input, context) => {
388
389
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
389
390
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
390
391
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
391
- chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
392
- chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
392
+ chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
393
393
  conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
394
394
  conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
395
395
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
@@ -114,29 +114,31 @@ export const CallTranscriptionSpeaker = {
114
114
  CALLEE: "callee",
115
115
  CALLER: "caller",
116
116
  };
117
- export var ChatAttachment;
118
- (function (ChatAttachment) {
119
- ChatAttachment.visit = (value, visitor) => {
120
- if (value.file !== undefined)
121
- return visitor.file(value.file);
122
- if (value.image !== undefined)
123
- return visitor.image(value.image);
124
- return visitor._(value.$unknown[0], value.$unknown[1]);
125
- };
126
- })(ChatAttachment || (ChatAttachment = {}));
117
+ export const ChannelAccess = {
118
+ PRIVATE: "private",
119
+ PUBLIC: "public",
120
+ };
121
+ export const ChannelType = {
122
+ DIRECT: "direct",
123
+ GROUP: "group",
124
+ };
125
+ export const ChannelContextEventAttendeeStatus = {
126
+ ACCEPTED: "accepted",
127
+ DECLINED: "declined",
128
+ NONE: "none",
129
+ TENTATIVE: "tentative",
130
+ };
131
+ export const ChannelContextSource = {
132
+ KITE: "kite",
133
+ };
134
+ export const ChannelWhatsAppStatus = {
135
+ CHANNEL_CLOSED: "24h_channel_closed",
136
+ };
127
137
  export const ChatDirection = {
128
138
  INBOUND: "INBOUND",
129
139
  INTERNAL: "INTERNAL",
130
140
  OUTBOUND: "OUTBOUND",
131
141
  };
132
- export const ChatParticipantRole = {
133
- AGENT: "AGENT",
134
- CLIENT: "CLIENT",
135
- };
136
- export const ChatParticipantType = {
137
- LOCAL: "LOCAL",
138
- REMOTE: "REMOTE",
139
- };
140
142
  export const ChatStatus = {
141
143
  COMPLETED: "COMPLETED",
142
144
  MISSED: "MISSED",
@@ -144,10 +146,55 @@ export const ChatStatus = {
144
146
  WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
145
147
  WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
146
148
  };
147
- export const ChatTag = {
148
- SMS: "sms",
149
- TELEPHONY: "telephony",
150
- WHATSAPP: "whatsapp",
149
+ export var ButtonHandler;
150
+ (function (ButtonHandler) {
151
+ ButtonHandler.visit = (value, visitor) => {
152
+ if (value.link !== undefined)
153
+ return visitor.link(value.link);
154
+ if (value.reply !== undefined)
155
+ return visitor.reply(value.reply);
156
+ if (value.action !== undefined)
157
+ return visitor.action(value.action);
158
+ return visitor._(value.$unknown[0], value.$unknown[1]);
159
+ };
160
+ })(ButtonHandler || (ButtonHandler = {}));
161
+ export const ButtonVariant = {
162
+ CONTAINED: "contained",
163
+ OUTLINED: "outlined",
164
+ };
165
+ export var ActionElement;
166
+ (function (ActionElement) {
167
+ ActionElement.visit = (value, visitor) => {
168
+ if (value.button !== undefined)
169
+ return visitor.button(value.button);
170
+ return visitor._(value.$unknown[0], value.$unknown[1]);
171
+ };
172
+ })(ActionElement || (ActionElement = {}));
173
+ export var Element;
174
+ (function (Element) {
175
+ Element.visit = (value, visitor) => {
176
+ if (value.template !== undefined)
177
+ return visitor.template(value.template);
178
+ if (value.actions !== undefined)
179
+ return visitor.actions(value.actions);
180
+ return visitor._(value.$unknown[0], value.$unknown[1]);
181
+ };
182
+ })(Element || (Element = {}));
183
+ export const MessageSmsStatus = {
184
+ DELIVERED: "delivered",
185
+ ERROR: "error",
186
+ SENT: "sent",
187
+ TRYING: "trying",
188
+ };
189
+ export const MessageType = {
190
+ REGULAR: "regular",
191
+ SYSTEM: "system",
192
+ };
193
+ export const MessageWhatsAppStatus = {
194
+ DELIVERED: "delivered",
195
+ ERROR: "error",
196
+ SENT: "sent",
197
+ TRYING: "trying",
151
198
  };
152
199
  export const ConferenceDirection = {
153
200
  INBOUND: "INBOUND",
@@ -249,13 +296,8 @@ export const CallFlowConsumeStatus = {
249
296
  HOLD: "hold",
250
297
  TALKING: "talking",
251
298
  };
252
- export const ChannelType = {
253
- DIRECT: "direct",
254
- GROUP: "group",
255
- };
256
299
  export const ChatConsumeEventType = {
257
- CHAT_NEW: "CHAT.NEW",
258
- CHAT_UPDATE: "CHAT.UPDATE",
300
+ CHAT_MESSAGE: "CHAT.MESSAGE",
259
301
  };
260
302
  export const ChatEventType = {
261
303
  LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
@@ -263,6 +305,7 @@ export const ChatEventType = {
263
305
  LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
264
306
  MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
265
307
  RECORD_EVENT: "ChatAnalyticsRecordEvent",
308
+ TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
266
309
  };
267
310
  export const ConferenceConsumeDirection = {
268
311
  INBOUND: "inbound",
@@ -367,10 +410,8 @@ export var ConsumeEventInputEvent;
367
410
  return visitor.conferenceEnd(value.conferenceEnd);
368
411
  if (value.conferenceStats !== undefined)
369
412
  return visitor.conferenceStats(value.conferenceStats);
370
- if (value.chatNew !== undefined)
371
- return visitor.chatNew(value.chatNew);
372
- if (value.chatUpdate !== undefined)
373
- return visitor.chatUpdate(value.chatUpdate);
413
+ if (value.chatMessage !== undefined)
414
+ return visitor.chatMessage(value.chatMessage);
374
415
  if (value.smsInbound !== undefined)
375
416
  return visitor.smsInbound(value.smsInbound);
376
417
  if (value.smsStatus !== undefined)
@@ -149,6 +149,7 @@ export const de_DescribeEventCommand = async (output, context) => {
149
149
  'ChatAnalyticsLiveProgressEvent': _json,
150
150
  'ChatAnalyticsManagerMissedEvent': _json,
151
151
  'ChatAnalyticsRecordEvent': _json,
152
+ 'ChatAnalyticsTranscriptionRecordEvent': _json,
152
153
  'ChatEventType': __expectString,
153
154
  'ConferenceAnalyticsLiveCompleteEvent': _json,
154
155
  'ConferenceAnalyticsLiveInterruptedEvent': _json,
@@ -371,8 +372,7 @@ const se_ConsumeEventInputEvent = (input, context) => {
371
372
  callStart: value => ({ "callStart": _json(value) }),
372
373
  callTranscription: value => ({ "callTranscription": _json(value) }),
373
374
  callUpdate: value => ({ "callUpdate": _json(value) }),
374
- chatNew: value => ({ "chatNew": _json(value) }),
375
- chatUpdate: value => ({ "chatUpdate": _json(value) }),
375
+ chatMessage: value => ({ "chatMessage": _json(value) }),
376
376
  conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
377
377
  conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
378
378
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),