@wildix/wda-history-client 1.2.22 → 1.2.24

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 (35) hide show
  1. package/dist-cjs/WdaHistory.js +0 -6
  2. package/dist-cjs/commands/index.js +0 -3
  3. package/dist-cjs/models/models_0.js +13 -80
  4. package/dist-cjs/protocols/Aws_restJson1.js +1 -222
  5. package/dist-es/WdaHistory.js +0 -6
  6. package/dist-es/commands/index.js +0 -3
  7. package/dist-es/models/models_0.js +12 -75
  8. package/dist-es/protocols/Aws_restJson1.js +2 -217
  9. package/dist-types/WdaHistory.d.ts +0 -21
  10. package/dist-types/WdaHistoryClient.d.ts +2 -5
  11. package/dist-types/commands/GetCallCommand.d.ts +2 -2
  12. package/dist-types/commands/GetCallTranscriptionCommand.d.ts +1 -1
  13. package/dist-types/commands/GetChatCommand.d.ts +1 -2
  14. package/dist-types/commands/GetChatTranscriptionCommand.d.ts +1 -1
  15. package/dist-types/commands/GetConferenceCommand.d.ts +1 -2
  16. package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -1
  17. package/dist-types/commands/QueryConversationsCommand.d.ts +3 -4
  18. package/dist-types/commands/QueryUserCallsCommand.d.ts +2 -2
  19. package/dist-types/commands/UpdateCallCommand.d.ts +2 -2
  20. package/dist-types/commands/index.d.ts +0 -3
  21. package/dist-types/models/models_0.d.ts +33 -289
  22. package/dist-types/protocols/Aws_restJson1.d.ts +0 -27
  23. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  24. package/dist-types/runtimeConfig.d.ts +1 -1
  25. package/dist-types/runtimeConfig.native.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/dist-cjs/commands/GetCallAnnotationsCommand.js +0 -21
  28. package/dist-cjs/commands/GetChatAnnotationsCommand.js +0 -21
  29. package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +0 -21
  30. package/dist-es/commands/GetCallAnnotationsCommand.js +0 -17
  31. package/dist-es/commands/GetChatAnnotationsCommand.js +0 -17
  32. package/dist-es/commands/GetConferenceAnnotationsCommand.js +0 -17
  33. package/dist-types/commands/GetCallAnnotationsCommand.d.ts +0 -115
  34. package/dist-types/commands/GetChatAnnotationsCommand.d.ts +0 -108
  35. package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +0 -107
@@ -2,15 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WdaHistory = void 0;
4
4
  const WdaHistoryClient_1 = require("./WdaHistoryClient");
5
- const GetCallAnnotationsCommand_1 = require("./commands/GetCallAnnotationsCommand");
6
5
  const GetCallCommand_1 = require("./commands/GetCallCommand");
7
6
  const GetCallTranscriptionCommand_1 = require("./commands/GetCallTranscriptionCommand");
8
7
  const GetCallTranscriptionTextCommand_1 = require("./commands/GetCallTranscriptionTextCommand");
9
- const GetChatAnnotationsCommand_1 = require("./commands/GetChatAnnotationsCommand");
10
8
  const GetChatCommand_1 = require("./commands/GetChatCommand");
11
9
  const GetChatTranscriptionCommand_1 = require("./commands/GetChatTranscriptionCommand");
12
10
  const GetChatTranscriptionTextCommand_1 = require("./commands/GetChatTranscriptionTextCommand");
13
- const GetConferenceAnnotationsCommand_1 = require("./commands/GetConferenceAnnotationsCommand");
14
11
  const GetConferenceCommand_1 = require("./commands/GetConferenceCommand");
15
12
  const GetConferenceTranscriptionCommand_1 = require("./commands/GetConferenceTranscriptionCommand");
16
13
  const GetConferenceTranscriptionTextCommand_1 = require("./commands/GetConferenceTranscriptionTextCommand");
