@wildix/wda-stream-client 1.1.56 → 1.1.58

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.
Files changed (37) hide show
  1. package/dist-cjs/WdaStream.js +6 -0
  2. package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +21 -0
  3. package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +21 -0
  4. package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +67 -31
  7. package/dist-cjs/models/models_1.js +7 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +342 -3
  9. package/dist-es/WdaStream.js +6 -0
  10. package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +17 -0
  11. package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +17 -0
  12. package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +17 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +65 -29
  15. package/dist-es/models/models_1.js +6 -0
  16. package/dist-es/protocols/Aws_restJson1.js +337 -4
  17. package/dist-types/WdaStream.d.ts +21 -0
  18. package/dist-types/WdaStreamClient.d.ts +5 -2
  19. package/dist-types/commands/ConsumeEventCommand.d.ts +146 -88
  20. package/dist-types/commands/DescribeEventCommand.d.ts +336 -195
  21. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +286 -0
  22. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
  23. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
  24. package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +190 -0
  25. package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +134 -0
  26. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -1
  27. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -2
  28. package/dist-types/commands/ListServicesCommand.d.ts +0 -1
  29. package/dist-types/commands/QueryConversationsCommand.d.ts +6 -4
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +726 -740
  32. package/dist-types/models/models_1.d.ts +288 -18
  33. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. 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,
@@ -245,15 +296,14 @@ export const de_DescribeEventCommand = async (output, context) => {
245
296
  'PresenceAnalyticsStatusEvent': _json,
246
297
  'PresenceAnalyticsTelephonyEvent': _json,
247
298
  'PresenceEventType': __expectString,
248
- 'ServiceAgentsStatusAnalyticsRecordEvent': _json,
249
299
  'ServiceAnalyticsLiveCompleteEvent': _json,
250
300
  'ServiceAnalyticsLiveProgressEvent': _json,
251
301
  'ServiceCallAnalyticsLiveCompleteEvent': _json,
252
302
  'ServiceCallAnalyticsLiveProgressEvent': _json,
253
- 'ServiceCallAnalyticsRecordEvent': _json,
254
303
  'ServiceCallEventType': __expectString,
255
304
  'ServiceEventType': __expectString,
256
305
  'WebhookCallCompletedEvent': _json,
306
+ 'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
257
307
  'WebhookCallLiveCompletedEvent': _json,
258
308
  'WebhookCallLiveInterruptedEvent': _json,
259
309
  'WebhookCallLiveProgressEvent': _json,
@@ -266,12 +316,14 @@ export const de_DescribeEventCommand = async (output, context) => {
266
316
  'WebhookCallTranscriptionCompletedEvent': _json,
267
317
  'WebhookCallTranscriptionTextCompletedEvent': _json,
268
318
  'WebhookChatCompletedEvent': _json,
319
+ 'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
269
320
  'WebhookChatLiveCompletedEvent': _json,
270
321
  'WebhookChatLiveInterruptedEvent': _json,
271
322
  'WebhookChatLiveProgressEvent': _json,
272
323
  'WebhookChatManagerMissedEvent': _json,
273
324
  'WebhookChatSummaryCompletedEvent': _json,
274
325
  'WebhookConferenceCompletedEvent': _json,
326
+ 'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
275
327
  'WebhookConferenceLiveCompletedEvent': _json,
276
328
  'WebhookConferenceLiveInterruptedEvent': _json,
277
329
  'WebhookConferenceLiveJoinEvent': _json,
@@ -330,6 +382,22 @@ export const de_GetOngoingCallCommand = async (output, context) => {
330
382
  Object.assign(contents, doc);
331
383
  return contents;
332
384
  };
385
+ export const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
386
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
387
+ return de_CommandError(output, context);
388
+ }
389
+ const contents = map({
390
+ $metadata: deserializeMetadata(output),
391
+ });
392
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
393
+ const doc = take(data, {
394
+ 'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
395
+ 'company': __expectString,
396
+ 'flows': _json,
397
+ });
398
+ Object.assign(contents, doc);
399
+ return contents;
400
+ };
333
401
  export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
