@wildix/wda-insights-client 1.1.46 → 3.1.46

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 (231) hide show
  1. package/dist-cjs/WdaInsights.js +3 -3
  2. package/dist-cjs/WdaInsightsClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/CreateDashboardCommand.js +10 -11
  6. package/dist-cjs/commands/CreateFilterCommand.js +10 -11
  7. package/dist-cjs/commands/CreatePlaylistCommand.js +10 -11
  8. package/dist-cjs/commands/CreateProjectionCommand.js +10 -11
  9. package/dist-cjs/commands/CreateProjectionsCategoryCommand.js +10 -11
  10. package/dist-cjs/commands/DeleteDashboardCommand.js +10 -11
  11. package/dist-cjs/commands/DeleteFilterCommand.js +10 -11
  12. package/dist-cjs/commands/DeletePlaylistCommand.js +10 -11
  13. package/dist-cjs/commands/DeletePlaylistItemCommand.js +10 -11
  14. package/dist-cjs/commands/DeleteProjectionCommand.js +10 -11
  15. package/dist-cjs/commands/DeleteProjectionsCategoryCommand.js +10 -11
  16. package/dist-cjs/commands/DisableProjectionCommand.js +10 -11
  17. package/dist-cjs/commands/EnableProjectionCommand.js +10 -11
  18. package/dist-cjs/commands/GetAnalysisSettingsCommand.js +10 -11
  19. package/dist-cjs/commands/GetCallCharacteristicsCommand.js +10 -11
  20. package/dist-cjs/commands/GetCallInsightsCommand.js +10 -11
  21. package/dist-cjs/commands/GetCallStateCommand.js +10 -11
  22. package/dist-cjs/commands/GetCallSummaryCommand.js +10 -11
  23. package/dist-cjs/commands/GetChatInsightsCommand.js +10 -11
  24. package/dist-cjs/commands/GetChatStateCommand.js +10 -11
  25. package/dist-cjs/commands/GetChatSummaryCommand.js +10 -11
  26. package/dist-cjs/commands/GetConferenceInsightsCommand.js +10 -11
  27. package/dist-cjs/commands/GetConferenceRecordingPresignedDownloadUrlCommand.js +10 -11
  28. package/dist-cjs/commands/GetConferenceStateCommand.js +10 -11
  29. package/dist-cjs/commands/GetConferenceSummaryCommand.js +10 -11
  30. package/dist-cjs/commands/GetConferenceTimeFramesCommand.js +10 -11
  31. package/dist-cjs/commands/GetDashboardCommand.js +10 -11
  32. package/dist-cjs/commands/GetPlaylistCommand.js +10 -11
  33. package/dist-cjs/commands/GetProjectionCommand.js +10 -11
  34. package/dist-cjs/commands/ListConversationsAggregationsCommand.js +10 -11
  35. package/dist-cjs/commands/ListConversationsCommand.js +10 -11
  36. package/dist-cjs/commands/ListConversationsInsightsAggregationsCommand.js +10 -11
  37. package/dist-cjs/commands/ListConversationsInsightsCommand.js +10 -11
  38. package/dist-cjs/commands/ListConversationsNestedAggregationsCommand.js +10 -11
  39. package/dist-cjs/commands/ListDashboardsCommand.js +10 -11
  40. package/dist-cjs/commands/ListFiltersCommand.js +10 -11
  41. package/dist-cjs/commands/ListPinnedDashboardsCommand.js +10 -11
  42. package/dist-cjs/commands/ListPlaylistItemsCommand.js +10 -11
  43. package/dist-cjs/commands/ListPlaylistsCommand.js +10 -11
  44. package/dist-cjs/commands/ListProjectionsCommand.js +10 -11
  45. package/dist-cjs/commands/ListWatchHistoryCommand.js +10 -11
  46. package/dist-cjs/commands/PauseProjectionCommand.js +10 -11
  47. package/dist-cjs/commands/PutAnalysisSettingsCommand.js +10 -11
  48. package/dist-cjs/commands/PutPlaylistItemCommand.js +10 -11
  49. package/dist-cjs/commands/QueryConversationsCountCommand.js +10 -11
  50. package/dist-cjs/commands/ScheduleCallSummaryGenerationCommand.js +10 -11
  51. package/dist-cjs/commands/ScheduleConferenceSummaryGenerationCommand.js +10 -11
  52. package/dist-cjs/commands/UpdateDashboardAccessCommand.js +10 -11
  53. package/dist-cjs/commands/UpdateDashboardCommand.js +10 -11
  54. package/dist-cjs/commands/UpdateFilterCommand.js +10 -11
  55. package/dist-cjs/commands/UpdatePinnedDashboardsCommand.js +10 -11
  56. package/dist-cjs/commands/UpdatePlaylistAccessCommand.js +10 -11
  57. package/dist-cjs/commands/UpdatePlaylistCommand.js +10 -11
  58. package/dist-cjs/commands/UpdateProjectionCommand.js +10 -11
  59. package/dist-cjs/commands/UpdateProjectionsCategoryCommand.js +10 -11
  60. package/dist-cjs/commands/WatchCommand.js +10 -11
  61. package/dist-cjs/commands/index.js +4 -4
  62. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  63. package/dist-cjs/endpoint/bdd.js +28 -0
  64. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  65. package/dist-cjs/index.js +4 -1
  66. package/dist-cjs/models/WdaInsightsServiceException.js +3 -3
  67. package/dist-cjs/models/enums.js +225 -0
  68. package/dist-cjs/models/errors.js +69 -0
  69. package/dist-cjs/models/models_0.js +0 -478
  70. package/dist-cjs/runtimeConfig.browser.js +11 -11
  71. package/dist-cjs/runtimeConfig.js +22 -18
  72. package/dist-cjs/runtimeConfig.shared.js +30 -10
  73. package/dist-cjs/runtimeExtensions.js +6 -5
  74. package/dist-cjs/schemas/schemas_0.js +2178 -0
  75. package/dist-es/WdaInsights.js +3 -3
  76. package/dist-es/WdaInsightsClient.js +30 -22
  77. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  78. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  79. package/dist-es/commands/CreateDashboardCommand.js +9 -10
  80. package/dist-es/commands/CreateFilterCommand.js +9 -10
  81. package/dist-es/commands/CreatePlaylistCommand.js +9 -10
  82. package/dist-es/commands/CreateProjectionCommand.js +9 -10
  83. package/dist-es/commands/CreateProjectionsCategoryCommand.js +9 -10
  84. package/dist-es/commands/DeleteDashboardCommand.js +9 -10
  85. package/dist-es/commands/DeleteFilterCommand.js +9 -10
  86. package/dist-es/commands/DeletePlaylistCommand.js +9 -10
  87. package/dist-es/commands/DeletePlaylistItemCommand.js +9 -10
  88. package/dist-es/commands/DeleteProjectionCommand.js +9 -10
  89. package/dist-es/commands/DeleteProjectionsCategoryCommand.js +9 -10
  90. package/dist-es/commands/DisableProjectionCommand.js +9 -10
  91. package/dist-es/commands/EnableProjectionCommand.js +9 -10
  92. package/dist-es/commands/GetAnalysisSettingsCommand.js +9 -10
  93. package/dist-es/commands/GetCallCharacteristicsCommand.js +9 -10
  94. package/dist-es/commands/GetCallInsightsCommand.js +9 -10
  95. package/dist-es/commands/GetCallStateCommand.js +9 -10
  96. package/dist-es/commands/GetCallSummaryCommand.js +9 -10
  97. package/dist-es/commands/GetChatInsightsCommand.js +9 -10
  98. package/dist-es/commands/GetChatStateCommand.js +9 -10
  99. package/dist-es/commands/GetChatSummaryCommand.js +9 -10
  100. package/dist-es/commands/GetConferenceInsightsCommand.js +9 -10
  101. package/dist-es/commands/GetConferenceRecordingPresignedDownloadUrlCommand.js +9 -10
  102. package/dist-es/commands/GetConferenceStateCommand.js +9 -10
  103. package/dist-es/commands/GetConferenceSummaryCommand.js +9 -10
  104. package/dist-es/commands/GetConferenceTimeFramesCommand.js +9 -10
  105. package/dist-es/commands/GetDashboardCommand.js +9 -10
  106. package/dist-es/commands/GetPlaylistCommand.js +9 -10
  107. package/dist-es/commands/GetProjectionCommand.js +9 -10
  108. package/dist-es/commands/ListConversationsAggregationsCommand.js +9 -10
  109. package/dist-es/commands/ListConversationsCommand.js +9 -10
  110. package/dist-es/commands/ListConversationsInsightsAggregationsCommand.js +9 -10
  111. package/dist-es/commands/ListConversationsInsightsCommand.js +9 -10
  112. package/dist-es/commands/ListConversationsNestedAggregationsCommand.js +9 -10
  113. package/dist-es/commands/ListDashboardsCommand.js +9 -10
  114. package/dist-es/commands/ListFiltersCommand.js +9 -10
  115. package/dist-es/commands/ListPinnedDashboardsCommand.js +9 -10
  116. package/dist-es/commands/ListPlaylistItemsCommand.js +9 -10
  117. package/dist-es/commands/ListPlaylistsCommand.js +9 -10
  118. package/dist-es/commands/ListProjectionsCommand.js +9 -10
  119. package/dist-es/commands/ListWatchHistoryCommand.js +9 -10
  120. package/dist-es/commands/PauseProjectionCommand.js +9 -10
  121. package/dist-es/commands/PutAnalysisSettingsCommand.js +9 -10
  122. package/dist-es/commands/PutPlaylistItemCommand.js +9 -10
  123. package/dist-es/commands/QueryConversationsCountCommand.js +9 -10
  124. package/dist-es/commands/ScheduleCallSummaryGenerationCommand.js +9 -10
  125. package/dist-es/commands/ScheduleConferenceSummaryGenerationCommand.js +9 -10
  126. package/dist-es/commands/UpdateDashboardAccessCommand.js +9 -10
  127. package/dist-es/commands/UpdateDashboardCommand.js +9 -10
  128. package/dist-es/commands/UpdateFilterCommand.js +9 -10
  129. package/dist-es/commands/UpdatePinnedDashboardsCommand.js +9 -10
  130. package/dist-es/commands/UpdatePlaylistAccessCommand.js +9 -10
  131. package/dist-es/commands/UpdatePlaylistCommand.js +9 -10
  132. package/dist-es/commands/UpdateProjectionCommand.js +9 -10
  133. package/dist-es/commands/UpdateProjectionsCategoryCommand.js +9 -10
  134. package/dist-es/commands/WatchCommand.js +9 -10
  135. package/dist-es/commands/index.js +4 -4
  136. package/dist-es/endpoint/EndpointParameters.js +12 -0
  137. package/dist-es/endpoint/bdd.js +25 -0
  138. package/dist-es/endpoint/endpointResolver.js +12 -0
  139. package/dist-es/index.js +4 -1
  140. package/dist-es/models/WdaInsightsServiceException.js +1 -1
  141. package/dist-es/models/enums.js +222 -0
  142. package/dist-es/models/errors.js +61 -0
  143. package/dist-es/models/models_0.js +1 -471
  144. package/dist-es/runtimeConfig.browser.js +7 -7
  145. package/dist-es/runtimeConfig.js +17 -13
  146. package/dist-es/runtimeConfig.shared.js +24 -4
  147. package/dist-es/runtimeExtensions.js +6 -5
  148. package/dist-es/schemas/schemas_0.js +2170 -0
  149. package/dist-types/WdaInsights.d.ts +57 -57
  150. package/dist-types/WdaInsightsClient.d.ts +86 -68
  151. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  152. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  153. package/dist-types/commands/CreateDashboardCommand.d.ts +11 -7
  154. package/dist-types/commands/CreateFilterCommand.d.ts +11 -7
  155. package/dist-types/commands/CreatePlaylistCommand.d.ts +11 -7
  156. package/dist-types/commands/CreateProjectionCommand.d.ts +11 -7
  157. package/dist-types/commands/CreateProjectionsCategoryCommand.d.ts +12 -8
  158. package/dist-types/commands/DeleteDashboardCommand.d.ts +11 -7
  159. package/dist-types/commands/DeleteFilterCommand.d.ts +11 -7
  160. package/dist-types/commands/DeletePlaylistCommand.d.ts +11 -7
  161. package/dist-types/commands/DeletePlaylistItemCommand.d.ts +11 -7
  162. package/dist-types/commands/DeleteProjectionCommand.d.ts +11 -7
  163. package/dist-types/commands/DeleteProjectionsCategoryCommand.d.ts +12 -8
  164. package/dist-types/commands/DisableProjectionCommand.d.ts +11 -7
  165. package/dist-types/commands/EnableProjectionCommand.d.ts +11 -7
  166. package/dist-types/commands/GetAnalysisSettingsCommand.d.ts +11 -7
  167. package/dist-types/commands/GetCallCharacteristicsCommand.d.ts +11 -7
  168. package/dist-types/commands/GetCallInsightsCommand.d.ts +11 -7
  169. package/dist-types/commands/GetCallStateCommand.d.ts +11 -7
  170. package/dist-types/commands/GetCallSummaryCommand.d.ts +11 -7
  171. package/dist-types/commands/GetChatInsightsCommand.d.ts +11 -7
  172. package/dist-types/commands/GetChatStateCommand.d.ts +11 -7
  173. package/dist-types/commands/GetChatSummaryCommand.d.ts +11 -7
  174. package/dist-types/commands/GetConferenceInsightsCommand.d.ts +11 -7
  175. package/dist-types/commands/GetConferenceRecordingPresignedDownloadUrlCommand.d.ts +11 -7
  176. package/dist-types/commands/GetConferenceStateCommand.d.ts +11 -7
  177. package/dist-types/commands/GetConferenceSummaryCommand.d.ts +11 -7
  178. package/dist-types/commands/GetConferenceTimeFramesCommand.d.ts +11 -7
  179. package/dist-types/commands/GetDashboardCommand.d.ts +11 -7
  180. package/dist-types/commands/GetPlaylistCommand.d.ts +11 -7
  181. package/dist-types/commands/GetProjectionCommand.d.ts +11 -7
  182. package/dist-types/commands/ListConversationsAggregationsCommand.d.ts +11 -7
  183. package/dist-types/commands/ListConversationsCommand.d.ts +11 -7
  184. package/dist-types/commands/ListConversationsInsightsAggregationsCommand.d.ts +12 -8
  185. package/dist-types/commands/ListConversationsInsightsCommand.d.ts +12 -8
  186. package/dist-types/commands/ListConversationsNestedAggregationsCommand.d.ts +11 -7
  187. package/dist-types/commands/ListDashboardsCommand.d.ts +11 -7
  188. package/dist-types/commands/ListFiltersCommand.d.ts +11 -7
  189. package/dist-types/commands/ListPinnedDashboardsCommand.d.ts +11 -7
  190. package/dist-types/commands/ListPlaylistItemsCommand.d.ts +11 -7
  191. package/dist-types/commands/ListPlaylistsCommand.d.ts +11 -7
  192. package/dist-types/commands/ListProjectionsCommand.d.ts +11 -7
  193. package/dist-types/commands/ListWatchHistoryCommand.d.ts +11 -7
  194. package/dist-types/commands/PauseProjectionCommand.d.ts +11 -7
  195. package/dist-types/commands/PutAnalysisSettingsCommand.d.ts +11 -7
  196. package/dist-types/commands/PutPlaylistItemCommand.d.ts +11 -7
  197. package/dist-types/commands/QueryConversationsCountCommand.d.ts +11 -7
  198. package/dist-types/commands/ScheduleCallSummaryGenerationCommand.d.ts +12 -8
  199. package/dist-types/commands/ScheduleConferenceSummaryGenerationCommand.d.ts +12 -8
  200. package/dist-types/commands/UpdateDashboardAccessCommand.d.ts +11 -7
  201. package/dist-types/commands/UpdateDashboardCommand.d.ts +11 -7
  202. package/dist-types/commands/UpdateFilterCommand.d.ts +11 -7
  203. package/dist-types/commands/UpdatePinnedDashboardsCommand.d.ts +11 -7
  204. package/dist-types/commands/UpdatePlaylistAccessCommand.d.ts +11 -7
  205. package/dist-types/commands/UpdatePlaylistCommand.d.ts +11 -7
  206. package/dist-types/commands/UpdateProjectionCommand.d.ts +11 -7
  207. package/dist-types/commands/UpdateProjectionsCategoryCommand.d.ts +12 -8
  208. package/dist-types/commands/WatchCommand.d.ts +11 -7
  209. package/dist-types/commands/index.d.ts +4 -4
  210. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  211. package/dist-types/endpoint/bdd.d.ts +2 -0
  212. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  213. package/dist-types/extensionConfiguration.d.ts +4 -3
  214. package/dist-types/index.d.ts +5 -1
  215. package/dist-types/models/WdaInsightsServiceException.d.ts +1 -1
  216. package/dist-types/models/enums.d.ts +541 -0
  217. package/dist-types/models/errors.d.ts +57 -0
  218. package/dist-types/models/models_0.d.ts +172 -734
  219. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  220. package/dist-types/runtimeConfig.d.ts +34 -15
  221. package/dist-types/runtimeConfig.native.d.ts +36 -17
  222. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  223. package/dist-types/runtimeExtensions.d.ts +1 -1
  224. package/dist-types/schemas/schemas_0.d.ts +299 -0
  225. package/package.json +14 -40
  226. package/dist-cjs/models/index.js +0 -4
  227. package/dist-cjs/protocols/Aws_restJson1.js +0 -2406
  228. package/dist-es/models/index.js +0 -1
  229. package/dist-es/protocols/Aws_restJson1.js +0 -2289
  230. package/dist-types/models/index.d.ts +0 -1
  231. package/dist-types/protocols/Aws_restJson1.d.ts +0 -506