@@ -20,15 +17,12 @@ const UpdateCallCommand_1 = require("./commands/UpdateCallCommand");
20
17
  const smithy_client_1 = require("@smithy/smithy-client");
21
18
  const commands = {
22
19
  GetCallCommand: GetCallCommand_1.GetCallCommand,
23
- GetCallAnnotationsCommand: GetCallAnnotationsCommand_1.GetCallAnnotationsCommand,
24
20
  GetCallTranscriptionCommand: GetCallTranscriptionCommand_1.GetCallTranscriptionCommand,
25
21
  GetCallTranscriptionTextCommand: GetCallTranscriptionTextCommand_1.GetCallTranscriptionTextCommand,
26
22
  GetChatCommand: GetChatCommand_1.GetChatCommand,
27
- GetChatAnnotationsCommand: GetChatAnnotationsCommand_1.GetChatAnnotationsCommand,
28
23
  GetChatTranscriptionCommand: GetChatTranscriptionCommand_1.GetChatTranscriptionCommand,
29
24
  GetChatTranscriptionTextCommand: GetChatTranscriptionTextCommand_1.GetChatTranscriptionTextCommand,
30
25
  GetConferenceCommand: GetConferenceCommand_1.GetConferenceCommand,
31
- GetConferenceAnnotationsCommand: GetConferenceAnnotationsCommand_1.GetConferenceAnnotationsCommand,
32
26
  GetConferenceTranscriptionCommand: GetConferenceTranscriptionCommand_1.GetConferenceTranscriptionCommand,
33
27
  GetConferenceTranscriptionTextCommand: GetConferenceTranscriptionTextCommand_1.GetConferenceTranscriptionTextCommand,
34
28
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
@@ -2,15 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./GetCallCommand"), exports);
5
- tslib_1.__exportStar(require("./GetCallAnnotationsCommand"), exports);
6
5
  tslib_1.__exportStar(require("./GetCallTranscriptionCommand"), exports);
7
6
  tslib_1.__exportStar(require("./GetCallTranscriptionTextCommand"), exports);
8
7
  tslib_1.__exportStar(require("./GetChatCommand"), exports);
9
- tslib_1.__exportStar(require("./GetChatAnnotationsCommand"), exports);
10
8
  tslib_1.__exportStar(require("./GetChatTranscriptionCommand"), exports);
11
9
  tslib_1.__exportStar(require("./GetChatTranscriptionTextCommand"), exports);
12
10
  tslib_1.__exportStar(require("./GetConferenceCommand"), exports);
13
- tslib_1.__exportStar(require("./GetConferenceAnnotationsCommand"), exports);
14
11
  tslib_1.__exportStar(require("./GetConferenceTranscriptionCommand"), exports);
15
12
  tslib_1.__exportStar(require("./GetConferenceTranscriptionTextCommand"), exports);
16
13
  tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.ConferenceAnnotationsNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.ChatAnnotationsNotFoundException = exports.TranscriptionSentiment = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.AnnotationsStatus = exports.CallNotFoundException = exports.RecordType = exports.License = exports.AnnotationSourceType = exports.AnnotationPayload = exports.CallAnnotationsNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
- exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = void 0;
3
+ exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.TranscriptionSentiment = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
5
4
  const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
6
5
  class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
7
6
  name = "ForbiddenException";
@@ -39,54 +38,6 @@ exports.ConversationStatus = {
39
38
  COMPLETED: "COMPLETED",
40
39
  MISSED: "MISSED",
41
40
  };
42
- class CallAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
43
- name = "CallAnnotationsNotFoundException";
44
- $fault = "client";
45
- constructor(opts) {
46
- super({
47
- name: "CallAnnotationsNotFoundException",
48
- $fault: "client",
49
- ...opts
50
- });
51
- Object.setPrototypeOf(this, CallAnnotationsNotFoundException.prototype);
52
- }
53
- }
54
- exports.CallAnnotationsNotFoundException = CallAnnotationsNotFoundException;
55
- var AnnotationPayload;
56
- (function (AnnotationPayload) {
57
- AnnotationPayload.visit = (value, visitor) => {
58
- if (value.tag !== undefined)
59
- return visitor.tag(value.tag);
60
- if (value.text !== undefined)
61
- return visitor.text(value.text);
62
- if (value.variables !== undefined)
63
- return visitor.variables(value.variables);
64
- if (value.result !== undefined)
65
- return visitor.result(value.result);
66
- return visitor._(value.$unknown[0], value.$unknown[1]);
67
- };
68
- })(AnnotationPayload || (exports.AnnotationPayload = AnnotationPayload = {}));
69
- exports.AnnotationSourceType = {
70
- CHATBOT: "chatbot",
71
- SYSTEM: "system",
72
- USER: "user",
73
- VOICEBOT: "voicebot",
74
- };
75
- exports.License = {
76
- UC: "uc",
77
- XBEES: "x-bees",
78
- };
79
- exports.RecordType = {
80
- CALL: "call",
81
- CALL_ANNOTATIONS: "call_annotations",
82
- CALL_TRANSCRIPTION: "call_transcription",
83
- CHAT: "chat",
84
- CHAT_ANNOTATIONS: "chat_annotations",
85
- CHAT_TRANSCRIPTION: "chat_transcription",
86
- CONFERENCE: "conference",
87
- CONFERENCE_ANNOTATIONS: "conference_annotations",
88
- CONFERENCE_TRANSCRIPTION: "conference_transcription",
89
- };
90
41
  class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
