@wildix/wda-stream-client 1.1.23 → 1.1.25

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.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;
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;
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,11 +64,6 @@ 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
- };
72
67
  var CallFlowAttachment;
73
68
  (function (CallFlowAttachment) {
74
69
  CallFlowAttachment.visit = (value, visitor) => {
@@ -78,8 +73,6 @@ var CallFlowAttachment;
78
73
  return visitor.fax(value.fax);
79
74
  if (value.voicemail !== undefined)
80
75
  return visitor.voicemail(value.voicemail);
81
- if (value.transcription !== undefined)
82
- return visitor.transcription(value.transcription);
83
76
  return visitor._(value.$unknown[0], value.$unknown[1]);
84
77
  };
85
78
  })(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
@@ -111,6 +104,11 @@ exports.License = {
111
104
  UC: "uc",
112
105
  XBEES: "x-bees",
113
106
  };
107
+ exports.CallFlowTranscriptionStatus = {
108
+ AVAILABLE: "AVAILABLE",
109
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
110
+ UNAVAILABLE: "UNAVAILABLE",
111
+ };
114
112
  exports.RecordType = {
115
113
  CALL: "call",
116
114
  CALL_TRANSCRIPTION: "call_transcription",
@@ -58,11 +58,6 @@ 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
- };
66
61
  export var CallFlowAttachment;
67
62
  (function (CallFlowAttachment) {
68
63
  CallFlowAttachment.visit = (value, visitor) => {
@@ -72,8 +67,6 @@ export var CallFlowAttachment;
72
67
  return visitor.fax(value.fax);
73
68
  if (value.voicemail !== undefined)
74
69
  return visitor.voicemail(value.voicemail);
75
- if (value.transcription !== undefined)
76
- return visitor.transcription(value.transcription);
77
70
  return visitor._(value.$unknown[0], value.$unknown[1]);
78
71
  };
79
72
  })(CallFlowAttachment || (CallFlowAttachment = {}));
@@ -105,6 +98,11 @@ export const License = {
105
98
  UC: "uc",
106
99
  XBEES: "x-bees",
107
100
  };
101
+ export const CallFlowTranscriptionStatus = {
102
+ AVAILABLE: "AVAILABLE",
103
+ POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
104
+ UNAVAILABLE: "UNAVAILABLE",
105
+ };
108
106
  export const RecordType = {
109
107
  CALL: "call",
110
108
  CALL_TRANSCRIPTION: "call_transcription",
@@ -218,6 +218,7 @@ declare const ConsumeEventCommand_base: {
218
218
  * reason: "STRING_VALUE",
219
219
  * transferType: "STRING_VALUE",
220
220
  * mergeWith: "STRING_VALUE",
221
+ * postTranscribe: true || false,
221
222
  * },
222
223
  * },
223
224
  * callLive: { // CallLiveConsumeEvent
@@ -270,6 +271,7 @@ declare const ConsumeEventCommand_base: {
270
271
  * cause: "STRING_VALUE",
271
272
  * causeStr: "STRING_VALUE",
272
273
  * who: "caller" || "callee",
274
+ * postTranscribe: true || false,
273
275
  * },
274
276
  * },
275
277
  * callRecordStart: { // CallRecordStartConsumeEvent
@@ -312,7 +314,7 @@ declare const ConsumeEventCommand_base: {
312
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
313
315
  * data: { // CallAttachmentConsumeEventData
314
316
  * type: "voicemail" || "fax" || "transcription", // required
315
- * url: "STRING_VALUE",
317
+ * url: "STRING_VALUE", // required
316
318
  * destinations: [ // CallFlowAttachmentDestinationList
317
319
  * { // CallFlowAttachmentDestination
318
320
  * phone: "STRING_VALUE",
@@ -217,18 +217,6 @@ 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
- * // ],
232
220
  * // },
233
221
  * // ],
234
222
  * // mergeWith: "STRING_VALUE",
@@ -244,8 +232,8 @@ declare const DescribeEventCommand_base: {
244
232
  * // transcriptionSeconds: Number("int"),
245
233
  * // attachment: "STRING_VALUE",
246
234
  * // attachmentType: "VOICEMAIL" || "FAX",
247
- * // attachmentDestinations: [
248
- * // {
235
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
236
+ * // { // CallFlowAttachmentDestination
249
237
  * // phone: "STRING_VALUE",
250
238
  * // name: "STRING_VALUE",
251
239
  * // email: "STRING_VALUE",
@@ -271,26 +259,41 @@ declare const DescribeEventCommand_base: {
271
259
  * // reason: "pause" || "hold",
272
260
  * // },
273
261
  * // ],
274
- * // destinations: "<CallFlowAttachmentDestinationList>",
275
262
  * // },
276
263
  * // fax: { // CallFlowFax
277
264
  * // url: "STRING_VALUE", // required
278
265
  * // status: "ok" || "error",
279
- * // destinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
280
278
  * // owner: "callee" || "caller" || "system",
281
279
  * // error: "STRING_VALUE",
282
280
  * // },
283
281
  * // voicemail: { // CallFlowVoicemail
284
282
  * // url: "STRING_VALUE", // required
285
- * // destinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
286
295
  * // owner: "callee" || "caller" || "system",
287
296
  * // },
288
- * // transcription: { // CallFlowTranscription
289
- * // destinations: "<CallFlowAttachmentDestinationList>",
290
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
291
- * // language: "STRING_VALUE",
292
- * // seconds: Number("int"),
293
- * // },
294
297
  * // },
295
298
  * // ],
296
299
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -460,7 +463,6 @@ declare const DescribeEventCommand_base: {
460
463
  * // reason: "pause" || "hold",
461
464
  * // },
462
465
  * // ],
463
- * // destinations: "<CallFlowAttachmentDestinationList>",
464
466
  * // },
465
467
  * // ],
466
468
  * // mergeWith: "STRING_VALUE",
@@ -476,7 +478,18 @@ declare const DescribeEventCommand_base: {
476
478
  * // transcriptionSeconds: Number("int"),
477
479
  * // attachment: "STRING_VALUE",
478
480
  * // attachmentType: "VOICEMAIL" || "FAX",
479
- * // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
480
493
  * // attachments: [
481
494
  * // {// Union: only one key present
482
495
  * // recording: {
@@ -492,12 +505,22 @@ declare const DescribeEventCommand_base: {
492
505
  * // reason: "pause" || "hold",
493
506
  * // },
494
507
  * // ],
495
- * // destinations: "<CallFlowAttachmentDestinationList>",
496
508
  * // },
497
509
  * // fax: {
498
510
  * // url: "STRING_VALUE", // required
499
511
  * // status: "ok" || "error",
500
- * // destinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
501
524
  * // owner: "callee" || "caller" || "system",
502
525
  * // error: "STRING_VALUE",
503
526
  * // },
@@ -506,12 +529,6 @@ declare const DescribeEventCommand_base: {
506
529
  * // destinations: "<CallFlowAttachmentDestinationList>",
507
530
  * // owner: "callee" || "caller" || "system",
508
531
  * // },
509
- * // transcription: {
510
- * // destinations: "<CallFlowAttachmentDestinationList>",
511
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
512
- * // language: "STRING_VALUE",
513
- * // seconds: Number("int"),
514
- * // },
515
532
  * // },
516
533
  * // ],
517
534
  * // },
@@ -1487,7 +1504,6 @@ declare const DescribeEventCommand_base: {
1487
1504
  * // reason: "pause" || "hold",
1488
1505
  * // },
1489
1506
  * // ],
1490
- * // destinations: "<CallFlowAttachmentDestinationList>",
1491
1507
  * // },
1492
1508
  * // ],
1493
1509
  * // mergeWith: "STRING_VALUE",
@@ -1519,12 +1535,6 @@ declare const DescribeEventCommand_base: {
1519
1535
  * // destinations: "<CallFlowAttachmentDestinationList>",
1520
1536
  * // owner: "callee" || "caller" || "system",
1521
1537
  * // },
1522
- * // transcription: {
1523
- * // destinations: "<CallFlowAttachmentDestinationList>",
1524
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1525
- * // language: "STRING_VALUE",
1526
- * // seconds: Number("int"),
1527
- * // },
1528
1538
  * // },
1529
1539
  * // ],
1530
1540
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -1669,12 +1679,6 @@ declare const DescribeEventCommand_base: {
1669
1679
  * // destinations: "<CallFlowAttachmentDestinationList>",
1670
1680
  * // owner: "callee" || "caller" || "system",
1671
1681
  * // },
1672
- * // transcription: {
1673
- * // destinations: "<CallFlowAttachmentDestinationList>",
1674
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1675
- * // language: "STRING_VALUE",
1676
- * // seconds: Number("int"),
1677
- * // },
1678
1682
  * // },
1679
1683
  * // ],
1680
1684
  * // },
@@ -1763,12 +1767,6 @@ declare const DescribeEventCommand_base: {
1763
1767
  * // destinations: "<CallFlowAttachmentDestinationList>",
1764
1768
  * // owner: "callee" || "caller" || "system",
1765
1769
  * // },
1766
- * // transcription: {
1767
- * // destinations: "<CallFlowAttachmentDestinationList>",
1768
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
1769
- * // language: "STRING_VALUE",
1770
- * // seconds: Number("int"),
1771
- * // },
1772
1770
  * // },
1773
1771
  * // ],
1774
1772
  * // id: "STRING_VALUE", // required
@@ -144,18 +144,6 @@ 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
- * // ],
159
147
  * // },
160
148
  * // ],
161
149
  * // mergeWith: "STRING_VALUE",
@@ -171,8 +159,8 @@ declare const QueryConversationsCommand_base: {
171
159
  * // transcriptionSeconds: Number("int"),
172
160
  * // attachment: "STRING_VALUE",
173
161
  * // attachmentType: "VOICEMAIL" || "FAX",
174
- * // attachmentDestinations: [
175
- * // {
162
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
163
+ * // { // CallFlowAttachmentDestination
176
164
  * // phone: "STRING_VALUE",
177
165
  * // name: "STRING_VALUE",
178
166
  * // email: "STRING_VALUE",
@@ -198,26 +186,41 @@ declare const QueryConversationsCommand_base: {
198
186
  * // reason: "pause" || "hold",
199
187
  * // },
200
188
  * // ],
201
- * // destinations: "<CallFlowAttachmentDestinationList>",
202
189
  * // },
203
190
  * // fax: { // CallFlowFax
204
191
  * // url: "STRING_VALUE", // required
205
192
  * // status: "ok" || "error",
206
- * // destinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
207
205
  * // owner: "callee" || "caller" || "system",
208
206
  * // error: "STRING_VALUE",
209
207
  * // },
210
208
  * // voicemail: { // CallFlowVoicemail
211
209
  * // url: "STRING_VALUE", // required
212
- * // destinations: "<CallFlowAttachmentDestinationList>",
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
+ * // ],
213
222
  * // owner: "callee" || "caller" || "system",
214
223
  * // },
215
- * // transcription: { // CallFlowTranscription
216
- * // destinations: "<CallFlowAttachmentDestinationList>",
217
- * // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
218
- * // language: "STRING_VALUE",
219
- * // seconds: Number("int"),
220
- * // },
221
224
  * // },
222
225
  * // ],
223
226
  * // status: "CONNECTING" || "TALKING" || "HOLD", // required
@@ -204,29 +204,6 @@ 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
- destinations?: (CallFlowAttachmentDestination)[] | undefined;
227
- status?: CallFlowTranscriptionStatus | undefined;
228
- language?: string | undefined;
229
- seconds?: number | undefined;
230
207
  }
231
208
  /**
232
209
  * @public
@@ -239,7 +216,7 @@ export interface CallFlowVoicemail {
239
216
  /**
240
217
  * @public
241
218
  */
242
- export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.TranscriptionMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
219
+ export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
243
220
  /**
244
221
  * @public
245
222
  */
@@ -248,28 +225,18 @@ export declare namespace CallFlowAttachment {
248
225
  recording: CallFlowRecording;
249
226
  fax?: never;
250
227
  voicemail?: never;
251
- transcription?: never;
252
228
  $unknown?: never;
253
229
  }
254
230
  interface FaxMember {
255
231
  recording?: never;
256
232
  fax: CallFlowFax;
257
233
  voicemail?: never;
258
- transcription?: never;
259
234
  $unknown?: never;
260
235
  }
261
236
  interface VoicemailMember {
262
237
  recording?: never;
263
238
  fax?: never;
264
239
  voicemail: CallFlowVoicemail;
265
- transcription?: never;
266
- $unknown?: never;
267
- }
268
- interface TranscriptionMember {
269
- recording?: never;
270
- fax?: never;
271
- voicemail?: never;
272
- transcription: CallFlowTranscription;
273
240
  $unknown?: never;
274
241
  }
275
242
  /**
@@ -279,14 +246,12 @@ export declare namespace CallFlowAttachment {
279
246
  recording?: never;
280
247
  fax?: never;
281
248
  voicemail?: never;
282
- transcription?: never;
283
249
  $unknown: [string, any];
284
250
  }
285
251
  interface Visitor<T> {
286
252
  recording: (value: CallFlowRecording) => T;
287
253
  fax: (value: CallFlowFax) => T;
288
254
  voicemail: (value: CallFlowVoicemail) => T;
289
- transcription: (value: CallFlowTranscription) => T;
290
255
  _: (name: string, value: any) => T;
291
256
  }
292
257
  const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
@@ -398,6 +363,19 @@ export declare const License: {
398
363
  * @public
399
364
  */
400
365
  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];
401
379
  /**
402
380
  * @public
403
381
  * @enum
@@ -488,26 +466,8 @@ export interface CallRecord {
488
466
  remotePhoneCountryCodeStr?: string | undefined;
489
467
  remotePhoneLocation?: string | undefined;
490
468
  callStatus?: ConversationStatus | undefined;
491
- /**
492
- * Please use `attachments.transcription.status` instead.
493
- *
494
- * @deprecated
495
- * @public
496
- */
497
469
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
498
- /**
499
- * Please use `attachments.transcription.language` instead.
500
- *
501
- * @deprecated
502
- * @public
503
- */
504
470
  transcriptionLanguage?: string | undefined;
505
- /**
506
- * Please use `attachments.transcription.seconds` instead.
507
- *
508
- * @deprecated
509
- * @public
510
- */
511
471
  transcriptionSeconds?: number | undefined;
512
472
  /**
513
473
  * Consider to use `attachments` instead.
@@ -1600,26 +1560,8 @@ export interface CallAnalyticsLiveProgressEventFlow {
1600
1560
  remotePhoneCountryCodeStr?: string | undefined;
1601
1561
  remotePhoneLocation?: string | undefined;
1602
1562
  callStatus?: ConversationStatus | undefined;
1603
- /**
1604
- * Please use `attachments.transcription.status` instead.
1605
- *
1606
- * @deprecated
1607
- * @public
1608
- */
1609
1563
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1610
- /**
1611
- * Please use `attachments.transcription.language` instead.
1612
- *
1613
- * @deprecated
1614
- * @public
1615
- */
1616
1564
  transcriptionLanguage?: string | undefined;
1617
- /**
1618
- * Please use `attachments.transcription.seconds` instead.
1619
- *
1620
- * @deprecated
1621
- * @public
1622
- */
1623
1565
  transcriptionSeconds?: number | undefined;
1624
1566
  /**
1625
1567
  * Consider to use `attachments` instead.
@@ -1775,26 +1717,8 @@ export interface CallAnalyticsRecordEventFlow {
1775
1717
  remotePhoneCountryCodeStr?: string | undefined;
1776
1718
  remotePhoneLocation?: string | undefined;
1777
1719
  callStatus?: ConversationStatus | undefined;
1778
- /**
1779
- * Please use `attachments.transcription.status` instead.
1780
- *
1781
- * @deprecated
1782
- * @public
1783
- */
1784
1720
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
1785
- /**
1786
- * Please use `attachments.transcription.language` instead.
1787
- *
1788
- * @deprecated
1789
- * @public
1790
- */
1791
1721
  transcriptionLanguage?: string | undefined;
1792
- /**
1793
- * Please use `attachments.transcription.seconds` instead.
1794
- *
1795
- * @deprecated
1796
- * @public
1797
- */
1798
1722
  transcriptionSeconds?: number | undefined;
1799
1723
  /**
1800
1724
  * Consider to use `attachments` instead.
@@ -1871,7 +1795,7 @@ export type CallFlowAttachmentConsumeType = typeof CallFlowAttachmentConsumeType
1871
1795
  */
1872
1796
  export interface CallAttachmentConsumeEventData {
1873
1797
  type: CallFlowAttachmentConsumeType;
1874
- url?: string | undefined;
1798
+ url: string;
1875
1799
  destinations?: (CallFlowAttachmentDestination)[] | undefined;
1876
1800
  status?: CallFlowAttachmentStatus | undefined;
1877
1801
  error?: string | undefined;
@@ -1914,6 +1838,7 @@ export interface CallEndConsumeEventData {
1914
1838
  cause?: string | undefined;
1915
1839
  causeStr?: string | undefined;
1916
1840
  who?: CallEndConsume | undefined;
1841
+ postTranscribe?: boolean | undefined;
1917
1842
  }
1918
1843
  /**
1919
1844
  * @public
@@ -2076,6 +2001,7 @@ export interface CallSplitConsumeEventData {
2076
2001
  reason?: string | undefined;
2077
2002
  transferType?: string | undefined;
2078
2003
  mergeWith?: string | undefined;
2004
+ postTranscribe?: boolean | undefined;
2079
2005
  }
2080
2006
  /**
2081
2007
  * @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.1.23",
4
+ "version": "1.1.25",
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",