@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,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 = {};
@@ -232,7 +280,9 @@ const de_DescribeEventCommand = async (output, context) => {
232
280
  });
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, {
283
+ 'CallAnalyticsAnnotationsRecordEvent': _ => de_CallAnalyticsAnnotationsRecordEvent(_, context),
235
284
  'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
285
+ 'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
236
286
  'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
237
287
  'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
238
288
  'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -240,6 +290,8 @@ const de_DescribeEventCommand = async (output, context) => {
240
290
  'CallAnalyticsRecordEvent': smithy_client_1._json,
241
291
  'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
242
292
  'CallEventType': smithy_client_1.expectString,
293
+ 'ChatAnalyticsAnnotationsRecordEvent': _ => de_ChatAnalyticsAnnotationsRecordEvent(_, context),
294
+ 'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
243
295
  'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
244
296
  'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
245
297
  'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -248,6 +300,8 @@ const de_DescribeEventCommand = async (output, context) => {
248
300
  'ChatAnalyticsRecordEvent': smithy_client_1._json,
249
301
  'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
250
302
  'ChatEventType': smithy_client_1.expectString,
303
+ 'ConferenceAnalyticsAnnotationsRecordEvent': _ => de_ConferenceAnalyticsAnnotationsRecordEvent(_, context),
304
+ 'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
251
305
  'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
252
306
  'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
253
307
  'ConferenceAnalyticsLiveJoinEvent': smithy_client_1._json,
@@ -261,15 +315,14 @@ const de_DescribeEventCommand = async (output, context) => {
261
315
  'PresenceAnalyticsStatusEvent': smithy_client_1._json,
262
316
  'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
263
317
  'PresenceEventType': smithy_client_1.expectString,
264
- 'ServiceAgentsStatusAnalyticsRecordEvent': smithy_client_1._json,
265
318
  'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
266
319
  'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
267
320
  'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
268
321
  'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
269
- 'ServiceCallAnalyticsRecordEvent': smithy_client_1._json,
270
322
  'ServiceCallEventType': smithy_client_1.expectString,
271
323
  'ServiceEventType': smithy_client_1.expectString,
272
324
  'WebhookCallCompletedEvent': smithy_client_1._json,
325
+ 'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
273
326
  'WebhookCallLiveCompletedEvent': smithy_client_1._json,
274
327
  'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
275
328
  'WebhookCallLiveProgressEvent': smithy_client_1._json,
@@ -282,12 +335,14 @@ const de_DescribeEventCommand = async (output, context) => {
282
335
  'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
283
336
  'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
284
337
  'WebhookChatCompletedEvent': smithy_client_1._json,
338
+ 'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
285
339
  'WebhookChatLiveCompletedEvent': smithy_client_1._json,
286
340
  'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
287
341
  'WebhookChatLiveProgressEvent': smithy_client_1._json,
288
342
  'WebhookChatManagerMissedEvent': smithy_client_1._json,
289
343
  'WebhookChatSummaryCompletedEvent': smithy_client_1._json,
290
344
  'WebhookConferenceCompletedEvent': smithy_client_1._json,
345
+ 'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
291
346
  'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
292
347
  'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
293
348
  'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
@@ -349,6 +404,23 @@ const de_GetOngoingCallCommand = async (output, context) => {
349
404
  return contents;
350
405
  };
351
406
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
407
+ const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
408
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
409
+ return de_CommandError(output, context);
410
+ }
411
+ const contents = (0, smithy_client_1.map)({
412
+ $metadata: deserializeMetadata(output),
413
+ });
414
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
415
+ const doc = (0, smithy_client_1.take)(data, {
416
+ 'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
417
+ 'company': smithy_client_1.expectString,
418
+ 'flows': smithy_client_1._json,
419
+ });
420
+ Object.assign(contents, doc);
421
+ return contents;
422
+ };
423
+ exports.de_GetOngoingCallAnnotationsCommand = de_GetOngoingCallAnnotationsCommand;
352
424
  const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
353
425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
354
426
  return de_CommandError(output, context);
@@ -366,6 +438,22 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
366
438
  return contents;
367
439
  };
368
440
  exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
