@wildix/wda-stream-client 1.1.59 → 1.1.60

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 +0 -6
  2. package/dist-cjs/commands/index.js +0 -3
  3. package/dist-cjs/models/models_0.js +31 -70
  4. package/dist-cjs/models/models_1.js +1 -7
  5. package/dist-cjs/protocols/Aws_restJson1.js +3 -396
  6. package/dist-es/WdaStream.js +0 -6
  7. package/dist-es/commands/index.js +0 -3
  8. package/dist-es/models/models_0.js +29 -68
  9. package/dist-es/models/models_1.js +0 -6
  10. package/dist-es/protocols/Aws_restJson1.js +4 -391
  11. package/dist-types/WdaStream.d.ts +0 -21
  12. package/dist-types/WdaStreamClient.d.ts +2 -5
  13. package/dist-types/commands/ConsumeEventCommand.d.ts +88 -146
  14. package/dist-types/commands/DescribeEventCommand.d.ts +196 -467
  15. package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
  16. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
  17. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +1 -2
  18. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +2 -3
  19. package/dist-types/commands/ListServicesCommand.d.ts +1 -0
  20. package/dist-types/commands/QueryConversationsCommand.d.ts +4 -6
  21. package/dist-types/commands/index.d.ts +0 -3
  22. package/dist-types/models/models_0.d.ts +786 -770
  23. package/dist-types/models/models_1.d.ts +18 -353
  24. package/dist-types/protocols/Aws_restJson1.d.ts +0 -27
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +0 -21
  30. package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +0 -21
  31. package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +0 -21
  32. package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +0 -17
  33. package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +0 -17
  34. package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +0 -17
  35. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +0 -286
  36. package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +0 -190
  37. package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +0 -134
@@ -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_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;
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;
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,22 +77,6 @@ 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;
96
80
  const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
97
81
  const b = (0, core_2.requestBuilder)(input, context);
98
82
  const headers = {};
@@ -109,22 +93,6 @@ const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
109
93
  return b.build();
110
94
  };
111
95
  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;
128
96
  const se_GetOngoingConferenceCommand = async (input, context) => {
129
97
  const b = (0, core_2.requestBuilder)(input, context);
130
98
  const headers = {};
@@ -141,22 +109,6 @@ const se_GetOngoingConferenceCommand = async (input, context) => {
141
109
  return b.build();
142
110
  };
143
111
  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;
160
112
  const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
161
113
  const b = (0, core_2.requestBuilder)(input, context);
162
114
  const headers = {};
@@ -280,9 +232,7 @@ const de_DescribeEventCommand = async (output, context) => {
280
232
  });
