@wildix/wda-stream-client 1.1.20 → 1.1.22

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = 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.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = 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.CallTranscriptionSpeaker = exports.RecordType = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
@@ -64,6 +64,11 @@ exports.CallRecordPauseReason = {
64
64
  HOLD: "hold",
65
65
  PAUSE: "pause",
66
66
  };
67
+ exports.CallFlowTranscriptionStatus = {
68
+ AVAILABLE: "AVAILABLE",
69
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
70
+ UNAVAILABLE: "UNAVAILABLE",
71
+ };
67
72
  var CallFlowAttachment;
68
73
  (function (CallFlowAttachment) {
69
74
  CallFlowAttachment.visit = (value, visitor) => {
@@ -73,6 +78,8 @@ var CallFlowAttachment;
73
78
  return visitor.fax(value.fax);
74
79
  if (value.voicemail !== undefined)
75
80
  return visitor.voicemail(value.voicemail);
81
+ if (value.transcription !== undefined)
82
+ return visitor.transcription(value.transcription);
76
83
  return visitor._(value.$unknown[0], value.$unknown[1]);
77
84
  };
78
85
  })(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
@@ -104,11 +111,6 @@ exports.License = {
104
111
  UC: "uc",
105
112
  XBEES: "x-bees",
106
113
  };
107
- exports.CallFlowTranscriptionStatus = {
108
- AVAILABLE: "AVAILABLE",
109
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
110
- UNAVAILABLE: "UNAVAILABLE",
111
- };
112
114
  exports.RecordType = {
113
115
  CALL: "call",
114
116
  CALL_TRANSCRIPTION: "call_transcription",
@@ -242,6 +244,7 @@ exports.ConferenceParticipantType = {
242
244
  };
243
245
  exports.ConferenceTranscriptionStatus = {
244
246
  AVAILABLE: "AVAILABLE",
247
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
245
248
  UNAVAILABLE: "UNAVAILABLE",
246
249
  };
247
250
  exports.CallConsumeEventType = {
@@ -58,6 +58,11 @@ export const CallRecordPauseReason = {
58
58
  HOLD: "hold",
59
59
  PAUSE: "pause",
60
60
  };
61
+ export const CallFlowTranscriptionStatus = {
62
+ AVAILABLE: "AVAILABLE",
63
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
64
+ UNAVAILABLE: "UNAVAILABLE",
65
+ };
61
66
  export var CallFlowAttachment;
62
67
  (function (CallFlowAttachment) {
63
68
  CallFlowAttachment.visit = (value, visitor) => {
@@ -67,6 +72,8 @@ export var CallFlowAttachment;
67
72
  return visitor.fax(value.fax);
68
73
  if (value.voicemail !== undefined)
69
74
  return visitor.voicemail(value.voicemail);
75
+ if (value.transcription !== undefined)
76
+ return visitor.transcription(value.transcription);
70
77
  return visitor._(value.$unknown[0], value.$unknown[1]);
71
78
  };
72
79
  })(CallFlowAttachment || (CallFlowAttachment = {}));
@@ -98,11 +105,6 @@ export const License = {
98
105
  UC: "uc",
99
106
  XBEES: "x-bees",
100
107
  };
101
- export const CallFlowTranscriptionStatus = {
102
- AVAILABLE: "AVAILABLE",
103
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
104
- UNAVAILABLE: "UNAVAILABLE",
105
- };
106
108
  export const RecordType = {
107
109
  CALL: "call",
108
110
  CALL_TRANSCRIPTION: "call_transcription",
@@ -236,6 +238,7 @@ export const ConferenceParticipantType = {
236
238
  };
237
239
  export const ConferenceTranscriptionStatus = {
238
240
  AVAILABLE: "AVAILABLE",
241
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
239
242
  UNAVAILABLE: "UNAVAILABLE",
240
243
  };
241
244
  export const CallConsumeEventType = {
@@ -56,6 +56,9 @@ declare const ConsumeEventCommand_base: {
56
56
  * groupName: "STRING_VALUE",
57
57
  * device: "STRING_VALUE",
58
58
  * sipCallId: "STRING_VALUE",
59
+ * publicAddress: "STRING_VALUE",
60
+ * privateAddress: "STRING_VALUE",
61
+ * location: "STRING_VALUE",
59
62
  * },
60
63
  * callee: {
61
64
  * phone: "STRING_VALUE",
@@ -70,6 +73,9 @@ declare const ConsumeEventCommand_base: {
70
73
  * groupName: "STRING_VALUE",
71
74
  * device: "STRING_VALUE",
72
75
  * sipCallId: "STRING_VALUE",
76
+ * publicAddress: "STRING_VALUE",
77
+ * privateAddress: "STRING_VALUE",
78
+ * location: "STRING_VALUE",
73
79
  * },
74
80
  * status: "connecting" || "talking" || "hold",
75
81
  * destination: "STRING_VALUE",
@@ -115,6 +121,9 @@ declare const ConsumeEventCommand_base: {
115
121
  * groupName: "STRING_VALUE",
116
122
  * device: "STRING_VALUE",
117
123
  * sipCallId: "STRING_VALUE",
124
+ * publicAddress: "STRING_VALUE",
125
+ * privateAddress: "STRING_VALUE",
126
+ * location: "STRING_VALUE",
118
127
  * },
119
128
  * callee: {
120
129
  * phone: "STRING_VALUE",
@@ -129,6 +138,9 @@ declare const ConsumeEventCommand_base: {
129
138
  * groupName: "STRING_VALUE",
130
139
  * device: "STRING_VALUE",
131
140
  * sipCallId: "STRING_VALUE",
141
+ * publicAddress: "STRING_VALUE",
142
+ * privateAddress: "STRING_VALUE",
143
+ * location: "STRING_VALUE",
132
144
  * },
133
145
  * status: "connecting" || "talking" || "hold",
134
146
  * destination: "STRING_VALUE",
@@ -175,6 +187,9 @@ declare const ConsumeEventCommand_base: {
175
187
  * groupName: "STRING_VALUE",
176
188
  * device: "STRING_VALUE",
177
189
  * sipCallId: "STRING_VALUE",
190
+ * publicAddress: "STRING_VALUE",
191
+ * privateAddress: "STRING_VALUE",
192
+ * location: "STRING_VALUE",
178
193
  * },
179
194
  * callee: "<CallFlowConsumeParticipant>",
180
195
  * status: "connecting" || "talking" || "hold",
@@ -802,6 +817,7 @@ declare const ConsumeEventCommand_base: {
802
817
  * media: [
803
818
  * "STRING_VALUE",
804
819
  * ],
820
+ * quoteMessageId: "STRING_VALUE",
805
821
  * },
806
822
  * },
807
823
  * whatsappStatus: { // WhatsAppStatusConsumeEvent
@@ -79,6 +79,7 @@ declare const DescribeEventCommand_base: {
79
79
  * media: [
80
80
  * "STRING_VALUE",
81
81
  * ],
82
+ * quoteMessageId: "STRING_VALUE",
82
83
  * },
83
84
  * },
84
85
  * WhatsAppStatusEvent: { // WhatsAppStatusEvent
@@ -158,6 +159,9 @@ declare const DescribeEventCommand_base: {
158
159
  * // role: "CLIENT" || "AGENT", // required
159
160
  * // license: "STRING_VALUE",
160
161
  * // sipCallId: "STRING_VALUE",
162
+ * // publicAddress: "STRING_VALUE",
163
+ * // privateAddress: "STRING_VALUE",
164
+ * // location: "STRING_VALUE",
161
165
  * // },
162
166
  * // callee: {
163
167
  * // type: "REMOTE" || "LOCAL", // required
@@ -175,6 +179,9 @@ declare const DescribeEventCommand_base: {
175
179
  * // role: "CLIENT" || "AGENT", // required
176
180
  * // license: "STRING_VALUE",
177
181
  * // sipCallId: "STRING_VALUE",
182
+ * // publicAddress: "STRING_VALUE",
183
+ * // privateAddress: "STRING_VALUE",
184
+ * // location: "STRING_VALUE",
178
185
  * // },
179
186
  * // service: "STRING_VALUE",
180
187
  * // serviceNumber: "STRING_VALUE",
@@ -210,6 +217,18 @@ declare const DescribeEventCommand_base: {
210
217
  * // reason: "pause" || "hold",
211
218
  * // },
212
219
  * // ],
220
+ * // destinations: [ // CallFlowAttachmentDestinationList
221
+ * // { // CallFlowAttachmentDestination
222
+ * // phone: "STRING_VALUE",
223
+ * // name: "STRING_VALUE",
224
+ * // email: "STRING_VALUE",
225
+ * // userId: "STRING_VALUE",
226
+ * // userExtension: "STRING_VALUE",
227
+ * // userDepartment: "STRING_VALUE",
228
+ * // groupId: "STRING_VALUE",
229
+ * // groupName: "STRING_VALUE",
230
+ * // },
231
+ * // ],
213
232
  * // },
214
233
  * // ],
215
234
  * // mergeWith: "STRING_VALUE",
@@ -225,8 +244,8 @@ declare const DescribeEventCommand_base: {
225
244
  * // transcriptionSeconds: Number("int"),
226
245
  * // attachment: "STRING_VALUE",
227
246
  * // attachmentType: "VOICEMAIL" || "FAX",
228
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
229
- * // { // CallFlowAttachmentDestination
247
+ * // attachmentDestinations: [
248
+ * // {
230
249
  * // phone: "STRING_VALUE",
231
250
  * // name: "STRING_VALUE",
232
251
  * // email: "STRING_VALUE",
@@ -252,41 +271,26 @@ declare const DescribeEventCommand_base: {
252
271
  * // reason: "pause" || "hold",
253
272
  * // },
254
273
  * // ],
274
+ * // destinations: "<CallFlowAttachmentDestinationList>",
255
275
  * // },
256
276
  * // fax: { // CallFlowFax
257
277
  * // url: "STRING_VALUE", // required
258
278
  * // status: "ok" || "error",
259
- * // destinations: [
260
- * // {
261
- * // phone: "STRING_VALUE",
262
- * // name: "STRING_VALUE",
263
- * // email: "STRING_VALUE",
264
- * // userId: "STRING_VALUE",
265
- * // userExtension: "STRING_VALUE",
266
- * // userDepartment: "STRING_VALUE",
267
- * // groupId: "STRING_VALUE",
268
- * // groupName: "STRING_VALUE",
269
- * // },
270
- * // ],
279
+ * // destinations: "<CallFlowAttachmentDestinationList>",
271
280
  * // owner: "callee" || "caller" || "system",
272
281
  * // error: "STRING_VALUE",
273
282
  * // },
274
283
  * // voicemail: { // CallFlowVoicemail
275
284
  * // url: "STRING_VALUE", // required
276
- * // destinations: [
277
- * // {
278
- * // phone: "STRING_VALUE",
279
- * // name: "STRING_VALUE",
280
- * // email: "STRING_VALUE",
281
- * // userId: "STRING_VALUE",
282
- * // userExtension: "STRING_VALUE",
283
- * // userDepartment: "STRING_VALUE",
284
- * // groupId: "STRING_VALUE",
285
- * // groupName: "STRING_VALUE",
286
- * // },
287
- * // ],
285
+ * // destinations: "<CallFlowAttachmentDestinationList>",
288
286
  * // owner: "callee" || "caller" || "system",
289
287
  * // },
288
+ * // transcription: { // CallFlowTranscription
289
+ * // destinations: "<CallFlowAttachmentDestinationList>",
290
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
291
+ * // language: "STRING_VALUE",
292
+ * // seconds: Number("int"),
293
+ * // },
290
294
  * // },
291
295
  * // ],
292
296
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -358,6 +362,9 @@ declare const DescribeEventCommand_base: {
358
362
  * // role: "CLIENT" || "AGENT", // required
359
363
  * // license: "STRING_VALUE",
360
364
  * // sipCallId: "STRING_VALUE",
365
+ * // publicAddress: "STRING_VALUE",
366
+ * // privateAddress: "STRING_VALUE",
367
+ * // location: "STRING_VALUE",
361
368
  * // },
362
369
  * // },
363
370
  * // CallAnalyticsRecordEvent: { // CallAnalyticsRecordEvent
@@ -395,6 +402,9 @@ declare const DescribeEventCommand_base: {
395
402
  * // role: "CLIENT" || "AGENT", // required
396
403
  * // license: "STRING_VALUE",
397
404
  * // sipCallId: "STRING_VALUE",
405
+ * // publicAddress: "STRING_VALUE",
406
+ * // privateAddress: "STRING_VALUE",
407
+ * // location: "STRING_VALUE",
398
408
  * // },
399
409
  * // callee: {
400
410
  * // type: "REMOTE" || "LOCAL", // required
@@ -412,6 +422,9 @@ declare const DescribeEventCommand_base: {
412
422
  * // role: "CLIENT" || "AGENT", // required
413
423
  * // license: "STRING_VALUE",
414
424
  * // sipCallId: "STRING_VALUE",
425
+ * // publicAddress: "STRING_VALUE",
426
+ * // privateAddress: "STRING_VALUE",
427
+ * // location: "STRING_VALUE",
415
428
  * // },
416
429
  * // service: "STRING_VALUE",
417
430
  * // serviceNumber: "STRING_VALUE",
@@ -447,6 +460,7 @@ declare const DescribeEventCommand_base: {
447
460
  * // reason: "pause" || "hold",
448
461
  * // },
449
462
  * // ],
463
+ * // destinations: "<CallFlowAttachmentDestinationList>",
450
464
  * // },
451
465
  * // ],
452
466
  * // mergeWith: "STRING_VALUE",
@@ -462,18 +476,7 @@ declare const DescribeEventCommand_base: {
462
476
  * // transcriptionSeconds: Number("int"),
463
477
  * // attachment: "STRING_VALUE",
464
478
  * // attachmentType: "VOICEMAIL" || "FAX",
465
- * // attachmentDestinations: [
466
- * // {
467
- * // phone: "STRING_VALUE",
468
- * // name: "STRING_VALUE",
469
- * // email: "STRING_VALUE",
470
- * // userId: "STRING_VALUE",
471
- * // userExtension: "STRING_VALUE",
472
- * // userDepartment: "STRING_VALUE",
473
- * // groupId: "STRING_VALUE",
474
- * // groupName: "STRING_VALUE",
475
- * // },
476
- * // ],
479
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
477
480
  * // attachments: [
478
481
  * // {// Union: only one key present
479
482
  * // recording: {
@@ -489,22 +492,12 @@ declare const DescribeEventCommand_base: {
489
492
  * // reason: "pause" || "hold",
490
493
  * // },
491
494
  * // ],
495
+ * // destinations: "<CallFlowAttachmentDestinationList>",
492
496
  * // },
493
497
  * // fax: {
494
498
  * // url: "STRING_VALUE", // required
495
499
  * // status: "ok" || "error",
496
- * // destinations: [
497
- * // {
498
- * // phone: "STRING_VALUE",
499
- * // name: "STRING_VALUE",
500
- * // email: "STRING_VALUE",
501
- * // userId: "STRING_VALUE",
502
- * // userExtension: "STRING_VALUE",
503
- * // userDepartment: "STRING_VALUE",
504
- * // groupId: "STRING_VALUE",
505
- * // groupName: "STRING_VALUE",
506
- * // },
507
- * // ],
500
+ * // destinations: "<CallFlowAttachmentDestinationList>",
508
501
  * // owner: "callee" || "caller" || "system",
509
502
  * // error: "STRING_VALUE",
510
503
  * // },
@@ -513,6 +506,12 @@ declare const DescribeEventCommand_base: {
513
506
  * // destinations: "<CallFlowAttachmentDestinationList>",
514
507
  * // owner: "callee" || "caller" || "system",
515
508
  * // },
509
+ * // transcription: {
510
+ * // destinations: "<CallFlowAttachmentDestinationList>",
511
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
512
+ * // language: "STRING_VALUE",
513
+ * // seconds: Number("int"),
514
+ * // },
516
515
  * // },
517
516
  * // ],
518
517
  * // },
@@ -1066,7 +1065,7 @@ declare const DescribeEventCommand_base: {
1066
1065
  * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
1067
1066
  * // },
1068
1067
  * // ],
1069
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
1068
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1070
1069
  * // transcriptionLanguage: "STRING_VALUE",
1071
1070
  * // participantsGroupIds: [
1072
1071
  * // "STRING_VALUE",
@@ -1191,7 +1190,7 @@ declare const DescribeEventCommand_base: {
1191
1190
  * // end: Number("long"), // required
1192
1191
  * // },
1193
1192
  * // ],
1194
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
1193
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
1195
1194
  * // transcriptionLanguage: "STRING_VALUE",
1196
1195
  * // transcriptionSeconds: Number("int"),
1197
1196
  * // type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -1488,6 +1487,7 @@ declare const DescribeEventCommand_base: {
1488
1487
  * // reason: "pause" || "hold",
1489
1488
  * // },
1490
1489
  * // ],
1490
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1491
1491
  * // },
1492
1492
  * // ],
1493
1493
  * // mergeWith: "STRING_VALUE",
@@ -1519,6 +1519,12 @@ declare const DescribeEventCommand_base: {
1519
1519
  * // destinations: "<CallFlowAttachmentDestinationList>",
1520
1520
  * // owner: "callee" || "caller" || "system",
1521
1521
  * // },
1522
+ * // transcription: {
1523
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1524
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1525
+ * // language: "STRING_VALUE",
1526
+ * // seconds: Number("int"),
1527
+ * // },
1522
1528
  * // },
1523
1529
  * // ],
1524
1530
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -1663,6 +1669,12 @@ declare const DescribeEventCommand_base: {
1663
1669
  * // destinations: "<CallFlowAttachmentDestinationList>",
1664
1670
  * // owner: "callee" || "caller" || "system",
1665
1671
  * // },
1672
+ * // transcription: {
1673
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1674
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1675
+ * // language: "STRING_VALUE",
1676
+ * // seconds: Number("int"),
1677
+ * // },
1666
1678
  * // },
1667
1679
  * // ],
1668
1680
  * // },
@@ -1751,6 +1763,12 @@ declare const DescribeEventCommand_base: {
1751
1763
  * // destinations: "<CallFlowAttachmentDestinationList>",
1752
1764
  * // owner: "callee" || "caller" || "system",
1753
1765
  * // },
1766
+ * // transcription: {
1767
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1768
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1769
+ * // language: "STRING_VALUE",
1770
+ * // seconds: Number("int"),
1771
+ * // },
1754
1772
  * // },
1755
1773
  * // ],
1756
1774
  * // id: "STRING_VALUE", // required
@@ -1944,7 +1962,7 @@ declare const DescribeEventCommand_base: {
1944
1962
  * // participants: [ // required
1945
1963
  * // "<ConferenceParticipant>",
1946
1964
  * // ],
1947
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
1965
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1948
1966
  * // transcriptionLanguage: "STRING_VALUE",
1949
1967
  * // participantsGroupIds: [
1950
1968
  * // "STRING_VALUE",
@@ -2065,7 +2083,7 @@ declare const DescribeEventCommand_base: {
2065
2083
  * // end: Number("long"), // required
2066
2084
  * // },
2067
2085
  * // ],
2068
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
2086
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
2069
2087
  * // transcriptionLanguage: "STRING_VALUE",
2070
2088
  * // transcriptionSeconds: Number("int"),
2071
2089
  * // type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -2095,7 +2113,7 @@ declare const DescribeEventCommand_base: {
2095
2113
  * // status: "COMPLETED" || "MISSED",
2096
2114
  * // participants: "<ConferenceAnalyticsRecordParticipantList>", // required
2097
2115
  * // recordings: "<ConferenceRecordingList>",
2098
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
2116
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
2099
2117
  * // transcriptionLanguage: "STRING_VALUE",
2100
2118
  * // transcriptionSeconds: Number("int"),
2101
2119
  * // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
@@ -2134,7 +2152,7 @@ declare const DescribeEventCommand_base: {
2134
2152
  * // status: "COMPLETED" || "MISSED",
2135
2153
  * // participants: "<ConferenceAnalyticsRecordParticipantList>", // required
2136
2154
  * // recordings: "<ConferenceRecordingList>",
2137
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
2155
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
2138
2156
  * // transcriptionLanguage: "STRING_VALUE",
2139
2157
  * // transcriptionSeconds: Number("int"),
2140
2158
  * // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
@@ -2165,7 +2183,7 @@ declare const DescribeEventCommand_base: {
2165
2183
  * // status: "COMPLETED" || "MISSED",
2166
2184
  * // participants: "<ConferenceAnalyticsRecordParticipantList>", // required
2167
2185
  * // recordings: "<ConferenceRecordingList>",
2168
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
2186
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
2169
2187
  * // transcriptionLanguage: "STRING_VALUE",
2170
2188
  * // transcriptionSeconds: Number("int"),
2171
2189
  * // type: "call" || "call_transcription" || "conference" || "conference_transcription" || "chat" || "chat_transcription", // required
@@ -86,6 +86,9 @@ declare const QueryConversationsCommand_base: {
86
86
  * // role: "CLIENT" || "AGENT", // required
87
87
  * // license: "STRING_VALUE",
88
88
  * // sipCallId: "STRING_VALUE",
89
+ * // publicAddress: "STRING_VALUE",
90
+ * // privateAddress: "STRING_VALUE",
91
+ * // location: "STRING_VALUE",
89
92
  * // },
90
93
  * // callee: {
91
94
  * // type: "REMOTE" || "LOCAL", // required
@@ -103,6 +106,9 @@ declare const QueryConversationsCommand_base: {
103
106
  * // role: "CLIENT" || "AGENT", // required
104
107
  * // license: "STRING_VALUE",
105
108
  * // sipCallId: "STRING_VALUE",
109
+ * // publicAddress: "STRING_VALUE",
110
+ * // privateAddress: "STRING_VALUE",
111
+ * // location: "STRING_VALUE",
106
112
  * // },
107
113
  * // service: "STRING_VALUE",
108
114
  * // serviceNumber: "STRING_VALUE",
@@ -138,6 +144,18 @@ declare const QueryConversationsCommand_base: {
138
144
  * // reason: "pause" || "hold",
139
145
  * // },
140
146
  * // ],
147
+ * // destinations: [ // CallFlowAttachmentDestinationList
148
+ * // { // CallFlowAttachmentDestination
149
+ * // phone: "STRING_VALUE",
150
+ * // name: "STRING_VALUE",
151
+ * // email: "STRING_VALUE",
152
+ * // userId: "STRING_VALUE",
153
+ * // userExtension: "STRING_VALUE",
154
+ * // userDepartment: "STRING_VALUE",
155
+ * // groupId: "STRING_VALUE",
156
+ * // groupName: "STRING_VALUE",
157
+ * // },
158
+ * // ],
141
159
  * // },
142
160
  * // ],
143
161
  * // mergeWith: "STRING_VALUE",
@@ -153,8 +171,8 @@ declare const QueryConversationsCommand_base: {
153
171
  * // transcriptionSeconds: Number("int"),
154
172
  * // attachment: "STRING_VALUE",
155
173
  * // attachmentType: "VOICEMAIL" || "FAX",
156
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
157
- * // { // CallFlowAttachmentDestination
174
+ * // attachmentDestinations: [
175
+ * // {
158
176
  * // phone: "STRING_VALUE",
159
177
  * // name: "STRING_VALUE",
160
178
  * // email: "STRING_VALUE",
@@ -180,41 +198,26 @@ declare const QueryConversationsCommand_base: {
180
198
  * // reason: "pause" || "hold",
181
199
  * // },
182
200
  * // ],
201
+ * // destinations: "<CallFlowAttachmentDestinationList>",
183
202
  * // },
184
203
  * // fax: { // CallFlowFax
185
204
  * // url: "STRING_VALUE", // required
186
205
  * // status: "ok" || "error",
187
- * // destinations: [
188
- * // {
189
- * // phone: "STRING_VALUE",
190
- * // name: "STRING_VALUE",
191
- * // email: "STRING_VALUE",
192
- * // userId: "STRING_VALUE",
193
- * // userExtension: "STRING_VALUE",
194
- * // userDepartment: "STRING_VALUE",
195
- * // groupId: "STRING_VALUE",
196
- * // groupName: "STRING_VALUE",
197
- * // },
198
- * // ],
206
+ * // destinations: "<CallFlowAttachmentDestinationList>",
199
207
  * // owner: "callee" || "caller" || "system",
200
208
  * // error: "STRING_VALUE",
201
209
  * // },
202
210
  * // voicemail: { // CallFlowVoicemail
203
211
  * // url: "STRING_VALUE", // required
204
- * // destinations: [
205
- * // {
206
- * // phone: "STRING_VALUE",
207
- * // name: "STRING_VALUE",
208
- * // email: "STRING_VALUE",
209
- * // userId: "STRING_VALUE",
210
- * // userExtension: "STRING_VALUE",
211
- * // userDepartment: "STRING_VALUE",
212
- * // groupId: "STRING_VALUE",
213
- * // groupName: "STRING_VALUE",
214
- * // },
215
- * // ],
212
+ * // destinations: "<CallFlowAttachmentDestinationList>",
216
213
  * // owner: "callee" || "caller" || "system",
217
214
  * // },
215
+ * // transcription: { // CallFlowTranscription
216
+ * // destinations: "<CallFlowAttachmentDestinationList>",
217
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
218
+ * // language: "STRING_VALUE",
219
+ * // seconds: Number("int"),
220
+ * // },
218
221
  * // },
219
222
  * // ],
220
223
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -251,7 +254,7 @@ declare const QueryConversationsCommand_base: {
251
254
  * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
252
255
  * // },
253
256
  * // ],
254
- * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
257
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
255
258
  * // transcriptionLanguage: "STRING_VALUE",
256
259
  * // participantsGroupIds: [
257
260
  * // "STRING_VALUE",
@@ -88,6 +88,7 @@ export interface WhatsAppInboundEventData {
88
88
  id: string;
89
89
  message: string;
90
90
  media?: (string)[] | undefined;
91
+ quoteMessageId?: string | undefined;
91
92
  }
92
93
  /**
93
94
  * @public
@@ -203,6 +204,29 @@ export interface CallFlowRecording {
203
204
  owner: CallRecordOwner;
204
205
  url: string;
205
206
  pauses: (CallRecordPause)[];
207
+ destinations?: (CallFlowAttachmentDestination)[] | undefined;
208
+ }
209
+ /**
210
+ * @public
211
+ * @enum
212
+ */
213
+ export declare const CallFlowTranscriptionStatus: {
214
+ readonly AVAILABLE: "AVAILABLE";
215
+ readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
216
+ readonly UNAVAILABLE: "UNAVAILABLE";
217
+ };
218
+ /**
219
+ * @public
220
+ */
221
+ export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
222
+ /**
223
+ * @public
224
+ */
225
+ export interface CallFlowTranscription {
226
+ destinations?: (CallFlowAttachmentDestination)[] | undefined;
227
+ status?: CallFlowTranscriptionStatus | undefined;
228
+ language?: string | undefined;
229
+ seconds?: number | undefined;
206
230
  }
207
231
  /**
208
232
  * @public
@@ -215,7 +239,7 @@ export interface CallFlowVoicemail {
215
239
  /**
216
240
  * @public
217
241
  */
218
- export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
242
+ export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.TranscriptionMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
219
243
  /**
220
244
  * @public
221
245
  */
@@ -224,18 +248,28 @@ export declare namespace CallFlowAttachment {
224
248
  recording: CallFlowRecording;
225
249
  fax?: never;
226
250
  voicemail?: never;
251
+ transcription?: never;
227
252
  $unknown?: never;
228
253
  }
229
254
  interface FaxMember {
230
255
  recording?: never;
231
256
  fax: CallFlowFax;
232
257
  voicemail?: never;
258
+ transcription?: never;
233
259
  $unknown?: never;
234
260
  }
235
261
  interface VoicemailMember {
236
262
  recording?: never;
237
263
  fax?: never;
238
264
  voicemail: CallFlowVoicemail;
265
+ transcription?: never;
266
+ $unknown?: never;
267
+ }
268
+ interface TranscriptionMember {
269
+ recording?: never;
270
+ fax?: never;
271
+ voicemail?: never;
272
+ transcription: CallFlowTranscription;
239
273
  $unknown?: never;
240
274
  }
241
275
  /**
@@ -245,12 +279,14 @@ export declare namespace CallFlowAttachment {
245
279
  recording?: never;
246
280
  fax?: never;
247
281
  voicemail?: never;
282
+ transcription?: never;
248
283
  $unknown: [string, any];
249
284
  }
250
285
  interface Visitor<T> {
251
286
  recording: (value: CallFlowRecording) => T;
252
287
  fax: (value: CallFlowFax) => T;
253
288
  voicemail: (value: CallFlowVoicemail) => T;
289
+ transcription: (value: CallFlowTranscription) => T;
254
290
  _: (name: string, value: any) => T;
255
291
  }
256
292
  const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
@@ -334,6 +370,21 @@ export interface CallParticipant {
334
370
  * @public
335
371
  */
336
372
  sipCallId?: string | undefined;
373
+ /**
374
+ * Represents a network endpoint consisting of a public IP address and a port number. Example: '123.45.67.89:59317'
375
+ * @public
376
+ */
377
+ publicAddress?: string | undefined;
378
+ /**
379
+ * Represents a network endpoint consisting of a private IP address and a port number. Example: '172.16.1.2:54003'
380
+ * @public
381
+ */
382
+ privateAddress?: string | undefined;
383
+ /**
384
+ * The location specifies a geographic point using latitude and longitude coordinates. Example 'lat=29.3008&lon=1.7002'
385
+ * @public
386
+ */
387
+ location?: string | undefined;
337
388
  }
338
389
  /**
339
390
  * @public
@@ -347,19 +398,6 @@ export declare const License: {
347
398
  * @public
348
399
  */
349
400
  export type License = typeof License[keyof typeof License];
350
- /**
351
- * @public
352
- * @enum
353
- */
354
- export declare const CallFlowTranscriptionStatus: {
355
- readonly AVAILABLE: "AVAILABLE";
356
- readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
357
- readonly UNAVAILABLE: "UNAVAILABLE";
358
- };
359
- /**
360
- * @public
361
- */
362
- export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
363
401
  /**
364
402
  * @public
365
403
  * @enum
@@ -450,8 +488,26 @@ export interface CallRecord {
450
488
  remotePhoneCountryCodeStr?: string | undefined;
451
489
  remotePhoneLocation?: string | undefined;
452
490
  callStatus?: ConversationStatus | undefined;
491
+ /**
492
+ * Please use `attachments.transcription.status` instead.
493
+ *
494
+ * @deprecated
495
+ * @public
496
+ */
453
497
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
498
+ /**
499
+ * Please use `attachments.transcription.language` instead.
500
+ *
501
+ * @deprecated
502
+ * @public
503
+ */
454
504
  transcriptionLanguage?: string | undefined;
505
+ /**
506
+ * Please use `attachments.transcription.seconds` instead.
507
+ *
508
+ * @deprecated
509
+ * @public
510
+ */
455
511
  transcriptionSeconds?: number | undefined;
456
512
  /**
457
513
  * Consider to use `attachments` instead.
@@ -1182,6 +1238,7 @@ export interface ConferenceRecording {
1182
1238
  */
1183
1239
  export declare const ConferenceTranscriptionStatus: {
1184
1240
  readonly AVAILABLE: "AVAILABLE";
1241
+ readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
1185
1242
  readonly UNAVAILABLE: "UNAVAILABLE";
1186
1243
  };
1187
1244
  /**
@@ -1303,6 +1360,9 @@ export interface CallFlowConsumeParticipant {
1303
1360
  groupName?: string | undefined;
1304
1361
  device?: string | undefined;
1305
1362
  sipCallId?: string | undefined;
1363
+ publicAddress?: string | undefined;
1364
+ privateAddress?: string | undefined;
1365
+ location?: string | undefined;
1306
1366
  }
1307
1367
  /**
1308
1368
  * @public
@@ -1540,8 +1600,26 @@ export interface CallAnalyticsLiveProgressEventFlow {
1540
1600
  remotePhoneCountryCodeStr?: string | undefined;
1541
1601
  remotePhoneLocation?: string | undefined;
1542
1602
  callStatus?: ConversationStatus | undefined;
1603
+ /**
1604
+ * Please use `attachments.transcription.status` instead.
1605
+ *
1606
+ * @deprecated
1607
+ * @public
1608
+ */
1543
1609
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1610
+ /**
1611
+ * Please use `attachments.transcription.language` instead.
1612
+ *
1613
+ * @deprecated
1614
+ * @public
1615
+ */
1544
1616
  transcriptionLanguage?: string | undefined;
1617
+ /**
1618
+ * Please use `attachments.transcription.seconds` instead.
1619
+ *
1620
+ * @deprecated
1621
+ * @public
1622
+ */
1545
1623
  transcriptionSeconds?: number | undefined;
1546
1624
  /**
1547
1625
  * Consider to use `attachments` instead.
@@ -1697,8 +1775,26 @@ export interface CallAnalyticsRecordEventFlow {
1697
1775
  remotePhoneCountryCodeStr?: string | undefined;
1698
1776
  remotePhoneLocation?: string | undefined;
1699
1777
  callStatus?: ConversationStatus | undefined;
1778
+ /**
1779
+ * Please use `attachments.transcription.status` instead.
1780
+ *
1781
+ * @deprecated
1782
+ * @public
1783
+ */
1700
1784
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1785
+ /**
1786
+ * Please use `attachments.transcription.language` instead.
1787
+ *
1788
+ * @deprecated
1789
+ * @public
1790
+ */
1701
1791
  transcriptionLanguage?: string | undefined;
1792
+ /**
1793
+ * Please use `attachments.transcription.seconds` instead.
1794
+ *
1795
+ * @deprecated
1796
+ * @public
1797
+ */
1702
1798
  transcriptionSeconds?: number | undefined;
1703
1799
  /**
1704
1800
  * Consider to use `attachments` instead.
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.20",
4
+ "version": "1.1.22",
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",