@wildix/wda-stream-client 1.0.19 → 1.0.20

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = 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.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = 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.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
5
5
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
6
6
  constructor(opts) {
@@ -28,18 +28,6 @@ class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceExc
28
28
  }
29
29
  }
30
30
  exports.ForbiddenException = ForbiddenException;
31
- exports.WhatsAppEventType = {
32
- WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
33
- WHATSAPP_STATUS: "WHATSAPP.STATUS",
34
- };
35
- exports.WhatsAppStatus = {
36
- CHANNEL_CLOSED: "24H_CHANNEL_CLOSED",
37
- DELETED: "DELETED",
38
- DELIVERED: "DELIVERED",
39
- ERROR: "ERROR",
40
- READ: "READ",
41
- SENT: "SENT",
42
- };
43
31
  exports.CallFlowAttachmentType = {
44
32
  FAX: "FAX",
45
33
  VOICEMAIL: "VOICEMAIL",
@@ -219,7 +207,6 @@ exports.ChatStatus = {
219
207
  exports.ChatTag = {
220
208
  SMS: "sms",
221
209
  TELEPHONY: "telephony",
222
- WHATSAPP: "whatsapp",
223
210
  };
224
211
  exports.ChatConsumeEventType = {
225
212
  CHAT_NEW: "CHAT.NEW",
@@ -295,10 +282,6 @@ var ConsumeEventInputEvent;
295
282
  return visitor.smsInbound(value.smsInbound);
296
283
  if (value.smsStatus !== undefined)
297
284
  return visitor.smsStatus(value.smsStatus);
298
- if (value.whatsappInbound !== undefined)
299
- return visitor.whatsappInbound(value.whatsappInbound);
300
- if (value.whatsappStatus !== undefined)
301
- return visitor.whatsappStatus(value.whatsappStatus);
302
285
  return visitor._(value.$unknown[0], value.$unknown[1]);
303
286
  };
304
287
  })(ConsumeEventInputEvent = exports.ConsumeEventInputEvent || (exports.ConsumeEventInputEvent = {}));
@@ -311,6 +294,31 @@ exports.PresenceEventType = {
311
294
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
312
295
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
313
296
  };
297
+ exports.WebhookEventType = {
298
+ CALL_COMPLETED: "call:completed",
299
+ CALL_LIVE_COMPLETED: "call:live:completed",
300
+ CALL_LIVE_INTERRUPTED: "call:live:interrupted",
301
+ CALL_LIVE_PROGRESS: "call:live:progress",
302
+ CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
303
+ CHAT_COMPLETED: "chat:completed",
304
+ CHAT_LIVE_COMPLETED: "chat:live:completed",
305
+ CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
306
+ CHAT_LIVE_PROGRESS: "chat:live:progress",
307
+ CHAT_MANAGER_MISSED: "chat:manager:missed",
308
+ CONFERENCE_COMPLETED: "conference:completed",
309
+ CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
310
+ CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
311
+ CONFERENCE_LIVE_JOIN: "conference:live:join",
312
+ CONFERENCE_LIVE_LEAVE: "conference:live:leave",
313
+ CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
314
+ CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
315
+ OLD_CALL_END: "call:end",
316
+ OLD_CALL_START: "call:start",
317
+ OLD_CALL_UPDATE: "call:update",
318
+ PRESENCE_CONFERENCE: "presence:conference",
319
+ PRESENCE_TELEPHONY: "presence:telephony",
320
+ PRESENCE_USER: "presence:user",
321
+ };
314
322
  exports.WebsocketEvent = {
315
323
  AUTHORIZED: "authorized",
316
324
  BROADCAST: "broadcast",
@@ -13,7 +13,7 @@ const se_ConsumeEventCommand = async (input, context) => {
13
13
  b.bp("/v2/stream/events/consume");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
- 'event': _ => se_ConsumeEventInputEvent(_, context),
16
+ 'event': _ => (0, smithy_client_1._json)(_),
17
17
  }));
18
18
  b.m("POST")
19
19
  .h(headers)
@@ -31,8 +31,6 @@ const se_DescribeEventCommand = async (input, context) => {
31
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
32
32
  'SmsInboundEvent': _ => (0, smithy_client_1._json)(_),
33
33
  'SmsStatusEvent': _ => (0, smithy_client_1._json)(_),
34
- 'WhatsAppInboundEvent': _ => se_WhatsAppInboundEvent(_, context),
35
- 'WhatsAppStatusEvent': _ => se_WhatsAppStatusEvent(_, context),
36
34
  }));
