@wildix/wda-stream-client 1.1.60 → 1.1.62

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 (33) 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 +70 -25
  7. package/dist-cjs/models/models_1.js +7 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +396 -2
  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 +68 -23
  15. package/dist-es/models/models_1.js +6 -0
  16. package/dist-es/protocols/Aws_restJson1.js +391 -3
  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 +125 -29
  20. package/dist-types/commands/DescribeEventCommand.d.ts +462 -99
  21. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +287 -0
  22. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -0
  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/QueryConversationsCommand.d.ts +6 -3
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/models_0.d.ts +729 -377
  31. package/dist-types/models/models_1.d.ts +387 -1
  32. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  33. 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,
@@ -269,7 +323,9 @@ const de_DescribeEventCommand = async (output, context) => {
269
323
  'ServiceCallAnalyticsRecordEvent': smithy_client_1._json,
270
324
  'ServiceCallEventType': smithy_client_1.expectString,
271
325
  'ServiceEventType': smithy_client_1.expectString,
326
+ 'WebhookCallAnnotationsCompletedEvent': _ => de_WebhookCallAnnotationsCompletedEvent(_, context),
272
327
  'WebhookCallCompletedEvent': smithy_client_1._json,
328
+ 'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
273
329
  'WebhookCallLiveCompletedEvent': smithy_client_1._json,
274
330
  'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
275
331
  'WebhookCallLiveProgressEvent': smithy_client_1._json,
@@ -281,13 +337,17 @@ const de_DescribeEventCommand = async (output, context) => {
281
337
  'WebhookCallSummaryCompletedEvent': smithy_client_1._json,
282
338
  'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
283
339
  'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
340
+ 'WebhookChatAnnotationsCompletedEvent': _ => de_WebhookChatAnnotationsCompletedEvent(_, context),
284
341
  'WebhookChatCompletedEvent': smithy_client_1._json,
342
+ 'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
285
343
  'WebhookChatLiveCompletedEvent': smithy_client_1._json,
286
344
  'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
287
345
  'WebhookChatLiveProgressEvent': smithy_client_1._json,
288
346
  'WebhookChatManagerMissedEvent': smithy_client_1._json,
289
347
  'WebhookChatSummaryCompletedEvent': smithy_client_1._json,
348
+ 'WebhookConferenceAnnotationsCompletedEvent': _ => de_WebhookConferenceAnnotationsCompletedEvent(_, context),
290
349
  'WebhookConferenceCompletedEvent': smithy_client_1._json,
350
+ 'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
291
351
  'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
292
352
  'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
293
353
  'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
@@ -349,6 +409,23 @@ const de_GetOngoingCallCommand = async (output, context) => {
349
409
  return contents;
350
410
  };
351
411
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
412
+ const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
413
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
414
+ return de_CommandError(output, context);
415
+ }
416
+ const contents = (0, smithy_client_1.map)({
417
+ $metadata: deserializeMetadata(output),
418
+ });
419
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
420
+ const doc = (0, smithy_client_1.take)(data, {
421
+ 'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
422
+ 'company': smithy_client_1.expectString,
423
+ 'flows': smithy_client_1._json,
424
+ });
425
+ Object.assign(contents, doc);
426
+ return contents;
427
+ };
428
+ exports.de_GetOngoingCallAnnotationsCommand = de_GetOngoingCallAnnotationsCommand;
352
429
  const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
353
430
  if (output.statusCode !== 200 && output.statusCode >= 300) {
354
431
  return de_CommandError(output, context);
@@ -366,6 +443,22 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
366
443
  return contents;
367
444
  };
368
445
  exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
