@wildix/wda-stream-client 1.0.21 → 1.0.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.
- package/dist-cjs/models/models_0.js +33 -43
- package/dist-cjs/protocols/Aws_restJson1.js +3 -87
- package/dist-es/models/models_0.js +32 -42
- package/dist-es/protocols/Aws_restJson1.js +4 -88
- package/dist-types/commands/ConsumeEventCommand.d.ts +119 -33
- package/dist-types/commands/DescribeEventCommand.d.ts +3 -699
- package/dist-types/commands/GetConversationsCommand.d.ts +1 -7
- package/dist-types/models/models_0.d.ts +674 -567
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MatchNotFoundException = exports.WebsocketTopic = exports.WebsocketEvent = exports.
|
|
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;
|
|
4
4
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
5
|
class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -28,18 +28,6 @@ class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceExc
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.ForbiddenException = ForbiddenException;
|
|
31
|
-
exports.WhatsAppEventType = {
|
|
32
|
-
WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
|
|
33
|
-
WHATSAPP_STATUS: "WHATSAPP.STATUS",
|
|
34
|
-
};
|
|
35
|
-
exports.WhatsAppStatus = {
|
|
36
|
-
CHANNEL_CLOSED: "24H_CHANNEL_CLOSED",
|
|
37
|
-
DELETED: "DELETED",
|
|
38
|
-
DELIVERED: "DELIVERED",
|
|
39
|
-
ERROR: "ERROR",
|
|
40
|
-
READ: "READ",
|
|
41
|
-
SENT: "SENT",
|
|
42
|
-
};
|
|
43
31
|
exports.CallFlowAttachmentType = {
|
|
44
32
|
FAX: "FAX",
|
|
45
33
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -219,7 +207,6 @@ exports.ChatStatus = {
|
|
|
219
207
|
exports.ChatTag = {
|
|
220
208
|
SMS: "sms",
|
|
221
209
|
TELEPHONY: "telephony",
|
|
222
|
-
WHATSAPP: "whatsapp",
|
|
223
210
|
};
|
|
224
211
|
exports.ChatConsumeEventType = {
|
|
225
212
|
CHAT_NEW: "CHAT.NEW",
|
|
@@ -234,7 +221,15 @@ exports.ChatEventType = {
|
|
|
234
221
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
235
222
|
};
|
|
236
223
|
exports.ConferenceConsumeEventType = {
|
|
224
|
+
CONFERENCE_END: "CONFERENCE.END",
|
|
225
|
+
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
226
|
+
CONFERENCE_KEEP_ALIVE: "CONFERENCE.KEEP_ALIVE",
|
|
227
|
+
CONFERENCE_LEAVE: "CONFERENCE.LEAVE",
|
|
228
|
+
CONFERENCE_RECORD_START: "CONFERENCE.RECORD_START",
|
|
229
|
+
CONFERENCE_RECORD_STOP: "CONFERENCE.RECORD_STOP",
|
|
230
|
+
CONFERENCE_START: "CONFERENCE.START",
|
|
237
231
|
CONFERENCE_TIMEFRAMES: "CONFERENCE.TIMEFRAMES",
|
|
232
|
+
CONFERENCE_TRANSCRIPTION: "CONFERENCE.TRANSCRIPTION",
|
|
238
233
|
};
|
|
239
234
|
exports.ConferenceEventType = {
|
|
240
235
|
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
@@ -246,6 +241,10 @@ exports.ConferenceEventType = {
|
|
|
246
241
|
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
247
242
|
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
248
243
|
};
|
|
244
|
+
exports.PresenceConsumeEventType = {
|
|
245
|
+
PRESENCE: "PRESENCE",
|
|
246
|
+
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
247
|
+
};
|
|
249
248
|
exports.SmsConsumeEventType = {
|
|
250
249
|
SMS_INBOUND: "SMS.INBOUND",
|
|
251
250
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -287,6 +286,22 @@ var ConsumeEventInputEvent;
|
|
|
287
286
|
return visitor.callTranscription(value.callTranscription);
|
|
288
287
|
if (value.conferenceTimeFrames !== undefined)
|
|
289
288
|
return visitor.conferenceTimeFrames(value.conferenceTimeFrames);
|
|
289
|
+
if (value.conferenceStart !== undefined)
|
|
290
|
+
return visitor.conferenceStart(value.conferenceStart);
|
|
291
|
+
if (value.conferenceJoin !== undefined)
|
|
292
|
+
return visitor.conferenceJoin(value.conferenceJoin);
|
|
293
|
+
if (value.conferenceRecordStart !== undefined)
|
|
294
|
+
return visitor.conferenceRecordStart(value.conferenceRecordStart);
|
|
295
|
+
if (value.conferenceTranscription !== undefined)
|
|
296
|
+
return visitor.conferenceTranscription(value.conferenceTranscription);
|
|
297
|
+
if (value.conferenceLeave !== undefined)
|
|
298
|
+
return visitor.conferenceLeave(value.conferenceLeave);
|
|
299
|
+
if (value.conferenceRecordStop !== undefined)
|
|
300
|
+
return visitor.conferenceRecordStop(value.conferenceRecordStop);
|
|
301
|
+
if (value.conferenceKeepAlive !== undefined)
|
|
302
|
+
return visitor.conferenceKeepAlive(value.conferenceKeepAlive);
|
|
303
|
+
if (value.conferenceEnd !== undefined)
|
|
304
|
+
return visitor.conferenceEnd(value.conferenceEnd);
|
|
290
305
|
if (value.chatNew !== undefined)
|
|
291
306
|
return visitor.chatNew(value.chatNew);
|
|
292
307
|
if (value.chatUpdate !== undefined)
|
|
@@ -295,10 +310,10 @@ var ConsumeEventInputEvent;
|
|
|
295
310
|
return visitor.smsInbound(value.smsInbound);
|
|
296
311
|
if (value.smsStatus !== undefined)
|
|
297
312
|
return visitor.smsStatus(value.smsStatus);
|
|
298
|
-
if (value.
|
|
299
|
-
return visitor.
|
|
300
|
-
if (value.
|
|
301
|
-
return visitor.
|
|
313
|
+
if (value.presence !== undefined)
|
|
314
|
+
return visitor.presence(value.presence);
|
|
315
|
+
if (value.presenceTelephony !== undefined)
|
|
316
|
+
return visitor.presenceTelephony(value.presenceTelephony);
|
|
302
317
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
303
318
|
};
|
|
304
319
|
})(ConsumeEventInputEvent = exports.ConsumeEventInputEvent || (exports.ConsumeEventInputEvent = {}));
|
|
@@ -311,31 +326,6 @@ exports.PresenceEventType = {
|
|
|
311
326
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
312
327
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
313
328
|
};
|
|
314
|
-
exports.WebhookEventType = {
|
|
315
|
-
CALL_COMPLETED: "call:completed",
|
|
316
|
-
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
317
|
-
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
318
|
-
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
319
|
-
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
320
|
-
CHAT_COMPLETED: "chat:completed",
|
|
321
|
-
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
322
|
-
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
323
|
-
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
324
|
-
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
325
|
-
CONFERENCE_COMPLETED: "conference:completed",
|
|
326
|
-
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
327
|
-
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
328
|
-
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
329
|
-
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
330
|
-
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
331
|
-
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
332
|
-
OLD_CALL_END: "call:end",
|
|
333
|
-
OLD_CALL_START: "call:start",
|
|
334
|
-
OLD_CALL_UPDATE: "call:update",
|
|
335
|
-
PRESENCE_CONFERENCE: "presence:conference",
|
|
336
|
-
PRESENCE_TELEPHONY: "presence:telephony",
|
|
337
|
-
PRESENCE_USER: "presence:user",
|
|
338
|
-
};
|
|
339
329
|
exports.WebsocketEvent = {
|
|
340
330
|
AUTHORIZED: "authorized",
|
|
341
331
|
BROADCAST: "broadcast",
|
|
@@ -13,7 +13,7 @@ const se_ConsumeEventCommand = async (input, context) => {
|
|
|
13
13
|
b.bp("/v2/stream/events/consume");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
-
'event': _ =>
|
|
16
|
+
'event': _ => (0, smithy_client_1._json)(_),
|
|
17
17
|
}));
|
|
18
18
|
b.m("POST")
|
|
19
19
|
.h(headers)
|
|
@@ -31,8 +31,6 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
31
31
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
32
32
|
'SmsInboundEvent': _ => (0, smithy_client_1._json)(_),
|
|
33
33
|
'SmsStatusEvent': _ => (0, smithy_client_1._json)(_),
|
|
34
|
-
'WhatsAppInboundEvent': _ => se_WhatsAppInboundEvent(_, context),
|
|
35
|
-
'WhatsAppStatusEvent': _ => se_WhatsAppStatusEvent(_, context),
|
|
36
34
|
}));
|
|
37
35
|
b.m("POST")
|
|
38
36
|
.h(headers)
|
|
@@ -119,30 +117,7 @@ const de_DescribeEventCommand = async (output, context) => {
|
|
|
119
117
|
'PresenceAnalyticsStatusEvent': smithy_client_1._json,
|
|
120
118
|
'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
|
|
121
119
|
'PresenceEventType': smithy_client_1.expectString,
|
|
122
|
-
'
|
|
123
|
-
'WebhookCallLiveCompletedEvent': smithy_client_1._json,
|
|
124
|
-
'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
|
|
125
|
-
'WebhookCallLiveProgressEvent': smithy_client_1._json,
|
|
126
|
-
'WebhookCallLiveTranscriptionEvent': smithy_client_1._json,
|
|
127
|
-
'WebhookChatCompletedEvent': smithy_client_1._json,
|
|
128
|
-
'WebhookChatLiveCompletedEvent': smithy_client_1._json,
|
|
129
|
-
'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
|
|
130
|
-
'WebhookChatLiveProgressEvent': smithy_client_1._json,
|
|
131
|
-
'WebhookChatManagerMissedEvent': smithy_client_1._json,
|
|
132
|
-
'WebhookConferenceCompletedEvent': smithy_client_1._json,
|
|
133
|
-
'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
|
|
134
|
-
'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
|
|
135
|
-
'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
|
|
136
|
-
'WebhookConferenceLiveLeaveEvent': smithy_client_1._json,
|
|
137
|
-
'WebhookConferenceLiveProgressEvent': smithy_client_1._json,
|
|
138
|
-
'WebhookConferenceLiveTranscriptionEvent': smithy_client_1._json,
|
|
139
|
-
'WebhookOutdatedCallEndEvent': smithy_client_1._json,
|
|
140
|
-
'WebhookOutdatedCallStartEvent': smithy_client_1._json,
|
|
141
|
-
'WebhookOutdatedCallUpdateEvent': smithy_client_1._json,
|
|
142
|
-
'WebhookPresenceConferenceEvent': smithy_client_1._json,
|
|
143
|
-
'WebhookPresenceTelephonyEvent': smithy_client_1._json,
|
|
144
|
-
'WebhookPresenceUserEvent': smithy_client_1._json,
|
|
145
|
-
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
120
|
+
'WebsocketConversationBroadcastEvent': _ => de_WebsocketConversationBroadcastEvent(_, context),
|
|
146
121
|
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
147
122
|
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
148
123
|
});
|
|
@@ -247,65 +222,6 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
247
222
|
});
|
|
248
223
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
249
224
|
};
|
|
250
|
-
const se_ConsumeEventInputEvent = (input, context) => {
|
|
251
|
-
return models_0_1.ConsumeEventInputEvent.visit(input, {
|
|
252
|
-
callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
|
|
253
|
-
callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
|
|
254
|
-
callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
|
|
255
|
-
callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
|
|
256
|
-
callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
|
|
257
|
-
callRecordStart: value => ({ "callRecordStart": (0, smithy_client_1._json)(value) }),
|
|
258
|
-
callRecordStop: value => ({ "callRecordStop": (0, smithy_client_1._json)(value) }),
|
|
259
|
-
callSplit: value => ({ "callSplit": (0, smithy_client_1._json)(value) }),
|
|
260
|
-
callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
|
|
261
|
-
callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
|
|
262
|
-
callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
|
|
263
|
-
chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
|
|
264
|
-
chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
|
|
265
|
-
conferenceTimeFrames: value => ({ "conferenceTimeFrames": (0, smithy_client_1._json)(value) }),
|
|
266
|
-
smsInbound: value => ({ "smsInbound": (0, smithy_client_1._json)(value) }),
|
|
267
|
-
smsStatus: value => ({ "smsStatus": (0, smithy_client_1._json)(value) }),
|
|
268
|
-
whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
|
|
269
|
-
whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
|
|
270
|
-
_: (name, value) => ({ name: value })
|
|
271
|
-
});
|
|
272
|
-
};
|
|
273
|
-
const se_WhatsAppInboundConsumeEvent = (input, context) => {
|
|
274
|
-
return (0, smithy_client_1.take)(input, {
|
|
275
|
-
'company': [],
|
|
276
|
-
'data': smithy_client_1._json,
|
|
277
|
-
'pbx': [],
|
|
278
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
279
|
-
'type': [],
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
const se_WhatsAppInboundEvent = (input, context) => {
|
|
283
|
-
return (0, smithy_client_1.take)(input, {
|
|
284
|
-
'company': [],
|
|
285
|
-
'data': smithy_client_1._json,
|
|
286
|
-
'pbx': [],
|
|
287
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
288
|
-
'type': [],
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
const se_WhatsAppStatusConsumeEvent = (input, context) => {
|
|
292
|
-
return (0, smithy_client_1.take)(input, {
|
|
293
|
-
'company': [],
|
|
294
|
-
'data': smithy_client_1._json,
|
|
295
|
-
'pbx': [],
|
|
296
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
297
|
-
'type': [],
|
|
298
|
-
});
|
|
299
|
-
};
|
|
300
|
-
const se_WhatsAppStatusEvent = (input, context) => {
|
|
301
|
-
return (0, smithy_client_1.take)(input, {
|
|
302
|
-
'company': [],
|
|
303
|
-
'data': smithy_client_1._json,
|
|
304
|
-
'pbx': [],
|
|
305
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
306
|
-
'type': [],
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
225
|
const de_Document = (output, context) => {
|
|
310
226
|
return output;
|
|
311
227
|
};
|
|
@@ -322,7 +238,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
322
238
|
'type': smithy_client_1.expectString,
|
|
323
239
|
});
|
|
324
240
|
};
|
|
325
|
-
const
|
|
241
|
+
const de_WebsocketConversationBroadcastEvent = (output, context) => {
|
|
326
242
|
return (0, smithy_client_1.take)(output, {
|
|
327
243
|
'data': (_) => de_Document(_, context),
|
|
328
244
|
'event': smithy_client_1.expectString,
|
|
@@ -23,18 +23,6 @@ export class ForbiddenException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export const WhatsAppEventType = {
|
|
27
|
-
WHATSAPP_INBOUND: "WHATSAPP.INBOUND",
|
|
28
|
-
WHATSAPP_STATUS: "WHATSAPP.STATUS",
|
|
29
|
-
};
|
|
30
|
-
export const WhatsAppStatus = {
|
|
31
|
-
CHANNEL_CLOSED: "24H_CHANNEL_CLOSED",
|
|
32
|
-
DELETED: "DELETED",
|
|
33
|
-
DELIVERED: "DELIVERED",
|
|
34
|
-
ERROR: "ERROR",
|
|
35
|
-
READ: "READ",
|
|
36
|
-
SENT: "SENT",
|
|
37
|
-
};
|
|
38
26
|
export const CallFlowAttachmentType = {
|
|
39
27
|
FAX: "FAX",
|
|
40
28
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -214,7 +202,6 @@ export const ChatStatus = {
|
|
|
214
202
|
export const ChatTag = {
|
|
215
203
|
SMS: "sms",
|
|
216
204
|
TELEPHONY: "telephony",
|
|
217
|
-
WHATSAPP: "whatsapp",
|
|
218
205
|
};
|
|
219
206
|
export const ChatConsumeEventType = {
|
|
220
207
|
CHAT_NEW: "CHAT.NEW",
|
|
@@ -229,7 +216,15 @@ export const ChatEventType = {
|
|
|
229
216
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
230
217
|
};
|
|
231
218
|
export const ConferenceConsumeEventType = {
|
|
219
|
+
CONFERENCE_END: "CONFERENCE.END",
|
|
220
|
+
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
221
|
+
CONFERENCE_KEEP_ALIVE: "CONFERENCE.KEEP_ALIVE",
|
|
222
|
+
CONFERENCE_LEAVE: "CONFERENCE.LEAVE",
|
|
223
|
+
CONFERENCE_RECORD_START: "CONFERENCE.RECORD_START",
|
|
224
|
+
CONFERENCE_RECORD_STOP: "CONFERENCE.RECORD_STOP",
|
|
225
|
+
CONFERENCE_START: "CONFERENCE.START",
|
|
232
226
|
CONFERENCE_TIMEFRAMES: "CONFERENCE.TIMEFRAMES",
|
|
227
|
+
CONFERENCE_TRANSCRIPTION: "CONFERENCE.TRANSCRIPTION",
|
|
233
228
|
};
|
|
234
229
|
export const ConferenceEventType = {
|
|
235
230
|
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
@@ -241,6 +236,10 @@ export const ConferenceEventType = {
|
|
|
241
236
|
RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
|
|
242
237
|
TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
|
|
243
238
|
};
|
|
239
|
+
export const PresenceConsumeEventType = {
|
|
240
|
+
PRESENCE: "PRESENCE",
|
|
241
|
+
PRESENCE_TELEPHONY: "PRESENCE.TELEPHONY",
|
|
242
|
+
};
|
|
244
243
|
export const SmsConsumeEventType = {
|
|
245
244
|
SMS_INBOUND: "SMS.INBOUND",
|
|
246
245
|
SMS_STATUS: "SMS.STATUS",
|
|
@@ -282,6 +281,22 @@ export var ConsumeEventInputEvent;
|
|
|
282
281
|
return visitor.callTranscription(value.callTranscription);
|
|
283
282
|
if (value.conferenceTimeFrames !== undefined)
|
|
284
283
|
return visitor.conferenceTimeFrames(value.conferenceTimeFrames);
|
|
284
|
+
if (value.conferenceStart !== undefined)
|
|
285
|
+
return visitor.conferenceStart(value.conferenceStart);
|
|
286
|
+
if (value.conferenceJoin !== undefined)
|
|
287
|
+
return visitor.conferenceJoin(value.conferenceJoin);
|
|
288
|
+
if (value.conferenceRecordStart !== undefined)
|
|
289
|
+
return visitor.conferenceRecordStart(value.conferenceRecordStart);
|
|
290
|
+
if (value.conferenceTranscription !== undefined)
|
|
291
|
+
return visitor.conferenceTranscription(value.conferenceTranscription);
|
|
292
|
+
if (value.conferenceLeave !== undefined)
|
|
293
|
+
return visitor.conferenceLeave(value.conferenceLeave);
|
|
294
|
+
if (value.conferenceRecordStop !== undefined)
|
|
295
|
+
return visitor.conferenceRecordStop(value.conferenceRecordStop);
|
|
296
|
+
if (value.conferenceKeepAlive !== undefined)
|
|
297
|
+
return visitor.conferenceKeepAlive(value.conferenceKeepAlive);
|
|
298
|
+
if (value.conferenceEnd !== undefined)
|
|
299
|
+
return visitor.conferenceEnd(value.conferenceEnd);
|
|
285
300
|
if (value.chatNew !== undefined)
|
|
286
301
|
return visitor.chatNew(value.chatNew);
|
|
287
302
|
if (value.chatUpdate !== undefined)
|
|
@@ -290,10 +305,10 @@ export var ConsumeEventInputEvent;
|
|
|
290
305
|
return visitor.smsInbound(value.smsInbound);
|
|
291
306
|
if (value.smsStatus !== undefined)
|
|
292
307
|
return visitor.smsStatus(value.smsStatus);
|
|
293
|
-
if (value.
|
|
294
|
-
return visitor.
|
|
295
|
-
if (value.
|
|
296
|
-
return visitor.
|
|
308
|
+
if (value.presence !== undefined)
|
|
309
|
+
return visitor.presence(value.presence);
|
|
310
|
+
if (value.presenceTelephony !== undefined)
|
|
311
|
+
return visitor.presenceTelephony(value.presenceTelephony);
|
|
297
312
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
298
313
|
};
|
|
299
314
|
})(ConsumeEventInputEvent || (ConsumeEventInputEvent = {}));
|
|
@@ -306,31 +321,6 @@ export const PresenceEventType = {
|
|
|
306
321
|
STATUS_EVENT: "PresenceAnalyticsStatusEvent",
|
|
307
322
|
TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
|
|
308
323
|
};
|
|
309
|
-
export const WebhookEventType = {
|
|
310
|
-
CALL_COMPLETED: "call:completed",
|
|
311
|
-
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
312
|
-
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
313
|
-
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
314
|
-
CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
|
|
315
|
-
CHAT_COMPLETED: "chat:completed",
|
|
316
|
-
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
317
|
-
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
318
|
-
CHAT_LIVE_PROGRESS: "chat:live:progress",
|
|
319
|
-
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
320
|
-
CONFERENCE_COMPLETED: "conference:completed",
|
|
321
|
-
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
322
|
-
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
323
|
-
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
324
|
-
CONFERENCE_LIVE_LEAVE: "conference:live:leave",
|
|
325
|
-
CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
|
|
326
|
-
CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
|
|
327
|
-
OLD_CALL_END: "call:end",
|
|
328
|
-
OLD_CALL_START: "call:start",
|
|
329
|
-
OLD_CALL_UPDATE: "call:update",
|
|
330
|
-
PRESENCE_CONFERENCE: "presence:conference",
|
|
331
|
-
PRESENCE_TELEPHONY: "presence:telephony",
|
|
332
|
-
PRESENCE_USER: "presence:user",
|
|
333
|
-
};
|
|
334
324
|
export const WebsocketEvent = {
|
|
335
325
|
AUTHORIZED: "authorized",
|
|
336
326
|
BROADCAST: "broadcast",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import {
|
|
2
|
+
import { ForbiddenException, MatchNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_ConsumeEventCommand = async (input, context) => {
|
|
@@ -10,7 +10,7 @@ export const se_ConsumeEventCommand = async (input, context) => {
|
|
|
10
10
|
b.bp("/v2/stream/events/consume");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
|
-
'event': _ =>
|
|
13
|
+
'event': _ => _json(_),
|
|
14
14
|
}));
|
|
15
15
|
b.m("POST")
|
|
16
16
|
.h(headers)
|
|
@@ -27,8 +27,6 @@ export const se_DescribeEventCommand = async (input, context) => {
|
|
|
27
27
|
body = JSON.stringify(take(input, {
|
|
28
28
|
'SmsInboundEvent': _ => _json(_),
|
|
29
29
|
'SmsStatusEvent': _ => _json(_),
|
|
30
|
-
'WhatsAppInboundEvent': _ => se_WhatsAppInboundEvent(_, context),
|
|
31
|
-
'WhatsAppStatusEvent': _ => se_WhatsAppStatusEvent(_, context),
|
|
32
30
|
}));
|
|
33
31
|
b.m("POST")
|
|
34
32
|
.h(headers)
|
|
@@ -111,30 +109,7 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
111
109
|
'PresenceAnalyticsStatusEvent': _json,
|
|
112
110
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
113
111
|
'PresenceEventType': __expectString,
|
|
114
|
-
'
|
|
115
|
-
'WebhookCallLiveCompletedEvent': _json,
|
|
116
|
-
'WebhookCallLiveInterruptedEvent': _json,
|
|
117
|
-
'WebhookCallLiveProgressEvent': _json,
|
|
118
|
-
'WebhookCallLiveTranscriptionEvent': _json,
|
|
119
|
-
'WebhookChatCompletedEvent': _json,
|
|
120
|
-
'WebhookChatLiveCompletedEvent': _json,
|
|
121
|
-
'WebhookChatLiveInterruptedEvent': _json,
|
|
122
|
-
'WebhookChatLiveProgressEvent': _json,
|
|
123
|
-
'WebhookChatManagerMissedEvent': _json,
|
|
124
|
-
'WebhookConferenceCompletedEvent': _json,
|
|
125
|
-
'WebhookConferenceLiveCompletedEvent': _json,
|
|
126
|
-
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
127
|
-
'WebhookConferenceLiveJoinEvent': _json,
|
|
128
|
-
'WebhookConferenceLiveLeaveEvent': _json,
|
|
129
|
-
'WebhookConferenceLiveProgressEvent': _json,
|
|
130
|
-
'WebhookConferenceLiveTranscriptionEvent': _json,
|
|
131
|
-
'WebhookOutdatedCallEndEvent': _json,
|
|
132
|
-
'WebhookOutdatedCallStartEvent': _json,
|
|
133
|
-
'WebhookOutdatedCallUpdateEvent': _json,
|
|
134
|
-
'WebhookPresenceConferenceEvent': _json,
|
|
135
|
-
'WebhookPresenceTelephonyEvent': _json,
|
|
136
|
-
'WebhookPresenceUserEvent': _json,
|
|
137
|
-
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
112
|
+
'WebsocketConversationBroadcastEvent': _ => de_WebsocketConversationBroadcastEvent(_, context),
|
|
138
113
|
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
139
114
|
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
140
115
|
});
|
|
@@ -236,65 +211,6 @@ const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
236
211
|
});
|
|
237
212
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
238
213
|
};
|
|
239
|
-
const se_ConsumeEventInputEvent = (input, context) => {
|
|
240
|
-
return ConsumeEventInputEvent.visit(input, {
|
|
241
|
-
callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
|
|
242
|
-
callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
|
|
243
|
-
callAttachment: value => ({ "callAttachment": _json(value) }),
|
|
244
|
-
callEnd: value => ({ "callEnd": _json(value) }),
|
|
245
|
-
callLive: value => ({ "callLive": _json(value) }),
|
|
246
|
-
callRecordStart: value => ({ "callRecordStart": _json(value) }),
|
|
247
|
-
callRecordStop: value => ({ "callRecordStop": _json(value) }),
|
|
248
|
-
callSplit: value => ({ "callSplit": _json(value) }),
|
|
249
|
-
callStart: value => ({ "callStart": _json(value) }),
|
|
250
|
-
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
251
|
-
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
252
|
-
chatNew: value => ({ "chatNew": _json(value) }),
|
|
253
|
-
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
254
|
-
conferenceTimeFrames: value => ({ "conferenceTimeFrames": _json(value) }),
|
|
255
|
-
smsInbound: value => ({ "smsInbound": _json(value) }),
|
|
256
|
-
smsStatus: value => ({ "smsStatus": _json(value) }),
|
|
257
|
-
whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
|
|
258
|
-
whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
|
|
259
|
-
_: (name, value) => ({ name: value })
|
|
260
|
-
});
|
|
261
|
-
};
|
|
262
|
-
const se_WhatsAppInboundConsumeEvent = (input, context) => {
|
|
263
|
-
return take(input, {
|
|
264
|
-
'company': [],
|
|
265
|
-
'data': _json,
|
|
266
|
-
'pbx': [],
|
|
267
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
268
|
-
'type': [],
|
|
269
|
-
});
|
|
270
|
-
};
|
|
271
|
-
const se_WhatsAppInboundEvent = (input, context) => {
|
|
272
|
-
return take(input, {
|
|
273
|
-
'company': [],
|
|
274
|
-
'data': _json,
|
|
275
|
-
'pbx': [],
|
|
276
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
277
|
-
'type': [],
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
const se_WhatsAppStatusConsumeEvent = (input, context) => {
|
|
281
|
-
return take(input, {
|
|
282
|
-
'company': [],
|
|
283
|
-
'data': _json,
|
|
284
|
-
'pbx': [],
|
|
285
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
286
|
-
'type': [],
|
|
287
|
-
});
|
|
288
|
-
};
|
|
289
|
-
const se_WhatsAppStatusEvent = (input, context) => {
|
|
290
|
-
return take(input, {
|
|
291
|
-
'company': [],
|
|
292
|
-
'data': _json,
|
|
293
|
-
'pbx': [],
|
|
294
|
-
'time': _ => Math.round(_.getTime() / 1000),
|
|
295
|
-
'type': [],
|
|
296
|
-
});
|
|
297
|
-
};
|
|
298
214
|
const de_Document = (output, context) => {
|
|
299
215
|
return output;
|
|
300
216
|
};
|
|
@@ -311,7 +227,7 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
311
227
|
'type': __expectString,
|
|
312
228
|
});
|
|
313
229
|
};
|
|
314
|
-
const
|
|
230
|
+
const de_WebsocketConversationBroadcastEvent = (output, context) => {
|
|
315
231
|
return take(output, {
|
|
316
232
|
'data': (_) => de_Document(_, context),
|
|
317
233
|
'event': __expectString,
|