@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.
@@ -1,356 +1,239 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
- import { BadRequestException, ConflictException, InternalFailureException, LimitExceededException, NotFoundException, Rule, } from "../models/models_0";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
+ import { BadRequestException, ConflictException, InternalFailureException, LimitExceededException, NotFoundException, } from "../models/models_0";
4
4
  import { TranscribeServiceException as __BaseException } from "../models/TranscribeServiceException";
5
5
  export const se_CreateCallAnalyticsCategoryCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "Transcribe.CreateCallAnalyticsCategory",
9
- };
6
+ const headers = sharedHeaders("CreateCallAnalyticsCategory");
10
7
  let body;
11
- body = JSON.stringify(se_CreateCallAnalyticsCategoryRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateLanguageModelCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "Transcribe.CreateLanguageModel",
18
- };
12
+ const headers = sharedHeaders("CreateLanguageModel");
19
13
  let body;
20
- body = JSON.stringify(se_CreateLanguageModelRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateMedicalVocabularyCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "Transcribe.CreateMedicalVocabulary",
27
- };
18
+ const headers = sharedHeaders("CreateMedicalVocabulary");
28
19
  let body;
29
- body = JSON.stringify(se_CreateMedicalVocabularyRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CreateVocabularyCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "Transcribe.CreateVocabulary",
36
- };
24
+ const headers = sharedHeaders("CreateVocabulary");
37
25
  let body;
38
- body = JSON.stringify(se_CreateVocabularyRequest(input, context));
26
+ body = JSON.stringify(_json(input));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_CreateVocabularyFilterCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "Transcribe.CreateVocabularyFilter",
45
- };
30
+ const headers = sharedHeaders("CreateVocabularyFilter");
46
31
  let body;
47
- body = JSON.stringify(se_CreateVocabularyFilterRequest(input, context));
32
+ body = JSON.stringify(_json(input));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DeleteCallAnalyticsCategoryCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "Transcribe.DeleteCallAnalyticsCategory",
54
- };
36
+ const headers = sharedHeaders("DeleteCallAnalyticsCategory");
55
37
  let body;
56
- body = JSON.stringify(se_DeleteCallAnalyticsCategoryRequest(input, context));
38
+ body = JSON.stringify(_json(input));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DeleteCallAnalyticsJobCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "Transcribe.DeleteCallAnalyticsJob",
63
- };
42
+ const headers = sharedHeaders("DeleteCallAnalyticsJob");
64
43
  let body;
65
- body = JSON.stringify(se_DeleteCallAnalyticsJobRequest(input, context));
44
+ body = JSON.stringify(_json(input));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DeleteLanguageModelCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "Transcribe.DeleteLanguageModel",
72
- };
48
+ const headers = sharedHeaders("DeleteLanguageModel");
73
49
  let body;
74
- body = JSON.stringify(se_DeleteLanguageModelRequest(input, context));
50
+ body = JSON.stringify(_json(input));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DeleteMedicalTranscriptionJobCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "Transcribe.DeleteMedicalTranscriptionJob",
81
- };
54
+ const headers = sharedHeaders("DeleteMedicalTranscriptionJob");
82
55
  let body;
83
- body = JSON.stringify(se_DeleteMedicalTranscriptionJobRequest(input, context));
56
+ body = JSON.stringify(_json(input));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_DeleteMedicalVocabularyCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "Transcribe.DeleteMedicalVocabulary",
90
- };
60
+ const headers = sharedHeaders("DeleteMedicalVocabulary");
91
61
  let body;
92
- body = JSON.stringify(se_DeleteMedicalVocabularyRequest(input, context));
62
+ body = JSON.stringify(_json(input));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_DeleteTranscriptionJobCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "Transcribe.DeleteTranscriptionJob",
99
- };
66
+ const headers = sharedHeaders("DeleteTranscriptionJob");
100
67
  let body;
101
- body = JSON.stringify(se_DeleteTranscriptionJobRequest(input, context));
68
+ body = JSON.stringify(_json(input));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_DeleteVocabularyCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "Transcribe.DeleteVocabulary",
108
- };
72
+ const headers = sharedHeaders("DeleteVocabulary");
109
73
  let body;
110
- body = JSON.stringify(se_DeleteVocabularyRequest(input, context));
74
+ body = JSON.stringify(_json(input));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_DeleteVocabularyFilterCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "Transcribe.DeleteVocabularyFilter",
117
- };
78
+ const headers = sharedHeaders("DeleteVocabularyFilter");
118
79
  let body;
119
- body = JSON.stringify(se_DeleteVocabularyFilterRequest(input, context));
80
+ body = JSON.stringify(_json(input));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_DescribeLanguageModelCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "Transcribe.DescribeLanguageModel",
126
- };
84
+ const headers = sharedHeaders("DescribeLanguageModel");
127
85
  let body;
128
- body = JSON.stringify(se_DescribeLanguageModelRequest(input, context));
86
+ body = JSON.stringify(_json(input));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_GetCallAnalyticsCategoryCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "Transcribe.GetCallAnalyticsCategory",
135
- };
90
+ const headers = sharedHeaders("GetCallAnalyticsCategory");
136
91
  let body;
137
- body = JSON.stringify(se_GetCallAnalyticsCategoryRequest(input, context));
92
+ body = JSON.stringify(_json(input));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_GetCallAnalyticsJobCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "Transcribe.GetCallAnalyticsJob",
144
- };
96
+ const headers = sharedHeaders("GetCallAnalyticsJob");
145
97
  let body;
146
- body = JSON.stringify(se_GetCallAnalyticsJobRequest(input, context));
98
+ body = JSON.stringify(_json(input));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_GetMedicalTranscriptionJobCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "Transcribe.GetMedicalTranscriptionJob",
153
- };
102
+ const headers = sharedHeaders("GetMedicalTranscriptionJob");
154
103
  let body;
155
- body = JSON.stringify(se_GetMedicalTranscriptionJobRequest(input, context));
104
+ body = JSON.stringify(_json(input));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_GetMedicalVocabularyCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "Transcribe.GetMedicalVocabulary",
162
- };
108
+ const headers = sharedHeaders("GetMedicalVocabulary");
163
109
  let body;
164
- body = JSON.stringify(se_GetMedicalVocabularyRequest(input, context));
110
+ body = JSON.stringify(_json(input));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_GetTranscriptionJobCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "Transcribe.GetTranscriptionJob",
171
- };
114
+ const headers = sharedHeaders("GetTranscriptionJob");
172
115
  let body;
173
- body = JSON.stringify(se_GetTranscriptionJobRequest(input, context));
116
+ body = JSON.stringify(_json(input));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_GetVocabularyCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "Transcribe.GetVocabulary",
180
- };
120
+ const headers = sharedHeaders("GetVocabulary");
181
121
  let body;
182
- body = JSON.stringify(se_GetVocabularyRequest(input, context));
122
+ body = JSON.stringify(_json(input));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_GetVocabularyFilterCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "Transcribe.GetVocabularyFilter",
189
- };
126
+ const headers = sharedHeaders("GetVocabularyFilter");
190
127
  let body;
191
- body = JSON.stringify(se_GetVocabularyFilterRequest(input, context));
128
+ body = JSON.stringify(_json(input));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_ListCallAnalyticsCategoriesCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "Transcribe.ListCallAnalyticsCategories",
198
- };
132
+ const headers = sharedHeaders("ListCallAnalyticsCategories");
199
133
  let body;
200
- body = JSON.stringify(se_ListCallAnalyticsCategoriesRequest(input, context));
134
+ body = JSON.stringify(_json(input));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_ListCallAnalyticsJobsCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "Transcribe.ListCallAnalyticsJobs",
207
- };
138
+ const headers = sharedHeaders("ListCallAnalyticsJobs");
208
139
  let body;
209
- body = JSON.stringify(se_ListCallAnalyticsJobsRequest(input, context));
140
+ body = JSON.stringify(_json(input));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_ListLanguageModelsCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "Transcribe.ListLanguageModels",
216
- };
144
+ const headers = sharedHeaders("ListLanguageModels");
217
145
  let body;
218
- body = JSON.stringify(se_ListLanguageModelsRequest(input, context));
146
+ body = JSON.stringify(_json(input));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_ListMedicalTranscriptionJobsCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "Transcribe.ListMedicalTranscriptionJobs",
225
- };
150
+ const headers = sharedHeaders("ListMedicalTranscriptionJobs");
226
151
  let body;
227
- body = JSON.stringify(se_ListMedicalTranscriptionJobsRequest(input, context));
152
+ body = JSON.stringify(_json(input));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_ListMedicalVocabulariesCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "Transcribe.ListMedicalVocabularies",
234
- };
156
+ const headers = sharedHeaders("ListMedicalVocabularies");
235
157
  let body;
236
- body = JSON.stringify(se_ListMedicalVocabulariesRequest(input, context));
158
+ body = JSON.stringify(_json(input));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const se_ListTagsForResourceCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "Transcribe.ListTagsForResource",
243
- };
162
+ const headers = sharedHeaders("ListTagsForResource");
244
163
  let body;
245
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
164
+ body = JSON.stringify(_json(input));
246
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
166
  };
248
167
  export const se_ListTranscriptionJobsCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "Transcribe.ListTranscriptionJobs",
252
- };
168
+ const headers = sharedHeaders("ListTranscriptionJobs");
253
169
  let body;
254
- body = JSON.stringify(se_ListTranscriptionJobsRequest(input, context));
170
+ body = JSON.stringify(_json(input));
255
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
172
  };
257
173
  export const se_ListVocabulariesCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.1",
260
- "x-amz-target": "Transcribe.ListVocabularies",
261
- };
174
+ const headers = sharedHeaders("ListVocabularies");
262
175
  let body;
263
- body = JSON.stringify(se_ListVocabulariesRequest(input, context));
176
+ body = JSON.stringify(_json(input));
264
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
178
  };
266
179
  export const se_ListVocabularyFiltersCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "Transcribe.ListVocabularyFilters",
270
- };
180
+ const headers = sharedHeaders("ListVocabularyFilters");
271
181
  let body;
272
- body = JSON.stringify(se_ListVocabularyFiltersRequest(input, context));
182
+ body = JSON.stringify(_json(input));
273
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
184
  };
275
185
  export const se_StartCallAnalyticsJobCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.1",
278
- "x-amz-target": "Transcribe.StartCallAnalyticsJob",
279
- };
186
+ const headers = sharedHeaders("StartCallAnalyticsJob");
280
187
  let body;
281
- body = JSON.stringify(se_StartCallAnalyticsJobRequest(input, context));
188
+ body = JSON.stringify(_json(input));
282
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
190
  };
284
191
  export const se_StartMedicalTranscriptionJobCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.1",
287
- "x-amz-target": "Transcribe.StartMedicalTranscriptionJob",
288
- };
192
+ const headers = sharedHeaders("StartMedicalTranscriptionJob");
289
193
  let body;
290
- body = JSON.stringify(se_StartMedicalTranscriptionJobRequest(input, context));
194
+ body = JSON.stringify(_json(input));
291
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
196
  };
293
197
  export const se_StartTranscriptionJobCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.1",
296
- "x-amz-target": "Transcribe.StartTranscriptionJob",
297
- };
198
+ const headers = sharedHeaders("StartTranscriptionJob");
298
199
  let body;
299
- body = JSON.stringify(se_StartTranscriptionJobRequest(input, context));
200
+ body = JSON.stringify(_json(input));
300
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
202
  };
302
203
  export const se_TagResourceCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "Transcribe.TagResource",
306
- };
204
+ const headers = sharedHeaders("TagResource");
307
205
  let body;
308
- body = JSON.stringify(se_TagResourceRequest(input, context));
206
+ body = JSON.stringify(_json(input));
309
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
208
  };
311
209
  export const se_UntagResourceCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.1",
314
- "x-amz-target": "Transcribe.UntagResource",
315
- };
210
+ const headers = sharedHeaders("UntagResource");
316
211
  let body;
317
- body = JSON.stringify(se_UntagResourceRequest(input, context));
212
+ body = JSON.stringify(_json(input));
318
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
214
  };
320
215
  export const se_UpdateCallAnalyticsCategoryCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "Transcribe.UpdateCallAnalyticsCategory",
324
- };
216
+ const headers = sharedHeaders("UpdateCallAnalyticsCategory");
325
217
  let body;
326
- body = JSON.stringify(se_UpdateCallAnalyticsCategoryRequest(input, context));
218
+ body = JSON.stringify(_json(input));
327
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
220
  };
329
221
  export const se_UpdateMedicalVocabularyCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "Transcribe.UpdateMedicalVocabulary",
333
- };
222
+ const headers = sharedHeaders("UpdateMedicalVocabulary");
334
223
  let body;
335
- body = JSON.stringify(se_UpdateMedicalVocabularyRequest(input, context));
224
+ body = JSON.stringify(_json(input));
336
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
226
  };
338
227
  export const se_UpdateVocabularyCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "Transcribe.UpdateVocabulary",
342
- };
228
+ const headers = sharedHeaders("UpdateVocabulary");
343
229
  let body;
344
- body = JSON.stringify(se_UpdateVocabularyRequest(input, context));
230
+ body = JSON.stringify(_json(input));
345
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
232
  };
347
233
  export const se_UpdateVocabularyFilterCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-amz-json-1.1",
350
- "x-amz-target": "Transcribe.UpdateVocabularyFilter",
351
- };
234
+ const headers = sharedHeaders("UpdateVocabularyFilter");
352
235
  let body;
353
- body = JSON.stringify(se_UpdateVocabularyFilterRequest(input, context));
236
+ body = JSON.stringify(_json(input));
354
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
238
  };
356
239
  export const de_CreateCallAnalyticsCategoryCommand = async (output, context) => {
@@ -364,7 +247,7 @@ export const de_CreateCallAnalyticsCategoryCommand = async (output, context) =>
364
247
  $metadata: deserializeMetadata(output),
365
248
  ...contents,
366
249
  };
367
- return Promise.resolve(response);
250
+ return response;
368
251
  };