446
+ const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
447
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
448
+ return de_CommandError(output, context);
449
+ }
450
+ const contents = (0, smithy_client_1.map)({
451
+ $metadata: deserializeMetadata(output),
452
+ });
453
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
454
+ const doc = (0, smithy_client_1.take)(data, {
455
+ 'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
456
+ 'chat': smithy_client_1._json,
457
+ });
458
+ Object.assign(contents, doc);
459
+ return contents;
460
+ };
461
+ exports.de_GetOngoingChatAnnotationsCommand = de_GetOngoingChatAnnotationsCommand;
369
462
  const de_GetOngoingConferenceCommand = async (output, context) => {
370
463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
371
464
  return de_CommandError(output, context);
@@ -381,6 +474,22 @@ const de_GetOngoingConferenceCommand = async (output, context) => {
381
474
  return contents;
382
475
  };
383
476
  exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
477
+ const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
478
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
479
+ return de_CommandError(output, context);
480
+ }
481
+ const contents = (0, smithy_client_1.map)({
482
+ $metadata: deserializeMetadata(output),
483
+ });
484
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
485
+ const doc = (0, smithy_client_1.take)(data, {
486
+ 'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
487
+ 'conference': smithy_client_1._json,
488
+ });
489
+ Object.assign(contents, doc);
490
+ return contents;
491
+ };
492
+ exports.de_GetOngoingConferenceAnnotationsCommand = de_GetOngoingConferenceAnnotationsCommand;
384
493
  const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
385
494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
386
495
  return de_CommandError(output, context);
@@ -554,10 +663,83 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
554
663
  const se_Document = (input, context) => {
555
664
  return input;
556
665
  };