334
402
  if (output.statusCode !== 200 && output.statusCode >= 300) {
335
403
  return de_CommandError(output, context);
@@ -346,6 +414,21 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
346
414
  Object.assign(contents, doc);
347
415
  return contents;
348
416
  };
417
+ export const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
418
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
419
+ return de_CommandError(output, context);
420
+ }
421
+ const contents = map({
422
+ $metadata: deserializeMetadata(output),
423
+ });
424
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
425
+ const doc = take(data, {
426
+ 'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
427
+ 'chat': _json,
428
+ });
429
+ Object.assign(contents, doc);
430
+ return contents;
431
+ };
349
432
  export const de_GetOngoingConferenceCommand = async (output, context) => {
350
433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
351
434
  return de_CommandError(output, context);
@@ -360,6 +443,21 @@ export const de_GetOngoingConferenceCommand = async (output, context) => {
360
443
  Object.assign(contents, doc);
361
444
  return contents;
362
445
  };
446
+ export const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
447
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
448
+ return de_CommandError(output, context);
449
+ }
450
+ const contents = map({
451
+ $metadata: deserializeMetadata(output),
452
+ });
453
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
454
+ const doc = take(data, {
455
+ 'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
456
+ 'conference': _json,
457
+ });
458
+ Object.assign(contents, doc);
459
+ return contents;
460
+ };
363
461
  export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
364
462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
365
463
  return de_CommandError(output, context);
@@ -527,10 +625,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
527
625
  const se_Document = (input, context) => {
528
626
  return input;
529
627
  };
