@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.
@@ -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;
@@ -6704,6 +6868,8 @@ export declare const WebhookEventType: {
6704
6868
  readonly PRESENCE_CONFERENCE: "presence:conference";
6705
6869
  readonly PRESENCE_TELEPHONY: "presence:telephony";
6706
6870
  readonly PRESENCE_USER: "presence:user";
6871
+ readonly SERVICE_CALL_LIVE_COMPLETED: "service:call:live:completed";
6872
+ readonly SERVICE_CALL_LIVE_PROGRESS: "service:call:live:progress";
6707
6873
  readonly SMS_STATUS: "sms:status";
6708
6874
  };
6709
6875
  /**
@@ -6966,89 +7132,3 @@ export interface WebhookChatLiveInterruptedEvent {
6966
7132
  integrationId: string;
6967
7133
  data: ChatAnalyticsLiveInterruptedEvent;
6968
7134
  }
6969
- /**
6970
- * @public
6971
- */
6972
- export interface WebhookChatLiveProgressEvent {
6973
- id: string;
6974
- pbx?: string | undefined;
6975
- company?: string | undefined;
6976
- type: WebhookEventType;
6977
- time: number;
6978
- integrationId: string;
6979
- data: ChatAnalyticsLiveProgressEvent;
6980
- }
6981
- /**
6982
- * @public
6983
- */
6984
- export interface WebhookChatManagerMissedEvent {
6985
- id: string;
6986
- pbx?: string | undefined;
6987
- company?: string | undefined;
6988
- type: WebhookEventType;
6989
- time: number;
6990
- integrationId: string;
6991
- data: ChatAnalyticsManagerMissedEvent;
6992
- }
6993
- /**
6994
- * @public
6995
- */
6996
- export interface WebhookChatSummaryCompletedEventData {
6997
- chat: ChatRecord;
6998
- summary: TranscriptionSummary;
6999
- }
7000
- /**
7001
- * @public
7002
- */
7003
- export interface WebhookChatSummaryCompletedEvent {
7004
- id: string;
7005
- pbx?: string | undefined;
7006
- company?: string | undefined;
7007
- type: WebhookEventType;
7008
- time: number;
7009
- integrationId: string;
7010
- data: WebhookChatSummaryCompletedEventData;
7011
- }
7012
- /**
7013
- * @public
7014
- */
7015
- export interface WebhookConferenceAnnotationsCompletedEventData {
7016
- conference: ConferenceRecord;
7017
- annotations: (Annotation)[];
7018
- }
7019
- /**
7020
- * @public
7021
- */
7022
- export interface WebhookConferenceAnnotationsCompletedEvent {
7023
- id: string;
7024
- pbx?: string | undefined;
7025
- company?: string | undefined;
7026
- type: WebhookEventType;
7027
- time: number;
7028
- integrationId: string;
7029
- data: WebhookConferenceAnnotationsCompletedEventData;
7030
- }
7031
- /**
7032
- * @public
7033
- */
7034
- export interface WebhookConferenceCompletedEvent {
7035
- id: string;
7036
- pbx?: string | undefined;
7037
- company?: string | undefined;
7038
- type: WebhookEventType;
7039
- time: number;
7040
- integrationId: string;
7041
- data: ConferenceAnalyticsRecordEvent;
7042
- }
7043
- /**
7044
- * @public
7045
- */
7046
- export interface WebhookConferenceLiveAnnotationEvent {
7047
- id: string;
7048
- pbx?: string | undefined;
7049
- company?: string | undefined;
7050
- type: WebhookEventType;
7051
- time: number;
7052
- integrationId: string;
7053
- data: ConferenceAnalyticsLiveAnnotationEvent;
7054
- }
@@ -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
  */
@@ -278,6 +364,38 @@ export interface WebhookPresenceUserEvent {
278
364
  integrationId: string;
279
365
  data: WebhookPresenceUserEventData;
280
366
  }
367
+ /**
368
+ * @public
369
+ */
370
+ export interface WebhookServiceCallLiveCompletedEvent {
371
+ id: string;
372
+ pbx?: string | undefined;
373
+ company?: string | undefined;
374
+ type: WebhookEventType;
375
+ time: number;
376
+ integrationId: string;
377
+ /**
378
+ * Base service call structure.
379
+ * @public
380
+ */
381
+ data: ServiceCallAnalyticsLiveCompleteEvent;
382
+ }
383
+ /**
384
+ * @public
385
+ */
386
+ export interface WebhookServiceCallLiveProgressEvent {
387
+ id: string;
388
+ pbx?: string | undefined;
389
+ company?: string | undefined;
390
+ type: WebhookEventType;
391
+ time: number;
392
+ integrationId: string;
393
+ /**
394
+ * Base service call structure.
395
+ * @public
396
+ */
397
+ data: ServiceCallAnalyticsLiveProgressEvent;
398
+ }
281
399
  /**
282
400
  * @public
283
401
  */
@@ -491,6 +609,8 @@ export interface DescribeEventOutput {
491
609
  WebhookConferenceTranscriptionTextCompletedEvent?: WebhookConferenceTranscriptionTextCompletedEvent | undefined;
492
610
  WebhookConferenceAnnotationsCompletedEvent?: WebhookConferenceAnnotationsCompletedEvent | undefined;
493
611
  WebhookConferenceSummaryCompletedEvent?: WebhookConferenceSummaryCompletedEvent | undefined;
612
+ WebhookServiceCallLiveProgressEvent?: WebhookServiceCallLiveProgressEvent | undefined;
613
+ WebhookServiceCallLiveCompletedEvent?: WebhookServiceCallLiveCompletedEvent | undefined;
494
614
  WebhookChatLiveProgressEvent?: WebhookChatLiveProgressEvent | undefined;
495
615
  WebhookChatLiveCompletedEvent?: WebhookChatLiveCompletedEvent | undefined;
496
616
  WebhookChatLiveInterruptedEvent?: WebhookChatLiveInterruptedEvent | undefined;
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.65",
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",