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