@wildix/wda-stream-client 1.1.55 → 1.1.57
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/WdaStream.js +6 -0
- package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +64 -25
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +300 -1
- package/dist-es/WdaStream.js +6 -0
- package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +17 -0
- package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +17 -0
- package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +62 -23
- package/dist-es/models/models_1.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +295 -2
- package/dist-types/WdaStream.d.ts +21 -0
- package/dist-types/WdaStreamClient.d.ts +5 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +111 -27
- package/dist-types/commands/DescribeEventCommand.d.ts +280 -90
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +286 -0
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -0
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -1
- package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +190 -0
- package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +134 -0
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -1
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -2
- package/dist-types/commands/QueryConversationsCommand.d.ts +6 -3
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +622 -277
- package/dist-types/models/models_1.d.ts +275 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,45 @@ export const WhatsAppStatus = {
|
|
|
45
45
|
READ: "READ",
|
|
46
46
|
SENT: "SENT",
|
|
47
47
|
};
|
|
48
|
+
export var AnnotationPayload;
|
|
49
|
+
(function (AnnotationPayload) {
|
|
50
|
+
AnnotationPayload.visit = (value, visitor) => {
|
|
51
|
+
if (value.tag !== undefined)
|
|
52
|
+
return visitor.tag(value.tag);
|
|
53
|
+
if (value.text !== undefined)
|
|
54
|
+
return visitor.text(value.text);
|
|
55
|
+
if (value.variables !== undefined)
|
|
56
|
+
return visitor.variables(value.variables);
|
|
57
|
+
if (value.result !== undefined)
|
|
58
|
+
return visitor.result(value.result);
|
|
59
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
60
|
+
};
|
|
61
|
+
})(AnnotationPayload || (AnnotationPayload = {}));
|
|
62
|
+
export const AnnotationSourceType = {
|
|
63
|
+
CHATBOT: "chatbot",
|
|
64
|
+
SYSTEM: "system",
|
|
65
|
+
USER: "user",
|
|
66
|
+
VOICEBOT: "voicebot",
|
|
67
|
+
};
|
|
68
|
+
export const License = {
|
|
69
|
+
UC: "uc",
|
|
70
|
+
XBEES: "x-bees",
|
|
71
|
+
};
|
|
72
|
+
export const RecordType = {
|
|
73
|
+
CALL: "call",
|
|
74
|
+
CALL_ANNOTATIONS: "call_annotations",
|
|
75
|
+
CALL_TRANSCRIPTION: "call_transcription",
|
|
76
|
+
CHAT: "chat",
|
|
77
|
+
CHAT_ANNOTATIONS: "chat_annotations",
|
|
78
|
+
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
79
|
+
CONFERENCE: "conference",
|
|
80
|
+
CONFERENCE_ANNOTATIONS: "conference_annotations",
|
|
81
|
+
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
82
|
+
};
|
|
83
|
+
export const AnnotationsStatus = {
|
|
84
|
+
AVAILABLE: "AVAILABLE",
|
|
85
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
86
|
+
};
|
|
48
87
|
export const CallRecordOwner = {
|
|
49
88
|
CALLEE: "callee",
|
|
50
89
|
CALLER: "caller",
|
|
@@ -94,23 +133,11 @@ export const CallDevice = {
|
|
|
94
133
|
XBEES_IOS: "XBEES_IOS",
|
|
95
134
|
XBEES_WEB: "XBEES_WEB",
|
|
96
135
|
};
|
|
97
|
-
export const License = {
|
|
98
|
-
UC: "uc",
|
|
99
|
-
XBEES: "x-bees",
|
|
100
|
-
};
|
|
101
136
|
export const CallFlowTranscriptionStatus = {
|
|
102
137
|
AVAILABLE: "AVAILABLE",
|
|
103
138
|
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
139
|
UNAVAILABLE: "UNAVAILABLE",
|
|
105
140
|
};
|
|
106
|
-
export const RecordType = {
|
|
107
|
-
CALL: "call",
|
|
108
|
-
CALL_TRANSCRIPTION: "call_transcription",
|
|
109
|
-
CHAT: "chat",
|
|
110
|
-
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
111
|
-
CONFERENCE: "conference",
|
|
112
|
-
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
113
|
-
};
|
|
114
141
|
export const CallTranscriptionSpeaker = {
|
|
115
142
|
CALLEE: "callee",
|
|
116
143
|
CALLER: "caller",
|
|
@@ -248,6 +275,7 @@ export const ConferenceTranscriptionStatus = {
|
|
|
248
275
|
export const CallConsumeEventType = {
|
|
249
276
|
CALL_AGENTS_CANCEL: "CALL.AGENTS_CANCEL",
|
|
250
277
|
CALL_AGENTS_START: "CALL.AGENTS_START",
|
|
278
|
+
CALL_ANNOTATE: "CALL.ANNOTATE",
|
|
251
279
|
CALL_ATTACHMENT: "CALL.ATTACHMENT",
|
|
252
280
|
CALL_END: "CALL.END",
|
|
253
281
|
CALL_LIVE: "CALL.LIVE",
|
|
@@ -263,16 +291,19 @@ export const CallConsumeEventType = {
|
|
|
263
291
|
};
|
|
264
292
|
export const LiveEventType = {
|
|
265
293
|
CALL: "call",
|
|
294
|
+
CALL_ANNOTATION: "call_annotation",
|
|
266
295
|
CALL_COMPLETE: "call_complete",
|
|
267
296
|
CALL_INTERRUPTED: "call_interrupted",
|
|
268
297
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
269
298
|
CHAT: "chat",
|
|
299
|
+
CHAT_ANNOTATION: "chat_annotation",
|
|
270
300
|
CHAT_COMPLETE: "chat_complete",
|
|
271
301
|
CHAT_COST: "call_cost",
|
|
272
302
|
CHAT_INTERRUPTED: "chat_interrupted",
|
|
273
303
|
CHAT_MISSED: "chat_missed",
|
|
274
304
|
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
275
305
|
CONFERENCE: "conference",
|
|
306
|
+
CONFERENCE_ANNOTATION: "conference_annotation",
|
|
276
307
|
CONFERENCE_COMPLETE: "conference_complete",
|
|
277
308
|
CONFERENCE_INTERRUPTED: "conference_interrupted",
|
|
278
309
|
CONFERENCE_JOIN: "conference_join",
|
|
@@ -317,6 +348,7 @@ export const CallEndConsume = {
|
|
|
317
348
|
};
|
|
318
349
|
export const CallEventType = {
|
|
319
350
|
COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
|
|
351
|
+
LIVE_ANNOTATION_EVENT: "CallAnalyticsLiveAnnotationEvent",
|
|
320
352
|
LIVE_COMPLETE_EVENT: "CallAnalyticsLiveCompleteEvent",
|
|
321
353
|
LIVE_INTERRUPTED_EVENT: "CallAnalyticsLiveInterruptedEvent",
|
|
322
354
|
LIVE_PROGRESS_EVENT: "CallAnalyticsLiveProgressEvent",
|
|
@@ -330,11 +362,13 @@ export const CallFlowConsumeStatus = {
|
|
|
330
362
|
TALKING: "talking",
|
|
331
363
|
};
|
|
332
364
|
export const ChatConsumeEventType = {
|
|
365
|
+
CHAT_ANNOTATE: "CHAT.ANNOTATE",
|
|
333
366
|
CHAT_MESSAGE: "CHAT.MESSAGE",
|
|
334
367
|
CHAT_NEW: "CHAT.NEW",
|
|
335
368
|
CHAT_UPDATE: "CHAT.UPDATE",
|
|
336
369
|
};
|
|
337
370
|
export const ChatEventType = {
|
|
371
|
+
LIVE_ANNOTATION_EVENT: "ChatAnalyticsLiveAnnotationEvent",
|
|
338
372
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
339
373
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
340
374
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
@@ -343,12 +377,8 @@ export const ChatEventType = {
|
|
|
343
377
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
344
378
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
345
379
|
};
|
|
346
|
-
export const ConferenceConsumeDirection = {
|
|
347
|
-
INBOUND: "inbound",
|
|
348
|
-
INTERNAL: "internal",
|
|
349
|
-
OUTBOUND: "outbound",
|
|
350
|
-
};
|
|
351
380
|
export const ConferenceConsumeEventType = {
|
|
381
|
+
CONFERENCE_ANNOTATE: "CONFERENCE.ANNOTATE",
|
|
352
382
|
CONFERENCE_END: "CONFERENCE.END",
|
|
353
383
|
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
354
384
|
CONFERENCE_KEEP_ALIVE: "CONFERENCE.KEEP_ALIVE",
|
|
@@ -360,7 +390,13 @@ export const ConferenceConsumeEventType = {
|
|
|
360
390
|
CONFERENCE_TIMEFRAMES: "CONFERENCE.TIMEFRAMES",
|
|
361
391
|
CONFERENCE_TRANSCRIPTION: "CONFERENCE.TRANSCRIPTION",
|
|
362
392
|
};
|
|
393
|
+
export const ConferenceConsumeDirection = {
|
|
394
|
+
INBOUND: "inbound",
|
|
395
|
+
INTERNAL: "internal",
|
|
396
|
+
OUTBOUND: "outbound",
|
|
397
|
+
};
|
|
363
398
|
export const ConferenceEventType = {
|
|
399
|
+
LIVE_ANNOTATION_EVENT: "ConferenceAnalyticsLiveAnnotationEvent",
|
|
364
400
|
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
365
401
|
LIVE_INTERRUPTED_EVENT: "ConferenceAnalyticsLiveInterruptedEvent",
|
|
366
402
|
LIVE_JOIN_EVENT: "ConferenceAnalyticsLiveJoinEvent",
|
|
@@ -431,6 +467,8 @@ export var ConsumeEventInputEvent;
|
|
|
431
467
|
return visitor.callUpdate(value.callUpdate);
|
|
432
468
|
if (value.callSplit !== undefined)
|
|
433
469
|
return visitor.callSplit(value.callSplit);
|
|
470
|
+
if (value.callAnnotate !== undefined)
|
|
471
|
+
return visitor.callAnnotate(value.callAnnotate);
|
|
434
472
|
if (value.callLive !== undefined)
|
|
435
473
|
return visitor.callLive(value.callLive);
|
|
436
474
|
if (value.callAgentsStart !== undefined)
|
|
@@ -459,6 +497,8 @@ export var ConsumeEventInputEvent;
|
|
|
459
497
|
return visitor.conferenceStart(value.conferenceStart);
|
|
460
498
|
if (value.conferenceJoin !== undefined)
|
|
461
499
|
return visitor.conferenceJoin(value.conferenceJoin);
|
|
500
|
+
if (value.conferenceAnnotate !== undefined)
|
|
501
|
+
return visitor.conferenceAnnotate(value.conferenceAnnotate);
|
|
462
502
|
if (value.conferenceRecordStart !== undefined)
|
|
463
503
|
return visitor.conferenceRecordStart(value.conferenceRecordStart);
|
|
464
504
|
if (value.conferenceTranscription !== undefined)
|
|
@@ -479,6 +519,8 @@ export var ConsumeEventInputEvent;
|
|
|
479
519
|
return visitor.chatNew(value.chatNew);
|
|
480
520
|
if (value.chatUpdate !== undefined)
|
|
481
521
|
return visitor.chatUpdate(value.chatUpdate);
|
|
522
|
+
if (value.chatAnnotate !== undefined)
|
|
523
|
+
return visitor.chatAnnotate(value.chatAnnotate);
|
|
482
524
|
if (value.smsInbound !== undefined)
|
|
483
525
|
return visitor.smsInbound(value.smsInbound);
|
|
484
526
|
if (value.smsStatus !== undefined)
|
|
@@ -555,6 +597,7 @@ export const ServiceEventType = {
|
|
|
555
597
|
};
|
|
556
598
|
export const WebhookEventType = {
|
|
557
599
|
CALL_COMPLETED: "call:completed",
|
|
600
|
+
CALL_LIVE_ANNOTATION: "call:live:annotation",
|
|
558
601
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
559
602
|
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
560
603
|
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
@@ -567,6 +610,7 @@ export const WebhookEventType = {
|
|
|
567
610
|
CALL_TRANSCRIPTION_COMPLETED: "call:transcription:completed",
|
|
568
611
|
CALL_TRANSCRIPTION_TEXT_COMPLETED: "call:transcription:text:completed",
|
|
569
612
|
CHAT_COMPLETED: "chat:completed",
|
|
613
|
+
CHAT_LIVE_ANNOTATION: "chat:live:annotation",
|
|
570
614
|
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
571
615
|
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
572
616
|
CHAT_LIVE_MISSED: "chat:live:missed",
|
|
@@ -574,6 +618,7 @@ export const WebhookEventType = {
|
|
|
574
618
|
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
575
619
|
CHAT_SUMMARY_COMPLETED: "chat:summary:completed",
|
|
576
620
|
CONFERENCE_COMPLETED: "conference:completed",
|
|
621
|
+
CONFERENCE_LIVE_ANNOTATION: "conference:live:annotation",
|
|
577
622
|
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
578
623
|
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
579
624
|
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
@@ -591,9 +636,3 @@ export const WebhookEventType = {
|
|
|
591
636
|
PRESENCE_USER: "presence:user",
|
|
592
637
|
SMS_STATUS: "sms:status",
|
|
593
638
|
};
|
|
594
|
-
export const WebsocketEvent = {
|
|
595
|
-
AUTHORIZED: "authorized",
|
|
596
|
-
BROADCAST: "broadcast",
|
|
597
|
-
SUBSCRIBED: "subscribed",
|
|
598
|
-
UNSUBSCRIBE: "unsubscribed",
|
|
599
|
-
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
|
|
2
|
+
export const WebsocketEvent = {
|
|
3
|
+
AUTHORIZED: "authorized",
|
|
4
|
+
BROADCAST: "broadcast",
|
|
5
|
+
SUBSCRIBED: "subscribed",
|
|
6
|
+
UNSUBSCRIBE: "unsubscribed",
|
|
7
|
+
};
|
|
2
8
|
export class MatchNotFoundException extends __BaseException {
|
|
3
9
|
name = "MatchNotFoundException";
|
|
4
10
|
$fault = "client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import { ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { AnnotationPayload, ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
|
|
4
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
5
5
|
import { requestBuilder as rb } from "@smithy/core";
|
|
6
6
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, 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";
|
|
7
7
|
export const se_ConsumeEventCommand = async (input, context) => {
|
|
@@ -70,6 +70,21 @@ export const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
70
70
|
.b(body);
|
|
71
71
|
return b.build();
|
|
72
72
|
};
|
|
73
|
+
export const se_GetOngoingCallAnnotationsCommand = async (input, context) => {
|
|
74
|
+
const b = rb(input, context);
|
|
75
|
+
const headers = {};
|
|
76
|
+
b.bp("/v2/stream/calls/{callId}/annotations");
|
|
77
|
+
b.p('callId', () => input.callId, '{callId}', false);
|
|
78
|
+
const query = map({
|
|
79
|
+
[_c]: [, input[_c]],
|
|
80
|
+
});
|
|
81
|
+
let body;
|
|
82
|
+
b.m("GET")
|
|
83
|
+
.h(headers)
|
|
84
|
+
.q(query)
|
|
85
|
+
.b(body);
|
|
86
|
+
return b.build();
|
|
87
|
+
};
|
|
73
88
|
export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
74
89
|
const b = rb(input, context);
|
|
75
90
|
const headers = {};
|
|
@@ -85,6 +100,21 @@ export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
|
85
100
|
.b(body);
|
|
86
101
|
return b.build();
|
|
87
102
|
};
|
|
103
|
+
export const se_GetOngoingChatAnnotationsCommand = async (input, context) => {
|
|
104
|
+
const b = rb(input, context);
|
|
105
|
+
const headers = {};
|
|
106
|
+
b.bp("/v2/stream/chats/{chatId}/annotations");
|
|
107
|
+
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
108
|
+
const query = map({
|
|
109
|
+
[_c]: [, input[_c]],
|
|
110
|
+
});
|
|
111
|
+
let body;
|
|
112
|
+
b.m("GET")
|
|
113
|
+
.h(headers)
|
|
114
|
+
.q(query)
|
|
115
|
+
.b(body);
|
|
116
|
+
return b.build();
|
|
117
|
+
};
|
|
88
118
|
export const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
89
119
|
const b = rb(input, context);
|
|
90
120
|
const headers = {};
|
|
@@ -100,6 +130,21 @@ export const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
|
100
130
|
.b(body);
|
|
101
131
|
return b.build();
|
|
102
132
|
};
|
|
133
|
+
export const se_GetOngoingConferenceAnnotationsCommand = async (input, context) => {
|
|
134
|
+
const b = rb(input, context);
|
|
135
|
+
const headers = {};
|
|
136
|
+
b.bp("/v2/stream/conferences/{conferenceId}/annotations");
|
|
137
|
+
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
138
|
+
const query = map({
|
|
139
|
+
[_c]: [, input[_c]],
|
|
140
|
+
});
|
|
141
|
+
let body;
|
|
142
|
+
b.m("GET")
|
|
143
|
+
.h(headers)
|
|
144
|
+
.q(query)
|
|
145
|
+
.b(body);
|
|
146
|
+
return b.build();
|
|
147
|
+
};
|
|
103
148
|
export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
|
|
104
149
|
const b = rb(input, context);
|
|
105
150
|
const headers = {};
|
|
@@ -217,6 +262,7 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
217
262
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
218
263
|
const doc = take(data, {
|
|
219
264
|
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
265
|
+
'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
220
266
|
'CallAnalyticsLiveCompleteEvent': _json,
|
|
221
267
|
'CallAnalyticsLiveInterruptedEvent': _json,
|
|
222
268
|
'CallAnalyticsLiveProgressEvent': _json,
|
|
@@ -224,6 +270,7 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
224
270
|
'CallAnalyticsRecordEvent': _json,
|
|
225
271
|
'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
|
|
226
272
|
'CallEventType': __expectString,
|
|
273
|
+
'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
227
274
|
'ChatAnalyticsLiveCompleteEvent': _json,
|
|
228
275
|
'ChatAnalyticsLiveInterruptedEvent': _json,
|
|
229
276
|
'ChatAnalyticsLiveProgressEvent': _json,
|
|
@@ -232,6 +279,7 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
232
279
|
'ChatAnalyticsRecordEvent': _json,
|
|
233
280
|
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
234
281
|
'ChatEventType': __expectString,
|
|
282
|
+
'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
235
283
|
'ConferenceAnalyticsLiveCompleteEvent': _json,
|
|
236
284
|
'ConferenceAnalyticsLiveInterruptedEvent': _json,
|
|
237
285
|
'ConferenceAnalyticsLiveJoinEvent': _json,
|
|
@@ -252,6 +300,7 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
252
300
|
'ServiceCallEventType': __expectString,
|
|
253
301
|
'ServiceEventType': __expectString,
|
|
254
302
|
'WebhookCallCompletedEvent': _json,
|
|
303
|
+
'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
|
|
255
304
|
'WebhookCallLiveCompletedEvent': _json,
|
|
256
305
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
257
306
|
'WebhookCallLiveProgressEvent': _json,
|
|
@@ -264,12 +313,14 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
264
313
|
'WebhookCallTranscriptionCompletedEvent': _json,
|
|
265
314
|
'WebhookCallTranscriptionTextCompletedEvent': _json,
|
|
266
315
|
'WebhookChatCompletedEvent': _json,
|
|
316
|
+
'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
|
|
267
317
|
'WebhookChatLiveCompletedEvent': _json,
|
|
268
318
|
'WebhookChatLiveInterruptedEvent': _json,
|
|
269
319
|
'WebhookChatLiveProgressEvent': _json,
|
|
270
320
|
'WebhookChatManagerMissedEvent': _json,
|
|
271
321
|
'WebhookChatSummaryCompletedEvent': _json,
|
|
272
322
|
'WebhookConferenceCompletedEvent': _json,
|
|
323
|
+
'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
|
|
273
324
|
'WebhookConferenceLiveCompletedEvent': _json,
|
|
274
325
|
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
275
326
|
'WebhookConferenceLiveJoinEvent': _json,
|
|
@@ -328,6 +379,22 @@ export const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
328
379
|
Object.assign(contents, doc);
|
|
329
380
|
return contents;
|
|
330
381
|
};
|
|
382
|
+
export const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
|
|
383
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
+
return de_CommandError(output, context);
|
|
385
|
+
}
|
|
386
|
+
const contents = map({
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
});
|
|
389
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
390
|
+
const doc = take(data, {
|
|
391
|
+
'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
|
|
392
|
+
'company': __expectString,
|
|
393
|
+
'flows': _json,
|
|
394
|
+
});
|
|
395
|
+
Object.assign(contents, doc);
|
|
396
|
+
return contents;
|
|
397
|
+
};
|
|
331
398
|
export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
332
399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
400
|
return de_CommandError(output, context);
|
|
@@ -344,6 +411,21 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
|
|
|
344
411
|
Object.assign(contents, doc);
|
|
345
412
|
return contents;
|
|
346
413
|
};
|
|
414
|
+
export const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const contents = map({
|
|
419
|
+
$metadata: deserializeMetadata(output),
|
|
420
|
+
});
|
|
421
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
422
|
+
const doc = take(data, {
|
|
423
|
+
'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
|
|
424
|
+
'chat': _json,
|
|
425
|
+
});
|
|
426
|
+
Object.assign(contents, doc);
|
|
427
|
+
return contents;
|
|
428
|
+
};
|
|
347
429
|
export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
348
430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
431
|
return de_CommandError(output, context);
|
|
@@ -358,6 +440,21 @@ export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
|
358
440
|
Object.assign(contents, doc);
|
|
359
441
|
return contents;
|
|
360
442
|
};
|
|
443
|
+
export const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
|
|
444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
+
return de_CommandError(output, context);
|
|
446
|
+
}
|
|
447
|
+
const contents = map({
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
});
|
|
450
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
451
|
+
const doc = take(data, {
|
|
452
|
+
'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
|
|
453
|
+
'conference': _json,
|
|
454
|
+
});
|
|
455
|
+
Object.assign(contents, doc);
|
|
456
|
+
return contents;
|
|
457
|
+
};
|
|
361
458
|
export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
362
459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
460
|
return de_CommandError(output, context);
|
|
@@ -525,10 +622,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
525
622
|
const se_Document = (input, context) => {
|
|
526
623
|
return input;
|
|
527
624
|
};
|
|
625
|
+
const se_Annotation = (input, context) => {
|
|
626
|
+
return take(input, {
|
|
627
|
+
'id': [],
|
|
628
|
+
'payload': _ => se_AnnotationPayload(_, context),
|
|
629
|
+
'source': _json,
|
|
630
|
+
'time': [],
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
const se_AnnotationPayload = (input, context) => {
|
|
634
|
+
return AnnotationPayload.visit(input, {
|
|
635
|
+
result: value => ({ "result": se_AnnotationResultValue(value, context) }),
|
|
636
|
+
tag: value => ({ "tag": value }),
|
|
637
|
+
text: value => ({ "text": value }),
|
|
638
|
+
variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
|
|
639
|
+
_: (name, value) => ({ [name]: value })
|
|
640
|
+
});
|
|
641
|
+
};
|
|
642
|
+
const se_AnnotationResultValue = (input, context) => {
|
|
643
|
+
return take(input, {
|
|
644
|
+
'value': _ => se_Document(_, context),
|
|
645
|
+
});
|
|
646
|
+
};
|
|
647
|
+
const se_AnnotationVariablesValue = (input, context) => {
|
|
648
|
+
return take(input, {
|
|
649
|
+
'value': _ => se_Document(_, context),
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
const se_CallAnnotateConsumeEvent = (input, context) => {
|
|
653
|
+
return take(input, {
|
|
654
|
+
'company': [],
|
|
655
|
+
'data': _ => se_CallAnnotateConsumeEventData(_, context),
|
|
656
|
+
'id': [],
|
|
657
|
+
'pbx': [],
|
|
658
|
+
'time': [],
|
|
659
|
+
'type': [],
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
const se_CallAnnotateConsumeEventData = (input, context) => {
|
|
663
|
+
return take(input, {
|
|
664
|
+
'annotation': _ => se_Annotation(_, context),
|
|
665
|
+
'flowIndex': [],
|
|
666
|
+
});
|
|
667
|
+
};
|
|
668
|
+
const se_ChatAnnotateConsumeEvent = (input, context) => {
|
|
669
|
+
return take(input, {
|
|
670
|
+
'company': [],
|
|
671
|
+
'data': _ => se_ChatAnnotateConsumeEventData(_, context),
|
|
672
|
+
'time': [],
|
|
673
|
+
'type': [],
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
const se_ChatAnnotateConsumeEventData = (input, context) => {
|
|
677
|
+
return take(input, {
|
|
678
|
+
'annotation': _ => se_Annotation(_, context),
|
|
679
|
+
'chatId': [],
|
|
680
|
+
});
|
|
681
|
+
};
|
|
682
|
+
const se_ConferenceAnnotateConsumeEvent = (input, context) => {
|
|
683
|
+
return take(input, {
|
|
684
|
+
'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
|
|
685
|
+
'room': [],
|
|
686
|
+
'session': [],
|
|
687
|
+
'time': [],
|
|
688
|
+
'type': [],
|
|
689
|
+
});
|
|
690
|
+
};
|
|
691
|
+
const se_ConferenceAnnotateConsumeEventData = (input, context) => {
|
|
692
|
+
return take(input, {
|
|
693
|
+
'annotation': _ => se_Annotation(_, context),
|
|
694
|
+
'company': [],
|
|
695
|
+
});
|
|
696
|
+
};
|
|
528
697
|
const se_ConsumeEventInputEvent = (input, context) => {
|
|
529
698
|
return ConsumeEventInputEvent.visit(input, {
|
|
530
699
|
callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
|
|
531
700
|
callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
|
|
701
|
+
callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
|
|
532
702
|
callAttachment: value => ({ "callAttachment": _json(value) }),
|
|
533
703
|
callEnd: value => ({ "callEnd": _json(value) }),
|
|
534
704
|
callLive: value => ({ "callLive": _json(value) }),
|
|
@@ -541,9 +711,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
541
711
|
callStart: value => ({ "callStart": _json(value) }),
|
|
542
712
|
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
543
713
|
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
714
|
+
chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
|
|
544
715
|
chatMessage: value => ({ "chatMessage": _json(value) }),
|
|
545
716
|
chatNew: value => ({ "chatNew": _json(value) }),
|
|
546
717
|
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
718
|
+
conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
|
|
547
719
|
conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
|
|
548
720
|
conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
|
|
549
721
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
|
|
@@ -633,6 +805,43 @@ const se_WhatsAppStatusEvent = (input, context) => {
|
|
|
633
805
|
const de_Document = (output, context) => {
|
|
634
806
|
return output;
|
|
635
807
|
};
|
|
808
|
+
const de_Annotation = (output, context) => {
|
|
809
|
+
return take(output, {
|
|
810
|
+
'id': __expectString,
|
|
811
|
+
'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
|
|
812
|
+
'source': _json,
|
|
813
|
+
'time': __expectLong,
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
const de_AnnotationPayload = (output, context) => {
|
|
817
|
+
if (output.result != null) {
|
|
818
|
+
return {
|
|
819
|
+
result: de_AnnotationResultValue(output.result, context)
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
if (__expectString(output.tag) !== undefined) {
|
|
823
|
+
return { tag: __expectString(output.tag) };
|
|
824
|
+
}
|
|
825
|
+
if (__expectString(output.text) !== undefined) {
|
|
826
|
+
return { text: __expectString(output.text) };
|
|
827
|
+
}
|
|
828
|
+
if (output.variables != null) {
|
|
829
|
+
return {
|
|
830
|
+
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
return { $unknown: Object.entries(output)[0] };
|
|
834
|
+
};
|
|
835
|
+
const de_AnnotationResultValue = (output, context) => {
|
|
836
|
+
return take(output, {
|
|
837
|
+
'value': (_) => de_Document(_, context),
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
const de_AnnotationVariablesValue = (output, context) => {
|
|
841
|
+
return take(output, {
|
|
842
|
+
'value': (_) => de_Document(_, context),
|
|
843
|
+
});
|
|
844
|
+
};
|
|
636
845
|
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
637
846
|
return take(output, {
|
|
638
847
|
'company': __expectString,
|
|
@@ -646,6 +855,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
646
855
|
'type': __expectString,
|
|
647
856
|
});
|
|
648
857
|
};
|
|
858
|
+
const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
859
|
+
return take(output, {
|
|
860
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
861
|
+
'callStartTime': __expectLong,
|
|
862
|
+
'company': __expectString,
|
|
863
|
+
'event': __expectString,
|
|
864
|
+
'flowIndex': __expectInt32,
|
|
865
|
+
'flowStartTime': __expectLong,
|
|
866
|
+
'id': __expectString,
|
|
867
|
+
'licenses': _json,
|
|
868
|
+
'pbx': __expectString,
|
|
869
|
+
'time': __expectLong,
|
|
870
|
+
});
|
|
871
|
+
};
|
|
872
|
+
const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
873
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
874
|
+
return de_CallAnalyticsLiveAnnotationEvent(entry, context);
|
|
875
|
+
});
|
|
876
|
+
return retVal;
|
|
877
|
+
};
|
|
649
878
|
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
650
879
|
return take(output, {
|
|
651
880
|
'callStartTime': __expectLong,
|
|
@@ -717,6 +946,22 @@ const de_CallTranscriptionList = (output, context) => {
|
|
|
717
946
|
});
|
|
718
947
|
return retVal;
|
|
719
948
|
};
|
|
949
|
+
const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
950
|
+
return take(output, {
|
|
951
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
952
|
+
'chatId': __expectString,
|
|
953
|
+
'company': __expectString,
|
|
954
|
+
'event': __expectString,
|
|
955
|
+
'id': __expectString,
|
|
956
|
+
'time': __expectLong,
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
960
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
961
|
+
return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
|
|
962
|
+
});
|
|
963
|
+
return retVal;
|
|
964
|
+
};
|
|
720
965
|
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
721
966
|
return take(output, {
|
|
722
967
|
'chatId': __expectString,
|
|
@@ -727,6 +972,32 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
|
727
972
|
'type': __expectString,
|
|
728
973
|
});
|
|
729
974
|
};
|
|
975
|
+
const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
976
|
+
return take(output, {
|
|
977
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
978
|
+
'company': __expectString,
|
|
979
|
+
'event': __expectString,
|
|
980
|
+
'id': __expectString,
|
|
981
|
+
'time': __expectLong,
|
|
982
|
+
});
|
|
983
|
+
};
|
|
984
|
+
const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
985
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
986
|
+
return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
|
|
987
|
+
});
|
|
988
|
+
return retVal;
|
|
989
|
+
};
|
|
990
|
+
const de_WebhookCallLiveAnnotationEvent = (output, context) => {
|
|
991
|
+
return take(output, {
|
|
992
|
+
'company': __expectString,
|
|
993
|
+
'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
994
|
+
'id': __expectString,
|
|
995
|
+
'integrationId': __expectString,
|
|
996
|
+
'pbx': __expectString,
|
|
997
|
+
'time': __expectLong,
|
|
998
|
+
'type': __expectString,
|
|
999
|
+
});
|
|
1000
|
+
};
|
|
730
1001
|
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
731
1002
|
return take(output, {
|
|
732
1003
|
'company': __expectString,
|
|
@@ -738,6 +1009,28 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
|
738
1009
|
'type': __expectString,
|
|
739
1010
|
});
|
|
740
1011
|
};
|
|
1012
|
+
const de_WebhookChatLiveAnnotationEvent = (output, context) => {
|
|
1013
|
+
return take(output, {
|
|
1014
|
+
'company': __expectString,
|
|
1015
|
+
'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
1016
|
+
'id': __expectString,
|
|
1017
|
+
'integrationId': __expectString,
|
|
1018
|
+
'pbx': __expectString,
|
|
1019
|
+
'time': __expectLong,
|
|
1020
|
+
'type': __expectString,
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
|
|
1024
|
+
return take(output, {
|
|
1025
|
+
'company': __expectString,
|
|
1026
|
+
'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
1027
|
+
'id': __expectString,
|
|
1028
|
+
'integrationId': __expectString,
|
|
1029
|
+
'pbx': __expectString,
|
|
1030
|
+
'time': __expectLong,
|
|
1031
|
+
'type': __expectString,
|
|
1032
|
+
});
|
|
1033
|
+
};
|
|
741
1034
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
742
1035
|
return take(output, {
|
|
743
1036
|
'connectionId': __expectString,
|