@aws-sdk/client-transcribe 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Transcribe.js +1 -97
- package/dist-cjs/TranscribeClient.js +1 -43
- package/dist-cjs/commands/CreateCallAnalyticsCategoryCommand.js +1 -28
- package/dist-cjs/commands/CreateLanguageModelCommand.js +1 -28
- package/dist-cjs/commands/CreateMedicalVocabularyCommand.js +1 -28
- package/dist-cjs/commands/CreateVocabularyCommand.js +1 -28
- package/dist-cjs/commands/CreateVocabularyFilterCommand.js +1 -28
- package/dist-cjs/commands/DeleteCallAnalyticsCategoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteCallAnalyticsJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteLanguageModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteMedicalScribeJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteMedicalTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteMedicalVocabularyCommand.js +1 -28
- package/dist-cjs/commands/DeleteTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteVocabularyCommand.js +1 -28
- package/dist-cjs/commands/DeleteVocabularyFilterCommand.js +1 -28
- package/dist-cjs/commands/DescribeLanguageModelCommand.js +1 -28
- package/dist-cjs/commands/GetCallAnalyticsCategoryCommand.js +1 -28
- package/dist-cjs/commands/GetCallAnalyticsJobCommand.js +1 -28
- package/dist-cjs/commands/GetMedicalScribeJobCommand.js +1 -28
- package/dist-cjs/commands/GetMedicalTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/GetMedicalVocabularyCommand.js +1 -28
- package/dist-cjs/commands/GetTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/GetVocabularyCommand.js +1 -28
- package/dist-cjs/commands/GetVocabularyFilterCommand.js +1 -28
- package/dist-cjs/commands/ListCallAnalyticsCategoriesCommand.js +1 -28
- package/dist-cjs/commands/ListCallAnalyticsJobsCommand.js +1 -28
- package/dist-cjs/commands/ListLanguageModelsCommand.js +1 -28
- package/dist-cjs/commands/ListMedicalScribeJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMedicalTranscriptionJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMedicalVocabulariesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTranscriptionJobsCommand.js +1 -28
- package/dist-cjs/commands/ListVocabulariesCommand.js +1 -28
- package/dist-cjs/commands/ListVocabularyFiltersCommand.js +1 -28
- package/dist-cjs/commands/StartCallAnalyticsJobCommand.js +1 -28
- package/dist-cjs/commands/StartMedicalScribeJobCommand.js +1 -28
- package/dist-cjs/commands/StartMedicalTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/StartTranscriptionJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCallAnalyticsCategoryCommand.js +1 -28
- package/dist-cjs/commands/UpdateMedicalVocabularyCommand.js +1 -28
- package/dist-cjs/commands/UpdateVocabularyCommand.js +1 -28
- package/dist-cjs/commands/UpdateVocabularyFilterCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -46
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3992 -11
- package/dist-cjs/models/TranscribeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -315
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCallAnalyticsCategoriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListCallAnalyticsJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLanguageModelsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMedicalScribeJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMedicalTranscriptionJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMedicalVocabulariesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTranscriptionJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVocabulariesPaginator.js +1 -7
- package/dist-cjs/pagination/ListVocabularyFiltersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -13
- package/dist-cjs/protocols/Aws_json1_1.js +1 -2635
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2635 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DeleteCallAnalyticsJobCommand = exports.de_DeleteCallAnalyticsCategoryCommand = exports.de_CreateVocabularyFilterCommand = exports.de_CreateVocabularyCommand = exports.de_CreateMedicalVocabularyCommand = exports.de_CreateLanguageModelCommand = exports.de_CreateCallAnalyticsCategoryCommand = exports.se_UpdateVocabularyFilterCommand = exports.se_UpdateVocabularyCommand = exports.se_UpdateMedicalVocabularyCommand = exports.se_UpdateCallAnalyticsCategoryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartTranscriptionJobCommand = exports.se_StartMedicalTranscriptionJobCommand = exports.se_StartMedicalScribeJobCommand = exports.se_StartCallAnalyticsJobCommand = exports.se_ListVocabularyFiltersCommand = exports.se_ListVocabulariesCommand = exports.se_ListTranscriptionJobsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMedicalVocabulariesCommand = exports.se_ListMedicalTranscriptionJobsCommand = exports.se_ListMedicalScribeJobsCommand = exports.se_ListLanguageModelsCommand = exports.se_ListCallAnalyticsJobsCommand = exports.se_ListCallAnalyticsCategoriesCommand = exports.se_GetVocabularyFilterCommand = exports.se_GetVocabularyCommand = exports.se_GetTranscriptionJobCommand = exports.se_GetMedicalVocabularyCommand = exports.se_GetMedicalTranscriptionJobCommand = exports.se_GetMedicalScribeJobCommand = exports.se_GetCallAnalyticsJobCommand = exports.se_GetCallAnalyticsCategoryCommand = exports.se_DescribeLanguageModelCommand = exports.se_DeleteVocabularyFilterCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteTranscriptionJobCommand = exports.se_DeleteMedicalVocabularyCommand = exports.se_DeleteMedicalTranscriptionJobCommand = exports.se_DeleteMedicalScribeJobCommand = exports.se_DeleteLanguageModelCommand = exports.se_DeleteCallAnalyticsJobCommand = exports.se_DeleteCallAnalyticsCategoryCommand = exports.se_CreateVocabularyFilterCommand = exports.se_CreateVocabularyCommand = exports.se_CreateMedicalVocabularyCommand = exports.se_CreateLanguageModelCommand = exports.se_CreateCallAnalyticsCategoryCommand = void 0;
|
|
4
|
-
exports.de_UpdateVocabularyFilterCommand = exports.de_UpdateVocabularyCommand = exports.de_UpdateMedicalVocabularyCommand = exports.de_UpdateCallAnalyticsCategoryCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartTranscriptionJobCommand = exports.de_StartMedicalTranscriptionJobCommand = exports.de_StartMedicalScribeJobCommand = exports.de_StartCallAnalyticsJobCommand = exports.de_ListVocabularyFiltersCommand = exports.de_ListVocabulariesCommand = exports.de_ListTranscriptionJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMedicalVocabulariesCommand = exports.de_ListMedicalTranscriptionJobsCommand = exports.de_ListMedicalScribeJobsCommand = exports.de_ListLanguageModelsCommand = exports.de_ListCallAnalyticsJobsCommand = exports.de_ListCallAnalyticsCategoriesCommand = exports.de_GetVocabularyFilterCommand = exports.de_GetVocabularyCommand = exports.de_GetTranscriptionJobCommand = exports.de_GetMedicalVocabularyCommand = exports.de_GetMedicalTranscriptionJobCommand = exports.de_GetMedicalScribeJobCommand = exports.de_GetCallAnalyticsJobCommand = exports.de_GetCallAnalyticsCategoryCommand = exports.de_DescribeLanguageModelCommand = exports.de_DeleteVocabularyFilterCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteTranscriptionJobCommand = exports.de_DeleteMedicalVocabularyCommand = exports.de_DeleteMedicalTranscriptionJobCommand = exports.de_DeleteMedicalScribeJobCommand = exports.de_DeleteLanguageModelCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const TranscribeServiceException_1 = require("../models/TranscribeServiceException");
|
|
9
|
-
const se_CreateCallAnalyticsCategoryCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("CreateCallAnalyticsCategory");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_CreateCallAnalyticsCategoryCommand = se_CreateCallAnalyticsCategoryCommand;
|
|
16
|
-
const se_CreateLanguageModelCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CreateLanguageModel");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CreateLanguageModelCommand = se_CreateLanguageModelCommand;
|
|
23
|
-
const se_CreateMedicalVocabularyCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CreateMedicalVocabulary");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateMedicalVocabularyCommand = se_CreateMedicalVocabularyCommand;
|
|
30
|
-
const se_CreateVocabularyCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateVocabulary");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_CreateVocabularyCommand = se_CreateVocabularyCommand;
|
|
37
|
-
const se_CreateVocabularyFilterCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateVocabularyFilter");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateVocabularyFilterCommand = se_CreateVocabularyFilterCommand;
|
|
44
|
-
const se_DeleteCallAnalyticsCategoryCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("DeleteCallAnalyticsCategory");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_DeleteCallAnalyticsCategoryCommand = se_DeleteCallAnalyticsCategoryCommand;
|
|
51
|
-
const se_DeleteCallAnalyticsJobCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("DeleteCallAnalyticsJob");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_DeleteCallAnalyticsJobCommand = se_DeleteCallAnalyticsJobCommand;
|
|
58
|
-
const se_DeleteLanguageModelCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("DeleteLanguageModel");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_DeleteLanguageModelCommand = se_DeleteLanguageModelCommand;
|
|
65
|
-
const se_DeleteMedicalScribeJobCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("DeleteMedicalScribeJob");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_DeleteMedicalScribeJobCommand = se_DeleteMedicalScribeJobCommand;
|
|
72
|
-
const se_DeleteMedicalTranscriptionJobCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteMedicalTranscriptionJob");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_DeleteMedicalTranscriptionJobCommand = se_DeleteMedicalTranscriptionJobCommand;
|
|
79
|
-
const se_DeleteMedicalVocabularyCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DeleteMedicalVocabulary");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DeleteMedicalVocabularyCommand = se_DeleteMedicalVocabularyCommand;
|
|
86
|
-
const se_DeleteTranscriptionJobCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DeleteTranscriptionJob");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_DeleteTranscriptionJobCommand = se_DeleteTranscriptionJobCommand;
|
|
93
|
-
const se_DeleteVocabularyCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DeleteVocabulary");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DeleteVocabularyCommand = se_DeleteVocabularyCommand;
|
|
100
|
-
const se_DeleteVocabularyFilterCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DeleteVocabularyFilter");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_DeleteVocabularyFilterCommand = se_DeleteVocabularyFilterCommand;
|
|
107
|
-
const se_DescribeLanguageModelCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("DescribeLanguageModel");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_DescribeLanguageModelCommand = se_DescribeLanguageModelCommand;
|
|
114
|
-
const se_GetCallAnalyticsCategoryCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("GetCallAnalyticsCategory");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_GetCallAnalyticsCategoryCommand = se_GetCallAnalyticsCategoryCommand;
|
|
121
|
-
const se_GetCallAnalyticsJobCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("GetCallAnalyticsJob");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_GetCallAnalyticsJobCommand = se_GetCallAnalyticsJobCommand;
|
|
128
|
-
const se_GetMedicalScribeJobCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("GetMedicalScribeJob");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_GetMedicalScribeJobCommand = se_GetMedicalScribeJobCommand;
|
|
135
|
-
const se_GetMedicalTranscriptionJobCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("GetMedicalTranscriptionJob");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_GetMedicalTranscriptionJobCommand = se_GetMedicalTranscriptionJobCommand;
|
|
142
|
-
const se_GetMedicalVocabularyCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("GetMedicalVocabulary");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_GetMedicalVocabularyCommand = se_GetMedicalVocabularyCommand;
|
|
149
|
-
const se_GetTranscriptionJobCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("GetTranscriptionJob");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_GetTranscriptionJobCommand = se_GetTranscriptionJobCommand;
|
|
156
|
-
const se_GetVocabularyCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("GetVocabulary");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_GetVocabularyCommand = se_GetVocabularyCommand;
|
|
163
|
-
const se_GetVocabularyFilterCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("GetVocabularyFilter");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_GetVocabularyFilterCommand = se_GetVocabularyFilterCommand;
|
|
170
|
-
const se_ListCallAnalyticsCategoriesCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("ListCallAnalyticsCategories");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_ListCallAnalyticsCategoriesCommand = se_ListCallAnalyticsCategoriesCommand;
|
|
177
|
-
const se_ListCallAnalyticsJobsCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("ListCallAnalyticsJobs");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_ListCallAnalyticsJobsCommand = se_ListCallAnalyticsJobsCommand;
|
|
184
|
-
const se_ListLanguageModelsCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("ListLanguageModels");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_ListLanguageModelsCommand = se_ListLanguageModelsCommand;
|
|
191
|
-
const se_ListMedicalScribeJobsCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("ListMedicalScribeJobs");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_ListMedicalScribeJobsCommand = se_ListMedicalScribeJobsCommand;
|
|
198
|
-
const se_ListMedicalTranscriptionJobsCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListMedicalTranscriptionJobs");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListMedicalTranscriptionJobsCommand = se_ListMedicalTranscriptionJobsCommand;
|
|
205
|
-
const se_ListMedicalVocabulariesCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListMedicalVocabularies");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListMedicalVocabulariesCommand = se_ListMedicalVocabulariesCommand;
|
|
212
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
219
|
-
const se_ListTranscriptionJobsCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("ListTranscriptionJobs");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_ListTranscriptionJobsCommand = se_ListTranscriptionJobsCommand;
|
|
226
|
-
const se_ListVocabulariesCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("ListVocabularies");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_ListVocabulariesCommand = se_ListVocabulariesCommand;
|
|
233
|
-
const se_ListVocabularyFiltersCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("ListVocabularyFilters");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_ListVocabularyFiltersCommand = se_ListVocabularyFiltersCommand;
|
|
240
|
-
const se_StartCallAnalyticsJobCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("StartCallAnalyticsJob");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
exports.se_StartCallAnalyticsJobCommand = se_StartCallAnalyticsJobCommand;
|
|
247
|
-
const se_StartMedicalScribeJobCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("StartMedicalScribeJob");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
exports.se_StartMedicalScribeJobCommand = se_StartMedicalScribeJobCommand;
|
|
254
|
-
const se_StartMedicalTranscriptionJobCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("StartMedicalTranscriptionJob");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
exports.se_StartMedicalTranscriptionJobCommand = se_StartMedicalTranscriptionJobCommand;
|
|
261
|
-
const se_StartTranscriptionJobCommand = async (input, context) => {
|
|
262
|
-
const headers = sharedHeaders("StartTranscriptionJob");
|
|
263
|
-
let body;
|
|
264
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
265
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
-
};
|
|
267
|
-
exports.se_StartTranscriptionJobCommand = se_StartTranscriptionJobCommand;
|
|
268
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
269
|
-
const headers = sharedHeaders("TagResource");
|
|
270
|
-
let body;
|
|
271
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
|
-
};
|
|
274
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
275
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
276
|
-
const headers = sharedHeaders("UntagResource");
|
|
277
|
-
let body;
|
|
278
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
279
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
-
};
|
|
281
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
282
|
-
const se_UpdateCallAnalyticsCategoryCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("UpdateCallAnalyticsCategory");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
exports.se_UpdateCallAnalyticsCategoryCommand = se_UpdateCallAnalyticsCategoryCommand;
|
|
289
|
-
const se_UpdateMedicalVocabularyCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("UpdateMedicalVocabulary");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
exports.se_UpdateMedicalVocabularyCommand = se_UpdateMedicalVocabularyCommand;
|
|
296
|
-
const se_UpdateVocabularyCommand = async (input, context) => {
|
|
297
|
-
const headers = sharedHeaders("UpdateVocabulary");
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
300
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
-
};
|
|
302
|
-
exports.se_UpdateVocabularyCommand = se_UpdateVocabularyCommand;
|
|
303
|
-
const se_UpdateVocabularyFilterCommand = async (input, context) => {
|
|
304
|
-
const headers = sharedHeaders("UpdateVocabularyFilter");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
-
};
|
|
309
|
-
exports.se_UpdateVocabularyFilterCommand = se_UpdateVocabularyFilterCommand;
|
|
310
|
-
const de_CreateCallAnalyticsCategoryCommand = async (output, context) => {
|
|
311
|
-
if (output.statusCode >= 300) {
|
|
312
|
-
return de_CreateCallAnalyticsCategoryCommandError(output, context);
|
|
313
|
-
}
|
|
314
|
-
const data = await parseBody(output.body, context);
|
|
315
|
-
let contents = {};
|
|
316
|
-
contents = de_CreateCallAnalyticsCategoryResponse(data, context);
|
|
317
|
-
const response = {
|
|
318
|
-
$metadata: deserializeMetadata(output),
|
|
319
|
-
...contents,
|
|
320
|
-
};
|
|
321
|
-
return response;
|
|
322
|
-
};
|
|
323
|
-
exports.de_CreateCallAnalyticsCategoryCommand = de_CreateCallAnalyticsCategoryCommand;
|
|
324
|
-
const de_CreateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
325
|
-
const parsedOutput = {
|
|
326
|
-
...output,
|
|
327
|
-
body: await parseErrorBody(output.body, context),
|
|
328
|
-
};
|
|
329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
-
switch (errorCode) {
|
|
331
|
-
case "BadRequestException":
|
|
332
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
333
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
334
|
-
case "ConflictException":
|
|
335
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
336
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
337
|
-
case "InternalFailureException":
|
|
338
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
339
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
340
|
-
case "LimitExceededException":
|
|
341
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
342
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
343
|
-
default:
|
|
344
|
-
const parsedBody = parsedOutput.body;
|
|
345
|
-
return throwDefaultError({
|
|
346
|
-
output,
|
|
347
|
-
parsedBody,
|
|
348
|
-
errorCode,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
const de_CreateLanguageModelCommand = async (output, context) => {
|
|
353
|
-
if (output.statusCode >= 300) {
|
|
354
|
-
return de_CreateLanguageModelCommandError(output, context);
|
|
355
|
-
}
|
|
356
|
-
const data = await parseBody(output.body, context);
|
|
357
|
-
let contents = {};
|
|
358
|
-
contents = (0, smithy_client_1._json)(data);
|
|
359
|
-
const response = {
|
|
360
|
-
$metadata: deserializeMetadata(output),
|
|
361
|
-
...contents,
|
|
362
|
-
};
|
|
363
|
-
return response;
|
|
364
|
-
};
|
|
365
|
-
exports.de_CreateLanguageModelCommand = de_CreateLanguageModelCommand;
|
|
366
|
-
const de_CreateLanguageModelCommandError = async (output, context) => {
|
|
367
|
-
const parsedOutput = {
|
|
368
|
-
...output,
|
|
369
|
-
body: await parseErrorBody(output.body, context),
|
|
370
|
-
};
|
|
371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
-
switch (errorCode) {
|
|
373
|
-
case "BadRequestException":
|
|
374
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
375
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
376
|
-
case "ConflictException":
|
|
377
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
379
|
-
case "InternalFailureException":
|
|
380
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
381
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
382
|
-
case "LimitExceededException":
|
|
383
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
384
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
385
|
-
default:
|
|
386
|
-
const parsedBody = parsedOutput.body;
|
|
387
|
-
return throwDefaultError({
|
|
388
|
-
output,
|
|
389
|
-
parsedBody,
|
|
390
|
-
errorCode,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
const de_CreateMedicalVocabularyCommand = async (output, context) => {
|
|
395
|
-
if (output.statusCode >= 300) {
|
|
396
|
-
return de_CreateMedicalVocabularyCommandError(output, context);
|
|
397
|
-
}
|
|
398
|
-
const data = await parseBody(output.body, context);
|
|
399
|
-
let contents = {};
|
|
400
|
-
contents = de_CreateMedicalVocabularyResponse(data, context);
|
|
401
|
-
const response = {
|
|
402
|
-
$metadata: deserializeMetadata(output),
|
|
403
|
-
...contents,
|
|
404
|
-
};
|
|
405
|
-
return response;
|
|
406
|
-
};
|
|
407
|
-
exports.de_CreateMedicalVocabularyCommand = de_CreateMedicalVocabularyCommand;
|
|
408
|
-
const de_CreateMedicalVocabularyCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "BadRequestException":
|
|
416
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
417
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ConflictException":
|
|
419
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
420
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
421
|
-
case "InternalFailureException":
|
|
422
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
423
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
424
|
-
case "LimitExceededException":
|
|
425
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
426
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
const de_CreateVocabularyCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode >= 300) {
|
|
438
|
-
return de_CreateVocabularyCommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const data = await parseBody(output.body, context);
|
|
441
|
-
let contents = {};
|
|
442
|
-
contents = de_CreateVocabularyResponse(data, context);
|
|
443
|
-
const response = {
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
...contents,
|
|
446
|
-
};
|
|
447
|
-
return response;
|
|
448
|
-
};
|
|
449
|
-
exports.de_CreateVocabularyCommand = de_CreateVocabularyCommand;
|
|
450
|
-
const de_CreateVocabularyCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "BadRequestException":
|
|
458
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
459
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ConflictException":
|
|
461
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
462
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
463
|
-
case "InternalFailureException":
|
|
464
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
465
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
466
|
-
case "LimitExceededException":
|
|
467
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
468
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
const de_CreateVocabularyFilterCommand = async (output, context) => {
|
|
479
|
-
if (output.statusCode >= 300) {
|
|
480
|
-
return de_CreateVocabularyFilterCommandError(output, context);
|
|
481
|
-
}
|
|
482
|
-
const data = await parseBody(output.body, context);
|
|
483
|
-
let contents = {};
|
|
484
|
-
contents = de_CreateVocabularyFilterResponse(data, context);
|
|
485
|
-
const response = {
|
|
486
|
-
$metadata: deserializeMetadata(output),
|
|
487
|
-
...contents,
|
|
488
|
-
};
|
|
489
|
-
return response;
|
|
490
|
-
};
|
|
491
|
-
exports.de_CreateVocabularyFilterCommand = de_CreateVocabularyFilterCommand;
|
|
492
|
-
const de_CreateVocabularyFilterCommandError = async (output, context) => {
|
|
493
|
-
const parsedOutput = {
|
|
494
|
-
...output,
|
|
495
|
-
body: await parseErrorBody(output.body, context),
|
|
496
|
-
};
|
|
497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "BadRequestException":
|
|
500
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
501
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
502
|
-
case "ConflictException":
|
|
503
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
504
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
|
-
case "InternalFailureException":
|
|
506
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
507
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
508
|
-
case "LimitExceededException":
|
|
509
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
510
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
511
|
-
default:
|
|
512
|
-
const parsedBody = parsedOutput.body;
|
|
513
|
-
return throwDefaultError({
|
|
514
|
-
output,
|
|
515
|
-
parsedBody,
|
|
516
|
-
errorCode,
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
const de_DeleteCallAnalyticsCategoryCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode >= 300) {
|
|
522
|
-
return de_DeleteCallAnalyticsCategoryCommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const data = await parseBody(output.body, context);
|
|
525
|
-
let contents = {};
|
|
526
|
-
contents = (0, smithy_client_1._json)(data);
|
|
527
|
-
const response = {
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
...contents,
|
|
530
|
-
};
|
|
531
|
-
return response;
|
|
532
|
-
};
|
|
533
|
-
exports.de_DeleteCallAnalyticsCategoryCommand = de_DeleteCallAnalyticsCategoryCommand;
|
|
534
|
-
const de_DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "BadRequestException":
|
|
542
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
543
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InternalFailureException":
|
|
545
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
546
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
547
|
-
case "LimitExceededException":
|
|
548
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
549
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
550
|
-
case "NotFoundException":
|
|
551
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
552
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
553
|
-
default:
|
|
554
|
-
const parsedBody = parsedOutput.body;
|
|
555
|
-
return throwDefaultError({
|
|
556
|
-
output,
|
|
557
|
-
parsedBody,
|
|
558
|
-
errorCode,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
const de_DeleteCallAnalyticsJobCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_DeleteCallAnalyticsJobCommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await parseBody(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = (0, smithy_client_1._json)(data);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents,
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
};
|
|
575
|
-
exports.de_DeleteCallAnalyticsJobCommand = de_DeleteCallAnalyticsJobCommand;
|
|
576
|
-
const de_DeleteCallAnalyticsJobCommandError = async (output, context) => {
|
|
577
|
-
const parsedOutput = {
|
|
578
|
-
...output,
|
|
579
|
-
body: await parseErrorBody(output.body, context),
|
|
580
|
-
};
|
|
581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
|
-
switch (errorCode) {
|
|
583
|
-
case "BadRequestException":
|
|
584
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
585
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
586
|
-
case "InternalFailureException":
|
|
587
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
588
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
589
|
-
case "LimitExceededException":
|
|
590
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
591
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
const de_DeleteLanguageModelCommand = async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_DeleteLanguageModelCommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
};
|
|
609
|
-
return response;
|
|
610
|
-
};
|
|
611
|
-
exports.de_DeleteLanguageModelCommand = de_DeleteLanguageModelCommand;
|
|
612
|
-
const de_DeleteLanguageModelCommandError = async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "BadRequestException":
|
|
620
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
621
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalFailureException":
|
|
623
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
624
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
625
|
-
case "LimitExceededException":
|
|
626
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
627
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
628
|
-
default:
|
|
629
|
-
const parsedBody = parsedOutput.body;
|
|
630
|
-
return throwDefaultError({
|
|
631
|
-
output,
|
|
632
|
-
parsedBody,
|
|
633
|
-
errorCode,
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
|
-
const de_DeleteMedicalScribeJobCommand = async (output, context) => {
|
|
638
|
-
if (output.statusCode >= 300) {
|
|
639
|
-
return de_DeleteMedicalScribeJobCommandError(output, context);
|
|
640
|
-
}
|
|
641
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
};
|
|
645
|
-
return response;
|
|
646
|
-
};
|
|
647
|
-
exports.de_DeleteMedicalScribeJobCommand = de_DeleteMedicalScribeJobCommand;
|
|
648
|
-
const de_DeleteMedicalScribeJobCommandError = async (output, context) => {
|
|
649
|
-
const parsedOutput = {
|
|
650
|
-
...output,
|
|
651
|
-
body: await parseErrorBody(output.body, context),
|
|
652
|
-
};
|
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
-
switch (errorCode) {
|
|
655
|
-
case "BadRequestException":
|
|
656
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
657
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
658
|
-
case "InternalFailureException":
|
|
659
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
660
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
661
|
-
case "LimitExceededException":
|
|
662
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
663
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
664
|
-
default:
|
|
665
|
-
const parsedBody = parsedOutput.body;
|
|
666
|
-
return throwDefaultError({
|
|
667
|
-
output,
|
|
668
|
-
parsedBody,
|
|
669
|
-
errorCode,
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
const de_DeleteMedicalTranscriptionJobCommand = async (output, context) => {
|
|
674
|
-
if (output.statusCode >= 300) {
|
|
675
|
-
return de_DeleteMedicalTranscriptionJobCommandError(output, context);
|
|
676
|
-
}
|
|
677
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
678
|
-
const response = {
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
};
|
|
681
|
-
return response;
|
|
682
|
-
};
|
|
683
|
-
exports.de_DeleteMedicalTranscriptionJobCommand = de_DeleteMedicalTranscriptionJobCommand;
|
|
684
|
-
const de_DeleteMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "BadRequestException":
|
|
692
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
693
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
694
|
-
case "InternalFailureException":
|
|
695
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
696
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
697
|
-
case "LimitExceededException":
|
|
698
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
699
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
const de_DeleteMedicalVocabularyCommand = async (output, context) => {
|
|
710
|
-
if (output.statusCode >= 300) {
|
|
711
|
-
return de_DeleteMedicalVocabularyCommandError(output, context);
|
|
712
|
-
}
|
|
713
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
714
|
-
const response = {
|
|
715
|
-
$metadata: deserializeMetadata(output),
|
|
716
|
-
};
|
|
717
|
-
return response;
|
|
718
|
-
};
|
|
719
|
-
exports.de_DeleteMedicalVocabularyCommand = de_DeleteMedicalVocabularyCommand;
|
|
720
|
-
const de_DeleteMedicalVocabularyCommandError = async (output, context) => {
|
|
721
|
-
const parsedOutput = {
|
|
722
|
-
...output,
|
|
723
|
-
body: await parseErrorBody(output.body, context),
|
|
724
|
-
};
|
|
725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
|
-
switch (errorCode) {
|
|
727
|
-
case "BadRequestException":
|
|
728
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
729
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InternalFailureException":
|
|
731
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
732
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
733
|
-
case "LimitExceededException":
|
|
734
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
735
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
736
|
-
case "NotFoundException":
|
|
737
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
738
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
const de_DeleteTranscriptionJobCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode >= 300) {
|
|
750
|
-
return de_DeleteTranscriptionJobCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
753
|
-
const response = {
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
return response;
|
|
757
|
-
};
|
|
758
|
-
exports.de_DeleteTranscriptionJobCommand = de_DeleteTranscriptionJobCommand;
|
|
759
|
-
const de_DeleteTranscriptionJobCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "BadRequestException":
|
|
767
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
768
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
769
|
-
case "InternalFailureException":
|
|
770
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
771
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
772
|
-
case "LimitExceededException":
|
|
773
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
774
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
const de_DeleteVocabularyCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode >= 300) {
|
|
786
|
-
return de_DeleteVocabularyCommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
789
|
-
const response = {
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
};
|
|
792
|
-
return response;
|
|
793
|
-
};
|
|
794
|
-
exports.de_DeleteVocabularyCommand = de_DeleteVocabularyCommand;
|
|
795
|
-
const de_DeleteVocabularyCommandError = async (output, context) => {
|
|
796
|
-
const parsedOutput = {
|
|
797
|
-
...output,
|
|
798
|
-
body: await parseErrorBody(output.body, context),
|
|
799
|
-
};
|
|
800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
-
switch (errorCode) {
|
|
802
|
-
case "BadRequestException":
|
|
803
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
804
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
805
|
-
case "InternalFailureException":
|
|
806
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
807
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
808
|
-
case "LimitExceededException":
|
|
809
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
810
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
811
|
-
case "NotFoundException":
|
|
812
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
813
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
814
|
-
default:
|
|
815
|
-
const parsedBody = parsedOutput.body;
|
|
816
|
-
return throwDefaultError({
|
|
817
|
-
output,
|
|
818
|
-
parsedBody,
|
|
819
|
-
errorCode,
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
const de_DeleteVocabularyFilterCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode >= 300) {
|
|
825
|
-
return de_DeleteVocabularyFilterCommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
828
|
-
const response = {
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
};
|
|
831
|
-
return response;
|
|
832
|
-
};
|
|
833
|
-
exports.de_DeleteVocabularyFilterCommand = de_DeleteVocabularyFilterCommand;
|
|
834
|
-
const de_DeleteVocabularyFilterCommandError = async (output, context) => {
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "BadRequestException":
|
|
842
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
843
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
844
|
-
case "InternalFailureException":
|
|
845
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
846
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
847
|
-
case "LimitExceededException":
|
|
848
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
849
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
850
|
-
case "NotFoundException":
|
|
851
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
852
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
853
|
-
default:
|
|
854
|
-
const parsedBody = parsedOutput.body;
|
|
855
|
-
return throwDefaultError({
|
|
856
|
-
output,
|
|
857
|
-
parsedBody,
|
|
858
|
-
errorCode,
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
const de_DescribeLanguageModelCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode >= 300) {
|
|
864
|
-
return de_DescribeLanguageModelCommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const data = await parseBody(output.body, context);
|
|
867
|
-
let contents = {};
|
|
868
|
-
contents = de_DescribeLanguageModelResponse(data, context);
|
|
869
|
-
const response = {
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
...contents,
|
|
872
|
-
};
|
|
873
|
-
return response;
|
|
874
|
-
};
|
|
875
|
-
exports.de_DescribeLanguageModelCommand = de_DescribeLanguageModelCommand;
|
|
876
|
-
const de_DescribeLanguageModelCommandError = async (output, context) => {
|
|
877
|
-
const parsedOutput = {
|
|
878
|
-
...output,
|
|
879
|
-
body: await parseErrorBody(output.body, context),
|
|
880
|
-
};
|
|
881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
-
switch (errorCode) {
|
|
883
|
-
case "BadRequestException":
|
|
884
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
885
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
886
|
-
case "InternalFailureException":
|
|
887
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
888
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
889
|
-
case "LimitExceededException":
|
|
890
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
891
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
892
|
-
case "NotFoundException":
|
|
893
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
894
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
const de_GetCallAnalyticsCategoryCommand = async (output, context) => {
|
|
905
|
-
if (output.statusCode >= 300) {
|
|
906
|
-
return de_GetCallAnalyticsCategoryCommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const data = await parseBody(output.body, context);
|
|
909
|
-
let contents = {};
|
|
910
|
-
contents = de_GetCallAnalyticsCategoryResponse(data, context);
|
|
911
|
-
const response = {
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
...contents,
|
|
914
|
-
};
|
|
915
|
-
return response;
|
|
916
|
-
};
|
|
917
|
-
exports.de_GetCallAnalyticsCategoryCommand = de_GetCallAnalyticsCategoryCommand;
|
|
918
|
-
const de_GetCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context),
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "BadRequestException":
|
|
926
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
927
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InternalFailureException":
|
|
929
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
930
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
931
|
-
case "LimitExceededException":
|
|
932
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
933
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
934
|
-
case "NotFoundException":
|
|
935
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
936
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
|
-
const de_GetCallAnalyticsJobCommand = async (output, context) => {
|
|
947
|
-
if (output.statusCode >= 300) {
|
|
948
|
-
return de_GetCallAnalyticsJobCommandError(output, context);
|
|
949
|
-
}
|
|
950
|
-
const data = await parseBody(output.body, context);
|
|
951
|
-
let contents = {};
|
|
952
|
-
contents = de_GetCallAnalyticsJobResponse(data, context);
|
|
953
|
-
const response = {
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
...contents,
|
|
956
|
-
};
|
|
957
|
-
return response;
|
|
958
|
-
};
|
|
959
|
-
exports.de_GetCallAnalyticsJobCommand = de_GetCallAnalyticsJobCommand;
|
|
960
|
-
const de_GetCallAnalyticsJobCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "BadRequestException":
|
|
968
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
969
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalFailureException":
|
|
971
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
972
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
973
|
-
case "LimitExceededException":
|
|
974
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
975
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
976
|
-
case "NotFoundException":
|
|
977
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
978
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
const de_GetMedicalScribeJobCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_GetMedicalScribeJobCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const data = await parseBody(output.body, context);
|
|
993
|
-
let contents = {};
|
|
994
|
-
contents = de_GetMedicalScribeJobResponse(data, context);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
...contents,
|
|
998
|
-
};
|
|
999
|
-
return response;
|
|
1000
|
-
};
|
|
1001
|
-
exports.de_GetMedicalScribeJobCommand = de_GetMedicalScribeJobCommand;
|
|
1002
|
-
const de_GetMedicalScribeJobCommandError = async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context),
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "BadRequestException":
|
|
1010
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1011
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InternalFailureException":
|
|
1013
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1014
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "LimitExceededException":
|
|
1016
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1017
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "NotFoundException":
|
|
1019
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1020
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode,
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
const de_GetMedicalTranscriptionJobCommand = async (output, context) => {
|
|
1031
|
-
if (output.statusCode >= 300) {
|
|
1032
|
-
return de_GetMedicalTranscriptionJobCommandError(output, context);
|
|
1033
|
-
}
|
|
1034
|
-
const data = await parseBody(output.body, context);
|
|
1035
|
-
let contents = {};
|
|
1036
|
-
contents = de_GetMedicalTranscriptionJobResponse(data, context);
|
|
1037
|
-
const response = {
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
...contents,
|
|
1040
|
-
};
|
|
1041
|
-
return response;
|
|
1042
|
-
};
|
|
1043
|
-
exports.de_GetMedicalTranscriptionJobCommand = de_GetMedicalTranscriptionJobCommand;
|
|
1044
|
-
const de_GetMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context),
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
switch (errorCode) {
|
|
1051
|
-
case "BadRequestException":
|
|
1052
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1053
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "InternalFailureException":
|
|
1055
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1056
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "LimitExceededException":
|
|
1058
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1059
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "NotFoundException":
|
|
1061
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1062
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
default:
|
|
1064
|
-
const parsedBody = parsedOutput.body;
|
|
1065
|
-
return throwDefaultError({
|
|
1066
|
-
output,
|
|
1067
|
-
parsedBody,
|
|
1068
|
-
errorCode,
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
const de_GetMedicalVocabularyCommand = async (output, context) => {
|
|
1073
|
-
if (output.statusCode >= 300) {
|
|
1074
|
-
return de_GetMedicalVocabularyCommandError(output, context);
|
|
1075
|
-
}
|
|
1076
|
-
const data = await parseBody(output.body, context);
|
|
1077
|
-
let contents = {};
|
|
1078
|
-
contents = de_GetMedicalVocabularyResponse(data, context);
|
|
1079
|
-
const response = {
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
...contents,
|
|
1082
|
-
};
|
|
1083
|
-
return response;
|
|
1084
|
-
};
|
|
1085
|
-
exports.de_GetMedicalVocabularyCommand = de_GetMedicalVocabularyCommand;
|
|
1086
|
-
const de_GetMedicalVocabularyCommandError = async (output, context) => {
|
|
1087
|
-
const parsedOutput = {
|
|
1088
|
-
...output,
|
|
1089
|
-
body: await parseErrorBody(output.body, context),
|
|
1090
|
-
};
|
|
1091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
-
switch (errorCode) {
|
|
1093
|
-
case "BadRequestException":
|
|
1094
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1095
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "InternalFailureException":
|
|
1097
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1098
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "LimitExceededException":
|
|
1100
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1101
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "NotFoundException":
|
|
1103
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1104
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
const de_GetTranscriptionJobCommand = async (output, context) => {
|
|
1115
|
-
if (output.statusCode >= 300) {
|
|
1116
|
-
return de_GetTranscriptionJobCommandError(output, context);
|
|
1117
|
-
}
|
|
1118
|
-
const data = await parseBody(output.body, context);
|
|
1119
|
-
let contents = {};
|
|
1120
|
-
contents = de_GetTranscriptionJobResponse(data, context);
|
|
1121
|
-
const response = {
|
|
1122
|
-
$metadata: deserializeMetadata(output),
|
|
1123
|
-
...contents,
|
|
1124
|
-
};
|
|
1125
|
-
return response;
|
|
1126
|
-
};
|
|
1127
|
-
exports.de_GetTranscriptionJobCommand = de_GetTranscriptionJobCommand;
|
|
1128
|
-
const de_GetTranscriptionJobCommandError = async (output, context) => {
|
|
1129
|
-
const parsedOutput = {
|
|
1130
|
-
...output,
|
|
1131
|
-
body: await parseErrorBody(output.body, context),
|
|
1132
|
-
};
|
|
1133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
|
-
switch (errorCode) {
|
|
1135
|
-
case "BadRequestException":
|
|
1136
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1137
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InternalFailureException":
|
|
1139
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1140
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "LimitExceededException":
|
|
1142
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1143
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "NotFoundException":
|
|
1145
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1146
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1147
|
-
default:
|
|
1148
|
-
const parsedBody = parsedOutput.body;
|
|
1149
|
-
return throwDefaultError({
|
|
1150
|
-
output,
|
|
1151
|
-
parsedBody,
|
|
1152
|
-
errorCode,
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
const de_GetVocabularyCommand = async (output, context) => {
|
|
1157
|
-
if (output.statusCode >= 300) {
|
|
1158
|
-
return de_GetVocabularyCommandError(output, context);
|
|
1159
|
-
}
|
|
1160
|
-
const data = await parseBody(output.body, context);
|
|
1161
|
-
let contents = {};
|
|
1162
|
-
contents = de_GetVocabularyResponse(data, context);
|
|
1163
|
-
const response = {
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
...contents,
|
|
1166
|
-
};
|
|
1167
|
-
return response;
|
|
1168
|
-
};
|
|
1169
|
-
exports.de_GetVocabularyCommand = de_GetVocabularyCommand;
|
|
1170
|
-
const de_GetVocabularyCommandError = async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context),
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "BadRequestException":
|
|
1178
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1179
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "InternalFailureException":
|
|
1181
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1182
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "LimitExceededException":
|
|
1184
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1185
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "NotFoundException":
|
|
1187
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1188
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1189
|
-
default:
|
|
1190
|
-
const parsedBody = parsedOutput.body;
|
|
1191
|
-
return throwDefaultError({
|
|
1192
|
-
output,
|
|
1193
|
-
parsedBody,
|
|
1194
|
-
errorCode,
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
|
-
const de_GetVocabularyFilterCommand = async (output, context) => {
|
|
1199
|
-
if (output.statusCode >= 300) {
|
|
1200
|
-
return de_GetVocabularyFilterCommandError(output, context);
|
|
1201
|
-
}
|
|
1202
|
-
const data = await parseBody(output.body, context);
|
|
1203
|
-
let contents = {};
|
|
1204
|
-
contents = de_GetVocabularyFilterResponse(data, context);
|
|
1205
|
-
const response = {
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
...contents,
|
|
1208
|
-
};
|
|
1209
|
-
return response;
|
|
1210
|
-
};
|
|
1211
|
-
exports.de_GetVocabularyFilterCommand = de_GetVocabularyFilterCommand;
|
|
1212
|
-
const de_GetVocabularyFilterCommandError = async (output, context) => {
|
|
1213
|
-
const parsedOutput = {
|
|
1214
|
-
...output,
|
|
1215
|
-
body: await parseErrorBody(output.body, context),
|
|
1216
|
-
};
|
|
1217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
|
-
switch (errorCode) {
|
|
1219
|
-
case "BadRequestException":
|
|
1220
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1221
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "InternalFailureException":
|
|
1223
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1224
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "LimitExceededException":
|
|
1226
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1227
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "NotFoundException":
|
|
1229
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1230
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
return throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
errorCode,
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
|
-
const de_ListCallAnalyticsCategoriesCommand = async (output, context) => {
|
|
1241
|
-
if (output.statusCode >= 300) {
|
|
1242
|
-
return de_ListCallAnalyticsCategoriesCommandError(output, context);
|
|
1243
|
-
}
|
|
1244
|
-
const data = await parseBody(output.body, context);
|
|
1245
|
-
let contents = {};
|
|
1246
|
-
contents = de_ListCallAnalyticsCategoriesResponse(data, context);
|
|
1247
|
-
const response = {
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
...contents,
|
|
1250
|
-
};
|
|
1251
|
-
return response;
|
|
1252
|
-
};
|
|
1253
|
-
exports.de_ListCallAnalyticsCategoriesCommand = de_ListCallAnalyticsCategoriesCommand;
|
|
1254
|
-
const de_ListCallAnalyticsCategoriesCommandError = async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context),
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "BadRequestException":
|
|
1262
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1263
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "InternalFailureException":
|
|
1265
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1266
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "LimitExceededException":
|
|
1268
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1269
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1270
|
-
default:
|
|
1271
|
-
const parsedBody = parsedOutput.body;
|
|
1272
|
-
return throwDefaultError({
|
|
1273
|
-
output,
|
|
1274
|
-
parsedBody,
|
|
1275
|
-
errorCode,
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
};
|
|
1279
|
-
const de_ListCallAnalyticsJobsCommand = async (output, context) => {
|
|
1280
|
-
if (output.statusCode >= 300) {
|
|
1281
|
-
return de_ListCallAnalyticsJobsCommandError(output, context);
|
|
1282
|
-
}
|
|
1283
|
-
const data = await parseBody(output.body, context);
|
|
1284
|
-
let contents = {};
|
|
1285
|
-
contents = de_ListCallAnalyticsJobsResponse(data, context);
|
|
1286
|
-
const response = {
|
|
1287
|
-
$metadata: deserializeMetadata(output),
|
|
1288
|
-
...contents,
|
|
1289
|
-
};
|
|
1290
|
-
return response;
|
|
1291
|
-
};
|
|
1292
|
-
exports.de_ListCallAnalyticsJobsCommand = de_ListCallAnalyticsJobsCommand;
|
|
1293
|
-
const de_ListCallAnalyticsJobsCommandError = async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context),
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "BadRequestException":
|
|
1301
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1302
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "InternalFailureException":
|
|
1304
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1305
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "LimitExceededException":
|
|
1307
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1308
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode,
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
const de_ListLanguageModelsCommand = async (output, context) => {
|
|
1319
|
-
if (output.statusCode >= 300) {
|
|
1320
|
-
return de_ListLanguageModelsCommandError(output, context);
|
|
1321
|
-
}
|
|
1322
|
-
const data = await parseBody(output.body, context);
|
|
1323
|
-
let contents = {};
|
|
1324
|
-
contents = de_ListLanguageModelsResponse(data, context);
|
|
1325
|
-
const response = {
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
...contents,
|
|
1328
|
-
};
|
|
1329
|
-
return response;
|
|
1330
|
-
};
|
|
1331
|
-
exports.de_ListLanguageModelsCommand = de_ListLanguageModelsCommand;
|
|
1332
|
-
const de_ListLanguageModelsCommandError = async (output, context) => {
|
|
1333
|
-
const parsedOutput = {
|
|
1334
|
-
...output,
|
|
1335
|
-
body: await parseErrorBody(output.body, context),
|
|
1336
|
-
};
|
|
1337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
-
switch (errorCode) {
|
|
1339
|
-
case "BadRequestException":
|
|
1340
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1341
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "InternalFailureException":
|
|
1343
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1344
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "LimitExceededException":
|
|
1346
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1347
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode,
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
};
|
|
1357
|
-
const de_ListMedicalScribeJobsCommand = async (output, context) => {
|
|
1358
|
-
if (output.statusCode >= 300) {
|
|
1359
|
-
return de_ListMedicalScribeJobsCommandError(output, context);
|
|
1360
|
-
}
|
|
1361
|
-
const data = await parseBody(output.body, context);
|
|
1362
|
-
let contents = {};
|
|
1363
|
-
contents = de_ListMedicalScribeJobsResponse(data, context);
|
|
1364
|
-
const response = {
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
...contents,
|
|
1367
|
-
};
|
|
1368
|
-
return response;
|
|
1369
|
-
};
|
|
1370
|
-
exports.de_ListMedicalScribeJobsCommand = de_ListMedicalScribeJobsCommand;
|
|
1371
|
-
const de_ListMedicalScribeJobsCommandError = async (output, context) => {
|
|
1372
|
-
const parsedOutput = {
|
|
1373
|
-
...output,
|
|
1374
|
-
body: await parseErrorBody(output.body, context),
|
|
1375
|
-
};
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "BadRequestException":
|
|
1379
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1380
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "InternalFailureException":
|
|
1382
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1383
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "LimitExceededException":
|
|
1385
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1386
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode,
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
const de_ListMedicalTranscriptionJobsCommand = async (output, context) => {
|
|
1397
|
-
if (output.statusCode >= 300) {
|
|
1398
|
-
return de_ListMedicalTranscriptionJobsCommandError(output, context);
|
|
1399
|
-
}
|
|
1400
|
-
const data = await parseBody(output.body, context);
|
|
1401
|
-
let contents = {};
|
|
1402
|
-
contents = de_ListMedicalTranscriptionJobsResponse(data, context);
|
|
1403
|
-
const response = {
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
...contents,
|
|
1406
|
-
};
|
|
1407
|
-
return response;
|
|
1408
|
-
};
|
|
1409
|
-
exports.de_ListMedicalTranscriptionJobsCommand = de_ListMedicalTranscriptionJobsCommand;
|
|
1410
|
-
const de_ListMedicalTranscriptionJobsCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "BadRequestException":
|
|
1418
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1419
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "InternalFailureException":
|
|
1421
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1422
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "LimitExceededException":
|
|
1424
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1425
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode,
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
|
-
const de_ListMedicalVocabulariesCommand = async (output, context) => {
|
|
1436
|
-
if (output.statusCode >= 300) {
|
|
1437
|
-
return de_ListMedicalVocabulariesCommandError(output, context);
|
|
1438
|
-
}
|
|
1439
|
-
const data = await parseBody(output.body, context);
|
|
1440
|
-
let contents = {};
|
|
1441
|
-
contents = de_ListMedicalVocabulariesResponse(data, context);
|
|
1442
|
-
const response = {
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
...contents,
|
|
1445
|
-
};
|
|
1446
|
-
return response;
|
|
1447
|
-
};
|
|
1448
|
-
exports.de_ListMedicalVocabulariesCommand = de_ListMedicalVocabulariesCommand;
|
|
1449
|
-
const de_ListMedicalVocabulariesCommandError = async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context),
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "BadRequestException":
|
|
1457
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1458
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "InternalFailureException":
|
|
1460
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1461
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "LimitExceededException":
|
|
1463
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1464
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1465
|
-
default:
|
|
1466
|
-
const parsedBody = parsedOutput.body;
|
|
1467
|
-
return throwDefaultError({
|
|
1468
|
-
output,
|
|
1469
|
-
parsedBody,
|
|
1470
|
-
errorCode,
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1475
|
-
if (output.statusCode >= 300) {
|
|
1476
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const data = await parseBody(output.body, context);
|
|
1479
|
-
let contents = {};
|
|
1480
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1481
|
-
const response = {
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
...contents,
|
|
1484
|
-
};
|
|
1485
|
-
return response;
|
|
1486
|
-
};
|
|
1487
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1488
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1489
|
-
const parsedOutput = {
|
|
1490
|
-
...output,
|
|
1491
|
-
body: await parseErrorBody(output.body, context),
|
|
1492
|
-
};
|
|
1493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
-
switch (errorCode) {
|
|
1495
|
-
case "BadRequestException":
|
|
1496
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1497
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "InternalFailureException":
|
|
1499
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1500
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "LimitExceededException":
|
|
1502
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1503
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "NotFoundException":
|
|
1505
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1506
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode,
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
const de_ListTranscriptionJobsCommand = async (output, context) => {
|
|
1517
|
-
if (output.statusCode >= 300) {
|
|
1518
|
-
return de_ListTranscriptionJobsCommandError(output, context);
|
|
1519
|
-
}
|
|
1520
|
-
const data = await parseBody(output.body, context);
|
|
1521
|
-
let contents = {};
|
|
1522
|
-
contents = de_ListTranscriptionJobsResponse(data, context);
|
|
1523
|
-
const response = {
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
...contents,
|
|
1526
|
-
};
|
|
1527
|
-
return response;
|
|
1528
|
-
};
|
|
1529
|
-
exports.de_ListTranscriptionJobsCommand = de_ListTranscriptionJobsCommand;
|
|
1530
|
-
const de_ListTranscriptionJobsCommandError = async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context),
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "BadRequestException":
|
|
1538
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1539
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalFailureException":
|
|
1541
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1542
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "LimitExceededException":
|
|
1544
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1545
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
const de_ListVocabulariesCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode >= 300) {
|
|
1557
|
-
return de_ListVocabulariesCommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const data = await parseBody(output.body, context);
|
|
1560
|
-
let contents = {};
|
|
1561
|
-
contents = de_ListVocabulariesResponse(data, context);
|
|
1562
|
-
const response = {
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
...contents,
|
|
1565
|
-
};
|
|
1566
|
-
return response;
|
|
1567
|
-
};
|
|
1568
|
-
exports.de_ListVocabulariesCommand = de_ListVocabulariesCommand;
|
|
1569
|
-
const de_ListVocabulariesCommandError = async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context),
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "BadRequestException":
|
|
1577
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1578
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "InternalFailureException":
|
|
1580
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1581
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "LimitExceededException":
|
|
1583
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1584
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1585
|
-
default:
|
|
1586
|
-
const parsedBody = parsedOutput.body;
|
|
1587
|
-
return throwDefaultError({
|
|
1588
|
-
output,
|
|
1589
|
-
parsedBody,
|
|
1590
|
-
errorCode,
|
|
1591
|
-
});
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
const de_ListVocabularyFiltersCommand = async (output, context) => {
|
|
1595
|
-
if (output.statusCode >= 300) {
|
|
1596
|
-
return de_ListVocabularyFiltersCommandError(output, context);
|
|
1597
|
-
}
|
|
1598
|
-
const data = await parseBody(output.body, context);
|
|
1599
|
-
let contents = {};
|
|
1600
|
-
contents = de_ListVocabularyFiltersResponse(data, context);
|
|
1601
|
-
const response = {
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
...contents,
|
|
1604
|
-
};
|
|
1605
|
-
return response;
|
|
1606
|
-
};
|
|
1607
|
-
exports.de_ListVocabularyFiltersCommand = de_ListVocabularyFiltersCommand;
|
|
1608
|
-
const de_ListVocabularyFiltersCommandError = async (output, context) => {
|
|
1609
|
-
const parsedOutput = {
|
|
1610
|
-
...output,
|
|
1611
|
-
body: await parseErrorBody(output.body, context),
|
|
1612
|
-
};
|
|
1613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
|
-
switch (errorCode) {
|
|
1615
|
-
case "BadRequestException":
|
|
1616
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1617
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "InternalFailureException":
|
|
1619
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1620
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "LimitExceededException":
|
|
1622
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1623
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1624
|
-
default:
|
|
1625
|
-
const parsedBody = parsedOutput.body;
|
|
1626
|
-
return throwDefaultError({
|
|
1627
|
-
output,
|
|
1628
|
-
parsedBody,
|
|
1629
|
-
errorCode,
|
|
1630
|
-
});
|
|
1631
|
-
}
|
|
1632
|
-
};
|
|
1633
|
-
const de_StartCallAnalyticsJobCommand = async (output, context) => {
|
|
1634
|
-
if (output.statusCode >= 300) {
|
|
1635
|
-
return de_StartCallAnalyticsJobCommandError(output, context);
|
|
1636
|
-
}
|
|
1637
|
-
const data = await parseBody(output.body, context);
|
|
1638
|
-
let contents = {};
|
|
1639
|
-
contents = de_StartCallAnalyticsJobResponse(data, context);
|
|
1640
|
-
const response = {
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
...contents,
|
|
1643
|
-
};
|
|
1644
|
-
return response;
|
|
1645
|
-
};
|
|
1646
|
-
exports.de_StartCallAnalyticsJobCommand = de_StartCallAnalyticsJobCommand;
|
|
1647
|
-
const de_StartCallAnalyticsJobCommandError = async (output, context) => {
|
|
1648
|
-
const parsedOutput = {
|
|
1649
|
-
...output,
|
|
1650
|
-
body: await parseErrorBody(output.body, context),
|
|
1651
|
-
};
|
|
1652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
-
switch (errorCode) {
|
|
1654
|
-
case "BadRequestException":
|
|
1655
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1656
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ConflictException":
|
|
1658
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1659
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InternalFailureException":
|
|
1661
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1662
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "LimitExceededException":
|
|
1664
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1665
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1666
|
-
default:
|
|
1667
|
-
const parsedBody = parsedOutput.body;
|
|
1668
|
-
return throwDefaultError({
|
|
1669
|
-
output,
|
|
1670
|
-
parsedBody,
|
|
1671
|
-
errorCode,
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
};
|
|
1675
|
-
const de_StartMedicalScribeJobCommand = async (output, context) => {
|
|
1676
|
-
if (output.statusCode >= 300) {
|
|
1677
|
-
return de_StartMedicalScribeJobCommandError(output, context);
|
|
1678
|
-
}
|
|
1679
|
-
const data = await parseBody(output.body, context);
|
|
1680
|
-
let contents = {};
|
|
1681
|
-
contents = de_StartMedicalScribeJobResponse(data, context);
|
|
1682
|
-
const response = {
|
|
1683
|
-
$metadata: deserializeMetadata(output),
|
|
1684
|
-
...contents,
|
|
1685
|
-
};
|
|
1686
|
-
return response;
|
|
1687
|
-
};
|
|
1688
|
-
exports.de_StartMedicalScribeJobCommand = de_StartMedicalScribeJobCommand;
|
|
1689
|
-
const de_StartMedicalScribeJobCommandError = async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context),
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "BadRequestException":
|
|
1697
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1698
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ConflictException":
|
|
1700
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1701
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InternalFailureException":
|
|
1703
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1704
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "LimitExceededException":
|
|
1706
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1707
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1708
|
-
default:
|
|
1709
|
-
const parsedBody = parsedOutput.body;
|
|
1710
|
-
return throwDefaultError({
|
|
1711
|
-
output,
|
|
1712
|
-
parsedBody,
|
|
1713
|
-
errorCode,
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
};
|
|
1717
|
-
const de_StartMedicalTranscriptionJobCommand = async (output, context) => {
|
|
1718
|
-
if (output.statusCode >= 300) {
|
|
1719
|
-
return de_StartMedicalTranscriptionJobCommandError(output, context);
|
|
1720
|
-
}
|
|
1721
|
-
const data = await parseBody(output.body, context);
|
|
1722
|
-
let contents = {};
|
|
1723
|
-
contents = de_StartMedicalTranscriptionJobResponse(data, context);
|
|
1724
|
-
const response = {
|
|
1725
|
-
$metadata: deserializeMetadata(output),
|
|
1726
|
-
...contents,
|
|
1727
|
-
};
|
|
1728
|
-
return response;
|
|
1729
|
-
};
|
|
1730
|
-
exports.de_StartMedicalTranscriptionJobCommand = de_StartMedicalTranscriptionJobCommand;
|
|
1731
|
-
const de_StartMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
1732
|
-
const parsedOutput = {
|
|
1733
|
-
...output,
|
|
1734
|
-
body: await parseErrorBody(output.body, context),
|
|
1735
|
-
};
|
|
1736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
-
switch (errorCode) {
|
|
1738
|
-
case "BadRequestException":
|
|
1739
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1740
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ConflictException":
|
|
1742
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1743
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "InternalFailureException":
|
|
1745
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1746
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "LimitExceededException":
|
|
1748
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1749
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode,
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
};
|
|
1759
|
-
const de_StartTranscriptionJobCommand = async (output, context) => {
|
|
1760
|
-
if (output.statusCode >= 300) {
|
|
1761
|
-
return de_StartTranscriptionJobCommandError(output, context);
|
|
1762
|
-
}
|
|
1763
|
-
const data = await parseBody(output.body, context);
|
|
1764
|
-
let contents = {};
|
|
1765
|
-
contents = de_StartTranscriptionJobResponse(data, context);
|
|
1766
|
-
const response = {
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
...contents,
|
|
1769
|
-
};
|
|
1770
|
-
return response;
|
|
1771
|
-
};
|
|
1772
|
-
exports.de_StartTranscriptionJobCommand = de_StartTranscriptionJobCommand;
|
|
1773
|
-
const de_StartTranscriptionJobCommandError = async (output, context) => {
|
|
1774
|
-
const parsedOutput = {
|
|
1775
|
-
...output,
|
|
1776
|
-
body: await parseErrorBody(output.body, context),
|
|
1777
|
-
};
|
|
1778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
|
-
switch (errorCode) {
|
|
1780
|
-
case "BadRequestException":
|
|
1781
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1782
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "ConflictException":
|
|
1784
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1785
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "InternalFailureException":
|
|
1787
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1788
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "LimitExceededException":
|
|
1790
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1791
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1792
|
-
default:
|
|
1793
|
-
const parsedBody = parsedOutput.body;
|
|
1794
|
-
return throwDefaultError({
|
|
1795
|
-
output,
|
|
1796
|
-
parsedBody,
|
|
1797
|
-
errorCode,
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
};
|
|
1801
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1802
|
-
if (output.statusCode >= 300) {
|
|
1803
|
-
return de_TagResourceCommandError(output, context);
|
|
1804
|
-
}
|
|
1805
|
-
const data = await parseBody(output.body, context);
|
|
1806
|
-
let contents = {};
|
|
1807
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1808
|
-
const response = {
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
...contents,
|
|
1811
|
-
};
|
|
1812
|
-
return response;
|
|
1813
|
-
};
|
|
1814
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1815
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1816
|
-
const parsedOutput = {
|
|
1817
|
-
...output,
|
|
1818
|
-
body: await parseErrorBody(output.body, context),
|
|
1819
|
-
};
|
|
1820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
-
switch (errorCode) {
|
|
1822
|
-
case "BadRequestException":
|
|
1823
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1824
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ConflictException":
|
|
1826
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1827
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "InternalFailureException":
|
|
1829
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1830
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "LimitExceededException":
|
|
1832
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1833
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "NotFoundException":
|
|
1835
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1836
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
default:
|
|
1838
|
-
const parsedBody = parsedOutput.body;
|
|
1839
|
-
return throwDefaultError({
|
|
1840
|
-
output,
|
|
1841
|
-
parsedBody,
|
|
1842
|
-
errorCode,
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1846
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1847
|
-
if (output.statusCode >= 300) {
|
|
1848
|
-
return de_UntagResourceCommandError(output, context);
|
|
1849
|
-
}
|
|
1850
|
-
const data = await parseBody(output.body, context);
|
|
1851
|
-
let contents = {};
|
|
1852
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1853
|
-
const response = {
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
...contents,
|
|
1856
|
-
};
|
|
1857
|
-
return response;
|
|
1858
|
-
};
|
|
1859
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1860
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1861
|
-
const parsedOutput = {
|
|
1862
|
-
...output,
|
|
1863
|
-
body: await parseErrorBody(output.body, context),
|
|
1864
|
-
};
|
|
1865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
|
-
switch (errorCode) {
|
|
1867
|
-
case "BadRequestException":
|
|
1868
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1869
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "ConflictException":
|
|
1871
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1872
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InternalFailureException":
|
|
1874
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1875
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "LimitExceededException":
|
|
1877
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1878
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "NotFoundException":
|
|
1880
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1881
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1882
|
-
default:
|
|
1883
|
-
const parsedBody = parsedOutput.body;
|
|
1884
|
-
return throwDefaultError({
|
|
1885
|
-
output,
|
|
1886
|
-
parsedBody,
|
|
1887
|
-
errorCode,
|
|
1888
|
-
});
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
const de_UpdateCallAnalyticsCategoryCommand = async (output, context) => {
|
|
1892
|
-
if (output.statusCode >= 300) {
|
|
1893
|
-
return de_UpdateCallAnalyticsCategoryCommandError(output, context);
|
|
1894
|
-
}
|
|
1895
|
-
const data = await parseBody(output.body, context);
|
|
1896
|
-
let contents = {};
|
|
1897
|
-
contents = de_UpdateCallAnalyticsCategoryResponse(data, context);
|
|
1898
|
-
const response = {
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
...contents,
|
|
1901
|
-
};
|
|
1902
|
-
return response;
|
|
1903
|
-
};
|
|
1904
|
-
exports.de_UpdateCallAnalyticsCategoryCommand = de_UpdateCallAnalyticsCategoryCommand;
|
|
1905
|
-
const de_UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "BadRequestException":
|
|
1913
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1914
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ConflictException":
|
|
1916
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1917
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "InternalFailureException":
|
|
1919
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1920
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "LimitExceededException":
|
|
1922
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1923
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "NotFoundException":
|
|
1925
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1926
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1927
|
-
default:
|
|
1928
|
-
const parsedBody = parsedOutput.body;
|
|
1929
|
-
return throwDefaultError({
|
|
1930
|
-
output,
|
|
1931
|
-
parsedBody,
|
|
1932
|
-
errorCode,
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
const de_UpdateMedicalVocabularyCommand = async (output, context) => {
|
|
1937
|
-
if (output.statusCode >= 300) {
|
|
1938
|
-
return de_UpdateMedicalVocabularyCommandError(output, context);
|
|
1939
|
-
}
|
|
1940
|
-
const data = await parseBody(output.body, context);
|
|
1941
|
-
let contents = {};
|
|
1942
|
-
contents = de_UpdateMedicalVocabularyResponse(data, context);
|
|
1943
|
-
const response = {
|
|
1944
|
-
$metadata: deserializeMetadata(output),
|
|
1945
|
-
...contents,
|
|
1946
|
-
};
|
|
1947
|
-
return response;
|
|
1948
|
-
};
|
|
1949
|
-
exports.de_UpdateMedicalVocabularyCommand = de_UpdateMedicalVocabularyCommand;
|
|
1950
|
-
const de_UpdateMedicalVocabularyCommandError = async (output, context) => {
|
|
1951
|
-
const parsedOutput = {
|
|
1952
|
-
...output,
|
|
1953
|
-
body: await parseErrorBody(output.body, context),
|
|
1954
|
-
};
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "BadRequestException":
|
|
1958
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
1959
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ConflictException":
|
|
1961
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
1962
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "InternalFailureException":
|
|
1964
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
1965
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "LimitExceededException":
|
|
1967
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
1968
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "NotFoundException":
|
|
1970
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
1971
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1972
|
-
default:
|
|
1973
|
-
const parsedBody = parsedOutput.body;
|
|
1974
|
-
return throwDefaultError({
|
|
1975
|
-
output,
|
|
1976
|
-
parsedBody,
|
|
1977
|
-
errorCode,
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
};
|
|
1981
|
-
const de_UpdateVocabularyCommand = async (output, context) => {
|
|
1982
|
-
if (output.statusCode >= 300) {
|
|
1983
|
-
return de_UpdateVocabularyCommandError(output, context);
|
|
1984
|
-
}
|
|
1985
|
-
const data = await parseBody(output.body, context);
|
|
1986
|
-
let contents = {};
|
|
1987
|
-
contents = de_UpdateVocabularyResponse(data, context);
|
|
1988
|
-
const response = {
|
|
1989
|
-
$metadata: deserializeMetadata(output),
|
|
1990
|
-
...contents,
|
|
1991
|
-
};
|
|
1992
|
-
return response;
|
|
1993
|
-
};
|
|
1994
|
-
exports.de_UpdateVocabularyCommand = de_UpdateVocabularyCommand;
|
|
1995
|
-
const de_UpdateVocabularyCommandError = async (output, context) => {
|
|
1996
|
-
const parsedOutput = {
|
|
1997
|
-
...output,
|
|
1998
|
-
body: await parseErrorBody(output.body, context),
|
|
1999
|
-
};
|
|
2000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2001
|
-
switch (errorCode) {
|
|
2002
|
-
case "BadRequestException":
|
|
2003
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2004
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ConflictException":
|
|
2006
|
-
case "com.amazonaws.transcribe#ConflictException":
|
|
2007
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "InternalFailureException":
|
|
2009
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2010
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "LimitExceededException":
|
|
2012
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2013
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "NotFoundException":
|
|
2015
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2016
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
-
default:
|
|
2018
|
-
const parsedBody = parsedOutput.body;
|
|
2019
|
-
return throwDefaultError({
|
|
2020
|
-
output,
|
|
2021
|
-
parsedBody,
|
|
2022
|
-
errorCode,
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
};
|
|
2026
|
-
const de_UpdateVocabularyFilterCommand = async (output, context) => {
|
|
2027
|
-
if (output.statusCode >= 300) {
|
|
2028
|
-
return de_UpdateVocabularyFilterCommandError(output, context);
|
|
2029
|
-
}
|
|
2030
|
-
const data = await parseBody(output.body, context);
|
|
2031
|
-
let contents = {};
|
|
2032
|
-
contents = de_UpdateVocabularyFilterResponse(data, context);
|
|
2033
|
-
const response = {
|
|
2034
|
-
$metadata: deserializeMetadata(output),
|
|
2035
|
-
...contents,
|
|
2036
|
-
};
|
|
2037
|
-
return response;
|
|
2038
|
-
};
|
|
2039
|
-
exports.de_UpdateVocabularyFilterCommand = de_UpdateVocabularyFilterCommand;
|
|
2040
|
-
const de_UpdateVocabularyFilterCommandError = async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context),
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "BadRequestException":
|
|
2048
|
-
case "com.amazonaws.transcribe#BadRequestException":
|
|
2049
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "InternalFailureException":
|
|
2051
|
-
case "com.amazonaws.transcribe#InternalFailureException":
|
|
2052
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "LimitExceededException":
|
|
2054
|
-
case "com.amazonaws.transcribe#LimitExceededException":
|
|
2055
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "NotFoundException":
|
|
2057
|
-
case "com.amazonaws.transcribe#NotFoundException":
|
|
2058
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2059
|
-
default:
|
|
2060
|
-
const parsedBody = parsedOutput.body;
|
|
2061
|
-
return throwDefaultError({
|
|
2062
|
-
output,
|
|
2063
|
-
parsedBody,
|
|
2064
|
-
errorCode,
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
};
|
|
2068
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2069
|
-
const body = parsedOutput.body;
|
|
2070
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2071
|
-
const exception = new models_0_1.BadRequestException({
|
|
2072
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2073
|
-
...deserialized,
|
|
2074
|
-
});
|
|
2075
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2076
|
-
};
|
|
2077
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2078
|
-
const body = parsedOutput.body;
|
|
2079
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2080
|
-
const exception = new models_0_1.ConflictException({
|
|
2081
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2082
|
-
...deserialized,
|
|
2083
|
-
});
|
|
2084
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2085
|
-
};
|
|
2086
|
-
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
2087
|
-
const body = parsedOutput.body;
|
|
2088
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2089
|
-
const exception = new models_0_1.InternalFailureException({
|
|
2090
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2091
|
-
...deserialized,
|
|
2092
|
-
});
|
|
2093
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2094
|
-
};
|
|
2095
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2096
|
-
const body = parsedOutput.body;
|
|
2097
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2098
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2099
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2100
|
-
...deserialized,
|
|
2101
|
-
});
|
|
2102
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2103
|
-
};
|
|
2104
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2105
|
-
const body = parsedOutput.body;
|
|
2106
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2107
|
-
const exception = new models_0_1.NotFoundException({
|
|
2108
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2109
|
-
...deserialized,
|
|
2110
|
-
});
|
|
2111
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2112
|
-
};
|
|
2113
|
-
const de_CallAnalyticsJob = (output, context) => {
|
|
2114
|
-
return (0, smithy_client_1.take)(output, {
|
|
2115
|
-
CallAnalyticsJobName: smithy_client_1.expectString,
|
|
2116
|
-
CallAnalyticsJobStatus: smithy_client_1.expectString,
|
|
2117
|
-
ChannelDefinitions: smithy_client_1._json,
|
|
2118
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2119
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2120
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
2121
|
-
FailureReason: smithy_client_1.expectString,
|
|
2122
|
-
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
2123
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2124
|
-
Media: smithy_client_1._json,
|
|
2125
|
-
MediaFormat: smithy_client_1.expectString,
|
|
2126
|
-
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
2127
|
-
Settings: smithy_client_1._json,
|
|
2128
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2129
|
-
Transcript: smithy_client_1._json,
|
|
2130
|
-
});
|
|
2131
|
-
};
|
|
2132
|
-
const de_CallAnalyticsJobSummaries = (output, context) => {
|
|
2133
|
-
const retVal = (output || [])
|
|
2134
|
-
.filter((e) => e != null)
|
|
2135
|
-
.map((entry) => {
|
|
2136
|
-
return de_CallAnalyticsJobSummary(entry, context);
|
|
2137
|
-
});
|
|
2138
|
-
return retVal;
|
|
2139
|
-
};
|
|
2140
|
-
const de_CallAnalyticsJobSummary = (output, context) => {
|
|
2141
|
-
return (0, smithy_client_1.take)(output, {
|
|
2142
|
-
CallAnalyticsJobName: smithy_client_1.expectString,
|
|
2143
|
-
CallAnalyticsJobStatus: smithy_client_1.expectString,
|
|
2144
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2145
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2146
|
-
FailureReason: smithy_client_1.expectString,
|
|
2147
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2148
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2149
|
-
});
|
|
2150
|
-
};
|
|
2151
|
-
const de_CategoryProperties = (output, context) => {
|
|
2152
|
-
return (0, smithy_client_1.take)(output, {
|
|
2153
|
-
CategoryName: smithy_client_1.expectString,
|
|
2154
|
-
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2155
|
-
InputType: smithy_client_1.expectString,
|
|
2156
|
-
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2157
|
-
Rules: smithy_client_1._json,
|
|
2158
|
-
});
|
|
2159
|
-
};
|
|
2160
|
-
const de_CategoryPropertiesList = (output, context) => {
|
|
2161
|
-
const retVal = (output || [])
|
|
2162
|
-
.filter((e) => e != null)
|
|
2163
|
-
.map((entry) => {
|
|
2164
|
-
return de_CategoryProperties(entry, context);
|
|
2165
|
-
});
|
|
2166
|
-
return retVal;
|
|
2167
|
-
};
|
|
2168
|
-
const de_CreateCallAnalyticsCategoryResponse = (output, context) => {
|
|
2169
|
-
return (0, smithy_client_1.take)(output, {
|
|
2170
|
-
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
2171
|
-
});
|
|
2172
|
-
};
|
|
2173
|
-
const de_CreateMedicalVocabularyResponse = (output, context) => {
|
|
2174
|
-
return (0, smithy_client_1.take)(output, {
|
|
2175
|
-
FailureReason: smithy_client_1.expectString,
|
|
2176
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2177
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2178
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2179
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2180
|
-
});
|
|
2181
|
-
};
|
|
2182
|
-
const de_CreateVocabularyFilterResponse = (output, context) => {
|
|
2183
|
-
return (0, smithy_client_1.take)(output, {
|
|
2184
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2185
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2186
|
-
VocabularyFilterName: smithy_client_1.expectString,
|
|
2187
|
-
});
|
|
2188
|
-
};
|
|
2189
|
-
const de_CreateVocabularyResponse = (output, context) => {
|
|
2190
|
-
return (0, smithy_client_1.take)(output, {
|
|
2191
|
-
FailureReason: smithy_client_1.expectString,
|
|
2192
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2193
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2194
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2195
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2196
|
-
});
|
|
2197
|
-
};
|
|
2198
|
-
const de_DescribeLanguageModelResponse = (output, context) => {
|
|
2199
|
-
return (0, smithy_client_1.take)(output, {
|
|
2200
|
-
LanguageModel: (_) => de_LanguageModel(_, context),
|
|
2201
|
-
});
|
|
2202
|
-
};
|
|
2203
|
-
const de_GetCallAnalyticsCategoryResponse = (output, context) => {
|
|
2204
|
-
return (0, smithy_client_1.take)(output, {
|
|
2205
|
-
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
2206
|
-
});
|
|
2207
|
-
};
|
|
2208
|
-
const de_GetCallAnalyticsJobResponse = (output, context) => {
|
|
2209
|
-
return (0, smithy_client_1.take)(output, {
|
|
2210
|
-
CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
|
|
2211
|
-
});
|
|
2212
|
-
};
|
|
2213
|
-
const de_GetMedicalScribeJobResponse = (output, context) => {
|
|
2214
|
-
return (0, smithy_client_1.take)(output, {
|
|
2215
|
-
MedicalScribeJob: (_) => de_MedicalScribeJob(_, context),
|
|
2216
|
-
});
|
|
2217
|
-
};
|
|
2218
|
-
const de_GetMedicalTranscriptionJobResponse = (output, context) => {
|
|
2219
|
-
return (0, smithy_client_1.take)(output, {
|
|
2220
|
-
MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
|
|
2221
|
-
});
|
|
2222
|
-
};
|
|
2223
|
-
const de_GetMedicalVocabularyResponse = (output, context) => {
|
|
2224
|
-
return (0, smithy_client_1.take)(output, {
|
|
2225
|
-
DownloadUri: smithy_client_1.expectString,
|
|
2226
|
-
FailureReason: smithy_client_1.expectString,
|
|
2227
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2228
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2229
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2230
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2231
|
-
});
|
|
2232
|
-
};
|
|
2233
|
-
const de_GetTranscriptionJobResponse = (output, context) => {
|
|
2234
|
-
return (0, smithy_client_1.take)(output, {
|
|
2235
|
-
TranscriptionJob: (_) => de_TranscriptionJob(_, context),
|
|
2236
|
-
});
|
|
2237
|
-
};
|
|
2238
|
-
const de_GetVocabularyFilterResponse = (output, context) => {
|
|
2239
|
-
return (0, smithy_client_1.take)(output, {
|
|
2240
|
-
DownloadUri: smithy_client_1.expectString,
|
|
2241
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2242
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2243
|
-
VocabularyFilterName: smithy_client_1.expectString,
|
|
2244
|
-
});
|
|
2245
|
-
};
|
|
2246
|
-
const de_GetVocabularyResponse = (output, context) => {
|
|
2247
|
-
return (0, smithy_client_1.take)(output, {
|
|
2248
|
-
DownloadUri: smithy_client_1.expectString,
|
|
2249
|
-
FailureReason: smithy_client_1.expectString,
|
|
2250
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2251
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2252
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2253
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2254
|
-
});
|
|
2255
|
-
};
|
|
2256
|
-
const de_LanguageCodeItem = (output, context) => {
|
|
2257
|
-
return (0, smithy_client_1.take)(output, {
|
|
2258
|
-
DurationInSeconds: smithy_client_1.limitedParseFloat32,
|
|
2259
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2260
|
-
});
|
|
2261
|
-
};
|
|
2262
|
-
const de_LanguageCodeList = (output, context) => {
|
|
2263
|
-
const retVal = (output || [])
|
|
2264
|
-
.filter((e) => e != null)
|
|
2265
|
-
.map((entry) => {
|
|
2266
|
-
return de_LanguageCodeItem(entry, context);
|
|
2267
|
-
});
|
|
2268
|
-
return retVal;
|
|
2269
|
-
};
|
|
2270
|
-
const de_LanguageModel = (output, context) => {
|
|
2271
|
-
return (0, smithy_client_1.take)(output, {
|
|
2272
|
-
BaseModelName: smithy_client_1.expectString,
|
|
2273
|
-
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2274
|
-
FailureReason: smithy_client_1.expectString,
|
|
2275
|
-
InputDataConfig: smithy_client_1._json,
|
|
2276
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2277
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2278
|
-
ModelName: smithy_client_1.expectString,
|
|
2279
|
-
ModelStatus: smithy_client_1.expectString,
|
|
2280
|
-
UpgradeAvailability: smithy_client_1.expectBoolean,
|
|
2281
|
-
});
|
|
2282
|
-
};
|
|
2283
|
-
const de_ListCallAnalyticsCategoriesResponse = (output, context) => {
|
|
2284
|
-
return (0, smithy_client_1.take)(output, {
|
|
2285
|
-
Categories: (_) => de_CategoryPropertiesList(_, context),
|
|
2286
|
-
NextToken: smithy_client_1.expectString,
|
|
2287
|
-
});
|
|
2288
|
-
};
|
|
2289
|
-
const de_ListCallAnalyticsJobsResponse = (output, context) => {
|
|
2290
|
-
return (0, smithy_client_1.take)(output, {
|
|
2291
|
-
CallAnalyticsJobSummaries: (_) => de_CallAnalyticsJobSummaries(_, context),
|
|
2292
|
-
NextToken: smithy_client_1.expectString,
|
|
2293
|
-
Status: smithy_client_1.expectString,
|
|
2294
|
-
});
|
|
2295
|
-
};
|
|
2296
|
-
const de_ListLanguageModelsResponse = (output, context) => {
|
|
2297
|
-
return (0, smithy_client_1.take)(output, {
|
|
2298
|
-
Models: (_) => de_Models(_, context),
|
|
2299
|
-
NextToken: smithy_client_1.expectString,
|
|
2300
|
-
});
|
|
2301
|
-
};
|
|
2302
|
-
const de_ListMedicalScribeJobsResponse = (output, context) => {
|
|
2303
|
-
return (0, smithy_client_1.take)(output, {
|
|
2304
|
-
MedicalScribeJobSummaries: (_) => de_MedicalScribeJobSummaries(_, context),
|
|
2305
|
-
NextToken: smithy_client_1.expectString,
|
|
2306
|
-
Status: smithy_client_1.expectString,
|
|
2307
|
-
});
|
|
2308
|
-
};
|
|
2309
|
-
const de_ListMedicalTranscriptionJobsResponse = (output, context) => {
|
|
2310
|
-
return (0, smithy_client_1.take)(output, {
|
|
2311
|
-
MedicalTranscriptionJobSummaries: (_) => de_MedicalTranscriptionJobSummaries(_, context),
|
|
2312
|
-
NextToken: smithy_client_1.expectString,
|
|
2313
|
-
Status: smithy_client_1.expectString,
|
|
2314
|
-
});
|
|
2315
|
-
};
|
|
2316
|
-
const de_ListMedicalVocabulariesResponse = (output, context) => {
|
|
2317
|
-
return (0, smithy_client_1.take)(output, {
|
|
2318
|
-
NextToken: smithy_client_1.expectString,
|
|
2319
|
-
Status: smithy_client_1.expectString,
|
|
2320
|
-
Vocabularies: (_) => de_Vocabularies(_, context),
|
|
2321
|
-
});
|
|
2322
|
-
};
|
|
2323
|
-
const de_ListTranscriptionJobsResponse = (output, context) => {
|
|
2324
|
-
return (0, smithy_client_1.take)(output, {
|
|
2325
|
-
NextToken: smithy_client_1.expectString,
|
|
2326
|
-
Status: smithy_client_1.expectString,
|
|
2327
|
-
TranscriptionJobSummaries: (_) => de_TranscriptionJobSummaries(_, context),
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
const de_ListVocabulariesResponse = (output, context) => {
|
|
2331
|
-
return (0, smithy_client_1.take)(output, {
|
|
2332
|
-
NextToken: smithy_client_1.expectString,
|
|
2333
|
-
Status: smithy_client_1.expectString,
|
|
2334
|
-
Vocabularies: (_) => de_Vocabularies(_, context),
|
|
2335
|
-
});
|
|
2336
|
-
};
|
|
2337
|
-
const de_ListVocabularyFiltersResponse = (output, context) => {
|
|
2338
|
-
return (0, smithy_client_1.take)(output, {
|
|
2339
|
-
NextToken: smithy_client_1.expectString,
|
|
2340
|
-
VocabularyFilters: (_) => de_VocabularyFilters(_, context),
|
|
2341
|
-
});
|
|
2342
|
-
};
|
|
2343
|
-
const de_MedicalScribeJob = (output, context) => {
|
|
2344
|
-
return (0, smithy_client_1.take)(output, {
|
|
2345
|
-
ChannelDefinitions: smithy_client_1._json,
|
|
2346
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2347
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2348
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
2349
|
-
FailureReason: smithy_client_1.expectString,
|
|
2350
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2351
|
-
Media: smithy_client_1._json,
|
|
2352
|
-
MedicalScribeJobName: smithy_client_1.expectString,
|
|
2353
|
-
MedicalScribeJobStatus: smithy_client_1.expectString,
|
|
2354
|
-
MedicalScribeOutput: smithy_client_1._json,
|
|
2355
|
-
Settings: smithy_client_1._json,
|
|
2356
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2357
|
-
Tags: smithy_client_1._json,
|
|
2358
|
-
});
|
|
2359
|
-
};
|
|
2360
|
-
const de_MedicalScribeJobSummaries = (output, context) => {
|
|
2361
|
-
const retVal = (output || [])
|
|
2362
|
-
.filter((e) => e != null)
|
|
2363
|
-
.map((entry) => {
|
|
2364
|
-
return de_MedicalScribeJobSummary(entry, context);
|
|
2365
|
-
});
|
|
2366
|
-
return retVal;
|
|
2367
|
-
};
|
|
2368
|
-
const de_MedicalScribeJobSummary = (output, context) => {
|
|
2369
|
-
return (0, smithy_client_1.take)(output, {
|
|
2370
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2371
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2372
|
-
FailureReason: smithy_client_1.expectString,
|
|
2373
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2374
|
-
MedicalScribeJobName: smithy_client_1.expectString,
|
|
2375
|
-
MedicalScribeJobStatus: smithy_client_1.expectString,
|
|
2376
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2377
|
-
});
|
|
2378
|
-
};
|
|
2379
|
-
const de_MedicalTranscriptionJob = (output, context) => {
|
|
2380
|
-
return (0, smithy_client_1.take)(output, {
|
|
2381
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2382
|
-
ContentIdentificationType: smithy_client_1.expectString,
|
|
2383
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2384
|
-
FailureReason: smithy_client_1.expectString,
|
|
2385
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2386
|
-
Media: smithy_client_1._json,
|
|
2387
|
-
MediaFormat: smithy_client_1.expectString,
|
|
2388
|
-
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
2389
|
-
MedicalTranscriptionJobName: smithy_client_1.expectString,
|
|
2390
|
-
Settings: smithy_client_1._json,
|
|
2391
|
-
Specialty: smithy_client_1.expectString,
|
|
2392
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2393
|
-
Tags: smithy_client_1._json,
|
|
2394
|
-
Transcript: smithy_client_1._json,
|
|
2395
|
-
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2396
|
-
Type: smithy_client_1.expectString,
|
|
2397
|
-
});
|
|
2398
|
-
};
|
|
2399
|
-
const de_MedicalTranscriptionJobSummaries = (output, context) => {
|
|
2400
|
-
const retVal = (output || [])
|
|
2401
|
-
.filter((e) => e != null)
|
|
2402
|
-
.map((entry) => {
|
|
2403
|
-
return de_MedicalTranscriptionJobSummary(entry, context);
|
|
2404
|
-
});
|
|
2405
|
-
return retVal;
|
|
2406
|
-
};
|
|
2407
|
-
const de_MedicalTranscriptionJobSummary = (output, context) => {
|
|
2408
|
-
return (0, smithy_client_1.take)(output, {
|
|
2409
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2410
|
-
ContentIdentificationType: smithy_client_1.expectString,
|
|
2411
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2412
|
-
FailureReason: smithy_client_1.expectString,
|
|
2413
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2414
|
-
MedicalTranscriptionJobName: smithy_client_1.expectString,
|
|
2415
|
-
OutputLocationType: smithy_client_1.expectString,
|
|
2416
|
-
Specialty: smithy_client_1.expectString,
|
|
2417
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2418
|
-
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2419
|
-
Type: smithy_client_1.expectString,
|
|
2420
|
-
});
|
|
2421
|
-
};
|
|
2422
|
-
const de_Models = (output, context) => {
|
|
2423
|
-
const retVal = (output || [])
|
|
2424
|
-
.filter((e) => e != null)
|
|
2425
|
-
.map((entry) => {
|
|
2426
|
-
return de_LanguageModel(entry, context);
|
|
2427
|
-
});
|
|
2428
|
-
return retVal;
|
|
2429
|
-
};
|
|
2430
|
-
const de_StartCallAnalyticsJobResponse = (output, context) => {
|
|
2431
|
-
return (0, smithy_client_1.take)(output, {
|
|
2432
|
-
CallAnalyticsJob: (_) => de_CallAnalyticsJob(_, context),
|
|
2433
|
-
});
|
|
2434
|
-
};
|
|
2435
|
-
const de_StartMedicalScribeJobResponse = (output, context) => {
|
|
2436
|
-
return (0, smithy_client_1.take)(output, {
|
|
2437
|
-
MedicalScribeJob: (_) => de_MedicalScribeJob(_, context),
|
|
2438
|
-
});
|
|
2439
|
-
};
|
|
2440
|
-
const de_StartMedicalTranscriptionJobResponse = (output, context) => {
|
|
2441
|
-
return (0, smithy_client_1.take)(output, {
|
|
2442
|
-
MedicalTranscriptionJob: (_) => de_MedicalTranscriptionJob(_, context),
|
|
2443
|
-
});
|
|
2444
|
-
};
|
|
2445
|
-
const de_StartTranscriptionJobResponse = (output, context) => {
|
|
2446
|
-
return (0, smithy_client_1.take)(output, {
|
|
2447
|
-
TranscriptionJob: (_) => de_TranscriptionJob(_, context),
|
|
2448
|
-
});
|
|
2449
|
-
};
|
|
2450
|
-
const de_TranscriptionJob = (output, context) => {
|
|
2451
|
-
return (0, smithy_client_1.take)(output, {
|
|
2452
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2453
|
-
ContentRedaction: smithy_client_1._json,
|
|
2454
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2455
|
-
FailureReason: smithy_client_1.expectString,
|
|
2456
|
-
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
2457
|
-
IdentifyLanguage: smithy_client_1.expectBoolean,
|
|
2458
|
-
IdentifyMultipleLanguages: smithy_client_1.expectBoolean,
|
|
2459
|
-
JobExecutionSettings: smithy_client_1._json,
|
|
2460
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2461
|
-
LanguageCodes: (_) => de_LanguageCodeList(_, context),
|
|
2462
|
-
LanguageIdSettings: smithy_client_1._json,
|
|
2463
|
-
LanguageOptions: smithy_client_1._json,
|
|
2464
|
-
Media: smithy_client_1._json,
|
|
2465
|
-
MediaFormat: smithy_client_1.expectString,
|
|
2466
|
-
MediaSampleRateHertz: smithy_client_1.expectInt32,
|
|
2467
|
-
ModelSettings: smithy_client_1._json,
|
|
2468
|
-
Settings: smithy_client_1._json,
|
|
2469
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2470
|
-
Subtitles: smithy_client_1._json,
|
|
2471
|
-
Tags: smithy_client_1._json,
|
|
2472
|
-
ToxicityDetection: smithy_client_1._json,
|
|
2473
|
-
Transcript: smithy_client_1._json,
|
|
2474
|
-
TranscriptionJobName: smithy_client_1.expectString,
|
|
2475
|
-
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2476
|
-
});
|
|
2477
|
-
};
|
|
2478
|
-
const de_TranscriptionJobSummaries = (output, context) => {
|
|
2479
|
-
const retVal = (output || [])
|
|
2480
|
-
.filter((e) => e != null)
|
|
2481
|
-
.map((entry) => {
|
|
2482
|
-
return de_TranscriptionJobSummary(entry, context);
|
|
2483
|
-
});
|
|
2484
|
-
return retVal;
|
|
2485
|
-
};
|
|
2486
|
-
const de_TranscriptionJobSummary = (output, context) => {
|
|
2487
|
-
return (0, smithy_client_1.take)(output, {
|
|
2488
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2489
|
-
ContentRedaction: smithy_client_1._json,
|
|
2490
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2491
|
-
FailureReason: smithy_client_1.expectString,
|
|
2492
|
-
IdentifiedLanguageScore: smithy_client_1.limitedParseFloat32,
|
|
2493
|
-
IdentifyLanguage: smithy_client_1.expectBoolean,
|
|
2494
|
-
IdentifyMultipleLanguages: smithy_client_1.expectBoolean,
|
|
2495
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2496
|
-
LanguageCodes: (_) => de_LanguageCodeList(_, context),
|
|
2497
|
-
ModelSettings: smithy_client_1._json,
|
|
2498
|
-
OutputLocationType: smithy_client_1.expectString,
|
|
2499
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2500
|
-
ToxicityDetection: smithy_client_1._json,
|
|
2501
|
-
TranscriptionJobName: smithy_client_1.expectString,
|
|
2502
|
-
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2503
|
-
});
|
|
2504
|
-
};
|
|
2505
|
-
const de_UpdateCallAnalyticsCategoryResponse = (output, context) => {
|
|
2506
|
-
return (0, smithy_client_1.take)(output, {
|
|
2507
|
-
CategoryProperties: (_) => de_CategoryProperties(_, context),
|
|
2508
|
-
});
|
|
2509
|
-
};
|
|
2510
|
-
const de_UpdateMedicalVocabularyResponse = (output, context) => {
|
|
2511
|
-
return (0, smithy_client_1.take)(output, {
|
|
2512
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2513
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2514
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2515
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2516
|
-
});
|
|
2517
|
-
};
|
|
2518
|
-
const de_UpdateVocabularyFilterResponse = (output, context) => {
|
|
2519
|
-
return (0, smithy_client_1.take)(output, {
|
|
2520
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2521
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2522
|
-
VocabularyFilterName: smithy_client_1.expectString,
|
|
2523
|
-
});
|
|
2524
|
-
};
|
|
2525
|
-
const de_UpdateVocabularyResponse = (output, context) => {
|
|
2526
|
-
return (0, smithy_client_1.take)(output, {
|
|
2527
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2528
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2529
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2530
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2531
|
-
});
|
|
2532
|
-
};
|
|
2533
|
-
const de_Vocabularies = (output, context) => {
|
|
2534
|
-
const retVal = (output || [])
|
|
2535
|
-
.filter((e) => e != null)
|
|
2536
|
-
.map((entry) => {
|
|
2537
|
-
return de_VocabularyInfo(entry, context);
|
|
2538
|
-
});
|
|
2539
|
-
return retVal;
|
|
2540
|
-
};
|
|
2541
|
-
const de_VocabularyFilterInfo = (output, context) => {
|
|
2542
|
-
return (0, smithy_client_1.take)(output, {
|
|
2543
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2544
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2545
|
-
VocabularyFilterName: smithy_client_1.expectString,
|
|
2546
|
-
});
|
|
2547
|
-
};
|
|
2548
|
-
const de_VocabularyFilters = (output, context) => {
|
|
2549
|
-
const retVal = (output || [])
|
|
2550
|
-
.filter((e) => e != null)
|
|
2551
|
-
.map((entry) => {
|
|
2552
|
-
return de_VocabularyFilterInfo(entry, context);
|
|
2553
|
-
});
|
|
2554
|
-
return retVal;
|
|
2555
|
-
};
|
|
2556
|
-
const de_VocabularyInfo = (output, context) => {
|
|
2557
|
-
return (0, smithy_client_1.take)(output, {
|
|
2558
|
-
LanguageCode: smithy_client_1.expectString,
|
|
2559
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2560
|
-
VocabularyName: smithy_client_1.expectString,
|
|
2561
|
-
VocabularyState: smithy_client_1.expectString,
|
|
2562
|
-
});
|
|
2563
|
-
};
|
|
2564
|
-
const deserializeMetadata = (output) => ({
|
|
2565
|
-
httpStatusCode: output.statusCode,
|
|
2566
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2567
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2568
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2569
|
-
});
|
|
2570
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2571
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(TranscribeServiceException_1.TranscribeServiceException);
|
|
2572
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2573
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2574
|
-
const contents = {
|
|
2575
|
-
protocol,
|
|
2576
|
-
hostname,
|
|
2577
|
-
port,
|
|
2578
|
-
method: "POST",
|
|
2579
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2580
|
-
headers,
|
|
2581
|
-
};
|
|
2582
|
-
if (resolvedHostname !== undefined) {
|
|
2583
|
-
contents.hostname = resolvedHostname;
|
|
2584
|
-
}
|
|
2585
|
-
if (body !== undefined) {
|
|
2586
|
-
contents.body = body;
|
|
2587
|
-
}
|
|
2588
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
2589
|
-
};
|
|
2590
|
-
function sharedHeaders(operation) {
|
|
2591
|
-
return {
|
|
2592
|
-
"content-type": "application/x-amz-json-1.1",
|
|
2593
|
-
"x-amz-target": `Transcribe.${operation}`,
|
|
2594
|
-
};
|
|
2595
|
-
}
|
|
2596
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2597
|
-
if (encoded.length) {
|
|
2598
|
-
return JSON.parse(encoded);
|
|
2599
|
-
}
|
|
2600
|
-
return {};
|
|
2601
|
-
});
|
|
2602
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2603
|
-
const value = await parseBody(errorBody, context);
|
|
2604
|
-
value.message = value.message ?? value.Message;
|
|
2605
|
-
return value;
|
|
2606
|
-
};
|
|
2607
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2608
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2609
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2610
|
-
let cleanValue = rawValue;
|
|
2611
|
-
if (typeof cleanValue === "number") {
|
|
2612
|
-
cleanValue = cleanValue.toString();
|
|
2613
|
-
}
|
|
2614
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2615
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2616
|
-
}
|
|
2617
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2618
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2619
|
-
}
|
|
2620
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2621
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2622
|
-
}
|
|
2623
|
-
return cleanValue;
|
|
2624
|
-
};
|
|
2625
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2626
|
-
if (headerKey !== undefined) {
|
|
2627
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2628
|
-
}
|
|
2629
|
-
if (data.code !== undefined) {
|
|
2630
|
-
return sanitizeErrorCode(data.code);
|
|
2631
|
-
}
|
|
2632
|
-
if (data["__type"] !== undefined) {
|
|
2633
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2634
|
-
}
|
|
2635
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|