@wildix/wda-stream-client 1.1.25 → 1.1.26

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,11 +78,14 @@ 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 = {}));
79
86
  exports.CallFlowAttachmentType = {
80
87
  FAX: "FAX",
88
+ TRANSCRIPTION: "TRANSCRIPTION",
81
89
  VOICEMAIL: "VOICEMAIL",
82
90
  };
83
91
  exports.CallParticipantRole = {
@@ -104,11 +112,6 @@ exports.License = {
104
112
  UC: "uc",
105
113
  XBEES: "x-bees",
106
114
  };
107
- exports.CallFlowTranscriptionStatus = {
108
- AVAILABLE: "AVAILABLE",
109
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
110
- UNAVAILABLE: "UNAVAILABLE",
111
- };
112
115
  exports.RecordType = {
113
116
  CALL: "call",
114
117
  CALL_TRANSCRIPTION: "call_transcription",
@@ -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,11 +72,14 @@ 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 = {}));
73
80
  export const CallFlowAttachmentType = {
74
81
  FAX: "FAX",
82
+ TRANSCRIPTION: "TRANSCRIPTION",
75
83
  VOICEMAIL: "VOICEMAIL",
76
84
  };
77
85
  export const CallParticipantRole = {
@@ -98,11 +106,6 @@ export const License = {
98
106
  UC: "uc",
99
107
  XBEES: "x-bees",
100
108
  };
101
- export const CallFlowTranscriptionStatus = {
102
- AVAILABLE: "AVAILABLE",
103
- POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
104
- UNAVAILABLE: "UNAVAILABLE",
105
- };
106
109
  export const RecordType = {
107
110
  CALL: "call",
108
111
  CALL_TRANSCRIPTION: "call_transcription",
@@ -314,7 +314,7 @@ declare const ConsumeEventCommand_base: {
314
314
  * type: "CALL.START" || "CALL.UPDATE" || "CALL.SPLIT" || "CALL.LIVE" || "CALL.AGENTS_START" || "CALL.AGENTS_CANCEL" || "CALL.END" || "CALL.RECORD_START" || "CALL.RECORD_STOP" || "CALL.ATTACHMENT" || "CALL.TRANSCRIPTION" || "CALL.POST_TRANSCRIPTION", // required
315
315
  * data: { // CallAttachmentConsumeEventData
316
316
  * type: "voicemail" || "fax" || "transcription", // required
317
- * url: "STRING_VALUE", // required
317
+ * url: "STRING_VALUE",
318
318
  * destinations: [ // CallFlowAttachmentDestinationList
319
319
  * { // CallFlowAttachmentDestination
320
320
  * phone: "STRING_VALUE",
@@ -217,6 +217,18 @@ declare const DescribeEventCommand_base: {
217
217
  * // reason: "pause" || "hold",
218
218
  * // },
219
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
+ * // ],
220
232
  * // },
221
233
  * // ],
222
234
  * // mergeWith: "STRING_VALUE",
@@ -231,9 +243,9 @@ declare const DescribeEventCommand_base: {
231
243
  * // transcriptionLanguage: "STRING_VALUE",
232
244
  * // transcriptionSeconds: Number("int"),
233
245
  * // attachment: "STRING_VALUE",
234
- * // attachmentType: "VOICEMAIL" || "FAX",
235
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
236
- * // { // CallFlowAttachmentDestination
246
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
247
+ * // attachmentDestinations: [
248
+ * // {
237
249
  * // phone: "STRING_VALUE",
238
250
  * // name: "STRING_VALUE",
239
251
  * // email: "STRING_VALUE",
@@ -259,41 +271,24 @@ declare const DescribeEventCommand_base: {
259
271
  * // reason: "pause" || "hold",
260
272
  * // },
261
273
  * // ],
274
+ * // destinations: "<CallFlowAttachmentDestinationList>",
262
275
  * // },
263
276
  * // fax: { // CallFlowFax
264
277
  * // url: "STRING_VALUE", // required
265
278
  * // status: "ok" || "error",
266
- * // destinations: [
267
- * // {
268
- * // phone: "STRING_VALUE",
269
- * // name: "STRING_VALUE",
270
- * // email: "STRING_VALUE",
271
- * // userId: "STRING_VALUE",
272
- * // userExtension: "STRING_VALUE",
273
- * // userDepartment: "STRING_VALUE",
274
- * // groupId: "STRING_VALUE",
275
- * // groupName: "STRING_VALUE",
276
- * // },
277
- * // ],
279
+ * // destinations: "<CallFlowAttachmentDestinationList>",
278
280
  * // owner: "callee" || "caller" || "system",
279
281
  * // error: "STRING_VALUE",
280
282
  * // },
281
283
  * // voicemail: { // CallFlowVoicemail
282
284
  * // url: "STRING_VALUE", // required
283
- * // destinations: [
284
- * // {
285
- * // phone: "STRING_VALUE",
286
- * // name: "STRING_VALUE",
287
- * // email: "STRING_VALUE",
288
- * // userId: "STRING_VALUE",
289
- * // userExtension: "STRING_VALUE",
290
- * // userDepartment: "STRING_VALUE",
291
- * // groupId: "STRING_VALUE",
292
- * // groupName: "STRING_VALUE",
293
- * // },
294
- * // ],
285
+ * // destinations: "<CallFlowAttachmentDestinationList>",
295
286
  * // owner: "callee" || "caller" || "system",
296
287
  * // },
288
+ * // transcription: { // CallFlowTranscription
289
+ * // destinations: "<CallFlowAttachmentDestinationList>",
290
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
291
+ * // },
297
292
  * // },
298
293
  * // ],
299
294
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -463,6 +458,7 @@ declare const DescribeEventCommand_base: {
463
458
  * // reason: "pause" || "hold",
464
459
  * // },
465
460
  * // ],
461
+ * // destinations: "<CallFlowAttachmentDestinationList>",
466
462
  * // },
467
463
  * // ],
468
464
  * // mergeWith: "STRING_VALUE",
@@ -477,19 +473,8 @@ declare const DescribeEventCommand_base: {
477
473
  * // transcriptionLanguage: "STRING_VALUE",
478
474
  * // transcriptionSeconds: Number("int"),
479
475
  * // attachment: "STRING_VALUE",
480
- * // attachmentType: "VOICEMAIL" || "FAX",
481
- * // attachmentDestinations: [
482
- * // {
483
- * // phone: "STRING_VALUE",
484
- * // name: "STRING_VALUE",
485
- * // email: "STRING_VALUE",
486
- * // userId: "STRING_VALUE",
487
- * // userExtension: "STRING_VALUE",
488
- * // userDepartment: "STRING_VALUE",
489
- * // groupId: "STRING_VALUE",
490
- * // groupName: "STRING_VALUE",
491
- * // },
492
- * // ],
476
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
477
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
493
478
  * // attachments: [
494
479
  * // {// Union: only one key present
495
480
  * // recording: {
@@ -505,22 +490,12 @@ declare const DescribeEventCommand_base: {
505
490
  * // reason: "pause" || "hold",
506
491
  * // },
507
492
  * // ],
493
+ * // destinations: "<CallFlowAttachmentDestinationList>",
508
494
  * // },
509
495
  * // fax: {
510
496
  * // url: "STRING_VALUE", // required
511
497
  * // status: "ok" || "error",
512
- * // destinations: [
513
- * // {
514
- * // phone: "STRING_VALUE",
515
- * // name: "STRING_VALUE",
516
- * // email: "STRING_VALUE",
517
- * // userId: "STRING_VALUE",
518
- * // userExtension: "STRING_VALUE",
519
- * // userDepartment: "STRING_VALUE",
520
- * // groupId: "STRING_VALUE",
521
- * // groupName: "STRING_VALUE",
522
- * // },
523
- * // ],
498
+ * // destinations: "<CallFlowAttachmentDestinationList>",
524
499
  * // owner: "callee" || "caller" || "system",
525
500
  * // error: "STRING_VALUE",
526
501
  * // },
@@ -529,6 +504,10 @@ declare const DescribeEventCommand_base: {
529
504
  * // destinations: "<CallFlowAttachmentDestinationList>",
530
505
  * // owner: "callee" || "caller" || "system",
531
506
  * // },
507
+ * // transcription: {
508
+ * // destinations: "<CallFlowAttachmentDestinationList>",
509
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
510
+ * // },
532
511
  * // },
533
512
  * // ],
534
513
  * // },
@@ -1504,6 +1483,7 @@ declare const DescribeEventCommand_base: {
1504
1483
  * // reason: "pause" || "hold",
1505
1484
  * // },
1506
1485
  * // ],
1486
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1507
1487
  * // },
1508
1488
  * // ],
1509
1489
  * // mergeWith: "STRING_VALUE",
@@ -1518,7 +1498,7 @@ declare const DescribeEventCommand_base: {
1518
1498
  * // transcriptionLanguage: "STRING_VALUE",
1519
1499
  * // transcriptionSeconds: Number("int"),
1520
1500
  * // attachment: "STRING_VALUE",
1521
- * // attachmentType: "VOICEMAIL" || "FAX",
1501
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
1522
1502
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1523
1503
  * // attachments: [
1524
1504
  * // {// Union: only one key present
@@ -1535,6 +1515,10 @@ declare const DescribeEventCommand_base: {
1535
1515
  * // destinations: "<CallFlowAttachmentDestinationList>",
1536
1516
  * // owner: "callee" || "caller" || "system",
1537
1517
  * // },
1518
+ * // transcription: {
1519
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1520
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
1521
+ * // },
1538
1522
  * // },
1539
1523
  * // ],
1540
1524
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -1662,7 +1646,7 @@ declare const DescribeEventCommand_base: {
1662
1646
  * // transcriptionLanguage: "STRING_VALUE",
1663
1647
  * // transcriptionSeconds: Number("int"),
1664
1648
  * // attachment: "STRING_VALUE",
1665
- * // attachmentType: "VOICEMAIL" || "FAX",
1649
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
1666
1650
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1667
1651
  * // attachments: [
1668
1652
  * // {// Union: only one key present
@@ -1679,6 +1663,10 @@ declare const DescribeEventCommand_base: {
1679
1663
  * // destinations: "<CallFlowAttachmentDestinationList>",
1680
1664
  * // owner: "callee" || "caller" || "system",
1681
1665
  * // },
1666
+ * // transcription: {
1667
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1668
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
1669
+ * // },
1682
1670
  * // },
1683
1671
  * // ],
1684
1672
  * // },
@@ -1750,7 +1738,7 @@ declare const DescribeEventCommand_base: {
1750
1738
  * // transcriptionLanguage: "STRING_VALUE",
1751
1739
  * // transcriptionSeconds: Number("int"),
1752
1740
  * // attachment: "STRING_VALUE",
1753
- * // attachmentType: "VOICEMAIL" || "FAX",
1741
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
1754
1742
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1755
1743
  * // attachments: [
1756
1744
  * // {// Union: only one key present
@@ -1767,6 +1755,10 @@ declare const DescribeEventCommand_base: {
1767
1755
  * // destinations: "<CallFlowAttachmentDestinationList>",
1768
1756
  * // owner: "callee" || "caller" || "system",
1769
1757
  * // },
1758
+ * // transcription: {
1759
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1760
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
1761
+ * // },
1770
1762
  * // },
1771
1763
  * // ],
1772
1764
  * // id: "STRING_VALUE", // required
@@ -1834,7 +1826,7 @@ declare const DescribeEventCommand_base: {
1834
1826
  * // transcriptionLanguage: "STRING_VALUE",
1835
1827
  * // transcriptionSeconds: Number("int"),
1836
1828
  * // attachment: "STRING_VALUE",
1837
- * // attachmentType: "VOICEMAIL" || "FAX",
1829
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
1838
1830
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1839
1831
  * // attachments: "<CallFlowAttachments>",
1840
1832
  * // id: "STRING_VALUE", // required
@@ -1894,7 +1886,7 @@ declare const DescribeEventCommand_base: {
1894
1886
  * // transcriptionLanguage: "STRING_VALUE",
1895
1887
  * // transcriptionSeconds: Number("int"),
1896
1888
  * // attachment: "STRING_VALUE",
1897
- * // attachmentType: "VOICEMAIL" || "FAX",
1889
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
1898
1890
  * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
1899
1891
  * // attachments: "<CallFlowAttachments>",
1900
1892
  * // id: "STRING_VALUE", // required
@@ -144,6 +144,18 @@ declare const QueryConversationsCommand_base: {
144
144
  * // reason: "pause" || "hold",
145
145
  * // },
146
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
+ * // ],
147
159
  * // },
148
160
  * // ],
149
161
  * // mergeWith: "STRING_VALUE",
@@ -158,9 +170,9 @@ declare const QueryConversationsCommand_base: {
158
170
  * // transcriptionLanguage: "STRING_VALUE",
159
171
  * // transcriptionSeconds: Number("int"),
160
172
  * // attachment: "STRING_VALUE",
161
- * // attachmentType: "VOICEMAIL" || "FAX",
162
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
163
- * // { // CallFlowAttachmentDestination
173
+ * // attachmentType: "VOICEMAIL" || "FAX" || "TRANSCRIPTION",
174
+ * // attachmentDestinations: [
175
+ * // {
164
176
  * // phone: "STRING_VALUE",
165
177
  * // name: "STRING_VALUE",
166
178
  * // email: "STRING_VALUE",
@@ -186,41 +198,24 @@ declare const QueryConversationsCommand_base: {
186
198
  * // reason: "pause" || "hold",
187
199
  * // },
188
200
  * // ],
201
+ * // destinations: "<CallFlowAttachmentDestinationList>",
189
202
  * // },
190
203
  * // fax: { // CallFlowFax
191
204
  * // url: "STRING_VALUE", // required
192
205
  * // status: "ok" || "error",
193
- * // destinations: [
194
- * // {
195
- * // phone: "STRING_VALUE",
196
- * // name: "STRING_VALUE",
197
- * // email: "STRING_VALUE",
198
- * // userId: "STRING_VALUE",
199
- * // userExtension: "STRING_VALUE",
200
- * // userDepartment: "STRING_VALUE",
201
- * // groupId: "STRING_VALUE",
202
- * // groupName: "STRING_VALUE",
203
- * // },
204
- * // ],
206
+ * // destinations: "<CallFlowAttachmentDestinationList>",
205
207
  * // owner: "callee" || "caller" || "system",
206
208
  * // error: "STRING_VALUE",
207
209
  * // },
208
210
  * // voicemail: { // CallFlowVoicemail
209
211
  * // url: "STRING_VALUE", // required
210
- * // destinations: [
211
- * // {
212
- * // phone: "STRING_VALUE",
213
- * // name: "STRING_VALUE",
214
- * // email: "STRING_VALUE",
215
- * // userId: "STRING_VALUE",
216
- * // userExtension: "STRING_VALUE",
217
- * // userDepartment: "STRING_VALUE",
218
- * // groupId: "STRING_VALUE",
219
- * // groupName: "STRING_VALUE",
220
- * // },
221
- * // ],
212
+ * // destinations: "<CallFlowAttachmentDestinationList>",
222
213
  * // owner: "callee" || "caller" || "system",
223
214
  * // },
215
+ * // transcription: { // CallFlowTranscription
216
+ * // destinations: "<CallFlowAttachmentDestinationList>",
217
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE", // required
218
+ * // },
224
219
  * // },
225
220
  * // ],
226
221
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -204,6 +204,31 @@ export interface CallFlowRecording {
204
204
  owner: CallRecordOwner;
205
205
  url: string;
206
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
+ /**
227
+ * If present, indicates the explicit recipients from 'Send To Emails'
228
+ * @public
229
+ */
230
+ destinations?: (CallFlowAttachmentDestination)[] | undefined;
231
+ status: CallFlowTranscriptionStatus;
207
232
  }
208
233
  /**
209
234
  * @public
@@ -216,7 +241,7 @@ export interface CallFlowVoicemail {
216
241
  /**
217
242
  * @public
218
243
  */
219
- export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
244
+ export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.TranscriptionMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
220
245
  /**
221
246
  * @public
222
247
  */
@@ -225,18 +250,28 @@ export declare namespace CallFlowAttachment {
225
250
  recording: CallFlowRecording;
226
251
  fax?: never;
227
252
  voicemail?: never;
253
+ transcription?: never;
228
254
  $unknown?: never;
229
255
  }
230
256
  interface FaxMember {
231
257
  recording?: never;
232
258
  fax: CallFlowFax;
233
259
  voicemail?: never;
260
+ transcription?: never;
234
261
  $unknown?: never;
235
262
  }
236
263
  interface VoicemailMember {
237
264
  recording?: never;
238
265
  fax?: never;
239
266
  voicemail: CallFlowVoicemail;
267
+ transcription?: never;
268
+ $unknown?: never;
269
+ }
270
+ interface TranscriptionMember {
271
+ recording?: never;
272
+ fax?: never;
273
+ voicemail?: never;
274
+ transcription: CallFlowTranscription;
240
275
  $unknown?: never;
241
276
  }
242
277
  /**
@@ -246,12 +281,14 @@ export declare namespace CallFlowAttachment {
246
281
  recording?: never;
247
282
  fax?: never;
248
283
  voicemail?: never;
284
+ transcription?: never;
249
285
  $unknown: [string, any];
250
286
  }
251
287
  interface Visitor<T> {
252
288
  recording: (value: CallFlowRecording) => T;
253
289
  fax: (value: CallFlowFax) => T;
254
290
  voicemail: (value: CallFlowVoicemail) => T;
291
+ transcription: (value: CallFlowTranscription) => T;
255
292
  _: (name: string, value: any) => T;
256
293
  }
257
294
  const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
@@ -262,6 +299,7 @@ export declare namespace CallFlowAttachment {
262
299
  */
263
300
  export declare const CallFlowAttachmentType: {
264
301
  readonly FAX: "FAX";
302
+ readonly TRANSCRIPTION: "TRANSCRIPTION";
265
303
  readonly VOICEMAIL: "VOICEMAIL";
266
304
  };
267
305
  /**
@@ -363,19 +401,6 @@ export declare const License: {
363
401
  * @public
364
402
  */
365
403
  export type License = typeof License[keyof typeof License];
366
- /**
367
- * @public
368
- * @enum
369
- */
370
- export declare const CallFlowTranscriptionStatus: {
371
- readonly AVAILABLE: "AVAILABLE";
372
- readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
373
- readonly UNAVAILABLE: "UNAVAILABLE";
374
- };
375
- /**
376
- * @public
377
- */
378
- export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
379
404
  /**
380
405
  * @public
381
406
  * @enum
@@ -466,8 +491,26 @@ export interface CallRecord {
466
491
  remotePhoneCountryCodeStr?: string | undefined;
467
492
  remotePhoneLocation?: string | undefined;
468
493
  callStatus?: ConversationStatus | undefined;
494
+ /**
495
+ * Please use `attachments.transcription.status` instead.
496
+ *
497
+ * @deprecated
498
+ * @public
499
+ */
469
500
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
501
+ /**
502
+ * Please use `attachments.transcription.language` instead.
503
+ *
504
+ * @deprecated
505
+ * @public
506
+ */
470
507
  transcriptionLanguage?: string | undefined;
508
+ /**
509
+ * Please use `attachments.transcription.seconds` instead.
510
+ *
511
+ * @deprecated
512
+ * @public
513
+ */
471
514
  transcriptionSeconds?: number | undefined;
472
515
  /**
473
516
  * Consider to use `attachments` instead.
@@ -1560,8 +1603,26 @@ export interface CallAnalyticsLiveProgressEventFlow {
1560
1603
  remotePhoneCountryCodeStr?: string | undefined;
1561
1604
  remotePhoneLocation?: string | undefined;
1562
1605
  callStatus?: ConversationStatus | undefined;
1606
+ /**
1607
+ * Please use `attachments.transcription.status` instead.
1608
+ *
1609
+ * @deprecated
1610
+ * @public
1611
+ */
1563
1612
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1613
+ /**
1614
+ * Please use `attachments.transcription.language` instead.
1615
+ *
1616
+ * @deprecated
1617
+ * @public
1618
+ */
1564
1619
  transcriptionLanguage?: string | undefined;
1620
+ /**
1621
+ * Please use `attachments.transcription.seconds` instead.
1622
+ *
1623
+ * @deprecated
1624
+ * @public
1625
+ */
1565
1626
  transcriptionSeconds?: number | undefined;
1566
1627
  /**
1567
1628
  * Consider to use `attachments` instead.
@@ -1717,8 +1778,26 @@ export interface CallAnalyticsRecordEventFlow {
1717
1778
  remotePhoneCountryCodeStr?: string | undefined;
1718
1779
  remotePhoneLocation?: string | undefined;
1719
1780
  callStatus?: ConversationStatus | undefined;
1781
+ /**
1782
+ * Please use `attachments.transcription.status` instead.
1783
+ *
1784
+ * @deprecated
1785
+ * @public
1786
+ */
1720
1787
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1788
+ /**
1789
+ * Please use `attachments.transcription.language` instead.
1790
+ *
1791
+ * @deprecated
1792
+ * @public
1793
+ */
1721
1794
  transcriptionLanguage?: string | undefined;
1795
+ /**
1796
+ * Please use `attachments.transcription.seconds` instead.
1797
+ *
1798
+ * @deprecated
1799
+ * @public
1800
+ */
1722
1801
  transcriptionSeconds?: number | undefined;
1723
1802
  /**
1724
1803
  * Consider to use `attachments` instead.
@@ -1795,7 +1874,7 @@ export type CallFlowAttachmentConsumeType = typeof CallFlowAttachmentConsumeType
1795
1874
  */
1796
1875
  export interface CallAttachmentConsumeEventData {
1797
1876
  type: CallFlowAttachmentConsumeType;
1798
- url: string;
1877
+ url?: string | undefined;
1799
1878
  destinations?: (CallFlowAttachmentDestination)[] | undefined;
1800
1879
  status?: CallFlowAttachmentStatus | undefined;
1801
1880
  error?: string | 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.25",
4
+ "version": "1.1.26",
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",