@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
|
@@ -8,292 +8,205 @@ const uuid_1 = require("uuid");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const VoiceIDServiceException_1 = require("../models/VoiceIDServiceException");
|
|
10
10
|
const se_AssociateFraudsterCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.0",
|
|
13
|
-
"x-amz-target": "VoiceID.AssociateFraudster",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("AssociateFraudster");
|
|
15
12
|
let body;
|
|
16
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_AssociateFraudsterCommand = se_AssociateFraudsterCommand;
|
|
20
17
|
const se_CreateDomainCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.0",
|
|
23
|
-
"x-amz-target": "VoiceID.CreateDomain",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateDomain");
|
|
25
19
|
let body;
|
|
26
20
|
body = JSON.stringify(se_CreateDomainRequest(input, context));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
30
24
|
const se_CreateWatchlistCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.0",
|
|
33
|
-
"x-amz-target": "VoiceID.CreateWatchlist",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateWatchlist");
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(se_CreateWatchlistRequest(input, context));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CreateWatchlistCommand = se_CreateWatchlistCommand;
|
|
40
31
|
const se_DeleteDomainCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.0",
|
|
43
|
-
"x-amz-target": "VoiceID.DeleteDomain",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("DeleteDomain");
|
|
45
33
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
50
38
|
const se_DeleteFraudsterCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.0",
|
|
53
|
-
"x-amz-target": "VoiceID.DeleteFraudster",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("DeleteFraudster");
|
|
55
40
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_DeleteFraudsterCommand = se_DeleteFraudsterCommand;
|
|
60
45
|
const se_DeleteSpeakerCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "VoiceID.DeleteSpeaker",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("DeleteSpeaker");
|
|
65
47
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_DeleteSpeakerCommand = se_DeleteSpeakerCommand;
|
|
70
52
|
const se_DeleteWatchlistCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.0",
|
|
73
|
-
"x-amz-target": "VoiceID.DeleteWatchlist",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("DeleteWatchlist");
|
|
75
54
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_DeleteWatchlistCommand = se_DeleteWatchlistCommand;
|
|
80
59
|
const se_DescribeDomainCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.0",
|
|
83
|
-
"x-amz-target": "VoiceID.DescribeDomain",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeDomain");
|
|
85
61
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
90
66
|
const se_DescribeFraudsterCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.0",
|
|
93
|
-
"x-amz-target": "VoiceID.DescribeFraudster",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DescribeFraudster");
|
|
95
68
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_DescribeFraudsterCommand = se_DescribeFraudsterCommand;
|
|
100
73
|
const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.0",
|
|
103
|
-
"x-amz-target": "VoiceID.DescribeFraudsterRegistrationJob",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("DescribeFraudsterRegistrationJob");
|
|
105
75
|
let body;
|
|
106
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_DescribeFraudsterRegistrationJobCommand = se_DescribeFraudsterRegistrationJobCommand;
|
|
110
80
|
const se_DescribeSpeakerCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.0",
|
|
113
|
-
"x-amz-target": "VoiceID.DescribeSpeaker",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("DescribeSpeaker");
|
|
115
82
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_DescribeSpeakerCommand = se_DescribeSpeakerCommand;
|
|
120
87
|
const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.0",
|
|
123
|
-
"x-amz-target": "VoiceID.DescribeSpeakerEnrollmentJob",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("DescribeSpeakerEnrollmentJob");
|
|
125
89
|
let body;
|
|
126
|
-
body = JSON.stringify(
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_DescribeSpeakerEnrollmentJobCommand = se_DescribeSpeakerEnrollmentJobCommand;
|
|
130
94
|
const se_DescribeWatchlistCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.0",
|
|
133
|
-
"x-amz-target": "VoiceID.DescribeWatchlist",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("DescribeWatchlist");
|
|
135
96
|
let body;
|
|
136
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_DescribeWatchlistCommand = se_DescribeWatchlistCommand;
|
|
140
101
|
const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.0",
|
|
143
|
-
"x-amz-target": "VoiceID.DisassociateFraudster",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DisassociateFraudster");
|
|
145
103
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_DisassociateFraudsterCommand = se_DisassociateFraudsterCommand;
|
|
150
108
|
const se_EvaluateSessionCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.0",
|
|
153
|
-
"x-amz-target": "VoiceID.EvaluateSession",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("EvaluateSession");
|
|
155
110
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_EvaluateSessionCommand = se_EvaluateSessionCommand;
|
|
160
115
|
const se_ListDomainsCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.0",
|
|
163
|
-
"x-amz-target": "VoiceID.ListDomains",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("ListDomains");
|
|
165
117
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
170
122
|
const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.0",
|
|
173
|
-
"x-amz-target": "VoiceID.ListFraudsterRegistrationJobs",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("ListFraudsterRegistrationJobs");
|
|
175
124
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_ListFraudsterRegistrationJobsCommand = se_ListFraudsterRegistrationJobsCommand;
|
|
180
129
|
const se_ListFraudstersCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.0",
|
|
183
|
-
"x-amz-target": "VoiceID.ListFraudsters",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("ListFraudsters");
|
|
185
131
|
let body;
|
|
186
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_ListFraudstersCommand = se_ListFraudstersCommand;
|
|
190
136
|
const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.0",
|
|
193
|
-
"x-amz-target": "VoiceID.ListSpeakerEnrollmentJobs",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("ListSpeakerEnrollmentJobs");
|
|
195
138
|
let body;
|
|
196
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_ListSpeakerEnrollmentJobsCommand = se_ListSpeakerEnrollmentJobsCommand;
|
|
200
143
|
const se_ListSpeakersCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.0",
|
|
203
|
-
"x-amz-target": "VoiceID.ListSpeakers",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("ListSpeakers");
|
|
205
145
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_ListSpeakersCommand = se_ListSpeakersCommand;
|
|
210
150
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.0",
|
|
213
|
-
"x-amz-target": "VoiceID.ListTagsForResource",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
215
152
|
let body;
|
|
216
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
220
157
|
const se_ListWatchlistsCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.0",
|
|
223
|
-
"x-amz-target": "VoiceID.ListWatchlists",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("ListWatchlists");
|
|
225
159
|
let body;
|
|
226
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_ListWatchlistsCommand = se_ListWatchlistsCommand;
|
|
230
164
|
const se_OptOutSpeakerCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.0",
|
|
233
|
-
"x-amz-target": "VoiceID.OptOutSpeaker",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("OptOutSpeaker");
|
|
235
166
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_OptOutSpeakerCommand = se_OptOutSpeakerCommand;
|
|
240
171
|
const se_StartFraudsterRegistrationJobCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.0",
|
|
243
|
-
"x-amz-target": "VoiceID.StartFraudsterRegistrationJob",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("StartFraudsterRegistrationJob");
|
|
245
173
|
let body;
|
|
246
174
|
body = JSON.stringify(se_StartFraudsterRegistrationJobRequest(input, context));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_StartFraudsterRegistrationJobCommand = se_StartFraudsterRegistrationJobCommand;
|
|
250
178
|
const se_StartSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.0",
|
|
253
|
-
"x-amz-target": "VoiceID.StartSpeakerEnrollmentJob",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("StartSpeakerEnrollmentJob");
|
|
255
180
|
let body;
|
|
256
181
|
body = JSON.stringify(se_StartSpeakerEnrollmentJobRequest(input, context));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_StartSpeakerEnrollmentJobCommand = se_StartSpeakerEnrollmentJobCommand;
|
|
260
185
|
const se_TagResourceCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.0",
|
|
263
|
-
"x-amz-target": "VoiceID.TagResource",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("TagResource");
|
|
265
187
|
let body;
|
|
266
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
270
192
|
const se_UntagResourceCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-amz-json-1.0",
|
|
273
|
-
"x-amz-target": "VoiceID.UntagResource",
|
|
274
|
-
};
|
|
193
|
+
const headers = sharedHeaders("UntagResource");
|
|
275
194
|
let body;
|
|
276
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
277
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
197
|
};
|
|
279
198
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
280
199
|
const se_UpdateDomainCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-amz-json-1.0",
|
|
283
|
-
"x-amz-target": "VoiceID.UpdateDomain",
|
|
284
|
-
};
|
|
200
|
+
const headers = sharedHeaders("UpdateDomain");
|
|
285
201
|
let body;
|
|
286
|
-
body = JSON.stringify(
|
|
202
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
204
|
};
|
|
289
205
|
exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
|
|
290
206
|
const se_UpdateWatchlistCommand = async (input, context) => {
|
|
291
|
-
const headers =
|
|
292
|
-
"content-type": "application/x-amz-json-1.0",
|
|
293
|
-
"x-amz-target": "VoiceID.UpdateWatchlist",
|
|
294
|
-
};
|
|
207
|
+
const headers = sharedHeaders("UpdateWatchlist");
|
|
295
208
|
let body;
|
|
296
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
297
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
211
|
};
|
|
299
212
|
exports.se_UpdateWatchlistCommand = se_UpdateWatchlistCommand;
|
|
@@ -308,7 +221,7 @@ const de_AssociateFraudsterCommand = async (output, context) => {
|
|
|
308
221
|
$metadata: deserializeMetadata(output),
|
|
309
222
|
...contents,
|
|
310
223
|
};
|
|
311
|
-
return
|
|
224
|
+
return response;
|
|
312
225
|
};
|
|
313
226
|
exports.de_AssociateFraudsterCommand = de_AssociateFraudsterCommand;
|
|
314
227
|
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
@@ -341,10 +254,9 @@ const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
|
341
254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
255
|
default:
|
|
343
256
|
const parsedBody = parsedOutput.body;
|
|
344
|
-
|
|
257
|
+
return throwDefaultError({
|
|
345
258
|
output,
|
|
346
259
|
parsedBody,
|
|
347
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
348
260
|
errorCode,
|
|
349
261
|
});
|
|
350
262
|
}
|
|
@@ -360,7 +272,7 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
360
272
|
$metadata: deserializeMetadata(output),
|
|
361
273
|
...contents,
|
|
362
274
|
};
|
|
363
|
-
return
|
|
275
|
+
return response;
|
|
364
276
|
};
|
|
365
277
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
366
278
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
@@ -393,10 +305,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
393
305
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
394
306
|
default:
|
|
395
307
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
308
|
+
return throwDefaultError({
|
|
397
309
|
output,
|
|
398
310
|
parsedBody,
|
|
399
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
400
311
|
errorCode,
|
|
401
312
|
});
|
|
402
313
|
}
|
|
@@ -412,7 +323,7 @@ const de_CreateWatchlistCommand = async (output, context) => {
|
|
|
412
323
|
$metadata: deserializeMetadata(output),
|
|
413
324
|
...contents,
|
|
414
325
|
};
|
|
415
|
-
return
|
|
326
|
+
return response;
|
|
416
327
|
};
|
|
417
328
|
exports.de_CreateWatchlistCommand = de_CreateWatchlistCommand;
|
|
418
329
|
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
@@ -445,10 +356,9 @@ const de_CreateWatchlistCommandError = async (output, context) => {
|
|
|
445
356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
446
357
|
default:
|
|
447
358
|
const parsedBody = parsedOutput.body;
|
|
448
|
-
|
|
359
|
+
return throwDefaultError({
|
|
449
360
|
output,
|
|
450
361
|
parsedBody,
|
|
451
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
452
362
|
errorCode,
|
|
453
363
|
});
|
|
454
364
|
}
|
|
@@ -461,7 +371,7 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
461
371
|
const response = {
|
|
462
372
|
$metadata: deserializeMetadata(output),
|
|
463
373
|
};
|
|
464
|
-
return
|
|
374
|
+
return response;
|
|
465
375
|
};
|
|
466
376
|
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
467
377
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
@@ -491,10 +401,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
491
401
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
402
|
default:
|
|
493
403
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
404
|
+
return throwDefaultError({
|
|
495
405
|
output,
|
|
496
406
|
parsedBody,
|
|
497
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
498
407
|
errorCode,
|
|
499
408
|
});
|
|
500
409
|
}
|
|
@@ -507,7 +416,7 @@ const de_DeleteFraudsterCommand = async (output, context) => {
|
|
|
507
416
|
const response = {
|
|
508
417
|
$metadata: deserializeMetadata(output),
|
|
509
418
|
};
|
|
510
|
-
return
|
|
419
|
+
return response;
|
|
511
420
|
};
|
|
512
421
|
exports.de_DeleteFraudsterCommand = de_DeleteFraudsterCommand;
|
|
513
422
|
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
@@ -537,10 +446,9 @@ const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
|
537
446
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
538
447
|
default:
|
|
539
448
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
449
|
+
return throwDefaultError({
|
|
541
450
|
output,
|
|
542
451
|
parsedBody,
|
|
543
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
544
452
|
errorCode,
|
|
545
453
|
});
|
|
546
454
|
}
|
|
@@ -553,7 +461,7 @@ const de_DeleteSpeakerCommand = async (output, context) => {
|
|
|
553
461
|
const response = {
|
|
554
462
|
$metadata: deserializeMetadata(output),
|
|
555
463
|
};
|
|
556
|
-
return
|
|
464
|
+
return response;
|
|
557
465
|
};
|
|
558
466
|
exports.de_DeleteSpeakerCommand = de_DeleteSpeakerCommand;
|
|
559
467
|
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
@@ -583,10 +491,9 @@ const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
|
583
491
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
492
|
default:
|
|
585
493
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
494
|
+
return throwDefaultError({
|
|
587
495
|
output,
|
|
588
496
|
parsedBody,
|
|
589
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
590
497
|
errorCode,
|
|
591
498
|
});
|
|
592
499
|
}
|
|
@@ -599,7 +506,7 @@ const de_DeleteWatchlistCommand = async (output, context) => {
|
|
|
599
506
|
const response = {
|
|
600
507
|
$metadata: deserializeMetadata(output),
|
|
601
508
|
};
|
|
602
|
-
return
|
|
509
|
+
return response;
|
|
603
510
|
};
|
|
604
511
|
exports.de_DeleteWatchlistCommand = de_DeleteWatchlistCommand;
|
|
605
512
|
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
@@ -629,10 +536,9 @@ const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
|
629
536
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
537
|
default:
|
|
631
538
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
|
|
539
|
+
return throwDefaultError({
|
|
633
540
|
output,
|
|
634
541
|
parsedBody,
|
|
635
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
636
542
|
errorCode,
|
|
637
543
|
});
|
|
638
544
|
}
|
|
@@ -648,7 +554,7 @@ const de_DescribeDomainCommand = async (output, context) => {
|
|
|
648
554
|
$metadata: deserializeMetadata(output),
|
|
649
555
|
...contents,
|
|
650
556
|
};
|
|
651
|
-
return
|
|
557
|
+
return response;
|
|
652
558
|
};
|
|
653
559
|
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
654
560
|
const de_DescribeDomainCommandError = async (output, context) => {
|
|
@@ -675,10 +581,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
675
581
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
676
582
|
default:
|
|
677
583
|
const parsedBody = parsedOutput.body;
|
|
678
|
-
|
|
584
|
+
return throwDefaultError({
|
|
679
585
|
output,
|
|
680
586
|
parsedBody,
|
|
681
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
682
587
|
errorCode,
|
|
683
588
|
});
|
|
684
589
|
}
|
|
@@ -694,7 +599,7 @@ const de_DescribeFraudsterCommand = async (output, context) => {
|
|
|
694
599
|
$metadata: deserializeMetadata(output),
|
|
695
600
|
...contents,
|
|
696
601
|
};
|
|
697
|
-
return
|
|
602
|
+
return response;
|
|
698
603
|
};
|
|
699
604
|
exports.de_DescribeFraudsterCommand = de_DescribeFraudsterCommand;
|
|
700
605
|
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
@@ -721,10 +626,9 @@ const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
|
721
626
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
722
627
|
default:
|
|
723
628
|
const parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
629
|
+
return throwDefaultError({
|
|
725
630
|
output,
|
|
726
631
|
parsedBody,
|
|
727
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
728
632
|
errorCode,
|
|
729
633
|
});
|
|
730
634
|
}
|
|
@@ -740,7 +644,7 @@ const de_DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
|
740
644
|
$metadata: deserializeMetadata(output),
|
|
741
645
|
...contents,
|
|
742
646
|
};
|
|
743
|
-
return
|
|
647
|
+
return response;
|
|
744
648
|
};
|
|
745
649
|
exports.de_DescribeFraudsterRegistrationJobCommand = de_DescribeFraudsterRegistrationJobCommand;
|
|
746
650
|
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
@@ -767,10 +671,9 @@ const de_DescribeFraudsterRegistrationJobCommandError = async (output, context)
|
|
|
767
671
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
672
|
default:
|
|
769
673
|
const parsedBody = parsedOutput.body;
|
|
770
|
-
|
|
674
|
+
return throwDefaultError({
|
|
771
675
|
output,
|
|
772
676
|
parsedBody,
|
|
773
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
774
677
|
errorCode,
|
|
775
678
|
});
|
|
776
679
|
}
|
|
@@ -786,7 +689,7 @@ const de_DescribeSpeakerCommand = async (output, context) => {
|
|
|
786
689
|
$metadata: deserializeMetadata(output),
|
|
787
690
|
...contents,
|
|
788
691
|
};
|
|
789
|
-
return
|
|
692
|
+
return response;
|
|
790
693
|
};
|
|
791
694
|
exports.de_DescribeSpeakerCommand = de_DescribeSpeakerCommand;
|
|
792
695
|
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
@@ -813,10 +716,9 @@ const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
|
813
716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
814
717
|
default:
|
|
815
718
|
const parsedBody = parsedOutput.body;
|
|
816
|
-
|
|
719
|
+
return throwDefaultError({
|
|
817
720
|
output,
|
|
818
721
|
parsedBody,
|
|
819
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
820
722
|
errorCode,
|
|
821
723
|
});
|
|
822
724
|
}
|
|
@@ -832,7 +734,7 @@ const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
832
734
|
$metadata: deserializeMetadata(output),
|
|
833
735
|
...contents,
|
|
834
736
|
};
|
|
835
|
-
return
|
|
737
|
+
return response;
|
|
836
738
|
};
|
|
837
739
|
exports.de_DescribeSpeakerEnrollmentJobCommand = de_DescribeSpeakerEnrollmentJobCommand;
|
|
838
740
|
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
@@ -859,10 +761,9 @@ const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
859
761
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
762
|
default:
|
|
861
763
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
|
|
764
|
+
return throwDefaultError({
|
|
863
765
|
output,
|
|
864
766
|
parsedBody,
|
|
865
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
866
767
|
errorCode,
|
|
867
768
|
});
|
|
868
769
|
}
|
|
@@ -878,7 +779,7 @@ const de_DescribeWatchlistCommand = async (output, context) => {
|
|
|
878
779
|
$metadata: deserializeMetadata(output),
|
|
879
780
|
...contents,
|
|
880
781
|
};
|
|
881
|
-
return
|
|
782
|
+
return response;
|
|
882
783
|
};
|
|
883
784
|
exports.de_DescribeWatchlistCommand = de_DescribeWatchlistCommand;
|
|
884
785
|
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
@@ -905,10 +806,9 @@ const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
|
905
806
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
807
|
default:
|
|
907
808
|
const parsedBody = parsedOutput.body;
|
|
908
|
-
|
|
809
|
+
return throwDefaultError({
|
|
909
810
|
output,
|
|
910
811
|
parsedBody,
|
|
911
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
912
812
|
errorCode,
|
|
913
813
|
});
|
|
914
814
|
}
|
|
@@ -924,7 +824,7 @@ const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
|
924
824
|
$metadata: deserializeMetadata(output),
|
|
925
825
|
...contents,
|
|
926
826
|
};
|
|
927
|
-
return
|
|
827
|
+
return response;
|
|
928
828
|
};
|
|
929
829
|
exports.de_DisassociateFraudsterCommand = de_DisassociateFraudsterCommand;
|
|
930
830
|
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
@@ -954,10 +854,9 @@ const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
|
954
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
955
855
|
default:
|
|
956
856
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
857
|
+
return throwDefaultError({
|
|
958
858
|
output,
|
|
959
859
|
parsedBody,
|
|
960
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
961
860
|
errorCode,
|
|
962
861
|
});
|
|
963
862
|
}
|
|
@@ -973,7 +872,7 @@ const de_EvaluateSessionCommand = async (output, context) => {
|
|
|
973
872
|
$metadata: deserializeMetadata(output),
|
|
974
873
|
...contents,
|
|
975
874
|
};
|
|
976
|
-
return
|
|
875
|
+
return response;
|
|
977
876
|
};
|
|
978
877
|
exports.de_EvaluateSessionCommand = de_EvaluateSessionCommand;
|
|
979
878
|
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
@@ -1003,10 +902,9 @@ const de_EvaluateSessionCommandError = async (output, context) => {
|
|
|
1003
902
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1004
903
|
default:
|
|
1005
904
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
|
|
905
|
+
return throwDefaultError({
|
|
1007
906
|
output,
|
|
1008
907
|
parsedBody,
|
|
1009
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1010
908
|
errorCode,
|
|
1011
909
|
});
|
|
1012
910
|
}
|
|
@@ -1022,7 +920,7 @@ const de_ListDomainsCommand = async (output, context) => {
|
|
|
1022
920
|
$metadata: deserializeMetadata(output),
|
|
1023
921
|
...contents,
|
|
1024
922
|
};
|
|
1025
|
-
return
|
|
923
|
+
return response;
|
|
1026
924
|
};
|
|
1027
925
|
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
1028
926
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
@@ -1046,10 +944,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
1046
944
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1047
945
|
default:
|
|
1048
946
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
|
|
947
|
+
return throwDefaultError({
|
|
1050
948
|
output,
|
|
1051
949
|
parsedBody,
|
|
1052
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1053
950
|
errorCode,
|
|
1054
951
|
});
|
|
1055
952
|
}
|
|
@@ -1065,7 +962,7 @@ const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
|
1065
962
|
$metadata: deserializeMetadata(output),
|
|
1066
963
|
...contents,
|
|
1067
964
|
};
|
|
1068
|
-
return
|
|
965
|
+
return response;
|
|
1069
966
|
};
|
|
1070
967
|
exports.de_ListFraudsterRegistrationJobsCommand = de_ListFraudsterRegistrationJobsCommand;
|
|
1071
968
|
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
@@ -1092,10 +989,9 @@ const de_ListFraudsterRegistrationJobsCommandError = async (output, context) =>
|
|
|
1092
989
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
990
|
default:
|
|
1094
991
|
const parsedBody = parsedOutput.body;
|
|
1095
|
-
|
|
992
|
+
return throwDefaultError({
|
|
1096
993
|
output,
|
|
1097
994
|
parsedBody,
|
|
1098
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1099
995
|
errorCode,
|
|
1100
996
|
});
|
|
1101
997
|
}
|
|
@@ -1111,7 +1007,7 @@ const de_ListFraudstersCommand = async (output, context) => {
|
|
|
1111
1007
|
$metadata: deserializeMetadata(output),
|
|
1112
1008
|
...contents,
|
|
1113
1009
|
};
|
|
1114
|
-
return
|
|
1010
|
+
return response;
|
|
1115
1011
|
};
|
|
1116
1012
|
exports.de_ListFraudstersCommand = de_ListFraudstersCommand;
|
|
1117
1013
|
const de_ListFraudstersCommandError = async (output, context) => {
|
|
@@ -1138,10 +1034,9 @@ const de_ListFraudstersCommandError = async (output, context) => {
|
|
|
1138
1034
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1139
1035
|
default:
|
|
1140
1036
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1037
|
+
return throwDefaultError({
|
|
1142
1038
|
output,
|
|
1143
1039
|
parsedBody,
|
|
1144
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1145
1040
|
errorCode,
|
|
1146
1041
|
});
|
|
1147
1042
|
}
|
|
@@ -1157,7 +1052,7 @@ const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
|
1157
1052
|
$metadata: deserializeMetadata(output),
|
|
1158
1053
|
...contents,
|
|
1159
1054
|
};
|
|
1160
|
-
return
|
|
1055
|
+
return response;
|
|
1161
1056
|
};
|
|
1162
1057
|
exports.de_ListSpeakerEnrollmentJobsCommand = de_ListSpeakerEnrollmentJobsCommand;
|
|
1163
1058
|
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
@@ -1184,10 +1079,9 @@ const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
|
1184
1079
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1185
1080
|
default:
|
|
1186
1081
|
const parsedBody = parsedOutput.body;
|
|
1187
|
-
|
|
1082
|
+
return throwDefaultError({
|
|
1188
1083
|
output,
|
|
1189
1084
|
parsedBody,
|
|
1190
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1191
1085
|
errorCode,
|
|
1192
1086
|
});
|
|
1193
1087
|
}
|
|
@@ -1203,7 +1097,7 @@ const de_ListSpeakersCommand = async (output, context) => {
|
|
|
1203
1097
|
$metadata: deserializeMetadata(output),
|
|
1204
1098
|
...contents,
|
|
1205
1099
|
};
|
|
1206
|
-
return
|
|
1100
|
+
return response;
|
|
1207
1101
|
};
|
|
1208
1102
|
exports.de_ListSpeakersCommand = de_ListSpeakersCommand;
|
|
1209
1103
|
const de_ListSpeakersCommandError = async (output, context) => {
|
|
@@ -1230,10 +1124,9 @@ const de_ListSpeakersCommandError = async (output, context) => {
|
|
|
1230
1124
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1231
1125
|
default:
|
|
1232
1126
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
|
|
1127
|
+
return throwDefaultError({
|
|
1234
1128
|
output,
|
|
1235
1129
|
parsedBody,
|
|
1236
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1237
1130
|
errorCode,
|
|
1238
1131
|
});
|
|
1239
1132
|
}
|
|
@@ -1244,12 +1137,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1244
1137
|
}
|
|
1245
1138
|
const data = await parseBody(output.body, context);
|
|
1246
1139
|
let contents = {};
|
|
1247
|
-
contents =
|
|
1140
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1248
1141
|
const response = {
|
|
1249
1142
|
$metadata: deserializeMetadata(output),
|
|
1250
1143
|
...contents,
|
|
1251
1144
|
};
|
|
1252
|
-
return
|
|
1145
|
+
return response;
|
|
1253
1146
|
};
|
|
1254
1147
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1255
1148
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1276,10 +1169,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1276
1169
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1277
1170
|
default:
|
|
1278
1171
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1172
|
+
return throwDefaultError({
|
|
1280
1173
|
output,
|
|
1281
1174
|
parsedBody,
|
|
1282
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1283
1175
|
errorCode,
|
|
1284
1176
|
});
|
|
1285
1177
|
}
|
|
@@ -1295,7 +1187,7 @@ const de_ListWatchlistsCommand = async (output, context) => {
|
|
|
1295
1187
|
$metadata: deserializeMetadata(output),
|
|
1296
1188
|
...contents,
|
|
1297
1189
|
};
|
|
1298
|
-
return
|
|
1190
|
+
return response;
|
|
1299
1191
|
};
|
|
1300
1192
|
exports.de_ListWatchlistsCommand = de_ListWatchlistsCommand;
|
|
1301
1193
|
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
@@ -1322,10 +1214,9 @@ const de_ListWatchlistsCommandError = async (output, context) => {
|
|
|
1322
1214
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
1215
|
default:
|
|
1324
1216
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
|
|
1217
|
+
return throwDefaultError({
|
|
1326
1218
|
output,
|
|
1327
1219
|
parsedBody,
|
|
1328
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1329
1220
|
errorCode,
|
|
1330
1221
|
});
|
|
1331
1222
|
}
|
|
@@ -1341,7 +1232,7 @@ const de_OptOutSpeakerCommand = async (output, context) => {
|
|
|
1341
1232
|
$metadata: deserializeMetadata(output),
|
|
1342
1233
|
...contents,
|
|
1343
1234
|
};
|
|
1344
|
-
return
|
|
1235
|
+
return response;
|
|
1345
1236
|
};
|
|
1346
1237
|
exports.de_OptOutSpeakerCommand = de_OptOutSpeakerCommand;
|
|
1347
1238
|
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
@@ -1374,10 +1265,9 @@ const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
|
1374
1265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1375
1266
|
default:
|
|
1376
1267
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
|
|
1268
|
+
return throwDefaultError({
|
|
1378
1269
|
output,
|
|
1379
1270
|
parsedBody,
|
|
1380
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1381
1271
|
errorCode,
|
|
1382
1272
|
});
|
|
1383
1273
|
}
|
|
@@ -1393,7 +1283,7 @@ const de_StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
|
1393
1283
|
$metadata: deserializeMetadata(output),
|
|
1394
1284
|
...contents,
|
|
1395
1285
|
};
|
|
1396
|
-
return
|
|
1286
|
+
return response;
|
|
1397
1287
|
};
|
|
1398
1288
|
exports.de_StartFraudsterRegistrationJobCommand = de_StartFraudsterRegistrationJobCommand;
|
|
1399
1289
|
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
@@ -1426,10 +1316,9 @@ const de_StartFraudsterRegistrationJobCommandError = async (output, context) =>
|
|
|
1426
1316
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1427
1317
|
default:
|
|
1428
1318
|
const parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1319
|
+
return throwDefaultError({
|
|
1430
1320
|
output,
|
|
1431
1321
|
parsedBody,
|
|
1432
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1433
1322
|
errorCode,
|
|
1434
1323
|
});
|
|
1435
1324
|
}
|
|
@@ -1445,7 +1334,7 @@ const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
|
1445
1334
|
$metadata: deserializeMetadata(output),
|
|
1446
1335
|
...contents,
|
|
1447
1336
|
};
|
|
1448
|
-
return
|
|
1337
|
+
return response;
|
|
1449
1338
|
};
|
|
1450
1339
|
exports.de_StartSpeakerEnrollmentJobCommand = de_StartSpeakerEnrollmentJobCommand;
|
|
1451
1340
|
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
@@ -1478,10 +1367,9 @@ const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
|
1478
1367
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
1368
|
default:
|
|
1480
1369
|
const parsedBody = parsedOutput.body;
|
|
1481
|
-
|
|
1370
|
+
return throwDefaultError({
|
|
1482
1371
|
output,
|
|
1483
1372
|
parsedBody,
|
|
1484
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1485
1373
|
errorCode,
|
|
1486
1374
|
});
|
|
1487
1375
|
}
|
|
@@ -1492,12 +1380,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1492
1380
|
}
|
|
1493
1381
|
const data = await parseBody(output.body, context);
|
|
1494
1382
|
let contents = {};
|
|
1495
|
-
contents =
|
|
1383
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1496
1384
|
const response = {
|
|
1497
1385
|
$metadata: deserializeMetadata(output),
|
|
1498
1386
|
...contents,
|
|
1499
1387
|
};
|
|
1500
|
-
return
|
|
1388
|
+
return response;
|
|
1501
1389
|
};
|
|
1502
1390
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1503
1391
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1527,10 +1415,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1527
1415
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1528
1416
|
default:
|
|
1529
1417
|
const parsedBody = parsedOutput.body;
|
|
1530
|
-
|
|
1418
|
+
return throwDefaultError({
|
|
1531
1419
|
output,
|
|
1532
1420
|
parsedBody,
|
|
1533
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1534
1421
|
errorCode,
|
|
1535
1422
|
});
|
|
1536
1423
|
}
|
|
@@ -1541,12 +1428,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1541
1428
|
}
|
|
1542
1429
|
const data = await parseBody(output.body, context);
|
|
1543
1430
|
let contents = {};
|
|
1544
|
-
contents =
|
|
1431
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1545
1432
|
const response = {
|
|
1546
1433
|
$metadata: deserializeMetadata(output),
|
|
1547
1434
|
...contents,
|
|
1548
1435
|
};
|
|
1549
|
-
return
|
|
1436
|
+
return response;
|
|
1550
1437
|
};
|
|
1551
1438
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1552
1439
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1576,10 +1463,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1576
1463
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1577
1464
|
default:
|
|
1578
1465
|
const parsedBody = parsedOutput.body;
|
|
1579
|
-
|
|
1466
|
+
return throwDefaultError({
|
|
1580
1467
|
output,
|
|
1581
1468
|
parsedBody,
|
|
1582
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1583
1469
|
errorCode,
|
|
1584
1470
|
});
|
|
1585
1471
|
}
|
|
@@ -1595,7 +1481,7 @@ const de_UpdateDomainCommand = async (output, context) => {
|
|
|
1595
1481
|
$metadata: deserializeMetadata(output),
|
|
1596
1482
|
...contents,
|
|
1597
1483
|
};
|
|
1598
|
-
return
|
|
1484
|
+
return response;
|
|
1599
1485
|
};
|
|
1600
1486
|
exports.de_UpdateDomainCommand = de_UpdateDomainCommand;
|
|
1601
1487
|
const de_UpdateDomainCommandError = async (output, context) => {
|
|
@@ -1625,10 +1511,9 @@ const de_UpdateDomainCommandError = async (output, context) => {
|
|
|
1625
1511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
1512
|
default:
|
|
1627
1513
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1514
|
+
return throwDefaultError({
|
|
1629
1515
|
output,
|
|
1630
1516
|
parsedBody,
|
|
1631
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1632
1517
|
errorCode,
|
|
1633
1518
|
});
|
|
1634
1519
|
}
|
|
@@ -1644,7 +1529,7 @@ const de_UpdateWatchlistCommand = async (output, context) => {
|
|
|
1644
1529
|
$metadata: deserializeMetadata(output),
|
|
1645
1530
|
...contents,
|
|
1646
1531
|
};
|
|
1647
|
-
return
|
|
1532
|
+
return response;
|
|
1648
1533
|
};
|
|
1649
1534
|
exports.de_UpdateWatchlistCommand = de_UpdateWatchlistCommand;
|
|
1650
1535
|
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
@@ -1674,17 +1559,16 @@ const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
|
1674
1559
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1675
1560
|
default:
|
|
1676
1561
|
const parsedBody = parsedOutput.body;
|
|
1677
|
-
|
|
1562
|
+
return throwDefaultError({
|
|
1678
1563
|
output,
|
|
1679
1564
|
parsedBody,
|
|
1680
|
-
exceptionCtor: VoiceIDServiceException_1.VoiceIDServiceException,
|
|
1681
1565
|
errorCode,
|
|
1682
1566
|
});
|
|
1683
1567
|
}
|
|
1684
1568
|
};
|
|
1685
1569
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1686
1570
|
const body = parsedOutput.body;
|
|
1687
|
-
const deserialized =
|
|
1571
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1688
1572
|
const exception = new models_0_1.AccessDeniedException({
|
|
1689
1573
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1690
1574
|
...deserialized,
|
|
@@ -1693,7 +1577,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1693
1577
|
};
|
|
1694
1578
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1695
1579
|
const body = parsedOutput.body;
|
|
1696
|
-
const deserialized =
|
|
1580
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1697
1581
|
const exception = new models_0_1.ConflictException({
|
|
1698
1582
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1699
1583
|
...deserialized,
|
|
@@ -1702,7 +1586,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1702
1586
|
};
|
|
1703
1587
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1704
1588
|
const body = parsedOutput.body;
|
|
1705
|
-
const deserialized =
|
|
1589
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1706
1590
|
const exception = new models_0_1.InternalServerException({
|
|
1707
1591
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1708
1592
|
...deserialized,
|
|
@@ -1711,7 +1595,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1711
1595
|
};
|
|
1712
1596
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1713
1597
|
const body = parsedOutput.body;
|
|
1714
|
-
const deserialized =
|
|
1598
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1715
1599
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1716
1600
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1717
1601
|
...deserialized,
|
|
@@ -1720,7 +1604,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1720
1604
|
};
|
|
1721
1605
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1722
1606
|
const body = parsedOutput.body;
|
|
1723
|
-
const deserialized =
|
|
1607
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1724
1608
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1725
1609
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1726
1610
|
...deserialized,
|
|
@@ -1729,7 +1613,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1729
1613
|
};
|
|
1730
1614
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1731
1615
|
const body = parsedOutput.body;
|
|
1732
|
-
const deserialized =
|
|
1616
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1733
1617
|
const exception = new models_0_1.ThrottlingException({
|
|
1734
1618
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1735
1619
|
...deserialized,
|
|
@@ -1738,870 +1622,387 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1738
1622
|
};
|
|
1739
1623
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1740
1624
|
const body = parsedOutput.body;
|
|
1741
|
-
const deserialized =
|
|
1625
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1742
1626
|
const exception = new models_0_1.ValidationException({
|
|
1743
1627
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1744
1628
|
...deserialized,
|
|
1745
1629
|
});
|
|
1746
1630
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1747
1631
|
};
|
|
1748
|
-
const se_AssociateFraudsterRequest = (input, context) => {
|
|
1749
|
-
return {
|
|
1750
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1751
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1752
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
1632
|
const se_CreateDomainRequest = (input, context) => {
|
|
1756
|
-
return {
|
|
1757
|
-
ClientToken:
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}),
|
|
1763
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const se_CreateWatchlistRequest = (input, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1769
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1770
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1771
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
const se_DeleteDomainRequest = (input, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const se_DeleteFraudsterRequest = (input, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1782
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const se_DeleteSpeakerRequest = (input, context) => {
|
|
1786
|
-
return {
|
|
1787
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1788
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1789
|
-
};
|
|
1790
|
-
};
|
|
1791
|
-
const se_DeleteWatchlistRequest = (input, context) => {
|
|
1792
|
-
return {
|
|
1793
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1794
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
const se_DescribeDomainRequest = (input, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const se_DescribeFraudsterRegistrationJobRequest = (input, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1805
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
const se_DescribeFraudsterRequest = (input, context) => {
|
|
1809
|
-
return {
|
|
1810
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1811
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1812
|
-
};
|
|
1813
|
-
};
|
|
1814
|
-
const se_DescribeSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1815
|
-
return {
|
|
1816
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1817
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1818
|
-
};
|
|
1819
|
-
};
|
|
1820
|
-
const se_DescribeSpeakerRequest = (input, context) => {
|
|
1821
|
-
return {
|
|
1822
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1823
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
|
-
const se_DescribeWatchlistRequest = (input, context) => {
|
|
1827
|
-
return {
|
|
1828
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1829
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1830
|
-
};
|
|
1831
|
-
};
|
|
1832
|
-
const se_DisassociateFraudsterRequest = (input, context) => {
|
|
1833
|
-
return {
|
|
1834
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1835
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1836
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1837
|
-
};
|
|
1838
|
-
};
|
|
1839
|
-
const se_EnrollmentConfig = (input, context) => {
|
|
1840
|
-
return {
|
|
1841
|
-
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
1842
|
-
...(input.FraudDetectionConfig != null && {
|
|
1843
|
-
FraudDetectionConfig: se_EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1844
|
-
}),
|
|
1845
|
-
};
|
|
1846
|
-
};
|
|
1847
|
-
const se_EnrollmentJobFraudDetectionConfig = (input, context) => {
|
|
1848
|
-
return {
|
|
1849
|
-
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1850
|
-
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1851
|
-
...(input.WatchlistIds != null && {
|
|
1852
|
-
WatchlistIds: se_EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1853
|
-
}),
|
|
1854
|
-
};
|
|
1855
|
-
};
|
|
1856
|
-
const se_EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1857
|
-
return input
|
|
1858
|
-
.filter((e) => e != null)
|
|
1859
|
-
.map((entry) => {
|
|
1860
|
-
return entry;
|
|
1633
|
+
return (0, smithy_client_1.take)(input, {
|
|
1634
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1635
|
+
Description: [],
|
|
1636
|
+
Name: [],
|
|
1637
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1638
|
+
Tags: smithy_client_1._json,
|
|
1861
1639
|
});
|
|
1862
1640
|
};
|
|
1863
|
-
const
|
|
1864
|
-
return {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
const se_InputDataConfig = (input, context) => {
|
|
1870
|
-
return {
|
|
1871
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1872
|
-
};
|
|
1873
|
-
};
|
|
1874
|
-
const se_ListDomainsRequest = (input, context) => {
|
|
1875
|
-
return {
|
|
1876
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1877
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1878
|
-
};
|
|
1879
|
-
};
|
|
1880
|
-
const se_ListFraudsterRegistrationJobsRequest = (input, context) => {
|
|
1881
|
-
return {
|
|
1882
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1883
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1884
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1885
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
|
-
const se_ListFraudstersRequest = (input, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1891
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1892
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1893
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1894
|
-
};
|
|
1895
|
-
};
|
|
1896
|
-
const se_ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1897
|
-
return {
|
|
1898
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1899
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1900
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1901
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
const se_ListSpeakersRequest = (input, context) => {
|
|
1905
|
-
return {
|
|
1906
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1907
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1908
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1909
|
-
};
|
|
1910
|
-
};
|
|
1911
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1914
|
-
};
|
|
1915
|
-
};
|
|
1916
|
-
const se_ListWatchlistsRequest = (input, context) => {
|
|
1917
|
-
return {
|
|
1918
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1919
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1920
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1921
|
-
};
|
|
1922
|
-
};
|
|
1923
|
-
const se_OptOutSpeakerRequest = (input, context) => {
|
|
1924
|
-
return {
|
|
1925
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1926
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1927
|
-
};
|
|
1928
|
-
};
|
|
1929
|
-
const se_OutputDataConfig = (input, context) => {
|
|
1930
|
-
return {
|
|
1931
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1932
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1933
|
-
};
|
|
1934
|
-
};
|
|
1935
|
-
const se_RegistrationConfig = (input, context) => {
|
|
1936
|
-
return {
|
|
1937
|
-
...(input.DuplicateRegistrationAction != null && {
|
|
1938
|
-
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
1939
|
-
}),
|
|
1940
|
-
...(input.FraudsterSimilarityThreshold != null && {
|
|
1941
|
-
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1942
|
-
}),
|
|
1943
|
-
...(input.WatchlistIds != null && { WatchlistIds: se_RegistrationConfigWatchlistIds(input.WatchlistIds, context) }),
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
const se_RegistrationConfigWatchlistIds = (input, context) => {
|
|
1947
|
-
return input
|
|
1948
|
-
.filter((e) => e != null)
|
|
1949
|
-
.map((entry) => {
|
|
1950
|
-
return entry;
|
|
1641
|
+
const se_CreateWatchlistRequest = (input, context) => {
|
|
1642
|
+
return (0, smithy_client_1.take)(input, {
|
|
1643
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1644
|
+
Description: [],
|
|
1645
|
+
DomainId: [],
|
|
1646
|
+
Name: [],
|
|
1951
1647
|
});
|
|
1952
1648
|
};
|
|
1953
|
-
const se_ServerSideEncryptionConfiguration = (input, context) => {
|
|
1954
|
-
return {
|
|
1955
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
1649
|
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1959
|
-
return {
|
|
1960
|
-
ClientToken:
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
RegistrationConfig: se_RegistrationConfig(input.RegistrationConfig, context),
|
|
1968
|
-
}),
|
|
1969
|
-
};
|
|
1970
|
-
};
|
|
1971
|
-
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1972
|
-
return {
|
|
1973
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
1974
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1975
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1976
|
-
...(input.EnrollmentConfig != null && { EnrollmentConfig: se_EnrollmentConfig(input.EnrollmentConfig, context) }),
|
|
1977
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1978
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1979
|
-
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
const se_Tag = (input, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1985
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
const se_TagKeyList = (input, context) => {
|
|
1989
|
-
return input
|
|
1990
|
-
.filter((e) => e != null)
|
|
1991
|
-
.map((entry) => {
|
|
1992
|
-
return entry;
|
|
1650
|
+
return (0, smithy_client_1.take)(input, {
|
|
1651
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1652
|
+
DataAccessRoleArn: [],
|
|
1653
|
+
DomainId: [],
|
|
1654
|
+
InputDataConfig: smithy_client_1._json,
|
|
1655
|
+
JobName: [],
|
|
1656
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1657
|
+
RegistrationConfig: smithy_client_1._json,
|
|
1993
1658
|
});
|
|
1994
1659
|
};
|
|
1995
|
-
const
|
|
1996
|
-
return input
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1660
|
+
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1661
|
+
return (0, smithy_client_1.take)(input, {
|
|
1662
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1663
|
+
DataAccessRoleArn: [],
|
|
1664
|
+
DomainId: [],
|
|
1665
|
+
EnrollmentConfig: smithy_client_1._json,
|
|
1666
|
+
InputDataConfig: smithy_client_1._json,
|
|
1667
|
+
JobName: [],
|
|
1668
|
+
OutputDataConfig: smithy_client_1._json,
|
|
2000
1669
|
});
|
|
2001
1670
|
};
|
|
2002
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2003
|
-
return {
|
|
2004
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2005
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2006
|
-
};
|
|
2007
|
-
};
|
|
2008
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2009
|
-
return {
|
|
2010
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2011
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2012
|
-
};
|
|
2013
|
-
};
|
|
2014
|
-
const se_UpdateDomainRequest = (input, context) => {
|
|
2015
|
-
return {
|
|
2016
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2017
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
2018
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2019
|
-
...(input.ServerSideEncryptionConfiguration != null && {
|
|
2020
|
-
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
2021
|
-
}),
|
|
2022
|
-
};
|
|
2023
|
-
};
|
|
2024
|
-
const se_UpdateWatchlistRequest = (input, context) => {
|
|
2025
|
-
return {
|
|
2026
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2027
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
2028
|
-
...(input.Name != null && { Name: input.Name }),
|
|
2029
|
-
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
2030
|
-
};
|
|
2031
|
-
};
|
|
2032
|
-
const de_AccessDeniedException = (output, context) => {
|
|
2033
|
-
return {
|
|
2034
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
1671
|
const de_AssociateFraudsterResponse = (output, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
Fraudster:
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
const de_AuthenticationConfiguration = (output, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
AcceptanceThreshold: (0, smithy_client_1.expectInt32)(output.AcceptanceThreshold),
|
|
2045
|
-
};
|
|
1672
|
+
return (0, smithy_client_1.take)(output, {
|
|
1673
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1674
|
+
});
|
|
2046
1675
|
};
|
|
2047
1676
|
const de_AuthenticationResult = (output, context) => {
|
|
2048
|
-
return {
|
|
2049
|
-
AudioAggregationEndedAt:
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
Decision: (0, smithy_client_1.expectString)(output.Decision),
|
|
2059
|
-
GeneratedSpeakerId: (0, smithy_client_1.expectString)(output.GeneratedSpeakerId),
|
|
2060
|
-
Score: (0, smithy_client_1.expectInt32)(output.Score),
|
|
2061
|
-
};
|
|
2062
|
-
};
|
|
2063
|
-
const de_ConflictException = (output, context) => {
|
|
2064
|
-
return {
|
|
2065
|
-
ConflictType: (0, smithy_client_1.expectString)(output.ConflictType),
|
|
2066
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2067
|
-
};
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1679
|
+
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1680
|
+
AuthenticationResultId: smithy_client_1.expectString,
|
|
1681
|
+
Configuration: smithy_client_1._json,
|
|
1682
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1683
|
+
Decision: smithy_client_1.expectString,
|
|
1684
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1685
|
+
Score: smithy_client_1.expectInt32,
|
|
1686
|
+
});
|
|
2068
1687
|
};
|
|
2069
1688
|
const de_CreateDomainResponse = (output, context) => {
|
|
2070
|
-
return {
|
|
2071
|
-
Domain:
|
|
2072
|
-
};
|
|
1689
|
+
return (0, smithy_client_1.take)(output, {
|
|
1690
|
+
Domain: (_) => de_Domain(_, context),
|
|
1691
|
+
});
|
|
2073
1692
|
};
|
|
2074
1693
|
const de_CreateWatchlistResponse = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
Watchlist:
|
|
2077
|
-
};
|
|
1694
|
+
return (0, smithy_client_1.take)(output, {
|
|
1695
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1696
|
+
});
|
|
2078
1697
|
};
|
|
2079
1698
|
const de_DescribeDomainResponse = (output, context) => {
|
|
2080
|
-
return {
|
|
2081
|
-
Domain:
|
|
2082
|
-
};
|
|
1699
|
+
return (0, smithy_client_1.take)(output, {
|
|
1700
|
+
Domain: (_) => de_Domain(_, context),
|
|
1701
|
+
});
|
|
2083
1702
|
};
|
|
2084
1703
|
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
Job:
|
|
2087
|
-
};
|
|
1704
|
+
return (0, smithy_client_1.take)(output, {
|
|
1705
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1706
|
+
});
|
|
2088
1707
|
};
|
|
2089
1708
|
const de_DescribeFraudsterResponse = (output, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
Fraudster:
|
|
2092
|
-
};
|
|
1709
|
+
return (0, smithy_client_1.take)(output, {
|
|
1710
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1711
|
+
});
|
|
2093
1712
|
};
|
|
2094
1713
|
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2095
|
-
return {
|
|
2096
|
-
Job:
|
|
2097
|
-
};
|
|
1714
|
+
return (0, smithy_client_1.take)(output, {
|
|
1715
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
1716
|
+
});
|
|
2098
1717
|
};
|
|
2099
1718
|
const de_DescribeSpeakerResponse = (output, context) => {
|
|
2100
|
-
return {
|
|
2101
|
-
Speaker:
|
|
2102
|
-
};
|
|
1719
|
+
return (0, smithy_client_1.take)(output, {
|
|
1720
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
1721
|
+
});
|
|
2103
1722
|
};
|
|
2104
1723
|
const de_DescribeWatchlistResponse = (output, context) => {
|
|
2105
|
-
return {
|
|
2106
|
-
Watchlist:
|
|
2107
|
-
};
|
|
1724
|
+
return (0, smithy_client_1.take)(output, {
|
|
1725
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1726
|
+
});
|
|
2108
1727
|
};
|
|
2109
1728
|
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
2110
|
-
return {
|
|
2111
|
-
Fraudster:
|
|
2112
|
-
};
|
|
1729
|
+
return (0, smithy_client_1.take)(output, {
|
|
1730
|
+
Fraudster: (_) => de_Fraudster(_, context),
|
|
1731
|
+
});
|
|
2113
1732
|
};
|
|
2114
1733
|
const de_Domain = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
Arn:
|
|
2117
|
-
CreatedAt:
|
|
2118
|
-
Description:
|
|
2119
|
-
DomainId:
|
|
2120
|
-
DomainStatus:
|
|
2121
|
-
Name:
|
|
2122
|
-
ServerSideEncryptionConfiguration:
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
: undefined,
|
|
2128
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2129
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2130
|
-
};
|
|
1734
|
+
return (0, smithy_client_1.take)(output, {
|
|
1735
|
+
Arn: smithy_client_1.expectString,
|
|
1736
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1737
|
+
Description: smithy_client_1.expectString,
|
|
1738
|
+
DomainId: smithy_client_1.expectString,
|
|
1739
|
+
DomainStatus: smithy_client_1.expectString,
|
|
1740
|
+
Name: smithy_client_1.expectString,
|
|
1741
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1742
|
+
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1743
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1744
|
+
WatchlistDetails: smithy_client_1._json,
|
|
1745
|
+
});
|
|
2131
1746
|
};
|
|
2132
1747
|
const de_DomainSummaries = (output, context) => {
|
|
2133
1748
|
const retVal = (output || [])
|
|
2134
1749
|
.filter((e) => e != null)
|
|
2135
1750
|
.map((entry) => {
|
|
2136
|
-
if (entry === null) {
|
|
2137
|
-
return null;
|
|
2138
|
-
}
|
|
2139
1751
|
return de_DomainSummary(entry, context);
|
|
2140
1752
|
});
|
|
2141
1753
|
return retVal;
|
|
2142
1754
|
};
|
|
2143
1755
|
const de_DomainSummary = (output, context) => {
|
|
2144
|
-
return {
|
|
2145
|
-
Arn:
|
|
2146
|
-
CreatedAt:
|
|
2147
|
-
Description:
|
|
2148
|
-
DomainId:
|
|
2149
|
-
DomainStatus:
|
|
2150
|
-
Name:
|
|
2151
|
-
ServerSideEncryptionConfiguration:
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2156
|
-
: undefined,
|
|
2157
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2158
|
-
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
const de_EnrollmentConfig = (output, context) => {
|
|
2162
|
-
return {
|
|
2163
|
-
ExistingEnrollmentAction: (0, smithy_client_1.expectString)(output.ExistingEnrollmentAction),
|
|
2164
|
-
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
2165
|
-
? de_EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
|
|
2166
|
-
: undefined,
|
|
2167
|
-
};
|
|
2168
|
-
};
|
|
2169
|
-
const de_EnrollmentJobFraudDetectionConfig = (output, context) => {
|
|
2170
|
-
return {
|
|
2171
|
-
FraudDetectionAction: (0, smithy_client_1.expectString)(output.FraudDetectionAction),
|
|
2172
|
-
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2173
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2174
|
-
? de_EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2175
|
-
: undefined,
|
|
2176
|
-
};
|
|
2177
|
-
};
|
|
2178
|
-
const de_EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2179
|
-
const retVal = (output || [])
|
|
2180
|
-
.filter((e) => e != null)
|
|
2181
|
-
.map((entry) => {
|
|
2182
|
-
if (entry === null) {
|
|
2183
|
-
return null;
|
|
2184
|
-
}
|
|
2185
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1756
|
+
return (0, smithy_client_1.take)(output, {
|
|
1757
|
+
Arn: smithy_client_1.expectString,
|
|
1758
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1759
|
+
Description: smithy_client_1.expectString,
|
|
1760
|
+
DomainId: smithy_client_1.expectString,
|
|
1761
|
+
DomainStatus: smithy_client_1.expectString,
|
|
1762
|
+
Name: smithy_client_1.expectString,
|
|
1763
|
+
ServerSideEncryptionConfiguration: smithy_client_1._json,
|
|
1764
|
+
ServerSideEncryptionUpdateDetails: smithy_client_1._json,
|
|
1765
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1766
|
+
WatchlistDetails: smithy_client_1._json,
|
|
2186
1767
|
});
|
|
2187
|
-
return retVal;
|
|
2188
1768
|
};
|
|
2189
1769
|
const de_EvaluateSessionResponse = (output, context) => {
|
|
2190
|
-
return {
|
|
2191
|
-
AuthenticationResult:
|
|
2192
|
-
DomainId:
|
|
2193
|
-
FraudDetectionResult:
|
|
2194
|
-
SessionId:
|
|
2195
|
-
SessionName:
|
|
2196
|
-
StreamingStatus:
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2199
|
-
const de_FailureDetails = (output, context) => {
|
|
2200
|
-
return {
|
|
2201
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2202
|
-
StatusCode: (0, smithy_client_1.expectInt32)(output.StatusCode),
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
const de_FraudDetectionConfiguration = (output, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
RiskThreshold: (0, smithy_client_1.expectInt32)(output.RiskThreshold),
|
|
2208
|
-
WatchlistId: (0, smithy_client_1.expectString)(output.WatchlistId),
|
|
2209
|
-
};
|
|
2210
|
-
};
|
|
2211
|
-
const de_FraudDetectionReasons = (output, context) => {
|
|
2212
|
-
const retVal = (output || [])
|
|
2213
|
-
.filter((e) => e != null)
|
|
2214
|
-
.map((entry) => {
|
|
2215
|
-
if (entry === null) {
|
|
2216
|
-
return null;
|
|
2217
|
-
}
|
|
2218
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1770
|
+
return (0, smithy_client_1.take)(output, {
|
|
1771
|
+
AuthenticationResult: (_) => de_AuthenticationResult(_, context),
|
|
1772
|
+
DomainId: smithy_client_1.expectString,
|
|
1773
|
+
FraudDetectionResult: (_) => de_FraudDetectionResult(_, context),
|
|
1774
|
+
SessionId: smithy_client_1.expectString,
|
|
1775
|
+
SessionName: smithy_client_1.expectString,
|
|
1776
|
+
StreamingStatus: smithy_client_1.expectString,
|
|
2219
1777
|
});
|
|
2220
|
-
return retVal;
|
|
2221
1778
|
};
|
|
2222
1779
|
const de_FraudDetectionResult = (output, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
AudioAggregationEndedAt:
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
FraudDetectionResultId: (0, smithy_client_1.expectString)(output.FraudDetectionResultId),
|
|
2233
|
-
Reasons: output.Reasons != null ? de_FraudDetectionReasons(output.Reasons, context) : undefined,
|
|
2234
|
-
RiskDetails: output.RiskDetails != null ? de_FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
const de_FraudRiskDetails = (output, context) => {
|
|
2238
|
-
return {
|
|
2239
|
-
KnownFraudsterRisk: output.KnownFraudsterRisk != null ? de_KnownFraudsterRisk(output.KnownFraudsterRisk, context) : undefined,
|
|
2240
|
-
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null ? de_VoiceSpoofingRisk(output.VoiceSpoofingRisk, context) : undefined,
|
|
2241
|
-
};
|
|
1780
|
+
return (0, smithy_client_1.take)(output, {
|
|
1781
|
+
AudioAggregationEndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1782
|
+
AudioAggregationStartedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1783
|
+
Configuration: smithy_client_1._json,
|
|
1784
|
+
Decision: smithy_client_1.expectString,
|
|
1785
|
+
FraudDetectionResultId: smithy_client_1.expectString,
|
|
1786
|
+
Reasons: smithy_client_1._json,
|
|
1787
|
+
RiskDetails: smithy_client_1._json,
|
|
1788
|
+
});
|
|
2242
1789
|
};
|
|
2243
1790
|
const de_Fraudster = (output, context) => {
|
|
2244
|
-
return {
|
|
2245
|
-
CreatedAt:
|
|
2246
|
-
DomainId:
|
|
2247
|
-
GeneratedFraudsterId:
|
|
2248
|
-
WatchlistIds:
|
|
2249
|
-
};
|
|
1791
|
+
return (0, smithy_client_1.take)(output, {
|
|
1792
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1793
|
+
DomainId: smithy_client_1.expectString,
|
|
1794
|
+
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1795
|
+
WatchlistIds: smithy_client_1._json,
|
|
1796
|
+
});
|
|
2250
1797
|
};
|
|
2251
1798
|
const de_FraudsterRegistrationJob = (output, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
CreatedAt:
|
|
2254
|
-
DataAccessRoleArn:
|
|
2255
|
-
DomainId:
|
|
2256
|
-
EndedAt:
|
|
2257
|
-
FailureDetails:
|
|
2258
|
-
InputDataConfig:
|
|
2259
|
-
JobId:
|
|
2260
|
-
JobName:
|
|
2261
|
-
JobProgress:
|
|
2262
|
-
JobStatus:
|
|
2263
|
-
OutputDataConfig:
|
|
2264
|
-
RegistrationConfig:
|
|
2265
|
-
};
|
|
1799
|
+
return (0, smithy_client_1.take)(output, {
|
|
1800
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1801
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1802
|
+
DomainId: smithy_client_1.expectString,
|
|
1803
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1804
|
+
FailureDetails: smithy_client_1._json,
|
|
1805
|
+
InputDataConfig: smithy_client_1._json,
|
|
1806
|
+
JobId: smithy_client_1.expectString,
|
|
1807
|
+
JobName: smithy_client_1.expectString,
|
|
1808
|
+
JobProgress: smithy_client_1._json,
|
|
1809
|
+
JobStatus: smithy_client_1.expectString,
|
|
1810
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1811
|
+
RegistrationConfig: smithy_client_1._json,
|
|
1812
|
+
});
|
|
2266
1813
|
};
|
|
2267
1814
|
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
2268
1815
|
const retVal = (output || [])
|
|
2269
1816
|
.filter((e) => e != null)
|
|
2270
1817
|
.map((entry) => {
|
|
2271
|
-
if (entry === null) {
|
|
2272
|
-
return null;
|
|
2273
|
-
}
|
|
2274
1818
|
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
2275
1819
|
});
|
|
2276
1820
|
return retVal;
|
|
2277
1821
|
};
|
|
2278
1822
|
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
2279
|
-
return {
|
|
2280
|
-
CreatedAt:
|
|
2281
|
-
DomainId:
|
|
2282
|
-
EndedAt:
|
|
2283
|
-
FailureDetails:
|
|
2284
|
-
JobId:
|
|
2285
|
-
JobName:
|
|
2286
|
-
JobProgress:
|
|
2287
|
-
JobStatus:
|
|
2288
|
-
};
|
|
1823
|
+
return (0, smithy_client_1.take)(output, {
|
|
1824
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1825
|
+
DomainId: smithy_client_1.expectString,
|
|
1826
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1827
|
+
FailureDetails: smithy_client_1._json,
|
|
1828
|
+
JobId: smithy_client_1.expectString,
|
|
1829
|
+
JobName: smithy_client_1.expectString,
|
|
1830
|
+
JobProgress: smithy_client_1._json,
|
|
1831
|
+
JobStatus: smithy_client_1.expectString,
|
|
1832
|
+
});
|
|
2289
1833
|
};
|
|
2290
1834
|
const de_FraudsterSummaries = (output, context) => {
|
|
2291
1835
|
const retVal = (output || [])
|
|
2292
1836
|
.filter((e) => e != null)
|
|
2293
1837
|
.map((entry) => {
|
|
2294
|
-
if (entry === null) {
|
|
2295
|
-
return null;
|
|
2296
|
-
}
|
|
2297
1838
|
return de_FraudsterSummary(entry, context);
|
|
2298
1839
|
});
|
|
2299
1840
|
return retVal;
|
|
2300
1841
|
};
|
|
2301
1842
|
const de_FraudsterSummary = (output, context) => {
|
|
2302
|
-
return {
|
|
2303
|
-
CreatedAt:
|
|
2304
|
-
DomainId:
|
|
2305
|
-
GeneratedFraudsterId:
|
|
2306
|
-
WatchlistIds:
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
const de_InputDataConfig = (output, context) => {
|
|
2310
|
-
return {
|
|
2311
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2312
|
-
};
|
|
2313
|
-
};
|
|
2314
|
-
const de_InternalServerException = (output, context) => {
|
|
2315
|
-
return {
|
|
2316
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
const de_JobProgress = (output, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
PercentComplete: (0, smithy_client_1.expectInt32)(output.PercentComplete),
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const de_KnownFraudsterRisk = (output, context) => {
|
|
2325
|
-
return {
|
|
2326
|
-
GeneratedFraudsterId: (0, smithy_client_1.expectString)(output.GeneratedFraudsterId),
|
|
2327
|
-
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
2328
|
-
};
|
|
1843
|
+
return (0, smithy_client_1.take)(output, {
|
|
1844
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1845
|
+
DomainId: smithy_client_1.expectString,
|
|
1846
|
+
GeneratedFraudsterId: smithy_client_1.expectString,
|
|
1847
|
+
WatchlistIds: smithy_client_1._json,
|
|
1848
|
+
});
|
|
2329
1849
|
};
|
|
2330
1850
|
const de_ListDomainsResponse = (output, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
DomainSummaries:
|
|
2333
|
-
NextToken:
|
|
2334
|
-
};
|
|
1851
|
+
return (0, smithy_client_1.take)(output, {
|
|
1852
|
+
DomainSummaries: (_) => de_DomainSummaries(_, context),
|
|
1853
|
+
NextToken: smithy_client_1.expectString,
|
|
1854
|
+
});
|
|
2335
1855
|
};
|
|
2336
1856
|
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
JobSummaries:
|
|
2339
|
-
NextToken:
|
|
2340
|
-
};
|
|
1857
|
+
return (0, smithy_client_1.take)(output, {
|
|
1858
|
+
JobSummaries: (_) => de_FraudsterRegistrationJobSummaries(_, context),
|
|
1859
|
+
NextToken: smithy_client_1.expectString,
|
|
1860
|
+
});
|
|
2341
1861
|
};
|
|
2342
1862
|
const de_ListFraudstersResponse = (output, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
FraudsterSummaries:
|
|
2345
|
-
NextToken:
|
|
2346
|
-
};
|
|
1863
|
+
return (0, smithy_client_1.take)(output, {
|
|
1864
|
+
FraudsterSummaries: (_) => de_FraudsterSummaries(_, context),
|
|
1865
|
+
NextToken: smithy_client_1.expectString,
|
|
1866
|
+
});
|
|
2347
1867
|
};
|
|
2348
1868
|
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
2349
|
-
return {
|
|
2350
|
-
JobSummaries:
|
|
2351
|
-
NextToken:
|
|
2352
|
-
};
|
|
1869
|
+
return (0, smithy_client_1.take)(output, {
|
|
1870
|
+
JobSummaries: (_) => de_SpeakerEnrollmentJobSummaries(_, context),
|
|
1871
|
+
NextToken: smithy_client_1.expectString,
|
|
1872
|
+
});
|
|
2353
1873
|
};
|
|
2354
1874
|
const de_ListSpeakersResponse = (output, context) => {
|
|
2355
|
-
return {
|
|
2356
|
-
NextToken:
|
|
2357
|
-
SpeakerSummaries:
|
|
2358
|
-
};
|
|
2359
|
-
};
|
|
2360
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2361
|
-
return {
|
|
2362
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2363
|
-
};
|
|
1875
|
+
return (0, smithy_client_1.take)(output, {
|
|
1876
|
+
NextToken: smithy_client_1.expectString,
|
|
1877
|
+
SpeakerSummaries: (_) => de_SpeakerSummaries(_, context),
|
|
1878
|
+
});
|
|
2364
1879
|
};
|
|
2365
1880
|
const de_ListWatchlistsResponse = (output, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
NextToken:
|
|
2368
|
-
WatchlistSummaries:
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
const de_OptOutSpeakerResponse = (output, context) => {
|
|
2372
|
-
return {
|
|
2373
|
-
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2374
|
-
};
|
|
2375
|
-
};
|
|
2376
|
-
const de_OutputDataConfig = (output, context) => {
|
|
2377
|
-
return {
|
|
2378
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2379
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
2380
|
-
};
|
|
2381
|
-
};
|
|
2382
|
-
const de_RegistrationConfig = (output, context) => {
|
|
2383
|
-
return {
|
|
2384
|
-
DuplicateRegistrationAction: (0, smithy_client_1.expectString)(output.DuplicateRegistrationAction),
|
|
2385
|
-
FraudsterSimilarityThreshold: (0, smithy_client_1.expectInt32)(output.FraudsterSimilarityThreshold),
|
|
2386
|
-
WatchlistIds: output.WatchlistIds != null ? de_RegistrationConfigWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const de_RegistrationConfigWatchlistIds = (output, context) => {
|
|
2390
|
-
const retVal = (output || [])
|
|
2391
|
-
.filter((e) => e != null)
|
|
2392
|
-
.map((entry) => {
|
|
2393
|
-
if (entry === null) {
|
|
2394
|
-
return null;
|
|
2395
|
-
}
|
|
2396
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1881
|
+
return (0, smithy_client_1.take)(output, {
|
|
1882
|
+
NextToken: smithy_client_1.expectString,
|
|
1883
|
+
WatchlistSummaries: (_) => de_WatchlistSummaries(_, context),
|
|
2397
1884
|
});
|
|
2398
|
-
return retVal;
|
|
2399
|
-
};
|
|
2400
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2401
|
-
return {
|
|
2402
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2403
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2404
|
-
};
|
|
2405
1885
|
};
|
|
2406
|
-
const
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
.map((entry) => {
|
|
2410
|
-
if (entry === null) {
|
|
2411
|
-
return null;
|
|
2412
|
-
}
|
|
2413
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1886
|
+
const de_OptOutSpeakerResponse = (output, context) => {
|
|
1887
|
+
return (0, smithy_client_1.take)(output, {
|
|
1888
|
+
Speaker: (_) => de_Speaker(_, context),
|
|
2414
1889
|
});
|
|
2415
|
-
return retVal;
|
|
2416
|
-
};
|
|
2417
|
-
const de_ServerSideEncryptionConfiguration = (output, context) => {
|
|
2418
|
-
return {
|
|
2419
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
2420
|
-
};
|
|
2421
|
-
};
|
|
2422
|
-
const de_ServerSideEncryptionUpdateDetails = (output, context) => {
|
|
2423
|
-
return {
|
|
2424
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2425
|
-
OldKmsKeyId: (0, smithy_client_1.expectString)(output.OldKmsKeyId),
|
|
2426
|
-
UpdateStatus: (0, smithy_client_1.expectString)(output.UpdateStatus),
|
|
2427
|
-
};
|
|
2428
|
-
};
|
|
2429
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2430
|
-
return {
|
|
2431
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2432
|
-
};
|
|
2433
1890
|
};
|
|
2434
1891
|
const de_Speaker = (output, context) => {
|
|
2435
|
-
return {
|
|
2436
|
-
CreatedAt:
|
|
2437
|
-
CustomerSpeakerId:
|
|
2438
|
-
DomainId:
|
|
2439
|
-
GeneratedSpeakerId:
|
|
2440
|
-
LastAccessedAt:
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2445
|
-
};
|
|
1892
|
+
return (0, smithy_client_1.take)(output, {
|
|
1893
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1894
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1895
|
+
DomainId: smithy_client_1.expectString,
|
|
1896
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1897
|
+
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1898
|
+
Status: smithy_client_1.expectString,
|
|
1899
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1900
|
+
});
|
|
2446
1901
|
};
|
|
2447
1902
|
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
2448
|
-
return {
|
|
2449
|
-
CreatedAt:
|
|
2450
|
-
DataAccessRoleArn:
|
|
2451
|
-
DomainId:
|
|
2452
|
-
EndedAt:
|
|
2453
|
-
EnrollmentConfig:
|
|
2454
|
-
FailureDetails:
|
|
2455
|
-
InputDataConfig:
|
|
2456
|
-
JobId:
|
|
2457
|
-
JobName:
|
|
2458
|
-
JobProgress:
|
|
2459
|
-
JobStatus:
|
|
2460
|
-
OutputDataConfig:
|
|
2461
|
-
};
|
|
1903
|
+
return (0, smithy_client_1.take)(output, {
|
|
1904
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1905
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1906
|
+
DomainId: smithy_client_1.expectString,
|
|
1907
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1908
|
+
EnrollmentConfig: smithy_client_1._json,
|
|
1909
|
+
FailureDetails: smithy_client_1._json,
|
|
1910
|
+
InputDataConfig: smithy_client_1._json,
|
|
1911
|
+
JobId: smithy_client_1.expectString,
|
|
1912
|
+
JobName: smithy_client_1.expectString,
|
|
1913
|
+
JobProgress: smithy_client_1._json,
|
|
1914
|
+
JobStatus: smithy_client_1.expectString,
|
|
1915
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1916
|
+
});
|
|
2462
1917
|
};
|
|
2463
1918
|
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
2464
1919
|
const retVal = (output || [])
|
|
2465
1920
|
.filter((e) => e != null)
|
|
2466
1921
|
.map((entry) => {
|
|
2467
|
-
if (entry === null) {
|
|
2468
|
-
return null;
|
|
2469
|
-
}
|
|
2470
1922
|
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
2471
1923
|
});
|
|
2472
1924
|
return retVal;
|
|
2473
1925
|
};
|
|
2474
1926
|
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
2475
|
-
return {
|
|
2476
|
-
CreatedAt:
|
|
2477
|
-
DomainId:
|
|
2478
|
-
EndedAt:
|
|
2479
|
-
FailureDetails:
|
|
2480
|
-
JobId:
|
|
2481
|
-
JobName:
|
|
2482
|
-
JobProgress:
|
|
2483
|
-
JobStatus:
|
|
2484
|
-
};
|
|
1927
|
+
return (0, smithy_client_1.take)(output, {
|
|
1928
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1929
|
+
DomainId: smithy_client_1.expectString,
|
|
1930
|
+
EndedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1931
|
+
FailureDetails: smithy_client_1._json,
|
|
1932
|
+
JobId: smithy_client_1.expectString,
|
|
1933
|
+
JobName: smithy_client_1.expectString,
|
|
1934
|
+
JobProgress: smithy_client_1._json,
|
|
1935
|
+
JobStatus: smithy_client_1.expectString,
|
|
1936
|
+
});
|
|
2485
1937
|
};
|
|
2486
1938
|
const de_SpeakerSummaries = (output, context) => {
|
|
2487
1939
|
const retVal = (output || [])
|
|
2488
1940
|
.filter((e) => e != null)
|
|
2489
1941
|
.map((entry) => {
|
|
2490
|
-
if (entry === null) {
|
|
2491
|
-
return null;
|
|
2492
|
-
}
|
|
2493
1942
|
return de_SpeakerSummary(entry, context);
|
|
2494
1943
|
});
|
|
2495
1944
|
return retVal;
|
|
2496
1945
|
};
|
|
2497
1946
|
const de_SpeakerSummary = (output, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
CreatedAt:
|
|
2500
|
-
CustomerSpeakerId:
|
|
2501
|
-
DomainId:
|
|
2502
|
-
GeneratedSpeakerId:
|
|
2503
|
-
LastAccessedAt:
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2508
|
-
};
|
|
1947
|
+
return (0, smithy_client_1.take)(output, {
|
|
1948
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1949
|
+
CustomerSpeakerId: smithy_client_1.expectString,
|
|
1950
|
+
DomainId: smithy_client_1.expectString,
|
|
1951
|
+
GeneratedSpeakerId: smithy_client_1.expectString,
|
|
1952
|
+
LastAccessedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1953
|
+
Status: smithy_client_1.expectString,
|
|
1954
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1955
|
+
});
|
|
2509
1956
|
};
|
|
2510
1957
|
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
2511
|
-
return {
|
|
2512
|
-
Job:
|
|
2513
|
-
};
|
|
1958
|
+
return (0, smithy_client_1.take)(output, {
|
|
1959
|
+
Job: (_) => de_FraudsterRegistrationJob(_, context),
|
|
1960
|
+
});
|
|
2514
1961
|
};
|
|
2515
1962
|
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2516
|
-
return {
|
|
2517
|
-
Job:
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
const de_Tag = (output, context) => {
|
|
2521
|
-
return {
|
|
2522
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2523
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2524
|
-
};
|
|
2525
|
-
};
|
|
2526
|
-
const de_TagList = (output, context) => {
|
|
2527
|
-
const retVal = (output || [])
|
|
2528
|
-
.filter((e) => e != null)
|
|
2529
|
-
.map((entry) => {
|
|
2530
|
-
if (entry === null) {
|
|
2531
|
-
return null;
|
|
2532
|
-
}
|
|
2533
|
-
return de_Tag(entry, context);
|
|
1963
|
+
return (0, smithy_client_1.take)(output, {
|
|
1964
|
+
Job: (_) => de_SpeakerEnrollmentJob(_, context),
|
|
2534
1965
|
});
|
|
2535
|
-
return retVal;
|
|
2536
|
-
};
|
|
2537
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2538
|
-
return {};
|
|
2539
|
-
};
|
|
2540
|
-
const de_ThrottlingException = (output, context) => {
|
|
2541
|
-
return {
|
|
2542
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2543
|
-
};
|
|
2544
|
-
};
|
|
2545
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2546
|
-
return {};
|
|
2547
1966
|
};
|
|
2548
1967
|
const de_UpdateDomainResponse = (output, context) => {
|
|
2549
|
-
return {
|
|
2550
|
-
Domain:
|
|
2551
|
-
};
|
|
1968
|
+
return (0, smithy_client_1.take)(output, {
|
|
1969
|
+
Domain: (_) => de_Domain(_, context),
|
|
1970
|
+
});
|
|
2552
1971
|
};
|
|
2553
1972
|
const de_UpdateWatchlistResponse = (output, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
Watchlist:
|
|
2556
|
-
};
|
|
2557
|
-
};
|
|
2558
|
-
const de_ValidationException = (output, context) => {
|
|
2559
|
-
return {
|
|
2560
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
const de_VoiceSpoofingRisk = (output, context) => {
|
|
2564
|
-
return {
|
|
2565
|
-
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
2566
|
-
};
|
|
1973
|
+
return (0, smithy_client_1.take)(output, {
|
|
1974
|
+
Watchlist: (_) => de_Watchlist(_, context),
|
|
1975
|
+
});
|
|
2567
1976
|
};
|
|
2568
1977
|
const de_Watchlist = (output, context) => {
|
|
2569
|
-
return {
|
|
2570
|
-
CreatedAt:
|
|
2571
|
-
DefaultWatchlist:
|
|
2572
|
-
Description:
|
|
2573
|
-
DomainId:
|
|
2574
|
-
Name:
|
|
2575
|
-
UpdatedAt:
|
|
2576
|
-
WatchlistId:
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
const de_WatchlistDetails = (output, context) => {
|
|
2580
|
-
return {
|
|
2581
|
-
DefaultWatchlistId: (0, smithy_client_1.expectString)(output.DefaultWatchlistId),
|
|
2582
|
-
};
|
|
1978
|
+
return (0, smithy_client_1.take)(output, {
|
|
1979
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1980
|
+
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
1981
|
+
Description: smithy_client_1.expectString,
|
|
1982
|
+
DomainId: smithy_client_1.expectString,
|
|
1983
|
+
Name: smithy_client_1.expectString,
|
|
1984
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1985
|
+
WatchlistId: smithy_client_1.expectString,
|
|
1986
|
+
});
|
|
2583
1987
|
};
|
|
2584
1988
|
const de_WatchlistSummaries = (output, context) => {
|
|
2585
1989
|
const retVal = (output || [])
|
|
2586
1990
|
.filter((e) => e != null)
|
|
2587
1991
|
.map((entry) => {
|
|
2588
|
-
if (entry === null) {
|
|
2589
|
-
return null;
|
|
2590
|
-
}
|
|
2591
1992
|
return de_WatchlistSummary(entry, context);
|
|
2592
1993
|
});
|
|
2593
1994
|
return retVal;
|
|
2594
1995
|
};
|
|
2595
1996
|
const de_WatchlistSummary = (output, context) => {
|
|
2596
|
-
return {
|
|
2597
|
-
CreatedAt:
|
|
2598
|
-
DefaultWatchlist:
|
|
2599
|
-
Description:
|
|
2600
|
-
DomainId:
|
|
2601
|
-
Name:
|
|
2602
|
-
UpdatedAt:
|
|
2603
|
-
WatchlistId:
|
|
2604
|
-
};
|
|
1997
|
+
return (0, smithy_client_1.take)(output, {
|
|
1998
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1999
|
+
DefaultWatchlist: smithy_client_1.expectBoolean,
|
|
2000
|
+
Description: smithy_client_1.expectString,
|
|
2001
|
+
DomainId: smithy_client_1.expectString,
|
|
2002
|
+
Name: smithy_client_1.expectString,
|
|
2003
|
+
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2004
|
+
WatchlistId: smithy_client_1.expectString,
|
|
2005
|
+
});
|
|
2605
2006
|
};
|
|
2606
2007
|
const deserializeMetadata = (output) => ({
|
|
2607
2008
|
httpStatusCode: output.statusCode,
|
|
@@ -2616,6 +2017,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2616
2017
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2617
2018
|
};
|
|
2618
2019
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2020
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(VoiceIDServiceException_1.VoiceIDServiceException);
|
|
2619
2021
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2620
2022
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2621
2023
|
const contents = {
|
|
@@ -2634,6 +2036,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2634
2036
|
}
|
|
2635
2037
|
return new protocol_http_1.HttpRequest(contents);
|
|
2636
2038
|
};
|
|
2039
|
+
function sharedHeaders(operation) {
|
|
2040
|
+
return {
|
|
2041
|
+
"content-type": "application/x-amz-json-1.0",
|
|
2042
|
+
"x-amz-target": `VoiceID.${operation}`,
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2637
2045
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2638
2046
|
if (encoded.length) {
|
|
2639
2047
|
return JSON.parse(encoded);
|