@wildix/wda-stream-client 1.0.43 → 1.0.45

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",
@@ -259,7 +259,7 @@ declare const ConsumeEventCommand_base: {
259
259
  * data: { // CallRecordStartConsumeEventData
260
260
  * fileName: "STRING_VALUE", // required
261
261
  * start: Number("long"), // required
262
- * owner: "CALLEE" || "CALLER" || "SYSTEM", // required
262
+ * owner: "callee" || "caller" || "system", // required
263
263
  * },
264
264
  * },
265
265
  * callRecordStop: { // CallRecordStopConsumeEvent
@@ -191,11 +191,11 @@ 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
198
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
198
+ * // owner: "callee" || "caller" || "system", // required
199
199
  * // url: "STRING_VALUE", // required
200
200
  * // pauses: [ // CallRecordPausesList // required
201
201
  * // { // CallRecordPause
@@ -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",
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
  * // },
@@ -373,7 +413,7 @@ declare const DescribeEventCommand_base: {
373
413
  * // fileName: "STRING_VALUE", // required
374
414
  * // start: Number("long"), // required
375
415
  * // end: Number("long"), // required
376
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
416
+ * // owner: "callee" || "caller" || "system", // required
377
417
  * // url: "STRING_VALUE", // required
378
418
  * // pauses: [ // required
379
419
  * // {
@@ -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",
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",
@@ -1052,7 +1132,7 @@ declare const DescribeEventCommand_base: {
1052
1132
  * // fileName: "STRING_VALUE", // required
1053
1133
  * // start: Number("long"), // required
1054
1134
  * // end: Number("long"), // required
1055
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
1135
+ * // owner: "callee" || "caller" || "system", // required
1056
1136
  * // url: "STRING_VALUE", // required
1057
1137
  * // pauses: [ // required
1058
1138
  * // {
@@ -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",
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",
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",
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,11 +119,11 @@ 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
126
- * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
126
+ * // owner: "callee" || "caller" || "system", // required
127
127
  * // url: "STRING_VALUE", // required
128
128
  * // pauses: [ // CallRecordPausesList // required
129
129
  * // { // CallRecordPause
@@ -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",
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
@@ -335,7 +395,7 @@ export interface CallRecord {
335
395
  calleeMos?: string;
336
396
  xhoppersConfId?: string;
337
397
  recordings?: (string)[];
338
- recordingsData?: (RecordingsData)[];
398
+ recordingsData?: (CallFlowRecording)[];
339
399
  mergeWith?: string;
340
400
  splitReason?: string;
341
401
  splitTransferType?: string;
@@ -349,6 +409,7 @@ export interface CallRecord {
349
409
  attachment?: string;
350
410
  attachmentType?: CallFlowAttachmentType;
351
411
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
412
+ attachments?: (CallFlowAttachment)[];
352
413
  id: string;
353
414
  pbx: string;
354
415
  time: number;
@@ -827,7 +888,7 @@ export interface CallAnalyticsLiveProgressEventFlow {
827
888
  calleeMos?: string;
828
889
  xhoppersConfId?: string;
829
890
  recordings?: (string)[];
830
- recordingsData?: (RecordingsData)[];
891
+ recordingsData?: (CallFlowRecording)[];
831
892
  mergeWith?: string;
832
893
  splitReason?: string;
833
894
  splitTransferType?: string;
@@ -841,6 +902,7 @@ export interface CallAnalyticsLiveProgressEventFlow {
841
902
  attachment?: string;
842
903
  attachmentType?: CallFlowAttachmentType;
843
904
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
905
+ attachments?: (CallFlowAttachment)[];
844
906
  status: CallFlowStatus;
845
907
  /**
846
908
  * Time of the last status change in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format.
@@ -947,7 +1009,7 @@ export interface CallAnalyticsRecordEventFlow {
947
1009
  calleeMos?: string;
948
1010
  xhoppersConfId?: string;
949
1011
  recordings?: (string)[];
950
- recordingsData?: (RecordingsData)[];
1012
+ recordingsData?: (CallFlowRecording)[];
951
1013
  mergeWith?: string;
952
1014
  splitReason?: string;
953
1015
  splitTransferType?: string;
@@ -961,6 +1023,7 @@ export interface CallAnalyticsRecordEventFlow {
961
1023
  attachment?: string;
962
1024
  attachmentType?: CallFlowAttachmentType;
963
1025
  attachmentDestinations?: (CallFlowAttachmentDestination)[];
1026
+ attachments?: (CallFlowAttachment)[];
964
1027
  }
965
1028
  /**
966
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.43",
4
+ "version": "1.0.45",
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",