@wildix/wda-stream-client 1.0.22 → 1.0.24
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 +26 -1
- package/dist-cjs/protocols/Aws_restJson1.js +25 -2
- package/dist-es/models/models_0.js +25 -0
- package/dist-es/protocols/Aws_restJson1.js +25 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +16 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +749 -1
- package/dist-types/commands/GetConversationsCommand.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +416 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceEventType = exports.ConferenceConsumeEventType = 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.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceEventType = exports.ConferenceConsumeEventType = 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.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
5
|
class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -326,6 +326,31 @@ exports.PresenceEventType = {
|
|
|
326
326
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
327
327
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
328
328
|
};
|
|
329
|
+
exports.WebhookEventType = {
|
|
330
|
+
CALL_COMPLETED: "call:completed",
|
|
331
|
+
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
332
|
+
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
333
|
+
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
334
|
+
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
335
|
+
CHAT_COMPLETED: "chat:completed",
|
|
336
|
+
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
337
|
+
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
338
|
+
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
339
|
+
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
340
|
+
CONFERENCE_COMPLETED: "conference:completed",
|
|
341
|
+
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
342
|
+
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
343
|
+
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
344
|
+
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
345
|
+
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
346
|
+
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
347
|
+
OLD_CALL_END: "call:end",
|
|
348
|
+
OLD_CALL_START: "call:start",
|
|
349
|
+
OLD_CALL_UPDATE: "call:update",
|
|
350
|
+
PRESENCE_CONFERENCE: "presence:conference",
|
|
351
|
+
PRESENCE_TELEPHONY: "presence:telephony",
|
|
352
|
+
PRESENCE_USER: "presence:user",
|
|
353
|
+
};
|
|
329
354
|
exports.WebsocketEvent = {
|
|
330
355
|
AUTHORIZED: "authorized",
|
|
331
356
|
BROADCAST: "broadcast",
|
|
@@ -117,7 +117,30 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
117
117
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
118
118
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
119
119
|
'PresenceEventType': smithy_client_1.expectString,
|
|
120
|
-
'
|
|
120
|
+
'WebhookCallCompletedEvent': smithy_client_1._json,
|
|
121
|
+
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
122
|
+
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
123
|
+
'WebhookCallLiveProgressEvent': smithy_client_1._json,
|
|
124
|
+
'WebhookCallLiveTranscriptionEvent': smithy_client_1._json,
|
|
125
|
+
'WebhookChatCompletedEvent': smithy_client_1._json,
|
|
126
|
+
'WebhookChatLiveCompletedEvent': smithy_client_1._json,
|
|
127
|
+
'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
|
|
128
|
+
'WebhookChatLiveProgressEvent': smithy_client_1._json,
|
|
129
|
+
'WebhookChatManagerMissedEvent': smithy_client_1._json,
|
|
130
|
+
'WebhookConferenceCompletedEvent': smithy_client_1._json,
|
|
131
|
+
'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
|
|
132
|
+
'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
|
|
133
|
+
'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
|
|
134
|
+
'WebhookConferenceLiveLeaveEvent': smithy_client_1._json,
|
|
135
|
+
'WebhookConferenceLiveProgressEvent': smithy_client_1._json,
|
|
136
|
+
'WebhookConferenceLiveTranscriptionEvent': smithy_client_1._json,
|
|
137
|
+
'WebhookOutdatedCallEndEvent': smithy_client_1._json,
|
|
138
|
+
'WebhookOutdatedCallStartEvent': smithy_client_1._json,
|
|
139
|
+
'WebhookOutdatedCallUpdateEvent': smithy_client_1._json,
|
|
140
|
+
'WebhookPresenceConferenceEvent': smithy_client_1._json,
|
|
141
|
+
'WebhookPresenceTelephonyEvent': smithy_client_1._json,
|
|
142
|
+
'WebhookPresenceUserEvent': smithy_client_1._json,
|
|
143
|
+
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
121
144
|
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
122
145
|
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
123
146
|
});
|
|
@@ -238,7 +261,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
238
261
|
'type': smithy_client_1.expectString,
|
|
239
262
|
});
|
|
240
263
|
};
|
|
241
|
-
const
|
|
264
|
+
const de_WebsocketConversationsBroadcastEvent = (output, context) => {
|
|
242
265
|
return (0, smithy_client_1.take)(output, {
|
|
243
266
|
'data': (_) => de_Document(_, context),
|
|
244
267
|
'event': smithy_client_1.expectString,
|
|
@@ -321,6 +321,31 @@ export const PresenceEventType = {
|
|
|
321
321
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
322
322
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
323
323
|
};
|
|
324
|
+
export const WebhookEventType = {
|
|
325
|
+
CALL_COMPLETED: "call:completed",
|
|
326
|
+
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
327
|
+
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
328
|
+
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
329
|
+
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
330
|
+
CHAT_COMPLETED: "chat:completed",
|
|
331
|
+
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
332
|
+
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
333
|
+
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
334
|
+
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
335
|
+
CONFERENCE_COMPLETED: "conference:completed",
|
|
336
|
+
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
337
|
+
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
338
|
+
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
339
|
+
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
340
|
+
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
341
|
+
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
342
|
+
OLD_CALL_END: "call:end",
|
|
343
|
+
OLD_CALL_START: "call:start",
|
|
344
|
+
OLD_CALL_UPDATE: "call:update",
|
|
345
|
+
PRESENCE_CONFERENCE: "presence:conference",
|
|
346
|
+
PRESENCE_TELEPHONY: "presence:telephony",
|
|
347
|
+
PRESENCE_USER: "presence:user",
|
|
348
|
+
};
|
|
324
349
|
export const WebsocketEvent = {
|
|
325
350
|
AUTHORIZED: "authorized",
|
|
326
351
|
BROADCAST: "broadcast",
|
|
@@ -109,7 +109,30 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
109
109
|
'PresenceAnalyticsStatusEvent': _json,
|
|
110
110
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
111
111
|
'PresenceEventType': __expectString,
|
|
112
|
-
'
|
|
112
|
+
'WebhookCallCompletedEvent': _json,
|
|
113
|
+
'WebhookCallLiveCompletedEvent': _json,
|
|
114
|
+
'WebhookCallLiveInterruptedEvent': _json,
|
|
115
|
+
'WebhookCallLiveProgressEvent': _json,
|
|
116
|
+
'WebhookCallLiveTranscriptionEvent': _json,
|
|
117
|
+
'WebhookChatCompletedEvent': _json,
|
|
118
|
+
'WebhookChatLiveCompletedEvent': _json,
|
|
119
|
+
'WebhookChatLiveInterruptedEvent': _json,
|
|
120
|
+
'WebhookChatLiveProgressEvent': _json,
|
|
121
|
+
'WebhookChatManagerMissedEvent': _json,
|
|
122
|
+
'WebhookConferenceCompletedEvent': _json,
|
|
123
|
+
'WebhookConferenceLiveCompletedEvent': _json,
|
|
124
|
+
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
125
|
+
'WebhookConferenceLiveJoinEvent': _json,
|
|
126
|
+
'WebhookConferenceLiveLeaveEvent': _json,
|
|
127
|
+
'WebhookConferenceLiveProgressEvent': _json,
|
|
128
|
+
'WebhookConferenceLiveTranscriptionEvent': _json,
|
|
129
|
+
'WebhookOutdatedCallEndEvent': _json,
|
|
130
|
+
'WebhookOutdatedCallStartEvent': _json,
|
|
131
|
+
'WebhookOutdatedCallUpdateEvent': _json,
|
|
132
|
+
'WebhookPresenceConferenceEvent': _json,
|
|
133
|
+
'WebhookPresenceTelephonyEvent': _json,
|
|
134
|
+
'WebhookPresenceUserEvent': _json,
|
|
135
|
+
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
113
136
|
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
114
137
|
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
115
138
|
});
|
|
@@ -227,7 +250,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
227
250
|
'type': __expectString,
|
|
228
251
|
});
|
|
229
252
|
};
|
|
230
|
-
const
|
|
253
|
+
const de_WebsocketConversationsBroadcastEvent = (output, context) => {
|
|
231
254
|
return take(output, {
|
|
232
255
|
'data': (_) => de_Document(_, context),
|
|
233
256
|
'event': __expectString,
|
|
@@ -278,6 +278,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
278
278
|
* reason: "pause" || "hold",
|
|
279
279
|
* },
|
|
280
280
|
* ],
|
|
281
|
+
* flowId: Number("int"), // required
|
|
281
282
|
* },
|
|
282
283
|
* },
|
|
283
284
|
* callAttachment: { // CallAttachmentConsumeEvent
|
|
@@ -450,7 +451,10 @@ declare const ConsumeEventCommand_base: {
|
|
|
450
451
|
* email: "STRING_VALUE",
|
|
451
452
|
* phone: "STRING_VALUE",
|
|
452
453
|
* picture: "STRING_VALUE",
|
|
454
|
+
* locale: "STRING_VALUE",
|
|
455
|
+
* timeZone: "STRING_VALUE",
|
|
453
456
|
* company: "STRING_VALUE",
|
|
457
|
+
* bot: true || false,
|
|
454
458
|
* pbxDomain: "STRING_VALUE",
|
|
455
459
|
* pbxPort: "STRING_VALUE",
|
|
456
460
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -468,7 +472,10 @@ declare const ConsumeEventCommand_base: {
|
|
|
468
472
|
* email: "STRING_VALUE",
|
|
469
473
|
* phone: "STRING_VALUE",
|
|
470
474
|
* picture: "STRING_VALUE",
|
|
475
|
+
* locale: "STRING_VALUE",
|
|
476
|
+
* timeZone: "STRING_VALUE",
|
|
471
477
|
* company: "STRING_VALUE",
|
|
478
|
+
* bot: true || false,
|
|
472
479
|
* pbxDomain: "STRING_VALUE",
|
|
473
480
|
* pbxPort: "STRING_VALUE",
|
|
474
481
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -489,7 +496,10 @@ declare const ConsumeEventCommand_base: {
|
|
|
489
496
|
* email: "STRING_VALUE",
|
|
490
497
|
* phone: "STRING_VALUE",
|
|
491
498
|
* picture: "STRING_VALUE",
|
|
499
|
+
* locale: "STRING_VALUE",
|
|
500
|
+
* timeZone: "STRING_VALUE",
|
|
492
501
|
* company: "STRING_VALUE",
|
|
502
|
+
* bot: true || false,
|
|
493
503
|
* pbxDomain: "STRING_VALUE",
|
|
494
504
|
* pbxPort: "STRING_VALUE",
|
|
495
505
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -518,7 +528,10 @@ declare const ConsumeEventCommand_base: {
|
|
|
518
528
|
* email: "STRING_VALUE",
|
|
519
529
|
* phone: "STRING_VALUE",
|
|
520
530
|
* picture: "STRING_VALUE",
|
|
531
|
+
* locale: "STRING_VALUE",
|
|
532
|
+
* timeZone: "STRING_VALUE",
|
|
521
533
|
* company: "STRING_VALUE",
|
|
534
|
+
* bot: true || false,
|
|
522
535
|
* pbxDomain: "STRING_VALUE",
|
|
523
536
|
* pbxPort: "STRING_VALUE",
|
|
524
537
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -536,7 +549,10 @@ declare const ConsumeEventCommand_base: {
|
|
|
536
549
|
* email: "STRING_VALUE",
|
|
537
550
|
* phone: "STRING_VALUE",
|
|
538
551
|
* picture: "STRING_VALUE",
|
|
552
|
+
* locale: "STRING_VALUE",
|
|
553
|
+
* timeZone: "STRING_VALUE",
|
|
539
554
|
* company: "STRING_VALUE",
|
|
555
|
+
* bot: true || false,
|
|
540
556
|
* pbxDomain: "STRING_VALUE",
|
|
541
557
|
* pbxPort: "STRING_VALUE",
|
|
542
558
|
* pbxExtension: "STRING_VALUE",
|