@wildix/wda-stream-client 1.1.60 → 1.1.61
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 +70 -25
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +396 -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 +68 -23
- package/dist-es/models/models_1.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +391 -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 +447 -93
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +287 -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 +719 -361
- package/dist-types/models/models_1.d.ts +375 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/package.json +1 -1
|
@@ -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 = {};
|
|
@@ -216,7 +261,9 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
216
261
|
});
|
|
217
262
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
218
263
|
const doc = take(data, {
|
|
264
|
+
'CallAnalyticsAnnotationsRecordEvent': _ => de_CallAnalyticsAnnotationsRecordEvent(_, context),
|
|
219
265
|
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
266
|
+
'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
220
267
|
'CallAnalyticsLiveCompleteEvent': _json,
|
|
221
268
|
'CallAnalyticsLiveInterruptedEvent': _json,
|
|
222
269
|
'CallAnalyticsLiveProgressEvent': _json,
|
|
@@ -224,6 +271,8 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
224
271
|
'CallAnalyticsRecordEvent': _json,
|
|
225
272
|
'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
|
|
226
273
|
'CallEventType': __expectString,
|
|
274
|
+
'ChatAnalyticsAnnotationsRecordEvent': _ => de_ChatAnalyticsAnnotationsRecordEvent(_, context),
|
|
275
|
+
'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
227
276
|
'ChatAnalyticsLiveCompleteEvent': _json,
|
|
228
277
|
'ChatAnalyticsLiveInterruptedEvent': _json,
|
|
229
278
|
'ChatAnalyticsLiveProgressEvent': _json,
|
|
@@ -232,6 +281,8 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
232
281
|
'ChatAnalyticsRecordEvent': _json,
|
|
233
282
|
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
234
283
|
'ChatEventType': __expectString,
|
|
284
|
+
'ConferenceAnalyticsAnnotationsRecordEvent': _ => de_ConferenceAnalyticsAnnotationsRecordEvent(_, context),
|
|
285
|
+
'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
235
286
|
'ConferenceAnalyticsLiveCompleteEvent': _json,
|
|
236
287
|
'ConferenceAnalyticsLiveInterruptedEvent': _json,
|
|
237
288
|
'ConferenceAnalyticsLiveJoinEvent': _json,
|
|
@@ -253,7 +304,9 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
253
304
|
'ServiceCallAnalyticsRecordEvent': _json,
|
|
254
305
|
'ServiceCallEventType': __expectString,
|
|
255
306
|
'ServiceEventType': __expectString,
|
|
307
|
+
'WebhookCallAnnotationsCompletedEvent': _ => de_WebhookCallAnnotationsCompletedEvent(_, context),
|
|
256
308
|
'WebhookCallCompletedEvent': _json,
|
|
309
|
+
'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
|
|
257
310
|
'WebhookCallLiveCompletedEvent': _json,
|
|
258
311
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
259
312
|
'WebhookCallLiveProgressEvent': _json,
|
|
@@ -265,13 +318,17 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
265
318
|
'WebhookCallSummaryCompletedEvent': _json,
|
|
266
319
|
'WebhookCallTranscriptionCompletedEvent': _json,
|
|
267
320
|
'WebhookCallTranscriptionTextCompletedEvent': _json,
|
|
321
|
+
'WebhookChatAnnotationsCompletedEvent': _ => de_WebhookChatAnnotationsCompletedEvent(_, context),
|
|
268
322
|
'WebhookChatCompletedEvent': _json,
|
|
323
|
+
'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
|
|
269
324
|
'WebhookChatLiveCompletedEvent': _json,
|
|
270
325
|
'WebhookChatLiveInterruptedEvent': _json,
|
|
271
326
|
'WebhookChatLiveProgressEvent': _json,
|
|
272
327
|
'WebhookChatManagerMissedEvent': _json,
|
|
273
328
|
'WebhookChatSummaryCompletedEvent': _json,
|
|
329
|
+
'WebhookConferenceAnnotationsCompletedEvent': _ => de_WebhookConferenceAnnotationsCompletedEvent(_, context),
|
|
274
330
|
'WebhookConferenceCompletedEvent': _json,
|
|
331
|
+
'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
|
|
275
332
|
'WebhookConferenceLiveCompletedEvent': _json,
|
|
276
333
|
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
277
334
|
'WebhookConferenceLiveJoinEvent': _json,
|
|
@@ -330,6 +387,22 @@ export const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
330
387
|
Object.assign(contents, doc);
|
|
331
388
|
return contents;
|
|
332
389
|
};
|
|
390
|
+
export const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
|
|
391
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
+
return de_CommandError(output, context);
|
|
393
|
+
}
|
|
394
|
+
const contents = map({
|
|
395
|
+
$metadata: deserializeMetadata(output),
|
|
396
|
+
});
|
|
397
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
398
|
+
const doc = take(data, {
|
|
399
|
+
'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
|
|
400
|
+
'company': __expectString,
|
|
401
|
+
'flows': _json,
|
|
402
|
+
});
|
|
403
|
+
Object.assign(contents, doc);
|
|
404
|
+
return contents;
|
|
405
|
+
};
|
|
333
406
|
export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
334
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
408
|
return de_CommandError(output, context);
|
|
@@ -346,6 +419,21 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
|
|
|
346
419
|
Object.assign(contents, doc);
|
|
347
420
|
return contents;
|
|
348
421
|
};
|
|
422
|
+
export const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
|
|
423
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
424
|
+
return de_CommandError(output, context);
|
|
425
|
+
}
|
|
426
|
+
const contents = map({
|
|
427
|
+
$metadata: deserializeMetadata(output),
|
|
428
|
+
});
|
|
429
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
430
|
+
const doc = take(data, {
|
|
431
|
+
'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
|
|
432
|
+
'chat': _json,
|
|
433
|
+
});
|
|
434
|
+
Object.assign(contents, doc);
|
|
435
|
+
return contents;
|
|
436
|
+
};
|
|
349
437
|
export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
350
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
439
|
return de_CommandError(output, context);
|
|
@@ -360,6 +448,21 @@ export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
|
360
448
|
Object.assign(contents, doc);
|
|
361
449
|
return contents;
|
|
362
450
|
};
|
|
451
|
+
export const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
|
|
452
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
453
|
+
return de_CommandError(output, context);
|
|
454
|
+
}
|
|
455
|
+
const contents = map({
|
|
456
|
+
$metadata: deserializeMetadata(output),
|
|
457
|
+
});
|
|
458
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
459
|
+
const doc = take(data, {
|
|
460
|
+
'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
|
|
461
|
+
'conference': _json,
|
|
462
|
+
});
|
|
463
|
+
Object.assign(contents, doc);
|
|
464
|
+
return contents;
|
|
465
|
+
};
|
|
363
466
|
export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
364
467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
468
|
return de_CommandError(output, context);
|
|
@@ -527,10 +630,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
|
527
630
|
const se_Document = (input, context) => {
|
|
528
631
|
return input;
|
|
529
632
|
};
|
|
633
|
+
const se_Annotation = (input, context) => {
|
|
634
|
+
return take(input, {
|
|
635
|
+
'id': [],
|
|
636
|
+
'payload': _ => se_AnnotationPayload(_, context),
|
|
637
|
+
'source': _json,
|
|
638
|
+
'time': [],
|
|
639
|
+
});
|
|
640
|
+
};
|
|
641
|
+
const se_AnnotationPayload = (input, context) => {
|
|
642
|
+
return AnnotationPayload.visit(input, {
|
|
643
|
+
result: value => ({ "result": se_AnnotationResultValue(value, context) }),
|
|
644
|
+
tag: value => ({ "tag": value }),
|
|
645
|
+
text: value => ({ "text": value }),
|
|
646
|
+
variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
|
|
647
|
+
_: (name, value) => ({ [name]: value })
|
|
648
|
+
});
|
|
649
|
+
};
|
|
650
|
+
const se_AnnotationResultValue = (input, context) => {
|
|
651
|
+
return take(input, {
|
|
652
|
+
'value': _ => se_Document(_, context),
|
|
653
|
+
});
|
|
654
|
+
};
|
|
655
|
+
const se_AnnotationVariablesValue = (input, context) => {
|
|
656
|
+
return take(input, {
|
|
657
|
+
'value': _ => se_Document(_, context),
|
|
658
|
+
});
|
|
659
|
+
};
|
|
660
|
+
const se_CallAnnotateConsumeEvent = (input, context) => {
|
|
661
|
+
return take(input, {
|
|
662
|
+
'company': [],
|
|
663
|
+
'data': _ => se_CallAnnotateConsumeEventData(_, context),
|
|
664
|
+
'id': [],
|
|
665
|
+
'pbx': [],
|
|
666
|
+
'time': [],
|
|
667
|
+
'type': [],
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
const se_CallAnnotateConsumeEventData = (input, context) => {
|
|
671
|
+
return take(input, {
|
|
672
|
+
'annotation': _ => se_Annotation(_, context),
|
|
673
|
+
'flowIndex': [],
|
|
674
|
+
});
|
|
675
|
+
};
|
|
676
|
+
const se_ChatAnnotateConsumeEvent = (input, context) => {
|
|
677
|
+
return take(input, {
|
|
678
|
+
'company': [],
|
|
679
|
+
'data': _ => se_ChatAnnotateConsumeEventData(_, context),
|
|
680
|
+
'time': [],
|
|
681
|
+
'type': [],
|
|
682
|
+
});
|
|
683
|
+
};
|
|
684
|
+
const se_ChatAnnotateConsumeEventData = (input, context) => {
|
|
685
|
+
return take(input, {
|
|
686
|
+
'annotation': _ => se_Annotation(_, context),
|
|
687
|
+
'chatId': [],
|
|
688
|
+
});
|
|
689
|
+
};
|
|
690
|
+
const se_ConferenceAnnotateConsumeEvent = (input, context) => {
|
|
691
|
+
return take(input, {
|
|
692
|
+
'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
|
|
693
|
+
'room': [],
|
|
694
|
+
'session': [],
|
|
695
|
+
'time': [],
|
|
696
|
+
'type': [],
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
const se_ConferenceAnnotateConsumeEventData = (input, context) => {
|
|
700
|
+
return take(input, {
|
|
701
|
+
'annotation': _ => se_Annotation(_, context),
|
|
702
|
+
'company': [],
|
|
703
|
+
});
|
|
704
|
+
};
|
|
530
705
|
const se_ConsumeEventInputEvent = (input, context) => {
|
|
531
706
|
return ConsumeEventInputEvent.visit(input, {
|
|
532
707
|
callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
|
|
533
708
|
callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
|
|
709
|
+
callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
|
|
534
710
|
callAttachment: value => ({ "callAttachment": _json(value) }),
|
|
535
711
|
callEnd: value => ({ "callEnd": _json(value) }),
|
|
536
712
|
callLive: value => ({ "callLive": _json(value) }),
|
|
@@ -543,9 +719,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
543
719
|
callStart: value => ({ "callStart": _json(value) }),
|
|
544
720
|
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
545
721
|
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
722
|
+
chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
|
|
546
723
|
chatMessage: value => ({ "chatMessage": _json(value) }),
|
|
547
724
|
chatNew: value => ({ "chatNew": _json(value) }),
|
|
548
725
|
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
726
|
+
conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
|
|
549
727
|
conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
|
|
550
728
|
conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
|
|
551
729
|
conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
|
|
@@ -635,6 +813,63 @@ const se_WhatsAppStatusEvent = (input, context) => {
|
|
|
635
813
|
const de_Document = (output, context) => {
|
|
636
814
|
return output;
|
|
637
815
|
};
|
|
816
|
+
const de_Annotation = (output, context) => {
|
|
817
|
+
return take(output, {
|
|
818
|
+
'id': __expectString,
|
|
819
|
+
'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
|
|
820
|
+
'source': _json,
|
|
821
|
+
'time': __expectLong,
|
|
822
|
+
});
|
|
823
|
+
};
|
|
824
|
+
const de_AnnotationPayload = (output, context) => {
|
|
825
|
+
if (output.result != null) {
|
|
826
|
+
return {
|
|
827
|
+
result: de_AnnotationResultValue(output.result, context)
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
if (__expectString(output.tag) !== undefined) {
|
|
831
|
+
return { tag: __expectString(output.tag) };
|
|
832
|
+
}
|
|
833
|
+
if (__expectString(output.text) !== undefined) {
|
|
834
|
+
return { text: __expectString(output.text) };
|
|
835
|
+
}
|
|
836
|
+
if (output.variables != null) {
|
|
837
|
+
return {
|
|
838
|
+
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
return { $unknown: Object.entries(output)[0] };
|
|
842
|
+
};
|
|
843
|
+
const de_AnnotationResultValue = (output, context) => {
|
|
844
|
+
return take(output, {
|
|
845
|
+
'value': (_) => de_Document(_, context),
|
|
846
|
+
});
|
|
847
|
+
};
|
|
848
|
+
const de_Annotations = (output, context) => {
|
|
849
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
850
|
+
return de_Annotation(entry, context);
|
|
851
|
+
});
|
|
852
|
+
return retVal;
|
|
853
|
+
};
|
|
854
|
+
const de_AnnotationVariablesValue = (output, context) => {
|
|
855
|
+
return take(output, {
|
|
856
|
+
'value': (_) => de_Document(_, context),
|
|
857
|
+
});
|
|
858
|
+
};
|
|
859
|
+
const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
860
|
+
return take(output, {
|
|
861
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
862
|
+
'callStartTime': __expectLong,
|
|
863
|
+
'company': __expectString,
|
|
864
|
+
'flowIndex': __expectInt32,
|
|
865
|
+
'flowStartTime': __expectLong,
|
|
866
|
+
'id': __expectString,
|
|
867
|
+
'licenses': _json,
|
|
868
|
+
'pbx': __expectString,
|
|
869
|
+
'time': __expectLong,
|
|
870
|
+
'type': __expectString,
|
|
871
|
+
});
|
|
872
|
+
};
|
|
638
873
|
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
639
874
|
return take(output, {
|
|
640
875
|
'company': __expectString,
|
|
@@ -648,6 +883,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
|
648
883
|
'type': __expectString,
|
|
649
884
|
});
|
|
650
885
|
};
|
|
886
|
+
const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
887
|
+
return take(output, {
|
|
888
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
889
|
+
'callStartTime': __expectLong,
|
|
890
|
+
'company': __expectString,
|
|
891
|
+
'event': __expectString,
|
|
892
|
+
'flowIndex': __expectInt32,
|
|
893
|
+
'flowStartTime': __expectLong,
|
|
894
|
+
'id': __expectString,
|
|
895
|
+
'licenses': _json,
|
|
896
|
+
'pbx': __expectString,
|
|
897
|
+
'time': __expectLong,
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
901
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
902
|
+
return de_CallAnalyticsLiveAnnotationEvent(entry, context);
|
|
903
|
+
});
|
|
904
|
+
return retVal;
|
|
905
|
+
};
|
|
651
906
|
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
652
907
|
return take(output, {
|
|
653
908
|
'callStartTime': __expectLong,
|
|
@@ -719,6 +974,32 @@ const de_CallTranscriptionList = (output, context) => {
|
|
|
719
974
|
});
|
|
720
975
|
return retVal;
|
|
721
976
|
};
|
|
977
|
+
const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
978
|
+
return take(output, {
|
|
979
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
980
|
+
'chatId': __expectString,
|
|
981
|
+
'company': __expectString,
|
|
982
|
+
'id': __expectString,
|
|
983
|
+
'time': __expectLong,
|
|
984
|
+
'type': __expectString,
|
|
985
|
+
});
|
|
986
|
+
};
|
|
987
|
+
const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
988
|
+
return take(output, {
|
|
989
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
990
|
+
'chatId': __expectString,
|
|
991
|
+
'company': __expectString,
|
|
992
|
+
'event': __expectString,
|
|
993
|
+
'id': __expectString,
|
|
994
|
+
'time': __expectLong,
|
|
995
|
+
});
|
|
996
|
+
};
|
|
997
|
+
const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
998
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
999
|
+
return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
|
|
1000
|
+
});
|
|
1001
|
+
return retVal;
|
|
1002
|
+
};
|
|
722
1003
|
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
723
1004
|
return take(output, {
|
|
724
1005
|
'chatId': __expectString,
|
|
@@ -729,6 +1010,58 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
|
729
1010
|
'type': __expectString,
|
|
730
1011
|
});
|
|
731
1012
|
};
|
|
1013
|
+
const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
1014
|
+
return take(output, {
|
|
1015
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
1016
|
+
'company': __expectString,
|
|
1017
|
+
'id': __expectString,
|
|
1018
|
+
'time': __expectLong,
|
|
1019
|
+
'type': __expectString,
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
1023
|
+
return take(output, {
|
|
1024
|
+
'annotation': (_) => de_Annotation(_, context),
|
|
1025
|
+
'company': __expectString,
|
|
1026
|
+
'event': __expectString,
|
|
1027
|
+
'id': __expectString,
|
|
1028
|
+
'time': __expectLong,
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
1031
|
+
const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
1032
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1033
|
+
return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
|
|
1034
|
+
});
|
|
1035
|
+
return retVal;
|
|
1036
|
+
};
|
|
1037
|
+
const de_WebhookCallAnnotationsCompletedEvent = (output, context) => {
|
|
1038
|
+
return take(output, {
|
|
1039
|
+
'company': __expectString,
|
|
1040
|
+
'data': (_) => de_WebhookCallAnnotationsCompletedEventData(_, context),
|
|
1041
|
+
'id': __expectString,
|
|
1042
|
+
'integrationId': __expectString,
|
|
1043
|
+
'pbx': __expectString,
|
|
1044
|
+
'time': __expectLong,
|
|
1045
|
+
'type': __expectString,
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
const de_WebhookCallAnnotationsCompletedEventData = (output, context) => {
|
|
1049
|
+
return take(output, {
|
|
1050
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
1051
|
+
'call': _json,
|
|
1052
|
+
});
|
|
1053
|
+
};
|
|
1054
|
+
const de_WebhookCallLiveAnnotationEvent = (output, context) => {
|
|
1055
|
+
return take(output, {
|
|
1056
|
+
'company': __expectString,
|
|
1057
|
+
'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
1058
|
+
'id': __expectString,
|
|
1059
|
+
'integrationId': __expectString,
|
|
1060
|
+
'pbx': __expectString,
|
|
1061
|
+
'time': __expectLong,
|
|
1062
|
+
'type': __expectString,
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
732
1065
|
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
733
1066
|
return take(output, {
|
|
734
1067
|
'company': __expectString,
|
|
@@ -740,6 +1073,62 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
|
740
1073
|
'type': __expectString,
|
|
741
1074
|
});
|
|
742
1075
|
};
|
|
1076
|
+
const de_WebhookChatAnnotationsCompletedEvent = (output, context) => {
|
|
1077
|
+
return take(output, {
|
|
1078
|
+
'company': __expectString,
|
|
1079
|
+
'data': (_) => de_WebhookChatAnnotationsCompletedEventData(_, context),
|
|
1080
|
+
'id': __expectString,
|
|
1081
|
+
'integrationId': __expectString,
|
|
1082
|
+
'pbx': __expectString,
|
|
1083
|
+
'time': __expectLong,
|
|
1084
|
+
'type': __expectString,
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1087
|
+
const de_WebhookChatAnnotationsCompletedEventData = (output, context) => {
|
|
1088
|
+
return take(output, {
|
|
1089
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
1090
|
+
'chat': _json,
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
const de_WebhookChatLiveAnnotationEvent = (output, context) => {
|
|
1094
|
+
return take(output, {
|
|
1095
|
+
'company': __expectString,
|
|
1096
|
+
'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
1097
|
+
'id': __expectString,
|
|
1098
|
+
'integrationId': __expectString,
|
|
1099
|
+
'pbx': __expectString,
|
|
1100
|
+
'time': __expectLong,
|
|
1101
|
+
'type': __expectString,
|
|
1102
|
+
});
|
|
1103
|
+
};
|
|
1104
|
+
const de_WebhookConferenceAnnotationsCompletedEvent = (output, context) => {
|
|
1105
|
+
return take(output, {
|
|
1106
|
+
'company': __expectString,
|
|
1107
|
+
'data': (_) => de_WebhookConferenceAnnotationsCompletedEventData(_, context),
|
|
1108
|
+
'id': __expectString,
|
|
1109
|
+
'integrationId': __expectString,
|
|
1110
|
+
'pbx': __expectString,
|
|
1111
|
+
'time': __expectLong,
|
|
1112
|
+
'type': __expectString,
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
const de_WebhookConferenceAnnotationsCompletedEventData = (output, context) => {
|
|
1116
|
+
return take(output, {
|
|
1117
|
+
'annotations': (_) => de_Annotations(_, context),
|
|
1118
|
+
'conference': _json,
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
|
|
1122
|
+
return take(output, {
|
|
1123
|
+
'company': __expectString,
|
|
1124
|
+
'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
1125
|
+
'id': __expectString,
|
|
1126
|
+
'integrationId': __expectString,
|
|
1127
|
+
'pbx': __expectString,
|
|
1128
|
+
'time': __expectLong,
|
|
1129
|
+
'type': __expectString,
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
743
1132
|
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
744
1133
|
return take(output, {
|
|
745
1134
|
'connectionId': __expectString,
|
|
@@ -2,8 +2,11 @@ import { WdaStreamClient } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
5
|
+
import { GetOngoingCallAnnotationsCommandInput, GetOngoingCallAnnotationsCommandOutput } from "./commands/GetOngoingCallAnnotationsCommand";
|
|
5
6
|
import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
|
|
6
7
|
import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
8
|
+
import { GetOngoingChatAnnotationsCommandInput, GetOngoingChatAnnotationsCommandOutput } from "./commands/GetOngoingChatAnnotationsCommand";
|
|
9
|
+
import { GetOngoingConferenceAnnotationsCommandInput, GetOngoingConferenceAnnotationsCommandOutput } from "./commands/GetOngoingConferenceAnnotationsCommand";
|
|
7
10
|
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
8
11
|
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
9
12
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
@@ -38,18 +41,36 @@ export interface WdaStream {
|
|
|
38
41
|
getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
|
|
39
42
|
getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
40
43
|
getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link GetOngoingCallAnnotationsCommand}
|
|
46
|
+
*/
|
|
47
|
+
getOngoingCallAnnotations(args: GetOngoingCallAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallAnnotationsCommandOutput>;
|
|
48
|
+
getOngoingCallAnnotations(args: GetOngoingCallAnnotationsCommandInput, cb: (err: any, data?: GetOngoingCallAnnotationsCommandOutput) => void): void;
|
|
49
|
+
getOngoingCallAnnotations(args: GetOngoingCallAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallAnnotationsCommandOutput) => void): void;
|
|
41
50
|
/**
|
|
42
51
|
* @see {@link GetOngoingCallTranscriptionCommand}
|
|
43
52
|
*/
|
|
44
53
|
getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallTranscriptionCommandOutput>;
|
|
45
54
|
getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
|
|
46
55
|
getOngoingCallTranscription(args: GetOngoingCallTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallTranscriptionCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link GetOngoingChatAnnotationsCommand}
|
|
58
|
+
*/
|
|
59
|
+
getOngoingChatAnnotations(args: GetOngoingChatAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingChatAnnotationsCommandOutput>;
|
|
60
|
+
getOngoingChatAnnotations(args: GetOngoingChatAnnotationsCommandInput, cb: (err: any, data?: GetOngoingChatAnnotationsCommandOutput) => void): void;
|
|
61
|
+
getOngoingChatAnnotations(args: GetOngoingChatAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingChatAnnotationsCommandOutput) => void): void;
|
|
47
62
|
/**
|
|
48
63
|
* @see {@link GetOngoingConferenceCommand}
|
|
49
64
|
*/
|
|
50
65
|
getOngoingConference(args: GetOngoingConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceCommandOutput>;
|
|
51
66
|
getOngoingConference(args: GetOngoingConferenceCommandInput, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
|
|
52
67
|
getOngoingConference(args: GetOngoingConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link GetOngoingConferenceAnnotationsCommand}
|
|
70
|
+
*/
|
|
71
|
+
getOngoingConferenceAnnotations(args: GetOngoingConferenceAnnotationsCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceAnnotationsCommandOutput>;
|
|
72
|
+
getOngoingConferenceAnnotations(args: GetOngoingConferenceAnnotationsCommandInput, cb: (err: any, data?: GetOngoingConferenceAnnotationsCommandOutput) => void): void;
|
|
73
|
+
getOngoingConferenceAnnotations(args: GetOngoingConferenceAnnotationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceAnnotationsCommandOutput) => void): void;
|
|
53
74
|
/**
|
|
54
75
|
* @see {@link GetOngoingConferenceTranscriptionCommand}
|
|
55
76
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
3
3
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
4
|
+
import { GetOngoingCallAnnotationsCommandInput, GetOngoingCallAnnotationsCommandOutput } from "./commands/GetOngoingCallAnnotationsCommand";
|
|
4
5
|
import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
|
|
5
6
|
import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
7
|
+
import { GetOngoingChatAnnotationsCommandInput, GetOngoingChatAnnotationsCommandOutput } from "./commands/GetOngoingChatAnnotationsCommand";
|
|
8
|
+
import { GetOngoingConferenceAnnotationsCommandInput, GetOngoingConferenceAnnotationsCommandOutput } from "./commands/GetOngoingConferenceAnnotationsCommand";
|
|
6
9
|
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
7
10
|
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
8
11
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
@@ -21,11 +24,11 @@ export { __Client };
|
|
|
21
24
|
/**
|
|
22
25
|
* @public
|
|
23
26
|
*/
|
|
24
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
27
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallAnnotationsCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingChatAnnotationsCommandInput | GetOngoingConferenceAnnotationsCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
25
28
|
/**
|
|
26
29
|
* @public
|
|
27
30
|
*/
|
|
28
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallAnnotationsCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingChatAnnotationsCommandOutput | GetOngoingConferenceAnnotationsCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
29
32
|
/**
|
|
30
33
|
* @public
|
|
31
34
|
*/
|