@wildix/wda-history-client 1.2.29 → 4.0.1

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 (108) hide show
  1. package/dist-cjs/WdaHistory.js +3 -3
  2. package/dist-cjs/WdaHistoryClient.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/GetCallAnnotationsCommand.js +10 -11
  6. package/dist-cjs/commands/GetCallCommand.js +10 -11
  7. package/dist-cjs/commands/GetCallTranscriptionCommand.js +10 -11
  8. package/dist-cjs/commands/GetCallTranscriptionTextCommand.js +10 -11
  9. package/dist-cjs/commands/GetChatAnnotationsCommand.js +10 -11
  10. package/dist-cjs/commands/GetChatCommand.js +10 -11
  11. package/dist-cjs/commands/GetChatTranscriptionCommand.js +10 -11
  12. package/dist-cjs/commands/GetChatTranscriptionTextCommand.js +10 -11
  13. package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +10 -11
  14. package/dist-cjs/commands/GetConferenceCommand.js +10 -11
  15. package/dist-cjs/commands/GetConferenceTranscriptionCommand.js +10 -11
  16. package/dist-cjs/commands/GetConferenceTranscriptionTextCommand.js +10 -11
  17. package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
  18. package/dist-cjs/commands/QueryUserCallsCommand.js +10 -11
  19. package/dist-cjs/commands/UpdateCallCommand.js +10 -11
  20. package/dist-cjs/commands/index.js +3 -3
  21. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  22. package/dist-cjs/endpoint/bdd.js +25 -0
  23. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  24. package/dist-cjs/index.js +4 -1
  25. package/dist-cjs/models/WdaHistoryServiceException.js +3 -3
  26. package/dist-cjs/models/enums.js +204 -0
  27. package/dist-cjs/models/errors.js +147 -0
  28. package/dist-cjs/models/models_0.js +0 -413
  29. package/dist-cjs/runtimeConfig.browser.js +11 -11
  30. package/dist-cjs/runtimeConfig.js +22 -18
  31. package/dist-cjs/runtimeConfig.shared.js +30 -10
  32. package/dist-cjs/runtimeExtensions.js +6 -5
  33. package/dist-cjs/schemas/schemas_0.js +1047 -0
  34. package/dist-es/WdaHistory.js +4 -4
  35. package/dist-es/WdaHistoryClient.js +30 -22
  36. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  37. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  38. package/dist-es/commands/GetCallAnnotationsCommand.js +9 -10
  39. package/dist-es/commands/GetCallCommand.js +9 -10
  40. package/dist-es/commands/GetCallTranscriptionCommand.js +9 -10
  41. package/dist-es/commands/GetCallTranscriptionTextCommand.js +9 -10
  42. package/dist-es/commands/GetChatAnnotationsCommand.js +9 -10
  43. package/dist-es/commands/GetChatCommand.js +9 -10
  44. package/dist-es/commands/GetChatTranscriptionCommand.js +9 -10
  45. package/dist-es/commands/GetChatTranscriptionTextCommand.js +9 -10
  46. package/dist-es/commands/GetConferenceAnnotationsCommand.js +9 -10
  47. package/dist-es/commands/GetConferenceCommand.js +9 -10
  48. package/dist-es/commands/GetConferenceTranscriptionCommand.js +9 -10
  49. package/dist-es/commands/GetConferenceTranscriptionTextCommand.js +9 -10
  50. package/dist-es/commands/QueryConversationsCommand.js +9 -10
  51. package/dist-es/commands/QueryUserCallsCommand.js +9 -10
  52. package/dist-es/commands/UpdateCallCommand.js +9 -10
  53. package/dist-es/commands/index.js +3 -3
  54. package/dist-es/endpoint/EndpointParameters.js +12 -0
  55. package/dist-es/endpoint/bdd.js +22 -0
  56. package/dist-es/endpoint/endpointResolver.js +12 -0
  57. package/dist-es/index.js +4 -1
  58. package/dist-es/models/WdaHistoryServiceException.js +1 -1
  59. package/dist-es/models/enums.js +201 -0
  60. package/dist-es/models/errors.js +133 -0
  61. package/dist-es/models/models_0.js +1 -400
  62. package/dist-es/runtimeConfig.browser.js +7 -7
  63. package/dist-es/runtimeConfig.js +17 -13
  64. package/dist-es/runtimeConfig.shared.js +24 -4
  65. package/dist-es/runtimeExtensions.js +6 -5
  66. package/dist-es/schemas/schemas_0.js +1042 -0
  67. package/dist-types/WdaHistory.d.ts +16 -16
  68. package/dist-types/WdaHistoryClient.d.ts +45 -27
  69. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  70. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  71. package/dist-types/commands/GetCallAnnotationsCommand.d.ts +11 -7
  72. package/dist-types/commands/GetCallCommand.d.ts +11 -7
  73. package/dist-types/commands/GetCallTranscriptionCommand.d.ts +11 -7
  74. package/dist-types/commands/GetCallTranscriptionTextCommand.d.ts +11 -7
  75. package/dist-types/commands/GetChatAnnotationsCommand.d.ts +11 -7
  76. package/dist-types/commands/GetChatCommand.d.ts +11 -7
  77. package/dist-types/commands/GetChatTranscriptionCommand.d.ts +11 -7
  78. package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +11 -7
  79. package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +11 -7
  80. package/dist-types/commands/GetConferenceCommand.d.ts +11 -7
  81. package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +11 -7
  82. package/dist-types/commands/GetConferenceTranscriptionTextCommand.d.ts +11 -7
  83. package/dist-types/commands/QueryConversationsCommand.d.ts +11 -7
  84. package/dist-types/commands/QueryUserCallsCommand.d.ts +11 -7
  85. package/dist-types/commands/UpdateCallCommand.d.ts +11 -7
  86. package/dist-types/commands/index.d.ts +3 -3
  87. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  88. package/dist-types/endpoint/bdd.d.ts +2 -0
  89. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  90. package/dist-types/extensionConfiguration.d.ts +4 -3
  91. package/dist-types/index.d.ts +5 -1
  92. package/dist-types/models/WdaHistoryServiceException.d.ts +1 -1
  93. package/dist-types/models/enums.d.ts +505 -0
  94. package/dist-types/models/errors.d.ts +123 -0
  95. package/dist-types/models/models_0.d.ts +83 -692
  96. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  97. package/dist-types/runtimeConfig.d.ts +34 -15
  98. package/dist-types/runtimeConfig.native.d.ts +36 -17
  99. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  100. package/dist-types/runtimeExtensions.d.ts +1 -1
  101. package/dist-types/schemas/schemas_0.d.ts +127 -0
  102. package/package.json +14 -40
  103. package/dist-cjs/models/index.js +0 -4
  104. package/dist-cjs/protocols/Aws_restJson1.js +0 -868
  105. package/dist-es/models/index.js +0 -1
  106. package/dist-es/protocols/Aws_restJson1.js +0 -835
  107. package/dist-types/models/index.d.ts +0 -1
  108. package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