37
35
  b.m("POST")
38
36
  .h(headers)
@@ -119,7 +117,30 @@ const de_DescribeEventCommand = async (output, context) => {
119
117
  'PresenceAnalyticsStatusEvent': smithy_client_1._json,
120
118
  'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
121
119
  'PresenceEventType': smithy_client_1.expectString,
122
- 'WebsocketConversationBroadcastEvent': _ => de_WebsocketConversationBroadcastEvent(_, context),
120
+ 'WebhookCallCompletedEvent': smithy_client_1._json,
121
+ 'WebhookCallLiveCompletedEvent': smithy_client_1._json,
122
+ 'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
123
+ 'WebhookCallLiveProgressEvent': smithy_client_1._json,
124
+ 'WebhookCallLiveTranscriptionEvent': smithy_client_1._json,
125
+ 'WebhookChatCompletedEvent': smithy_client_1._json,
126
+ 'WebhookChatLiveCompletedEvent': smithy_client_1._json,
127
+ 'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
128
+ 'WebhookChatLiveProgressEvent': smithy_client_1._json,
129
+ 'WebhookChatManagerMissedEvent': smithy_client_1._json,
130
+ 'WebhookConferenceCompletedEvent': smithy_client_1._json,
131
+ 'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
132
+ 'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
133
+ 'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
134
+ 'WebhookConferenceLiveLeaveEvent': smithy_client_1._json,
135
+ 'WebhookConferenceLiveProgressEvent': smithy_client_1._json,
136
+ 'WebhookConferenceLiveTranscriptionEvent': smithy_client_1._json,
137
+ 'WebhookOutdatedCallEndEvent': smithy_client_1._json,
138
+ 'WebhookOutdatedCallStartEvent': smithy_client_1._json,
139
+ 'WebhookOutdatedCallUpdateEvent': smithy_client_1._json,
140
+ 'WebhookPresenceConferenceEvent': smithy_client_1._json,
141
+ 'WebhookPresenceTelephonyEvent': smithy_client_1._json,
142
+ 'WebhookPresenceUserEvent': smithy_client_1._json,
143
+ 'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
123
144
  'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
124
145
  'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
125
146
  });
@@ -224,65 +245,6 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
224
245
  });
225
246
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
226
247
  };
227
- const se_ConsumeEventInputEvent = (input, context) => {
228
- return models_0_1.ConsumeEventInputEvent.visit(input, {
229
- callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
230
- callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
231
- callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
232
- callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
233
- callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
234
- callRecordStart: value => ({ "callRecordStart": (0, smithy_client_1._json)(value) }),
235
- callRecordStop: value => ({ "callRecordStop": (0, smithy_client_1._json)(value) }),
236
- callSplit: value => ({ "callSplit": (0, smithy_client_1._json)(value) }),
237
- callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
238
- callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
239
- callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
240
- chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
241
- chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
242
- conferenceTimeFrames: value => ({ "conferenceTimeFrames": (0, smithy_client_1._json)(value) }),
243
- smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
244
- smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
245
- whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
246
- whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
247
- _: (name, value) => ({ name: value })
248
- });
249
- };
250
- const se_WhatsAppInboundConsumeEvent = (input, context) => {
251
- return (0, smithy_client_1.take)(input, {
252
- 'company': [],
253
- 'data': smithy_client_1._json,
254
- 'pbx': [],
255
- 'time': _ => Math.round(_.getTime() / 1000),
256
- 'type': [],
257
- });
258
- };
259
- const se_WhatsAppInboundEvent = (input, context) => {
260
- return (0, smithy_client_1.take)(input, {
261
- 'company': [],
262
- 'data': smithy_client_1._json,
263
- 'pbx': [],
264
- 'time': _ => Math.round(_.getTime() / 1000),
265
- 'type': [],
266
- });
267
- };
268
- const se_WhatsAppStatusConsumeEvent = (input, context) => {
269
- return (0, smithy_client_1.take)(input, {
270
- 'company': [],
271
- 'data': smithy_client_1._json,
272
- 'pbx': [],
273
- 'time': _ => Math.round(_.getTime() / 1000),
274
- 'type': [],
275
- });
276
- };
277
- const se_WhatsAppStatusEvent = (input, context) => {
278
- return (0, smithy_client_1.take)(input, {
279
- 'company': [],
280
- 'data': smithy_client_1._json,
281
- 'pbx': [],
282
- 'time': _ => Math.round(_.getTime() / 1000),
283
- 'type': [],
284
- });
285
- };
286
248
  const de_Document = (output, context) => {
287
249
  return output;
288
250
  };
