@wildix/wda-stream-client 1.1.55 → 1.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) 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 +64 -25
  7. package/dist-cjs/models/models_1.js +7 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +300 -1
  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 +62 -23
  15. package/dist-es/models/models_1.js +6 -0
  16. package/dist-es/protocols/Aws_restJson1.js +295 -2
  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 +111 -27
  20. package/dist-types/commands/DescribeEventCommand.d.ts +280 -90
  21. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +286 -0
  22. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -0
  23. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -1
  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/QueryConversationsCommand.d.ts +6 -3
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/models_0.d.ts +622 -277
  31. package/dist-types/models/models_1.d.ts +275 -1
  32. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  34. package/dist-types/runtimeConfig.d.ts +1 -1
  35. package/dist-types/runtimeConfig.native.d.ts +1 -1
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.de_GetOngoingConferenceCommand = exports.de_GetOngoingCallTranscriptionCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingConferenceTranscriptionCommand = exports.se_GetOngoingConferenceCommand = exports.se_GetOngoingCallTranscriptionCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
3
+ exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_ListServicesCommand = exports.de_GetOngoingConferenceTranscriptionCommand = exports.de_GetOngoingConferenceAnnotationsCommand = exports.de_GetOngoingConferenceCommand = exports.de_GetOngoingChatAnnotationsCommand = exports.de_GetOngoingCallTranscriptionCommand = exports.de_GetOngoingCallAnnotationsCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_ListServicesCommand = exports.se_GetOngoingConferenceTranscriptionCommand = exports.se_GetOngoingConferenceAnnotationsCommand = exports.se_GetOngoingConferenceCommand = exports.se_GetOngoingChatAnnotationsCommand = exports.se_GetOngoingCallTranscriptionCommand = exports.se_GetOngoingCallAnnotationsCommand = exports.se_GetOngoingCallCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
4
4
  const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const models_1_1 = require("../models/models_1");
@@ -77,6 +77,22 @@ const se_GetOngoingCallCommand = async (input, context) => {
77
77
  return b.build();
78
78
  };
79
79
  exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
80
+ const se_GetOngoingCallAnnotationsCommand = async (input, context) => {
81
+ const b = (0, core_2.requestBuilder)(input, context);
82
+ const headers = {};
83
+ b.bp("/v2/stream/calls/{callId}/annotations");
84
+ b.p('callId', () => input.callId, '{callId}', false);
85
+ const query = (0, smithy_client_1.map)({
86
+ [_c]: [, input[_c]],
87
+ });
88
+ let body;
89
+ b.m("GET")
90
+ .h(headers)
91
+ .q(query)
92
+ .b(body);
93
+ return b.build();
94
+ };
95
+ exports.se_GetOngoingCallAnnotationsCommand = se_GetOngoingCallAnnotationsCommand;
80
96
  const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
81
97
  const b = (0, core_2.requestBuilder)(input, context);
82
98
  const headers = {};
@@ -93,6 +109,22 @@ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
93
109
  return b.build();
94
110
  };
95
111
  exports.se_GetOngoingCallTranscriptionCommand = se_GetOngoingCallTranscriptionCommand;
