@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { VoiceIDServiceException as __BaseException } from "../models/VoiceIDServiceException";
|
|
6
6
|
export const se_AssociateFraudsterCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("AssociateFraudster");
|
|
8
8
|
let body;
|
|
9
|
-
body = JSON.stringify(
|
|
9
|
+
body = JSON.stringify(_json(input));
|
|
10
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
11
|
};
|
|
12
12
|
export const se_CreateDomainCommand = async (input, context) => {
|
|
@@ -24,121 +24,121 @@ export const se_CreateWatchlistCommand = async (input, context) => {
|
|
|
24
24
|
export const se_DeleteDomainCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("DeleteDomain");
|
|
26
26
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify(_json(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
30
|
export const se_DeleteFraudsterCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DeleteFraudster");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
export const se_DeleteSpeakerCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DeleteSpeaker");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
export const se_DeleteWatchlistCommand = async (input, context) => {
|
|
43
43
|
const headers = sharedHeaders("DeleteWatchlist");
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
export const se_DescribeDomainCommand = async (input, context) => {
|
|
49
49
|
const headers = sharedHeaders("DescribeDomain");
|
|
50
50
|
let body;
|
|
51
|
-
body = JSON.stringify(
|
|
51
|
+
body = JSON.stringify(_json(input));
|
|
52
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
53
|
};
|
|
54
54
|
export const se_DescribeFraudsterCommand = async (input, context) => {
|
|
55
55
|
const headers = sharedHeaders("DescribeFraudster");
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(_json(input));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
60
|
export const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
61
61
|
const headers = sharedHeaders("DescribeFraudsterRegistrationJob");
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify(
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
64
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
65
|
};
|
|
66
66
|
export const se_DescribeSpeakerCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("DescribeSpeaker");
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
72
|
export const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("DescribeSpeakerEnrollmentJob");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
export const se_DescribeWatchlistCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("DescribeWatchlist");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
export const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
85
85
|
const headers = sharedHeaders("DisassociateFraudster");
|
|
86
86
|
let body;
|
|
87
|
-
body = JSON.stringify(
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
88
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
89
|
};
|
|
90
90
|
export const se_EvaluateSessionCommand = async (input, context) => {
|
|
91
91
|
const headers = sharedHeaders("EvaluateSession");
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(_json(input));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
96
|
export const se_ListDomainsCommand = async (input, context) => {
|
|
97
97
|
const headers = sharedHeaders("ListDomains");
|
|
98
98
|
let body;
|
|
99
|
-
body = JSON.stringify(
|
|
99
|
+
body = JSON.stringify(_json(input));
|
|
100
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
101
|
};
|
|
102
102
|
export const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
103
103
|
const headers = sharedHeaders("ListFraudsterRegistrationJobs");
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(_json(input));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
108
|
export const se_ListFraudstersCommand = async (input, context) => {
|
|
109
109
|
const headers = sharedHeaders("ListFraudsters");
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
114
|
export const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
115
115
|
const headers = sharedHeaders("ListSpeakerEnrollmentJobs");
|
|
116
116
|
let body;
|
|
117
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify(_json(input));
|
|
118
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
119
|
};
|
|
120
120
|
export const se_ListSpeakersCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("ListSpeakers");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify(_json(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
127
127
|
const headers = sharedHeaders("ListTagsForResource");
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(_json(input));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
132
|
export const se_ListWatchlistsCommand = async (input, context) => {
|
|
133
133
|
const headers = sharedHeaders("ListWatchlists");
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(_json(input));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
138
|
export const se_OptOutSpeakerCommand = async (input, context) => {
|
|
139
139
|
const headers = sharedHeaders("OptOutSpeaker");
|
|
140
140
|
let body;
|
|
141
|
-
body = JSON.stringify(
|
|
141
|
+
body = JSON.stringify(_json(input));
|
|
142
142
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
143
|
};
|
|
144
144
|
export const se_StartFraudsterRegistrationJobCommand = async (input, context) => {
|
|
@@ -156,25 +156,25 @@ export const se_StartSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
|
156
156
|
export const se_TagResourceCommand = async (input, context) => {
|
|
157
157
|
const headers = sharedHeaders("TagResource");
|
|
158
158
|
let body;
|
|
159
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify(_json(input));
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
162
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
163
163
|
const headers = sharedHeaders("UntagResource");
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(_json(input));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
168
|
export const se_UpdateDomainCommand = async (input, context) => {
|
|
169
169
|
const headers = sharedHeaders("UpdateDomain");
|
|
170
170
|
let body;
|
|
171
|
-
body = JSON.stringify(
|
|
171
|
+
body = JSON.stringify(_json(input));
|
|
172
172
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
173
|
};
|
|
174
174
|
export const se_UpdateWatchlistCommand = async (input, context) => {
|
|
175
175
|
const headers = sharedHeaders("UpdateWatchlist");
|
|
176
176
|
let body;
|
|
177
|
-
body = JSON.stringify(
|
|
177
|
+
body = JSON.stringify(_json(input));
|
|
178
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
179
|
};
|
|
180
180
|
export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
@@ -188,7 +188,7 @@ export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
|
188
188
|
$metadata: deserializeMetadata(output),
|
|
189
189
|
...contents,
|
|
190
190
|
};
|
|
191
|
-
return
|
|
191
|
+
return response;
|
|
192
192
|
};
|
|
193
193
|
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
194
194
|
const parsedOutput = {
|
|
@@ -220,10 +220,9 @@ const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
|
220
220
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
221
221
|
default:
|
|
222
222
|
const parsedBody = parsedOutput.body;
|
|
223
|
-
throwDefaultError({
|
|
223
|
+
return throwDefaultError({
|
|
224
224
|
output,
|
|
225
225
|
parsedBody,
|
|
226
|
-
exceptionCtor: __BaseException,
|
|
227
226
|
errorCode,
|
|
228
227
|
});
|
|
229
228
|
}
|
|
@@ -239,7 +238,7 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
239
238
|
$metadata: deserializeMetadata(output),
|
|
240
239
|
...contents,
|
|
241
240
|
};
|
|
242
|
-
return
|
|
241
|
+
return response;
|
|
243
242
|
};
|
|
244
243
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
245
244
|
const parsedOutput = {
|
|
@@ -271,10 +270,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
271
270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
271
|
default:
|
|
273
272
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
throwDefaultError({
|
|
273
|
+
return throwDefaultError({
|
|
275
274
|
output,
|
|
276
275
|
parsedBody,
|
|
277
|
-
exceptionCtor: __BaseException,
|
|
278
276
|
errorCode,
|
|
279
277
|
});
|
|
280
278
|
}
|
|
@@ -290,7 +288,7 @@ export const de_CreateWatchlistCommand = async (output, context) => {
|
|
|
290
288
|
$metadata: deserializeMetadata(output),
|
|
291
289
|
...contents,
|
|
292
290
|
};
|
|
293
|
-
return
|
|
291
|
+
return response;
|
|
294
292
|
};
|
|
295
293
|
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
296
294
|
const parsedOutput = {
|
|
@@ -322,10 +320,9 @@ const de_CreateWatchlistCommandError = async (output, context) => {
|
|
|
322
320
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
321
|
default:
|
|
324
322
|
const parsedBody = parsedOutput.body;
|
|
325
|
-
throwDefaultError({
|
|
323
|
+
return throwDefaultError({
|
|
326
324
|
output,
|
|
327
325
|
parsedBody,
|
|
328
|
-
exceptionCtor: __BaseException,
|
|
329
326
|
errorCode,
|
|
330
327
|
});
|
|
331
328
|
}
|
|
@@ -338,7 +335,7 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
338
335
|
const response = {
|
|
339
336
|
$metadata: deserializeMetadata(output),
|
|
340
337
|
};
|
|
341
|
-
return
|
|
338
|
+
return response;
|
|
342
339
|
};
|
|
343
340
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
344
341
|
const parsedOutput = {
|
|
@@ -367,10 +364,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
367
364
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
368
365
|
default:
|
|
369
366
|
const parsedBody = parsedOutput.body;
|
|
370
|
-
throwDefaultError({
|
|
367
|
+
return throwDefaultError({
|
|
371
368
|
output,
|
|
372
369
|
parsedBody,
|
|
373
|
-
exceptionCtor: __BaseException,
|
|
374
370
|
errorCode,
|
|
375
371
|
});
|
|
376
372
|
}
|
|
@@ -383,7 +379,7 @@ export const de_DeleteFraudsterCommand = async (output, context) => {
|
|
|
383
379
|
const response = {
|
|
384
380
|
$metadata: deserializeMetadata(output),
|
|
385
381
|
};
|
|
386
|
-
return
|
|
382
|
+
return response;
|
|
387
383
|
};
|
|
388
384
|
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
389
385
|
const parsedOutput = {
|
|
@@ -412,10 +408,9 @@ const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
|
412
408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
409
|
default:
|
|
414
410
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
throwDefaultError({
|
|
411
|
+
return throwDefaultError({
|
|
416
412
|
output,
|
|
417
413
|
parsedBody,
|
|
418
|
-
exceptionCtor: __BaseException,
|
|
419
414
|
errorCode,
|
|
420
415
|
});
|
|
421
416
|
}
|
|
@@ -428,7 +423,7 @@ export const de_DeleteSpeakerCommand = async (output, context) => {
|
|
|
428
423
|
const response = {
|
|
429
424
|
$metadata: deserializeMetadata(output),
|
|
430
425
|
};
|
|
431
|
-
return
|
|
426
|
+
return response;
|
|
432
427
|
};
|
|
433
428
|
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
434
429
|
const parsedOutput = {
|
|
@@ -457,10 +452,9 @@ const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
|
457
452
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
453
|
default:
|
|
459
454
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
throwDefaultError({
|
|
455
|
+
return throwDefaultError({
|
|
461
456
|
output,
|
|
462
457
|
parsedBody,
|
|
463
|
-
exceptionCtor: __BaseException,
|
|
464
458
|
errorCode,
|
|
465
459
|
});
|
|
466
460
|
}
|
|
@@ -473,7 +467,7 @@ export const de_DeleteWatchlistCommand = async (output, context) => {
|
|
|
473
467
|
const response = {
|
|
474
468
|
$metadata: deserializeMetadata(output),
|
|
475
469
|
};
|
|
476
|
-
return
|
|
470
|
+
return response;
|
|
477
471
|
};
|
|
478
472
|
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
479
473
|
const parsedOutput = {
|
|
@@ -502,10 +496,9 @@ const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
|
502
496
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
503
497
|
default:
|
|
504
498
|
const parsedBody = parsedOutput.body;
|
|
505
|
-
throwDefaultError({
|
|
499
|
+
return throwDefaultError({
|
|
506
500
|
output,
|
|
507
501
|
parsedBody,
|
|
508
|
-
exceptionCtor: __BaseException,
|
|
509
502
|
errorCode,
|
|
510
503
|
});
|
|
511
504
|
}
|
|
@@ -521,7 +514,7 @@ export const de_DescribeDomainCommand = async (output, context) => {
|
|
|
521
514
|
$metadata: deserializeMetadata(output),
|
|
522
515
|
...contents,
|
|
523
516
|
};
|
|
524
|
-
return
|
|
517
|
+
return response;
|
|
525
518
|
};
|
|
526
519
|
const de_DescribeDomainCommandError = async (output, context) => {
|
|
527
520
|
const parsedOutput = {
|
|
@@ -547,10 +540,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
547
540
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
548
541
|
default:
|
|
549
542
|
const parsedBody = parsedOutput.body;
|
|
550
|
-
throwDefaultError({
|
|
543
|
+
return throwDefaultError({
|
|
551
544
|
output,
|
|
552
545
|
parsedBody,
|
|
553
|
-
exceptionCtor: __BaseException,
|
|
554
546
|
errorCode,
|
|
555
547
|
});
|
|
556
548
|
}
|
|
@@ -566,7 +558,7 @@ export const de_DescribeFraudsterCommand = async (output, context) => {
|
|
|
566
558
|
$metadata: deserializeMetadata(output),
|
|
567
559
|
...contents,
|
|
568
560
|
};
|
|
569
|
-
return
|
|
561
|
+
return response;
|
|
570
562
|
};
|
|
571
563
|
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
572
564
|
const parsedOutput = {
|
|
@@ -592,10 +584,9 @@ const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
|
592
584
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
585
|
default:
|
|
594
586
|
const parsedBody = parsedOutput.body;
|
|
595
|
-
throwDefaultError({
|
|
587
|
+
return throwDefaultError({
|
|
596
588
|
output,
|
|
597
589
|
parsedBody,
|
|
598
|
-
exceptionCtor: __BaseException,
|
|
599
590
|
errorCode,
|
|
600
591
|
});
|
|
601
592
|
}
|
|
@@ -611,7 +602,7 @@ export const de_DescribeFraudsterRegistrationJobCommand = async (output, context
|
|
|
611
602
|
$metadata: deserializeMetadata(output),
|
|
612
603
|
...contents,
|
|
613
604
|
};
|
|
614
|
-
return
|
|
605
|
+
return response;
|
|
615
606
|
};
|
|
616
607
|
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
617
608
|
const parsedOutput = {
|
|
@@ -637,10 +628,9 @@ const de_DescribeFraudsterRegistrationJobCommandError = async (output, context)
|
|
|
637
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
629
|
default:
|
|
639
630
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
throwDefaultError({
|
|
631
|
+
return throwDefaultError({
|
|
641
632
|
output,
|
|
642
633
|
parsedBody,
|
|
643
|
-
exceptionCtor: __BaseException,
|
|
644
634
|
errorCode,
|
|
645
635
|
});
|
|
646
636
|
}
|
|
@@ -656,7 +646,7 @@ export const de_DescribeSpeakerCommand = async (output, context) => {
|
|
|
656
646
|
$metadata: deserializeMetadata(output),
|
|
657
647
|
...contents,
|
|
658
648
|
};
|
|
659
|
-
return
|
|
649
|
+
return response;
|
|
660
650
|
};
|
|
661
651
|
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
662
652
|
const parsedOutput = {
|
|
@@ -682,10 +672,9 @@ const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
|
682
672
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
683
673
|
default:
|
|
684
674
|
const parsedBody = parsedOutput.body;
|
|
685
|
-
throwDefaultError({
|
|
675
|
+
return throwDefaultError({
|
|
686
676
|
output,
|
|
687
677
|
parsedBody,
|
|
688
|
-
exceptionCtor: __BaseException,
|
|
689
678
|
errorCode,
|
|
690
679
|
});
|
|
691
680
|
}
|
|
@@ -701,7 +690,7 @@ export const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) =>
|
|
|
701
690
|
$metadata: deserializeMetadata(output),
|
|
702
691
|
...contents,
|
|
703
692
|
};
|
|
704
|
-
return
|
|
693
|
+
return response;
|
|
705
694
|
};
|
|
706
695
|
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
707
696
|
const parsedOutput = {
|
|
@@ -727,10 +716,9 @@ const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
727
716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
728
717
|
default:
|
|
729
718
|
const parsedBody = parsedOutput.body;
|
|
730
|
-
throwDefaultError({
|
|
719
|
+
return throwDefaultError({
|
|
731
720
|
output,
|
|
732
721
|
parsedBody,
|
|
733
|
-
exceptionCtor: __BaseException,
|
|
734
722
|
errorCode,
|
|
735
723
|
});
|
|
736
724
|
}
|
|
@@ -746,7 +734,7 @@ export const de_DescribeWatchlistCommand = async (output, context) => {
|
|
|
746
734
|
$metadata: deserializeMetadata(output),
|
|
747
735
|
...contents,
|
|
748
736
|
};
|
|
749
|
-
return
|
|
737
|
+
return response;
|
|
750
738
|
};
|
|
751
739
|
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
752
740
|
const parsedOutput = {
|
|
@@ -772,10 +760,9 @@ const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
|
772
760
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
773
761
|
default:
|
|
774
762
|
const parsedBody = parsedOutput.body;
|
|
775
|
-
throwDefaultError({
|
|
763
|
+
return throwDefaultError({
|
|
776
764
|
output,
|
|
777
765
|
parsedBody,
|
|
778
|
-
exceptionCtor: __BaseException,
|
|
779
766
|
errorCode,
|
|
780
767
|
});
|
|
781
768
|
}
|
|
@@ -791,7 +778,7 @@ export const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
|
791
778
|
$metadata: deserializeMetadata(output),
|
|
792
779
|
...contents,
|
|
793
780
|
};
|
|
794
|
-
return
|
|
781
|
+
return response;
|
|
795
782
|
};
|
|
796
783
|
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
797
784
|
const parsedOutput = {
|
|
@@ -820,10 +807,9 @@ const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
|
820
807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
821
808
|
default:
|
|
822
809
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
throwDefaultError({
|
|
810
|
+
return throwDefaultError({
|
|
824
811
|
output,
|
|
825
812
|
parsedBody,
|
|
826
|
-
exceptionCtor: __BaseException,
|
|
827
813
|
errorCode,
|
|
828
814
|
});
|
|
829
815
|
}
|
|
@@ -839,7 +825,7 @@ export const de_EvaluateSessionCommand = async (output, context) => {
|
|
|
839
825
|
$metadata: deserializeMetadata(output),
|
|
840
826
|
...contents,
|
|
841
827
|
};
|
|
842
|
-
return
|
|
828
|
+
return response;
|
|
843
829
|
};
|
|
844
830
|
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
845
831
|
const parsedOutput = {
|
|
@@ -868,10 +854,9 @@ const de_EvaluateSessionCommandError = async (output, context) => {
|
|
|
868
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
869
855
|
default:
|
|
870
856
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
throwDefaultError({
|
|
857
|
+
return throwDefaultError({
|
|
872
858
|
output,
|
|
873
859
|
parsedBody,
|
|
874
|
-
exceptionCtor: __BaseException,
|
|
875
860
|
errorCode,
|
|
876
861
|
});
|
|
877
862
|
}
|
|
@@ -887,7 +872,7 @@ export const de_ListDomainsCommand = async (output, context) => {
|
|
|
887
872
|
$metadata: deserializeMetadata(output),
|
|
888
873
|
...contents,
|
|
889
874
|
};
|
|
890
|
-
return
|
|
875
|
+
return response;
|
|
891
876
|
};
|
|
892
877
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
893
878
|
const parsedOutput = {
|
|
@@ -910,10 +895,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
910
895
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
911
896
|
default:
|
|
912
897
|
const parsedBody = parsedOutput.body;
|
|
913
|
-
throwDefaultError({
|
|
898
|
+
return throwDefaultError({
|
|
914
899
|
output,
|
|
915
900
|
parsedBody,
|
|
916
|
-
exceptionCtor: __BaseException,
|
|
917
901
|
errorCode,
|
|
918
902
|
});
|
|
919
903
|
}
|
|
@@ -929,7 +913,7 @@ export const de_ListFraudsterRegistrationJobsCommand = async (output, context) =
|
|
|
929
913
|
$metadata: deserializeMetadata(output),
|
|
930
914
|
...contents,
|
|
931
915
|
};
|
|
932
|
-
return
|
|
916
|
+
return response;
|
|
933
917
|
};
|
|
934
918
|
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
935
919
|
const parsedOutput = {
|
|
@@ -955,10 +939,9 @@ const de_ListFraudsterRegistrationJobsCommandError = async (output, context) =>
|
|
|
955
939
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
940
|
default:
|
|
957
941
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
throwDefaultError({
|
|
942
|
+
return throwDefaultError({
|
|
959
943
|
output,
|
|
960
944
|
parsedBody,
|
|
961
|
-
exceptionCtor: __BaseException,
|
|
962
945
|
errorCode,
|
|
963
946
|
});
|
|
964
947
|
}
|
|
@@ -974,7 +957,7 @@ export const de_ListFraudstersCommand = async (output, context) => {
|
|
|
974
957
|
$metadata: deserializeMetadata(output),
|
|
975
958
|
...contents,
|
|
976
959
|
};
|
|
977
|
-
return
|
|
960
|
+
return response;
|
|
978
961
|
};
|
|
979
962
|
const de_ListFraudstersCommandError = async (output, context) => {
|
|
980
963
|
const parsedOutput = {
|
|
@@ -1000,10 +983,9 @@ const de_ListFraudstersCommandError = async (output, context) => {
|
|
|
1000
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1001
984
|
default:
|
|
1002
985
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
throwDefaultError({
|
|
986
|
+
return throwDefaultError({
|
|
1004
987
|
output,
|
|
1005
988
|
parsedBody,
|
|
1006
|
-
exceptionCtor: __BaseException,
|
|
1007
989
|
errorCode,
|
|
1008
990
|
});
|
|
1009
991
|
}
|
|
@@ -1019,7 +1001,7 @@ export const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
|
1019
1001
|
$metadata: deserializeMetadata(output),
|
|
1020
1002
|
...contents,
|
|
1021
1003
|
};
|
|
1022
|
-
return
|
|
1004
|
+
return response;
|
|
1023
1005
|
};
|
|
1024
1006
|
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
1025
1007
|
const parsedOutput = {
|
|
@@ -1045,10 +1027,9 @@ const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
|
1045
1027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1046
1028
|
default:
|
|
1047
1029
|
const parsedBody = parsedOutput.body;
|
|
1048
|
-
throwDefaultError({
|
|
1030
|
+
return throwDefaultError({
|
|
1049
1031
|
output,
|
|
1050
1032
|
parsedBody,
|
|
1051
|
-
exceptionCtor: __BaseException,
|
|
1052
1033
|
errorCode,
|
|
1053
1034
|
});
|
|
1054
1035
|
}
|
|
@@ -1064,7 +1045,7 @@ export const de_ListSpeakersCommand = async (output, context) => {
|
|
|
1064
1045
|
$metadata: deserializeMetadata(output),
|
|
1065
1046
|
...contents,
|
|
1066
1047
|
};
|
|
1067
|
-
return
|
|
1048
|
+
return response;
|
|
1068
1049
|
};
|
|
1069
1050
|
const de_ListSpeakersCommandError = async (output, context) => {
|
|
1070
1051
|
const parsedOutput = {
|
|
@@ -1090,10 +1071,9 @@ const de_ListSpeakersCommandError = async (output, context) => {
|
|
|
1090
1071
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1091
1072
|
default:
|
|
1092
1073
|
const parsedBody = parsedOutput.body;
|
|
1093
|
-
throwDefaultError({
|
|
1074
|
+
return throwDefaultError({
|
|
1094
1075
|
output,
|
|
1095
1076
|
parsedBody,
|
|
1096
|
-
exceptionCtor: __BaseException,
|
|
1097
1077
|
errorCode,
|
|
1098
1078
|
});
|
|
1099
1079
|
}
|
|
@@ -1104,12 +1084,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1104
1084
|
}
|
|
1105
1085
|
const data = await parseBody(output.body, context);
|
|
1106
1086
|
let contents = {};
|
|
1107
|
-
contents =
|
|
1087
|
+
contents = _json(data);
|
|
1108
1088
|
const response = {
|
|
1109
1089
|
$metadata: deserializeMetadata(output),
|
|
1110
1090
|
...contents,
|
|
1111
1091
|
};
|
|
1112
|
-
return
|
|
1092
|
+
return response;
|
|
1113
1093
|
};
|
|
1114
1094
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1115
1095
|
const parsedOutput = {
|
|
@@ -1135,10 +1115,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1135
1115
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
1116
|
default:
|
|
1137
1117
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
throwDefaultError({
|
|
1118
|
+
return throwDefaultError({
|
|
1139
1119
|
output,
|
|
1140
1120
|
parsedBody,
|
|
1141
|
-
exceptionCtor: __BaseException,
|
|
1142
1121
|
errorCode,
|
|
1143
1122
|
});
|
|
1144
1123
|
}
|
|
@@ -1154,7 +1133,7 @@ export const de_ListWatchlistsCommand = async (output, context) => {
|
|
|
1154
1133
|
$metadata: deserializeMetadata(output),
|
|
1155
1134
|
...contents,
|
|
1156
1135
|
};
|
|
1157
|
-
return
|
|
1136
|
+
return response;
|
|
1158
1137
|
};
|
|
1159
1138
|
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
1160
1139
|
const parsedOutput = {
|
|
@@ -1180,10 +1159,9 @@ const de_ListWatchlistsCommandError = async (output, context) => {
|
|
|
1180
1159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
1160
|
default:
|
|
1182
1161
|
const parsedBody = parsedOutput.body;
|
|
1183
|
-
throwDefaultError({
|
|
1162
|
+
return throwDefaultError({
|
|
1184
1163
|
output,
|
|
1185
1164
|
parsedBody,
|
|
1186
|
-
exceptionCtor: __BaseException,
|
|
1187
1165
|
errorCode,
|
|
1188
1166
|
});
|
|
1189
1167
|
}
|
|
@@ -1199,7 +1177,7 @@ export const de_OptOutSpeakerCommand = async (output, context) => {
|
|
|
1199
1177
|
$metadata: deserializeMetadata(output),
|
|
1200
1178
|
...contents,
|
|
1201
1179
|
};
|
|
1202
|
-
return
|
|
1180
|
+
return response;
|
|
1203
1181
|
};
|
|
1204
1182
|
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
1205
1183
|
const parsedOutput = {
|
|
@@ -1231,10 +1209,9 @@ const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
|
1231
1209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1232
1210
|
default:
|
|
1233
1211
|
const parsedBody = parsedOutput.body;
|
|
1234
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1235
1213
|
output,
|
|
1236
1214
|
parsedBody,
|
|
1237
|
-
exceptionCtor: __BaseException,
|
|
1238
1215
|
errorCode,
|
|
1239
1216
|
});
|
|
1240
1217
|
}
|
|
@@ -1250,7 +1227,7 @@ export const de_StartFraudsterRegistrationJobCommand = async (output, context) =
|
|
|
1250
1227
|
$metadata: deserializeMetadata(output),
|
|
1251
1228
|
...contents,
|
|
1252
1229
|
};
|
|
1253
|
-
return
|
|
1230
|
+
return response;
|
|
1254
1231
|
};
|
|
1255
1232
|
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
1256
1233
|
const parsedOutput = {
|
|
@@ -1282,10 +1259,9 @@ const de_StartFraudsterRegistrationJobCommandError = async (output, context) =>
|
|
|
1282
1259
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
1260
|
default:
|
|
1284
1261
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
throwDefaultError({
|
|
1262
|
+
return throwDefaultError({
|
|
1286
1263
|
output,
|
|
1287
1264
|
parsedBody,
|
|
1288
|
-
exceptionCtor: __BaseException,
|
|
1289
1265
|
errorCode,
|
|
1290
1266
|
});
|
|
1291
1267
|
}
|
|
@@ -1301,7 +1277,7 @@ export const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
1301
1277
|
$metadata: deserializeMetadata(output),
|
|
1302
1278
|
...contents,
|
|
1303
1279
|
};
|
|
1304
|
-
return
|
|
1280
|
+
return response;
|
|
1305
1281
|
};
|
|
1306
1282
|
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
1307
1283
|
const parsedOutput = {
|
|
@@ -1333,10 +1309,9 @@ const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
1333
1309
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
1310
|
default:
|
|
1335
1311
|
const parsedBody = parsedOutput.body;
|
|
1336
|
-
throwDefaultError({
|
|
1312
|
+
return throwDefaultError({
|
|
1337
1313
|
output,
|
|
1338
1314
|
parsedBody,
|
|
1339
|
-
exceptionCtor: __BaseException,
|
|
1340
1315
|
errorCode,
|
|
1341
1316
|
});
|
|
1342
1317
|
}
|
|
@@ -1347,12 +1322,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1347
1322
|
}
|
|
1348
1323
|
const data = await parseBody(output.body, context);
|
|
1349
1324
|
let contents = {};
|
|
1350
|
-
contents =
|
|
1325
|
+
contents = _json(data);
|
|
1351
1326
|
const response = {
|
|
1352
1327
|
$metadata: deserializeMetadata(output),
|
|
1353
1328
|
...contents,
|
|
1354
1329
|
};
|
|
1355
|
-
return
|
|
1330
|
+
return response;
|
|
1356
1331
|
};
|
|
1357
1332
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1358
1333
|
const parsedOutput = {
|
|
@@ -1381,10 +1356,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1381
1356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1382
1357
|
default:
|
|
1383
1358
|
const parsedBody = parsedOutput.body;
|
|
1384
|
-
throwDefaultError({
|
|
1359
|
+
return throwDefaultError({
|
|
1385
1360
|
output,
|
|
1386
1361
|
parsedBody,
|
|
1387
|
-
exceptionCtor: __BaseException,
|
|
1388
1362
|
errorCode,
|
|
1389
1363
|
});
|
|
1390
1364
|
}
|
|
@@ -1395,12 +1369,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1395
1369
|
}
|
|
1396
1370
|
const data = await parseBody(output.body, context);
|
|
1397
1371
|
let contents = {};
|
|
1398
|
-
contents =
|
|
1372
|
+
contents = _json(data);
|
|
1399
1373
|
const response = {
|
|
1400
1374
|
$metadata: deserializeMetadata(output),
|
|
1401
1375
|
...contents,
|
|
1402
1376
|
};
|
|
1403
|
-
return
|
|
1377
|
+
return response;
|
|
1404
1378
|
};
|
|
1405
1379
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1406
1380
|
const parsedOutput = {
|
|
@@ -1429,10 +1403,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1429
1403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
1404
|
default:
|
|
1431
1405
|
const parsedBody = parsedOutput.body;
|
|
1432
|
-
throwDefaultError({
|
|
1406
|
+
return throwDefaultError({
|
|
1433
1407
|
output,
|
|
1434
1408
|
parsedBody,
|
|
1435
|
-
exceptionCtor: __BaseException,
|
|
1436
1409
|
errorCode,
|
|
1437
1410
|
});
|
|
1438
1411
|
}
|
|
@@ -1448,7 +1421,7 @@ export const de_UpdateDomainCommand = async (output, context) => {
|
|
|
1448
1421
|
$metadata: deserializeMetadata(output),
|
|
1449
1422
|
...contents,
|
|
1450
1423
|
};
|
|
1451
|
-
return
|
|
1424
|
+
return response;
|
|
1452
1425
|
};
|
|
1453
1426
|
const de_UpdateDomainCommandError = async (output, context) => {
|
|
1454
1427
|
const parsedOutput = {
|
|
@@ -1477,10 +1450,9 @@ const de_UpdateDomainCommandError = async (output, context) => {
|
|
|
1477
1450
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
1451
|
default:
|
|
1479
1452
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
throwDefaultError({
|
|
1453
|
+
return throwDefaultError({
|
|
1481
1454
|
output,
|
|
1482
1455
|
parsedBody,
|
|
1483
|
-
exceptionCtor: __BaseException,
|
|
1484
1456
|
errorCode,
|
|
1485
1457
|
});
|
|
1486
1458
|
}
|
|
@@ -1496,7 +1468,7 @@ export const de_UpdateWatchlistCommand = async (output, context) => {
|
|
|
1496
1468
|
$metadata: deserializeMetadata(output),
|
|
1497
1469
|
...contents,
|
|
1498
1470
|
};
|
|
1499
|
-
return
|
|
1471
|
+
return response;
|
|
1500
1472
|
};
|
|
1501
1473
|
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
1502
1474
|
const parsedOutput = {
|
|
@@ -1525,17 +1497,16 @@ const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
|
1525
1497
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
1498
|
default:
|
|
1527
1499
|
const parsedBody = parsedOutput.body;
|
|
1528
|
-
throwDefaultError({
|
|
1500
|
+
return throwDefaultError({
|
|
1529
1501
|
output,
|
|
1530
1502
|
parsedBody,
|
|
1531
|
-
exceptionCtor: __BaseException,
|
|
1532
1503
|
errorCode,
|
|
1533
1504
|
});
|
|
1534
1505
|
}
|
|
1535
1506
|
};
|
|
1536
1507
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1537
1508
|
const body = parsedOutput.body;
|
|
1538
|
-
const deserialized =
|
|
1509
|
+
const deserialized = _json(body);
|
|
1539
1510
|
const exception = new AccessDeniedException({
|
|
1540
1511
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
1512
|
...deserialized,
|
|
@@ -1544,7 +1515,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1544
1515
|
};
|
|
1545
1516
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1546
1517
|
const body = parsedOutput.body;
|
|
1547
|
-
const deserialized =
|
|
1518
|
+
const deserialized = _json(body);
|
|
1548
1519
|
const exception = new ConflictException({
|
|
1549
1520
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1550
1521
|
...deserialized,
|
|
@@ -1553,7 +1524,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1553
1524
|
};
|
|
1554
1525
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1555
1526
|
const body = parsedOutput.body;
|
|
1556
|
-
const deserialized =
|
|
1527
|
+
const deserialized = _json(body);
|
|
1557
1528
|
const exception = new InternalServerException({
|
|
1558
1529
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1559
1530
|
...deserialized,
|
|
@@ -1562,7 +1533,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1562
1533
|
};
|
|
1563
1534
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1564
1535
|
const body = parsedOutput.body;
|
|
1565
|
-
const deserialized =
|
|
1536
|
+
const deserialized = _json(body);
|
|
1566
1537
|
const exception = new ResourceNotFoundException({
|
|
1567
1538
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1568
1539
|
...deserialized,
|
|
@@ -1571,7 +1542,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1571
1542
|
};
|
|
1572
1543
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1573
1544
|
const body = parsedOutput.body;
|
|
1574
|
-
const deserialized =
|
|
1545
|
+
const deserialized = _json(body);
|
|
1575
1546
|
const exception = new ServiceQuotaExceededException({
|
|
1576
1547
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1577
1548
|
...deserialized,
|
|
@@ -1580,7 +1551,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1580
1551
|
};
|
|
1581
1552
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1582
1553
|
const body = parsedOutput.body;
|
|
1583
|
-
const deserialized =
|
|
1554
|
+
const deserialized = _json(body);
|
|
1584
1555
|
const exception = new ThrottlingException({
|
|
1585
1556
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1586
1557
|
...deserialized,
|
|
@@ -1589,870 +1560,387 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1589
1560
|
};
|
|
1590
1561
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1591
1562
|
const body = parsedOutput.body;
|
|
1592
|
-
const deserialized =
|
|
1563
|
+
const deserialized = _json(body);
|
|
1593
1564
|
const exception = new ValidationException({
|
|
1594
1565
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1595
1566
|
...deserialized,
|
|
1596
1567
|
});
|
|
1597
1568
|
return __decorateServiceException(exception, body);
|
|
1598
1569
|
};
|
|
1599
|
-
const se_AssociateFraudsterRequest = (input, context) => {
|
|
1600
|
-
return {
|
|
1601
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1602
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1603
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1604
|
-
};
|
|
1605
|
-
};
|
|
1606
1570
|
const se_CreateDomainRequest = (input, context) => {
|
|
1607
|
-
return {
|
|
1608
|
-
ClientToken:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
}),
|
|
1614
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const se_CreateWatchlistRequest = (input, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1620
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1621
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1622
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
const se_DeleteDomainRequest = (input, context) => {
|
|
1626
|
-
return {
|
|
1627
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1628
|
-
};
|
|
1629
|
-
};
|
|
1630
|
-
const se_DeleteFraudsterRequest = (input, context) => {
|
|
1631
|
-
return {
|
|
1632
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1633
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1634
|
-
};
|
|
1635
|
-
};
|
|
1636
|
-
const se_DeleteSpeakerRequest = (input, context) => {
|
|
1637
|
-
return {
|
|
1638
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1639
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
|
-
const se_DeleteWatchlistRequest = (input, context) => {
|
|
1643
|
-
return {
|
|
1644
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1645
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
const se_DescribeDomainRequest = (input, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
const se_DescribeFraudsterRegistrationJobRequest = (input, context) => {
|
|
1654
|
-
return {
|
|
1655
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1656
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
const se_DescribeFraudsterRequest = (input, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1662
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1663
|
-
};
|
|
1664
|
-
};
|
|
1665
|
-
const se_DescribeSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1666
|
-
return {
|
|
1667
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1668
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1669
|
-
};
|
|
1670
|
-
};
|
|
1671
|
-
const se_DescribeSpeakerRequest = (input, context) => {
|
|
1672
|
-
return {
|
|
1673
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1674
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
const se_DescribeWatchlistRequest = (input, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1680
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1681
|
-
};
|
|
1682
|
-
};
|
|
1683
|
-
const se_DisassociateFraudsterRequest = (input, context) => {
|
|
1684
|
-
return {
|
|
1685
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1686
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1687
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1688
|
-
};
|
|
1689
|
-
};
|
|
1690
|
-
const se_EnrollmentConfig = (input, context) => {
|
|
1691
|
-
return {
|
|
1692
|
-
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
1693
|
-
...(input.FraudDetectionConfig != null && {
|
|
1694
|
-
FraudDetectionConfig: se_EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1695
|
-
}),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const se_EnrollmentJobFraudDetectionConfig = (input, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1701
|
-
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1702
|
-
...(input.WatchlistIds != null && {
|
|
1703
|
-
WatchlistIds: se_EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1704
|
-
}),
|
|
1705
|
-
};
|
|
1706
|
-
};
|
|
1707
|
-
const se_EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1708
|
-
return input
|
|
1709
|
-
.filter((e) => e != null)
|
|
1710
|
-
.map((entry) => {
|
|
1711
|
-
return entry;
|
|
1571
|
+
return take(input, {
|
|
1572
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1573
|
+
Description: [],
|
|
1574
|
+
Name: [],
|
|
1575
|
+
ServerSideEncryptionConfiguration: _json,
|
|
1576
|
+
Tags: _json,
|
|
1712
1577
|
});
|
|
1713
1578
|
};
|
|
1714
|
-
const
|
|
1715
|
-
return {
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
const se_InputDataConfig = (input, context) => {
|
|
1721
|
-
return {
|
|
1722
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1723
|
-
};
|
|
1724
|
-
};
|
|
1725
|
-
const se_ListDomainsRequest = (input, context) => {
|
|
1726
|
-
return {
|
|
1727
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1728
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1729
|
-
};
|
|
1730
|
-
};
|
|
1731
|
-
const se_ListFraudsterRegistrationJobsRequest = (input, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1734
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1735
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1736
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1737
|
-
};
|
|
1738
|
-
};
|
|
1739
|
-
const se_ListFraudstersRequest = (input, context) => {
|
|
1740
|
-
return {
|
|
1741
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1742
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1743
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1744
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
|
-
const se_ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1748
|
-
return {
|
|
1749
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1750
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1751
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1752
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
const se_ListSpeakersRequest = (input, context) => {
|
|
1756
|
-
return {
|
|
1757
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1758
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1759
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1760
|
-
};
|
|
1761
|
-
};
|
|
1762
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1763
|
-
return {
|
|
1764
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1765
|
-
};
|
|
1766
|
-
};
|
|
1767
|
-
const se_ListWatchlistsRequest = (input, context) => {
|
|
1768
|
-
return {
|
|
1769
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1770
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1771
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
const se_OptOutSpeakerRequest = (input, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1777
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1778
|
-
};
|
|
1779
|
-
};
|
|
1780
|
-
const se_OutputDataConfig = (input, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1783
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1784
|
-
};
|
|
1785
|
-
};
|
|
1786
|
-
const se_RegistrationConfig = (input, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
...(input.DuplicateRegistrationAction != null && {
|
|
1789
|
-
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
1790
|
-
}),
|
|
1791
|
-
...(input.FraudsterSimilarityThreshold != null && {
|
|
1792
|
-
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1793
|
-
}),
|
|
1794
|
-
...(input.WatchlistIds != null && { WatchlistIds: se_RegistrationConfigWatchlistIds(input.WatchlistIds, context) }),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
const se_RegistrationConfigWatchlistIds = (input, context) => {
|
|
1798
|
-
return input
|
|
1799
|
-
.filter((e) => e != null)
|
|
1800
|
-
.map((entry) => {
|
|
1801
|
-
return entry;
|
|
1579
|
+
const se_CreateWatchlistRequest = (input, context) => {
|
|
1580
|
+
return take(input, {
|
|
1581
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1582
|
+
Description: [],
|
|
1583
|
+
DomainId: [],
|
|
1584
|
+
Name: [],
|
|
1802
1585
|
});
|
|
1803
1586
|
};
|
|
1804
|
-
const se_ServerSideEncryptionConfiguration = (input, context) => {
|
|
1805
|
-
return {
|
|
1806
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
1587
|
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1810
|
-
return {
|
|
1811
|
-
ClientToken:
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
RegistrationConfig: se_RegistrationConfig(input.RegistrationConfig, context),
|
|
1819
|
-
}),
|
|
1820
|
-
};
|
|
1821
|
-
};
|
|
1822
|
-
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1823
|
-
return {
|
|
1824
|
-
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1825
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1826
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1827
|
-
...(input.EnrollmentConfig != null && { EnrollmentConfig: se_EnrollmentConfig(input.EnrollmentConfig, context) }),
|
|
1828
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1829
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1830
|
-
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const se_Tag = (input, context) => {
|
|
1834
|
-
return {
|
|
1835
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1836
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1837
|
-
};
|
|
1838
|
-
};
|
|
1839
|
-
const se_TagKeyList = (input, context) => {
|
|
1840
|
-
return input
|
|
1841
|
-
.filter((e) => e != null)
|
|
1842
|
-
.map((entry) => {
|
|
1843
|
-
return entry;
|
|
1588
|
+
return take(input, {
|
|
1589
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1590
|
+
DataAccessRoleArn: [],
|
|
1591
|
+
DomainId: [],
|
|
1592
|
+
InputDataConfig: _json,
|
|
1593
|
+
JobName: [],
|
|
1594
|
+
OutputDataConfig: _json,
|
|
1595
|
+
RegistrationConfig: _json,
|
|
1844
1596
|
});
|
|
1845
1597
|
};
|
|
1846
|
-
const
|
|
1847
|
-
return input
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1598
|
+
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1599
|
+
return take(input, {
|
|
1600
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1601
|
+
DataAccessRoleArn: [],
|
|
1602
|
+
DomainId: [],
|
|
1603
|
+
EnrollmentConfig: _json,
|
|
1604
|
+
InputDataConfig: _json,
|
|
1605
|
+
JobName: [],
|
|
1606
|
+
OutputDataConfig: _json,
|
|
1851
1607
|
});
|
|
1852
1608
|
};
|
|
1853
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1856
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1860
|
-
return {
|
|
1861
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1862
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
|
-
const se_UpdateDomainRequest = (input, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1868
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1869
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1870
|
-
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1871
|
-
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1872
|
-
}),
|
|
1873
|
-
};
|
|
1874
|
-
};
|
|
1875
|
-
const se_UpdateWatchlistRequest = (input, context) => {
|
|
1876
|
-
return {
|
|
1877
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1878
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1879
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1880
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1881
|
-
};
|
|
1882
|
-
};
|
|
1883
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1884
|
-
return {
|
|
1885
|
-
Message: __expectString(output.Message),
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
1609
|
const de_AssociateFraudsterResponse = (output, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
Fraudster:
|
|
1891
|
-
};
|
|
1892
|
-
};
|
|
1893
|
-
const de_AuthenticationConfiguration = (output, context) => {
|
|
1894
|
-
return {
|
|
1895
|
-
AcceptanceThreshold: __expectInt32(output.AcceptanceThreshold),
|
|
1896
|
-
};
|
|
1610
|
+
return take(output, {
|
|
1611
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1612
|
+
});
|
|
1897
1613
|
};
|
|
1898
1614
|
const de_AuthenticationResult = (output, context) => {
|
|
1899
|
-
return {
|
|
1900
|
-
AudioAggregationEndedAt:
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
Decision: __expectString(output.Decision),
|
|
1910
|
-
GeneratedSpeakerId: __expectString(output.GeneratedSpeakerId),
|
|
1911
|
-
Score: __expectInt32(output.Score),
|
|
1912
|
-
};
|
|
1913
|
-
};
|
|
1914
|
-
const de_ConflictException = (output, context) => {
|
|
1915
|
-
return {
|
|
1916
|
-
ConflictType: __expectString(output.ConflictType),
|
|
1917
|
-
Message: __expectString(output.Message),
|
|
1918
|
-
};
|
|
1615
|
+
return take(output, {
|
|
1616
|
+
AudioAggregationEndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1617
|
+
AudioAggregationStartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1618
|
+
AuthenticationResultId: __expectString,
|
|
1619
|
+
Configuration: _json,
|
|
1620
|
+
CustomerSpeakerId: __expectString,
|
|
1621
|
+
Decision: __expectString,
|
|
1622
|
+
GeneratedSpeakerId: __expectString,
|
|
1623
|
+
Score: __expectInt32,
|
|
1624
|
+
});
|
|
1919
1625
|
};
|
|
1920
1626
|
const de_CreateDomainResponse = (output, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
Domain:
|
|
1923
|
-
};
|
|
1627
|
+
return take(output, {
|
|
1628
|
+
Domain: (_) => de_Domain(_, context),
|
|
1629
|
+
});
|
|
1924
1630
|
};
|
|
1925
1631
|
const de_CreateWatchlistResponse = (output, context) => {
|
|
1926
|
-
return {
|
|
1927
|
-
Watchlist:
|
|
1928
|
-
};
|
|
1632
|
+
return take(output, {
|
|
1633
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1634
|
+
});
|
|
1929
1635
|
};
|
|
1930
1636
|
const de_DescribeDomainResponse = (output, context) => {
|
|
1931
|
-
return {
|
|
1932
|
-
Domain:
|
|
1933
|
-
};
|
|
1637
|
+
return take(output, {
|
|
1638
|
+
Domain: (_) => de_Domain(_, context),
|
|
1639
|
+
});
|
|
1934
1640
|
};
|
|
1935
1641
|
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
1936
|
-
return {
|
|
1937
|
-
Job:
|
|
1938
|
-
};
|
|
1642
|
+
return take(output, {
|
|
1643
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1644
|
+
});
|
|
1939
1645
|
};
|
|
1940
1646
|
const de_DescribeFraudsterResponse = (output, context) => {
|
|
1941
|
-
return {
|
|
1942
|
-
Fraudster:
|
|
1943
|
-
};
|
|
1647
|
+
return take(output, {
|
|
1648
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1649
|
+
});
|
|
1944
1650
|
};
|
|
1945
1651
|
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
Job:
|
|
1948
|
-
};
|
|
1652
|
+
return take(output, {
|
|
1653
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1654
|
+
});
|
|
1949
1655
|
};
|
|
1950
1656
|
const de_DescribeSpeakerResponse = (output, context) => {
|
|
1951
|
-
return {
|
|
1952
|
-
Speaker:
|
|
1953
|
-
};
|
|
1657
|
+
return take(output, {
|
|
1658
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
1659
|
+
});
|
|
1954
1660
|
};
|
|
1955
1661
|
const de_DescribeWatchlistResponse = (output, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
Watchlist:
|
|
1958
|
-
};
|
|
1662
|
+
return take(output, {
|
|
1663
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1664
|
+
});
|
|
1959
1665
|
};
|
|
1960
1666
|
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
1961
|
-
return {
|
|
1962
|
-
Fraudster:
|
|
1963
|
-
};
|
|
1667
|
+
return take(output, {
|
|
1668
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1669
|
+
});
|
|
1964
1670
|
};
|
|
1965
1671
|
const de_Domain = (output, context) => {
|
|
1966
|
-
return {
|
|
1967
|
-
Arn: __expectString
|
|
1968
|
-
CreatedAt:
|
|
1969
|
-
Description: __expectString
|
|
1970
|
-
DomainId: __expectString
|
|
1971
|
-
DomainStatus: __expectString
|
|
1972
|
-
Name: __expectString
|
|
1973
|
-
ServerSideEncryptionConfiguration:
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
: undefined,
|
|
1979
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1980
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
1981
|
-
};
|
|
1672
|
+
return take(output, {
|
|
1673
|
+
Arn: __expectString,
|
|
1674
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1675
|
+
Description: __expectString,
|
|
1676
|
+
DomainId: __expectString,
|
|
1677
|
+
DomainStatus: __expectString,
|
|
1678
|
+
Name: __expectString,
|
|
1679
|
+
ServerSideEncryptionConfiguration: _json,
|
|
1680
|
+
ServerSideEncryptionUpdateDetails: _json,
|
|
1681
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1682
|
+
WatchlistDetails: _json,
|
|
1683
|
+
});
|
|
1982
1684
|
};
|
|
1983
1685
|
const de_DomainSummaries = (output, context) => {
|
|
1984
1686
|
const retVal = (output || [])
|
|
1985
1687
|
.filter((e) => e != null)
|
|
1986
1688
|
.map((entry) => {
|
|
1987
|
-
if (entry === null) {
|
|
1988
|
-
return null;
|
|
1989
|
-
}
|
|
1990
1689
|
return de_DomainSummary(entry, context);
|
|
1991
1690
|
});
|
|
1992
1691
|
return retVal;
|
|
1993
1692
|
};
|
|
1994
1693
|
const de_DomainSummary = (output, context) => {
|
|
1995
|
-
return {
|
|
1996
|
-
Arn: __expectString
|
|
1997
|
-
CreatedAt:
|
|
1998
|
-
Description: __expectString
|
|
1999
|
-
DomainId: __expectString
|
|
2000
|
-
DomainStatus: __expectString
|
|
2001
|
-
Name: __expectString
|
|
2002
|
-
ServerSideEncryptionConfiguration:
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2007
|
-
: undefined,
|
|
2008
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2009
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2012
|
-
const de_EnrollmentConfig = (output, context) => {
|
|
2013
|
-
return {
|
|
2014
|
-
ExistingEnrollmentAction: __expectString(output.ExistingEnrollmentAction),
|
|
2015
|
-
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
2016
|
-
? de_EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
|
|
2017
|
-
: undefined,
|
|
2018
|
-
};
|
|
2019
|
-
};
|
|
2020
|
-
const de_EnrollmentJobFraudDetectionConfig = (output, context) => {
|
|
2021
|
-
return {
|
|
2022
|
-
FraudDetectionAction: __expectString(output.FraudDetectionAction),
|
|
2023
|
-
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2024
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2025
|
-
? de_EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2026
|
-
: undefined,
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const de_EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2030
|
-
const retVal = (output || [])
|
|
2031
|
-
.filter((e) => e != null)
|
|
2032
|
-
.map((entry) => {
|
|
2033
|
-
if (entry === null) {
|
|
2034
|
-
return null;
|
|
2035
|
-
}
|
|
2036
|
-
return __expectString(entry);
|
|
1694
|
+
return take(output, {
|
|
1695
|
+
Arn: __expectString,
|
|
1696
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1697
|
+
Description: __expectString,
|
|
1698
|
+
DomainId: __expectString,
|
|
1699
|
+
DomainStatus: __expectString,
|
|
1700
|
+
Name: __expectString,
|
|
1701
|
+
ServerSideEncryptionConfiguration: _json,
|
|
1702
|
+
ServerSideEncryptionUpdateDetails: _json,
|
|
1703
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1704
|
+
WatchlistDetails: _json,
|
|
2037
1705
|
});
|
|
2038
|
-
return retVal;
|
|
2039
1706
|
};
|
|
2040
1707
|
const de_EvaluateSessionResponse = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
AuthenticationResult:
|
|
2043
|
-
DomainId: __expectString
|
|
2044
|
-
FraudDetectionResult:
|
|
2045
|
-
SessionId: __expectString
|
|
2046
|
-
SessionName: __expectString
|
|
2047
|
-
StreamingStatus: __expectString
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
const de_FailureDetails = (output, context) => {
|
|
2051
|
-
return {
|
|
2052
|
-
Message: __expectString(output.Message),
|
|
2053
|
-
StatusCode: __expectInt32(output.StatusCode),
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
const de_FraudDetectionConfiguration = (output, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2059
|
-
WatchlistId: __expectString(output.WatchlistId),
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const de_FraudDetectionReasons = (output, context) => {
|
|
2063
|
-
const retVal = (output || [])
|
|
2064
|
-
.filter((e) => e != null)
|
|
2065
|
-
.map((entry) => {
|
|
2066
|
-
if (entry === null) {
|
|
2067
|
-
return null;
|
|
2068
|
-
}
|
|
2069
|
-
return __expectString(entry);
|
|
1708
|
+
return take(output, {
|
|
1709
|
+
AuthenticationResult: (_) => de_AuthenticationResult(_, context),
|
|
1710
|
+
DomainId: __expectString,
|
|
1711
|
+
FraudDetectionResult: (_) => de_FraudDetectionResult(_, context),
|
|
1712
|
+
SessionId: __expectString,
|
|
1713
|
+
SessionName: __expectString,
|
|
1714
|
+
StreamingStatus: __expectString,
|
|
2070
1715
|
});
|
|
2071
|
-
return retVal;
|
|
2072
1716
|
};
|
|
2073
1717
|
const de_FraudDetectionResult = (output, context) => {
|
|
2074
|
-
return {
|
|
2075
|
-
AudioAggregationEndedAt:
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
FraudDetectionResultId: __expectString(output.FraudDetectionResultId),
|
|
2084
|
-
Reasons: output.Reasons != null ? de_FraudDetectionReasons(output.Reasons, context) : undefined,
|
|
2085
|
-
RiskDetails: output.RiskDetails != null ? de_FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
2086
|
-
};
|
|
2087
|
-
};
|
|
2088
|
-
const de_FraudRiskDetails = (output, context) => {
|
|
2089
|
-
return {
|
|
2090
|
-
KnownFraudsterRisk: output.KnownFraudsterRisk != null ? de_KnownFraudsterRisk(output.KnownFraudsterRisk, context) : undefined,
|
|
2091
|
-
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null ? de_VoiceSpoofingRisk(output.VoiceSpoofingRisk, context) : undefined,
|
|
2092
|
-
};
|
|
1718
|
+
return take(output, {
|
|
1719
|
+
AudioAggregationEndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1720
|
+
AudioAggregationStartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1721
|
+
Configuration: _json,
|
|
1722
|
+
Decision: __expectString,
|
|
1723
|
+
FraudDetectionResultId: __expectString,
|
|
1724
|
+
Reasons: _json,
|
|
1725
|
+
RiskDetails: _json,
|
|
1726
|
+
});
|
|
2093
1727
|
};
|
|
2094
1728
|
const de_Fraudster = (output, context) => {
|
|
2095
|
-
return {
|
|
2096
|
-
CreatedAt:
|
|
2097
|
-
DomainId: __expectString
|
|
2098
|
-
GeneratedFraudsterId: __expectString
|
|
2099
|
-
WatchlistIds:
|
|
2100
|
-
};
|
|
1729
|
+
return take(output, {
|
|
1730
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1731
|
+
DomainId: __expectString,
|
|
1732
|
+
GeneratedFraudsterId: __expectString,
|
|
1733
|
+
WatchlistIds: _json,
|
|
1734
|
+
});
|
|
2101
1735
|
};
|
|
2102
1736
|
const de_FraudsterRegistrationJob = (output, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
CreatedAt:
|
|
2105
|
-
DataAccessRoleArn: __expectString
|
|
2106
|
-
DomainId: __expectString
|
|
2107
|
-
EndedAt:
|
|
2108
|
-
FailureDetails:
|
|
2109
|
-
InputDataConfig:
|
|
2110
|
-
JobId: __expectString
|
|
2111
|
-
JobName: __expectString
|
|
2112
|
-
JobProgress:
|
|
2113
|
-
JobStatus: __expectString
|
|
2114
|
-
OutputDataConfig:
|
|
2115
|
-
RegistrationConfig:
|
|
2116
|
-
};
|
|
1737
|
+
return take(output, {
|
|
1738
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1739
|
+
DataAccessRoleArn: __expectString,
|
|
1740
|
+
DomainId: __expectString,
|
|
1741
|
+
EndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1742
|
+
FailureDetails: _json,
|
|
1743
|
+
InputDataConfig: _json,
|
|
1744
|
+
JobId: __expectString,
|
|
1745
|
+
JobName: __expectString,
|
|
1746
|
+
JobProgress: _json,
|
|
1747
|
+
JobStatus: __expectString,
|
|
1748
|
+
OutputDataConfig: _json,
|
|
1749
|
+
RegistrationConfig: _json,
|
|
1750
|
+
});
|
|
2117
1751
|
};
|
|
2118
1752
|
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
2119
1753
|
const retVal = (output || [])
|
|
2120
1754
|
.filter((e) => e != null)
|
|
2121
1755
|
.map((entry) => {
|
|
2122
|
-
if (entry === null) {
|
|
2123
|
-
return null;
|
|
2124
|
-
}
|
|
2125
1756
|
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
2126
1757
|
});
|
|
2127
1758
|
return retVal;
|
|
2128
1759
|
};
|
|
2129
1760
|
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
2130
|
-
return {
|
|
2131
|
-
CreatedAt:
|
|
2132
|
-
DomainId: __expectString
|
|
2133
|
-
EndedAt:
|
|
2134
|
-
FailureDetails:
|
|
2135
|
-
JobId: __expectString
|
|
2136
|
-
JobName: __expectString
|
|
2137
|
-
JobProgress:
|
|
2138
|
-
JobStatus: __expectString
|
|
2139
|
-
};
|
|
1761
|
+
return take(output, {
|
|
1762
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1763
|
+
DomainId: __expectString,
|
|
1764
|
+
EndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1765
|
+
FailureDetails: _json,
|
|
1766
|
+
JobId: __expectString,
|
|
1767
|
+
JobName: __expectString,
|
|
1768
|
+
JobProgress: _json,
|
|
1769
|
+
JobStatus: __expectString,
|
|
1770
|
+
});
|
|
2140
1771
|
};
|
|
2141
1772
|
const de_FraudsterSummaries = (output, context) => {
|
|
2142
1773
|
const retVal = (output || [])
|
|
2143
1774
|
.filter((e) => e != null)
|
|
2144
1775
|
.map((entry) => {
|
|
2145
|
-
if (entry === null) {
|
|
2146
|
-
return null;
|
|
2147
|
-
}
|
|
2148
1776
|
return de_FraudsterSummary(entry, context);
|
|
2149
1777
|
});
|
|
2150
1778
|
return retVal;
|
|
2151
1779
|
};
|
|
2152
1780
|
const de_FraudsterSummary = (output, context) => {
|
|
2153
|
-
return {
|
|
2154
|
-
CreatedAt:
|
|
2155
|
-
DomainId: __expectString
|
|
2156
|
-
GeneratedFraudsterId: __expectString
|
|
2157
|
-
WatchlistIds:
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
const de_InputDataConfig = (output, context) => {
|
|
2161
|
-
return {
|
|
2162
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2163
|
-
};
|
|
2164
|
-
};
|
|
2165
|
-
const de_InternalServerException = (output, context) => {
|
|
2166
|
-
return {
|
|
2167
|
-
Message: __expectString(output.Message),
|
|
2168
|
-
};
|
|
2169
|
-
};
|
|
2170
|
-
const de_JobProgress = (output, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
PercentComplete: __expectInt32(output.PercentComplete),
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
const de_KnownFraudsterRisk = (output, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2178
|
-
RiskScore: __expectInt32(output.RiskScore),
|
|
2179
|
-
};
|
|
1781
|
+
return take(output, {
|
|
1782
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1783
|
+
DomainId: __expectString,
|
|
1784
|
+
GeneratedFraudsterId: __expectString,
|
|
1785
|
+
WatchlistIds: _json,
|
|
1786
|
+
});
|
|
2180
1787
|
};
|
|
2181
1788
|
const de_ListDomainsResponse = (output, context) => {
|
|
2182
|
-
return {
|
|
2183
|
-
DomainSummaries:
|
|
2184
|
-
NextToken: __expectString
|
|
2185
|
-
};
|
|
1789
|
+
return take(output, {
|
|
1790
|
+
DomainSummaries: (_) => de_DomainSummaries(_, context),
|
|
1791
|
+
NextToken: __expectString,
|
|
1792
|
+
});
|
|
2186
1793
|
};
|
|
2187
1794
|
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
2188
|
-
return {
|
|
2189
|
-
JobSummaries:
|
|
2190
|
-
NextToken: __expectString
|
|
2191
|
-
};
|
|
1795
|
+
return take(output, {
|
|
1796
|
+
JobSummaries: (_) => de_FraudsterRegistrationJobSummaries(_, context),
|
|
1797
|
+
NextToken: __expectString,
|
|
1798
|
+
});
|
|
2192
1799
|
};
|
|
2193
1800
|
const de_ListFraudstersResponse = (output, context) => {
|
|
2194
|
-
return {
|
|
2195
|
-
FraudsterSummaries:
|
|
2196
|
-
NextToken: __expectString
|
|
2197
|
-
};
|
|
1801
|
+
return take(output, {
|
|
1802
|
+
FraudsterSummaries: (_) => de_FraudsterSummaries(_, context),
|
|
1803
|
+
NextToken: __expectString,
|
|
1804
|
+
});
|
|
2198
1805
|
};
|
|
2199
1806
|
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
2200
|
-
return {
|
|
2201
|
-
JobSummaries:
|
|
2202
|
-
NextToken: __expectString
|
|
2203
|
-
};
|
|
1807
|
+
return take(output, {
|
|
1808
|
+
JobSummaries: (_) => de_SpeakerEnrollmentJobSummaries(_, context),
|
|
1809
|
+
NextToken: __expectString,
|
|
1810
|
+
});
|
|
2204
1811
|
};
|
|
2205
1812
|
const de_ListSpeakersResponse = (output, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
NextToken: __expectString
|
|
2208
|
-
SpeakerSummaries:
|
|
2209
|
-
};
|
|
2210
|
-
};
|
|
2211
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2212
|
-
return {
|
|
2213
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2214
|
-
};
|
|
1813
|
+
return take(output, {
|
|
1814
|
+
NextToken: __expectString,
|
|
1815
|
+
SpeakerSummaries: (_) => de_SpeakerSummaries(_, context),
|
|
1816
|
+
});
|
|
2215
1817
|
};
|
|
2216
1818
|
const de_ListWatchlistsResponse = (output, context) => {
|
|
2217
|
-
return {
|
|
2218
|
-
NextToken: __expectString
|
|
2219
|
-
WatchlistSummaries:
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const de_OptOutSpeakerResponse = (output, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
|
-
const de_OutputDataConfig = (output, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2230
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
const de_RegistrationConfig = (output, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
DuplicateRegistrationAction: __expectString(output.DuplicateRegistrationAction),
|
|
2236
|
-
FraudsterSimilarityThreshold: __expectInt32(output.FraudsterSimilarityThreshold),
|
|
2237
|
-
WatchlistIds: output.WatchlistIds != null ? de_RegistrationConfigWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2238
|
-
};
|
|
2239
|
-
};
|
|
2240
|
-
const de_RegistrationConfigWatchlistIds = (output, context) => {
|
|
2241
|
-
const retVal = (output || [])
|
|
2242
|
-
.filter((e) => e != null)
|
|
2243
|
-
.map((entry) => {
|
|
2244
|
-
if (entry === null) {
|
|
2245
|
-
return null;
|
|
2246
|
-
}
|
|
2247
|
-
return __expectString(entry);
|
|
1819
|
+
return take(output, {
|
|
1820
|
+
NextToken: __expectString,
|
|
1821
|
+
WatchlistSummaries: (_) => de_WatchlistSummaries(_, context),
|
|
2248
1822
|
});
|
|
2249
|
-
return retVal;
|
|
2250
1823
|
};
|
|
2251
|
-
const
|
|
2252
|
-
return {
|
|
2253
|
-
|
|
2254
|
-
ResourceType: __expectString(output.ResourceType),
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
const de_ResponseWatchlistIds = (output, context) => {
|
|
2258
|
-
const retVal = (output || [])
|
|
2259
|
-
.filter((e) => e != null)
|
|
2260
|
-
.map((entry) => {
|
|
2261
|
-
if (entry === null) {
|
|
2262
|
-
return null;
|
|
2263
|
-
}
|
|
2264
|
-
return __expectString(entry);
|
|
1824
|
+
const de_OptOutSpeakerResponse = (output, context) => {
|
|
1825
|
+
return take(output, {
|
|
1826
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
2265
1827
|
});
|
|
2266
|
-
return retVal;
|
|
2267
|
-
};
|
|
2268
|
-
const de_ServerSideEncryptionConfiguration = (output, context) => {
|
|
2269
|
-
return {
|
|
2270
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const de_ServerSideEncryptionUpdateDetails = (output, context) => {
|
|
2274
|
-
return {
|
|
2275
|
-
Message: __expectString(output.Message),
|
|
2276
|
-
OldKmsKeyId: __expectString(output.OldKmsKeyId),
|
|
2277
|
-
UpdateStatus: __expectString(output.UpdateStatus),
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2281
|
-
return {
|
|
2282
|
-
Message: __expectString(output.Message),
|
|
2283
|
-
};
|
|
2284
1828
|
};
|
|
2285
1829
|
const de_Speaker = (output, context) => {
|
|
2286
|
-
return {
|
|
2287
|
-
CreatedAt:
|
|
2288
|
-
CustomerSpeakerId: __expectString
|
|
2289
|
-
DomainId: __expectString
|
|
2290
|
-
GeneratedSpeakerId: __expectString
|
|
2291
|
-
LastAccessedAt:
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2296
|
-
};
|
|
1830
|
+
return take(output, {
|
|
1831
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1832
|
+
CustomerSpeakerId: __expectString,
|
|
1833
|
+
DomainId: __expectString,
|
|
1834
|
+
GeneratedSpeakerId: __expectString,
|
|
1835
|
+
LastAccessedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1836
|
+
Status: __expectString,
|
|
1837
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1838
|
+
});
|
|
2297
1839
|
};
|
|
2298
1840
|
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
2299
|
-
return {
|
|
2300
|
-
CreatedAt:
|
|
2301
|
-
DataAccessRoleArn: __expectString
|
|
2302
|
-
DomainId: __expectString
|
|
2303
|
-
EndedAt:
|
|
2304
|
-
EnrollmentConfig:
|
|
2305
|
-
FailureDetails:
|
|
2306
|
-
InputDataConfig:
|
|
2307
|
-
JobId: __expectString
|
|
2308
|
-
JobName: __expectString
|
|
2309
|
-
JobProgress:
|
|
2310
|
-
JobStatus: __expectString
|
|
2311
|
-
OutputDataConfig:
|
|
2312
|
-
};
|
|
1841
|
+
return take(output, {
|
|
1842
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1843
|
+
DataAccessRoleArn: __expectString,
|
|
1844
|
+
DomainId: __expectString,
|
|
1845
|
+
EndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1846
|
+
EnrollmentConfig: _json,
|
|
1847
|
+
FailureDetails: _json,
|
|
1848
|
+
InputDataConfig: _json,
|
|
1849
|
+
JobId: __expectString,
|
|
1850
|
+
JobName: __expectString,
|
|
1851
|
+
JobProgress: _json,
|
|
1852
|
+
JobStatus: __expectString,
|
|
1853
|
+
OutputDataConfig: _json,
|
|
1854
|
+
});
|
|
2313
1855
|
};
|
|
2314
1856
|
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
2315
1857
|
const retVal = (output || [])
|
|
2316
1858
|
.filter((e) => e != null)
|
|
2317
1859
|
.map((entry) => {
|
|
2318
|
-
if (entry === null) {
|
|
2319
|
-
return null;
|
|
2320
|
-
}
|
|
2321
1860
|
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
2322
1861
|
});
|
|
2323
1862
|
return retVal;
|
|
2324
1863
|
};
|
|
2325
1864
|
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
2326
|
-
return {
|
|
2327
|
-
CreatedAt:
|
|
2328
|
-
DomainId: __expectString
|
|
2329
|
-
EndedAt:
|
|
2330
|
-
FailureDetails:
|
|
2331
|
-
JobId: __expectString
|
|
2332
|
-
JobName: __expectString
|
|
2333
|
-
JobProgress:
|
|
2334
|
-
JobStatus: __expectString
|
|
2335
|
-
};
|
|
1865
|
+
return take(output, {
|
|
1866
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1867
|
+
DomainId: __expectString,
|
|
1868
|
+
EndedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1869
|
+
FailureDetails: _json,
|
|
1870
|
+
JobId: __expectString,
|
|
1871
|
+
JobName: __expectString,
|
|
1872
|
+
JobProgress: _json,
|
|
1873
|
+
JobStatus: __expectString,
|
|
1874
|
+
});
|
|
2336
1875
|
};
|
|
2337
1876
|
const de_SpeakerSummaries = (output, context) => {
|
|
2338
1877
|
const retVal = (output || [])
|
|
2339
1878
|
.filter((e) => e != null)
|
|
2340
1879
|
.map((entry) => {
|
|
2341
|
-
if (entry === null) {
|
|
2342
|
-
return null;
|
|
2343
|
-
}
|
|
2344
1880
|
return de_SpeakerSummary(entry, context);
|
|
2345
1881
|
});
|
|
2346
1882
|
return retVal;
|
|
2347
1883
|
};
|
|
2348
1884
|
const de_SpeakerSummary = (output, context) => {
|
|
2349
|
-
return {
|
|
2350
|
-
CreatedAt:
|
|
2351
|
-
CustomerSpeakerId: __expectString
|
|
2352
|
-
DomainId: __expectString
|
|
2353
|
-
GeneratedSpeakerId: __expectString
|
|
2354
|
-
LastAccessedAt:
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2359
|
-
};
|
|
1885
|
+
return take(output, {
|
|
1886
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1887
|
+
CustomerSpeakerId: __expectString,
|
|
1888
|
+
DomainId: __expectString,
|
|
1889
|
+
GeneratedSpeakerId: __expectString,
|
|
1890
|
+
LastAccessedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1891
|
+
Status: __expectString,
|
|
1892
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1893
|
+
});
|
|
2360
1894
|
};
|
|
2361
1895
|
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
2362
|
-
return {
|
|
2363
|
-
Job:
|
|
2364
|
-
};
|
|
1896
|
+
return take(output, {
|
|
1897
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1898
|
+
});
|
|
2365
1899
|
};
|
|
2366
1900
|
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2367
|
-
return {
|
|
2368
|
-
Job:
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
const de_Tag = (output, context) => {
|
|
2372
|
-
return {
|
|
2373
|
-
Key: __expectString(output.Key),
|
|
2374
|
-
Value: __expectString(output.Value),
|
|
2375
|
-
};
|
|
2376
|
-
};
|
|
2377
|
-
const de_TagList = (output, context) => {
|
|
2378
|
-
const retVal = (output || [])
|
|
2379
|
-
.filter((e) => e != null)
|
|
2380
|
-
.map((entry) => {
|
|
2381
|
-
if (entry === null) {
|
|
2382
|
-
return null;
|
|
2383
|
-
}
|
|
2384
|
-
return de_Tag(entry, context);
|
|
1901
|
+
return take(output, {
|
|
1902
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
2385
1903
|
});
|
|
2386
|
-
return retVal;
|
|
2387
|
-
};
|
|
2388
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2389
|
-
return {};
|
|
2390
|
-
};
|
|
2391
|
-
const de_ThrottlingException = (output, context) => {
|
|
2392
|
-
return {
|
|
2393
|
-
Message: __expectString(output.Message),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2397
|
-
return {};
|
|
2398
1904
|
};
|
|
2399
1905
|
const de_UpdateDomainResponse = (output, context) => {
|
|
2400
|
-
return {
|
|
2401
|
-
Domain:
|
|
2402
|
-
};
|
|
1906
|
+
return take(output, {
|
|
1907
|
+
Domain: (_) => de_Domain(_, context),
|
|
1908
|
+
});
|
|
2403
1909
|
};
|
|
2404
1910
|
const de_UpdateWatchlistResponse = (output, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
Watchlist:
|
|
2407
|
-
};
|
|
2408
|
-
};
|
|
2409
|
-
const de_ValidationException = (output, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
Message: __expectString(output.Message),
|
|
2412
|
-
};
|
|
2413
|
-
};
|
|
2414
|
-
const de_VoiceSpoofingRisk = (output, context) => {
|
|
2415
|
-
return {
|
|
2416
|
-
RiskScore: __expectInt32(output.RiskScore),
|
|
2417
|
-
};
|
|
1911
|
+
return take(output, {
|
|
1912
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1913
|
+
});
|
|
2418
1914
|
};
|
|
2419
1915
|
const de_Watchlist = (output, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
CreatedAt:
|
|
2422
|
-
DefaultWatchlist: __expectBoolean
|
|
2423
|
-
Description: __expectString
|
|
2424
|
-
DomainId: __expectString
|
|
2425
|
-
Name: __expectString
|
|
2426
|
-
UpdatedAt:
|
|
2427
|
-
WatchlistId: __expectString
|
|
2428
|
-
};
|
|
2429
|
-
};
|
|
2430
|
-
const de_WatchlistDetails = (output, context) => {
|
|
2431
|
-
return {
|
|
2432
|
-
DefaultWatchlistId: __expectString(output.DefaultWatchlistId),
|
|
2433
|
-
};
|
|
1916
|
+
return take(output, {
|
|
1917
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1918
|
+
DefaultWatchlist: __expectBoolean,
|
|
1919
|
+
Description: __expectString,
|
|
1920
|
+
DomainId: __expectString,
|
|
1921
|
+
Name: __expectString,
|
|
1922
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1923
|
+
WatchlistId: __expectString,
|
|
1924
|
+
});
|
|
2434
1925
|
};
|
|
2435
1926
|
const de_WatchlistSummaries = (output, context) => {
|
|
2436
1927
|
const retVal = (output || [])
|
|
2437
1928
|
.filter((e) => e != null)
|
|
2438
1929
|
.map((entry) => {
|
|
2439
|
-
if (entry === null) {
|
|
2440
|
-
return null;
|
|
2441
|
-
}
|
|
2442
1930
|
return de_WatchlistSummary(entry, context);
|
|
2443
1931
|
});
|
|
2444
1932
|
return retVal;
|
|
2445
1933
|
};
|
|
2446
1934
|
const de_WatchlistSummary = (output, context) => {
|
|
2447
|
-
return {
|
|
2448
|
-
CreatedAt:
|
|
2449
|
-
DefaultWatchlist: __expectBoolean
|
|
2450
|
-
Description: __expectString
|
|
2451
|
-
DomainId: __expectString
|
|
2452
|
-
Name: __expectString
|
|
2453
|
-
UpdatedAt:
|
|
2454
|
-
WatchlistId: __expectString
|
|
2455
|
-
};
|
|
1935
|
+
return take(output, {
|
|
1936
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1937
|
+
DefaultWatchlist: __expectBoolean,
|
|
1938
|
+
Description: __expectString,
|
|
1939
|
+
DomainId: __expectString,
|
|
1940
|
+
Name: __expectString,
|
|
1941
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1942
|
+
WatchlistId: __expectString,
|
|
1943
|
+
});
|
|
2456
1944
|
};
|
|
2457
1945
|
const deserializeMetadata = (output) => ({
|
|
2458
1946
|
httpStatusCode: output.statusCode,
|
|
@@ -2467,6 +1955,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2467
1955
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2468
1956
|
};
|
|
2469
1957
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1958
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2470
1959
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2471
1960
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2472
1961
|
const contents = {
|