@wildix/wda-stream-client 1.1.65 → 1.1.67

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
3
  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.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.AnnotationsStatus = exports.RecordType = exports.License = exports.AnnotationSourceType = exports.AnnotationPayload = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
- exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.ServiceAnalyticsEventTrigger = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeDirection = exports.ConferenceConsumeEventType = exports.ChatEventType = exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = void 0;
4
+ exports.WebhookEventType = exports.ServiceEventType = exports.ServiceCallEventType = exports.ServiceAnalyticsEventTrigger = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ServiceCallAction = exports.ServiceConsumeEventType = exports.ServiceAgentType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeDirection = exports.ConferenceConsumeEventType = exports.ChatEventType = exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallRtpIpFamily = exports.CallEndConsume = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  name = "ForbiddenException";
@@ -353,6 +353,10 @@ exports.CallEndConsume = {
353
353
  CALLEE: "callee",
354
354
  CALLER: "caller",
355
355
  };
356
+ exports.CallRtpIpFamily = {
357
+ IPV4: "IPv4",
358
+ IPV6: "IPv6",
359
+ };
356
360
  exports.CallEventType = {
357
361
  ANNOTATIONS_RECORD_EVENT: "CallAnalyticsAnnotationsRecordEvent",
358
362
  COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
@@ -652,5 +656,7 @@ exports.WebhookEventType = {
652
656
  PRESENCE_CONFERENCE: "presence:conference",
653
657
  PRESENCE_TELEPHONY: "presence:telephony",
654
658
  PRESENCE_USER: "presence:user",
659
+ SERVICE_CALL_LIVE_COMPLETED: "service:call:live:completed",
660
+ SERVICE_CALL_LIVE_PROGRESS: "service:call:live:progress",
655
661
  SMS_STATUS: "sms:status",
656
662
  };
@@ -363,6 +363,8 @@ const de_DescribeEventCommand = async (output, context) => {
363
363
  'WebhookPresenceConferenceEvent': smithy_client_1._json,
364
364
  'WebhookPresenceTelephonyEvent': smithy_client_1._json,
365
365
  'WebhookPresenceUserEvent': smithy_client_1._json,
366
+ 'WebhookServiceCallLiveCompletedEvent': smithy_client_1._json,
367
+ 'WebhookServiceCallLiveProgressEvent': smithy_client_1._json,
366
368
  'WebhookSmsStatusEvent': smithy_client_1._json,
367
369
  'WebsocketAuthorizeBadRequestException': smithy_client_1._json,
368
370
  'WebsocketAuthorizedEvent': _ => de_WebsocketAuthorizedEvent(_, context),
@@ -706,6 +708,86 @@ const se_CallAnnotateConsumeEventData = (input, context) => {
706
708
  'flowIndex': [],
707
709
  });
708
710
  };