112
+ const se_GetOngoingChatAnnotationsCommand = async (input, context) => {
113
+ const b = (0, core_2.requestBuilder)(input, context);
114
+ const headers = {};
115
+ b.bp("/v2/stream/chats/{chatId}/annotations");
116
+ b.p('chatId', () => input.chatId, '{chatId}', false);
117
+ const query = (0, smithy_client_1.map)({
118
+ [_c]: [, input[_c]],
119
+ });
120
+ let body;
121
+ b.m("GET")
122
+ .h(headers)
123
+ .q(query)
124
+ .b(body);
125
+ return b.build();
126
+ };
127
+ exports.se_GetOngoingChatAnnotationsCommand = se_GetOngoingChatAnnotationsCommand;
96
128
  const se_GetOngoingConferenceCommand = async (input, context) => {
97
129
  const b = (0, core_2.requestBuilder)(input, context);
98
130
  const headers = {};
@@ -109,6 +141,22 @@ const se_GetOngoingConferenceCommand = async (input, context) => {
109
141
  return b.build();
110
142
  };
111
143
  exports.se_GetOngoingConferenceCommand = se_GetOngoingConferenceCommand;
144
+ const se_GetOngoingConferenceAnnotationsCommand = async (input, context) => {
145
+ const b = (0, core_2.requestBuilder)(input, context);
146
+ const headers = {};
147
+ b.bp("/v2/stream/conferences/{conferenceId}/annotations");
148
+ b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
149
+ const query = (0, smithy_client_1.map)({
150
+ [_c]: [, input[_c]],
151
+ });
152
+ let body;
153
+ b.m("GET")
154
+ .h(headers)
155
+ .q(query)
156
+ .b(body);
157
+ return b.build();
158
+ };
159
+ exports.se_GetOngoingConferenceAnnotationsCommand = se_GetOngoingConferenceAnnotationsCommand;
112
160
  const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
113
161
  const b = (0, core_2.requestBuilder)(input, context);
114
162
  const headers = {};
@@ -233,6 +281,7 @@ const de_DescribeEventCommand = async (output, context) => {
233
281
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
234
282
  const doc = (0, smithy_client_1.take)(data, {
235
283
  'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
284
+ 'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
236
285
  'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
237
286
  'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
238
287
  'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -240,6 +289,7 @@ const de_DescribeEventCommand = async (output, context) => {
240
289
  'CallAnalyticsRecordEvent': smithy_client_1._json,
241
290
  'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
242
291
  'CallEventType': smithy_client_1.expectString,
292
+ 'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
243
293
  'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
244
294
  'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
245
295
  'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -248,6 +298,7 @@ const de_DescribeEventCommand = async (output, context) => {
248
298
  'ChatAnalyticsRecordEvent': smithy_client_1._json,
249
299
  'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
250
300
  'ChatEventType': smithy_client_1.expectString,
301
+ 'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
251
302
  'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
252
303
  'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
253
304
  'ConferenceAnalyticsLiveJoinEvent': smithy_client_1._json,
@@ -268,6 +319,7 @@ const de_DescribeEventCommand = async (output, context) => {
268
319
  'ServiceCallEventType': smithy_client_1.expectString,
269
320
  'ServiceEventType': smithy_client_1.expectString,
270
321
  'WebhookCallCompletedEvent': smithy_client_1._json,
322
+ 'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
271
323
  'WebhookCallLiveCompletedEvent': smithy_client_1._json,
272
324
  'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
273
325
  'WebhookCallLiveProgressEvent': smithy_client_1._json,
@@ -280,12 +332,14 @@ const de_DescribeEventCommand = async (output, context) => {
280
332
  'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
281
333
  'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
282
334
  'WebhookChatCompletedEvent': smithy_client_1._json,
335
+ 'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
283
336
  'WebhookChatLiveCompletedEvent': smithy_client_1._json,
284
337
  'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
285
338
  'WebhookChatLiveProgressEvent': smithy_client_1._json,
286
339
  'WebhookChatManagerMissedEvent': smithy_client_1._json,
287
340
  'WebhookChatSummaryCompletedEvent': smithy_client_1._json,
288
341
  'WebhookConferenceCompletedEvent': smithy_client_1._json,
342
+ 'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
289
343
  'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
290
344
  'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
291
345
  'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
@@ -347,6 +401,23 @@ const de_GetOngoingCallCommand = async (output, context) => {
347
401
  return contents;
348
402
  };
349
403
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
404
+ const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
405
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
406
+ return de_CommandError(output, context);
407
+ }
408
+ const contents = (0, smithy_client_1.map)({
409
+ $metadata: deserializeMetadata(output),
410
+ });
411
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
412
+ const doc = (0, smithy_client_1.take)(data, {
413
+ 'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
414
+ 'company': smithy_client_1.expectString,
415
+ 'flows': smithy_client_1._json,
416
+ });
417
+ Object.assign(contents, doc);
418
+ return contents;
419
+ };
420
+ exports.de_GetOngoingCallAnnotationsCommand = de_GetOngoingCallAnnotationsCommand;
350
421
  const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
351
422
  if (output.statusCode !== 200 && output.statusCode >= 300) {
352
423
  return de_CommandError(output, context);
@@ -364,6 +435,22 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
364
435
  return contents;
365
436
  };
366
437
  exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
438
+ const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
440
+ return de_CommandError(output, context);
441
+ }
442
+ const contents = (0, smithy_client_1.map)({
443
+ $metadata: deserializeMetadata(output),
444
+ });
445
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
446
+ const doc = (0, smithy_client_1.take)(data, {
447
+ 'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
448
+ 'chat': smithy_client_1._json,
449
+ });
450
+ Object.assign(contents, doc);
451
+ return contents;
452
+ };
453
+ exports.de_GetOngoingChatAnnotationsCommand = de_GetOngoingChatAnnotationsCommand;
367
454
  const de_GetOngoingConferenceCommand = async (output, context) => {
368
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
369
456
  return de_CommandError(output, context);
@@ -379,6 +466,22 @@ const de_GetOngoingConferenceCommand = async (output, context) => {
379
466
  return contents;
380
467
  };
381
468
  exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
469
+ const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
470
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
471
+ return de_CommandError(output, context);
472
+ }
473
+ const contents = (0, smithy_client_1.map)({
474
+ $metadata: deserializeMetadata(output),
475
+ });
476
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
477
+ const doc = (0, smithy_client_1.take)(data, {
478
+ 'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
479
+ 'conference': smithy_client_1._json,
480
+ });
481
+ Object.assign(contents, doc);
482
+ return contents;
483
+ };
484
+ exports.de_GetOngoingConferenceAnnotationsCommand = de_GetOngoingConferenceAnnotationsCommand;
382
485
  const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
383
486
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
487
  return de_CommandError(output, context);
@@ -552,10 +655,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
552
655
  const se_Document = (input, context) => {
553
656
  return input;
554
657
  };
658
+ const se_Annotation = (input, context) => {
659
+ return (0, smithy_client_1.take)(input, {
660
+ 'id': [],
661
+ 'payload': _ => se_AnnotationPayload(_, context),
662
+ 'source': smithy_client_1._json,
663
+ 'time': [],
664
+ });
665
+ };
666
+ const se_AnnotationPayload = (input, context) => {
667
+ return models_0_1.AnnotationPayload.visit(input, {
668
+ result: value => ({ "result": se_AnnotationResultValue(value, context) }),
669
+ tag: value => ({ "tag": value }),
670
+ text: value => ({ "text": value }),
671
+ variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
672
+ _: (name, value) => ({ [name]: value })
673
+ });
674
+ };
675
+ const se_AnnotationResultValue = (input, context) => {
676
+ return (0, smithy_client_1.take)(input, {
677
+ 'value': _ => se_Document(_, context),
678
+ });
679
+ };
680
+ const se_AnnotationVariablesValue = (input, context) => {
681
+ return (0, smithy_client_1.take)(input, {
682
+ 'value': _ => se_Document(_, context),
683
+ });
684
+ };
685
+ const se_CallAnnotateConsumeEvent = (input, context) => {
686
+ return (0, smithy_client_1.take)(input, {
687
+ 'company': [],
688
+ 'data': _ => se_CallAnnotateConsumeEventData(_, context),
689
+ 'id': [],
690
+ 'pbx': [],
691
+ 'time': [],
692
+ 'type': [],
693
+ });
694
+ };
695
+ const se_CallAnnotateConsumeEventData = (input, context) => {
696
+ return (0, smithy_client_1.take)(input, {
697
+ 'annotation': _ => se_Annotation(_, context),
698
+ 'flowIndex': [],
699
+ });
700
+ };
701
+ const se_ChatAnnotateConsumeEvent = (input, context) => {
702
+ return (0, smithy_client_1.take)(input, {
703
+ 'company': [],
704
+ 'data': _ => se_ChatAnnotateConsumeEventData(_, context),
705
+ 'time': [],
706
+ 'type': [],
707
+ });
708
+ };
709
+ const se_ChatAnnotateConsumeEventData = (input, context) => {
710
+ return (0, smithy_client_1.take)(input, {
711
+ 'annotation': _ => se_Annotation(_, context),
712
+ 'chatId': [],
713
+ });
714
+ };
715
+ const se_ConferenceAnnotateConsumeEvent = (input, context) => {
716
+ return (0, smithy_client_1.take)(input, {
717
+ 'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
718
+ 'room': [],
719
+ 'session': [],
720
+ 'time': [],
721
+ 'type': [],
722
+ });
723
+ };
724
+ const se_ConferenceAnnotateConsumeEventData = (input, context) => {
725
+ return (0, smithy_client_1.take)(input, {
726
+ 'annotation': _ => se_Annotation(_, context),
727
+ 'company': [],
728
+ });
729
+ };
555
730
  const se_ConsumeEventInputEvent = (input, context) => {
556
731
  return models_0_1.ConsumeEventInputEvent.visit(input, {
557
732
  callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
558
733
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
734
+ callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
559
735
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
560
736
  callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
561
737
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
@@ -568,9 +744,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
568
744
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
569
745
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
570
746
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
747
+ chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
571
748
  chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
572
749
  chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
573
750
  chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
751
+ conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
574
752
  conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
575
753
  conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
576
754
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
@@ -660,6 +838,43 @@ const se_WhatsAppStatusEvent = (input, context) => {
660
838
  const de_Document = (output, context) => {
661
839
  return output;
662
840
  };
841
+ const de_Annotation = (output, context) => {
842
+ return (0, smithy_client_1.take)(output, {
843
+ 'id': smithy_client_1.expectString,
844
+ 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
845
+ 'source': smithy_client_1._json,
846
+ 'time': smithy_client_1.expectLong,
847
+ });
848
+ };
849
+ const de_AnnotationPayload = (output, context) => {
850
+ if (output.result != null) {
851
+ return {
852
+ result: de_AnnotationResultValue(output.result, context)
853
+ };
854
+ }
855
+ if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
856
+ return { tag: (0, smithy_client_1.expectString)(output.tag) };
857
+ }
858
+ if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
859
+ return { text: (0, smithy_client_1.expectString)(output.text) };
860
+ }
861
+ if (output.variables != null) {
862
+ return {
863
+ variables: de_AnnotationVariablesValue(output.variables, context)
864
+ };
865
+ }
866
+ return { $unknown: Object.entries(output)[0] };
867
+ };
868
+ const de_AnnotationResultValue = (output, context) => {
869
+ return (0, smithy_client_1.take)(output, {
870
+ 'value': (_) => de_Document(_, context),
871
+ });
872
+ };
873
+ const de_AnnotationVariablesValue = (output, context) => {
874
+ return (0, smithy_client_1.take)(output, {
875
+ 'value': (_) => de_Document(_, context),
876
+ });
877
+ };
663
878
  const de_CallAnalyticsCostRecordEvent = (output, context) => {
664
879
  return (0, smithy_client_1.take)(output, {
665
880
  'company': smithy_client_1.expectString,
@@ -673,6 +888,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
673
888
  'type': smithy_client_1.expectString,
674
889
  });
675
890
  };
891
+ const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
892
+ return (0, smithy_client_1.take)(output, {
893
+ 'annotation': (_) => de_Annotation(_, context),
894
+ 'callStartTime': smithy_client_1.expectLong,
895
+ 'company': smithy_client_1.expectString,
896
+ 'event': smithy_client_1.expectString,
897
+ 'flowIndex': smithy_client_1.expectInt32,
898
+ 'flowStartTime': smithy_client_1.expectLong,
899
+ 'id': smithy_client_1.expectString,
900
+ 'licenses': smithy_client_1._json,
901
+ 'pbx': smithy_client_1.expectString,
902
+ 'time': smithy_client_1.expectLong,
903
+ });
904
+ };
905
+ const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
906
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
907
+ return de_CallAnalyticsLiveAnnotationEvent(entry, context);
908
+ });
909
+ return retVal;
910
+ };
676
911
  const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
