@aws-sdk/client-voice-id 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/VoiceID.js +33 -406
- package/dist-cjs/protocols/Aws_json1_0.js +335 -846
- package/dist-es/VoiceID.js +33 -406
- package/dist-es/protocols/Aws_json1_0.js +336 -847
- package/dist-types/VoiceID.d.ts +37 -83
- package/dist-types/ts3.4/VoiceID.d.ts +2 -1
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ const VoiceIDServiceException_1 = require("../models/VoiceIDServiceException");
|
|
|
10
10
|
const se_AssociateFraudsterCommand = async (input, context) => {
|
|
11
11
|
const headers = sharedHeaders("AssociateFraudster");
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.se_AssociateFraudsterCommand = se_AssociateFraudsterCommand;
|
|
@@ -31,140 +31,140 @@ exports.se_CreateWatchlistCommand = se_CreateWatchlistCommand;
|
|
|
31
31
|
const se_DeleteDomainCommand = async (input, context) => {
|
|
32
32
|
const headers = sharedHeaders("DeleteDomain");
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
37
|
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
38
38
|
const se_DeleteFraudsterCommand = async (input, context) => {
|
|
39
39
|
const headers = sharedHeaders("DeleteFraudster");
|
|
40
40
|
let body;
|
|
41
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
43
|
};
|
|
44
44
|
exports.se_DeleteFraudsterCommand = se_DeleteFraudsterCommand;
|
|
45
45
|
const se_DeleteSpeakerCommand = async (input, context) => {
|
|
46
46
|
const headers = sharedHeaders("DeleteSpeaker");
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
51
|
exports.se_DeleteSpeakerCommand = se_DeleteSpeakerCommand;
|
|
52
52
|
const se_DeleteWatchlistCommand = async (input, context) => {
|
|
53
53
|
const headers = sharedHeaders("DeleteWatchlist");
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
58
|
exports.se_DeleteWatchlistCommand = se_DeleteWatchlistCommand;
|
|
59
59
|
const se_DescribeDomainCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DescribeDomain");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
66
66
|
const se_DescribeFraudsterCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("DescribeFraudster");
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
72
|
exports.se_DescribeFraudsterCommand = se_DescribeFraudsterCommand;
|
|
73
73
|
const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
74
74
|
const headers = sharedHeaders("DescribeFraudsterRegistrationJob");
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
exports.se_DescribeFraudsterRegistrationJobCommand = se_DescribeFraudsterRegistrationJobCommand;
|
|
80
80
|
const se_DescribeSpeakerCommand = async (input, context) => {
|
|
81
81
|
const headers = sharedHeaders("DescribeSpeaker");
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
86
|
exports.se_DescribeSpeakerCommand = se_DescribeSpeakerCommand;
|
|
87
87
|
const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
88
88
|
const headers = sharedHeaders("DescribeSpeakerEnrollmentJob");
|
|
89
89
|
let body;
|
|
90
|
-
body = JSON.stringify(
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
92
|
};
|
|
93
93
|
exports.se_DescribeSpeakerEnrollmentJobCommand = se_DescribeSpeakerEnrollmentJobCommand;
|
|
94
94
|
const se_DescribeWatchlistCommand = async (input, context) => {
|
|
95
95
|
const headers = sharedHeaders("DescribeWatchlist");
|
|
96
96
|
let body;
|
|
97
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
99
|
};
|
|
100
100
|
exports.se_DescribeWatchlistCommand = se_DescribeWatchlistCommand;
|
|
101
101
|
const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("DisassociateFraudster");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
exports.se_DisassociateFraudsterCommand = se_DisassociateFraudsterCommand;
|
|
108
108
|
const se_EvaluateSessionCommand = async (input, context) => {
|
|
109
109
|
const headers = sharedHeaders("EvaluateSession");
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
114
|
exports.se_EvaluateSessionCommand = se_EvaluateSessionCommand;
|
|
115
115
|
const se_ListDomainsCommand = async (input, context) => {
|
|
116
116
|
const headers = sharedHeaders("ListDomains");
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
120
|
};
|
|
121
121
|
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
122
122
|
const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
123
123
|
const headers = sharedHeaders("ListFraudsterRegistrationJobs");
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
128
|
exports.se_ListFraudsterRegistrationJobsCommand = se_ListFraudsterRegistrationJobsCommand;
|
|
129
129
|
const se_ListFraudstersCommand = async (input, context) => {
|
|
130
130
|
const headers = sharedHeaders("ListFraudsters");
|
|
131
131
|
let body;
|
|
132
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
134
|
};
|
|
135
135
|
exports.se_ListFraudstersCommand = se_ListFraudstersCommand;
|
|
136
136
|
const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
137
137
|
const headers = sharedHeaders("ListSpeakerEnrollmentJobs");
|
|
138
138
|
let body;
|
|
139
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
141
|
};
|
|
142
142
|
exports.se_ListSpeakerEnrollmentJobsCommand = se_ListSpeakerEnrollmentJobsCommand;
|
|
143
143
|
const se_ListSpeakersCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("ListSpeakers");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
exports.se_ListSpeakersCommand = se_ListSpeakersCommand;
|
|
150
150
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
151
151
|
const headers = sharedHeaders("ListTagsForResource");
|
|
152
152
|
let body;
|
|
153
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
155
|
};
|
|
156
156
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
157
157
|
const se_ListWatchlistsCommand = async (input, context) => {
|
|
158
158
|
const headers = sharedHeaders("ListWatchlists");
|
|
159
159
|
let body;
|
|
160
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
162
|
};
|
|
163
163
|
exports.se_ListWatchlistsCommand = se_ListWatchlistsCommand;
|
|
164
164
|
const se_OptOutSpeakerCommand = async (input, context) => {
|
|
165
165
|
const headers = sharedHeaders("OptOutSpeaker");
|
|
166
166
|
let body;
|
|
167
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
169
|
};
|
|
170
170
|
exports.se_OptOutSpeakerCommand = se_OptOutSpeakerCommand;
|
|
@@ -185,28 +185,28 @@ exports.se_StartSpeakerEnrollmentJobCommand = se_StartSpeakerEnrollmentJobComman
|
|
|
185
185
|
const se_TagResourceCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("TagResource");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
192
192
|
const se_UntagResourceCommand = async (input, context) => {
|
|
193
193
|
const headers = sharedHeaders("UntagResource");
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
198
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
199
199
|
const se_UpdateDomainCommand = async (input, context) => {
|
|
200
200
|
const headers = sharedHeaders("UpdateDomain");
|
|
201
201
|
let body;
|
|
202
|
-
body = JSON.stringify(
|
|
202
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
204
|
};
|
|
205
205
|
exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
|
|
206
206
|
const se_UpdateWatchlistCommand = async (input, context) => {
|
|
207
207
|
const headers = sharedHeaders("UpdateWatchlist");
|
|
208
208
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
211
|
};
|
|
212
212
|
exports.se_UpdateWatchlistCommand = se_UpdateWatchlistCommand;
|
|
@@ -221,7 +221,7 @@ const de_AssociateFraudsterCommand = async (output, context) => {
|
|
|
221
221
|
$metadata: deserializeMetadata(output),
|
|
222
222
|
...contents,
|
|
223
223
|
};
|
|
224
|
-
return
|
|
224
|
+
return response;
|
|
225
225
|
};
|
|
226
226
|
exports.de_AssociateFraudsterCommand = de_AssociateFraudsterCommand;
|
|
227
227
|
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
@@ -254,10 +254,9 @@ const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
|
254
254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
255
255
|
default:
|
|
256
256
|
const parsedBody = parsedOutput.body;
|
|
257
|
-
|
|
257
|
+
return throwDefaultError({
|
|
258
258
|
output,
|
|
259
259
|
parsedBody,
|
|
260
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
261
260
|
errorCode,
|
|
262
261
|
});
|
|
263
262
|
}
|
|
@@ -273,7 +272,7 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
273
272
|
$metadata: deserializeMetadata(output),
|
|
274
273
|
...contents,
|
|
275
274
|
};
|
|
276
|
-
return
|
|
275
|
+
return response;
|
|
277
276
|
};
|
|
278
277
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
279
278
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
@@ -306,10 +305,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
306
305
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
307
306
|
default:
|
|
308
307
|
const parsedBody = parsedOutput.body;
|
|
309
|
-
|
|
308
|
+
return throwDefaultError({
|
|
310
309
|
output,
|
|
311
310
|
parsedBody,
|
|
312
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
313
311
|
errorCode,
|
|
314
312
|
});
|
|
315
313
|
}
|
|
@@ -325,7 +323,7 @@ const de_CreateWatchlistCommand = async (output, context) => {
|
|
|
325
323
|
$metadata: deserializeMetadata(output),
|
|
326
324
|
...contents,
|
|
327
325
|
};
|
|
328
|
-
return
|
|
326
|
+
return response;
|
|
329
327
|
};
|
|
330
328
|
exports.de_CreateWatchlistCommand = de_CreateWatchlistCommand;
|
|
331
329
|
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
@@ -358,10 +356,9 @@ const de_CreateWatchlistCommandError = async (output, context) => {
|
|
|
358
356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
357
|
default:
|
|
360
358
|
const parsedBody = parsedOutput.body;
|
|
361
|
-
|
|
359
|
+
return throwDefaultError({
|
|
362
360
|
output,
|
|
363
361
|
parsedBody,
|
|
364
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
365
362
|
errorCode,
|
|
366
363
|
});
|
|
367
364
|
}
|
|
@@ -374,7 +371,7 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
374
371
|
const response = {
|
|
375
372
|
$metadata: deserializeMetadata(output),
|
|
376
373
|
};
|
|
377
|
-
return
|
|
374
|
+
return response;
|
|
378
375
|
};
|
|
379
376
|
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
380
377
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
@@ -404,10 +401,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
404
401
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
405
402
|
default:
|
|
406
403
|
const parsedBody = parsedOutput.body;
|
|
407
|
-
|
|
404
|
+
return throwDefaultError({
|
|
408
405
|
output,
|
|
409
406
|
parsedBody,
|
|
410
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
411
407
|
errorCode,
|
|
412
408
|
});
|
|
413
409
|
}
|
|
@@ -420,7 +416,7 @@ const de_DeleteFraudsterCommand = async (output, context) => {
|
|
|
420
416
|
const response = {
|
|
421
417
|
$metadata: deserializeMetadata(output),
|
|
422
418
|
};
|
|
423
|
-
return
|
|
419
|
+
return response;
|
|
424
420
|
};
|
|
425
421
|
exports.de_DeleteFraudsterCommand = de_DeleteFraudsterCommand;
|
|
426
422
|
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
@@ -450,10 +446,9 @@ const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
|
450
446
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
447
|
default:
|
|
452
448
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
|
|
449
|
+
return throwDefaultError({
|
|
454
450
|
output,
|
|
455
451
|
parsedBody,
|
|
456
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
457
452
|
errorCode,
|
|
458
453
|
});
|
|
459
454
|
}
|
|
@@ -466,7 +461,7 @@ const de_DeleteSpeakerCommand = async (output, context) => {
|
|
|
466
461
|
const response = {
|
|
467
462
|
$metadata: deserializeMetadata(output),
|
|
468
463
|
};
|
|
469
|
-
return
|
|
464
|
+
return response;
|
|
470
465
|
};
|
|
471
466
|
exports.de_DeleteSpeakerCommand = de_DeleteSpeakerCommand;
|
|
472
467
|
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
@@ -496,10 +491,9 @@ const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
|
496
491
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
492
|
default:
|
|
498
493
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
|
|
494
|
+
return throwDefaultError({
|
|
500
495
|
output,
|
|
501
496
|
parsedBody,
|
|
502
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
503
497
|
errorCode,
|
|
504
498
|
});
|
|
505
499
|
}
|
|
@@ -512,7 +506,7 @@ const de_DeleteWatchlistCommand = async (output, context) => {
|
|
|
512
506
|
const response = {
|
|
513
507
|
$metadata: deserializeMetadata(output),
|
|
514
508
|
};
|
|
515
|
-
return
|
|
509
|
+
return response;
|
|
516
510
|
};
|
|
517
511
|
exports.de_DeleteWatchlistCommand = de_DeleteWatchlistCommand;
|
|
518
512
|
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
@@ -542,10 +536,9 @@ const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
|
542
536
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
537
|
default:
|
|
544
538
|
const parsedBody = parsedOutput.body;
|
|
545
|
-
|
|
539
|
+
return throwDefaultError({
|
|
546
540
|
output,
|
|
547
541
|
parsedBody,
|
|
548
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
549
542
|
errorCode,
|
|
550
543
|
});
|
|
551
544
|
}
|
|
@@ -561,7 +554,7 @@ const de_DescribeDomainCommand = async (output, context) => {
|
|
|
561
554
|
$metadata: deserializeMetadata(output),
|
|
562
555
|
...contents,
|
|
563
556
|
};
|
|
564
|
-
return
|
|
557
|
+
return response;
|
|
565
558
|
};
|
|
566
559
|
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
567
560
|
const de_DescribeDomainCommandError = async (output, context) => {
|
|
@@ -588,10 +581,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
588
581
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
582
|
default:
|
|
590
583
|
const parsedBody = parsedOutput.body;
|
|
591
|
-
|
|
584
|
+
return throwDefaultError({
|
|
592
585
|
output,
|
|
593
586
|
parsedBody,
|
|
594
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
595
587
|
errorCode,
|
|
596
588
|
});
|
|
597
589
|
}
|
|
@@ -607,7 +599,7 @@ const de_DescribeFraudsterCommand = async (output, context) => {
|
|
|
607
599
|
$metadata: deserializeMetadata(output),
|
|
608
600
|
...contents,
|
|
609
601
|
};
|
|
610
|
-
return
|
|
602
|
+
return response;
|
|
611
603
|
};
|
|
612
604
|
exports.de_DescribeFraudsterCommand = de_DescribeFraudsterCommand;
|
|
613
605
|
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
@@ -634,10 +626,9 @@ const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
|
634
626
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
627
|
default:
|
|
636
628
|
const parsedBody = parsedOutput.body;
|
|
637
|
-
|
|
629
|
+
return throwDefaultError({
|
|
638
630
|
output,
|
|
639
631
|
parsedBody,
|
|
640
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
641
632
|
errorCode,
|
|
642
633
|
});
|
|
643
634
|
}
|
|
@@ -653,7 +644,7 @@ const de_DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
|
653
644
|
$metadata: deserializeMetadata(output),
|
|
654
645
|
...contents,
|
|
655
646
|
};
|
|
656
|
-
return
|
|
647
|
+
return response;
|
|
657
648
|
};
|
|
658
649
|
exports.de_DescribeFraudsterRegistrationJobCommand = de_DescribeFraudsterRegistrationJobCommand;
|
|
659
650
|
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
@@ -680,10 +671,9 @@ const de_DescribeFraudsterRegistrationJobCommandError = async (output, context)
|
|
|
680
671
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
672
|
default:
|
|
682
673
|
const parsedBody = parsedOutput.body;
|
|
683
|
-
|
|
674
|
+
return throwDefaultError({
|
|
684
675
|
output,
|
|
685
676
|
parsedBody,
|
|
686
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
687
677
|
errorCode,
|
|
688
678
|
});
|
|
689
679
|
}
|
|
@@ -699,7 +689,7 @@ const de_DescribeSpeakerCommand = async (output, context) => {
|
|
|
699
689
|
$metadata: deserializeMetadata(output),
|
|
700
690
|
...contents,
|
|
701
691
|
};
|
|
702
|
-
return
|
|
692
|
+
return response;
|
|
703
693
|
};
|
|
704
694
|
exports.de_DescribeSpeakerCommand = de_DescribeSpeakerCommand;
|
|
705
695
|
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
@@ -726,10 +716,9 @@ const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
|
726
716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
717
|
default:
|
|
728
718
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
719
|
+
return throwDefaultError({
|
|
730
720
|
output,
|
|
731
721
|
parsedBody,
|
|
732
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
733
722
|
errorCode,
|
|
734
723
|
});
|
|
735
724
|
}
|
|
@@ -745,7 +734,7 @@ const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
745
734
|
$metadata: deserializeMetadata(output),
|
|
746
735
|
...contents,
|
|
747
736
|
};
|
|
748
|
-
return
|
|
737
|
+
return response;
|
|
749
738
|
};
|
|
750
739
|
exports.de_DescribeSpeakerEnrollmentJobCommand = de_DescribeSpeakerEnrollmentJobCommand;
|
|
751
740
|
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
@@ -772,10 +761,9 @@ const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
772
761
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
773
762
|
default:
|
|
774
763
|
const parsedBody = parsedOutput.body;
|
|
775
|
-
|
|
764
|
+
return throwDefaultError({
|
|
776
765
|
output,
|
|
777
766
|
parsedBody,
|
|
778
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
779
767
|
errorCode,
|
|
780
768
|
});
|
|
781
769
|
}
|
|
@@ -791,7 +779,7 @@ const de_DescribeWatchlistCommand = async (output, context) => {
|
|
|
791
779
|
$metadata: deserializeMetadata(output),
|
|
792
780
|
...contents,
|
|
793
781
|
};
|
|
794
|
-
return
|
|
782
|
+
return response;
|
|
795
783
|
};
|
|
796
784
|
exports.de_DescribeWatchlistCommand = de_DescribeWatchlistCommand;
|
|
797
785
|
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
@@ -818,10 +806,9 @@ const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
|
818
806
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
807
|
default:
|
|
820
808
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
809
|
+
return throwDefaultError({
|
|
822
810
|
output,
|
|
823
811
|
parsedBody,
|
|
824
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
825
812
|
errorCode,
|
|
826
813
|
});
|
|
827
814
|
}
|
|
@@ -837,7 +824,7 @@ const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
|
837
824
|
$metadata: deserializeMetadata(output),
|
|
838
825
|
...contents,
|
|
839
826
|
};
|
|
840
|
-
return
|
|
827
|
+
return response;
|
|
841
828
|
};
|
|
842
829
|
exports.de_DisassociateFraudsterCommand = de_DisassociateFraudsterCommand;
|
|
843
830
|
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
@@ -867,10 +854,9 @@ const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
|
867
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
855
|
default:
|
|
869
856
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
857
|
+
return throwDefaultError({
|
|
871
858
|
output,
|
|
872
859
|
parsedBody,
|
|
873
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
874
860
|
errorCode,
|
|
875
861
|
});
|
|
876
862
|
}
|
|
@@ -886,7 +872,7 @@ const de_EvaluateSessionCommand = async (output, context) => {
|
|
|
886
872
|
$metadata: deserializeMetadata(output),
|
|
887
873
|
...contents,
|
|
888
874
|
};
|
|
889
|
-
return
|
|
875
|
+
return response;
|
|
890
876
|
};
|
|
891
877
|
exports.de_EvaluateSessionCommand = de_EvaluateSessionCommand;
|
|
892
878
|
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
@@ -916,10 +902,9 @@ const de_EvaluateSessionCommandError = async (output, context) => {
|
|
|
916
902
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
903
|
default:
|
|
918
904
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
|
|
905
|
+
return throwDefaultError({
|
|
920
906
|
output,
|
|
921
907
|
parsedBody,
|
|
922
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
923
908
|
errorCode,
|
|
924
909
|
});
|
|
925
910
|
}
|
|
@@ -935,7 +920,7 @@ const de_ListDomainsCommand = async (output, context) => {
|
|
|
935
920
|
$metadata: deserializeMetadata(output),
|
|
936
921
|
...contents,
|
|
937
922
|
};
|
|
938
|
-
return
|
|
923
|
+
return response;
|
|
939
924
|
};
|
|
940
925
|
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
941
926
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
@@ -959,10 +944,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
959
944
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
945
|
default:
|
|
961
946
|
const parsedBody = parsedOutput.body;
|
|
962
|
-
|
|
947
|
+
return throwDefaultError({
|
|
963
948
|
output,
|
|
964
949
|
parsedBody,
|
|
965
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
966
950
|
errorCode,
|
|
967
951
|
});
|
|
968
952
|
}
|
|
@@ -978,7 +962,7 @@ const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
|
978
962
|
$metadata: deserializeMetadata(output),
|
|
979
963
|
...contents,
|
|
980
964
|
};
|
|
981
|
-
return
|
|
965
|
+
return response;
|
|
982
966
|
};
|
|
983
967
|
exports.de_ListFraudsterRegistrationJobsCommand = de_ListFraudsterRegistrationJobsCommand;
|
|
984
968
|
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
@@ -1005,10 +989,9 @@ const de_ListFraudsterRegistrationJobsCommandError = async (output, context) =>
|
|
|
1005
989
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1006
990
|
default:
|
|
1007
991
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
|
|
992
|
+
return throwDefaultError({
|
|
1009
993
|
output,
|
|
1010
994
|
parsedBody,
|
|
1011
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1012
995
|
errorCode,
|
|
1013
996
|
});
|
|
1014
997
|
}
|
|
@@ -1024,7 +1007,7 @@ const de_ListFraudstersCommand = async (output, context) => {
|
|
|
1024
1007
|
$metadata: deserializeMetadata(output),
|
|
1025
1008
|
...contents,
|
|
1026
1009
|
};
|
|
1027
|
-
return
|
|
1010
|
+
return response;
|
|
1028
1011
|
};
|
|
1029
1012
|
exports.de_ListFraudstersCommand = de_ListFraudstersCommand;
|
|
1030
1013
|
const de_ListFraudstersCommandError = async (output, context) => {
|
|
@@ -1051,10 +1034,9 @@ const de_ListFraudstersCommandError = async (output, context) => {
|
|
|
1051
1034
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
1035
|
default:
|
|
1053
1036
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
|
|
1037
|
+
return throwDefaultError({
|
|
1055
1038
|
output,
|
|
1056
1039
|
parsedBody,
|
|
1057
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1058
1040
|
errorCode,
|
|
1059
1041
|
});
|
|
1060
1042
|
}
|
|
@@ -1070,7 +1052,7 @@ const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
|
1070
1052
|
$metadata: deserializeMetadata(output),
|
|
1071
1053
|
...contents,
|
|
1072
1054
|
};
|
|
1073
|
-
return
|
|
1055
|
+
return response;
|
|
1074
1056
|
};
|
|
1075
1057
|
exports.de_ListSpeakerEnrollmentJobsCommand = de_ListSpeakerEnrollmentJobsCommand;
|
|
1076
1058
|
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
@@ -1097,10 +1079,9 @@ const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
|
1097
1079
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1098
1080
|
default:
|
|
1099
1081
|
const parsedBody = parsedOutput.body;
|
|
1100
|
-
|
|
1082
|
+
return throwDefaultError({
|
|
1101
1083
|
output,
|
|
1102
1084
|
parsedBody,
|
|
1103
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1104
1085
|
errorCode,
|
|
1105
1086
|
});
|
|
1106
1087
|
}
|
|
@@ -1116,7 +1097,7 @@ const de_ListSpeakersCommand = async (output, context) => {
|
|
|
1116
1097
|
$metadata: deserializeMetadata(output),
|
|
1117
1098
|
...contents,
|
|
1118
1099
|
};
|
|
1119
|
-
return
|
|
1100
|
+
return response;
|
|
1120
1101
|
};
|
|
1121
1102
|
exports.de_ListSpeakersCommand = de_ListSpeakersCommand;
|
|
1122
1103
|
const de_ListSpeakersCommandError = async (output, context) => {
|
|
@@ -1143,10 +1124,9 @@ const de_ListSpeakersCommandError = async (output, context) => {
|
|
|
1143
1124
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1144
1125
|
default:
|
|
1145
1126
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
|
|
1127
|
+
return throwDefaultError({
|
|
1147
1128
|
output,
|
|
1148
1129
|
parsedBody,
|
|
1149
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1150
1130
|
errorCode,
|
|
1151
1131
|
});
|
|
1152
1132
|
}
|
|
@@ -1157,12 +1137,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1157
1137
|
}
|
|
1158
1138
|
const data = await parseBody(output.body, context);
|
|
1159
1139
|
let contents = {};
|
|
1160
|
-
contents =
|
|
1140
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1161
1141
|
const response = {
|
|
1162
1142
|
$metadata: deserializeMetadata(output),
|
|
1163
1143
|
...contents,
|
|
1164
1144
|
};
|
|
1165
|
-
return
|
|
1145
|
+
return response;
|
|
1166
1146
|
};
|
|
1167
1147
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1168
1148
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1189,10 +1169,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1189
1169
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1190
1170
|
default:
|
|
1191
1171
|
const parsedBody = parsedOutput.body;
|
|
1192
|
-
|
|
1172
|
+
return throwDefaultError({
|
|
1193
1173
|
output,
|
|
1194
1174
|
parsedBody,
|
|
1195
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1196
1175
|
errorCode,
|
|
1197
1176
|
});
|
|
1198
1177
|
}
|
|
@@ -1208,7 +1187,7 @@ const de_ListWatchlistsCommand = async (output, context) => {
|
|
|
1208
1187
|
$metadata: deserializeMetadata(output),
|
|
1209
1188
|
...contents,
|
|
1210
1189
|
};
|
|
1211
|
-
return
|
|
1190
|
+
return response;
|
|
1212
1191
|
};
|
|
1213
1192
|
exports.de_ListWatchlistsCommand = de_ListWatchlistsCommand;
|
|
1214
1193
|
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
@@ -1235,10 +1214,9 @@ const de_ListWatchlistsCommandError = async (output, context) => {
|
|
|
1235
1214
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1236
1215
|
default:
|
|
1237
1216
|
const parsedBody = parsedOutput.body;
|
|
1238
|
-
|
|
1217
|
+
return throwDefaultError({
|
|
1239
1218
|
output,
|
|
1240
1219
|
parsedBody,
|
|
1241
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1242
1220
|
errorCode,
|
|
1243
1221
|
});
|
|
1244
1222
|
}
|
|
@@ -1254,7 +1232,7 @@ const de_OptOutSpeakerCommand = async (output, context) => {
|
|
|
1254
1232
|
$metadata: deserializeMetadata(output),
|
|
1255
1233
|
...contents,
|
|
1256
1234
|
};
|
|
1257
|
-
return
|
|
1235
|
+
return response;
|
|
1258
1236
|
};
|
|
1259
1237
|
exports.de_OptOutSpeakerCommand = de_OptOutSpeakerCommand;
|
|
1260
1238
|
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
@@ -1287,10 +1265,9 @@ const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
|
1287
1265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
1266
|
default:
|
|
1289
1267
|
const parsedBody = parsedOutput.body;
|
|
1290
|
-
|
|
1268
|
+
return throwDefaultError({
|
|
1291
1269
|
output,
|
|
1292
1270
|
parsedBody,
|
|
1293
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1294
1271
|
errorCode,
|
|
1295
1272
|
});
|
|
1296
1273
|
}
|
|
@@ -1306,7 +1283,7 @@ const de_StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
|
1306
1283
|
$metadata: deserializeMetadata(output),
|
|
1307
1284
|
...contents,
|
|
1308
1285
|
};
|
|
1309
|
-
return
|
|
1286
|
+
return response;
|
|
1310
1287
|
};
|
|
1311
1288
|
exports.de_StartFraudsterRegistrationJobCommand = de_StartFraudsterRegistrationJobCommand;
|
|
1312
1289
|
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
@@ -1339,10 +1316,9 @@ const de_StartFraudsterRegistrationJobCommandError = async (output, context) =>
|
|
|
1339
1316
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
1317
|
default:
|
|
1341
1318
|
const parsedBody = parsedOutput.body;
|
|
1342
|
-
|
|
1319
|
+
return throwDefaultError({
|
|
1343
1320
|
output,
|
|
1344
1321
|
parsedBody,
|
|
1345
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1346
1322
|
errorCode,
|
|
1347
1323
|
});
|
|
1348
1324
|
}
|
|
@@ -1358,7 +1334,7 @@ const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
1358
1334
|
$metadata: deserializeMetadata(output),
|
|
1359
1335
|
...contents,
|
|
1360
1336
|
};
|
|
1361
|
-
return
|
|
1337
|
+
return response;
|
|
1362
1338
|
};
|
|
1363
1339
|
exports.de_StartSpeakerEnrollmentJobCommand = de_StartSpeakerEnrollmentJobCommand;
|
|
1364
1340
|
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
@@ -1391,10 +1367,9 @@ const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
1391
1367
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1392
1368
|
default:
|
|
1393
1369
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1370
|
+
return throwDefaultError({
|
|
1395
1371
|
output,
|
|
1396
1372
|
parsedBody,
|
|
1397
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1398
1373
|
errorCode,
|
|
1399
1374
|
});
|
|
1400
1375
|
}
|
|
@@ -1405,12 +1380,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1405
1380
|
}
|
|
1406
1381
|
const data = await parseBody(output.body, context);
|
|
1407
1382
|
let contents = {};
|
|
1408
|
-
contents =
|
|
1383
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1409
1384
|
const response = {
|
|
1410
1385
|
$metadata: deserializeMetadata(output),
|
|
1411
1386
|
...contents,
|
|
1412
1387
|
};
|
|
1413
|
-
return
|
|
1388
|
+
return response;
|
|
1414
1389
|
};
|
|
1415
1390
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1416
1391
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1440,10 +1415,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1440
1415
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1441
1416
|
default:
|
|
1442
1417
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1418
|
+
return throwDefaultError({
|
|
1444
1419
|
output,
|
|
1445
1420
|
parsedBody,
|
|
1446
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1447
1421
|
errorCode,
|
|
1448
1422
|
});
|
|
1449
1423
|
}
|
|
@@ -1454,12 +1428,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1454
1428
|
}
|
|
1455
1429
|
const data = await parseBody(output.body, context);
|
|
1456
1430
|
let contents = {};
|
|
1457
|
-
contents =
|
|
1431
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1458
1432
|
const response = {
|
|
1459
1433
|
$metadata: deserializeMetadata(output),
|
|
1460
1434
|
...contents,
|
|
1461
1435
|
};
|
|
1462
|
-
return
|
|
1436
|
+
return response;
|
|
1463
1437
|
};
|
|
1464
1438
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1465
1439
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1489,10 +1463,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1489
1463
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1490
1464
|
default:
|
|
1491
1465
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1466
|
+
return throwDefaultError({
|
|
1493
1467
|
output,
|
|
1494
1468
|
parsedBody,
|
|
1495
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1496
1469
|
errorCode,
|
|
1497
1470
|
});
|
|
1498
1471
|
}
|
|
@@ -1508,7 +1481,7 @@ const de_UpdateDomainCommand = async (output, context) => {
|
|
|
1508
1481
|
$metadata: deserializeMetadata(output),
|
|
1509
1482
|
...contents,
|
|
1510
1483
|
};
|
|
1511
|
-
return
|
|
1484
|
+
return response;
|
|
1512
1485
|
};
|
|
1513
1486
|
exports.de_UpdateDomainCommand = de_UpdateDomainCommand;
|
|
1514
1487
|
const de_UpdateDomainCommandError = async (output, context) => {
|
|
@@ -1538,10 +1511,9 @@ const de_UpdateDomainCommandError = async (output, context) => {
|
|
|
1538
1511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1539
1512
|
default:
|
|
1540
1513
|
const parsedBody = parsedOutput.body;
|
|
1541
|
-
|
|
1514
|
+
return throwDefaultError({
|
|
1542
1515
|
output,
|
|
1543
1516
|
parsedBody,
|
|
1544
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1545
1517
|
errorCode,
|
|
1546
1518
|
});
|
|
1547
1519
|
}
|
|
@@ -1557,7 +1529,7 @@ const de_UpdateWatchlistCommand = async (output, context) => {
|
|
|
1557
1529
|
$metadata: deserializeMetadata(output),
|
|
1558
1530
|
...contents,
|
|
1559
1531
|
};
|
|
1560
|
-
return
|
|
1532
|
+
return response;
|
|
1561
1533
|
};
|
|
1562
1534
|
exports.de_UpdateWatchlistCommand = de_UpdateWatchlistCommand;
|
|
1563
1535
|
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
@@ -1587,17 +1559,16 @@ const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
|
1587
1559
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
1560
|
default:
|
|
1589
1561
|
const parsedBody = parsedOutput.body;
|
|
1590
|
-
|
|
1562
|
+
return throwDefaultError({
|
|
1591
1563
|
output,
|
|
1592
1564
|
parsedBody,
|
|
1593
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1594
1565
|
errorCode,
|
|
1595
1566
|
});
|
|
1596
1567
|
}
|
|
1597
1568
|
};
|
|
1598
1569
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1599
1570
|
const body = parsedOutput.body;
|
|
1600
|
-
const deserialized =
|
|
1571
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1601
1572
|
const exception = new models_0_1.AccessDeniedException({
|
|
1602
1573
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1603
1574
|
...deserialized,
|
|
@@ -1606,7 +1577,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1606
1577
|
};
|
|
1607
1578
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1608
1579
|
const body = parsedOutput.body;
|
|
1609
|
-
const deserialized =
|
|
1580
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1610
1581
|
const exception = new models_0_1.ConflictException({
|
|
1611
1582
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1612
1583
|
...deserialized,
|
|
@@ -1615,7 +1586,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1615
1586
|
};
|
|
1616
1587
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1617
1588
|
const body = parsedOutput.body;
|
|
1618
|
-
const deserialized =
|
|
1589
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1619
1590
|
const exception = new models_0_1.InternalServerException({
|
|
1620
1591
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1621
1592
|
...deserialized,
|
|
@@ -1624,7 +1595,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1624
1595
|
};
|
|
1625
1596
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1626
1597
|
const body = parsedOutput.body;
|
|
1627
|
-
const deserialized =
|
|
1598
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1628
1599
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1629
1600
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1630
1601
|
...deserialized,
|
|
@@ -1633,7 +1604,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1633
1604
|
};
|
|
1634
1605
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1635
1606
|
const body = parsedOutput.body;
|
|
1636
|
-
const deserialized =
|
|
1607
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1637
1608
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1638
1609
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1639
1610
|
...deserialized,
|
|
@@ -1642,7 +1613,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1642
1613
|
};
|
|
1643
1614
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1644
1615
|
const body = parsedOutput.body;
|
|
1645
|
-
const deserialized =
|
|
1616
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1646
1617
|
const exception = new models_0_1.ThrottlingException({
|
|
1647
1618
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1648
1619
|
...deserialized,
|
|
@@ -1651,870 +1622,387 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1651
1622
|
};
|
|
1652
1623
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1653
1624
|
const body = parsedOutput.body;
|
|
1654
|
-
const deserialized =
|
|
1625
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1655
1626
|
const exception = new models_0_1.ValidationException({
|
|
1656
1627
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1657
1628
|
...deserialized,
|
|
1658
1629
|
});
|
|
1659
1630
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1660
1631
|
};
|
|
1661
|
-
const se_AssociateFraudsterRequest = (input, context) => {
|
|
1662
|
-
return {
|
|
1663
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1664
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1665
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
1632
|
const se_CreateDomainRequest = (input, context) => {
|
|
1669
|
-
return {
|
|
1670
|
-
ClientToken:
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
}),
|
|
1676
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1677
|
-
};
|
|
1678
|
-
};
|
|
1679
|
-
const se_CreateWatchlistRequest = (input, context) => {
|
|
1680
|
-
return {
|
|
1681
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1682
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1683
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1684
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1685
|
-
};
|
|
1686
|
-
};
|
|
1687
|
-
const se_DeleteDomainRequest = (input, context) => {
|
|
1688
|
-
return {
|
|
1689
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1690
|
-
};
|
|
1691
|
-
};
|
|
1692
|
-
const se_DeleteFraudsterRequest = (input, context) => {
|
|
1693
|
-
return {
|
|
1694
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1695
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const se_DeleteSpeakerRequest = (input, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1701
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
const se_DeleteWatchlistRequest = (input, context) => {
|
|
1705
|
-
return {
|
|
1706
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1707
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1708
|
-
};
|
|
1709
|
-
};
|
|
1710
|
-
const se_DescribeDomainRequest = (input, context) => {
|
|
1711
|
-
return {
|
|
1712
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1713
|
-
};
|
|
1714
|
-
};
|
|
1715
|
-
const se_DescribeFraudsterRegistrationJobRequest = (input, context) => {
|
|
1716
|
-
return {
|
|
1717
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1718
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1719
|
-
};
|
|
1720
|
-
};
|
|
1721
|
-
const se_DescribeFraudsterRequest = (input, context) => {
|
|
1722
|
-
return {
|
|
1723
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1724
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1725
|
-
};
|
|
1726
|
-
};
|
|
1727
|
-
const se_DescribeSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1728
|
-
return {
|
|
1729
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1730
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
const se_DescribeSpeakerRequest = (input, context) => {
|
|
1734
|
-
return {
|
|
1735
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1736
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1737
|
-
};
|
|
1738
|
-
};
|
|
1739
|
-
const se_DescribeWatchlistRequest = (input, context) => {
|
|
1740
|
-
return {
|
|
1741
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1742
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1743
|
-
};
|
|
1744
|
-
};
|
|
1745
|
-
const se_DisassociateFraudsterRequest = (input, context) => {
|
|
1746
|
-
return {
|
|
1747
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1748
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1749
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
const se_EnrollmentConfig = (input, context) => {
|
|
1753
|
-
return {
|
|
1754
|
-
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
1755
|
-
...(input.FraudDetectionConfig != null && {
|
|
1756
|
-
FraudDetectionConfig: se_EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1757
|
-
}),
|
|
1758
|
-
};
|
|
1759
|
-
};
|
|
1760
|
-
const se_EnrollmentJobFraudDetectionConfig = (input, context) => {
|
|
1761
|
-
return {
|
|
1762
|
-
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1763
|
-
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1764
|
-
...(input.WatchlistIds != null && {
|
|
1765
|
-
WatchlistIds: se_EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1766
|
-
}),
|
|
1767
|
-
};
|
|
1768
|
-
};
|
|
1769
|
-
const se_EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1770
|
-
return input
|
|
1771
|
-
.filter((e) => e != null)
|
|
1772
|
-
.map((entry) => {
|
|
1773
|
-
return entry;
|
|
1633
|
+
return (0, smithy_client_1.take)(input, {
|
|
1634
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1635
|
+
Description: [],
|
|
1636
|
+
Name: [],
|
|
1637
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1638
|
+
Tags: smithy_client_1._json,
|
|
1774
1639
|
});
|
|
1775
1640
|
};
|
|
1776
|
-
const
|
|
1777
|
-
return {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
const se_InputDataConfig = (input, context) => {
|
|
1783
|
-
return {
|
|
1784
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1785
|
-
};
|
|
1786
|
-
};
|
|
1787
|
-
const se_ListDomainsRequest = (input, context) => {
|
|
1788
|
-
return {
|
|
1789
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1790
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1791
|
-
};
|
|
1792
|
-
};
|
|
1793
|
-
const se_ListFraudsterRegistrationJobsRequest = (input, context) => {
|
|
1794
|
-
return {
|
|
1795
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1796
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1797
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1798
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1799
|
-
};
|
|
1800
|
-
};
|
|
1801
|
-
const se_ListFraudstersRequest = (input, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1804
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1805
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1806
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
const se_ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1810
|
-
return {
|
|
1811
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1812
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1813
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1814
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1815
|
-
};
|
|
1816
|
-
};
|
|
1817
|
-
const se_ListSpeakersRequest = (input, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1820
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1821
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
const se_ListWatchlistsRequest = (input, context) => {
|
|
1830
|
-
return {
|
|
1831
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1832
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1833
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1834
|
-
};
|
|
1835
|
-
};
|
|
1836
|
-
const se_OptOutSpeakerRequest = (input, context) => {
|
|
1837
|
-
return {
|
|
1838
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1839
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
|
-
const se_OutputDataConfig = (input, context) => {
|
|
1843
|
-
return {
|
|
1844
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1845
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1846
|
-
};
|
|
1847
|
-
};
|
|
1848
|
-
const se_RegistrationConfig = (input, context) => {
|
|
1849
|
-
return {
|
|
1850
|
-
...(input.DuplicateRegistrationAction != null && {
|
|
1851
|
-
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
1852
|
-
}),
|
|
1853
|
-
...(input.FraudsterSimilarityThreshold != null && {
|
|
1854
|
-
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1855
|
-
}),
|
|
1856
|
-
...(input.WatchlistIds != null && { WatchlistIds: se_RegistrationConfigWatchlistIds(input.WatchlistIds, context) }),
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
const se_RegistrationConfigWatchlistIds = (input, context) => {
|
|
1860
|
-
return input
|
|
1861
|
-
.filter((e) => e != null)
|
|
1862
|
-
.map((entry) => {
|
|
1863
|
-
return entry;
|
|
1641
|
+
const se_CreateWatchlistRequest = (input, context) => {
|
|
1642
|
+
return (0, smithy_client_1.take)(input, {
|
|
1643
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1644
|
+
Description: [],
|
|
1645
|
+
DomainId: [],
|
|
1646
|
+
Name: [],
|
|
1864
1647
|
});
|
|
1865
1648
|
};
|
|
1866
|
-
const se_ServerSideEncryptionConfiguration = (input, context) => {
|
|
1867
|
-
return {
|
|
1868
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
1649
|
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1872
|
-
return {
|
|
1873
|
-
ClientToken:
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
RegistrationConfig: se_RegistrationConfig(input.RegistrationConfig, context),
|
|
1881
|
-
}),
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1885
|
-
return {
|
|
1886
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1887
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1888
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1889
|
-
...(input.EnrollmentConfig != null && { EnrollmentConfig: se_EnrollmentConfig(input.EnrollmentConfig, context) }),
|
|
1890
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1891
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1892
|
-
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
const se_Tag = (input, context) => {
|
|
1896
|
-
return {
|
|
1897
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1898
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
const se_TagKeyList = (input, context) => {
|
|
1902
|
-
return input
|
|
1903
|
-
.filter((e) => e != null)
|
|
1904
|
-
.map((entry) => {
|
|
1905
|
-
return entry;
|
|
1650
|
+
return (0, smithy_client_1.take)(input, {
|
|
1651
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1652
|
+
DataAccessRoleArn: [],
|
|
1653
|
+
DomainId: [],
|
|
1654
|
+
InputDataConfig: smithy_client_1._json,
|
|
1655
|
+
JobName: [],
|
|
1656
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1657
|
+
RegistrationConfig: smithy_client_1._json,
|
|
1906
1658
|
});
|
|
1907
1659
|
};
|
|
1908
|
-
const
|
|
1909
|
-
return input
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1660
|
+
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1661
|
+
return (0, smithy_client_1.take)(input, {
|
|
1662
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1663
|
+
DataAccessRoleArn: [],
|
|
1664
|
+
DomainId: [],
|
|
1665
|
+
EnrollmentConfig: smithy_client_1._json,
|
|
1666
|
+
InputDataConfig: smithy_client_1._json,
|
|
1667
|
+
JobName: [],
|
|
1668
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1913
1669
|
});
|
|
1914
1670
|
};
|
|
1915
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1916
|
-
return {
|
|
1917
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1918
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1919
|
-
};
|
|
1920
|
-
};
|
|
1921
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1922
|
-
return {
|
|
1923
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1924
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1925
|
-
};
|
|
1926
|
-
};
|
|
1927
|
-
const se_UpdateDomainRequest = (input, context) => {
|
|
1928
|
-
return {
|
|
1929
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1930
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1931
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1932
|
-
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1933
|
-
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1934
|
-
}),
|
|
1935
|
-
};
|
|
1936
|
-
};
|
|
1937
|
-
const se_UpdateWatchlistRequest = (input, context) => {
|
|
1938
|
-
return {
|
|
1939
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1940
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1941
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1942
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1943
|
-
};
|
|
1944
|
-
};
|
|
1945
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1948
|
-
};
|
|
1949
|
-
};
|
|
1950
1671
|
const de_AssociateFraudsterResponse = (output, context) => {
|
|
1951
|
-
return {
|
|
1952
|
-
Fraudster:
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
const de_AuthenticationConfiguration = (output, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
AcceptanceThreshold: (0, smithy_client_1.expectInt32)(output.AcceptanceThreshold),
|
|
1958
|
-
};
|
|
1672
|
+
return (0, smithy_client_1.take)(output, {
|
|
1673
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1674
|
+
});
|
|
1959
1675
|
};
|
|
1960
1676
|
const de_AuthenticationResult = (output, context) => {
|
|
1961
|
-
return {
|
|
1962
|
-
AudioAggregationEndedAt:
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
Decision: (0, smithy_client_1.expectString)(output.Decision),
|
|
1972
|
-
GeneratedSpeakerId: (0, smithy_client_1.expectString)(output.GeneratedSpeakerId),
|
|
1973
|
-
Score: (0, smithy_client_1.expectInt32)(output.Score),
|
|
1974
|
-
};
|
|
1975
|
-
};
|
|
1976
|
-
const de_ConflictException = (output, context) => {
|
|
1977
|
-
return {
|
|
1978
|
-
ConflictType: (0, smithy_client_1.expectString)(output.ConflictType),
|
|
1979
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1980
|
-
};
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1679
|
+
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1680
|
+
AuthenticationResultId: smithy_client_1.expectString,
|
|
1681
|
+
Configuration: smithy_client_1._json,
|
|
1682
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1683
|
+
Decision: smithy_client_1.expectString,
|
|
1684
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1685
|
+
Score: smithy_client_1.expectInt32,
|
|
1686
|
+
});
|
|
1981
1687
|
};
|
|
1982
1688
|
const de_CreateDomainResponse = (output, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
Domain:
|
|
1985
|
-
};
|
|
1689
|
+
return (0, smithy_client_1.take)(output, {
|
|
1690
|
+
Domain: (_) => de_Domain(_, context),
|
|
1691
|
+
});
|
|
1986
1692
|
};
|
|
1987
1693
|
const de_CreateWatchlistResponse = (output, context) => {
|
|
1988
|
-
return {
|
|
1989
|
-
Watchlist:
|
|
1990
|
-
};
|
|
1694
|
+
return (0, smithy_client_1.take)(output, {
|
|
1695
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1696
|
+
});
|
|
1991
1697
|
};
|
|
1992
1698
|
const de_DescribeDomainResponse = (output, context) => {
|
|
1993
|
-
return {
|
|
1994
|
-
Domain:
|
|
1995
|
-
};
|
|
1699
|
+
return (0, smithy_client_1.take)(output, {
|
|
1700
|
+
Domain: (_) => de_Domain(_, context),
|
|
1701
|
+
});
|
|
1996
1702
|
};
|
|
1997
1703
|
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
1998
|
-
return {
|
|
1999
|
-
Job:
|
|
2000
|
-
};
|
|
1704
|
+
return (0, smithy_client_1.take)(output, {
|
|
1705
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1706
|
+
});
|
|
2001
1707
|
};
|
|
2002
1708
|
const de_DescribeFraudsterResponse = (output, context) => {
|
|
2003
|
-
return {
|
|
2004
|
-
Fraudster:
|
|
2005
|
-
};
|
|
1709
|
+
return (0, smithy_client_1.take)(output, {
|
|
1710
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1711
|
+
});
|
|
2006
1712
|
};
|
|
2007
1713
|
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2008
|
-
return {
|
|
2009
|
-
Job:
|
|
2010
|
-
};
|
|
1714
|
+
return (0, smithy_client_1.take)(output, {
|
|
1715
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1716
|
+
});
|
|
2011
1717
|
};
|
|
2012
1718
|
const de_DescribeSpeakerResponse = (output, context) => {
|
|
2013
|
-
return {
|
|
2014
|
-
Speaker:
|
|
2015
|
-
};
|
|
1719
|
+
return (0, smithy_client_1.take)(output, {
|
|
1720
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
1721
|
+
});
|
|
2016
1722
|
};
|
|
2017
1723
|
const de_DescribeWatchlistResponse = (output, context) => {
|
|
2018
|
-
return {
|
|
2019
|
-
Watchlist:
|
|
2020
|
-
};
|
|
1724
|
+
return (0, smithy_client_1.take)(output, {
|
|
1725
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1726
|
+
});
|
|
2021
1727
|
};
|
|
2022
1728
|
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
2023
|
-
return {
|
|
2024
|
-
Fraudster:
|
|
2025
|
-
};
|
|
1729
|
+
return (0, smithy_client_1.take)(output, {
|
|
1730
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1731
|
+
});
|
|
2026
1732
|
};
|
|
2027
1733
|
const de_Domain = (output, context) => {
|
|
2028
|
-
return {
|
|
2029
|
-
Arn:
|
|
2030
|
-
CreatedAt:
|
|
2031
|
-
Description:
|
|
2032
|
-
DomainId:
|
|
2033
|
-
DomainStatus:
|
|
2034
|
-
Name:
|
|
2035
|
-
ServerSideEncryptionConfiguration:
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
: undefined,
|
|
2041
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2042
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2043
|
-
};
|
|
1734
|
+
return (0, smithy_client_1.take)(output, {
|
|
1735
|
+
Arn: smithy_client_1.expectString,
|
|
1736
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1737
|
+
Description: smithy_client_1.expectString,
|
|
1738
|
+
DomainId: smithy_client_1.expectString,
|
|
1739
|
+
DomainStatus: smithy_client_1.expectString,
|
|
1740
|
+
Name: smithy_client_1.expectString,
|
|
1741
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1742
|
+
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1743
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1744
|
+
WatchlistDetails: smithy_client_1._json,
|
|
1745
|
+
});
|
|
2044
1746
|
};
|
|
2045
1747
|
const de_DomainSummaries = (output, context) => {
|
|
2046
1748
|
const retVal = (output || [])
|
|
2047
1749
|
.filter((e) => e != null)
|
|
2048
1750
|
.map((entry) => {
|
|
2049
|
-
if (entry === null) {
|
|
2050
|
-
return null;
|
|
2051
|
-
}
|
|
2052
1751
|
return de_DomainSummary(entry, context);
|
|
2053
1752
|
});
|
|
2054
1753
|
return retVal;
|
|
2055
1754
|
};
|
|
2056
1755
|
const de_DomainSummary = (output, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
Arn:
|
|
2059
|
-
CreatedAt:
|
|
2060
|
-
Description:
|
|
2061
|
-
DomainId:
|
|
2062
|
-
DomainStatus:
|
|
2063
|
-
Name:
|
|
2064
|
-
ServerSideEncryptionConfiguration:
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2069
|
-
: undefined,
|
|
2070
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2071
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const de_EnrollmentConfig = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
ExistingEnrollmentAction: (0, smithy_client_1.expectString)(output.ExistingEnrollmentAction),
|
|
2077
|
-
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
2078
|
-
? de_EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
|
|
2079
|
-
: undefined,
|
|
2080
|
-
};
|
|
2081
|
-
};
|
|
2082
|
-
const de_EnrollmentJobFraudDetectionConfig = (output, context) => {
|
|
2083
|
-
return {
|
|
2084
|
-
FraudDetectionAction: (0, smithy_client_1.expectString)(output.FraudDetectionAction),
|
|
2085
|
-
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2086
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2087
|
-
? de_EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2088
|
-
: undefined,
|
|
2089
|
-
};
|
|
2090
|
-
};
|
|
2091
|
-
const de_EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2092
|
-
const retVal = (output || [])
|
|
2093
|
-
.filter((e) => e != null)
|
|
2094
|
-
.map((entry) => {
|
|
2095
|
-
if (entry === null) {
|
|
2096
|
-
return null;
|
|
2097
|
-
}
|
|
2098
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1756
|
+
return (0, smithy_client_1.take)(output, {
|
|
1757
|
+
Arn: smithy_client_1.expectString,
|
|
1758
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1759
|
+
Description: smithy_client_1.expectString,
|
|
1760
|
+
DomainId: smithy_client_1.expectString,
|
|
1761
|
+
DomainStatus: smithy_client_1.expectString,
|
|
1762
|
+
Name: smithy_client_1.expectString,
|
|
1763
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1764
|
+
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1765
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1766
|
+
WatchlistDetails: smithy_client_1._json,
|
|
2099
1767
|
});
|
|
2100
|
-
return retVal;
|
|
2101
1768
|
};
|
|
2102
1769
|
const de_EvaluateSessionResponse = (output, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
AuthenticationResult:
|
|
2105
|
-
DomainId:
|
|
2106
|
-
FraudDetectionResult:
|
|
2107
|
-
SessionId:
|
|
2108
|
-
SessionName:
|
|
2109
|
-
StreamingStatus:
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
const de_FailureDetails = (output, context) => {
|
|
2113
|
-
return {
|
|
2114
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2115
|
-
StatusCode: (0, smithy_client_1.expectInt32)(output.StatusCode),
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
|
-
const de_FraudDetectionConfiguration = (output, context) => {
|
|
2119
|
-
return {
|
|
2120
|
-
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2121
|
-
WatchlistId: (0, smithy_client_1.expectString)(output.WatchlistId),
|
|
2122
|
-
};
|
|
2123
|
-
};
|
|
2124
|
-
const de_FraudDetectionReasons = (output, context) => {
|
|
2125
|
-
const retVal = (output || [])
|
|
2126
|
-
.filter((e) => e != null)
|
|
2127
|
-
.map((entry) => {
|
|
2128
|
-
if (entry === null) {
|
|
2129
|
-
return null;
|
|
2130
|
-
}
|
|
2131
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1770
|
+
return (0, smithy_client_1.take)(output, {
|
|
1771
|
+
AuthenticationResult: (_) => de_AuthenticationResult(_, context),
|
|
1772
|
+
DomainId: smithy_client_1.expectString,
|
|
1773
|
+
FraudDetectionResult: (_) => de_FraudDetectionResult(_, context),
|
|
1774
|
+
SessionId: smithy_client_1.expectString,
|
|
1775
|
+
SessionName: smithy_client_1.expectString,
|
|
1776
|
+
StreamingStatus: smithy_client_1.expectString,
|
|
2132
1777
|
});
|
|
2133
|
-
return retVal;
|
|
2134
1778
|
};
|
|
2135
1779
|
const de_FraudDetectionResult = (output, context) => {
|
|
2136
|
-
return {
|
|
2137
|
-
AudioAggregationEndedAt:
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
FraudDetectionResultId: (0, smithy_client_1.expectString)(output.FraudDetectionResultId),
|
|
2146
|
-
Reasons: output.Reasons != null ? de_FraudDetectionReasons(output.Reasons, context) : undefined,
|
|
2147
|
-
RiskDetails: output.RiskDetails != null ? de_FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
2148
|
-
};
|
|
2149
|
-
};
|
|
2150
|
-
const de_FraudRiskDetails = (output, context) => {
|
|
2151
|
-
return {
|
|
2152
|
-
KnownFraudsterRisk: output.KnownFraudsterRisk != null ? de_KnownFraudsterRisk(output.KnownFraudsterRisk, context) : undefined,
|
|
2153
|
-
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null ? de_VoiceSpoofingRisk(output.VoiceSpoofingRisk, context) : undefined,
|
|
2154
|
-
};
|
|
1780
|
+
return (0, smithy_client_1.take)(output, {
|
|
1781
|
+
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1782
|
+
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1783
|
+
Configuration: smithy_client_1._json,
|
|
1784
|
+
Decision: smithy_client_1.expectString,
|
|
1785
|
+
FraudDetectionResultId: smithy_client_1.expectString,
|
|
1786
|
+
Reasons: smithy_client_1._json,
|
|
1787
|
+
RiskDetails: smithy_client_1._json,
|
|
1788
|
+
});
|
|
2155
1789
|
};
|
|
2156
1790
|
const de_Fraudster = (output, context) => {
|
|
2157
|
-
return {
|
|
2158
|
-
CreatedAt:
|
|
2159
|
-
DomainId:
|
|
2160
|
-
GeneratedFraudsterId:
|
|
2161
|
-
WatchlistIds:
|
|
2162
|
-
};
|
|
1791
|
+
return (0, smithy_client_1.take)(output, {
|
|
1792
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1793
|
+
DomainId: smithy_client_1.expectString,
|
|
1794
|
+
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1795
|
+
WatchlistIds: smithy_client_1._json,
|
|
1796
|
+
});
|
|
2163
1797
|
};
|
|
2164
1798
|
const de_FraudsterRegistrationJob = (output, context) => {
|
|
2165
|
-
return {
|
|
2166
|
-
CreatedAt:
|
|
2167
|
-
DataAccessRoleArn:
|
|
2168
|
-
DomainId:
|
|
2169
|
-
EndedAt:
|
|
2170
|
-
FailureDetails:
|
|
2171
|
-
InputDataConfig:
|
|
2172
|
-
JobId:
|
|
2173
|
-
JobName:
|
|
2174
|
-
JobProgress:
|
|
2175
|
-
JobStatus:
|
|
2176
|
-
OutputDataConfig:
|
|
2177
|
-
RegistrationConfig:
|
|
2178
|
-
};
|
|
1799
|
+
return (0, smithy_client_1.take)(output, {
|
|
1800
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1801
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1802
|
+
DomainId: smithy_client_1.expectString,
|
|
1803
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1804
|
+
FailureDetails: smithy_client_1._json,
|
|
1805
|
+
InputDataConfig: smithy_client_1._json,
|
|
1806
|
+
JobId: smithy_client_1.expectString,
|
|
1807
|
+
JobName: smithy_client_1.expectString,
|
|
1808
|
+
JobProgress: smithy_client_1._json,
|
|
1809
|
+
JobStatus: smithy_client_1.expectString,
|
|
1810
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1811
|
+
RegistrationConfig: smithy_client_1._json,
|
|
1812
|
+
});
|
|
2179
1813
|
};
|
|
2180
1814
|
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
2181
1815
|
const retVal = (output || [])
|
|
2182
1816
|
.filter((e) => e != null)
|
|
2183
1817
|
.map((entry) => {
|
|
2184
|
-
if (entry === null) {
|
|
2185
|
-
return null;
|
|
2186
|
-
}
|
|
2187
1818
|
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
2188
1819
|
});
|
|
2189
1820
|
return retVal;
|
|
2190
1821
|
};
|
|
2191
1822
|
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
2192
|
-
return {
|
|
2193
|
-
CreatedAt:
|
|
2194
|
-
DomainId:
|
|
2195
|
-
EndedAt:
|
|
2196
|
-
FailureDetails:
|
|
2197
|
-
JobId:
|
|
2198
|
-
JobName:
|
|
2199
|
-
JobProgress:
|
|
2200
|
-
JobStatus:
|
|
2201
|
-
};
|
|
1823
|
+
return (0, smithy_client_1.take)(output, {
|
|
1824
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1825
|
+
DomainId: smithy_client_1.expectString,
|
|
1826
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1827
|
+
FailureDetails: smithy_client_1._json,
|
|
1828
|
+
JobId: smithy_client_1.expectString,
|
|
1829
|
+
JobName: smithy_client_1.expectString,
|
|
1830
|
+
JobProgress: smithy_client_1._json,
|
|
1831
|
+
JobStatus: smithy_client_1.expectString,
|
|
1832
|
+
});
|
|
2202
1833
|
};
|
|
2203
1834
|
const de_FraudsterSummaries = (output, context) => {
|
|
2204
1835
|
const retVal = (output || [])
|
|
2205
1836
|
.filter((e) => e != null)
|
|
2206
1837
|
.map((entry) => {
|
|
2207
|
-
if (entry === null) {
|
|
2208
|
-
return null;
|
|
2209
|
-
}
|
|
2210
1838
|
return de_FraudsterSummary(entry, context);
|
|
2211
1839
|
});
|
|
2212
1840
|
return retVal;
|
|
2213
1841
|
};
|
|
2214
1842
|
const de_FraudsterSummary = (output, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
CreatedAt:
|
|
2217
|
-
DomainId:
|
|
2218
|
-
GeneratedFraudsterId:
|
|
2219
|
-
WatchlistIds:
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const de_InputDataConfig = (output, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
|
-
const de_InternalServerException = (output, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2230
|
-
};
|
|
2231
|
-
};
|
|
2232
|
-
const de_JobProgress = (output, context) => {
|
|
2233
|
-
return {
|
|
2234
|
-
PercentComplete: (0, smithy_client_1.expectInt32)(output.PercentComplete),
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
const de_KnownFraudsterRisk = (output, context) => {
|
|
2238
|
-
return {
|
|
2239
|
-
GeneratedFraudsterId: (0, smithy_client_1.expectString)(output.GeneratedFraudsterId),
|
|
2240
|
-
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
2241
|
-
};
|
|
1843
|
+
return (0, smithy_client_1.take)(output, {
|
|
1844
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1845
|
+
DomainId: smithy_client_1.expectString,
|
|
1846
|
+
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1847
|
+
WatchlistIds: smithy_client_1._json,
|
|
1848
|
+
});
|
|
2242
1849
|
};
|
|
2243
1850
|
const de_ListDomainsResponse = (output, context) => {
|
|
2244
|
-
return {
|
|
2245
|
-
DomainSummaries:
|
|
2246
|
-
NextToken:
|
|
2247
|
-
};
|
|
1851
|
+
return (0, smithy_client_1.take)(output, {
|
|
1852
|
+
DomainSummaries: (_) => de_DomainSummaries(_, context),
|
|
1853
|
+
NextToken: smithy_client_1.expectString,
|
|
1854
|
+
});
|
|
2248
1855
|
};
|
|
2249
1856
|
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
2250
|
-
return {
|
|
2251
|
-
JobSummaries:
|
|
2252
|
-
NextToken:
|
|
2253
|
-
};
|
|
1857
|
+
return (0, smithy_client_1.take)(output, {
|
|
1858
|
+
JobSummaries: (_) => de_FraudsterRegistrationJobSummaries(_, context),
|
|
1859
|
+
NextToken: smithy_client_1.expectString,
|
|
1860
|
+
});
|
|
2254
1861
|
};
|
|
2255
1862
|
const de_ListFraudstersResponse = (output, context) => {
|
|
2256
|
-
return {
|
|
2257
|
-
FraudsterSummaries:
|
|
2258
|
-
NextToken:
|
|
2259
|
-
};
|
|
1863
|
+
return (0, smithy_client_1.take)(output, {
|
|
1864
|
+
FraudsterSummaries: (_) => de_FraudsterSummaries(_, context),
|
|
1865
|
+
NextToken: smithy_client_1.expectString,
|
|
1866
|
+
});
|
|
2260
1867
|
};
|
|
2261
1868
|
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
JobSummaries:
|
|
2264
|
-
NextToken:
|
|
2265
|
-
};
|
|
1869
|
+
return (0, smithy_client_1.take)(output, {
|
|
1870
|
+
JobSummaries: (_) => de_SpeakerEnrollmentJobSummaries(_, context),
|
|
1871
|
+
NextToken: smithy_client_1.expectString,
|
|
1872
|
+
});
|
|
2266
1873
|
};
|
|
2267
1874
|
const de_ListSpeakersResponse = (output, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
NextToken:
|
|
2270
|
-
SpeakerSummaries:
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2274
|
-
return {
|
|
2275
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2276
|
-
};
|
|
1875
|
+
return (0, smithy_client_1.take)(output, {
|
|
1876
|
+
NextToken: smithy_client_1.expectString,
|
|
1877
|
+
SpeakerSummaries: (_) => de_SpeakerSummaries(_, context),
|
|
1878
|
+
});
|
|
2277
1879
|
};
|
|
2278
1880
|
const de_ListWatchlistsResponse = (output, context) => {
|
|
2279
|
-
return {
|
|
2280
|
-
NextToken:
|
|
2281
|
-
WatchlistSummaries:
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
const de_OptOutSpeakerResponse = (output, context) => {
|
|
2285
|
-
return {
|
|
2286
|
-
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
|
-
const de_OutputDataConfig = (output, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2292
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2293
|
-
};
|
|
2294
|
-
};
|
|
2295
|
-
const de_RegistrationConfig = (output, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
DuplicateRegistrationAction: (0, smithy_client_1.expectString)(output.DuplicateRegistrationAction),
|
|
2298
|
-
FraudsterSimilarityThreshold: (0, smithy_client_1.expectInt32)(output.FraudsterSimilarityThreshold),
|
|
2299
|
-
WatchlistIds: output.WatchlistIds != null ? de_RegistrationConfigWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2300
|
-
};
|
|
2301
|
-
};
|
|
2302
|
-
const de_RegistrationConfigWatchlistIds = (output, context) => {
|
|
2303
|
-
const retVal = (output || [])
|
|
2304
|
-
.filter((e) => e != null)
|
|
2305
|
-
.map((entry) => {
|
|
2306
|
-
if (entry === null) {
|
|
2307
|
-
return null;
|
|
2308
|
-
}
|
|
2309
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1881
|
+
return (0, smithy_client_1.take)(output, {
|
|
1882
|
+
NextToken: smithy_client_1.expectString,
|
|
1883
|
+
WatchlistSummaries: (_) => de_WatchlistSummaries(_, context),
|
|
2310
1884
|
});
|
|
2311
|
-
return retVal;
|
|
2312
1885
|
};
|
|
2313
|
-
const
|
|
2314
|
-
return {
|
|
2315
|
-
|
|
2316
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
const de_ResponseWatchlistIds = (output, context) => {
|
|
2320
|
-
const retVal = (output || [])
|
|
2321
|
-
.filter((e) => e != null)
|
|
2322
|
-
.map((entry) => {
|
|
2323
|
-
if (entry === null) {
|
|
2324
|
-
return null;
|
|
2325
|
-
}
|
|
2326
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1886
|
+
const de_OptOutSpeakerResponse = (output, context) => {
|
|
1887
|
+
return (0, smithy_client_1.take)(output, {
|
|
1888
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
2327
1889
|
});
|
|
2328
|
-
return retVal;
|
|
2329
|
-
};
|
|
2330
|
-
const de_ServerSideEncryptionConfiguration = (output, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
const de_ServerSideEncryptionUpdateDetails = (output, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2338
|
-
OldKmsKeyId: (0, smithy_client_1.expectString)(output.OldKmsKeyId),
|
|
2339
|
-
UpdateStatus: (0, smithy_client_1.expectString)(output.UpdateStatus),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2345
|
-
};
|
|
2346
1890
|
};
|
|
2347
1891
|
const de_Speaker = (output, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
CreatedAt:
|
|
2350
|
-
CustomerSpeakerId:
|
|
2351
|
-
DomainId:
|
|
2352
|
-
GeneratedSpeakerId:
|
|
2353
|
-
LastAccessedAt:
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2358
|
-
};
|
|
1892
|
+
return (0, smithy_client_1.take)(output, {
|
|
1893
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1894
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1895
|
+
DomainId: smithy_client_1.expectString,
|
|
1896
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1897
|
+
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1898
|
+
Status: smithy_client_1.expectString,
|
|
1899
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1900
|
+
});
|
|
2359
1901
|
};
|
|
2360
1902
|
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
2361
|
-
return {
|
|
2362
|
-
CreatedAt:
|
|
2363
|
-
DataAccessRoleArn:
|
|
2364
|
-
DomainId:
|
|
2365
|
-
EndedAt:
|
|
2366
|
-
EnrollmentConfig:
|
|
2367
|
-
FailureDetails:
|
|
2368
|
-
InputDataConfig:
|
|
2369
|
-
JobId:
|
|
2370
|
-
JobName:
|
|
2371
|
-
JobProgress:
|
|
2372
|
-
JobStatus:
|
|
2373
|
-
OutputDataConfig:
|
|
2374
|
-
};
|
|
1903
|
+
return (0, smithy_client_1.take)(output, {
|
|
1904
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1905
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1906
|
+
DomainId: smithy_client_1.expectString,
|
|
1907
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1908
|
+
EnrollmentConfig: smithy_client_1._json,
|
|
1909
|
+
FailureDetails: smithy_client_1._json,
|
|
1910
|
+
InputDataConfig: smithy_client_1._json,
|
|
1911
|
+
JobId: smithy_client_1.expectString,
|
|
1912
|
+
JobName: smithy_client_1.expectString,
|
|
1913
|
+
JobProgress: smithy_client_1._json,
|
|
1914
|
+
JobStatus: smithy_client_1.expectString,
|
|
1915
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1916
|
+
});
|
|
2375
1917
|
};
|
|
2376
1918
|
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
2377
1919
|
const retVal = (output || [])
|
|
2378
1920
|
.filter((e) => e != null)
|
|
2379
1921
|
.map((entry) => {
|
|
2380
|
-
if (entry === null) {
|
|
2381
|
-
return null;
|
|
2382
|
-
}
|
|
2383
1922
|
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
2384
1923
|
});
|
|
2385
1924
|
return retVal;
|
|
2386
1925
|
};
|
|
2387
1926
|
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
2388
|
-
return {
|
|
2389
|
-
CreatedAt:
|
|
2390
|
-
DomainId:
|
|
2391
|
-
EndedAt:
|
|
2392
|
-
FailureDetails:
|
|
2393
|
-
JobId:
|
|
2394
|
-
JobName:
|
|
2395
|
-
JobProgress:
|
|
2396
|
-
JobStatus:
|
|
2397
|
-
};
|
|
1927
|
+
return (0, smithy_client_1.take)(output, {
|
|
1928
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1929
|
+
DomainId: smithy_client_1.expectString,
|
|
1930
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1931
|
+
FailureDetails: smithy_client_1._json,
|
|
1932
|
+
JobId: smithy_client_1.expectString,
|
|
1933
|
+
JobName: smithy_client_1.expectString,
|
|
1934
|
+
JobProgress: smithy_client_1._json,
|
|
1935
|
+
JobStatus: smithy_client_1.expectString,
|
|
1936
|
+
});
|
|
2398
1937
|
};
|
|
2399
1938
|
const de_SpeakerSummaries = (output, context) => {
|
|
2400
1939
|
const retVal = (output || [])
|
|
2401
1940
|
.filter((e) => e != null)
|
|
2402
1941
|
.map((entry) => {
|
|
2403
|
-
if (entry === null) {
|
|
2404
|
-
return null;
|
|
2405
|
-
}
|
|
2406
1942
|
return de_SpeakerSummary(entry, context);
|
|
2407
1943
|
});
|
|
2408
1944
|
return retVal;
|
|
2409
1945
|
};
|
|
2410
1946
|
const de_SpeakerSummary = (output, context) => {
|
|
2411
|
-
return {
|
|
2412
|
-
CreatedAt:
|
|
2413
|
-
CustomerSpeakerId:
|
|
2414
|
-
DomainId:
|
|
2415
|
-
GeneratedSpeakerId:
|
|
2416
|
-
LastAccessedAt:
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2421
|
-
};
|
|
1947
|
+
return (0, smithy_client_1.take)(output, {
|
|
1948
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1949
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1950
|
+
DomainId: smithy_client_1.expectString,
|
|
1951
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1952
|
+
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1953
|
+
Status: smithy_client_1.expectString,
|
|
1954
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1955
|
+
});
|
|
2422
1956
|
};
|
|
2423
1957
|
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
2424
|
-
return {
|
|
2425
|
-
Job:
|
|
2426
|
-
};
|
|
1958
|
+
return (0, smithy_client_1.take)(output, {
|
|
1959
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1960
|
+
});
|
|
2427
1961
|
};
|
|
2428
1962
|
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2429
|
-
return {
|
|
2430
|
-
Job:
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
const de_Tag = (output, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2436
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const de_TagList = (output, context) => {
|
|
2440
|
-
const retVal = (output || [])
|
|
2441
|
-
.filter((e) => e != null)
|
|
2442
|
-
.map((entry) => {
|
|
2443
|
-
if (entry === null) {
|
|
2444
|
-
return null;
|
|
2445
|
-
}
|
|
2446
|
-
return de_Tag(entry, context);
|
|
1963
|
+
return (0, smithy_client_1.take)(output, {
|
|
1964
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
2447
1965
|
});
|
|
2448
|
-
return retVal;
|
|
2449
|
-
};
|
|
2450
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2451
|
-
return {};
|
|
2452
|
-
};
|
|
2453
|
-
const de_ThrottlingException = (output, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2459
|
-
return {};
|
|
2460
1966
|
};
|
|
2461
1967
|
const de_UpdateDomainResponse = (output, context) => {
|
|
2462
|
-
return {
|
|
2463
|
-
Domain:
|
|
2464
|
-
};
|
|
1968
|
+
return (0, smithy_client_1.take)(output, {
|
|
1969
|
+
Domain: (_) => de_Domain(_, context),
|
|
1970
|
+
});
|
|
2465
1971
|
};
|
|
2466
1972
|
const de_UpdateWatchlistResponse = (output, context) => {
|
|
2467
|
-
return {
|
|
2468
|
-
Watchlist:
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
const de_ValidationException = (output, context) => {
|
|
2472
|
-
return {
|
|
2473
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
|
-
const de_VoiceSpoofingRisk = (output, context) => {
|
|
2477
|
-
return {
|
|
2478
|
-
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
2479
|
-
};
|
|
1973
|
+
return (0, smithy_client_1.take)(output, {
|
|
1974
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1975
|
+
});
|
|
2480
1976
|
};
|
|
2481
1977
|
const de_Watchlist = (output, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
CreatedAt:
|
|
2484
|
-
DefaultWatchlist:
|
|
2485
|
-
Description:
|
|
2486
|
-
DomainId:
|
|
2487
|
-
Name:
|
|
2488
|
-
UpdatedAt:
|
|
2489
|
-
WatchlistId:
|
|
2490
|
-
};
|
|
2491
|
-
};
|
|
2492
|
-
const de_WatchlistDetails = (output, context) => {
|
|
2493
|
-
return {
|
|
2494
|
-
DefaultWatchlistId: (0, smithy_client_1.expectString)(output.DefaultWatchlistId),
|
|
2495
|
-
};
|
|
1978
|
+
return (0, smithy_client_1.take)(output, {
|
|
1979
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1980
|
+
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
1981
|
+
Description: smithy_client_1.expectString,
|
|
1982
|
+
DomainId: smithy_client_1.expectString,
|
|
1983
|
+
Name: smithy_client_1.expectString,
|
|
1984
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1985
|
+
WatchlistId: smithy_client_1.expectString,
|
|
1986
|
+
});
|
|
2496
1987
|
};
|
|
2497
1988
|
const de_WatchlistSummaries = (output, context) => {
|
|
2498
1989
|
const retVal = (output || [])
|
|
2499
1990
|
.filter((e) => e != null)
|
|
2500
1991
|
.map((entry) => {
|
|
2501
|
-
if (entry === null) {
|
|
2502
|
-
return null;
|
|
2503
|
-
}
|
|
2504
1992
|
return de_WatchlistSummary(entry, context);
|
|
2505
1993
|
});
|
|
2506
1994
|
return retVal;
|
|
2507
1995
|
};
|
|
2508
1996
|
const de_WatchlistSummary = (output, context) => {
|
|
2509
|
-
return {
|
|
2510
|
-
CreatedAt:
|
|
2511
|
-
DefaultWatchlist:
|
|
2512
|
-
Description:
|
|
2513
|
-
DomainId:
|
|
2514
|
-
Name:
|
|
2515
|
-
UpdatedAt:
|
|
2516
|
-
WatchlistId:
|
|
2517
|
-
};
|
|
1997
|
+
return (0, smithy_client_1.take)(output, {
|
|
1998
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1999
|
+
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
2000
|
+
Description: smithy_client_1.expectString,
|
|
2001
|
+
DomainId: smithy_client_1.expectString,
|
|
2002
|
+
Name: smithy_client_1.expectString,
|
|
2003
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2004
|
+
WatchlistId: smithy_client_1.expectString,
|
|
2005
|
+
});
|
|
2518
2006
|
};
|
|
2519
2007
|
const deserializeMetadata = (output) => ({
|
|
2520
2008
|
httpStatusCode: output.statusCode,
|
|
@@ -2529,6 +2017,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2529
2017
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2530
2018
|
};
|
|
2531
2019
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2020
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(VoiceIDServiceException_1.VoiceIDServiceException);
|
|
2532
2021
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2533
2022
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2534
2023
|
const contents = {
|