@aws-sdk/client-transcribe 3.927.0 → 3.928.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.
Files changed (67) hide show
  1. package/dist-cjs/index.js +1848 -1696
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/TranscribeClient.js +2 -0
  4. package/dist-es/commands/CreateCallAnalyticsCategoryCommand.js +3 -9
  5. package/dist-es/commands/CreateLanguageModelCommand.js +3 -9
  6. package/dist-es/commands/CreateMedicalVocabularyCommand.js +3 -9
  7. package/dist-es/commands/CreateVocabularyCommand.js +3 -9
  8. package/dist-es/commands/CreateVocabularyFilterCommand.js +3 -9
  9. package/dist-es/commands/DeleteCallAnalyticsCategoryCommand.js +3 -9
  10. package/dist-es/commands/DeleteCallAnalyticsJobCommand.js +3 -9
  11. package/dist-es/commands/DeleteLanguageModelCommand.js +3 -9
  12. package/dist-es/commands/DeleteMedicalScribeJobCommand.js +3 -9
  13. package/dist-es/commands/DeleteMedicalTranscriptionJobCommand.js +3 -9
  14. package/dist-es/commands/DeleteMedicalVocabularyCommand.js +3 -9
  15. package/dist-es/commands/DeleteTranscriptionJobCommand.js +3 -9
  16. package/dist-es/commands/DeleteVocabularyCommand.js +3 -9
  17. package/dist-es/commands/DeleteVocabularyFilterCommand.js +3 -9
  18. package/dist-es/commands/DescribeLanguageModelCommand.js +3 -9
  19. package/dist-es/commands/GetCallAnalyticsCategoryCommand.js +3 -9
  20. package/dist-es/commands/GetCallAnalyticsJobCommand.js +3 -9
  21. package/dist-es/commands/GetMedicalScribeJobCommand.js +3 -9
  22. package/dist-es/commands/GetMedicalTranscriptionJobCommand.js +3 -9
  23. package/dist-es/commands/GetMedicalVocabularyCommand.js +3 -9
  24. package/dist-es/commands/GetTranscriptionJobCommand.js +3 -9
  25. package/dist-es/commands/GetVocabularyCommand.js +3 -9
  26. package/dist-es/commands/GetVocabularyFilterCommand.js +3 -9
  27. package/dist-es/commands/ListCallAnalyticsCategoriesCommand.js +3 -9
  28. package/dist-es/commands/ListCallAnalyticsJobsCommand.js +3 -9
  29. package/dist-es/commands/ListLanguageModelsCommand.js +3 -9
  30. package/dist-es/commands/ListMedicalScribeJobsCommand.js +3 -9
  31. package/dist-es/commands/ListMedicalTranscriptionJobsCommand.js +3 -9
  32. package/dist-es/commands/ListMedicalVocabulariesCommand.js +3 -9
  33. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  34. package/dist-es/commands/ListTranscriptionJobsCommand.js +3 -9
  35. package/dist-es/commands/ListVocabulariesCommand.js +3 -9
  36. package/dist-es/commands/ListVocabularyFiltersCommand.js +3 -9
  37. package/dist-es/commands/StartCallAnalyticsJobCommand.js +3 -9
  38. package/dist-es/commands/StartMedicalScribeJobCommand.js +3 -10
  39. package/dist-es/commands/StartMedicalTranscriptionJobCommand.js +3 -9
  40. package/dist-es/commands/StartTranscriptionJobCommand.js +3 -9
  41. package/dist-es/commands/TagResourceCommand.js +3 -9
  42. package/dist-es/commands/UntagResourceCommand.js +3 -9
  43. package/dist-es/commands/UpdateCallAnalyticsCategoryCommand.js +3 -9
  44. package/dist-es/commands/UpdateMedicalVocabularyCommand.js +3 -9
  45. package/dist-es/commands/UpdateVocabularyCommand.js +3 -9
  46. package/dist-es/commands/UpdateVocabularyFilterCommand.js +3 -9
  47. package/dist-es/models/models_0.js +0 -15
  48. package/dist-es/runtimeConfig.shared.js +7 -0
  49. package/dist-es/schemas/schemas_0.js +1754 -0
  50. package/dist-types/TranscribeClient.d.ts +10 -1
  51. package/dist-types/models/models_0.d.ts +0 -12
  52. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  53. package/dist-types/runtimeConfig.d.ts +1 -0
  54. package/dist-types/runtimeConfig.native.d.ts +1 -0
  55. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  56. package/dist-types/schemas/schemas_0.d.ts +203 -0
  57. package/dist-types/ts3.4/TranscribeClient.d.ts +4 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +0 -9
  59. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  60. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  61. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  62. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +210 -0
  64. package/package.json +5 -5
  65. package/dist-es/protocols/Aws_json1_1.js +0 -1365
  66. package/dist-types/protocols/Aws_json1_1.d.ts +0 -389
  67. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -521