281
233
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
282
234
  const doc = (0, smithy_client_1.take)(data, {
283
- 'CallAnalyticsAnnotationsRecordEvent': _ => de_CallAnalyticsAnnotationsRecordEvent(_, context),
284
235
  'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
285
- 'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
286
236
  'CallAnalyticsLiveCompleteEvent': smithy_client_1._json,
287
237
  'CallAnalyticsLiveInterruptedEvent': smithy_client_1._json,
288
238
  'CallAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -290,8 +240,6 @@ const de_DescribeEventCommand = async (output, context) => {
290
240
  'CallAnalyticsRecordEvent': smithy_client_1._json,
291
241
  'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
292
242
  'CallEventType': smithy_client_1.expectString,
293
- 'ChatAnalyticsAnnotationsRecordEvent': _ => de_ChatAnalyticsAnnotationsRecordEvent(_, context),
294
- 'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
295
243
  'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
296
244
  'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
297
245
  'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
@@ -300,8 +248,6 @@ const de_DescribeEventCommand = async (output, context) => {
300
248
  'ChatAnalyticsRecordEvent': smithy_client_1._json,
301
249
  'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
302
250
  'ChatEventType': smithy_client_1.expectString,
303
- 'ConferenceAnalyticsAnnotationsRecordEvent': _ => de_ConferenceAnalyticsAnnotationsRecordEvent(_, context),
304
- 'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
305
251
  'ConferenceAnalyticsLiveCompleteEvent': smithy_client_1._json,
306
252
  'ConferenceAnalyticsLiveInterruptedEvent': smithy_client_1._json,
307
253
  'ConferenceAnalyticsLiveJoinEvent': smithy_client_1._json,
@@ -315,15 +261,15 @@ const de_DescribeEventCommand = async (output, context) => {
315
261
  'PresenceAnalyticsStatusEvent': smithy_client_1._json,
316
262
  'PresenceAnalyticsTelephonyEvent': smithy_client_1._json,
317
263
  'PresenceEventType': smithy_client_1.expectString,
264
+ 'ServiceAgentsStatusAnalyticsRecordEvent': smithy_client_1._json,
318
265
  'ServiceAnalyticsLiveCompleteEvent': smithy_client_1._json,
319
266
  'ServiceAnalyticsLiveProgressEvent': smithy_client_1._json,
320
267
  'ServiceCallAnalyticsLiveCompleteEvent': smithy_client_1._json,
321
268
  'ServiceCallAnalyticsLiveProgressEvent': smithy_client_1._json,
269
+ 'ServiceCallAnalyticsRecordEvent': smithy_client_1._json,
322
270
  'ServiceCallEventType': smithy_client_1.expectString,
323
271
  'ServiceEventType': smithy_client_1.expectString,
324
- 'WebhookCallAnnotationsCompletedEvent': _ => de_WebhookCallAnnotationsCompletedEvent(_, context),
325
272
  'WebhookCallCompletedEvent': smithy_client_1._json,
326
- 'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
327
273
  'WebhookCallLiveCompletedEvent': smithy_client_1._json,
328
274
  'WebhookCallLiveInterruptedEvent': smithy_client_1._json,
329
275
  'WebhookCallLiveProgressEvent': smithy_client_1._json,
@@ -335,17 +281,13 @@ const de_DescribeEventCommand = async (output, context) => {
335
281
  'WebhookCallSummaryCompletedEvent': smithy_client_1._json,
336
282
  'WebhookCallTranscriptionCompletedEvent': smithy_client_1._json,
337
283
  'WebhookCallTranscriptionTextCompletedEvent': smithy_client_1._json,
338
- 'WebhookChatAnnotationsCompletedEvent': _ => de_WebhookChatAnnotationsCompletedEvent(_, context),
339
284
  'WebhookChatCompletedEvent': smithy_client_1._json,
340
- 'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
341
285
  'WebhookChatLiveCompletedEvent': smithy_client_1._json,
342
286
  'WebhookChatLiveInterruptedEvent': smithy_client_1._json,
343
287
  'WebhookChatLiveProgressEvent': smithy_client_1._json,
344
288
  'WebhookChatManagerMissedEvent': smithy_client_1._json,
345
289
  'WebhookChatSummaryCompletedEvent': smithy_client_1._json,
346
- 'WebhookConferenceAnnotationsCompletedEvent': _ => de_WebhookConferenceAnnotationsCompletedEvent(_, context),
347
290
  'WebhookConferenceCompletedEvent': smithy_client_1._json,
348
- 'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
349
291
  'WebhookConferenceLiveCompletedEvent': smithy_client_1._json,
350
292
  'WebhookConferenceLiveInterruptedEvent': smithy_client_1._json,
351
293
  'WebhookConferenceLiveJoinEvent': smithy_client_1._json,
@@ -407,23 +349,6 @@ const de_GetOngoingCallCommand = async (output, context) => {
407
349
  return contents;
408
350
  };
409
351
  exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
410
- const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
411
- if (output.statusCode !== 200 && output.statusCode >= 300) {
412
- return de_CommandError(output, context);
413
- }
414
- const contents = (0, smithy_client_1.map)({
415
- $metadata: deserializeMetadata(output),
416
- });
417
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
418
- const doc = (0, smithy_client_1.take)(data, {
419
- 'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
420
- 'company': smithy_client_1.expectString,
421
- 'flows': smithy_client_1._json,
422
- });
423
- Object.assign(contents, doc);
424
- return contents;
425
- };
426
- exports.de_GetOngoingCallAnnotationsCommand = de_GetOngoingCallAnnotationsCommand;
427
352
  const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
428
353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
429
354
  return de_CommandError(output, context);
@@ -441,22 +366,6 @@ const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
441
366
  return contents;
442
367
  };
443
368
  exports.de_GetOngoingCallTranscriptionCommand = de_GetOngoingCallTranscriptionCommand;
444
- const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
445
- if (output.statusCode !== 200 && output.statusCode >= 300) {
446
- return de_CommandError(output, context);
447
- }
448
- const contents = (0, smithy_client_1.map)({
449
- $metadata: deserializeMetadata(output),
450
- });
451
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
452
- const doc = (0, smithy_client_1.take)(data, {
453
- 'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
454
- 'chat': smithy_client_1._json,
455
- });
456
- Object.assign(contents, doc);
457
- return contents;
458
- };
459
- exports.de_GetOngoingChatAnnotationsCommand = de_GetOngoingChatAnnotationsCommand;
460
369
  const de_GetOngoingConferenceCommand = async (output, context) => {
461
370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
462
371
  return de_CommandError(output, context);
@@ -472,22 +381,6 @@ const de_GetOngoingConferenceCommand = async (output, context) => {
472
381
  return contents;
473
382
  };
474
383
  exports.de_GetOngoingConferenceCommand = de_GetOngoingConferenceCommand;
475
- const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
476
- if (output.statusCode !== 200 && output.statusCode >= 300) {
477
- return de_CommandError(output, context);
478
- }
479
- const contents = (0, smithy_client_1.map)({
480
- $metadata: deserializeMetadata(output),
481
- });
482
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
483
- const doc = (0, smithy_client_1.take)(data, {
484
- 'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
485
- 'conference': smithy_client_1._json,
486
- });
487
- Object.assign(contents, doc);
488
- return contents;
489
- };
490
- exports.de_GetOngoingConferenceAnnotationsCommand = de_GetOngoingConferenceAnnotationsCommand;
491
384
  const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
492
385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
493
386
  return de_CommandError(output, context);
@@ -661,83 +554,10 @@ const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
661
554
  const se_Document = (input, context) => {
662
555
  return input;
663
556
  };
664
- const se_Annotation = (input, context) => {
665
- return (0, smithy_client_1.take)(input, {
666
- 'id': [],
667
- 'payload': _ => se_AnnotationPayload(_, context),
668
- 'source': smithy_client_1._json,
669
- 'time': [],
670
- });
671
- };
672
- const se_AnnotationPayload = (input, context) => {
673
- return models_0_1.AnnotationPayload.visit(input, {
674
- result: value => ({ "result": se_AnnotationResultValue(value, context) }),
675
- tag: value => ({ "tag": value }),
676
- text: value => ({ "text": value }),
677
- variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
678
- _: (name, value) => ({ [name]: value })
679
- });
680
- };
681
- const se_AnnotationResultValue = (input, context) => {
682
- return (0, smithy_client_1.take)(input, {
683
- 'value': _ => se_Document(_, context),
684
- });
685
- };
686
- const se_AnnotationVariablesValue = (input, context) => {
687
- return (0, smithy_client_1.take)(input, {
688
- 'value': _ => se_Document(_, context),
689
- });
690
- };
691
- const se_CallAnnotateConsumeEvent = (input, context) => {
692
- return (0, smithy_client_1.take)(input, {
693
- 'company': [],
694
- 'data': _ => se_CallAnnotateConsumeEventData(_, context),
695
- 'id': [],
696
- 'pbx': [],
697
- 'time': [],
698
- 'type': [],
699
- });
700
- };
701
- const se_CallAnnotateConsumeEventData = (input, context) => {
702
- return (0, smithy_client_1.take)(input, {
703
- 'annotation': _ => se_Annotation(_, context),
704
- 'flowIndex': [],
705
- });
706
- };
707
- const se_ChatAnnotateConsumeEvent = (input, context) => {
708
- return (0, smithy_client_1.take)(input, {
709
- 'company': [],
710
- 'data': _ => se_ChatAnnotateConsumeEventData(_, context),
711
- 'time': [],
712
- 'type': [],
713
- });
714
- };
715
- const se_ChatAnnotateConsumeEventData = (input, context) => {
716
- return (0, smithy_client_1.take)(input, {
717
- 'annotation': _ => se_Annotation(_, context),
718
- 'chatId': [],
719
- });
720
- };
721
- const se_ConferenceAnnotateConsumeEvent = (input, context) => {
722
- return (0, smithy_client_1.take)(input, {
723
- 'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
724
- 'room': [],
725
- 'session': [],
726
- 'time': [],
727
- 'type': [],
728
- });
729
- };
730
- const se_ConferenceAnnotateConsumeEventData = (input, context) => {
731
- return (0, smithy_client_1.take)(input, {
732
- 'annotation': _ => se_Annotation(_, context),
733
- 'company': [],
734
- });
735
- };
736
557
  const se_ConsumeEventInputEvent = (input, context) => {
737
558
  return models_0_1.ConsumeEventInputEvent.visit(input, {
738
559
  callAgentsCancel: value => ({ "callAgentsCancel": (0, smithy_client_1._json)(value) }),
739
560
  callAgentsStart: value => ({ "callAgentsStart": (0, smithy_client_1._json)(value) }),
740
- callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
741
561
  callAttachment: value => ({ "callAttachment": (0, smithy_client_1._json)(value) }),
742
562
  callEnd: value => ({ "callEnd": (0, smithy_client_1._json)(value) }),
743
563
  callLive: value => ({ "callLive": (0, smithy_client_1._json)(value) }),
@@ -750,11 +570,9 @@ const se_ConsumeEventInputEvent = (input, context) => {
750
570
  callStart: value => ({ "callStart": (0, smithy_client_1._json)(value) }),
751
571
  callTranscription: value => ({ "callTranscription": (0, smithy_client_1._json)(value) }),
752
572
  callUpdate: value => ({ "callUpdate": (0, smithy_client_1._json)(value) }),
753
- chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
754
573
  chatMessage: value => ({ "chatMessage": (0, smithy_client_1._json)(value) }),
755
574
  chatNew: value => ({ "chatNew": (0, smithy_client_1._json)(value) }),
756
575
  chatUpdate: value => ({ "chatUpdate": (0, smithy_client_1._json)(value) }),
757
- conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
758
576
  conferenceEnd: value => ({ "conferenceEnd": (0, smithy_client_1._json)(value) }),
759
577
  conferenceJoin: value => ({ "conferenceJoin": (0, smithy_client_1._json)(value) }),
760
578
  conferenceKeepAlive: value => ({ "conferenceKeepAlive": (0, smithy_client_1._json)(value) }),
@@ -844,63 +662,6 @@ const se_WhatsAppStatusEvent = (input, context) => {
844
662
  const de_Document = (output, context) => {
845
663
  return output;
846
664
  };
847
- const de_Annotation = (output, context) => {
848
- return (0, smithy_client_1.take)(output, {
849
- 'id': smithy_client_1.expectString,
850
- 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
851
- 'source': smithy_client_1._json,
852
- 'time': smithy_client_1.expectLong,
853
- });
854
- };
855
- const de_AnnotationPayload = (output, context) => {
856
- if (output.result != null) {
857
- return {
858
- result: de_AnnotationResultValue(output.result, context)
859
- };
860
- }
861
- if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
862
- return { tag: (0, smithy_client_1.expectString)(output.tag) };
863
- }
864
- if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
865
- return { text: (0, smithy_client_1.expectString)(output.text) };
866
- }
867
- if (output.variables != null) {
868
- return {
869
- variables: de_AnnotationVariablesValue(output.variables, context)
870
- };
871
- }
872
- return { $unknown: Object.entries(output)[0] };
873
- };
874
- const de_AnnotationResultValue = (output, context) => {
875
- return (0, smithy_client_1.take)(output, {
876
- 'value': (_) => de_Document(_, context),
877
- });
878
- };
879
- const de_Annotations = (output, context) => {
880
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
881
- return de_Annotation(entry, context);
882
- });
883
- return retVal;
884
- };
885
- const de_AnnotationVariablesValue = (output, context) => {
886
- return (0, smithy_client_1.take)(output, {
887
- 'value': (_) => de_Document(_, context),
888
- });
889
- };
890
- const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
891
- return (0, smithy_client_1.take)(output, {
892
- 'annotations': (_) => de_Annotations(_, context),
893
- 'callStartTime': smithy_client_1.expectLong,
894
- 'company': smithy_client_1.expectString,
895
- 'flowIndex': smithy_client_1.expectInt32,
896
- 'flowStartTime': smithy_client_1.expectLong,
897
- 'id': smithy_client_1.expectString,
898
- 'licenses': smithy_client_1._json,
899
- 'pbx': smithy_client_1.expectString,
900
- 'time': smithy_client_1.expectLong,
901
- 'type': smithy_client_1.expectString,
902
- });
903
- };
904
665
  const de_CallAnalyticsCostRecordEvent = (output, context) => {
905
666
  return (0, smithy_client_1.take)(output, {
906
667
  'company': smithy_client_1.expectString,
@@ -914,26 +675,6 @@ const de_CallAnalyticsCostRecordEvent = (output, context) => {
914
675
  'type': smithy_client_1.expectString,
915
676
  });
916
677
  };
917
- const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
918
- return (0, smithy_client_1.take)(output, {
919
- 'annotation': (_) => de_Annotation(_, context),
920
- 'callStartTime': smithy_client_1.expectLong,
921
- 'company': smithy_client_1.expectString,
922
- 'event': smithy_client_1.expectString,
923
- 'flowIndex': smithy_client_1.expectInt32,
924
- 'flowStartTime': smithy_client_1.expectLong,
925
- 'id': smithy_client_1.expectString,
926
- 'licenses': smithy_client_1._json,
927
- 'pbx': smithy_client_1.expectString,
928
- 'time': smithy_client_1.expectLong,
929
- });
930
- };
931
- const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
932
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
933
- return de_CallAnalyticsLiveAnnotationEvent(entry, context);
934
- });
935
- return retVal;
936
- };
937
678
  const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