@@ -1,868 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateCallCommand = exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceAnnotationsCommand = exports.de_GetConferenceCommand = exports.de_GetChatTranscriptionTextCommand = exports.de_GetChatTranscriptionCommand = exports.de_GetChatAnnotationsCommand = exports.de_GetChatCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallAnnotationsCommand = exports.de_GetCallCommand = exports.se_UpdateCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceAnnotationsCommand = exports.se_GetConferenceCommand = exports.se_GetChatTranscriptionTextCommand = exports.se_GetChatTranscriptionCommand = exports.se_GetChatAnnotationsCommand = exports.se_GetChatCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallAnnotationsCommand = exports.se_GetCallCommand = void 0;
4
- const WdaHistoryServiceException_1 = require("../models/WdaHistoryServiceException");
5
- const models_0_1 = require("../models/models_0");
6
- const core_1 = require("@aws-sdk/core");
7
- const core_2 = require("@smithy/core");
8
- const smithy_client_1 = require("@smithy/smithy-client");
9
- const se_GetCallCommand = async (input, context) => {
10
- const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {};
12
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}");
13
- b.p('callId', () => input.callId, '{callId}', false);
14
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
15
- const query = (0, smithy_client_1.map)({
16
- [_c]: [, input[_c]],
17
- });
18
- let body;
19
- b.m("GET")
20
- .h(headers)
21
- .q(query)
22
- .b(body);
23
- return b.build();
24
- };
25
- exports.se_GetCallCommand = se_GetCallCommand;
26
- const se_GetCallAnnotationsCommand = async (input, context) => {
27
- const b = (0, core_2.requestBuilder)(input, context);
28
- const headers = {};
29
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}/annotations");
30
- b.p('callId', () => input.callId, '{callId}', false);
31
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
32
- const query = (0, smithy_client_1.map)({
33
- [_c]: [, input[_c]],
34
- });
35
- let body;
36
- b.m("GET")
37
- .h(headers)
38
- .q(query)
39
- .b(body);
40
- return b.build();
41
- };
42
- exports.se_GetCallAnnotationsCommand = se_GetCallAnnotationsCommand;
43
- const se_GetCallTranscriptionCommand = async (input, context) => {
44
- const b = (0, core_2.requestBuilder)(input, context);
45
- const headers = {};
46
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}/transcription");
47
- b.p('callId', () => input.callId, '{callId}', false);
48
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
49
- const query = (0, smithy_client_1.map)({
50
- [_c]: [, input[_c]],
51
- });
52
- let body;
53
- b.m("GET")
54
- .h(headers)
55
- .q(query)
56
- .b(body);
57
- return b.build();
58
- };
59
- exports.se_GetCallTranscriptionCommand = se_GetCallTranscriptionCommand;
60
- const se_GetCallTranscriptionTextCommand = async (input, context) => {
61
- const b = (0, core_2.requestBuilder)(input, context);
62
- const headers = {};
63
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}/transcription/text");
64
- b.p('callId', () => input.callId, '{callId}', false);
65
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
66
- const query = (0, smithy_client_1.map)({
67
- [_c]: [, input[_c]],
68
- });
69
- let body;
70
- b.m("GET")
71
- .h(headers)
72
- .q(query)
73
- .b(body);
74
- return b.build();
75
- };
76
- exports.se_GetCallTranscriptionTextCommand = se_GetCallTranscriptionTextCommand;
77
- const se_GetChatCommand = async (input, context) => {
78
- const b = (0, core_2.requestBuilder)(input, context);
79
- const headers = {};
80
- b.bp("/v2/history/chats/{chatId}");
81
- b.p('chatId', () => input.chatId, '{chatId}', false);
82
- const query = (0, smithy_client_1.map)({
83
- [_c]: [, input[_c]],
84
- });
85
- let body;
86
- b.m("GET")
87
- .h(headers)
88
- .q(query)
89
- .b(body);
90
- return b.build();
91
- };
92
- exports.se_GetChatCommand = se_GetChatCommand;
93
- const se_GetChatAnnotationsCommand = async (input, context) => {
94
- const b = (0, core_2.requestBuilder)(input, context);
95
- const headers = {};
96
- b.bp("/v2/history/chats/{chatId}/annotations");
97
- b.p('chatId', () => input.chatId, '{chatId}', false);
98
- const query = (0, smithy_client_1.map)({
99
- [_c]: [, input[_c]],
100
- });
101
- let body;
102
- b.m("GET")
103
- .h(headers)
104
- .q(query)
105
- .b(body);
106
- return b.build();
107
- };
108
- exports.se_GetChatAnnotationsCommand = se_GetChatAnnotationsCommand;
109
- const se_GetChatTranscriptionCommand = async (input, context) => {
110
- const b = (0, core_2.requestBuilder)(input, context);
111
- const headers = {};
112
- b.bp("/v2/history/chats/{chatId}/transcription");
113
- b.p('chatId', () => input.chatId, '{chatId}', false);
114
- const query = (0, smithy_client_1.map)({
115
- [_c]: [, input[_c]],
116
- });
117
- let body;
118
- b.m("GET")
119
- .h(headers)
120
- .q(query)
121
- .b(body);
122
- return b.build();
123
- };
124
- exports.se_GetChatTranscriptionCommand = se_GetChatTranscriptionCommand;
125
- const se_GetChatTranscriptionTextCommand = async (input, context) => {
126
- const b = (0, core_2.requestBuilder)(input, context);
127
- const headers = {};
128
- b.bp("/v2/history/chats/{chatId}/transcription/text");
129
- b.p('chatId', () => input.chatId, '{chatId}', false);
130
- const query = (0, smithy_client_1.map)({
131
- [_c]: [, input[_c]],
132
- });
133
- let body;
134
- b.m("GET")
135
- .h(headers)
136
- .q(query)
137
- .b(body);
138
- return b.build();
139
- };
140
- exports.se_GetChatTranscriptionTextCommand = se_GetChatTranscriptionTextCommand;
141
- const se_GetConferenceCommand = async (input, context) => {
142
- const b = (0, core_2.requestBuilder)(input, context);
143
- const headers = {};
144
- b.bp("/v2/history/conferences/{conferenceId}");
145
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
146
- const query = (0, smithy_client_1.map)({
147
- [_c]: [, input[_c]],
148
- });
149
- let body;
150
- b.m("GET")
151
- .h(headers)
152
- .q(query)
153
- .b(body);
154
- return b.build();
155
- };
156
- exports.se_GetConferenceCommand = se_GetConferenceCommand;
157
- const se_GetConferenceAnnotationsCommand = async (input, context) => {
158
- const b = (0, core_2.requestBuilder)(input, context);
159
- const headers = {};
160
- b.bp("/v2/history/conferences/{conferenceId}/annotations");
161
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
162
- const query = (0, smithy_client_1.map)({
163
- [_c]: [, input[_c]],
164
- });
165
- let body;
166
- b.m("GET")
167
- .h(headers)
168
- .q(query)
169
- .b(body);
170
- return b.build();
171
- };
172
- exports.se_GetConferenceAnnotationsCommand = se_GetConferenceAnnotationsCommand;
173
- const se_GetConferenceTranscriptionCommand = async (input, context) => {
174
- const b = (0, core_2.requestBuilder)(input, context);
175
- const headers = {};
176
- b.bp("/v2/history/conferences/{conferenceId}/transcription");
177
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
178
- const query = (0, smithy_client_1.map)({
179
- [_c]: [, input[_c]],
180
- });
181
- let body;
182
- b.m("GET")
183
- .h(headers)
184
- .q(query)
185
- .b(body);
186
- return b.build();
187
- };
188
- exports.se_GetConferenceTranscriptionCommand = se_GetConferenceTranscriptionCommand;
189
- const se_GetConferenceTranscriptionTextCommand = async (input, context) => {
190
- const b = (0, core_2.requestBuilder)(input, context);
191
- const headers = {};
192
- b.bp("/v2/history/conferences/{conferenceId}/transcription/text");
193
- b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
194
- const query = (0, smithy_client_1.map)({
195
- [_c]: [, input[_c]],
196
- });
197
- let body;
198
- b.m("GET")
199
- .h(headers)
200
- .q(query)
201
- .b(body);
202
- return b.build();
203
- };
204
- exports.se_GetConferenceTranscriptionTextCommand = se_GetConferenceTranscriptionTextCommand;
205
- const se_QueryConversationsCommand = async (input, context) => {
206
- const b = (0, core_2.requestBuilder)(input, context);
207
- const headers = {
208
- 'content-type': 'application/json',
209
- };
210
- b.bp("/v2/history/conversations");
211
- const query = (0, smithy_client_1.map)({
212
- [_c]: [, input[_c]],
213
- [_u]: [, input[_u]],
214
- });
215
- let body;
216
- body = JSON.stringify((0, smithy_client_1.take)(input, {
217
- 'filter': _ => se_QueryConversationsFilter(_, context),
218
- 'limit': [],
219
- 'offset': [],
220
- }));
221
- b.m("POST")
222
- .h(headers)
223
- .q(query)
224
- .b(body);
225
- return b.build();
226
- };
227
- exports.se_QueryConversationsCommand = se_QueryConversationsCommand;
228
- const se_QueryUserCallsCommand = async (input, context) => {
229
- const b = (0, core_2.requestBuilder)(input, context);
230
- const headers = {
231
- 'content-type': 'application/json',
232
- };
233
- b.bp("/v2/history/user/calls");
234
- const query = (0, smithy_client_1.map)({
235
- [_c]: [, input[_c]],
236
- [_u]: [, input[_u]],
237
- });
238
- let body;
239
- body = JSON.stringify((0, smithy_client_1.take)(input, {
240
- 'filter': _ => se_QueryUserCallsFilter(_, context),
241
- 'limit': [],
242
- 'offset': [],
243
- }));
244
- b.m("POST")
245
- .h(headers)
246
- .q(query)
247
- .b(body);
248
- return b.build();
249
- };
250
- exports.se_QueryUserCallsCommand = se_QueryUserCallsCommand;
251
- const se_UpdateCallCommand = async (input, context) => {
252
- const b = (0, core_2.requestBuilder)(input, context);
253
- const headers = {
254
- 'content-type': 'application/json',
255
- };
256
- b.bp("/v2/history/calls/{callId}/flows/{flowIndex}");
257
- b.p('callId', () => input.callId, '{callId}', false);
258
- b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
259
- const query = (0, smithy_client_1.map)({
260
- [_c]: [, input[_cI]],
261
- });
262
- let body;
263
- body = JSON.stringify((0, smithy_client_1.take)(input, {
264
- 'tags': _ => (0, smithy_client_1._json)(_),
265
- }));
266
- b.m("PUT")
267
- .h(headers)
268
- .q(query)
269
- .b(body);
270
- return b.build();
271
- };
272
- exports.se_UpdateCallCommand = se_UpdateCallCommand;
273
- const de_GetCallCommand = async (output, context) => {
274
- if (output.statusCode !== 200 && output.statusCode >= 300) {
275
- return de_CommandError(output, context);
276
- }
277
- const contents = (0, smithy_client_1.map)({
278
- $metadata: deserializeMetadata(output),
279
- });
280
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
281
- const doc = (0, smithy_client_1.take)(data, {
282
- 'call': smithy_client_1._json,
283
- });
284
- Object.assign(contents, doc);
285
- return contents;
286
- };
287
- exports.de_GetCallCommand = de_GetCallCommand;
288
- const de_GetCallAnnotationsCommand = async (output, context) => {
289
- if (output.statusCode !== 200 && output.statusCode >= 300) {
290
- return de_CommandError(output, context);
291
- }
292
- const contents = (0, smithy_client_1.map)({
293
- $metadata: deserializeMetadata(output),
294
- });
295
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
296
- const doc = (0, smithy_client_1.take)(data, {
297
- 'annotations': _ => de_CallAnnotationsRecord(_, context),
298
- });
299
- Object.assign(contents, doc);
300
- return contents;
301
- };
302
- exports.de_GetCallAnnotationsCommand = de_GetCallAnnotationsCommand;
303
- const de_GetCallTranscriptionCommand = async (output, context) => {
304
- if (output.statusCode !== 200 && output.statusCode >= 300) {
305
- return de_CommandError(output, context);
306
- }
307
- const contents = (0, smithy_client_1.map)({
308
- $metadata: deserializeMetadata(output),
309
- });
310
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
311
- const doc = (0, smithy_client_1.take)(data, {
312
- 'interaction': _ => de_CallTranscriptionInteractionRecord(_, context),
313
- 'transcription': _ => de_CallTranscriptionRecord(_, context),
314
- });
315
- Object.assign(contents, doc);
316
- return contents;
317
- };
318
- exports.de_GetCallTranscriptionCommand = de_GetCallTranscriptionCommand;
319
- const de_GetCallTranscriptionTextCommand = async (output, context) => {
320
- if (output.statusCode !== 200 && output.statusCode >= 300) {
321
- return de_CommandError(output, context);
322
- }
323
- const contents = (0, smithy_client_1.map)({
324
- $metadata: deserializeMetadata(output),
325
- });
326
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
327
- const doc = (0, smithy_client_1.take)(data, {
328
- 'chunks': smithy_client_1._json,
329
- 'filename': smithy_client_1.expectString,
330
- 'text': smithy_client_1.expectString,
331
- });
332
- Object.assign(contents, doc);
333
- return contents;
334
- };
335
- exports.de_GetCallTranscriptionTextCommand = de_GetCallTranscriptionTextCommand;
336
- const de_GetChatCommand = async (output, context) => {
337
- if (output.statusCode !== 200 && output.statusCode >= 300) {
338
- return de_CommandError(output, context);
339
- }
340
- const contents = (0, smithy_client_1.map)({
341
- $metadata: deserializeMetadata(output),
342
- });
343
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
344
- const doc = (0, smithy_client_1.take)(data, {
345
- 'chat': smithy_client_1._json,
346
- });
347
- Object.assign(contents, doc);
348
- return contents;
349
- };
350
- exports.de_GetChatCommand = de_GetChatCommand;
351
- const de_GetChatAnnotationsCommand = async (output, context) => {
352
- if (output.statusCode !== 200 && output.statusCode >= 300) {
353
- return de_CommandError(output, context);
354
- }
355
- const contents = (0, smithy_client_1.map)({
356
- $metadata: deserializeMetadata(output),
357
- });
358
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
359
- const doc = (0, smithy_client_1.take)(data, {
360
- 'annotations': _ => de_ChatAnnotationsRecord(_, context),
361
- });
362
- Object.assign(contents, doc);
363
- return contents;
364
- };
365
- exports.de_GetChatAnnotationsCommand = de_GetChatAnnotationsCommand;
366
- const de_GetChatTranscriptionCommand = async (output, context) => {
367
- if (output.statusCode !== 200 && output.statusCode >= 300) {
368
- return de_CommandError(output, context);
369
- }
370
- const contents = (0, smithy_client_1.map)({
371
- $metadata: deserializeMetadata(output),
372
- });
373
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
374
- const doc = (0, smithy_client_1.take)(data, {
375
- 'transcription': smithy_client_1._json,
376
- });
377
- Object.assign(contents, doc);
378
- return contents;
379
- };
380
- exports.de_GetChatTranscriptionCommand = de_GetChatTranscriptionCommand;
381
- const de_GetChatTranscriptionTextCommand = async (output, context) => {
382
- if (output.statusCode !== 200 && output.statusCode >= 300) {
383
- return de_CommandError(output, context);
384
- }
385
- const contents = (0, smithy_client_1.map)({
386
- $metadata: deserializeMetadata(output),
387
- });
388
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
389
- const doc = (0, smithy_client_1.take)(data, {
390
- 'filename': smithy_client_1.expectString,
391
- 'messages': smithy_client_1._json,
392
- 'text': smithy_client_1.expectString,
393
- });
394
- Object.assign(contents, doc);
395
- return contents;
396
- };
397
- exports.de_GetChatTranscriptionTextCommand = de_GetChatTranscriptionTextCommand;
398
- const de_GetConferenceCommand = async (output, context) => {
399
- if (output.statusCode !== 200 && output.statusCode >= 300) {
400
- return de_CommandError(output, context);
401
- }
402
- const contents = (0, smithy_client_1.map)({
403
- $metadata: deserializeMetadata(output),
404
- });
405
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
406
- const doc = (0, smithy_client_1.take)(data, {
407
- 'conference': smithy_client_1._json,
408
- });
409
- Object.assign(contents, doc);
410
- return contents;
411
- };
412
- exports.de_GetConferenceCommand = de_GetConferenceCommand;
413
- const de_GetConferenceAnnotationsCommand = async (output, context) => {
414
- if (output.statusCode !== 200 && output.statusCode >= 300) {
415
- return de_CommandError(output, context);
416
- }
417
- const contents = (0, smithy_client_1.map)({
418
- $metadata: deserializeMetadata(output),
419
- });
420
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
421
- const doc = (0, smithy_client_1.take)(data, {
422
- 'annotations': _ => de_ConferenceAnnotationsRecord(_, context),
423
- });
424
- Object.assign(contents, doc);
425
- return contents;
426
- };
427
- exports.de_GetConferenceAnnotationsCommand = de_GetConferenceAnnotationsCommand;
428
- const de_GetConferenceTranscriptionCommand = async (output, context) => {
429
- if (output.statusCode !== 200 && output.statusCode >= 300) {
430
- return de_CommandError(output, context);
431
- }
432
- const contents = (0, smithy_client_1.map)({
433
- $metadata: deserializeMetadata(output),
434
- });
435
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
436
- const doc = (0, smithy_client_1.take)(data, {
437
- 'interaction': _ => de_ConferenceTranscriptionInteractionRecord(_, context),
438
- 'transcription': smithy_client_1._json,
439
- });
440
- Object.assign(contents, doc);
441
- return contents;
442
- };
443
- exports.de_GetConferenceTranscriptionCommand = de_GetConferenceTranscriptionCommand;
444
- const de_GetConferenceTranscriptionTextCommand = async (output, context) => {
445
- if (output.statusCode !== 200 && output.statusCode >= 300) {
446
- return de_CommandError(output, context);
447
- }
448
- const contents = (0, smithy_client_1.map)({
449
- $metadata: deserializeMetadata(output),
450
- });
451
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
452
- const doc = (0, smithy_client_1.take)(data, {
453
- 'chunks': smithy_client_1._json,
454
- 'filename': smithy_client_1.expectString,
455
- 'text': smithy_client_1.expectString,
456
- });
457
- Object.assign(contents, doc);
458
- return contents;
459
- };
460
- exports.de_GetConferenceTranscriptionTextCommand = de_GetConferenceTranscriptionTextCommand;
461
- const de_QueryConversationsCommand = async (output, context) => {
462
- if (output.statusCode !== 200 && output.statusCode >= 300) {
463
- return de_CommandError(output, context);
464
- }
465
- const contents = (0, smithy_client_1.map)({
466
- $metadata: deserializeMetadata(output),
467
- });
468
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
469
- const doc = (0, smithy_client_1.take)(data, {
470
- 'conversations': smithy_client_1._json,
471
- });
472
- Object.assign(contents, doc);
473
- return contents;
474
- };
475
- exports.de_QueryConversationsCommand = de_QueryConversationsCommand;
476
- const de_QueryUserCallsCommand = async (output, context) => {
477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
478
- return de_CommandError(output, context);
479
- }
480
- const contents = (0, smithy_client_1.map)({
481
- $metadata: deserializeMetadata(output),
482
- });
483
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
484
- const doc = (0, smithy_client_1.take)(data, {
485
- 'calls': smithy_client_1._json,
486
- });
487
- Object.assign(contents, doc);
488
- return contents;
489
- };
490
- exports.de_QueryUserCallsCommand = de_QueryUserCallsCommand;
491
- const de_UpdateCallCommand = async (output, context) => {
492
- if (output.statusCode !== 200 && output.statusCode >= 300) {
493
- return de_CommandError(output, context);
494
- }
495
- const contents = (0, smithy_client_1.map)({
496
- $metadata: deserializeMetadata(output),
497
- });
498
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
499
- const doc = (0, smithy_client_1.take)(data, {
500
- 'call': smithy_client_1._json,
501
- });
502
- Object.assign(contents, doc);
503
- return contents;
504
- };
505
- exports.de_UpdateCallCommand = de_UpdateCallCommand;
506
- const de_CommandError = async (output, context) => {
507
- const parsedOutput = {
508
- ...output,
509
- body: await (0, core_1.parseJsonErrorBody)(output.body, context)
510
- };
511
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
512
- switch (errorCode) {
513
- case "CallNotFoundException":
514
- case "wildix.wda.history#CallNotFoundException":
515
- throw await de_CallNotFoundExceptionRes(parsedOutput, context);
516
- case "ForbiddenException":
517
- case "smithy.framework#ForbiddenException":
518
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
519
- case "ValidationException":
520
- case "smithy.framework#ValidationException":
521
- throw await de_ValidationExceptionRes(parsedOutput, context);
522
- case "CallAnnotationsNotFoundException":
523
- case "wildix.wda.history#CallAnnotationsNotFoundException":
524
- throw await de_CallAnnotationsNotFoundExceptionRes(parsedOutput, context);
525
- case "CallTranscriptionNotFoundException":
526
- case "wildix.wda.history#CallTranscriptionNotFoundException":
527
- throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
528
- case "ChatNotFoundException":
529
- case "wildix.wda.history#ChatNotFoundException":
530
- throw await de_ChatNotFoundExceptionRes(parsedOutput, context);
531
- case "ChatAnnotationsNotFoundException":
532
- case "wildix.wda.history#ChatAnnotationsNotFoundException":
533
- throw await de_ChatAnnotationsNotFoundExceptionRes(parsedOutput, context);
534
- case "ChatTranscriptionNotFoundException":
535
- case "wildix.wda.history#ChatTranscriptionNotFoundException":
536
- throw await de_ChatTranscriptionNotFoundExceptionRes(parsedOutput, context);
537
- case "ConferenceNotFoundException":
538
- case "wildix.wda.history#ConferenceNotFoundException":
539
- throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
540
- case "ConferenceAnnotationsNotFoundException":
541
- case "wildix.wda.history#ConferenceAnnotationsNotFoundException":
542
- throw await de_ConferenceAnnotationsNotFoundExceptionRes(parsedOutput, context);
543
- case "ConferenceTranscriptionNotFoundException":
544
- case "wildix.wda.history#ConferenceTranscriptionNotFoundException":
545
- throw await de_ConferenceTranscriptionNotFoundExceptionRes(parsedOutput, context);
546
- default:
547
- const parsedBody = parsedOutput.body;
548
- return throwDefaultError({
549
- output,
550
- parsedBody,
551
- errorCode
552
- });
553
- }
554
- };
555
- const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaHistoryServiceException_1.WdaHistoryServiceException);
556
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
557
- const contents = (0, smithy_client_1.map)({});
558
- const data = parsedOutput.body;
559
- const doc = (0, smithy_client_1.take)(data, {
560
- 'message': smithy_client_1.expectString,
561
- });
562
- Object.assign(contents, doc);
563
- const exception = new models_0_1.ForbiddenException({
564
- $metadata: deserializeMetadata(parsedOutput),
565
- ...contents
566
- });
567
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
568
- };
569
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
570
- const contents = (0, smithy_client_1.map)({});
571
- const data = parsedOutput.body;
572
- const doc = (0, smithy_client_1.take)(data, {
573
- 'message': smithy_client_1.expectString,
574
- });
575
- Object.assign(contents, doc);
576
- const exception = new models_0_1.ValidationException({
577
- $metadata: deserializeMetadata(parsedOutput),
578
- ...contents
579
- });
580
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
581
- };
582
- const de_CallAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
583
- const contents = (0, smithy_client_1.map)({});
584
- const data = parsedOutput.body;
585
- const doc = (0, smithy_client_1.take)(data, {
586
- 'message': smithy_client_1.expectString,
587
- });
588
- Object.assign(contents, doc);
589
- const exception = new models_0_1.CallAnnotationsNotFoundException({
590
- $metadata: deserializeMetadata(parsedOutput),
591
- ...contents
592
- });
593
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
594
- };
595
- const de_CallNotFoundExceptionRes = async (parsedOutput, context) => {
596
- const contents = (0, smithy_client_1.map)({});
597
- const data = parsedOutput.body;
598
- const doc = (0, smithy_client_1.take)(data, {
599
- 'message': smithy_client_1.expectString,
600
- });
601
- Object.assign(contents, doc);
602
- const exception = new models_0_1.CallNotFoundException({
603
- $metadata: deserializeMetadata(parsedOutput),
604
- ...contents
605
- });
606
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
607
- };
608
- const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
609
- const contents = (0, smithy_client_1.map)({});
610
- const data = parsedOutput.body;
611
- const doc = (0, smithy_client_1.take)(data, {
612
- 'message': smithy_client_1.expectString,
613
- });
614
- Object.assign(contents, doc);
615
- const exception = new models_0_1.CallTranscriptionNotFoundException({
616
- $metadata: deserializeMetadata(parsedOutput),
617
- ...contents
618
- });
619
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
620
- };
621
- const de_ChatAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
622
- const contents = (0, smithy_client_1.map)({});
623
- const data = parsedOutput.body;
624
- const doc = (0, smithy_client_1.take)(data, {
625
- 'message': smithy_client_1.expectString,
626
- });
627
- Object.assign(contents, doc);
628
- const exception = new models_0_1.ChatAnnotationsNotFoundException({
629
- $metadata: deserializeMetadata(parsedOutput),
630
- ...contents
631
- });
632
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
633
- };
634
- const de_ChatNotFoundExceptionRes = async (parsedOutput, context) => {
635
- const contents = (0, smithy_client_1.map)({});
636
- const data = parsedOutput.body;
637
- const doc = (0, smithy_client_1.take)(data, {
638
- 'message': smithy_client_1.expectString,
639
- });
640
- Object.assign(contents, doc);
641
- const exception = new models_0_1.ChatNotFoundException({
642
- $metadata: deserializeMetadata(parsedOutput),
643
- ...contents
644
- });
645
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
646
- };
647
- const de_ChatTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
648
- const contents = (0, smithy_client_1.map)({});
649
- const data = parsedOutput.body;
650
- const doc = (0, smithy_client_1.take)(data, {
651
- 'message': smithy_client_1.expectString,
652
- });
653
- Object.assign(contents, doc);
654
- const exception = new models_0_1.ChatTranscriptionNotFoundException({
655
- $metadata: deserializeMetadata(parsedOutput),
656
- ...contents
657
- });
658
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
659
- };
660
- const de_ConferenceAnnotationsNotFoundExceptionRes = async (parsedOutput, context) => {
661
- const contents = (0, smithy_client_1.map)({});
662
- const data = parsedOutput.body;
663
- const doc = (0, smithy_client_1.take)(data, {
664
- 'message': smithy_client_1.expectString,
665
- });
666
- Object.assign(contents, doc);
667
- const exception = new models_0_1.ConferenceAnnotationsNotFoundException({
668
- $metadata: deserializeMetadata(parsedOutput),
669
- ...contents
670
- });
671
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
672
- };
673
- const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
674
- const contents = (0, smithy_client_1.map)({});
675
- const data = parsedOutput.body;
676
- const doc = (0, smithy_client_1.take)(data, {
677
- 'message': smithy_client_1.expectString,
678
- });
679
- Object.assign(contents, doc);
680
- const exception = new models_0_1.ConferenceNotFoundException({
681
- $metadata: deserializeMetadata(parsedOutput),
682
- ...contents
683
- });
684
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
685
- };
686
- const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
687
- const contents = (0, smithy_client_1.map)({});
688
- const data = parsedOutput.body;
689
- const doc = (0, smithy_client_1.take)(data, {
690
- 'message': smithy_client_1.expectString,
691
- });
692
- Object.assign(contents, doc);
693
- const exception = new models_0_1.ConferenceTranscriptionNotFoundException({
694
- $metadata: deserializeMetadata(parsedOutput),
695
- ...contents
696
- });
697
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
698
- };
699
- const se_QueryConversationsFilter = (input, context) => {
700
- return (0, smithy_client_1.take)(input, {
701
- 'direction': [],
702
- 'flags': smithy_client_1._json,
703
- 'from': smithy_client_1.serializeDateTime,
704
- 'hasAttachment': [],
705
- 'search': [],
706
- 'status': [],
707
- 'tags': smithy_client_1._json,
708
- 'to': smithy_client_1.serializeDateTime,
709
- });
710
- };
711
- const se_QueryUserCallsFilter = (input, context) => {
712
- return (0, smithy_client_1.take)(input, {
713
- 'direction': [],
714
- 'flags': smithy_client_1._json,
715
- 'from': smithy_client_1.serializeDateTime,
716
- 'hasAttachment': [],
717
- 'search': [],
718
- 'status': [],
719
- 'tags': smithy_client_1._json,
720
- 'to': smithy_client_1.serializeDateTime,
721
- 'userDirection': [],
722
- });
723
- };
724
- const de_Document = (output, context) => {
725
- return output;
726
- };
727
- const de_CallAnnotationsRecord = (output, context) => {
728
- return (0, smithy_client_1.take)(output, {
729
- 'annotations': (_) => de_Annotations(_, context),
730
- 'callStartTime': smithy_client_1.expectLong,
731
- 'company': smithy_client_1.expectString,
732
- 'flowIndex': smithy_client_1.expectInt32,
733
- 'flowStartTime': smithy_client_1.expectLong,
734
- 'id': smithy_client_1.expectString,
735
- 'licenses': smithy_client_1._json,
736
- 'pbx': smithy_client_1.expectString,
737
- 'time': smithy_client_1.expectLong,
738
- 'type': smithy_client_1.expectString,
739
- });
740
- };
741
- const de_CallTranscriptionInteractionRecord = (output, context) => {
742
- return (0, smithy_client_1.take)(output, {
743
- 'interruptions': smithy_client_1.expectInt32,
744
- 'longestCustomerStory': smithy_client_1.expectInt32,
745
- 'longestMonologue': smithy_client_1.expectInt32,
746
- 'participants': smithy_client_1._json,
747
- 'patience': smithy_client_1.limitedParseFloat32,
748
- 'talkRatio': smithy_client_1.expectInt32,
749
- 'wordsPerMinute': smithy_client_1.expectInt32,
750
- });
751
- };
752
- const de_CallTranscriptionRecord = (output, context) => {
753
- return (0, smithy_client_1.take)(output, {
754
- 'callStartTime': smithy_client_1.expectLong,
755
- 'chunks': (_) => de_CallTranscriptionChunksList(_, context),
756
- 'company': smithy_client_1.expectString,
757
- 'flowIndex': smithy_client_1.expectInt32,
758
- 'flowStartTime': smithy_client_1.expectLong,
759
- 'id': smithy_client_1.expectString,
760
- 'licenses': smithy_client_1._json,
761
- 'pbx': smithy_client_1.expectString,
762
- 'time': smithy_client_1.expectLong,
763
- 'type': smithy_client_1.expectString,
764
- });
765
- };
766
- const de_ChatAnnotationsRecord = (output, context) => {
767
- return (0, smithy_client_1.take)(output, {
768
- 'annotations': (_) => de_Annotations(_, context),
769
- 'chatId': smithy_client_1.expectString,
770
- 'company': smithy_client_1.expectString,
771
- 'id': smithy_client_1.expectString,
772
- 'time': smithy_client_1.expectLong,
773
- 'type': smithy_client_1.expectString,
774
- });
775
- };
776
- const de_ConferenceAnnotationsRecord = (output, context) => {
777
- return (0, smithy_client_1.take)(output, {
778
- 'annotations': (_) => de_Annotations(_, context),
779
- 'company': smithy_client_1.expectString,
780
- 'id': smithy_client_1.expectString,
781
- 'time': smithy_client_1.expectLong,
782
- 'type': smithy_client_1.expectString,
783
- });
784
- };
785
- const de_ConferenceTranscriptionInteractionRecord = (output, context) => {
786
- return (0, smithy_client_1.take)(output, {
787
- 'interruptions': smithy_client_1.expectInt32,
788
- 'longestCustomerStory': smithy_client_1.expectInt32,
789
- 'longestMonologue': smithy_client_1.expectInt32,
790
- 'participants': smithy_client_1._json,
791
- 'patience': smithy_client_1.limitedParseFloat32,
792
- 'talkRatio': smithy_client_1.expectInt32,
793
- 'wordsPerMinute': smithy_client_1.expectInt32,
794
- });
795
- };
796
- const de_Annotation = (output, context) => {
797
- return (0, smithy_client_1.take)(output, {
798
- 'id': smithy_client_1.expectString,
799
- 'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
800
- 'source': smithy_client_1._json,
801
- 'time': smithy_client_1.expectLong,
802
- });
803
- };
804
- const de_AnnotationPayload = (output, context) => {
805
- if (output.result != null) {
806
- return {
807
- result: de_AnnotationResultValue(output.result, context)
808
- };
809
- }
810
- if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
811
- return { tag: (0, smithy_client_1.expectString)(output.tag) };
812
- }
813
- if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
814
- return { text: (0, smithy_client_1.expectString)(output.text) };
815
- }
816
- if (output.variables != null) {
817
- return {
818
- variables: de_AnnotationVariablesValue(output.variables, context)
819
- };
820
- }
821
- return { $unknown: Object.entries(output)[0] };
822
- };
823
- const de_AnnotationResultValue = (output, context) => {
824
- return (0, smithy_client_1.take)(output, {
825
- 'value': (_) => de_Document(_, context),
826
- });
827
- };
828
- const de_Annotations = (output, context) => {
829
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
830
- return de_Annotation(entry, context);
831
- });
832
- return retVal;
833
- };
834
- const de_AnnotationVariablesValue = (output, context) => {
835
- return (0, smithy_client_1.take)(output, {
836
- 'value': (_) => de_Document(_, context),
837
- });
838
- };
839
- const de_CallTranscriptionChunk = (output, context) => {
840
- return (0, smithy_client_1.take)(output, {
841
- 'confidence': smithy_client_1.limitedParseDouble,
842
- 'end': smithy_client_1.expectLong,
843
- 'id': smithy_client_1.expectString,
844
- 'isFinal': smithy_client_1.expectBoolean,
845
- 'language': smithy_client_1.expectString,
846
- 'sentiment': smithy_client_1.expectString,
847
- 'speaker': smithy_client_1.expectString,
848
- 'start': smithy_client_1.expectLong,
849
- 'text': smithy_client_1.expectString,
850
- 'time': smithy_client_1.expectLong,
851
- });
852
- };
853
- const de_CallTranscriptionChunksList = (output, context) => {
854
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
855
- return de_CallTranscriptionChunk(entry, context);
856
- });
857
- return retVal;
858
- };
859
- const deserializeMetadata = (output) => ({
860
- httpStatusCode: output.statusCode,
861
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
862
- extendedRequestId: output.headers["x-amz-id-2"],
863
- cfId: output.headers["x-amz-cf-id"],
864
- });
865
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
866
- const _c = "company";
867
- const _cI = "companyId";
868
- const _u = "user";