@aws-sdk/client-transcribe 3.312.0 → 3.316.0
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/Transcribe.js +43 -546
- package/dist-cjs/protocols/Aws_json1_1.js +383 -1405
- package/dist-es/Transcribe.js +43 -546
- package/dist-es/protocols/Aws_json1_1.js +385 -1407
- package/dist-types/Transcribe.d.ts +68 -395
- package/dist-types/ts3.4/Transcribe.d.ts +4 -1
- package/package.json +6 -6
|
@@ -9,273 +9,273 @@ const TranscribeServiceException_1 = require("../models/TranscribeServiceExcepti
|
|
|
9
9
|
const se_CreateCallAnalyticsCategoryCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("CreateCallAnalyticsCategory");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_CreateCallAnalyticsCategoryCommand = se_CreateCallAnalyticsCategoryCommand;
|
|
16
16
|
const se_CreateLanguageModelCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("CreateLanguageModel");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_CreateLanguageModelCommand = se_CreateLanguageModelCommand;
|
|
23
23
|
const se_CreateMedicalVocabularyCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateMedicalVocabulary");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_CreateMedicalVocabularyCommand = se_CreateMedicalVocabularyCommand;
|
|
30
30
|
const se_CreateVocabularyCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("CreateVocabulary");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_CreateVocabularyCommand = se_CreateVocabularyCommand;
|
|
37
37
|
const se_CreateVocabularyFilterCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("CreateVocabularyFilter");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_CreateVocabularyFilterCommand = se_CreateVocabularyFilterCommand;
|
|
44
44
|
const se_DeleteCallAnalyticsCategoryCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("DeleteCallAnalyticsCategory");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_DeleteCallAnalyticsCategoryCommand = se_DeleteCallAnalyticsCategoryCommand;
|
|
51
51
|
const se_DeleteCallAnalyticsJobCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("DeleteCallAnalyticsJob");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_DeleteCallAnalyticsJobCommand = se_DeleteCallAnalyticsJobCommand;
|
|
58
58
|
const se_DeleteLanguageModelCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("DeleteLanguageModel");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_DeleteLanguageModelCommand = se_DeleteLanguageModelCommand;
|
|
65
65
|
const se_DeleteMedicalTranscriptionJobCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteMedicalTranscriptionJob");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_DeleteMedicalTranscriptionJobCommand = se_DeleteMedicalTranscriptionJobCommand;
|
|
72
72
|
const se_DeleteMedicalVocabularyCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("DeleteMedicalVocabulary");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_DeleteMedicalVocabularyCommand = se_DeleteMedicalVocabularyCommand;
|
|
79
79
|
const se_DeleteTranscriptionJobCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("DeleteTranscriptionJob");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_DeleteTranscriptionJobCommand = se_DeleteTranscriptionJobCommand;
|
|
86
86
|
const se_DeleteVocabularyCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("DeleteVocabulary");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_DeleteVocabularyCommand = se_DeleteVocabularyCommand;
|
|
93
93
|
const se_DeleteVocabularyFilterCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("DeleteVocabularyFilter");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_DeleteVocabularyFilterCommand = se_DeleteVocabularyFilterCommand;
|
|
100
100
|
const se_DescribeLanguageModelCommand = async (input, context) => {
|
|
101
101
|
const headers = sharedHeaders("DescribeLanguageModel");
|
|
102
102
|
let body;
|
|
103
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
105
|
};
|
|
106
106
|
exports.se_DescribeLanguageModelCommand = se_DescribeLanguageModelCommand;
|
|
107
107
|
const se_GetCallAnalyticsCategoryCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("GetCallAnalyticsCategory");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
exports.se_GetCallAnalyticsCategoryCommand = se_GetCallAnalyticsCategoryCommand;
|
|
114
114
|
const se_GetCallAnalyticsJobCommand = async (input, context) => {
|
|
115
115
|
const headers = sharedHeaders("GetCallAnalyticsJob");
|
|
116
116
|
let body;
|
|
117
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
119
|
};
|
|
120
120
|
exports.se_GetCallAnalyticsJobCommand = se_GetCallAnalyticsJobCommand;
|
|
121
121
|
const se_GetMedicalTranscriptionJobCommand = async (input, context) => {
|
|
122
122
|
const headers = sharedHeaders("GetMedicalTranscriptionJob");
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
127
|
exports.se_GetMedicalTranscriptionJobCommand = se_GetMedicalTranscriptionJobCommand;
|
|
128
128
|
const se_GetMedicalVocabularyCommand = async (input, context) => {
|
|
129
129
|
const headers = sharedHeaders("GetMedicalVocabulary");
|
|
130
130
|
let body;
|
|
131
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
133
|
};
|
|
134
134
|
exports.se_GetMedicalVocabularyCommand = se_GetMedicalVocabularyCommand;
|
|
135
135
|
const se_GetTranscriptionJobCommand = async (input, context) => {
|
|
136
136
|
const headers = sharedHeaders("GetTranscriptionJob");
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
141
|
exports.se_GetTranscriptionJobCommand = se_GetTranscriptionJobCommand;
|
|
142
142
|
const se_GetVocabularyCommand = async (input, context) => {
|
|
143
143
|
const headers = sharedHeaders("GetVocabulary");
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
148
|
exports.se_GetVocabularyCommand = se_GetVocabularyCommand;
|
|
149
149
|
const se_GetVocabularyFilterCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("GetVocabularyFilter");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
exports.se_GetVocabularyFilterCommand = se_GetVocabularyFilterCommand;
|
|
156
156
|
const se_ListCallAnalyticsCategoriesCommand = async (input, context) => {
|
|
157
157
|
const headers = sharedHeaders("ListCallAnalyticsCategories");
|
|
158
158
|
let body;
|
|
159
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
162
|
exports.se_ListCallAnalyticsCategoriesCommand = se_ListCallAnalyticsCategoriesCommand;
|
|
163
163
|
const se_ListCallAnalyticsJobsCommand = async (input, context) => {
|
|
164
164
|
const headers = sharedHeaders("ListCallAnalyticsJobs");
|
|
165
165
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
168
|
};
|
|
169
169
|
exports.se_ListCallAnalyticsJobsCommand = se_ListCallAnalyticsJobsCommand;
|
|
170
170
|
const se_ListLanguageModelsCommand = async (input, context) => {
|
|
171
171
|
const headers = sharedHeaders("ListLanguageModels");
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
176
|
exports.se_ListLanguageModelsCommand = se_ListLanguageModelsCommand;
|
|
177
177
|
const se_ListMedicalTranscriptionJobsCommand = async (input, context) => {
|
|
178
178
|
const headers = sharedHeaders("ListMedicalTranscriptionJobs");
|
|
179
179
|
let body;
|
|
180
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
182
|
};
|
|
183
183
|
exports.se_ListMedicalTranscriptionJobsCommand = se_ListMedicalTranscriptionJobsCommand;
|
|
184
184
|
const se_ListMedicalVocabulariesCommand = async (input, context) => {
|
|
185
185
|
const headers = sharedHeaders("ListMedicalVocabularies");
|
|
186
186
|
let body;
|
|
187
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
189
|
};
|
|
190
190
|
exports.se_ListMedicalVocabulariesCommand = se_ListMedicalVocabulariesCommand;
|
|
191
191
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("ListTagsForResource");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
198
198
|
const se_ListTranscriptionJobsCommand = async (input, context) => {
|
|
199
199
|
const headers = sharedHeaders("ListTranscriptionJobs");
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
204
|
exports.se_ListTranscriptionJobsCommand = se_ListTranscriptionJobsCommand;
|
|
205
205
|
const se_ListVocabulariesCommand = async (input, context) => {
|
|
206
206
|
const headers = sharedHeaders("ListVocabularies");
|
|
207
207
|
let body;
|
|
208
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
210
|
};
|
|
211
211
|
exports.se_ListVocabulariesCommand = se_ListVocabulariesCommand;
|
|
212
212
|
const se_ListVocabularyFiltersCommand = async (input, context) => {
|
|
213
213
|
const headers = sharedHeaders("ListVocabularyFilters");
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
218
|
exports.se_ListVocabularyFiltersCommand = se_ListVocabularyFiltersCommand;
|
|
219
219
|
const se_StartCallAnalyticsJobCommand = async (input, context) => {
|
|
220
220
|
const headers = sharedHeaders("StartCallAnalyticsJob");
|
|
221
221
|
let body;
|
|
222
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
224
|
};
|
|
225
225
|
exports.se_StartCallAnalyticsJobCommand = se_StartCallAnalyticsJobCommand;
|
|
226
226
|
const se_StartMedicalTranscriptionJobCommand = async (input, context) => {
|
|
227
227
|
const headers = sharedHeaders("StartMedicalTranscriptionJob");
|
|
228
228
|
let body;
|
|
229
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
231
|
};
|
|
232
232
|
exports.se_StartMedicalTranscriptionJobCommand = se_StartMedicalTranscriptionJobCommand;
|
|
233
233
|
const se_StartTranscriptionJobCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("StartTranscriptionJob");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
exports.se_StartTranscriptionJobCommand = se_StartTranscriptionJobCommand;
|
|
240
240
|
const se_TagResourceCommand = async (input, context) => {
|
|
241
241
|
const headers = sharedHeaders("TagResource");
|
|
242
242
|
let body;
|
|
243
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
245
|
};
|
|
246
246
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
247
247
|
const se_UntagResourceCommand = async (input, context) => {
|
|
248
248
|
const headers = sharedHeaders("UntagResource");
|
|
249
249
|
let body;
|
|
250
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
252
|
};
|
|
253
253
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
254
254
|
const se_UpdateCallAnalyticsCategoryCommand = async (input, context) => {
|
|
255
255
|
const headers = sharedHeaders("UpdateCallAnalyticsCategory");
|
|
256
256
|
let body;
|
|
257
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
259
|
};
|
|
260
260
|
exports.se_UpdateCallAnalyticsCategoryCommand = se_UpdateCallAnalyticsCategoryCommand;
|
|
261
261
|
const se_UpdateMedicalVocabularyCommand = async (input, context) => {
|
|
262
262
|
const headers = sharedHeaders("UpdateMedicalVocabulary");
|
|
263
263
|
let body;
|
|
264
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
265
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
266
|
};
|
|
267
267
|
exports.se_UpdateMedicalVocabularyCommand = se_UpdateMedicalVocabularyCommand;
|
|
268
268
|
const se_UpdateVocabularyCommand = async (input, context) => {
|
|
269
269
|
const headers = sharedHeaders("UpdateVocabulary");
|
|
270
270
|
let body;
|
|
271
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
273
|
};
|
|
274
274
|
exports.se_UpdateVocabularyCommand = se_UpdateVocabularyCommand;
|
|
275
275
|
const se_UpdateVocabularyFilterCommand = async (input, context) => {
|
|
276
276
|
const headers = sharedHeaders("UpdateVocabularyFilter");
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
279
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
280
|
};
|
|
281
281
|
exports.se_UpdateVocabularyFilterCommand = se_UpdateVocabularyFilterCommand;
|
|
@@ -290,7 +290,7 @@ const de_CreateCallAnalyticsCategoryCommand = async (output, context) => {
|
|
|
290
290
|
$metadata: deserializeMetadata(output),
|
|
291
291
|
...contents,
|
|
292
292
|
};
|
|
293
|
-
return
|
|
293
|
+
return response;
|
|
294
294
|
};
|
|
295
295
|
exports.de_CreateCallAnalyticsCategoryCommand = de_CreateCallAnalyticsCategoryCommand;
|
|
296
296
|
const de_CreateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
@@ -314,10 +314,9 @@ const de_CreateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
|
314
314
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
315
315
|
default:
|
|
316
316
|
const parsedBody = parsedOutput.body;
|
|
317
|
-
|
|
317
|
+
return throwDefaultError({
|
|
318
318
|
output,
|
|
319
319
|
parsedBody,
|
|
320
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
321
320
|
errorCode,
|
|
322
321
|
});
|
|
323
322
|
}
|
|
@@ -328,12 +327,12 @@ const de_CreateLanguageModelCommand = async (output, context) => {
|
|
|
328
327
|
}
|
|
329
328
|
const data = await parseBody(output.body, context);
|
|
330
329
|
let contents = {};
|
|
331
|
-
contents =
|
|
330
|
+
contents = (0, smithy_client_1._json)(data);
|
|
332
331
|
const response = {
|
|
333
332
|
$metadata: deserializeMetadata(output),
|
|
334
333
|
...contents,
|
|
335
334
|
};
|
|
336
|
-
return
|
|
335
|
+
return response;
|
|
337
336
|
};
|
|
338
337
|
exports.de_CreateLanguageModelCommand = de_CreateLanguageModelCommand;
|
|
339
338
|
const de_CreateLanguageModelCommandError = async (output, context) => {
|
|
@@ -357,10 +356,9 @@ const de_CreateLanguageModelCommandError = async (output, context) => {
|
|
|
357
356
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
358
357
|
default:
|
|
359
358
|
const parsedBody = parsedOutput.body;
|
|
360
|
-
|
|
359
|
+
return throwDefaultError({
|
|
361
360
|
output,
|
|
362
361
|
parsedBody,
|
|
363
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
364
362
|
errorCode,
|
|
365
363
|
});
|
|
366
364
|
}
|
|
@@ -376,7 +374,7 @@ const de_CreateMedicalVocabularyCommand = async (output, context) => {
|
|
|
376
374
|
$metadata: deserializeMetadata(output),
|
|
377
375
|
...contents,
|
|
378
376
|
};
|
|
379
|
-
return
|
|
377
|
+
return response;
|
|
380
378
|
};
|
|
381
379
|
exports.de_CreateMedicalVocabularyCommand = de_CreateMedicalVocabularyCommand;
|
|
382
380
|
const de_CreateMedicalVocabularyCommandError = async (output, context) => {
|
|
@@ -400,10 +398,9 @@ const de_CreateMedicalVocabularyCommandError = async (output, context) => {
|
|
|
400
398
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
401
399
|
default:
|
|
402
400
|
const parsedBody = parsedOutput.body;
|
|
403
|
-
|
|
401
|
+
return throwDefaultError({
|
|
404
402
|
output,
|
|
405
403
|
parsedBody,
|
|
406
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
407
404
|
errorCode,
|
|
408
405
|
});
|
|
409
406
|
}
|
|
@@ -419,7 +416,7 @@ const de_CreateVocabularyCommand = async (output, context) => {
|
|
|
419
416
|
$metadata: deserializeMetadata(output),
|
|
420
417
|
...contents,
|
|
421
418
|
};
|
|
422
|
-
return
|
|
419
|
+
return response;
|
|
423
420
|
};
|
|
424
421
|
exports.de_CreateVocabularyCommand = de_CreateVocabularyCommand;
|
|
425
422
|
const de_CreateVocabularyCommandError = async (output, context) => {
|
|
@@ -443,10 +440,9 @@ const de_CreateVocabularyCommandError = async (output, context) => {
|
|
|
443
440
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
444
441
|
default:
|
|
445
442
|
const parsedBody = parsedOutput.body;
|
|
446
|
-
|
|
443
|
+
return throwDefaultError({
|
|
447
444
|
output,
|
|
448
445
|
parsedBody,
|
|
449
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
450
446
|
errorCode,
|
|
451
447
|
});
|
|
452
448
|
}
|
|
@@ -462,7 +458,7 @@ const de_CreateVocabularyFilterCommand = async (output, context) => {
|
|
|
462
458
|
$metadata: deserializeMetadata(output),
|
|
463
459
|
...contents,
|
|
464
460
|
};
|
|
465
|
-
return
|
|
461
|
+
return response;
|
|
466
462
|
};
|
|
467
463
|
exports.de_CreateVocabularyFilterCommand = de_CreateVocabularyFilterCommand;
|
|
468
464
|
const de_CreateVocabularyFilterCommandError = async (output, context) => {
|
|
@@ -486,10 +482,9 @@ const de_CreateVocabularyFilterCommandError = async (output, context) => {
|
|
|
486
482
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
487
483
|
default:
|
|
488
484
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
|
|
485
|
+
return throwDefaultError({
|
|
490
486
|
output,
|
|
491
487
|
parsedBody,
|
|
492
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
493
488
|
errorCode,
|
|
494
489
|
});
|
|
495
490
|
}
|
|
@@ -500,12 +495,12 @@ const de_DeleteCallAnalyticsCategoryCommand = async (output, context) => {
|
|
|
500
495
|
}
|
|
501
496
|
const data = await parseBody(output.body, context);
|
|
502
497
|
let contents = {};
|
|
503
|
-
contents =
|
|
498
|
+
contents = (0, smithy_client_1._json)(data);
|
|
504
499
|
const response = {
|
|
505
500
|
$metadata: deserializeMetadata(output),
|
|
506
501
|
...contents,
|
|
507
502
|
};
|
|
508
|
-
return
|
|
503
|
+
return response;
|
|
509
504
|
};
|
|
510
505
|
exports.de_DeleteCallAnalyticsCategoryCommand = de_DeleteCallAnalyticsCategoryCommand;
|
|
511
506
|
const de_DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
@@ -529,10 +524,9 @@ const de_DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
|
529
524
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
530
525
|
default:
|
|
531
526
|
const parsedBody = parsedOutput.body;
|
|
532
|
-
|
|
527
|
+
return throwDefaultError({
|
|
533
528
|
output,
|
|
534
529
|
parsedBody,
|
|
535
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
536
530
|
errorCode,
|
|
537
531
|
});
|
|
538
532
|
}
|
|
@@ -543,12 +537,12 @@ const de_DeleteCallAnalyticsJobCommand = async (output, context) => {
|
|
|
543
537
|
}
|
|
544
538
|
const data = await parseBody(output.body, context);
|
|
545
539
|
let contents = {};
|
|
546
|
-
contents =
|
|
540
|
+
contents = (0, smithy_client_1._json)(data);
|
|
547
541
|
const response = {
|
|
548
542
|
$metadata: deserializeMetadata(output),
|
|
549
543
|
...contents,
|
|
550
544
|
};
|
|
551
|
-
return
|
|
545
|
+
return response;
|
|
552
546
|
};
|
|
553
547
|
exports.de_DeleteCallAnalyticsJobCommand = de_DeleteCallAnalyticsJobCommand;
|
|
554
548
|
const de_DeleteCallAnalyticsJobCommandError = async (output, context) => {
|
|
@@ -569,10 +563,9 @@ const de_DeleteCallAnalyticsJobCommandError = async (output, context) => {
|
|
|
569
563
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
570
564
|
default:
|
|
571
565
|
const parsedBody = parsedOutput.body;
|
|
572
|
-
|
|
566
|
+
return throwDefaultError({
|
|
573
567
|
output,
|
|
574
568
|
parsedBody,
|
|
575
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
576
569
|
errorCode,
|
|
577
570
|
});
|
|
578
571
|
}
|
|
@@ -585,7 +578,7 @@ const de_DeleteLanguageModelCommand = async (output, context) => {
|
|
|
585
578
|
const response = {
|
|
586
579
|
$metadata: deserializeMetadata(output),
|
|
587
580
|
};
|
|
588
|
-
return
|
|
581
|
+
return response;
|
|
589
582
|
};
|
|
590
583
|
exports.de_DeleteLanguageModelCommand = de_DeleteLanguageModelCommand;
|
|
591
584
|
const de_DeleteLanguageModelCommandError = async (output, context) => {
|
|
@@ -606,10 +599,9 @@ const de_DeleteLanguageModelCommandError = async (output, context) => {
|
|
|
606
599
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
607
600
|
default:
|
|
608
601
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
602
|
+
return throwDefaultError({
|
|
610
603
|
output,
|
|
611
604
|
parsedBody,
|
|
612
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
613
605
|
errorCode,
|
|
614
606
|
});
|
|
615
607
|
}
|
|
@@ -622,7 +614,7 @@ const de_DeleteMedicalTranscriptionJobCommand = async (output, context) => {
|
|
|
622
614
|
const response = {
|
|
623
615
|
$metadata: deserializeMetadata(output),
|
|
624
616
|
};
|
|
625
|
-
return
|
|
617
|
+
return response;
|
|
626
618
|
};
|
|
627
619
|
exports.de_DeleteMedicalTranscriptionJobCommand = de_DeleteMedicalTranscriptionJobCommand;
|
|
628
620
|
const de_DeleteMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -643,10 +635,9 @@ const de_DeleteMedicalTranscriptionJobCommandError = async (output, context) =>
|
|
|
643
635
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
644
636
|
default:
|
|
645
637
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
|
|
638
|
+
return throwDefaultError({
|
|
647
639
|
output,
|
|
648
640
|
parsedBody,
|
|
649
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
650
641
|
errorCode,
|
|
651
642
|
});
|
|
652
643
|
}
|
|
@@ -659,7 +650,7 @@ const de_DeleteMedicalVocabularyCommand = async (output, context) => {
|
|
|
659
650
|
const response = {
|
|
660
651
|
$metadata: deserializeMetadata(output),
|
|
661
652
|
};
|
|
662
|
-
return
|
|
653
|
+
return response;
|
|
663
654
|
};
|
|
664
655
|
exports.de_DeleteMedicalVocabularyCommand = de_DeleteMedicalVocabularyCommand;
|
|
665
656
|
const de_DeleteMedicalVocabularyCommandError = async (output, context) => {
|
|
@@ -683,10 +674,9 @@ const de_DeleteMedicalVocabularyCommandError = async (output, context) => {
|
|
|
683
674
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
684
675
|
default:
|
|
685
676
|
const parsedBody = parsedOutput.body;
|
|
686
|
-
|
|
677
|
+
return throwDefaultError({
|
|
687
678
|
output,
|
|
688
679
|
parsedBody,
|
|
689
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
690
680
|
errorCode,
|
|
691
681
|
});
|
|
692
682
|
}
|
|
@@ -699,7 +689,7 @@ const de_DeleteTranscriptionJobCommand = async (output, context) => {
|
|
|
699
689
|
const response = {
|
|
700
690
|
$metadata: deserializeMetadata(output),
|
|
701
691
|
};
|
|
702
|
-
return
|
|
692
|
+
return response;
|
|
703
693
|
};
|
|
704
694
|
exports.de_DeleteTranscriptionJobCommand = de_DeleteTranscriptionJobCommand;
|
|
705
695
|
const de_DeleteTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -720,10 +710,9 @@ const de_DeleteTranscriptionJobCommandError = async (output, context) => {
|
|
|
720
710
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
721
711
|
default:
|
|
722
712
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
713
|
+
return throwDefaultError({
|
|
724
714
|
output,
|
|
725
715
|
parsedBody,
|
|
726
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
727
716
|
errorCode,
|
|
728
717
|
});
|
|
729
718
|
}
|
|
@@ -736,7 +725,7 @@ const de_DeleteVocabularyCommand = async (output, context) => {
|
|
|
736
725
|
const response = {
|
|
737
726
|
$metadata: deserializeMetadata(output),
|
|
738
727
|
};
|
|
739
|
-
return
|
|
728
|
+
return response;
|
|
740
729
|
};
|
|
741
730
|
exports.de_DeleteVocabularyCommand = de_DeleteVocabularyCommand;
|
|
742
731
|
const de_DeleteVocabularyCommandError = async (output, context) => {
|
|
@@ -760,10 +749,9 @@ const de_DeleteVocabularyCommandError = async (output, context) => {
|
|
|
760
749
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
761
750
|
default:
|
|
762
751
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
752
|
+
return throwDefaultError({
|
|
764
753
|
output,
|
|
765
754
|
parsedBody,
|
|
766
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
767
755
|
errorCode,
|
|
768
756
|
});
|
|
769
757
|
}
|
|
@@ -776,7 +764,7 @@ const de_DeleteVocabularyFilterCommand = async (output, context) => {
|
|
|
776
764
|
const response = {
|
|
777
765
|
$metadata: deserializeMetadata(output),
|
|
778
766
|
};
|
|
779
|
-
return
|
|
767
|
+
return response;
|
|
780
768
|
};
|
|
781
769
|
exports.de_DeleteVocabularyFilterCommand = de_DeleteVocabularyFilterCommand;
|
|
782
770
|
const de_DeleteVocabularyFilterCommandError = async (output, context) => {
|
|
@@ -800,10 +788,9 @@ const de_DeleteVocabularyFilterCommandError = async (output, context) => {
|
|
|
800
788
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
801
789
|
default:
|
|
802
790
|
const parsedBody = parsedOutput.body;
|
|
803
|
-
|
|
791
|
+
return throwDefaultError({
|
|
804
792
|
output,
|
|
805
793
|
parsedBody,
|
|
806
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
807
794
|
errorCode,
|
|
808
795
|
});
|
|
809
796
|
}
|
|
@@ -819,7 +806,7 @@ const de_DescribeLanguageModelCommand = async (output, context) => {
|
|
|
819
806
|
$metadata: deserializeMetadata(output),
|
|
820
807
|
...contents,
|
|
821
808
|
};
|
|
822
|
-
return
|
|
809
|
+
return response;
|
|
823
810
|
};
|
|
824
811
|
exports.de_DescribeLanguageModelCommand = de_DescribeLanguageModelCommand;
|
|
825
812
|
const de_DescribeLanguageModelCommandError = async (output, context) => {
|
|
@@ -843,10 +830,9 @@ const de_DescribeLanguageModelCommandError = async (output, context) => {
|
|
|
843
830
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
844
831
|
default:
|
|
845
832
|
const parsedBody = parsedOutput.body;
|
|
846
|
-
|
|
833
|
+
return throwDefaultError({
|
|
847
834
|
output,
|
|
848
835
|
parsedBody,
|
|
849
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
850
836
|
errorCode,
|
|
851
837
|
});
|
|
852
838
|
}
|
|
@@ -862,7 +848,7 @@ const de_GetCallAnalyticsCategoryCommand = async (output, context) => {
|
|
|
862
848
|
$metadata: deserializeMetadata(output),
|
|
863
849
|
...contents,
|
|
864
850
|
};
|
|
865
|
-
return
|
|
851
|
+
return response;
|
|
866
852
|
};
|
|
867
853
|
exports.de_GetCallAnalyticsCategoryCommand = de_GetCallAnalyticsCategoryCommand;
|
|
868
854
|
const de_GetCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
@@ -886,10 +872,9 @@ const de_GetCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
|
886
872
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
887
873
|
default:
|
|
888
874
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
875
|
+
return throwDefaultError({
|
|
890
876
|
output,
|
|
891
877
|
parsedBody,
|
|
892
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
893
878
|
errorCode,
|
|
894
879
|
});
|
|
895
880
|
}
|
|
@@ -905,7 +890,7 @@ const de_GetCallAnalyticsJobCommand = async (output, context) => {
|
|
|
905
890
|
$metadata: deserializeMetadata(output),
|
|
906
891
|
...contents,
|
|
907
892
|
};
|
|
908
|
-
return
|
|
893
|
+
return response;
|
|
909
894
|
};
|
|
910
895
|
exports.de_GetCallAnalyticsJobCommand = de_GetCallAnalyticsJobCommand;
|
|
911
896
|
const de_GetCallAnalyticsJobCommandError = async (output, context) => {
|
|
@@ -929,10 +914,9 @@ const de_GetCallAnalyticsJobCommandError = async (output, context) => {
|
|
|
929
914
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
930
915
|
default:
|
|
931
916
|
const parsedBody = parsedOutput.body;
|
|
932
|
-
|
|
917
|
+
return throwDefaultError({
|
|
933
918
|
output,
|
|
934
919
|
parsedBody,
|
|
935
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
936
920
|
errorCode,
|
|
937
921
|
});
|
|
938
922
|
}
|
|
@@ -948,7 +932,7 @@ const de_GetMedicalTranscriptionJobCommand = async (output, context) => {
|
|
|
948
932
|
$metadata: deserializeMetadata(output),
|
|
949
933
|
...contents,
|
|
950
934
|
};
|
|
951
|
-
return
|
|
935
|
+
return response;
|
|
952
936
|
};
|
|
953
937
|
exports.de_GetMedicalTranscriptionJobCommand = de_GetMedicalTranscriptionJobCommand;
|
|
954
938
|
const de_GetMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -972,10 +956,9 @@ const de_GetMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
|
972
956
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
973
957
|
default:
|
|
974
958
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
|
|
959
|
+
return throwDefaultError({
|
|
976
960
|
output,
|
|
977
961
|
parsedBody,
|
|
978
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
979
962
|
errorCode,
|
|
980
963
|
});
|
|
981
964
|
}
|
|
@@ -991,7 +974,7 @@ const de_GetMedicalVocabularyCommand = async (output, context) => {
|
|
|
991
974
|
$metadata: deserializeMetadata(output),
|
|
992
975
|
...contents,
|
|
993
976
|
};
|
|
994
|
-
return
|
|
977
|
+
return response;
|
|
995
978
|
};
|
|
996
979
|
exports.de_GetMedicalVocabularyCommand = de_GetMedicalVocabularyCommand;
|
|
997
980
|
const de_GetMedicalVocabularyCommandError = async (output, context) => {
|
|
@@ -1015,10 +998,9 @@ const de_GetMedicalVocabularyCommandError = async (output, context) => {
|
|
|
1015
998
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1016
999
|
default:
|
|
1017
1000
|
const parsedBody = parsedOutput.body;
|
|
1018
|
-
|
|
1001
|
+
return throwDefaultError({
|
|
1019
1002
|
output,
|
|
1020
1003
|
parsedBody,
|
|
1021
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1022
1004
|
errorCode,
|
|
1023
1005
|
});
|
|
1024
1006
|
}
|
|
@@ -1034,7 +1016,7 @@ const de_GetTranscriptionJobCommand = async (output, context) => {
|
|
|
1034
1016
|
$metadata: deserializeMetadata(output),
|
|
1035
1017
|
...contents,
|
|
1036
1018
|
};
|
|
1037
|
-
return
|
|
1019
|
+
return response;
|
|
1038
1020
|
};
|
|
1039
1021
|
exports.de_GetTranscriptionJobCommand = de_GetTranscriptionJobCommand;
|
|
1040
1022
|
const de_GetTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -1058,10 +1040,9 @@ const de_GetTranscriptionJobCommandError = async (output, context) => {
|
|
|
1058
1040
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1059
1041
|
default:
|
|
1060
1042
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1043
|
+
return throwDefaultError({
|
|
1062
1044
|
output,
|
|
1063
1045
|
parsedBody,
|
|
1064
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1065
1046
|
errorCode,
|
|
1066
1047
|
});
|
|
1067
1048
|
}
|
|
@@ -1077,7 +1058,7 @@ const de_GetVocabularyCommand = async (output, context) => {
|
|
|
1077
1058
|
$metadata: deserializeMetadata(output),
|
|
1078
1059
|
...contents,
|
|
1079
1060
|
};
|
|
1080
|
-
return
|
|
1061
|
+
return response;
|
|
1081
1062
|
};
|
|
1082
1063
|
exports.de_GetVocabularyCommand = de_GetVocabularyCommand;
|
|
1083
1064
|
const de_GetVocabularyCommandError = async (output, context) => {
|
|
@@ -1101,10 +1082,9 @@ const de_GetVocabularyCommandError = async (output, context) => {
|
|
|
1101
1082
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1102
1083
|
default:
|
|
1103
1084
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
|
|
1085
|
+
return throwDefaultError({
|
|
1105
1086
|
output,
|
|
1106
1087
|
parsedBody,
|
|
1107
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1108
1088
|
errorCode,
|
|
1109
1089
|
});
|
|
1110
1090
|
}
|
|
@@ -1120,7 +1100,7 @@ const de_GetVocabularyFilterCommand = async (output, context) => {
|
|
|
1120
1100
|
$metadata: deserializeMetadata(output),
|
|
1121
1101
|
...contents,
|
|
1122
1102
|
};
|
|
1123
|
-
return
|
|
1103
|
+
return response;
|
|
1124
1104
|
};
|
|
1125
1105
|
exports.de_GetVocabularyFilterCommand = de_GetVocabularyFilterCommand;
|
|
1126
1106
|
const de_GetVocabularyFilterCommandError = async (output, context) => {
|
|
@@ -1144,10 +1124,9 @@ const de_GetVocabularyFilterCommandError = async (output, context) => {
|
|
|
1144
1124
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1145
1125
|
default:
|
|
1146
1126
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
|
|
1127
|
+
return throwDefaultError({
|
|
1148
1128
|
output,
|
|
1149
1129
|
parsedBody,
|
|
1150
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1151
1130
|
errorCode,
|
|
1152
1131
|
});
|
|
1153
1132
|
}
|
|
@@ -1163,7 +1142,7 @@ const de_ListCallAnalyticsCategoriesCommand = async (output, context) => {
|
|
|
1163
1142
|
$metadata: deserializeMetadata(output),
|
|
1164
1143
|
...contents,
|
|
1165
1144
|
};
|
|
1166
|
-
return
|
|
1145
|
+
return response;
|
|
1167
1146
|
};
|
|
1168
1147
|
exports.de_ListCallAnalyticsCategoriesCommand = de_ListCallAnalyticsCategoriesCommand;
|
|
1169
1148
|
const de_ListCallAnalyticsCategoriesCommandError = async (output, context) => {
|
|
@@ -1184,10 +1163,9 @@ const de_ListCallAnalyticsCategoriesCommandError = async (output, context) => {
|
|
|
1184
1163
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1185
1164
|
default:
|
|
1186
1165
|
const parsedBody = parsedOutput.body;
|
|
1187
|
-
|
|
1166
|
+
return throwDefaultError({
|
|
1188
1167
|
output,
|
|
1189
1168
|
parsedBody,
|
|
1190
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1191
1169
|
errorCode,
|
|
1192
1170
|
});
|
|
1193
1171
|
}
|
|
@@ -1203,7 +1181,7 @@ const de_ListCallAnalyticsJobsCommand = async (output, context) => {
|
|
|
1203
1181
|
$metadata: deserializeMetadata(output),
|
|
1204
1182
|
...contents,
|
|
1205
1183
|
};
|
|
1206
|
-
return
|
|
1184
|
+
return response;
|
|
1207
1185
|
};
|
|
1208
1186
|
exports.de_ListCallAnalyticsJobsCommand = de_ListCallAnalyticsJobsCommand;
|
|
1209
1187
|
const de_ListCallAnalyticsJobsCommandError = async (output, context) => {
|
|
@@ -1224,10 +1202,9 @@ const de_ListCallAnalyticsJobsCommandError = async (output, context) => {
|
|
|
1224
1202
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1225
1203
|
default:
|
|
1226
1204
|
const parsedBody = parsedOutput.body;
|
|
1227
|
-
|
|
1205
|
+
return throwDefaultError({
|
|
1228
1206
|
output,
|
|
1229
1207
|
parsedBody,
|
|
1230
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1231
1208
|
errorCode,
|
|
1232
1209
|
});
|
|
1233
1210
|
}
|
|
@@ -1243,7 +1220,7 @@ const de_ListLanguageModelsCommand = async (output, context) => {
|
|
|
1243
1220
|
$metadata: deserializeMetadata(output),
|
|
1244
1221
|
...contents,
|
|
1245
1222
|
};
|
|
1246
|
-
return
|
|
1223
|
+
return response;
|
|
1247
1224
|
};
|
|
1248
1225
|
exports.de_ListLanguageModelsCommand = de_ListLanguageModelsCommand;
|
|
1249
1226
|
const de_ListLanguageModelsCommandError = async (output, context) => {
|
|
@@ -1264,10 +1241,9 @@ const de_ListLanguageModelsCommandError = async (output, context) => {
|
|
|
1264
1241
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1265
1242
|
default:
|
|
1266
1243
|
const parsedBody = parsedOutput.body;
|
|
1267
|
-
|
|
1244
|
+
return throwDefaultError({
|
|
1268
1245
|
output,
|
|
1269
1246
|
parsedBody,
|
|
1270
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1271
1247
|
errorCode,
|
|
1272
1248
|
});
|
|
1273
1249
|
}
|
|
@@ -1283,7 +1259,7 @@ const de_ListMedicalTranscriptionJobsCommand = async (output, context) => {
|
|
|
1283
1259
|
$metadata: deserializeMetadata(output),
|
|
1284
1260
|
...contents,
|
|
1285
1261
|
};
|
|
1286
|
-
return
|
|
1262
|
+
return response;
|
|
1287
1263
|
};
|
|
1288
1264
|
exports.de_ListMedicalTranscriptionJobsCommand = de_ListMedicalTranscriptionJobsCommand;
|
|
1289
1265
|
const de_ListMedicalTranscriptionJobsCommandError = async (output, context) => {
|
|
@@ -1304,10 +1280,9 @@ const de_ListMedicalTranscriptionJobsCommandError = async (output, context) => {
|
|
|
1304
1280
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1305
1281
|
default:
|
|
1306
1282
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1283
|
+
return throwDefaultError({
|
|
1308
1284
|
output,
|
|
1309
1285
|
parsedBody,
|
|
1310
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1311
1286
|
errorCode,
|
|
1312
1287
|
});
|
|
1313
1288
|
}
|
|
@@ -1323,7 +1298,7 @@ const de_ListMedicalVocabulariesCommand = async (output, context) => {
|
|
|
1323
1298
|
$metadata: deserializeMetadata(output),
|
|
1324
1299
|
...contents,
|
|
1325
1300
|
};
|
|
1326
|
-
return
|
|
1301
|
+
return response;
|
|
1327
1302
|
};
|
|
1328
1303
|
exports.de_ListMedicalVocabulariesCommand = de_ListMedicalVocabulariesCommand;
|
|
1329
1304
|
const de_ListMedicalVocabulariesCommandError = async (output, context) => {
|
|
@@ -1344,10 +1319,9 @@ const de_ListMedicalVocabulariesCommandError = async (output, context) => {
|
|
|
1344
1319
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1345
1320
|
default:
|
|
1346
1321
|
const parsedBody = parsedOutput.body;
|
|
1347
|
-
|
|
1322
|
+
return throwDefaultError({
|
|
1348
1323
|
output,
|
|
1349
1324
|
parsedBody,
|
|
1350
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1351
1325
|
errorCode,
|
|
1352
1326
|
});
|
|
1353
1327
|
}
|
|
@@ -1358,12 +1332,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1358
1332
|
}
|
|
1359
1333
|
const data = await parseBody(output.body, context);
|
|
1360
1334
|
let contents = {};
|
|
1361
|
-
contents =
|
|
1335
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1362
1336
|
const response = {
|
|
1363
1337
|
$metadata: deserializeMetadata(output),
|
|
1364
1338
|
...contents,
|
|
1365
1339
|
};
|
|
1366
|
-
return
|
|
1340
|
+
return response;
|
|
1367
1341
|
};
|
|
1368
1342
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1369
1343
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1387,10 +1361,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1387
1361
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1388
1362
|
default:
|
|
1389
1363
|
const parsedBody = parsedOutput.body;
|
|
1390
|
-
|
|
1364
|
+
return throwDefaultError({
|
|
1391
1365
|
output,
|
|
1392
1366
|
parsedBody,
|
|
1393
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1394
1367
|
errorCode,
|
|
1395
1368
|
});
|
|
1396
1369
|
}
|
|
@@ -1406,7 +1379,7 @@ const de_ListTranscriptionJobsCommand = async (output, context) => {
|
|
|
1406
1379
|
$metadata: deserializeMetadata(output),
|
|
1407
1380
|
...contents,
|
|
1408
1381
|
};
|
|
1409
|
-
return
|
|
1382
|
+
return response;
|
|
1410
1383
|
};
|
|
1411
1384
|
exports.de_ListTranscriptionJobsCommand = de_ListTranscriptionJobsCommand;
|
|
1412
1385
|
const de_ListTranscriptionJobsCommandError = async (output, context) => {
|
|
@@ -1427,10 +1400,9 @@ const de_ListTranscriptionJobsCommandError = async (output, context) => {
|
|
|
1427
1400
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1428
1401
|
default:
|
|
1429
1402
|
const parsedBody = parsedOutput.body;
|
|
1430
|
-
|
|
1403
|
+
return throwDefaultError({
|
|
1431
1404
|
output,
|
|
1432
1405
|
parsedBody,
|
|
1433
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1434
1406
|
errorCode,
|
|
1435
1407
|
});
|
|
1436
1408
|
}
|
|
@@ -1446,7 +1418,7 @@ const de_ListVocabulariesCommand = async (output, context) => {
|
|
|
1446
1418
|
$metadata: deserializeMetadata(output),
|
|
1447
1419
|
...contents,
|
|
1448
1420
|
};
|
|
1449
|
-
return
|
|
1421
|
+
return response;
|
|
1450
1422
|
};
|
|
1451
1423
|
exports.de_ListVocabulariesCommand = de_ListVocabulariesCommand;
|
|
1452
1424
|
const de_ListVocabulariesCommandError = async (output, context) => {
|
|
@@ -1467,10 +1439,9 @@ const de_ListVocabulariesCommandError = async (output, context) => {
|
|
|
1467
1439
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1468
1440
|
default:
|
|
1469
1441
|
const parsedBody = parsedOutput.body;
|
|
1470
|
-
|
|
1442
|
+
return throwDefaultError({
|
|
1471
1443
|
output,
|
|
1472
1444
|
parsedBody,
|
|
1473
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1474
1445
|
errorCode,
|
|
1475
1446
|
});
|
|
1476
1447
|
}
|
|
@@ -1486,7 +1457,7 @@ const de_ListVocabularyFiltersCommand = async (output, context) => {
|
|
|
1486
1457
|
$metadata: deserializeMetadata(output),
|
|
1487
1458
|
...contents,
|
|
1488
1459
|
};
|
|
1489
|
-
return
|
|
1460
|
+
return response;
|
|
1490
1461
|
};
|
|
1491
1462
|
exports.de_ListVocabularyFiltersCommand = de_ListVocabularyFiltersCommand;
|
|
1492
1463
|
const de_ListVocabularyFiltersCommandError = async (output, context) => {
|
|
@@ -1507,10 +1478,9 @@ const de_ListVocabularyFiltersCommandError = async (output, context) => {
|
|
|
1507
1478
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1508
1479
|
default:
|
|
1509
1480
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
|
|
1481
|
+
return throwDefaultError({
|
|
1511
1482
|
output,
|
|
1512
1483
|
parsedBody,
|
|
1513
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1514
1484
|
errorCode,
|
|
1515
1485
|
});
|
|
1516
1486
|
}
|
|
@@ -1526,7 +1496,7 @@ const de_StartCallAnalyticsJobCommand = async (output, context) => {
|
|
|
1526
1496
|
$metadata: deserializeMetadata(output),
|
|
1527
1497
|
...contents,
|
|
1528
1498
|
};
|
|
1529
|
-
return
|
|
1499
|
+
return response;
|
|
1530
1500
|
};
|
|
1531
1501
|
exports.de_StartCallAnalyticsJobCommand = de_StartCallAnalyticsJobCommand;
|
|
1532
1502
|
const de_StartCallAnalyticsJobCommandError = async (output, context) => {
|
|
@@ -1550,10 +1520,9 @@ const de_StartCallAnalyticsJobCommandError = async (output, context) => {
|
|
|
1550
1520
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1551
1521
|
default:
|
|
1552
1522
|
const parsedBody = parsedOutput.body;
|
|
1553
|
-
|
|
1523
|
+
return throwDefaultError({
|
|
1554
1524
|
output,
|
|
1555
1525
|
parsedBody,
|
|
1556
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1557
1526
|
errorCode,
|
|
1558
1527
|
});
|
|
1559
1528
|
}
|
|
@@ -1569,7 +1538,7 @@ const de_StartMedicalTranscriptionJobCommand = async (output, context) => {
|
|
|
1569
1538
|
$metadata: deserializeMetadata(output),
|
|
1570
1539
|
...contents,
|
|
1571
1540
|
};
|
|
1572
|
-
return
|
|
1541
|
+
return response;
|
|
1573
1542
|
};
|
|
1574
1543
|
exports.de_StartMedicalTranscriptionJobCommand = de_StartMedicalTranscriptionJobCommand;
|
|
1575
1544
|
const de_StartMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -1593,10 +1562,9 @@ const de_StartMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
|
1593
1562
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1594
1563
|
default:
|
|
1595
1564
|
const parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1565
|
+
return throwDefaultError({
|
|
1597
1566
|
output,
|
|
1598
1567
|
parsedBody,
|
|
1599
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1600
1568
|
errorCode,
|
|
1601
1569
|
});
|
|
1602
1570
|
}
|
|
@@ -1612,7 +1580,7 @@ const de_StartTranscriptionJobCommand = async (output, context) => {
|
|
|
1612
1580
|
$metadata: deserializeMetadata(output),
|
|
1613
1581
|
...contents,
|
|
1614
1582
|
};
|
|
1615
|
-
return
|
|
1583
|
+
return response;
|
|
1616
1584
|
};
|
|
1617
1585
|
exports.de_StartTranscriptionJobCommand = de_StartTranscriptionJobCommand;
|
|
1618
1586
|
const de_StartTranscriptionJobCommandError = async (output, context) => {
|
|
@@ -1636,10 +1604,9 @@ const de_StartTranscriptionJobCommandError = async (output, context) => {
|
|
|
1636
1604
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1637
1605
|
default:
|
|
1638
1606
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1607
|
+
return throwDefaultError({
|
|
1640
1608
|
output,
|
|
1641
1609
|
parsedBody,
|
|
1642
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1643
1610
|
errorCode,
|
|
1644
1611
|
});
|
|
1645
1612
|
}
|
|
@@ -1650,12 +1617,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1650
1617
|
}
|
|
1651
1618
|
const data = await parseBody(output.body, context);
|
|
1652
1619
|
let contents = {};
|
|
1653
|
-
contents =
|
|
1620
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1654
1621
|
const response = {
|
|
1655
1622
|
$metadata: deserializeMetadata(output),
|
|
1656
1623
|
...contents,
|
|
1657
1624
|
};
|
|
1658
|
-
return
|
|
1625
|
+
return response;
|
|
1659
1626
|
};
|
|
1660
1627
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1661
1628
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1682,10 +1649,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1682
1649
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1683
1650
|
default:
|
|
1684
1651
|
const parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1652
|
+
return throwDefaultError({
|
|
1686
1653
|
output,
|
|
1687
1654
|
parsedBody,
|
|
1688
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1689
1655
|
errorCode,
|
|
1690
1656
|
});
|
|
1691
1657
|
}
|
|
@@ -1696,12 +1662,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1696
1662
|
}
|
|
1697
1663
|
const data = await parseBody(output.body, context);
|
|
1698
1664
|
let contents = {};
|
|
1699
|
-
contents =
|
|
1665
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1700
1666
|
const response = {
|
|
1701
1667
|
$metadata: deserializeMetadata(output),
|
|
1702
1668
|
...contents,
|
|
1703
1669
|
};
|
|
1704
|
-
return
|
|
1670
|
+
return response;
|
|
1705
1671
|
};
|
|
1706
1672
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1707
1673
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1728,10 +1694,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1728
1694
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1729
1695
|
default:
|
|
1730
1696
|
const parsedBody = parsedOutput.body;
|
|
1731
|
-
|
|
1697
|
+
return throwDefaultError({
|
|
1732
1698
|
output,
|
|
1733
1699
|
parsedBody,
|
|
1734
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1735
1700
|
errorCode,
|
|
1736
1701
|
});
|
|
1737
1702
|
}
|
|
@@ -1747,7 +1712,7 @@ const de_UpdateCallAnalyticsCategoryCommand = async (output, context) => {
|
|
|
1747
1712
|
$metadata: deserializeMetadata(output),
|
|
1748
1713
|
...contents,
|
|
1749
1714
|
};
|
|
1750
|
-
return
|
|
1715
|
+
return response;
|
|
1751
1716
|
};
|
|
1752
1717
|
exports.de_UpdateCallAnalyticsCategoryCommand = de_UpdateCallAnalyticsCategoryCommand;
|
|
1753
1718
|
const de_UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
@@ -1774,10 +1739,9 @@ const de_UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
|
1774
1739
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1775
1740
|
default:
|
|
1776
1741
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1742
|
+
return throwDefaultError({
|
|
1778
1743
|
output,
|
|
1779
1744
|
parsedBody,
|
|
1780
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1781
1745
|
errorCode,
|
|
1782
1746
|
});
|
|
1783
1747
|
}
|
|
@@ -1793,7 +1757,7 @@ const de_UpdateMedicalVocabularyCommand = async (output, context) => {
|
|
|
1793
1757
|
$metadata: deserializeMetadata(output),
|
|
1794
1758
|
...contents,
|
|
1795
1759
|
};
|
|
1796
|
-
return
|
|
1760
|
+
return response;
|
|
1797
1761
|
};
|
|
1798
1762
|
exports.de_UpdateMedicalVocabularyCommand = de_UpdateMedicalVocabularyCommand;
|
|
1799
1763
|
const de_UpdateMedicalVocabularyCommandError = async (output, context) => {
|
|
@@ -1820,10 +1784,9 @@ const de_UpdateMedicalVocabularyCommandError = async (output, context) => {
|
|
|
1820
1784
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1821
1785
|
default:
|
|
1822
1786
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1787
|
+
return throwDefaultError({
|
|
1824
1788
|
output,
|
|
1825
1789
|
parsedBody,
|
|
1826
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1827
1790
|
errorCode,
|
|
1828
1791
|
});
|
|
1829
1792
|
}
|
|
@@ -1839,7 +1802,7 @@ const de_UpdateVocabularyCommand = async (output, context) => {
|
|
|
1839
1802
|
$metadata: deserializeMetadata(output),
|
|
1840
1803
|
...contents,
|
|
1841
1804
|
};
|
|
1842
|
-
return
|
|
1805
|
+
return response;
|
|
1843
1806
|
};
|
|
1844
1807
|
exports.de_UpdateVocabularyCommand = de_UpdateVocabularyCommand;
|
|
1845
1808
|
const de_UpdateVocabularyCommandError = async (output, context) => {
|
|
@@ -1866,10 +1829,9 @@ const de_UpdateVocabularyCommandError = async (output, context) => {
|
|
|
1866
1829
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1867
1830
|
default:
|
|
1868
1831
|
const parsedBody = parsedOutput.body;
|
|
1869
|
-
|
|
1832
|
+
return throwDefaultError({
|
|
1870
1833
|
output,
|
|
1871
1834
|
parsedBody,
|
|
1872
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1873
1835
|
errorCode,
|
|
1874
1836
|
});
|
|
1875
1837
|
}
|
|
@@ -1885,7 +1847,7 @@ const de_UpdateVocabularyFilterCommand = async (output, context) => {
|
|
|
1885
1847
|
$metadata: deserializeMetadata(output),
|
|
1886
1848
|
...contents,
|
|
1887
1849
|
};
|
|
1888
|
-
return
|
|
1850
|
+
return response;
|
|
1889
1851
|
};
|
|
1890
1852
|
exports.de_UpdateVocabularyFilterCommand = de_UpdateVocabularyFilterCommand;
|
|
1891
1853
|
const de_UpdateVocabularyFilterCommandError = async (output, context) => {
|
|
@@ -1909,17 +1871,16 @@ const de_UpdateVocabularyFilterCommandError = async (output, context) => {
|
|
|
1909
1871
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1910
1872
|
default:
|
|
1911
1873
|
const parsedBody = parsedOutput.body;
|
|
1912
|
-
|
|
1874
|
+
return throwDefaultError({
|
|
1913
1875
|
output,
|
|
1914
1876
|
parsedBody,
|
|
1915
|
-
exceptionCtor: TranscribeServiceException_1.TranscribeServiceException,
|
|
1916
1877
|
errorCode,
|
|
1917
1878
|
});
|
|
1918
1879
|
}
|
|
1919
1880
|
};
|
|
1920
1881
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1921
1882
|
const body = parsedOutput.body;
|
|
1922
|
-
const deserialized =
|
|
1883
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1923
1884
|
const exception = new models_0_1.BadRequestException({
|
|
1924
1885
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1925
1886
|
...deserialized,
|
|
@@ -1928,7 +1889,7 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1928
1889
|
};
|
|
1929
1890
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1930
1891
|
const body = parsedOutput.body;
|
|
1931
|
-
const deserialized =
|
|
1892
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1932
1893
|
const exception = new models_0_1.ConflictException({
|
|
1933
1894
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1934
1895
|
...deserialized,
|
|
@@ -1937,7 +1898,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1937
1898
|
};
|
|
1938
1899
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1939
1900
|
const body = parsedOutput.body;
|
|
1940
|
-
const deserialized =
|
|
1901
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1941
1902
|
const exception = new models_0_1.InternalFailureException({
|
|
1942
1903
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1943
1904
|
...deserialized,
|
|
@@ -1946,7 +1907,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1946
1907
|
};
|
|
1947
1908
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1948
1909
|
const body = parsedOutput.body;
|
|
1949
|
-
const deserialized =
|
|
1910
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1950
1911
|
const exception = new models_0_1.LimitExceededException({
|
|
1951
1912
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1952
1913
|
...deserialized,
|
|
@@ -1955,1392 +1916,408 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1955
1916
|
};
|
|
1956
1917
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1957
1918
|
const body = parsedOutput.body;
|
|
1958
|
-
const deserialized =
|
|
1919
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1959
1920
|
const exception = new models_0_1.NotFoundException({
|
|
1960
1921
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1961
1922
|
...deserialized,
|
|
1962
1923
|
});
|
|
1963
1924
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1964
1925
|
};
|
|
1965
|
-
const se_AbsoluteTimeRange = (input, context) => {
|
|
1966
|
-
return {
|
|
1967
|
-
...(input.EndTime != null && { EndTime: input.EndTime }),
|
|
1968
|
-
...(input.First != null && { First: input.First }),
|
|
1969
|
-
...(input.Last != null && { Last: input.Last }),
|
|
1970
|
-
...(input.StartTime != null && { StartTime: input.StartTime }),
|
|
1971
|
-
};
|
|
1972
|
-
};
|
|
1973
|
-
const se_CallAnalyticsJobSettings = (input, context) => {
|
|
1974
|
-
return {
|
|
1975
|
-
...(input.ContentRedaction != null && { ContentRedaction: se_ContentRedaction(input.ContentRedaction, context) }),
|
|
1976
|
-
...(input.LanguageIdSettings != null && {
|
|
1977
|
-
LanguageIdSettings: se_LanguageIdSettingsMap(input.LanguageIdSettings, context),
|
|
1978
|
-
}),
|
|
1979
|
-
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
1980
|
-
...(input.LanguageOptions != null && { LanguageOptions: se_LanguageOptions(input.LanguageOptions, context) }),
|
|
1981
|
-
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
1982
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
1983
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
1984
|
-
};
|
|
1985
|
-
};
|
|
1986
|
-
const se_ChannelDefinition = (input, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
1989
|
-
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
1990
|
-
};
|
|
1991
|
-
};
|
|
1992
|
-
const se_ChannelDefinitions = (input, context) => {
|
|
1993
|
-
return input
|
|
1994
|
-
.filter((e) => e != null)
|
|
1995
|
-
.map((entry) => {
|
|
1996
|
-
return se_ChannelDefinition(entry, context);
|
|
1997
|
-
});
|
|
1998
|
-
};
|
|
1999
|
-
const se_ContentRedaction = (input, context) => {
|
|
2000
|
-
return {
|
|
2001
|
-
...(input.PiiEntityTypes != null && { PiiEntityTypes: se_PiiEntityTypes(input.PiiEntityTypes, context) }),
|
|
2002
|
-
...(input.RedactionOutput != null && { RedactionOutput: input.RedactionOutput }),
|
|
2003
|
-
...(input.RedactionType != null && { RedactionType: input.RedactionType }),
|
|
2004
|
-
};
|
|
2005
|
-
};
|
|
2006
|
-
const se_CreateCallAnalyticsCategoryRequest = (input, context) => {
|
|
2007
|
-
return {
|
|
2008
|
-
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2009
|
-
...(input.InputType != null && { InputType: input.InputType }),
|
|
2010
|
-
...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
|
|
2011
|
-
};
|
|
2012
|
-
};
|
|
2013
|
-
const se_CreateLanguageModelRequest = (input, context) => {
|
|
2014
|
-
return {
|
|
2015
|
-
...(input.BaseModelName != null && { BaseModelName: input.BaseModelName }),
|
|
2016
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
2017
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2018
|
-
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2019
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2020
|
-
};
|
|
2021
|
-
};
|
|
2022
|
-
const se_CreateMedicalVocabularyRequest = (input, context) => {
|
|
2023
|
-
return {
|
|
2024
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2025
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2026
|
-
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2027
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
const se_CreateVocabularyFilterRequest = (input, context) => {
|
|
2031
|
-
return {
|
|
2032
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2033
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2034
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2035
|
-
...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
|
|
2036
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2037
|
-
...(input.Words != null && { Words: se_Words(input.Words, context) }),
|
|
2038
|
-
};
|
|
2039
|
-
};
|
|
2040
|
-
const se_CreateVocabularyRequest = (input, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2043
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2044
|
-
...(input.Phrases != null && { Phrases: se_Phrases(input.Phrases, context) }),
|
|
2045
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2046
|
-
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2047
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
const se_DeleteCallAnalyticsCategoryRequest = (input, context) => {
|
|
2051
|
-
return {
|
|
2052
|
-
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2053
|
-
};
|
|
2054
|
-
};
|
|
2055
|
-
const se_DeleteCallAnalyticsJobRequest = (input, context) => {
|
|
2056
|
-
return {
|
|
2057
|
-
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2058
|
-
};
|
|
2059
|
-
};
|
|
2060
|
-
const se_DeleteLanguageModelRequest = (input, context) => {
|
|
2061
|
-
return {
|
|
2062
|
-
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2063
|
-
};
|
|
2064
|
-
};
|
|
2065
|
-
const se_DeleteMedicalTranscriptionJobRequest = (input, context) => {
|
|
2066
|
-
return {
|
|
2067
|
-
...(input.MedicalTranscriptionJobName != null && {
|
|
2068
|
-
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2069
|
-
}),
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
const se_DeleteMedicalVocabularyRequest = (input, context) => {
|
|
2073
|
-
return {
|
|
2074
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
const se_DeleteTranscriptionJobRequest = (input, context) => {
|
|
2078
|
-
return {
|
|
2079
|
-
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2080
|
-
};
|
|
2081
|
-
};
|
|
2082
|
-
const se_DeleteVocabularyFilterRequest = (input, context) => {
|
|
2083
|
-
return {
|
|
2084
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
const se_DeleteVocabularyRequest = (input, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const se_DescribeLanguageModelRequest = (input, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const se_GetCallAnalyticsCategoryRequest = (input, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
const se_GetCallAnalyticsJobRequest = (input, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const se_GetMedicalTranscriptionJobRequest = (input, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
...(input.MedicalTranscriptionJobName != null && {
|
|
2110
|
-
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2111
|
-
}),
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
const se_GetMedicalVocabularyRequest = (input, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
const se_GetTranscriptionJobRequest = (input, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2122
|
-
};
|
|
2123
|
-
};
|
|
2124
|
-
const se_GetVocabularyFilterRequest = (input, context) => {
|
|
2125
|
-
return {
|
|
2126
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2127
|
-
};
|
|
2128
|
-
};
|
|
2129
|
-
const se_GetVocabularyRequest = (input, context) => {
|
|
2130
|
-
return {
|
|
2131
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2132
|
-
};
|
|
2133
|
-
};
|
|
2134
|
-
const se_InputDataConfig = (input, context) => {
|
|
2135
|
-
return {
|
|
2136
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2137
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
2138
|
-
...(input.TuningDataS3Uri != null && { TuningDataS3Uri: input.TuningDataS3Uri }),
|
|
2139
|
-
};
|
|
2140
|
-
};
|
|
2141
|
-
const se_InterruptionFilter = (input, context) => {
|
|
2142
|
-
return {
|
|
2143
|
-
...(input.AbsoluteTimeRange != null && {
|
|
2144
|
-
AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2145
|
-
}),
|
|
2146
|
-
...(input.Negate != null && { Negate: input.Negate }),
|
|
2147
|
-
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2148
|
-
...(input.RelativeTimeRange != null && {
|
|
2149
|
-
RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2150
|
-
}),
|
|
2151
|
-
...(input.Threshold != null && { Threshold: input.Threshold }),
|
|
2152
|
-
};
|
|
2153
|
-
};
|
|
2154
|
-
const se_JobExecutionSettings = (input, context) => {
|
|
2155
|
-
return {
|
|
2156
|
-
...(input.AllowDeferredExecution != null && { AllowDeferredExecution: input.AllowDeferredExecution }),
|
|
2157
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
const se_KMSEncryptionContextMap = (input, context) => {
|
|
2161
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2162
|
-
if (value === null) {
|
|
2163
|
-
return acc;
|
|
2164
|
-
}
|
|
2165
|
-
acc[key] = value;
|
|
2166
|
-
return acc;
|
|
2167
|
-
}, {});
|
|
2168
|
-
};
|
|
2169
|
-
const se_LanguageIdSettings = (input, context) => {
|
|
2170
|
-
return {
|
|
2171
|
-
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
2172
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2173
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2174
|
-
};
|
|
2175
|
-
};
|
|
2176
|
-
const se_LanguageIdSettingsMap = (input, context) => {
|
|
2177
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2178
|
-
if (value === null) {
|
|
2179
|
-
return acc;
|
|
2180
|
-
}
|
|
2181
|
-
acc[key] = se_LanguageIdSettings(value, context);
|
|
2182
|
-
return acc;
|
|
2183
|
-
}, {});
|
|
2184
|
-
};
|
|
2185
|
-
const se_LanguageOptions = (input, context) => {
|
|
2186
|
-
return input
|
|
2187
|
-
.filter((e) => e != null)
|
|
2188
|
-
.map((entry) => {
|
|
2189
|
-
return entry;
|
|
2190
|
-
});
|
|
2191
|
-
};
|
|
2192
|
-
const se_ListCallAnalyticsCategoriesRequest = (input, context) => {
|
|
2193
|
-
return {
|
|
2194
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2195
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
const se_ListCallAnalyticsJobsRequest = (input, context) => {
|
|
2199
|
-
return {
|
|
2200
|
-
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2201
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2202
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2203
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const se_ListLanguageModelsRequest = (input, context) => {
|
|
2207
|
-
return {
|
|
2208
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2209
|
-
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2210
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2211
|
-
...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
const se_ListMedicalTranscriptionJobsRequest = (input, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2217
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2218
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2219
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const se_ListMedicalVocabulariesRequest = (input, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2225
|
-
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2226
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2227
|
-
...(input.StateEquals != null && { StateEquals: input.StateEquals }),
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2231
|
-
return {
|
|
2232
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const se_ListTranscriptionJobsRequest = (input, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2238
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2239
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2240
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
|
-
const se_ListVocabulariesRequest = (input, context) => {
|
|
2244
|
-
return {
|
|
2245
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2246
|
-
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2247
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2248
|
-
...(input.StateEquals != null && { StateEquals: input.StateEquals }),
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
const se_ListVocabularyFiltersRequest = (input, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2254
|
-
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2255
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2256
|
-
};
|
|
2257
|
-
};
|
|
2258
|
-
const se_Media = (input, context) => {
|
|
2259
|
-
return {
|
|
2260
|
-
...(input.MediaFileUri != null && { MediaFileUri: input.MediaFileUri }),
|
|
2261
|
-
...(input.RedactedMediaFileUri != null && { RedactedMediaFileUri: input.RedactedMediaFileUri }),
|
|
2262
|
-
};
|
|
2263
|
-
};
|
|
2264
|
-
const se_MedicalTranscriptionSetting = (input, context) => {
|
|
2265
|
-
return {
|
|
2266
|
-
...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
|
|
2267
|
-
...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
|
|
2268
|
-
...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
|
|
2269
|
-
...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
|
|
2270
|
-
...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2271
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2272
|
-
};
|
|
2273
|
-
};
|
|
2274
|
-
const se_ModelSettings = (input, context) => {
|
|
2275
|
-
return {
|
|
2276
|
-
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
const se_NonTalkTimeFilter = (input, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
...(input.AbsoluteTimeRange != null && {
|
|
2282
|
-
AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2283
|
-
}),
|
|
2284
|
-
...(input.Negate != null && { Negate: input.Negate }),
|
|
2285
|
-
...(input.RelativeTimeRange != null && {
|
|
2286
|
-
RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2287
|
-
}),
|
|
2288
|
-
...(input.Threshold != null && { Threshold: input.Threshold }),
|
|
2289
|
-
};
|
|
2290
|
-
};
|
|
2291
|
-
const se_Phrases = (input, context) => {
|
|
2292
|
-
return input
|
|
2293
|
-
.filter((e) => e != null)
|
|
2294
|
-
.map((entry) => {
|
|
2295
|
-
return entry;
|
|
2296
|
-
});
|
|
2297
|
-
};
|
|
2298
|
-
const se_PiiEntityTypes = (input, context) => {
|
|
2299
|
-
return input
|
|
2300
|
-
.filter((e) => e != null)
|
|
2301
|
-
.map((entry) => {
|
|
2302
|
-
return entry;
|
|
2303
|
-
});
|
|
2304
|
-
};
|
|
2305
|
-
const se_RelativeTimeRange = (input, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
...(input.EndPercentage != null && { EndPercentage: input.EndPercentage }),
|
|
2308
|
-
...(input.First != null && { First: input.First }),
|
|
2309
|
-
...(input.Last != null && { Last: input.Last }),
|
|
2310
|
-
...(input.StartPercentage != null && { StartPercentage: input.StartPercentage }),
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
|
-
const se_Rule = (input, context) => {
|
|
2314
|
-
return models_0_1.Rule.visit(input, {
|
|
2315
|
-
InterruptionFilter: (value) => ({ InterruptionFilter: se_InterruptionFilter(value, context) }),
|
|
2316
|
-
NonTalkTimeFilter: (value) => ({ NonTalkTimeFilter: se_NonTalkTimeFilter(value, context) }),
|
|
2317
|
-
SentimentFilter: (value) => ({ SentimentFilter: se_SentimentFilter(value, context) }),
|
|
2318
|
-
TranscriptFilter: (value) => ({ TranscriptFilter: se_TranscriptFilter(value, context) }),
|
|
2319
|
-
_: (name, value) => ({ name: value }),
|
|
2320
|
-
});
|
|
2321
|
-
};
|
|
2322
|
-
const se_RuleList = (input, context) => {
|
|
2323
|
-
return input
|
|
2324
|
-
.filter((e) => e != null)
|
|
2325
|
-
.map((entry) => {
|
|
2326
|
-
return se_Rule(entry, context);
|
|
2327
|
-
});
|
|
2328
|
-
};
|
|
2329
|
-
const se_SentimentFilter = (input, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
...(input.AbsoluteTimeRange != null && {
|
|
2332
|
-
AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2333
|
-
}),
|
|
2334
|
-
...(input.Negate != null && { Negate: input.Negate }),
|
|
2335
|
-
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2336
|
-
...(input.RelativeTimeRange != null && {
|
|
2337
|
-
RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2338
|
-
}),
|
|
2339
|
-
...(input.Sentiments != null && { Sentiments: se_SentimentValueList(input.Sentiments, context) }),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const se_SentimentValueList = (input, context) => {
|
|
2343
|
-
return input
|
|
2344
|
-
.filter((e) => e != null)
|
|
2345
|
-
.map((entry) => {
|
|
2346
|
-
return entry;
|
|
2347
|
-
});
|
|
2348
|
-
};
|
|
2349
|
-
const se_Settings = (input, context) => {
|
|
2350
|
-
return {
|
|
2351
|
-
...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
|
|
2352
|
-
...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
|
|
2353
|
-
...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
|
|
2354
|
-
...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
|
|
2355
|
-
...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2356
|
-
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
2357
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2358
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2359
|
-
};
|
|
2360
|
-
};
|
|
2361
|
-
const se_StartCallAnalyticsJobRequest = (input, context) => {
|
|
2362
|
-
return {
|
|
2363
|
-
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2364
|
-
...(input.ChannelDefinitions != null && {
|
|
2365
|
-
ChannelDefinitions: se_ChannelDefinitions(input.ChannelDefinitions, context),
|
|
2366
|
-
}),
|
|
2367
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2368
|
-
...(input.Media != null && { Media: se_Media(input.Media, context) }),
|
|
2369
|
-
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2370
|
-
...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
|
|
2371
|
-
...(input.Settings != null && { Settings: se_CallAnalyticsJobSettings(input.Settings, context) }),
|
|
2372
|
-
};
|
|
2373
|
-
};
|
|
2374
|
-
const se_StartMedicalTranscriptionJobRequest = (input, context) => {
|
|
2375
|
-
return {
|
|
2376
|
-
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
2377
|
-
...(input.KMSEncryptionContext != null && {
|
|
2378
|
-
KMSEncryptionContext: se_KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
2379
|
-
}),
|
|
2380
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2381
|
-
...(input.Media != null && { Media: se_Media(input.Media, context) }),
|
|
2382
|
-
...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
|
|
2383
|
-
...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
|
|
2384
|
-
...(input.MedicalTranscriptionJobName != null && {
|
|
2385
|
-
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2386
|
-
}),
|
|
2387
|
-
...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
|
|
2388
|
-
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2389
|
-
...(input.OutputKey != null && { OutputKey: input.OutputKey }),
|
|
2390
|
-
...(input.Settings != null && { Settings: se_MedicalTranscriptionSetting(input.Settings, context) }),
|
|
2391
|
-
...(input.Specialty != null && { Specialty: input.Specialty }),
|
|
2392
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2393
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const se_StartTranscriptionJobRequest = (input, context) => {
|
|
2397
|
-
return {
|
|
2398
|
-
...(input.ContentRedaction != null && { ContentRedaction: se_ContentRedaction(input.ContentRedaction, context) }),
|
|
2399
|
-
...(input.IdentifyLanguage != null && { IdentifyLanguage: input.IdentifyLanguage }),
|
|
2400
|
-
...(input.IdentifyMultipleLanguages != null && { IdentifyMultipleLanguages: input.IdentifyMultipleLanguages }),
|
|
2401
|
-
...(input.JobExecutionSettings != null && {
|
|
2402
|
-
JobExecutionSettings: se_JobExecutionSettings(input.JobExecutionSettings, context),
|
|
2403
|
-
}),
|
|
2404
|
-
...(input.KMSEncryptionContext != null && {
|
|
2405
|
-
KMSEncryptionContext: se_KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
2406
|
-
}),
|
|
2407
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2408
|
-
...(input.LanguageIdSettings != null && {
|
|
2409
|
-
LanguageIdSettings: se_LanguageIdSettingsMap(input.LanguageIdSettings, context),
|
|
2410
|
-
}),
|
|
2411
|
-
...(input.LanguageOptions != null && { LanguageOptions: se_LanguageOptions(input.LanguageOptions, context) }),
|
|
2412
|
-
...(input.Media != null && { Media: se_Media(input.Media, context) }),
|
|
2413
|
-
...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
|
|
2414
|
-
...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
|
|
2415
|
-
...(input.ModelSettings != null && { ModelSettings: se_ModelSettings(input.ModelSettings, context) }),
|
|
2416
|
-
...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
|
|
2417
|
-
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2418
|
-
...(input.OutputKey != null && { OutputKey: input.OutputKey }),
|
|
2419
|
-
...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
|
|
2420
|
-
...(input.Subtitles != null && { Subtitles: se_Subtitles(input.Subtitles, context) }),
|
|
2421
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2422
|
-
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
const se_StringTargetList = (input, context) => {
|
|
2426
|
-
return input
|
|
2427
|
-
.filter((e) => e != null)
|
|
2428
|
-
.map((entry) => {
|
|
2429
|
-
return entry;
|
|
2430
|
-
});
|
|
2431
|
-
};
|
|
2432
|
-
const se_SubtitleFormats = (input, context) => {
|
|
2433
|
-
return input
|
|
2434
|
-
.filter((e) => e != null)
|
|
2435
|
-
.map((entry) => {
|
|
2436
|
-
return entry;
|
|
2437
|
-
});
|
|
2438
|
-
};
|
|
2439
|
-
const se_Subtitles = (input, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
...(input.Formats != null && { Formats: se_SubtitleFormats(input.Formats, context) }),
|
|
2442
|
-
...(input.OutputStartIndex != null && { OutputStartIndex: input.OutputStartIndex }),
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
const se_Tag = (input, context) => {
|
|
2446
|
-
return {
|
|
2447
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2448
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
const se_TagKeyList = (input, context) => {
|
|
2452
|
-
return input
|
|
2453
|
-
.filter((e) => e != null)
|
|
2454
|
-
.map((entry) => {
|
|
2455
|
-
return entry;
|
|
2456
|
-
});
|
|
2457
|
-
};
|
|
2458
|
-
const se_TagList = (input, context) => {
|
|
2459
|
-
return input
|
|
2460
|
-
.filter((e) => e != null)
|
|
2461
|
-
.map((entry) => {
|
|
2462
|
-
return se_Tag(entry, context);
|
|
2463
|
-
});
|
|
2464
|
-
};
|
|
2465
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2466
|
-
return {
|
|
2467
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2468
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
const se_TranscriptFilter = (input, context) => {
|
|
2472
|
-
return {
|
|
2473
|
-
...(input.AbsoluteTimeRange != null && {
|
|
2474
|
-
AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2475
|
-
}),
|
|
2476
|
-
...(input.Negate != null && { Negate: input.Negate }),
|
|
2477
|
-
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2478
|
-
...(input.RelativeTimeRange != null && {
|
|
2479
|
-
RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2480
|
-
}),
|
|
2481
|
-
...(input.Targets != null && { Targets: se_StringTargetList(input.Targets, context) }),
|
|
2482
|
-
...(input.TranscriptFilterType != null && { TranscriptFilterType: input.TranscriptFilterType }),
|
|
2483
|
-
};
|
|
2484
|
-
};
|
|
2485
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2486
|
-
return {
|
|
2487
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2488
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2489
|
-
};
|
|
2490
|
-
};
|
|
2491
|
-
const se_UpdateCallAnalyticsCategoryRequest = (input, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2494
|
-
...(input.InputType != null && { InputType: input.InputType }),
|
|
2495
|
-
...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
|
|
2496
|
-
};
|
|
2497
|
-
};
|
|
2498
|
-
const se_UpdateMedicalVocabularyRequest = (input, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2501
|
-
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2502
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2503
|
-
};
|
|
2504
|
-
};
|
|
2505
|
-
const se_UpdateVocabularyFilterRequest = (input, context) => {
|
|
2506
|
-
return {
|
|
2507
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2508
|
-
...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
|
|
2509
|
-
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2510
|
-
...(input.Words != null && { Words: se_Words(input.Words, context) }),
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
|
-
const se_UpdateVocabularyRequest = (input, context) => {
|
|
2514
|
-
return {
|
|
2515
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2516
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2517
|
-
...(input.Phrases != null && { Phrases: se_Phrases(input.Phrases, context) }),
|
|
2518
|
-
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2519
|
-
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2520
|
-
};
|
|
2521
|
-
};
|
|
2522
|
-
const se_Words = (input, context) => {
|
|
2523
|
-
return input
|
|
2524
|
-
.filter((e) => e != null)
|
|
2525
|
-
.map((entry) => {
|
|
2526
|
-
return entry;
|
|
2527
|
-
});
|
|
2528
|
-
};
|
|
2529
|
-
const de_AbsoluteTimeRange = (output, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
EndTime: (0, smithy_client_1.expectLong)(output.EndTime),
|
|
2532
|
-
First: (0, smithy_client_1.expectLong)(output.First),
|
|
2533
|
-
Last: (0, smithy_client_1.expectLong)(output.Last),
|
|
2534
|
-
StartTime: (0, smithy_client_1.expectLong)(output.StartTime),
|
|
2535
|
-
};
|
|
2536
|
-
};
|
|
2537
|
-
const de_BadRequestException = (output, context) => {
|
|
2538
|
-
return {
|
|
2539
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2540
|
-
};
|
|
2541
|
-
};
|
|
2542
1926
|
const de_CallAnalyticsJob = (output, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
CallAnalyticsJobName:
|
|
2545
|
-
CallAnalyticsJobStatus:
|
|
2546
|
-
ChannelDefinitions:
|
|
2547
|
-
CompletionTime:
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
Settings: output.Settings != null ? de_CallAnalyticsJobSettings(output.Settings, context) : undefined,
|
|
2561
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2562
|
-
Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
const de_CallAnalyticsJobSettings = (output, context) => {
|
|
2566
|
-
return {
|
|
2567
|
-
ContentRedaction: output.ContentRedaction != null ? de_ContentRedaction(output.ContentRedaction, context) : undefined,
|
|
2568
|
-
LanguageIdSettings: output.LanguageIdSettings != null ? de_LanguageIdSettingsMap(output.LanguageIdSettings, context) : undefined,
|
|
2569
|
-
LanguageModelName: (0, smithy_client_1.expectString)(output.LanguageModelName),
|
|
2570
|
-
LanguageOptions: output.LanguageOptions != null ? de_LanguageOptions(output.LanguageOptions, context) : undefined,
|
|
2571
|
-
VocabularyFilterMethod: (0, smithy_client_1.expectString)(output.VocabularyFilterMethod),
|
|
2572
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
2573
|
-
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
2574
|
-
};
|
|
1927
|
+
return (0, smithy_client_1.take)(output, {
|
|
1928
|
+
CallAnalyticsJobName: smithy_client_1.expectString,
|
|
1929
|
+
CallAnalyticsJobStatus: smithy_client_1.expectString,
|
|
1930
|
+
ChannelDefinitions: smithy_client_1._json,
|
|
1931
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1932
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1933
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1934
|
+
FailureReason: smithy_client_1.expectString,
|
|
1935
|
+
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
1936
|
+
LanguageCode: smithy_client_1.expectString,
|
|
1937
|
+
Media: smithy_client_1._json,
|
|
1938
|
+
MediaFormat: smithy_client_1.expectString,
|
|
1939
|
+
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
1940
|
+
Settings: smithy_client_1._json,
|
|
1941
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1942
|
+
Transcript: smithy_client_1._json,
|
|
1943
|
+
});
|
|
2575
1944
|
};
|
|
2576
1945
|
const de_CallAnalyticsJobSummaries = (output, context) => {
|
|
2577
1946
|
const retVal = (output || [])
|
|
2578
1947
|
.filter((e) => e != null)
|
|
2579
1948
|
.map((entry) => {
|
|
2580
|
-
if (entry === null) {
|
|
2581
|
-
return null;
|
|
2582
|
-
}
|
|
2583
1949
|
return de_CallAnalyticsJobSummary(entry, context);
|
|
2584
1950
|
});
|
|
2585
1951
|
return retVal;
|
|
2586
1952
|
};
|
|
2587
1953
|
const de_CallAnalyticsJobSummary = (output, context) => {
|
|
2588
|
-
return {
|
|
2589
|
-
CallAnalyticsJobName:
|
|
2590
|
-
CallAnalyticsJobStatus:
|
|
2591
|
-
CompletionTime:
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
2598
|
-
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
2599
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2600
|
-
};
|
|
1954
|
+
return (0, smithy_client_1.take)(output, {
|
|
1955
|
+
CallAnalyticsJobName: smithy_client_1.expectString,
|
|
1956
|
+
CallAnalyticsJobStatus: smithy_client_1.expectString,
|
|
1957
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1958
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1959
|
+
FailureReason: smithy_client_1.expectString,
|
|
1960
|
+
LanguageCode: smithy_client_1.expectString,
|
|
1961
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1962
|
+
});
|
|
2601
1963
|
};
|
|
2602
1964
|
const de_CategoryProperties = (output, context) => {
|
|
2603
|
-
return {
|
|
2604
|
-
CategoryName:
|
|
2605
|
-
CreateTime:
|
|
2606
|
-
InputType:
|
|
2607
|
-
LastUpdateTime:
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
Rules: output.Rules != null ? de_RuleList(output.Rules, context) : undefined,
|
|
2611
|
-
};
|
|
1965
|
+
return (0, smithy_client_1.take)(output, {
|
|
1966
|
+
CategoryName: smithy_client_1.expectString,
|
|
1967
|
+
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1968
|
+
InputType: smithy_client_1.expectString,
|
|
1969
|
+
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1970
|
+
Rules: smithy_client_1._json,
|
|
1971
|
+
});
|
|
2612
1972
|
};
|
|
2613
1973
|
const de_CategoryPropertiesList = (output, context) => {
|
|
2614
1974
|
const retVal = (output || [])
|
|
2615
1975
|
.filter((e) => e != null)
|
|
2616
1976
|
.map((entry) => {
|
|
2617
|
-
if (entry === null) {
|
|
2618
|
-
return null;
|
|
2619
|
-
}
|
|
2620
1977
|
return de_CategoryProperties(entry, context);
|
|
2621
1978
|
});
|
|
2622
1979
|
return retVal;
|
|
2623
1980
|
};
|
|
2624
|
-
const de_ChannelDefinition = (output, context) => {
|
|
2625
|
-
return {
|
|
2626
|
-
ChannelId: (0, smithy_client_1.expectInt32)(output.ChannelId),
|
|
2627
|
-
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
const de_ChannelDefinitions = (output, context) => {
|
|
2631
|
-
const retVal = (output || [])
|
|
2632
|
-
.filter((e) => e != null)
|
|
2633
|
-
.map((entry) => {
|
|
2634
|
-
if (entry === null) {
|
|
2635
|
-
return null;
|
|
2636
|
-
}
|
|
2637
|
-
return de_ChannelDefinition(entry, context);
|
|
2638
|
-
});
|
|
2639
|
-
return retVal;
|
|
2640
|
-
};
|
|
2641
|
-
const de_ConflictException = (output, context) => {
|
|
2642
|
-
return {
|
|
2643
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2644
|
-
};
|
|
2645
|
-
};
|
|
2646
|
-
const de_ContentRedaction = (output, context) => {
|
|
2647
|
-
return {
|
|
2648
|
-
PiiEntityTypes: output.PiiEntityTypes != null ? de_PiiEntityTypes(output.PiiEntityTypes, context) : undefined,
|
|
2649
|
-
RedactionOutput: (0, smithy_client_1.expectString)(output.RedactionOutput),
|
|
2650
|
-
RedactionType: (0, smithy_client_1.expectString)(output.RedactionType),
|
|
2651
|
-
};
|
|
2652
|
-
};
|
|
2653
1981
|
const de_CreateCallAnalyticsCategoryResponse = (output, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
CategoryProperties:
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
const de_CreateLanguageModelResponse = (output, context) => {
|
|
2659
|
-
return {
|
|
2660
|
-
BaseModelName: (0, smithy_client_1.expectString)(output.BaseModelName),
|
|
2661
|
-
InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
|
|
2662
|
-
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
2663
|
-
ModelName: (0, smithy_client_1.expectString)(output.ModelName),
|
|
2664
|
-
ModelStatus: (0, smithy_client_1.expectString)(output.ModelStatus),
|
|
2665
|
-
};
|
|
1982
|
+
return (0, smithy_client_1.take)(output, {
|
|
1983
|
+
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
1984
|
+
});
|
|
2666
1985
|
};
|
|
2667
1986
|
const de_CreateMedicalVocabularyResponse = (output, context) => {
|
|
2668
|
-
return {
|
|
2669
|
-
FailureReason:
|
|
2670
|
-
LanguageCode:
|
|
2671
|
-
LastModifiedTime:
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
2676
|
-
};
|
|
1987
|
+
return (0, smithy_client_1.take)(output, {
|
|
1988
|
+
FailureReason: smithy_client_1.expectString,
|
|
1989
|
+
LanguageCode: smithy_client_1.expectString,
|
|
1990
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1991
|
+
VocabularyName: smithy_client_1.expectString,
|
|
1992
|
+
VocabularyState: smithy_client_1.expectString,
|
|
1993
|
+
});
|
|
2677
1994
|
};
|
|
2678
1995
|
const de_CreateVocabularyFilterResponse = (output, context) => {
|
|
2679
|
-
return {
|
|
2680
|
-
LanguageCode:
|
|
2681
|
-
LastModifiedTime:
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
2685
|
-
};
|
|
1996
|
+
return (0, smithy_client_1.take)(output, {
|
|
1997
|
+
LanguageCode: smithy_client_1.expectString,
|
|
1998
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1999
|
+
VocabularyFilterName: smithy_client_1.expectString,
|
|
2000
|
+
});
|
|
2686
2001
|
};
|
|
2687
2002
|
const de_CreateVocabularyResponse = (output, context) => {
|
|
2688
|
-
return {
|
|
2689
|
-
FailureReason:
|
|
2690
|
-
LanguageCode:
|
|
2691
|
-
LastModifiedTime:
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
2696
|
-
};
|
|
2697
|
-
};
|
|
2698
|
-
const de_DeleteCallAnalyticsCategoryResponse = (output, context) => {
|
|
2699
|
-
return {};
|
|
2700
|
-
};
|
|
2701
|
-
const de_DeleteCallAnalyticsJobResponse = (output, context) => {
|
|
2702
|
-
return {};
|
|
2003
|
+
return (0, smithy_client_1.take)(output, {
|
|
2004
|
+
FailureReason: smithy_client_1.expectString,
|
|
2005
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2006
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2007
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2008
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2009
|
+
});
|
|
2703
2010
|
};
|
|
2704
2011
|
const de_DescribeLanguageModelResponse = (output, context) => {
|
|
2705
|
-
return {
|
|
2706
|
-
LanguageModel:
|
|
2707
|
-
};
|
|
2012
|
+
return (0, smithy_client_1.take)(output, {
|
|
2013
|
+
LanguageModel: (_) => de_LanguageModel(_, context),
|
|
2014
|
+
});
|
|
2708
2015
|
};
|
|
2709
2016
|
const de_GetCallAnalyticsCategoryResponse = (output, context) => {
|
|
2710
|
-
return {
|
|
2711
|
-
CategoryProperties:
|
|
2712
|
-
};
|
|
2017
|
+
return (0, smithy_client_1.take)(output, {
|
|
2018
|
+
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
2019
|
+
});
|
|
2713
2020
|
};
|
|
2714
2021
|
const de_GetCallAnalyticsJobResponse = (output, context) => {
|
|
2715
|
-
return {
|
|
2716
|
-
CallAnalyticsJob:
|
|
2717
|
-
};
|
|
2022
|
+
return (0, smithy_client_1.take)(output, {
|
|
2023
|
+
CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
|
|
2024
|
+
});
|
|
2718
2025
|
};
|
|
2719
2026
|
const de_GetMedicalTranscriptionJobResponse = (output, context) => {
|
|
2720
|
-
return {
|
|
2721
|
-
MedicalTranscriptionJob:
|
|
2722
|
-
|
|
2723
|
-
: undefined,
|
|
2724
|
-
};
|
|
2027
|
+
return (0, smithy_client_1.take)(output, {
|
|
2028
|
+
MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
|
|
2029
|
+
});
|
|
2725
2030
|
};
|
|
2726
2031
|
const de_GetMedicalVocabularyResponse = (output, context) => {
|
|
2727
|
-
return {
|
|
2728
|
-
DownloadUri:
|
|
2729
|
-
FailureReason:
|
|
2730
|
-
LanguageCode:
|
|
2731
|
-
LastModifiedTime:
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
2736
|
-
};
|
|
2032
|
+
return (0, smithy_client_1.take)(output, {
|
|
2033
|
+
DownloadUri: smithy_client_1.expectString,
|
|
2034
|
+
FailureReason: smithy_client_1.expectString,
|
|
2035
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2036
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2037
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2038
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2039
|
+
});
|
|
2737
2040
|
};
|
|
2738
2041
|
const de_GetTranscriptionJobResponse = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
TranscriptionJob:
|
|
2741
|
-
};
|
|
2042
|
+
return (0, smithy_client_1.take)(output, {
|
|
2043
|
+
TranscriptionJob: (_) => de_TranscriptionJob(_, context),
|
|
2044
|
+
});
|
|
2742
2045
|
};
|
|
2743
2046
|
const de_GetVocabularyFilterResponse = (output, context) => {
|
|
2744
|
-
return {
|
|
2745
|
-
DownloadUri:
|
|
2746
|
-
LanguageCode:
|
|
2747
|
-
LastModifiedTime:
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
2751
|
-
};
|
|
2047
|
+
return (0, smithy_client_1.take)(output, {
|
|
2048
|
+
DownloadUri: smithy_client_1.expectString,
|
|
2049
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2050
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2051
|
+
VocabularyFilterName: smithy_client_1.expectString,
|
|
2052
|
+
});
|
|
2752
2053
|
};
|
|
2753
2054
|
const de_GetVocabularyResponse = (output, context) => {
|
|
2754
|
-
return {
|
|
2755
|
-
DownloadUri:
|
|
2756
|
-
FailureReason:
|
|
2757
|
-
LanguageCode:
|
|
2758
|
-
LastModifiedTime:
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
2763
|
-
};
|
|
2764
|
-
};
|
|
2765
|
-
const de_InputDataConfig = (output, context) => {
|
|
2766
|
-
return {
|
|
2767
|
-
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
2768
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2769
|
-
TuningDataS3Uri: (0, smithy_client_1.expectString)(output.TuningDataS3Uri),
|
|
2770
|
-
};
|
|
2771
|
-
};
|
|
2772
|
-
const de_InternalFailureException = (output, context) => {
|
|
2773
|
-
return {
|
|
2774
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2775
|
-
};
|
|
2776
|
-
};
|
|
2777
|
-
const de_InterruptionFilter = (output, context) => {
|
|
2778
|
-
return {
|
|
2779
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
|
|
2780
|
-
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
2781
|
-
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
2782
|
-
RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
|
|
2783
|
-
Threshold: (0, smithy_client_1.expectLong)(output.Threshold),
|
|
2784
|
-
};
|
|
2785
|
-
};
|
|
2786
|
-
const de_JobExecutionSettings = (output, context) => {
|
|
2787
|
-
return {
|
|
2788
|
-
AllowDeferredExecution: (0, smithy_client_1.expectBoolean)(output.AllowDeferredExecution),
|
|
2789
|
-
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
2790
|
-
};
|
|
2055
|
+
return (0, smithy_client_1.take)(output, {
|
|
2056
|
+
DownloadUri: smithy_client_1.expectString,
|
|
2057
|
+
FailureReason: smithy_client_1.expectString,
|
|
2058
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2059
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2060
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2061
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2062
|
+
});
|
|
2791
2063
|
};
|
|
2792
2064
|
const de_LanguageCodeItem = (output, context) => {
|
|
2793
|
-
return {
|
|
2794
|
-
DurationInSeconds:
|
|
2795
|
-
LanguageCode:
|
|
2796
|
-
};
|
|
2065
|
+
return (0, smithy_client_1.take)(output, {
|
|
2066
|
+
DurationInSeconds: smithy_client_1.limitedParseFloat32,
|
|
2067
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2068
|
+
});
|
|
2797
2069
|
};
|
|
2798
2070
|
const de_LanguageCodeList = (output, context) => {
|
|
2799
2071
|
const retVal = (output || [])
|
|
2800
2072
|
.filter((e) => e != null)
|
|
2801
2073
|
.map((entry) => {
|
|
2802
|
-
if (entry === null) {
|
|
2803
|
-
return null;
|
|
2804
|
-
}
|
|
2805
2074
|
return de_LanguageCodeItem(entry, context);
|
|
2806
2075
|
});
|
|
2807
2076
|
return retVal;
|
|
2808
2077
|
};
|
|
2809
|
-
const de_LanguageIdSettings = (output, context) => {
|
|
2810
|
-
return {
|
|
2811
|
-
LanguageModelName: (0, smithy_client_1.expectString)(output.LanguageModelName),
|
|
2812
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
2813
|
-
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
2814
|
-
};
|
|
2815
|
-
};
|
|
2816
|
-
const de_LanguageIdSettingsMap = (output, context) => {
|
|
2817
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2818
|
-
if (value === null) {
|
|
2819
|
-
return acc;
|
|
2820
|
-
}
|
|
2821
|
-
acc[key] = de_LanguageIdSettings(value, context);
|
|
2822
|
-
return acc;
|
|
2823
|
-
}, {});
|
|
2824
|
-
};
|
|
2825
2078
|
const de_LanguageModel = (output, context) => {
|
|
2826
|
-
return {
|
|
2827
|
-
BaseModelName:
|
|
2828
|
-
CreateTime:
|
|
2829
|
-
FailureReason:
|
|
2830
|
-
InputDataConfig:
|
|
2831
|
-
LanguageCode:
|
|
2832
|
-
LastModifiedTime:
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
ModelStatus: (0, smithy_client_1.expectString)(output.ModelStatus),
|
|
2837
|
-
UpgradeAvailability: (0, smithy_client_1.expectBoolean)(output.UpgradeAvailability),
|
|
2838
|
-
};
|
|
2839
|
-
};
|
|
2840
|
-
const de_LanguageOptions = (output, context) => {
|
|
2841
|
-
const retVal = (output || [])
|
|
2842
|
-
.filter((e) => e != null)
|
|
2843
|
-
.map((entry) => {
|
|
2844
|
-
if (entry === null) {
|
|
2845
|
-
return null;
|
|
2846
|
-
}
|
|
2847
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2079
|
+
return (0, smithy_client_1.take)(output, {
|
|
2080
|
+
BaseModelName: smithy_client_1.expectString,
|
|
2081
|
+
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2082
|
+
FailureReason: smithy_client_1.expectString,
|
|
2083
|
+
InputDataConfig: smithy_client_1._json,
|
|
2084
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2085
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2086
|
+
ModelName: smithy_client_1.expectString,
|
|
2087
|
+
ModelStatus: smithy_client_1.expectString,
|
|
2088
|
+
UpgradeAvailability: smithy_client_1.expectBoolean,
|
|
2848
2089
|
});
|
|
2849
|
-
return retVal;
|
|
2850
|
-
};
|
|
2851
|
-
const de_LimitExceededException = (output, context) => {
|
|
2852
|
-
return {
|
|
2853
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2854
|
-
};
|
|
2855
2090
|
};
|
|
2856
2091
|
const de_ListCallAnalyticsCategoriesResponse = (output, context) => {
|
|
2857
|
-
return {
|
|
2858
|
-
Categories:
|
|
2859
|
-
NextToken:
|
|
2860
|
-
};
|
|
2092
|
+
return (0, smithy_client_1.take)(output, {
|
|
2093
|
+
Categories: (_) => de_CategoryPropertiesList(_, context),
|
|
2094
|
+
NextToken: smithy_client_1.expectString,
|
|
2095
|
+
});
|
|
2861
2096
|
};
|
|
2862
2097
|
const de_ListCallAnalyticsJobsResponse = (output, context) => {
|
|
2863
|
-
return {
|
|
2864
|
-
CallAnalyticsJobSummaries:
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2869
|
-
};
|
|
2098
|
+
return (0, smithy_client_1.take)(output, {
|
|
2099
|
+
CallAnalyticsJobSummaries: (_) => de_CallAnalyticsJobSummaries(_, context),
|
|
2100
|
+
NextToken: smithy_client_1.expectString,
|
|
2101
|
+
Status: smithy_client_1.expectString,
|
|
2102
|
+
});
|
|
2870
2103
|
};
|
|
2871
2104
|
const de_ListLanguageModelsResponse = (output, context) => {
|
|
2872
|
-
return {
|
|
2873
|
-
Models:
|
|
2874
|
-
NextToken:
|
|
2875
|
-
};
|
|
2105
|
+
return (0, smithy_client_1.take)(output, {
|
|
2106
|
+
Models: (_) => de_Models(_, context),
|
|
2107
|
+
NextToken: smithy_client_1.expectString,
|
|
2108
|
+
});
|
|
2876
2109
|
};
|
|
2877
2110
|
const de_ListMedicalTranscriptionJobsResponse = (output, context) => {
|
|
2878
|
-
return {
|
|
2879
|
-
MedicalTranscriptionJobSummaries:
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2884
|
-
};
|
|
2111
|
+
return (0, smithy_client_1.take)(output, {
|
|
2112
|
+
MedicalTranscriptionJobSummaries: (_) => de_MedicalTranscriptionJobSummaries(_, context),
|
|
2113
|
+
NextToken: smithy_client_1.expectString,
|
|
2114
|
+
Status: smithy_client_1.expectString,
|
|
2115
|
+
});
|
|
2885
2116
|
};
|
|
2886
2117
|
const de_ListMedicalVocabulariesResponse = (output, context) => {
|
|
2887
|
-
return {
|
|
2888
|
-
NextToken:
|
|
2889
|
-
Status:
|
|
2890
|
-
Vocabularies:
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2894
|
-
return {
|
|
2895
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
2896
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2897
|
-
};
|
|
2118
|
+
return (0, smithy_client_1.take)(output, {
|
|
2119
|
+
NextToken: smithy_client_1.expectString,
|
|
2120
|
+
Status: smithy_client_1.expectString,
|
|
2121
|
+
Vocabularies: (_) => de_Vocabularies(_, context),
|
|
2122
|
+
});
|
|
2898
2123
|
};
|
|
2899
2124
|
const de_ListTranscriptionJobsResponse = (output, context) => {
|
|
2900
|
-
return {
|
|
2901
|
-
NextToken:
|
|
2902
|
-
Status:
|
|
2903
|
-
TranscriptionJobSummaries:
|
|
2904
|
-
|
|
2905
|
-
: undefined,
|
|
2906
|
-
};
|
|
2125
|
+
return (0, smithy_client_1.take)(output, {
|
|
2126
|
+
NextToken: smithy_client_1.expectString,
|
|
2127
|
+
Status: smithy_client_1.expectString,
|
|
2128
|
+
TranscriptionJobSummaries: (_) => de_TranscriptionJobSummaries(_, context),
|
|
2129
|
+
});
|
|
2907
2130
|
};
|
|
2908
2131
|
const de_ListVocabulariesResponse = (output, context) => {
|
|
2909
|
-
return {
|
|
2910
|
-
NextToken:
|
|
2911
|
-
Status:
|
|
2912
|
-
Vocabularies:
|
|
2913
|
-
};
|
|
2132
|
+
return (0, smithy_client_1.take)(output, {
|
|
2133
|
+
NextToken: smithy_client_1.expectString,
|
|
2134
|
+
Status: smithy_client_1.expectString,
|
|
2135
|
+
Vocabularies: (_) => de_Vocabularies(_, context),
|
|
2136
|
+
});
|
|
2914
2137
|
};
|
|
2915
2138
|
const de_ListVocabularyFiltersResponse = (output, context) => {
|
|
2916
|
-
return {
|
|
2917
|
-
NextToken:
|
|
2918
|
-
VocabularyFilters:
|
|
2919
|
-
};
|
|
2920
|
-
};
|
|
2921
|
-
const de_Media = (output, context) => {
|
|
2922
|
-
return {
|
|
2923
|
-
MediaFileUri: (0, smithy_client_1.expectString)(output.MediaFileUri),
|
|
2924
|
-
RedactedMediaFileUri: (0, smithy_client_1.expectString)(output.RedactedMediaFileUri),
|
|
2925
|
-
};
|
|
2926
|
-
};
|
|
2927
|
-
const de_MedicalTranscript = (output, context) => {
|
|
2928
|
-
return {
|
|
2929
|
-
TranscriptFileUri: (0, smithy_client_1.expectString)(output.TranscriptFileUri),
|
|
2930
|
-
};
|
|
2139
|
+
return (0, smithy_client_1.take)(output, {
|
|
2140
|
+
NextToken: smithy_client_1.expectString,
|
|
2141
|
+
VocabularyFilters: (_) => de_VocabularyFilters(_, context),
|
|
2142
|
+
});
|
|
2931
2143
|
};
|
|
2932
2144
|
const de_MedicalTranscriptionJob = (output, context) => {
|
|
2933
|
-
return {
|
|
2934
|
-
CompletionTime:
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
Transcript: output.Transcript != null ? de_MedicalTranscript(output.Transcript, context) : undefined,
|
|
2952
|
-
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
2953
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2954
|
-
};
|
|
2145
|
+
return (0, smithy_client_1.take)(output, {
|
|
2146
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2147
|
+
ContentIdentificationType: smithy_client_1.expectString,
|
|
2148
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2149
|
+
FailureReason: smithy_client_1.expectString,
|
|
2150
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2151
|
+
Media: smithy_client_1._json,
|
|
2152
|
+
MediaFormat: smithy_client_1.expectString,
|
|
2153
|
+
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
2154
|
+
MedicalTranscriptionJobName: smithy_client_1.expectString,
|
|
2155
|
+
Settings: smithy_client_1._json,
|
|
2156
|
+
Specialty: smithy_client_1.expectString,
|
|
2157
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2158
|
+
Tags: smithy_client_1._json,
|
|
2159
|
+
Transcript: smithy_client_1._json,
|
|
2160
|
+
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2161
|
+
Type: smithy_client_1.expectString,
|
|
2162
|
+
});
|
|
2955
2163
|
};
|
|
2956
2164
|
const de_MedicalTranscriptionJobSummaries = (output, context) => {
|
|
2957
2165
|
const retVal = (output || [])
|
|
2958
2166
|
.filter((e) => e != null)
|
|
2959
2167
|
.map((entry) => {
|
|
2960
|
-
if (entry === null) {
|
|
2961
|
-
return null;
|
|
2962
|
-
}
|
|
2963
2168
|
return de_MedicalTranscriptionJobSummary(entry, context);
|
|
2964
2169
|
});
|
|
2965
2170
|
return retVal;
|
|
2966
2171
|
};
|
|
2967
2172
|
const de_MedicalTranscriptionJobSummary = (output, context) => {
|
|
2968
|
-
return {
|
|
2969
|
-
CompletionTime:
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2982
|
-
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
2983
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2984
|
-
};
|
|
2985
|
-
};
|
|
2986
|
-
const de_MedicalTranscriptionSetting = (output, context) => {
|
|
2987
|
-
return {
|
|
2988
|
-
ChannelIdentification: (0, smithy_client_1.expectBoolean)(output.ChannelIdentification),
|
|
2989
|
-
MaxAlternatives: (0, smithy_client_1.expectInt32)(output.MaxAlternatives),
|
|
2990
|
-
MaxSpeakerLabels: (0, smithy_client_1.expectInt32)(output.MaxSpeakerLabels),
|
|
2991
|
-
ShowAlternatives: (0, smithy_client_1.expectBoolean)(output.ShowAlternatives),
|
|
2992
|
-
ShowSpeakerLabels: (0, smithy_client_1.expectBoolean)(output.ShowSpeakerLabels),
|
|
2993
|
-
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
2994
|
-
};
|
|
2173
|
+
return (0, smithy_client_1.take)(output, {
|
|
2174
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2175
|
+
ContentIdentificationType: smithy_client_1.expectString,
|
|
2176
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2177
|
+
FailureReason: smithy_client_1.expectString,
|
|
2178
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2179
|
+
MedicalTranscriptionJobName: smithy_client_1.expectString,
|
|
2180
|
+
OutputLocationType: smithy_client_1.expectString,
|
|
2181
|
+
Specialty: smithy_client_1.expectString,
|
|
2182
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2183
|
+
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2184
|
+
Type: smithy_client_1.expectString,
|
|
2185
|
+
});
|
|
2995
2186
|
};
|
|
2996
2187
|
const de_Models = (output, context) => {
|
|
2997
2188
|
const retVal = (output || [])
|
|
2998
2189
|
.filter((e) => e != null)
|
|
2999
2190
|
.map((entry) => {
|
|
3000
|
-
if (entry === null) {
|
|
3001
|
-
return null;
|
|
3002
|
-
}
|
|
3003
2191
|
return de_LanguageModel(entry, context);
|
|
3004
2192
|
});
|
|
3005
2193
|
return retVal;
|
|
3006
2194
|
};
|
|
3007
|
-
const de_ModelSettings = (output, context) => {
|
|
3008
|
-
return {
|
|
3009
|
-
LanguageModelName: (0, smithy_client_1.expectString)(output.LanguageModelName),
|
|
3010
|
-
};
|
|
3011
|
-
};
|
|
3012
|
-
const de_NonTalkTimeFilter = (output, context) => {
|
|
3013
|
-
return {
|
|
3014
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
|
|
3015
|
-
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3016
|
-
RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
|
|
3017
|
-
Threshold: (0, smithy_client_1.expectLong)(output.Threshold),
|
|
3018
|
-
};
|
|
3019
|
-
};
|
|
3020
|
-
const de_NotFoundException = (output, context) => {
|
|
3021
|
-
return {
|
|
3022
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3023
|
-
};
|
|
3024
|
-
};
|
|
3025
|
-
const de_PiiEntityTypes = (output, context) => {
|
|
3026
|
-
const retVal = (output || [])
|
|
3027
|
-
.filter((e) => e != null)
|
|
3028
|
-
.map((entry) => {
|
|
3029
|
-
if (entry === null) {
|
|
3030
|
-
return null;
|
|
3031
|
-
}
|
|
3032
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3033
|
-
});
|
|
3034
|
-
return retVal;
|
|
3035
|
-
};
|
|
3036
|
-
const de_RelativeTimeRange = (output, context) => {
|
|
3037
|
-
return {
|
|
3038
|
-
EndPercentage: (0, smithy_client_1.expectInt32)(output.EndPercentage),
|
|
3039
|
-
First: (0, smithy_client_1.expectInt32)(output.First),
|
|
3040
|
-
Last: (0, smithy_client_1.expectInt32)(output.Last),
|
|
3041
|
-
StartPercentage: (0, smithy_client_1.expectInt32)(output.StartPercentage),
|
|
3042
|
-
};
|
|
3043
|
-
};
|
|
3044
|
-
const de_Rule = (output, context) => {
|
|
3045
|
-
if (output.InterruptionFilter != null) {
|
|
3046
|
-
return {
|
|
3047
|
-
InterruptionFilter: de_InterruptionFilter(output.InterruptionFilter, context),
|
|
3048
|
-
};
|
|
3049
|
-
}
|
|
3050
|
-
if (output.NonTalkTimeFilter != null) {
|
|
3051
|
-
return {
|
|
3052
|
-
NonTalkTimeFilter: de_NonTalkTimeFilter(output.NonTalkTimeFilter, context),
|
|
3053
|
-
};
|
|
3054
|
-
}
|
|
3055
|
-
if (output.SentimentFilter != null) {
|
|
3056
|
-
return {
|
|
3057
|
-
SentimentFilter: de_SentimentFilter(output.SentimentFilter, context),
|
|
3058
|
-
};
|
|
3059
|
-
}
|
|
3060
|
-
if (output.TranscriptFilter != null) {
|
|
3061
|
-
return {
|
|
3062
|
-
TranscriptFilter: de_TranscriptFilter(output.TranscriptFilter, context),
|
|
3063
|
-
};
|
|
3064
|
-
}
|
|
3065
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3066
|
-
};
|
|
3067
|
-
const de_RuleList = (output, context) => {
|
|
3068
|
-
const retVal = (output || [])
|
|
3069
|
-
.filter((e) => e != null)
|
|
3070
|
-
.map((entry) => {
|
|
3071
|
-
if (entry === null) {
|
|
3072
|
-
return null;
|
|
3073
|
-
}
|
|
3074
|
-
return de_Rule((0, smithy_client_1.expectUnion)(entry), context);
|
|
3075
|
-
});
|
|
3076
|
-
return retVal;
|
|
3077
|
-
};
|
|
3078
|
-
const de_SentimentFilter = (output, context) => {
|
|
3079
|
-
return {
|
|
3080
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
|
|
3081
|
-
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3082
|
-
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
3083
|
-
RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
|
|
3084
|
-
Sentiments: output.Sentiments != null ? de_SentimentValueList(output.Sentiments, context) : undefined,
|
|
3085
|
-
};
|
|
3086
|
-
};
|
|
3087
|
-
const de_SentimentValueList = (output, context) => {
|
|
3088
|
-
const retVal = (output || [])
|
|
3089
|
-
.filter((e) => e != null)
|
|
3090
|
-
.map((entry) => {
|
|
3091
|
-
if (entry === null) {
|
|
3092
|
-
return null;
|
|
3093
|
-
}
|
|
3094
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3095
|
-
});
|
|
3096
|
-
return retVal;
|
|
3097
|
-
};
|
|
3098
|
-
const de_Settings = (output, context) => {
|
|
3099
|
-
return {
|
|
3100
|
-
ChannelIdentification: (0, smithy_client_1.expectBoolean)(output.ChannelIdentification),
|
|
3101
|
-
MaxAlternatives: (0, smithy_client_1.expectInt32)(output.MaxAlternatives),
|
|
3102
|
-
MaxSpeakerLabels: (0, smithy_client_1.expectInt32)(output.MaxSpeakerLabels),
|
|
3103
|
-
ShowAlternatives: (0, smithy_client_1.expectBoolean)(output.ShowAlternatives),
|
|
3104
|
-
ShowSpeakerLabels: (0, smithy_client_1.expectBoolean)(output.ShowSpeakerLabels),
|
|
3105
|
-
VocabularyFilterMethod: (0, smithy_client_1.expectString)(output.VocabularyFilterMethod),
|
|
3106
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
3107
|
-
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
3108
|
-
};
|
|
3109
|
-
};
|
|
3110
2195
|
const de_StartCallAnalyticsJobResponse = (output, context) => {
|
|
3111
|
-
return {
|
|
3112
|
-
CallAnalyticsJob:
|
|
3113
|
-
};
|
|
3114
|
-
};
|
|
3115
|
-
const de_StartMedicalTranscriptionJobResponse = (output, context) => {
|
|
3116
|
-
return {
|
|
3117
|
-
MedicalTranscriptionJob: output.MedicalTranscriptionJob != null
|
|
3118
|
-
? de_MedicalTranscriptionJob(output.MedicalTranscriptionJob, context)
|
|
3119
|
-
: undefined,
|
|
3120
|
-
};
|
|
3121
|
-
};
|
|
3122
|
-
const de_StartTranscriptionJobResponse = (output, context) => {
|
|
3123
|
-
return {
|
|
3124
|
-
TranscriptionJob: output.TranscriptionJob != null ? de_TranscriptionJob(output.TranscriptionJob, context) : undefined,
|
|
3125
|
-
};
|
|
3126
|
-
};
|
|
3127
|
-
const de_StringTargetList = (output, context) => {
|
|
3128
|
-
const retVal = (output || [])
|
|
3129
|
-
.filter((e) => e != null)
|
|
3130
|
-
.map((entry) => {
|
|
3131
|
-
if (entry === null) {
|
|
3132
|
-
return null;
|
|
3133
|
-
}
|
|
3134
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3135
|
-
});
|
|
3136
|
-
return retVal;
|
|
3137
|
-
};
|
|
3138
|
-
const de_SubtitleFileUris = (output, context) => {
|
|
3139
|
-
const retVal = (output || [])
|
|
3140
|
-
.filter((e) => e != null)
|
|
3141
|
-
.map((entry) => {
|
|
3142
|
-
if (entry === null) {
|
|
3143
|
-
return null;
|
|
3144
|
-
}
|
|
3145
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2196
|
+
return (0, smithy_client_1.take)(output, {
|
|
2197
|
+
CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
|
|
3146
2198
|
});
|
|
3147
|
-
return retVal;
|
|
3148
2199
|
};
|
|
3149
|
-
const
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
.map((entry) => {
|
|
3153
|
-
if (entry === null) {
|
|
3154
|
-
return null;
|
|
3155
|
-
}
|
|
3156
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2200
|
+
const de_StartMedicalTranscriptionJobResponse = (output, context) => {
|
|
2201
|
+
return (0, smithy_client_1.take)(output, {
|
|
2202
|
+
MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
|
|
3157
2203
|
});
|
|
3158
|
-
return retVal;
|
|
3159
|
-
};
|
|
3160
|
-
const de_SubtitlesOutput = (output, context) => {
|
|
3161
|
-
return {
|
|
3162
|
-
Formats: output.Formats != null ? de_SubtitleFormats(output.Formats, context) : undefined,
|
|
3163
|
-
OutputStartIndex: (0, smithy_client_1.expectInt32)(output.OutputStartIndex),
|
|
3164
|
-
SubtitleFileUris: output.SubtitleFileUris != null ? de_SubtitleFileUris(output.SubtitleFileUris, context) : undefined,
|
|
3165
|
-
};
|
|
3166
2204
|
};
|
|
3167
|
-
const
|
|
3168
|
-
return {
|
|
3169
|
-
|
|
3170
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3171
|
-
};
|
|
3172
|
-
};
|
|
3173
|
-
const de_TagList = (output, context) => {
|
|
3174
|
-
const retVal = (output || [])
|
|
3175
|
-
.filter((e) => e != null)
|
|
3176
|
-
.map((entry) => {
|
|
3177
|
-
if (entry === null) {
|
|
3178
|
-
return null;
|
|
3179
|
-
}
|
|
3180
|
-
return de_Tag(entry, context);
|
|
2205
|
+
const de_StartTranscriptionJobResponse = (output, context) => {
|
|
2206
|
+
return (0, smithy_client_1.take)(output, {
|
|
2207
|
+
TranscriptionJob: (_) => de_TranscriptionJob(_, context),
|
|
3181
2208
|
});
|
|
3182
|
-
return retVal;
|
|
3183
|
-
};
|
|
3184
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3185
|
-
return {};
|
|
3186
|
-
};
|
|
3187
|
-
const de_Transcript = (output, context) => {
|
|
3188
|
-
return {
|
|
3189
|
-
RedactedTranscriptFileUri: (0, smithy_client_1.expectString)(output.RedactedTranscriptFileUri),
|
|
3190
|
-
TranscriptFileUri: (0, smithy_client_1.expectString)(output.TranscriptFileUri),
|
|
3191
|
-
};
|
|
3192
|
-
};
|
|
3193
|
-
const de_TranscriptFilter = (output, context) => {
|
|
3194
|
-
return {
|
|
3195
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
|
|
3196
|
-
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3197
|
-
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
3198
|
-
RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
|
|
3199
|
-
Targets: output.Targets != null ? de_StringTargetList(output.Targets, context) : undefined,
|
|
3200
|
-
TranscriptFilterType: (0, smithy_client_1.expectString)(output.TranscriptFilterType),
|
|
3201
|
-
};
|
|
3202
2209
|
};
|
|
3203
2210
|
const de_TranscriptionJob = (output, context) => {
|
|
3204
|
-
return {
|
|
3205
|
-
CompletionTime:
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
|
|
3230
|
-
TranscriptionJobName: (0, smithy_client_1.expectString)(output.TranscriptionJobName),
|
|
3231
|
-
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3232
|
-
};
|
|
2211
|
+
return (0, smithy_client_1.take)(output, {
|
|
2212
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2213
|
+
ContentRedaction: smithy_client_1._json,
|
|
2214
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2215
|
+
FailureReason: smithy_client_1.expectString,
|
|
2216
|
+
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
2217
|
+
IdentifyLanguage: smithy_client_1.expectBoolean,
|
|
2218
|
+
IdentifyMultipleLanguages: smithy_client_1.expectBoolean,
|
|
2219
|
+
JobExecutionSettings: smithy_client_1._json,
|
|
2220
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2221
|
+
LanguageCodes: (_) => de_LanguageCodeList(_, context),
|
|
2222
|
+
LanguageIdSettings: smithy_client_1._json,
|
|
2223
|
+
LanguageOptions: smithy_client_1._json,
|
|
2224
|
+
Media: smithy_client_1._json,
|
|
2225
|
+
MediaFormat: smithy_client_1.expectString,
|
|
2226
|
+
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
2227
|
+
ModelSettings: smithy_client_1._json,
|
|
2228
|
+
Settings: smithy_client_1._json,
|
|
2229
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2230
|
+
Subtitles: smithy_client_1._json,
|
|
2231
|
+
Tags: smithy_client_1._json,
|
|
2232
|
+
Transcript: smithy_client_1._json,
|
|
2233
|
+
TranscriptionJobName: smithy_client_1.expectString,
|
|
2234
|
+
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2235
|
+
});
|
|
3233
2236
|
};
|
|
3234
2237
|
const de_TranscriptionJobSummaries = (output, context) => {
|
|
3235
2238
|
const retVal = (output || [])
|
|
3236
2239
|
.filter((e) => e != null)
|
|
3237
2240
|
.map((entry) => {
|
|
3238
|
-
if (entry === null) {
|
|
3239
|
-
return null;
|
|
3240
|
-
}
|
|
3241
2241
|
return de_TranscriptionJobSummary(entry, context);
|
|
3242
2242
|
});
|
|
3243
2243
|
return retVal;
|
|
3244
2244
|
};
|
|
3245
2245
|
const de_TranscriptionJobSummary = (output, context) => {
|
|
3246
|
-
return {
|
|
3247
|
-
CompletionTime:
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3263
|
-
TranscriptionJobName: (0, smithy_client_1.expectString)(output.TranscriptionJobName),
|
|
3264
|
-
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3265
|
-
};
|
|
3266
|
-
};
|
|
3267
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3268
|
-
return {};
|
|
2246
|
+
return (0, smithy_client_1.take)(output, {
|
|
2247
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2248
|
+
ContentRedaction: smithy_client_1._json,
|
|
2249
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2250
|
+
FailureReason: smithy_client_1.expectString,
|
|
2251
|
+
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
2252
|
+
IdentifyLanguage: smithy_client_1.expectBoolean,
|
|
2253
|
+
IdentifyMultipleLanguages: smithy_client_1.expectBoolean,
|
|
2254
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2255
|
+
LanguageCodes: (_) => de_LanguageCodeList(_, context),
|
|
2256
|
+
ModelSettings: smithy_client_1._json,
|
|
2257
|
+
OutputLocationType: smithy_client_1.expectString,
|
|
2258
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2259
|
+
TranscriptionJobName: smithy_client_1.expectString,
|
|
2260
|
+
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2261
|
+
});
|
|
3269
2262
|
};
|
|
3270
2263
|
const de_UpdateCallAnalyticsCategoryResponse = (output, context) => {
|
|
3271
|
-
return {
|
|
3272
|
-
CategoryProperties:
|
|
3273
|
-
};
|
|
2264
|
+
return (0, smithy_client_1.take)(output, {
|
|
2265
|
+
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
2266
|
+
});
|
|
3274
2267
|
};
|
|
3275
2268
|
const de_UpdateMedicalVocabularyResponse = (output, context) => {
|
|
3276
|
-
return {
|
|
3277
|
-
LanguageCode:
|
|
3278
|
-
LastModifiedTime:
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
3283
|
-
};
|
|
2269
|
+
return (0, smithy_client_1.take)(output, {
|
|
2270
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2271
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2272
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2273
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2274
|
+
});
|
|
3284
2275
|
};
|
|
3285
2276
|
const de_UpdateVocabularyFilterResponse = (output, context) => {
|
|
3286
|
-
return {
|
|
3287
|
-
LanguageCode:
|
|
3288
|
-
LastModifiedTime:
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
3292
|
-
};
|
|
2277
|
+
return (0, smithy_client_1.take)(output, {
|
|
2278
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2279
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2280
|
+
VocabularyFilterName: smithy_client_1.expectString,
|
|
2281
|
+
});
|
|
3293
2282
|
};
|
|
3294
2283
|
const de_UpdateVocabularyResponse = (output, context) => {
|
|
3295
|
-
return {
|
|
3296
|
-
LanguageCode:
|
|
3297
|
-
LastModifiedTime:
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
3302
|
-
};
|
|
2284
|
+
return (0, smithy_client_1.take)(output, {
|
|
2285
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2286
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2287
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2288
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2289
|
+
});
|
|
3303
2290
|
};
|
|
3304
2291
|
const de_Vocabularies = (output, context) => {
|
|
3305
2292
|
const retVal = (output || [])
|
|
3306
2293
|
.filter((e) => e != null)
|
|
3307
2294
|
.map((entry) => {
|
|
3308
|
-
if (entry === null) {
|
|
3309
|
-
return null;
|
|
3310
|
-
}
|
|
3311
2295
|
return de_VocabularyInfo(entry, context);
|
|
3312
2296
|
});
|
|
3313
2297
|
return retVal;
|
|
3314
2298
|
};
|
|
3315
2299
|
const de_VocabularyFilterInfo = (output, context) => {
|
|
3316
|
-
return {
|
|
3317
|
-
LanguageCode:
|
|
3318
|
-
LastModifiedTime:
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
3322
|
-
};
|
|
2300
|
+
return (0, smithy_client_1.take)(output, {
|
|
2301
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2302
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2303
|
+
VocabularyFilterName: smithy_client_1.expectString,
|
|
2304
|
+
});
|
|
3323
2305
|
};
|
|
3324
2306
|
const de_VocabularyFilters = (output, context) => {
|
|
3325
2307
|
const retVal = (output || [])
|
|
3326
2308
|
.filter((e) => e != null)
|
|
3327
2309
|
.map((entry) => {
|
|
3328
|
-
if (entry === null) {
|
|
3329
|
-
return null;
|
|
3330
|
-
}
|
|
3331
2310
|
return de_VocabularyFilterInfo(entry, context);
|
|
3332
2311
|
});
|
|
3333
2312
|
return retVal;
|
|
3334
2313
|
};
|
|
3335
2314
|
const de_VocabularyInfo = (output, context) => {
|
|
3336
|
-
return {
|
|
3337
|
-
LanguageCode:
|
|
3338
|
-
LastModifiedTime:
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
VocabularyState: (0, smithy_client_1.expectString)(output.VocabularyState),
|
|
3343
|
-
};
|
|
2315
|
+
return (0, smithy_client_1.take)(output, {
|
|
2316
|
+
LanguageCode: smithy_client_1.expectString,
|
|
2317
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2318
|
+
VocabularyName: smithy_client_1.expectString,
|
|
2319
|
+
VocabularyState: smithy_client_1.expectString,
|
|
2320
|
+
});
|
|
3344
2321
|
};
|
|
3345
2322
|
const deserializeMetadata = (output) => ({
|
|
3346
2323
|
httpStatusCode: output.statusCode,
|
|
@@ -3355,6 +2332,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3355
2332
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3356
2333
|
};
|
|
3357
2334
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2335
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(TranscribeServiceException_1.TranscribeServiceException);
|
|
3358
2336
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3359
2337
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3360
2338
|
const contents = {
|