628
+ const se_Annotation = (input, context) => {
629
+ return take(input, {
630
+ 'id': [],
631
+ 'payload': _ => se_AnnotationPayload(_, context),
632
+ 'source': _json,
633
+ 'time': [],
634
+ });
635
+ };
636
+ const se_AnnotationPayload = (input, context) => {
637
+ return AnnotationPayload.visit(input, {
638
+ result: value => ({ "result": se_AnnotationResultValue(value, context) }),
639
+ tag: value => ({ "tag": value }),
640
+ text: value => ({ "text": value }),
641
+ variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
642
+ _: (name, value) => ({ [name]: value })
643
+ });
644
+ };
645
+ const se_AnnotationResultValue = (input, context) => {
646
+ return take(input, {
647
+ 'value': _ => se_Document(_, context),
648
+ });
649
+ };
650
+ const se_AnnotationVariablesValue = (input, context) => {
651
+ return take(input, {
652
+ 'value': _ => se_Document(_, context),
653
+ });
654
+ };
655
+ const se_CallAnnotateConsumeEvent = (input, context) => {
656
+ return take(input, {
657
+ 'company': [],
658
+ 'data': _ => se_CallAnnotateConsumeEventData(_, context),
659
+ 'id': [],
660
+ 'pbx': [],
661
+ 'time': [],
662
+ 'type': [],
663
+ });
664
+ };
665
+ const se_CallAnnotateConsumeEventData = (input, context) => {
666
+ return take(input, {
667
+ 'annotation': _ => se_Annotation(_, context),
668
+ 'flowIndex': [],
669
+ });
670
+ };
671
+ const se_ChatAnnotateConsumeEvent = (input, context) => {
672
+ return take(input, {
673
+ 'company': [],
674
+ 'data': _ => se_ChatAnnotateConsumeEventData(_, context),
675
+ 'time': [],
676
+ 'type': [],
677
+ });
678
+ };
679
+ const se_ChatAnnotateConsumeEventData = (input, context) => {
680
+ return take(input, {
681
+ 'annotation': _ => se_Annotation(_, context),
682
+ 'chatId': [],
683
+ });
684
+ };
685
+ const se_ConferenceAnnotateConsumeEvent = (input, context) => {
686
+ return take(input, {
687
+ 'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
688
+ 'room': [],
689
+ 'session': [],
690
+ 'time': [],
691
+ 'type': [],
692
+ });
693
+ };
694
+ const se_ConferenceAnnotateConsumeEventData = (input, context) => {
695
+ return take(input, {
696
+ 'annotation': _ => se_Annotation(_, context),
697
+ 'company': [],
698
+ });
699
+ };
530
700
  const se_ConsumeEventInputEvent = (input, context) => {
531
701
  return ConsumeEventInputEvent.visit(input, {
532
702
  callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
533
703
  callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
704
+ callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
534
705
  callAttachment: value => ({ "callAttachment": _json(value) }),
535
706
  callEnd: value => ({ "callEnd": _json(value) }),
536
707
  callLive: value => ({ "callLive": _json(value) }),
@@ -543,9 +714,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
543
714
  callStart: value => ({ "callStart": _json(value) }),
544
715
  callTranscription: value => ({ "callTranscription": _json(value) }),
545
716
  callUpdate: value => ({ "callUpdate": _json(value) }),
717
+ chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
546
718
  chatMessage: value => ({ "chatMessage": _json(value) }),
547
719
  chatNew: value => ({ "chatNew": _json(value) }),
548
720
  chatUpdate: value => ({ "chatUpdate": _json(value) }),
721
+ conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
549
722
  conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
550
723
  conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
551
724
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
@@ -635,6 +808,63 @@ const se_WhatsAppStatusEvent = (input, context) => {
635
808
  const de_Document = (output, context) => {
636
809
  return output;
637
810
  };
811
+ const de_Annotation = (output, context) => {
812
+ return take(output, {
813
+ 'id': __expectString,
814
+ 'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
815
+ 'source': _json,
816
+ 'time': __expectLong,
817
+ });
818
+ };
819
+ const de_AnnotationPayload = (output, context) => {
820
+ if (output.result != null) {
821
+ return {
822
+ result: de_AnnotationResultValue(output.result, context)
823
+ };
824
+ }
825
+ if (__expectString(output.tag) !== undefined) {
826
+ return { tag: __expectString(output.tag) };
827
+ }
828
+ if (__expectString(output.text) !== undefined) {
829
+ return { text: __expectString(output.text) };
830
+ }
831
+ if (output.variables != null) {
832
+ return {
833
+ variables: de_AnnotationVariablesValue(output.variables, context)
834
+ };
835
+ }
836
+ return { $unknown: Object.entries(output)[0] };
837
+ };
838
+ const de_AnnotationResultValue = (output, context) => {
839
+ return take(output, {
840
+ 'value': (_) => de_Document(_, context),
841
+ });
842
+ };
843
+ const de_Annotations = (output, context) => {
844
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
845
+ return de_Annotation(entry, context);
846
+ });
847
+ return retVal;
848
+ };
849
+ const de_AnnotationVariablesValue = (output, context) => {
850
+ return take(output, {
851
+ 'value': (_) => de_Document(_, context),
852
+ });
853
+ };
854
+ const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
855
+ return take(output, {
856
+ 'annotations': (_) => de_Annotations(_, context),
857
+ 'callStartTime': __expectLong,
858
+ 'company': __expectString,
859
+ 'flowIndex': __expectInt32,
860
+ 'flowStartTime': __expectLong,
861
+ 'id': __expectString,
862
+ 'licenses': _json,
863
+ 'pbx': __expectString,
864
+ 'time': __expectLong,
865
+ 'type': __expectString,
866
+ });
867
+ };
638
868
  const de_CallAnalyticsCostRecordEvent = (output, context) => {
639
869
  return take(output, {
640
870
  'company': __expectString,
@@ -648,6 +878,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
648
878
  'type': __expectString,
649
879
  });
650
880
  };
881
+ const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
882
+ return take(output, {
883
+ 'annotation': (_) => de_Annotation(_, context),
884
+ 'callStartTime': __expectLong,
885
+ 'company': __expectString,
886
+ 'event': __expectString,
887
+ 'flowIndex': __expectInt32,
888
+ 'flowStartTime': __expectLong,
889
+ 'id': __expectString,
890
+ 'licenses': _json,
891
+ 'pbx': __expectString,
892
+ 'time': __expectLong,
893
+ });
894
+ };
895
+ const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
896
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
897
+ return de_CallAnalyticsLiveAnnotationEvent(entry, context);
898
+ });
899
+ return retVal;
900
+ };
651
901
  const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