666
+ const se_Annotation = (input, context) => {
667
+ return (0, smithy_client_1.take)(input, {
668
+ 'id': [],
669
+ 'payload': _ => se_AnnotationPayload(_, context),
670
+ 'source': smithy_client_1._json,
671
+ 'time': [],
672
+ });
673
+ };
674
+ const se_AnnotationPayload = (input, context) => {
675
+ return models_0_1.AnnotationPayload.visit(input, {
676
+ result: value => ({ "result": se_AnnotationResultValue(value, context) }),
677
+ tag: value => ({ "tag": value }),
678
+ text: value => ({ "text": value }),
679
+ variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
680
+ _: (name, value) => ({ [name]: value })
681
+ });
682
+ };
683
+ const se_AnnotationResultValue = (input, context) => {
684
+ return (0, smithy_client_1.take)(input, {
685
+ 'value': _ => se_Document(_, context),
686
+ });
687
+ };
688
+ const se_AnnotationVariablesValue = (input, context) => {
689
+ return (0, smithy_client_1.take)(input, {
690
+ 'value': _ => se_Document(_, context),
691
+ });
692
+ };
693
+ const se_CallAnnotateConsumeEvent = (input, context) => {
694
+ return (0, smithy_client_1.take)(input, {
695
+ 'company': [],
696
+ 'data': _ => se_CallAnnotateConsumeEventData(_, context),
697
+ 'id': [],
698
+ 'pbx': [],
699
+ 'time': [],
700
+ 'type': [],
701
+ });
702
+ };
703
+ const se_CallAnnotateConsumeEventData = (input, context) => {
704
+ return (0, smithy_client_1.take)(input, {
705
+ 'annotation': _ => se_Annotation(_, context),
706
+ 'flowIndex': [],
707
+ });
708
+ };
709
+ const se_ChatAnnotateConsumeEvent = (input, context) => {
710
+ return (0, smithy_client_1.take)(input, {
711
+ 'company': [],
712
+ 'data': _ => se_ChatAnnotateConsumeEventData(_, context),
713
+ 'time': [],
714
+ 'type': [],
715
+ });
716
+ };
717
+ const se_ChatAnnotateConsumeEventData = (input, context) => {
718
+ return (0, smithy_client_1.take)(input, {
719
+ 'annotation': _ => se_Annotation(_, context),
720
+ 'chatId': [],
721
+ });
722
+ };
723
+ const se_ConferenceAnnotateConsumeEvent = (input, context) => {
724
+ return (0, smithy_client_1.take)(input, {
725
+ 'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
726
+ 'room': [],
727
+ 'session': [],
728
+ 'time': [],
729
+ 'type': [],
730
+ });
731
+ };
732
+ const se_ConferenceAnnotateConsumeEventData = (input, context) => {
733
+ return (0, smithy_client_1.take)(input, {
734
+ 'annotation': _ => se_Annotation(_, context),
735
+ 'company': [],
736
+ });
737
+ };
557
738
  const se_ConsumeEventInputEvent = (input, context) => {
558
739
  return models_0_1.ConsumeEventInputEvent.visit(input, {
559
740
  callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
560
741
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
742
+ callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
561
743
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
562
744
  callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
563
745
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
@@ -570,9 +752,11 @@ const se_ConsumeEventInputEvent = (input, context) => {
570
752
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
571
753
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
572
754
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
755
+ chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
573
756
  chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
574
757
  chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
575
758
  chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
759
+ conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
576
760
  conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
577
761
  conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
578
762
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
@@ -662,6 +846,63 @@ const se_WhatsAppStatusEvent = (input, context) => {
662
846
  const de_Document = (output, context) => {
663
847
  return output;
664
848
  };
849
+ const de_Annotation = (output, context) => {
850
+ return (0, smithy_client_1.take)(output, {
851
+ 'id': smithy_client_1.expectString,
852
+ 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
853
+ 'source': smithy_client_1._json,
854
+ 'time': smithy_client_1.expectLong,
855
+ });
856
+ };
857
+ const de_AnnotationPayload = (output, context) => {
858
+ if (output.result != null) {
859
+ return {
860
+ result: de_AnnotationResultValue(output.result, context)
861
+ };
862
+ }
863
+ if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
864
+ return { tag: (0, smithy_client_1.expectString)(output.tag) };
865
+ }
866
+ if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
867
+ return { text: (0, smithy_client_1.expectString)(output.text) };
868
+ }
869
+ if (output.variables != null) {
870
+ return {
871
+ variables: de_AnnotationVariablesValue(output.variables, context)
872
+ };
873
+ }
874
+ return { $unknown: Object.entries(output)[0] };
875
+ };
876
+ const de_AnnotationResultValue = (output, context) => {
877
+ return (0, smithy_client_1.take)(output, {
878
+ 'value': (_) => de_Document(_, context),
879
+ });
880
+ };
881
+ const de_Annotations = (output, context) => {
882
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
883
+ return de_Annotation(entry, context);
884
+ });
885
+ return retVal;
886
+ };
887
+ const de_AnnotationVariablesValue = (output, context) => {
888
+ return (0, smithy_client_1.take)(output, {
889
+ 'value': (_) => de_Document(_, context),
890
+ });
891
+ };
892
+ const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
893
+ return (0, smithy_client_1.take)(output, {
894
+ 'annotations': (_) => de_Annotations(_, context),
895
+ 'callStartTime': smithy_client_1.expectLong,
896
+ 'company': 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
+ 'type': smithy_client_1.expectString,
904
+ });
905
+ };
665
906
  const de_CallAnalyticsCostRecordEvent = (output, context) => {
666
907
  return (0, smithy_client_1.take)(output, {
667
908
  'company': smithy_client_1.expectString,
@@ -675,6 +916,26 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
675
916
  'type': smithy_client_1.expectString,
676
917
  });
677
918
  };
919
+ const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
920
+ return (0, smithy_client_1.take)(output, {
921
+ 'annotation': (_) => de_Annotation(_, context),
922
+ 'callStartTime': smithy_client_1.expectLong,
923
+ 'company': smithy_client_1.expectString,
924
+ 'event': smithy_client_1.expectString,
925
+ 'flowIndex': smithy_client_1.expectInt32,
926
+ 'flowStartTime': smithy_client_1.expectLong,
927
+ 'id': smithy_client_1.expectString,
928
+ 'licenses': smithy_client_1._json,
929
+ 'pbx': smithy_client_1.expectString,
930
+ 'time': smithy_client_1.expectLong,
931
+ });
932
+ };
933
+ const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
934
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
935
+ return de_CallAnalyticsLiveAnnotationEvent(entry, context);
936
+ });
937
+ return retVal;
938
+ };
678
939
  const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
