@aws-sdk/client-voice-id 3.310.0 → 3.315.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/protocols/Aws_json1_0.js +370 -962
- package/dist-es/protocols/Aws_json1_0.js +371 -963
- package/package.json +6 -6
|
@@ -1,267 +1,180 @@
|
|
|
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
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.0",
|
|
9
|
-
"x-amz-target": "VoiceID.AssociateFraudster",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("AssociateFraudster");
|
|
11
8
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
9
|
+
body = JSON.stringify(_json(input));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_CreateDomainCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.0",
|
|
18
|
-
"x-amz-target": "VoiceID.CreateDomain",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("CreateDomain");
|
|
20
14
|
let body;
|
|
21
15
|
body = JSON.stringify(se_CreateDomainRequest(input, context));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_CreateWatchlistCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.0",
|
|
27
|
-
"x-amz-target": "VoiceID.CreateWatchlist",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("CreateWatchlist");
|
|
29
20
|
let body;
|
|
30
21
|
body = JSON.stringify(se_CreateWatchlistRequest(input, context));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_DeleteDomainCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.0",
|
|
36
|
-
"x-amz-target": "VoiceID.DeleteDomain",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("DeleteDomain");
|
|
38
26
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify(_json(input));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_DeleteFraudsterCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.0",
|
|
45
|
-
"x-amz-target": "VoiceID.DeleteFraudster",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteFraudster");
|
|
47
32
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_DeleteSpeakerCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.0",
|
|
54
|
-
"x-amz-target": "VoiceID.DeleteSpeaker",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteSpeaker");
|
|
56
38
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_DeleteWatchlistCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "VoiceID.DeleteWatchlist",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("DeleteWatchlist");
|
|
65
44
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_DescribeDomainCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "VoiceID.DescribeDomain",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("DescribeDomain");
|
|
74
50
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
51
|
+
body = JSON.stringify(_json(input));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
53
|
};
|
|
78
54
|
export const se_DescribeFraudsterCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.0",
|
|
81
|
-
"x-amz-target": "VoiceID.DescribeFraudster",
|
|
82
|
-
};
|
|
55
|
+
const headers = sharedHeaders("DescribeFraudster");
|
|
83
56
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(_json(input));
|
|
85
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
59
|
};
|
|
87
60
|
export const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
88
|
-
const headers =
|
|
89
|
-
"content-type": "application/x-amz-json-1.0",
|
|
90
|
-
"x-amz-target": "VoiceID.DescribeFraudsterRegistrationJob",
|
|
91
|
-
};
|
|
61
|
+
const headers = sharedHeaders("DescribeFraudsterRegistrationJob");
|
|
92
62
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
94
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
65
|
};
|
|
96
66
|
export const se_DescribeSpeakerCommand = async (input, context) => {
|
|
97
|
-
const headers =
|
|
98
|
-
"content-type": "application/x-amz-json-1.0",
|
|
99
|
-
"x-amz-target": "VoiceID.DescribeSpeaker",
|
|
100
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DescribeSpeaker");
|
|
101
68
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
103
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
71
|
};
|
|
105
72
|
export const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
106
|
-
const headers =
|
|
107
|
-
"content-type": "application/x-amz-json-1.0",
|
|
108
|
-
"x-amz-target": "VoiceID.DescribeSpeakerEnrollmentJob",
|
|
109
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeSpeakerEnrollmentJob");
|
|
110
74
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
112
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
77
|
};
|
|
114
78
|
export const se_DescribeWatchlistCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-amz-json-1.0",
|
|
117
|
-
"x-amz-target": "VoiceID.DescribeWatchlist",
|
|
118
|
-
};
|
|
79
|
+
const headers = sharedHeaders("DescribeWatchlist");
|
|
119
80
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
121
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
83
|
};
|
|
123
84
|
export const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.0",
|
|
126
|
-
"x-amz-target": "VoiceID.DisassociateFraudster",
|
|
127
|
-
};
|
|
85
|
+
const headers = sharedHeaders("DisassociateFraudster");
|
|
128
86
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
130
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
89
|
};
|
|
132
90
|
export const se_EvaluateSessionCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.0",
|
|
135
|
-
"x-amz-target": "VoiceID.EvaluateSession",
|
|
136
|
-
};
|
|
91
|
+
const headers = sharedHeaders("EvaluateSession");
|
|
137
92
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(_json(input));
|
|
139
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
95
|
};
|
|
141
96
|
export const se_ListDomainsCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.0",
|
|
144
|
-
"x-amz-target": "VoiceID.ListDomains",
|
|
145
|
-
};
|
|
97
|
+
const headers = sharedHeaders("ListDomains");
|
|
146
98
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
99
|
+
body = JSON.stringify(_json(input));
|
|
148
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
101
|
};
|
|
150
102
|
export const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.0",
|
|
153
|
-
"x-amz-target": "VoiceID.ListFraudsterRegistrationJobs",
|
|
154
|
-
};
|
|
103
|
+
const headers = sharedHeaders("ListFraudsterRegistrationJobs");
|
|
155
104
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(_json(input));
|
|
157
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
107
|
};
|
|
159
108
|
export const se_ListFraudstersCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.0",
|
|
162
|
-
"x-amz-target": "VoiceID.ListFraudsters",
|
|
163
|
-
};
|
|
109
|
+
const headers = sharedHeaders("ListFraudsters");
|
|
164
110
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
166
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
113
|
};
|
|
168
114
|
export const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.0",
|
|
171
|
-
"x-amz-target": "VoiceID.ListSpeakerEnrollmentJobs",
|
|
172
|
-
};
|
|
115
|
+
const headers = sharedHeaders("ListSpeakerEnrollmentJobs");
|
|
173
116
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify(_json(input));
|
|
175
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
119
|
};
|
|
177
120
|
export const se_ListSpeakersCommand = async (input, context) => {
|
|
178
|
-
const headers =
|
|
179
|
-
"content-type": "application/x-amz-json-1.0",
|
|
180
|
-
"x-amz-target": "VoiceID.ListSpeakers",
|
|
181
|
-
};
|
|
121
|
+
const headers = sharedHeaders("ListSpeakers");
|
|
182
122
|
let body;
|
|
183
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify(_json(input));
|
|
184
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
125
|
};
|
|
186
126
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
187
|
-
const headers =
|
|
188
|
-
"content-type": "application/x-amz-json-1.0",
|
|
189
|
-
"x-amz-target": "VoiceID.ListTagsForResource",
|
|
190
|
-
};
|
|
127
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
191
128
|
let body;
|
|
192
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(_json(input));
|
|
193
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
131
|
};
|
|
195
132
|
export const se_ListWatchlistsCommand = async (input, context) => {
|
|
196
|
-
const headers =
|
|
197
|
-
"content-type": "application/x-amz-json-1.0",
|
|
198
|
-
"x-amz-target": "VoiceID.ListWatchlists",
|
|
199
|
-
};
|
|
133
|
+
const headers = sharedHeaders("ListWatchlists");
|
|
200
134
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(_json(input));
|
|
202
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
137
|
};
|
|
204
138
|
export const se_OptOutSpeakerCommand = async (input, context) => {
|
|
205
|
-
const headers =
|
|
206
|
-
"content-type": "application/x-amz-json-1.0",
|
|
207
|
-
"x-amz-target": "VoiceID.OptOutSpeaker",
|
|
208
|
-
};
|
|
139
|
+
const headers = sharedHeaders("OptOutSpeaker");
|
|
209
140
|
let body;
|
|
210
|
-
body = JSON.stringify(
|
|
141
|
+
body = JSON.stringify(_json(input));
|
|
211
142
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
143
|
};
|
|
213
144
|
export const se_StartFraudsterRegistrationJobCommand = async (input, context) => {
|
|
214
|
-
const headers =
|
|
215
|
-
"content-type": "application/x-amz-json-1.0",
|
|
216
|
-
"x-amz-target": "VoiceID.StartFraudsterRegistrationJob",
|
|
217
|
-
};
|
|
145
|
+
const headers = sharedHeaders("StartFraudsterRegistrationJob");
|
|
218
146
|
let body;
|
|
219
147
|
body = JSON.stringify(se_StartFraudsterRegistrationJobRequest(input, context));
|
|
220
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
149
|
};
|
|
222
150
|
export const se_StartSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-amz-json-1.0",
|
|
225
|
-
"x-amz-target": "VoiceID.StartSpeakerEnrollmentJob",
|
|
226
|
-
};
|
|
151
|
+
const headers = sharedHeaders("StartSpeakerEnrollmentJob");
|
|
227
152
|
let body;
|
|
228
153
|
body = JSON.stringify(se_StartSpeakerEnrollmentJobRequest(input, context));
|
|
229
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
155
|
};
|
|
231
156
|
export const se_TagResourceCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-amz-json-1.0",
|
|
234
|
-
"x-amz-target": "VoiceID.TagResource",
|
|
235
|
-
};
|
|
157
|
+
const headers = sharedHeaders("TagResource");
|
|
236
158
|
let body;
|
|
237
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify(_json(input));
|
|
238
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
161
|
};
|
|
240
162
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.0",
|
|
243
|
-
"x-amz-target": "VoiceID.UntagResource",
|
|
244
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UntagResource");
|
|
245
164
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(_json(input));
|
|
247
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
167
|
};
|
|
249
168
|
export const se_UpdateDomainCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.0",
|
|
252
|
-
"x-amz-target": "VoiceID.UpdateDomain",
|
|
253
|
-
};
|
|
169
|
+
const headers = sharedHeaders("UpdateDomain");
|
|
254
170
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
171
|
+
body = JSON.stringify(_json(input));
|
|
256
172
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
173
|
};
|
|
258
174
|
export const se_UpdateWatchlistCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-amz-json-1.0",
|
|
261
|
-
"x-amz-target": "VoiceID.UpdateWatchlist",
|
|
262
|
-
};
|
|
175
|
+
const headers = sharedHeaders("UpdateWatchlist");
|
|
263
176
|
let body;
|
|
264
|
-
body = JSON.stringify(
|
|
177
|
+
body = JSON.stringify(_json(input));
|
|
265
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
179
|
};
|
|
267
180
|
export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
@@ -275,7 +188,7 @@ export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
|
275
188
|
$metadata: deserializeMetadata(output),
|
|
276
189
|
...contents,
|
|
277
190
|
};
|
|
278
|
-
return
|
|
191
|
+
return response;
|
|
279
192
|
};
|
|
280
193
|
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
281
194
|
const parsedOutput = {
|
|
@@ -307,10 +220,9 @@ const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
|
307
220
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
308
221
|
default:
|
|
309
222
|
const parsedBody = parsedOutput.body;
|
|
310
|
-
throwDefaultError({
|
|
223
|
+
return throwDefaultError({
|
|
311
224
|
output,
|
|
312
225
|
parsedBody,
|
|
313
|
-
exceptionCtor: __BaseException,
|
|
314
226
|
errorCode,
|
|
315
227
|
});
|
|
316
228
|
}
|
|
@@ -326,7 +238,7 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
326
238
|
$metadata: deserializeMetadata(output),
|
|
327
239
|
...contents,
|
|
328
240
|
};
|
|
329
|
-
return
|
|
241
|
+
return response;
|
|
330
242
|
};
|
|
331
243
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
332
244
|
const parsedOutput = {
|
|
@@ -358,10 +270,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
358
270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
271
|
default:
|
|
360
272
|
const parsedBody = parsedOutput.body;
|
|
361
|
-
throwDefaultError({
|
|
273
|
+
return throwDefaultError({
|
|
362
274
|
output,
|
|
363
275
|
parsedBody,
|
|
364
|
-
exceptionCtor: __BaseException,
|
|
365
276
|
errorCode,
|
|
366
277
|
});
|
|
367
278
|
}
|
|
@@ -377,7 +288,7 @@ export const de_CreateWatchlistCommand = async (output, context) => {
|
|
|
377
288
|
$metadata: deserializeMetadata(output),
|
|
378
289
|
...contents,
|
|
379
290
|
};
|
|
380
|
-
return
|
|
291
|
+
return response;
|
|
381
292
|
};
|
|
382
293
|
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
383
294
|
const parsedOutput = {
|
|
@@ -409,10 +320,9 @@ const de_CreateWatchlistCommandError = async (output, context) => {
|
|
|
409
320
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
410
321
|
default:
|
|
411
322
|
const parsedBody = parsedOutput.body;
|
|
412
|
-
throwDefaultError({
|
|
323
|
+
return throwDefaultError({
|
|
413
324
|
output,
|
|
414
325
|
parsedBody,
|
|
415
|
-
exceptionCtor: __BaseException,
|
|
416
326
|
errorCode,
|
|
417
327
|
});
|
|
418
328
|
}
|
|
@@ -425,7 +335,7 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
425
335
|
const response = {
|
|
426
336
|
$metadata: deserializeMetadata(output),
|
|
427
337
|
};
|
|
428
|
-
return
|
|
338
|
+
return response;
|
|
429
339
|
};
|
|
430
340
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
431
341
|
const parsedOutput = {
|
|
@@ -454,10 +364,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
454
364
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
455
365
|
default:
|
|
456
366
|
const parsedBody = parsedOutput.body;
|
|
457
|
-
throwDefaultError({
|
|
367
|
+
return throwDefaultError({
|
|
458
368
|
output,
|
|
459
369
|
parsedBody,
|
|
460
|
-
exceptionCtor: __BaseException,
|
|
461
370
|
errorCode,
|
|
462
371
|
});
|
|
463
372
|
}
|
|
@@ -470,7 +379,7 @@ export const de_DeleteFraudsterCommand = async (output, context) => {
|
|
|
470
379
|
const response = {
|
|
471
380
|
$metadata: deserializeMetadata(output),
|
|
472
381
|
};
|
|
473
|
-
return
|
|
382
|
+
return response;
|
|
474
383
|
};
|
|
475
384
|
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
476
385
|
const parsedOutput = {
|
|
@@ -499,10 +408,9 @@ const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
|
499
408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
409
|
default:
|
|
501
410
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
throwDefaultError({
|
|
411
|
+
return throwDefaultError({
|
|
503
412
|
output,
|
|
504
413
|
parsedBody,
|
|
505
|
-
exceptionCtor: __BaseException,
|
|
506
414
|
errorCode,
|
|
507
415
|
});
|
|
508
416
|
}
|
|
@@ -515,7 +423,7 @@ export const de_DeleteSpeakerCommand = async (output, context) => {
|
|
|
515
423
|
const response = {
|
|
516
424
|
$metadata: deserializeMetadata(output),
|
|
517
425
|
};
|
|
518
|
-
return
|
|
426
|
+
return response;
|
|
519
427
|
};
|
|
520
428
|
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
521
429
|
const parsedOutput = {
|
|
@@ -544,10 +452,9 @@ const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
|
544
452
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
545
453
|
default:
|
|
546
454
|
const parsedBody = parsedOutput.body;
|
|
547
|
-
throwDefaultError({
|
|
455
|
+
return throwDefaultError({
|
|
548
456
|
output,
|
|
549
457
|
parsedBody,
|
|
550
|
-
exceptionCtor: __BaseException,
|
|
551
458
|
errorCode,
|
|
552
459
|
});
|
|
553
460
|
}
|
|
@@ -560,7 +467,7 @@ export const de_DeleteWatchlistCommand = async (output, context) => {
|
|
|
560
467
|
const response = {
|
|
561
468
|
$metadata: deserializeMetadata(output),
|
|
562
469
|
};
|
|
563
|
-
return
|
|
470
|
+
return response;
|
|
564
471
|
};
|
|
565
472
|
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
566
473
|
const parsedOutput = {
|
|
@@ -589,10 +496,9 @@ const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
|
589
496
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
497
|
default:
|
|
591
498
|
const parsedBody = parsedOutput.body;
|
|
592
|
-
throwDefaultError({
|
|
499
|
+
return throwDefaultError({
|
|
593
500
|
output,
|
|
594
501
|
parsedBody,
|
|
595
|
-
exceptionCtor: __BaseException,
|
|
596
502
|
errorCode,
|
|
597
503
|
});
|
|
598
504
|
}
|
|
@@ -608,7 +514,7 @@ export const de_DescribeDomainCommand = async (output, context) => {
|
|
|
608
514
|
$metadata: deserializeMetadata(output),
|
|
609
515
|
...contents,
|
|
610
516
|
};
|
|
611
|
-
return
|
|
517
|
+
return response;
|
|
612
518
|
};
|
|
613
519
|
const de_DescribeDomainCommandError = async (output, context) => {
|
|
614
520
|
const parsedOutput = {
|
|
@@ -634,10 +540,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
634
540
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
541
|
default:
|
|
636
542
|
const parsedBody = parsedOutput.body;
|
|
637
|
-
throwDefaultError({
|
|
543
|
+
return throwDefaultError({
|
|
638
544
|
output,
|
|
639
545
|
parsedBody,
|
|
640
|
-
exceptionCtor: __BaseException,
|
|
641
546
|
errorCode,
|
|
642
547
|
});
|
|
643
548
|
}
|
|
@@ -653,7 +558,7 @@ export const de_DescribeFraudsterCommand = async (output, context) => {
|
|
|
653
558
|
$metadata: deserializeMetadata(output),
|
|
654
559
|
...contents,
|
|
655
560
|
};
|
|
656
|
-
return
|
|
561
|
+
return response;
|
|
657
562
|
};
|
|
658
563
|
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
659
564
|
const parsedOutput = {
|
|
@@ -679,10 +584,9 @@ const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
|
679
584
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
585
|
default:
|
|
681
586
|
const parsedBody = parsedOutput.body;
|
|
682
|
-
throwDefaultError({
|
|
587
|
+
return throwDefaultError({
|
|
683
588
|
output,
|
|
684
589
|
parsedBody,
|
|
685
|
-
exceptionCtor: __BaseException,
|
|
686
590
|
errorCode,
|
|
687
591
|
});
|
|
688
592
|
}
|
|
@@ -698,7 +602,7 @@ export const de_DescribeFraudsterRegistrationJobCommand = async (output, context
|
|
|
698
602
|
$metadata: deserializeMetadata(output),
|
|
699
603
|
...contents,
|
|
700
604
|
};
|
|
701
|
-
return
|
|
605
|
+
return response;
|
|
702
606
|
};
|
|
703
607
|
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
704
608
|
const parsedOutput = {
|
|
@@ -724,10 +628,9 @@ const de_DescribeFraudsterRegistrationJobCommandError = async (output, context)
|
|
|
724
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
629
|
default:
|
|
726
630
|
const parsedBody = parsedOutput.body;
|
|
727
|
-
throwDefaultError({
|
|
631
|
+
return throwDefaultError({
|
|
728
632
|
output,
|
|
729
633
|
parsedBody,
|
|
730
|
-
exceptionCtor: __BaseException,
|
|
731
634
|
errorCode,
|
|
732
635
|
});
|
|
733
636
|
}
|
|
@@ -743,7 +646,7 @@ export const de_DescribeSpeakerCommand = async (output, context) => {
|
|
|
743
646
|
$metadata: deserializeMetadata(output),
|
|
744
647
|
...contents,
|
|
745
648
|
};
|
|
746
|
-
return
|
|
649
|
+
return response;
|
|
747
650
|
};
|
|
748
651
|
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
749
652
|
const parsedOutput = {
|
|
@@ -769,10 +672,9 @@ const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
|
769
672
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
673
|
default:
|
|
771
674
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
throwDefaultError({
|
|
675
|
+
return throwDefaultError({
|
|
773
676
|
output,
|
|
774
677
|
parsedBody,
|
|
775
|
-
exceptionCtor: __BaseException,
|
|
776
678
|
errorCode,
|
|
777
679
|
});
|
|
778
680
|
}
|
|
@@ -788,7 +690,7 @@ export const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) =>
|
|
|
788
690
|
$metadata: deserializeMetadata(output),
|
|
789
691
|
...contents,
|
|
790
692
|
};
|
|
791
|
-
return
|
|
693
|
+
return response;
|
|
792
694
|
};
|
|
793
695
|
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
794
696
|
const parsedOutput = {
|
|
@@ -814,10 +716,9 @@ const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
814
716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
815
717
|
default:
|
|
816
718
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
throwDefaultError({
|
|
719
|
+
return throwDefaultError({
|
|
818
720
|
output,
|
|
819
721
|
parsedBody,
|
|
820
|
-
exceptionCtor: __BaseException,
|
|
821
722
|
errorCode,
|
|
822
723
|
});
|
|
823
724
|
}
|
|
@@ -833,7 +734,7 @@ export const de_DescribeWatchlistCommand = async (output, context) => {
|
|
|
833
734
|
$metadata: deserializeMetadata(output),
|
|
834
735
|
...contents,
|
|
835
736
|
};
|
|
836
|
-
return
|
|
737
|
+
return response;
|
|
837
738
|
};
|
|
838
739
|
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
839
740
|
const parsedOutput = {
|
|
@@ -859,10 +760,9 @@ const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
|
859
760
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
761
|
default:
|
|
861
762
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
throwDefaultError({
|
|
763
|
+
return throwDefaultError({
|
|
863
764
|
output,
|
|
864
765
|
parsedBody,
|
|
865
|
-
exceptionCtor: __BaseException,
|
|
866
766
|
errorCode,
|
|
867
767
|
});
|
|
868
768
|
}
|
|
@@ -878,7 +778,7 @@ export const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
|
878
778
|
$metadata: deserializeMetadata(output),
|
|
879
779
|
...contents,
|
|
880
780
|
};
|
|
881
|
-
return
|
|
781
|
+
return response;
|
|
882
782
|
};
|
|
883
783
|
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
884
784
|
const parsedOutput = {
|
|
@@ -907,10 +807,9 @@ const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
|
907
807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
808
|
default:
|
|
909
809
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
throwDefaultError({
|
|
810
|
+
return throwDefaultError({
|
|
911
811
|
output,
|
|
912
812
|
parsedBody,
|
|
913
|
-
exceptionCtor: __BaseException,
|
|
914
813
|
errorCode,
|
|
915
814
|
});
|
|
916
815
|
}
|
|
@@ -926,7 +825,7 @@ export const de_EvaluateSessionCommand = async (output, context) => {
|
|
|
926
825
|
$metadata: deserializeMetadata(output),
|
|
927
826
|
...contents,
|
|
928
827
|
};
|
|
929
|
-
return
|
|
828
|
+
return response;
|
|
930
829
|
};
|
|
931
830
|
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
932
831
|
const parsedOutput = {
|
|
@@ -955,10 +854,9 @@ const de_EvaluateSessionCommandError = async (output, context) => {
|
|
|
955
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
855
|
default:
|
|
957
856
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
throwDefaultError({
|
|
857
|
+
return throwDefaultError({
|
|
959
858
|
output,
|
|
960
859
|
parsedBody,
|
|
961
|
-
exceptionCtor: __BaseException,
|
|
962
860
|
errorCode,
|
|
963
861
|
});
|
|
964
862
|
}
|
|
@@ -974,7 +872,7 @@ export const de_ListDomainsCommand = async (output, context) => {
|
|
|
974
872
|
$metadata: deserializeMetadata(output),
|
|
975
873
|
...contents,
|
|
976
874
|
};
|
|
977
|
-
return
|
|
875
|
+
return response;
|
|
978
876
|
};
|
|
979
877
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
980
878
|
const parsedOutput = {
|
|
@@ -997,10 +895,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
997
895
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
998
896
|
default:
|
|
999
897
|
const parsedBody = parsedOutput.body;
|
|
1000
|
-
throwDefaultError({
|
|
898
|
+
return throwDefaultError({
|
|
1001
899
|
output,
|
|
1002
900
|
parsedBody,
|
|
1003
|
-
exceptionCtor: __BaseException,
|
|
1004
901
|
errorCode,
|
|
1005
902
|
});
|
|
1006
903
|
}
|
|
@@ -1016,7 +913,7 @@ export const de_ListFraudsterRegistrationJobsCommand = async (output, context) =
|
|
|
1016
913
|
$metadata: deserializeMetadata(output),
|
|
1017
914
|
...contents,
|
|
1018
915
|
};
|
|
1019
|
-
return
|
|
916
|
+
return response;
|
|
1020
917
|
};
|
|
1021
918
|
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
1022
919
|
const parsedOutput = {
|
|
@@ -1042,10 +939,9 @@ const de_ListFraudsterRegistrationJobsCommandError = async (output, context) =>
|
|
|
1042
939
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1043
940
|
default:
|
|
1044
941
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
throwDefaultError({
|
|
942
|
+
return throwDefaultError({
|
|
1046
943
|
output,
|
|
1047
944
|
parsedBody,
|
|
1048
|
-
exceptionCtor: __BaseException,
|
|
1049
945
|
errorCode,
|
|
1050
946
|
});
|
|
1051
947
|
}
|
|
@@ -1061,7 +957,7 @@ export const de_ListFraudstersCommand = async (output, context) => {
|
|
|
1061
957
|
$metadata: deserializeMetadata(output),
|
|
1062
958
|
...contents,
|
|
1063
959
|
};
|
|
1064
|
-
return
|
|
960
|
+
return response;
|
|
1065
961
|
};
|
|
1066
962
|
const de_ListFraudstersCommandError = async (output, context) => {
|
|
1067
963
|
const parsedOutput = {
|
|
@@ -1087,10 +983,9 @@ const de_ListFraudstersCommandError = async (output, context) => {
|
|
|
1087
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
984
|
default:
|
|
1089
985
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
throwDefaultError({
|
|
986
|
+
return throwDefaultError({
|
|
1091
987
|
output,
|
|
1092
988
|
parsedBody,
|
|
1093
|
-
exceptionCtor: __BaseException,
|
|
1094
989
|
errorCode,
|
|
1095
990
|
});
|
|
1096
991
|
}
|
|
@@ -1106,7 +1001,7 @@ export const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
|
1106
1001
|
$metadata: deserializeMetadata(output),
|
|
1107
1002
|
...contents,
|
|
1108
1003
|
};
|
|
1109
|
-
return
|
|
1004
|
+
return response;
|
|
1110
1005
|
};
|
|
1111
1006
|
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
1112
1007
|
const parsedOutput = {
|
|
@@ -1132,10 +1027,9 @@ const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
|
1132
1027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
1028
|
default:
|
|
1134
1029
|
const parsedBody = parsedOutput.body;
|
|
1135
|
-
throwDefaultError({
|
|
1030
|
+
return throwDefaultError({
|
|
1136
1031
|
output,
|
|
1137
1032
|
parsedBody,
|
|
1138
|
-
exceptionCtor: __BaseException,
|
|
1139
1033
|
errorCode,
|
|
1140
1034
|
});
|
|
1141
1035
|
}
|
|
@@ -1151,7 +1045,7 @@ export const de_ListSpeakersCommand = async (output, context) => {
|
|
|
1151
1045
|
$metadata: deserializeMetadata(output),
|
|
1152
1046
|
...contents,
|
|
1153
1047
|
};
|
|
1154
|
-
return
|
|
1048
|
+
return response;
|
|
1155
1049
|
};
|
|
1156
1050
|
const de_ListSpeakersCommandError = async (output, context) => {
|
|
1157
1051
|
const parsedOutput = {
|
|
@@ -1177,10 +1071,9 @@ const de_ListSpeakersCommandError = async (output, context) => {
|
|
|
1177
1071
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1178
1072
|
default:
|
|
1179
1073
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
throwDefaultError({
|
|
1074
|
+
return throwDefaultError({
|
|
1181
1075
|
output,
|
|
1182
1076
|
parsedBody,
|
|
1183
|
-
exceptionCtor: __BaseException,
|
|
1184
1077
|
errorCode,
|
|
1185
1078
|
});
|
|
1186
1079
|
}
|
|
@@ -1191,12 +1084,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1191
1084
|
}
|
|
1192
1085
|
const data = await parseBody(output.body, context);
|
|
1193
1086
|
let contents = {};
|
|
1194
|
-
contents =
|
|
1087
|
+
contents = _json(data);
|
|
1195
1088
|
const response = {
|
|
1196
1089
|
$metadata: deserializeMetadata(output),
|
|
1197
1090
|
...contents,
|
|
1198
1091
|
};
|
|
1199
|
-
return
|
|
1092
|
+
return response;
|
|
1200
1093
|
};
|
|
1201
1094
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1202
1095
|
const parsedOutput = {
|
|
@@ -1222,10 +1115,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1222
1115
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
1116
|
default:
|
|
1224
1117
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
throwDefaultError({
|
|
1118
|
+
return throwDefaultError({
|
|
1226
1119
|
output,
|
|
1227
1120
|
parsedBody,
|
|
1228
|
-
exceptionCtor: __BaseException,
|
|
1229
1121
|
errorCode,
|
|
1230
1122
|
});
|
|
1231
1123
|
}
|
|
@@ -1241,7 +1133,7 @@ export const de_ListWatchlistsCommand = async (output, context) => {
|
|
|
1241
1133
|
$metadata: deserializeMetadata(output),
|
|
1242
1134
|
...contents,
|
|
1243
1135
|
};
|
|
1244
|
-
return
|
|
1136
|
+
return response;
|
|
1245
1137
|
};
|
|
1246
1138
|
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
1247
1139
|
const parsedOutput = {
|
|
@@ -1267,10 +1159,9 @@ const de_ListWatchlistsCommandError = async (output, context) => {
|
|
|
1267
1159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
1160
|
default:
|
|
1269
1161
|
const parsedBody = parsedOutput.body;
|
|
1270
|
-
throwDefaultError({
|
|
1162
|
+
return throwDefaultError({
|
|
1271
1163
|
output,
|
|
1272
1164
|
parsedBody,
|
|
1273
|
-
exceptionCtor: __BaseException,
|
|
1274
1165
|
errorCode,
|
|
1275
1166
|
});
|
|
1276
1167
|
}
|
|
@@ -1286,7 +1177,7 @@ export const de_OptOutSpeakerCommand = async (output, context) => {
|
|
|
1286
1177
|
$metadata: deserializeMetadata(output),
|
|
1287
1178
|
...contents,
|
|
1288
1179
|
};
|
|
1289
|
-
return
|
|
1180
|
+
return response;
|
|
1290
1181
|
};
|
|
1291
1182
|
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
1292
1183
|
const parsedOutput = {
|
|
@@ -1318,10 +1209,9 @@ const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
|
1318
1209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1319
1210
|
default:
|
|
1320
1211
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1322
1213
|
output,
|
|
1323
1214
|
parsedBody,
|
|
1324
|
-
exceptionCtor: __BaseException,
|
|
1325
1215
|
errorCode,
|
|
1326
1216
|
});
|
|
1327
1217
|
}
|
|
@@ -1337,7 +1227,7 @@ export const de_StartFraudsterRegistrationJobCommand = async (output, context) =
|
|
|
1337
1227
|
$metadata: deserializeMetadata(output),
|
|
1338
1228
|
...contents,
|
|
1339
1229
|
};
|
|
1340
|
-
return
|
|
1230
|
+
return response;
|
|
1341
1231
|
};
|
|
1342
1232
|
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
1343
1233
|
const parsedOutput = {
|
|
@@ -1369,10 +1259,9 @@ const de_StartFraudsterRegistrationJobCommandError = async (output, context) =>
|
|
|
1369
1259
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1370
1260
|
default:
|
|
1371
1261
|
const parsedBody = parsedOutput.body;
|
|
1372
|
-
throwDefaultError({
|
|
1262
|
+
return throwDefaultError({
|
|
1373
1263
|
output,
|
|
1374
1264
|
parsedBody,
|
|
1375
|
-
exceptionCtor: __BaseException,
|
|
1376
1265
|
errorCode,
|
|
1377
1266
|
});
|
|
1378
1267
|
}
|
|
@@ -1388,7 +1277,7 @@ export const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
1388
1277
|
$metadata: deserializeMetadata(output),
|
|
1389
1278
|
...contents,
|
|
1390
1279
|
};
|
|
1391
|
-
return
|
|
1280
|
+
return response;
|
|
1392
1281
|
};
|
|
1393
1282
|
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
1394
1283
|
const parsedOutput = {
|
|
@@ -1420,10 +1309,9 @@ const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
1420
1309
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1421
1310
|
default:
|
|
1422
1311
|
const parsedBody = parsedOutput.body;
|
|
1423
|
-
throwDefaultError({
|
|
1312
|
+
return throwDefaultError({
|
|
1424
1313
|
output,
|
|
1425
1314
|
parsedBody,
|
|
1426
|
-
exceptionCtor: __BaseException,
|
|
1427
1315
|
errorCode,
|
|
1428
1316
|
});
|
|
1429
1317
|
}
|
|
@@ -1434,12 +1322,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1434
1322
|
}
|
|
1435
1323
|
const data = await parseBody(output.body, context);
|
|
1436
1324
|
let contents = {};
|
|
1437
|
-
contents =
|
|
1325
|
+
contents = _json(data);
|
|
1438
1326
|
const response = {
|
|
1439
1327
|
$metadata: deserializeMetadata(output),
|
|
1440
1328
|
...contents,
|
|
1441
1329
|
};
|
|
1442
|
-
return
|
|
1330
|
+
return response;
|
|
1443
1331
|
};
|
|
1444
1332
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1445
1333
|
const parsedOutput = {
|
|
@@ -1468,10 +1356,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1468
1356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
1357
|
default:
|
|
1470
1358
|
const parsedBody = parsedOutput.body;
|
|
1471
|
-
throwDefaultError({
|
|
1359
|
+
return throwDefaultError({
|
|
1472
1360
|
output,
|
|
1473
1361
|
parsedBody,
|
|
1474
|
-
exceptionCtor: __BaseException,
|
|
1475
1362
|
errorCode,
|
|
1476
1363
|
});
|
|
1477
1364
|
}
|
|
@@ -1482,12 +1369,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1482
1369
|
}
|
|
1483
1370
|
const data = await parseBody(output.body, context);
|
|
1484
1371
|
let contents = {};
|
|
1485
|
-
contents =
|
|
1372
|
+
contents = _json(data);
|
|
1486
1373
|
const response = {
|
|
1487
1374
|
$metadata: deserializeMetadata(output),
|
|
1488
1375
|
...contents,
|
|
1489
1376
|
};
|
|
1490
|
-
return
|
|
1377
|
+
return response;
|
|
1491
1378
|
};
|
|
1492
1379
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1493
1380
|
const parsedOutput = {
|
|
@@ -1516,10 +1403,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1516
1403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1517
1404
|
default:
|
|
1518
1405
|
const parsedBody = parsedOutput.body;
|
|
1519
|
-
throwDefaultError({
|
|
1406
|
+
return throwDefaultError({
|
|
1520
1407
|
output,
|
|
1521
1408
|
parsedBody,
|
|
1522
|
-
exceptionCtor: __BaseException,
|
|
1523
1409
|
errorCode,
|
|
1524
1410
|
});
|
|
1525
1411
|
}
|
|
@@ -1535,7 +1421,7 @@ export const de_UpdateDomainCommand = async (output, context) => {
|
|
|
1535
1421
|
$metadata: deserializeMetadata(output),
|
|
1536
1422
|
...contents,
|
|
1537
1423
|
};
|
|
1538
|
-
return
|
|
1424
|
+
return response;
|
|
1539
1425
|
};
|
|
1540
1426
|
const de_UpdateDomainCommandError = async (output, context) => {
|
|
1541
1427
|
const parsedOutput = {
|
|
@@ -1564,10 +1450,9 @@ const de_UpdateDomainCommandError = async (output, context) => {
|
|
|
1564
1450
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1565
1451
|
default:
|
|
1566
1452
|
const parsedBody = parsedOutput.body;
|
|
1567
|
-
throwDefaultError({
|
|
1453
|
+
return throwDefaultError({
|
|
1568
1454
|
output,
|
|
1569
1455
|
parsedBody,
|
|
1570
|
-
exceptionCtor: __BaseException,
|
|
1571
1456
|
errorCode,
|
|
1572
1457
|
});
|
|
1573
1458
|
}
|
|
@@ -1583,7 +1468,7 @@ export const de_UpdateWatchlistCommand = async (output, context) => {
|
|
|
1583
1468
|
$metadata: deserializeMetadata(output),
|
|
1584
1469
|
...contents,
|
|
1585
1470
|
};
|
|
1586
|
-
return
|
|
1471
|
+
return response;
|
|
1587
1472
|
};
|
|
1588
1473
|
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
1589
1474
|
const parsedOutput = {
|
|
@@ -1612,17 +1497,16 @@ const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
|
1612
1497
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
1498
|
default:
|
|
1614
1499
|
const parsedBody = parsedOutput.body;
|
|
1615
|
-
throwDefaultError({
|
|
1500
|
+
return throwDefaultError({
|
|
1616
1501
|
output,
|
|
1617
1502
|
parsedBody,
|
|
1618
|
-
exceptionCtor: __BaseException,
|
|
1619
1503
|
errorCode,
|
|
1620
1504
|
});
|
|
1621
1505
|
}
|
|
1622
1506
|
};
|
|
1623
1507
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1624
1508
|
const body = parsedOutput.body;
|
|
1625
|
-
const deserialized =
|
|
1509
|
+
const deserialized = _json(body);
|
|
1626
1510
|
const exception = new AccessDeniedException({
|
|
1627
1511
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1628
1512
|
...deserialized,
|
|
@@ -1631,7 +1515,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1631
1515
|
};
|
|
1632
1516
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1633
1517
|
const body = parsedOutput.body;
|
|
1634
|
-
const deserialized =
|
|
1518
|
+
const deserialized = _json(body);
|
|
1635
1519
|
const exception = new ConflictException({
|
|
1636
1520
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1637
1521
|
...deserialized,
|
|
@@ -1640,7 +1524,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1640
1524
|
};
|
|
1641
1525
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1642
1526
|
const body = parsedOutput.body;
|
|
1643
|
-
const deserialized =
|
|
1527
|
+
const deserialized = _json(body);
|
|
1644
1528
|
const exception = new InternalServerException({
|
|
1645
1529
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1646
1530
|
...deserialized,
|
|
@@ -1649,7 +1533,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1649
1533
|
};
|
|
1650
1534
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1651
1535
|
const body = parsedOutput.body;
|
|
1652
|
-
const deserialized =
|
|
1536
|
+
const deserialized = _json(body);
|
|
1653
1537
|
const exception = new ResourceNotFoundException({
|
|
1654
1538
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1655
1539
|
...deserialized,
|
|
@@ -1658,7 +1542,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1658
1542
|
};
|
|
1659
1543
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1660
1544
|
const body = parsedOutput.body;
|
|
1661
|
-
const deserialized =
|
|
1545
|
+
const deserialized = _json(body);
|
|
1662
1546
|
const exception = new ServiceQuotaExceededException({
|
|
1663
1547
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1664
1548
|
...deserialized,
|
|
@@ -1667,7 +1551,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1667
1551
|
};
|
|
1668
1552
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1669
1553
|
const body = parsedOutput.body;
|
|
1670
|
-
const deserialized =
|
|
1554
|
+
const deserialized = _json(body);
|
|
1671
1555
|
const exception = new ThrottlingException({
|
|
1672
1556
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1673
1557
|
...deserialized,
|
|
@@ -1676,870 +1560,387 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1676
1560
|
};
|
|
1677
1561
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1678
1562
|
const body = parsedOutput.body;
|
|
1679
|
-
const deserialized =
|
|
1563
|
+
const deserialized = _json(body);
|
|
1680
1564
|
const exception = new ValidationException({
|
|
1681
1565
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1682
1566
|
...deserialized,
|
|
1683
1567
|
});
|
|
1684
1568
|
return __decorateServiceException(exception, body);
|
|
1685
1569
|
};
|
|
1686
|
-
const se_AssociateFraudsterRequest = (input, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1689
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1690
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1691
|
-
};
|
|
1692
|
-
};
|
|
1693
1570
|
const se_CreateDomainRequest = (input, context) => {
|
|
1694
|
-
return {
|
|
1695
|
-
ClientToken:
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
}),
|
|
1701
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
const se_CreateWatchlistRequest = (input, context) => {
|
|
1705
|
-
return {
|
|
1706
|
-
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1707
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1708
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1709
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1710
|
-
};
|
|
1711
|
-
};
|
|
1712
|
-
const se_DeleteDomainRequest = (input, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
const se_DeleteFraudsterRequest = (input, context) => {
|
|
1718
|
-
return {
|
|
1719
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1720
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
const se_DeleteSpeakerRequest = (input, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1726
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
|
-
const se_DeleteWatchlistRequest = (input, context) => {
|
|
1730
|
-
return {
|
|
1731
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1732
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1733
|
-
};
|
|
1734
|
-
};
|
|
1735
|
-
const se_DescribeDomainRequest = (input, context) => {
|
|
1736
|
-
return {
|
|
1737
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1738
|
-
};
|
|
1739
|
-
};
|
|
1740
|
-
const se_DescribeFraudsterRegistrationJobRequest = (input, context) => {
|
|
1741
|
-
return {
|
|
1742
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1743
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
const se_DescribeFraudsterRequest = (input, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1749
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
const se_DescribeSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1753
|
-
return {
|
|
1754
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1755
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
const se_DescribeSpeakerRequest = (input, context) => {
|
|
1759
|
-
return {
|
|
1760
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1761
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1762
|
-
};
|
|
1763
|
-
};
|
|
1764
|
-
const se_DescribeWatchlistRequest = (input, context) => {
|
|
1765
|
-
return {
|
|
1766
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1767
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
const se_DisassociateFraudsterRequest = (input, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1773
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1774
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
|
-
const se_EnrollmentConfig = (input, context) => {
|
|
1778
|
-
return {
|
|
1779
|
-
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
1780
|
-
...(input.FraudDetectionConfig != null && {
|
|
1781
|
-
FraudDetectionConfig: se_EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1782
|
-
}),
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const se_EnrollmentJobFraudDetectionConfig = (input, context) => {
|
|
1786
|
-
return {
|
|
1787
|
-
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1788
|
-
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1789
|
-
...(input.WatchlistIds != null && {
|
|
1790
|
-
WatchlistIds: se_EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1791
|
-
}),
|
|
1792
|
-
};
|
|
1793
|
-
};
|
|
1794
|
-
const se_EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1795
|
-
return input
|
|
1796
|
-
.filter((e) => e != null)
|
|
1797
|
-
.map((entry) => {
|
|
1798
|
-
return entry;
|
|
1571
|
+
return take(input, {
|
|
1572
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1573
|
+
Description: [],
|
|
1574
|
+
Name: [],
|
|
1575
|
+
ServerSideEncryptionConfiguration: _json,
|
|
1576
|
+
Tags: _json,
|
|
1799
1577
|
});
|
|
1800
1578
|
};
|
|
1801
|
-
const
|
|
1802
|
-
return {
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
const se_InputDataConfig = (input, context) => {
|
|
1808
|
-
return {
|
|
1809
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
const se_ListDomainsRequest = (input, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1815
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1816
|
-
};
|
|
1817
|
-
};
|
|
1818
|
-
const se_ListFraudsterRegistrationJobsRequest = (input, context) => {
|
|
1819
|
-
return {
|
|
1820
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1821
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1822
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1823
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
|
-
const se_ListFraudstersRequest = (input, context) => {
|
|
1827
|
-
return {
|
|
1828
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1829
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1830
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1831
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1832
|
-
};
|
|
1833
|
-
};
|
|
1834
|
-
const se_ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1835
|
-
return {
|
|
1836
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1837
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1838
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1839
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
|
-
const se_ListSpeakersRequest = (input, context) => {
|
|
1843
|
-
return {
|
|
1844
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1845
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1846
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1847
|
-
};
|
|
1848
|
-
};
|
|
1849
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1850
|
-
return {
|
|
1851
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1852
|
-
};
|
|
1853
|
-
};
|
|
1854
|
-
const se_ListWatchlistsRequest = (input, context) => {
|
|
1855
|
-
return {
|
|
1856
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1857
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1858
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1859
|
-
};
|
|
1860
|
-
};
|
|
1861
|
-
const se_OptOutSpeakerRequest = (input, context) => {
|
|
1862
|
-
return {
|
|
1863
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1864
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1865
|
-
};
|
|
1866
|
-
};
|
|
1867
|
-
const se_OutputDataConfig = (input, context) => {
|
|
1868
|
-
return {
|
|
1869
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1870
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
const se_RegistrationConfig = (input, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
...(input.DuplicateRegistrationAction != null && {
|
|
1876
|
-
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
1877
|
-
}),
|
|
1878
|
-
...(input.FraudsterSimilarityThreshold != null && {
|
|
1879
|
-
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1880
|
-
}),
|
|
1881
|
-
...(input.WatchlistIds != null && { WatchlistIds: se_RegistrationConfigWatchlistIds(input.WatchlistIds, context) }),
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const se_RegistrationConfigWatchlistIds = (input, context) => {
|
|
1885
|
-
return input
|
|
1886
|
-
.filter((e) => e != null)
|
|
1887
|
-
.map((entry) => {
|
|
1888
|
-
return entry;
|
|
1579
|
+
const se_CreateWatchlistRequest = (input, context) => {
|
|
1580
|
+
return take(input, {
|
|
1581
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1582
|
+
Description: [],
|
|
1583
|
+
DomainId: [],
|
|
1584
|
+
Name: [],
|
|
1889
1585
|
});
|
|
1890
1586
|
};
|
|
1891
|
-
const se_ServerSideEncryptionConfiguration = (input, context) => {
|
|
1892
|
-
return {
|
|
1893
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1894
|
-
};
|
|
1895
|
-
};
|
|
1896
1587
|
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1897
|
-
return {
|
|
1898
|
-
ClientToken:
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
RegistrationConfig: se_RegistrationConfig(input.RegistrationConfig, context),
|
|
1906
|
-
}),
|
|
1907
|
-
};
|
|
1908
|
-
};
|
|
1909
|
-
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1910
|
-
return {
|
|
1911
|
-
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1912
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1913
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1914
|
-
...(input.EnrollmentConfig != null && { EnrollmentConfig: se_EnrollmentConfig(input.EnrollmentConfig, context) }),
|
|
1915
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1916
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1917
|
-
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1918
|
-
};
|
|
1919
|
-
};
|
|
1920
|
-
const se_Tag = (input, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1923
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const se_TagKeyList = (input, context) => {
|
|
1927
|
-
return input
|
|
1928
|
-
.filter((e) => e != null)
|
|
1929
|
-
.map((entry) => {
|
|
1930
|
-
return entry;
|
|
1588
|
+
return take(input, {
|
|
1589
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1590
|
+
DataAccessRoleArn: [],
|
|
1591
|
+
DomainId: [],
|
|
1592
|
+
InputDataConfig: _json,
|
|
1593
|
+
JobName: [],
|
|
1594
|
+
OutputDataConfig: _json,
|
|
1595
|
+
RegistrationConfig: _json,
|
|
1931
1596
|
});
|
|
1932
1597
|
};
|
|
1933
|
-
const
|
|
1934
|
-
return input
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1598
|
+
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1599
|
+
return take(input, {
|
|
1600
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1601
|
+
DataAccessRoleArn: [],
|
|
1602
|
+
DomainId: [],
|
|
1603
|
+
EnrollmentConfig: _json,
|
|
1604
|
+
InputDataConfig: _json,
|
|
1605
|
+
JobName: [],
|
|
1606
|
+
OutputDataConfig: _json,
|
|
1938
1607
|
});
|
|
1939
1608
|
};
|
|
1940
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1941
|
-
return {
|
|
1942
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1943
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1949
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1950
|
-
};
|
|
1951
|
-
};
|
|
1952
|
-
const se_UpdateDomainRequest = (input, context) => {
|
|
1953
|
-
return {
|
|
1954
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1955
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1956
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1957
|
-
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1958
|
-
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1959
|
-
}),
|
|
1960
|
-
};
|
|
1961
|
-
};
|
|
1962
|
-
const se_UpdateWatchlistRequest = (input, context) => {
|
|
1963
|
-
return {
|
|
1964
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1965
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1966
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1967
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
Message: __expectString(output.Message),
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
1609
|
const de_AssociateFraudsterResponse = (output, context) => {
|
|
1976
|
-
return {
|
|
1977
|
-
Fraudster:
|
|
1978
|
-
};
|
|
1979
|
-
};
|
|
1980
|
-
const de_AuthenticationConfiguration = (output, context) => {
|
|
1981
|
-
return {
|
|
1982
|
-
AcceptanceThreshold: __expectInt32(output.AcceptanceThreshold),
|
|
1983
|
-
};
|
|
1610
|
+
return take(output, {
|
|
1611
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1612
|
+
});
|
|
1984
1613
|
};
|
|
1985
1614
|
const de_AuthenticationResult = (output, context) => {
|
|
1986
|
-
return {
|
|
1987
|
-
AudioAggregationEndedAt:
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
Decision: __expectString(output.Decision),
|
|
1997
|
-
GeneratedSpeakerId: __expectString(output.GeneratedSpeakerId),
|
|
1998
|
-
Score: __expectInt32(output.Score),
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
const de_ConflictException = (output, context) => {
|
|
2002
|
-
return {
|
|
2003
|
-
ConflictType: __expectString(output.ConflictType),
|
|
2004
|
-
Message: __expectString(output.Message),
|
|
2005
|
-
};
|
|
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
|
+
});
|
|
2006
1625
|
};
|
|
2007
1626
|
const de_CreateDomainResponse = (output, context) => {
|
|
2008
|
-
return {
|
|
2009
|
-
Domain:
|
|
2010
|
-
};
|
|
1627
|
+
return take(output, {
|
|
1628
|
+
Domain: (_) => de_Domain(_, context),
|
|
1629
|
+
});
|
|
2011
1630
|
};
|
|
2012
1631
|
const de_CreateWatchlistResponse = (output, context) => {
|
|
2013
|
-
return {
|
|
2014
|
-
Watchlist:
|
|
2015
|
-
};
|
|
1632
|
+
return take(output, {
|
|
1633
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1634
|
+
});
|
|
2016
1635
|
};
|
|
2017
1636
|
const de_DescribeDomainResponse = (output, context) => {
|
|
2018
|
-
return {
|
|
2019
|
-
Domain:
|
|
2020
|
-
};
|
|
1637
|
+
return take(output, {
|
|
1638
|
+
Domain: (_) => de_Domain(_, context),
|
|
1639
|
+
});
|
|
2021
1640
|
};
|
|
2022
1641
|
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
2023
|
-
return {
|
|
2024
|
-
Job:
|
|
2025
|
-
};
|
|
1642
|
+
return take(output, {
|
|
1643
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1644
|
+
});
|
|
2026
1645
|
};
|
|
2027
1646
|
const de_DescribeFraudsterResponse = (output, context) => {
|
|
2028
|
-
return {
|
|
2029
|
-
Fraudster:
|
|
2030
|
-
};
|
|
1647
|
+
return take(output, {
|
|
1648
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1649
|
+
});
|
|
2031
1650
|
};
|
|
2032
1651
|
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2033
|
-
return {
|
|
2034
|
-
Job:
|
|
2035
|
-
};
|
|
1652
|
+
return take(output, {
|
|
1653
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1654
|
+
});
|
|
2036
1655
|
};
|
|
2037
1656
|
const de_DescribeSpeakerResponse = (output, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
Speaker:
|
|
2040
|
-
};
|
|
1657
|
+
return take(output, {
|
|
1658
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
1659
|
+
});
|
|
2041
1660
|
};
|
|
2042
1661
|
const de_DescribeWatchlistResponse = (output, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
Watchlist:
|
|
2045
|
-
};
|
|
1662
|
+
return take(output, {
|
|
1663
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1664
|
+
});
|
|
2046
1665
|
};
|
|
2047
1666
|
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
2048
|
-
return {
|
|
2049
|
-
Fraudster:
|
|
2050
|
-
};
|
|
1667
|
+
return take(output, {
|
|
1668
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1669
|
+
});
|
|
2051
1670
|
};
|
|
2052
1671
|
const de_Domain = (output, context) => {
|
|
2053
|
-
return {
|
|
2054
|
-
Arn: __expectString
|
|
2055
|
-
CreatedAt:
|
|
2056
|
-
Description: __expectString
|
|
2057
|
-
DomainId: __expectString
|
|
2058
|
-
DomainStatus: __expectString
|
|
2059
|
-
Name: __expectString
|
|
2060
|
-
ServerSideEncryptionConfiguration:
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
: undefined,
|
|
2066
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2067
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2068
|
-
};
|
|
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
|
+
});
|
|
2069
1684
|
};
|
|
2070
1685
|
const de_DomainSummaries = (output, context) => {
|
|
2071
1686
|
const retVal = (output || [])
|
|
2072
1687
|
.filter((e) => e != null)
|
|
2073
1688
|
.map((entry) => {
|
|
2074
|
-
if (entry === null) {
|
|
2075
|
-
return null;
|
|
2076
|
-
}
|
|
2077
1689
|
return de_DomainSummary(entry, context);
|
|
2078
1690
|
});
|
|
2079
1691
|
return retVal;
|
|
2080
1692
|
};
|
|
2081
1693
|
const de_DomainSummary = (output, context) => {
|
|
2082
|
-
return {
|
|
2083
|
-
Arn: __expectString
|
|
2084
|
-
CreatedAt:
|
|
2085
|
-
Description: __expectString
|
|
2086
|
-
DomainId: __expectString
|
|
2087
|
-
DomainStatus: __expectString
|
|
2088
|
-
Name: __expectString
|
|
2089
|
-
ServerSideEncryptionConfiguration:
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2094
|
-
: undefined,
|
|
2095
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2096
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2097
|
-
};
|
|
2098
|
-
};
|
|
2099
|
-
const de_EnrollmentConfig = (output, context) => {
|
|
2100
|
-
return {
|
|
2101
|
-
ExistingEnrollmentAction: __expectString(output.ExistingEnrollmentAction),
|
|
2102
|
-
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
2103
|
-
? de_EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
|
|
2104
|
-
: undefined,
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const de_EnrollmentJobFraudDetectionConfig = (output, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
FraudDetectionAction: __expectString(output.FraudDetectionAction),
|
|
2110
|
-
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2111
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2112
|
-
? de_EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2113
|
-
: undefined,
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
const de_EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2117
|
-
const retVal = (output || [])
|
|
2118
|
-
.filter((e) => e != null)
|
|
2119
|
-
.map((entry) => {
|
|
2120
|
-
if (entry === null) {
|
|
2121
|
-
return null;
|
|
2122
|
-
}
|
|
2123
|
-
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,
|
|
2124
1705
|
});
|
|
2125
|
-
return retVal;
|
|
2126
1706
|
};
|
|
2127
1707
|
const de_EvaluateSessionResponse = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
AuthenticationResult:
|
|
2130
|
-
DomainId: __expectString
|
|
2131
|
-
FraudDetectionResult:
|
|
2132
|
-
SessionId: __expectString
|
|
2133
|
-
SessionName: __expectString
|
|
2134
|
-
StreamingStatus: __expectString
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
const de_FailureDetails = (output, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
Message: __expectString(output.Message),
|
|
2140
|
-
StatusCode: __expectInt32(output.StatusCode),
|
|
2141
|
-
};
|
|
2142
|
-
};
|
|
2143
|
-
const de_FraudDetectionConfiguration = (output, context) => {
|
|
2144
|
-
return {
|
|
2145
|
-
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2146
|
-
WatchlistId: __expectString(output.WatchlistId),
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
const de_FraudDetectionReasons = (output, context) => {
|
|
2150
|
-
const retVal = (output || [])
|
|
2151
|
-
.filter((e) => e != null)
|
|
2152
|
-
.map((entry) => {
|
|
2153
|
-
if (entry === null) {
|
|
2154
|
-
return null;
|
|
2155
|
-
}
|
|
2156
|
-
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,
|
|
2157
1715
|
});
|
|
2158
|
-
return retVal;
|
|
2159
1716
|
};
|
|
2160
1717
|
const de_FraudDetectionResult = (output, context) => {
|
|
2161
|
-
return {
|
|
2162
|
-
AudioAggregationEndedAt:
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
FraudDetectionResultId: __expectString(output.FraudDetectionResultId),
|
|
2171
|
-
Reasons: output.Reasons != null ? de_FraudDetectionReasons(output.Reasons, context) : undefined,
|
|
2172
|
-
RiskDetails: output.RiskDetails != null ? de_FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
const de_FraudRiskDetails = (output, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
KnownFraudsterRisk: output.KnownFraudsterRisk != null ? de_KnownFraudsterRisk(output.KnownFraudsterRisk, context) : undefined,
|
|
2178
|
-
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null ? de_VoiceSpoofingRisk(output.VoiceSpoofingRisk, context) : undefined,
|
|
2179
|
-
};
|
|
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
|
+
});
|
|
2180
1727
|
};
|
|
2181
1728
|
const de_Fraudster = (output, context) => {
|
|
2182
|
-
return {
|
|
2183
|
-
CreatedAt:
|
|
2184
|
-
DomainId: __expectString
|
|
2185
|
-
GeneratedFraudsterId: __expectString
|
|
2186
|
-
WatchlistIds:
|
|
2187
|
-
};
|
|
1729
|
+
return take(output, {
|
|
1730
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1731
|
+
DomainId: __expectString,
|
|
1732
|
+
GeneratedFraudsterId: __expectString,
|
|
1733
|
+
WatchlistIds: _json,
|
|
1734
|
+
});
|
|
2188
1735
|
};
|
|
2189
1736
|
const de_FraudsterRegistrationJob = (output, context) => {
|
|
2190
|
-
return {
|
|
2191
|
-
CreatedAt:
|
|
2192
|
-
DataAccessRoleArn: __expectString
|
|
2193
|
-
DomainId: __expectString
|
|
2194
|
-
EndedAt:
|
|
2195
|
-
FailureDetails:
|
|
2196
|
-
InputDataConfig:
|
|
2197
|
-
JobId: __expectString
|
|
2198
|
-
JobName: __expectString
|
|
2199
|
-
JobProgress:
|
|
2200
|
-
JobStatus: __expectString
|
|
2201
|
-
OutputDataConfig:
|
|
2202
|
-
RegistrationConfig:
|
|
2203
|
-
};
|
|
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
|
+
});
|
|
2204
1751
|
};
|
|
2205
1752
|
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
2206
1753
|
const retVal = (output || [])
|
|
2207
1754
|
.filter((e) => e != null)
|
|
2208
1755
|
.map((entry) => {
|
|
2209
|
-
if (entry === null) {
|
|
2210
|
-
return null;
|
|
2211
|
-
}
|
|
2212
1756
|
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
2213
1757
|
});
|
|
2214
1758
|
return retVal;
|
|
2215
1759
|
};
|
|
2216
1760
|
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
2217
|
-
return {
|
|
2218
|
-
CreatedAt:
|
|
2219
|
-
DomainId: __expectString
|
|
2220
|
-
EndedAt:
|
|
2221
|
-
FailureDetails:
|
|
2222
|
-
JobId: __expectString
|
|
2223
|
-
JobName: __expectString
|
|
2224
|
-
JobProgress:
|
|
2225
|
-
JobStatus: __expectString
|
|
2226
|
-
};
|
|
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
|
+
});
|
|
2227
1771
|
};
|
|
2228
1772
|
const de_FraudsterSummaries = (output, context) => {
|
|
2229
1773
|
const retVal = (output || [])
|
|
2230
1774
|
.filter((e) => e != null)
|
|
2231
1775
|
.map((entry) => {
|
|
2232
|
-
if (entry === null) {
|
|
2233
|
-
return null;
|
|
2234
|
-
}
|
|
2235
1776
|
return de_FraudsterSummary(entry, context);
|
|
2236
1777
|
});
|
|
2237
1778
|
return retVal;
|
|
2238
1779
|
};
|
|
2239
1780
|
const de_FraudsterSummary = (output, context) => {
|
|
2240
|
-
return {
|
|
2241
|
-
CreatedAt:
|
|
2242
|
-
DomainId: __expectString
|
|
2243
|
-
GeneratedFraudsterId: __expectString
|
|
2244
|
-
WatchlistIds:
|
|
2245
|
-
};
|
|
2246
|
-
};
|
|
2247
|
-
const de_InputDataConfig = (output, context) => {
|
|
2248
|
-
return {
|
|
2249
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2250
|
-
};
|
|
2251
|
-
};
|
|
2252
|
-
const de_InternalServerException = (output, context) => {
|
|
2253
|
-
return {
|
|
2254
|
-
Message: __expectString(output.Message),
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
const de_JobProgress = (output, context) => {
|
|
2258
|
-
return {
|
|
2259
|
-
PercentComplete: __expectInt32(output.PercentComplete),
|
|
2260
|
-
};
|
|
2261
|
-
};
|
|
2262
|
-
const de_KnownFraudsterRisk = (output, context) => {
|
|
2263
|
-
return {
|
|
2264
|
-
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2265
|
-
RiskScore: __expectInt32(output.RiskScore),
|
|
2266
|
-
};
|
|
1781
|
+
return take(output, {
|
|
1782
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1783
|
+
DomainId: __expectString,
|
|
1784
|
+
GeneratedFraudsterId: __expectString,
|
|
1785
|
+
WatchlistIds: _json,
|
|
1786
|
+
});
|
|
2267
1787
|
};
|
|
2268
1788
|
const de_ListDomainsResponse = (output, context) => {
|
|
2269
|
-
return {
|
|
2270
|
-
DomainSummaries:
|
|
2271
|
-
NextToken: __expectString
|
|
2272
|
-
};
|
|
1789
|
+
return take(output, {
|
|
1790
|
+
DomainSummaries: (_) => de_DomainSummaries(_, context),
|
|
1791
|
+
NextToken: __expectString,
|
|
1792
|
+
});
|
|
2273
1793
|
};
|
|
2274
1794
|
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
2275
|
-
return {
|
|
2276
|
-
JobSummaries:
|
|
2277
|
-
NextToken: __expectString
|
|
2278
|
-
};
|
|
1795
|
+
return take(output, {
|
|
1796
|
+
JobSummaries: (_) => de_FraudsterRegistrationJobSummaries(_, context),
|
|
1797
|
+
NextToken: __expectString,
|
|
1798
|
+
});
|
|
2279
1799
|
};
|
|
2280
1800
|
const de_ListFraudstersResponse = (output, context) => {
|
|
2281
|
-
return {
|
|
2282
|
-
FraudsterSummaries:
|
|
2283
|
-
NextToken: __expectString
|
|
2284
|
-
};
|
|
1801
|
+
return take(output, {
|
|
1802
|
+
FraudsterSummaries: (_) => de_FraudsterSummaries(_, context),
|
|
1803
|
+
NextToken: __expectString,
|
|
1804
|
+
});
|
|
2285
1805
|
};
|
|
2286
1806
|
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
2287
|
-
return {
|
|
2288
|
-
JobSummaries:
|
|
2289
|
-
NextToken: __expectString
|
|
2290
|
-
};
|
|
1807
|
+
return take(output, {
|
|
1808
|
+
JobSummaries: (_) => de_SpeakerEnrollmentJobSummaries(_, context),
|
|
1809
|
+
NextToken: __expectString,
|
|
1810
|
+
});
|
|
2291
1811
|
};
|
|
2292
1812
|
const de_ListSpeakersResponse = (output, context) => {
|
|
2293
|
-
return {
|
|
2294
|
-
NextToken: __expectString
|
|
2295
|
-
SpeakerSummaries:
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2299
|
-
return {
|
|
2300
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2301
|
-
};
|
|
1813
|
+
return take(output, {
|
|
1814
|
+
NextToken: __expectString,
|
|
1815
|
+
SpeakerSummaries: (_) => de_SpeakerSummaries(_, context),
|
|
1816
|
+
});
|
|
2302
1817
|
};
|
|
2303
1818
|
const de_ListWatchlistsResponse = (output, context) => {
|
|
2304
|
-
return {
|
|
2305
|
-
NextToken: __expectString
|
|
2306
|
-
WatchlistSummaries:
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
const de_OptOutSpeakerResponse = (output, context) => {
|
|
2310
|
-
return {
|
|
2311
|
-
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2312
|
-
};
|
|
2313
|
-
};
|
|
2314
|
-
const de_OutputDataConfig = (output, context) => {
|
|
2315
|
-
return {
|
|
2316
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2317
|
-
S3Uri: __expectString(output.S3Uri),
|
|
2318
|
-
};
|
|
2319
|
-
};
|
|
2320
|
-
const de_RegistrationConfig = (output, context) => {
|
|
2321
|
-
return {
|
|
2322
|
-
DuplicateRegistrationAction: __expectString(output.DuplicateRegistrationAction),
|
|
2323
|
-
FraudsterSimilarityThreshold: __expectInt32(output.FraudsterSimilarityThreshold),
|
|
2324
|
-
WatchlistIds: output.WatchlistIds != null ? de_RegistrationConfigWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2325
|
-
};
|
|
2326
|
-
};
|
|
2327
|
-
const de_RegistrationConfigWatchlistIds = (output, context) => {
|
|
2328
|
-
const retVal = (output || [])
|
|
2329
|
-
.filter((e) => e != null)
|
|
2330
|
-
.map((entry) => {
|
|
2331
|
-
if (entry === null) {
|
|
2332
|
-
return null;
|
|
2333
|
-
}
|
|
2334
|
-
return __expectString(entry);
|
|
1819
|
+
return take(output, {
|
|
1820
|
+
NextToken: __expectString,
|
|
1821
|
+
WatchlistSummaries: (_) => de_WatchlistSummaries(_, context),
|
|
2335
1822
|
});
|
|
2336
|
-
return retVal;
|
|
2337
|
-
};
|
|
2338
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2339
|
-
return {
|
|
2340
|
-
Message: __expectString(output.Message),
|
|
2341
|
-
ResourceType: __expectString(output.ResourceType),
|
|
2342
|
-
};
|
|
2343
1823
|
};
|
|
2344
|
-
const
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
.map((entry) => {
|
|
2348
|
-
if (entry === null) {
|
|
2349
|
-
return null;
|
|
2350
|
-
}
|
|
2351
|
-
return __expectString(entry);
|
|
1824
|
+
const de_OptOutSpeakerResponse = (output, context) => {
|
|
1825
|
+
return take(output, {
|
|
1826
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
2352
1827
|
});
|
|
2353
|
-
return retVal;
|
|
2354
|
-
};
|
|
2355
|
-
const de_ServerSideEncryptionConfiguration = (output, context) => {
|
|
2356
|
-
return {
|
|
2357
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2358
|
-
};
|
|
2359
|
-
};
|
|
2360
|
-
const de_ServerSideEncryptionUpdateDetails = (output, context) => {
|
|
2361
|
-
return {
|
|
2362
|
-
Message: __expectString(output.Message),
|
|
2363
|
-
OldKmsKeyId: __expectString(output.OldKmsKeyId),
|
|
2364
|
-
UpdateStatus: __expectString(output.UpdateStatus),
|
|
2365
|
-
};
|
|
2366
|
-
};
|
|
2367
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2368
|
-
return {
|
|
2369
|
-
Message: __expectString(output.Message),
|
|
2370
|
-
};
|
|
2371
1828
|
};
|
|
2372
1829
|
const de_Speaker = (output, context) => {
|
|
2373
|
-
return {
|
|
2374
|
-
CreatedAt:
|
|
2375
|
-
CustomerSpeakerId: __expectString
|
|
2376
|
-
DomainId: __expectString
|
|
2377
|
-
GeneratedSpeakerId: __expectString
|
|
2378
|
-
LastAccessedAt:
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2383
|
-
};
|
|
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
|
+
});
|
|
2384
1839
|
};
|
|
2385
1840
|
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
2386
|
-
return {
|
|
2387
|
-
CreatedAt:
|
|
2388
|
-
DataAccessRoleArn: __expectString
|
|
2389
|
-
DomainId: __expectString
|
|
2390
|
-
EndedAt:
|
|
2391
|
-
EnrollmentConfig:
|
|
2392
|
-
FailureDetails:
|
|
2393
|
-
InputDataConfig:
|
|
2394
|
-
JobId: __expectString
|
|
2395
|
-
JobName: __expectString
|
|
2396
|
-
JobProgress:
|
|
2397
|
-
JobStatus: __expectString
|
|
2398
|
-
OutputDataConfig:
|
|
2399
|
-
};
|
|
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
|
+
});
|
|
2400
1855
|
};
|
|
2401
1856
|
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
2402
1857
|
const retVal = (output || [])
|
|
2403
1858
|
.filter((e) => e != null)
|
|
2404
1859
|
.map((entry) => {
|
|
2405
|
-
if (entry === null) {
|
|
2406
|
-
return null;
|
|
2407
|
-
}
|
|
2408
1860
|
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
2409
1861
|
});
|
|
2410
1862
|
return retVal;
|
|
2411
1863
|
};
|
|
2412
1864
|
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
2413
|
-
return {
|
|
2414
|
-
CreatedAt:
|
|
2415
|
-
DomainId: __expectString
|
|
2416
|
-
EndedAt:
|
|
2417
|
-
FailureDetails:
|
|
2418
|
-
JobId: __expectString
|
|
2419
|
-
JobName: __expectString
|
|
2420
|
-
JobProgress:
|
|
2421
|
-
JobStatus: __expectString
|
|
2422
|
-
};
|
|
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
|
+
});
|
|
2423
1875
|
};
|
|
2424
1876
|
const de_SpeakerSummaries = (output, context) => {
|
|
2425
1877
|
const retVal = (output || [])
|
|
2426
1878
|
.filter((e) => e != null)
|
|
2427
1879
|
.map((entry) => {
|
|
2428
|
-
if (entry === null) {
|
|
2429
|
-
return null;
|
|
2430
|
-
}
|
|
2431
1880
|
return de_SpeakerSummary(entry, context);
|
|
2432
1881
|
});
|
|
2433
1882
|
return retVal;
|
|
2434
1883
|
};
|
|
2435
1884
|
const de_SpeakerSummary = (output, context) => {
|
|
2436
|
-
return {
|
|
2437
|
-
CreatedAt:
|
|
2438
|
-
CustomerSpeakerId: __expectString
|
|
2439
|
-
DomainId: __expectString
|
|
2440
|
-
GeneratedSpeakerId: __expectString
|
|
2441
|
-
LastAccessedAt:
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2446
|
-
};
|
|
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
|
+
});
|
|
2447
1894
|
};
|
|
2448
1895
|
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
2449
|
-
return {
|
|
2450
|
-
Job:
|
|
2451
|
-
};
|
|
1896
|
+
return take(output, {
|
|
1897
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1898
|
+
});
|
|
2452
1899
|
};
|
|
2453
1900
|
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
Job:
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
const de_Tag = (output, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
Key: __expectString(output.Key),
|
|
2461
|
-
Value: __expectString(output.Value),
|
|
2462
|
-
};
|
|
2463
|
-
};
|
|
2464
|
-
const de_TagList = (output, context) => {
|
|
2465
|
-
const retVal = (output || [])
|
|
2466
|
-
.filter((e) => e != null)
|
|
2467
|
-
.map((entry) => {
|
|
2468
|
-
if (entry === null) {
|
|
2469
|
-
return null;
|
|
2470
|
-
}
|
|
2471
|
-
return de_Tag(entry, context);
|
|
1901
|
+
return take(output, {
|
|
1902
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
2472
1903
|
});
|
|
2473
|
-
return retVal;
|
|
2474
|
-
};
|
|
2475
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2476
|
-
return {};
|
|
2477
|
-
};
|
|
2478
|
-
const de_ThrottlingException = (output, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
Message: __expectString(output.Message),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2484
|
-
return {};
|
|
2485
1904
|
};
|
|
2486
1905
|
const de_UpdateDomainResponse = (output, context) => {
|
|
2487
|
-
return {
|
|
2488
|
-
Domain:
|
|
2489
|
-
};
|
|
1906
|
+
return take(output, {
|
|
1907
|
+
Domain: (_) => de_Domain(_, context),
|
|
1908
|
+
});
|
|
2490
1909
|
};
|
|
2491
1910
|
const de_UpdateWatchlistResponse = (output, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
Watchlist:
|
|
2494
|
-
};
|
|
2495
|
-
};
|
|
2496
|
-
const de_ValidationException = (output, context) => {
|
|
2497
|
-
return {
|
|
2498
|
-
Message: __expectString(output.Message),
|
|
2499
|
-
};
|
|
2500
|
-
};
|
|
2501
|
-
const de_VoiceSpoofingRisk = (output, context) => {
|
|
2502
|
-
return {
|
|
2503
|
-
RiskScore: __expectInt32(output.RiskScore),
|
|
2504
|
-
};
|
|
1911
|
+
return take(output, {
|
|
1912
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1913
|
+
});
|
|
2505
1914
|
};
|
|
2506
1915
|
const de_Watchlist = (output, context) => {
|
|
2507
|
-
return {
|
|
2508
|
-
CreatedAt:
|
|
2509
|
-
DefaultWatchlist: __expectBoolean
|
|
2510
|
-
Description: __expectString
|
|
2511
|
-
DomainId: __expectString
|
|
2512
|
-
Name: __expectString
|
|
2513
|
-
UpdatedAt:
|
|
2514
|
-
WatchlistId: __expectString
|
|
2515
|
-
};
|
|
2516
|
-
};
|
|
2517
|
-
const de_WatchlistDetails = (output, context) => {
|
|
2518
|
-
return {
|
|
2519
|
-
DefaultWatchlistId: __expectString(output.DefaultWatchlistId),
|
|
2520
|
-
};
|
|
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
|
+
});
|
|
2521
1925
|
};
|
|
2522
1926
|
const de_WatchlistSummaries = (output, context) => {
|
|
2523
1927
|
const retVal = (output || [])
|
|
2524
1928
|
.filter((e) => e != null)
|
|
2525
1929
|
.map((entry) => {
|
|
2526
|
-
if (entry === null) {
|
|
2527
|
-
return null;
|
|
2528
|
-
}
|
|
2529
1930
|
return de_WatchlistSummary(entry, context);
|
|
2530
1931
|
});
|
|
2531
1932
|
return retVal;
|
|
2532
1933
|
};
|
|
2533
1934
|
const de_WatchlistSummary = (output, context) => {
|
|
2534
|
-
return {
|
|
2535
|
-
CreatedAt:
|
|
2536
|
-
DefaultWatchlist: __expectBoolean
|
|
2537
|
-
Description: __expectString
|
|
2538
|
-
DomainId: __expectString
|
|
2539
|
-
Name: __expectString
|
|
2540
|
-
UpdatedAt:
|
|
2541
|
-
WatchlistId: __expectString
|
|
2542
|
-
};
|
|
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
|
+
});
|
|
2543
1944
|
};
|
|
2544
1945
|
const deserializeMetadata = (output) => ({
|
|
2545
1946
|
httpStatusCode: output.statusCode,
|
|
@@ -2554,6 +1955,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2554
1955
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2555
1956
|
};
|
|
2556
1957
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1958
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2557
1959
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2558
1960
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2559
1961
|
const contents = {
|
|
@@ -2572,6 +1974,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2572
1974
|
}
|
|
2573
1975
|
return new __HttpRequest(contents);
|
|
2574
1976
|
};
|
|
1977
|
+
function sharedHeaders(operation) {
|
|
1978
|
+
return {
|
|
1979
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1980
|
+
"x-amz-target": `VoiceID.${operation}`,
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
2575
1983
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2576
1984
|
if (encoded.length) {
|
|
2577
1985
|
return JSON.parse(encoded);
|