@wildix/wda-stream-client 1.1.56 → 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 -31
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +300 -3
- 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 -29
- package/dist-es/models/models_1.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +295 -4
- package/dist-types/WdaStream.d.ts +21 -0
- package/dist-types/WdaStreamClient.d.ts +5 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +146 -88
- package/dist-types/commands/DescribeEventCommand.d.ts +303 -195
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +286 -0
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
- 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/ListServicesCommand.d.ts +0 -1
- package/dist-types/commands/QueryConversationsCommand.d.ts +6 -4
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +675 -705
- package/dist-types/models/models_1.d.ts +254 -18
- 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",
|
|
@@ -280,7 +311,6 @@ export const LiveEventType = {
|
|
|
280
311
|
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
281
312
|
SERVICE: "service",
|
|
282
313
|
SERVICE_AGENT: "service_agent",
|
|
283
|
-
SERVICE_AGENT_STATUS: "service_agent_status",
|
|
284
314
|
SERVICE_CALL: "service_call",
|
|
285
315
|
SERVICE_CALL_COMPLETE: "service_call_complete",
|
|
286
316
|
SERVICE_COMPLETE: "service_complete",
|
|
@@ -318,6 +348,7 @@ export const CallEndConsume = {
|
|
|
318
348
|
};
|
|
319
349
|
export const CallEventType = {
|
|
320
350
|
COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
|
|
351
|
+
LIVE_ANNOTATION_EVENT: "CallAnalyticsLiveAnnotationEvent",
|
|
321
352
|
LIVE_COMPLETE_EVENT: "CallAnalyticsLiveCompleteEvent",
|
|
322
353
|
LIVE_INTERRUPTED_EVENT: "CallAnalyticsLiveInterruptedEvent",
|
|
323
354
|
LIVE_PROGRESS_EVENT: "CallAnalyticsLiveProgressEvent",
|
|
@@ -331,11 +362,13 @@ export const CallFlowConsumeStatus = {
|
|
|
331
362
|
TALKING: "talking",
|
|
332
363
|
};
|
|
333
364
|
export const ChatConsumeEventType = {
|
|
365
|
+
CHAT_ANNOTATE: "CHAT.ANNOTATE",
|
|
334
366
|
CHAT_MESSAGE: "CHAT.MESSAGE",
|
|
335
367
|
CHAT_NEW: "CHAT.NEW",
|
|
336
368
|
CHAT_UPDATE: "CHAT.UPDATE",
|
|
337
369
|
};
|
|
338
370
|
export const ChatEventType = {
|
|
371
|
+
LIVE_ANNOTATION_EVENT: "ChatAnalyticsLiveAnnotationEvent",
|
|
339
372
|
LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
|
|
340
373
|
LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
|
|
341
374
|
LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
|
|
@@ -344,12 +377,8 @@ export const ChatEventType = {
|
|
|
344
377
|
RECORD_EVENT: "ChatAnalyticsRecordEvent",
|
|
345
378
|
TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
|
|
346
379
|
};
|
|
347
|
-
export const ConferenceConsumeDirection = {
|
|
348
|
-
INBOUND: "inbound",
|
|
349
|
-
INTERNAL: "internal",
|
|
350
|
-
OUTBOUND: "outbound",
|
|
351
|
-
};
|
|
352
380
|
export const ConferenceConsumeEventType = {
|
|
381
|
+
CONFERENCE_ANNOTATE: "CONFERENCE.ANNOTATE",
|
|
353
382
|
CONFERENCE_END: "CONFERENCE.END",
|
|
354
383
|
CONFERENCE_JOIN: "CONFERENCE.JOIN",
|
|
355
384
|
CONFERENCE_KEEP_ALIVE: "CONFERENCE.KEEP_ALIVE",
|
|
@@ -361,7 +390,13 @@ export const ConferenceConsumeEventType = {
|
|
|
361
390
|
CONFERENCE_TIMEFRAMES: "CONFERENCE.TIMEFRAMES",
|
|
362
391
|
CONFERENCE_TRANSCRIPTION: "CONFERENCE.TRANSCRIPTION",
|
|
363
392
|
};
|
|
393
|
+
export const ConferenceConsumeDirection = {
|
|
394
|
+
INBOUND: "inbound",
|
|
395
|
+
INTERNAL: "internal",
|
|
396
|
+
OUTBOUND: "outbound",
|
|
397
|
+
};
|
|
364
398
|
export const ConferenceEventType = {
|
|
399
|
+
LIVE_ANNOTATION_EVENT: "ConferenceAnalyticsLiveAnnotationEvent",
|
|
365
400
|
LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
|
|
366
401
|
LIVE_INTERRUPTED_EVENT: "ConferenceAnalyticsLiveInterruptedEvent",
|
|
367
402
|
LIVE_JOIN_EVENT: "ConferenceAnalyticsLiveJoinEvent",
|
|
@@ -399,11 +434,8 @@ export const ServiceConsumeEventType = {
|
|
|
399
434
|
export const ServiceCallAction = {
|
|
400
435
|
ANSWER: "ANSWER",
|
|
401
436
|
CANCEL: "CANCEL",
|
|
402
|
-
END: "END",
|
|
403
|
-
INIT: "INIT",
|
|
404
437
|
REJECT: "REJECT",
|
|
405
438
|
RING: "RING",
|
|
406
|
-
WAIT: "WAIT",
|
|
407
439
|
};
|
|
408
440
|
export const SmsConsumeEventType = {
|
|
409
441
|
SMS_INBOUND: "SMS.INBOUND",
|
|
@@ -435,6 +467,8 @@ export var ConsumeEventInputEvent;
|
|
|
435
467
|
return visitor.callUpdate(value.callUpdate);
|
|
436
468
|
if (value.callSplit !== undefined)
|
|
437
469
|
return visitor.callSplit(value.callSplit);
|
|
470
|
+
if (value.callAnnotate !== undefined)
|
|
471
|
+
return visitor.callAnnotate(value.callAnnotate);
|
|
438
472
|
if (value.callLive !== undefined)
|
|
439
473
|
return visitor.callLive(value.callLive);
|
|
440
474
|
if (value.callAgentsStart !== undefined)
|
|
@@ -463,6 +497,8 @@ export var ConsumeEventInputEvent;
|
|
|
463
497
|
return visitor.conferenceStart(value.conferenceStart);
|
|
464
498
|
if (value.conferenceJoin !== undefined)
|
|
465
499
|
return visitor.conferenceJoin(value.conferenceJoin);
|
|
500
|
+
if (value.conferenceAnnotate !== undefined)
|
|
501
|
+
return visitor.conferenceAnnotate(value.conferenceAnnotate);
|
|
466
502
|
if (value.conferenceRecordStart !== undefined)
|
|
467
503
|
return visitor.conferenceRecordStart(value.conferenceRecordStart);
|
|
468
504
|
if (value.conferenceTranscription !== undefined)
|
|
@@ -483,6 +519,8 @@ export var ConsumeEventInputEvent;
|
|
|
483
519
|
return visitor.chatNew(value.chatNew);
|
|
484
520
|
if (value.chatUpdate !== undefined)
|
|
485
521
|
return visitor.chatUpdate(value.chatUpdate);
|
|
522
|
+
if (value.chatAnnotate !== undefined)
|
|
523
|
+
return visitor.chatAnnotate(value.chatAnnotate);
|
|
486
524
|
if (value.smsInbound !== undefined)
|
|
487
525
|
return visitor.smsInbound(value.smsInbound);
|
|
488
526
|
if (value.smsStatus !== undefined)
|
|
@@ -552,15 +590,14 @@ export const ServiceAnalyticsEventTrigger = {
|
|
|
552
590
|
export const ServiceCallEventType = {
|
|
553
591
|
LIVE_COMPLETE_EVENT: "ServiceCallAnalyticsLiveCompleteEvent",
|
|
554
592
|
LIVE_PROGRESS_EVENT: "ServiceCallAnalyticsLiveProgressEvent",
|
|
555
|
-
RECORD_EVENT: "ServiceCallAnalyticsRecordEvent",
|
|
556
593
|
};
|
|
557
594
|
export const ServiceEventType = {
|
|
558
|
-
AGENTS_STATUS_RECORD_EVENT: "ServiceAgentsStatusAnalyticsRecordEvent",
|
|
559
595
|
LIVE_COMPLETE_EVENT: "ServiceAnalyticsLiveCompleteEvent",
|
|
560
596
|
LIVE_PROGRESS_EVENT: "ServiceAnalyticsLiveProgressEvent",
|
|
561
597
|
};
|
|
562
598
|
export const WebhookEventType = {
|
|
563
599
|
CALL_COMPLETED: "call:completed",
|
|
600
|
+
CALL_LIVE_ANNOTATION: "call:live:annotation",
|
|
564
601
|
CALL_LIVE_COMPLETED: "call:live:completed",
|
|
565
602
|
CALL_LIVE_INTERRUPTED: "call:live:interrupted",
|
|
566
603
|
CALL_LIVE_PROGRESS: "call:live:progress",
|
|
@@ -573,6 +610,7 @@ export const WebhookEventType = {
|
|
|
573
610
|
CALL_TRANSCRIPTION_COMPLETED: "call:transcription:completed",
|
|
574
611
|
CALL_TRANSCRIPTION_TEXT_COMPLETED: "call:transcription:text:completed",
|
|
575
612
|
CHAT_COMPLETED: "chat:completed",
|
|
613
|
+
CHAT_LIVE_ANNOTATION: "chat:live:annotation",
|
|
576
614
|
CHAT_LIVE_COMPLETED: "chat:live:completed",
|
|
577
615
|
CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
|
|
578
616
|
CHAT_LIVE_MISSED: "chat:live:missed",
|
|
@@ -580,6 +618,7 @@ export const WebhookEventType = {
|
|
|
580
618
|
CHAT_MANAGER_MISSED: "chat:manager:missed",
|
|
581
619
|
CHAT_SUMMARY_COMPLETED: "chat:summary:completed",
|
|
582
620
|
CONFERENCE_COMPLETED: "conference:completed",
|
|
621
|
+
CONFERENCE_LIVE_ANNOTATION: "conference:live:annotation",
|
|
583
622
|
CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
|
|
584
623
|
CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
|
|
585
624
|
CONFERENCE_LIVE_JOIN: "conference:live:join",
|
|
@@ -597,9 +636,3 @@ export const WebhookEventType = {
|
|
|
597
636
|
PRESENCE_USER: "presence:user",
|
|
598
637
|
SMS_STATUS: "sms:status",
|
|
599
638
|
};
|
|
600
|
-
export const WebsocketEvent = {
|
|
601
|
-
AUTHORIZED: "authorized",
|
|
602
|
-
BROADCAST: "broadcast",
|
|
603
|
-
SUBSCRIBED: "subscribed",
|
|
604
|
-
UNSUBSCRIBE: "unsubscribed",
|
|
605
|
-
};
|
|
@@ -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,
|
|
@@ -245,15 +293,14 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
245
293
|
'PresenceAnalyticsStatusEvent': _json,
|
|
246
294
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
247
295
|
'PresenceEventType': __expectString,
|
|
248
|
-
'ServiceAgentsStatusAnalyticsRecordEvent': _json,
|
|
249
296
|
'ServiceAnalyticsLiveCompleteEvent': _json,
|
|
250
297
|
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
251
298
|
'ServiceCallAnalyticsLiveCompleteEvent': _json,
|
|
252
299
|
'ServiceCallAnalyticsLiveProgressEvent': _json,
|
|
253
|
-
'ServiceCallAnalyticsRecordEvent': _json,
|
|
254
300
|
'ServiceCallEventType': __expectString,
|
|
255
301
|
'ServiceEventType': __expectString,
|
|
256
302
|
'WebhookCallCompletedEvent': _json,
|
|
303
|
+
'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
|
|
257
304
|
'WebhookCallLiveCompletedEvent': _json,
|
|
258
305
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
259
306
|
'WebhookCallLiveProgressEvent': _json,
|
|
@@ -266,12 +313,14 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
266
313
|
'WebhookCallTranscriptionCompletedEvent': _json,
|
|
267
314
|
'WebhookCallTranscriptionTextCompletedEvent': _json,
|
|
268
315
|
'WebhookChatCompletedEvent': _json,
|
|
316
|
+
'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
|
|
269
317
|
'WebhookChatLiveCompletedEvent': _json,
|
|
270
318
|
'WebhookChatLiveInterruptedEvent': _json,
|
|
271
319
|
'WebhookChatLiveProgressEvent': _json,
|
|
272
320
|
'WebhookChatManagerMissedEvent': _json,
|
|
273
321
|
'WebhookChatSummaryCompletedEvent': _json,
|
|
274
322
|
'WebhookConferenceCompletedEvent': _json,
|
|
323
|
+
'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
|
|
275
324
|
'WebhookConferenceLiveCompletedEvent': _json,
|
|
276
325
|
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
277
326
|
'WebhookConferenceLiveJoinEvent': _json,
|
|
@@ -330,6 +379,22 @@ export const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
330
379
|
Object.assign(contents, doc);
|
|
331
380
|
return contents;
|
|
332
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
|
+
};
|
|
333
398
|
export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
334
399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
400
|
return de_CommandError(output, context);
|
|
@@ -346,6 +411,21 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
|
|
|
346
411
|
Object.assign(contents, doc);
|
|
347
412
|
return contents;
|
|
348
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
|
+
};
|
|
349
429
|
export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
350
430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
431
|
return de_CommandError(output, context);
|
|
@@ -360,6 +440,21 @@ export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
|
360
440
|
Object.assign(contents, doc);
|
|
361
441
|
return contents;
|
|
362
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
|
+
};
|
|
363
458
|
export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
364
459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
460
|
return de_CommandError(output, context);
|
|
@@ -527,10 +622,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
527
622
|
const se_Document = (input, context) => {
|
|
528
623
|
return input;
|
|
529
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
|
+
};
|
|
530
697
|
const se_ConsumeEventInputEvent = (input, context) => {
|
|
531
698
|
return ConsumeEventInputEvent.visit(input, {
|
|
532
699
|
callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
|
|
533
700
|
callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
|
|
701
|
+
callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
|
|
534
702
|
callAttachment: value => ({ "callAttachment": _json(value) }),
|
|
535
703
|
callEnd: value => ({ "callEnd": _json(value) }),
|
|
536
704
|
callLive: value => ({ "callLive": _json(value) }),
|
|
@@ -543,9 +711,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
543
711
|
callStart: value => ({ "callStart": _json(value) }),
|
|
544
712
|
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
545
713
|
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
714
|
+
chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
|
|
546
715
|
chatMessage: value => ({ "chatMessage": _json(value) }),
|
|
547
716
|
chatNew: value => ({ "chatNew": _json(value) }),
|
|
548
717
|
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
718
|
+
conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
|
|
549
719
|
conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
|
|
550
720
|
conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
|
|
551
721
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
|
|
@@ -635,6 +805,43 @@ const se_WhatsAppStatusEvent = (input, context) => {
|
|
|
635
805
|
const de_Document = (output, context) => {
|
|
636
806
|
return output;
|
|
637
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
|
+
};
|
|
638
845
|
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
639
846
|
return take(output, {
|
|
640
847
|
'company': __expectString,
|
|
@@ -648,6 +855,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
648
855
|
'type': __expectString,
|
|
649
856
|
});
|
|
650
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
|
+
};
|
|
651
878
|
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
652
879
|
return take(output, {
|
|
653
880
|
'callStartTime': __expectLong,
|
|
@@ -719,6 +946,22 @@ const de_CallTranscriptionList = (output, context) => {
|
|
|
719
946
|
});
|
|
720
947
|
return retVal;
|
|
721
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
|
+
};
|
|
722
965
|
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
723
966
|
return take(output, {
|
|
724
967
|
'chatId': __expectString,
|
|
@@ -729,6 +972,32 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
|
729
972
|
'type': __expectString,
|
|
730
973
|
});
|
|
731
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
|
+
};
|
|
732
1001
|
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
733
1002
|
return take(output, {
|
|
734
1003
|
'company': __expectString,
|
|
@@ -740,6 +1009,28 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
|
740
1009
|
'type': __expectString,
|
|
741
1010
|
});
|
|
742
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
|
+
};
|
|
743
1034
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
744
1035
|
return take(output, {
|
|
745
1036
|
'connectionId': __expectString,
|