679
940
  return (0, smithy_client_1.take)(output, {
680
941
  'callStartTime': smithy_client_1.expectLong,
@@ -724,7 +985,6 @@ const de_CallTranscriptionChunk = (output, context) => {
724
985
  'isFinal': smithy_client_1.expectBoolean,
725
986
  'language': smithy_client_1.expectString,
726
987
  'sentiment': smithy_client_1.expectString,
727
- 'shouldComputeSentiment': smithy_client_1.expectBoolean,
728
988
  'speaker': smithy_client_1.expectString,
729
989
  'start': smithy_client_1.expectLong,
730
990
  'text': smithy_client_1.expectString,
@@ -746,6 +1006,32 @@ const de_CallTranscriptionList = (output, context) => {
746
1006
  });
747
1007
  return retVal;
748
1008
  };
1009
+ const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
1010
+ return (0, smithy_client_1.take)(output, {
1011
+ 'annotations': (_) => de_Annotations(_, context),
1012
+ 'chatId': smithy_client_1.expectString,
1013
+ 'company': smithy_client_1.expectString,
1014
+ 'id': smithy_client_1.expectString,
1015
+ 'time': smithy_client_1.expectLong,
1016
+ 'type': smithy_client_1.expectString,
1017
+ });
1018
+ };
1019
+ const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
1020
+ return (0, smithy_client_1.take)(output, {
1021
+ 'annotation': (_) => de_Annotation(_, context),
1022
+ 'chatId': smithy_client_1.expectString,
1023
+ 'company': smithy_client_1.expectString,
1024
+ 'event': smithy_client_1.expectString,
1025
+ 'id': smithy_client_1.expectString,
1026
+ 'time': smithy_client_1.expectLong,
1027
+ });
1028
+ };
1029
+ const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
1030
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1031
+ return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
1032
+ });
1033
+ return retVal;
1034
+ };
749
1035
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
750
1036
  return (0, smithy_client_1.take)(output, {
751
1037
  'chatId': smithy_client_1.expectString,
@@ -756,6 +1042,58 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
756
1042
  'type': smithy_client_1.expectString,
757
1043
  });
758
1044
  };
1045
+ const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
1046
+ return (0, smithy_client_1.take)(output, {
1047
+ 'annotations': (_) => de_Annotations(_, context),
1048
+ 'company': smithy_client_1.expectString,
1049
+ 'id': smithy_client_1.expectString,
1050
+ 'time': smithy_client_1.expectLong,
1051
+ 'type': smithy_client_1.expectString,
1052
+ });
1053
+ };
1054
+ const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
1055
+ return (0, smithy_client_1.take)(output, {
1056
+ 'annotation': (_) => de_Annotation(_, context),
1057
+ 'company': smithy_client_1.expectString,
1058
+ 'event': smithy_client_1.expectString,
1059
+ 'id': smithy_client_1.expectString,
1060
+ 'time': smithy_client_1.expectLong,
1061
+ });
1062
+ };
1063
+ const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
1064
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1065
+ return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
1066
+ });
1067
+ return retVal;
1068
+ };
1069
+ const de_WebhookCallAnnotationsCompletedEvent = (output, context) => {
1070
+ return (0, smithy_client_1.take)(output, {
1071
+ 'company': smithy_client_1.expectString,
1072
+ 'data': (_) => de_WebhookCallAnnotationsCompletedEventData(_, context),
1073
+ 'id': smithy_client_1.expectString,
1074
+ 'integrationId': smithy_client_1.expectString,
1075
+ 'pbx': smithy_client_1.expectString,
1076
+ 'time': smithy_client_1.expectLong,
1077
+ 'type': smithy_client_1.expectString,
1078
+ });
1079
+ };
1080
+ const de_WebhookCallAnnotationsCompletedEventData = (output, context) => {
1081
+ return (0, smithy_client_1.take)(output, {
1082
+ 'annotations': (_) => de_Annotations(_, context),
1083
+ 'call': smithy_client_1._json,
1084
+ });
1085
+ };
1086
+ const de_WebhookCallLiveAnnotationEvent = (output, context) => {
1087
+ return (0, smithy_client_1.take)(output, {
1088
+ 'company': smithy_client_1.expectString,
1089
+ 'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
1090
+ 'id': smithy_client_1.expectString,
1091
+ 'integrationId': smithy_client_1.expectString,
1092
+ 'pbx': smithy_client_1.expectString,
1093
+ 'time': smithy_client_1.expectLong,
1094
+ 'type': smithy_client_1.expectString,
1095
+ });
1096
+ };
759
1097
  const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