938
679
  return (0, smithy_client_1.take)(output, {
939
680
  'callStartTime': smithy_client_1.expectLong,
@@ -1005,32 +746,6 @@ const de_CallTranscriptionList = (output, context) => {
1005
746
  });
1006
747
  return retVal;
1007
748
  };
1008
- const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
1009
- return (0, smithy_client_1.take)(output, {
1010
- 'annotations': (_) => de_Annotations(_, context),
1011
- 'chatId': smithy_client_1.expectString,
1012
- 'company': smithy_client_1.expectString,
1013
- 'id': smithy_client_1.expectString,
1014
- 'time': smithy_client_1.expectLong,
1015
- 'type': smithy_client_1.expectString,
1016
- });
1017
- };
1018
- const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
1019
- return (0, smithy_client_1.take)(output, {
1020
- 'annotation': (_) => de_Annotation(_, context),
1021
- 'chatId': smithy_client_1.expectString,
1022
- 'company': smithy_client_1.expectString,
1023
- 'event': smithy_client_1.expectString,
1024
- 'id': smithy_client_1.expectString,
1025
- 'time': smithy_client_1.expectLong,
1026
- });
1027
- };
1028
- const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
1029
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1030
- return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
1031
- });
1032
- return retVal;
1033
- };
1034
749
  const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