@@ -1,2406 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateFilterCommand = exports.se_UpdateDashboardAccessCommand = exports.se_UpdateDashboardCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_QueryConversationsCountCommand = exports.se_PutPlaylistItemCommand = exports.se_PutAnalysisSettingsCommand = exports.se_PauseProjectionCommand = exports.se_ListWatchHistoryCommand = exports.se_ListProjectionsCommand = exports.se_ListPlaylistsCommand = exports.se_ListPlaylistItemsCommand = exports.se_ListPinnedDashboardsCommand = exports.se_ListFiltersCommand = exports.se_ListDashboardsCommand = exports.se_ListConversationsNestedAggregationsCommand = exports.se_ListConversationsInsightsAggregationsCommand = exports.se_ListConversationsInsightsCommand = exports.se_ListConversationsAggregationsCommand = exports.se_ListConversationsCommand = exports.se_GetProjectionCommand = exports.se_GetPlaylistCommand = exports.se_GetDashboardCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetConferenceStateCommand = exports.se_GetConferenceRecordingPresignedDownloadUrlCommand = exports.se_GetConferenceInsightsCommand = exports.se_GetChatSummaryCommand = exports.se_GetChatStateCommand = exports.se_GetChatInsightsCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallStateCommand = exports.se_GetCallInsightsCommand = exports.se_GetCallCharacteristicsCommand = exports.se_GetAnalysisSettingsCommand = exports.se_EnableProjectionCommand = exports.se_DisableProjectionCommand = exports.se_DeleteProjectionsCategoryCommand = exports.se_DeleteProjectionCommand = exports.se_DeletePlaylistItemCommand = exports.se_DeletePlaylistCommand = exports.se_DeleteFilterCommand = exports.se_DeleteDashboardCommand = exports.se_CreateProjectionsCategoryCommand = exports.se_CreateProjectionCommand = exports.se_CreatePlaylistCommand = exports.se_CreateFilterCommand = exports.se_CreateDashboardCommand = void 0;
4
- exports.de_PutPlaylistItemCommand = exports.de_PutAnalysisSettingsCommand = exports.de_PauseProjectionCommand = exports.de_ListWatchHistoryCommand = exports.de_ListProjectionsCommand = exports.de_ListPlaylistsCommand = exports.de_ListPlaylistItemsCommand = exports.de_ListPinnedDashboardsCommand = exports.de_ListFiltersCommand = exports.de_ListDashboardsCommand = exports.de_ListConversationsNestedAggregationsCommand = exports.de_ListConversationsInsightsAggregationsCommand = exports.de_ListConversationsInsightsCommand = exports.de_ListConversationsAggregationsCommand = exports.de_ListConversationsCommand = exports.de_GetProjectionCommand = exports.de_GetPlaylistCommand = exports.de_GetDashboardCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetConferenceStateCommand = exports.de_GetConferenceRecordingPresignedDownloadUrlCommand = exports.de_GetConferenceInsightsCommand = exports.de_GetChatSummaryCommand = exports.de_GetChatStateCommand = exports.de_GetChatInsightsCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallStateCommand = exports.de_GetCallInsightsCommand = exports.de_GetCallCharacteristicsCommand = exports.de_GetAnalysisSettingsCommand = exports.de_EnableProjectionCommand = exports.de_DisableProjectionCommand = exports.de_DeleteProjectionsCategoryCommand = exports.de_DeleteProjectionCommand = exports.de_DeletePlaylistItemCommand = exports.de_DeletePlaylistCommand = exports.de_DeleteFilterCommand = exports.de_DeleteDashboardCommand = exports.de_CreateProjectionsCategoryCommand = exports.de_CreateProjectionCommand = exports.de_CreatePlaylistCommand = exports.de_CreateFilterCommand = exports.de_CreateDashboardCommand = exports.se_WatchCommand = exports.se_UpdateProjectionsCategoryCommand = exports.se_UpdateProjectionCommand = exports.se_UpdatePlaylistAccessCommand = exports.se_UpdatePlaylistCommand = exports.se_UpdatePinnedDashboardsCommand = void 0;
5
- exports.de_WatchCommand = exports.de_UpdateProjectionsCategoryCommand = exports.de_UpdateProjectionCommand = exports.de_UpdatePlaylistAccessCommand = exports.de_UpdatePlaylistCommand = exports.de_UpdatePinnedDashboardsCommand = exports.de_UpdateFilterCommand = exports.de_UpdateDashboardAccessCommand = exports.de_UpdateDashboardCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_QueryConversationsCountCommand = void 0;
6
- const WdaInsightsServiceException_1 = require("../models/WdaInsightsServiceException");
7
- const models_0_1 = require("../models/models_0");
8
- const core_1 = require("@aws-sdk/core");
9
- const core_2 = require("@smithy/core");
10
- const smithy_client_1 = require("@smithy/smithy-client");
11
- const se_CreateDashboardCommand = async (input, context) => {
12
- const b = (0, core_2.requestBuilder)(input, context);
13
- const headers = {
14
- 'content-type': 'application/json',
15
- };
16
- b.bp("/v2/insights/dashboards");
17
- const query = (0, smithy_client_1.map)({
18
- [_c]: [, input[_c]],
19
- [_u]: [, input[_u]],
20
- });
21
- let body;
22
- body = JSON.stringify((0, smithy_client_1.take)(input, {
23
- 'access': _ => (0, smithy_client_1._json)(_),
24
- 'definition': _ => se_DashboardDefinition(_, context),
25
- 'description': [],
26
- 'name': [],
27
- }));
28
- b.m("POST")
29
- .h(headers)
30
- .q(query)
31
- .b(body);
32
- return b.build();
33
- };
34
- exports.se_CreateDashboardCommand = se_CreateDashboardCommand;
35
- const se_CreateFilterCommand = async (input, context) => {
36
- const b = (0, core_2.requestBuilder)(input, context);
37
- const headers = {
38
- 'content-type': 'application/json',
39
- };
40
- b.bp("/v2/insights/filters");
41
- let body;
42
- body = JSON.stringify((0, smithy_client_1.take)(input, {
43
- 'body': [],
44
- 'name': [],
45
- }));
46
- b.m("POST")
47
- .h(headers)
48
- .b(body);
49
- return b.build();
50
- };
51
- exports.se_CreateFilterCommand = se_CreateFilterCommand;
52
- const se_CreatePlaylistCommand = async (input, context) => {
53
- const b = (0, core_2.requestBuilder)(input, context);
54
- const headers = {
55
- 'content-type': 'application/json',
56
- };
57
- b.bp("/v2/insights/playlists");
58
- const query = (0, smithy_client_1.map)({
59
- [_c]: [, input[_c]],
60
- [_u]: [, input[_u]],
61
- });
62
- let body;
63
- body = JSON.stringify((0, smithy_client_1.take)(input, {
64
- 'access': _ => (0, smithy_client_1._json)(_),
65
- 'description': [],
66
- 'name': [],
67
- }));
68
- b.m("POST")
69
- .h(headers)
70
- .q(query)
71
- .b(body);
72
- return b.build();
73
- };
74
- exports.se_CreatePlaylistCommand = se_CreatePlaylistCommand;
75
- const se_CreateProjectionCommand = async (input, context) => {
76
- const b = (0, core_2.requestBuilder)(input, context);
77
- const headers = {
78
- 'content-type': 'application/json',
79
- };
80
- b.bp("/v2/insights/projections");
81
- const query = (0, smithy_client_1.map)({
82
- [_c]: [, input[_c]],
83
- });
84
- let body;
85
- body = JSON.stringify((0, smithy_client_1.take)(input, {
86
- 'category': [],
87
- 'categoryId': [],
88
- 'conditions': _ => (0, smithy_client_1._json)(_),
89
- 'description': [],
90
- 'fields': _ => (0, smithy_client_1._json)(_),
91
- 'filter': _ => se_ListConversationsFilter(_, context),
92
- 'group': [],
93
- 'id': [],
94
- 'instructions': [],
95
- 'model': [],
96
- 'name': [],
97
- }));
98
- b.m("POST")
99
- .h(headers)
100
- .q(query)
101
- .b(body);
102
- return b.build();
103
- };
104
- exports.se_CreateProjectionCommand = se_CreateProjectionCommand;
105
- const se_CreateProjectionsCategoryCommand = async (input, context) => {
106
- const b = (0, core_2.requestBuilder)(input, context);
107
- const headers = {
108
- 'content-type': 'application/json',
109
- };
110
- b.bp("/v2/insights/projections-categories");
111
- const query = (0, smithy_client_1.map)({
112
- [_c]: [, input[_c]],
113
- });
114
- let body;
115
- body = JSON.stringify((0, smithy_client_1.take)(input, {
116
- 'id': [],
117
- 'name': [],
118
- }));
119
- b.m("POST")
120
- .h(headers)
121
- .q(query)
122
- .b(body);
123
- return b.build();
124
- };
125
- exports.se_CreateProjectionsCategoryCommand = se_CreateProjectionsCategoryCommand;
126
- const se_DeleteDashboardCommand = async (input, context) => {
127
- const b = (0, core_2.requestBuilder)(input, context);
128
- const headers = {};
129
- b.bp("/v2/insights/dashboards/{id}");
130
- b.p('id', () => input.id, '{id}', false);
131
- const query = (0, smithy_client_1.map)({
132
- [_c]: [, input[_c]],
133
- [_u]: [, input[_u]],
134
- });
135
- let body;
136
- b.m("DELETE")
137
- .h(headers)
138
- .q(query)
139
- .b(body);
140
- return b.build();
141
- };
142
- exports.se_DeleteDashboardCommand = se_DeleteDashboardCommand;
143
- const se_DeleteFilterCommand = async (input, context) => {
144
- const b = (0, core_2.requestBuilder)(input, context);
145
- const headers = {};
146
- b.bp("/v2/insights/filters/{id}");
147
- b.p('id', () => input.id, '{id}', false);
148
- let body;
149
- b.m("DELETE")
150
- .h(headers)
151
- .b(body);
152
- return b.build();
153
- };
154
- exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
155
- const se_DeletePlaylistCommand = async (input, context) => {
156
- const b = (0, core_2.requestBuilder)(input, context);
157
- const headers = {};
158
- b.bp("/v2/insights/playlists/{id}");
159
- b.p('id', () => input.id, '{id}', false);
160
- const query = (0, smithy_client_1.map)({
161
- [_c]: [, input[_c]],
162
- [_u]: [, input[_u]],
163
- });
164
- let body;
165
- b.m("DELETE")
166
- .h(headers)
167
- .q(query)
168
- .b(body);
169
- return b.build();
170
- };
171
- exports.se_DeletePlaylistCommand = se_DeletePlaylistCommand;
172
- const se_DeletePlaylistItemCommand = async (input, context) => {
173
- const b = (0, core_2.requestBuilder)(input, context);
174
- const headers = {
175
- 'content-type': 'application/json',
176
- };
177
- b.bp("/v2/insights/playlists/{playlistId}/items/delete");
178
- b.p('playlistId', () => input.playlistId, '{playlistId}', false);
179
- const query = (0, smithy_client_1.map)({
180
- [_c]: [, input[_c]],
181
- [_u]: [, input[_u]],
182
- });
183
- let body;
184
- body = JSON.stringify((0, smithy_client_1.take)(input, {
185
- 'target': _ => (0, smithy_client_1._json)(_),
186
- }));
187
- b.m("POST")
188
- .h(headers)
189
- .q(query)
190
- .b(body);
191
- return b.build();
192
- };
193
- exports.se_DeletePlaylistItemCommand = se_DeletePlaylistItemCommand;
194
- const se_DeleteProjectionCommand = async (input, context) => {
195
- const b = (0, core_2.requestBuilder)(input, context);
196
- const headers = {};
197
- b.bp("/v2/insights/projections/{id}");
198
- b.p('id', () => input.id, '{id}', false);
199
- const query = (0, smithy_client_1.map)({
200
- [_c]: [, input[_c]],
201
- });
202
- let body;
203
- b.m("DELETE")
204
- .h(headers)
205
- .q(query)
206
- .b(body);
207
- return b.build();
208
- };
209
- exports.se_DeleteProjectionCommand = se_DeleteProjectionCommand;
210
- const se_DeleteProjectionsCategoryCommand = async (input, context) => {
211
- const b = (0, core_2.requestBuilder)(input, context);
212
- const headers = {};
213
- b.bp("/v2/insights/projections-categories/{id}");
214
- b.p('id', () => input.id, '{id}', false);
215
- const query = (0, smithy_client_1.map)({
216
- [_c]: [, input[_c]],
217
- });
218
- let body;
219
- b.m("DELETE")
220
- .h(headers)
221
- .q(query)
222
- .b(body);
223
- return b.build();
224
- };
225
- exports.se_DeleteProjectionsCategoryCommand = se_DeleteProjectionsCategoryCommand;
226
- const se_DisableProjectionCommand = async (input, context) => {
227
- const b = (0, core_2.requestBuilder)(input, context);
228
- const headers = {};
229
- b.bp("/v2/insights/projections/{id}/disable");
230
- b.p('id', () => input.id, '{id}', false);
231
- const query = (0, smithy_client_1.map)({
232
- [_c]: [, input[_c]],
233
- });
234
- let body;
235
- b.m("PATCH")
236
- .h(headers)
237
- .q(query)
238
- .b(body);
239
- return b.build();
240
- };
241
- exports.se_DisableProjectionCommand = se_DisableProjectionCommand;
242
- const se_EnableProjectionCommand = async (input, context) => {
243
- const b = (0, core_2.requestBuilder)(input, context);
244
- const headers = {};
245
- b.bp("/v2/insights/projections/{id}/enable");
246
- b.p('id', () => input.id, '{id}', false);
247
- const query = (0, smithy_client_1.map)({
248
- [_c]: [, input[_c]],
249
- });
250
- let body;
251
- b.m("PATCH")
252
- .h(headers)
253
- .q(query)
254
- .b(body);
255
- return b.build();
256
- };
257
- exports.se_EnableProjectionCommand = se_EnableProjectionCommand;
258
- const se_GetAnalysisSettingsCommand = async (input, context) => {
259
- const b = (0, core_2.requestBuilder)(input, context);
260
- const headers = {};
261
- b.bp("/v2/insights/analysis/settings");
262
- const query = (0, smithy_client_1.map)({
263
- [_c]: [, input[_c]],
264
- });
265
- let body;
266
- b.m("GET")
267
- .h(headers)
268
- .q(query)
269
- .b(body);
270
- return b.build();
271
- };
272
- exports.se_GetAnalysisSettingsCommand = se_GetAnalysisSettingsCommand;
273
- const se_GetCallCharacteristicsCommand = async (input, context) => {
274
- const b = (0, core_2.requestBuilder)(input, context);
275
- const headers = {};
276
- b.bp("/v2/insights/calls/{callId}/flows/{flowIndex}/characteristics");
277
- b.p('callId', () => input.callId, '{callId}', false);
278
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
279
- const query = (0, smithy_client_1.map)({
280
- [_c]: [, input[_c]],
281
- });
282
- let body;
283
- b.m("GET")
284
- .h(headers)
285
- .q(query)
286
- .b(body);
287
- return b.build();
288
- };
289
- exports.se_GetCallCharacteristicsCommand = se_GetCallCharacteristicsCommand;
290
- const se_GetCallInsightsCommand = async (input, context) => {
291
- const b = (0, core_2.requestBuilder)(input, context);
292
- const headers = {};
293
- b.bp("/v2/insights/calls/{callId}/flows/{flowIndex}/insights");
294
- b.p('callId', () => input.callId, '{callId}', false);
295
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
296
- const query = (0, smithy_client_1.map)({
297
- [_c]: [, input[_c]],
298
- });
299
- let body;
300
- b.m("GET")
301
- .h(headers)
302
- .q(query)
303
- .b(body);
304
- return b.build();
305
- };
306
- exports.se_GetCallInsightsCommand = se_GetCallInsightsCommand;
307
- const se_GetCallStateCommand = async (input, context) => {
308
- const b = (0, core_2.requestBuilder)(input, context);
309
- const headers = {};
310
- b.bp("/v2/insights/calls/{callId}/flows/{flowIndex}/state");
311
- b.p('callId', () => input.callId, '{callId}', false);
312
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
313
- const query = (0, smithy_client_1.map)({
314
- [_c]: [, input[_c]],
315
- [_u]: [, input[_u]],
316
- });
317
- let body;
318
- b.m("GET")
319
- .h(headers)
320
- .q(query)
321
- .b(body);
322
- return b.build();
323
- };
324
- exports.se_GetCallStateCommand = se_GetCallStateCommand;
325
- const se_GetCallSummaryCommand = async (input, context) => {
326
- const b = (0, core_2.requestBuilder)(input, context);
327
- const headers = {};
328
- b.bp("/v2/insights/calls/{callId}/flows/{flowIndex}/summary");
329
- b.p('callId', () => input.callId, '{callId}', false);
330
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
331
- const query = (0, smithy_client_1.map)({
332
- [_c]: [, input[_c]],
333
- });
334
- let body;
335
- b.m("GET")
336
- .h(headers)
337
- .q(query)
338
- .b(body);
339
- return b.build();
340
- };
341
- exports.se_GetCallSummaryCommand = se_GetCallSummaryCommand;
342
- const se_GetChatInsightsCommand = async (input, context) => {
343
- const b = (0, core_2.requestBuilder)(input, context);
344
- const headers = {};
345
- b.bp("/v2/insights/chats/{chatId}/insights");
346
- b.p('chatId', () => input.chatId, '{chatId}', false);
347
- const query = (0, smithy_client_1.map)({
348
- [_c]: [, input[_c]],
349
- });
350
- let body;
351
- b.m("GET")
352
- .h(headers)
353
- .q(query)
354
- .b(body);
355
- return b.build();
356
- };
357
- exports.se_GetChatInsightsCommand = se_GetChatInsightsCommand;
358
- const se_GetChatStateCommand = async (input, context) => {
359
- const b = (0, core_2.requestBuilder)(input, context);
360
- const headers = {};
361
- b.bp("/v2/insights/chats/{chatId}/state");
362
- b.p('chatId', () => input.chatId, '{chatId}', false);
363
- const query = (0, smithy_client_1.map)({
364
- [_c]: [, input[_c]],
365
- [_u]: [, input[_u]],
366
- });
367
- let body;
368
- b.m("GET")
369
- .h(headers)
370
- .q(query)
371
- .b(body);
372
- return b.build();
373
- };
374
- exports.se_GetChatStateCommand = se_GetChatStateCommand;
375
- const se_GetChatSummaryCommand = async (input, context) => {
376
- const b = (0, core_2.requestBuilder)(input, context);
377
- const headers = {};
378
- b.bp("/v2/insights/chats/{chatId}/summary");
379
- b.p('chatId', () => input.chatId, '{chatId}', false);
380
- const query = (0, smithy_client_1.map)({
381
- [_c]: [, input[_c]],
382
- });
383
- let body;
384
- b.m("GET")
385
- .h(headers)
386
- .q(query)
387
- .b(body);
388
- return b.build();
389
- };
390
- exports.se_GetChatSummaryCommand = se_GetChatSummaryCommand;
391
- const se_GetConferenceInsightsCommand = async (input, context) => {
392
- const b = (0, core_2.requestBuilder)(input, context);
393
- const headers = {};
394
- b.bp("/v2/insights/conferences/{conferenceId}/insights");
395
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
396
- const query = (0, smithy_client_1.map)({
397
- [_c]: [, input[_c]],
398
- });
399
- let body;
400
- b.m("GET")
401
- .h(headers)
402
- .q(query)
403
- .b(body);
404
- return b.build();
405
- };
406
- exports.se_GetConferenceInsightsCommand = se_GetConferenceInsightsCommand;
407
- const se_GetConferenceRecordingPresignedDownloadUrlCommand = async (input, context) => {
408
- const b = (0, core_2.requestBuilder)(input, context);
409
- const headers = {};
410
- b.bp("/v2/insights/conferences/recording/download_url");
411
- const query = (0, smithy_client_1.map)({
412
- [_fI]: [, (0, smithy_client_1.expectNonNull)(input[_fI], `fileId`)],
413
- [_ca]: [, (0, smithy_client_1.expectNonNull)(input[_ca], `category`)],
414
- [_d]: [() => input.download !== void 0, () => (input[_d].toString())],
415
- [_c]: [, input[_c]],
416
- });
417
- let body;
418
- b.m("GET")
419
- .h(headers)
420
- .q(query)
421
- .b(body);
422
- return b.build();
423
- };
424
- exports.se_GetConferenceRecordingPresignedDownloadUrlCommand = se_GetConferenceRecordingPresignedDownloadUrlCommand;
425
- const se_GetConferenceStateCommand = async (input, context) => {
426
- const b = (0, core_2.requestBuilder)(input, context);
427
- const headers = {};
428
- b.bp("/v2/insights/conferences/{conferenceId}/state");
429
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
430
- const query = (0, smithy_client_1.map)({
431
- [_c]: [, input[_c]],
432
- [_u]: [, input[_u]],
433
- });
434
- let body;
435
- b.m("GET")
436
- .h(headers)
437
- .q(query)
438
- .b(body);
439
- return b.build();
440
- };
441
- exports.se_GetConferenceStateCommand = se_GetConferenceStateCommand;
442
- const se_GetConferenceSummaryCommand = async (input, context) => {
443
- const b = (0, core_2.requestBuilder)(input, context);
444
- const headers = {};
445
- b.bp("/v2/insights/conferences/{conferenceId}/summary");
446
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
447
- const query = (0, smithy_client_1.map)({
448
- [_c]: [, input[_c]],
449
- });
450
- let body;
451
- b.m("GET")
452
- .h(headers)
453
- .q(query)
454
- .b(body);
455
- return b.build();
456
- };
457
- exports.se_GetConferenceSummaryCommand = se_GetConferenceSummaryCommand;
458
- const se_GetConferenceTimeFramesCommand = async (input, context) => {
459
- const b = (0, core_2.requestBuilder)(input, context);
460
- const headers = {};
461
- b.bp("/v2/insights/conferences/{conferenceId}/timeframes");
462
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
463
- const query = (0, smithy_client_1.map)({
464
- [_c]: [, input[_c]],
465
- });
466
- let body;
467
- b.m("GET")
468
- .h(headers)
469
- .q(query)
470
- .b(body);
471
- return b.build();
472
- };
473
- exports.se_GetConferenceTimeFramesCommand = se_GetConferenceTimeFramesCommand;
474
- const se_GetDashboardCommand = async (input, context) => {
475
- const b = (0, core_2.requestBuilder)(input, context);
476
- const headers = {};
477
- b.bp("/v2/insights/dashboards/{id}");
478
- b.p('id', () => input.id, '{id}', false);
479
- const query = (0, smithy_client_1.map)({
480
- [_c]: [, input[_c]],
481
- [_u]: [, input[_u]],
482
- });
483
- let body;
484
- b.m("GET")
485
- .h(headers)
486
- .q(query)
487
- .b(body);
488
- return b.build();
489
- };
490
- exports.se_GetDashboardCommand = se_GetDashboardCommand;
491
- const se_GetPlaylistCommand = async (input, context) => {
492
- const b = (0, core_2.requestBuilder)(input, context);
493
- const headers = {};
494
- b.bp("/v2/insights/playlists/{id}");
495
- b.p('id', () => input.id, '{id}', false);
496
- const query = (0, smithy_client_1.map)({
497
- [_c]: [, input[_c]],
498
- [_u]: [, input[_u]],
499
- });
500
- let body;
501
- b.m("GET")
502
- .h(headers)
503
- .q(query)
504
- .b(body);
505
- return b.build();
506
- };
507
- exports.se_GetPlaylistCommand = se_GetPlaylistCommand;
508
- const se_GetProjectionCommand = async (input, context) => {
509
- const b = (0, core_2.requestBuilder)(input, context);
510
- const headers = {};
511
- b.bp("/v2/insights/projections/{id}");
512
- b.p('id', () => input.id, '{id}', false);
513
- const query = (0, smithy_client_1.map)({
514
- [_c]: [, input[_c]],
515
- });
516
- let body;
517
- b.m("GET")
518
- .h(headers)
519
- .q(query)
520
- .b(body);
521
- return b.build();
522
- };
523
- exports.se_GetProjectionCommand = se_GetProjectionCommand;
524
- const se_ListConversationsCommand = async (input, context) => {
525
- const b = (0, core_2.requestBuilder)(input, context);
526
- const headers = {
527
- 'content-type': 'application/json',
528
- };
529
- b.bp("/v2/insights/conversations");
530
- const query = (0, smithy_client_1.map)({
531
- [_c]: [, input[_c]],
532
- });
533
- let body;
534
- body = JSON.stringify((0, smithy_client_1.take)(input, {
535
- 'exclusiveStartKey': [],
536
- 'filter': _ => se_ListConversationsFilter(_, context),
537
- }));
538
- b.m("POST")
539
- .h(headers)
540
- .q(query)
541
- .b(body);
542
- return b.build();
543
- };
544
- exports.se_ListConversationsCommand = se_ListConversationsCommand;
545
- const se_ListConversationsAggregationsCommand = async (input, context) => {
546
- const b = (0, core_2.requestBuilder)(input, context);
547
- const headers = {
548
- 'content-type': 'application/json',
549
- };
550
- b.bp("/v2/insights/conversations/aggregations");
551
- const query = (0, smithy_client_1.map)({
552
- [_c]: [, input[_c]],
553
- });
554
- let body;
555
- body = JSON.stringify((0, smithy_client_1.take)(input, {
556
- 'filter': _ => se_ListConversationsFilter(_, context),
557
- 'insights': _ => (0, smithy_client_1._json)(_),
558
- }));
559
- b.m("POST")
560
- .h(headers)
561
- .q(query)
562
- .b(body);
563
- return b.build();
564
- };
565
- exports.se_ListConversationsAggregationsCommand = se_ListConversationsAggregationsCommand;
566
- const se_ListConversationsInsightsCommand = async (input, context) => {
567
- const b = (0, core_2.requestBuilder)(input, context);
568
- const headers = {
569
- 'content-type': 'application/json',
570
- };
571
- b.bp("/v2/insights/conversations/insights");
572
- const query = (0, smithy_client_1.map)({
573
- [_c]: [, input[_c]],
574
- });
575
- let body;
576
- body = JSON.stringify((0, smithy_client_1.take)(input, {
577
- 'filter': _ => se_ListConversationsFilter(_, context),
578
- 'insights': _ => (0, smithy_client_1._json)(_),
579
- }));
580
- b.m("POST")
581
- .h(headers)
582
- .q(query)
583
- .b(body);
584
- return b.build();
585
- };
586
- exports.se_ListConversationsInsightsCommand = se_ListConversationsInsightsCommand;
587
- const se_ListConversationsInsightsAggregationsCommand = async (input, context) => {
588
- const b = (0, core_2.requestBuilder)(input, context);
589
- const headers = {
590
- 'content-type': 'application/json',
591
- };
592
- b.bp("/v2/insights/conversations/insights/aggregations");
593
- const query = (0, smithy_client_1.map)({
594
- [_c]: [, input[_c]],
595
- });
596
- let body;
597
- body = JSON.stringify((0, smithy_client_1.take)(input, {
598
- 'aggregations': _ => (0, smithy_client_1._json)(_),
599
- 'filter': _ => se_ListConversationsFilter(_, context),
600
- }));
601
- b.m("POST")
602
- .h(headers)
603
- .q(query)
604
- .b(body);
605
- return b.build();
606
- };
607
- exports.se_ListConversationsInsightsAggregationsCommand = se_ListConversationsInsightsAggregationsCommand;
608
- const se_ListConversationsNestedAggregationsCommand = async (input, context) => {
609
- const b = (0, core_2.requestBuilder)(input, context);
610
- const headers = {
611
- 'content-type': 'application/json',
612
- };
613
- b.bp("/v2/insights/conversations/aggregations/nested");
614
- const query = (0, smithy_client_1.map)({
615
- [_c]: [, input[_c]],
616
- });
617
- let body;
618
- body = JSON.stringify((0, smithy_client_1.take)(input, {
619
- 'aggregations': _ => (0, smithy_client_1._json)(_),
620
- 'filter': _ => se_ListConversationsFilter(_, context),
621
- }));
622
- b.m("POST")
623
- .h(headers)
624
- .q(query)
625
- .b(body);
626
- return b.build();
627
- };
628
- exports.se_ListConversationsNestedAggregationsCommand = se_ListConversationsNestedAggregationsCommand;
629
- const se_ListDashboardsCommand = async (input, context) => {
630
- const b = (0, core_2.requestBuilder)(input, context);
631
- const headers = {};
632
- b.bp("/v2/insights/dashboards");
633
- const query = (0, smithy_client_1.map)({
634
- [_c]: [, input[_c]],
635
- [_u]: [, input[_u]],
636
- });
637
- let body;
638
- b.m("GET")
639
- .h(headers)
640
- .q(query)
641
- .b(body);
642
- return b.build();
643
- };
644
- exports.se_ListDashboardsCommand = se_ListDashboardsCommand;
645
- const se_ListFiltersCommand = async (input, context) => {
646
- const b = (0, core_2.requestBuilder)(input, context);
647
- const headers = {};
648
- b.bp("/v2/insights/filters");
649
- const query = (0, smithy_client_1.map)({
650
- [_c]: [, input[_c]],
651
- [_u]: [, input[_u]],
652
- });
653
- let body;
654
- b.m("GET")
655
- .h(headers)
656
- .q(query)
657
- .b(body);
658
- return b.build();
659
- };
660
- exports.se_ListFiltersCommand = se_ListFiltersCommand;
661
- const se_ListPinnedDashboardsCommand = async (input, context) => {
662
- const b = (0, core_2.requestBuilder)(input, context);
663
- const headers = {};
664
- b.bp("/v2/insights/dashboards-pinned");
665
- const query = (0, smithy_client_1.map)({
666
- [_c]: [, input[_c]],
667
- [_u]: [, input[_u]],
668
- });
669
- let body;
670
- b.m("GET")
671
- .h(headers)
672
- .q(query)
673
- .b(body);
674
- return b.build();
675
- };
676
- exports.se_ListPinnedDashboardsCommand = se_ListPinnedDashboardsCommand;
677
- const se_ListPlaylistItemsCommand = async (input, context) => {
678
- const b = (0, core_2.requestBuilder)(input, context);
679
- const headers = {};
680
- b.bp("/v2/insights/playlists/{playlistId}/items");
681
- b.p('playlistId', () => input.playlistId, '{playlistId}', false);
682
- const query = (0, smithy_client_1.map)({
683
- [_c]: [, input[_c]],
684
- [_u]: [, input[_u]],
685
- [_eSK]: [, input[_eSK]],
686
- });
687
- let body;
688
- b.m("GET")
689
- .h(headers)
690
- .q(query)
691
- .b(body);
692
- return b.build();
693
- };
694
- exports.se_ListPlaylistItemsCommand = se_ListPlaylistItemsCommand;
695
- const se_ListPlaylistsCommand = async (input, context) => {
696
- const b = (0, core_2.requestBuilder)(input, context);
697
- const headers = {};
698
- b.bp("/v2/insights/playlists");
699
- const query = (0, smithy_client_1.map)({
700
- [_c]: [, input[_c]],
701
- [_u]: [, input[_u]],
702
- });
703
- let body;
704
- b.m("GET")
705
- .h(headers)
706
- .q(query)
707
- .b(body);
708
- return b.build();
709
- };
710
- exports.se_ListPlaylistsCommand = se_ListPlaylistsCommand;
711
- const se_ListProjectionsCommand = async (input, context) => {
712
- const b = (0, core_2.requestBuilder)(input, context);
713
- const headers = {};
714
- b.bp("/v2/insights/projections");
715
- const query = (0, smithy_client_1.map)({
716
- [_c]: [, input[_c]],
717
- });
718
- let body;
719
- b.m("GET")
720
- .h(headers)
721
- .q(query)
722
- .b(body);
723
- return b.build();
724
- };
725
- exports.se_ListProjectionsCommand = se_ListProjectionsCommand;
726
- const se_ListWatchHistoryCommand = async (input, context) => {
727
- const b = (0, core_2.requestBuilder)(input, context);
728
- const headers = {};
729
- b.bp("/v2/insights/history");
730
- const query = (0, smithy_client_1.map)({
731
- [_c]: [, input[_c]],
732
- [_u]: [, input[_u]],
733
- [_eSK]: [, input[_eSK]],
734
- });
735
- let body;
736
- b.m("GET")
737
- .h(headers)
738
- .q(query)
739
- .b(body);
740
- return b.build();
741
- };
742
- exports.se_ListWatchHistoryCommand = se_ListWatchHistoryCommand;
743
- const se_PauseProjectionCommand = async (input, context) => {
744
- const b = (0, core_2.requestBuilder)(input, context);
745
- const headers = {};
746
- b.bp("/v2/insights/projections/{id}/pause");
747
- b.p('id', () => input.id, '{id}', false);
748
- const query = (0, smithy_client_1.map)({
749
- [_c]: [, input[_c]],
750
- });
751
- let body;
752
- b.m("PATCH")
753
- .h(headers)
754
- .q(query)
755
- .b(body);
756
- return b.build();
757
- };
758
- exports.se_PauseProjectionCommand = se_PauseProjectionCommand;
759
- const se_PutAnalysisSettingsCommand = async (input, context) => {
760
- const b = (0, core_2.requestBuilder)(input, context);
761
- const headers = {
762
- 'content-type': 'application/json',
763
- };
764
- b.bp("/v2/insights/analysis/settings");
765
- const query = (0, smithy_client_1.map)({
766
- [_c]: [, input[_c]],
767
- });
768
- let body;
769
- body = JSON.stringify((0, smithy_client_1.take)(input, {
770
- 'defaultModel': [],
771
- 'disabled': [],
772
- 'filter': _ => se_ListConversationsFilter(_, context),
773
- }));
774
- b.m("PUT")
775
- .h(headers)
776
- .q(query)
777
- .b(body);
778
- return b.build();
779
- };
780
- exports.se_PutAnalysisSettingsCommand = se_PutAnalysisSettingsCommand;
781
- const se_PutPlaylistItemCommand = async (input, context) => {
782
- const b = (0, core_2.requestBuilder)(input, context);
783
- const headers = {
784
- 'content-type': 'application/json',
785
- };
786
- b.bp("/v2/insights/playlists/{playlistId}/items/associate");
787
- b.p('playlistId', () => input.playlistId, '{playlistId}', false);
788
- const query = (0, smithy_client_1.map)({
789
- [_c]: [, input[_c]],
790
- [_u]: [, input[_u]],
791
- });
792
- let body;
793
- body = JSON.stringify((0, smithy_client_1.take)(input, {
794
- 'note': [],
795
- 'target': _ => (0, smithy_client_1._json)(_),
796
- }));
797
- b.m("POST")
798
- .h(headers)
799
- .q(query)
800
- .b(body);
801
- return b.build();
802
- };
803
- exports.se_PutPlaylistItemCommand = se_PutPlaylistItemCommand;
804
- const se_QueryConversationsCountCommand = async (input, context) => {
805
- const b = (0, core_2.requestBuilder)(input, context);
806
- const headers = {
807
- 'content-type': 'application/json',
808
- };
809
- b.bp("/v2/insights/conversations/count");
810
- const query = (0, smithy_client_1.map)({
811
- [_c]: [, input[_c]],
812
- });
813
- let body;
814
- body = JSON.stringify((0, smithy_client_1.take)(input, {
815
- 'filter': _ => se_ListConversationsFilter(_, context),
816
- }));
817
- b.m("POST")
818
- .h(headers)
819
- .q(query)
820
- .b(body);
821
- return b.build();
822
- };
823
- exports.se_QueryConversationsCountCommand = se_QueryConversationsCountCommand;
824
- const se_ScheduleCallSummaryGenerationCommand = async (input, context) => {
825
- const b = (0, core_2.requestBuilder)(input, context);
826
- const headers = {};
827
- b.bp("/v2/insights/calls/{callId}/flows/{flowIndex}/schedule_summary_generation");
828
- b.p('callId', () => input.callId, '{callId}', false);
829
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
830
- const query = (0, smithy_client_1.map)({
831
- [_c]: [, input[_c]],
832
- });
833
- let body;
834
- b.m("POST")
835
- .h(headers)
836
- .q(query)
837
- .b(body);
838
- return b.build();
839
- };
840
- exports.se_ScheduleCallSummaryGenerationCommand = se_ScheduleCallSummaryGenerationCommand;
841
- const se_ScheduleConferenceSummaryGenerationCommand = async (input, context) => {
842
- const b = (0, core_2.requestBuilder)(input, context);
843
- const headers = {};
844
- b.bp("/v2/insights/conferences/{conferenceId}/schedule_summary_generation");
845
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
846
- const query = (0, smithy_client_1.map)({
847
- [_c]: [, input[_c]],
848
- });
849
- let body;
850
- b.m("POST")
851
- .h(headers)
852
- .q(query)
853
- .b(body);
854
- return b.build();
855
- };
856
- exports.se_ScheduleConferenceSummaryGenerationCommand = se_ScheduleConferenceSummaryGenerationCommand;
857
- const se_UpdateDashboardCommand = async (input, context) => {
858
- const b = (0, core_2.requestBuilder)(input, context);
859
- const headers = {
860
- 'content-type': 'application/json',
861
- };
862
- b.bp("/v2/insights/dashboards/{id}");
863
- b.p('id', () => input.id, '{id}', false);
864
- const query = (0, smithy_client_1.map)({
865
- [_c]: [, input[_c]],
866
- [_u]: [, input[_u]],
867
- });
868
- let body;
869
- body = JSON.stringify((0, smithy_client_1.take)(input, {
870
- 'definition': _ => se_DashboardDefinition(_, context),
871
- 'description': [],
872
- 'name': [],
873
- }));
874
- b.m("PUT")
875
- .h(headers)
876
- .q(query)
877
- .b(body);
878
- return b.build();
879
- };
880
- exports.se_UpdateDashboardCommand = se_UpdateDashboardCommand;
881
- const se_UpdateDashboardAccessCommand = async (input, context) => {
882
- const b = (0, core_2.requestBuilder)(input, context);
883
- const headers = {
884
- 'content-type': 'application/json',
885
- };
886
- b.bp("/v2/insights/dashboards/{id}/access");
887
- b.p('id', () => input.id, '{id}', false);
888
- const query = (0, smithy_client_1.map)({
889
- [_c]: [, input[_c]],
890
- [_u]: [, input[_u]],
891
- });
892
- let body;
893
- body = JSON.stringify((0, smithy_client_1.take)(input, {
894
- 'access': _ => (0, smithy_client_1._json)(_),
895
- 'notify': _ => (0, smithy_client_1._json)(_),
896
- }));
897
- b.m("PATCH")
898
- .h(headers)
899
- .q(query)
900
- .b(body);
901
- return b.build();
902
- };
903
- exports.se_UpdateDashboardAccessCommand = se_UpdateDashboardAccessCommand;
904
- const se_UpdateFilterCommand = async (input, context) => {
905
- const b = (0, core_2.requestBuilder)(input, context);
906
- const headers = {
907
- 'content-type': 'application/json',
908
- };
909
- b.bp("/v2/insights/filters/{id}");
910
- b.p('id', () => input.id, '{id}', false);
911
- let body;
912
- body = JSON.stringify((0, smithy_client_1.take)(input, {
913
- 'body': [],
914
- 'name': [],
915
- }));
916
- b.m("PUT")
917
- .h(headers)
918
- .b(body);
919
- return b.build();
920
- };
921
- exports.se_UpdateFilterCommand = se_UpdateFilterCommand;
922
- const se_UpdatePinnedDashboardsCommand = async (input, context) => {
923
- const b = (0, core_2.requestBuilder)(input, context);
924
- const headers = {
925
- 'content-type': 'application/json',
926
- };
927
- b.bp("/v2/insights/dashboards-pinned");
928
- const query = (0, smithy_client_1.map)({
929
- [_c]: [, input[_c]],
930
- [_u]: [, input[_u]],
931
- });
932
- let body;
933
- body = JSON.stringify((0, smithy_client_1.take)(input, {
934
- 'pinned': _ => (0, smithy_client_1._json)(_),
935
- }));
936
- b.m("PUT")
937
- .h(headers)
938
- .q(query)
939
- .b(body);
940
- return b.build();
941
- };
942
- exports.se_UpdatePinnedDashboardsCommand = se_UpdatePinnedDashboardsCommand;
943
- const se_UpdatePlaylistCommand = async (input, context) => {
944
- const b = (0, core_2.requestBuilder)(input, context);
945
- const headers = {
946
- 'content-type': 'application/json',
947
- };
948
- b.bp("/v2/insights/playlists/{id}");
949
- b.p('id', () => input.id, '{id}', false);
950
- const query = (0, smithy_client_1.map)({
951
- [_c]: [, input[_c]],
952
- [_u]: [, input[_u]],
953
- });
954
- let body;
955
- body = JSON.stringify((0, smithy_client_1.take)(input, {
956
- 'description': [],
957
- 'name': [],
958
- }));
959
- b.m("PUT")
960
- .h(headers)
961
- .q(query)
962
- .b(body);
963
- return b.build();
964
- };
965
- exports.se_UpdatePlaylistCommand = se_UpdatePlaylistCommand;
966
- const se_UpdatePlaylistAccessCommand = async (input, context) => {
967
- const b = (0, core_2.requestBuilder)(input, context);
968
- const headers = {
969
- 'content-type': 'application/json',
970
- };
971
- b.bp("/v2/insights/playlists/{id}/access");
972
- b.p('id', () => input.id, '{id}', false);
973
- const query = (0, smithy_client_1.map)({
974
- [_c]: [, input[_c]],
975
- [_u]: [, input[_u]],
976
- });
977
- let body;
978
- body = JSON.stringify((0, smithy_client_1.take)(input, {
979
- 'access': _ => (0, smithy_client_1._json)(_),
980
- 'notify': _ => (0, smithy_client_1._json)(_),
981
- }));
982
- b.m("PATCH")
983
- .h(headers)
984
- .q(query)
985
- .b(body);
986
- return b.build();
987
- };
988
- exports.se_UpdatePlaylistAccessCommand = se_UpdatePlaylistAccessCommand;
989
- const se_UpdateProjectionCommand = async (input, context) => {
990
- const b = (0, core_2.requestBuilder)(input, context);
991
- const headers = {
992
- 'content-type': 'application/json',
993
- };
994
- b.bp("/v2/insights/projections/{id}");
995
- b.p('id', () => input.id, '{id}', false);
996
- const query = (0, smithy_client_1.map)({
997
- [_c]: [, input[_c]],
998
- });
999
- let body;
1000
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1001
- 'category': [],
1002
- 'categoryId': [],
1003
- 'conditions': _ => (0, smithy_client_1._json)(_),
1004
- 'description': [],
1005
- 'fields': _ => (0, smithy_client_1._json)(_),
1006
- 'filter': _ => se_ListConversationsFilter(_, context),
1007
- 'group': [],
1008
- 'instructions': [],
1009
- 'model': [],
1010
- 'name': [],
1011
- }));
1012
- b.m("PUT")
1013
- .h(headers)
1014
- .q(query)
1015
- .b(body);
1016
- return b.build();
1017
- };
1018
- exports.se_UpdateProjectionCommand = se_UpdateProjectionCommand;
1019
- const se_UpdateProjectionsCategoryCommand = async (input, context) => {
1020
- const b = (0, core_2.requestBuilder)(input, context);
1021
- const headers = {
1022
- 'content-type': 'application/json',
1023
- };
1024
- b.bp("/v2/insights/projections-categories/{id}");
1025
- b.p('id', () => input.id, '{id}', false);
1026
- const query = (0, smithy_client_1.map)({
1027
- [_c]: [, input[_c]],
1028
- });
1029
- let body;
1030
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1031
- 'name': [],
1032
- }));
1033
- b.m("PUT")
1034
- .h(headers)
1035
- .q(query)
1036
- .b(body);
1037
- return b.build();
1038
- };
1039
- exports.se_UpdateProjectionsCategoryCommand = se_UpdateProjectionsCategoryCommand;
1040
- const se_WatchCommand = async (input, context) => {
1041
- const b = (0, core_2.requestBuilder)(input, context);
1042
- const headers = {
1043
- 'content-type': 'application/json',
1044
- };
1045
- b.bp("/v2/insights/history");
1046
- const query = (0, smithy_client_1.map)({
1047
- [_c]: [, input[_c]],
1048
- [_u]: [, input[_u]],
1049
- });
1050
- let body;
1051
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1052
- 'playback': _ => (0, smithy_client_1._json)(_),
1053
- 'target': _ => (0, smithy_client_1._json)(_),
1054
- }));
1055
- b.m("POST")
1056
- .h(headers)
1057
- .q(query)
1058
- .b(body);
1059
- return b.build();
1060
- };
1061
- exports.se_WatchCommand = se_WatchCommand;
1062
- const de_CreateDashboardCommand = async (output, context) => {
1063
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1064
- return de_CommandError(output, context);
1065
- }
1066
- const contents = (0, smithy_client_1.map)({
1067
- $metadata: deserializeMetadata(output),
1068
- });
1069
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1070
- const doc = (0, smithy_client_1.take)(data, {
1071
- 'dashboard': _ => de_Dashboard(_, context),
1072
- });
1073
- Object.assign(contents, doc);
1074
- return contents;
1075
- };
1076
- exports.de_CreateDashboardCommand = de_CreateDashboardCommand;
1077
- const de_CreateFilterCommand = async (output, context) => {
1078
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- const contents = (0, smithy_client_1.map)({
1082
- $metadata: deserializeMetadata(output),
1083
- });
1084
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1085
- const doc = (0, smithy_client_1.take)(data, {
1086
- 'item': smithy_client_1._json,
1087
- });
1088
- Object.assign(contents, doc);
1089
- return contents;
1090
- };
1091
- exports.de_CreateFilterCommand = de_CreateFilterCommand;
1092
- const de_CreatePlaylistCommand = async (output, context) => {
1093
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
- return de_CommandError(output, context);
1095
- }
1096
- const contents = (0, smithy_client_1.map)({
1097
- $metadata: deserializeMetadata(output),
1098
- });
1099
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1100
- const doc = (0, smithy_client_1.take)(data, {
1101
- 'playlist': smithy_client_1._json,
1102
- });
1103
- Object.assign(contents, doc);
1104
- return contents;
1105
- };
1106
- exports.de_CreatePlaylistCommand = de_CreatePlaylistCommand;
1107
- const de_CreateProjectionCommand = async (output, context) => {
1108
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1109
- return de_CommandError(output, context);
1110
- }
1111
- const contents = (0, smithy_client_1.map)({
1112
- $metadata: deserializeMetadata(output),
1113
- });
1114
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1115
- const doc = (0, smithy_client_1.take)(data, {
1116
- 'projection': _ => de_Projection(_, context),
1117
- });
1118
- Object.assign(contents, doc);
1119
- return contents;
1120
- };
1121
- exports.de_CreateProjectionCommand = de_CreateProjectionCommand;
1122
- const de_CreateProjectionsCategoryCommand = async (output, context) => {
1123
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return de_CommandError(output, context);
1125
- }
1126
- const contents = (0, smithy_client_1.map)({
1127
- $metadata: deserializeMetadata(output),
1128
- });
1129
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1130
- const doc = (0, smithy_client_1.take)(data, {
1131
- 'category': smithy_client_1._json,
1132
- });
1133
- Object.assign(contents, doc);
1134
- return contents;
1135
- };
1136
- exports.de_CreateProjectionsCategoryCommand = de_CreateProjectionsCategoryCommand;
1137
- const de_DeleteDashboardCommand = async (output, context) => {
1138
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
- return de_CommandError(output, context);
1140
- }
1141
- const contents = (0, smithy_client_1.map)({
1142
- $metadata: deserializeMetadata(output),
1143
- });
1144
- await (0, smithy_client_1.collectBody)(output.body, context);
1145
- return contents;
1146
- };
1147
- exports.de_DeleteDashboardCommand = de_DeleteDashboardCommand;
1148
- const de_DeleteFilterCommand = async (output, context) => {
1149
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1150
- return de_CommandError(output, context);
1151
- }
1152
- const contents = (0, smithy_client_1.map)({
1153
- $metadata: deserializeMetadata(output),
1154
- });
1155
- await (0, smithy_client_1.collectBody)(output.body, context);
1156
- return contents;
1157
- };
1158
- exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
1159
- const de_DeletePlaylistCommand = async (output, context) => {
1160
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1161
- return de_CommandError(output, context);
1162
- }
1163
- const contents = (0, smithy_client_1.map)({
1164
- $metadata: deserializeMetadata(output),
1165
- });
1166
- await (0, smithy_client_1.collectBody)(output.body, context);
1167
- return contents;
1168
- };
1169
- exports.de_DeletePlaylistCommand = de_DeletePlaylistCommand;
1170
- const de_DeletePlaylistItemCommand = async (output, context) => {
1171
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1172
- return de_CommandError(output, context);
1173
- }
1174
- const contents = (0, smithy_client_1.map)({
1175
- $metadata: deserializeMetadata(output),
1176
- });
1177
- await (0, smithy_client_1.collectBody)(output.body, context);
1178
- return contents;
1179
- };
1180
- exports.de_DeletePlaylistItemCommand = de_DeletePlaylistItemCommand;
1181
- const de_DeleteProjectionCommand = async (output, context) => {
1182
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1183
- return de_CommandError(output, context);
1184
- }
1185
- const contents = (0, smithy_client_1.map)({
1186
- $metadata: deserializeMetadata(output),
1187
- });
1188
- await (0, smithy_client_1.collectBody)(output.body, context);
1189
- return contents;
1190
- };
1191
- exports.de_DeleteProjectionCommand = de_DeleteProjectionCommand;
1192
- const de_DeleteProjectionsCategoryCommand = async (output, context) => {
1193
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1194
- return de_CommandError(output, context);
1195
- }
1196
- const contents = (0, smithy_client_1.map)({
1197
- $metadata: deserializeMetadata(output),
1198
- });
1199
- await (0, smithy_client_1.collectBody)(output.body, context);
1200
- return contents;
1201
- };
1202
- exports.de_DeleteProjectionsCategoryCommand = de_DeleteProjectionsCategoryCommand;
1203
- const de_DisableProjectionCommand = async (output, context) => {
1204
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- const contents = (0, smithy_client_1.map)({
1208
- $metadata: deserializeMetadata(output),
1209
- });
1210
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1211
- const doc = (0, smithy_client_1.take)(data, {
1212
- 'projection': _ => de_Projection(_, context),
1213
- });
1214
- Object.assign(contents, doc);
1215
- return contents;
1216
- };
1217
- exports.de_DisableProjectionCommand = de_DisableProjectionCommand;
1218
- const de_EnableProjectionCommand = async (output, context) => {
1219
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1220
- return de_CommandError(output, context);
1221
- }
1222
- const contents = (0, smithy_client_1.map)({
1223
- $metadata: deserializeMetadata(output),
1224
- });
1225
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1226
- const doc = (0, smithy_client_1.take)(data, {
1227
- 'projection': _ => de_Projection(_, context),
1228
- });
1229
- Object.assign(contents, doc);
1230
- return contents;
1231
- };
1232
- exports.de_EnableProjectionCommand = de_EnableProjectionCommand;
1233
- const de_GetAnalysisSettingsCommand = async (output, context) => {
1234
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1235
- return de_CommandError(output, context);
1236
- }
1237
- const contents = (0, smithy_client_1.map)({
1238
- $metadata: deserializeMetadata(output),
1239
- });
1240
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1241
- const doc = (0, smithy_client_1.take)(data, {
1242
- 'settings': _ => de_AnalysisSettings(_, context),
1243
- });
1244
- Object.assign(contents, doc);
1245
- return contents;
1246
- };
1247
- exports.de_GetAnalysisSettingsCommand = de_GetAnalysisSettingsCommand;
1248
- const de_GetCallCharacteristicsCommand = async (output, context) => {
1249
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1250
- return de_CommandError(output, context);
1251
- }
1252
- const contents = (0, smithy_client_1.map)({
1253
- $metadata: deserializeMetadata(output),
1254
- });
1255
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1256
- const doc = (0, smithy_client_1.take)(data, {
1257
- 'characteristics': _ => de_InsightsCharacteristics(_, context),
1258
- 'status': smithy_client_1.expectString,
1259
- });
1260
- Object.assign(contents, doc);
1261
- return contents;
1262
- };
1263
- exports.de_GetCallCharacteristicsCommand = de_GetCallCharacteristicsCommand;
1264
- const de_GetCallInsightsCommand = async (output, context) => {
1265
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1266
- return de_CommandError(output, context);
1267
- }
1268
- const contents = (0, smithy_client_1.map)({
1269
- $metadata: deserializeMetadata(output),
1270
- });
1271
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1272
- const doc = (0, smithy_client_1.take)(data, {
1273
- 'insights': _ => de_ProjectionInsightsList(_, context),
1274
- 'status': smithy_client_1.expectString,
1275
- });
1276
- Object.assign(contents, doc);
1277
- return contents;
1278
- };
1279
- exports.de_GetCallInsightsCommand = de_GetCallInsightsCommand;
1280
- const de_GetCallStateCommand = async (output, context) => {
1281
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
- return de_CommandError(output, context);
1283
- }
1284
- const contents = (0, smithy_client_1.map)({
1285
- $metadata: deserializeMetadata(output),
1286
- });
1287
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1288
- const doc = (0, smithy_client_1.take)(data, {
1289
- 'state': smithy_client_1._json,
1290
- });
1291
- Object.assign(contents, doc);
1292
- return contents;
1293
- };
1294
- exports.de_GetCallStateCommand = de_GetCallStateCommand;
1295
- const de_GetCallSummaryCommand = async (output, context) => {
1296
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
- return de_CommandError(output, context);
1298
- }
1299
- const contents = (0, smithy_client_1.map)({
1300
- $metadata: deserializeMetadata(output),
1301
- });
1302
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1303
- const doc = (0, smithy_client_1.take)(data, {
1304
- 'status': smithy_client_1.expectString,
1305
- 'summary': smithy_client_1._json,
1306
- });
1307
- Object.assign(contents, doc);
1308
- return contents;
1309
- };
1310
- exports.de_GetCallSummaryCommand = de_GetCallSummaryCommand;
1311
- const de_GetChatInsightsCommand = async (output, context) => {
1312
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
- return de_CommandError(output, context);
1314
- }
1315
- const contents = (0, smithy_client_1.map)({
1316
- $metadata: deserializeMetadata(output),
1317
- });
1318
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1319
- const doc = (0, smithy_client_1.take)(data, {
1320
- 'insights': _ => de_ProjectionInsightsList(_, context),
1321
- 'status': smithy_client_1.expectString,
1322
- });
1323
- Object.assign(contents, doc);
1324
- return contents;
1325
- };
1326
- exports.de_GetChatInsightsCommand = de_GetChatInsightsCommand;
1327
- const de_GetChatStateCommand = async (output, context) => {
1328
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1329
- return de_CommandError(output, context);
1330
- }
1331
- const contents = (0, smithy_client_1.map)({
1332
- $metadata: deserializeMetadata(output),
1333
- });
1334
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1335
- const doc = (0, smithy_client_1.take)(data, {
1336
- 'state': smithy_client_1._json,
1337
- });
1338
- Object.assign(contents, doc);
1339
- return contents;
1340
- };
1341
- exports.de_GetChatStateCommand = de_GetChatStateCommand;
1342
- const de_GetChatSummaryCommand = async (output, context) => {
1343
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
- return de_CommandError(output, context);
1345
- }
1346
- const contents = (0, smithy_client_1.map)({
1347
- $metadata: deserializeMetadata(output),
1348
- });
1349
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1350
- const doc = (0, smithy_client_1.take)(data, {
1351
- 'status': smithy_client_1.expectString,
1352
- 'summary': smithy_client_1._json,
1353
- });
1354
- Object.assign(contents, doc);
1355
- return contents;
1356
- };
1357
- exports.de_GetChatSummaryCommand = de_GetChatSummaryCommand;
1358
- const de_GetConferenceInsightsCommand = async (output, context) => {
1359
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
- return de_CommandError(output, context);
1361
- }
1362
- const contents = (0, smithy_client_1.map)({
1363
- $metadata: deserializeMetadata(output),
1364
- });
1365
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1366
- const doc = (0, smithy_client_1.take)(data, {
1367
- 'insights': _ => de_ProjectionInsightsList(_, context),
1368
- 'status': smithy_client_1.expectString,
1369
- });
1370
- Object.assign(contents, doc);
1371
- return contents;
1372
- };
1373
- exports.de_GetConferenceInsightsCommand = de_GetConferenceInsightsCommand;
1374
- const de_GetConferenceRecordingPresignedDownloadUrlCommand = async (output, context) => {
1375
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1376
- return de_CommandError(output, context);
1377
- }
1378
- const contents = (0, smithy_client_1.map)({
1379
- $metadata: deserializeMetadata(output),
1380
- });
1381
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1382
- const doc = (0, smithy_client_1.take)(data, {
1383
- 'presignedDownloadUrl': smithy_client_1.expectString,
1384
- });
1385
- Object.assign(contents, doc);
1386
- return contents;
1387
- };
1388
- exports.de_GetConferenceRecordingPresignedDownloadUrlCommand = de_GetConferenceRecordingPresignedDownloadUrlCommand;
1389
- const de_GetConferenceStateCommand = async (output, context) => {
1390
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1391
- return de_CommandError(output, context);
1392
- }
1393
- const contents = (0, smithy_client_1.map)({
1394
- $metadata: deserializeMetadata(output),
1395
- });
1396
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1397
- const doc = (0, smithy_client_1.take)(data, {
1398
- 'state': smithy_client_1._json,
1399
- });
1400
- Object.assign(contents, doc);
1401
- return contents;
1402
- };
1403
- exports.de_GetConferenceStateCommand = de_GetConferenceStateCommand;
1404
- const de_GetConferenceSummaryCommand = async (output, context) => {
1405
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1406
- return de_CommandError(output, context);
1407
- }
1408
- const contents = (0, smithy_client_1.map)({
1409
- $metadata: deserializeMetadata(output),
1410
- });
1411
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1412
- const doc = (0, smithy_client_1.take)(data, {
1413
- 'status': smithy_client_1.expectString,
1414
- 'summary': smithy_client_1._json,
1415
- });
1416
- Object.assign(contents, doc);
1417
- return contents;
1418
- };
1419
- exports.de_GetConferenceSummaryCommand = de_GetConferenceSummaryCommand;
1420
- const de_GetConferenceTimeFramesCommand = async (output, context) => {
1421
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1422
- return de_CommandError(output, context);
1423
- }
1424
- const contents = (0, smithy_client_1.map)({
1425
- $metadata: deserializeMetadata(output),
1426
- });
1427
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1428
- const doc = (0, smithy_client_1.take)(data, {
1429
- 'timeFrames': smithy_client_1._json,
1430
- });
1431
- Object.assign(contents, doc);
1432
- return contents;
1433
- };
1434
- exports.de_GetConferenceTimeFramesCommand = de_GetConferenceTimeFramesCommand;
1435
- const de_GetDashboardCommand = async (output, context) => {
1436
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1437
- return de_CommandError(output, context);
1438
- }
1439
- const contents = (0, smithy_client_1.map)({
1440
- $metadata: deserializeMetadata(output),
1441
- });
1442
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1443
- const doc = (0, smithy_client_1.take)(data, {
1444
- 'dashboard': _ => de_Dashboard(_, context),
1445
- });
1446
- Object.assign(contents, doc);
1447
- return contents;
1448
- };
1449
- exports.de_GetDashboardCommand = de_GetDashboardCommand;
1450
- const de_GetPlaylistCommand = async (output, context) => {
1451
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1452
- return de_CommandError(output, context);
1453
- }
1454
- const contents = (0, smithy_client_1.map)({
1455
- $metadata: deserializeMetadata(output),
1456
- });
1457
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1458
- const doc = (0, smithy_client_1.take)(data, {
1459
- 'playlist': smithy_client_1._json,
1460
- });
1461
- Object.assign(contents, doc);
1462
- return contents;
1463
- };
1464
- exports.de_GetPlaylistCommand = de_GetPlaylistCommand;
1465
- const de_GetProjectionCommand = async (output, context) => {
1466
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1467
- return de_CommandError(output, context);
1468
- }
1469
- const contents = (0, smithy_client_1.map)({
1470
- $metadata: deserializeMetadata(output),
1471
- });
1472
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1473
- const doc = (0, smithy_client_1.take)(data, {
1474
- 'projection': _ => de_Projection(_, context),
1475
- });
1476
- Object.assign(contents, doc);
1477
- return contents;
1478
- };
1479
- exports.de_GetProjectionCommand = de_GetProjectionCommand;
1480
- const de_ListConversationsCommand = async (output, context) => {
1481
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
- return de_CommandError(output, context);
1483
- }
1484
- const contents = (0, smithy_client_1.map)({
1485
- $metadata: deserializeMetadata(output),
1486
- });
1487
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1488
- const doc = (0, smithy_client_1.take)(data, {
1489
- 'items': _ => de_ListConversationsItemsList(_, context),
1490
- 'lastEvaluatedKey': smithy_client_1.expectString,
1491
- });
1492
- Object.assign(contents, doc);
1493
- return contents;
1494
- };
1495
- exports.de_ListConversationsCommand = de_ListConversationsCommand;
1496
- const de_ListConversationsAggregationsCommand = async (output, context) => {
1497
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1498
- return de_CommandError(output, context);
1499
- }
1500
- const contents = (0, smithy_client_1.map)({
1501
- $metadata: deserializeMetadata(output),
1502
- });
1503
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1504
- const doc = (0, smithy_client_1.take)(data, {
1505
- 'count': smithy_client_1.expectInt32,
1506
- 'result': _ => de_FlatAggregationResultList(_, context),
1507
- });
1508
- Object.assign(contents, doc);
1509
- return contents;
1510
- };
1511
- exports.de_ListConversationsAggregationsCommand = de_ListConversationsAggregationsCommand;
1512
- const de_ListConversationsInsightsCommand = async (output, context) => {
1513
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1514
- return de_CommandError(output, context);
1515
- }
1516
- const contents = (0, smithy_client_1.map)({
1517
- $metadata: deserializeMetadata(output),
1518
- });
1519
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1520
- const doc = (0, smithy_client_1.take)(data, {
1521
- 'count': smithy_client_1.expectInt32,
1522
- 'result': _ => de_InsightResultsList(_, context),
1523
- });
1524
- Object.assign(contents, doc);
1525
- return contents;
1526
- };
1527
- exports.de_ListConversationsInsightsCommand = de_ListConversationsInsightsCommand;
1528
- const de_ListConversationsInsightsAggregationsCommand = async (output, context) => {
1529
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1530
- return de_CommandError(output, context);
1531
- }
1532
- const contents = (0, smithy_client_1.map)({
1533
- $metadata: deserializeMetadata(output),
1534
- });
1535
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1536
- const doc = (0, smithy_client_1.take)(data, {
1537
- 'count': smithy_client_1.expectInt32,
1538
- 'result': _ => de_AggregationResult(_, context),
1539
- });
1540
- Object.assign(contents, doc);
1541
- return contents;
1542
- };
1543
- exports.de_ListConversationsInsightsAggregationsCommand = de_ListConversationsInsightsAggregationsCommand;
1544
- const de_ListConversationsNestedAggregationsCommand = async (output, context) => {
1545
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1546
- return de_CommandError(output, context);
1547
- }
1548
- const contents = (0, smithy_client_1.map)({
1549
- $metadata: deserializeMetadata(output),
1550
- });
1551
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1552
- const doc = (0, smithy_client_1.take)(data, {
1553
- 'count': smithy_client_1.expectInt32,
1554
- 'result': _ => de_AggregationResult(_, context),
1555
- });
1556
- Object.assign(contents, doc);
1557
- return contents;
1558
- };
1559
- exports.de_ListConversationsNestedAggregationsCommand = de_ListConversationsNestedAggregationsCommand;
1560
- const de_ListDashboardsCommand = async (output, context) => {
1561
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1562
- return de_CommandError(output, context);
1563
- }
1564
- const contents = (0, smithy_client_1.map)({
1565
- $metadata: deserializeMetadata(output),
1566
- });
1567
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1568
- const doc = (0, smithy_client_1.take)(data, {
1569
- 'dashboards': _ => de_DashboardsList(_, context),
1570
- });
1571
- Object.assign(contents, doc);
1572
- return contents;
1573
- };
1574
- exports.de_ListDashboardsCommand = de_ListDashboardsCommand;
1575
- const de_ListFiltersCommand = async (output, context) => {
1576
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1577
- return de_CommandError(output, context);
1578
- }
1579
- const contents = (0, smithy_client_1.map)({
1580
- $metadata: deserializeMetadata(output),
1581
- });
1582
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1583
- const doc = (0, smithy_client_1.take)(data, {
1584
- 'filters': smithy_client_1._json,
1585
- });
1586
- Object.assign(contents, doc);
1587
- return contents;
1588
- };
1589
- exports.de_ListFiltersCommand = de_ListFiltersCommand;
1590
- const de_ListPinnedDashboardsCommand = async (output, context) => {
1591
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1592
- return de_CommandError(output, context);
1593
- }
1594
- const contents = (0, smithy_client_1.map)({
1595
- $metadata: deserializeMetadata(output),
1596
- });
1597
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1598
- const doc = (0, smithy_client_1.take)(data, {
1599
- 'pinnedDashboards': _ => de_DashboardsList(_, context),
1600
- 'pinnedDashboardsIds': smithy_client_1._json,
1601
- });
1602
- Object.assign(contents, doc);
1603
- return contents;
1604
- };
1605
- exports.de_ListPinnedDashboardsCommand = de_ListPinnedDashboardsCommand;
1606
- const de_ListPlaylistItemsCommand = async (output, context) => {
1607
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1608
- return de_CommandError(output, context);
1609
- }
1610
- const contents = (0, smithy_client_1.map)({
1611
- $metadata: deserializeMetadata(output),
1612
- });
1613
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1614
- const doc = (0, smithy_client_1.take)(data, {
1615
- 'items': _ => de_PlaylistItemsList(_, context),
1616
- 'lastEvaluatedKey': smithy_client_1.expectString,
1617
- });
1618
- Object.assign(contents, doc);
1619
- return contents;
1620
- };
1621
- exports.de_ListPlaylistItemsCommand = de_ListPlaylistItemsCommand;
1622
- const de_ListPlaylistsCommand = async (output, context) => {
1623
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1624
- return de_CommandError(output, context);
1625
- }
1626
- const contents = (0, smithy_client_1.map)({
1627
- $metadata: deserializeMetadata(output),
1628
- });
1629
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1630
- const doc = (0, smithy_client_1.take)(data, {
1631
- 'playlists': smithy_client_1._json,
1632
- });
1633
- Object.assign(contents, doc);
1634
- return contents;
1635
- };
1636
- exports.de_ListPlaylistsCommand = de_ListPlaylistsCommand;
1637
- const de_ListProjectionsCommand = async (output, context) => {
1638
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1639
- return de_CommandError(output, context);
1640
- }
1641
- const contents = (0, smithy_client_1.map)({
1642
- $metadata: deserializeMetadata(output),
1643
- });
1644
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1645
- const doc = (0, smithy_client_1.take)(data, {
1646
- 'categories': smithy_client_1._json,
1647
- 'projections': _ => de_ProjectionsList(_, context),
1648
- });
1649
- Object.assign(contents, doc);
1650
- return contents;
1651
- };
1652
- exports.de_ListProjectionsCommand = de_ListProjectionsCommand;
1653
- const de_ListWatchHistoryCommand = async (output, context) => {
1654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_CommandError(output, context);
1656
- }
1657
- const contents = (0, smithy_client_1.map)({
1658
- $metadata: deserializeMetadata(output),
1659
- });
1660
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1661
- const doc = (0, smithy_client_1.take)(data, {
1662
- 'items': _ => de_ListConversationsItemsList(_, context),
1663
- 'itemsState': smithy_client_1._json,
1664
- 'lastEvaluatedKey': smithy_client_1.expectString,
1665
- });
1666
- Object.assign(contents, doc);
1667
- return contents;
1668
- };
1669
- exports.de_ListWatchHistoryCommand = de_ListWatchHistoryCommand;
1670
- const de_PauseProjectionCommand = async (output, context) => {
1671
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1672
- return de_CommandError(output, context);
1673
- }
1674
- const contents = (0, smithy_client_1.map)({
1675
- $metadata: deserializeMetadata(output),
1676
- });
1677
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1678
- const doc = (0, smithy_client_1.take)(data, {
1679
- 'projection': _ => de_Projection(_, context),
1680
- });
1681
- Object.assign(contents, doc);
1682
- return contents;
1683
- };
1684
- exports.de_PauseProjectionCommand = de_PauseProjectionCommand;
1685
- const de_PutAnalysisSettingsCommand = async (output, context) => {
1686
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1687
- return de_CommandError(output, context);
1688
- }
1689
- const contents = (0, smithy_client_1.map)({
1690
- $metadata: deserializeMetadata(output),
1691
- });
1692
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1693
- const doc = (0, smithy_client_1.take)(data, {
1694
- 'settings': _ => de_AnalysisSettings(_, context),
1695
- });
1696
- Object.assign(contents, doc);
1697
- return contents;
1698
- };
1699
- exports.de_PutAnalysisSettingsCommand = de_PutAnalysisSettingsCommand;
1700
- const de_PutPlaylistItemCommand = async (output, context) => {
1701
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1702
- return de_CommandError(output, context);
1703
- }
1704
- const contents = (0, smithy_client_1.map)({
1705
- $metadata: deserializeMetadata(output),
1706
- });
1707
- await (0, smithy_client_1.collectBody)(output.body, context);
1708
- return contents;
1709
- };
1710
- exports.de_PutPlaylistItemCommand = de_PutPlaylistItemCommand;
1711
- const de_QueryConversationsCountCommand = async (output, context) => {
1712
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1713
- return de_CommandError(output, context);
1714
- }
1715
- const contents = (0, smithy_client_1.map)({
1716
- $metadata: deserializeMetadata(output),
1717
- });
1718
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1719
- const doc = (0, smithy_client_1.take)(data, {
1720
- 'count': smithy_client_1.expectInt32,
1721
- });
1722
- Object.assign(contents, doc);
1723
- return contents;
1724
- };
1725
- exports.de_QueryConversationsCountCommand = de_QueryConversationsCountCommand;
1726
- const de_ScheduleCallSummaryGenerationCommand = async (output, context) => {
1727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1728
- return de_CommandError(output, context);
1729
- }
1730
- const contents = (0, smithy_client_1.map)({
1731
- $metadata: deserializeMetadata(output),
1732
- });
1733
- await (0, smithy_client_1.collectBody)(output.body, context);
1734
- return contents;
1735
- };
1736
- exports.de_ScheduleCallSummaryGenerationCommand = de_ScheduleCallSummaryGenerationCommand;
1737
- const de_ScheduleConferenceSummaryGenerationCommand = async (output, context) => {
1738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
- return de_CommandError(output, context);
1740
- }
1741
- const contents = (0, smithy_client_1.map)({
1742
- $metadata: deserializeMetadata(output),
1743
- });
1744
- await (0, smithy_client_1.collectBody)(output.body, context);
1745
- return contents;
1746
- };
1747
- exports.de_ScheduleConferenceSummaryGenerationCommand = de_ScheduleConferenceSummaryGenerationCommand;
1748
- const de_UpdateDashboardCommand = async (output, context) => {
1749
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1750
- return de_CommandError(output, context);
1751
- }
1752
- const contents = (0, smithy_client_1.map)({
1753
- $metadata: deserializeMetadata(output),
1754
- });
1755
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1756
- const doc = (0, smithy_client_1.take)(data, {
1757
- 'dashboard': _ => de_Dashboard(_, context),
1758
- });
1759
- Object.assign(contents, doc);
1760
- return contents;
1761
- };
1762
- exports.de_UpdateDashboardCommand = de_UpdateDashboardCommand;
1763
- const de_UpdateDashboardAccessCommand = async (output, context) => {
1764
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1765
- return de_CommandError(output, context);
1766
- }
1767
- const contents = (0, smithy_client_1.map)({
1768
- $metadata: deserializeMetadata(output),
1769
- });
1770
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1771
- const doc = (0, smithy_client_1.take)(data, {
1772
- 'dashboard': _ => de_Dashboard(_, context),
1773
- });
1774
- Object.assign(contents, doc);
1775
- return contents;
1776
- };
1777
- exports.de_UpdateDashboardAccessCommand = de_UpdateDashboardAccessCommand;
1778
- const de_UpdateFilterCommand = async (output, context) => {
1779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
- return de_CommandError(output, context);
1781
- }
1782
- const contents = (0, smithy_client_1.map)({
1783
- $metadata: deserializeMetadata(output),
1784
- });
1785
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1786
- const doc = (0, smithy_client_1.take)(data, {
1787
- 'item': smithy_client_1._json,
1788
- });
1789
- Object.assign(contents, doc);
1790
- return contents;
1791
- };
1792
- exports.de_UpdateFilterCommand = de_UpdateFilterCommand;
1793
- const de_UpdatePinnedDashboardsCommand = async (output, context) => {
1794
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1795
- return de_CommandError(output, context);
1796
- }
1797
- const contents = (0, smithy_client_1.map)({
1798
- $metadata: deserializeMetadata(output),
1799
- });
1800
- await (0, smithy_client_1.collectBody)(output.body, context);
1801
- return contents;
1802
- };
1803
- exports.de_UpdatePinnedDashboardsCommand = de_UpdatePinnedDashboardsCommand;
1804
- const de_UpdatePlaylistCommand = async (output, context) => {
1805
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1806
- return de_CommandError(output, context);
1807
- }
1808
- const contents = (0, smithy_client_1.map)({
1809
- $metadata: deserializeMetadata(output),
1810
- });
1811
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1812
- const doc = (0, smithy_client_1.take)(data, {
1813
- 'playlist': smithy_client_1._json,
1814
- });
1815
- Object.assign(contents, doc);
1816
- return contents;
1817
- };
1818
- exports.de_UpdatePlaylistCommand = de_UpdatePlaylistCommand;
1819
- const de_UpdatePlaylistAccessCommand = async (output, context) => {
1820
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1821
- return de_CommandError(output, context);
1822
- }
1823
- const contents = (0, smithy_client_1.map)({
1824
- $metadata: deserializeMetadata(output),
1825
- });
1826
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1827
- const doc = (0, smithy_client_1.take)(data, {
1828
- 'playlist': smithy_client_1._json,
1829
- });
1830
- Object.assign(contents, doc);
1831
- return contents;
1832
- };
1833
- exports.de_UpdatePlaylistAccessCommand = de_UpdatePlaylistAccessCommand;
1834
- const de_UpdateProjectionCommand = async (output, context) => {
1835
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1836
- return de_CommandError(output, context);
1837
- }
1838
- const contents = (0, smithy_client_1.map)({
1839
- $metadata: deserializeMetadata(output),
1840
- });
1841
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1842
- const doc = (0, smithy_client_1.take)(data, {
1843
- 'projection': _ => de_Projection(_, context),
1844
- });
1845
- Object.assign(contents, doc);
1846
- return contents;
1847
- };
1848
- exports.de_UpdateProjectionCommand = de_UpdateProjectionCommand;
1849
- const de_UpdateProjectionsCategoryCommand = async (output, context) => {
1850
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1851
- return de_CommandError(output, context);
1852
- }
1853
- const contents = (0, smithy_client_1.map)({
1854
- $metadata: deserializeMetadata(output),
1855
- });
1856
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1857
- const doc = (0, smithy_client_1.take)(data, {
1858
- 'category': smithy_client_1._json,
1859
- });
1860
- Object.assign(contents, doc);
1861
- return contents;
1862
- };
1863
- exports.de_UpdateProjectionsCategoryCommand = de_UpdateProjectionsCategoryCommand;
1864
- const de_WatchCommand = async (output, context) => {
1865
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1866
- return de_CommandError(output, context);
1867
- }
1868
- const contents = (0, smithy_client_1.map)({
1869
- $metadata: deserializeMetadata(output),
1870
- });
1871
- await (0, smithy_client_1.collectBody)(output.body, context);
1872
- return contents;
1873
- };
1874
- exports.de_WatchCommand = de_WatchCommand;
1875
- const de_CommandError = async (output, context) => {
1876
- const parsedOutput = {
1877
- ...output,
1878
- body: await (0, core_1.parseJsonErrorBody)(output.body, context)
1879
- };
1880
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1881
- switch (errorCode) {
1882
- case "ForbiddenException":
1883
- case "smithy.framework#ForbiddenException":
1884
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1885
- case "ValidationException":
1886
- case "smithy.framework#ValidationException":
1887
- throw await de_ValidationExceptionRes(parsedOutput, context);
1888
- case "FileNotFoundException":
1889
- case "wildix.xbees.conversations#FileNotFoundException":
1890
- throw await de_FileNotFoundExceptionRes(parsedOutput, context);
1891
- case "NotFoundException":
1892
- case "smithy.framework#NotFoundException":
1893
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1894
- case "FilterNotFoundException":
1895
- case "wildix.wda.insights#FilterNotFoundException":
1896
- throw await de_FilterNotFoundExceptionRes(parsedOutput, context);
1897
- default:
1898
- const parsedBody = parsedOutput.body;
1899
- return throwDefaultError({
1900
- output,
1901
- parsedBody,
1902
- errorCode
1903
- });
1904
- }
1905
- };
1906
- const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaInsightsServiceException_1.WdaInsightsServiceException);
1907
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1908
- const contents = (0, smithy_client_1.map)({});
1909
- const data = parsedOutput.body;
1910
- const doc = (0, smithy_client_1.take)(data, {
1911
- 'message': smithy_client_1.expectString,
1912
- });
1913
- Object.assign(contents, doc);
1914
- const exception = new models_0_1.ForbiddenException({
1915
- $metadata: deserializeMetadata(parsedOutput),
1916
- ...contents
1917
- });
1918
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1919
- };
1920
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1921
- const contents = (0, smithy_client_1.map)({});
1922
- const data = parsedOutput.body;
1923
- const doc = (0, smithy_client_1.take)(data, {
1924
- 'message': smithy_client_1.expectString,
1925
- });
1926
- Object.assign(contents, doc);
1927
- const exception = new models_0_1.NotFoundException({
1928
- $metadata: deserializeMetadata(parsedOutput),
1929
- ...contents
1930
- });
1931
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1932
- };
1933
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1934
- const contents = (0, smithy_client_1.map)({});
1935
- const data = parsedOutput.body;
1936
- const doc = (0, smithy_client_1.take)(data, {
1937
- 'message': smithy_client_1.expectString,
1938
- });
1939
- Object.assign(contents, doc);
1940
- const exception = new models_0_1.ValidationException({
1941
- $metadata: deserializeMetadata(parsedOutput),
1942
- ...contents
1943
- });
1944
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1945
- };
1946
- const de_FilterNotFoundExceptionRes = async (parsedOutput, context) => {
1947
- const contents = (0, smithy_client_1.map)({});
1948
- const data = parsedOutput.body;
1949
- const doc = (0, smithy_client_1.take)(data, {
1950
- 'message': smithy_client_1.expectString,
1951
- });
1952
- Object.assign(contents, doc);
1953
- const exception = new models_0_1.FilterNotFoundException({
1954
- $metadata: deserializeMetadata(parsedOutput),
1955
- ...contents
1956
- });
1957
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1958
- };
1959
- const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
1960
- const contents = (0, smithy_client_1.map)({});
1961
- const data = parsedOutput.body;
1962
- const doc = (0, smithy_client_1.take)(data, {
1963
- 'message': smithy_client_1.expectString,
1964
- });
1965
- Object.assign(contents, doc);
1966
- const exception = new models_0_1.FileNotFoundException({
1967
- $metadata: deserializeMetadata(parsedOutput),
1968
- ...contents
1969
- });
1970
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1971
- };
1972
- const se_Document = (input, context) => {
1973
- return input;
1974
- };
1975
- const se_DashboardDefinition = (input, context) => {
1976
- return (0, smithy_client_1.take)(input, {
1977
- 'filter': _ => se_ListConversationsFilter(_, context),
1978
- 'sheets': _ => se_DashboardSheetList(_, context),
1979
- });
1980
- };
1981
- const se_DashboardSheet = (input, context) => {
1982
- return (0, smithy_client_1.take)(input, {
1983
- 'filter': _ => se_ListConversationsFilter(_, context),
1984
- 'id': [],
1985
- 'name': [],
1986
- 'visuals': _ => se_DashboardVisualsList(_, context),
1987
- });
1988
- };
1989
- const se_DashboardSheetList = (input, context) => {
1990
- return input.filter((e) => e != null).map(entry => {
1991
- return se_DashboardSheet(entry, context);
1992
- });
1993
- };
1994
- const se_DashboardVisual = (input, context) => {
1995
- return (0, smithy_client_1.take)(input, {
1996
- 'component': _ => se_Document(_, context),
1997
- 'filter': _ => se_ListConversationsFilter(_, context),
1998
- 'id': [],
1999
- 'position': smithy_client_1._json,
2000
- });
2001
- };
2002
- const se_DashboardVisualsList = (input, context) => {
2003
- return input.filter((e) => e != null).map(entry => {
2004
- return se_DashboardVisual(entry, context);
2005
- });
2006
- };
2007
- const se_ListConversationsFilter = (input, context) => {
2008
- return (0, smithy_client_1.take)(input, {
2009
- 'absent': smithy_client_1._json,
2010
- 'channel': smithy_client_1._json,
2011
- 'chatbots': smithy_client_1._json,
2012
- 'country': smithy_client_1._json,
2013
- 'date': smithy_client_1._json,
2014
- 'dayOfWeek': smithy_client_1._json,
2015
- 'department': smithy_client_1._json,
2016
- 'direction': smithy_client_1._json,
2017
- 'duration': smithy_client_1._json,
2018
- 'entity': smithy_client_1._json,
2019
- 'group': smithy_client_1._json,
2020
- 'hourOfDay': smithy_client_1._json,
2021
- 'id': smithy_client_1._json,
2022
- 'insights': smithy_client_1._json,
2023
- 'interaction': _ => se_ListConversationsFilterInteraction(_, context),
2024
- 'language': smithy_client_1._json,
2025
- 'location': smithy_client_1._json,
2026
- 'participants': smithy_client_1._json,
2027
- 'participantsToExclude': smithy_client_1._json,
2028
- 'participantsToInclude': smithy_client_1._json,
2029
- 'pbx': smithy_client_1._json,
2030
- 'phases': smithy_client_1._json,
2031
- 'present': smithy_client_1._json,
2032
- 'queue': smithy_client_1._json,
2033
- 'recorded': [],
2034
- 'service': smithy_client_1._json,
2035
- 'tag': smithy_client_1._json,
2036
- 'transcribed': [],
2037
- 'trunk': smithy_client_1._json,
2038
- 'voicebots': smithy_client_1._json,
2039
- });
2040
- };
2041
- const se_ListConversationsFilterFloat = (input, context) => {
2042
- return (0, smithy_client_1.take)(input, {
2043
- 'from': smithy_client_1.serializeFloat,
2044
- 'to': smithy_client_1.serializeFloat,
2045
- });
2046
- };
2047
- const se_ListConversationsFilterInteraction = (input, context) => {
2048
- return (0, smithy_client_1.take)(input, {
2049
- 'interruptions': smithy_client_1._json,
2050
- 'longestCustomerStory': smithy_client_1._json,
2051
- 'longestMonologue': smithy_client_1._json,
2052
- 'patience': _ => se_ListConversationsFilterFloat(_, context),
2053
- 'talkRatio': smithy_client_1._json,
2054
- 'wordsPerMinute': smithy_client_1._json,
2055
- });
2056
- };
2057
- const de_Document = (output, context) => {
2058
- return output;
2059
- };
2060
- const de_AggregationBucket = (output, context) => {
2061
- return (0, smithy_client_1.take)(output, {
2062
- 'aggregation': (_) => de_AggregationResult(_, context),
2063
- 'count': smithy_client_1.expectLong,
2064
- 'filter': (_) => de_ListConversationsFilter(_, context),
2065
- 'interval': smithy_client_1.expectString,
2066
- 'key': smithy_client_1.expectString,
2067
- });
2068
- };
2069
- const de_AggregationBucketsList = (output, context) => {
2070
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2071
- return de_AggregationBucket(entry, context);
2072
- });
2073
- return retVal;
2074
- };
2075
- const de_AggregationResult = (output, context) => {
2076
- return (0, smithy_client_1.take)(output, {
2077
- 'aggregation': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2078
- 'buckets': (_) => de_AggregationBucketsList(_, context),
2079
- });
2080
- };
2081
- const de_AnalysisSettings = (output, context) => {
2082
- return (0, smithy_client_1.take)(output, {
2083
- 'defaultModel': smithy_client_1.expectString,
2084
- 'disabled': smithy_client_1.expectBoolean,
2085
- 'filter': (_) => de_ListConversationsFilter(_, context),
2086
- });
2087
- };
2088
- const de_Dashboard = (output, context) => {
2089
- return (0, smithy_client_1.take)(output, {
2090
- 'access': smithy_client_1._json,
2091
- 'createdAt': smithy_client_1.expectString,
2092
- 'createdBy': smithy_client_1.expectString,
2093
- 'createdByName': smithy_client_1.expectString,
2094
- 'definition': (_) => de_DashboardDefinition(_, context),
2095
- 'description': smithy_client_1.expectString,
2096
- 'id': smithy_client_1.expectString,
2097
- 'metadata': smithy_client_1._json,
2098
- 'name': smithy_client_1.expectString,
2099
- 'updatedAt': smithy_client_1.expectString,
2100
- });
2101
- };
2102
- const de_DashboardDefinition = (output, context) => {
2103
- return (0, smithy_client_1.take)(output, {
2104
- 'filter': (_) => de_ListConversationsFilter(_, context),
2105
- 'sheets': (_) => de_DashboardSheetList(_, context),
2106
- });
2107
- };
2108
- const de_DashboardSheet = (output, context) => {
2109
- return (0, smithy_client_1.take)(output, {
2110
- 'filter': (_) => de_ListConversationsFilter(_, context),
2111
- 'id': smithy_client_1.expectString,
2112
- 'name': smithy_client_1.expectString,
2113
- 'visuals': (_) => de_DashboardVisualsList(_, context),
2114
- });
2115
- };
2116
- const de_DashboardSheetList = (output, context) => {
2117
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2118
- return de_DashboardSheet(entry, context);
2119
- });
2120
- return retVal;
2121
- };
2122
- const de_DashboardsList = (output, context) => {
2123
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2124
- return de_Dashboard(entry, context);
2125
- });
2126
- return retVal;
2127
- };
2128
- const de_DashboardVisual = (output, context) => {
2129
- return (0, smithy_client_1.take)(output, {
2130
- 'component': (_) => de_Document(_, context),
2131
- 'filter': (_) => de_ListConversationsFilter(_, context),
2132
- 'id': smithy_client_1.expectString,
2133
- 'position': smithy_client_1._json,
2134
- });
2135
- };
2136
- const de_DashboardVisualsList = (output, context) => {
2137
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2138
- return de_DashboardVisual(entry, context);
2139
- });
2140
- return retVal;
2141
- };
2142
- const de_FlatAggregationBucket = (output, context) => {
2143
- return (0, smithy_client_1.take)(output, {
2144
- 'count': smithy_client_1.expectLong,
2145
- 'filter': (_) => de_ListConversationsFilter(_, context),
2146
- 'interval': smithy_client_1.expectString,
2147
- 'key': smithy_client_1.expectString,
2148
- });
2149
- };
2150
- const de_FlatAggregationBucketList = (output, context) => {
2151
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2152
- return de_FlatAggregationBucket(entry, context);
2153
- });
2154
- return retVal;
2155
- };
2156
- const de_FlatAggregationResult = (output, context) => {
2157
- return (0, smithy_client_1.take)(output, {
2158
- 'aggregation': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2159
- 'buckets': (_) => de_FlatAggregationBucketList(_, context),
2160
- });
2161
- };
2162
- const de_FlatAggregationResultList = (output, context) => {
2163
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2164
- return de_FlatAggregationResult(entry, context);
2165
- });
2166
- return retVal;
2167
- };
2168
- const de_InsightResult = (output, context) => {
2169
- return (0, smithy_client_1.take)(output, {
2170
- 'buckets': (_) => de_InsightsBucketsList(_, context),
2171
- 'insight': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2172
- });
2173
- };
2174
- const de_InsightResultsList = (output, context) => {
2175
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2176
- return de_InsightResult(entry, context);
2177
- });
2178
- return retVal;
2179
- };
2180
- const de_InsightsBucket = (output, context) => {
2181
- return (0, smithy_client_1.take)(output, {
2182
- 'count': smithy_client_1.expectLong,
2183
- 'filter': (_) => de_ListConversationsFilter(_, context),
2184
- 'key': smithy_client_1.expectString,
2185
- });
2186
- };
2187
- const de_InsightsBucketsList = (output, context) => {
2188
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2189
- return de_InsightsBucket(entry, context);
2190
- });
2191
- return retVal;
2192
- };
2193
- const de_InsightsCharacteristics = (output, context) => {
2194
- return (0, smithy_client_1.take)(output, {
2195
- 'duration': smithy_client_1.expectLong,
2196
- 'interruptions': smithy_client_1._json,
2197
- 'nonTalkTime': smithy_client_1._json,
2198
- 'sentiment': (_) => de_InsightsSentiment(_, context),
2199
- 'talkSpeed': smithy_client_1._json,
2200
- 'talkTime': smithy_client_1._json,
2201
- });
2202
- };
2203
- const de_InsightsSentiment = (output, context) => {
2204
- return (0, smithy_client_1.take)(output, {
2205
- 'score': smithy_client_1.limitedParseFloat32,
2206
- 'scoreByParticipant': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
2207
- 'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
2208
- });
2209
- };
2210
- const de_InsightsSentimentParticipantScore = (output, context) => {
2211
- return (0, smithy_client_1.take)(output, {
2212
- 'endTime': smithy_client_1.expectLong,
2213
- 'interrupter': smithy_client_1.expectString,
2214
- 'score': smithy_client_1.limitedParseFloat32,
2215
- 'startTime': smithy_client_1.expectLong,
2216
- });
2217
- };
2218
- const de_InsightsSentimentParticipantScoreList = (output, context) => {
2219
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2220
- return de_InsightsSentimentParticipantScore(entry, context);
2221
- });
2222
- return retVal;
2223
- };
2224
- const de_InsightsSentimentScoreByParticipantChunk = (output, context) => {
2225
- return (0, smithy_client_1.take)(output, {
2226
- 'interrupter': smithy_client_1.expectString,
2227
- 'score': smithy_client_1.limitedParseFloat32,
2228
- });
2229
- };
2230
- const de_InsightsSentimentScoreByParticipantList = (output, context) => {
2231
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2232
- return de_InsightsSentimentScoreByParticipantChunk(entry, context);
2233
- });
2234
- return retVal;
2235
- };
2236
- const de_InsightsSentimentScoreByPeriodChunk = (output, context) => {
2237
- return (0, smithy_client_1.take)(output, {
2238
- 'participants': (_) => de_InsightsSentimentParticipantScoreList(_, context),
2239
- 'score': smithy_client_1.limitedParseFloat32,
2240
- });
2241
- };
2242
- const de_InsightsSentimentScoreByPeriodList = (output, context) => {
2243
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2244
- return de_InsightsSentimentScoreByPeriodChunk(entry, context);
2245
- });
2246
- return retVal;
2247
- };
2248
- const de_ListConversationsFilter = (output, context) => {
2249
- return (0, smithy_client_1.take)(output, {
2250
- 'absent': smithy_client_1._json,
2251
- 'channel': smithy_client_1._json,
2252
- 'chatbots': smithy_client_1._json,
2253
- 'country': smithy_client_1._json,
2254
- 'date': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2255
- 'dayOfWeek': smithy_client_1._json,
2256
- 'department': smithy_client_1._json,
2257
- 'direction': smithy_client_1._json,
2258
- 'duration': smithy_client_1._json,
2259
- 'entity': smithy_client_1._json,
2260
- 'group': smithy_client_1._json,
2261
- 'hourOfDay': smithy_client_1._json,
2262
- 'id': smithy_client_1._json,
2263
- 'insights': smithy_client_1._json,
2264
- 'interaction': (_) => de_ListConversationsFilterInteraction(_, context),
2265
- 'language': smithy_client_1._json,
2266
- 'location': smithy_client_1._json,
2267
- 'participants': smithy_client_1._json,
2268
- 'participantsToExclude': smithy_client_1._json,
2269
- 'participantsToInclude': smithy_client_1._json,
2270
- 'pbx': smithy_client_1._json,
2271
- 'phases': smithy_client_1._json,
2272
- 'present': smithy_client_1._json,
2273
- 'queue': smithy_client_1._json,
2274
- 'recorded': smithy_client_1.expectBoolean,
2275
- 'service': smithy_client_1._json,
2276
- 'tag': smithy_client_1._json,
2277
- 'transcribed': smithy_client_1.expectBoolean,
2278
- 'trunk': smithy_client_1._json,
2279
- 'voicebots': smithy_client_1._json,
2280
- });
2281
- };
2282
- const de_ListConversationsFilterFloat = (output, context) => {
2283
- return (0, smithy_client_1.take)(output, {
2284
- 'from': smithy_client_1.limitedParseFloat32,
2285
- 'to': smithy_client_1.limitedParseFloat32,
2286
- });
2287
- };
2288
- const de_ListConversationsFilterInteraction = (output, context) => {
2289
- return (0, smithy_client_1.take)(output, {
2290
- 'interruptions': smithy_client_1._json,
2291
- 'longestCustomerStory': smithy_client_1._json,
2292
- 'longestMonologue': smithy_client_1._json,
2293
- 'patience': (_) => de_ListConversationsFilterFloat(_, context),
2294
- 'talkRatio': smithy_client_1._json,
2295
- 'wordsPerMinute': smithy_client_1._json,
2296
- });
2297
- };
2298
- const de_ListConversationsItem = (output, context) => {
2299
- return (0, smithy_client_1.take)(output, {
2300
- 'event': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2301
- 'highlight': smithy_client_1._json,
2302
- 'interaction': (_) => de_ListConversationsItemInteraction(_, context),
2303
- 'summary': smithy_client_1._json,
2304
- });
2305
- };
2306
- const de_ListConversationsItemInteraction = (output, context) => {
2307
- return (0, smithy_client_1.take)(output, {
2308
- 'interruptions': smithy_client_1.expectInt32,
2309
- 'longestCustomerStory': smithy_client_1.expectInt32,
2310
- 'longestMonologue': smithy_client_1.expectInt32,
2311
- 'patience': smithy_client_1.limitedParseFloat32,
2312
- 'talkRatio': smithy_client_1.expectInt32,
2313
- 'wordsPerMinute': smithy_client_1.expectInt32,
2314
- });
2315
- };
2316
- const de_ListConversationsItemsList = (output, context) => {
2317
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2318
- return de_ListConversationsItem(entry, context);
2319
- });
2320
- return retVal;
2321
- };
2322
- const de_PlaylistItem = (output, context) => {
2323
- return (0, smithy_client_1.take)(output, {
2324
- 'addedAt': smithy_client_1.expectString,
2325
- 'addedBy': smithy_client_1.expectString,
2326
- 'addedByName': smithy_client_1.expectString,
2327
- 'item': (_) => de_ListConversationsItem(_, context),
2328
- 'note': smithy_client_1.expectString,
2329
- 'status': smithy_client_1.expectString,
2330
- 'updatedAt': smithy_client_1.expectString,
2331
- });
2332
- };
2333
- const de_PlaylistItemsList = (output, context) => {
2334
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2335
- return de_PlaylistItem(entry, context);
2336
- });
2337
- return retVal;
2338
- };
2339
- const de_Projection = (output, context) => {
2340
- return (0, smithy_client_1.take)(output, {
2341
- 'category': smithy_client_1.expectString,
2342
- 'categoryId': smithy_client_1.expectString,
2343
- 'conditions': smithy_client_1._json,
2344
- 'createdAt': smithy_client_1.expectString,
2345
- 'description': smithy_client_1.expectString,
2346
- 'fields': smithy_client_1._json,
2347
- 'filter': (_) => de_ListConversationsFilter(_, context),
2348
- 'group': smithy_client_1.expectString,
2349
- 'id': smithy_client_1.expectString,
2350
- 'instructions': smithy_client_1.expectString,
2351
- 'metadata': smithy_client_1._json,
2352
- 'model': smithy_client_1.expectString,
2353
- 'name': smithy_client_1.expectString,
2354
- 'status': smithy_client_1.expectString,
2355
- 'updatedAt': smithy_client_1.expectString,
2356
- 'version': smithy_client_1.expectInt32,
2357
- });
2358
- };
2359
- const de_ProjectionInsights = (output, context) => {
2360
- return (0, smithy_client_1.take)(output, {
2361
- 'fields': (_) => de_ProjectionInsightsFieldsList(_, context),
2362
- 'id': smithy_client_1.expectString,
2363
- 'name': smithy_client_1.expectString,
2364
- 'reason': smithy_client_1.expectString,
2365
- 'status': smithy_client_1.expectString,
2366
- 'version': smithy_client_1.expectInt32,
2367
- });
2368
- };
2369
- const de_ProjectionInsightsField = (output, context) => {
2370
- return (0, smithy_client_1.take)(output, {
2371
- 'id': smithy_client_1.expectString,
2372
- 'name': smithy_client_1.expectString,
2373
- 'value': (_) => de_Document(_, context),
2374
- });
2375
- };
2376
- const de_ProjectionInsightsFieldsList = (output, context) => {
2377
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2378
- return de_ProjectionInsightsField(entry, context);
2379
- });
2380
- return retVal;
2381
- };
2382
- const de_ProjectionInsightsList = (output, context) => {
2383
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2384
- return de_ProjectionInsights(entry, context);
2385
- });
2386
- return retVal;
2387
- };
2388
- const de_ProjectionsList = (output, context) => {
2389
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2390
- return de_Projection(entry, context);
2391
- });
2392
- return retVal;
2393
- };
2394
- const deserializeMetadata = (output) => ({
2395
- httpStatusCode: output.statusCode,
2396
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2397
- extendedRequestId: output.headers["x-amz-id-2"],
2398
- cfId: output.headers["x-amz-cf-id"],
2399
- });
2400
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
2401
- const _c = "company";
2402
- const _ca = "category";
2403
- const _d = "download";
2404
- const _eSK = "exclusiveStartKey";
2405
- const _fI = "fileId";
2406
- const _u = "user";