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