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