@wildix/wda-stream-client 1.0.23 → 1.0.24

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.PresenceConsumeEventType = 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;
3
+ exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = 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) {
@@ -326,6 +326,31 @@ exports.PresenceEventType = {
326
326
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
327
327
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
328
328
  };
329
+ exports.WebhookEventType = {
330
+ CALL_COMPLETED: "call:completed",
331
+ CALL_LIVE_COMPLETED: "call:live:completed",
332
+ CALL_LIVE_INTERRUPTED: "call:live:interrupted",
333
+ CALL_LIVE_PROGRESS: "call:live:progress",
334
+ CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
335
+ CHAT_COMPLETED: "chat:completed",
336
+ CHAT_LIVE_COMPLETED: "chat:live:completed",
337
+ CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
338
+ CHAT_LIVE_PROGRESS: "chat:live:progress",
339
+ CHAT_MANAGER_MISSED: "chat:manager:missed",
340
+ CONFERENCE_COMPLETED: "conference:completed",
341
+ CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
342
+ CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
343
+ CONFERENCE_LIVE_JOIN: "conference:live:join",
344
+ CONFERENCE_LIVE_LEAVE: "conference:live:leave",
345
+ CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
346
+ CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
347
+ OLD_CALL_END: "call:end",
348
+ OLD_CALL_START: "call:start",
349
+ OLD_CALL_UPDATE: "call:update",
350
+ PRESENCE_CONFERENCE: "presence:conference",
351
+ PRESENCE_TELEPHONY: "presence:telephony",
352
+ PRESENCE_USER: "presence:user",
353
+ };
329
354
  exports.WebsocketEvent = {
330
355
  AUTHORIZED: "authorized",
331
356
  BROADCAST: "broadcast",
@@ -117,7 +117,30 @@ const de_DescribeEventCommand = async (output, context) => {
117
117
  'PresenceAnalyticsStatusEvent': smithy_client_1._json,
118
118
  'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
119
119
  'PresenceEventType': smithy_client_1.expectString,
120
- '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),
121
144
  'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
122
145
  'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
123
146
  });
@@ -238,7 +261,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
238
261
  'type': smithy_client_1.expectString,
239
262
  });
240
263
  };