@@ -299,7 +261,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
299
261
  'type': smithy_client_1.expectString,
300
262
  });
301
263
  };
302
- const de_WebsocketConversationBroadcastEvent = (output, context) => {
264
+ const de_WebsocketConversationsBroadcastEvent = (output, context) => {
303
265
  return (0, smithy_client_1.take)(output, {
304
266
  'data': (_) => de_Document(_, context),
305
267
  'event': smithy_client_1.expectString,
@@ -23,18 +23,6 @@ export class ForbiddenException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
25
  }
26
- export const WhatsAppEventType = {
27
- WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
28
- WHATSAPP_STATUS: "WHATSAPP.STATUS",
29
- };
30
- export const WhatsAppStatus = {
31
- CHANNEL_CLOSED: "24H_CHANNEL_CLOSED",
32
- DELETED: "DELETED",
33
- DELIVERED: "DELIVERED",
34
- ERROR: "ERROR",
35
- READ: "READ",
36
- SENT: "SENT",
37
- };
38
26
  export const CallFlowAttachmentType = {
39
27
  FAX: "FAX",
40
28
  VOICEMAIL: "VOICEMAIL",
@@ -214,7 +202,6 @@ export const ChatStatus = {
214
202
  export const ChatTag = {
215
203
  SMS: "sms",
216
204
  TELEPHONY: "telephony",
217
- WHATSAPP: "whatsapp",
218
205
  };
219
206
  export const ChatConsumeEventType = {
220
207
  CHAT_NEW: "CHAT.NEW",
@@ -290,10 +277,6 @@ export var ConsumeEventInputEvent;
290
277
  return visitor.smsInbound(value.smsInbound);
291
278
  if (value.smsStatus !== undefined)
292
279
  return visitor.smsStatus(value.smsStatus);
293
- if (value.whatsappInbound !== undefined)
294
- return visitor.whatsappInbound(value.whatsappInbound);
295
- if (value.whatsappStatus !== undefined)
296
- return visitor.whatsappStatus(value.whatsappStatus);
297
280
  return visitor._(value.$unknown[0], value.$unknown[1]);
298
281
  };
299
282
  })(ConsumeEventInputEvent || (ConsumeEventInputEvent = {}));
@@ -306,6 +289,31 @@ export const PresenceEventType = {
306
289
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
307
290
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
308
291
  };
292
+ export const WebhookEventType = {
293
+ CALL_COMPLETED: "call:completed",
294
+ CALL_LIVE_COMPLETED: "call:live:completed",
295
+ CALL_LIVE_INTERRUPTED: "call:live:interrupted",
296
+ CALL_LIVE_PROGRESS: "call:live:progress",
297
+ CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
298
+ CHAT_COMPLETED: "chat:completed",
299
+ CHAT_LIVE_COMPLETED: "chat:live:completed",
300
+ CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
301
+ CHAT_LIVE_PROGRESS: "chat:live:progress",
302
+ CHAT_MANAGER_MISSED: "chat:manager:missed",
303
+ CONFERENCE_COMPLETED: "conference:completed",
304
+ CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
305
+ CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
306
+ CONFERENCE_LIVE_JOIN: "conference:live:join",
307
+ CONFERENCE_LIVE_LEAVE: "conference:live:leave",
308
+ CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
309
+ CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
310
+ OLD_CALL_END: "call:end",
311
+ OLD_CALL_START: "call:start",
312
+ OLD_CALL_UPDATE: "call:update",
313
+ PRESENCE_CONFERENCE: "presence:conference",
314
+ PRESENCE_TELEPHONY: "presence:telephony",
315
+ PRESENCE_USER: "presence:user",
316
+ };
309
317
  export const WebsocketEvent = {
310
318
  AUTHORIZED: "authorized",
311
319
  BROADCAST: "broadcast",
@@ -1,5 +1,5 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
2
- import { ConsumeEventInputEvent, ForbiddenException, MatchNotFoundException, ValidationException, } from "../models/models_0";
2
+ import { ForbiddenException, MatchNotFoundException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
5
  export const se_ConsumeEventCommand = async (input, context) => {
@@ -10,7 +10,7 @@ export const se_ConsumeEventCommand = async (input, context) => {
10
10
  b.bp("/v2/stream/events/consume");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
- 'event': _ => se_ConsumeEventInputEvent(_, context),
13
+ 'event': _ => _json(_),
14
14
  }));
15
15
  b.m("POST")
16
16
  .h(headers)
@@ -27,8 +27,6 @@ export const se_DescribeEventCommand = async (input, context) => {
27
27
  body = JSON.stringify(take(input, {
28
28
  'SmsInboundEvent': _ => _json(_),
29
29
  'SmsStatusEvent': _ => _json(_),
30
- 'WhatsAppInboundEvent': _ => se_WhatsAppInboundEvent(_, context),
31
- 'WhatsAppStatusEvent': _ => se_WhatsAppStatusEvent(_, context),
32
30
  }));
33
31
  b.m("POST")
34
32
  .h(headers)
@@ -111,7 +109,30 @@ export const de_DescribeEventCommand = async (output, context) => {
111
109
  'PresenceAnalyticsStatusEvent': _json,
112
110
  'PresenceAnalyticsTelephonyEvent': _json,
113
111
  'PresenceEventType': __expectString,
114
- 'WebsocketConversationBroadcastEvent': _ => de_WebsocketConversationBroadcastEvent(_, context),
112
+ 'WebhookCallCompletedEvent': _json,
113
+ 'WebhookCallLiveCompletedEvent': _json,
114
+ 'WebhookCallLiveInterruptedEvent': _json,
115
+ 'WebhookCallLiveProgressEvent': _json,
116
+ 'WebhookCallLiveTranscriptionEvent': _json,
117
+ 'WebhookChatCompletedEvent': _json,
118
+ 'WebhookChatLiveCompletedEvent': _json,
119
+ 'WebhookChatLiveInterruptedEvent': _json,
120
+ 'WebhookChatLiveProgressEvent': _json,
121
+ 'WebhookChatManagerMissedEvent': _json,
122
+ 'WebhookConferenceCompletedEvent': _json,
123
+ 'WebhookConferenceLiveCompletedEvent': _json,
124
+ 'WebhookConferenceLiveInterruptedEvent': _json,
125
+ 'WebhookConferenceLiveJoinEvent': _json,
126
+ 'WebhookConferenceLiveLeaveEvent': _json,
127
+ 'WebhookConferenceLiveProgressEvent': _json,
128
+ 'WebhookConferenceLiveTranscriptionEvent': _json,
129
+ 'WebhookOutdatedCallEndEvent': _json,
130
+ 'WebhookOutdatedCallStartEvent': _json,
131
+ 'WebhookOutdatedCallUpdateEvent': _json,
132
+ 'WebhookPresenceConferenceEvent': _json,
133
+ 'WebhookPresenceTelephonyEvent': _json,
134
+ 'WebhookPresenceUserEvent': _json,
135
+ 'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
115
136
  'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
116
137
  'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
117
138
  });
@@ -213,65 +234,6 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
213
234
  });
214
235
  return __decorateServiceException(exception, parsedOutput.body);
215
236
  };
216
- const se_ConsumeEventInputEvent = (input, context) => {
217
- return ConsumeEventInputEvent.visit(input, {
218
- callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
219
- callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
220
- callAttachment: value => ({ "callAttachment": _json(value) }),
221
- callEnd: value => ({ "callEnd": _json(value) }),
222
- callLive: value => ({ "callLive": _json(value) }),
223
- callRecordStart: value => ({ "callRecordStart": _json(value) }),
224
- callRecordStop: value => ({ "callRecordStop": _json(value) }),
225
- callSplit: value => ({ "callSplit": _json(value) }),
226
- callStart: value => ({ "callStart": _json(value) }),
227
- callTranscription: value => ({ "callTranscription": _json(value) }),
228
- callUpdate: value => ({ "callUpdate": _json(value) }),
229
- chatNew: value => ({ "chatNew": _json(value) }),
230
- chatUpdate: value => ({ "chatUpdate": _json(value) }),
231
- conferenceTimeFrames: value => ({ "conferenceTimeFrames": _json(value) }),
232
- smsInbound: value => ({ "smsInbound": _json(value) }),
233
- smsStatus: value => ({ "smsStatus": _json(value) }),
234
- whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
235
- whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
236
- _: (name, value) => ({ name: value })
237
- });
238
- };
239
- const se_WhatsAppInboundConsumeEvent = (input, context) => {
240
- return take(input, {
241
- 'company': [],
242
- 'data': _json,
243
- 'pbx': [],
244
- 'time': _ => Math.round(_.getTime() / 1000),
245
- 'type': [],
246
- });
247
- };
248
- const se_WhatsAppInboundEvent = (input, context) => {
249
- return take(input, {
250
- 'company': [],
251
- 'data': _json,
252
- 'pbx': [],
253
- 'time': _ => Math.round(_.getTime() / 1000),
254
- 'type': [],
255
- });
256
- };
257
- const se_WhatsAppStatusConsumeEvent = (input, context) => {
258
- return take(input, {
259
- 'company': [],
260
- 'data': _json,
261
- 'pbx': [],
262
- 'time': _ => Math.round(_.getTime() / 1000),
263
- 'type': [],
264
- });
265
- };
266
- const se_WhatsAppStatusEvent = (input, context) => {
267
- return take(input, {
268
- 'company': [],
269
- 'data': _json,
270
- 'pbx': [],
271
- 'time': _ => Math.round(_.getTime() / 1000),
272
- 'type': [],
273
- });
274
- };
275
237
  const de_Document = (output, context) => {
276
238
  return output;
277
239
  };
@@ -288,7 +250,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
288
250
  'type': __expectString,
289
251
  });