91
42
  name = "CallNotFoundException";
92
43
  $fault = "client";
@@ -100,10 +51,6 @@ class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServi
100
51
  }
101
52
  }
102
53
  exports.CallNotFoundException = CallNotFoundException;
103
- exports.AnnotationsStatus = {
104
- AVAILABLE: "AVAILABLE",
105
- UNAVAILABLE: "UNAVAILABLE",
106
- };
107
54
  exports.CallRecordOwner = {
108
55
  CALLEE: "callee",
109
56
  CALLER: "caller",
@@ -153,11 +100,23 @@ exports.CallDevice = {
153
100
  XBEES_IOS: "XBEES_IOS",
154
101
  XBEES_WEB: "XBEES_WEB",
155
102
  };
103
+ exports.License = {
104
+ UC: "uc",
105
+ XBEES: "x-bees",
106
+ };
156
107
  exports.CallFlowTranscriptionStatus = {
157
108
  AVAILABLE: "AVAILABLE",
158
109
  POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
159
110
  UNAVAILABLE: "UNAVAILABLE",
160
111
  };
112
+ exports.RecordType = {
113
+ CALL: "call",
114
+ CALL_TRANSCRIPTION: "call_transcription",
115
+ CHAT: "chat",
116
+ CHAT_TRANSCRIPTION: "chat_transcription",
117
+ CONFERENCE: "conference",
118
+ CONFERENCE_TRANSCRIPTION: "conference_transcription",
119
+ };
161
120
  exports.CallTranscriptionSpeaker = {
162
121
  CALLEE: "callee",
163
122
  CALLER: "caller",
@@ -181,19 +140,6 @@ exports.TranscriptionSentiment = {
181
140
  NEUTRAL: "NEUTRAL",
182
141
  POSITIVE: "POSITIVE",
183
142
  };
184
- class ChatAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
185
- name = "ChatAnnotationsNotFoundException";
186
- $fault = "client";
187
- constructor(opts) {
188
- super({
189
- name: "ChatAnnotationsNotFoundException",
190
- $fault: "client",
191
- ...opts
192
- });
193
- Object.setPrototypeOf(this, ChatAnnotationsNotFoundException.prototype);
194
- }
195
- }
196
- exports.ChatAnnotationsNotFoundException = ChatAnnotationsNotFoundException;
197
143
  class ChatNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
198
144
  name = "ChatNotFoundException";
199
145
  $fault = "client";
@@ -316,19 +262,6 @@ exports.MessageWhatsAppStatus = {
316
262
  SENT: "sent",
317
263
  TRYING: "trying",
318
264
  };
319
- class ConferenceAnnotationsNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
320
- name = "ConferenceAnnotationsNotFoundException";
321
- $fault = "client";
322
- constructor(opts) {
323
- super({
324
- name: "ConferenceAnnotationsNotFoundException",
325
- $fault: "client",
326
- ...opts
327
- });
328
- Object.setPrototypeOf(this, ConferenceAnnotationsNotFoundException.prototype);
329
- }
330
- }
331
- exports.ConferenceAnnotationsNotFoundException = ConferenceAnnotationsNotFoundException;
332
265
  class ConferenceNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