241
- const de_WebsocketConversationBroadcastEvent = (output, context) => {
264
+ const de_WebsocketConversationsBroadcastEvent = (output, context) => {
242
265
  return (0, smithy_client_1.take)(output, {
243
266
  'data': (_) => de_Document(_, context),
244
267
  'event': smithy_client_1.expectString,
@@ -321,6 +321,31 @@ export const PresenceEventType = {
321
321
  STATUS_EVENT: "PresenceAnalyticsStatusEvent",
322
322
  TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
323
323
  };
324
+ export const WebhookEventType = {
325
+ CALL_COMPLETED: "call:completed",
326
+ CALL_LIVE_COMPLETED: "call:live:completed",
327
+ CALL_LIVE_INTERRUPTED: "call:live:interrupted",
328
+ CALL_LIVE_PROGRESS: "call:live:progress",
329
+ CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
330
+ CHAT_COMPLETED: "chat:completed",
331
+ CHAT_LIVE_COMPLETED: "chat:live:completed",
332
+ CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
333
+ CHAT_LIVE_PROGRESS: "chat:live:progress",
334
+ CHAT_MANAGER_MISSED: "chat:manager:missed",
335
+ CONFERENCE_COMPLETED: "conference:completed",
336
+ CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
337
+ CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
338
+ CONFERENCE_LIVE_JOIN: "conference:live:join",
339
+ CONFERENCE_LIVE_LEAVE: "conference:live:leave",
340
+ CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
341
+ CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
342
+ OLD_CALL_END: "call:end",
343
+ OLD_CALL_START: "call:start",
344
+ OLD_CALL_UPDATE: "call:update",
345
+ PRESENCE_CONFERENCE: "presence:conference",
346
+ PRESENCE_TELEPHONY: "presence:telephony",
347
+ PRESENCE_USER: "presence:user",
348
+ };
324
349
  export const WebsocketEvent = {
325
350
  AUTHORIZED: "authorized",
326
351
  BROADCAST: "broadcast",
@@ -109,7 +109,30 @@ export const de_DescribeEventCommand = async (output, context) => {
109
109
  'PresenceAnalyticsStatusEvent': _json,
110
110
  'PresenceAnalyticsTelephonyEvent': _json,
111
111
  'PresenceEventType': __expectString,
112
- '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),
113
136
  'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
114
137
  'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
115
138
  });
@@ -227,7 +250,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
227
250
  'type': __expectString,
228
251
  });
229
252
  };
230
- const de_WebsocketConversationBroadcastEvent = (output, context) => {
253
+ const de_WebsocketConversationsBroadcastEvent = (output, context) => {
231
254
  return take(output, {
232
255
  'data': (_) => de_Document(_, context),
233
256
  'event': __expectString,
@@ -451,7 +451,10 @@ declare const ConsumeEventCommand_base: {
451
451
  * email: "STRING_VALUE",
452
452
  * phone: "STRING_VALUE",
453
453
  * picture: "STRING_VALUE",
454
+ * locale: "STRING_VALUE",
455
+ * timeZone: "STRING_VALUE",
454
456
  * company: "STRING_VALUE",
457
+ * bot: true || false,
455
458
  * pbxDomain: "STRING_VALUE",
456
459
  * pbxPort: "STRING_VALUE",
457
460
  * pbxExtension: "STRING_VALUE",
@@ -469,7 +472,10 @@ declare const ConsumeEventCommand_base: {
469
472
  * email: "STRING_VALUE",
470
473
  * phone: "STRING_VALUE",
471
474
  * picture: "STRING_VALUE",
475
+ * locale: "STRING_VALUE",
476
+ * timeZone: "STRING_VALUE",
472
477
  * company: "STRING_VALUE",
478
+ * bot: true || false,
473
479
  * pbxDomain: "STRING_VALUE",
474
480
  * pbxPort: "STRING_VALUE",
475
481
  * pbxExtension: "STRING_VALUE",
@@ -490,7 +496,10 @@ declare const ConsumeEventCommand_base: {
490
496
  * email: "STRING_VALUE",
491
497
  * phone: "STRING_VALUE",
492
498
  * picture: "STRING_VALUE",
499
+ * locale: "STRING_VALUE",
500
+ * timeZone: "STRING_VALUE",
493
501
  * company: "STRING_VALUE",
502
+ * bot: true || false,
494
503
  * pbxDomain: "STRING_VALUE",
495
504
  * pbxPort: "STRING_VALUE",
496
505
  * pbxExtension: "STRING_VALUE",
@@ -519,7 +528,10 @@ declare const ConsumeEventCommand_base: {
519
528
  * email: "STRING_VALUE",
520
529
  * phone: "STRING_VALUE",
521
530
  * picture: "STRING_VALUE",
531
+ * locale: "STRING_VALUE",
532
+ * timeZone: "STRING_VALUE",
522
533
  * company: "STRING_VALUE",
534
+ * bot: true || false,
523
535
  * pbxDomain: "STRING_VALUE",
524
536
  * pbxPort: "STRING_VALUE",
525
537
  * pbxExtension: "STRING_VALUE",
@@ -537,7 +549,10 @@ declare const ConsumeEventCommand_base: {
537
549
  * email: "STRING_VALUE",
538
550
  * phone: "STRING_VALUE",
539
551
  * picture: "STRING_VALUE",
552
+ * locale: "STRING_VALUE",
553
+ * timeZone: "STRING_VALUE",
540
554
  * company: "STRING_VALUE",
555
+ * bot: true || false,
541
556
  * pbxDomain: "STRING_VALUE",
542
557
  * pbxPort: "STRING_VALUE",
543
558
  * pbxExtension: "STRING_VALUE",