677
912
  return (0, smithy_client_1.take)(output, {
678
913
  'callStartTime': smithy_client_1.expectLong,
@@ -744,6 +979,22 @@ const de_CallTranscriptionList = (output, context) => {
744
979
  });
745
980
  return retVal;
746
981
  };
982
+ const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
983
+ return (0, smithy_client_1.take)(output, {
984
+ 'annotation': (_) => de_Annotation(_, context),
985
+ 'chatId': smithy_client_1.expectString,
986
+ 'company': smithy_client_1.expectString,
987
+ 'event': smithy_client_1.expectString,
988
+ 'id': smithy_client_1.expectString,
989
+ 'time': smithy_client_1.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
+ };
747
998
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
748
999
  return (0, smithy_client_1.take)(output, {
749
1000
  'chatId': smithy_client_1.expectString,
@@ -754,6 +1005,32 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
754
1005
  'type': smithy_client_1.expectString,
755
1006
  });
756
1007
  };
1008
+ const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
1009
+ return (0, smithy_client_1.take)(output, {
1010
+ 'annotation': (_) => de_Annotation(_, context),
1011
+ 'company': smithy_client_1.expectString,
1012
+ 'event': smithy_client_1.expectString,
1013
+ 'id': smithy_client_1.expectString,
1014
+ 'time': smithy_client_1.expectLong,
1015
+ });
1016
+ };
1017
+ const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
1018
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1019
+ return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
1020
+ });
1021
+ return retVal;
1022
+ };
1023
+ const de_WebhookCallLiveAnnotationEvent = (output, context) => {
1024
+ return (0, smithy_client_1.take)(output, {
1025
+ 'company': smithy_client_1.expectString,
1026
+ 'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
1027
+ 'id': smithy_client_1.expectString,
1028
+ 'integrationId': smithy_client_1.expectString,
1029
+ 'pbx': smithy_client_1.expectString,
1030
+ 'time': smithy_client_1.expectLong,
1031
+ 'type': smithy_client_1.expectString,
1032
+ });
1033
+ };
757
1034
  const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