333
266
  name = "ConferenceNotFoundException";
334
267
  $fault = "client";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateCallCommand = exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceAnnotationsCommand = exports.de_GetConferenceCommand = exports.de_GetChatTranscriptionTextCommand = exports.de_GetChatTranscriptionCommand = exports.de_GetChatAnnotationsCommand = exports.de_GetChatCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallAnnotationsCommand = exports.de_GetCallCommand = exports.se_UpdateCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceAnnotationsCommand = exports.se_GetConferenceCommand = exports.se_GetChatTranscriptionTextCommand = exports.se_GetChatTranscriptionCommand = exports.se_GetChatAnnotationsCommand = exports.se_GetChatCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallAnnotationsCommand = exports.se_GetCallCommand = void 0;
3
+ exports.de_UpdateCallCommand = exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceCommand = exports.de_GetChatTranscriptionTextCommand = exports.de_GetChatTranscriptionCommand = exports.de_GetChatCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallCommand = exports.se_UpdateCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceCommand = exports.se_GetChatTranscriptionTextCommand = exports.se_GetChatTranscriptionCommand = exports.se_GetChatCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallCommand = void 0;
4
4
  const WdaHistoryServiceException_1 = require("../models/WdaHistoryServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const core_1 = require("@aws-sdk/core");
@@ -23,23 +23,6 @@ const se_GetCallCommand = async (input, context) => {
23
23
  return b.build();
24
24
  };
25
25
  exports.se_GetCallCommand = se_GetCallCommand;
26
- const se_GetCallAnnotationsCommand = async (input, context) => {
27
- const b = (0, core_2.requestBuilder)(input, context);
28
- const headers = {};
29
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}/annotations");
30
- b.p('callId', () => input.callId, '{callId}', false);
31
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
32
- const query = (0, smithy_client_1.map)({
33
- [_c]: [, input[_c]],
34
- });
35
- let body;
36
- b.m("GET")
37
- .h(headers)
38
- .q(query)
39
- .b(body);
40
- return b.build();
41
- };
42
- exports.se_GetCallAnnotationsCommand = se_GetCallAnnotationsCommand;
43
26
  const se_GetCallTranscriptionCommand = async (input, context) => {
44
27
  const b = (0, core_2.requestBuilder)(input, context);
45
28
  const headers = {};
@@ -90,22 +73,6 @@ const se_GetChatCommand = async (input, context) => {
90
73
  return b.build();
91
74
  };
92
75
  exports.se_GetChatCommand = se_GetChatCommand;
93
- const se_GetChatAnnotationsCommand = async (input, context) => {
94
- const b = (0, core_2.requestBuilder)(input, context);
95
- const headers = {};
96
- b.bp("/v2/history/chats/{chatId}/annotations");
97
- b.p('chatId', () => input.chatId, '{chatId}', false);
98
- const query = (0, smithy_client_1.map)({
99
- [_c]: [, input[_c]],
100
- });
101
- let body;
102
- b.m("GET")
103
- .h(headers)
104
- .q(query)
105
- .b(body);
106
- return b.build();
107
- };
108
- exports.se_GetChatAnnotationsCommand = se_GetChatAnnotationsCommand;
109
76
  const se_GetChatTranscriptionCommand = async (input, context) => {
110
77
  const b = (0, core_2.requestBuilder)(input, context);
111
78
  const headers = {};
@@ -154,22 +121,6 @@ const se_GetConferenceCommand = async (input, context) => {
154
121
  return b.build();
155
122
  };
156
123
  exports.se_GetConferenceCommand = se_GetConferenceCommand;
157
- const se_GetConferenceAnnotationsCommand = async (input, context) => {
158
- const b = (0, core_2.requestBuilder)(input, context);
159
- const headers = {};
160
- b.bp("/v2/history/conferences/{conferenceId}/annotations");
161
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
162
- const query = (0, smithy_client_1.map)({
163
- [_c]: [, input[_c]],
164
- });
165
- let body;
166
- b.m("GET")
167
- .h(headers)
168
- .q(query)
169
- .b(body);
170
- return b.build();
171
- };
172
- exports.se_GetConferenceAnnotationsCommand = se_GetConferenceAnnotationsCommand;
173
124
  const se_GetConferenceTranscriptionCommand = async (input, context) => {
174
125
  const b = (0, core_2.requestBuilder)(input, context);
175
126
  const headers = {};
@@ -285,21 +236,6 @@ const de_GetCallCommand = async (output, context) => {
285
236
  return contents;
286
237
  };
287
238
  exports.de_GetCallCommand = de_GetCallCommand;
288
- const de_GetCallAnnotationsCommand = async (output, context) => {
289
- if (output.statusCode !== 200 && output.statusCode >= 300) {
290
- return de_CommandError(output, context);
291
- }
292
- const contents = (0, smithy_client_1.map)({
293
- $metadata: deserializeMetadata(output),
294
- });
295
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
296
- const doc = (0, smithy_client_1.take)(data, {
297
- 'annotations': _ => de_CallAnnotationsRecord(_, context),
298
- });
299
- Object.assign(contents, doc);
300
- return contents;
301
- };
302
- exports.de_GetCallAnnotationsCommand = de_GetCallAnnotationsCommand;
303
239
  const de_GetCallTranscriptionCommand = async (output, context) => {
304
240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
305
241
  return de_CommandError(output, context);
@@ -348,21 +284,6 @@ const de_GetChatCommand = async (output, context) => {
348
284
  return contents;
349
285
  };
350
286
  exports.de_GetChatCommand = de_GetChatCommand;
351
- const de_GetChatAnnotationsCommand = async (output, context) => {
352
- if (output.statusCode !== 200 && output.statusCode >= 300) {
353
- return de_CommandError(output, context);
354
- }
355
- const contents = (0, smithy_client_1.map)({
356
- $metadata: deserializeMetadata(output),
357
- });
358
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
359
- const doc = (0, smithy_client_1.take)(data, {
360
- 'annotations': _ => de_ChatAnnotationsRecord(_, context),
361
- });
362
- Object.assign(contents, doc);
363
- return contents;
364
- };
365
- exports.de_GetChatAnnotationsCommand = de_GetChatAnnotationsCommand;
366
287
  const de_GetChatTranscriptionCommand = async (output, context) => {
367
288
  if (output.statusCode !== 200 && output.statusCode >= 300) {
368
289
  return de_CommandError(output, context);
@@ -410,21 +331,6 @@ const de_GetConferenceCommand = async (output, context) => {
410
331
  return contents;
411
332
  };
412
333
  exports.de_GetConferenceCommand = de_GetConferenceCommand;
413
- const de_GetConferenceAnnotationsCommand = async (output, context) => {
414
- if (output.statusCode !== 200 && output.statusCode >= 300) {
415
- return de_CommandError(output, context);
416
- }
417
- const contents = (0, smithy_client_1.map)({
418
- $metadata: deserializeMetadata(output),
419
- });
420
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
421
- const doc = (0, smithy_client_1.take)(data, {
422
- 'annotations': _ => de_ConferenceAnnotationsRecord(_, context),
423
- });
424
- Object.assign(contents, doc);
425
- return contents;
426
- };
427
- exports.de_GetConferenceAnnotationsCommand = de_GetConferenceAnnotationsCommand;
428
334
  const de_GetConferenceTranscriptionCommand = async (output, context) => {
429
335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
430
336
  return de_CommandError(output, context);
@@ -519,27 +425,18 @@ const de_CommandError = async (output, context) => {
519
425
  case "ValidationException":
520
426
  case "smithy.framework#ValidationException":
521
427
  throw await de_ValidationExceptionRes(parsedOutput, context);
522
- case "CallAnnotationsNotFoundException":
523
- case "wildix.wda.history#CallAnnotationsNotFoundException":
524
- throw await de_CallAnnotationsNotFoundExceptionRes(parsedOutput, context);
525
428
  case "CallTranscriptionNotFoundException":
526
429
  case "wildix.wda.history#CallTranscriptionNotFoundException":
527
430
  throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
528
431
  case "ChatNotFoundException":
529
432
  case "wildix.wda.history#ChatNotFoundException":
530
433
  throw await de_ChatNotFoundExceptionRes(parsedOutput, context);
531
- case "ChatAnnotationsNotFoundException":
532
- case "wildix.wda.history#ChatAnnotationsNotFoundException":
533
- throw await de_ChatAnnotationsNotFoundExceptionRes(parsedOutput, context);
534
434
  case "ChatTranscriptionNotFoundException":
535
435
  case "wildix.wda.history#ChatTranscriptionNotFoundException":
536
436
  throw await de_ChatTranscriptionNotFoundExceptionRes(parsedOutput, context);
537
437
  case "ConferenceNotFoundException":
538
438
  case "wildix.wda.history#ConferenceNotFoundException":
539
439
  throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
540
- case "ConferenceAnnotationsNotFoundException":
541
- case "wildix.wda.history#ConferenceAnnotationsNotFoundException":
542
- throw await de_ConferenceAnnotationsNotFoundExceptionRes(parsedOutput, context);
543
440
  case "ConferenceTranscriptionNotFoundException":
544
441
  case "wildix.wda.history#ConferenceTranscriptionNotFoundException":
545
442
  throw await de_ConferenceTranscriptionNotFoundExceptionRes(parsedOutput, context);
@@ -579,19 +476,6 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
579
476
  });
580
477
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
581
478
  };
582
- const de_CallAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
583
- const contents = (0, smithy_client_1.map)({});
584
- const data = parsedOutput.body;
585
- const doc = (0, smithy_client_1.take)(data, {
586
- 'message': smithy_client_1.expectString,
587
- });
588
- Object.assign(contents, doc);
589
- const exception = new models_0_1.CallAnnotationsNotFoundException({
590
- $metadata: deserializeMetadata(parsedOutput),
591
- ...contents
592
- });
593
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
594
- };
595
479
  const de_CallNotFoundExceptionRes = async (parsedOutput, context) => {
596
480
  const contents = (0, smithy_client_1.map)({});
597
481
  const data = parsedOutput.body;
@@ -618,19 +502,6 @@ const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
618
502
  });
619
503
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
620
504
  };
621
- const de_ChatAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
622
- const contents = (0, smithy_client_1.map)({});
623
- const data = parsedOutput.body;
624
- const doc = (0, smithy_client_1.take)(data, {
625
- 'message': smithy_client_1.expectString,
626
- });
627
- Object.assign(contents, doc);
628
- const exception = new models_0_1.ChatAnnotationsNotFoundException({
629
- $metadata: deserializeMetadata(parsedOutput),
630
- ...contents
631
- });
632
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
633
- };
634
505
  const de_ChatNotFoundExceptionRes = async (parsedOutput, context) => {
635
506
  const contents = (0, smithy_client_1.map)({});
636
507
  const data = parsedOutput.body;
@@ -657,19 +528,6 @@ const de_ChatTranscriptionNotFoundExceptionRes = async (parsedOutput, context) =
657
528
  });