760
1098
  return (0, smithy_client_1.take)(output, {
761
1099
  'company': smithy_client_1.expectString,
@@ -767,6 +1105,62 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
767
1105
  'type': smithy_client_1.expectString,
768
1106
  });
769
1107
  };
1108
+ const de_WebhookChatAnnotationsCompletedEvent = (output, context) => {
1109
+ return (0, smithy_client_1.take)(output, {
1110
+ 'company': smithy_client_1.expectString,
1111
+ 'data': (_) => de_WebhookChatAnnotationsCompletedEventData(_, context),
1112
+ 'id': smithy_client_1.expectString,
1113
+ 'integrationId': smithy_client_1.expectString,
1114
+ 'pbx': smithy_client_1.expectString,
1115
+ 'time': smithy_client_1.expectLong,
1116
+ 'type': smithy_client_1.expectString,
1117
+ });
1118
+ };
1119
+ const de_WebhookChatAnnotationsCompletedEventData = (output, context) => {
1120
+ return (0, smithy_client_1.take)(output, {
1121
+ 'annotations': (_) => de_Annotations(_, context),
1122
+ 'chat': smithy_client_1._json,
1123
+ });
1124
+ };
1125
+ const de_WebhookChatLiveAnnotationEvent = (output, context) => {
1126
+ return (0, smithy_client_1.take)(output, {
1127
+ 'company': smithy_client_1.expectString,
1128
+ 'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
1129
+ 'id': smithy_client_1.expectString,
1130
+ 'integrationId': smithy_client_1.expectString,
1131
+ 'pbx': smithy_client_1.expectString,
1132
+ 'time': smithy_client_1.expectLong,
1133
+ 'type': smithy_client_1.expectString,
1134
+ });
1135
+ };
1136
+ const de_WebhookConferenceAnnotationsCompletedEvent = (output, context) => {
1137
+ return (0, smithy_client_1.take)(output, {
1138
+ 'company': smithy_client_1.expectString,
1139
+ 'data': (_) => de_WebhookConferenceAnnotationsCompletedEventData(_, context),
1140
+ 'id': smithy_client_1.expectString,
1141
+ 'integrationId': smithy_client_1.expectString,
1142
+ 'pbx': smithy_client_1.expectString,
1143
+ 'time': smithy_client_1.expectLong,
1144
+ 'type': smithy_client_1.expectString,
1145
+ });
1146
+ };
1147
+ const de_WebhookConferenceAnnotationsCompletedEventData = (output, context) => {
1148
+ return (0, smithy_client_1.take)(output, {
1149
+ 'annotations': (_) => de_Annotations(_, context),
1150
+ 'conference': smithy_client_1._json,
1151
+ });
1152
+ };
1153
+ const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
1154
+ return (0, smithy_client_1.take)(output, {
1155
+ 'company': smithy_client_1.expectString,
1156
+ 'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
1157
+ 'id': smithy_client_1.expectString,
1158
+ 'integrationId': smithy_client_1.expectString,
1159
+ 'pbx': smithy_client_1.expectString,
1160
+ 'time': smithy_client_1.expectLong,
1161
+ 'type': smithy_client_1.expectString,
1162
+ });
1163
+ };
770
1164
  const de_WebsocketAuthorizedEvent = (output, context) => {
771
1165
  return (0, smithy_client_1.take)(output, {
772
1166
  '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";