441
+ const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
443
+ return de_CommandError(output, context);
444
+ }
445
+ const contents = (0, smithy_client_1.map)({
446
+ $metadata: deserializeMetadata(output),
447
+ });
448
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
449
+ const doc = (0, smithy_client_1.take)(data, {
450
+ 'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
451
+ 'chat': smithy_client_1._json,
452
+ });
453
+ Object.assign(contents, doc);
454
+ return contents;
455
+ };
456
+ exports.de_GetOngoingChatAnnotationsCommand = de_GetOngoingChatAnnotationsCommand;
369
457
  const de_GetOngoingConferenceCommand = async (output, context) => {
370
458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
371
459
  return de_CommandError(output, context);
@@ -381,6 +469,22 @@ const de_GetOngoingConferenceCommand = async (output, context) => {
381
469
  return contents;
382
470
  };
383
471
  exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
472
+ const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
473
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
474
+ return de_CommandError(output, context);
475
+ }
476
+ const contents = (0, smithy_client_1.map)({
477
+ $metadata: deserializeMetadata(output),
478
+ });
479
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
480
+ const doc = (0, smithy_client_1.take)(data, {
481
+ 'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
482
+ 'conference': smithy_client_1._json,
483
+ });
484
+ Object.assign(contents, doc);
485
+ return contents;
486
+ };
487
+ exports.de_GetOngoingConferenceAnnotationsCommand = de_GetOngoingConferenceAnnotationsCommand;
384
488
  const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
385
489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
386
490
  return de_CommandError(output, context);
@@ -554,10 +658,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
554
658
  const se_Document = (input, context) => {
555
659
  return input;
556
660
  };
