@aws-sdk/client-voice-id 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/VoiceID.js +1 -69
- package/dist-cjs/VoiceIDClient.js +1 -43
- package/dist-cjs/commands/AssociateFraudsterCommand.js +1 -29
- package/dist-cjs/commands/CreateDomainCommand.js +1 -29
- package/dist-cjs/commands/CreateWatchlistCommand.js +1 -29
- package/dist-cjs/commands/DeleteDomainCommand.js +1 -28
- package/dist-cjs/commands/DeleteFraudsterCommand.js +1 -29
- package/dist-cjs/commands/DeleteSpeakerCommand.js +1 -29
- package/dist-cjs/commands/DeleteWatchlistCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainCommand.js +1 -29
- package/dist-cjs/commands/DescribeFraudsterCommand.js +1 -29
- package/dist-cjs/commands/DescribeFraudsterRegistrationJobCommand.js +1 -29
- package/dist-cjs/commands/DescribeSpeakerCommand.js +1 -29
- package/dist-cjs/commands/DescribeSpeakerEnrollmentJobCommand.js +1 -29
- package/dist-cjs/commands/DescribeWatchlistCommand.js +1 -29
- package/dist-cjs/commands/DisassociateFraudsterCommand.js +1 -29
- package/dist-cjs/commands/EvaluateSessionCommand.js +1 -29
- package/dist-cjs/commands/ListDomainsCommand.js +1 -29
- package/dist-cjs/commands/ListFraudsterRegistrationJobsCommand.js +1 -29
- package/dist-cjs/commands/ListFraudstersCommand.js +1 -28
- package/dist-cjs/commands/ListSpeakerEnrollmentJobsCommand.js +1 -29
- package/dist-cjs/commands/ListSpeakersCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/ListWatchlistsCommand.js +1 -29
- package/dist-cjs/commands/OptOutSpeakerCommand.js +1 -29
- package/dist-cjs/commands/StartFraudsterRegistrationJobCommand.js +1 -29
- package/dist-cjs/commands/StartSpeakerEnrollmentJobCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateDomainCommand.js +1 -29
- package/dist-cjs/commands/UpdateWatchlistCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -32
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3333 -11
- package/dist-cjs/models/VoiceIDServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -444
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFraudsterRegistrationJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFraudstersPaginator.js +1 -7
- package/dist-cjs/pagination/ListSpeakerEnrollmentJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSpeakersPaginator.js +1 -7
- package/dist-cjs/pagination/ListWatchlistsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_json1_0.js +1 -2078
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2078 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListTagsForResourceCommand = exports.de_ListSpeakersCommand = exports.de_ListSpeakerEnrollmentJobsCommand = exports.de_ListFraudstersCommand = exports.de_ListFraudsterRegistrationJobsCommand = exports.de_ListDomainsCommand = exports.de_EvaluateSessionCommand = exports.de_DisassociateFraudsterCommand = exports.de_DescribeWatchlistCommand = exports.de_DescribeSpeakerEnrollmentJobCommand = exports.de_DescribeSpeakerCommand = exports.de_DescribeFraudsterRegistrationJobCommand = exports.de_DescribeFraudsterCommand = exports.de_DescribeDomainCommand = exports.de_DeleteWatchlistCommand = exports.de_DeleteSpeakerCommand = exports.de_DeleteFraudsterCommand = exports.de_DeleteDomainCommand = exports.de_CreateWatchlistCommand = exports.de_CreateDomainCommand = exports.de_AssociateFraudsterCommand = exports.se_UpdateWatchlistCommand = exports.se_UpdateDomainCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSpeakerEnrollmentJobCommand = exports.se_StartFraudsterRegistrationJobCommand = exports.se_OptOutSpeakerCommand = exports.se_ListWatchlistsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSpeakersCommand = exports.se_ListSpeakerEnrollmentJobsCommand = exports.se_ListFraudstersCommand = exports.se_ListFraudsterRegistrationJobsCommand = exports.se_ListDomainsCommand = exports.se_EvaluateSessionCommand = exports.se_DisassociateFraudsterCommand = exports.se_DescribeWatchlistCommand = exports.se_DescribeSpeakerEnrollmentJobCommand = exports.se_DescribeSpeakerCommand = exports.se_DescribeFraudsterRegistrationJobCommand = exports.se_DescribeFraudsterCommand = exports.se_DescribeDomainCommand = exports.se_DeleteWatchlistCommand = exports.se_DeleteSpeakerCommand = exports.se_DeleteFraudsterCommand = exports.se_DeleteDomainCommand = exports.se_CreateWatchlistCommand = exports.se_CreateDomainCommand = exports.se_AssociateFraudsterCommand = void 0;
|
|
4
|
-
exports.de_UpdateWatchlistCommand = exports.de_UpdateDomainCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSpeakerEnrollmentJobCommand = exports.de_StartFraudsterRegistrationJobCommand = exports.de_OptOutSpeakerCommand = exports.de_ListWatchlistsCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const VoiceIDServiceException_1 = require("../models/VoiceIDServiceException");
|
|
10
|
-
const se_AssociateFraudsterCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("AssociateFraudster");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_AssociateFraudsterCommand = se_AssociateFraudsterCommand;
|
|
17
|
-
const se_CreateDomainCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateDomain");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify(se_CreateDomainRequest(input, context));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
24
|
-
const se_CreateWatchlistCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateWatchlist");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(se_CreateWatchlistRequest(input, context));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateWatchlistCommand = se_CreateWatchlistCommand;
|
|
31
|
-
const se_DeleteDomainCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteDomain");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
38
|
-
const se_DeleteFraudsterCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("DeleteFraudster");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_DeleteFraudsterCommand = se_DeleteFraudsterCommand;
|
|
45
|
-
const se_DeleteSpeakerCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("DeleteSpeaker");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_DeleteSpeakerCommand = se_DeleteSpeakerCommand;
|
|
52
|
-
const se_DeleteWatchlistCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("DeleteWatchlist");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_DeleteWatchlistCommand = se_DeleteWatchlistCommand;
|
|
59
|
-
const se_DescribeDomainCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("DescribeDomain");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
66
|
-
const se_DescribeFraudsterCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeFraudster");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_DescribeFraudsterCommand = se_DescribeFraudsterCommand;
|
|
73
|
-
const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DescribeFraudsterRegistrationJob");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_DescribeFraudsterRegistrationJobCommand = se_DescribeFraudsterRegistrationJobCommand;
|
|
80
|
-
const se_DescribeSpeakerCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("DescribeSpeaker");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_DescribeSpeakerCommand = se_DescribeSpeakerCommand;
|
|
87
|
-
const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("DescribeSpeakerEnrollmentJob");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_DescribeSpeakerEnrollmentJobCommand = se_DescribeSpeakerEnrollmentJobCommand;
|
|
94
|
-
const se_DescribeWatchlistCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("DescribeWatchlist");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_DescribeWatchlistCommand = se_DescribeWatchlistCommand;
|
|
101
|
-
const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("DisassociateFraudster");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_DisassociateFraudsterCommand = se_DisassociateFraudsterCommand;
|
|
108
|
-
const se_EvaluateSessionCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("EvaluateSession");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_EvaluateSessionCommand = se_EvaluateSessionCommand;
|
|
115
|
-
const se_ListDomainsCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("ListDomains");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
122
|
-
const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("ListFraudsterRegistrationJobs");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_ListFraudsterRegistrationJobsCommand = se_ListFraudsterRegistrationJobsCommand;
|
|
129
|
-
const se_ListFraudstersCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("ListFraudsters");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_ListFraudstersCommand = se_ListFraudstersCommand;
|
|
136
|
-
const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("ListSpeakerEnrollmentJobs");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_ListSpeakerEnrollmentJobsCommand = se_ListSpeakerEnrollmentJobsCommand;
|
|
143
|
-
const se_ListSpeakersCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("ListSpeakers");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_ListSpeakersCommand = se_ListSpeakersCommand;
|
|
150
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
157
|
-
const se_ListWatchlistsCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("ListWatchlists");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_ListWatchlistsCommand = se_ListWatchlistsCommand;
|
|
164
|
-
const se_OptOutSpeakerCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("OptOutSpeaker");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_OptOutSpeakerCommand = se_OptOutSpeakerCommand;
|
|
171
|
-
const se_StartFraudsterRegistrationJobCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("StartFraudsterRegistrationJob");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify(se_StartFraudsterRegistrationJobRequest(input, context));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_StartFraudsterRegistrationJobCommand = se_StartFraudsterRegistrationJobCommand;
|
|
178
|
-
const se_StartSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("StartSpeakerEnrollmentJob");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify(se_StartSpeakerEnrollmentJobRequest(input, context));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_StartSpeakerEnrollmentJobCommand = se_StartSpeakerEnrollmentJobCommand;
|
|
185
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("TagResource");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
192
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("UntagResource");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
199
|
-
const se_UpdateDomainCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("UpdateDomain");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
|
|
206
|
-
const se_UpdateWatchlistCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("UpdateWatchlist");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_UpdateWatchlistCommand = se_UpdateWatchlistCommand;
|
|
213
|
-
const de_AssociateFraudsterCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode >= 300) {
|
|
215
|
-
return de_AssociateFraudsterCommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const data = await parseBody(output.body, context);
|
|
218
|
-
let contents = {};
|
|
219
|
-
contents = de_AssociateFraudsterResponse(data, context);
|
|
220
|
-
const response = {
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
...contents,
|
|
223
|
-
};
|
|
224
|
-
return response;
|
|
225
|
-
};
|
|
226
|
-
exports.de_AssociateFraudsterCommand = de_AssociateFraudsterCommand;
|
|
227
|
-
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "AccessDeniedException":
|
|
235
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ConflictException":
|
|
238
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
239
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
240
|
-
case "InternalServerException":
|
|
241
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
242
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ResourceNotFoundException":
|
|
244
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ServiceQuotaExceededException":
|
|
247
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
248
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
249
|
-
case "ThrottlingException":
|
|
250
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
251
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
252
|
-
case "ValidationException":
|
|
253
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
255
|
-
default:
|
|
256
|
-
const parsedBody = parsedOutput.body;
|
|
257
|
-
return throwDefaultError({
|
|
258
|
-
output,
|
|
259
|
-
parsedBody,
|
|
260
|
-
errorCode,
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
const de_CreateDomainCommand = async (output, context) => {
|
|
265
|
-
if (output.statusCode >= 300) {
|
|
266
|
-
return de_CreateDomainCommandError(output, context);
|
|
267
|
-
}
|
|
268
|
-
const data = await parseBody(output.body, context);
|
|
269
|
-
let contents = {};
|
|
270
|
-
contents = de_CreateDomainResponse(data, context);
|
|
271
|
-
const response = {
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
...contents,
|
|
274
|
-
};
|
|
275
|
-
return response;
|
|
276
|
-
};
|
|
277
|
-
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
278
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
279
|
-
const parsedOutput = {
|
|
280
|
-
...output,
|
|
281
|
-
body: await parseErrorBody(output.body, context),
|
|
282
|
-
};
|
|
283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
284
|
-
switch (errorCode) {
|
|
285
|
-
case "AccessDeniedException":
|
|
286
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
288
|
-
case "ConflictException":
|
|
289
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
290
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
291
|
-
case "InternalServerException":
|
|
292
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ResourceNotFoundException":
|
|
295
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
297
|
-
case "ServiceQuotaExceededException":
|
|
298
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
299
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
300
|
-
case "ThrottlingException":
|
|
301
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
302
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ValidationException":
|
|
304
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
306
|
-
default:
|
|
307
|
-
const parsedBody = parsedOutput.body;
|
|
308
|
-
return throwDefaultError({
|
|
309
|
-
output,
|
|
310
|
-
parsedBody,
|
|
311
|
-
errorCode,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
const de_CreateWatchlistCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode >= 300) {
|
|
317
|
-
return de_CreateWatchlistCommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const data = await parseBody(output.body, context);
|
|
320
|
-
let contents = {};
|
|
321
|
-
contents = de_CreateWatchlistResponse(data, context);
|
|
322
|
-
const response = {
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
...contents,
|
|
325
|
-
};
|
|
326
|
-
return response;
|
|
327
|
-
};
|
|
328
|
-
exports.de_CreateWatchlistCommand = de_CreateWatchlistCommand;
|
|
329
|
-
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
330
|
-
const parsedOutput = {
|
|
331
|
-
...output,
|
|
332
|
-
body: await parseErrorBody(output.body, context),
|
|
333
|
-
};
|
|
334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
switch (errorCode) {
|
|
336
|
-
case "AccessDeniedException":
|
|
337
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ConflictException":
|
|
340
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
341
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
342
|
-
case "InternalServerException":
|
|
343
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
344
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
345
|
-
case "ResourceNotFoundException":
|
|
346
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
347
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
348
|
-
case "ServiceQuotaExceededException":
|
|
349
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
350
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ThrottlingException":
|
|
352
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
353
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
354
|
-
case "ValidationException":
|
|
355
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
357
|
-
default:
|
|
358
|
-
const parsedBody = parsedOutput.body;
|
|
359
|
-
return throwDefaultError({
|
|
360
|
-
output,
|
|
361
|
-
parsedBody,
|
|
362
|
-
errorCode,
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
const de_DeleteDomainCommand = async (output, context) => {
|
|
367
|
-
if (output.statusCode >= 300) {
|
|
368
|
-
return de_DeleteDomainCommandError(output, context);
|
|
369
|
-
}
|
|
370
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
371
|
-
const response = {
|
|
372
|
-
$metadata: deserializeMetadata(output),
|
|
373
|
-
};
|
|
374
|
-
return response;
|
|
375
|
-
};
|
|
376
|
-
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
377
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
378
|
-
const parsedOutput = {
|
|
379
|
-
...output,
|
|
380
|
-
body: await parseErrorBody(output.body, context),
|
|
381
|
-
};
|
|
382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
|
-
switch (errorCode) {
|
|
384
|
-
case "AccessDeniedException":
|
|
385
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
387
|
-
case "ConflictException":
|
|
388
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
389
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
390
|
-
case "InternalServerException":
|
|
391
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
392
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
393
|
-
case "ResourceNotFoundException":
|
|
394
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
395
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ThrottlingException":
|
|
397
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
398
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ValidationException":
|
|
400
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
401
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
const de_DeleteFraudsterCommand = async (output, context) => {
|
|
412
|
-
if (output.statusCode >= 300) {
|
|
413
|
-
return de_DeleteFraudsterCommandError(output, context);
|
|
414
|
-
}
|
|
415
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
416
|
-
const response = {
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
};
|
|
419
|
-
return response;
|
|
420
|
-
};
|
|
421
|
-
exports.de_DeleteFraudsterCommand = de_DeleteFraudsterCommand;
|
|
422
|
-
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
423
|
-
const parsedOutput = {
|
|
424
|
-
...output,
|
|
425
|
-
body: await parseErrorBody(output.body, context),
|
|
426
|
-
};
|
|
427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
428
|
-
switch (errorCode) {
|
|
429
|
-
case "AccessDeniedException":
|
|
430
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
431
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ConflictException":
|
|
433
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
434
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InternalServerException":
|
|
436
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
437
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ResourceNotFoundException":
|
|
439
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ThrottlingException":
|
|
442
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
443
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ValidationException":
|
|
445
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
447
|
-
default:
|
|
448
|
-
const parsedBody = parsedOutput.body;
|
|
449
|
-
return throwDefaultError({
|
|
450
|
-
output,
|
|
451
|
-
parsedBody,
|
|
452
|
-
errorCode,
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
const de_DeleteSpeakerCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_DeleteSpeakerCommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
461
|
-
const response = {
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
464
|
-
return response;
|
|
465
|
-
};
|
|
466
|
-
exports.de_DeleteSpeakerCommand = de_DeleteSpeakerCommand;
|
|
467
|
-
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "AccessDeniedException":
|
|
475
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ConflictException":
|
|
478
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
479
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
480
|
-
case "InternalServerException":
|
|
481
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
482
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ResourceNotFoundException":
|
|
484
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ThrottlingException":
|
|
487
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
488
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ValidationException":
|
|
490
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode,
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
const de_DeleteWatchlistCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode >= 300) {
|
|
503
|
-
return de_DeleteWatchlistCommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
506
|
-
const response = {
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
};
|
|
509
|
-
return response;
|
|
510
|
-
};
|
|
511
|
-
exports.de_DeleteWatchlistCommand = de_DeleteWatchlistCommand;
|
|
512
|
-
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
513
|
-
const parsedOutput = {
|
|
514
|
-
...output,
|
|
515
|
-
body: await parseErrorBody(output.body, context),
|
|
516
|
-
};
|
|
517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
|
-
switch (errorCode) {
|
|
519
|
-
case "AccessDeniedException":
|
|
520
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
521
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ConflictException":
|
|
523
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
524
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
525
|
-
case "InternalServerException":
|
|
526
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
527
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ResourceNotFoundException":
|
|
529
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
530
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ThrottlingException":
|
|
532
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
533
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ValidationException":
|
|
535
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
|
-
default:
|
|
538
|
-
const parsedBody = parsedOutput.body;
|
|
539
|
-
return throwDefaultError({
|
|
540
|
-
output,
|
|
541
|
-
parsedBody,
|
|
542
|
-
errorCode,
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
const de_DescribeDomainCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode >= 300) {
|
|
548
|
-
return de_DescribeDomainCommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const data = await parseBody(output.body, context);
|
|
551
|
-
let contents = {};
|
|
552
|
-
contents = de_DescribeDomainResponse(data, context);
|
|
553
|
-
const response = {
|
|
554
|
-
$metadata: deserializeMetadata(output),
|
|
555
|
-
...contents,
|
|
556
|
-
};
|
|
557
|
-
return response;
|
|
558
|
-
};
|
|
559
|
-
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
560
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
561
|
-
const parsedOutput = {
|
|
562
|
-
...output,
|
|
563
|
-
body: await parseErrorBody(output.body, context),
|
|
564
|
-
};
|
|
565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
-
switch (errorCode) {
|
|
567
|
-
case "AccessDeniedException":
|
|
568
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
569
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
570
|
-
case "InternalServerException":
|
|
571
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
572
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ResourceNotFoundException":
|
|
574
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ThrottlingException":
|
|
577
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
578
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ValidationException":
|
|
580
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
581
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
582
|
-
default:
|
|
583
|
-
const parsedBody = parsedOutput.body;
|
|
584
|
-
return throwDefaultError({
|
|
585
|
-
output,
|
|
586
|
-
parsedBody,
|
|
587
|
-
errorCode,
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
const de_DescribeFraudsterCommand = async (output, context) => {
|
|
592
|
-
if (output.statusCode >= 300) {
|
|
593
|
-
return de_DescribeFraudsterCommandError(output, context);
|
|
594
|
-
}
|
|
595
|
-
const data = await parseBody(output.body, context);
|
|
596
|
-
let contents = {};
|
|
597
|
-
contents = de_DescribeFraudsterResponse(data, context);
|
|
598
|
-
const response = {
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
...contents,
|
|
601
|
-
};
|
|
602
|
-
return response;
|
|
603
|
-
};
|
|
604
|
-
exports.de_DescribeFraudsterCommand = de_DescribeFraudsterCommand;
|
|
605
|
-
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "AccessDeniedException":
|
|
613
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
615
|
-
case "InternalServerException":
|
|
616
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ResourceNotFoundException":
|
|
619
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ThrottlingException":
|
|
622
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
623
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ValidationException":
|
|
625
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
|
-
default:
|
|
628
|
-
const parsedBody = parsedOutput.body;
|
|
629
|
-
return throwDefaultError({
|
|
630
|
-
output,
|
|
631
|
-
parsedBody,
|
|
632
|
-
errorCode,
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
|
-
const de_DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_DescribeFraudsterRegistrationJobCommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const data = await parseBody(output.body, context);
|
|
641
|
-
let contents = {};
|
|
642
|
-
contents = de_DescribeFraudsterRegistrationJobResponse(data, context);
|
|
643
|
-
const response = {
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
...contents,
|
|
646
|
-
};
|
|
647
|
-
return response;
|
|
648
|
-
};
|
|
649
|
-
exports.de_DescribeFraudsterRegistrationJobCommand = de_DescribeFraudsterRegistrationJobCommand;
|
|
650
|
-
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
651
|
-
const parsedOutput = {
|
|
652
|
-
...output,
|
|
653
|
-
body: await parseErrorBody(output.body, context),
|
|
654
|
-
};
|
|
655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
|
-
switch (errorCode) {
|
|
657
|
-
case "AccessDeniedException":
|
|
658
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
660
|
-
case "InternalServerException":
|
|
661
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ResourceNotFoundException":
|
|
664
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ThrottlingException":
|
|
667
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
const de_DescribeSpeakerCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode >= 300) {
|
|
683
|
-
return de_DescribeSpeakerCommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const data = await parseBody(output.body, context);
|
|
686
|
-
let contents = {};
|
|
687
|
-
contents = de_DescribeSpeakerResponse(data, context);
|
|
688
|
-
const response = {
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
...contents,
|
|
691
|
-
};
|
|
692
|
-
return response;
|
|
693
|
-
};
|
|
694
|
-
exports.de_DescribeSpeakerCommand = de_DescribeSpeakerCommand;
|
|
695
|
-
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "AccessDeniedException":
|
|
703
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
704
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InternalServerException":
|
|
706
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
707
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ResourceNotFoundException":
|
|
709
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ThrottlingException":
|
|
712
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
713
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ValidationException":
|
|
715
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
716
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_DescribeSpeakerEnrollmentJobCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = de_DescribeSpeakerEnrollmentJobResponse(data, context);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
exports.de_DescribeSpeakerEnrollmentJobCommand = de_DescribeSpeakerEnrollmentJobCommand;
|
|
740
|
-
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
741
|
-
const parsedOutput = {
|
|
742
|
-
...output,
|
|
743
|
-
body: await parseErrorBody(output.body, context),
|
|
744
|
-
};
|
|
745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "AccessDeniedException":
|
|
748
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
750
|
-
case "InternalServerException":
|
|
751
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
752
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ResourceNotFoundException":
|
|
754
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ThrottlingException":
|
|
757
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
758
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ValidationException":
|
|
760
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
762
|
-
default:
|
|
763
|
-
const parsedBody = parsedOutput.body;
|
|
764
|
-
return throwDefaultError({
|
|
765
|
-
output,
|
|
766
|
-
parsedBody,
|
|
767
|
-
errorCode,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
|
-
const de_DescribeWatchlistCommand = async (output, context) => {
|
|
772
|
-
if (output.statusCode >= 300) {
|
|
773
|
-
return de_DescribeWatchlistCommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const data = await parseBody(output.body, context);
|
|
776
|
-
let contents = {};
|
|
777
|
-
contents = de_DescribeWatchlistResponse(data, context);
|
|
778
|
-
const response = {
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
...contents,
|
|
781
|
-
};
|
|
782
|
-
return response;
|
|
783
|
-
};
|
|
784
|
-
exports.de_DescribeWatchlistCommand = de_DescribeWatchlistCommand;
|
|
785
|
-
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
786
|
-
const parsedOutput = {
|
|
787
|
-
...output,
|
|
788
|
-
body: await parseErrorBody(output.body, context),
|
|
789
|
-
};
|
|
790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
-
switch (errorCode) {
|
|
792
|
-
case "AccessDeniedException":
|
|
793
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
795
|
-
case "InternalServerException":
|
|
796
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ResourceNotFoundException":
|
|
799
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ThrottlingException":
|
|
802
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ValidationException":
|
|
805
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
|
-
default:
|
|
808
|
-
const parsedBody = parsedOutput.body;
|
|
809
|
-
return throwDefaultError({
|
|
810
|
-
output,
|
|
811
|
-
parsedBody,
|
|
812
|
-
errorCode,
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
817
|
-
if (output.statusCode >= 300) {
|
|
818
|
-
return de_DisassociateFraudsterCommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const data = await parseBody(output.body, context);
|
|
821
|
-
let contents = {};
|
|
822
|
-
contents = de_DisassociateFraudsterResponse(data, context);
|
|
823
|
-
const response = {
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
...contents,
|
|
826
|
-
};
|
|
827
|
-
return response;
|
|
828
|
-
};
|
|
829
|
-
exports.de_DisassociateFraudsterCommand = de_DisassociateFraudsterCommand;
|
|
830
|
-
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
831
|
-
const parsedOutput = {
|
|
832
|
-
...output,
|
|
833
|
-
body: await parseErrorBody(output.body, context),
|
|
834
|
-
};
|
|
835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
-
switch (errorCode) {
|
|
837
|
-
case "AccessDeniedException":
|
|
838
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ConflictException":
|
|
841
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
842
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InternalServerException":
|
|
844
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
845
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ResourceNotFoundException":
|
|
847
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ThrottlingException":
|
|
850
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
851
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ValidationException":
|
|
853
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode,
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
const de_EvaluateSessionCommand = async (output, context) => {
|
|
865
|
-
if (output.statusCode >= 300) {
|
|
866
|
-
return de_EvaluateSessionCommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const data = await parseBody(output.body, context);
|
|
869
|
-
let contents = {};
|
|
870
|
-
contents = de_EvaluateSessionResponse(data, context);
|
|
871
|
-
const response = {
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
...contents,
|
|
874
|
-
};
|
|
875
|
-
return response;
|
|
876
|
-
};
|
|
877
|
-
exports.de_EvaluateSessionCommand = de_EvaluateSessionCommand;
|
|
878
|
-
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
879
|
-
const parsedOutput = {
|
|
880
|
-
...output,
|
|
881
|
-
body: await parseErrorBody(output.body, context),
|
|
882
|
-
};
|
|
883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
-
switch (errorCode) {
|
|
885
|
-
case "AccessDeniedException":
|
|
886
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ConflictException":
|
|
889
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
890
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
891
|
-
case "InternalServerException":
|
|
892
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ResourceNotFoundException":
|
|
895
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
896
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ThrottlingException":
|
|
898
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
899
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ValidationException":
|
|
901
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
const de_ListDomainsCommand = async (output, context) => {
|
|
913
|
-
if (output.statusCode >= 300) {
|
|
914
|
-
return de_ListDomainsCommandError(output, context);
|
|
915
|
-
}
|
|
916
|
-
const data = await parseBody(output.body, context);
|
|
917
|
-
let contents = {};
|
|
918
|
-
contents = de_ListDomainsResponse(data, context);
|
|
919
|
-
const response = {
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
...contents,
|
|
922
|
-
};
|
|
923
|
-
return response;
|
|
924
|
-
};
|
|
925
|
-
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
926
|
-
const de_ListDomainsCommandError = async (output, context) => {
|
|
927
|
-
const parsedOutput = {
|
|
928
|
-
...output,
|
|
929
|
-
body: await parseErrorBody(output.body, context),
|
|
930
|
-
};
|
|
931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
|
-
switch (errorCode) {
|
|
933
|
-
case "AccessDeniedException":
|
|
934
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
935
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
936
|
-
case "InternalServerException":
|
|
937
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
938
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ThrottlingException":
|
|
940
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ValidationException":
|
|
943
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
944
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
945
|
-
default:
|
|
946
|
-
const parsedBody = parsedOutput.body;
|
|
947
|
-
return throwDefaultError({
|
|
948
|
-
output,
|
|
949
|
-
parsedBody,
|
|
950
|
-
errorCode,
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
|
-
const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
955
|
-
if (output.statusCode >= 300) {
|
|
956
|
-
return de_ListFraudsterRegistrationJobsCommandError(output, context);
|
|
957
|
-
}
|
|
958
|
-
const data = await parseBody(output.body, context);
|
|
959
|
-
let contents = {};
|
|
960
|
-
contents = de_ListFraudsterRegistrationJobsResponse(data, context);
|
|
961
|
-
const response = {
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
...contents,
|
|
964
|
-
};
|
|
965
|
-
return response;
|
|
966
|
-
};
|
|
967
|
-
exports.de_ListFraudsterRegistrationJobsCommand = de_ListFraudsterRegistrationJobsCommand;
|
|
968
|
-
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
969
|
-
const parsedOutput = {
|
|
970
|
-
...output,
|
|
971
|
-
body: await parseErrorBody(output.body, context),
|
|
972
|
-
};
|
|
973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
|
-
switch (errorCode) {
|
|
975
|
-
case "AccessDeniedException":
|
|
976
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
977
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
978
|
-
case "InternalServerException":
|
|
979
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ResourceNotFoundException":
|
|
982
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottlingException":
|
|
985
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
const de_ListFraudstersCommand = async (output, context) => {
|
|
1000
|
-
if (output.statusCode >= 300) {
|
|
1001
|
-
return de_ListFraudstersCommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const data = await parseBody(output.body, context);
|
|
1004
|
-
let contents = {};
|
|
1005
|
-
contents = de_ListFraudstersResponse(data, context);
|
|
1006
|
-
const response = {
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
...contents,
|
|
1009
|
-
};
|
|
1010
|
-
return response;
|
|
1011
|
-
};
|
|
1012
|
-
exports.de_ListFraudstersCommand = de_ListFraudstersCommand;
|
|
1013
|
-
const de_ListFraudstersCommandError = async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context),
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "AccessDeniedException":
|
|
1021
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1022
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InternalServerException":
|
|
1024
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1025
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ResourceNotFoundException":
|
|
1027
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1028
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ThrottlingException":
|
|
1030
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1031
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ValidationException":
|
|
1033
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1034
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
|
-
const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
1045
|
-
if (output.statusCode >= 300) {
|
|
1046
|
-
return de_ListSpeakerEnrollmentJobsCommandError(output, context);
|
|
1047
|
-
}
|
|
1048
|
-
const data = await parseBody(output.body, context);
|
|
1049
|
-
let contents = {};
|
|
1050
|
-
contents = de_ListSpeakerEnrollmentJobsResponse(data, context);
|
|
1051
|
-
const response = {
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
...contents,
|
|
1054
|
-
};
|
|
1055
|
-
return response;
|
|
1056
|
-
};
|
|
1057
|
-
exports.de_ListSpeakerEnrollmentJobsCommand = de_ListSpeakerEnrollmentJobsCommand;
|
|
1058
|
-
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
1059
|
-
const parsedOutput = {
|
|
1060
|
-
...output,
|
|
1061
|
-
body: await parseErrorBody(output.body, context),
|
|
1062
|
-
};
|
|
1063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
-
switch (errorCode) {
|
|
1065
|
-
case "AccessDeniedException":
|
|
1066
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1067
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "InternalServerException":
|
|
1069
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ThrottlingException":
|
|
1075
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ValidationException":
|
|
1078
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
const de_ListSpeakersCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_ListSpeakersCommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await parseBody(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = de_ListSpeakersResponse(data, context);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents,
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
exports.de_ListSpeakersCommand = de_ListSpeakersCommand;
|
|
1103
|
-
const de_ListSpeakersCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "AccessDeniedException":
|
|
1111
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1112
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InternalServerException":
|
|
1114
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1115
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ResourceNotFoundException":
|
|
1117
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1118
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ThrottlingException":
|
|
1120
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1121
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ValidationException":
|
|
1123
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1124
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
|
-
default:
|
|
1126
|
-
const parsedBody = parsedOutput.body;
|
|
1127
|
-
return throwDefaultError({
|
|
1128
|
-
output,
|
|
1129
|
-
parsedBody,
|
|
1130
|
-
errorCode,
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
};
|
|
1134
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1135
|
-
if (output.statusCode >= 300) {
|
|
1136
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1137
|
-
}
|
|
1138
|
-
const data = await parseBody(output.body, context);
|
|
1139
|
-
let contents = {};
|
|
1140
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1141
|
-
const response = {
|
|
1142
|
-
$metadata: deserializeMetadata(output),
|
|
1143
|
-
...contents,
|
|
1144
|
-
};
|
|
1145
|
-
return response;
|
|
1146
|
-
};
|
|
1147
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1148
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1149
|
-
const parsedOutput = {
|
|
1150
|
-
...output,
|
|
1151
|
-
body: await parseErrorBody(output.body, context),
|
|
1152
|
-
};
|
|
1153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
|
-
switch (errorCode) {
|
|
1155
|
-
case "AccessDeniedException":
|
|
1156
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1157
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "InternalServerException":
|
|
1159
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1160
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ResourceNotFoundException":
|
|
1162
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ThrottlingException":
|
|
1165
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1166
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ValidationException":
|
|
1168
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1169
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
|
-
default:
|
|
1171
|
-
const parsedBody = parsedOutput.body;
|
|
1172
|
-
return throwDefaultError({
|
|
1173
|
-
output,
|
|
1174
|
-
parsedBody,
|
|
1175
|
-
errorCode,
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
const de_ListWatchlistsCommand = async (output, context) => {
|
|
1180
|
-
if (output.statusCode >= 300) {
|
|
1181
|
-
return de_ListWatchlistsCommandError(output, context);
|
|
1182
|
-
}
|
|
1183
|
-
const data = await parseBody(output.body, context);
|
|
1184
|
-
let contents = {};
|
|
1185
|
-
contents = de_ListWatchlistsResponse(data, context);
|
|
1186
|
-
const response = {
|
|
1187
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
-
...contents,
|
|
1189
|
-
};
|
|
1190
|
-
return response;
|
|
1191
|
-
};
|
|
1192
|
-
exports.de_ListWatchlistsCommand = de_ListWatchlistsCommand;
|
|
1193
|
-
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ResourceNotFoundException":
|
|
1207
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ThrottlingException":
|
|
1210
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1211
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ValidationException":
|
|
1213
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1214
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
|
-
default:
|
|
1216
|
-
const parsedBody = parsedOutput.body;
|
|
1217
|
-
return throwDefaultError({
|
|
1218
|
-
output,
|
|
1219
|
-
parsedBody,
|
|
1220
|
-
errorCode,
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
const de_OptOutSpeakerCommand = async (output, context) => {
|
|
1225
|
-
if (output.statusCode >= 300) {
|
|
1226
|
-
return de_OptOutSpeakerCommandError(output, context);
|
|
1227
|
-
}
|
|
1228
|
-
const data = await parseBody(output.body, context);
|
|
1229
|
-
let contents = {};
|
|
1230
|
-
contents = de_OptOutSpeakerResponse(data, context);
|
|
1231
|
-
const response = {
|
|
1232
|
-
$metadata: deserializeMetadata(output),
|
|
1233
|
-
...contents,
|
|
1234
|
-
};
|
|
1235
|
-
return response;
|
|
1236
|
-
};
|
|
1237
|
-
exports.de_OptOutSpeakerCommand = de_OptOutSpeakerCommand;
|
|
1238
|
-
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
1239
|
-
const parsedOutput = {
|
|
1240
|
-
...output,
|
|
1241
|
-
body: await parseErrorBody(output.body, context),
|
|
1242
|
-
};
|
|
1243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
-
switch (errorCode) {
|
|
1245
|
-
case "AccessDeniedException":
|
|
1246
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1247
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ConflictException":
|
|
1249
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1250
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "InternalServerException":
|
|
1252
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1253
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ResourceNotFoundException":
|
|
1255
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ServiceQuotaExceededException":
|
|
1258
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1259
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ThrottlingException":
|
|
1261
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1262
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ValidationException":
|
|
1264
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1265
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
|
-
default:
|
|
1267
|
-
const parsedBody = parsedOutput.body;
|
|
1268
|
-
return throwDefaultError({
|
|
1269
|
-
output,
|
|
1270
|
-
parsedBody,
|
|
1271
|
-
errorCode,
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
const de_StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
1276
|
-
if (output.statusCode >= 300) {
|
|
1277
|
-
return de_StartFraudsterRegistrationJobCommandError(output, context);
|
|
1278
|
-
}
|
|
1279
|
-
const data = await parseBody(output.body, context);
|
|
1280
|
-
let contents = {};
|
|
1281
|
-
contents = de_StartFraudsterRegistrationJobResponse(data, context);
|
|
1282
|
-
const response = {
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
...contents,
|
|
1285
|
-
};
|
|
1286
|
-
return response;
|
|
1287
|
-
};
|
|
1288
|
-
exports.de_StartFraudsterRegistrationJobCommand = de_StartFraudsterRegistrationJobCommand;
|
|
1289
|
-
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context),
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "AccessDeniedException":
|
|
1297
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ConflictException":
|
|
1300
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1301
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "InternalServerException":
|
|
1303
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ResourceNotFoundException":
|
|
1306
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ServiceQuotaExceededException":
|
|
1309
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1310
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ThrottlingException":
|
|
1312
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ValidationException":
|
|
1315
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
1327
|
-
if (output.statusCode >= 300) {
|
|
1328
|
-
return de_StartSpeakerEnrollmentJobCommandError(output, context);
|
|
1329
|
-
}
|
|
1330
|
-
const data = await parseBody(output.body, context);
|
|
1331
|
-
let contents = {};
|
|
1332
|
-
contents = de_StartSpeakerEnrollmentJobResponse(data, context);
|
|
1333
|
-
const response = {
|
|
1334
|
-
$metadata: deserializeMetadata(output),
|
|
1335
|
-
...contents,
|
|
1336
|
-
};
|
|
1337
|
-
return response;
|
|
1338
|
-
};
|
|
1339
|
-
exports.de_StartSpeakerEnrollmentJobCommand = de_StartSpeakerEnrollmentJobCommand;
|
|
1340
|
-
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
1341
|
-
const parsedOutput = {
|
|
1342
|
-
...output,
|
|
1343
|
-
body: await parseErrorBody(output.body, context),
|
|
1344
|
-
};
|
|
1345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
-
switch (errorCode) {
|
|
1347
|
-
case "AccessDeniedException":
|
|
1348
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ConflictException":
|
|
1351
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1352
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "InternalServerException":
|
|
1354
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ResourceNotFoundException":
|
|
1357
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ServiceQuotaExceededException":
|
|
1360
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1361
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ThrottlingException":
|
|
1363
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ValidationException":
|
|
1366
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
|
-
default:
|
|
1369
|
-
const parsedBody = parsedOutput.body;
|
|
1370
|
-
return throwDefaultError({
|
|
1371
|
-
output,
|
|
1372
|
-
parsedBody,
|
|
1373
|
-
errorCode,
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
};
|
|
1377
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1378
|
-
if (output.statusCode >= 300) {
|
|
1379
|
-
return de_TagResourceCommandError(output, context);
|
|
1380
|
-
}
|
|
1381
|
-
const data = await parseBody(output.body, context);
|
|
1382
|
-
let contents = {};
|
|
1383
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1384
|
-
const response = {
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
...contents,
|
|
1387
|
-
};
|
|
1388
|
-
return response;
|
|
1389
|
-
};
|
|
1390
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1391
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1392
|
-
const parsedOutput = {
|
|
1393
|
-
...output,
|
|
1394
|
-
body: await parseErrorBody(output.body, context),
|
|
1395
|
-
};
|
|
1396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
|
-
switch (errorCode) {
|
|
1398
|
-
case "AccessDeniedException":
|
|
1399
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1400
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "ConflictException":
|
|
1402
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1403
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "InternalServerException":
|
|
1405
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1406
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ResourceNotFoundException":
|
|
1408
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1409
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ThrottlingException":
|
|
1411
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1412
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ValidationException":
|
|
1414
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1415
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1416
|
-
default:
|
|
1417
|
-
const parsedBody = parsedOutput.body;
|
|
1418
|
-
return throwDefaultError({
|
|
1419
|
-
output,
|
|
1420
|
-
parsedBody,
|
|
1421
|
-
errorCode,
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
};
|
|
1425
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1426
|
-
if (output.statusCode >= 300) {
|
|
1427
|
-
return de_UntagResourceCommandError(output, context);
|
|
1428
|
-
}
|
|
1429
|
-
const data = await parseBody(output.body, context);
|
|
1430
|
-
let contents = {};
|
|
1431
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1432
|
-
const response = {
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
...contents,
|
|
1435
|
-
};
|
|
1436
|
-
return response;
|
|
1437
|
-
};
|
|
1438
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1439
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "AccessDeniedException":
|
|
1447
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1448
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ConflictException":
|
|
1450
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1451
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "InternalServerException":
|
|
1453
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ThrottlingException":
|
|
1459
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ValidationException":
|
|
1462
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode,
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
const de_UpdateDomainCommand = async (output, context) => {
|
|
1474
|
-
if (output.statusCode >= 300) {
|
|
1475
|
-
return de_UpdateDomainCommandError(output, context);
|
|
1476
|
-
}
|
|
1477
|
-
const data = await parseBody(output.body, context);
|
|
1478
|
-
let contents = {};
|
|
1479
|
-
contents = de_UpdateDomainResponse(data, context);
|
|
1480
|
-
const response = {
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
...contents,
|
|
1483
|
-
};
|
|
1484
|
-
return response;
|
|
1485
|
-
};
|
|
1486
|
-
exports.de_UpdateDomainCommand = de_UpdateDomainCommand;
|
|
1487
|
-
const de_UpdateDomainCommandError = async (output, context) => {
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "AccessDeniedException":
|
|
1495
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ConflictException":
|
|
1498
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1499
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InternalServerException":
|
|
1501
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ResourceNotFoundException":
|
|
1504
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ThrottlingException":
|
|
1507
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1508
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ValidationException":
|
|
1510
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
const de_UpdateWatchlistCommand = async (output, context) => {
|
|
1522
|
-
if (output.statusCode >= 300) {
|
|
1523
|
-
return de_UpdateWatchlistCommandError(output, context);
|
|
1524
|
-
}
|
|
1525
|
-
const data = await parseBody(output.body, context);
|
|
1526
|
-
let contents = {};
|
|
1527
|
-
contents = de_UpdateWatchlistResponse(data, context);
|
|
1528
|
-
const response = {
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
...contents,
|
|
1531
|
-
};
|
|
1532
|
-
return response;
|
|
1533
|
-
};
|
|
1534
|
-
exports.de_UpdateWatchlistCommand = de_UpdateWatchlistCommand;
|
|
1535
|
-
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "AccessDeniedException":
|
|
1543
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "ConflictException":
|
|
1546
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1547
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "InternalServerException":
|
|
1549
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ResourceNotFoundException":
|
|
1552
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ThrottlingException":
|
|
1555
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ValidationException":
|
|
1558
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode,
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1570
|
-
const body = parsedOutput.body;
|
|
1571
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1572
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1573
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1574
|
-
...deserialized,
|
|
1575
|
-
});
|
|
1576
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1577
|
-
};
|
|
1578
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1579
|
-
const body = parsedOutput.body;
|
|
1580
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1581
|
-
const exception = new models_0_1.ConflictException({
|
|
1582
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1583
|
-
...deserialized,
|
|
1584
|
-
});
|
|
1585
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1586
|
-
};
|
|
1587
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1588
|
-
const body = parsedOutput.body;
|
|
1589
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1590
|
-
const exception = new models_0_1.InternalServerException({
|
|
1591
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1592
|
-
...deserialized,
|
|
1593
|
-
});
|
|
1594
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1595
|
-
};
|
|
1596
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1597
|
-
const body = parsedOutput.body;
|
|
1598
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1599
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1600
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1601
|
-
...deserialized,
|
|
1602
|
-
});
|
|
1603
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1604
|
-
};
|
|
1605
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1606
|
-
const body = parsedOutput.body;
|
|
1607
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1608
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1609
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1610
|
-
...deserialized,
|
|
1611
|
-
});
|
|
1612
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1613
|
-
};
|
|
1614
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1615
|
-
const body = parsedOutput.body;
|
|
1616
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1617
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1618
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1619
|
-
...deserialized,
|
|
1620
|
-
});
|
|
1621
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1622
|
-
};
|
|
1623
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1624
|
-
const body = parsedOutput.body;
|
|
1625
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1626
|
-
const exception = new models_0_1.ValidationException({
|
|
1627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1628
|
-
...deserialized,
|
|
1629
|
-
});
|
|
1630
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1631
|
-
};
|
|
1632
|
-
const se_CreateDomainRequest = (input, context) => {
|
|
1633
|
-
return (0, smithy_client_1.take)(input, {
|
|
1634
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1635
|
-
Description: [],
|
|
1636
|
-
Name: [],
|
|
1637
|
-
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1638
|
-
Tags: smithy_client_1._json,
|
|
1639
|
-
});
|
|
1640
|
-
};
|
|
1641
|
-
const se_CreateWatchlistRequest = (input, context) => {
|
|
1642
|
-
return (0, smithy_client_1.take)(input, {
|
|
1643
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1644
|
-
Description: [],
|
|
1645
|
-
DomainId: [],
|
|
1646
|
-
Name: [],
|
|
1647
|
-
});
|
|
1648
|
-
};
|
|
1649
|
-
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1650
|
-
return (0, smithy_client_1.take)(input, {
|
|
1651
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1652
|
-
DataAccessRoleArn: [],
|
|
1653
|
-
DomainId: [],
|
|
1654
|
-
InputDataConfig: smithy_client_1._json,
|
|
1655
|
-
JobName: [],
|
|
1656
|
-
OutputDataConfig: smithy_client_1._json,
|
|
1657
|
-
RegistrationConfig: smithy_client_1._json,
|
|
1658
|
-
});
|
|
1659
|
-
};
|
|
1660
|
-
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1661
|
-
return (0, smithy_client_1.take)(input, {
|
|
1662
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1663
|
-
DataAccessRoleArn: [],
|
|
1664
|
-
DomainId: [],
|
|
1665
|
-
EnrollmentConfig: smithy_client_1._json,
|
|
1666
|
-
InputDataConfig: smithy_client_1._json,
|
|
1667
|
-
JobName: [],
|
|
1668
|
-
OutputDataConfig: smithy_client_1._json,
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
const de_AssociateFraudsterResponse = (output, context) => {
|
|
1672
|
-
return (0, smithy_client_1.take)(output, {
|
|
1673
|
-
Fraudster: (_) => de_Fraudster(_, context),
|
|
1674
|
-
});
|
|
1675
|
-
};
|
|
1676
|
-
const de_AuthenticationResult = (output, context) => {
|
|
1677
|
-
return (0, smithy_client_1.take)(output, {
|
|
1678
|
-
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1679
|
-
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1680
|
-
AuthenticationResultId: smithy_client_1.expectString,
|
|
1681
|
-
Configuration: smithy_client_1._json,
|
|
1682
|
-
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1683
|
-
Decision: smithy_client_1.expectString,
|
|
1684
|
-
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1685
|
-
Score: smithy_client_1.expectInt32,
|
|
1686
|
-
});
|
|
1687
|
-
};
|
|
1688
|
-
const de_CreateDomainResponse = (output, context) => {
|
|
1689
|
-
return (0, smithy_client_1.take)(output, {
|
|
1690
|
-
Domain: (_) => de_Domain(_, context),
|
|
1691
|
-
});
|
|
1692
|
-
};
|
|
1693
|
-
const de_CreateWatchlistResponse = (output, context) => {
|
|
1694
|
-
return (0, smithy_client_1.take)(output, {
|
|
1695
|
-
Watchlist: (_) => de_Watchlist(_, context),
|
|
1696
|
-
});
|
|
1697
|
-
};
|
|
1698
|
-
const de_DescribeDomainResponse = (output, context) => {
|
|
1699
|
-
return (0, smithy_client_1.take)(output, {
|
|
1700
|
-
Domain: (_) => de_Domain(_, context),
|
|
1701
|
-
});
|
|
1702
|
-
};
|
|
1703
|
-
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
1704
|
-
return (0, smithy_client_1.take)(output, {
|
|
1705
|
-
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1706
|
-
});
|
|
1707
|
-
};
|
|
1708
|
-
const de_DescribeFraudsterResponse = (output, context) => {
|
|
1709
|
-
return (0, smithy_client_1.take)(output, {
|
|
1710
|
-
Fraudster: (_) => de_Fraudster(_, context),
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
1714
|
-
return (0, smithy_client_1.take)(output, {
|
|
1715
|
-
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1716
|
-
});
|
|
1717
|
-
};
|
|
1718
|
-
const de_DescribeSpeakerResponse = (output, context) => {
|
|
1719
|
-
return (0, smithy_client_1.take)(output, {
|
|
1720
|
-
Speaker: (_) => de_Speaker(_, context),
|
|
1721
|
-
});
|
|
1722
|
-
};
|
|
1723
|
-
const de_DescribeWatchlistResponse = (output, context) => {
|
|
1724
|
-
return (0, smithy_client_1.take)(output, {
|
|
1725
|
-
Watchlist: (_) => de_Watchlist(_, context),
|
|
1726
|
-
});
|
|
1727
|
-
};
|
|
1728
|
-
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
1729
|
-
return (0, smithy_client_1.take)(output, {
|
|
1730
|
-
Fraudster: (_) => de_Fraudster(_, context),
|
|
1731
|
-
});
|
|
1732
|
-
};
|
|
1733
|
-
const de_Domain = (output, context) => {
|
|
1734
|
-
return (0, smithy_client_1.take)(output, {
|
|
1735
|
-
Arn: smithy_client_1.expectString,
|
|
1736
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1737
|
-
Description: smithy_client_1.expectString,
|
|
1738
|
-
DomainId: smithy_client_1.expectString,
|
|
1739
|
-
DomainStatus: smithy_client_1.expectString,
|
|
1740
|
-
Name: smithy_client_1.expectString,
|
|
1741
|
-
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1742
|
-
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1743
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1744
|
-
WatchlistDetails: smithy_client_1._json,
|
|
1745
|
-
});
|
|
1746
|
-
};
|
|
1747
|
-
const de_DomainSummaries = (output, context) => {
|
|
1748
|
-
const retVal = (output || [])
|
|
1749
|
-
.filter((e) => e != null)
|
|
1750
|
-
.map((entry) => {
|
|
1751
|
-
return de_DomainSummary(entry, context);
|
|
1752
|
-
});
|
|
1753
|
-
return retVal;
|
|
1754
|
-
};
|
|
1755
|
-
const de_DomainSummary = (output, context) => {
|
|
1756
|
-
return (0, smithy_client_1.take)(output, {
|
|
1757
|
-
Arn: smithy_client_1.expectString,
|
|
1758
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1759
|
-
Description: smithy_client_1.expectString,
|
|
1760
|
-
DomainId: smithy_client_1.expectString,
|
|
1761
|
-
DomainStatus: smithy_client_1.expectString,
|
|
1762
|
-
Name: smithy_client_1.expectString,
|
|
1763
|
-
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1764
|
-
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1765
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1766
|
-
WatchlistDetails: smithy_client_1._json,
|
|
1767
|
-
});
|
|
1768
|
-
};
|
|
1769
|
-
const de_EvaluateSessionResponse = (output, context) => {
|
|
1770
|
-
return (0, smithy_client_1.take)(output, {
|
|
1771
|
-
AuthenticationResult: (_) => de_AuthenticationResult(_, context),
|
|
1772
|
-
DomainId: smithy_client_1.expectString,
|
|
1773
|
-
FraudDetectionResult: (_) => de_FraudDetectionResult(_, context),
|
|
1774
|
-
SessionId: smithy_client_1.expectString,
|
|
1775
|
-
SessionName: smithy_client_1.expectString,
|
|
1776
|
-
StreamingStatus: smithy_client_1.expectString,
|
|
1777
|
-
});
|
|
1778
|
-
};
|
|
1779
|
-
const de_FraudDetectionResult = (output, context) => {
|
|
1780
|
-
return (0, smithy_client_1.take)(output, {
|
|
1781
|
-
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1782
|
-
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1783
|
-
Configuration: smithy_client_1._json,
|
|
1784
|
-
Decision: smithy_client_1.expectString,
|
|
1785
|
-
FraudDetectionResultId: smithy_client_1.expectString,
|
|
1786
|
-
Reasons: smithy_client_1._json,
|
|
1787
|
-
RiskDetails: smithy_client_1._json,
|
|
1788
|
-
});
|
|
1789
|
-
};
|
|
1790
|
-
const de_Fraudster = (output, context) => {
|
|
1791
|
-
return (0, smithy_client_1.take)(output, {
|
|
1792
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1793
|
-
DomainId: smithy_client_1.expectString,
|
|
1794
|
-
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1795
|
-
WatchlistIds: smithy_client_1._json,
|
|
1796
|
-
});
|
|
1797
|
-
};
|
|
1798
|
-
const de_FraudsterRegistrationJob = (output, context) => {
|
|
1799
|
-
return (0, smithy_client_1.take)(output, {
|
|
1800
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1801
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1802
|
-
DomainId: smithy_client_1.expectString,
|
|
1803
|
-
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1804
|
-
FailureDetails: smithy_client_1._json,
|
|
1805
|
-
InputDataConfig: smithy_client_1._json,
|
|
1806
|
-
JobId: smithy_client_1.expectString,
|
|
1807
|
-
JobName: smithy_client_1.expectString,
|
|
1808
|
-
JobProgress: smithy_client_1._json,
|
|
1809
|
-
JobStatus: smithy_client_1.expectString,
|
|
1810
|
-
OutputDataConfig: smithy_client_1._json,
|
|
1811
|
-
RegistrationConfig: smithy_client_1._json,
|
|
1812
|
-
});
|
|
1813
|
-
};
|
|
1814
|
-
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
1815
|
-
const retVal = (output || [])
|
|
1816
|
-
.filter((e) => e != null)
|
|
1817
|
-
.map((entry) => {
|
|
1818
|
-
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
1819
|
-
});
|
|
1820
|
-
return retVal;
|
|
1821
|
-
};
|
|
1822
|
-
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
1823
|
-
return (0, smithy_client_1.take)(output, {
|
|
1824
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1825
|
-
DomainId: smithy_client_1.expectString,
|
|
1826
|
-
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1827
|
-
FailureDetails: smithy_client_1._json,
|
|
1828
|
-
JobId: smithy_client_1.expectString,
|
|
1829
|
-
JobName: smithy_client_1.expectString,
|
|
1830
|
-
JobProgress: smithy_client_1._json,
|
|
1831
|
-
JobStatus: smithy_client_1.expectString,
|
|
1832
|
-
});
|
|
1833
|
-
};
|
|
1834
|
-
const de_FraudsterSummaries = (output, context) => {
|
|
1835
|
-
const retVal = (output || [])
|
|
1836
|
-
.filter((e) => e != null)
|
|
1837
|
-
.map((entry) => {
|
|
1838
|
-
return de_FraudsterSummary(entry, context);
|
|
1839
|
-
});
|
|
1840
|
-
return retVal;
|
|
1841
|
-
};
|
|
1842
|
-
const de_FraudsterSummary = (output, context) => {
|
|
1843
|
-
return (0, smithy_client_1.take)(output, {
|
|
1844
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1845
|
-
DomainId: smithy_client_1.expectString,
|
|
1846
|
-
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1847
|
-
WatchlistIds: smithy_client_1._json,
|
|
1848
|
-
});
|
|
1849
|
-
};
|
|
1850
|
-
const de_ListDomainsResponse = (output, context) => {
|
|
1851
|
-
return (0, smithy_client_1.take)(output, {
|
|
1852
|
-
DomainSummaries: (_) => de_DomainSummaries(_, context),
|
|
1853
|
-
NextToken: smithy_client_1.expectString,
|
|
1854
|
-
});
|
|
1855
|
-
};
|
|
1856
|
-
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
1857
|
-
return (0, smithy_client_1.take)(output, {
|
|
1858
|
-
JobSummaries: (_) => de_FraudsterRegistrationJobSummaries(_, context),
|
|
1859
|
-
NextToken: smithy_client_1.expectString,
|
|
1860
|
-
});
|
|
1861
|
-
};
|
|
1862
|
-
const de_ListFraudstersResponse = (output, context) => {
|
|
1863
|
-
return (0, smithy_client_1.take)(output, {
|
|
1864
|
-
FraudsterSummaries: (_) => de_FraudsterSummaries(_, context),
|
|
1865
|
-
NextToken: smithy_client_1.expectString,
|
|
1866
|
-
});
|
|
1867
|
-
};
|
|
1868
|
-
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
1869
|
-
return (0, smithy_client_1.take)(output, {
|
|
1870
|
-
JobSummaries: (_) => de_SpeakerEnrollmentJobSummaries(_, context),
|
|
1871
|
-
NextToken: smithy_client_1.expectString,
|
|
1872
|
-
});
|
|
1873
|
-
};
|
|
1874
|
-
const de_ListSpeakersResponse = (output, context) => {
|
|
1875
|
-
return (0, smithy_client_1.take)(output, {
|
|
1876
|
-
NextToken: smithy_client_1.expectString,
|
|
1877
|
-
SpeakerSummaries: (_) => de_SpeakerSummaries(_, context),
|
|
1878
|
-
});
|
|
1879
|
-
};
|
|
1880
|
-
const de_ListWatchlistsResponse = (output, context) => {
|
|
1881
|
-
return (0, smithy_client_1.take)(output, {
|
|
1882
|
-
NextToken: smithy_client_1.expectString,
|
|
1883
|
-
WatchlistSummaries: (_) => de_WatchlistSummaries(_, context),
|
|
1884
|
-
});
|
|
1885
|
-
};
|
|
1886
|
-
const de_OptOutSpeakerResponse = (output, context) => {
|
|
1887
|
-
return (0, smithy_client_1.take)(output, {
|
|
1888
|
-
Speaker: (_) => de_Speaker(_, context),
|
|
1889
|
-
});
|
|
1890
|
-
};
|
|
1891
|
-
const de_Speaker = (output, context) => {
|
|
1892
|
-
return (0, smithy_client_1.take)(output, {
|
|
1893
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1894
|
-
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1895
|
-
DomainId: smithy_client_1.expectString,
|
|
1896
|
-
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1897
|
-
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1898
|
-
Status: smithy_client_1.expectString,
|
|
1899
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1900
|
-
});
|
|
1901
|
-
};
|
|
1902
|
-
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
1903
|
-
return (0, smithy_client_1.take)(output, {
|
|
1904
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1905
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1906
|
-
DomainId: smithy_client_1.expectString,
|
|
1907
|
-
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1908
|
-
EnrollmentConfig: smithy_client_1._json,
|
|
1909
|
-
FailureDetails: smithy_client_1._json,
|
|
1910
|
-
InputDataConfig: smithy_client_1._json,
|
|
1911
|
-
JobId: smithy_client_1.expectString,
|
|
1912
|
-
JobName: smithy_client_1.expectString,
|
|
1913
|
-
JobProgress: smithy_client_1._json,
|
|
1914
|
-
JobStatus: smithy_client_1.expectString,
|
|
1915
|
-
OutputDataConfig: smithy_client_1._json,
|
|
1916
|
-
});
|
|
1917
|
-
};
|
|
1918
|
-
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
1919
|
-
const retVal = (output || [])
|
|
1920
|
-
.filter((e) => e != null)
|
|
1921
|
-
.map((entry) => {
|
|
1922
|
-
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
1923
|
-
});
|
|
1924
|
-
return retVal;
|
|
1925
|
-
};
|
|
1926
|
-
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
1927
|
-
return (0, smithy_client_1.take)(output, {
|
|
1928
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1929
|
-
DomainId: smithy_client_1.expectString,
|
|
1930
|
-
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1931
|
-
FailureDetails: smithy_client_1._json,
|
|
1932
|
-
JobId: smithy_client_1.expectString,
|
|
1933
|
-
JobName: smithy_client_1.expectString,
|
|
1934
|
-
JobProgress: smithy_client_1._json,
|
|
1935
|
-
JobStatus: smithy_client_1.expectString,
|
|
1936
|
-
});
|
|
1937
|
-
};
|
|
1938
|
-
const de_SpeakerSummaries = (output, context) => {
|
|
1939
|
-
const retVal = (output || [])
|
|
1940
|
-
.filter((e) => e != null)
|
|
1941
|
-
.map((entry) => {
|
|
1942
|
-
return de_SpeakerSummary(entry, context);
|
|
1943
|
-
});
|
|
1944
|
-
return retVal;
|
|
1945
|
-
};
|
|
1946
|
-
const de_SpeakerSummary = (output, context) => {
|
|
1947
|
-
return (0, smithy_client_1.take)(output, {
|
|
1948
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1949
|
-
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1950
|
-
DomainId: smithy_client_1.expectString,
|
|
1951
|
-
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1952
|
-
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1953
|
-
Status: smithy_client_1.expectString,
|
|
1954
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1955
|
-
});
|
|
1956
|
-
};
|
|
1957
|
-
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
1958
|
-
return (0, smithy_client_1.take)(output, {
|
|
1959
|
-
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1960
|
-
});
|
|
1961
|
-
};
|
|
1962
|
-
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
1963
|
-
return (0, smithy_client_1.take)(output, {
|
|
1964
|
-
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1965
|
-
});
|
|
1966
|
-
};
|
|
1967
|
-
const de_UpdateDomainResponse = (output, context) => {
|
|
1968
|
-
return (0, smithy_client_1.take)(output, {
|
|
1969
|
-
Domain: (_) => de_Domain(_, context),
|
|
1970
|
-
});
|
|
1971
|
-
};
|
|
1972
|
-
const de_UpdateWatchlistResponse = (output, context) => {
|
|
1973
|
-
return (0, smithy_client_1.take)(output, {
|
|
1974
|
-
Watchlist: (_) => de_Watchlist(_, context),
|
|
1975
|
-
});
|
|
1976
|
-
};
|
|
1977
|
-
const de_Watchlist = (output, context) => {
|
|
1978
|
-
return (0, smithy_client_1.take)(output, {
|
|
1979
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1980
|
-
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
1981
|
-
Description: smithy_client_1.expectString,
|
|
1982
|
-
DomainId: smithy_client_1.expectString,
|
|
1983
|
-
Name: smithy_client_1.expectString,
|
|
1984
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1985
|
-
WatchlistId: smithy_client_1.expectString,
|
|
1986
|
-
});
|
|
1987
|
-
};
|
|
1988
|
-
const de_WatchlistSummaries = (output, context) => {
|
|
1989
|
-
const retVal = (output || [])
|
|
1990
|
-
.filter((e) => e != null)
|
|
1991
|
-
.map((entry) => {
|
|
1992
|
-
return de_WatchlistSummary(entry, context);
|
|
1993
|
-
});
|
|
1994
|
-
return retVal;
|
|
1995
|
-
};
|
|
1996
|
-
const de_WatchlistSummary = (output, context) => {
|
|
1997
|
-
return (0, smithy_client_1.take)(output, {
|
|
1998
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1999
|
-
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
2000
|
-
Description: smithy_client_1.expectString,
|
|
2001
|
-
DomainId: smithy_client_1.expectString,
|
|
2002
|
-
Name: smithy_client_1.expectString,
|
|
2003
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2004
|
-
WatchlistId: smithy_client_1.expectString,
|
|
2005
|
-
});
|
|
2006
|
-
};
|
|
2007
|
-
const deserializeMetadata = (output) => ({
|
|
2008
|
-
httpStatusCode: output.statusCode,
|
|
2009
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2010
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2011
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2012
|
-
});
|
|
2013
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2014
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(VoiceIDServiceException_1.VoiceIDServiceException);
|
|
2015
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2016
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2017
|
-
const contents = {
|
|
2018
|
-
protocol,
|
|
2019
|
-
hostname,
|
|
2020
|
-
port,
|
|
2021
|
-
method: "POST",
|
|
2022
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2023
|
-
headers,
|
|
2024
|
-
};
|
|
2025
|
-
if (resolvedHostname !== undefined) {
|
|
2026
|
-
contents.hostname = resolvedHostname;
|
|
2027
|
-
}
|
|
2028
|
-
if (body !== undefined) {
|
|
2029
|
-
contents.body = body;
|
|
2030
|
-
}
|
|
2031
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
2032
|
-
};
|
|
2033
|
-
function sharedHeaders(operation) {
|
|
2034
|
-
return {
|
|
2035
|
-
"content-type": "application/x-amz-json-1.0",
|
|
2036
|
-
"x-amz-target": `VoiceID.${operation}`,
|
|
2037
|
-
};
|
|
2038
|
-
}
|
|
2039
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2040
|
-
if (encoded.length) {
|
|
2041
|
-
return JSON.parse(encoded);
|
|
2042
|
-
}
|
|
2043
|
-
return {};
|
|
2044
|
-
});
|
|
2045
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2046
|
-
const value = await parseBody(errorBody, context);
|
|
2047
|
-
value.message = value.message ?? value.Message;
|
|
2048
|
-
return value;
|
|
2049
|
-
};
|
|
2050
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2051
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2052
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2053
|
-
let cleanValue = rawValue;
|
|
2054
|
-
if (typeof cleanValue === "number") {
|
|
2055
|
-
cleanValue = cleanValue.toString();
|
|
2056
|
-
}
|
|
2057
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2058
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2059
|
-
}
|
|
2060
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2061
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2062
|
-
}
|
|
2063
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2064
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2065
|
-
}
|
|
2066
|
-
return cleanValue;
|
|
2067
|
-
};
|
|
2068
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2069
|
-
if (headerKey !== undefined) {
|
|
2070
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2071
|
-
}
|
|
2072
|
-
if (data.code !== undefined) {
|
|
2073
|
-
return sanitizeErrorCode(data.code);
|
|
2074
|
-
}
|
|
2075
|
-
if (data["__type"] !== undefined) {
|
|
2076
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2077
|
-
}
|
|
2078
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|