@wildix/wda-stream-client 1.0.44 → 1.0.46
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 +9 -5
- package/dist-es/models/models_0.js +7 -3
- package/dist-types/commands/ConsumeEventCommand.d.ts +3 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +41 -25
- package/dist-types/commands/GetConversationsCommand.d.ts +18 -6
- package/dist-types/models/models_0.d.ts +28 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = void 0;
|
|
3
|
+
exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = 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.BadRequestException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
|
|
4
|
+
exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = void 0;
|
|
5
5
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
6
6
|
class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -65,9 +65,13 @@ exports.WhatsAppStatus = {
|
|
|
65
65
|
SENT: "SENT",
|
|
66
66
|
};
|
|
67
67
|
exports.CallRecordOwner = {
|
|
68
|
-
CALLEE: "
|
|
69
|
-
CALLER: "
|
|
70
|
-
SYSTEM: "
|
|
68
|
+
CALLEE: "callee",
|
|
69
|
+
CALLER: "caller",
|
|
70
|
+
SYSTEM: "system",
|
|
71
|
+
};
|
|
72
|
+
exports.CallFlowAttachmentStatus = {
|
|
73
|
+
ERROR: "error",
|
|
74
|
+
OK: "ok",
|
|
71
75
|
};
|
|
72
76
|
exports.CallRecordPauseReason = {
|
|
73
77
|
HOLD: "hold",
|
|
@@ -58,9 +58,13 @@ export const WhatsAppStatus = {
|
|
|
58
58
|
SENT: "SENT",
|
|
59
59
|
};
|
|
60
60
|
export const CallRecordOwner = {
|
|
61
|
-
CALLEE: "
|
|
62
|
-
CALLER: "
|
|
63
|
-
SYSTEM: "
|
|
61
|
+
CALLEE: "callee",
|
|
62
|
+
CALLER: "caller",
|
|
63
|
+
SYSTEM: "system",
|
|
64
|
+
};
|
|
65
|
+
export const CallFlowAttachmentStatus = {
|
|
66
|
+
ERROR: "error",
|
|
67
|
+
OK: "ok",
|
|
64
68
|
};
|
|
65
69
|
export const CallRecordPauseReason = {
|
|
66
70
|
HOLD: "hold",
|
|
@@ -259,7 +259,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
259
259
|
* data: { // CallRecordStartConsumeEventData
|
|
260
260
|
* fileName: "STRING_VALUE", // required
|
|
261
261
|
* start: Number("long"), // required
|
|
262
|
-
* owner: "
|
|
262
|
+
* owner: "callee" || "caller" || "system", // required
|
|
263
263
|
* },
|
|
264
264
|
* },
|
|
265
265
|
* callRecordStop: { // CallRecordStopConsumeEvent
|
|
@@ -303,6 +303,8 @@ declare const ConsumeEventCommand_base: {
|
|
|
303
303
|
* groupName: "STRING_VALUE",
|
|
304
304
|
* },
|
|
305
305
|
* ],
|
|
306
|
+
* status: "ok" || "error",
|
|
307
|
+
* error: "STRING_VALUE",
|
|
306
308
|
* },
|
|
307
309
|
* },
|
|
308
310
|
* callTranscription: { // CallTranscribeConsumeEvent
|
|
@@ -195,7 +195,7 @@ declare const DescribeEventCommand_base: {
|
|
|
195
195
|
* // fileName: "STRING_VALUE", // required
|
|
196
196
|
* // start: Number("long"), // required
|
|
197
197
|
* // end: Number("long"), // required
|
|
198
|
-
* // owner: "
|
|
198
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
199
199
|
* // url: "STRING_VALUE", // required
|
|
200
200
|
* // pauses: [ // CallRecordPausesList // required
|
|
201
201
|
* // { // CallRecordPause
|
|
@@ -236,7 +236,7 @@ declare const DescribeEventCommand_base: {
|
|
|
236
236
|
* // fileName: "STRING_VALUE", // required
|
|
237
237
|
* // start: Number("long"), // required
|
|
238
238
|
* // end: Number("long"), // required
|
|
239
|
-
* // owner: "
|
|
239
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
240
240
|
* // url: "STRING_VALUE", // required
|
|
241
241
|
* // pauses: [ // required
|
|
242
242
|
* // {
|
|
@@ -248,7 +248,7 @@ declare const DescribeEventCommand_base: {
|
|
|
248
248
|
* // },
|
|
249
249
|
* // fax: { // CallFlowFax
|
|
250
250
|
* // url: "STRING_VALUE", // required
|
|
251
|
-
* // status: "
|
|
251
|
+
* // status: "ok" || "error",
|
|
252
252
|
* // destinations: [
|
|
253
253
|
* // {
|
|
254
254
|
* // phone: "STRING_VALUE",
|
|
@@ -261,12 +261,24 @@ declare const DescribeEventCommand_base: {
|
|
|
261
261
|
* // groupName: "STRING_VALUE",
|
|
262
262
|
* // },
|
|
263
263
|
* // ],
|
|
264
|
-
* // owner: "
|
|
265
|
-
* //
|
|
264
|
+
* // owner: "callee" || "caller" || "system",
|
|
265
|
+
* // error: "STRING_VALUE",
|
|
266
266
|
* // },
|
|
267
267
|
* // voicemail: { // CallFlowVoicemail
|
|
268
268
|
* // url: "STRING_VALUE", // required
|
|
269
|
-
* //
|
|
269
|
+
* // destinations: [
|
|
270
|
+
* // {
|
|
271
|
+
* // phone: "STRING_VALUE",
|
|
272
|
+
* // name: "STRING_VALUE",
|
|
273
|
+
* // email: "STRING_VALUE",
|
|
274
|
+
* // userId: "STRING_VALUE",
|
|
275
|
+
* // userExtension: "STRING_VALUE",
|
|
276
|
+
* // userDepartment: "STRING_VALUE",
|
|
277
|
+
* // groupId: "STRING_VALUE",
|
|
278
|
+
* // groupName: "STRING_VALUE",
|
|
279
|
+
* // },
|
|
280
|
+
* // ],
|
|
281
|
+
* // owner: "callee" || "caller" || "system",
|
|
270
282
|
* // },
|
|
271
283
|
* // },
|
|
272
284
|
* // ],
|
|
@@ -413,7 +425,7 @@ declare const DescribeEventCommand_base: {
|
|
|
413
425
|
* // fileName: "STRING_VALUE", // required
|
|
414
426
|
* // start: Number("long"), // required
|
|
415
427
|
* // end: Number("long"), // required
|
|
416
|
-
* // owner: "
|
|
428
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
417
429
|
* // url: "STRING_VALUE", // required
|
|
418
430
|
* // pauses: [ // required
|
|
419
431
|
* // {
|
|
@@ -454,7 +466,7 @@ declare const DescribeEventCommand_base: {
|
|
|
454
466
|
* // fileName: "STRING_VALUE", // required
|
|
455
467
|
* // start: Number("long"), // required
|
|
456
468
|
* // end: Number("long"), // required
|
|
457
|
-
* // owner: "
|
|
469
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
458
470
|
* // url: "STRING_VALUE", // required
|
|
459
471
|
* // pauses: [ // required
|
|
460
472
|
* // {
|
|
@@ -466,7 +478,7 @@ declare const DescribeEventCommand_base: {
|
|
|
466
478
|
* // },
|
|
467
479
|
* // fax: {
|
|
468
480
|
* // url: "STRING_VALUE", // required
|
|
469
|
-
* // status: "
|
|
481
|
+
* // status: "ok" || "error",
|
|
470
482
|
* // destinations: [
|
|
471
483
|
* // {
|
|
472
484
|
* // phone: "STRING_VALUE",
|
|
@@ -479,12 +491,13 @@ declare const DescribeEventCommand_base: {
|
|
|
479
491
|
* // groupName: "STRING_VALUE",
|
|
480
492
|
* // },
|
|
481
493
|
* // ],
|
|
482
|
-
* // owner: "
|
|
483
|
-
* //
|
|
494
|
+
* // owner: "callee" || "caller" || "system",
|
|
495
|
+
* // error: "STRING_VALUE",
|
|
484
496
|
* // },
|
|
485
497
|
* // voicemail: {
|
|
486
498
|
* // url: "STRING_VALUE", // required
|
|
487
|
-
* //
|
|
499
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
500
|
+
* // owner: "callee" || "caller" || "system",
|
|
488
501
|
* // },
|
|
489
502
|
* // },
|
|
490
503
|
* // ],
|
|
@@ -1132,7 +1145,7 @@ declare const DescribeEventCommand_base: {
|
|
|
1132
1145
|
* // fileName: "STRING_VALUE", // required
|
|
1133
1146
|
* // start: Number("long"), // required
|
|
1134
1147
|
* // end: Number("long"), // required
|
|
1135
|
-
* // owner: "
|
|
1148
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
1136
1149
|
* // url: "STRING_VALUE", // required
|
|
1137
1150
|
* // pauses: [ // required
|
|
1138
1151
|
* // {
|
|
@@ -1161,14 +1174,15 @@ declare const DescribeEventCommand_base: {
|
|
|
1161
1174
|
* // recording: "<CallFlowRecording>",
|
|
1162
1175
|
* // fax: {
|
|
1163
1176
|
* // url: "STRING_VALUE", // required
|
|
1164
|
-
* // status: "
|
|
1177
|
+
* // status: "ok" || "error",
|
|
1165
1178
|
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1166
|
-
* // owner: "
|
|
1167
|
-
* //
|
|
1179
|
+
* // owner: "callee" || "caller" || "system",
|
|
1180
|
+
* // error: "STRING_VALUE",
|
|
1168
1181
|
* // },
|
|
1169
1182
|
* // voicemail: {
|
|
1170
1183
|
* // url: "STRING_VALUE", // required
|
|
1171
|
-
* //
|
|
1184
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1185
|
+
* // owner: "callee" || "caller" || "system",
|
|
1172
1186
|
* // },
|
|
1173
1187
|
* // },
|
|
1174
1188
|
* // ],
|
|
@@ -1300,14 +1314,15 @@ declare const DescribeEventCommand_base: {
|
|
|
1300
1314
|
* // recording: "<CallFlowRecording>",
|
|
1301
1315
|
* // fax: {
|
|
1302
1316
|
* // url: "STRING_VALUE", // required
|
|
1303
|
-
* // status: "
|
|
1317
|
+
* // status: "ok" || "error",
|
|
1304
1318
|
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1305
|
-
* // owner: "
|
|
1306
|
-
* //
|
|
1319
|
+
* // owner: "callee" || "caller" || "system",
|
|
1320
|
+
* // error: "STRING_VALUE",
|
|
1307
1321
|
* // },
|
|
1308
1322
|
* // voicemail: {
|
|
1309
1323
|
* // url: "STRING_VALUE", // required
|
|
1310
|
-
* //
|
|
1324
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1325
|
+
* // owner: "callee" || "caller" || "system",
|
|
1311
1326
|
* // },
|
|
1312
1327
|
* // },
|
|
1313
1328
|
* // ],
|
|
@@ -1386,14 +1401,15 @@ declare const DescribeEventCommand_base: {
|
|
|
1386
1401
|
* // recording: "<CallFlowRecording>",
|
|
1387
1402
|
* // fax: {
|
|
1388
1403
|
* // url: "STRING_VALUE", // required
|
|
1389
|
-
* // status: "
|
|
1404
|
+
* // status: "ok" || "error",
|
|
1390
1405
|
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1391
|
-
* // owner: "
|
|
1392
|
-
* //
|
|
1406
|
+
* // owner: "callee" || "caller" || "system",
|
|
1407
|
+
* // error: "STRING_VALUE",
|
|
1393
1408
|
* // },
|
|
1394
1409
|
* // voicemail: {
|
|
1395
1410
|
* // url: "STRING_VALUE", // required
|
|
1396
|
-
* //
|
|
1411
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
1412
|
+
* // owner: "callee" || "caller" || "system",
|
|
1397
1413
|
* // },
|
|
1398
1414
|
* // },
|
|
1399
1415
|
* // ],
|
|
@@ -123,7 +123,7 @@ declare const GetConversationsCommand_base: {
|
|
|
123
123
|
* // fileName: "STRING_VALUE", // required
|
|
124
124
|
* // start: Number("long"), // required
|
|
125
125
|
* // end: Number("long"), // required
|
|
126
|
-
* // owner: "
|
|
126
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
127
127
|
* // url: "STRING_VALUE", // required
|
|
128
128
|
* // pauses: [ // CallRecordPausesList // required
|
|
129
129
|
* // { // CallRecordPause
|
|
@@ -164,7 +164,7 @@ declare const GetConversationsCommand_base: {
|
|
|
164
164
|
* // fileName: "STRING_VALUE", // required
|
|
165
165
|
* // start: Number("long"), // required
|
|
166
166
|
* // end: Number("long"), // required
|
|
167
|
-
* // owner: "
|
|
167
|
+
* // owner: "callee" || "caller" || "system", // required
|
|
168
168
|
* // url: "STRING_VALUE", // required
|
|
169
169
|
* // pauses: [ // required
|
|
170
170
|
* // {
|
|
@@ -176,7 +176,7 @@ declare const GetConversationsCommand_base: {
|
|
|
176
176
|
* // },
|
|
177
177
|
* // fax: { // CallFlowFax
|
|
178
178
|
* // url: "STRING_VALUE", // required
|
|
179
|
-
* // status: "
|
|
179
|
+
* // status: "ok" || "error",
|
|
180
180
|
* // destinations: [
|
|
181
181
|
* // {
|
|
182
182
|
* // phone: "STRING_VALUE",
|
|
@@ -189,12 +189,24 @@ declare const GetConversationsCommand_base: {
|
|
|
189
189
|
* // groupName: "STRING_VALUE",
|
|
190
190
|
* // },
|
|
191
191
|
* // ],
|
|
192
|
-
* // owner: "
|
|
193
|
-
* //
|
|
192
|
+
* // owner: "callee" || "caller" || "system",
|
|
193
|
+
* // error: "STRING_VALUE",
|
|
194
194
|
* // },
|
|
195
195
|
* // voicemail: { // CallFlowVoicemail
|
|
196
196
|
* // url: "STRING_VALUE", // required
|
|
197
|
-
* //
|
|
197
|
+
* // destinations: [
|
|
198
|
+
* // {
|
|
199
|
+
* // phone: "STRING_VALUE",
|
|
200
|
+
* // name: "STRING_VALUE",
|
|
201
|
+
* // email: "STRING_VALUE",
|
|
202
|
+
* // userId: "STRING_VALUE",
|
|
203
|
+
* // userExtension: "STRING_VALUE",
|
|
204
|
+
* // userDepartment: "STRING_VALUE",
|
|
205
|
+
* // groupId: "STRING_VALUE",
|
|
206
|
+
* // groupName: "STRING_VALUE",
|
|
207
|
+
* // },
|
|
208
|
+
* // ],
|
|
209
|
+
* // owner: "callee" || "caller" || "system",
|
|
198
210
|
* // },
|
|
199
211
|
* // },
|
|
200
212
|
* // ],
|
|
@@ -132,23 +132,43 @@ export interface CallFlowAttachmentDestination {
|
|
|
132
132
|
* @enum
|
|
133
133
|
*/
|
|
134
134
|
export declare const CallRecordOwner: {
|
|
135
|
-
readonly CALLEE: "
|
|
136
|
-
readonly CALLER: "
|
|
137
|
-
readonly SYSTEM: "
|
|
135
|
+
readonly CALLEE: "callee";
|
|
136
|
+
readonly CALLER: "caller";
|
|
137
|
+
readonly SYSTEM: "system";
|
|
138
138
|
};
|
|
139
139
|
/**
|
|
140
140
|
* @public
|
|
141
141
|
*/
|
|
142
142
|
export type CallRecordOwner = typeof CallRecordOwner[keyof typeof CallRecordOwner];
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
* @enum
|
|
146
|
+
*/
|
|
147
|
+
export declare const CallFlowAttachmentStatus: {
|
|
148
|
+
readonly ERROR: "error";
|
|
149
|
+
readonly OK: "ok";
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
export type CallFlowAttachmentStatus = typeof CallFlowAttachmentStatus[keyof typeof CallFlowAttachmentStatus];
|
|
143
155
|
/**
|
|
144
156
|
* @public
|
|
145
157
|
*/
|
|
146
158
|
export interface CallFlowFax {
|
|
147
159
|
url: string;
|
|
148
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Fax delivery status
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
status?: CallFlowAttachmentStatus;
|
|
149
165
|
destinations?: (CallFlowAttachmentDestination)[];
|
|
150
166
|
owner?: CallRecordOwner;
|
|
151
|
-
|
|
167
|
+
/**
|
|
168
|
+
* Text with the reason for the error in case of unsuccessful fax delivery
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
error?: string;
|
|
152
172
|
}
|
|
153
173
|
/**
|
|
154
174
|
* @public
|
|
@@ -186,6 +206,7 @@ export interface CallFlowRecording {
|
|
|
186
206
|
*/
|
|
187
207
|
export interface CallFlowVoicemail {
|
|
188
208
|
url: string;
|
|
209
|
+
destinations?: (CallFlowAttachmentDestination)[];
|
|
189
210
|
owner?: CallRecordOwner;
|
|
190
211
|
}
|
|
191
212
|
/**
|
|
@@ -1078,6 +1099,8 @@ export interface CallAttachmentConsumeEventData {
|
|
|
1078
1099
|
type: CallFlowAttachmentConsumeType;
|
|
1079
1100
|
url: string;
|
|
1080
1101
|
destinations?: (CallFlowAttachmentDestination)[];
|
|
1102
|
+
status?: CallFlowAttachmentStatus;
|
|
1103
|
+
error?: string;
|
|
1081
1104
|
}
|
|
1082
1105
|
/**
|
|
1083
1106
|
* @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.0.
|
|
4
|
+
"version": "1.0.46",
|
|
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",
|