290
252
  };
291
- const de_WebsocketConversationBroadcastEvent = (output, context) => {
253
+ const de_WebsocketConversationsBroadcastEvent = (output, context) => {
292
254
  return take(output, {
293
255
  'data': (_) => de_Document(_, context),
294
256
  'event': __expectString,
@@ -393,7 +393,7 @@ declare const ConsumeEventCommand_base: {
393
393
  * customersCount: Number("int"), // required
394
394
  * },
395
395
  * tags: [ // ChatTags
396
- * "sms" || "telephony" || "whatsapp",
396
+ * "sms" || "telephony",
397
397
  * ],
398
398
  * sender: {
399
399
  * id: "STRING_VALUE", // required
@@ -467,7 +467,7 @@ declare const ConsumeEventCommand_base: {
467
467
  * customersCount: Number("int"), // required
468
468
  * },
469
469
  * tags: [
470
- * "sms" || "telephony" || "whatsapp",
470
+ * "sms" || "telephony",
471
471
  * ],
472
472
  * },
473
473
  * },
@@ -497,36 +497,6 @@ declare const ConsumeEventCommand_base: {
497
497
  * parts: Number("int"), // required
498
498
  * },
499
499
  * },
500
- * whatsappInbound: { // WhatsAppInboundConsumeEvent
501
- * pbx: "STRING_VALUE", // required
502
- * company: "STRING_VALUE", // required
503
- * time: new Date("TIMESTAMP"), // required
504
- * type: "WHATSAPP.INBOUND" || "WHATSAPP.STATUS", // required
505
- * data: { // WhatsAppInboundEventData
506
- * from: "STRING_VALUE", // required
507
- * to: "STRING_VALUE", // required
508
- * id: "STRING_VALUE", // required
509
- * message: "STRING_VALUE", // required
510
- * media: [ // StringList
511
- * "STRING_VALUE",
512
- * ],
513
- * },
514
- * },
515
- * whatsappStatus: { // WhatsAppStatusConsumeEvent
516
- * pbx: "STRING_VALUE", // required
517
- * company: "STRING_VALUE", // required
518
- * time: new Date("TIMESTAMP"), // required
519
- * type: "WHATSAPP.INBOUND" || "WHATSAPP.STATUS", // required
520
- * data: { // WhatsAppStatusEventData
521
- * from: "STRING_VALUE", // required
522
- * to: "STRING_VALUE", // required
523
- * id: "STRING_VALUE", // required
524
- * status: "SENT" || "DELIVERED" || "ERROR" || "READ" || "DELETED" || "24H_CHANNEL_CLOSED", // required
525
- * reason: "STRING_VALUE", // required
526
- * channel: "STRING_VALUE",
527
- * parts: Number("int"),
528
- * },
529
- * },
530
500
  * },
531
501
  * };
532
502
  * const command = new ConsumeEventCommand(input);