1035
750
  return (0, smithy_client_1.take)(output, {
1036
751
  'chatId': smithy_client_1.expectString,
@@ -1041,58 +756,6 @@ const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
1041
756
  'type': smithy_client_1.expectString,
1042
757
  });
1043
758
  };
1044
- const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
1045
- return (0, smithy_client_1.take)(output, {
1046
- 'annotations': (_) => de_Annotations(_, context),
1047
- 'company': smithy_client_1.expectString,
1048
- 'id': smithy_client_1.expectString,
1049
- 'time': smithy_client_1.expectLong,
1050
- 'type': smithy_client_1.expectString,
1051
- });
1052
- };
1053
- const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
1054
- return (0, smithy_client_1.take)(output, {
1055
- 'annotation': (_) => de_Annotation(_, context),
1056
- 'company': smithy_client_1.expectString,
1057
- 'event': smithy_client_1.expectString,
1058
- 'id': smithy_client_1.expectString,
1059
- 'time': smithy_client_1.expectLong,
1060
- });
1061
- };
1062
- const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
1063
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1064
- return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
1065
- });
1066
- return retVal;
1067
- };
1068
- const de_WebhookCallAnnotationsCompletedEvent = (output, context) => {
1069
- return (0, smithy_client_1.take)(output, {
1070
- 'company': smithy_client_1.expectString,
1071
- 'data': (_) => de_WebhookCallAnnotationsCompletedEventData(_, context),
1072
- 'id': smithy_client_1.expectString,
1073
- 'integrationId': smithy_client_1.expectString,
1074
- 'pbx': smithy_client_1.expectString,
1075
- 'time': smithy_client_1.expectLong,
1076
- 'type': smithy_client_1.expectString,
1077
- });
1078
- };
1079
- const de_WebhookCallAnnotationsCompletedEventData = (output, context) => {
1080
- return (0, smithy_client_1.take)(output, {
1081
- 'annotations': (_) => de_Annotations(_, context),
1082
- 'call': smithy_client_1._json,
1083
- });
1084
- };
1085
- const de_WebhookCallLiveAnnotationEvent = (output, context) => {
1086
- return (0, smithy_client_1.take)(output, {
1087
- 'company': smithy_client_1.expectString,
1088
- 'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
1089
- 'id': smithy_client_1.expectString,
1090
- 'integrationId': smithy_client_1.expectString,
1091
- 'pbx': smithy_client_1.expectString,
1092
- 'time': smithy_client_1.expectLong,
1093
- 'type': smithy_client_1.expectString,
1094
- });
1095
- };
1096
759
  const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
