@wildix/wda-stream-client 1.1.24 → 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.
- package/dist-cjs/models/models_0.js +6 -9
- package/dist-es/models/models_0.js +5 -8
- package/dist-types/commands/ConsumeEventCommand.d.ts +3 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +57 -59
- package/dist-types/commands/QueryConversationsCommand.d.ts +27 -24
- package/dist-types/models/models_0.d.ts +17 -92
- package/package.json +1 -1
|
@@ -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.
|
|
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,14 +73,11 @@ 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 = {}));
|
|
86
79
|
exports.CallFlowAttachmentType = {
|
|
87
80
|
FAX: "FAX",
|
|
88
|
-
TRANSCRIPTION: "TRANSCRIPTION",
|
|
89
81
|
VOICEMAIL: "VOICEMAIL",
|
|
90
82
|
};
|
|
91
83
|
exports.CallParticipantRole = {
|
|
@@ -112,6 +104,11 @@ exports.License = {
|
|
|
112
104
|
UC: "uc",
|
|
113
105
|
XBEES: "x-bees",
|
|
114
106
|
};
|
|
107
|
+
exports.CallFlowTranscriptionStatus = {
|
|
108
|
+
AVAILABLE: "AVAILABLE",
|
|
109
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
110
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
+
};
|
|
115
112
|
exports.RecordType = {
|
|
116
113
|
CALL: "call",
|
|
117
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,14 +67,11 @@ 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 = {}));
|
|
80
73
|
export const CallFlowAttachmentType = {
|
|
81
74
|
FAX: "FAX",
|
|
82
|
-
TRANSCRIPTION: "TRANSCRIPTION",
|
|
83
75
|
VOICEMAIL: "VOICEMAIL",
|
|
84
76
|
};
|
|
85
77
|
export const CallParticipantRole = {
|
|
@@ -106,6 +98,11 @@ export const License = {
|
|
|
106
98
|
UC: "uc",
|
|
107
99
|
XBEES: "x-bees",
|
|
108
100
|
};
|
|
101
|
+
export const CallFlowTranscriptionStatus = {
|
|
102
|
+
AVAILABLE: "AVAILABLE",
|
|
103
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
+
};
|
|
109
106
|
export const RecordType = {
|
|
110
107
|
CALL: "call",
|
|
111
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",
|
|
@@ -243,9 +231,9 @@ declare const DescribeEventCommand_base: {
|
|
|
243
231
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
244
232
|
* // transcriptionSeconds: Number("int"),
|
|
245
233
|
* // attachment: "STRING_VALUE",
|
|
246
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
247
|
-
* // attachmentDestinations: [
|
|
248
|
-
* // {
|
|
234
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
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:
|
|
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:
|
|
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",
|
|
@@ -475,8 +477,19 @@ declare const DescribeEventCommand_base: {
|
|
|
475
477
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
476
478
|
* // transcriptionSeconds: Number("int"),
|
|
477
479
|
* // attachment: "STRING_VALUE",
|
|
478
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
479
|
-
* // attachmentDestinations:
|
|
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
|
+
* // ],
|
|
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:
|
|
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",
|
|
@@ -1502,7 +1518,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1502
1518
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
1503
1519
|
* // transcriptionSeconds: Number("int"),
|
|
1504
1520
|
* // attachment: "STRING_VALUE",
|
|
1505
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
1521
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
1506
1522
|
* // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
|
|
1507
1523
|
* // attachments: [
|
|
1508
1524
|
* // {// Union: only one key present
|
|
@@ -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
|
|
@@ -1652,7 +1662,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1652
1662
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
1653
1663
|
* // transcriptionSeconds: Number("int"),
|
|
1654
1664
|
* // attachment: "STRING_VALUE",
|
|
1655
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
1665
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
1656
1666
|
* // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
|
|
1657
1667
|
* // attachments: [
|
|
1658
1668
|
* // {// Union: only one key present
|
|
@@ -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
|
* // },
|
|
@@ -1746,7 +1750,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1746
1750
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
1747
1751
|
* // transcriptionSeconds: Number("int"),
|
|
1748
1752
|
* // attachment: "STRING_VALUE",
|
|
1749
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
1753
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
1750
1754
|
* // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
|
|
1751
1755
|
* // attachments: [
|
|
1752
1756
|
* // {// Union: only one key present
|
|
@@ -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
|
|
@@ -1836,7 +1834,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1836
1834
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
1837
1835
|
* // transcriptionSeconds: Number("int"),
|
|
1838
1836
|
* // attachment: "STRING_VALUE",
|
|
1839
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
1837
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
1840
1838
|
* // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
|
|
1841
1839
|
* // attachments: "<CallFlowAttachments>",
|
|
1842
1840
|
* // id: "STRING_VALUE", // required
|
|
@@ -1896,7 +1894,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1896
1894
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
1897
1895
|
* // transcriptionSeconds: Number("int"),
|
|
1898
1896
|
* // attachment: "STRING_VALUE",
|
|
1899
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
1897
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
1900
1898
|
* // attachmentDestinations: "<CallFlowAttachmentDestinationList>",
|
|
1901
1899
|
* // attachments: "<CallFlowAttachments>",
|
|
1902
1900
|
* // 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",
|
|
@@ -170,9 +158,9 @@ declare const QueryConversationsCommand_base: {
|
|
|
170
158
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
171
159
|
* // transcriptionSeconds: Number("int"),
|
|
172
160
|
* // attachment: "STRING_VALUE",
|
|
173
|
-
* // attachmentType: "VOICEMAIL" || "FAX"
|
|
174
|
-
* // attachmentDestinations: [
|
|
175
|
-
* // {
|
|
161
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
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:
|
|
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:
|
|
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.
|
|
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;
|
|
@@ -297,7 +262,6 @@ export declare namespace CallFlowAttachment {
|
|
|
297
262
|
*/
|
|
298
263
|
export declare const CallFlowAttachmentType: {
|
|
299
264
|
readonly FAX: "FAX";
|
|
300
|
-
readonly TRANSCRIPTION: "TRANSCRIPTION";
|
|
301
265
|
readonly VOICEMAIL: "VOICEMAIL";
|
|
302
266
|
};
|
|
303
267
|
/**
|
|
@@ -399,6 +363,19 @@ export declare const License: {
|
|
|
399
363
|
* @public
|
|
400
364
|
*/
|
|
401
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];
|
|
402
379
|
/**
|
|
403
380
|
* @public
|
|
404
381
|
* @enum
|
|
@@ -489,26 +466,8 @@ export interface CallRecord {
|
|
|
489
466
|
remotePhoneCountryCodeStr?: string | undefined;
|
|
490
467
|
remotePhoneLocation?: string | undefined;
|
|
491
468
|
callStatus?: ConversationStatus | undefined;
|
|
492
|
-
/**
|
|
493
|
-
* Please use `attachments.transcription.status` instead.
|
|
494
|
-
*
|
|
495
|
-
* @deprecated
|
|
496
|
-
* @public
|
|
497
|
-
*/
|
|
498
469
|
transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
|
|
499
|
-
/**
|
|
500
|
-
* Please use `attachments.transcription.language` instead.
|
|
501
|
-
*
|
|
502
|
-
* @deprecated
|
|
503
|
-
* @public
|
|
504
|
-
*/
|
|
505
470
|
transcriptionLanguage?: string | undefined;
|
|
506
|
-
/**
|
|
507
|
-
* Please use `attachments.transcription.seconds` instead.
|
|
508
|
-
*
|
|
509
|
-
* @deprecated
|
|
510
|
-
* @public
|
|
511
|
-
*/
|
|
512
471
|
transcriptionSeconds?: number | undefined;
|
|
513
472
|
/**
|
|
514
473
|
* Consider to use `attachments` instead.
|
|
@@ -1601,26 +1560,8 @@ export interface CallAnalyticsLiveProgressEventFlow {
|
|
|
1601
1560
|
remotePhoneCountryCodeStr?: string | undefined;
|
|
1602
1561
|
remotePhoneLocation?: string | undefined;
|
|
1603
1562
|
callStatus?: ConversationStatus | undefined;
|
|
1604
|
-
/**
|
|
1605
|
-
* Please use `attachments.transcription.status` instead.
|
|
1606
|
-
*
|
|
1607
|
-
* @deprecated
|
|
1608
|
-
* @public
|
|
1609
|
-
*/
|
|
1610
1563
|
transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
|
|
1611
|
-
/**
|
|
1612
|
-
* Please use `attachments.transcription.language` instead.
|
|
1613
|
-
*
|
|
1614
|
-
* @deprecated
|
|
1615
|
-
* @public
|
|
1616
|
-
*/
|
|
1617
1564
|
transcriptionLanguage?: string | undefined;
|
|
1618
|
-
/**
|
|
1619
|
-
* Please use `attachments.transcription.seconds` instead.
|
|
1620
|
-
*
|
|
1621
|
-
* @deprecated
|
|
1622
|
-
* @public
|
|
1623
|
-
*/
|
|
1624
1565
|
transcriptionSeconds?: number | undefined;
|
|
1625
1566
|
/**
|
|
1626
1567
|
* Consider to use `attachments` instead.
|
|
@@ -1776,26 +1717,8 @@ export interface CallAnalyticsRecordEventFlow {
|
|
|
1776
1717
|
remotePhoneCountryCodeStr?: string | undefined;
|
|
1777
1718
|
remotePhoneLocation?: string | undefined;
|
|
1778
1719
|
callStatus?: ConversationStatus | undefined;
|
|
1779
|
-
/**
|
|
1780
|
-
* Please use `attachments.transcription.status` instead.
|
|
1781
|
-
*
|
|
1782
|
-
* @deprecated
|
|
1783
|
-
* @public
|
|
1784
|
-
*/
|
|
1785
1720
|
transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
|
|
1786
|
-
/**
|
|
1787
|
-
* Please use `attachments.transcription.language` instead.
|
|
1788
|
-
*
|
|
1789
|
-
* @deprecated
|
|
1790
|
-
* @public
|
|
1791
|
-
*/
|
|
1792
1721
|
transcriptionLanguage?: string | undefined;
|
|
1793
|
-
/**
|
|
1794
|
-
* Please use `attachments.transcription.seconds` instead.
|
|
1795
|
-
*
|
|
1796
|
-
* @deprecated
|
|
1797
|
-
* @public
|
|
1798
|
-
*/
|
|
1799
1722
|
transcriptionSeconds?: number | undefined;
|
|
1800
1723
|
/**
|
|
1801
1724
|
* Consider to use `attachments` instead.
|
|
@@ -1872,7 +1795,7 @@ export type CallFlowAttachmentConsumeType = typeof CallFlowAttachmentConsumeType
|
|
|
1872
1795
|
*/
|
|
1873
1796
|
export interface CallAttachmentConsumeEventData {
|
|
1874
1797
|
type: CallFlowAttachmentConsumeType;
|
|
1875
|
-
url
|
|
1798
|
+
url: string;
|
|
1876
1799
|
destinations?: (CallFlowAttachmentDestination)[] | undefined;
|
|
1877
1800
|
status?: CallFlowAttachmentStatus | undefined;
|
|
1878
1801
|
error?: string | undefined;
|
|
@@ -1915,6 +1838,7 @@ export interface CallEndConsumeEventData {
|
|
|
1915
1838
|
cause?: string | undefined;
|
|
1916
1839
|
causeStr?: string | undefined;
|
|
1917
1840
|
who?: CallEndConsume | undefined;
|
|
1841
|
+
postTranscribe?: boolean | undefined;
|
|
1918
1842
|
}
|
|
1919
1843
|
/**
|
|
1920
1844
|
* @public
|
|
@@ -2077,6 +2001,7 @@ export interface CallSplitConsumeEventData {
|
|
|
2077
2001
|
reason?: string | undefined;
|
|
2078
2002
|
transferType?: string | undefined;
|
|
2079
2003
|
mergeWith?: string | undefined;
|
|
2004
|
+
postTranscribe?: boolean | undefined;
|
|
2080
2005
|
}
|
|
2081
2006
|
/**
|
|
2082
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.
|
|
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",
|