661
+ const se_Annotation = (input, context) => {
662
+ return (0, smithy_client_1.take)(input, {
663
+ 'id': [],
664
+ 'payload': _ => se_AnnotationPayload(_, context),
665
+ 'source': smithy_client_1._json,
666
+ 'time': [],
667
+ });
668
+ };
669
+ const se_AnnotationPayload = (input, context) => {
670
+ return models_0_1.AnnotationPayload.visit(input, {
671
+ result: value => ({ "result": se_AnnotationResultValue(value, context) }),
672
+ tag: value => ({ "tag": value }),
673
+ text: value => ({ "text": value }),
674
+ variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
675
+ _: (name, value) => ({ [name]: value })
676
+ });
677
+ };
678
+ const se_AnnotationResultValue = (input, context) => {
679
+ return (0, smithy_client_1.take)(input, {
680
+ 'value': _ => se_Document(_, context),
681
+ });
682
+ };
683
+ const se_AnnotationVariablesValue = (input, context) => {
684
+ return (0, smithy_client_1.take)(input, {
685
+ 'value': _ => se_Document(_, context),
686
+ });
687
+ };
688
+ const se_CallAnnotateConsumeEvent = (input, context) => {
689
+ return (0, smithy_client_1.take)(input, {
690
+ 'company': [],
691
+ 'data': _ => se_CallAnnotateConsumeEventData(_, context),
692
+ 'id': [],
693
+ 'pbx': [],
694
+ 'time': [],
695
+ 'type': [],
696
+ });
697
+ };
698
+ const se_CallAnnotateConsumeEventData = (input, context) => {
699
+ return (0, smithy_client_1.take)(input, {
700
+ 'annotation': _ => se_Annotation(_, context),
701
+ 'flowIndex': [],
702
+ });
703
+ };
704
+ const se_ChatAnnotateConsumeEvent = (input, context) => {
705
+ return (0, smithy_client_1.take)(input, {
706
+ 'company': [],
707
+ 'data': _ => se_ChatAnnotateConsumeEventData(_, context),
708
+ 'time': [],
709
+ 'type': [],
710
+ });
711
+ };
712
+ const se_ChatAnnotateConsumeEventData = (input, context) => {
713
+ return (0, smithy_client_1.take)(input, {
714
+ 'annotation': _ => se_Annotation(_, context),
715
+ 'chatId': [],
716
+ });
717
+ };
718
+ const se_ConferenceAnnotateConsumeEvent = (input, context) => {
719
+ return (0, smithy_client_1.take)(input, {
720
+ 'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
721
+ 'room': [],
722
+ 'session': [],
723
+ 'time': [],
724
+ 'type': [],
725
+ });
726
+ };
727
+ const se_ConferenceAnnotateConsumeEventData = (input, context) => {
728
+ return (0, smithy_client_1.take)(input, {
729
+ 'annotation': _ => se_Annotation(_, context),
730
+ 'company': [],
731
+ });
732
+ };
557
733
  const se_ConsumeEventInputEvent = (input, context) => {
558
734
  return models_0_1.ConsumeEventInputEvent.visit(input, {
559
735
  callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
560
736
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
737
+ callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
561
738
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
562
739
  callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
563
740
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
@@ -570,9 +747,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
570
747
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
571
748
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
572
749
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
750
+ chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
573
751
  chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
574
752
  chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
575
753
  chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
754
+ conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
576
755
  conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
577
756
  conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
578
757
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
@@ -662,6 +841,63 @@ const se_WhatsAppStatusEvent = (input, context) => {
662
841
  const de_Document = (output, context) => {
663
842
  return output;
664
843
  };
844
+ const de_Annotation = (output, context) => {
845
+ return (0, smithy_client_1.take)(output, {
846
+ 'id': smithy_client_1.expectString,
847
+ 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
848
+ 'source': smithy_client_1._json,
849
+ 'time': smithy_client_1.expectLong,
850
+ });
851
+ };
852
+ const de_AnnotationPayload = (output, context) => {
853
+ if (output.result != null) {
854
+ return {
855
+ result: de_AnnotationResultValue(output.result, context)
856
+ };
857
+ }
858
+ if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
859
+ return { tag: (0, smithy_client_1.expectString)(output.tag) };
860
+ }
861
+ if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
862
+ return { text: (0, smithy_client_1.expectString)(output.text) };
863
+ }
864
+ if (output.variables != null) {
865
+ return {
866
+ variables: de_AnnotationVariablesValue(output.variables, context)
867
+ };
868
+ }
869
+ return { $unknown: Object.entries(output)[0] };
870
+ };
871
+ const de_AnnotationResultValue = (output, context) => {
872
+ return (0, smithy_client_1.take)(output, {
873
+ 'value': (_) => de_Document(_, context),
874
+ });
875
+ };
876
+ const de_Annotations = (output, context) => {
877
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
878
+ return de_Annotation(entry, context);
879
+ });
880
+ return retVal;
881
+ };
882
+ const de_AnnotationVariablesValue = (output, context) => {
883
+ return (0, smithy_client_1.take)(output, {
884
+ 'value': (_) => de_Document(_, context),
885
+ });
886
+ };
887
+ const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
888
+ return (0, smithy_client_1.take)(output, {
889
+ 'annotations': (_) => de_Annotations(_, context),
890
+ 'callStartTime': smithy_client_1.expectLong,
891
+ 'company': smithy_client_1.expectString,
892
+ 'flowIndex': smithy_client_1.expectInt32,
893
+ 'flowStartTime': smithy_client_1.expectLong,
894
+ 'id': smithy_client_1.expectString,
895
+ 'licenses': smithy_client_1._json,
896
+ 'pbx': smithy_client_1.expectString,
897
+ 'time': smithy_client_1.expectLong,
898
+ 'type': smithy_client_1.expectString,
899
+ });
900
+ };
665
901
  const de_CallAnalyticsCostRecordEvent = (output, context) => {
666
902
  return (0, smithy_client_1.take)(output, {
667
903
  'company': smithy_client_1.expectString,
@@ -675,6 +911,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
675
911
  'type': smithy_client_1.expectString,
676
912
  });
677
913
  };
914
+ const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
915
+ return (0, smithy_client_1.take)(output, {
916
+ 'annotation': (_) => de_Annotation(_, context),
917
+ 'callStartTime': smithy_client_1.expectLong,
918
+ 'company': smithy_client_1.expectString,
919
+ 'event': smithy_client_1.expectString,
920
+ 'flowIndex': smithy_client_1.expectInt32,
921
+ 'flowStartTime': smithy_client_1.expectLong,
922
+ 'id': smithy_client_1.expectString,
923
+ 'licenses': smithy_client_1._json,
924
+ 'pbx': smithy_client_1.expectString,
925
+ 'time': smithy_client_1.expectLong,
926
+ });
927
+ };
928
+ const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
929
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
930
+ return de_CallAnalyticsLiveAnnotationEvent(entry, context);
931
+ });
932
+ return retVal;
933
+ };
678
934
  const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
679
935
  return (0, smithy_client_1.take)(output, {
680
936
  'callStartTime': smithy_client_1.expectLong,
@@ -746,6 +1002,32 @@ const de_CallTranscriptionList = (output, context) => {
746
1002
  });
747
1003
  return retVal;
748
1004
  };
