@wildix/wda-stream-client 1.1.21 → 1.1.23

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",
@@ -299,6 +301,7 @@ exports.CallEndBy = {
299
301
  };
300
302
  exports.CallFlowAttachmentConsumeType = {
301
303
  FAX: "fax",
304
+ TRANSCRIPTION: "transcription",
302
305
  VOICEMAIL: "voicemail",
303
306
  };
304
307
  exports.CallEndConsume = {
@@ -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",
@@ -293,6 +295,7 @@ export const CallEndBy = {
293
295
  };
294
296
  export const CallFlowAttachmentConsumeType = {
295
297
  FAX: "fax",
298
+ TRANSCRIPTION: "transcription",
296
299
  VOICEMAIL: "voicemail",
297
300
  };
298
301
  export const CallEndConsume = {
@@ -311,8 +311,8 @@ declare const ConsumeEventCommand_base: {
311
311
  * company: "STRING_VALUE", // required
312
312
  * 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
313
313
  * data: { // CallAttachmentConsumeEventData
314
- * type: "voicemail" || "fax", // required
315
- * url: "STRING_VALUE", // required
314
+ * type: "voicemail" || "fax" || "transcription", // required
315
+ * url: "STRING_VALUE",
316
316
  * destinations: [ // CallFlowAttachmentDestinationList
317
317
  * { // CallFlowAttachmentDestination
318
318
  * phone: "STRING_VALUE",
@@ -817,6 +817,7 @@ declare const ConsumeEventCommand_base: {
817
817
  * media: [
818
818
  * "STRING_VALUE",
819
819
  * ],
820
+ * quoteMessageId: "STRING_VALUE",
820
821
  * },
821
822
  * },
822
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
@@ -216,6 +217,18 @@ declare const DescribeEventCommand_base: {
216
217
  * // reason: "pause" || "hold",
217
218
  * // },
218
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
+ * // ],
219
232
  * // },
220
233
  * // ],
221
234
  * // mergeWith: "STRING_VALUE",
@@ -231,8 +244,8 @@ declare const DescribeEventCommand_base: {
231
244
  * // transcriptionSeconds: Number("int"),
232
245
  * // attachment: "STRING_VALUE",
233
246
  * // attachmentType: "VOICEMAIL" || "FAX",
234
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
235
- * // { // CallFlowAttachmentDestination
247
+ * // attachmentDestinations: [
248
+ * // {
236
249
  * // phone: "STRING_VALUE",
237
250
  * // name: "STRING_VALUE",
238
251
  * // email: "STRING_VALUE",
@@ -258,41 +271,26 @@ declare const DescribeEventCommand_base: {
258
271
  * // reason: "pause" || "hold",
259
272
  * // },
260
273
  * // ],
274
+ * // destinations: "<CallFlowAttachmentDestinationList>",
261
275
  * // },
262
276
  * // fax: { // CallFlowFax
263
277
  * // url: "STRING_VALUE", // required
264
278
  * // status: "ok" || "error",
265
- * // destinations: [
266
- * // {
267
- * // phone: "STRING_VALUE",
268
- * // name: "STRING_VALUE",
269
- * // email: "STRING_VALUE",
270
- * // userId: "STRING_VALUE",
271
- * // userExtension: "STRING_VALUE",
272
- * // userDepartment: "STRING_VALUE",
273
- * // groupId: "STRING_VALUE",
274
- * // groupName: "STRING_VALUE",
275
- * // },
276
- * // ],
279
+ * // destinations: "<CallFlowAttachmentDestinationList>",
277
280
  * // owner: "callee" || "caller" || "system",
278
281
  * // error: "STRING_VALUE",
279
282
  * // },
280
283
  * // voicemail: { // CallFlowVoicemail
281
284
  * // url: "STRING_VALUE", // required
282
- * // destinations: [
283
- * // {
284
- * // phone: "STRING_VALUE",
285
- * // name: "STRING_VALUE",
286
- * // email: "STRING_VALUE",
287
- * // userId: "STRING_VALUE",
288
- * // userExtension: "STRING_VALUE",
289
- * // userDepartment: "STRING_VALUE",
290
- * // groupId: "STRING_VALUE",
291
- * // groupName: "STRING_VALUE",
292
- * // },
293
- * // ],
285
+ * // destinations: "<CallFlowAttachmentDestinationList>",
294
286
  * // owner: "callee" || "caller" || "system",
295
287
  * // },
288
+ * // transcription: { // CallFlowTranscription
289
+ * // destinations: "<CallFlowAttachmentDestinationList>",
290
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
291
+ * // language: "STRING_VALUE",
292
+ * // seconds: Number("int"),
293
+ * // },
296
294
  * // },
297
295
  * // ],
298
296
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -462,6 +460,7 @@ declare const DescribeEventCommand_base: {
462
460
  * // reason: "pause" || "hold",
463
461
  * // },
464
462
  * // ],
463
+ * // destinations: "<CallFlowAttachmentDestinationList>",
465
464
  * // },
466
465
  * // ],
467
466
  * // mergeWith: "STRING_VALUE",
@@ -477,18 +476,7 @@ declare const DescribeEventCommand_base: {
477
476
  * // transcriptionSeconds: Number("int"),
478
477
  * // attachment: "STRING_VALUE",
479
478
  * // attachmentType: "VOICEMAIL" || "FAX",
480
- * // attachmentDestinations: [
481
- * // {
482
- * // phone: "STRING_VALUE",
483
- * // name: "STRING_VALUE",
484
- * // email: "STRING_VALUE",
485
- * // userId: "STRING_VALUE",
486
- * // userExtension: "STRING_VALUE",
487
- * // userDepartment: "STRING_VALUE",
488
- * // groupId: "STRING_VALUE",
489
- * // groupName: "STRING_VALUE",
490
- * // },
491
- * // ],
479
+ * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
492
480
  * // attachments: [
493
481
  * // {// Union: only one key present
494
482
  * // recording: {
@@ -504,22 +492,12 @@ declare const DescribeEventCommand_base: {
504
492
  * // reason: "pause" || "hold",
505
493
  * // },
506
494
  * // ],
495
+ * // destinations: "<CallFlowAttachmentDestinationList>",
507
496
  * // },
508
497
  * // fax: {
509
498
  * // url: "STRING_VALUE", // required
510
499
  * // status: "ok" || "error",
511
- * // destinations: [
512
- * // {
513
- * // phone: "STRING_VALUE",
514
- * // name: "STRING_VALUE",
515
- * // email: "STRING_VALUE",
516
- * // userId: "STRING_VALUE",
517
- * // userExtension: "STRING_VALUE",
518
- * // userDepartment: "STRING_VALUE",
519
- * // groupId: "STRING_VALUE",
520
- * // groupName: "STRING_VALUE",
521
- * // },
522
- * // ],
500
+ * // destinations: "<CallFlowAttachmentDestinationList>",
523
501
  * // owner: "callee" || "caller" || "system",
524
502
  * // error: "STRING_VALUE",
525
503
  * // },
@@ -528,6 +506,12 @@ declare const DescribeEventCommand_base: {
528
506
  * // destinations: "<CallFlowAttachmentDestinationList>",
529
507
  * // owner: "callee" || "caller" || "system",
530
508
  * // },
509
+ * // transcription: {
510
+ * // destinations: "<CallFlowAttachmentDestinationList>",
511
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
512
+ * // language: "STRING_VALUE",
513
+ * // seconds: Number("int"),
514
+ * // },
531
515
  * // },
532
516
  * // ],
533
517
  * // },
@@ -1503,6 +1487,7 @@ declare const DescribeEventCommand_base: {
1503
1487
  * // reason: "pause" || "hold",
1504
1488
  * // },
1505
1489
  * // ],
1490
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1506
1491
  * // },
1507
1492
  * // ],
1508
1493
  * // mergeWith: "STRING_VALUE",
@@ -1534,6 +1519,12 @@ declare const DescribeEventCommand_base: {
1534
1519
  * // destinations: "<CallFlowAttachmentDestinationList>",
1535
1520
  * // owner: "callee" || "caller" || "system",
1536
1521
  * // },
1522
+ * // transcription: {
1523
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1524
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1525
+ * // language: "STRING_VALUE",
1526
+ * // seconds: Number("int"),
1527
+ * // },
1537
1528
  * // },
1538
1529
  * // ],
1539
1530
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -1678,6 +1669,12 @@ declare const DescribeEventCommand_base: {
1678
1669
  * // destinations: "<CallFlowAttachmentDestinationList>",
1679
1670
  * // owner: "callee" || "caller" || "system",
1680
1671
  * // },
1672
+ * // transcription: {
1673
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1674
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1675
+ * // language: "STRING_VALUE",
1676
+ * // seconds: Number("int"),
1677
+ * // },
1681
1678
  * // },
1682
1679
  * // ],
1683
1680
  * // },
@@ -1766,6 +1763,12 @@ declare const DescribeEventCommand_base: {
1766
1763
  * // destinations: "<CallFlowAttachmentDestinationList>",
1767
1764
  * // owner: "callee" || "caller" || "system",
1768
1765
  * // },
1766
+ * // transcription: {
1767
+ * // destinations: "<CallFlowAttachmentDestinationList>",
1768
+ * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1769
+ * // language: "STRING_VALUE",
1770
+ * // seconds: Number("int"),
1771
+ * // },
1769
1772
  * // },
1770
1773
  * // ],
1771
1774
  * // 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",
@@ -159,8 +171,8 @@ declare const QueryConversationsCommand_base: {
159
171
  * // transcriptionSeconds: Number("int"),
160
172
  * // attachment: "STRING_VALUE",
161
173
  * // attachmentType: "VOICEMAIL" || "FAX",
162
- * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
163
- * // { // CallFlowAttachmentDestination
174
+ * // attachmentDestinations: [
175
+ * // {
164
176
  * // phone: "STRING_VALUE",
165
177
  * // name: "STRING_VALUE",
166
178
  * // email: "STRING_VALUE",
@@ -186,41 +198,26 @@ 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",
218
+ * // language: "STRING_VALUE",
219
+ * // seconds: Number("int"),
220
+ * // },
224
221
  * // },
225
222
  * // ],
226
223
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -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;
@@ -362,19 +398,6 @@ export declare const License: {
362
398
  * @public
363
399
  */
364
400
  export type License = typeof License[keyof typeof License];
365
- /**
366
- * @public
367
- * @enum
368
- */
369
- export declare const CallFlowTranscriptionStatus: {
370
- readonly AVAILABLE: "AVAILABLE";
371
- readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
372
- readonly UNAVAILABLE: "UNAVAILABLE";
373
- };
374
- /**
375
- * @public
376
- */
377
- export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
378
401
  /**
379
402
  * @public
380
403
  * @enum
@@ -465,8 +488,26 @@ export interface CallRecord {
465
488
  remotePhoneCountryCodeStr?: string | undefined;
466
489
  remotePhoneLocation?: string | undefined;
467
490
  callStatus?: ConversationStatus | undefined;
491
+ /**
492
+ * Please use `attachments.transcription.status` instead.
493
+ *
494
+ * @deprecated
495
+ * @public
496
+ */
468
497
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
498
+ /**
499
+ * Please use `attachments.transcription.language` instead.
500
+ *
501
+ * @deprecated
502
+ * @public
503
+ */
469
504
  transcriptionLanguage?: string | undefined;
505
+ /**
506
+ * Please use `attachments.transcription.seconds` instead.
507
+ *
508
+ * @deprecated
509
+ * @public
510
+ */
470
511
  transcriptionSeconds?: number | undefined;
471
512
  /**
472
513
  * Consider to use `attachments` instead.
@@ -1559,8 +1600,26 @@ export interface CallAnalyticsLiveProgressEventFlow {
1559
1600
  remotePhoneCountryCodeStr?: string | undefined;
1560
1601
  remotePhoneLocation?: string | undefined;
1561
1602
  callStatus?: ConversationStatus | undefined;
1603
+ /**
1604
+ * Please use `attachments.transcription.status` instead.
1605
+ *
1606
+ * @deprecated
1607
+ * @public
1608
+ */
1562
1609
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1610
+ /**
1611
+ * Please use `attachments.transcription.language` instead.
1612
+ *
1613
+ * @deprecated
1614
+ * @public
1615
+ */
1563
1616
  transcriptionLanguage?: string | undefined;
1617
+ /**
1618
+ * Please use `attachments.transcription.seconds` instead.
1619
+ *
1620
+ * @deprecated
1621
+ * @public
1622
+ */
1564
1623
  transcriptionSeconds?: number | undefined;
1565
1624
  /**
1566
1625
  * Consider to use `attachments` instead.
@@ -1716,8 +1775,26 @@ export interface CallAnalyticsRecordEventFlow {
1716
1775
  remotePhoneCountryCodeStr?: string | undefined;
1717
1776
  remotePhoneLocation?: string | undefined;
1718
1777
  callStatus?: ConversationStatus | undefined;
1778
+ /**
1779
+ * Please use `attachments.transcription.status` instead.
1780
+ *
1781
+ * @deprecated
1782
+ * @public
1783
+ */
1719
1784
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1785
+ /**
1786
+ * Please use `attachments.transcription.language` instead.
1787
+ *
1788
+ * @deprecated
1789
+ * @public
1790
+ */
1720
1791
  transcriptionLanguage?: string | undefined;
1792
+ /**
1793
+ * Please use `attachments.transcription.seconds` instead.
1794
+ *
1795
+ * @deprecated
1796
+ * @public
1797
+ */
1721
1798
  transcriptionSeconds?: number | undefined;
1722
1799
  /**
1723
1800
  * Consider to use `attachments` instead.
@@ -1782,6 +1859,7 @@ export interface CallAnalyticsTranscriptionRecordEvent {
1782
1859
  */
1783
1860
  export declare const CallFlowAttachmentConsumeType: {
1784
1861
  readonly FAX: "fax";
1862
+ readonly TRANSCRIPTION: "transcription";
1785
1863
  readonly VOICEMAIL: "voicemail";
1786
1864
  };
1787
1865
  /**
@@ -1793,7 +1871,7 @@ export type CallFlowAttachmentConsumeType = typeof CallFlowAttachmentConsumeType
1793
1871
  */
1794
1872
  export interface CallAttachmentConsumeEventData {
1795
1873
  type: CallFlowAttachmentConsumeType;
1796
- url: string;
1874
+ url?: string | undefined;
1797
1875
  destinations?: (CallFlowAttachmentDestination)[] | undefined;
1798
1876
  status?: CallFlowAttachmentStatus | undefined;
1799
1877
  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.21",
4
+ "version": "1.1.23",
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",