658
529
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
659
530
  };
660
- const de_ConferenceAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
661
- const contents = (0, smithy_client_1.map)({});
662
- const data = parsedOutput.body;
663
- const doc = (0, smithy_client_1.take)(data, {
664
- 'message': smithy_client_1.expectString,
665
- });
666
- Object.assign(contents, doc);
667
- const exception = new models_0_1.ConferenceAnnotationsNotFoundException({
668
- $metadata: deserializeMetadata(parsedOutput),
669
- ...contents
670
- });
671
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
672
- };
673
531
  const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
674
532
  const contents = (0, smithy_client_1.map)({});
675
533
  const data = parsedOutput.body;
@@ -721,23 +579,6 @@ const se_QueryUserCallsFilter = (input, context) => {
721
579
  'userDirection': [],
722
580
  });
723
581
  };
724
- const de_Document = (output, context) => {
725
- return output;
726
- };
727
- const de_CallAnnotationsRecord = (output, context) => {
728
- return (0, smithy_client_1.take)(output, {
729
- 'annotations': (_) => de_Annotations(_, context),
730
- 'callStartTime': smithy_client_1.expectLong,
731
- 'company': smithy_client_1.expectString,
732
- 'flowIndex': smithy_client_1.expectInt32,
733
- 'flowStartTime': smithy_client_1.expectLong,
734
- 'id': smithy_client_1.expectString,
735
- 'licenses': smithy_client_1._json,
736
- 'pbx': smithy_client_1.expectString,
737
- 'time': smithy_client_1.expectLong,
738
- 'type': smithy_client_1.expectString,
739
- });
740
- };
741
582
  const de_CallTranscriptionInteractionRecord = (output, context) => {
742
583
  return (0, smithy_client_1.take)(output, {
743
584
  'interruptions': smithy_client_1.expectInt32,
@@ -763,25 +604,6 @@ const de_CallTranscriptionRecord = (output, context) => {
763
604
  'type': smithy_client_1.expectString,
764
605
  });
765
606
  };
766
- const de_ChatAnnotationsRecord = (output, context) => {
767
- return (0, smithy_client_1.take)(output, {
768
- 'annotations': (_) => de_Annotations(_, context),
769
- 'chatId': smithy_client_1.expectString,
770
- 'company': smithy_client_1.expectString,
771
- 'id': smithy_client_1.expectString,
772
- 'time': smithy_client_1.expectLong,
773
- 'type': smithy_client_1.expectString,
774
- });
775
- };
776
- const de_ConferenceAnnotationsRecord = (output, context) => {
777
- return (0, smithy_client_1.take)(output, {
778
- 'annotations': (_) => de_Annotations(_, context),
779
- 'company': smithy_client_1.expectString,
780
- 'id': smithy_client_1.expectString,
781
- 'time': smithy_client_1.expectLong,
782
- 'type': smithy_client_1.expectString,
783
- });
784
- };
785
607
  const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
786
608
  return (0, smithy_client_1.take)(output, {
787
609
  'interruptions': smithy_client_1.expectInt32,
@@ -793,49 +615,6 @@ const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
793
615
  'wordsPerMinute': smithy_client_1.expectInt32,
794
616
  });
795
617
  };