758
1035
  return (0, smithy_client_1.take)(output, {
759
1036
  'company': smithy_client_1.expectString,
@@ -765,6 +1042,28 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
765
1042
  'type': smithy_client_1.expectString,
766
1043
  });
767
1044
  };
1045
+ const de_WebhookChatLiveAnnotationEvent = (output, context) => {
1046
+ return (0, smithy_client_1.take)(output, {
1047
+ 'company': smithy_client_1.expectString,
1048
+ 'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
1049
+ 'id': smithy_client_1.expectString,
1050
+ 'integrationId': smithy_client_1.expectString,
1051
+ 'pbx': smithy_client_1.expectString,
1052
+ 'time': smithy_client_1.expectLong,
1053
+ 'type': smithy_client_1.expectString,
1054
+ });
1055
+ };
1056
+ const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
1057
+ return (0, smithy_client_1.take)(output, {
1058
+ 'company': smithy_client_1.expectString,
1059
+ 'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
1060
+ 'id': smithy_client_1.expectString,
1061
+ 'integrationId': smithy_client_1.expectString,
1062
+ 'pbx': smithy_client_1.expectString,
1063
+ 'time': smithy_client_1.expectLong,
1064
+ 'type': smithy_client_1.expectString,
1065
+ });
1066
+ };
768
1067
  const de_WebsocketAuthorizedEvent = (output, context) => {
769
1068
  return (0, smithy_client_1.take)(output, {
770
1069
  'connectionId': smithy_client_1.expectString,
@@ -2,8 +2,11 @@ import { WdaStreamClient, } from "./WdaStreamClient";
2
2
  import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
5
+ import { GetOngoingCallAnnotationsCommand, } from "./commands/GetOngoingCallAnnotationsCommand";
5
6
  import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
6
7
  import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
8
+ import { GetOngoingChatAnnotationsCommand, } from "./commands/GetOngoingChatAnnotationsCommand";
9
+ import { GetOngoingConferenceAnnotationsCommand, } from "./commands/GetOngoingConferenceAnnotationsCommand";
7
10
  import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
8
11
  import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
9
12
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
@@ -17,8 +20,11 @@ const commands = {
17
20
  DescribeEventCommand,
18
21
  GetConferenceIdCommand,
19
22
  GetOngoingCallCommand,
23
+ GetOngoingCallAnnotationsCommand,
20
24
  GetOngoingCallTranscriptionCommand,
25
+ GetOngoingChatAnnotationsCommand,
21
26
  GetOngoingConferenceCommand,
27
+ GetOngoingConferenceAnnotationsCommand,
22
28
  GetOngoingConferenceTranscriptionCommand,
23
29
  ListServicesCommand,
24
30
  QueryConversationsCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingCallAnnotationsCommand, se_GetOngoingCallAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingCallAnnotationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingCallAnnotations", {})
12
+ .n("WdaStreamClient", "GetOngoingCallAnnotationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingCallAnnotationsCommand)
15
+ .de(de_GetOngoingCallAnnotationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingChatAnnotationsCommand, se_GetOngoingChatAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingChatAnnotationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingChatAnnotations", {})
12
+ .n("WdaStreamClient", "GetOngoingChatAnnotationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingChatAnnotationsCommand)
15
+ .de(de_GetOngoingChatAnnotationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingConferenceAnnotationsCommand, se_GetOngoingConferenceAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingConferenceAnnotationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingConferenceAnnotations", {})
12
+ .n("WdaStreamClient", "GetOngoingConferenceAnnotationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingConferenceAnnotationsCommand)
15
+ .de(de_GetOngoingConferenceAnnotationsCommand)
16
+ .build() {
17
+ }
@@ -2,8 +2,11 @@ export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
4
  export * from "./GetOngoingCallCommand";
5
+ export * from "./GetOngoingCallAnnotationsCommand";
5
6
  export * from "./GetOngoingCallTranscriptionCommand";
7
+ export * from "./GetOngoingChatAnnotationsCommand";
6
8
  export * from "./GetOngoingConferenceCommand";
9
+ export * from "./GetOngoingConferenceAnnotationsCommand";
7
10
  export * from "./GetOngoingConferenceTranscriptionCommand";
8
11
  export * from "./ListServicesCommand";
9
12
  export * from "./QueryConversationsCommand";