@aws-sdk/client-voice-id 3.299.0 → 3.301.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/README.md +73 -9
- package/dist-cjs/VoiceID.js +120 -0
- package/dist-cjs/commands/AssociateFraudsterCommand.js +46 -0
- package/dist-cjs/commands/CreateWatchlistCommand.js +46 -0
- package/dist-cjs/commands/DeleteWatchlistCommand.js +45 -0
- package/dist-cjs/commands/DescribeWatchlistCommand.js +46 -0
- package/dist-cjs/commands/DisassociateFraudsterCommand.js +46 -0
- package/dist-cjs/commands/ListFraudstersCommand.js +45 -0
- package/dist-cjs/commands/ListWatchlistsCommand.js +46 -0
- package/dist-cjs/commands/UpdateWatchlistCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +83 -24
- package/dist-cjs/pagination/ListFraudstersPaginator.js +29 -0
- package/dist-cjs/pagination/ListWatchlistsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_0.js +722 -29
- package/dist-es/VoiceID.js +120 -0
- package/dist-es/commands/AssociateFraudsterCommand.js +42 -0
- package/dist-es/commands/CreateWatchlistCommand.js +42 -0
- package/dist-es/commands/DeleteWatchlistCommand.js +41 -0
- package/dist-es/commands/DescribeWatchlistCommand.js +42 -0
- package/dist-es/commands/DisassociateFraudsterCommand.js +42 -0
- package/dist-es/commands/ListFraudstersCommand.js +41 -0
- package/dist-es/commands/ListWatchlistsCommand.js +42 -0
- package/dist-es/commands/UpdateWatchlistCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +71 -22
- package/dist-es/pagination/ListFraudstersPaginator.js +25 -0
- package/dist-es/pagination/ListWatchlistsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +707 -31
- package/dist-types/VoiceID.d.ts +74 -4
- package/dist-types/VoiceIDClient.d.ts +12 -4
- package/dist-types/commands/AssociateFraudsterCommand.d.ts +93 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +15 -1
- package/dist-types/commands/CreateWatchlistCommand.d.ts +94 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +3 -0
- package/dist-types/commands/DeleteFraudsterCommand.d.ts +5 -1
- package/dist-types/commands/DeleteSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/DeleteWatchlistCommand.d.ts +91 -0
- package/dist-types/commands/DescribeDomainCommand.d.ts +3 -0
- package/dist-types/commands/DescribeFraudsterCommand.d.ts +4 -0
- package/dist-types/commands/DescribeFraudsterRegistrationJobCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSpeakerEnrollmentJobCommand.d.ts +4 -0
- package/dist-types/commands/DescribeWatchlistCommand.d.ts +85 -0
- package/dist-types/commands/DisassociateFraudsterCommand.d.ts +93 -0
- package/dist-types/commands/EvaluateSessionCommand.d.ts +4 -0
- package/dist-types/commands/ListDomainsCommand.d.ts +4 -0
- package/dist-types/commands/ListFraudsterRegistrationJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListFraudstersCommand.d.ts +87 -0
- package/dist-types/commands/ListSpeakerEnrollmentJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListSpeakersCommand.d.ts +5 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListWatchlistsCommand.d.ts +86 -0
- package/dist-types/commands/OptOutSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/StartFraudsterRegistrationJobCommand.d.ts +20 -0
- package/dist-types/commands/StartSpeakerEnrollmentJobCommand.d.ts +23 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateDomainCommand.d.ts +8 -0
- package/dist-types/commands/UpdateWatchlistCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +621 -214
- package/dist-types/pagination/ListFraudstersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWatchlistsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +24 -0
- package/dist-types/ts3.4/VoiceID.d.ts +136 -0
- package/dist-types/ts3.4/VoiceIDClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/AssociateFraudsterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateWatchlistCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteWatchlistCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DescribeWatchlistCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateFraudsterCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFraudstersCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListWatchlistsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateWatchlistCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +197 -69
- package/dist-types/ts3.4/pagination/ListFraudstersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWatchlistsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
- package/package.json +8 -8
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListSpeakersCommand = exports.deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = exports.deserializeAws_json1_0ListFraudstersCommand = exports.deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = exports.deserializeAws_json1_0ListDomainsCommand = exports.deserializeAws_json1_0EvaluateSessionCommand = exports.deserializeAws_json1_0DisassociateFraudsterCommand = exports.deserializeAws_json1_0DescribeWatchlistCommand = exports.deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = exports.deserializeAws_json1_0DescribeSpeakerCommand = exports.deserializeAws_json1_0DescribeFraudsterRegistrationJobCommand = exports.deserializeAws_json1_0DescribeFraudsterCommand = exports.deserializeAws_json1_0DescribeDomainCommand = exports.deserializeAws_json1_0DeleteWatchlistCommand = exports.deserializeAws_json1_0DeleteSpeakerCommand = exports.deserializeAws_json1_0DeleteFraudsterCommand = exports.deserializeAws_json1_0DeleteDomainCommand = exports.deserializeAws_json1_0CreateWatchlistCommand = exports.deserializeAws_json1_0CreateDomainCommand = exports.deserializeAws_json1_0AssociateFraudsterCommand = exports.serializeAws_json1_0UpdateWatchlistCommand = exports.serializeAws_json1_0UpdateDomainCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StartSpeakerEnrollmentJobCommand = exports.serializeAws_json1_0StartFraudsterRegistrationJobCommand = exports.serializeAws_json1_0OptOutSpeakerCommand = exports.serializeAws_json1_0ListWatchlistsCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListSpeakersCommand = exports.serializeAws_json1_0ListSpeakerEnrollmentJobsCommand = exports.serializeAws_json1_0ListFraudstersCommand = exports.serializeAws_json1_0ListFraudsterRegistrationJobsCommand = exports.serializeAws_json1_0ListDomainsCommand = exports.serializeAws_json1_0EvaluateSessionCommand = exports.serializeAws_json1_0DisassociateFraudsterCommand = exports.serializeAws_json1_0DescribeWatchlistCommand = exports.serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = exports.serializeAws_json1_0DescribeSpeakerCommand = exports.serializeAws_json1_0DescribeFraudsterRegistrationJobCommand = exports.serializeAws_json1_0DescribeFraudsterCommand = exports.serializeAws_json1_0DescribeDomainCommand = exports.serializeAws_json1_0DeleteWatchlistCommand = exports.serializeAws_json1_0DeleteSpeakerCommand = exports.serializeAws_json1_0DeleteFraudsterCommand = exports.serializeAws_json1_0DeleteDomainCommand = exports.serializeAws_json1_0CreateWatchlistCommand = exports.serializeAws_json1_0CreateDomainCommand = exports.serializeAws_json1_0AssociateFraudsterCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateWatchlistCommand = exports.deserializeAws_json1_0UpdateDomainCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StartSpeakerEnrollmentJobCommand = exports.deserializeAws_json1_0StartFraudsterRegistrationJobCommand = exports.deserializeAws_json1_0OptOutSpeakerCommand = exports.deserializeAws_json1_0ListWatchlistsCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
7
8
|
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const VoiceIDServiceException_1 = require("../models/VoiceIDServiceException");
|
|
10
|
+
const serializeAws_json1_0AssociateFraudsterCommand = async (input, context) => {
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/x-amz-json-1.0",
|
|
13
|
+
"x-amz-target": "VoiceID.AssociateFraudster",
|
|
14
|
+
};
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(serializeAws_json1_0AssociateFraudsterRequest(input, context));
|
|
17
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
+
};
|
|
19
|
+
exports.serializeAws_json1_0AssociateFraudsterCommand = serializeAws_json1_0AssociateFraudsterCommand;
|
|
9
20
|
const serializeAws_json1_0CreateDomainCommand = async (input, context) => {
|
|
10
21
|
const headers = {
|
|
11
22
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -16,6 +27,16 @@ const serializeAws_json1_0CreateDomainCommand = async (input, context) => {
|
|
|
16
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
28
|
};
|
|
18
29
|
exports.serializeAws_json1_0CreateDomainCommand = serializeAws_json1_0CreateDomainCommand;
|
|
30
|
+
const serializeAws_json1_0CreateWatchlistCommand = async (input, context) => {
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.0",
|
|
33
|
+
"x-amz-target": "VoiceID.CreateWatchlist",
|
|
34
|
+
};
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_0CreateWatchlistRequest(input, context));
|
|
37
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
+
};
|
|
39
|
+
exports.serializeAws_json1_0CreateWatchlistCommand = serializeAws_json1_0CreateWatchlistCommand;
|
|
19
40
|
const serializeAws_json1_0DeleteDomainCommand = async (input, context) => {
|
|
20
41
|
const headers = {
|
|
21
42
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -46,6 +67,16 @@ const serializeAws_json1_0DeleteSpeakerCommand = async (input, context) => {
|
|
|
46
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
68
|
};
|
|
48
69
|
exports.serializeAws_json1_0DeleteSpeakerCommand = serializeAws_json1_0DeleteSpeakerCommand;
|
|
70
|
+
const serializeAws_json1_0DeleteWatchlistCommand = async (input, context) => {
|
|
71
|
+
const headers = {
|
|
72
|
+
"content-type": "application/x-amz-json-1.0",
|
|
73
|
+
"x-amz-target": "VoiceID.DeleteWatchlist",
|
|
74
|
+
};
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(serializeAws_json1_0DeleteWatchlistRequest(input, context));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
exports.serializeAws_json1_0DeleteWatchlistCommand = serializeAws_json1_0DeleteWatchlistCommand;
|
|
49
80
|
const serializeAws_json1_0DescribeDomainCommand = async (input, context) => {
|
|
50
81
|
const headers = {
|
|
51
82
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -96,6 +127,26 @@ const serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = async (input, co
|
|
|
96
127
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
128
|
};
|
|
98
129
|
exports.serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand;
|
|
130
|
+
const serializeAws_json1_0DescribeWatchlistCommand = async (input, context) => {
|
|
131
|
+
const headers = {
|
|
132
|
+
"content-type": "application/x-amz-json-1.0",
|
|
133
|
+
"x-amz-target": "VoiceID.DescribeWatchlist",
|
|
134
|
+
};
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(serializeAws_json1_0DescribeWatchlistRequest(input, context));
|
|
137
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
+
};
|
|
139
|
+
exports.serializeAws_json1_0DescribeWatchlistCommand = serializeAws_json1_0DescribeWatchlistCommand;
|
|
140
|
+
const serializeAws_json1_0DisassociateFraudsterCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "VoiceID.DisassociateFraudster",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_0DisassociateFraudsterRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
exports.serializeAws_json1_0DisassociateFraudsterCommand = serializeAws_json1_0DisassociateFraudsterCommand;
|
|
99
150
|
const serializeAws_json1_0EvaluateSessionCommand = async (input, context) => {
|
|
100
151
|
const headers = {
|
|
101
152
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -126,6 +177,16 @@ const serializeAws_json1_0ListFraudsterRegistrationJobsCommand = async (input, c
|
|
|
126
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
178
|
};
|
|
128
179
|
exports.serializeAws_json1_0ListFraudsterRegistrationJobsCommand = serializeAws_json1_0ListFraudsterRegistrationJobsCommand;
|
|
180
|
+
const serializeAws_json1_0ListFraudstersCommand = async (input, context) => {
|
|
181
|
+
const headers = {
|
|
182
|
+
"content-type": "application/x-amz-json-1.0",
|
|
183
|
+
"x-amz-target": "VoiceID.ListFraudsters",
|
|
184
|
+
};
|
|
185
|
+
let body;
|
|
186
|
+
body = JSON.stringify(serializeAws_json1_0ListFraudstersRequest(input, context));
|
|
187
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
|
+
};
|
|
189
|
+
exports.serializeAws_json1_0ListFraudstersCommand = serializeAws_json1_0ListFraudstersCommand;
|
|
129
190
|
const serializeAws_json1_0ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
130
191
|
const headers = {
|
|
131
192
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -156,6 +217,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
156
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
218
|
};
|
|
158
219
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
220
|
+
const serializeAws_json1_0ListWatchlistsCommand = async (input, context) => {
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/x-amz-json-1.0",
|
|
223
|
+
"x-amz-target": "VoiceID.ListWatchlists",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(serializeAws_json1_0ListWatchlistsRequest(input, context));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
229
|
+
exports.serializeAws_json1_0ListWatchlistsCommand = serializeAws_json1_0ListWatchlistsCommand;
|
|
159
230
|
const serializeAws_json1_0OptOutSpeakerCommand = async (input, context) => {
|
|
160
231
|
const headers = {
|
|
161
232
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -216,6 +287,68 @@ const serializeAws_json1_0UpdateDomainCommand = async (input, context) => {
|
|
|
216
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
288
|
};
|
|
218
289
|
exports.serializeAws_json1_0UpdateDomainCommand = serializeAws_json1_0UpdateDomainCommand;
|
|
290
|
+
const serializeAws_json1_0UpdateWatchlistCommand = async (input, context) => {
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/x-amz-json-1.0",
|
|
293
|
+
"x-amz-target": "VoiceID.UpdateWatchlist",
|
|
294
|
+
};
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(serializeAws_json1_0UpdateWatchlistRequest(input, context));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
exports.serializeAws_json1_0UpdateWatchlistCommand = serializeAws_json1_0UpdateWatchlistCommand;
|
|
300
|
+
const deserializeAws_json1_0AssociateFraudsterCommand = async (output, context) => {
|
|
301
|
+
if (output.statusCode >= 300) {
|
|
302
|
+
return deserializeAws_json1_0AssociateFraudsterCommandError(output, context);
|
|
303
|
+
}
|
|
304
|
+
const data = await parseBody(output.body, context);
|
|
305
|
+
let contents = {};
|
|
306
|
+
contents = deserializeAws_json1_0AssociateFraudsterResponse(data, context);
|
|
307
|
+
const response = {
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
...contents,
|
|
310
|
+
};
|
|
311
|
+
return Promise.resolve(response);
|
|
312
|
+
};
|
|
313
|
+
exports.deserializeAws_json1_0AssociateFraudsterCommand = deserializeAws_json1_0AssociateFraudsterCommand;
|
|
314
|
+
const deserializeAws_json1_0AssociateFraudsterCommandError = async (output, context) => {
|
|
315
|
+
const parsedOutput = {
|
|
316
|
+
...output,
|
|
317
|
+
body: await parseErrorBody(output.body, context),
|
|
318
|
+
};
|
|
319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
|
+
switch (errorCode) {
|
|
321
|
+
case "AccessDeniedException":
|
|
322
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
323
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
324
|
+
case "ConflictException":
|
|
325
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
326
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
327
|
+
case "InternalServerException":
|
|
328
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
329
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
330
|
+
case "ResourceNotFoundException":
|
|
331
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
332
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
333
|
+
case "ServiceQuotaExceededException":
|
|
334
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
335
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
336
|
+
case "ThrottlingException":
|
|
337
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
338
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
339
|
+
case "ValidationException":
|
|
340
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
341
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
342
|
+
default:
|
|
343
|
+
const parsedBody = parsedOutput.body;
|
|
344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
345
|
+
output,
|
|
346
|
+
parsedBody,
|
|
347
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
348
|
+
errorCode,
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
};
|
|
219
352
|
const deserializeAws_json1_0CreateDomainCommand = async (output, context) => {
|
|
220
353
|
if (output.statusCode >= 300) {
|
|
221
354
|
return deserializeAws_json1_0CreateDomainCommandError(output, context);
|
|
@@ -268,6 +401,58 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
268
401
|
});
|
|
269
402
|
}
|
|
270
403
|
};
|
|
404
|
+
const deserializeAws_json1_0CreateWatchlistCommand = async (output, context) => {
|
|
405
|
+
if (output.statusCode >= 300) {
|
|
406
|
+
return deserializeAws_json1_0CreateWatchlistCommandError(output, context);
|
|
407
|
+
}
|
|
408
|
+
const data = await parseBody(output.body, context);
|
|
409
|
+
let contents = {};
|
|
410
|
+
contents = deserializeAws_json1_0CreateWatchlistResponse(data, context);
|
|
411
|
+
const response = {
|
|
412
|
+
$metadata: deserializeMetadata(output),
|
|
413
|
+
...contents,
|
|
414
|
+
};
|
|
415
|
+
return Promise.resolve(response);
|
|
416
|
+
};
|
|
417
|
+
exports.deserializeAws_json1_0CreateWatchlistCommand = deserializeAws_json1_0CreateWatchlistCommand;
|
|
418
|
+
const deserializeAws_json1_0CreateWatchlistCommandError = async (output, context) => {
|
|
419
|
+
const parsedOutput = {
|
|
420
|
+
...output,
|
|
421
|
+
body: await parseErrorBody(output.body, context),
|
|
422
|
+
};
|
|
423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
424
|
+
switch (errorCode) {
|
|
425
|
+
case "AccessDeniedException":
|
|
426
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
427
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
428
|
+
case "ConflictException":
|
|
429
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
430
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
431
|
+
case "InternalServerException":
|
|
432
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
433
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
434
|
+
case "ResourceNotFoundException":
|
|
435
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
436
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
437
|
+
case "ServiceQuotaExceededException":
|
|
438
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
439
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
440
|
+
case "ThrottlingException":
|
|
441
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
442
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
443
|
+
case "ValidationException":
|
|
444
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
445
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
446
|
+
default:
|
|
447
|
+
const parsedBody = parsedOutput.body;
|
|
448
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
449
|
+
output,
|
|
450
|
+
parsedBody,
|
|
451
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
452
|
+
errorCode,
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
};
|
|
271
456
|
const deserializeAws_json1_0DeleteDomainCommand = async (output, context) => {
|
|
272
457
|
if (output.statusCode >= 300) {
|
|
273
458
|
return deserializeAws_json1_0DeleteDomainCommandError(output, context);
|
|
@@ -406,6 +591,52 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
406
591
|
});
|
|
407
592
|
}
|
|
408
593
|
};
|
|
594
|
+
const deserializeAws_json1_0DeleteWatchlistCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return deserializeAws_json1_0DeleteWatchlistCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
await collectBody(output.body, context);
|
|
599
|
+
const response = {
|
|
600
|
+
$metadata: deserializeMetadata(output),
|
|
601
|
+
};
|
|
602
|
+
return Promise.resolve(response);
|
|
603
|
+
};
|
|
604
|
+
exports.deserializeAws_json1_0DeleteWatchlistCommand = deserializeAws_json1_0DeleteWatchlistCommand;
|
|
605
|
+
const deserializeAws_json1_0DeleteWatchlistCommandError = 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 deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
615
|
+
case "ConflictException":
|
|
616
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
617
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
618
|
+
case "InternalServerException":
|
|
619
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
620
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
621
|
+
case "ResourceNotFoundException":
|
|
622
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
623
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
624
|
+
case "ThrottlingException":
|
|
625
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
626
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
627
|
+
case "ValidationException":
|
|
628
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
629
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
630
|
+
default:
|
|
631
|
+
const parsedBody = parsedOutput.body;
|
|
632
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
633
|
+
output,
|
|
634
|
+
parsedBody,
|
|
635
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
636
|
+
errorCode,
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
};
|
|
409
640
|
const deserializeAws_json1_0DescribeDomainCommand = async (output, context) => {
|
|
410
641
|
if (output.statusCode >= 300) {
|
|
411
642
|
return deserializeAws_json1_0DescribeDomainCommandError(output, context);
|
|
@@ -636,6 +867,101 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
636
867
|
});
|
|
637
868
|
}
|
|
638
869
|
};
|
|
870
|
+
const deserializeAws_json1_0DescribeWatchlistCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode >= 300) {
|
|
872
|
+
return deserializeAws_json1_0DescribeWatchlistCommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const data = await parseBody(output.body, context);
|
|
875
|
+
let contents = {};
|
|
876
|
+
contents = deserializeAws_json1_0DescribeWatchlistResponse(data, context);
|
|
877
|
+
const response = {
|
|
878
|
+
$metadata: deserializeMetadata(output),
|
|
879
|
+
...contents,
|
|
880
|
+
};
|
|
881
|
+
return Promise.resolve(response);
|
|
882
|
+
};
|
|
883
|
+
exports.deserializeAws_json1_0DescribeWatchlistCommand = deserializeAws_json1_0DescribeWatchlistCommand;
|
|
884
|
+
const deserializeAws_json1_0DescribeWatchlistCommandError = async (output, context) => {
|
|
885
|
+
const parsedOutput = {
|
|
886
|
+
...output,
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
|
+
};
|
|
889
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
+
switch (errorCode) {
|
|
891
|
+
case "AccessDeniedException":
|
|
892
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
893
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
894
|
+
case "InternalServerException":
|
|
895
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
896
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
897
|
+
case "ResourceNotFoundException":
|
|
898
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
899
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
900
|
+
case "ThrottlingException":
|
|
901
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
902
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
903
|
+
case "ValidationException":
|
|
904
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
905
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
906
|
+
default:
|
|
907
|
+
const parsedBody = parsedOutput.body;
|
|
908
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
909
|
+
output,
|
|
910
|
+
parsedBody,
|
|
911
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
912
|
+
errorCode,
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
const deserializeAws_json1_0DisassociateFraudsterCommand = async (output, context) => {
|
|
917
|
+
if (output.statusCode >= 300) {
|
|
918
|
+
return deserializeAws_json1_0DisassociateFraudsterCommandError(output, context);
|
|
919
|
+
}
|
|
920
|
+
const data = await parseBody(output.body, context);
|
|
921
|
+
let contents = {};
|
|
922
|
+
contents = deserializeAws_json1_0DisassociateFraudsterResponse(data, context);
|
|
923
|
+
const response = {
|
|
924
|
+
$metadata: deserializeMetadata(output),
|
|
925
|
+
...contents,
|
|
926
|
+
};
|
|
927
|
+
return Promise.resolve(response);
|
|
928
|
+
};
|
|
929
|
+
exports.deserializeAws_json1_0DisassociateFraudsterCommand = deserializeAws_json1_0DisassociateFraudsterCommand;
|
|
930
|
+
const deserializeAws_json1_0DisassociateFraudsterCommandError = async (output, context) => {
|
|
931
|
+
const parsedOutput = {
|
|
932
|
+
...output,
|
|
933
|
+
body: await parseErrorBody(output.body, context),
|
|
934
|
+
};
|
|
935
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
+
switch (errorCode) {
|
|
937
|
+
case "AccessDeniedException":
|
|
938
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
939
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
940
|
+
case "ConflictException":
|
|
941
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
942
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
943
|
+
case "InternalServerException":
|
|
944
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
945
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
946
|
+
case "ResourceNotFoundException":
|
|
947
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
948
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "ThrottlingException":
|
|
950
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
951
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
952
|
+
case "ValidationException":
|
|
953
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
954
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
955
|
+
default:
|
|
956
|
+
const parsedBody = parsedOutput.body;
|
|
957
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
958
|
+
output,
|
|
959
|
+
parsedBody,
|
|
960
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
961
|
+
errorCode,
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
};
|
|
639
965
|
const deserializeAws_json1_0EvaluateSessionCommand = async (output, context) => {
|
|
640
966
|
if (output.statusCode >= 300) {
|
|
641
967
|
return deserializeAws_json1_0EvaluateSessionCommandError(output, context);
|
|
@@ -660,9 +986,98 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
660
986
|
case "AccessDeniedException":
|
|
661
987
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
662
988
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
663
|
-
case "ConflictException":
|
|
664
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
665
|
-
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
989
|
+
case "ConflictException":
|
|
990
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
991
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
992
|
+
case "InternalServerException":
|
|
993
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
994
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
995
|
+
case "ResourceNotFoundException":
|
|
996
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
997
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
998
|
+
case "ThrottlingException":
|
|
999
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1000
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1001
|
+
case "ValidationException":
|
|
1002
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
1003
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1004
|
+
default:
|
|
1005
|
+
const parsedBody = parsedOutput.body;
|
|
1006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1007
|
+
output,
|
|
1008
|
+
parsedBody,
|
|
1009
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1010
|
+
errorCode,
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
const deserializeAws_json1_0ListDomainsCommand = async (output, context) => {
|
|
1015
|
+
if (output.statusCode >= 300) {
|
|
1016
|
+
return deserializeAws_json1_0ListDomainsCommandError(output, context);
|
|
1017
|
+
}
|
|
1018
|
+
const data = await parseBody(output.body, context);
|
|
1019
|
+
let contents = {};
|
|
1020
|
+
contents = deserializeAws_json1_0ListDomainsResponse(data, context);
|
|
1021
|
+
const response = {
|
|
1022
|
+
$metadata: deserializeMetadata(output),
|
|
1023
|
+
...contents,
|
|
1024
|
+
};
|
|
1025
|
+
return Promise.resolve(response);
|
|
1026
|
+
};
|
|
1027
|
+
exports.deserializeAws_json1_0ListDomainsCommand = deserializeAws_json1_0ListDomainsCommand;
|
|
1028
|
+
const deserializeAws_json1_0ListDomainsCommandError = async (output, context) => {
|
|
1029
|
+
const parsedOutput = {
|
|
1030
|
+
...output,
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
|
+
};
|
|
1033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
+
switch (errorCode) {
|
|
1035
|
+
case "AccessDeniedException":
|
|
1036
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1037
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1038
|
+
case "InternalServerException":
|
|
1039
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
1040
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1041
|
+
case "ThrottlingException":
|
|
1042
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1043
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1044
|
+
case "ValidationException":
|
|
1045
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
1046
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1047
|
+
default:
|
|
1048
|
+
const parsedBody = parsedOutput.body;
|
|
1049
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1050
|
+
output,
|
|
1051
|
+
parsedBody,
|
|
1052
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1053
|
+
errorCode,
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
const deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
1058
|
+
if (output.statusCode >= 300) {
|
|
1059
|
+
return deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError(output, context);
|
|
1060
|
+
}
|
|
1061
|
+
const data = await parseBody(output.body, context);
|
|
1062
|
+
let contents = {};
|
|
1063
|
+
contents = deserializeAws_json1_0ListFraudsterRegistrationJobsResponse(data, context);
|
|
1064
|
+
const response = {
|
|
1065
|
+
$metadata: deserializeMetadata(output),
|
|
1066
|
+
...contents,
|
|
1067
|
+
};
|
|
1068
|
+
return Promise.resolve(response);
|
|
1069
|
+
};
|
|
1070
|
+
exports.deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = deserializeAws_json1_0ListFraudsterRegistrationJobsCommand;
|
|
1071
|
+
const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
1072
|
+
const parsedOutput = {
|
|
1073
|
+
...output,
|
|
1074
|
+
body: await parseErrorBody(output.body, context),
|
|
1075
|
+
};
|
|
1076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
switch (errorCode) {
|
|
1078
|
+
case "AccessDeniedException":
|
|
1079
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1080
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
666
1081
|
case "InternalServerException":
|
|
667
1082
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
668
1083
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -685,21 +1100,21 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
685
1100
|
});
|
|
686
1101
|
}
|
|
687
1102
|
};
|
|
688
|
-
const
|
|
1103
|
+
const deserializeAws_json1_0ListFraudstersCommand = async (output, context) => {
|
|
689
1104
|
if (output.statusCode >= 300) {
|
|
690
|
-
return
|
|
1105
|
+
return deserializeAws_json1_0ListFraudstersCommandError(output, context);
|
|
691
1106
|
}
|
|
692
1107
|
const data = await parseBody(output.body, context);
|
|
693
1108
|
let contents = {};
|
|
694
|
-
contents =
|
|
1109
|
+
contents = deserializeAws_json1_0ListFraudstersResponse(data, context);
|
|
695
1110
|
const response = {
|
|
696
1111
|
$metadata: deserializeMetadata(output),
|
|
697
1112
|
...contents,
|
|
698
1113
|
};
|
|
699
1114
|
return Promise.resolve(response);
|
|
700
1115
|
};
|
|
701
|
-
exports.
|
|
702
|
-
const
|
|
1116
|
+
exports.deserializeAws_json1_0ListFraudstersCommand = deserializeAws_json1_0ListFraudstersCommand;
|
|
1117
|
+
const deserializeAws_json1_0ListFraudstersCommandError = async (output, context) => {
|
|
703
1118
|
const parsedOutput = {
|
|
704
1119
|
...output,
|
|
705
1120
|
body: await parseErrorBody(output.body, context),
|
|
@@ -712,6 +1127,9 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
712
1127
|
case "InternalServerException":
|
|
713
1128
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
714
1129
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1130
|
+
case "ResourceNotFoundException":
|
|
1131
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1132
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
715
1133
|
case "ThrottlingException":
|
|
716
1134
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
717
1135
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -728,21 +1146,21 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
728
1146
|
});
|
|
729
1147
|
}
|
|
730
1148
|
};
|
|
731
|
-
const
|
|
1149
|
+
const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
732
1150
|
if (output.statusCode >= 300) {
|
|
733
|
-
return
|
|
1151
|
+
return deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError(output, context);
|
|
734
1152
|
}
|
|
735
1153
|
const data = await parseBody(output.body, context);
|
|
736
1154
|
let contents = {};
|
|
737
|
-
contents =
|
|
1155
|
+
contents = deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse(data, context);
|
|
738
1156
|
const response = {
|
|
739
1157
|
$metadata: deserializeMetadata(output),
|
|
740
1158
|
...contents,
|
|
741
1159
|
};
|
|
742
1160
|
return Promise.resolve(response);
|
|
743
1161
|
};
|
|
744
|
-
exports.
|
|
745
|
-
const
|
|
1162
|
+
exports.deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand;
|
|
1163
|
+
const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
746
1164
|
const parsedOutput = {
|
|
747
1165
|
...output,
|
|
748
1166
|
body: await parseErrorBody(output.body, context),
|
|
@@ -774,21 +1192,21 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
774
1192
|
});
|
|
775
1193
|
}
|
|
776
1194
|
};
|
|
777
|
-
const
|
|
1195
|
+
const deserializeAws_json1_0ListSpeakersCommand = async (output, context) => {
|
|
778
1196
|
if (output.statusCode >= 300) {
|
|
779
|
-
return
|
|
1197
|
+
return deserializeAws_json1_0ListSpeakersCommandError(output, context);
|
|
780
1198
|
}
|
|
781
1199
|
const data = await parseBody(output.body, context);
|
|
782
1200
|
let contents = {};
|
|
783
|
-
contents =
|
|
1201
|
+
contents = deserializeAws_json1_0ListSpeakersResponse(data, context);
|
|
784
1202
|
const response = {
|
|
785
1203
|
$metadata: deserializeMetadata(output),
|
|
786
1204
|
...contents,
|
|
787
1205
|
};
|
|
788
1206
|
return Promise.resolve(response);
|
|
789
1207
|
};
|
|
790
|
-
exports.
|
|
791
|
-
const
|
|
1208
|
+
exports.deserializeAws_json1_0ListSpeakersCommand = deserializeAws_json1_0ListSpeakersCommand;
|
|
1209
|
+
const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) => {
|
|
792
1210
|
const parsedOutput = {
|
|
793
1211
|
...output,
|
|
794
1212
|
body: await parseErrorBody(output.body, context),
|
|
@@ -820,21 +1238,21 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
820
1238
|
});
|
|
821
1239
|
}
|
|
822
1240
|
};
|
|
823
|
-
const
|
|
1241
|
+
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
824
1242
|
if (output.statusCode >= 300) {
|
|
825
|
-
return
|
|
1243
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
826
1244
|
}
|
|
827
1245
|
const data = await parseBody(output.body, context);
|
|
828
1246
|
let contents = {};
|
|
829
|
-
contents =
|
|
1247
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
830
1248
|
const response = {
|
|
831
1249
|
$metadata: deserializeMetadata(output),
|
|
832
1250
|
...contents,
|
|
833
1251
|
};
|
|
834
1252
|
return Promise.resolve(response);
|
|
835
1253
|
};
|
|
836
|
-
exports.
|
|
837
|
-
const
|
|
1254
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_0ListTagsForResourceCommand;
|
|
1255
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
838
1256
|
const parsedOutput = {
|
|
839
1257
|
...output,
|
|
840
1258
|
body: await parseErrorBody(output.body, context),
|
|
@@ -866,21 +1284,21 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
866
1284
|
});
|
|
867
1285
|
}
|
|
868
1286
|
};
|
|
869
|
-
const
|
|
1287
|
+
const deserializeAws_json1_0ListWatchlistsCommand = async (output, context) => {
|
|
870
1288
|
if (output.statusCode >= 300) {
|
|
871
|
-
return
|
|
1289
|
+
return deserializeAws_json1_0ListWatchlistsCommandError(output, context);
|
|
872
1290
|
}
|
|
873
1291
|
const data = await parseBody(output.body, context);
|
|
874
1292
|
let contents = {};
|
|
875
|
-
contents =
|
|
1293
|
+
contents = deserializeAws_json1_0ListWatchlistsResponse(data, context);
|
|
876
1294
|
const response = {
|
|
877
1295
|
$metadata: deserializeMetadata(output),
|
|
878
1296
|
...contents,
|
|
879
1297
|
};
|
|
880
1298
|
return Promise.resolve(response);
|
|
881
1299
|
};
|
|
882
|
-
exports.
|
|
883
|
-
const
|
|
1300
|
+
exports.deserializeAws_json1_0ListWatchlistsCommand = deserializeAws_json1_0ListWatchlistsCommand;
|
|
1301
|
+
const deserializeAws_json1_0ListWatchlistsCommandError = async (output, context) => {
|
|
884
1302
|
const parsedOutput = {
|
|
885
1303
|
...output,
|
|
886
1304
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1215,6 +1633,55 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1215
1633
|
});
|
|
1216
1634
|
}
|
|
1217
1635
|
};
|
|
1636
|
+
const deserializeAws_json1_0UpdateWatchlistCommand = async (output, context) => {
|
|
1637
|
+
if (output.statusCode >= 300) {
|
|
1638
|
+
return deserializeAws_json1_0UpdateWatchlistCommandError(output, context);
|
|
1639
|
+
}
|
|
1640
|
+
const data = await parseBody(output.body, context);
|
|
1641
|
+
let contents = {};
|
|
1642
|
+
contents = deserializeAws_json1_0UpdateWatchlistResponse(data, context);
|
|
1643
|
+
const response = {
|
|
1644
|
+
$metadata: deserializeMetadata(output),
|
|
1645
|
+
...contents,
|
|
1646
|
+
};
|
|
1647
|
+
return Promise.resolve(response);
|
|
1648
|
+
};
|
|
1649
|
+
exports.deserializeAws_json1_0UpdateWatchlistCommand = deserializeAws_json1_0UpdateWatchlistCommand;
|
|
1650
|
+
const deserializeAws_json1_0UpdateWatchlistCommandError = async (output, context) => {
|
|
1651
|
+
const parsedOutput = {
|
|
1652
|
+
...output,
|
|
1653
|
+
body: await parseErrorBody(output.body, context),
|
|
1654
|
+
};
|
|
1655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
switch (errorCode) {
|
|
1657
|
+
case "AccessDeniedException":
|
|
1658
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1659
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1660
|
+
case "ConflictException":
|
|
1661
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
1662
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1663
|
+
case "InternalServerException":
|
|
1664
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
1665
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1666
|
+
case "ResourceNotFoundException":
|
|
1667
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1668
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1669
|
+
case "ThrottlingException":
|
|
1670
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1671
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1672
|
+
case "ValidationException":
|
|
1673
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
1674
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1675
|
+
default:
|
|
1676
|
+
const parsedBody = parsedOutput.body;
|
|
1677
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1678
|
+
output,
|
|
1679
|
+
parsedBody,
|
|
1680
|
+
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1681
|
+
errorCode,
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1218
1685
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1219
1686
|
const body = parsedOutput.body;
|
|
1220
1687
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
@@ -1278,6 +1745,13 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
1278
1745
|
});
|
|
1279
1746
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1280
1747
|
};
|
|
1748
|
+
const serializeAws_json1_0AssociateFraudsterRequest = (input, context) => {
|
|
1749
|
+
return {
|
|
1750
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1751
|
+
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1752
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1281
1755
|
const serializeAws_json1_0CreateDomainRequest = (input, context) => {
|
|
1282
1756
|
return {
|
|
1283
1757
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
@@ -1289,6 +1763,14 @@ const serializeAws_json1_0CreateDomainRequest = (input, context) => {
|
|
|
1289
1763
|
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1290
1764
|
};
|
|
1291
1765
|
};
|
|
1766
|
+
const serializeAws_json1_0CreateWatchlistRequest = (input, context) => {
|
|
1767
|
+
return {
|
|
1768
|
+
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1769
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1770
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1771
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1292
1774
|
const serializeAws_json1_0DeleteDomainRequest = (input, context) => {
|
|
1293
1775
|
return {
|
|
1294
1776
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1306,6 +1788,12 @@ const serializeAws_json1_0DeleteSpeakerRequest = (input, context) => {
|
|
|
1306
1788
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1307
1789
|
};
|
|
1308
1790
|
};
|
|
1791
|
+
const serializeAws_json1_0DeleteWatchlistRequest = (input, context) => {
|
|
1792
|
+
return {
|
|
1793
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1794
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1309
1797
|
const serializeAws_json1_0DescribeDomainRequest = (input, context) => {
|
|
1310
1798
|
return {
|
|
1311
1799
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1335,6 +1823,19 @@ const serializeAws_json1_0DescribeSpeakerRequest = (input, context) => {
|
|
|
1335
1823
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1336
1824
|
};
|
|
1337
1825
|
};
|
|
1826
|
+
const serializeAws_json1_0DescribeWatchlistRequest = (input, context) => {
|
|
1827
|
+
return {
|
|
1828
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1829
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
const serializeAws_json1_0DisassociateFraudsterRequest = (input, context) => {
|
|
1833
|
+
return {
|
|
1834
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1835
|
+
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1836
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1338
1839
|
const serializeAws_json1_0EnrollmentConfig = (input, context) => {
|
|
1339
1840
|
return {
|
|
1340
1841
|
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
@@ -1347,8 +1848,18 @@ const serializeAws_json1_0EnrollmentJobFraudDetectionConfig = (input, context) =
|
|
|
1347
1848
|
return {
|
|
1348
1849
|
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1349
1850
|
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1851
|
+
...(input.WatchlistIds != null && {
|
|
1852
|
+
WatchlistIds: serializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1853
|
+
}),
|
|
1350
1854
|
};
|
|
1351
1855
|
};
|
|
1856
|
+
const serializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1857
|
+
return input
|
|
1858
|
+
.filter((e) => e != null)
|
|
1859
|
+
.map((entry) => {
|
|
1860
|
+
return entry;
|
|
1861
|
+
});
|
|
1862
|
+
};
|
|
1352
1863
|
const serializeAws_json1_0EvaluateSessionRequest = (input, context) => {
|
|
1353
1864
|
return {
|
|
1354
1865
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1374,6 +1885,14 @@ const serializeAws_json1_0ListFraudsterRegistrationJobsRequest = (input, context
|
|
|
1374
1885
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1375
1886
|
};
|
|
1376
1887
|
};
|
|
1888
|
+
const serializeAws_json1_0ListFraudstersRequest = (input, context) => {
|
|
1889
|
+
return {
|
|
1890
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1891
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1892
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1893
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1377
1896
|
const serializeAws_json1_0ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1378
1897
|
return {
|
|
1379
1898
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1394,6 +1913,13 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
1394
1913
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1395
1914
|
};
|
|
1396
1915
|
};
|
|
1916
|
+
const serializeAws_json1_0ListWatchlistsRequest = (input, context) => {
|
|
1917
|
+
return {
|
|
1918
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1919
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1920
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1921
|
+
};
|
|
1922
|
+
};
|
|
1397
1923
|
const serializeAws_json1_0OptOutSpeakerRequest = (input, context) => {
|
|
1398
1924
|
return {
|
|
1399
1925
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1414,8 +1940,18 @@ const serializeAws_json1_0RegistrationConfig = (input, context) => {
|
|
|
1414
1940
|
...(input.FraudsterSimilarityThreshold != null && {
|
|
1415
1941
|
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1416
1942
|
}),
|
|
1943
|
+
...(input.WatchlistIds != null && {
|
|
1944
|
+
WatchlistIds: serializeAws_json1_0RegistrationConfigWatchlistIds(input.WatchlistIds, context),
|
|
1945
|
+
}),
|
|
1417
1946
|
};
|
|
1418
1947
|
};
|
|
1948
|
+
const serializeAws_json1_0RegistrationConfigWatchlistIds = (input, context) => {
|
|
1949
|
+
return input
|
|
1950
|
+
.filter((e) => e != null)
|
|
1951
|
+
.map((entry) => {
|
|
1952
|
+
return entry;
|
|
1953
|
+
});
|
|
1954
|
+
};
|
|
1419
1955
|
const serializeAws_json1_0ServerSideEncryptionConfiguration = (input, context) => {
|
|
1420
1956
|
return {
|
|
1421
1957
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
@@ -1497,11 +2033,24 @@ const serializeAws_json1_0UpdateDomainRequest = (input, context) => {
|
|
|
1497
2033
|
}),
|
|
1498
2034
|
};
|
|
1499
2035
|
};
|
|
2036
|
+
const serializeAws_json1_0UpdateWatchlistRequest = (input, context) => {
|
|
2037
|
+
return {
|
|
2038
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2039
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
2040
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2041
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
1500
2044
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1501
2045
|
return {
|
|
1502
2046
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1503
2047
|
};
|
|
1504
2048
|
};
|
|
2049
|
+
const deserializeAws_json1_0AssociateFraudsterResponse = (output, context) => {
|
|
2050
|
+
return {
|
|
2051
|
+
Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
1505
2054
|
const deserializeAws_json1_0AuthenticationConfiguration = (output, context) => {
|
|
1506
2055
|
return {
|
|
1507
2056
|
AcceptanceThreshold: (0, smithy_client_1.expectInt32)(output.AcceptanceThreshold),
|
|
@@ -1536,6 +2085,11 @@ const deserializeAws_json1_0CreateDomainResponse = (output, context) => {
|
|
|
1536
2085
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1537
2086
|
};
|
|
1538
2087
|
};
|
|
2088
|
+
const deserializeAws_json1_0CreateWatchlistResponse = (output, context) => {
|
|
2089
|
+
return {
|
|
2090
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
1539
2093
|
const deserializeAws_json1_0DescribeDomainResponse = (output, context) => {
|
|
1540
2094
|
return {
|
|
1541
2095
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
@@ -1561,6 +2115,16 @@ const deserializeAws_json1_0DescribeSpeakerResponse = (output, context) => {
|
|
|
1561
2115
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
1562
2116
|
};
|
|
1563
2117
|
};
|
|
2118
|
+
const deserializeAws_json1_0DescribeWatchlistResponse = (output, context) => {
|
|
2119
|
+
return {
|
|
2120
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
const deserializeAws_json1_0DisassociateFraudsterResponse = (output, context) => {
|
|
2124
|
+
return {
|
|
2125
|
+
Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
1564
2128
|
const deserializeAws_json1_0Domain = (output, context) => {
|
|
1565
2129
|
return {
|
|
1566
2130
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -1576,6 +2140,9 @@ const deserializeAws_json1_0Domain = (output, context) => {
|
|
|
1576
2140
|
? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
1577
2141
|
: undefined,
|
|
1578
2142
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2143
|
+
WatchlistDetails: output.WatchlistDetails != null
|
|
2144
|
+
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2145
|
+
: undefined,
|
|
1579
2146
|
};
|
|
1580
2147
|
};
|
|
1581
2148
|
const deserializeAws_json1_0DomainSummaries = (output, context) => {
|
|
@@ -1604,6 +2171,9 @@ const deserializeAws_json1_0DomainSummary = (output, context) => {
|
|
|
1604
2171
|
? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
1605
2172
|
: undefined,
|
|
1606
2173
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2174
|
+
WatchlistDetails: output.WatchlistDetails != null
|
|
2175
|
+
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2176
|
+
: undefined,
|
|
1607
2177
|
};
|
|
1608
2178
|
};
|
|
1609
2179
|
const deserializeAws_json1_0EnrollmentConfig = (output, context) => {
|
|
@@ -1618,8 +2188,22 @@ const deserializeAws_json1_0EnrollmentJobFraudDetectionConfig = (output, context
|
|
|
1618
2188
|
return {
|
|
1619
2189
|
FraudDetectionAction: (0, smithy_client_1.expectString)(output.FraudDetectionAction),
|
|
1620
2190
|
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2191
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2192
|
+
? deserializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2193
|
+
: undefined,
|
|
1621
2194
|
};
|
|
1622
2195
|
};
|
|
2196
|
+
const deserializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2197
|
+
const retVal = (output || [])
|
|
2198
|
+
.filter((e) => e != null)
|
|
2199
|
+
.map((entry) => {
|
|
2200
|
+
if (entry === null) {
|
|
2201
|
+
return null;
|
|
2202
|
+
}
|
|
2203
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2204
|
+
});
|
|
2205
|
+
return retVal;
|
|
2206
|
+
};
|
|
1623
2207
|
const deserializeAws_json1_0EvaluateSessionResponse = (output, context) => {
|
|
1624
2208
|
return {
|
|
1625
2209
|
AuthenticationResult: output.AuthenticationResult != null
|
|
@@ -1643,6 +2227,7 @@ const deserializeAws_json1_0FailureDetails = (output, context) => {
|
|
|
1643
2227
|
const deserializeAws_json1_0FraudDetectionConfiguration = (output, context) => {
|
|
1644
2228
|
return {
|
|
1645
2229
|
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2230
|
+
WatchlistId: (0, smithy_client_1.expectString)(output.WatchlistId),
|
|
1646
2231
|
};
|
|
1647
2232
|
};
|
|
1648
2233
|
const deserializeAws_json1_0FraudDetectionReasons = (output, context) => {
|
|
@@ -1688,6 +2273,9 @@ const deserializeAws_json1_0Fraudster = (output, context) => {
|
|
|
1688
2273
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1689
2274
|
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
1690
2275
|
GeneratedFraudsterId: (0, smithy_client_1.expectString)(output.GeneratedFraudsterId),
|
|
2276
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2277
|
+
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2278
|
+
: undefined,
|
|
1691
2279
|
};
|
|
1692
2280
|
};
|
|
1693
2281
|
const deserializeAws_json1_0FraudsterRegistrationJob = (output, context) => {
|
|
@@ -1735,6 +2323,27 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummary = (output, context)
|
|
|
1735
2323
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1736
2324
|
};
|
|
1737
2325
|
};
|
|
2326
|
+
const deserializeAws_json1_0FraudsterSummaries = (output, context) => {
|
|
2327
|
+
const retVal = (output || [])
|
|
2328
|
+
.filter((e) => e != null)
|
|
2329
|
+
.map((entry) => {
|
|
2330
|
+
if (entry === null) {
|
|
2331
|
+
return null;
|
|
2332
|
+
}
|
|
2333
|
+
return deserializeAws_json1_0FraudsterSummary(entry, context);
|
|
2334
|
+
});
|
|
2335
|
+
return retVal;
|
|
2336
|
+
};
|
|
2337
|
+
const deserializeAws_json1_0FraudsterSummary = (output, context) => {
|
|
2338
|
+
return {
|
|
2339
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2340
|
+
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
2341
|
+
GeneratedFraudsterId: (0, smithy_client_1.expectString)(output.GeneratedFraudsterId),
|
|
2342
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2343
|
+
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2344
|
+
: undefined,
|
|
2345
|
+
};
|
|
2346
|
+
};
|
|
1738
2347
|
const deserializeAws_json1_0InputDataConfig = (output, context) => {
|
|
1739
2348
|
return {
|
|
1740
2349
|
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
@@ -1772,6 +2381,14 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = (output, con
|
|
|
1772
2381
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1773
2382
|
};
|
|
1774
2383
|
};
|
|
2384
|
+
const deserializeAws_json1_0ListFraudstersResponse = (output, context) => {
|
|
2385
|
+
return {
|
|
2386
|
+
FraudsterSummaries: output.FraudsterSummaries != null
|
|
2387
|
+
? deserializeAws_json1_0FraudsterSummaries(output.FraudsterSummaries, context)
|
|
2388
|
+
: undefined,
|
|
2389
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
1775
2392
|
const deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
1776
2393
|
return {
|
|
1777
2394
|
JobSummaries: output.JobSummaries != null
|
|
@@ -1793,6 +2410,14 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
1793
2410
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1794
2411
|
};
|
|
1795
2412
|
};
|
|
2413
|
+
const deserializeAws_json1_0ListWatchlistsResponse = (output, context) => {
|
|
2414
|
+
return {
|
|
2415
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2416
|
+
WatchlistSummaries: output.WatchlistSummaries != null
|
|
2417
|
+
? deserializeAws_json1_0WatchlistSummaries(output.WatchlistSummaries, context)
|
|
2418
|
+
: undefined,
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
1796
2421
|
const deserializeAws_json1_0OptOutSpeakerResponse = (output, context) => {
|
|
1797
2422
|
return {
|
|
1798
2423
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
@@ -1808,14 +2433,39 @@ const deserializeAws_json1_0RegistrationConfig = (output, context) => {
|
|
|
1808
2433
|
return {
|
|
1809
2434
|
DuplicateRegistrationAction: (0, smithy_client_1.expectString)(output.DuplicateRegistrationAction),
|
|
1810
2435
|
FraudsterSimilarityThreshold: (0, smithy_client_1.expectInt32)(output.FraudsterSimilarityThreshold),
|
|
2436
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2437
|
+
? deserializeAws_json1_0RegistrationConfigWatchlistIds(output.WatchlistIds, context)
|
|
2438
|
+
: undefined,
|
|
1811
2439
|
};
|
|
1812
2440
|
};
|
|
2441
|
+
const deserializeAws_json1_0RegistrationConfigWatchlistIds = (output, context) => {
|
|
2442
|
+
const retVal = (output || [])
|
|
2443
|
+
.filter((e) => e != null)
|
|
2444
|
+
.map((entry) => {
|
|
2445
|
+
if (entry === null) {
|
|
2446
|
+
return null;
|
|
2447
|
+
}
|
|
2448
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2449
|
+
});
|
|
2450
|
+
return retVal;
|
|
2451
|
+
};
|
|
1813
2452
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1814
2453
|
return {
|
|
1815
2454
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1816
2455
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1817
2456
|
};
|
|
1818
2457
|
};
|
|
2458
|
+
const deserializeAws_json1_0ResponseWatchlistIds = (output, context) => {
|
|
2459
|
+
const retVal = (output || [])
|
|
2460
|
+
.filter((e) => e != null)
|
|
2461
|
+
.map((entry) => {
|
|
2462
|
+
if (entry === null) {
|
|
2463
|
+
return null;
|
|
2464
|
+
}
|
|
2465
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2466
|
+
});
|
|
2467
|
+
return retVal;
|
|
2468
|
+
};
|
|
1819
2469
|
const deserializeAws_json1_0ServerSideEncryptionConfiguration = (output, context) => {
|
|
1820
2470
|
return {
|
|
1821
2471
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
@@ -1958,6 +2608,11 @@ const deserializeAws_json1_0UpdateDomainResponse = (output, context) => {
|
|
|
1958
2608
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1959
2609
|
};
|
|
1960
2610
|
};
|
|
2611
|
+
const deserializeAws_json1_0UpdateWatchlistResponse = (output, context) => {
|
|
2612
|
+
return {
|
|
2613
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
1961
2616
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
1962
2617
|
return {
|
|
1963
2618
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -1968,6 +2623,44 @@ const deserializeAws_json1_0VoiceSpoofingRisk = (output, context) => {
|
|
|
1968
2623
|
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
1969
2624
|
};
|
|
1970
2625
|
};
|
|
2626
|
+
const deserializeAws_json1_0Watchlist = (output, context) => {
|
|
2627
|
+
return {
|
|
2628
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2629
|
+
DefaultWatchlist: (0, smithy_client_1.expectBoolean)(output.DefaultWatchlist),
|
|
2630
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2631
|
+
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
2632
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2633
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2634
|
+
WatchlistId: (0, smithy_client_1.expectString)(output.WatchlistId),
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
const deserializeAws_json1_0WatchlistDetails = (output, context) => {
|
|
2638
|
+
return {
|
|
2639
|
+
DefaultWatchlistId: (0, smithy_client_1.expectString)(output.DefaultWatchlistId),
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
const deserializeAws_json1_0WatchlistSummaries = (output, context) => {
|
|
2643
|
+
const retVal = (output || [])
|
|
2644
|
+
.filter((e) => e != null)
|
|
2645
|
+
.map((entry) => {
|
|
2646
|
+
if (entry === null) {
|
|
2647
|
+
return null;
|
|
2648
|
+
}
|
|
2649
|
+
return deserializeAws_json1_0WatchlistSummary(entry, context);
|
|
2650
|
+
});
|
|
2651
|
+
return retVal;
|
|
2652
|
+
};
|
|
2653
|
+
const deserializeAws_json1_0WatchlistSummary = (output, context) => {
|
|
2654
|
+
return {
|
|
2655
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2656
|
+
DefaultWatchlist: (0, smithy_client_1.expectBoolean)(output.DefaultWatchlist),
|
|
2657
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2658
|
+
DomainId: (0, smithy_client_1.expectString)(output.DomainId),
|
|
2659
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2660
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2661
|
+
WatchlistId: (0, smithy_client_1.expectString)(output.WatchlistId),
|
|
2662
|
+
};
|
|
2663
|
+
};
|
|
1971
2664
|
const deserializeMetadata = (output) => ({
|
|
1972
2665
|
httpStatusCode: output.statusCode,
|
|
1973
2666
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|