796
- const de_Annotation = (output, context) => {
797
- return (0, smithy_client_1.take)(output, {
798
- 'id': smithy_client_1.expectString,
799
- 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
800
- 'source': smithy_client_1._json,
801
- 'time': smithy_client_1.expectLong,
802
- });
803
- };
804
- const de_AnnotationPayload = (output, context) => {
805
- if (output.result != null) {
806
- return {
807
- result: de_AnnotationResultValue(output.result, context)
808
- };
809
- }
810
- if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
811
- return { tag: (0, smithy_client_1.expectString)(output.tag) };
812
- }
813
- if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
814
- return { text: (0, smithy_client_1.expectString)(output.text) };
815
- }
816
- if (output.variables != null) {
817
- return {
818
- variables: de_AnnotationVariablesValue(output.variables, context)
819
- };
820
- }
821
- return { $unknown: Object.entries(output)[0] };
822
- };
823
- const de_AnnotationResultValue = (output, context) => {
824
- return (0, smithy_client_1.take)(output, {
825
- 'value': (_) => de_Document(_, context),
826
- });
827
- };
828
- const de_Annotations = (output, context) => {
829
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
830
- return de_Annotation(entry, context);
831
- });
832
- return retVal;
833
- };
834
- const de_AnnotationVariablesValue = (output, context) => {
835
- return (0, smithy_client_1.take)(output, {
836
- 'value': (_) => de_Document(_, context),
837
- });
838
- };
839
618
  const de_CallTranscriptionChunk = (output, context) => {
840
619
  return (0, smithy_client_1.take)(output, {
841
620
  'confidence': smithy_client_1.limitedParseDouble,
@@ -1,13 +1,10 @@
1
1
  import { WdaHistoryClient, } from "./WdaHistoryClient";
2
- import { GetCallAnnotationsCommand, } from "./commands/GetCallAnnotationsCommand";
3
2
  import { GetCallCommand, } from "./commands/GetCallCommand";
4
3
  import { GetCallTranscriptionCommand, } from "./commands/GetCallTranscriptionCommand";
5
4
  import { GetCallTranscriptionTextCommand, } from "./commands/GetCallTranscriptionTextCommand";
6
- import { GetChatAnnotationsCommand, } from "./commands/GetChatAnnotationsCommand";
7
5
  import { GetChatCommand, } from "./commands/GetChatCommand";
8
6
  import { GetChatTranscriptionCommand, } from "./commands/GetChatTranscriptionCommand";
9
7
  import { GetChatTranscriptionTextCommand, } from "./commands/GetChatTranscriptionTextCommand";
10
- import { GetConferenceAnnotationsCommand, } from "./commands/GetConferenceAnnotationsCommand";
11
8
  import { GetConferenceCommand, } from "./commands/GetConferenceCommand";
12
9
  import { GetConferenceTranscriptionCommand, } from "./commands/GetConferenceTranscriptionCommand";
13
10
  import { GetConferenceTranscriptionTextCommand, } from "./commands/GetConferenceTranscriptionTextCommand";
@@ -17,15 +14,12 @@ import { UpdateCallCommand, } from "./commands/UpdateCallCommand";
17
14
  import { createAggregatedClient } from "@smithy/smithy-client";
18
15
  const commands = {
19
16
  GetCallCommand,
20
- GetCallAnnotationsCommand,
21
17
  GetCallTranscriptionCommand,
22
18
  GetCallTranscriptionTextCommand,
23
19
  GetChatCommand,
24
- GetChatAnnotationsCommand,
25
20
  GetChatTranscriptionCommand,
26
21
  GetChatTranscriptionTextCommand,
27
22
  GetConferenceCommand,
28
- GetConferenceAnnotationsCommand,
29
23
  GetConferenceTranscriptionCommand,
30
24
  GetConferenceTranscriptionTextCommand,
31
25
  QueryConversationsCommand,
@@ -1,13 +1,10 @@
1
1
  export * from "./GetCallCommand";
2
- export * from "./GetCallAnnotationsCommand";
3
2
  export * from "./GetCallTranscriptionCommand";
4
3
  export * from "./GetCallTranscriptionTextCommand";
5
4
  export * from "./GetChatCommand";
6
- export * from "./GetChatAnnotationsCommand";
7
5
  export * from "./GetChatTranscriptionCommand";
8
6
  export * from "./GetChatTranscriptionTextCommand";
9
7
  export * from "./GetConferenceCommand";
10
- export * from "./GetConferenceAnnotationsCommand";
11
8
  export * from "./GetConferenceTranscriptionCommand";
12
9
  export * from "./GetConferenceTranscriptionTextCommand";
13
10
  export * from "./QueryConversationsCommand";