1097
760
  return (0, smithy_client_1.take)(output, {
1098
761
  'company': smithy_client_1.expectString,
@@ -1104,62 +767,6 @@ const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
1104
767
  'type': smithy_client_1.expectString,
1105
768
  });
1106
769
  };
1107
- const de_WebhookChatAnnotationsCompletedEvent = (output, context) => {
1108
- return (0, smithy_client_1.take)(output, {
1109
- 'company': smithy_client_1.expectString,
1110
- 'data': (_) => de_WebhookChatAnnotationsCompletedEventData(_, context),
1111
- 'id': smithy_client_1.expectString,
1112
- 'integrationId': smithy_client_1.expectString,
1113
- 'pbx': smithy_client_1.expectString,
1114
- 'time': smithy_client_1.expectLong,
1115
- 'type': smithy_client_1.expectString,
1116
- });
1117
- };
1118
- const de_WebhookChatAnnotationsCompletedEventData = (output, context) => {
1119
- return (0, smithy_client_1.take)(output, {
1120
- 'annotations': (_) => de_Annotations(_, context),
1121
- 'chat': smithy_client_1._json,
1122
- });
1123
- };
1124
- const de_WebhookChatLiveAnnotationEvent = (output, context) => {
1125
- return (0, smithy_client_1.take)(output, {
1126
- 'company': smithy_client_1.expectString,
1127
- 'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
1128
- 'id': smithy_client_1.expectString,
1129
- 'integrationId': smithy_client_1.expectString,
1130
- 'pbx': smithy_client_1.expectString,
1131
- 'time': smithy_client_1.expectLong,
1132
- 'type': smithy_client_1.expectString,
1133
- });
1134
- };
1135
- const de_WebhookConferenceAnnotationsCompletedEvent = (output, context) => {
1136
- return (0, smithy_client_1.take)(output, {
1137
- 'company': smithy_client_1.expectString,
1138
- 'data': (_) => de_WebhookConferenceAnnotationsCompletedEventData(_, context),
1139
- 'id': smithy_client_1.expectString,
1140
- 'integrationId': smithy_client_1.expectString,
1141
- 'pbx': smithy_client_1.expectString,
1142
- 'time': smithy_client_1.expectLong,
1143
- 'type': smithy_client_1.expectString,
1144
- });
1145
- };
1146
- const de_WebhookConferenceAnnotationsCompletedEventData = (output, context) => {
1147
- return (0, smithy_client_1.take)(output, {
1148
- 'annotations': (_) => de_Annotations(_, context),
1149
- 'conference': smithy_client_1._json,
1150
- });
1151
- };
1152
- const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
1153
- return (0, smithy_client_1.take)(output, {
1154
- 'company': smithy_client_1.expectString,
1155
- 'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
1156
- 'id': smithy_client_1.expectString,
1157
- 'integrationId': smithy_client_1.expectString,
1158
- 'pbx': smithy_client_1.expectString,
1159
- 'time': smithy_client_1.expectLong,
1160
- 'type': smithy_client_1.expectString,
1161
- });
1162
- };
1163
770
  const de_WebsocketAuthorizedEvent = (output, context) => {
1164
771
  return (0, smithy_client_1.take)(output, {
1165
772
  'connectionId': smithy_client_1.expectString,
@@ -2,11 +2,8 @@ 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";
6
5
  import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
7
6
  import { GetOngoingCallTranscriptionCommand, } from "./commands/GetOngoingCallTranscriptionCommand";
8
- import { GetOngoingChatAnnotationsCommand, } from "./commands/GetOngoingChatAnnotationsCommand";
9
- import { GetOngoingConferenceAnnotationsCommand, } from "./commands/GetOngoingConferenceAnnotationsCommand";
10
7
  import { GetOngoingConferenceCommand, } from "./commands/GetOngoingConferenceCommand";
11
8
  import { GetOngoingConferenceTranscriptionCommand, } from "./commands/GetOngoingConferenceTranscriptionCommand";
12
9
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
@@ -20,11 +17,8 @@ const commands = {
20
17
  DescribeEventCommand,
21
18
  GetConferenceIdCommand,
22
19
  GetOngoingCallCommand,
23
- GetOngoingCallAnnotationsCommand,
24
20
  GetOngoingCallTranscriptionCommand,
25
- GetOngoingChatAnnotationsCommand,
26
21
  GetOngoingConferenceCommand,
27
- GetOngoingConferenceAnnotationsCommand,
28
22
  GetOngoingConferenceTranscriptionCommand,
29
23
  ListServicesCommand,
30
24
  QueryConversationsCommand,
@@ -2,11 +2,8 @@ export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
4
  export * from "./GetOngoingCallCommand";
5
- export * from "./GetOngoingCallAnnotationsCommand";
6
5
  export * from "./GetOngoingCallTranscriptionCommand";
7
- export * from "./GetOngoingChatAnnotationsCommand";
8
6
  export * from "./GetOngoingConferenceCommand";
9
- export * from "./GetOngoingConferenceAnnotationsCommand";
10
7
  export * from "./GetOngoingConferenceTranscriptionCommand";
11
8
  export * from "./ListServicesCommand";
12
9
  export * from "./QueryConversationsCommand";