652
902
  return take(output, {
653
903
  'callStartTime': __expectLong,
@@ -719,6 +969,32 @@ const de_CallTranscriptionList = (output, context) => {
719
969
  });
720
970
  return retVal;
721
971
  };
972
+ const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
973
+ return take(output, {
974
+ 'annotations': (_) => de_Annotations(_, context),
975
+ 'chatId': __expectString,
976
+ 'company': __expectString,
977
+ 'id': __expectString,
978
+ 'time': __expectLong,
979
+ 'type': __expectString,
980
+ });
981
+ };
982
+ const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
983
+ return take(output, {
984
+ 'annotation': (_) => de_Annotation(_, context),
985
+ 'chatId': __expectString,
986
+ 'company': __expectString,
987
+ 'event': __expectString,
988
+ 'id': __expectString,
989
+ 'time': __expectLong,
990
+ });
991
+ };
992
+ const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
993
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
994
+ return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
995
+ });
996
+ return retVal;
997
+ };
722
998
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
723
999
  return take(output, {
724
1000
  'chatId': __expectString,
@@ -729,6 +1005,41 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
729
1005
  'type': __expectString,
730
1006
  });
731
1007
  };
1008
+ const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
1009
+ return take(output, {
1010
+ 'annotations': (_) => de_Annotations(_, context),
1011
+ 'company': __expectString,
1012
+ 'id': __expectString,
1013
+ 'time': __expectLong,
1014
+ 'type': __expectString,
1015
+ });
1016
+ };
1017
+ const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
1018
+ return take(output, {
1019
+ 'annotation': (_) => de_Annotation(_, context),
1020
+ 'company': __expectString,
1021
+ 'event': __expectString,
1022
+ 'id': __expectString,
1023
+ 'time': __expectLong,
1024
+ });
1025
+ };
1026
+ const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
1027
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1028
+ return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
1029
+ });
1030
+ return retVal;
1031
+ };
1032
+ const de_WebhookCallLiveAnnotationEvent = (output, context) => {
1033
+ return take(output, {
1034
+ 'company': __expectString,
1035
+ 'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
1036
+ 'id': __expectString,
1037
+ 'integrationId': __expectString,
1038
+ 'pbx': __expectString,
1039
+ 'time': __expectLong,
1040
+ 'type': __expectString,
1041
+ });
1042
+ };
732
1043
  const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
733
1044
  return take(output, {
734
1045
  'company': __expectString,
@@ -740,6 +1051,28 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
740
1051
  'type': __expectString,
741
1052
  });
742
1053
  };
1054
+ const de_WebhookChatLiveAnnotationEvent = (output, context) => {
1055
+ return take(output, {
1056
+ 'company': __expectString,
1057
+ 'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
1058
+ 'id': __expectString,
1059
+ 'integrationId': __expectString,
1060
+ 'pbx': __expectString,
1061
+ 'time': __expectLong,
1062
+ 'type': __expectString,
1063
+ });
1064
+ };
1065
+ const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
1066
+ return take(output, {
1067
+ 'company': __expectString,
1068
+ 'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
1069
+ 'id': __expectString,
1070
+ 'integrationId': __expectString,
1071
+ 'pbx': __expectString,
1072
+ 'time': __expectLong,
1073
+ 'type': __expectString,
1074
+ });
1075
+ };
743
1076
  const de_WebsocketAuthorizedEvent = (output, context) => {
744
1077
  return take(output, {
745
1078
  '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
  */