369
252
  const de_CreateCallAnalyticsCategoryCommandError = async (output, context) => {
370
253
  const parsedOutput = {
@@ -387,10 +270,9 @@ const de_CreateCallAnalyticsCategoryCommandError = async (output, context) => {
387
270
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
388
271
  default:
389
272
  const parsedBody = parsedOutput.body;
390
- throwDefaultError({
273
+ return throwDefaultError({
391
274
  output,
392
275
  parsedBody,
393
- exceptionCtor: __BaseException,
394
276
  errorCode,
395
277
  });
396
278
  }
@@ -401,12 +283,12 @@ export const de_CreateLanguageModelCommand = async (output, context) => {
401
283
  }
402
284
  const data = await parseBody(output.body, context);
403
285
  let contents = {};
404
- contents = de_CreateLanguageModelResponse(data, context);
286
+ contents = _json(data);
405
287
  const response = {
406
288
  $metadata: deserializeMetadata(output),
407
289
  ...contents,
408
290
  };
409
- return Promise.resolve(response);
291
+ return response;
410
292
  };
411
293
  const de_CreateLanguageModelCommandError = async (output, context) => {
412
294
  const parsedOutput = {
@@ -429,10 +311,9 @@ const de_CreateLanguageModelCommandError = async (output, context) => {
429
311
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
430
312
  default:
431
313
  const parsedBody = parsedOutput.body;
432
- throwDefaultError({
314
+ return throwDefaultError({
433
315
  output,
434
316
  parsedBody,
435
- exceptionCtor: __BaseException,
436
317
  errorCode,
437
318
  });
438
319
  }
@@ -448,7 +329,7 @@ export const de_CreateMedicalVocabularyCommand = async (output, context) => {
448
329
  $metadata: deserializeMetadata(output),
449
330
  ...contents,
450
331
  };
451
- return Promise.resolve(response);
332
+ return response;
452
333
  };
453
334
  const de_CreateMedicalVocabularyCommandError = async (output, context) => {
454
335
  const parsedOutput = {
@@ -471,10 +352,9 @@ const de_CreateMedicalVocabularyCommandError = async (output, context) => {
471
352
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
472
353
  default:
473
354
  const parsedBody = parsedOutput.body;
474
- throwDefaultError({
355
+ return throwDefaultError({
475
356
  output,
476
357
  parsedBody,
477
- exceptionCtor: __BaseException,
478
358
  errorCode,
479
359
  });
480
360
  }
@@ -490,7 +370,7 @@ export const de_CreateVocabularyCommand = async (output, context) => {
490
370
  $metadata: deserializeMetadata(output),
491
371
  ...contents,
492
372
  };
493
- return Promise.resolve(response);
373
+ return response;
494
374
  };
495
375
  const de_CreateVocabularyCommandError = async (output, context) => {
496
376
  const parsedOutput = {
@@ -513,10 +393,9 @@ const de_CreateVocabularyCommandError = async (output, context) => {
513
393
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
514
394
  default:
515
395
  const parsedBody = parsedOutput.body;
516
- throwDefaultError({
396
+ return throwDefaultError({
517
397
  output,
518
398
  parsedBody,
519
- exceptionCtor: __BaseException,
520
399
  errorCode,
521
400
  });
522
401
  }
@@ -532,7 +411,7 @@ export const de_CreateVocabularyFilterCommand = async (output, context) => {
532
411
  $metadata: deserializeMetadata(output),
533
412
  ...contents,
534
413
  };
535
- return Promise.resolve(response);
414
+ return response;
536
415
  };
537
416
  const de_CreateVocabularyFilterCommandError = async (output, context) => {
538
417
  const parsedOutput = {
@@ -555,10 +434,9 @@ const de_CreateVocabularyFilterCommandError = async (output, context) => {
555
434
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
556
435
  default:
557
436
  const parsedBody = parsedOutput.body;
558
- throwDefaultError({
437
+ return throwDefaultError({
559
438
  output,
560
439
  parsedBody,
561
- exceptionCtor: __BaseException,
562
440
  errorCode,
563
441
  });
564
442
  }
@@ -569,12 +447,12 @@ export const de_DeleteCallAnalyticsCategoryCommand = async (output, context) =>
569
447
  }
570
448
  const data = await parseBody(output.body, context);
571
449
  let contents = {};
572
- contents = de_DeleteCallAnalyticsCategoryResponse(data, context);
450
+ contents = _json(data);
573
451
  const response = {
574
452
  $metadata: deserializeMetadata(output),
575
453
  ...contents,
576
454
  };
577
- return Promise.resolve(response);
455
+ return response;
578
456
  };
579
457
  const de_DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
580
458
  const parsedOutput = {
@@ -597,10 +475,9 @@ const de_DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
597
475
  throw await de_NotFoundExceptionRes(parsedOutput, context);
598
476
  default:
599
477
  const parsedBody = parsedOutput.body;
600
- throwDefaultError({
478
+ return throwDefaultError({
601
479
  output,
602
480
  parsedBody,
603
- exceptionCtor: __BaseException,
604
481
  errorCode,
605
482
  });
606
483
  }
@@ -611,12 +488,12 @@ export const de_DeleteCallAnalyticsJobCommand = async (output, context) => {
611
488
  }
612
489
  const data = await parseBody(output.body, context);
613
490
  let contents = {};
614
- contents = de_DeleteCallAnalyticsJobResponse(data, context);
491
+ contents = _json(data);
615
492
  const response = {
616
493
  $metadata: deserializeMetadata(output),
617
494
  ...contents,
618
495
  };
619
- return Promise.resolve(response);
496
+ return response;
620
497
  };
621
498
  const de_DeleteCallAnalyticsJobCommandError = async (output, context) => {
622
499
  const parsedOutput = {
@@ -636,10 +513,9 @@ const de_DeleteCallAnalyticsJobCommandError = async (output, context) => {
636
513
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
637
514
  default:
638
515
  const parsedBody = parsedOutput.body;
639
- throwDefaultError({
516
+ return throwDefaultError({
640
517
  output,
641
518
  parsedBody,
642
- exceptionCtor: __BaseException,
643
519
  errorCode,
644
520
  });
645
521
  }
@@ -652,7 +528,7 @@ export const de_DeleteLanguageModelCommand = async (output, context) => {
652
528
  const response = {
653
529
  $metadata: deserializeMetadata(output),
654
530
  };
655
- return Promise.resolve(response);
531
+ return response;
656
532
  };
657
533
  const de_DeleteLanguageModelCommandError = async (output, context) => {
658
534
  const parsedOutput = {
@@ -672,10 +548,9 @@ const de_DeleteLanguageModelCommandError = async (output, context) => {
672
548
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
673
549
  default:
674
550
  const parsedBody = parsedOutput.body;
675
- throwDefaultError({
551
+ return throwDefaultError({
676
552
  output,
677
553
  parsedBody,
678
- exceptionCtor: __BaseException,
679
554
  errorCode,
680
555
  });
681
556
  }
@@ -688,7 +563,7 @@ export const de_DeleteMedicalTranscriptionJobCommand = async (output, context) =
688
563
  const response = {
689
564
  $metadata: deserializeMetadata(output),
690
565
  };
691
- return Promise.resolve(response);
566
+ return response;
692
567
  };
693
568
  const de_DeleteMedicalTranscriptionJobCommandError = async (output, context) => {
694
569
  const parsedOutput = {
@@ -708,10 +583,9 @@ const de_DeleteMedicalTranscriptionJobCommandError = async (output, context) =>
708
583
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
709
584
  default:
710
585
  const parsedBody = parsedOutput.body;
711
- throwDefaultError({
586
+ return throwDefaultError({
712
587
  output,
713
588
  parsedBody,
714
- exceptionCtor: __BaseException,
715
589
  errorCode,
716
590
  });
717
591
  }
@@ -724,7 +598,7 @@ export const de_DeleteMedicalVocabularyCommand = async (output, context) => {
724
598
  const response = {
725
599
  $metadata: deserializeMetadata(output),
726
600
  };
727
- return Promise.resolve(response);
601
+ return response;
728
602
  };
729
603
  const de_DeleteMedicalVocabularyCommandError = async (output, context) => {
730
604
  const parsedOutput = {
@@ -747,10 +621,9 @@ const de_DeleteMedicalVocabularyCommandError = async (output, context) => {
747
621
  throw await de_NotFoundExceptionRes(parsedOutput, context);
748
622
  default:
749
623
  const parsedBody = parsedOutput.body;
750
- throwDefaultError({
624
+ return throwDefaultError({
751
625
  output,
752
626
  parsedBody,
753
- exceptionCtor: __BaseException,
754
627
  errorCode,
755
628
  });
756
629
  }
@@ -763,7 +636,7 @@ export const de_DeleteTranscriptionJobCommand = async (output, context) => {
763
636
  const response = {
764
637
  $metadata: deserializeMetadata(output),
765
638
  };
766
- return Promise.resolve(response);
639
+ return response;
767
640
  };
768
641
  const de_DeleteTranscriptionJobCommandError = async (output, context) => {
769
642
  const parsedOutput = {
@@ -783,10 +656,9 @@ const de_DeleteTranscriptionJobCommandError = async (output, context) => {
783
656
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
784
657
  default:
785
658
  const parsedBody = parsedOutput.body;
786
- throwDefaultError({
659
+ return throwDefaultError({
787
660
  output,
788
661
  parsedBody,
789
- exceptionCtor: __BaseException,
790
662
  errorCode,
791
663
  });
792
664
  }
@@ -799,7 +671,7 @@ export const de_DeleteVocabularyCommand = async (output, context) => {
799
671
  const response = {
800
672
  $metadata: deserializeMetadata(output),
801
673
  };
802
- return Promise.resolve(response);
674
+ return response;
803
675
  };
804
676
  const de_DeleteVocabularyCommandError = async (output, context) => {
805
677
  const parsedOutput = {
@@ -822,10 +694,9 @@ const de_DeleteVocabularyCommandError = async (output, context) => {
822
694
  throw await de_NotFoundExceptionRes(parsedOutput, context);
823
695
  default:
824
696
  const parsedBody = parsedOutput.body;
825
- throwDefaultError({
697
+ return throwDefaultError({
826
698
  output,
827
699
  parsedBody,
828
- exceptionCtor: __BaseException,
829
700
  errorCode,
830
701
  });
831
702
  }
@@ -838,7 +709,7 @@ export const de_DeleteVocabularyFilterCommand = async (output, context) => {
838
709
  const response = {
839
710
  $metadata: deserializeMetadata(output),
840
711
  };
841
- return Promise.resolve(response);
712
+ return response;
842
713
  };
843
714
  const de_DeleteVocabularyFilterCommandError = async (output, context) => {
844
715
  const parsedOutput = {
@@ -861,10 +732,9 @@ const de_DeleteVocabularyFilterCommandError = async (output, context) => {
861
732
  throw await de_NotFoundExceptionRes(parsedOutput, context);
862
733
  default:
863
734
  const parsedBody = parsedOutput.body;
864
- throwDefaultError({
735
+ return throwDefaultError({
865
736
  output,
866
737
  parsedBody,
867
- exceptionCtor: __BaseException,
868
738
  errorCode,
869
739
  });
870
740
  }
@@ -880,7 +750,7 @@ export const de_DescribeLanguageModelCommand = async (output, context) => {
880
750
  $metadata: deserializeMetadata(output),
881
751
  ...contents,
882
752
  };
883
- return Promise.resolve(response);
753
+ return response;
884
754
  };
885
755
  const de_DescribeLanguageModelCommandError = async (output, context) => {
886
756
  const parsedOutput = {
@@ -903,10 +773,9 @@ const de_DescribeLanguageModelCommandError = async (output, context) => {
903
773
  throw await de_NotFoundExceptionRes(parsedOutput, context);
904
774
  default:
905
775
  const parsedBody = parsedOutput.body;
906
- throwDefaultError({
776
+ return throwDefaultError({
907
777
  output,
908
778
  parsedBody,
909
- exceptionCtor: __BaseException,
910
779
  errorCode,
911
780
  });
912
781
  }
@@ -922,7 +791,7 @@ export const de_GetCallAnalyticsCategoryCommand = async (output, context) => {
922
791
  $metadata: deserializeMetadata(output),
923
792
  ...contents,
924
793
  };
925
- return Promise.resolve(response);
794
+ return response;
926
795
  };
927
796
  const de_GetCallAnalyticsCategoryCommandError = async (output, context) => {
928
797
  const parsedOutput = {
@@ -945,10 +814,9 @@ const de_GetCallAnalyticsCategoryCommandError = async (output, context) => {
945
814
  throw await de_NotFoundExceptionRes(parsedOutput, context);
946
815
  default:
947
816
  const parsedBody = parsedOutput.body;
948
- throwDefaultError({
817
+ return throwDefaultError({
949
818
  output,
950
819
  parsedBody,
951
- exceptionCtor: __BaseException,
952
820
  errorCode,
953
821
  });
954
822
  }
@@ -964,7 +832,7 @@ export const de_GetCallAnalyticsJobCommand = async (output, context) => {
964
832
  $metadata: deserializeMetadata(output),
965
833
  ...contents,
966
834
  };
967
- return Promise.resolve(response);
835
+ return response;
968
836
  };
969
837
  const de_GetCallAnalyticsJobCommandError = async (output, context) => {
970
838
  const parsedOutput = {
@@ -987,10 +855,9 @@ const de_GetCallAnalyticsJobCommandError = async (output, context) => {
987
855
  throw await de_NotFoundExceptionRes(parsedOutput, context);
988
856
  default:
989
857
  const parsedBody = parsedOutput.body;
990
- throwDefaultError({
858
+ return throwDefaultError({
991
859
  output,
992
860
  parsedBody,
993
- exceptionCtor: __BaseException,
994
861
  errorCode,
995
862
  });
996
863
  }
@@ -1006,7 +873,7 @@ export const de_GetMedicalTranscriptionJobCommand = async (output, context) => {
1006
873
  $metadata: deserializeMetadata(output),
1007
874
  ...contents,
1008
875
  };
1009
- return Promise.resolve(response);
876
+ return response;
1010
877
  };
1011
878
  const de_GetMedicalTranscriptionJobCommandError = async (output, context) => {
1012
879
  const parsedOutput = {
@@ -1029,10 +896,9 @@ const de_GetMedicalTranscriptionJobCommandError = async (output, context) => {
1029
896
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1030
897
  default:
1031
898
  const parsedBody = parsedOutput.body;
1032
- throwDefaultError({
899
+ return throwDefaultError({
1033
900
  output,
1034
901
  parsedBody,
1035
- exceptionCtor: __BaseException,
1036
902
  errorCode,
1037
903
  });
1038
904
  }
@@ -1048,7 +914,7 @@ export const de_GetMedicalVocabularyCommand = async (output, context) => {
1048
914
  $metadata: deserializeMetadata(output),
1049
915
  ...contents,
1050
916
  };
1051
- return Promise.resolve(response);
917
+ return response;
1052
918
  };
1053
919
  const de_GetMedicalVocabularyCommandError = async (output, context) => {
1054
920
  const parsedOutput = {
@@ -1071,10 +937,9 @@ const de_GetMedicalVocabularyCommandError = async (output, context) => {
1071
937
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1072
938
  default:
1073
939
  const parsedBody = parsedOutput.body;
1074
- throwDefaultError({
940
+ return throwDefaultError({
1075
941
  output,
1076
942
  parsedBody,
1077
- exceptionCtor: __BaseException,
1078
943
  errorCode,
1079
944
  });
1080
945
  }
@@ -1090,7 +955,7 @@ export const de_GetTranscriptionJobCommand = async (output, context) => {
1090
955
  $metadata: deserializeMetadata(output),
1091
956
  ...contents,
1092
957
  };
1093
- return Promise.resolve(response);
958
+ return response;
1094
959
  };
1095
960
  const de_GetTranscriptionJobCommandError = async (output, context) => {
1096
961
  const parsedOutput = {
@@ -1113,10 +978,9 @@ const de_GetTranscriptionJobCommandError = async (output, context) => {
1113
978
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1114
979
  default:
1115
980
  const parsedBody = parsedOutput.body;
1116
- throwDefaultError({
981
+ return throwDefaultError({
1117
982
  output,
1118
983
  parsedBody,
1119
- exceptionCtor: __BaseException,
1120
984
  errorCode,
1121
985
  });
1122
986
  }
@@ -1132,7 +996,7 @@ export const de_GetVocabularyCommand = async (output, context) => {
1132
996
  $metadata: deserializeMetadata(output),
1133
997
  ...contents,
1134
998
  };
1135
- return Promise.resolve(response);
999
+ return response;
1136
1000
  };
1137
1001
  const de_GetVocabularyCommandError = async (output, context) => {
1138
1002
  const parsedOutput = {
@@ -1155,10 +1019,9 @@ const de_GetVocabularyCommandError = async (output, context) => {
1155
1019
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1156
1020
  default:
1157
1021
  const parsedBody = parsedOutput.body;
1158
- throwDefaultError({
1022
+ return throwDefaultError({
1159
1023
  output,
1160
1024
  parsedBody,
1161
- exceptionCtor: __BaseException,
1162
1025
  errorCode,
1163
1026
  });
1164
1027
  }
@@ -1174,7 +1037,7 @@ export const de_GetVocabularyFilterCommand = async (output, context) => {
1174
1037
  $metadata: deserializeMetadata(output),
1175
1038
  ...contents,
1176
1039
  };
1177
- return Promise.resolve(response);
1040
+ return response;
1178
1041
  };
1179
1042
  const de_GetVocabularyFilterCommandError = async (output, context) => {
1180
1043
  const parsedOutput = {
@@ -1197,10 +1060,9 @@ const de_GetVocabularyFilterCommandError = async (output, context) => {
1197
1060
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1198
1061
  default:
1199
1062
  const parsedBody = parsedOutput.body;
1200
- throwDefaultError({
1063
+ return throwDefaultError({
1201
1064
  output,
1202
1065
  parsedBody,
1203
- exceptionCtor: __BaseException,
1204
1066
  errorCode,
1205
1067
  });
1206
1068
  }
@@ -1216,7 +1078,7 @@ export const de_ListCallAnalyticsCategoriesCommand = async (output, context) =>
1216
1078
  $metadata: deserializeMetadata(output),
1217
1079
  ...contents,
1218
1080
  };
1219
- return Promise.resolve(response);
1081
+ return response;
1220
1082
  };
1221
1083
  const de_ListCallAnalyticsCategoriesCommandError = async (output, context) => {
1222
1084
  const parsedOutput = {
@@ -1236,10 +1098,9 @@ const de_ListCallAnalyticsCategoriesCommandError = async (output, context) => {
1236
1098
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1237
1099
  default:
1238
1100
  const parsedBody = parsedOutput.body;
1239
- throwDefaultError({
1101
+ return throwDefaultError({
1240
1102
  output,
1241
1103
  parsedBody,
1242
- exceptionCtor: __BaseException,
1243
1104
  errorCode,
1244
1105
  });
1245
1106
  }
@@ -1255,7 +1116,7 @@ export const de_ListCallAnalyticsJobsCommand = async (output, context) => {
1255
1116
  $metadata: deserializeMetadata(output),
1256
1117
  ...contents,
1257
1118
  };
1258
- return Promise.resolve(response);
1119
+ return response;
1259
1120
  };
1260
1121
  const de_ListCallAnalyticsJobsCommandError = async (output, context) => {
1261
1122
  const parsedOutput = {
@@ -1275,10 +1136,9 @@ const de_ListCallAnalyticsJobsCommandError = async (output, context) => {
1275
1136
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1276
1137
  default:
1277
1138
  const parsedBody = parsedOutput.body;
1278
- throwDefaultError({
1139
+ return throwDefaultError({
1279
1140
  output,
1280
1141
  parsedBody,
1281
- exceptionCtor: __BaseException,
1282
1142
  errorCode,
1283
1143
  });
1284
1144
  }
@@ -1294,7 +1154,7 @@ export const de_ListLanguageModelsCommand = async (output, context) => {
1294
1154
  $metadata: deserializeMetadata(output),
1295
1155
  ...contents,
1296
1156
  };
1297
- return Promise.resolve(response);
1157
+ return response;
1298
1158
  };
1299
1159
  const de_ListLanguageModelsCommandError = async (output, context) => {
1300
1160
  const parsedOutput = {
@@ -1314,10 +1174,9 @@ const de_ListLanguageModelsCommandError = async (output, context) => {
1314
1174
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1315
1175
  default:
1316
1176
  const parsedBody = parsedOutput.body;
1317
- throwDefaultError({
1177
+ return throwDefaultError({
1318
1178
  output,
1319
1179
  parsedBody,
1320
- exceptionCtor: __BaseException,
1321
1180
  errorCode,
1322
1181
  });
1323
1182
  }
@@ -1333,7 +1192,7 @@ export const de_ListMedicalTranscriptionJobsCommand = async (output, context) =>
1333
1192
  $metadata: deserializeMetadata(output),
1334
1193
  ...contents,
1335
1194
  };
1336
- return Promise.resolve(response);
1195
+ return response;
1337
1196
  };
1338
1197
  const de_ListMedicalTranscriptionJobsCommandError = async (output, context) => {
1339
1198
  const parsedOutput = {
@@ -1353,10 +1212,9 @@ const de_ListMedicalTranscriptionJobsCommandError = async (output, context) => {
1353
1212
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1354
1213
  default:
1355
1214
  const parsedBody = parsedOutput.body;
1356
- throwDefaultError({
1215
+ return throwDefaultError({
1357
1216
  output,
1358
1217
  parsedBody,
1359
- exceptionCtor: __BaseException,
1360
1218
  errorCode,
1361
1219
  });
1362
1220
  }
@@ -1372,7 +1230,7 @@ export const de_ListMedicalVocabulariesCommand = async (output, context) => {
1372
1230
  $metadata: deserializeMetadata(output),
1373
1231
  ...contents,
1374
1232
  };
1375
- return Promise.resolve(response);
1233
+ return response;
1376
1234
  };
1377
1235
  const de_ListMedicalVocabulariesCommandError = async (output, context) => {
1378
1236
  const parsedOutput = {
@@ -1392,10 +1250,9 @@ const de_ListMedicalVocabulariesCommandError = async (output, context) => {
1392
1250
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1393
1251
  default:
1394
1252
  const parsedBody = parsedOutput.body;
1395
- throwDefaultError({
1253
+ return throwDefaultError({
1396
1254
  output,
1397
1255
  parsedBody,
1398
- exceptionCtor: __BaseException,
1399
1256
  errorCode,
1400
1257
  });
1401
1258
  }
@@ -1406,12 +1263,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1406
1263
  }
1407
1264
  const data = await parseBody(output.body, context);
1408
1265
  let contents = {};
1409
- contents = de_ListTagsForResourceResponse(data, context);
1266
+ contents = _json(data);
1410
1267
  const response = {
1411
1268
  $metadata: deserializeMetadata(output),
1412
1269
  ...contents,
1413
1270
  };
1414
- return Promise.resolve(response);
1271
+ return response;
1415
1272
  };
1416
1273
  const de_ListTagsForResourceCommandError = async (output, context) => {
1417
1274
  const parsedOutput = {
@@ -1434,10 +1291,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1434
1291
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1435
1292
  default:
1436
1293
  const parsedBody = parsedOutput.body;
1437
- throwDefaultError({
1294
+ return throwDefaultError({
1438
1295
  output,
1439
1296
  parsedBody,
1440
- exceptionCtor: __BaseException,
1441
1297
  errorCode,
1442
1298
  });
1443
1299
  }
@@ -1453,7 +1309,7 @@ export const de_ListTranscriptionJobsCommand = async (output, context) => {
1453
1309
  $metadata: deserializeMetadata(output),
1454
1310
  ...contents,
1455
1311
  };
1456
- return Promise.resolve(response);
1312
+ return response;
1457
1313
  };
1458
1314
  const de_ListTranscriptionJobsCommandError = async (output, context) => {
1459
1315
  const parsedOutput = {
@@ -1473,10 +1329,9 @@ const de_ListTranscriptionJobsCommandError = async (output, context) => {
1473
1329
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1474
1330
  default:
1475
1331
  const parsedBody = parsedOutput.body;
1476
- throwDefaultError({
1332
+ return throwDefaultError({
1477
1333
  output,
1478
1334
  parsedBody,
1479
- exceptionCtor: __BaseException,
1480
1335
  errorCode,
1481
1336
  });
1482
1337
  }
@@ -1492,7 +1347,7 @@ export const de_ListVocabulariesCommand = async (output, context) => {
1492
1347
  $metadata: deserializeMetadata(output),
1493
1348
  ...contents,
1494
1349
  };
1495
- return Promise.resolve(response);
1350
+ return response;
1496
1351
  };
1497
1352
  const de_ListVocabulariesCommandError = async (output, context) => {
1498
1353
  const parsedOutput = {
@@ -1512,10 +1367,9 @@ const de_ListVocabulariesCommandError = async (output, context) => {
1512
1367
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1513
1368
  default:
1514
1369
  const parsedBody = parsedOutput.body;
1515
- throwDefaultError({
1370
+ return throwDefaultError({
1516
1371
  output,
1517
1372
  parsedBody,
1518
- exceptionCtor: __BaseException,
1519
1373
  errorCode,
1520
1374
  });
1521
1375
  }
@@ -1531,7 +1385,7 @@ export const de_ListVocabularyFiltersCommand = async (output, context) => {
1531
1385
  $metadata: deserializeMetadata(output),
1532
1386
  ...contents,
1533
1387
  };
1534
- return Promise.resolve(response);
1388
+ return response;
1535
1389
  };
1536
1390
  const de_ListVocabularyFiltersCommandError = async (output, context) => {
1537
1391
  const parsedOutput = {
@@ -1551,10 +1405,9 @@ const de_ListVocabularyFiltersCommandError = async (output, context) => {
1551
1405
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1552
1406
  default:
1553
1407
  const parsedBody = parsedOutput.body;
1554
- throwDefaultError({
1408
+ return throwDefaultError({
1555
1409
  output,
1556
1410
  parsedBody,
1557
- exceptionCtor: __BaseException,
1558
1411
  errorCode,
1559
1412
  });
1560
1413
  }
@@ -1570,7 +1423,7 @@ export const de_StartCallAnalyticsJobCommand = async (output, context) => {
1570
1423
  $metadata: deserializeMetadata(output),
1571
1424
  ...contents,
1572
1425
  };
1573
- return Promise.resolve(response);
1426
+ return response;
1574
1427
  };
1575
1428
  const de_StartCallAnalyticsJobCommandError = async (output, context) => {
1576
1429
  const parsedOutput = {
@@ -1593,10 +1446,9 @@ const de_StartCallAnalyticsJobCommandError = async (output, context) => {
1593
1446
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1594
1447
  default:
1595
1448
  const parsedBody = parsedOutput.body;
1596
- throwDefaultError({
1449
+ return throwDefaultError({
1597
1450
  output,
1598
1451
  parsedBody,
1599
- exceptionCtor: __BaseException,
1600
1452
  errorCode,
1601
1453
  });
1602
1454
  }
@@ -1612,7 +1464,7 @@ export const de_StartMedicalTranscriptionJobCommand = async (output, context) =>
1612
1464
  $metadata: deserializeMetadata(output),
1613
1465
  ...contents,
1614
1466
  };
1615
- return Promise.resolve(response);
1467
+ return response;
1616
1468
  };
1617
1469
  const de_StartMedicalTranscriptionJobCommandError = async (output, context) => {
1618
1470
  const parsedOutput = {
@@ -1635,10 +1487,9 @@ const de_StartMedicalTranscriptionJobCommandError = async (output, context) => {
1635
1487
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1636
1488
  default:
1637
1489
  const parsedBody = parsedOutput.body;
1638
- throwDefaultError({
1490
+ return throwDefaultError({
1639
1491
  output,
1640
1492
  parsedBody,
1641
- exceptionCtor: __BaseException,
1642
1493
  errorCode,
1643
1494
  });
1644
1495
  }
@@ -1654,7 +1505,7 @@ export const de_StartTranscriptionJobCommand = async (output, context) => {
1654
1505
  $metadata: deserializeMetadata(output),
1655
1506
  ...contents,
1656
1507
  };
1657
- return Promise.resolve(response);
1508
+ return response;
1658
1509
  };
1659
1510
  const de_StartTranscriptionJobCommandError = async (output, context) => {
1660
1511
  const parsedOutput = {
@@ -1677,10 +1528,9 @@ const de_StartTranscriptionJobCommandError = async (output, context) => {
1677
1528
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1678
1529
  default:
1679
1530
  const parsedBody = parsedOutput.body;
1680
- throwDefaultError({
1531
+ return throwDefaultError({
1681
1532
  output,
1682
1533
  parsedBody,
1683
- exceptionCtor: __BaseException,
1684
1534
  errorCode,
1685
1535
  });
1686
1536
  }
@@ -1691,12 +1541,12 @@ export const de_TagResourceCommand = async (output, context) => {
1691
1541
  }
1692
1542
  const data = await parseBody(output.body, context);
1693
1543
  let contents = {};
1694
- contents = de_TagResourceResponse(data, context);
1544
+ contents = _json(data);
1695
1545
  const response = {
1696
1546
  $metadata: deserializeMetadata(output),
1697
1547
  ...contents,
1698
1548
  };
1699
- return Promise.resolve(response);
1549
+ return response;
1700
1550
  };
1701
1551
  const de_TagResourceCommandError = async (output, context) => {
1702
1552
  const parsedOutput = {
@@ -1722,10 +1572,9 @@ const de_TagResourceCommandError = async (output, context) => {
1722
1572
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1723
1573
  default:
1724
1574
  const parsedBody = parsedOutput.body;
1725
- throwDefaultError({
1575
+ return throwDefaultError({
1726
1576
  output,
1727
1577
  parsedBody,
1728
- exceptionCtor: __BaseException,
1729
1578
  errorCode,
1730
1579
  });
1731
1580
  }
@@ -1736,12 +1585,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1736
1585
  }
1737
1586
  const data = await parseBody(output.body, context);
1738
1587
  let contents = {};
1739
- contents = de_UntagResourceResponse(data, context);
1588
+ contents = _json(data);
1740
1589
  const response = {
1741
1590
  $metadata: deserializeMetadata(output),
1742
1591
  ...contents,
1743
1592
  };
1744
- return Promise.resolve(response);
1593
+ return response;
1745
1594
  };
1746
1595
  const de_UntagResourceCommandError = async (output, context) => {
1747
1596
  const parsedOutput = {
@@ -1767,10 +1616,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1767
1616
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1768
1617
  default:
1769
1618
  const parsedBody = parsedOutput.body;
1770
- throwDefaultError({
1619
+ return throwDefaultError({
1771
1620
  output,
1772
1621
  parsedBody,
1773
- exceptionCtor: __BaseException,
1774
1622
  errorCode,
1775
1623
  });
1776
1624
  }
@@ -1786,7 +1634,7 @@ export const de_UpdateCallAnalyticsCategoryCommand = async (output, context) =>
1786
1634
  $metadata: deserializeMetadata(output),
1787
1635
  ...contents,
1788
1636
  };
1789
- return Promise.resolve(response);
1637
+ return response;
1790
1638
  };
1791
1639
  const de_UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
1792
1640
  const parsedOutput = {
@@ -1812,10 +1660,9 @@ const de_UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
1812
1660
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1813
1661
  default:
1814
1662
  const parsedBody = parsedOutput.body;
1815
- throwDefaultError({
1663
+ return throwDefaultError({
1816
1664
  output,
1817
1665
  parsedBody,
1818
- exceptionCtor: __BaseException,
1819
1666
  errorCode,
1820
1667
  });
1821
1668
  }
@@ -1831,7 +1678,7 @@ export const de_UpdateMedicalVocabularyCommand = async (output, context) => {
1831
1678
  $metadata: deserializeMetadata(output),
1832
1679
  ...contents,
1833
1680
  };
1834
- return Promise.resolve(response);
1681
+ return response;
1835
1682
  };
1836
1683
  const de_UpdateMedicalVocabularyCommandError = async (output, context) => {
1837
1684
  const parsedOutput = {
@@ -1857,10 +1704,9 @@ const de_UpdateMedicalVocabularyCommandError = async (output, context) => {
1857
1704
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1858
1705
  default:
1859
1706
  const parsedBody = parsedOutput.body;
1860
- throwDefaultError({
1707
+ return throwDefaultError({
1861
1708
  output,
1862
1709
  parsedBody,
1863
- exceptionCtor: __BaseException,
1864
1710
  errorCode,
1865
1711
  });
1866
1712
  }
@@ -1876,7 +1722,7 @@ export const de_UpdateVocabularyCommand = async (output, context) => {
1876
1722
  $metadata: deserializeMetadata(output),
1877
1723
  ...contents,
1878
1724
  };
1879
- return Promise.resolve(response);
1725
+ return response;
1880
1726
  };
1881
1727
  const de_UpdateVocabularyCommandError = async (output, context) => {
1882
1728
  const parsedOutput = {
@@ -1902,10 +1748,9 @@ const de_UpdateVocabularyCommandError = async (output, context) => {
1902
1748
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1903
1749
  default:
1904
1750
  const parsedBody = parsedOutput.body;
1905
- throwDefaultError({
1751
+ return throwDefaultError({
1906
1752
  output,
1907
1753
  parsedBody,
1908
- exceptionCtor: __BaseException,
1909
1754
  errorCode,
1910
1755
  });
1911
1756
  }
@@ -1921,7 +1766,7 @@ export const de_UpdateVocabularyFilterCommand = async (output, context) => {
1921
1766
  $metadata: deserializeMetadata(output),
1922
1767
  ...contents,
1923
1768
  };
1924
- return Promise.resolve(response);
1769
+ return response;
1925
1770
  };
1926
1771
  const de_UpdateVocabularyFilterCommandError = async (output, context) => {
1927
1772
  const parsedOutput = {
@@ -1944,17 +1789,16 @@ const de_UpdateVocabularyFilterCommandError = async (output, context) => {
1944
1789
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1945
1790
  default:
1946
1791
  const parsedBody = parsedOutput.body;
1947
- throwDefaultError({
1792
+ return throwDefaultError({
1948
1793
  output,
1949
1794
  parsedBody,
1950
- exceptionCtor: __BaseException,
1951
1795
  errorCode,
1952
1796
  });
1953
1797
  }
1954
1798
  };
1955
1799
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1956
1800
  const body = parsedOutput.body;
1957
- const deserialized = de_BadRequestException(body, context);
1801
+ const deserialized = _json(body);
1958
1802
  const exception = new BadRequestException({
1959
1803
  $metadata: deserializeMetadata(parsedOutput),
1960
1804
  ...deserialized,
@@ -1963,7 +1807,7 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1963
1807
  };
1964
1808
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1965
1809
  const body = parsedOutput.body;
1966
- const deserialized = de_ConflictException(body, context);
1810
+ const deserialized = _json(body);
1967
1811
  const exception = new ConflictException({
1968
1812
  $metadata: deserializeMetadata(parsedOutput),
1969
1813
  ...deserialized,
@@ -1972,7 +1816,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1972
1816
  };
1973
1817
  const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
1974
1818
  const body = parsedOutput.body;
1975
- const deserialized = de_InternalFailureException(body, context);
1819
+ const deserialized = _json(body);
1976
1820
  const exception = new InternalFailureException({
1977
1821
  $metadata: deserializeMetadata(parsedOutput),
1978
1822
  ...deserialized,
@@ -1981,7 +1825,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
1981
1825
  };
1982
1826
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1983
1827
  const body = parsedOutput.body;
1984
- const deserialized = de_LimitExceededException(body, context);
1828
+ const deserialized = _json(body);
1985
1829
  const exception = new LimitExceededException({
1986
1830
  $metadata: deserializeMetadata(parsedOutput),
1987
1831
  ...deserialized,
@@ -1990,1392 +1834,408 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1990
1834
  };
1991
1835
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1992
1836
  const body = parsedOutput.body;
1993
- const deserialized = de_NotFoundException(body, context);
1837
+ const deserialized = _json(body);
1994
1838
  const exception = new NotFoundException({
1995
1839
  $metadata: deserializeMetadata(parsedOutput),
1996
1840
  ...deserialized,
1997
1841
  });
1998
1842
  return __decorateServiceException(exception, body);
1999
1843
  };
2000
- const se_AbsoluteTimeRange = (input, context) => {
2001
- return {
2002
- ...(input.EndTime != null && { EndTime: input.EndTime }),
2003
- ...(input.First != null && { First: input.First }),
2004
- ...(input.Last != null && { Last: input.Last }),
2005
- ...(input.StartTime != null && { StartTime: input.StartTime }),
2006
- };
2007
- };
2008
- const se_CallAnalyticsJobSettings = (input, context) => {
2009
- return {
2010
- ...(input.ContentRedaction != null && { ContentRedaction: se_ContentRedaction(input.ContentRedaction, context) }),
2011
- ...(input.LanguageIdSettings != null && {
2012
- LanguageIdSettings: se_LanguageIdSettingsMap(input.LanguageIdSettings, context),
2013
- }),
2014
- ...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
2015
- ...(input.LanguageOptions != null && { LanguageOptions: se_LanguageOptions(input.LanguageOptions, context) }),
2016
- ...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
2017
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2018
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2019
- };
2020
- };
2021
- const se_ChannelDefinition = (input, context) => {
2022
- return {
2023
- ...(input.ChannelId != null && { ChannelId: input.ChannelId }),
2024
- ...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
2025
- };
1844
+ const de_CallAnalyticsJob = (output, context) => {
1845
+ return take(output, {
1846
+ CallAnalyticsJobName: __expectString,
1847
+ CallAnalyticsJobStatus: __expectString,
1848
+ ChannelDefinitions: _json,
1849
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1850
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1851
+ DataAccessRoleArn: __expectString,
1852
+ FailureReason: __expectString,
1853
+ IdentifiedLanguageScore: __limitedParseFloat32,
1854
+ LanguageCode: __expectString,
1855
+ Media: _json,
1856
+ MediaFormat: __expectString,
1857
+ MediaSampleRateHertz: __expectInt32,
1858
+ Settings: _json,
1859
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1860
+ Transcript: _json,
1861
+ });
2026
1862
  };
2027
- const se_ChannelDefinitions = (input, context) => {
2028
- return input
1863
+ const de_CallAnalyticsJobSummaries = (output, context) => {
1864
+ const retVal = (output || [])
2029
1865
  .filter((e) => e != null)
2030
1866
  .map((entry) => {
2031
- return se_ChannelDefinition(entry, context);
1867
+ return de_CallAnalyticsJobSummary(entry, context);
2032
1868
  });
1869
+ return retVal;
2033
1870
  };
2034
- const se_ContentRedaction = (input, context) => {
2035
- return {
2036
- ...(input.PiiEntityTypes != null && { PiiEntityTypes: se_PiiEntityTypes(input.PiiEntityTypes, context) }),
2037
- ...(input.RedactionOutput != null && { RedactionOutput: input.RedactionOutput }),
2038
- ...(input.RedactionType != null && { RedactionType: input.RedactionType }),
2039
- };
2040
- };
2041
- const se_CreateCallAnalyticsCategoryRequest = (input, context) => {
2042
- return {
2043
- ...(input.CategoryName != null && { CategoryName: input.CategoryName }),
2044
- ...(input.InputType != null && { InputType: input.InputType }),
2045
- ...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
2046
- };
2047
- };
2048
- const se_CreateLanguageModelRequest = (input, context) => {
2049
- return {
2050
- ...(input.BaseModelName != null && { BaseModelName: input.BaseModelName }),
2051
- ...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
2052
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2053
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2054
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2055
- };
2056
- };
2057
- const se_CreateMedicalVocabularyRequest = (input, context) => {
2058
- return {
2059
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2060
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2061
- ...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
2062
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2063
- };
2064
- };
2065
- const se_CreateVocabularyFilterRequest = (input, context) => {
2066
- return {
2067
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2068
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2069
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2070
- ...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
2071
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2072
- ...(input.Words != null && { Words: se_Words(input.Words, context) }),
2073
- };
2074
- };
2075
- const se_CreateVocabularyRequest = (input, context) => {
2076
- return {
2077
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2078
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2079
- ...(input.Phrases != null && { Phrases: se_Phrases(input.Phrases, context) }),
2080
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2081
- ...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
2082
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2083
- };
2084
- };
2085
- const se_DeleteCallAnalyticsCategoryRequest = (input, context) => {
2086
- return {
2087
- ...(input.CategoryName != null && { CategoryName: input.CategoryName }),
2088
- };
2089
- };
2090
- const se_DeleteCallAnalyticsJobRequest = (input, context) => {
2091
- return {
2092
- ...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
2093
- };
2094
- };
2095
- const se_DeleteLanguageModelRequest = (input, context) => {
2096
- return {
2097
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2098
- };
2099
- };
2100
- const se_DeleteMedicalTranscriptionJobRequest = (input, context) => {
2101
- return {
2102
- ...(input.MedicalTranscriptionJobName != null && {
2103
- MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
2104
- }),
2105
- };
2106
- };
2107
- const se_DeleteMedicalVocabularyRequest = (input, context) => {
2108
- return {
2109
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2110
- };
2111
- };
2112
- const se_DeleteTranscriptionJobRequest = (input, context) => {
2113
- return {
2114
- ...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
2115
- };
1871
+ const de_CallAnalyticsJobSummary = (output, context) => {
1872
+ return take(output, {
1873
+ CallAnalyticsJobName: __expectString,
1874
+ CallAnalyticsJobStatus: __expectString,
1875
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1876
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1877
+ FailureReason: __expectString,
1878
+ LanguageCode: __expectString,
1879
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1880
+ });
2116
1881
  };
2117
- const se_DeleteVocabularyFilterRequest = (input, context) => {
2118
- return {
2119
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2120
- };
1882
+ const de_CategoryProperties = (output, context) => {
1883
+ return take(output, {
1884
+ CategoryName: __expectString,
1885
+ CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1886
+ InputType: __expectString,
1887
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1888
+ Rules: _json,
1889
+ });
2121
1890
  };
2122
- const se_DeleteVocabularyRequest = (input, context) => {
2123
- return {
2124
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2125
- };
1891
+ const de_CategoryPropertiesList = (output, context) => {
1892
+ const retVal = (output || [])
1893
+ .filter((e) => e != null)
1894
+ .map((entry) => {
1895
+ return de_CategoryProperties(entry, context);
1896
+ });
1897
+ return retVal;
2126
1898
  };
2127
- const se_DescribeLanguageModelRequest = (input, context) => {
2128
- return {
2129
- ...(input.ModelName != null && { ModelName: input.ModelName }),
2130
- };
1899
+ const de_CreateCallAnalyticsCategoryResponse = (output, context) => {
1900
+ return take(output, {
1901
+ CategoryProperties: (_) => de_CategoryProperties(_, context),
1902
+ });
2131
1903
  };
2132
- const se_GetCallAnalyticsCategoryRequest = (input, context) => {
2133
- return {
2134
- ...(input.CategoryName != null && { CategoryName: input.CategoryName }),
2135
- };
1904
+ const de_CreateMedicalVocabularyResponse = (output, context) => {
1905
+ return take(output, {
1906
+ FailureReason: __expectString,
1907
+ LanguageCode: __expectString,
1908
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1909
+ VocabularyName: __expectString,
1910
+ VocabularyState: __expectString,
1911
+ });
2136
1912
  };
2137
- const se_GetCallAnalyticsJobRequest = (input, context) => {
2138
- return {
2139
- ...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
2140
- };
1913
+ const de_CreateVocabularyFilterResponse = (output, context) => {
1914
+ return take(output, {
1915
+ LanguageCode: __expectString,
1916
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1917
+ VocabularyFilterName: __expectString,
1918
+ });
2141
1919
  };
2142
- const se_GetMedicalTranscriptionJobRequest = (input, context) => {
2143
- return {
2144
- ...(input.MedicalTranscriptionJobName != null && {
2145
- MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
2146
- }),
2147
- };
1920
+ const de_CreateVocabularyResponse = (output, context) => {
1921
+ return take(output, {
1922
+ FailureReason: __expectString,
1923
+ LanguageCode: __expectString,
1924
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1925
+ VocabularyName: __expectString,
1926
+ VocabularyState: __expectString,
1927
+ });
2148
1928
  };
2149
- const se_GetMedicalVocabularyRequest = (input, context) => {
2150
- return {
2151
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2152
- };
1929
+ const de_DescribeLanguageModelResponse = (output, context) => {
1930
+ return take(output, {
1931
+ LanguageModel: (_) => de_LanguageModel(_, context),
1932
+ });
2153
1933
  };
2154
- const se_GetTranscriptionJobRequest = (input, context) => {
2155
- return {
2156
- ...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
2157
- };
1934
+ const de_GetCallAnalyticsCategoryResponse = (output, context) => {
1935
+ return take(output, {
1936
+ CategoryProperties: (_) => de_CategoryProperties(_, context),
1937
+ });
2158
1938
  };
2159
- const se_GetVocabularyFilterRequest = (input, context) => {
2160
- return {
2161
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2162
- };
1939
+ const de_GetCallAnalyticsJobResponse = (output, context) => {
1940
+ return take(output, {
1941
+ CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
1942
+ });
2163
1943
  };
2164
- const se_GetVocabularyRequest = (input, context) => {
2165
- return {
2166
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2167
- };
1944
+ const de_GetMedicalTranscriptionJobResponse = (output, context) => {
1945
+ return take(output, {
1946
+ MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
1947
+ });
2168
1948
  };
2169
- const se_InputDataConfig = (input, context) => {
2170
- return {
2171
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2172
- ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
2173
- ...(input.TuningDataS3Uri != null && { TuningDataS3Uri: input.TuningDataS3Uri }),
2174
- };
1949
+ const de_GetMedicalVocabularyResponse = (output, context) => {
1950
+ return take(output, {
1951
+ DownloadUri: __expectString,
1952
+ FailureReason: __expectString,
1953
+ LanguageCode: __expectString,
1954
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1955
+ VocabularyName: __expectString,
1956
+ VocabularyState: __expectString,
1957
+ });
2175
1958
  };
2176
- const se_InterruptionFilter = (input, context) => {
2177
- return {
2178
- ...(input.AbsoluteTimeRange != null && {
2179
- AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
2180
- }),
2181
- ...(input.Negate != null && { Negate: input.Negate }),
2182
- ...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
2183
- ...(input.RelativeTimeRange != null && {
2184
- RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
2185
- }),
2186
- ...(input.Threshold != null && { Threshold: input.Threshold }),
2187
- };
2188
- };
2189
- const se_JobExecutionSettings = (input, context) => {
2190
- return {
2191
- ...(input.AllowDeferredExecution != null && { AllowDeferredExecution: input.AllowDeferredExecution }),
2192
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2193
- };
1959
+ const de_GetTranscriptionJobResponse = (output, context) => {
1960
+ return take(output, {
1961
+ TranscriptionJob: (_) => de_TranscriptionJob(_, context),
1962
+ });
2194
1963
  };
2195
- const se_KMSEncryptionContextMap = (input, context) => {
2196
- return Object.entries(input).reduce((acc, [key, value]) => {
2197
- if (value === null) {
2198
- return acc;
2199
- }
2200
- acc[key] = value;
2201
- return acc;
2202
- }, {});
1964
+ const de_GetVocabularyFilterResponse = (output, context) => {
1965
+ return take(output, {
1966
+ DownloadUri: __expectString,
1967
+ LanguageCode: __expectString,
1968
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1969
+ VocabularyFilterName: __expectString,
1970
+ });
2203
1971
  };
2204
- const se_LanguageIdSettings = (input, context) => {
2205
- return {
2206
- ...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
2207
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2208
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2209
- };
1972
+ const de_GetVocabularyResponse = (output, context) => {
1973
+ return take(output, {
1974
+ DownloadUri: __expectString,
1975
+ FailureReason: __expectString,
1976
+ LanguageCode: __expectString,
1977
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1978
+ VocabularyName: __expectString,
1979
+ VocabularyState: __expectString,
1980
+ });
2210
1981
  };
2211
- const se_LanguageIdSettingsMap = (input, context) => {
2212
- return Object.entries(input).reduce((acc, [key, value]) => {
2213
- if (value === null) {
2214
- return acc;
2215
- }
2216
- acc[key] = se_LanguageIdSettings(value, context);
2217
- return acc;
2218
- }, {});
1982
+ const de_LanguageCodeItem = (output, context) => {
1983
+ return take(output, {
1984
+ DurationInSeconds: __limitedParseFloat32,
1985
+ LanguageCode: __expectString,
1986
+ });
2219
1987
  };
2220
- const se_LanguageOptions = (input, context) => {
2221
- return input
1988
+ const de_LanguageCodeList = (output, context) => {
1989
+ const retVal = (output || [])
2222
1990
  .filter((e) => e != null)
2223
1991
  .map((entry) => {
2224
- return entry;
1992
+ return de_LanguageCodeItem(entry, context);
2225
1993
  });
1994
+ return retVal;
2226
1995
  };
2227
- const se_ListCallAnalyticsCategoriesRequest = (input, context) => {
2228
- return {
2229
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2230
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2231
- };
2232
- };
2233
- const se_ListCallAnalyticsJobsRequest = (input, context) => {
2234
- return {
2235
- ...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
2236
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2237
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2238
- ...(input.Status != null && { Status: input.Status }),
2239
- };
2240
- };
2241
- const se_ListLanguageModelsRequest = (input, context) => {
2242
- return {
2243
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2244
- ...(input.NameContains != null && { NameContains: input.NameContains }),
2245
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2246
- ...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
2247
- };
2248
- };
2249
- const se_ListMedicalTranscriptionJobsRequest = (input, context) => {
2250
- return {
2251
- ...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
2252
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2253
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2254
- ...(input.Status != null && { Status: input.Status }),
2255
- };
1996
+ const de_LanguageModel = (output, context) => {
1997
+ return take(output, {
1998
+ BaseModelName: __expectString,
1999
+ CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2000
+ FailureReason: __expectString,
2001
+ InputDataConfig: _json,
2002
+ LanguageCode: __expectString,
2003
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2004
+ ModelName: __expectString,
2005
+ ModelStatus: __expectString,
2006
+ UpgradeAvailability: __expectBoolean,
2007
+ });
2256
2008
  };
2257
- const se_ListMedicalVocabulariesRequest = (input, context) => {
2258
- return {
2259
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2260
- ...(input.NameContains != null && { NameContains: input.NameContains }),
2261
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2262
- ...(input.StateEquals != null && { StateEquals: input.StateEquals }),
2263
- };
2009
+ const de_ListCallAnalyticsCategoriesResponse = (output, context) => {
2010
+ return take(output, {
2011
+ Categories: (_) => de_CategoryPropertiesList(_, context),
2012
+ NextToken: __expectString,
2013
+ });
2264
2014
  };
2265
- const se_ListTagsForResourceRequest = (input, context) => {
2266
- return {
2267
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2268
- };
2015
+ const de_ListCallAnalyticsJobsResponse = (output, context) => {
2016
+ return take(output, {
2017
+ CallAnalyticsJobSummaries: (_) => de_CallAnalyticsJobSummaries(_, context),
2018
+ NextToken: __expectString,
2019
+ Status: __expectString,
2020
+ });
2269
2021
  };
2270
- const se_ListTranscriptionJobsRequest = (input, context) => {
2271
- return {
2272
- ...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
2273
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2274
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2275
- ...(input.Status != null && { Status: input.Status }),
2276
- };
2022
+ const de_ListLanguageModelsResponse = (output, context) => {
2023
+ return take(output, {
2024
+ Models: (_) => de_Models(_, context),
2025
+ NextToken: __expectString,
2026
+ });
2277
2027
  };
2278
- const se_ListVocabulariesRequest = (input, context) => {
2279
- return {
2280
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2281
- ...(input.NameContains != null && { NameContains: input.NameContains }),
2282
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2283
- ...(input.StateEquals != null && { StateEquals: input.StateEquals }),
2284
- };
2028
+ const de_ListMedicalTranscriptionJobsResponse = (output, context) => {
2029
+ return take(output, {
2030
+ MedicalTranscriptionJobSummaries: (_) => de_MedicalTranscriptionJobSummaries(_, context),
2031
+ NextToken: __expectString,
2032
+ Status: __expectString,
2033
+ });
2285
2034
  };
2286
- const se_ListVocabularyFiltersRequest = (input, context) => {
2287
- return {
2288
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2289
- ...(input.NameContains != null && { NameContains: input.NameContains }),
2290
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2291
- };
2035
+ const de_ListMedicalVocabulariesResponse = (output, context) => {
2036
+ return take(output, {
2037
+ NextToken: __expectString,
2038
+ Status: __expectString,
2039
+ Vocabularies: (_) => de_Vocabularies(_, context),
2040
+ });
2292
2041
  };
2293
- const se_Media = (input, context) => {
2294
- return {
2295
- ...(input.MediaFileUri != null && { MediaFileUri: input.MediaFileUri }),
2296
- ...(input.RedactedMediaFileUri != null && { RedactedMediaFileUri: input.RedactedMediaFileUri }),
2297
- };
2042
+ const de_ListTranscriptionJobsResponse = (output, context) => {
2043
+ return take(output, {
2044
+ NextToken: __expectString,
2045
+ Status: __expectString,
2046
+ TranscriptionJobSummaries: (_) => de_TranscriptionJobSummaries(_, context),
2047
+ });
2298
2048
  };
2299
- const se_MedicalTranscriptionSetting = (input, context) => {
2300
- return {
2301
- ...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
2302
- ...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
2303
- ...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
2304
- ...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
2305
- ...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
2306
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2307
- };
2049
+ const de_ListVocabulariesResponse = (output, context) => {
2050
+ return take(output, {
2051
+ NextToken: __expectString,
2052
+ Status: __expectString,
2053
+ Vocabularies: (_) => de_Vocabularies(_, context),
2054
+ });
2308
2055
  };
2309
- const se_ModelSettings = (input, context) => {
2310
- return {
2311
- ...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
2312
- };
2056
+ const de_ListVocabularyFiltersResponse = (output, context) => {
2057
+ return take(output, {
2058
+ NextToken: __expectString,
2059
+ VocabularyFilters: (_) => de_VocabularyFilters(_, context),
2060
+ });
2313
2061
  };
2314
- const se_NonTalkTimeFilter = (input, context) => {
2315
- return {
2316
- ...(input.AbsoluteTimeRange != null && {
2317
- AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
2318
- }),
2319
- ...(input.Negate != null && { Negate: input.Negate }),
2320
- ...(input.RelativeTimeRange != null && {
2321
- RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
2322
- }),
2323
- ...(input.Threshold != null && { Threshold: input.Threshold }),
2324
- };
2325
- };
2326
- const se_Phrases = (input, context) => {
2327
- return input
2328
- .filter((e) => e != null)
2329
- .map((entry) => {
2330
- return entry;
2062
+ const de_MedicalTranscriptionJob = (output, context) => {
2063
+ return take(output, {
2064
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2065
+ ContentIdentificationType: __expectString,
2066
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2067
+ FailureReason: __expectString,
2068
+ LanguageCode: __expectString,
2069
+ Media: _json,
2070
+ MediaFormat: __expectString,
2071
+ MediaSampleRateHertz: __expectInt32,
2072
+ MedicalTranscriptionJobName: __expectString,
2073
+ Settings: _json,
2074
+ Specialty: __expectString,
2075
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2076
+ Tags: _json,
2077
+ Transcript: _json,
2078
+ TranscriptionJobStatus: __expectString,
2079
+ Type: __expectString,
2331
2080
  });
2332
2081
  };
2333
- const se_PiiEntityTypes = (input, context) => {
2334
- return input
2082
+ const de_MedicalTranscriptionJobSummaries = (output, context) => {
2083
+ const retVal = (output || [])
2335
2084
  .filter((e) => e != null)
2336
2085
  .map((entry) => {
2337
- return entry;
2086
+ return de_MedicalTranscriptionJobSummary(entry, context);
2338
2087
  });
2088
+ return retVal;
2339
2089
  };
2340
- const se_RelativeTimeRange = (input, context) => {
2341
- return {
2342
- ...(input.EndPercentage != null && { EndPercentage: input.EndPercentage }),
2343
- ...(input.First != null && { First: input.First }),
2344
- ...(input.Last != null && { Last: input.Last }),
2345
- ...(input.StartPercentage != null && { StartPercentage: input.StartPercentage }),
2346
- };
2347
- };
2348
- const se_Rule = (input, context) => {
2349
- return Rule.visit(input, {
2350
- InterruptionFilter: (value) => ({ InterruptionFilter: se_InterruptionFilter(value, context) }),
2351
- NonTalkTimeFilter: (value) => ({ NonTalkTimeFilter: se_NonTalkTimeFilter(value, context) }),
2352
- SentimentFilter: (value) => ({ SentimentFilter: se_SentimentFilter(value, context) }),
2353
- TranscriptFilter: (value) => ({ TranscriptFilter: se_TranscriptFilter(value, context) }),
2354
- _: (name, value) => ({ name: value }),
2090
+ const de_MedicalTranscriptionJobSummary = (output, context) => {
2091
+ return take(output, {
2092
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2093
+ ContentIdentificationType: __expectString,
2094
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2095
+ FailureReason: __expectString,
2096
+ LanguageCode: __expectString,
2097
+ MedicalTranscriptionJobName: __expectString,
2098
+ OutputLocationType: __expectString,
2099
+ Specialty: __expectString,
2100
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2101
+ TranscriptionJobStatus: __expectString,
2102
+ Type: __expectString,
2355
2103
  });
2356
2104
  };
2357
- const se_RuleList = (input, context) => {
2358
- return input
2105
+ const de_Models = (output, context) => {
2106
+ const retVal = (output || [])
2359
2107
  .filter((e) => e != null)
2360
2108
  .map((entry) => {
2361
- return se_Rule(entry, context);
2109
+ return de_LanguageModel(entry, context);
2362
2110
  });
2363
- };
2364
- const se_SentimentFilter = (input, context) => {
2365
- return {
2366
- ...(input.AbsoluteTimeRange != null && {
2367
- AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
2368
- }),
2369
- ...(input.Negate != null && { Negate: input.Negate }),
2370
- ...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
2371
- ...(input.RelativeTimeRange != null && {
2372
- RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
2373
- }),
2374
- ...(input.Sentiments != null && { Sentiments: se_SentimentValueList(input.Sentiments, context) }),
2375
- };
2376
- };
2377
- const se_SentimentValueList = (input, context) => {
2378
- return input
2379
- .filter((e) => e != null)
2380
- .map((entry) => {
2381
- return entry;
2382
- });
2383
- };
2384
- const se_Settings = (input, context) => {
2385
- return {
2386
- ...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
2387
- ...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
2388
- ...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
2389
- ...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
2390
- ...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
2391
- ...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
2392
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2393
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2394
- };
2395
- };
2396
- const se_StartCallAnalyticsJobRequest = (input, context) => {
2397
- return {
2398
- ...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
2399
- ...(input.ChannelDefinitions != null && {
2400
- ChannelDefinitions: se_ChannelDefinitions(input.ChannelDefinitions, context),
2401
- }),
2402
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2403
- ...(input.Media != null && { Media: se_Media(input.Media, context) }),
2404
- ...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
2405
- ...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
2406
- ...(input.Settings != null && { Settings: se_CallAnalyticsJobSettings(input.Settings, context) }),
2407
- };
2408
- };
2409
- const se_StartMedicalTranscriptionJobRequest = (input, context) => {
2410
- return {
2411
- ...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
2412
- ...(input.KMSEncryptionContext != null && {
2413
- KMSEncryptionContext: se_KMSEncryptionContextMap(input.KMSEncryptionContext, context),
2414
- }),
2415
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2416
- ...(input.Media != null && { Media: se_Media(input.Media, context) }),
2417
- ...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
2418
- ...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
2419
- ...(input.MedicalTranscriptionJobName != null && {
2420
- MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
2421
- }),
2422
- ...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
2423
- ...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
2424
- ...(input.OutputKey != null && { OutputKey: input.OutputKey }),
2425
- ...(input.Settings != null && { Settings: se_MedicalTranscriptionSetting(input.Settings, context) }),
2426
- ...(input.Specialty != null && { Specialty: input.Specialty }),
2427
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2428
- ...(input.Type != null && { Type: input.Type }),
2429
- };
2430
- };
2431
- const se_StartTranscriptionJobRequest = (input, context) => {
2432
- return {
2433
- ...(input.ContentRedaction != null && { ContentRedaction: se_ContentRedaction(input.ContentRedaction, context) }),
2434
- ...(input.IdentifyLanguage != null && { IdentifyLanguage: input.IdentifyLanguage }),
2435
- ...(input.IdentifyMultipleLanguages != null && { IdentifyMultipleLanguages: input.IdentifyMultipleLanguages }),
2436
- ...(input.JobExecutionSettings != null && {
2437
- JobExecutionSettings: se_JobExecutionSettings(input.JobExecutionSettings, context),
2438
- }),
2439
- ...(input.KMSEncryptionContext != null && {
2440
- KMSEncryptionContext: se_KMSEncryptionContextMap(input.KMSEncryptionContext, context),
2441
- }),
2442
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2443
- ...(input.LanguageIdSettings != null && {
2444
- LanguageIdSettings: se_LanguageIdSettingsMap(input.LanguageIdSettings, context),
2445
- }),
2446
- ...(input.LanguageOptions != null && { LanguageOptions: se_LanguageOptions(input.LanguageOptions, context) }),
2447
- ...(input.Media != null && { Media: se_Media(input.Media, context) }),
2448
- ...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
2449
- ...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
2450
- ...(input.ModelSettings != null && { ModelSettings: se_ModelSettings(input.ModelSettings, context) }),
2451
- ...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
2452
- ...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
2453
- ...(input.OutputKey != null && { OutputKey: input.OutputKey }),
2454
- ...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
2455
- ...(input.Subtitles != null && { Subtitles: se_Subtitles(input.Subtitles, context) }),
2456
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2457
- ...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
2458
- };
2459
- };
2460
- const se_StringTargetList = (input, context) => {
2461
- return input
2462
- .filter((e) => e != null)
2463
- .map((entry) => {
2464
- return entry;
2465
- });
2466
- };
2467
- const se_SubtitleFormats = (input, context) => {
2468
- return input
2469
- .filter((e) => e != null)
2470
- .map((entry) => {
2471
- return entry;
2472
- });
2473
- };
2474
- const se_Subtitles = (input, context) => {
2475
- return {
2476
- ...(input.Formats != null && { Formats: se_SubtitleFormats(input.Formats, context) }),
2477
- ...(input.OutputStartIndex != null && { OutputStartIndex: input.OutputStartIndex }),
2478
- };
2479
- };
2480
- const se_Tag = (input, context) => {
2481
- return {
2482
- ...(input.Key != null && { Key: input.Key }),
2483
- ...(input.Value != null && { Value: input.Value }),
2484
- };
2485
- };
2486
- const se_TagKeyList = (input, context) => {
2487
- return input
2488
- .filter((e) => e != null)
2489
- .map((entry) => {
2490
- return entry;
2491
- });
2492
- };
2493
- const se_TagList = (input, context) => {
2494
- return input
2495
- .filter((e) => e != null)
2496
- .map((entry) => {
2497
- return se_Tag(entry, context);
2498
- });
2499
- };
2500
- const se_TagResourceRequest = (input, context) => {
2501
- return {
2502
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2503
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2504
- };
2505
- };
2506
- const se_TranscriptFilter = (input, context) => {
2507
- return {
2508
- ...(input.AbsoluteTimeRange != null && {
2509
- AbsoluteTimeRange: se_AbsoluteTimeRange(input.AbsoluteTimeRange, context),
2510
- }),
2511
- ...(input.Negate != null && { Negate: input.Negate }),
2512
- ...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
2513
- ...(input.RelativeTimeRange != null && {
2514
- RelativeTimeRange: se_RelativeTimeRange(input.RelativeTimeRange, context),
2515
- }),
2516
- ...(input.Targets != null && { Targets: se_StringTargetList(input.Targets, context) }),
2517
- ...(input.TranscriptFilterType != null && { TranscriptFilterType: input.TranscriptFilterType }),
2518
- };
2519
- };
2520
- const se_UntagResourceRequest = (input, context) => {
2521
- return {
2522
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2523
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2524
- };
2525
- };
2526
- const se_UpdateCallAnalyticsCategoryRequest = (input, context) => {
2527
- return {
2528
- ...(input.CategoryName != null && { CategoryName: input.CategoryName }),
2529
- ...(input.InputType != null && { InputType: input.InputType }),
2530
- ...(input.Rules != null && { Rules: se_RuleList(input.Rules, context) }),
2531
- };
2532
- };
2533
- const se_UpdateMedicalVocabularyRequest = (input, context) => {
2534
- return {
2535
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2536
- ...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
2537
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2538
- };
2539
- };
2540
- const se_UpdateVocabularyFilterRequest = (input, context) => {
2541
- return {
2542
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2543
- ...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
2544
- ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
2545
- ...(input.Words != null && { Words: se_Words(input.Words, context) }),
2546
- };
2547
- };
2548
- const se_UpdateVocabularyRequest = (input, context) => {
2549
- return {
2550
- ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
2551
- ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
2552
- ...(input.Phrases != null && { Phrases: se_Phrases(input.Phrases, context) }),
2553
- ...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
2554
- ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
2555
- };
2556
- };
2557
- const se_Words = (input, context) => {
2558
- return input
2559
- .filter((e) => e != null)
2560
- .map((entry) => {
2561
- return entry;
2562
- });
2563
- };
2564
- const de_AbsoluteTimeRange = (output, context) => {
2565
- return {
2566
- EndTime: __expectLong(output.EndTime),
2567
- First: __expectLong(output.First),
2568
- Last: __expectLong(output.Last),
2569
- StartTime: __expectLong(output.StartTime),
2570
- };
2571
- };
2572
- const de_BadRequestException = (output, context) => {
2573
- return {
2574
- Message: __expectString(output.Message),
2575
- };
2576
- };
2577
- const de_CallAnalyticsJob = (output, context) => {
2578
- return {
2579
- CallAnalyticsJobName: __expectString(output.CallAnalyticsJobName),
2580
- CallAnalyticsJobStatus: __expectString(output.CallAnalyticsJobStatus),
2581
- ChannelDefinitions: output.ChannelDefinitions != null ? de_ChannelDefinitions(output.ChannelDefinitions, context) : undefined,
2582
- CompletionTime: output.CompletionTime != null
2583
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
2584
- : undefined,
2585
- CreationTime: output.CreationTime != null
2586
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
2587
- : undefined,
2588
- DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
2589
- FailureReason: __expectString(output.FailureReason),
2590
- IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
2591
- LanguageCode: __expectString(output.LanguageCode),
2592
- Media: output.Media != null ? de_Media(output.Media, context) : undefined,
2593
- MediaFormat: __expectString(output.MediaFormat),
2594
- MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz),
2595
- Settings: output.Settings != null ? de_CallAnalyticsJobSettings(output.Settings, context) : undefined,
2596
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2597
- Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
2598
- };
2599
- };
2600
- const de_CallAnalyticsJobSettings = (output, context) => {
2601
- return {
2602
- ContentRedaction: output.ContentRedaction != null ? de_ContentRedaction(output.ContentRedaction, context) : undefined,
2603
- LanguageIdSettings: output.LanguageIdSettings != null ? de_LanguageIdSettingsMap(output.LanguageIdSettings, context) : undefined,
2604
- LanguageModelName: __expectString(output.LanguageModelName),
2605
- LanguageOptions: output.LanguageOptions != null ? de_LanguageOptions(output.LanguageOptions, context) : undefined,
2606
- VocabularyFilterMethod: __expectString(output.VocabularyFilterMethod),
2607
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
2608
- VocabularyName: __expectString(output.VocabularyName),
2609
- };
2610
- };
2611
- const de_CallAnalyticsJobSummaries = (output, context) => {
2612
- const retVal = (output || [])
2613
- .filter((e) => e != null)
2614
- .map((entry) => {
2615
- if (entry === null) {
2616
- return null;
2617
- }
2618
- return de_CallAnalyticsJobSummary(entry, context);
2619
- });
2620
- return retVal;
2621
- };
2622
- const de_CallAnalyticsJobSummary = (output, context) => {
2623
- return {
2624
- CallAnalyticsJobName: __expectString(output.CallAnalyticsJobName),
2625
- CallAnalyticsJobStatus: __expectString(output.CallAnalyticsJobStatus),
2626
- CompletionTime: output.CompletionTime != null
2627
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
2628
- : undefined,
2629
- CreationTime: output.CreationTime != null
2630
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
2631
- : undefined,
2632
- FailureReason: __expectString(output.FailureReason),
2633
- LanguageCode: __expectString(output.LanguageCode),
2634
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2635
- };
2636
- };
2637
- const de_CategoryProperties = (output, context) => {
2638
- return {
2639
- CategoryName: __expectString(output.CategoryName),
2640
- CreateTime: output.CreateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime))) : undefined,
2641
- InputType: __expectString(output.InputType),
2642
- LastUpdateTime: output.LastUpdateTime != null
2643
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
2644
- : undefined,
2645
- Rules: output.Rules != null ? de_RuleList(output.Rules, context) : undefined,
2646
- };
2647
- };
2648
- const de_CategoryPropertiesList = (output, context) => {
2649
- const retVal = (output || [])
2650
- .filter((e) => e != null)
2651
- .map((entry) => {
2652
- if (entry === null) {
2653
- return null;
2654
- }
2655
- return de_CategoryProperties(entry, context);
2656
- });
2657
- return retVal;
2658
- };
2659
- const de_ChannelDefinition = (output, context) => {
2660
- return {
2661
- ChannelId: __expectInt32(output.ChannelId),
2662
- ParticipantRole: __expectString(output.ParticipantRole),
2663
- };
2664
- };
2665
- const de_ChannelDefinitions = (output, context) => {
2666
- const retVal = (output || [])
2667
- .filter((e) => e != null)
2668
- .map((entry) => {
2669
- if (entry === null) {
2670
- return null;
2671
- }
2672
- return de_ChannelDefinition(entry, context);
2673
- });
2674
- return retVal;
2675
- };
2676
- const de_ConflictException = (output, context) => {
2677
- return {
2678
- Message: __expectString(output.Message),
2679
- };
2680
- };
2681
- const de_ContentRedaction = (output, context) => {
2682
- return {
2683
- PiiEntityTypes: output.PiiEntityTypes != null ? de_PiiEntityTypes(output.PiiEntityTypes, context) : undefined,
2684
- RedactionOutput: __expectString(output.RedactionOutput),
2685
- RedactionType: __expectString(output.RedactionType),
2686
- };
2687
- };
2688
- const de_CreateCallAnalyticsCategoryResponse = (output, context) => {
2689
- return {
2690
- CategoryProperties: output.CategoryProperties != null ? de_CategoryProperties(output.CategoryProperties, context) : undefined,
2691
- };
2692
- };
2693
- const de_CreateLanguageModelResponse = (output, context) => {
2694
- return {
2695
- BaseModelName: __expectString(output.BaseModelName),
2696
- InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
2697
- LanguageCode: __expectString(output.LanguageCode),
2698
- ModelName: __expectString(output.ModelName),
2699
- ModelStatus: __expectString(output.ModelStatus),
2700
- };
2701
- };
2702
- const de_CreateMedicalVocabularyResponse = (output, context) => {
2703
- return {
2704
- FailureReason: __expectString(output.FailureReason),
2705
- LanguageCode: __expectString(output.LanguageCode),
2706
- LastModifiedTime: output.LastModifiedTime != null
2707
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2708
- : undefined,
2709
- VocabularyName: __expectString(output.VocabularyName),
2710
- VocabularyState: __expectString(output.VocabularyState),
2711
- };
2712
- };
2713
- const de_CreateVocabularyFilterResponse = (output, context) => {
2714
- return {
2715
- LanguageCode: __expectString(output.LanguageCode),
2716
- LastModifiedTime: output.LastModifiedTime != null
2717
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2718
- : undefined,
2719
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
2720
- };
2721
- };
2722
- const de_CreateVocabularyResponse = (output, context) => {
2723
- return {
2724
- FailureReason: __expectString(output.FailureReason),
2725
- LanguageCode: __expectString(output.LanguageCode),
2726
- LastModifiedTime: output.LastModifiedTime != null
2727
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2728
- : undefined,
2729
- VocabularyName: __expectString(output.VocabularyName),
2730
- VocabularyState: __expectString(output.VocabularyState),
2731
- };
2732
- };
2733
- const de_DeleteCallAnalyticsCategoryResponse = (output, context) => {
2734
- return {};
2735
- };
2736
- const de_DeleteCallAnalyticsJobResponse = (output, context) => {
2737
- return {};
2738
- };
2739
- const de_DescribeLanguageModelResponse = (output, context) => {
2740
- return {
2741
- LanguageModel: output.LanguageModel != null ? de_LanguageModel(output.LanguageModel, context) : undefined,
2742
- };
2743
- };
2744
- const de_GetCallAnalyticsCategoryResponse = (output, context) => {
2745
- return {
2746
- CategoryProperties: output.CategoryProperties != null ? de_CategoryProperties(output.CategoryProperties, context) : undefined,
2747
- };
2748
- };
2749
- const de_GetCallAnalyticsJobResponse = (output, context) => {
2750
- return {
2751
- CallAnalyticsJob: output.CallAnalyticsJob != null ? de_CallAnalyticsJob(output.CallAnalyticsJob, context) : undefined,
2752
- };
2753
- };
2754
- const de_GetMedicalTranscriptionJobResponse = (output, context) => {
2755
- return {
2756
- MedicalTranscriptionJob: output.MedicalTranscriptionJob != null
2757
- ? de_MedicalTranscriptionJob(output.MedicalTranscriptionJob, context)
2758
- : undefined,
2759
- };
2760
- };
2761
- const de_GetMedicalVocabularyResponse = (output, context) => {
2762
- return {
2763
- DownloadUri: __expectString(output.DownloadUri),
2764
- FailureReason: __expectString(output.FailureReason),
2765
- LanguageCode: __expectString(output.LanguageCode),
2766
- LastModifiedTime: output.LastModifiedTime != null
2767
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2768
- : undefined,
2769
- VocabularyName: __expectString(output.VocabularyName),
2770
- VocabularyState: __expectString(output.VocabularyState),
2771
- };
2772
- };
2773
- const de_GetTranscriptionJobResponse = (output, context) => {
2774
- return {
2775
- TranscriptionJob: output.TranscriptionJob != null ? de_TranscriptionJob(output.TranscriptionJob, context) : undefined,
2776
- };
2777
- };
2778
- const de_GetVocabularyFilterResponse = (output, context) => {
2779
- return {
2780
- DownloadUri: __expectString(output.DownloadUri),
2781
- LanguageCode: __expectString(output.LanguageCode),
2782
- LastModifiedTime: output.LastModifiedTime != null
2783
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2784
- : undefined,
2785
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
2786
- };
2787
- };
2788
- const de_GetVocabularyResponse = (output, context) => {
2789
- return {
2790
- DownloadUri: __expectString(output.DownloadUri),
2791
- FailureReason: __expectString(output.FailureReason),
2792
- LanguageCode: __expectString(output.LanguageCode),
2793
- LastModifiedTime: output.LastModifiedTime != null
2794
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2795
- : undefined,
2796
- VocabularyName: __expectString(output.VocabularyName),
2797
- VocabularyState: __expectString(output.VocabularyState),
2798
- };
2799
- };
2800
- const de_InputDataConfig = (output, context) => {
2801
- return {
2802
- DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
2803
- S3Uri: __expectString(output.S3Uri),
2804
- TuningDataS3Uri: __expectString(output.TuningDataS3Uri),
2805
- };
2806
- };
2807
- const de_InternalFailureException = (output, context) => {
2808
- return {
2809
- Message: __expectString(output.Message),
2810
- };
2811
- };
2812
- const de_InterruptionFilter = (output, context) => {
2813
- return {
2814
- AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
2815
- Negate: __expectBoolean(output.Negate),
2816
- ParticipantRole: __expectString(output.ParticipantRole),
2817
- RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
2818
- Threshold: __expectLong(output.Threshold),
2819
- };
2820
- };
2821
- const de_JobExecutionSettings = (output, context) => {
2822
- return {
2823
- AllowDeferredExecution: __expectBoolean(output.AllowDeferredExecution),
2824
- DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
2825
- };
2826
- };
2827
- const de_LanguageCodeItem = (output, context) => {
2828
- return {
2829
- DurationInSeconds: __limitedParseFloat32(output.DurationInSeconds),
2830
- LanguageCode: __expectString(output.LanguageCode),
2831
- };
2832
- };
2833
- const de_LanguageCodeList = (output, context) => {
2834
- const retVal = (output || [])
2835
- .filter((e) => e != null)
2836
- .map((entry) => {
2837
- if (entry === null) {
2838
- return null;
2839
- }
2840
- return de_LanguageCodeItem(entry, context);
2841
- });
2842
- return retVal;
2843
- };
2844
- const de_LanguageIdSettings = (output, context) => {
2845
- return {
2846
- LanguageModelName: __expectString(output.LanguageModelName),
2847
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
2848
- VocabularyName: __expectString(output.VocabularyName),
2849
- };
2850
- };
2851
- const de_LanguageIdSettingsMap = (output, context) => {
2852
- return Object.entries(output).reduce((acc, [key, value]) => {
2853
- if (value === null) {
2854
- return acc;
2855
- }
2856
- acc[key] = de_LanguageIdSettings(value, context);
2857
- return acc;
2858
- }, {});
2859
- };
2860
- const de_LanguageModel = (output, context) => {
2861
- return {
2862
- BaseModelName: __expectString(output.BaseModelName),
2863
- CreateTime: output.CreateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime))) : undefined,
2864
- FailureReason: __expectString(output.FailureReason),
2865
- InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
2866
- LanguageCode: __expectString(output.LanguageCode),
2867
- LastModifiedTime: output.LastModifiedTime != null
2868
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2869
- : undefined,
2870
- ModelName: __expectString(output.ModelName),
2871
- ModelStatus: __expectString(output.ModelStatus),
2872
- UpgradeAvailability: __expectBoolean(output.UpgradeAvailability),
2873
- };
2874
- };
2875
- const de_LanguageOptions = (output, context) => {
2876
- const retVal = (output || [])
2877
- .filter((e) => e != null)
2878
- .map((entry) => {
2879
- if (entry === null) {
2880
- return null;
2881
- }
2882
- return __expectString(entry);
2883
- });
2884
- return retVal;
2885
- };
2886
- const de_LimitExceededException = (output, context) => {
2887
- return {
2888
- Message: __expectString(output.Message),
2889
- };
2890
- };
2891
- const de_ListCallAnalyticsCategoriesResponse = (output, context) => {
2892
- return {
2893
- Categories: output.Categories != null ? de_CategoryPropertiesList(output.Categories, context) : undefined,
2894
- NextToken: __expectString(output.NextToken),
2895
- };
2896
- };
2897
- const de_ListCallAnalyticsJobsResponse = (output, context) => {
2898
- return {
2899
- CallAnalyticsJobSummaries: output.CallAnalyticsJobSummaries != null
2900
- ? de_CallAnalyticsJobSummaries(output.CallAnalyticsJobSummaries, context)
2901
- : undefined,
2902
- NextToken: __expectString(output.NextToken),
2903
- Status: __expectString(output.Status),
2904
- };
2905
- };
2906
- const de_ListLanguageModelsResponse = (output, context) => {
2907
- return {
2908
- Models: output.Models != null ? de_Models(output.Models, context) : undefined,
2909
- NextToken: __expectString(output.NextToken),
2910
- };
2911
- };
2912
- const de_ListMedicalTranscriptionJobsResponse = (output, context) => {
2913
- return {
2914
- MedicalTranscriptionJobSummaries: output.MedicalTranscriptionJobSummaries != null
2915
- ? de_MedicalTranscriptionJobSummaries(output.MedicalTranscriptionJobSummaries, context)
2916
- : undefined,
2917
- NextToken: __expectString(output.NextToken),
2918
- Status: __expectString(output.Status),
2919
- };
2920
- };
2921
- const de_ListMedicalVocabulariesResponse = (output, context) => {
2922
- return {
2923
- NextToken: __expectString(output.NextToken),
2924
- Status: __expectString(output.Status),
2925
- Vocabularies: output.Vocabularies != null ? de_Vocabularies(output.Vocabularies, context) : undefined,
2926
- };
2927
- };
2928
- const de_ListTagsForResourceResponse = (output, context) => {
2929
- return {
2930
- ResourceArn: __expectString(output.ResourceArn),
2931
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2932
- };
2933
- };
2934
- const de_ListTranscriptionJobsResponse = (output, context) => {
2935
- return {
2936
- NextToken: __expectString(output.NextToken),
2937
- Status: __expectString(output.Status),
2938
- TranscriptionJobSummaries: output.TranscriptionJobSummaries != null
2939
- ? de_TranscriptionJobSummaries(output.TranscriptionJobSummaries, context)
2940
- : undefined,
2941
- };
2942
- };
2943
- const de_ListVocabulariesResponse = (output, context) => {
2944
- return {
2945
- NextToken: __expectString(output.NextToken),
2946
- Status: __expectString(output.Status),
2947
- Vocabularies: output.Vocabularies != null ? de_Vocabularies(output.Vocabularies, context) : undefined,
2948
- };
2949
- };
2950
- const de_ListVocabularyFiltersResponse = (output, context) => {
2951
- return {
2952
- NextToken: __expectString(output.NextToken),
2953
- VocabularyFilters: output.VocabularyFilters != null ? de_VocabularyFilters(output.VocabularyFilters, context) : undefined,
2954
- };
2955
- };
2956
- const de_Media = (output, context) => {
2957
- return {
2958
- MediaFileUri: __expectString(output.MediaFileUri),
2959
- RedactedMediaFileUri: __expectString(output.RedactedMediaFileUri),
2960
- };
2961
- };
2962
- const de_MedicalTranscript = (output, context) => {
2963
- return {
2964
- TranscriptFileUri: __expectString(output.TranscriptFileUri),
2965
- };
2966
- };
2967
- const de_MedicalTranscriptionJob = (output, context) => {
2968
- return {
2969
- CompletionTime: output.CompletionTime != null
2970
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
2971
- : undefined,
2972
- ContentIdentificationType: __expectString(output.ContentIdentificationType),
2973
- CreationTime: output.CreationTime != null
2974
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
2975
- : undefined,
2976
- FailureReason: __expectString(output.FailureReason),
2977
- LanguageCode: __expectString(output.LanguageCode),
2978
- Media: output.Media != null ? de_Media(output.Media, context) : undefined,
2979
- MediaFormat: __expectString(output.MediaFormat),
2980
- MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz),
2981
- MedicalTranscriptionJobName: __expectString(output.MedicalTranscriptionJobName),
2982
- Settings: output.Settings != null ? de_MedicalTranscriptionSetting(output.Settings, context) : undefined,
2983
- Specialty: __expectString(output.Specialty),
2984
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2985
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
2986
- Transcript: output.Transcript != null ? de_MedicalTranscript(output.Transcript, context) : undefined,
2987
- TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
2988
- Type: __expectString(output.Type),
2989
- };
2990
- };
2991
- const de_MedicalTranscriptionJobSummaries = (output, context) => {
2992
- const retVal = (output || [])
2993
- .filter((e) => e != null)
2994
- .map((entry) => {
2995
- if (entry === null) {
2996
- return null;
2997
- }
2998
- return de_MedicalTranscriptionJobSummary(entry, context);
2999
- });
3000
- return retVal;
3001
- };
3002
- const de_MedicalTranscriptionJobSummary = (output, context) => {
3003
- return {
3004
- CompletionTime: output.CompletionTime != null
3005
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
3006
- : undefined,
3007
- ContentIdentificationType: __expectString(output.ContentIdentificationType),
3008
- CreationTime: output.CreationTime != null
3009
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3010
- : undefined,
3011
- FailureReason: __expectString(output.FailureReason),
3012
- LanguageCode: __expectString(output.LanguageCode),
3013
- MedicalTranscriptionJobName: __expectString(output.MedicalTranscriptionJobName),
3014
- OutputLocationType: __expectString(output.OutputLocationType),
3015
- Specialty: __expectString(output.Specialty),
3016
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3017
- TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
3018
- Type: __expectString(output.Type),
3019
- };
3020
- };
3021
- const de_MedicalTranscriptionSetting = (output, context) => {
3022
- return {
3023
- ChannelIdentification: __expectBoolean(output.ChannelIdentification),
3024
- MaxAlternatives: __expectInt32(output.MaxAlternatives),
3025
- MaxSpeakerLabels: __expectInt32(output.MaxSpeakerLabels),
3026
- ShowAlternatives: __expectBoolean(output.ShowAlternatives),
3027
- ShowSpeakerLabels: __expectBoolean(output.ShowSpeakerLabels),
3028
- VocabularyName: __expectString(output.VocabularyName),
3029
- };
3030
- };
3031
- const de_Models = (output, context) => {
3032
- const retVal = (output || [])
3033
- .filter((e) => e != null)
3034
- .map((entry) => {
3035
- if (entry === null) {
3036
- return null;
3037
- }
3038
- return de_LanguageModel(entry, context);
3039
- });
3040
- return retVal;
3041
- };
3042
- const de_ModelSettings = (output, context) => {
3043
- return {
3044
- LanguageModelName: __expectString(output.LanguageModelName),
3045
- };
3046
- };
3047
- const de_NonTalkTimeFilter = (output, context) => {
3048
- return {
3049
- AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
3050
- Negate: __expectBoolean(output.Negate),
3051
- RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
3052
- Threshold: __expectLong(output.Threshold),
3053
- };
3054
- };
3055
- const de_NotFoundException = (output, context) => {
3056
- return {
3057
- Message: __expectString(output.Message),
3058
- };
3059
- };
3060
- const de_PiiEntityTypes = (output, context) => {
3061
- const retVal = (output || [])
3062
- .filter((e) => e != null)
3063
- .map((entry) => {
3064
- if (entry === null) {
3065
- return null;
3066
- }
3067
- return __expectString(entry);
3068
- });
3069
- return retVal;
3070
- };
3071
- const de_RelativeTimeRange = (output, context) => {
3072
- return {
3073
- EndPercentage: __expectInt32(output.EndPercentage),
3074
- First: __expectInt32(output.First),
3075
- Last: __expectInt32(output.Last),
3076
- StartPercentage: __expectInt32(output.StartPercentage),
3077
- };
3078
- };
3079
- const de_Rule = (output, context) => {
3080
- if (output.InterruptionFilter != null) {
3081
- return {
3082
- InterruptionFilter: de_InterruptionFilter(output.InterruptionFilter, context),
3083
- };
3084
- }
3085
- if (output.NonTalkTimeFilter != null) {
3086
- return {
3087
- NonTalkTimeFilter: de_NonTalkTimeFilter(output.NonTalkTimeFilter, context),
3088
- };
3089
- }
3090
- if (output.SentimentFilter != null) {
3091
- return {
3092
- SentimentFilter: de_SentimentFilter(output.SentimentFilter, context),
3093
- };
3094
- }
3095
- if (output.TranscriptFilter != null) {
3096
- return {
3097
- TranscriptFilter: de_TranscriptFilter(output.TranscriptFilter, context),
3098
- };
3099
- }
3100
- return { $unknown: Object.entries(output)[0] };
3101
- };
3102
- const de_RuleList = (output, context) => {
3103
- const retVal = (output || [])
3104
- .filter((e) => e != null)
3105
- .map((entry) => {
3106
- if (entry === null) {
3107
- return null;
3108
- }
3109
- return de_Rule(__expectUnion(entry), context);
3110
- });
3111
- return retVal;
3112
- };
3113
- const de_SentimentFilter = (output, context) => {
3114
- return {
3115
- AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
3116
- Negate: __expectBoolean(output.Negate),
3117
- ParticipantRole: __expectString(output.ParticipantRole),
3118
- RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
3119
- Sentiments: output.Sentiments != null ? de_SentimentValueList(output.Sentiments, context) : undefined,
3120
- };
3121
- };
3122
- const de_SentimentValueList = (output, context) => {
3123
- const retVal = (output || [])
3124
- .filter((e) => e != null)
3125
- .map((entry) => {
3126
- if (entry === null) {
3127
- return null;
3128
- }
3129
- return __expectString(entry);
3130
- });
3131
- return retVal;
3132
- };
3133
- const de_Settings = (output, context) => {
3134
- return {
3135
- ChannelIdentification: __expectBoolean(output.ChannelIdentification),
3136
- MaxAlternatives: __expectInt32(output.MaxAlternatives),
3137
- MaxSpeakerLabels: __expectInt32(output.MaxSpeakerLabels),
3138
- ShowAlternatives: __expectBoolean(output.ShowAlternatives),
3139
- ShowSpeakerLabels: __expectBoolean(output.ShowSpeakerLabels),
3140
- VocabularyFilterMethod: __expectString(output.VocabularyFilterMethod),
3141
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
3142
- VocabularyName: __expectString(output.VocabularyName),
3143
- };
2111
+ return retVal;
3144
2112
  };
3145
2113
  const de_StartCallAnalyticsJobResponse = (output, context) => {
3146
- return {
3147
- CallAnalyticsJob: output.CallAnalyticsJob != null ? de_CallAnalyticsJob(output.CallAnalyticsJob, context) : undefined,
3148
- };
3149
- };
3150
- const de_StartMedicalTranscriptionJobResponse = (output, context) => {
3151
- return {
3152
- MedicalTranscriptionJob: output.MedicalTranscriptionJob != null
3153
- ? de_MedicalTranscriptionJob(output.MedicalTranscriptionJob, context)
3154
- : undefined,
3155
- };
3156
- };
3157
- const de_StartTranscriptionJobResponse = (output, context) => {
3158
- return {
3159
- TranscriptionJob: output.TranscriptionJob != null ? de_TranscriptionJob(output.TranscriptionJob, context) : undefined,
3160
- };
3161
- };
3162
- const de_StringTargetList = (output, context) => {
3163
- const retVal = (output || [])
3164
- .filter((e) => e != null)
3165
- .map((entry) => {
3166
- if (entry === null) {
3167
- return null;
3168
- }
3169
- return __expectString(entry);
3170
- });
3171
- return retVal;
3172
- };
3173
- const de_SubtitleFileUris = (output, context) => {
3174
- const retVal = (output || [])
3175
- .filter((e) => e != null)
3176
- .map((entry) => {
3177
- if (entry === null) {
3178
- return null;
3179
- }
3180
- return __expectString(entry);
2114
+ return take(output, {
2115
+ CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
3181
2116
  });
3182
- return retVal;
3183
2117
  };
3184
- const de_SubtitleFormats = (output, context) => {
3185
- const retVal = (output || [])
3186
- .filter((e) => e != null)
3187
- .map((entry) => {
3188
- if (entry === null) {
3189
- return null;
3190
- }
3191
- return __expectString(entry);
2118
+ const de_StartMedicalTranscriptionJobResponse = (output, context) => {
2119
+ return take(output, {
2120
+ MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
3192
2121
  });
3193
- return retVal;
3194
- };
3195
- const de_SubtitlesOutput = (output, context) => {
3196
- return {
3197
- Formats: output.Formats != null ? de_SubtitleFormats(output.Formats, context) : undefined,
3198
- OutputStartIndex: __expectInt32(output.OutputStartIndex),
3199
- SubtitleFileUris: output.SubtitleFileUris != null ? de_SubtitleFileUris(output.SubtitleFileUris, context) : undefined,
3200
- };
3201
2122
  };
3202
- const de_Tag = (output, context) => {
3203
- return {
3204
- Key: __expectString(output.Key),
3205
- Value: __expectString(output.Value),
3206
- };
3207
- };
3208
- const de_TagList = (output, context) => {
3209
- const retVal = (output || [])
3210
- .filter((e) => e != null)
3211
- .map((entry) => {
3212
- if (entry === null) {
3213
- return null;
3214
- }
3215
- return de_Tag(entry, context);
2123
+ const de_StartTranscriptionJobResponse = (output, context) => {
2124
+ return take(output, {
2125
+ TranscriptionJob: (_) => de_TranscriptionJob(_, context),
3216
2126
  });
3217
- return retVal;
3218
- };
3219
- const de_TagResourceResponse = (output, context) => {
3220
- return {};
3221
- };
3222
- const de_Transcript = (output, context) => {
3223
- return {
3224
- RedactedTranscriptFileUri: __expectString(output.RedactedTranscriptFileUri),
3225
- TranscriptFileUri: __expectString(output.TranscriptFileUri),
3226
- };
3227
- };
3228
- const de_TranscriptFilter = (output, context) => {
3229
- return {
3230
- AbsoluteTimeRange: output.AbsoluteTimeRange != null ? de_AbsoluteTimeRange(output.AbsoluteTimeRange, context) : undefined,
3231
- Negate: __expectBoolean(output.Negate),
3232
- ParticipantRole: __expectString(output.ParticipantRole),
3233
- RelativeTimeRange: output.RelativeTimeRange != null ? de_RelativeTimeRange(output.RelativeTimeRange, context) : undefined,
3234
- Targets: output.Targets != null ? de_StringTargetList(output.Targets, context) : undefined,
3235
- TranscriptFilterType: __expectString(output.TranscriptFilterType),
3236
- };
3237
2127
  };
3238
2128
  const de_TranscriptionJob = (output, context) => {
3239
- return {
3240
- CompletionTime: output.CompletionTime != null
3241
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
3242
- : undefined,
3243
- ContentRedaction: output.ContentRedaction != null ? de_ContentRedaction(output.ContentRedaction, context) : undefined,
3244
- CreationTime: output.CreationTime != null
3245
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3246
- : undefined,
3247
- FailureReason: __expectString(output.FailureReason),
3248
- IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
3249
- IdentifyLanguage: __expectBoolean(output.IdentifyLanguage),
3250
- IdentifyMultipleLanguages: __expectBoolean(output.IdentifyMultipleLanguages),
3251
- JobExecutionSettings: output.JobExecutionSettings != null ? de_JobExecutionSettings(output.JobExecutionSettings, context) : undefined,
3252
- LanguageCode: __expectString(output.LanguageCode),
3253
- LanguageCodes: output.LanguageCodes != null ? de_LanguageCodeList(output.LanguageCodes, context) : undefined,
3254
- LanguageIdSettings: output.LanguageIdSettings != null ? de_LanguageIdSettingsMap(output.LanguageIdSettings, context) : undefined,
3255
- LanguageOptions: output.LanguageOptions != null ? de_LanguageOptions(output.LanguageOptions, context) : undefined,
3256
- Media: output.Media != null ? de_Media(output.Media, context) : undefined,
3257
- MediaFormat: __expectString(output.MediaFormat),
3258
- MediaSampleRateHertz: __expectInt32(output.MediaSampleRateHertz),
3259
- ModelSettings: output.ModelSettings != null ? de_ModelSettings(output.ModelSettings, context) : undefined,
3260
- Settings: output.Settings != null ? de_Settings(output.Settings, context) : undefined,
3261
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3262
- Subtitles: output.Subtitles != null ? de_SubtitlesOutput(output.Subtitles, context) : undefined,
3263
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
3264
- Transcript: output.Transcript != null ? de_Transcript(output.Transcript, context) : undefined,
3265
- TranscriptionJobName: __expectString(output.TranscriptionJobName),
3266
- TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
3267
- };
2129
+ return take(output, {
2130
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2131
+ ContentRedaction: _json,
2132
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2133
+ FailureReason: __expectString,
2134
+ IdentifiedLanguageScore: __limitedParseFloat32,
2135
+ IdentifyLanguage: __expectBoolean,
2136
+ IdentifyMultipleLanguages: __expectBoolean,
2137
+ JobExecutionSettings: _json,
2138
+ LanguageCode: __expectString,
2139
+ LanguageCodes: (_) => de_LanguageCodeList(_, context),
2140
+ LanguageIdSettings: _json,
2141
+ LanguageOptions: _json,
2142
+ Media: _json,
2143
+ MediaFormat: __expectString,
2144
+ MediaSampleRateHertz: __expectInt32,
2145
+ ModelSettings: _json,
2146
+ Settings: _json,
2147
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2148
+ Subtitles: _json,
2149
+ Tags: _json,
2150
+ Transcript: _json,
2151
+ TranscriptionJobName: __expectString,
2152
+ TranscriptionJobStatus: __expectString,
2153
+ });
3268
2154
  };
3269
2155
  const de_TranscriptionJobSummaries = (output, context) => {
3270
2156
  const retVal = (output || [])
3271
2157
  .filter((e) => e != null)
3272
2158
  .map((entry) => {
3273
- if (entry === null) {
3274
- return null;
3275
- }
3276
2159
  return de_TranscriptionJobSummary(entry, context);
3277
2160
  });
3278
2161
  return retVal;
3279
2162
  };
3280
2163
  const de_TranscriptionJobSummary = (output, context) => {
3281
- return {
3282
- CompletionTime: output.CompletionTime != null
3283
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
3284
- : undefined,
3285
- ContentRedaction: output.ContentRedaction != null ? de_ContentRedaction(output.ContentRedaction, context) : undefined,
3286
- CreationTime: output.CreationTime != null
3287
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3288
- : undefined,
3289
- FailureReason: __expectString(output.FailureReason),
3290
- IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
3291
- IdentifyLanguage: __expectBoolean(output.IdentifyLanguage),
3292
- IdentifyMultipleLanguages: __expectBoolean(output.IdentifyMultipleLanguages),
3293
- LanguageCode: __expectString(output.LanguageCode),
3294
- LanguageCodes: output.LanguageCodes != null ? de_LanguageCodeList(output.LanguageCodes, context) : undefined,
3295
- ModelSettings: output.ModelSettings != null ? de_ModelSettings(output.ModelSettings, context) : undefined,
3296
- OutputLocationType: __expectString(output.OutputLocationType),
3297
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3298
- TranscriptionJobName: __expectString(output.TranscriptionJobName),
3299
- TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
3300
- };
3301
- };
3302
- const de_UntagResourceResponse = (output, context) => {
3303
- return {};
2164
+ return take(output, {
2165
+ CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2166
+ ContentRedaction: _json,
2167
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2168
+ FailureReason: __expectString,
2169
+ IdentifiedLanguageScore: __limitedParseFloat32,
2170
+ IdentifyLanguage: __expectBoolean,
2171
+ IdentifyMultipleLanguages: __expectBoolean,
2172
+ LanguageCode: __expectString,
2173
+ LanguageCodes: (_) => de_LanguageCodeList(_, context),
2174
+ ModelSettings: _json,
2175
+ OutputLocationType: __expectString,
2176
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2177
+ TranscriptionJobName: __expectString,
2178
+ TranscriptionJobStatus: __expectString,
2179
+ });
3304
2180
  };
3305
2181
  const de_UpdateCallAnalyticsCategoryResponse = (output, context) => {
3306
- return {
3307
- CategoryProperties: output.CategoryProperties != null ? de_CategoryProperties(output.CategoryProperties, context) : undefined,
3308
- };
2182
+ return take(output, {
2183
+ CategoryProperties: (_) => de_CategoryProperties(_, context),
2184
+ });
3309
2185
  };
3310
2186
  const de_UpdateMedicalVocabularyResponse = (output, context) => {
3311
- return {
3312
- LanguageCode: __expectString(output.LanguageCode),
3313
- LastModifiedTime: output.LastModifiedTime != null
3314
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3315
- : undefined,
3316
- VocabularyName: __expectString(output.VocabularyName),
3317
- VocabularyState: __expectString(output.VocabularyState),
3318
- };
2187
+ return take(output, {
2188
+ LanguageCode: __expectString,
2189
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2190
+ VocabularyName: __expectString,
2191
+ VocabularyState: __expectString,
2192
+ });
3319
2193
  };
3320
2194
  const de_UpdateVocabularyFilterResponse = (output, context) => {
3321
- return {
3322
- LanguageCode: __expectString(output.LanguageCode),
3323
- LastModifiedTime: output.LastModifiedTime != null
3324
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3325
- : undefined,
3326
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
3327
- };
2195
+ return take(output, {
2196
+ LanguageCode: __expectString,
2197
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2198
+ VocabularyFilterName: __expectString,
2199
+ });
3328
2200
  };
3329
2201
  const de_UpdateVocabularyResponse = (output, context) => {
3330
- return {
3331
- LanguageCode: __expectString(output.LanguageCode),
3332
- LastModifiedTime: output.LastModifiedTime != null
3333
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3334
- : undefined,
3335
- VocabularyName: __expectString(output.VocabularyName),
3336
- VocabularyState: __expectString(output.VocabularyState),
3337
- };
2202
+ return take(output, {
2203
+ LanguageCode: __expectString,
2204
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2205
+ VocabularyName: __expectString,
2206
+ VocabularyState: __expectString,
2207
+ });
3338
2208
  };
3339
2209
  const de_Vocabularies = (output, context) => {
3340
2210
  const retVal = (output || [])
3341
2211
  .filter((e) => e != null)
3342
2212
  .map((entry) => {
3343
- if (entry === null) {
3344
- return null;
3345
- }
3346
2213
  return de_VocabularyInfo(entry, context);
3347
2214
  });
3348
2215
  return retVal;
3349
2216
  };
3350
2217
  const de_VocabularyFilterInfo = (output, context) => {
3351
- return {
3352
- LanguageCode: __expectString(output.LanguageCode),
3353
- LastModifiedTime: output.LastModifiedTime != null
3354
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3355
- : undefined,
3356
- VocabularyFilterName: __expectString(output.VocabularyFilterName),
3357
- };
2218
+ return take(output, {
2219
+ LanguageCode: __expectString,
2220
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2221
+ VocabularyFilterName: __expectString,
2222
+ });
3358
2223
  };
3359
2224
  const de_VocabularyFilters = (output, context) => {
3360
2225
  const retVal = (output || [])
3361
2226
  .filter((e) => e != null)
3362
2227
  .map((entry) => {
3363
- if (entry === null) {
3364
- return null;
3365
- }
3366
2228
  return de_VocabularyFilterInfo(entry, context);
3367
2229
  });
3368
2230
  return retVal;
3369
2231
  };
3370
2232
  const de_VocabularyInfo = (output, context) => {
3371
- return {
3372
- LanguageCode: __expectString(output.LanguageCode),
3373
- LastModifiedTime: output.LastModifiedTime != null
3374
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3375
- : undefined,
3376
- VocabularyName: __expectString(output.VocabularyName),
3377
- VocabularyState: __expectString(output.VocabularyState),
3378
- };
2233
+ return take(output, {
2234
+ LanguageCode: __expectString,
2235
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2236
+ VocabularyName: __expectString,
2237
+ VocabularyState: __expectString,
2238
+ });
3379
2239
  };
3380
2240
  const deserializeMetadata = (output) => ({
3381
2241
  httpStatusCode: output.statusCode,
@@ -3390,6 +2250,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3390
2250
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3391
2251
  };
3392
2252
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2253
+ const throwDefaultError = withBaseException(__BaseException);
3393
2254
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3394
2255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3395
2256
  const contents = {
@@ -3408,6 +2269,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3408
2269
  }
3409
2270
  return new __HttpRequest(contents);
3410
2271
  };
2272
+ function sharedHeaders(operation) {
2273
+ return {
2274
+ "content-type": "application/x-amz-json-1.1",
2275
+ "x-amz-target": `Transcribe.${operation}`,
2276
+ };
2277
+ }
3411
2278
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3412
2279
  if (encoded.length) {
3413
2280
  return JSON.parse(encoded);