@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,8 +1,17 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { VoiceIDServiceException as __BaseException } from "../models/VoiceIDServiceException";
|
|
6
|
+
export const serializeAws_json1_0AssociateFraudsterCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.0",
|
|
9
|
+
"x-amz-target": "VoiceID.AssociateFraudster",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_0AssociateFraudsterRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
6
15
|
export const serializeAws_json1_0CreateDomainCommand = async (input, context) => {
|
|
7
16
|
const headers = {
|
|
8
17
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -12,6 +21,15 @@ export const serializeAws_json1_0CreateDomainCommand = async (input, context) =>
|
|
|
12
21
|
body = JSON.stringify(serializeAws_json1_0CreateDomainRequest(input, context));
|
|
13
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
23
|
};
|
|
24
|
+
export const serializeAws_json1_0CreateWatchlistCommand = async (input, context) => {
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/x-amz-json-1.0",
|
|
27
|
+
"x-amz-target": "VoiceID.CreateWatchlist",
|
|
28
|
+
};
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(serializeAws_json1_0CreateWatchlistRequest(input, context));
|
|
31
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
|
+
};
|
|
15
33
|
export const serializeAws_json1_0DeleteDomainCommand = async (input, context) => {
|
|
16
34
|
const headers = {
|
|
17
35
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -39,6 +57,15 @@ export const serializeAws_json1_0DeleteSpeakerCommand = async (input, context) =
|
|
|
39
57
|
body = JSON.stringify(serializeAws_json1_0DeleteSpeakerRequest(input, context));
|
|
40
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
59
|
};
|
|
60
|
+
export const serializeAws_json1_0DeleteWatchlistCommand = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.0",
|
|
63
|
+
"x-amz-target": "VoiceID.DeleteWatchlist",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_0DeleteWatchlistRequest(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
42
69
|
export const serializeAws_json1_0DescribeDomainCommand = async (input, context) => {
|
|
43
70
|
const headers = {
|
|
44
71
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -84,6 +111,24 @@ export const serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = async (in
|
|
|
84
111
|
body = JSON.stringify(serializeAws_json1_0DescribeSpeakerEnrollmentJobRequest(input, context));
|
|
85
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
113
|
};
|
|
114
|
+
export const serializeAws_json1_0DescribeWatchlistCommand = async (input, context) => {
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/x-amz-json-1.0",
|
|
117
|
+
"x-amz-target": "VoiceID.DescribeWatchlist",
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
body = JSON.stringify(serializeAws_json1_0DescribeWatchlistRequest(input, context));
|
|
121
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_json1_0DisassociateFraudsterCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.0",
|
|
126
|
+
"x-amz-target": "VoiceID.DisassociateFraudster",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_0DisassociateFraudsterRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
87
132
|
export const serializeAws_json1_0EvaluateSessionCommand = async (input, context) => {
|
|
88
133
|
const headers = {
|
|
89
134
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -111,6 +156,15 @@ export const serializeAws_json1_0ListFraudsterRegistrationJobsCommand = async (i
|
|
|
111
156
|
body = JSON.stringify(serializeAws_json1_0ListFraudsterRegistrationJobsRequest(input, context));
|
|
112
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
158
|
};
|
|
159
|
+
export const serializeAws_json1_0ListFraudstersCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.0",
|
|
162
|
+
"x-amz-target": "VoiceID.ListFraudsters",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_0ListFraudstersRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
114
168
|
export const serializeAws_json1_0ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
115
169
|
const headers = {
|
|
116
170
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -138,6 +192,15 @@ export const serializeAws_json1_0ListTagsForResourceCommand = async (input, cont
|
|
|
138
192
|
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
139
193
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
194
|
};
|
|
195
|
+
export const serializeAws_json1_0ListWatchlistsCommand = async (input, context) => {
|
|
196
|
+
const headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.0",
|
|
198
|
+
"x-amz-target": "VoiceID.ListWatchlists",
|
|
199
|
+
};
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_0ListWatchlistsRequest(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
141
204
|
export const serializeAws_json1_0OptOutSpeakerCommand = async (input, context) => {
|
|
142
205
|
const headers = {
|
|
143
206
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -192,6 +255,66 @@ export const serializeAws_json1_0UpdateDomainCommand = async (input, context) =>
|
|
|
192
255
|
body = JSON.stringify(serializeAws_json1_0UpdateDomainRequest(input, context));
|
|
193
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
257
|
};
|
|
258
|
+
export const serializeAws_json1_0UpdateWatchlistCommand = async (input, context) => {
|
|
259
|
+
const headers = {
|
|
260
|
+
"content-type": "application/x-amz-json-1.0",
|
|
261
|
+
"x-amz-target": "VoiceID.UpdateWatchlist",
|
|
262
|
+
};
|
|
263
|
+
let body;
|
|
264
|
+
body = JSON.stringify(serializeAws_json1_0UpdateWatchlistRequest(input, context));
|
|
265
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
+
};
|
|
267
|
+
export const deserializeAws_json1_0AssociateFraudsterCommand = async (output, context) => {
|
|
268
|
+
if (output.statusCode >= 300) {
|
|
269
|
+
return deserializeAws_json1_0AssociateFraudsterCommandError(output, context);
|
|
270
|
+
}
|
|
271
|
+
const data = await parseBody(output.body, context);
|
|
272
|
+
let contents = {};
|
|
273
|
+
contents = deserializeAws_json1_0AssociateFraudsterResponse(data, context);
|
|
274
|
+
const response = {
|
|
275
|
+
$metadata: deserializeMetadata(output),
|
|
276
|
+
...contents,
|
|
277
|
+
};
|
|
278
|
+
return Promise.resolve(response);
|
|
279
|
+
};
|
|
280
|
+
const deserializeAws_json1_0AssociateFraudsterCommandError = async (output, context) => {
|
|
281
|
+
const parsedOutput = {
|
|
282
|
+
...output,
|
|
283
|
+
body: await parseErrorBody(output.body, context),
|
|
284
|
+
};
|
|
285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
286
|
+
switch (errorCode) {
|
|
287
|
+
case "AccessDeniedException":
|
|
288
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
289
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
290
|
+
case "ConflictException":
|
|
291
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
292
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
293
|
+
case "InternalServerException":
|
|
294
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
295
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
296
|
+
case "ResourceNotFoundException":
|
|
297
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
298
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
299
|
+
case "ServiceQuotaExceededException":
|
|
300
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
301
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
302
|
+
case "ThrottlingException":
|
|
303
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
304
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
305
|
+
case "ValidationException":
|
|
306
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
307
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
308
|
+
default:
|
|
309
|
+
const parsedBody = parsedOutput.body;
|
|
310
|
+
throwDefaultError({
|
|
311
|
+
output,
|
|
312
|
+
parsedBody,
|
|
313
|
+
exceptionCtor: __BaseException,
|
|
314
|
+
errorCode,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
};
|
|
195
318
|
export const deserializeAws_json1_0CreateDomainCommand = async (output, context) => {
|
|
196
319
|
if (output.statusCode >= 300) {
|
|
197
320
|
return deserializeAws_json1_0CreateDomainCommandError(output, context);
|
|
@@ -243,6 +366,57 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
243
366
|
});
|
|
244
367
|
}
|
|
245
368
|
};
|
|
369
|
+
export const deserializeAws_json1_0CreateWatchlistCommand = async (output, context) => {
|
|
370
|
+
if (output.statusCode >= 300) {
|
|
371
|
+
return deserializeAws_json1_0CreateWatchlistCommandError(output, context);
|
|
372
|
+
}
|
|
373
|
+
const data = await parseBody(output.body, context);
|
|
374
|
+
let contents = {};
|
|
375
|
+
contents = deserializeAws_json1_0CreateWatchlistResponse(data, context);
|
|
376
|
+
const response = {
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
...contents,
|
|
379
|
+
};
|
|
380
|
+
return Promise.resolve(response);
|
|
381
|
+
};
|
|
382
|
+
const deserializeAws_json1_0CreateWatchlistCommandError = async (output, context) => {
|
|
383
|
+
const parsedOutput = {
|
|
384
|
+
...output,
|
|
385
|
+
body: await parseErrorBody(output.body, context),
|
|
386
|
+
};
|
|
387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
+
switch (errorCode) {
|
|
389
|
+
case "AccessDeniedException":
|
|
390
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
391
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
392
|
+
case "ConflictException":
|
|
393
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
394
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
395
|
+
case "InternalServerException":
|
|
396
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
397
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
398
|
+
case "ResourceNotFoundException":
|
|
399
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
400
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
401
|
+
case "ServiceQuotaExceededException":
|
|
402
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
403
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
404
|
+
case "ThrottlingException":
|
|
405
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
406
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
407
|
+
case "ValidationException":
|
|
408
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
409
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
410
|
+
default:
|
|
411
|
+
const parsedBody = parsedOutput.body;
|
|
412
|
+
throwDefaultError({
|
|
413
|
+
output,
|
|
414
|
+
parsedBody,
|
|
415
|
+
exceptionCtor: __BaseException,
|
|
416
|
+
errorCode,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
};
|
|
246
420
|
export const deserializeAws_json1_0DeleteDomainCommand = async (output, context) => {
|
|
247
421
|
if (output.statusCode >= 300) {
|
|
248
422
|
return deserializeAws_json1_0DeleteDomainCommandError(output, context);
|
|
@@ -378,6 +552,51 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
378
552
|
});
|
|
379
553
|
}
|
|
380
554
|
};
|
|
555
|
+
export const deserializeAws_json1_0DeleteWatchlistCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode >= 300) {
|
|
557
|
+
return deserializeAws_json1_0DeleteWatchlistCommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
await collectBody(output.body, context);
|
|
560
|
+
const response = {
|
|
561
|
+
$metadata: deserializeMetadata(output),
|
|
562
|
+
};
|
|
563
|
+
return Promise.resolve(response);
|
|
564
|
+
};
|
|
565
|
+
const deserializeAws_json1_0DeleteWatchlistCommandError = async (output, context) => {
|
|
566
|
+
const parsedOutput = {
|
|
567
|
+
...output,
|
|
568
|
+
body: await parseErrorBody(output.body, context),
|
|
569
|
+
};
|
|
570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
|
+
switch (errorCode) {
|
|
572
|
+
case "AccessDeniedException":
|
|
573
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
574
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
575
|
+
case "ConflictException":
|
|
576
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
577
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
578
|
+
case "InternalServerException":
|
|
579
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
580
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
581
|
+
case "ResourceNotFoundException":
|
|
582
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
583
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
584
|
+
case "ThrottlingException":
|
|
585
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
586
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
587
|
+
case "ValidationException":
|
|
588
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
589
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
590
|
+
default:
|
|
591
|
+
const parsedBody = parsedOutput.body;
|
|
592
|
+
throwDefaultError({
|
|
593
|
+
output,
|
|
594
|
+
parsedBody,
|
|
595
|
+
exceptionCtor: __BaseException,
|
|
596
|
+
errorCode,
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
};
|
|
381
600
|
export const deserializeAws_json1_0DescribeDomainCommand = async (output, context) => {
|
|
382
601
|
if (output.statusCode >= 300) {
|
|
383
602
|
return deserializeAws_json1_0DescribeDomainCommandError(output, context);
|
|
@@ -584,9 +803,192 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
584
803
|
case "InternalServerException":
|
|
585
804
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
586
805
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
587
|
-
case "ResourceNotFoundException":
|
|
588
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
589
|
-
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
806
|
+
case "ResourceNotFoundException":
|
|
807
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
808
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
809
|
+
case "ThrottlingException":
|
|
810
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
811
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
812
|
+
case "ValidationException":
|
|
813
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
814
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
815
|
+
default:
|
|
816
|
+
const parsedBody = parsedOutput.body;
|
|
817
|
+
throwDefaultError({
|
|
818
|
+
output,
|
|
819
|
+
parsedBody,
|
|
820
|
+
exceptionCtor: __BaseException,
|
|
821
|
+
errorCode,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
export const deserializeAws_json1_0DescribeWatchlistCommand = async (output, context) => {
|
|
826
|
+
if (output.statusCode >= 300) {
|
|
827
|
+
return deserializeAws_json1_0DescribeWatchlistCommandError(output, context);
|
|
828
|
+
}
|
|
829
|
+
const data = await parseBody(output.body, context);
|
|
830
|
+
let contents = {};
|
|
831
|
+
contents = deserializeAws_json1_0DescribeWatchlistResponse(data, context);
|
|
832
|
+
const response = {
|
|
833
|
+
$metadata: deserializeMetadata(output),
|
|
834
|
+
...contents,
|
|
835
|
+
};
|
|
836
|
+
return Promise.resolve(response);
|
|
837
|
+
};
|
|
838
|
+
const deserializeAws_json1_0DescribeWatchlistCommandError = async (output, context) => {
|
|
839
|
+
const parsedOutput = {
|
|
840
|
+
...output,
|
|
841
|
+
body: await parseErrorBody(output.body, context),
|
|
842
|
+
};
|
|
843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
+
switch (errorCode) {
|
|
845
|
+
case "AccessDeniedException":
|
|
846
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
847
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "InternalServerException":
|
|
849
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
850
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
851
|
+
case "ResourceNotFoundException":
|
|
852
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
853
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
854
|
+
case "ThrottlingException":
|
|
855
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
856
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
857
|
+
case "ValidationException":
|
|
858
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
859
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
860
|
+
default:
|
|
861
|
+
const parsedBody = parsedOutput.body;
|
|
862
|
+
throwDefaultError({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: __BaseException,
|
|
866
|
+
errorCode,
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
export const deserializeAws_json1_0DisassociateFraudsterCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode >= 300) {
|
|
872
|
+
return deserializeAws_json1_0DisassociateFraudsterCommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const data = await parseBody(output.body, context);
|
|
875
|
+
let contents = {};
|
|
876
|
+
contents = deserializeAws_json1_0DisassociateFraudsterResponse(data, context);
|
|
877
|
+
const response = {
|
|
878
|
+
$metadata: deserializeMetadata(output),
|
|
879
|
+
...contents,
|
|
880
|
+
};
|
|
881
|
+
return Promise.resolve(response);
|
|
882
|
+
};
|
|
883
|
+
const deserializeAws_json1_0DisassociateFraudsterCommandError = async (output, context) => {
|
|
884
|
+
const parsedOutput = {
|
|
885
|
+
...output,
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
|
+
};
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
+
switch (errorCode) {
|
|
890
|
+
case "AccessDeniedException":
|
|
891
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
892
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
893
|
+
case "ConflictException":
|
|
894
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
895
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
896
|
+
case "InternalServerException":
|
|
897
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
898
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
899
|
+
case "ResourceNotFoundException":
|
|
900
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
901
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
902
|
+
case "ThrottlingException":
|
|
903
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
904
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
905
|
+
case "ValidationException":
|
|
906
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
907
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
908
|
+
default:
|
|
909
|
+
const parsedBody = parsedOutput.body;
|
|
910
|
+
throwDefaultError({
|
|
911
|
+
output,
|
|
912
|
+
parsedBody,
|
|
913
|
+
exceptionCtor: __BaseException,
|
|
914
|
+
errorCode,
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
export const deserializeAws_json1_0EvaluateSessionCommand = async (output, context) => {
|
|
919
|
+
if (output.statusCode >= 300) {
|
|
920
|
+
return deserializeAws_json1_0EvaluateSessionCommandError(output, context);
|
|
921
|
+
}
|
|
922
|
+
const data = await parseBody(output.body, context);
|
|
923
|
+
let contents = {};
|
|
924
|
+
contents = deserializeAws_json1_0EvaluateSessionResponse(data, context);
|
|
925
|
+
const response = {
|
|
926
|
+
$metadata: deserializeMetadata(output),
|
|
927
|
+
...contents,
|
|
928
|
+
};
|
|
929
|
+
return Promise.resolve(response);
|
|
930
|
+
};
|
|
931
|
+
const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context) => {
|
|
932
|
+
const parsedOutput = {
|
|
933
|
+
...output,
|
|
934
|
+
body: await parseErrorBody(output.body, context),
|
|
935
|
+
};
|
|
936
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
+
switch (errorCode) {
|
|
938
|
+
case "AccessDeniedException":
|
|
939
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
940
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
941
|
+
case "ConflictException":
|
|
942
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
943
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
944
|
+
case "InternalServerException":
|
|
945
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
946
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
947
|
+
case "ResourceNotFoundException":
|
|
948
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
949
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
950
|
+
case "ThrottlingException":
|
|
951
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
952
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
953
|
+
case "ValidationException":
|
|
954
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
955
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
956
|
+
default:
|
|
957
|
+
const parsedBody = parsedOutput.body;
|
|
958
|
+
throwDefaultError({
|
|
959
|
+
output,
|
|
960
|
+
parsedBody,
|
|
961
|
+
exceptionCtor: __BaseException,
|
|
962
|
+
errorCode,
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
export const deserializeAws_json1_0ListDomainsCommand = async (output, context) => {
|
|
967
|
+
if (output.statusCode >= 300) {
|
|
968
|
+
return deserializeAws_json1_0ListDomainsCommandError(output, context);
|
|
969
|
+
}
|
|
970
|
+
const data = await parseBody(output.body, context);
|
|
971
|
+
let contents = {};
|
|
972
|
+
contents = deserializeAws_json1_0ListDomainsResponse(data, context);
|
|
973
|
+
const response = {
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
...contents,
|
|
976
|
+
};
|
|
977
|
+
return Promise.resolve(response);
|
|
978
|
+
};
|
|
979
|
+
const deserializeAws_json1_0ListDomainsCommandError = async (output, context) => {
|
|
980
|
+
const parsedOutput = {
|
|
981
|
+
...output,
|
|
982
|
+
body: await parseErrorBody(output.body, context),
|
|
983
|
+
};
|
|
984
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
+
switch (errorCode) {
|
|
986
|
+
case "AccessDeniedException":
|
|
987
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
988
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
989
|
+
case "InternalServerException":
|
|
990
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
991
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
590
992
|
case "ThrottlingException":
|
|
591
993
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
592
994
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -603,20 +1005,20 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
603
1005
|
});
|
|
604
1006
|
}
|
|
605
1007
|
};
|
|
606
|
-
export const
|
|
1008
|
+
export const deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
607
1009
|
if (output.statusCode >= 300) {
|
|
608
|
-
return
|
|
1010
|
+
return deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError(output, context);
|
|
609
1011
|
}
|
|
610
1012
|
const data = await parseBody(output.body, context);
|
|
611
1013
|
let contents = {};
|
|
612
|
-
contents =
|
|
1014
|
+
contents = deserializeAws_json1_0ListFraudsterRegistrationJobsResponse(data, context);
|
|
613
1015
|
const response = {
|
|
614
1016
|
$metadata: deserializeMetadata(output),
|
|
615
1017
|
...contents,
|
|
616
1018
|
};
|
|
617
1019
|
return Promise.resolve(response);
|
|
618
1020
|
};
|
|
619
|
-
const
|
|
1021
|
+
const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
620
1022
|
const parsedOutput = {
|
|
621
1023
|
...output,
|
|
622
1024
|
body: await parseErrorBody(output.body, context),
|
|
@@ -626,9 +1028,6 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
626
1028
|
case "AccessDeniedException":
|
|
627
1029
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
628
1030
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
629
|
-
case "ConflictException":
|
|
630
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
631
|
-
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
632
1031
|
case "InternalServerException":
|
|
633
1032
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
634
1033
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -651,20 +1050,20 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
651
1050
|
});
|
|
652
1051
|
}
|
|
653
1052
|
};
|
|
654
|
-
export const
|
|
1053
|
+
export const deserializeAws_json1_0ListFraudstersCommand = async (output, context) => {
|
|
655
1054
|
if (output.statusCode >= 300) {
|
|
656
|
-
return
|
|
1055
|
+
return deserializeAws_json1_0ListFraudstersCommandError(output, context);
|
|
657
1056
|
}
|
|
658
1057
|
const data = await parseBody(output.body, context);
|
|
659
1058
|
let contents = {};
|
|
660
|
-
contents =
|
|
1059
|
+
contents = deserializeAws_json1_0ListFraudstersResponse(data, context);
|
|
661
1060
|
const response = {
|
|
662
1061
|
$metadata: deserializeMetadata(output),
|
|
663
1062
|
...contents,
|
|
664
1063
|
};
|
|
665
1064
|
return Promise.resolve(response);
|
|
666
1065
|
};
|
|
667
|
-
const
|
|
1066
|
+
const deserializeAws_json1_0ListFraudstersCommandError = async (output, context) => {
|
|
668
1067
|
const parsedOutput = {
|
|
669
1068
|
...output,
|
|
670
1069
|
body: await parseErrorBody(output.body, context),
|
|
@@ -677,6 +1076,9 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
677
1076
|
case "InternalServerException":
|
|
678
1077
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
679
1078
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1079
|
+
case "ResourceNotFoundException":
|
|
1080
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1081
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
680
1082
|
case "ThrottlingException":
|
|
681
1083
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
682
1084
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -693,20 +1095,20 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
693
1095
|
});
|
|
694
1096
|
}
|
|
695
1097
|
};
|
|
696
|
-
export const
|
|
1098
|
+
export const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
697
1099
|
if (output.statusCode >= 300) {
|
|
698
|
-
return
|
|
1100
|
+
return deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError(output, context);
|
|
699
1101
|
}
|
|
700
1102
|
const data = await parseBody(output.body, context);
|
|
701
1103
|
let contents = {};
|
|
702
|
-
contents =
|
|
1104
|
+
contents = deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse(data, context);
|
|
703
1105
|
const response = {
|
|
704
1106
|
$metadata: deserializeMetadata(output),
|
|
705
1107
|
...contents,
|
|
706
1108
|
};
|
|
707
1109
|
return Promise.resolve(response);
|
|
708
1110
|
};
|
|
709
|
-
const
|
|
1111
|
+
const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
710
1112
|
const parsedOutput = {
|
|
711
1113
|
...output,
|
|
712
1114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -738,20 +1140,20 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
738
1140
|
});
|
|
739
1141
|
}
|
|
740
1142
|
};
|
|
741
|
-
export const
|
|
1143
|
+
export const deserializeAws_json1_0ListSpeakersCommand = async (output, context) => {
|
|
742
1144
|
if (output.statusCode >= 300) {
|
|
743
|
-
return
|
|
1145
|
+
return deserializeAws_json1_0ListSpeakersCommandError(output, context);
|
|
744
1146
|
}
|
|
745
1147
|
const data = await parseBody(output.body, context);
|
|
746
1148
|
let contents = {};
|
|
747
|
-
contents =
|
|
1149
|
+
contents = deserializeAws_json1_0ListSpeakersResponse(data, context);
|
|
748
1150
|
const response = {
|
|
749
1151
|
$metadata: deserializeMetadata(output),
|
|
750
1152
|
...contents,
|
|
751
1153
|
};
|
|
752
1154
|
return Promise.resolve(response);
|
|
753
1155
|
};
|
|
754
|
-
const
|
|
1156
|
+
const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) => {
|
|
755
1157
|
const parsedOutput = {
|
|
756
1158
|
...output,
|
|
757
1159
|
body: await parseErrorBody(output.body, context),
|
|
@@ -783,20 +1185,20 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
783
1185
|
});
|
|
784
1186
|
}
|
|
785
1187
|
};
|
|
786
|
-
export const
|
|
1188
|
+
export const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
787
1189
|
if (output.statusCode >= 300) {
|
|
788
|
-
return
|
|
1190
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
789
1191
|
}
|
|
790
1192
|
const data = await parseBody(output.body, context);
|
|
791
1193
|
let contents = {};
|
|
792
|
-
contents =
|
|
1194
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
793
1195
|
const response = {
|
|
794
1196
|
$metadata: deserializeMetadata(output),
|
|
795
1197
|
...contents,
|
|
796
1198
|
};
|
|
797
1199
|
return Promise.resolve(response);
|
|
798
1200
|
};
|
|
799
|
-
const
|
|
1201
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
800
1202
|
const parsedOutput = {
|
|
801
1203
|
...output,
|
|
802
1204
|
body: await parseErrorBody(output.body, context),
|
|
@@ -828,20 +1230,20 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
828
1230
|
});
|
|
829
1231
|
}
|
|
830
1232
|
};
|
|
831
|
-
export const
|
|
1233
|
+
export const deserializeAws_json1_0ListWatchlistsCommand = async (output, context) => {
|
|
832
1234
|
if (output.statusCode >= 300) {
|
|
833
|
-
return
|
|
1235
|
+
return deserializeAws_json1_0ListWatchlistsCommandError(output, context);
|
|
834
1236
|
}
|
|
835
1237
|
const data = await parseBody(output.body, context);
|
|
836
1238
|
let contents = {};
|
|
837
|
-
contents =
|
|
1239
|
+
contents = deserializeAws_json1_0ListWatchlistsResponse(data, context);
|
|
838
1240
|
const response = {
|
|
839
1241
|
$metadata: deserializeMetadata(output),
|
|
840
1242
|
...contents,
|
|
841
1243
|
};
|
|
842
1244
|
return Promise.resolve(response);
|
|
843
1245
|
};
|
|
844
|
-
const
|
|
1246
|
+
const deserializeAws_json1_0ListWatchlistsCommandError = async (output, context) => {
|
|
845
1247
|
const parsedOutput = {
|
|
846
1248
|
...output,
|
|
847
1249
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1170,6 +1572,54 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1170
1572
|
});
|
|
1171
1573
|
}
|
|
1172
1574
|
};
|
|
1575
|
+
export const deserializeAws_json1_0UpdateWatchlistCommand = async (output, context) => {
|
|
1576
|
+
if (output.statusCode >= 300) {
|
|
1577
|
+
return deserializeAws_json1_0UpdateWatchlistCommandError(output, context);
|
|
1578
|
+
}
|
|
1579
|
+
const data = await parseBody(output.body, context);
|
|
1580
|
+
let contents = {};
|
|
1581
|
+
contents = deserializeAws_json1_0UpdateWatchlistResponse(data, context);
|
|
1582
|
+
const response = {
|
|
1583
|
+
$metadata: deserializeMetadata(output),
|
|
1584
|
+
...contents,
|
|
1585
|
+
};
|
|
1586
|
+
return Promise.resolve(response);
|
|
1587
|
+
};
|
|
1588
|
+
const deserializeAws_json1_0UpdateWatchlistCommandError = async (output, context) => {
|
|
1589
|
+
const parsedOutput = {
|
|
1590
|
+
...output,
|
|
1591
|
+
body: await parseErrorBody(output.body, context),
|
|
1592
|
+
};
|
|
1593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
|
+
switch (errorCode) {
|
|
1595
|
+
case "AccessDeniedException":
|
|
1596
|
+
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1597
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1598
|
+
case "ConflictException":
|
|
1599
|
+
case "com.amazonaws.voiceid#ConflictException":
|
|
1600
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1601
|
+
case "InternalServerException":
|
|
1602
|
+
case "com.amazonaws.voiceid#InternalServerException":
|
|
1603
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1604
|
+
case "ResourceNotFoundException":
|
|
1605
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1606
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1607
|
+
case "ThrottlingException":
|
|
1608
|
+
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1609
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1610
|
+
case "ValidationException":
|
|
1611
|
+
case "com.amazonaws.voiceid#ValidationException":
|
|
1612
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1613
|
+
default:
|
|
1614
|
+
const parsedBody = parsedOutput.body;
|
|
1615
|
+
throwDefaultError({
|
|
1616
|
+
output,
|
|
1617
|
+
parsedBody,
|
|
1618
|
+
exceptionCtor: __BaseException,
|
|
1619
|
+
errorCode,
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1173
1623
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1174
1624
|
const body = parsedOutput.body;
|
|
1175
1625
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
@@ -1233,6 +1683,13 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
1233
1683
|
});
|
|
1234
1684
|
return __decorateServiceException(exception, body);
|
|
1235
1685
|
};
|
|
1686
|
+
const serializeAws_json1_0AssociateFraudsterRequest = (input, context) => {
|
|
1687
|
+
return {
|
|
1688
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1689
|
+
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1690
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1236
1693
|
const serializeAws_json1_0CreateDomainRequest = (input, context) => {
|
|
1237
1694
|
return {
|
|
1238
1695
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
@@ -1244,6 +1701,14 @@ const serializeAws_json1_0CreateDomainRequest = (input, context) => {
|
|
|
1244
1701
|
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1245
1702
|
};
|
|
1246
1703
|
};
|
|
1704
|
+
const serializeAws_json1_0CreateWatchlistRequest = (input, context) => {
|
|
1705
|
+
return {
|
|
1706
|
+
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1707
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1708
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1709
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1247
1712
|
const serializeAws_json1_0DeleteDomainRequest = (input, context) => {
|
|
1248
1713
|
return {
|
|
1249
1714
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1261,6 +1726,12 @@ const serializeAws_json1_0DeleteSpeakerRequest = (input, context) => {
|
|
|
1261
1726
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1262
1727
|
};
|
|
1263
1728
|
};
|
|
1729
|
+
const serializeAws_json1_0DeleteWatchlistRequest = (input, context) => {
|
|
1730
|
+
return {
|
|
1731
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1732
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1264
1735
|
const serializeAws_json1_0DescribeDomainRequest = (input, context) => {
|
|
1265
1736
|
return {
|
|
1266
1737
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1290,6 +1761,19 @@ const serializeAws_json1_0DescribeSpeakerRequest = (input, context) => {
|
|
|
1290
1761
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1291
1762
|
};
|
|
1292
1763
|
};
|
|
1764
|
+
const serializeAws_json1_0DescribeWatchlistRequest = (input, context) => {
|
|
1765
|
+
return {
|
|
1766
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1767
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
const serializeAws_json1_0DisassociateFraudsterRequest = (input, context) => {
|
|
1771
|
+
return {
|
|
1772
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1773
|
+
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1774
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1293
1777
|
const serializeAws_json1_0EnrollmentConfig = (input, context) => {
|
|
1294
1778
|
return {
|
|
1295
1779
|
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
@@ -1302,8 +1786,18 @@ const serializeAws_json1_0EnrollmentJobFraudDetectionConfig = (input, context) =
|
|
|
1302
1786
|
return {
|
|
1303
1787
|
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1304
1788
|
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1789
|
+
...(input.WatchlistIds != null && {
|
|
1790
|
+
WatchlistIds: serializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1791
|
+
}),
|
|
1305
1792
|
};
|
|
1306
1793
|
};
|
|
1794
|
+
const serializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1795
|
+
return input
|
|
1796
|
+
.filter((e) => e != null)
|
|
1797
|
+
.map((entry) => {
|
|
1798
|
+
return entry;
|
|
1799
|
+
});
|
|
1800
|
+
};
|
|
1307
1801
|
const serializeAws_json1_0EvaluateSessionRequest = (input, context) => {
|
|
1308
1802
|
return {
|
|
1309
1803
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1329,6 +1823,14 @@ const serializeAws_json1_0ListFraudsterRegistrationJobsRequest = (input, context
|
|
|
1329
1823
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1330
1824
|
};
|
|
1331
1825
|
};
|
|
1826
|
+
const serializeAws_json1_0ListFraudstersRequest = (input, context) => {
|
|
1827
|
+
return {
|
|
1828
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1829
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1830
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1831
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1332
1834
|
const serializeAws_json1_0ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1333
1835
|
return {
|
|
1334
1836
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1349,6 +1851,13 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
1349
1851
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1350
1852
|
};
|
|
1351
1853
|
};
|
|
1854
|
+
const serializeAws_json1_0ListWatchlistsRequest = (input, context) => {
|
|
1855
|
+
return {
|
|
1856
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1857
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1858
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1352
1861
|
const serializeAws_json1_0OptOutSpeakerRequest = (input, context) => {
|
|
1353
1862
|
return {
|
|
1354
1863
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1369,8 +1878,18 @@ const serializeAws_json1_0RegistrationConfig = (input, context) => {
|
|
|
1369
1878
|
...(input.FraudsterSimilarityThreshold != null && {
|
|
1370
1879
|
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1371
1880
|
}),
|
|
1881
|
+
...(input.WatchlistIds != null && {
|
|
1882
|
+
WatchlistIds: serializeAws_json1_0RegistrationConfigWatchlistIds(input.WatchlistIds, context),
|
|
1883
|
+
}),
|
|
1372
1884
|
};
|
|
1373
1885
|
};
|
|
1886
|
+
const serializeAws_json1_0RegistrationConfigWatchlistIds = (input, context) => {
|
|
1887
|
+
return input
|
|
1888
|
+
.filter((e) => e != null)
|
|
1889
|
+
.map((entry) => {
|
|
1890
|
+
return entry;
|
|
1891
|
+
});
|
|
1892
|
+
};
|
|
1374
1893
|
const serializeAws_json1_0ServerSideEncryptionConfiguration = (input, context) => {
|
|
1375
1894
|
return {
|
|
1376
1895
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
@@ -1452,11 +1971,24 @@ const serializeAws_json1_0UpdateDomainRequest = (input, context) => {
|
|
|
1452
1971
|
}),
|
|
1453
1972
|
};
|
|
1454
1973
|
};
|
|
1974
|
+
const serializeAws_json1_0UpdateWatchlistRequest = (input, context) => {
|
|
1975
|
+
return {
|
|
1976
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1977
|
+
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1978
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1979
|
+
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1455
1982
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1456
1983
|
return {
|
|
1457
1984
|
Message: __expectString(output.Message),
|
|
1458
1985
|
};
|
|
1459
1986
|
};
|
|
1987
|
+
const deserializeAws_json1_0AssociateFraudsterResponse = (output, context) => {
|
|
1988
|
+
return {
|
|
1989
|
+
Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
|
|
1990
|
+
};
|
|
1991
|
+
};
|
|
1460
1992
|
const deserializeAws_json1_0AuthenticationConfiguration = (output, context) => {
|
|
1461
1993
|
return {
|
|
1462
1994
|
AcceptanceThreshold: __expectInt32(output.AcceptanceThreshold),
|
|
@@ -1491,6 +2023,11 @@ const deserializeAws_json1_0CreateDomainResponse = (output, context) => {
|
|
|
1491
2023
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1492
2024
|
};
|
|
1493
2025
|
};
|
|
2026
|
+
const deserializeAws_json1_0CreateWatchlistResponse = (output, context) => {
|
|
2027
|
+
return {
|
|
2028
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
1494
2031
|
const deserializeAws_json1_0DescribeDomainResponse = (output, context) => {
|
|
1495
2032
|
return {
|
|
1496
2033
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
@@ -1516,6 +2053,16 @@ const deserializeAws_json1_0DescribeSpeakerResponse = (output, context) => {
|
|
|
1516
2053
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
1517
2054
|
};
|
|
1518
2055
|
};
|
|
2056
|
+
const deserializeAws_json1_0DescribeWatchlistResponse = (output, context) => {
|
|
2057
|
+
return {
|
|
2058
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
const deserializeAws_json1_0DisassociateFraudsterResponse = (output, context) => {
|
|
2062
|
+
return {
|
|
2063
|
+
Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
|
|
2064
|
+
};
|
|
2065
|
+
};
|
|
1519
2066
|
const deserializeAws_json1_0Domain = (output, context) => {
|
|
1520
2067
|
return {
|
|
1521
2068
|
Arn: __expectString(output.Arn),
|
|
@@ -1531,6 +2078,9 @@ const deserializeAws_json1_0Domain = (output, context) => {
|
|
|
1531
2078
|
? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
1532
2079
|
: undefined,
|
|
1533
2080
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2081
|
+
WatchlistDetails: output.WatchlistDetails != null
|
|
2082
|
+
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2083
|
+
: undefined,
|
|
1534
2084
|
};
|
|
1535
2085
|
};
|
|
1536
2086
|
const deserializeAws_json1_0DomainSummaries = (output, context) => {
|
|
@@ -1559,6 +2109,9 @@ const deserializeAws_json1_0DomainSummary = (output, context) => {
|
|
|
1559
2109
|
? deserializeAws_json1_0ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
1560
2110
|
: undefined,
|
|
1561
2111
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2112
|
+
WatchlistDetails: output.WatchlistDetails != null
|
|
2113
|
+
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2114
|
+
: undefined,
|
|
1562
2115
|
};
|
|
1563
2116
|
};
|
|
1564
2117
|
const deserializeAws_json1_0EnrollmentConfig = (output, context) => {
|
|
@@ -1573,8 +2126,22 @@ const deserializeAws_json1_0EnrollmentJobFraudDetectionConfig = (output, context
|
|
|
1573
2126
|
return {
|
|
1574
2127
|
FraudDetectionAction: __expectString(output.FraudDetectionAction),
|
|
1575
2128
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2129
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2130
|
+
? deserializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2131
|
+
: undefined,
|
|
1576
2132
|
};
|
|
1577
2133
|
};
|
|
2134
|
+
const deserializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2135
|
+
const retVal = (output || [])
|
|
2136
|
+
.filter((e) => e != null)
|
|
2137
|
+
.map((entry) => {
|
|
2138
|
+
if (entry === null) {
|
|
2139
|
+
return null;
|
|
2140
|
+
}
|
|
2141
|
+
return __expectString(entry);
|
|
2142
|
+
});
|
|
2143
|
+
return retVal;
|
|
2144
|
+
};
|
|
1578
2145
|
const deserializeAws_json1_0EvaluateSessionResponse = (output, context) => {
|
|
1579
2146
|
return {
|
|
1580
2147
|
AuthenticationResult: output.AuthenticationResult != null
|
|
@@ -1598,6 +2165,7 @@ const deserializeAws_json1_0FailureDetails = (output, context) => {
|
|
|
1598
2165
|
const deserializeAws_json1_0FraudDetectionConfiguration = (output, context) => {
|
|
1599
2166
|
return {
|
|
1600
2167
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2168
|
+
WatchlistId: __expectString(output.WatchlistId),
|
|
1601
2169
|
};
|
|
1602
2170
|
};
|
|
1603
2171
|
const deserializeAws_json1_0FraudDetectionReasons = (output, context) => {
|
|
@@ -1643,6 +2211,9 @@ const deserializeAws_json1_0Fraudster = (output, context) => {
|
|
|
1643
2211
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1644
2212
|
DomainId: __expectString(output.DomainId),
|
|
1645
2213
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2214
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2215
|
+
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2216
|
+
: undefined,
|
|
1646
2217
|
};
|
|
1647
2218
|
};
|
|
1648
2219
|
const deserializeAws_json1_0FraudsterRegistrationJob = (output, context) => {
|
|
@@ -1690,6 +2261,27 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummary = (output, context)
|
|
|
1690
2261
|
JobStatus: __expectString(output.JobStatus),
|
|
1691
2262
|
};
|
|
1692
2263
|
};
|
|
2264
|
+
const deserializeAws_json1_0FraudsterSummaries = (output, context) => {
|
|
2265
|
+
const retVal = (output || [])
|
|
2266
|
+
.filter((e) => e != null)
|
|
2267
|
+
.map((entry) => {
|
|
2268
|
+
if (entry === null) {
|
|
2269
|
+
return null;
|
|
2270
|
+
}
|
|
2271
|
+
return deserializeAws_json1_0FraudsterSummary(entry, context);
|
|
2272
|
+
});
|
|
2273
|
+
return retVal;
|
|
2274
|
+
};
|
|
2275
|
+
const deserializeAws_json1_0FraudsterSummary = (output, context) => {
|
|
2276
|
+
return {
|
|
2277
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2278
|
+
DomainId: __expectString(output.DomainId),
|
|
2279
|
+
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2280
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2281
|
+
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2282
|
+
: undefined,
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
1693
2285
|
const deserializeAws_json1_0InputDataConfig = (output, context) => {
|
|
1694
2286
|
return {
|
|
1695
2287
|
S3Uri: __expectString(output.S3Uri),
|
|
@@ -1727,6 +2319,14 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = (output, con
|
|
|
1727
2319
|
NextToken: __expectString(output.NextToken),
|
|
1728
2320
|
};
|
|
1729
2321
|
};
|
|
2322
|
+
const deserializeAws_json1_0ListFraudstersResponse = (output, context) => {
|
|
2323
|
+
return {
|
|
2324
|
+
FraudsterSummaries: output.FraudsterSummaries != null
|
|
2325
|
+
? deserializeAws_json1_0FraudsterSummaries(output.FraudsterSummaries, context)
|
|
2326
|
+
: undefined,
|
|
2327
|
+
NextToken: __expectString(output.NextToken),
|
|
2328
|
+
};
|
|
2329
|
+
};
|
|
1730
2330
|
const deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
1731
2331
|
return {
|
|
1732
2332
|
JobSummaries: output.JobSummaries != null
|
|
@@ -1748,6 +2348,14 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
1748
2348
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1749
2349
|
};
|
|
1750
2350
|
};
|
|
2351
|
+
const deserializeAws_json1_0ListWatchlistsResponse = (output, context) => {
|
|
2352
|
+
return {
|
|
2353
|
+
NextToken: __expectString(output.NextToken),
|
|
2354
|
+
WatchlistSummaries: output.WatchlistSummaries != null
|
|
2355
|
+
? deserializeAws_json1_0WatchlistSummaries(output.WatchlistSummaries, context)
|
|
2356
|
+
: undefined,
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
1751
2359
|
const deserializeAws_json1_0OptOutSpeakerResponse = (output, context) => {
|
|
1752
2360
|
return {
|
|
1753
2361
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
@@ -1763,14 +2371,39 @@ const deserializeAws_json1_0RegistrationConfig = (output, context) => {
|
|
|
1763
2371
|
return {
|
|
1764
2372
|
DuplicateRegistrationAction: __expectString(output.DuplicateRegistrationAction),
|
|
1765
2373
|
FraudsterSimilarityThreshold: __expectInt32(output.FraudsterSimilarityThreshold),
|
|
2374
|
+
WatchlistIds: output.WatchlistIds != null
|
|
2375
|
+
? deserializeAws_json1_0RegistrationConfigWatchlistIds(output.WatchlistIds, context)
|
|
2376
|
+
: undefined,
|
|
1766
2377
|
};
|
|
1767
2378
|
};
|
|
2379
|
+
const deserializeAws_json1_0RegistrationConfigWatchlistIds = (output, context) => {
|
|
2380
|
+
const retVal = (output || [])
|
|
2381
|
+
.filter((e) => e != null)
|
|
2382
|
+
.map((entry) => {
|
|
2383
|
+
if (entry === null) {
|
|
2384
|
+
return null;
|
|
2385
|
+
}
|
|
2386
|
+
return __expectString(entry);
|
|
2387
|
+
});
|
|
2388
|
+
return retVal;
|
|
2389
|
+
};
|
|
1768
2390
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1769
2391
|
return {
|
|
1770
2392
|
Message: __expectString(output.Message),
|
|
1771
2393
|
ResourceType: __expectString(output.ResourceType),
|
|
1772
2394
|
};
|
|
1773
2395
|
};
|
|
2396
|
+
const deserializeAws_json1_0ResponseWatchlistIds = (output, context) => {
|
|
2397
|
+
const retVal = (output || [])
|
|
2398
|
+
.filter((e) => e != null)
|
|
2399
|
+
.map((entry) => {
|
|
2400
|
+
if (entry === null) {
|
|
2401
|
+
return null;
|
|
2402
|
+
}
|
|
2403
|
+
return __expectString(entry);
|
|
2404
|
+
});
|
|
2405
|
+
return retVal;
|
|
2406
|
+
};
|
|
1774
2407
|
const deserializeAws_json1_0ServerSideEncryptionConfiguration = (output, context) => {
|
|
1775
2408
|
return {
|
|
1776
2409
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
@@ -1913,6 +2546,11 @@ const deserializeAws_json1_0UpdateDomainResponse = (output, context) => {
|
|
|
1913
2546
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1914
2547
|
};
|
|
1915
2548
|
};
|
|
2549
|
+
const deserializeAws_json1_0UpdateWatchlistResponse = (output, context) => {
|
|
2550
|
+
return {
|
|
2551
|
+
Watchlist: output.Watchlist != null ? deserializeAws_json1_0Watchlist(output.Watchlist, context) : undefined,
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
1916
2554
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
1917
2555
|
return {
|
|
1918
2556
|
Message: __expectString(output.Message),
|
|
@@ -1923,6 +2561,44 @@ const deserializeAws_json1_0VoiceSpoofingRisk = (output, context) => {
|
|
|
1923
2561
|
RiskScore: __expectInt32(output.RiskScore),
|
|
1924
2562
|
};
|
|
1925
2563
|
};
|
|
2564
|
+
const deserializeAws_json1_0Watchlist = (output, context) => {
|
|
2565
|
+
return {
|
|
2566
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2567
|
+
DefaultWatchlist: __expectBoolean(output.DefaultWatchlist),
|
|
2568
|
+
Description: __expectString(output.Description),
|
|
2569
|
+
DomainId: __expectString(output.DomainId),
|
|
2570
|
+
Name: __expectString(output.Name),
|
|
2571
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2572
|
+
WatchlistId: __expectString(output.WatchlistId),
|
|
2573
|
+
};
|
|
2574
|
+
};
|
|
2575
|
+
const deserializeAws_json1_0WatchlistDetails = (output, context) => {
|
|
2576
|
+
return {
|
|
2577
|
+
DefaultWatchlistId: __expectString(output.DefaultWatchlistId),
|
|
2578
|
+
};
|
|
2579
|
+
};
|
|
2580
|
+
const deserializeAws_json1_0WatchlistSummaries = (output, context) => {
|
|
2581
|
+
const retVal = (output || [])
|
|
2582
|
+
.filter((e) => e != null)
|
|
2583
|
+
.map((entry) => {
|
|
2584
|
+
if (entry === null) {
|
|
2585
|
+
return null;
|
|
2586
|
+
}
|
|
2587
|
+
return deserializeAws_json1_0WatchlistSummary(entry, context);
|
|
2588
|
+
});
|
|
2589
|
+
return retVal;
|
|
2590
|
+
};
|
|
2591
|
+
const deserializeAws_json1_0WatchlistSummary = (output, context) => {
|
|
2592
|
+
return {
|
|
2593
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2594
|
+
DefaultWatchlist: __expectBoolean(output.DefaultWatchlist),
|
|
2595
|
+
Description: __expectString(output.Description),
|
|
2596
|
+
DomainId: __expectString(output.DomainId),
|
|
2597
|
+
Name: __expectString(output.Name),
|
|
2598
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2599
|
+
WatchlistId: __expectString(output.WatchlistId),
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
1926
2602
|
const deserializeMetadata = (output) => ({
|
|
1927
2603
|
httpStatusCode: output.statusCode,
|
|
1928
2604
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|