@wildix/wda-stream-client 1.0.42 → 1.0.44

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
- exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = 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.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
- exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = void 0;
3
+ exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = 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.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
+ exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  constructor(opts) {
@@ -64,6 +64,27 @@ exports.WhatsAppStatus = {
64
64
  READ: "READ",
65
65
  SENT: "SENT",
66
66
  };
67
+ exports.CallRecordOwner = {
68
+ CALLEE: "CALLEE",
69
+ CALLER: "CALLER",
70
+ SYSTEM: "SYSTEM",
71
+ };
72
+ exports.CallRecordPauseReason = {
73
+ HOLD: "hold",
74
+ PAUSE: "pause",
75
+ };
76
+ var CallFlowAttachment;
77
+ (function (CallFlowAttachment) {
78
+ CallFlowAttachment.visit = (value, visitor) => {
79
+ if (value.recording !== undefined)
80
+ return visitor.recording(value.recording);
81
+ if (value.fax !== undefined)
82
+ return visitor.fax(value.fax);
83
+ if (value.voicemail !== undefined)
84
+ return visitor.voicemail(value.voicemail);
85
+ return visitor._(value.$unknown[0], value.$unknown[1]);
86
+ };
87
+ })(CallFlowAttachment = exports.CallFlowAttachment || (exports.CallFlowAttachment = {}));
67
88
  exports.CallFlowAttachmentType = {
68
89
  FAX: "FAX",
69
90
  VOICEMAIL: "VOICEMAIL",
@@ -90,15 +111,6 @@ exports.CallDevice = {
90
111
  exports.License = {
91
112
  XBEES: "x-bees",
92
113
  };
93
- exports.CallRecordOwner = {
94
- CALLEE: "CALLEE",
95
- CALLER: "CALLER",
96
- SYSTEM: "SYSTEM",
97
- };
98
- exports.CallRecordPauseReason = {
99
- HOLD: "hold",
100
- PAUSE: "pause",
101
- };
102
114
  exports.CallFlowTranscriptionStatus = {
103
115
  AVAILABLE: "AVAILABLE",
104
116
  UNAVAILABLE: "UNAVAILABLE",
@@ -57,6 +57,27 @@ export const WhatsAppStatus = {
57
57
  READ: "READ",
58
58
  SENT: "SENT",
59
59
  };
60
+ export const CallRecordOwner = {
61
+ CALLEE: "CALLEE",
62
+ CALLER: "CALLER",
63
+ SYSTEM: "SYSTEM",
64
+ };
65
+ export const CallRecordPauseReason = {
66
+ HOLD: "hold",
67
+ PAUSE: "pause",
68
+ };
69
+ export var CallFlowAttachment;
70
+ (function (CallFlowAttachment) {
71
+ CallFlowAttachment.visit = (value, visitor) => {
72
+ if (value.recording !== undefined)
73
+ return visitor.recording(value.recording);
74
+ if (value.fax !== undefined)
75
+ return visitor.fax(value.fax);
76
+ if (value.voicemail !== undefined)
77
+ return visitor.voicemail(value.voicemail);
78
+ return visitor._(value.$unknown[0], value.$unknown[1]);
79
+ };
80
+ })(CallFlowAttachment || (CallFlowAttachment = {}));
60
81
  export const CallFlowAttachmentType = {
61
82
  FAX: "FAX",
62
83
  VOICEMAIL: "VOICEMAIL",
@@ -83,15 +104,6 @@ export const CallDevice = {
83
104
  export const License = {
84
105
  XBEES: "x-bees",
85
106
  };
86
- export const CallRecordOwner = {
87
- CALLEE: "CALLEE",
88
- CALLER: "CALLER",
89
- SYSTEM: "SYSTEM",
90
- };
91
- export const CallRecordPauseReason = {
92
- HOLD: "hold",
93
- PAUSE: "pause",
94
- };
95
107
  export const CallFlowTranscriptionStatus = {
96
108
  AVAILABLE: "AVAILABLE",
97
109
  UNAVAILABLE: "UNAVAILABLE",
@@ -191,7 +191,7 @@ declare const DescribeEventCommand_base: {
191
191
  * // "STRING_VALUE",
192
192
  * // ],
193
193
  * // recordingsData: [ // CallFlowRecordingsData
194
- * // { // RecordingsData
194
+ * // { // CallFlowRecording
195
195
  * // fileName: "STRING_VALUE", // required
196
196
  * // start: Number("long"), // required
197
197
  * // end: Number("long"), // required
@@ -230,6 +230,46 @@ declare const DescribeEventCommand_base: {
230
230
  * // groupName: "STRING_VALUE",
231
231
  * // },
232
232
  * // ],
233
+ * // attachments: [ // CallFlowAttachments
234
+ * // { // CallFlowAttachment Union: only one key present
235
+ * // recording: {
236
+ * // fileName: "STRING_VALUE", // required
237
+ * // start: Number("long"), // required
238
+ * // end: Number("long"), // required
239
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
240
+ * // url: "STRING_VALUE", // required
241
+ * // pauses: [ // required
242
+ * // {
243
+ * // start: Number("long"),
244
+ * // end: Number("long"),
245
+ * // reason: "pause" || "hold",
246
+ * // },
247
+ * // ],
248
+ * // },
249
+ * // fax: { // CallFlowFax
250
+ * // url: "STRING_VALUE", // required
251
+ * // status: "STRING_VALUE", // required
252
+ * // destinations: [
253
+ * // {
254
+ * // phone: "STRING_VALUE",
255
+ * // name: "STRING_VALUE",
256
+ * // email: "STRING_VALUE",
257
+ * // userId: "STRING_VALUE",
258
+ * // userExtension: "STRING_VALUE",
259
+ * // userDepartment: "STRING_VALUE",
260
+ * // groupId: "STRING_VALUE",
261
+ * // groupName: "STRING_VALUE",
262
+ * // },
263
+ * // ],
264
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
265
+ * // errorMsg: "STRING_VALUE",
266
+ * // },
267
+ * // voicemail: { // CallFlowVoicemail
268
+ * // url: "STRING_VALUE", // required
269
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
270
+ * // },
271
+ * // },
272
+ * // ],
233
273
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
234
274
  * // statusChangeDate: "STRING_VALUE", // required
235
275
  * // },
@@ -408,6 +448,46 @@ declare const DescribeEventCommand_base: {
408
448
  * // groupName: "STRING_VALUE",
409
449
  * // },
410
450
  * // ],
451
+ * // attachments: [
452
+ * // {// Union: only one key present
453
+ * // recording: {
454
+ * // fileName: "STRING_VALUE", // required
455
+ * // start: Number("long"), // required
456
+ * // end: Number("long"), // required
457
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
458
+ * // url: "STRING_VALUE", // required
459
+ * // pauses: [ // required
460
+ * // {
461
+ * // start: Number("long"),
462
+ * // end: Number("long"),
463
+ * // reason: "pause" || "hold",
464
+ * // },
465
+ * // ],
466
+ * // },
467
+ * // fax: {
468
+ * // url: "STRING_VALUE", // required
469
+ * // status: "STRING_VALUE", // required
470
+ * // destinations: [
471
+ * // {
472
+ * // phone: "STRING_VALUE",
473
+ * // name: "STRING_VALUE",
474
+ * // email: "STRING_VALUE",
475
+ * // userId: "STRING_VALUE",
476
+ * // userExtension: "STRING_VALUE",
477
+ * // userDepartment: "STRING_VALUE",
478
+ * // groupId: "STRING_VALUE",
479
+ * // groupName: "STRING_VALUE",
480
+ * // },
481
+ * // ],
482
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
483
+ * // errorMsg: "STRING_VALUE",
484
+ * // },
485
+ * // voicemail: {
486
+ * // url: "STRING_VALUE", // required
487
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
488
+ * // },
489
+ * // },
490
+ * // ],
411
491
  * // },
412
492
  * // ],
413
493
  * // endCause: "STRING_VALUE",
@@ -1075,16 +1155,21 @@ declare const DescribeEventCommand_base: {
1075
1155
  * // transcriptionLanguage: "STRING_VALUE",
1076
1156
  * // attachment: "STRING_VALUE",
1077
1157
  * // attachmentType: "VOICEMAIL" || "FAX",
1078
- * // attachmentDestinations: [
1079
- * // {
1080
- * // phone: "STRING_VALUE",
1081
- * // name: "STRING_VALUE",
1082
- * // email: "STRING_VALUE",
1083
- * // userId: "STRING_VALUE",
1084
- * // userExtension: "STRING_VALUE",
1085
- * // userDepartment: "STRING_VALUE",
1086
- * // groupId: "STRING_VALUE",
1087
- * // groupName: "STRING_VALUE",
1158
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1159
+ * // attachments: [
1160
+ * // {// Union: only one key present
1161
+ * // recording: "<CallFlowRecording>",
1162
+ * // fax: {
1163
+ * // url: "STRING_VALUE", // required
1164
+ * // status: "STRING_VALUE", // required
1165
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1166
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1167
+ * // errorMsg: "STRING_VALUE",
1168
+ * // },
1169
+ * // voicemail: {
1170
+ * // url: "STRING_VALUE", // required
1171
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1172
+ * // },
1088
1173
  * // },
1089
1174
  * // ],
1090
1175
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -1195,20 +1280,7 @@ declare const DescribeEventCommand_base: {
1195
1280
  * // "STRING_VALUE",
1196
1281
  * // ],
1197
1282
  * // recordingsData: [
1198
- * // {
1199
- * // fileName: "STRING_VALUE", // required
1200
- * // start: Number("long"), // required
1201
- * // end: Number("long"), // required
1202
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
1203
- * // url: "STRING_VALUE", // required
1204
- * // pauses: [ // required
1205
- * // {
1206
- * // start: Number("long"),
1207
- * // end: Number("long"),
1208
- * // reason: "pause" || "hold",
1209
- * // },
1210
- * // ],
1211
- * // },
1283
+ * // "<CallFlowRecording>",
1212
1284
  * // ],
1213
1285
  * // mergeWith: "STRING_VALUE",
1214
1286
  * // splitReason: "STRING_VALUE",
@@ -1222,16 +1294,21 @@ declare const DescribeEventCommand_base: {
1222
1294
  * // transcriptionLanguage: "STRING_VALUE",
1223
1295
  * // attachment: "STRING_VALUE",
1224
1296
  * // attachmentType: "VOICEMAIL" || "FAX",
1225
- * // attachmentDestinations: [
1226
- * // {
1227
- * // phone: "STRING_VALUE",
1228
- * // name: "STRING_VALUE",
1229
- * // email: "STRING_VALUE",
1230
- * // userId: "STRING_VALUE",
1231
- * // userExtension: "STRING_VALUE",
1232
- * // userDepartment: "STRING_VALUE",
1233
- * // groupId: "STRING_VALUE",
1234
- * // groupName: "STRING_VALUE",
1297
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1298
+ * // attachments: [
1299
+ * // {// Union: only one key present
1300
+ * // recording: "<CallFlowRecording>",
1301
+ * // fax: {
1302
+ * // url: "STRING_VALUE", // required
1303
+ * // status: "STRING_VALUE", // required
1304
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1305
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1306
+ * // errorMsg: "STRING_VALUE",
1307
+ * // },
1308
+ * // voicemail: {
1309
+ * // url: "STRING_VALUE", // required
1310
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1311
+ * // },
1235
1312
  * // },
1236
1313
  * // ],
1237
1314
  * // },
@@ -1289,20 +1366,7 @@ declare const DescribeEventCommand_base: {
1289
1366
  * // "STRING_VALUE",
1290
1367
  * // ],
1291
1368
  * // recordingsData: [
1292
- * // {
1293
- * // fileName: "STRING_VALUE", // required
1294
- * // start: Number("long"), // required
1295
- * // end: Number("long"), // required
1296
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
1297
- * // url: "STRING_VALUE", // required
1298
- * // pauses: [ // required
1299
- * // {
1300
- * // start: Number("long"),
1301
- * // end: Number("long"),
1302
- * // reason: "pause" || "hold",
1303
- * // },
1304
- * // ],
1305
- * // },
1369
+ * // "<CallFlowRecording>",
1306
1370
  * // ],
1307
1371
  * // mergeWith: "STRING_VALUE",
1308
1372
  * // splitReason: "STRING_VALUE",
@@ -1316,16 +1380,21 @@ declare const DescribeEventCommand_base: {
1316
1380
  * // transcriptionLanguage: "STRING_VALUE",
1317
1381
  * // attachment: "STRING_VALUE",
1318
1382
  * // attachmentType: "VOICEMAIL" || "FAX",
1319
- * // attachmentDestinations: [
1320
- * // {
1321
- * // phone: "STRING_VALUE",
1322
- * // name: "STRING_VALUE",
1323
- * // email: "STRING_VALUE",
1324
- * // userId: "STRING_VALUE",
1325
- * // userExtension: "STRING_VALUE",
1326
- * // userDepartment: "STRING_VALUE",
1327
- * // groupId: "STRING_VALUE",
1328
- * // groupName: "STRING_VALUE",
1383
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1384
+ * // attachments: [
1385
+ * // {// Union: only one key present
1386
+ * // recording: "<CallFlowRecording>",
1387
+ * // fax: {
1388
+ * // url: "STRING_VALUE", // required
1389
+ * // status: "STRING_VALUE", // required
1390
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1391
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1392
+ * // errorMsg: "STRING_VALUE",
1393
+ * // },
1394
+ * // voicemail: {
1395
+ * // url: "STRING_VALUE", // required
1396
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
1397
+ * // },
1329
1398
  * // },
1330
1399
  * // ],
1331
1400
  * // id: "STRING_VALUE", // required
@@ -1394,6 +1463,7 @@ declare const DescribeEventCommand_base: {
1394
1463
  * // attachment: "STRING_VALUE",
1395
1464
  * // attachmentType: "VOICEMAIL" || "FAX",
1396
1465
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1466
+ * // attachments: "<CallFlowAttachments>",
1397
1467
  * // id: "STRING_VALUE", // required
1398
1468
  * // pbx: "STRING_VALUE", // required
1399
1469
  * // time: Number("long"), // required
@@ -1452,6 +1522,7 @@ declare const DescribeEventCommand_base: {
1452
1522
  * // attachment: "STRING_VALUE",
1453
1523
  * // attachmentType: "VOICEMAIL" || "FAX",
1454
1524
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1525
+ * // attachments: "<CallFlowAttachments>",
1455
1526
  * // id: "STRING_VALUE", // required
1456
1527
  * // pbx: "STRING_VALUE", // required
1457
1528
  * // time: Number("long"), // required
@@ -119,7 +119,7 @@ declare const GetConversationsCommand_base: {
119
119
  * // "STRING_VALUE",
120
120
  * // ],
121
121
  * // recordingsData: [ // CallFlowRecordingsData
122
- * // { // RecordingsData
122
+ * // { // CallFlowRecording
123
123
  * // fileName: "STRING_VALUE", // required
124
124
  * // start: Number("long"), // required
125
125
  * // end: Number("long"), // required
@@ -158,6 +158,46 @@ declare const GetConversationsCommand_base: {
158
158
  * // groupName: "STRING_VALUE",
159
159
  * // },
160
160
  * // ],
161
+ * // attachments: [ // CallFlowAttachments
162
+ * // { // CallFlowAttachment Union: only one key present
163
+ * // recording: {
164
+ * // fileName: "STRING_VALUE", // required
165
+ * // start: Number("long"), // required
166
+ * // end: Number("long"), // required
167
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
168
+ * // url: "STRING_VALUE", // required
169
+ * // pauses: [ // required
170
+ * // {
171
+ * // start: Number("long"),
172
+ * // end: Number("long"),
173
+ * // reason: "pause" || "hold",
174
+ * // },
175
+ * // ],
176
+ * // },
177
+ * // fax: { // CallFlowFax
178
+ * // url: "STRING_VALUE", // required
179
+ * // status: "STRING_VALUE", // required
180
+ * // destinations: [
181
+ * // {
182
+ * // phone: "STRING_VALUE",
183
+ * // name: "STRING_VALUE",
184
+ * // email: "STRING_VALUE",
185
+ * // userId: "STRING_VALUE",
186
+ * // userExtension: "STRING_VALUE",
187
+ * // userDepartment: "STRING_VALUE",
188
+ * // groupId: "STRING_VALUE",
189
+ * // groupName: "STRING_VALUE",
190
+ * // },
191
+ * // ],
192
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
193
+ * // errorMsg: "STRING_VALUE",
194
+ * // },
195
+ * // voicemail: { // CallFlowVoicemail
196
+ * // url: "STRING_VALUE", // required
197
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM",
198
+ * // },
199
+ * // },
200
+ * // ],
161
201
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
162
202
  * // statusChangeDate: "STRING_VALUE", // required
163
203
  * // },
@@ -127,6 +127,110 @@ export interface CallFlowAttachmentDestination {
127
127
  groupId?: string;
128
128
  groupName?: string;
129
129
  }
130
+ /**
131
+ * @public
132
+ * @enum
133
+ */
134
+ export declare const CallRecordOwner: {
135
+ readonly CALLEE: "CALLEE";
136
+ readonly CALLER: "CALLER";
137
+ readonly SYSTEM: "SYSTEM";
138
+ };
139
+ /**
140
+ * @public
141
+ */
142
+ export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
143
+ /**
144
+ * @public
145
+ */
146
+ export interface CallFlowFax {
147
+ url: string;
148
+ status: string;
149
+ destinations?: (CallFlowAttachmentDestination)[];
150
+ owner?: CallRecordOwner;
151
+ errorMsg?: string;
152
+ }
153
+ /**
154
+ * @public
155
+ * @enum
156
+ */
157
+ export declare const CallRecordPauseReason: {
158
+ readonly HOLD: "hold";
159
+ readonly PAUSE: "pause";
160
+ };
161
+ /**
162
+ * @public
163
+ */
164
+ export type CallRecordPauseReason = typeof CallRecordPauseReason[keyof typeof CallRecordPauseReason];
165
+ /**
166
+ * @public
167
+ */
168
+ export interface CallRecordPause {
169
+ start?: number;
170
+ end?: number;
171
+ reason?: CallRecordPauseReason;
172
+ }
173
+ /**
174
+ * @public
175
+ */
176
+ export interface CallFlowRecording {
177
+ fileName: string;
178
+ start: number;
179
+ end: number;
180
+ owner: CallRecordOwner;
181
+ url: string;
182
+ pauses: (CallRecordPause)[];
183
+ }
184
+ /**
185
+ * @public
186
+ */
187
+ export interface CallFlowVoicemail {
188
+ url: string;
189
+ owner?: CallRecordOwner;
190
+ }
191
+ /**
192
+ * @public
193
+ */
194
+ export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
195
+ /**
196
+ * @public
197
+ */
198
+ export declare namespace CallFlowAttachment {
199
+ interface RecordingMember {
200
+ recording: CallFlowRecording;
201
+ fax?: never;
202
+ voicemail?: never;
203
+ $unknown?: never;
204
+ }
205
+ interface FaxMember {
206
+ recording?: never;
207
+ fax: CallFlowFax;
208
+ voicemail?: never;
209
+ $unknown?: never;
210
+ }
211
+ interface VoicemailMember {
212
+ recording?: never;
213
+ fax?: never;
214
+ voicemail: CallFlowVoicemail;
215
+ $unknown?: never;
216
+ }
217
+ /**
218
+ * @public
219
+ */
220
+ interface $UnknownMember {
221
+ recording?: never;
222
+ fax?: never;
223
+ voicemail?: never;
224
+ $unknown: [string, any];
225
+ }
226
+ interface Visitor<T> {
227
+ recording: (value: CallFlowRecording) => T;
228
+ fax: (value: CallFlowFax) => T;
229
+ voicemail: (value: CallFlowVoicemail) => T;
230
+ _: (name: string, value: any) => T;
231
+ }
232
+ const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
233
+ }
130
234
  /**
131
235
  * @public
132
236
  * @enum
@@ -212,50 +316,6 @@ export declare const License: {
212
316
  * @public
213
317
  */
214
318
  export type License = typeof License[keyof typeof License];
215
- /**
216
- * @public
217
- * @enum
218
- */
219
- export declare const CallRecordOwner: {
220
- readonly CALLEE: "CALLEE";
221
- readonly CALLER: "CALLER";
222
- readonly SYSTEM: "SYSTEM";
223
- };
224
- /**
225
- * @public
226
- */
227
- export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
228
- /**
229
- * @public
230
- * @enum
231
- */
232
- export declare const CallRecordPauseReason: {
233
- readonly HOLD: "hold";
234
- readonly PAUSE: "pause";
235
- };
236
- /**
237
- * @public
238
- */
239
- export type CallRecordPauseReason = typeof CallRecordPauseReason[keyof typeof CallRecordPauseReason];
240
- /**
241
- * @public
242
- */
243
- export interface CallRecordPause {
244
- start?: number;
245
- end?: number;
246
- reason?: CallRecordPauseReason;
247
- }
248
- /**
249
- * @public
250
- */
251
- export interface RecordingsData {
252
- fileName: string;
253
- start: number;
254
- end: number;
255
- owner: CallRecordOwner;
256
- url: string;
257
- pauses: (CallRecordPause)[];
258
- }
259
319
  /**
260
320
  * @public
261
321
  * @enum
@@ -289,11 +349,35 @@ export interface CallRecord {
289
349
  flowIndex: number;
290
350
  startTime: number;
291
351
  endTime: number;
352
+ /**
353
+ * Duration when the called party's phone rang (Ring Time in UI)
354
+ * @public
355
+ */
292
356
  connectTime?: number;
357
+ /**
358
+ * Duration of conversation from the moment the call is answered until it ends, excluding hold time
359
+ * @public
360
+ */
293
361
  talkTime?: number;
362
+ /**
363
+ * Duration spent on IVR, dialplan applications, playback, etc. before the call is answered
364
+ * @public
365
+ */
294
366
  waitTime?: number;
367
+ /**
368
+ * Duration of call waiting in queue
369
+ * @public
370
+ */
295
371
  queueTime?: number;
372
+ /**
373
+ * Duration the call was on hold after being answered
374
+ * @public
375
+ */
296
376
  holdTime?: number;
377
+ /**
378
+ * Total duration = connectTime + waitTime + queueTime + talkTime + holdTime
379
+ * @public
380
+ */
297
381
  duration: number;
298
382
  caller?: CallParticipant;
299
383
  callee?: CallParticipant;
@@ -311,7 +395,7 @@ export interface CallRecord {
311
395
  calleeMos?: string;
312
396
  xhoppersConfId?: string;
313
397
  recordings?: (string)[];
314
- recordingsData?: (RecordingsData)[];
398
+ recordingsData?: (CallFlowRecording)[];
315
399
  mergeWith?: string;
316
400
  splitReason?: string;
317
401
  splitTransferType?: string;
@@ -325,6 +409,7 @@ export interface CallRecord {
325
409
  attachment?: string;
326
410
  attachmentType?: CallFlowAttachmentType;
327
411
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
412
+ attachments?: (CallFlowAttachment)[];
328
413
  id: string;
329
414
  pbx: string;
330
415
  time: number;
@@ -757,11 +842,35 @@ export interface CallAnalyticsLiveProgressEventFlow {
757
842
  flowIndex: number;
758
843
  startTime: number;
759
844
  endTime: number;
845
+ /**
846
+ * Duration when the called party's phone rang (Ring Time in UI)
847
+ * @public
848
+ */
760
849
  connectTime?: number;
850
+ /**
851
+ * Duration of conversation from the moment the call is answered until it ends, excluding hold time
852
+ * @public
853
+ */
761
854
  talkTime?: number;
855
+ /**
856
+ * Duration spent on IVR, dialplan applications, playback, etc. before the call is answered
857
+ * @public
858
+ */
762
859
  waitTime?: number;
860
+ /**
861
+ * Duration of call waiting in queue
862
+ * @public
863
+ */
763
864
  queueTime?: number;
865
+ /**
866
+ * Duration the call was on hold after being answered
867
+ * @public
868
+ */
764
869
  holdTime?: number;
870
+ /**
871
+ * Total duration = connectTime + waitTime + queueTime + talkTime + holdTime
872
+ * @public
873
+ */
765
874
  duration: number;
766
875
  caller?: CallParticipant;
767
876
  callee?: CallParticipant;
@@ -779,7 +888,7 @@ export interface CallAnalyticsLiveProgressEventFlow {
779
888
  calleeMos?: string;
780
889
  xhoppersConfId?: string;
781
890
  recordings?: (string)[];
782
- recordingsData?: (RecordingsData)[];
891
+ recordingsData?: (CallFlowRecording)[];
783
892
  mergeWith?: string;
784
893
  splitReason?: string;
785
894
  splitTransferType?: string;
@@ -793,6 +902,7 @@ export interface CallAnalyticsLiveProgressEventFlow {
793
902
  attachment?: string;
794
903
  attachmentType?: CallFlowAttachmentType;
795
904
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
905
+ attachments?: (CallFlowAttachment)[];
796
906
  status: CallFlowStatus;
797
907
  /**
798
908
  * Time of the last status change in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.
@@ -853,11 +963,35 @@ export interface CallAnalyticsRecordEventFlow {
853
963
  flowIndex: number;
854
964
  startTime: number;
855
965
  endTime: number;
966
+ /**
967
+ * Duration when the called party's phone rang (Ring Time in UI)
968
+ * @public
969
+ */
856
970
  connectTime?: number;
971
+ /**
972
+ * Duration of conversation from the moment the call is answered until it ends, excluding hold time
973
+ * @public
974
+ */
857
975
  talkTime?: number;
976
+ /**
977
+ * Duration spent on IVR, dialplan applications, playback, etc. before the call is answered
978
+ * @public
979
+ */
858
980
  waitTime?: number;
981
+ /**
982
+ * Duration of call waiting in queue
983
+ * @public
984
+ */
859
985
  queueTime?: number;
986
+ /**
987
+ * Duration the call was on hold after being answered
988
+ * @public
989
+ */
860
990
  holdTime?: number;
991
+ /**
992
+ * Total duration = connectTime + waitTime + queueTime + talkTime + holdTime
993
+ * @public
994
+ */
861
995
  duration: number;
862
996
  caller?: CallParticipant;
863
997
  callee?: CallParticipant;
@@ -875,7 +1009,7 @@ export interface CallAnalyticsRecordEventFlow {
875
1009
  calleeMos?: string;
876
1010
  xhoppersConfId?: string;
877
1011
  recordings?: (string)[];
878
- recordingsData?: (RecordingsData)[];
1012
+ recordingsData?: (CallFlowRecording)[];
879
1013
  mergeWith?: string;
880
1014
  splitReason?: string;
881
1015
  splitTransferType?: string;
@@ -889,6 +1023,7 @@ export interface CallAnalyticsRecordEventFlow {
889
1023
  attachment?: string;
890
1024
  attachmentType?: CallFlowAttachmentType;
891
1025
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
1026
+ attachments?: (CallFlowAttachment)[];
892
1027
  }
893
1028
  /**
894
1029
  * @public
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.0.42",
4
+ "version": "1.0.44",
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",