@wildix/wda-stream-client 1.1.66 → 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",
@@ -708,6 +708,86 @@ const se_CallAnnotateConsumeEventData = (input, context) => {
708
708
  'flowIndex': [],
709
709
  });
710
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
+ };
711
791
  const se_ChatAnnotateConsumeEvent = (input, context) => {
712
792
  return (0, smithy_client_1.take)(input, {
713
793
  'company': [],
@@ -744,14 +824,14 @@ const se_ConsumeEventInputEvent = (input, context) => {
744
824
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
745
825
  callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
746
826
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
747
- callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
827
+ callEnd: value => ({ "callEnd": se_CallEndConsumeEvent(value, context) }),
748
828
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
749
829
  callPostTranscription: value => ({ "callPostTranscription": (0, smithy_client_1._json)(value) }),
750
830
  callRecordPause: value => ({ "callRecordPause": (0, smithy_client_1._json)(value) }),
751
831
  callRecordStart: value => ({ "callRecordStart": (0, smithy_client_1._json)(value) }),
752
832
  callRecordStop: value => ({ "callRecordStop": (0, smithy_client_1._json)(value) }),
753
833
  callRecordUnpause: value => ({ "callRecordUnpause": (0, smithy_client_1._json)(value) }),
754
- callSplit: value => ({ "callSplit": (0, smithy_client_1._json)(value) }),
834
+ callSplit: value => ({ "callSplit": se_CallSplitConsumeEvent(value, context) }),
755
835
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
756
836
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
757
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",
@@ -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 = {
@@ -675,6 +675,86 @@ const se_CallAnnotateConsumeEventData = (input, context) => {
675
675
  'flowIndex': [],
676
676
  });
677
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
+ };
678
758
  const se_ChatAnnotateConsumeEvent = (input, context) => {
679
759
  return take(input, {
680
760
  'company': [],
@@ -711,14 +791,14 @@ const se_ConsumeEventInputEvent = (input, context) => {
711
791
  callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
712
792
  callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
713
793
  callAttachment: value => ({ "callAttachment": _json(value) }),
714
- callEnd: value => ({ "callEnd": _json(value) }),
794
+ callEnd: value => ({ "callEnd": se_CallEndConsumeEvent(value, context) }),
715
795
  callLive: value => ({ "callLive": _json(value) }),
716
796
  callPostTranscription: value => ({ "callPostTranscription": _json(value) }),
717
797
  callRecordPause: value => ({ "callRecordPause": _json(value) }),
718
798
  callRecordStart: value => ({ "callRecordStart": _json(value) }),
719
799
  callRecordStop: value => ({ "callRecordStop": _json(value) }),
720
800
  callRecordUnpause: value => ({ "callRecordUnpause": _json(value) }),
721
- callSplit: value => ({ "callSplit": _json(value) }),
801
+ callSplit: value => ({ "callSplit": se_CallSplitConsumeEvent(value, context) }),
722
802
  callStart: value => ({ "callStart": _json(value) }),
723
803
  callTranscription: value => ({ "callTranscription": _json(value) }),
724
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",
@@ -2086,11 +2086,170 @@ export interface CallMosData {
2086
2086
  caller?: string | undefined;
2087
2087
  callee?: string | undefined;
2088
2088
  }
2089
+ /**
2090
+ * @public
2091
+ * @enum
2092
+ */
2093
+ export declare const CallRtpIpFamily: {
2094
+ readonly IPV4: "IPv4";
2095
+ readonly IPV6: "IPv6";
2096
+ };
2097
+ /**
2098
+ * @public
2099
+ */
2100
+ export type CallRtpIpFamily = typeof CallRtpIpFamily[keyof typeof CallRtpIpFamily];
2101
+ /**
2102
+ * RTP endpoint with IP address, port, and address family.
2103
+ * @public
2104
+ */
2105
+ export interface CallRtpEndpoint {
2106
+ ip?: string | undefined;
2107
+ port?: number | undefined;
2108
+ family?: CallRtpIpFamily | undefined;
2109
+ }
2110
+ /**
2111
+ * Jitter statistics measured in milliseconds.
2112
+ * @public
2113
+ */
2114
+ export interface CallRtpJitterStats {
2115
+ /**
2116
+ * Average jitter in milliseconds.
2117
+ * @public
2118
+ */
2119
+ avg?: number | undefined;
2120
+ /**
2121
+ * Minimum jitter in milliseconds.
2122
+ * @public
2123
+ */
2124
+ min?: number | undefined;
2125
+ /**
2126
+ * Maximum jitter in milliseconds.
2127
+ * @public
2128
+ */
2129
+ max?: number | undefined;
2130
+ }
2131
+ /**
2132
+ * Mean Opinion Score statistics in range 1.0–5.0.
2133
+ * @public
2134
+ */
2135
+ export interface CallRtpMosStats {
2136
+ avg?: number | undefined;
2137
+ min?: number | undefined;
2138
+ max?: number | undefined;
2139
+ }
2140
+ /**
2141
+ * Packet loss statistics. avg/min/max are percentages; cumulative is a packet count from RTCP RR.
2142
+ * @public
2143
+ */
2144
+ export interface CallRtpPacketLossStats {
2145
+ /**
2146
+ * Average packet loss percentage.
2147
+ * @public
2148
+ */
2149
+ avg?: number | undefined;
2150
+ /**
2151
+ * Minimum packet loss percentage.
2152
+ * @public
2153
+ */
2154
+ min?: number | undefined;
2155
+ /**
2156
+ * Maximum packet loss percentage.
2157
+ * @public
2158
+ */
2159
+ max?: number | undefined;
2160
+ /**
2161
+ * Cumulative packet loss count from RTCP RR.
2162
+ * @public
2163
+ */
2164
+ cumulative?: number | undefined;
2165
+ }
2166
+ /**
2167
+ * Round-trip time statistics measured in milliseconds.
2168
+ * @public
2169
+ */
2170
+ export interface CallRtpRttStats {
2171
+ /**
2172
+ * Average RTT for the full path in milliseconds.
2173
+ * @public
2174
+ */
2175
+ avg?: number | undefined;
2176
+ /**
2177
+ * RTT for a single leg in milliseconds.
2178
+ * @public
2179
+ */
2180
+ leg?: number | undefined;
2181
+ }
2182
+ /**
2183
+ * RTP statistics for a single call leg.
2184
+ * @public
2185
+ */
2186
+ export interface CallRtpLegStats {
2187
+ /**
2188
+ * rtpengine cluster node URL (e.g. udp:10.0.0.5:1026).
2189
+ * @public
2190
+ */
2191
+ node?: string | undefined;
2192
+ packets?: number | undefined;
2193
+ bytes?: number | undefined;
2194
+ /**
2195
+ * RTP endpoint with IP address, port, and address family.
2196
+ * @public
2197
+ */
2198
+ remote?: CallRtpEndpoint | undefined;
2199
+ /**
2200
+ * RTP endpoint with IP address, port, and address family.
2201
+ * @public
2202
+ */
2203
+ advertised?: CallRtpEndpoint | undefined;
2204
+ codec?: string | undefined;
2205
+ protocol?: string | undefined;
2206
+ /**
2207
+ * Mean Opinion Score statistics in range 1.0–5.0.
2208
+ * @public
2209
+ */
2210
+ mos?: CallRtpMosStats | undefined;
2211
+ /**
2212
+ * Jitter statistics measured in milliseconds.
2213
+ * @public
2214
+ */
2215
+ jitter?: CallRtpJitterStats | undefined;
2216
+ /**
2217
+ * Packet loss statistics. avg/min/max are percentages; cumulative is a packet count from RTCP RR.
2218
+ * @public
2219
+ */
2220
+ packetLoss?: CallRtpPacketLossStats | undefined;
2221
+ /**
2222
+ * Round-trip time statistics measured in milliseconds.
2223
+ * @public
2224
+ */
2225
+ rtt?: CallRtpRttStats | undefined;
2226
+ }
2227
+ /**
2228
+ * RTP statistics grouped by caller and callee legs.
2229
+ * @public
2230
+ */
2231
+ export interface CallRtpStatsData {
2232
+ /**
2233
+ * RTP statistics for a single call leg.
2234
+ * @public
2235
+ */
2236
+ caller?: CallRtpLegStats | undefined;
2237
+ /**
2238
+ * RTP statistics for a single call leg.
2239
+ * @public
2240
+ */
2241
+ callee?: CallRtpLegStats | undefined;
2242
+ }
2089
2243
  /**
2090
2244
  * @public
2091
2245
  */
2092
2246
  export interface CallEndConsumeEventData {
2093
2247
  mos?: CallMosData | undefined;
2248
+ /**
2249
+ * RTP statistics grouped by caller and callee legs.
2250
+ * @public
2251
+ */
2252
+ rtpStats?: CallRtpStatsData | undefined;
2094
2253
  cause?: string | undefined;
2095
2254
  causeStr?: string | undefined;
2096
2255
  who?: CallEndConsume | undefined;
@@ -2305,6 +2464,11 @@ export interface CallSplitConsumeEventData {
2305
2464
  flags?: (string)[] | undefined;
2306
2465
  sipCallId?: string | undefined;
2307
2466
  mos?: CallMosData | undefined;
2467
+ /**
2468
+ * RTP statistics grouped by caller and callee legs.
2469
+ * @public
2470
+ */
2471
+ rtpStats?: CallRtpStatsData | undefined;
2308
2472
  reason?: string | undefined;
2309
2473
  transferType?: string | undefined;
2310
2474
  mergeWith?: string | undefined;
@@ -6968,89 +7132,3 @@ export interface WebhookChatLiveInterruptedEvent {
6968
7132
  integrationId: string;
6969
7133
  data: ChatAnalyticsLiveInterruptedEvent;
6970
7134
  }
6971
- /**
6972
- * @public
6973
- */
6974
- export interface WebhookChatLiveProgressEvent {
6975
- id: string;
6976
- pbx?: string | undefined;
6977
- company?: string | undefined;
6978
- type: WebhookEventType;
6979
- time: number;
6980
- integrationId: string;
6981
- data: ChatAnalyticsLiveProgressEvent;
6982
- }
6983
- /**
6984
- * @public
6985
- */
6986
- export interface WebhookChatManagerMissedEvent {
6987
- id: string;
6988
- pbx?: string | undefined;
6989
- company?: string | undefined;
6990
- type: WebhookEventType;
6991
- time: number;
6992
- integrationId: string;
6993
- data: ChatAnalyticsManagerMissedEvent;
6994
- }
6995
- /**
6996
- * @public
6997
- */
6998
- export interface WebhookChatSummaryCompletedEventData {
6999
- chat: ChatRecord;
7000
- summary: TranscriptionSummary;
7001
- }
7002
- /**
7003
- * @public
7004
- */
7005
- export interface WebhookChatSummaryCompletedEvent {
7006
- id: string;
7007
- pbx?: string | undefined;
7008
- company?: string | undefined;
7009
- type: WebhookEventType;
7010
- time: number;
7011
- integrationId: string;
7012
- data: WebhookChatSummaryCompletedEventData;
7013
- }
7014
- /**
7015
- * @public
7016
- */
7017
- export interface WebhookConferenceAnnotationsCompletedEventData {
7018
- conference: ConferenceRecord;
7019
- annotations: (Annotation)[];
7020
- }
7021
- /**
7022
- * @public
7023
- */
7024
- export interface WebhookConferenceAnnotationsCompletedEvent {
7025
- id: string;
7026
- pbx?: string | undefined;
7027
- company?: string | undefined;
7028
- type: WebhookEventType;
7029
- time: number;
7030
- integrationId: string;
7031
- data: WebhookConferenceAnnotationsCompletedEventData;
7032
- }
7033
- /**
7034
- * @public
7035
- */
7036
- export interface WebhookConferenceCompletedEvent {
7037
- id: string;
7038
- pbx?: string | undefined;
7039
- company?: string | undefined;
7040
- type: WebhookEventType;
7041
- time: number;
7042
- integrationId: string;
7043
- data: ConferenceAnalyticsRecordEvent;
7044
- }
7045
- /**
7046
- * @public
7047
- */
7048
- export interface WebhookConferenceLiveAnnotationEvent {
7049
- id: string;
7050
- pbx?: string | undefined;
7051
- company?: string | undefined;
7052
- type: WebhookEventType;
7053
- time: number;
7054
- integrationId: string;
7055
- data: ConferenceAnalyticsLiveAnnotationEvent;
7056
- }
@@ -1,7 +1,93 @@
1
1
  import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
2
- import { CallAnalyticsAnnotationsRecordEvent, CallAnalyticsCostRecordEvent, CallAnalyticsLiveAnnotationEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallDevice, CallEventType, ChatAnalyticsAnnotationsRecordEvent, ChatAnalyticsLiveAnnotationEvent, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ConferenceAnalyticsAnnotationsRecordEvent, ConferenceAnalyticsLiveAnnotationEvent, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, ConferenceParticipant, ConferenceRecord, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ServiceAgentsStatusAnalyticsRecordEvent, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallAnalyticsRecordEvent, ServiceCallEventType, ServiceEventType, SmsStatusConsumeEventData, TranscriptionSummary, TranscriptionTextChunk, WebhookCallAnnotationsCompletedEvent, WebhookCallCompletedEvent, WebhookCallLiveAnnotationEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookChatAnnotationsCompletedEvent, WebhookChatCompletedEvent, WebhookChatLiveAnnotationEvent, WebhookChatLiveCompletedEvent, WebhookChatLiveInterruptedEvent, WebhookChatLiveProgressEvent, WebhookChatManagerMissedEvent, WebhookChatSummaryCompletedEvent, WebhookConferenceAnnotationsCompletedEvent, WebhookConferenceCompletedEvent, WebhookConferenceLiveAnnotationEvent, WebhookEventType, WebsocketAuthorizeAction, WebsocketSubscribeAction, WebsocketTopic, WebsocketUnsubscribeAction } from "./models_0";
2
+ import { Annotation, CallAnalyticsAnnotationsRecordEvent, CallAnalyticsCostRecordEvent, CallAnalyticsLiveAnnotationEvent, CallAnalyticsLiveCompleteEvent, CallAnalyticsLiveInterruptedEvent, CallAnalyticsLiveProgressEvent, CallAnalyticsLiveProgressEventFlow, CallAnalyticsLiveTranscriptionEvent, CallAnalyticsRecordEvent, CallAnalyticsTranscriptionRecordEvent, CallDevice, CallEventType, ChatAnalyticsAnnotationsRecordEvent, ChatAnalyticsLiveAnnotationEvent, ChatAnalyticsLiveCompleteEvent, ChatAnalyticsLiveInterruptedEvent, ChatAnalyticsLiveProgressEvent, ChatAnalyticsLiveTranscriptionEvent, ChatAnalyticsManagerMissedEvent, ChatAnalyticsRecordEvent, ChatAnalyticsTranscriptionRecordEvent, ChatEventType, ChatRecord, ConferenceAnalyticsAnnotationsRecordEvent, ConferenceAnalyticsLiveAnnotationEvent, ConferenceAnalyticsLiveCompleteEvent, ConferenceAnalyticsLiveInterruptedEvent, ConferenceAnalyticsLiveJoinEvent, ConferenceAnalyticsLiveLeaveEvent, ConferenceAnalyticsLiveProgressEvent, ConferenceAnalyticsLiveTranscriptionEvent, ConferenceAnalyticsRecordEvent, ConferenceAnalyticsTranscriptionRecordEvent, ConferenceEventType, ConferenceParticipant, ConferenceRecord, PresenceAnalyticsConferenceEvent, PresenceAnalyticsStatusEvent, PresenceAnalyticsTelephonyEvent, PresenceEventType, ServiceAgentsStatusAnalyticsRecordEvent, ServiceAnalyticsLiveCompleteEvent, ServiceAnalyticsLiveProgressEvent, ServiceCallAnalyticsLiveCompleteEvent, ServiceCallAnalyticsLiveProgressEvent, ServiceCallAnalyticsRecordEvent, ServiceCallEventType, ServiceEventType, SmsStatusConsumeEventData, TranscriptionSummary, TranscriptionTextChunk, WebhookCallAnnotationsCompletedEvent, WebhookCallCompletedEvent, WebhookCallLiveAnnotationEvent, WebhookCallLiveCompletedEvent, WebhookCallLiveInterruptedEvent, WebhookCallLiveProgressEvent, WebhookCallLiveRecordPauseEvent, WebhookCallLiveRecordStartEvent, WebhookCallLiveRecordStopEvent, WebhookCallLiveRecordUnpauseEvent, WebhookCallLiveTranscriptionEvent, WebhookCallSummaryCompletedEvent, WebhookCallTranscriptionCompletedEvent, WebhookCallTranscriptionTextCompletedEvent, WebhookChatAnnotationsCompletedEvent, WebhookChatCompletedEvent, WebhookChatLiveAnnotationEvent, WebhookChatLiveCompletedEvent, WebhookChatLiveInterruptedEvent, WebhookEventType, WebsocketAuthorizeAction, WebsocketSubscribeAction, WebsocketTopic, WebsocketUnsubscribeAction } from "./models_0";
3
3
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
4
4
  import { DocumentType as __DocumentType } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface WebhookChatLiveProgressEvent {
9
+ id: string;
10
+ pbx?: string | undefined;
11
+ company?: string | undefined;
12
+ type: WebhookEventType;
13
+ time: number;
14
+ integrationId: string;
15
+ data: ChatAnalyticsLiveProgressEvent;
16
+ }
17
+ /**
18
+ * @public
19
+ */
20
+ export interface WebhookChatManagerMissedEvent {
21
+ id: string;
22
+ pbx?: string | undefined;
23
+ company?: string | undefined;
24
+ type: WebhookEventType;
25
+ time: number;
26
+ integrationId: string;
27
+ data: ChatAnalyticsManagerMissedEvent;
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface WebhookChatSummaryCompletedEventData {
33
+ chat: ChatRecord;
34
+ summary: TranscriptionSummary;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface WebhookChatSummaryCompletedEvent {
40
+ id: string;
41
+ pbx?: string | undefined;
42
+ company?: string | undefined;
43
+ type: WebhookEventType;
44
+ time: number;
45
+ integrationId: string;
46
+ data: WebhookChatSummaryCompletedEventData;
47
+ }
48
+ /**
49
+ * @public
50
+ */
51
+ export interface WebhookConferenceAnnotationsCompletedEventData {
52
+ conference: ConferenceRecord;
53
+ annotations: (Annotation)[];
54
+ }
55
+ /**
56
+ * @public
57
+ */
58
+ export interface WebhookConferenceAnnotationsCompletedEvent {
59
+ id: string;
60
+ pbx?: string | undefined;
61
+ company?: string | undefined;
62
+ type: WebhookEventType;
63
+ time: number;
64
+ integrationId: string;
65
+ data: WebhookConferenceAnnotationsCompletedEventData;
66
+ }
67
+ /**
68
+ * @public
69
+ */
70
+ export interface WebhookConferenceCompletedEvent {
71
+ id: string;
72
+ pbx?: string | undefined;
73
+ company?: string | undefined;
74
+ type: WebhookEventType;
75
+ time: number;
76
+ integrationId: string;
77
+ data: ConferenceAnalyticsRecordEvent;
78
+ }
79
+ /**
80
+ * @public
81
+ */
82
+ export interface WebhookConferenceLiveAnnotationEvent {
83
+ id: string;
84
+ pbx?: string | undefined;
85
+ company?: string | undefined;
86
+ type: WebhookEventType;
87
+ time: number;
88
+ integrationId: string;
89
+ data: ConferenceAnalyticsLiveAnnotationEvent;
90
+ }
5
91
  /**
6
92
  * @public
7
93
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-stream-client",
3
3
  "description": "@wildix/wda-stream-client client",
4
- "version": "1.1.66",
4
+ "version": "1.1.67",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",