711
+ const se_CallEndConsumeEvent = (input, context) => {
712
+ return (0, smithy_client_1.take)(input, {
713
+ 'company': [],
714
+ 'data': _ => se_CallEndConsumeEventData(_, context),
715
+ 'id': [],
716
+ 'pbx': [],
717
+ 'time': [],
718
+ 'type': [],
719
+ });
720
+ };
721
+ const se_CallEndConsumeEventData = (input, context) => {
722
+ return (0, smithy_client_1.take)(input, {
723
+ 'cause': [],
724
+ 'causeStr': [],
725
+ 'mos': smithy_client_1._json,
726
+ 'postTranscribe': [],
727
+ 'rtpStats': _ => se_CallRtpStatsData(_, context),
728
+ 'who': [],
729
+ });
730
+ };
731
+ const se_CallRtpLegStats = (input, context) => {
732
+ return (0, smithy_client_1.take)(input, {
733
+ 'advertised': smithy_client_1._json,
734
+ 'bytes': [],
735
+ 'codec': [],
736
+ 'jitter': smithy_client_1._json,
737
+ 'mos': _ => se_CallRtpMosStats(_, context),
738
+ 'node': [],
739
+ 'packetLoss': smithy_client_1._json,
740
+ 'packets': [],
741
+ 'protocol': [],
742
+ 'remote': smithy_client_1._json,
743
+ 'rtt': smithy_client_1._json,
744
+ });
745
+ };
746
+ const se_CallRtpMosStats = (input, context) => {
747
+ return (0, smithy_client_1.take)(input, {
748
+ 'avg': smithy_client_1.serializeFloat,
749
+ 'max': smithy_client_1.serializeFloat,
750
+ 'min': smithy_client_1.serializeFloat,
751
+ });
752
+ };
753
+ const se_CallRtpStatsData = (input, context) => {
754
+ return (0, smithy_client_1.take)(input, {
755
+ 'callee': _ => se_CallRtpLegStats(_, context),
756
+ 'caller': _ => se_CallRtpLegStats(_, context),
757
+ });
758
+ };
759
+ const se_CallSplitConsumeEvent = (input, context) => {
760
+ return (0, smithy_client_1.take)(input, {
761
+ 'company': [],
762
+ 'data': _ => se_CallSplitConsumeEventData(_, context),
763
+ 'id': [],
764
+ 'pbx': [],
765
+ 'time': [],
766
+ 'type': [],
767
+ });
768
+ };
769
+ const se_CallSplitConsumeEventData = (input, context) => {
770
+ return (0, smithy_client_1.take)(input, {
771
+ 'callee': smithy_client_1._json,
772
+ 'caller': smithy_client_1._json,
773
+ 'destination': [],
774
+ 'flags': smithy_client_1._json,
775
+ 'mergeWith': [],
776
+ 'mos': smithy_client_1._json,
777
+ 'postTranscribe': [],
778
+ 'queue': smithy_client_1._json,
779
+ 'queuePosition': [],
780
+ 'reason': [],
781
+ 'rtpStats': _ => se_CallRtpStatsData(_, context),
782
+ 'service': [],
783
+ 'serviceNumber': [],
784
+ 'sipCallId': [],
785
+ 'status': [],
786
+ 'tags': smithy_client_1._json,
787
+ 'transferType': [],
788
+ 'trunk': smithy_client_1._json,
789
+ });
790
+ };
709
791
  const se_ChatAnnotateConsumeEvent = (input, context) => {
710
792
  return (0, smithy_client_1.take)(input, {
711
793
  'company': [],
@@ -742,14 +824,14 @@ const se_ConsumeEventInputEvent = (input, context) => {
742
824
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
743
825
  callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
744
826
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
745
- callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
827
+ callEnd: value => ({ "callEnd": se_CallEndConsumeEvent(value, context) }),
746
828
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
747
829
  callPostTranscription: value => ({ "callPostTranscription": (0, smithy_client_1._json)(value) }),
748
830
  callRecordPause: value => ({ "callRecordPause": (0, smithy_client_1._json)(value) }),
749
831
  callRecordStart: value => ({ "callRecordStart": (0, smithy_client_1._json)(value) }),
750
832
  callRecordStop: value => ({ "callRecordStop": (0, smithy_client_1._json)(value) }),
751
833
  callRecordUnpause: value => ({ "callRecordUnpause": (0, smithy_client_1._json)(value) }),
752
- callSplit: value => ({ "callSplit": (0, smithy_client_1._json)(value) }),
834
+ callSplit: value => ({ "callSplit": se_CallSplitConsumeEvent(value, context) }),
753
835
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
754
836
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
755
837
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
@@ -347,6 +347,10 @@ export const CallEndConsume = {
347
347
  CALLEE: "callee",
348
348
  CALLER: "caller",
349
349
  };
350
+ export const CallRtpIpFamily = {
351
+ IPV4: "IPv4",
352
+ IPV6: "IPv6",
353
+ };
350
354
  export const CallEventType = {
351
355
  ANNOTATIONS_RECORD_EVENT: "CallAnalyticsAnnotationsRecordEvent",
352
356
  COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
@@ -646,5 +650,7 @@ export const WebhookEventType = {
646
650
  PRESENCE_CONFERENCE: "presence:conference",
647
651
  PRESENCE_TELEPHONY: "presence:telephony",
648
652
  PRESENCE_USER: "presence:user",
653
+ SERVICE_CALL_LIVE_COMPLETED: "service:call:live:completed",
654
+ SERVICE_CALL_LIVE_PROGRESS: "service:call:live:progress",
649
655
  SMS_STATUS: "sms:status",
650
656
  };
@@ -3,7 +3,7 @@ import { AnnotationPayload, ConsumeEventInputEvent, ForbiddenException, Validati
3
3
  import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
4
4
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
5
5
  import { requestBuilder as rb } from "@smithy/core";
6
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, 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";
6
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
7
7
  export const se_ConsumeEventCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
9
  const headers = {
@@ -344,6 +344,8 @@ export const de_DescribeEventCommand = async (output, context) => {
344
344
  'WebhookPresenceConferenceEvent': _json,
345
345
  'WebhookPresenceTelephonyEvent': _json,
346
346
  'WebhookPresenceUserEvent': _json,
347
+ 'WebhookServiceCallLiveCompletedEvent': _json,
348
+ 'WebhookServiceCallLiveProgressEvent': _json,
347
349
  'WebhookSmsStatusEvent': _json,
348
350
  'WebsocketAuthorizeBadRequestException': _json,
349
351
  'WebsocketAuthorizedEvent': _ => de_WebsocketAuthorizedEvent(_, context),
@@ -673,6 +675,86 @@ const se_CallAnnotateConsumeEventData = (input, context) => {
673
675
  'flowIndex': [],
674
676
  });
675
677
  };
678
+ const se_CallEndConsumeEvent = (input, context) => {
679
+ return take(input, {
680
+ 'company': [],
681
+ 'data': _ => se_CallEndConsumeEventData(_, context),
682
+ 'id': [],
683
+ 'pbx': [],
684
+ 'time': [],
685
+ 'type': [],
686
+ });
687
+ };
688
+ const se_CallEndConsumeEventData = (input, context) => {
689
+ return take(input, {
690
+ 'cause': [],
691
+ 'causeStr': [],
692
+ 'mos': _json,
693
+ 'postTranscribe': [],
694
+ 'rtpStats': _ => se_CallRtpStatsData(_, context),
695
+ 'who': [],
696
+ });
697
+ };
698
+ const se_CallRtpLegStats = (input, context) => {
699
+ return take(input, {
700
+ 'advertised': _json,
701
+ 'bytes': [],
702
+ 'codec': [],
703
+ 'jitter': _json,
704
+ 'mos': _ => se_CallRtpMosStats(_, context),
705
+ 'node': [],
706
+ 'packetLoss': _json,
707
+ 'packets': [],
708
+ 'protocol': [],
709
+ 'remote': _json,
710
+ 'rtt': _json,
711
+ });
712
+ };
713
+ const se_CallRtpMosStats = (input, context) => {
714
+ return take(input, {
715
+ 'avg': __serializeFloat,
716
+ 'max': __serializeFloat,
717
+ 'min': __serializeFloat,
718
+ });
719
+ };
720
+ const se_CallRtpStatsData = (input, context) => {
721
+ return take(input, {
722
+ 'callee': _ => se_CallRtpLegStats(_, context),
723
+ 'caller': _ => se_CallRtpLegStats(_, context),
724
+ });
725
+ };
726
+ const se_CallSplitConsumeEvent = (input, context) => {
727
+ return take(input, {
728
+ 'company': [],
729
+ 'data': _ => se_CallSplitConsumeEventData(_, context),
730
+ 'id': [],
731
+ 'pbx': [],
732
+ 'time': [],
733
+ 'type': [],
734
+ });
735
+ };
736
+ const se_CallSplitConsumeEventData = (input, context) => {
737
+ return take(input, {
738
+ 'callee': _json,
739
+ 'caller': _json,
740
+ 'destination': [],
741
+ 'flags': _json,
742
+ 'mergeWith': [],
743
+ 'mos': _json,
744
+ 'postTranscribe': [],
745
+ 'queue': _json,
746
+ 'queuePosition': [],
747
+ 'reason': [],
748
+ 'rtpStats': _ => se_CallRtpStatsData(_, context),
749
+ 'service': [],
750
+ 'serviceNumber': [],
751
+ 'sipCallId': [],
752
+ 'status': [],
753
+ 'tags': _json,
754
+ 'transferType': [],
755
+ 'trunk': _json,
756
+ });
757
+ };
676
758
  const se_ChatAnnotateConsumeEvent = (input, context) => {
677
759
  return take(input, {
678
760
  'company': [],
@@ -709,14 +791,14 @@ const se_ConsumeEventInputEvent = (input, context) => {
709
791
  callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
710
792
  callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
711
793
  callAttachment: value => ({ "callAttachment": _json(value) }),
712
- callEnd: value => ({ "callEnd": _json(value) }),
794
+ callEnd: value => ({ "callEnd": se_CallEndConsumeEvent(value, context) }),
713
795
  callLive: value => ({ "callLive": _json(value) }),
714
796
  callPostTranscription: value => ({ "callPostTranscription": _json(value) }),
715
797
  callRecordPause: value => ({ "callRecordPause": _json(value) }),
716
798
  callRecordStart: value => ({ "callRecordStart": _json(value) }),
717
799
  callRecordStop: value => ({ "callRecordStop": _json(value) }),
718
800
  callRecordUnpause: value => ({ "callRecordUnpause": _json(value) }),
719
- callSplit: value => ({ "callSplit": _json(value) }),
801
+ callSplit: value => ({ "callSplit": se_CallSplitConsumeEvent(value, context) }),
720
802
  callStart: value => ({ "callStart": _json(value) }),
721
803
  callTranscription: value => ({ "callTranscription": _json(value) }),
722
804
  callUpdate: value => ({ "callUpdate": _json(value) }),
@@ -218,6 +218,82 @@ declare const ConsumeEventCommand_base: {
218
218
  * caller: "STRING_VALUE",
219
219
  * callee: "STRING_VALUE",
220
220
  * },
221
+ * rtpStats: { // CallRtpStatsData
222
+ * caller: { // CallRtpLegStats
223
+ * node: "STRING_VALUE",
224
+ * packets: Number("int"),
225
+ * bytes: Number("int"),
226
+ * remote: { // CallRtpEndpoint
227
+ * ip: "STRING_VALUE",
228
+ * port: Number("int"),
229
+ * family: "IPv4" || "IPv6",
230
+ * },
231
+ * advertised: {
232
+ * ip: "STRING_VALUE",
233
+ * port: Number("int"),
234
+ * family: "IPv4" || "IPv6",
235
+ * },
236
+ * codec: "STRING_VALUE",
237
+ * protocol: "STRING_VALUE",
238
+ * mos: { // CallRtpMosStats
239
+ * avg: Number("float"),
240
+ * min: Number("float"),
241
+ * max: Number("float"),
242
+ * },
243
+ * jitter: { // CallRtpJitterStats
244
+ * avg: Number("int"),
245
+ * min: Number("int"),
246
+ * max: Number("int"),
247
+ * },
248
+ * packetLoss: { // CallRtpPacketLossStats
249
+ * avg: Number("int"),
250
+ * min: Number("int"),
251
+ * max: Number("int"),
252
+ * cumulative: Number("int"),
253
+ * },
254
+ * rtt: { // CallRtpRttStats
255
+ * avg: Number("int"),
256
+ * leg: Number("int"),
257
+ * },
258
+ * },
259
+ * callee: {
260
+ * node: "STRING_VALUE",
261
+ * packets: Number("int"),
262
+ * bytes: Number("int"),
263
+ * remote: {
264
+ * ip: "STRING_VALUE",
265
+ * port: Number("int"),
266
+ * family: "IPv4" || "IPv6",
267
+ * },
268
+ * advertised: {
269
+ * ip: "STRING_VALUE",
270
+ * port: Number("int"),
271
+ * family: "IPv4" || "IPv6",
272
+ * },
273
+ * codec: "STRING_VALUE",
274
+ * protocol: "STRING_VALUE",
275
+ * mos: {
276
+ * avg: Number("float"),
277
+ * min: Number("float"),
278
+ * max: Number("float"),
279
+ * },
280
+ * jitter: {
281
+ * avg: Number("int"),
282
+ * min: Number("int"),
283
+ * max: Number("int"),
284
+ * },
285
+ * packetLoss: {
286
+ * avg: Number("int"),
287
+ * min: Number("int"),
288
+ * max: Number("int"),
289
+ * cumulative: Number("int"),
290
+ * },
291
+ * rtt: {
292
+ * avg: Number("int"),
293
+ * leg: Number("int"),
294
+ * },
295
+ * },
296
+ * },
221
297
  * reason: "STRING_VALUE",
222
298
  * transferType: "STRING_VALUE",
223
299
  * mergeWith: "STRING_VALUE",
@@ -300,6 +376,70 @@ declare const ConsumeEventCommand_base: {
300
376
  * caller: "STRING_VALUE",
301
377
  * callee: "STRING_VALUE",
302
378
  * },
379
+ * rtpStats: {
380
+ * caller: {
381
+ * node: "STRING_VALUE",
382
+ * packets: Number("int"),
383
+ * bytes: Number("int"),
384
+ * remote: {
385
+ * ip: "STRING_VALUE",
386
+ * port: Number("int"),
387
+ * family: "IPv4" || "IPv6",
388
+ * },
389
+ * advertised: "<CallRtpEndpoint>",
390
+ * codec: "STRING_VALUE",
391
+ * protocol: "STRING_VALUE",
392
+ * mos: {
393
+ * avg: Number("float"),
394
+ * min: Number("float"),
395
+ * max: Number("float"),
396
+ * },
397
+ * jitter: {
398
+ * avg: Number("int"),
399
+ * min: Number("int"),
400
+ * max: Number("int"),
401
+ * },
402
+ * packetLoss: {
403
+ * avg: Number("int"),
404
+ * min: Number("int"),
405
+ * max: Number("int"),
406
+ * cumulative: Number("int"),
407
+ * },
408
+ * rtt: {
409
+ * avg: Number("int"),
410
+ * leg: Number("int"),
411
+ * },
412
+ * },
413
+ * callee: {
414
+ * node: "STRING_VALUE",
415
+ * packets: Number("int"),
416
+ * bytes: Number("int"),
417
+ * remote: "<CallRtpEndpoint>",
418
+ * advertised: "<CallRtpEndpoint>",
419
+ * codec: "STRING_VALUE",
420
+ * protocol: "STRING_VALUE",
421
+ * mos: {
422
+ * avg: Number("float"),
423
+ * min: Number("float"),
424
+ * max: Number("float"),
425
+ * },
426
+ * jitter: {
427
+ * avg: Number("int"),
428
+ * min: Number("int"),
429
+ * max: Number("int"),
430
+ * },
431
+ * packetLoss: {
432
+ * avg: Number("int"),
433
+ * min: Number("int"),
434
+ * max: Number("int"),
435
+ * cumulative: Number("int"),
436
+ * },
437
+ * rtt: {
438
+ * avg: Number("int"),
439
+ * leg: Number("int"),
440
+ * },
441
+ * },
442
+ * },
303
443
  * cause: "STRING_VALUE",
304
444
  * causeStr: "STRING_VALUE",
305
445
  * who: "caller" || "callee",