@@ -1,1365 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, 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 "@smithy/smithy-client";
4
- import { BadRequestException, ConflictException, InternalFailureException, LimitExceededException, NotFoundException, } from "../models/models_0";
5
- import { TranscribeServiceException as __BaseException } from "../models/TranscribeServiceException";
6
- export const se_CreateCallAnalyticsCategoryCommand = async (input, context) => {
7
- const headers = sharedHeaders("CreateCallAnalyticsCategory");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_CreateLanguageModelCommand = async (input, context) => {
13
- const headers = sharedHeaders("CreateLanguageModel");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_CreateMedicalVocabularyCommand = async (input, context) => {
19
- const headers = sharedHeaders("CreateMedicalVocabulary");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_CreateVocabularyCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateVocabulary");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CreateVocabularyFilterCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateVocabularyFilter");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_DeleteCallAnalyticsCategoryCommand = async (input, context) => {
37
- const headers = sharedHeaders("DeleteCallAnalyticsCategory");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_DeleteCallAnalyticsJobCommand = async (input, context) => {
43
- const headers = sharedHeaders("DeleteCallAnalyticsJob");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_DeleteLanguageModelCommand = async (input, context) => {
49
- const headers = sharedHeaders("DeleteLanguageModel");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_DeleteMedicalScribeJobCommand = async (input, context) => {
55
- const headers = sharedHeaders("DeleteMedicalScribeJob");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_DeleteMedicalTranscriptionJobCommand = async (input, context) => {
61
- const headers = sharedHeaders("DeleteMedicalTranscriptionJob");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_DeleteMedicalVocabularyCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteMedicalVocabulary");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_DeleteTranscriptionJobCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteTranscriptionJob");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_DeleteVocabularyCommand = async (input, context) => {
79
- const headers = sharedHeaders("DeleteVocabulary");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_DeleteVocabularyFilterCommand = async (input, context) => {
85
- const headers = sharedHeaders("DeleteVocabularyFilter");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DescribeLanguageModelCommand = async (input, context) => {
91
- const headers = sharedHeaders("DescribeLanguageModel");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_GetCallAnalyticsCategoryCommand = async (input, context) => {
97
- const headers = sharedHeaders("GetCallAnalyticsCategory");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_GetCallAnalyticsJobCommand = async (input, context) => {
103
- const headers = sharedHeaders("GetCallAnalyticsJob");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_GetMedicalScribeJobCommand = async (input, context) => {
109
- const headers = sharedHeaders("GetMedicalScribeJob");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_GetMedicalTranscriptionJobCommand = async (input, context) => {
115
- const headers = sharedHeaders("GetMedicalTranscriptionJob");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_GetMedicalVocabularyCommand = async (input, context) => {
121
- const headers = sharedHeaders("GetMedicalVocabulary");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_GetTranscriptionJobCommand = async (input, context) => {
127
- const headers = sharedHeaders("GetTranscriptionJob");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_GetVocabularyCommand = async (input, context) => {
133
- const headers = sharedHeaders("GetVocabulary");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_GetVocabularyFilterCommand = async (input, context) => {
139
- const headers = sharedHeaders("GetVocabularyFilter");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_ListCallAnalyticsCategoriesCommand = async (input, context) => {
145
- const headers = sharedHeaders("ListCallAnalyticsCategories");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_ListCallAnalyticsJobsCommand = async (input, context) => {
151
- const headers = sharedHeaders("ListCallAnalyticsJobs");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_ListLanguageModelsCommand = async (input, context) => {
157
- const headers = sharedHeaders("ListLanguageModels");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_ListMedicalScribeJobsCommand = async (input, context) => {
163
- const headers = sharedHeaders("ListMedicalScribeJobs");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_ListMedicalTranscriptionJobsCommand = async (input, context) => {
169
- const headers = sharedHeaders("ListMedicalTranscriptionJobs");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_ListMedicalVocabulariesCommand = async (input, context) => {
175
- const headers = sharedHeaders("ListMedicalVocabularies");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_ListTagsForResourceCommand = async (input, context) => {
181
- const headers = sharedHeaders("ListTagsForResource");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_ListTranscriptionJobsCommand = async (input, context) => {
187
- const headers = sharedHeaders("ListTranscriptionJobs");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_ListVocabulariesCommand = async (input, context) => {
193
- const headers = sharedHeaders("ListVocabularies");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_ListVocabularyFiltersCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListVocabularyFilters");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_StartCallAnalyticsJobCommand = async (input, context) => {
205
- const headers = sharedHeaders("StartCallAnalyticsJob");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_StartMedicalScribeJobCommand = async (input, context) => {
211
- const headers = sharedHeaders("StartMedicalScribeJob");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_StartMedicalTranscriptionJobCommand = async (input, context) => {
217
- const headers = sharedHeaders("StartMedicalTranscriptionJob");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_StartTranscriptionJobCommand = async (input, context) => {
223
- const headers = sharedHeaders("StartTranscriptionJob");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_TagResourceCommand = async (input, context) => {
229
- const headers = sharedHeaders("TagResource");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_UntagResourceCommand = async (input, context) => {
235
- const headers = sharedHeaders("UntagResource");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_UpdateCallAnalyticsCategoryCommand = async (input, context) => {
241
- const headers = sharedHeaders("UpdateCallAnalyticsCategory");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_UpdateMedicalVocabularyCommand = async (input, context) => {
247
- const headers = sharedHeaders("UpdateMedicalVocabulary");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_UpdateVocabularyCommand = async (input, context) => {
253
- const headers = sharedHeaders("UpdateVocabulary");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_UpdateVocabularyFilterCommand = async (input, context) => {
259
- const headers = sharedHeaders("UpdateVocabularyFilter");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const de_CreateCallAnalyticsCategoryCommand = async (output, context) => {
265
- if (output.statusCode >= 300) {
266
- return de_CommandError(output, context);
267
- }
268
- const data = await parseBody(output.body, context);
269
- let contents = {};
270
- contents = de_CreateCallAnalyticsCategoryResponse(data, context);
271
- const response = {
272
- $metadata: deserializeMetadata(output),
273
- ...contents,
274
- };
275
- return response;
276
- };
277
- export const de_CreateLanguageModelCommand = async (output, context) => {
278
- if (output.statusCode >= 300) {
279
- return de_CommandError(output, context);
280
- }
281
- const data = await parseBody(output.body, context);
282
- let contents = {};
283
- contents = _json(data);
284
- const response = {
285
- $metadata: deserializeMetadata(output),
286
- ...contents,
287
- };
288
- return response;
289
- };
290
- export const de_CreateMedicalVocabularyCommand = async (output, context) => {
291
- if (output.statusCode >= 300) {
292
- return de_CommandError(output, context);
293
- }
294
- const data = await parseBody(output.body, context);
295
- let contents = {};
296
- contents = de_CreateMedicalVocabularyResponse(data, context);
297
- const response = {
298
- $metadata: deserializeMetadata(output),
299
- ...contents,
300
- };
301
- return response;
302
- };
303
- export const de_CreateVocabularyCommand = async (output, context) => {
304
- if (output.statusCode >= 300) {
305
- return de_CommandError(output, context);
306
- }
307
- const data = await parseBody(output.body, context);
308
- let contents = {};
309
- contents = de_CreateVocabularyResponse(data, context);
310
- const response = {
311
- $metadata: deserializeMetadata(output),
312
- ...contents,
313
- };
314
- return response;
315
- };
316
- export const de_CreateVocabularyFilterCommand = async (output, context) => {
317
- if (output.statusCode >= 300) {
318
- return de_CommandError(output, context);
319
- }
320
- const data = await parseBody(output.body, context);
321
- let contents = {};
322
- contents = de_CreateVocabularyFilterResponse(data, context);
323
- const response = {
324
- $metadata: deserializeMetadata(output),
325
- ...contents,
326
- };
327
- return response;
328
- };
329
- export const de_DeleteCallAnalyticsCategoryCommand = async (output, context) => {
330
- if (output.statusCode >= 300) {
331
- return de_CommandError(output, context);
332
- }
333
- const data = await parseBody(output.body, context);
334
- let contents = {};
335
- contents = _json(data);
336
- const response = {
337
- $metadata: deserializeMetadata(output),
338
- ...contents,
339
- };
340
- return response;
341
- };
342
- export const de_DeleteCallAnalyticsJobCommand = async (output, context) => {
343
- if (output.statusCode >= 300) {
344
- return de_CommandError(output, context);
345
- }
346
- const data = await parseBody(output.body, context);
347
- let contents = {};
348
- contents = _json(data);
349
- const response = {
350
- $metadata: deserializeMetadata(output),
351
- ...contents,
352
- };
353
- return response;
354
- };
355
- export const de_DeleteLanguageModelCommand = async (output, context) => {
356
- if (output.statusCode >= 300) {
357
- return de_CommandError(output, context);
358
- }
359
- await collectBody(output.body, context);
360
- const response = {
361
- $metadata: deserializeMetadata(output),
362
- };
363
- return response;
364
- };
365
- export const de_DeleteMedicalScribeJobCommand = async (output, context) => {
366
- if (output.statusCode >= 300) {
367
- return de_CommandError(output, context);
368
- }
369
- await collectBody(output.body, context);
370
- const response = {
371
- $metadata: deserializeMetadata(output),
372
- };
373
- return response;
374
- };
375
- export const de_DeleteMedicalTranscriptionJobCommand = async (output, context) => {
376
- if (output.statusCode >= 300) {
377
- return de_CommandError(output, context);
378
- }
379
- await collectBody(output.body, context);
380
- const response = {
381
- $metadata: deserializeMetadata(output),
382
- };
383
- return response;
384
- };
385
- export const de_DeleteMedicalVocabularyCommand = async (output, context) => {
386
- if (output.statusCode >= 300) {
387
- return de_CommandError(output, context);
388
- }
389
- await collectBody(output.body, context);
390
- const response = {
391
- $metadata: deserializeMetadata(output),
392
- };
393
- return response;
394
- };
395
- export const de_DeleteTranscriptionJobCommand = async (output, context) => {
396
- if (output.statusCode >= 300) {
397
- return de_CommandError(output, context);
398
- }
399
- await collectBody(output.body, context);
400
- const response = {
401
- $metadata: deserializeMetadata(output),
402
- };
403
- return response;
404
- };
405
- export const de_DeleteVocabularyCommand = async (output, context) => {
406
- if (output.statusCode >= 300) {
407
- return de_CommandError(output, context);
408
- }
409
- await collectBody(output.body, context);
410
- const response = {
411
- $metadata: deserializeMetadata(output),
412
- };
413
- return response;
414
- };
415
- export const de_DeleteVocabularyFilterCommand = async (output, context) => {
416
- if (output.statusCode >= 300) {
417
- return de_CommandError(output, context);
418
- }
419
- await collectBody(output.body, context);
420
- const response = {
421
- $metadata: deserializeMetadata(output),
422
- };
423
- return response;
424
- };
425
- export const de_DescribeLanguageModelCommand = async (output, context) => {
426
- if (output.statusCode >= 300) {
427
- return de_CommandError(output, context);
428
- }
429
- const data = await parseBody(output.body, context);
430
- let contents = {};
431
- contents = de_DescribeLanguageModelResponse(data, context);
432
- const response = {
433
- $metadata: deserializeMetadata(output),
434
- ...contents,
435
- };
436
- return response;
437
- };
438
- export const de_GetCallAnalyticsCategoryCommand = async (output, context) => {
439
- if (output.statusCode >= 300) {
440
- return de_CommandError(output, context);
441
- }
442
- const data = await parseBody(output.body, context);
443
- let contents = {};
444
- contents = de_GetCallAnalyticsCategoryResponse(data, context);
445
- const response = {
446
- $metadata: deserializeMetadata(output),
447
- ...contents,
448
- };
449
- return response;
450
- };
451
- export const de_GetCallAnalyticsJobCommand = async (output, context) => {
452
- if (output.statusCode >= 300) {
453
- return de_CommandError(output, context);
454
- }
455
- const data = await parseBody(output.body, context);
456
- let contents = {};
457
- contents = de_GetCallAnalyticsJobResponse(data, context);
458
- const response = {
459
- $metadata: deserializeMetadata(output),
460
- ...contents,
461
- };
462
- return response;
463
- };
464
- export const de_GetMedicalScribeJobCommand = async (output, context) => {
465
- if (output.statusCode >= 300) {
466
- return de_CommandError(output, context);
467
- }
468
- const data = await parseBody(output.body, context);
469
- let contents = {};
470
- contents = de_GetMedicalScribeJobResponse(data, context);
471
- const response = {
472
- $metadata: deserializeMetadata(output),
473
- ...contents,
474
- };
475
- return response;
476
- };
477
- export const de_GetMedicalTranscriptionJobCommand = async (output, context) => {
478
- if (output.statusCode >= 300) {
479
- return de_CommandError(output, context);
480
- }
481
- const data = await parseBody(output.body, context);
482
- let contents = {};
483
- contents = de_GetMedicalTranscriptionJobResponse(data, context);
484
- const response = {
485
- $metadata: deserializeMetadata(output),
486
- ...contents,
487
- };
488
- return response;
489
- };
490
- export const de_GetMedicalVocabularyCommand = async (output, context) => {
491
- if (output.statusCode >= 300) {
492
- return de_CommandError(output, context);
493
- }
494
- const data = await parseBody(output.body, context);
495
- let contents = {};
496
- contents = de_GetMedicalVocabularyResponse(data, context);
497
- const response = {
498
- $metadata: deserializeMetadata(output),
499
- ...contents,
500
- };
501
- return response;
502
- };
503
- export const de_GetTranscriptionJobCommand = async (output, context) => {
504
- if (output.statusCode >= 300) {
505
- return de_CommandError(output, context);
506
- }
507
- const data = await parseBody(output.body, context);
508
- let contents = {};
509
- contents = de_GetTranscriptionJobResponse(data, context);
510
- const response = {
511
- $metadata: deserializeMetadata(output),
512
- ...contents,
513
- };
514
- return response;
515
- };
516
- export const de_GetVocabularyCommand = async (output, context) => {
517
- if (output.statusCode >= 300) {
518
- return de_CommandError(output, context);
519
- }
520
- const data = await parseBody(output.body, context);
521
- let contents = {};
522
- contents = de_GetVocabularyResponse(data, context);
523
- const response = {
524
- $metadata: deserializeMetadata(output),
525
- ...contents,
526
- };
527
- return response;
528
- };
529
- export const de_GetVocabularyFilterCommand = async (output, context) => {
530
- if (output.statusCode >= 300) {
531
- return de_CommandError(output, context);
532
- }
533
- const data = await parseBody(output.body, context);
534
- let contents = {};
535
- contents = de_GetVocabularyFilterResponse(data, context);
536
- const response = {
537
- $metadata: deserializeMetadata(output),
538
- ...contents,
539
- };
540
- return response;
541
- };
542
- export const de_ListCallAnalyticsCategoriesCommand = async (output, context) => {
543
- if (output.statusCode >= 300) {
544
- return de_CommandError(output, context);
545
- }
546
- const data = await parseBody(output.body, context);
547
- let contents = {};
548
- contents = de_ListCallAnalyticsCategoriesResponse(data, context);
549
- const response = {
550
- $metadata: deserializeMetadata(output),
551
- ...contents,
552
- };
553
- return response;
554
- };
555
- export const de_ListCallAnalyticsJobsCommand = async (output, context) => {
556
- if (output.statusCode >= 300) {
557
- return de_CommandError(output, context);
558
- }
559
- const data = await parseBody(output.body, context);
560
- let contents = {};
561
- contents = de_ListCallAnalyticsJobsResponse(data, context);
562
- const response = {
563
- $metadata: deserializeMetadata(output),
564
- ...contents,
565
- };
566
- return response;
567
- };
568
- export const de_ListLanguageModelsCommand = async (output, context) => {
569
- if (output.statusCode >= 300) {
570
- return de_CommandError(output, context);
571
- }
572
- const data = await parseBody(output.body, context);
573
- let contents = {};
574
- contents = de_ListLanguageModelsResponse(data, context);
575
- const response = {
576
- $metadata: deserializeMetadata(output),
577
- ...contents,
578
- };
579
- return response;
580
- };
581
- export const de_ListMedicalScribeJobsCommand = async (output, context) => {
582
- if (output.statusCode >= 300) {
583
- return de_CommandError(output, context);
584
- }
585
- const data = await parseBody(output.body, context);
586
- let contents = {};
587
- contents = de_ListMedicalScribeJobsResponse(data, context);
588
- const response = {
589
- $metadata: deserializeMetadata(output),
590
- ...contents,
591
- };
592
- return response;
593
- };
594
- export const de_ListMedicalTranscriptionJobsCommand = async (output, context) => {
595
- if (output.statusCode >= 300) {
596
- return de_CommandError(output, context);
597
- }
598
- const data = await parseBody(output.body, context);
599
- let contents = {};
600
- contents = de_ListMedicalTranscriptionJobsResponse(data, context);
601
- const response = {
602
- $metadata: deserializeMetadata(output),
603
- ...contents,
604
- };
605
- return response;
606
- };
607
- export const de_ListMedicalVocabulariesCommand = async (output, context) => {
608
- if (output.statusCode >= 300) {
609
- return de_CommandError(output, context);
610
- }
611
- const data = await parseBody(output.body, context);
612
- let contents = {};
613
- contents = de_ListMedicalVocabulariesResponse(data, context);
614
- const response = {
615
- $metadata: deserializeMetadata(output),
616
- ...contents,
617
- };
618
- return response;
619
- };
620
- export const de_ListTagsForResourceCommand = async (output, context) => {
621
- if (output.statusCode >= 300) {
622
- return de_CommandError(output, context);
623
- }
624
- const data = await parseBody(output.body, context);
625
- let contents = {};
626
- contents = _json(data);
627
- const response = {
628
- $metadata: deserializeMetadata(output),
629
- ...contents,
630
- };
631
- return response;
632
- };
633
- export const de_ListTranscriptionJobsCommand = async (output, context) => {
634
- if (output.statusCode >= 300) {
635
- return de_CommandError(output, context);
636
- }
637
- const data = await parseBody(output.body, context);
638
- let contents = {};
639
- contents = de_ListTranscriptionJobsResponse(data, context);
640
- const response = {
641
- $metadata: deserializeMetadata(output),
642
- ...contents,
643
- };
644
- return response;
645
- };
646
- export const de_ListVocabulariesCommand = async (output, context) => {
647
- if (output.statusCode >= 300) {
648
- return de_CommandError(output, context);
649
- }
650
- const data = await parseBody(output.body, context);
651
- let contents = {};
652
- contents = de_ListVocabulariesResponse(data, context);
653
- const response = {
654
- $metadata: deserializeMetadata(output),
655
- ...contents,
656
- };
657
- return response;
658
- };
659
- export const de_ListVocabularyFiltersCommand = async (output, context) => {
660
- if (output.statusCode >= 300) {
661
- return de_CommandError(output, context);
662
- }
663
- const data = await parseBody(output.body, context);
664
- let contents = {};
665
- contents = de_ListVocabularyFiltersResponse(data, context);
666
- const response = {
667
- $metadata: deserializeMetadata(output),
668
- ...contents,
669
- };
670
- return response;
671
- };
672
- export const de_StartCallAnalyticsJobCommand = async (output, context) => {
673
- if (output.statusCode >= 300) {
674
- return de_CommandError(output, context);
675
- }
676
- const data = await parseBody(output.body, context);
677
- let contents = {};
678
- contents = de_StartCallAnalyticsJobResponse(data, context);
679
- const response = {
680
- $metadata: deserializeMetadata(output),
681
- ...contents,
682
- };
683
- return response;
684
- };
685
- export const de_StartMedicalScribeJobCommand = async (output, context) => {
686
- if (output.statusCode >= 300) {
687
- return de_CommandError(output, context);
688
- }
689
- const data = await parseBody(output.body, context);
690
- let contents = {};
691
- contents = de_StartMedicalScribeJobResponse(data, context);
692
- const response = {
693
- $metadata: deserializeMetadata(output),
694
- ...contents,
695
- };
696
- return response;
697
- };
698
- export const de_StartMedicalTranscriptionJobCommand = async (output, context) => {
699
- if (output.statusCode >= 300) {
700
- return de_CommandError(output, context);
701
- }
702
- const data = await parseBody(output.body, context);
703
- let contents = {};
704
- contents = de_StartMedicalTranscriptionJobResponse(data, context);
705
- const response = {
706
- $metadata: deserializeMetadata(output),
707
- ...contents,
708
- };
709
- return response;
710
- };
711
- export const de_StartTranscriptionJobCommand = async (output, context) => {
712
- if (output.statusCode >= 300) {
713
- return de_CommandError(output, context);
714
- }
715
- const data = await parseBody(output.body, context);
716
- let contents = {};
717
- contents = de_StartTranscriptionJobResponse(data, context);
718
- const response = {
719
- $metadata: deserializeMetadata(output),
720
- ...contents,
721
- };
722
- return response;
723
- };
724
- export const de_TagResourceCommand = async (output, context) => {
725
- if (output.statusCode >= 300) {
726
- return de_CommandError(output, context);
727
- }
728
- const data = await parseBody(output.body, context);
729
- let contents = {};
730
- contents = _json(data);
731
- const response = {
732
- $metadata: deserializeMetadata(output),
733
- ...contents,
734
- };
735
- return response;
736
- };
737
- export const de_UntagResourceCommand = async (output, context) => {
738
- if (output.statusCode >= 300) {
739
- return de_CommandError(output, context);
740
- }
741
- const data = await parseBody(output.body, context);
742
- let contents = {};
743
- contents = _json(data);
744
- const response = {
745
- $metadata: deserializeMetadata(output),
746
- ...contents,
747
- };
748
- return response;
749
- };
750
- export const de_UpdateCallAnalyticsCategoryCommand = async (output, context) => {
751
- if (output.statusCode >= 300) {
752
- return de_CommandError(output, context);
753
- }
754
- const data = await parseBody(output.body, context);
755
- let contents = {};
756
- contents = de_UpdateCallAnalyticsCategoryResponse(data, context);
757
- const response = {
758
- $metadata: deserializeMetadata(output),
759
- ...contents,
760
- };
761
- return response;
762
- };
763
- export const de_UpdateMedicalVocabularyCommand = async (output, context) => {
764
- if (output.statusCode >= 300) {
765
- return de_CommandError(output, context);
766
- }
767
- const data = await parseBody(output.body, context);
768
- let contents = {};
769
- contents = de_UpdateMedicalVocabularyResponse(data, context);
770
- const response = {
771
- $metadata: deserializeMetadata(output),
772
- ...contents,
773
- };
774
- return response;
775
- };
776
- export const de_UpdateVocabularyCommand = async (output, context) => {
777
- if (output.statusCode >= 300) {
778
- return de_CommandError(output, context);
779
- }
780
- const data = await parseBody(output.body, context);
781
- let contents = {};
782
- contents = de_UpdateVocabularyResponse(data, context);
783
- const response = {
784
- $metadata: deserializeMetadata(output),
785
- ...contents,
786
- };
787
- return response;
788
- };
789
- export const de_UpdateVocabularyFilterCommand = async (output, context) => {
790
- if (output.statusCode >= 300) {
791
- return de_CommandError(output, context);
792
- }
793
- const data = await parseBody(output.body, context);
794
- let contents = {};
795
- contents = de_UpdateVocabularyFilterResponse(data, context);
796
- const response = {
797
- $metadata: deserializeMetadata(output),
798
- ...contents,
799
- };
800
- return response;
801
- };
802
- const de_CommandError = async (output, context) => {
803
- const parsedOutput = {
804
- ...output,
805
- body: await parseErrorBody(output.body, context),
806
- };
807
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
808
- switch (errorCode) {
809
- case "BadRequestException":
810
- case "com.amazonaws.transcribe#BadRequestException":
811
- throw await de_BadRequestExceptionRes(parsedOutput, context);
812
- case "ConflictException":
813
- case "com.amazonaws.transcribe#ConflictException":
814
- throw await de_ConflictExceptionRes(parsedOutput, context);
815
- case "InternalFailureException":
816
- case "com.amazonaws.transcribe#InternalFailureException":
817
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
818
- case "LimitExceededException":
819
- case "com.amazonaws.transcribe#LimitExceededException":
820
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
821
- case "NotFoundException":
822
- case "com.amazonaws.transcribe#NotFoundException":
823
- throw await de_NotFoundExceptionRes(parsedOutput, context);
824
- default:
825
- const parsedBody = parsedOutput.body;
826
- return throwDefaultError({
827
- output,
828
- parsedBody,
829
- errorCode,
830
- });
831
- }
832
- };
833
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
834
- const body = parsedOutput.body;
835
- const deserialized = _json(body);
836
- const exception = new BadRequestException({
837
- $metadata: deserializeMetadata(parsedOutput),
838
- ...deserialized,
839
- });
840
- return __decorateServiceException(exception, body);
841
- };
842
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
843
- const body = parsedOutput.body;
844
- const deserialized = _json(body);
845
- const exception = new ConflictException({
846
- $metadata: deserializeMetadata(parsedOutput),
847
- ...deserialized,
848
- });
849
- return __decorateServiceException(exception, body);
850
- };
851
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
852
- const body = parsedOutput.body;
853
- const deserialized = _json(body);
854
- const exception = new InternalFailureException({
855
- $metadata: deserializeMetadata(parsedOutput),
856
- ...deserialized,
857
- });
858
- return __decorateServiceException(exception, body);
859
- };
860
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
861
- const body = parsedOutput.body;
862
- const deserialized = _json(body);
863
- const exception = new LimitExceededException({
864
- $metadata: deserializeMetadata(parsedOutput),
865
- ...deserialized,
866
- });
867
- return __decorateServiceException(exception, body);
868
- };
869
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
870
- const body = parsedOutput.body;
871
- const deserialized = _json(body);
872
- const exception = new NotFoundException({
873
- $metadata: deserializeMetadata(parsedOutput),
874
- ...deserialized,
875
- });
876
- return __decorateServiceException(exception, body);
877
- };
878
- const de_CallAnalyticsJob = (output, context) => {
879
- return take(output, {
880
- CallAnalyticsJobDetails: _json,
881
- CallAnalyticsJobName: __expectString,
882
- CallAnalyticsJobStatus: __expectString,
883
- ChannelDefinitions: _json,
884
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
885
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
886
- DataAccessRoleArn: __expectString,
887
- FailureReason: __expectString,
888
- IdentifiedLanguageScore: __limitedParseFloat32,
889
- LanguageCode: __expectString,
890
- Media: _json,
891
- MediaFormat: __expectString,
892
- MediaSampleRateHertz: __expectInt32,
893
- Settings: _json,
894
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
895
- Tags: _json,
896
- Transcript: _json,
897
- });
898
- };
899
- const de_CallAnalyticsJobSummaries = (output, context) => {
900
- const retVal = (output || [])
901
- .filter((e) => e != null)
902
- .map((entry) => {
903
- return de_CallAnalyticsJobSummary(entry, context);
904
- });
905
- return retVal;
906
- };
907
- const de_CallAnalyticsJobSummary = (output, context) => {
908
- return take(output, {
909
- CallAnalyticsJobDetails: _json,
910
- CallAnalyticsJobName: __expectString,
911
- CallAnalyticsJobStatus: __expectString,
912
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
913
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
914
- FailureReason: __expectString,
915
- LanguageCode: __expectString,
916
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
917
- });
918
- };
919
- const de_CategoryProperties = (output, context) => {
920
- return take(output, {
921
- CategoryName: __expectString,
922
- CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
923
- InputType: __expectString,
924
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
925
- Rules: _json,
926
- Tags: _json,
927
- });
928
- };
929
- const de_CategoryPropertiesList = (output, context) => {
930
- const retVal = (output || [])
931
- .filter((e) => e != null)
932
- .map((entry) => {
933
- return de_CategoryProperties(entry, context);
934
- });
935
- return retVal;
936
- };
937
- const de_CreateCallAnalyticsCategoryResponse = (output, context) => {
938
- return take(output, {
939
- CategoryProperties: (_) => de_CategoryProperties(_, context),
940
- });
941
- };
942
- const de_CreateMedicalVocabularyResponse = (output, context) => {
943
- return take(output, {
944
- FailureReason: __expectString,
945
- LanguageCode: __expectString,
946
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
947
- VocabularyName: __expectString,
948
- VocabularyState: __expectString,
949
- });
950
- };
951
- const de_CreateVocabularyFilterResponse = (output, context) => {
952
- return take(output, {
953
- LanguageCode: __expectString,
954
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
955
- VocabularyFilterName: __expectString,
956
- });
957
- };
958
- const de_CreateVocabularyResponse = (output, context) => {
959
- return take(output, {
960
- FailureReason: __expectString,
961
- LanguageCode: __expectString,
962
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
963
- VocabularyName: __expectString,
964
- VocabularyState: __expectString,
965
- });
966
- };
967
- const de_DescribeLanguageModelResponse = (output, context) => {
968
- return take(output, {
969
- LanguageModel: (_) => de_LanguageModel(_, context),
970
- });
971
- };
972
- const de_GetCallAnalyticsCategoryResponse = (output, context) => {
973
- return take(output, {
974
- CategoryProperties: (_) => de_CategoryProperties(_, context),
975
- });
976
- };
977
- const de_GetCallAnalyticsJobResponse = (output, context) => {
978
- return take(output, {
979
- CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
980
- });
981
- };
982
- const de_GetMedicalScribeJobResponse = (output, context) => {
983
- return take(output, {
984
- MedicalScribeJob: (_) => de_MedicalScribeJob(_, context),
985
- });
986
- };
987
- const de_GetMedicalTranscriptionJobResponse = (output, context) => {
988
- return take(output, {
989
- MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
990
- });
991
- };
992
- const de_GetMedicalVocabularyResponse = (output, context) => {
993
- return take(output, {
994
- DownloadUri: __expectString,
995
- FailureReason: __expectString,
996
- LanguageCode: __expectString,
997
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
998
- VocabularyName: __expectString,
999
- VocabularyState: __expectString,
1000
- });
1001
- };
1002
- const de_GetTranscriptionJobResponse = (output, context) => {
1003
- return take(output, {
1004
- TranscriptionJob: (_) => de_TranscriptionJob(_, context),
1005
- });
1006
- };
1007
- const de_GetVocabularyFilterResponse = (output, context) => {
1008
- return take(output, {
1009
- DownloadUri: __expectString,
1010
- LanguageCode: __expectString,
1011
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1012
- VocabularyFilterName: __expectString,
1013
- });
1014
- };
1015
- const de_GetVocabularyResponse = (output, context) => {
1016
- return take(output, {
1017
- DownloadUri: __expectString,
1018
- FailureReason: __expectString,
1019
- LanguageCode: __expectString,
1020
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1021
- VocabularyName: __expectString,
1022
- VocabularyState: __expectString,
1023
- });
1024
- };
1025
- const de_LanguageCodeItem = (output, context) => {
1026
- return take(output, {
1027
- DurationInSeconds: __limitedParseFloat32,
1028
- LanguageCode: __expectString,
1029
- });
1030
- };
1031
- const de_LanguageCodeList = (output, context) => {
1032
- const retVal = (output || [])
1033
- .filter((e) => e != null)
1034
- .map((entry) => {
1035
- return de_LanguageCodeItem(entry, context);
1036
- });
1037
- return retVal;
1038
- };
1039
- const de_LanguageModel = (output, context) => {
1040
- return take(output, {
1041
- BaseModelName: __expectString,
1042
- CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1043
- FailureReason: __expectString,
1044
- InputDataConfig: _json,
1045
- LanguageCode: __expectString,
1046
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1047
- ModelName: __expectString,
1048
- ModelStatus: __expectString,
1049
- UpgradeAvailability: __expectBoolean,
1050
- });
1051
- };
1052
- const de_ListCallAnalyticsCategoriesResponse = (output, context) => {
1053
- return take(output, {
1054
- Categories: (_) => de_CategoryPropertiesList(_, context),
1055
- NextToken: __expectString,
1056
- });
1057
- };
1058
- const de_ListCallAnalyticsJobsResponse = (output, context) => {
1059
- return take(output, {
1060
- CallAnalyticsJobSummaries: (_) => de_CallAnalyticsJobSummaries(_, context),
1061
- NextToken: __expectString,
1062
- Status: __expectString,
1063
- });
1064
- };
1065
- const de_ListLanguageModelsResponse = (output, context) => {
1066
- return take(output, {
1067
- Models: (_) => de_Models(_, context),
1068
- NextToken: __expectString,
1069
- });
1070
- };
1071
- const de_ListMedicalScribeJobsResponse = (output, context) => {
1072
- return take(output, {
1073
- MedicalScribeJobSummaries: (_) => de_MedicalScribeJobSummaries(_, context),
1074
- NextToken: __expectString,
1075
- Status: __expectString,
1076
- });
1077
- };
1078
- const de_ListMedicalTranscriptionJobsResponse = (output, context) => {
1079
- return take(output, {
1080
- MedicalTranscriptionJobSummaries: (_) => de_MedicalTranscriptionJobSummaries(_, context),
1081
- NextToken: __expectString,
1082
- Status: __expectString,
1083
- });
1084
- };
1085
- const de_ListMedicalVocabulariesResponse = (output, context) => {
1086
- return take(output, {
1087
- NextToken: __expectString,
1088
- Status: __expectString,
1089
- Vocabularies: (_) => de_Vocabularies(_, context),
1090
- });
1091
- };
1092
- const de_ListTranscriptionJobsResponse = (output, context) => {
1093
- return take(output, {
1094
- NextToken: __expectString,
1095
- Status: __expectString,
1096
- TranscriptionJobSummaries: (_) => de_TranscriptionJobSummaries(_, context),
1097
- });
1098
- };
1099
- const de_ListVocabulariesResponse = (output, context) => {
1100
- return take(output, {
1101
- NextToken: __expectString,
1102
- Status: __expectString,
1103
- Vocabularies: (_) => de_Vocabularies(_, context),
1104
- });
1105
- };
1106
- const de_ListVocabularyFiltersResponse = (output, context) => {
1107
- return take(output, {
1108
- NextToken: __expectString,
1109
- VocabularyFilters: (_) => de_VocabularyFilters(_, context),
1110
- });
1111
- };
1112
- const de_MedicalScribeJob = (output, context) => {
1113
- return take(output, {
1114
- ChannelDefinitions: _json,
1115
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1116
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1117
- DataAccessRoleArn: __expectString,
1118
- FailureReason: __expectString,
1119
- LanguageCode: __expectString,
1120
- Media: _json,
1121
- MedicalScribeContextProvided: __expectBoolean,
1122
- MedicalScribeJobName: __expectString,
1123
- MedicalScribeJobStatus: __expectString,
1124
- MedicalScribeOutput: _json,
1125
- Settings: _json,
1126
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1127
- Tags: _json,
1128
- });
1129
- };
1130
- const de_MedicalScribeJobSummaries = (output, context) => {
1131
- const retVal = (output || [])
1132
- .filter((e) => e != null)
1133
- .map((entry) => {
1134
- return de_MedicalScribeJobSummary(entry, context);
1135
- });
1136
- return retVal;
1137
- };
1138
- const de_MedicalScribeJobSummary = (output, context) => {
1139
- return take(output, {
1140
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1141
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1142
- FailureReason: __expectString,
1143
- LanguageCode: __expectString,
1144
- MedicalScribeJobName: __expectString,
1145
- MedicalScribeJobStatus: __expectString,
1146
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1147
- });
1148
- };
1149
- const de_MedicalTranscriptionJob = (output, context) => {
1150
- return take(output, {
1151
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1152
- ContentIdentificationType: __expectString,
1153
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1154
- FailureReason: __expectString,
1155
- LanguageCode: __expectString,
1156
- Media: _json,
1157
- MediaFormat: __expectString,
1158
- MediaSampleRateHertz: __expectInt32,
1159
- MedicalTranscriptionJobName: __expectString,
1160
- Settings: _json,
1161
- Specialty: __expectString,
1162
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1163
- Tags: _json,
1164
- Transcript: _json,
1165
- TranscriptionJobStatus: __expectString,
1166
- Type: __expectString,
1167
- });
1168
- };
1169
- const de_MedicalTranscriptionJobSummaries = (output, context) => {
1170
- const retVal = (output || [])
1171
- .filter((e) => e != null)
1172
- .map((entry) => {
1173
- return de_MedicalTranscriptionJobSummary(entry, context);
1174
- });
1175
- return retVal;
1176
- };
1177
- const de_MedicalTranscriptionJobSummary = (output, context) => {
1178
- return take(output, {
1179
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1180
- ContentIdentificationType: __expectString,
1181
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1182
- FailureReason: __expectString,
1183
- LanguageCode: __expectString,
1184
- MedicalTranscriptionJobName: __expectString,
1185
- OutputLocationType: __expectString,
1186
- Specialty: __expectString,
1187
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1188
- TranscriptionJobStatus: __expectString,
1189
- Type: __expectString,
1190
- });
1191
- };
1192
- const de_Models = (output, context) => {
1193
- const retVal = (output || [])
1194
- .filter((e) => e != null)
1195
- .map((entry) => {
1196
- return de_LanguageModel(entry, context);
1197
- });
1198
- return retVal;
1199
- };
1200
- const de_StartCallAnalyticsJobResponse = (output, context) => {
1201
- return take(output, {
1202
- CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
1203
- });
1204
- };
1205
- const de_StartMedicalScribeJobResponse = (output, context) => {
1206
- return take(output, {
1207
- MedicalScribeJob: (_) => de_MedicalScribeJob(_, context),
1208
- });
1209
- };
1210
- const de_StartMedicalTranscriptionJobResponse = (output, context) => {
1211
- return take(output, {
1212
- MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
1213
- });
1214
- };
1215
- const de_StartTranscriptionJobResponse = (output, context) => {
1216
- return take(output, {
1217
- TranscriptionJob: (_) => de_TranscriptionJob(_, context),
1218
- });
1219
- };
1220
- const de_TranscriptionJob = (output, context) => {
1221
- return take(output, {
1222
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1223
- ContentRedaction: _json,
1224
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1225
- FailureReason: __expectString,
1226
- IdentifiedLanguageScore: __limitedParseFloat32,
1227
- IdentifyLanguage: __expectBoolean,
1228
- IdentifyMultipleLanguages: __expectBoolean,
1229
- JobExecutionSettings: _json,
1230
- LanguageCode: __expectString,
1231
- LanguageCodes: (_) => de_LanguageCodeList(_, context),
1232
- LanguageIdSettings: _json,
1233
- LanguageOptions: _json,
1234
- Media: _json,
1235
- MediaFormat: __expectString,
1236
- MediaSampleRateHertz: __expectInt32,
1237
- ModelSettings: _json,
1238
- Settings: _json,
1239
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1240
- Subtitles: _json,
1241
- Tags: _json,
1242
- ToxicityDetection: _json,
1243
- Transcript: _json,
1244
- TranscriptionJobName: __expectString,
1245
- TranscriptionJobStatus: __expectString,
1246
- });
1247
- };
1248
- const de_TranscriptionJobSummaries = (output, context) => {
1249
- const retVal = (output || [])
1250
- .filter((e) => e != null)
1251
- .map((entry) => {
1252
- return de_TranscriptionJobSummary(entry, context);
1253
- });
1254
- return retVal;
1255
- };
1256
- const de_TranscriptionJobSummary = (output, context) => {
1257
- return take(output, {
1258
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1259
- ContentRedaction: _json,
1260
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1261
- FailureReason: __expectString,
1262
- IdentifiedLanguageScore: __limitedParseFloat32,
1263
- IdentifyLanguage: __expectBoolean,
1264
- IdentifyMultipleLanguages: __expectBoolean,
1265
- LanguageCode: __expectString,
1266
- LanguageCodes: (_) => de_LanguageCodeList(_, context),
1267
- ModelSettings: _json,
1268
- OutputLocationType: __expectString,
1269
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1270
- ToxicityDetection: _json,
1271
- TranscriptionJobName: __expectString,
1272
- TranscriptionJobStatus: __expectString,
1273
- });
1274
- };
1275
- const de_UpdateCallAnalyticsCategoryResponse = (output, context) => {
1276
- return take(output, {
1277
- CategoryProperties: (_) => de_CategoryProperties(_, context),
1278
- });
1279
- };
1280
- const de_UpdateMedicalVocabularyResponse = (output, context) => {
1281
- return take(output, {
1282
- LanguageCode: __expectString,
1283
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1284
- VocabularyName: __expectString,
1285
- VocabularyState: __expectString,
1286
- });
1287
- };
1288
- const de_UpdateVocabularyFilterResponse = (output, context) => {
1289
- return take(output, {
1290
- LanguageCode: __expectString,
1291
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1292
- VocabularyFilterName: __expectString,
1293
- });
1294
- };
1295
- const de_UpdateVocabularyResponse = (output, context) => {
1296
- return take(output, {
1297
- LanguageCode: __expectString,
1298
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1299
- VocabularyName: __expectString,
1300
- VocabularyState: __expectString,
1301
- });
1302
- };
1303
- const de_Vocabularies = (output, context) => {
1304
- const retVal = (output || [])
1305
- .filter((e) => e != null)
1306
- .map((entry) => {
1307
- return de_VocabularyInfo(entry, context);
1308
- });
1309
- return retVal;
1310
- };
1311
- const de_VocabularyFilterInfo = (output, context) => {
1312
- return take(output, {
1313
- LanguageCode: __expectString,
1314
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1315
- VocabularyFilterName: __expectString,
1316
- });
1317
- };
1318
- const de_VocabularyFilters = (output, context) => {
1319
- const retVal = (output || [])
1320
- .filter((e) => e != null)
1321
- .map((entry) => {
1322
- return de_VocabularyFilterInfo(entry, context);
1323
- });
1324
- return retVal;
1325
- };
1326
- const de_VocabularyInfo = (output, context) => {
1327
- return take(output, {
1328
- LanguageCode: __expectString,
1329
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1330
- VocabularyName: __expectString,
1331
- VocabularyState: __expectString,
1332
- });
1333
- };
1334
- const deserializeMetadata = (output) => ({
1335
- httpStatusCode: output.statusCode,
1336
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1337
- extendedRequestId: output.headers["x-amz-id-2"],
1338
- cfId: output.headers["x-amz-cf-id"],
1339
- });
1340
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1341
- const throwDefaultError = withBaseException(__BaseException);
1342
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1343
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1344
- const contents = {
1345
- protocol,
1346
- hostname,
1347
- port,
1348
- method: "POST",
1349
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1350
- headers,
1351
- };
1352
- if (resolvedHostname !== undefined) {
1353
- contents.hostname = resolvedHostname;
1354
- }
1355
- if (body !== undefined) {
1356
- contents.body = body;
1357
- }
1358
- return new __HttpRequest(contents);
1359
- };
1360
- function sharedHeaders(operation) {
1361
- return {
1362
- "content-type": "application/x-amz-json-1.1",
1363
- "x-amz-target": `Transcribe.${operation}`,
1364
- };
1365
- }