1005
+ const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
1006
+ return (0, smithy_client_1.take)(output, {
1007
+ 'annotations': (_) => de_Annotations(_, context),
1008
+ 'chatId': smithy_client_1.expectString,
1009
+ 'company': smithy_client_1.expectString,
1010
+ 'id': smithy_client_1.expectString,
1011
+ 'time': smithy_client_1.expectLong,
1012
+ 'type': smithy_client_1.expectString,
1013
+ });
1014
+ };
1015
+ const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
1016
+ return (0, smithy_client_1.take)(output, {
1017
+ 'annotation': (_) => de_Annotation(_, context),
1018
+ 'chatId': smithy_client_1.expectString,
1019
+ 'company': smithy_client_1.expectString,
1020
+ 'event': smithy_client_1.expectString,
1021
+ 'id': smithy_client_1.expectString,
1022
+ 'time': smithy_client_1.expectLong,
1023
+ });
1024
+ };
1025
+ const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
1026
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1027
+ return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
1028
+ });
1029
+ return retVal;
1030
+ };
749
1031
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
750
1032
  return (0, smithy_client_1.take)(output, {
751
1033
  'chatId': smithy_client_1.expectString,
@@ -756,6 +1038,41 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
756
1038
  'type': smithy_client_1.expectString,
757
1039
  });
758
1040
  };
1041
+ const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
1042
+ return (0, smithy_client_1.take)(output, {
1043
+ 'annotations': (_) => de_Annotations(_, context),
1044
+ 'company': smithy_client_1.expectString,
1045
+ 'id': smithy_client_1.expectString,
1046
+ 'time': smithy_client_1.expectLong,
1047
+ 'type': smithy_client_1.expectString,
1048
+ });
1049
+ };
1050
+ const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
1051
+ return (0, smithy_client_1.take)(output, {
1052
+ 'annotation': (_) => de_Annotation(_, context),
1053
+ 'company': smithy_client_1.expectString,
1054
+ 'event': smithy_client_1.expectString,
1055
+ 'id': smithy_client_1.expectString,
1056
+ 'time': smithy_client_1.expectLong,
1057
+ });
1058
+ };
1059
+ const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
1060
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1061
+ return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
1062
+ });
1063
+ return retVal;
1064
+ };
1065
+ const de_WebhookCallLiveAnnotationEvent = (output, context) => {
1066
+ return (0, smithy_client_1.take)(output, {
1067
+ 'company': smithy_client_1.expectString,
1068
+ 'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
1069
+ 'id': smithy_client_1.expectString,
1070
+ 'integrationId': smithy_client_1.expectString,
1071
+ 'pbx': smithy_client_1.expectString,
1072
+ 'time': smithy_client_1.expectLong,
1073
+ 'type': smithy_client_1.expectString,
1074
+ });
1075
+ };
759
1076
  const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
760
1077
  return (0, smithy_client_1.take)(output, {
761
1078
  'company': smithy_client_1.expectString,
@@ -767,6 +1084,28 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
767
1084
  'type': smithy_client_1.expectString,
768
1085
  });
769
1086
  };
1087
+ const de_WebhookChatLiveAnnotationEvent = (output, context) => {
1088
+ return (0, smithy_client_1.take)(output, {
1089
+ 'company': smithy_client_1.expectString,
1090
+ 'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
1091
+ 'id': smithy_client_1.expectString,
1092
+ 'integrationId': smithy_client_1.expectString,
1093
+ 'pbx': smithy_client_1.expectString,
1094
+ 'time': smithy_client_1.expectLong,
1095
+ 'type': smithy_client_1.expectString,
1096
+ });
1097
+ };
1098
+ const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
1099
+ return (0, smithy_client_1.take)(output, {
1100
+ 'company': smithy_client_1.expectString,
1101
+ 'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
1102
+ 'id': smithy_client_1.expectString,
1103
+ 'integrationId': smithy_client_1.expectString,
1104
+ 'pbx': smithy_client_1.expectString,
1105
+ 'time': smithy_client_1.expectLong,
1106
+ 'type': smithy_client_1.expectString,
1107
+ });
1108
+ };
770
1109
  const de_WebsocketAuthorizedEvent = (output, context) => {
771
1110
  return (0, smithy_client_1.take)(output, {
772
1111
  '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";