@aws-sdk/client-voice-id 3.306.0 → 3.309.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/commands/AssociateFraudsterCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainCommand.js +2 -2
- package/dist-cjs/commands/CreateWatchlistCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
- package/dist-cjs/commands/DeleteFraudsterCommand.js +2 -2
- package/dist-cjs/commands/DeleteSpeakerCommand.js +2 -2
- package/dist-cjs/commands/DeleteWatchlistCommand.js +2 -2
- package/dist-cjs/commands/DescribeDomainCommand.js +2 -2
- package/dist-cjs/commands/DescribeFraudsterCommand.js +2 -2
- package/dist-cjs/commands/DescribeFraudsterRegistrationJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeSpeakerCommand.js +2 -2
- package/dist-cjs/commands/DescribeSpeakerEnrollmentJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeWatchlistCommand.js +2 -2
- package/dist-cjs/commands/DisassociateFraudsterCommand.js +2 -2
- package/dist-cjs/commands/EvaluateSessionCommand.js +2 -2
- package/dist-cjs/commands/ListDomainsCommand.js +2 -2
- package/dist-cjs/commands/ListFraudsterRegistrationJobsCommand.js +2 -2
- package/dist-cjs/commands/ListFraudstersCommand.js +2 -2
- package/dist-cjs/commands/ListSpeakerEnrollmentJobsCommand.js +2 -2
- package/dist-cjs/commands/ListSpeakersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWatchlistsCommand.js +2 -2
- package/dist-cjs/commands/OptOutSpeakerCommand.js +2 -2
- package/dist-cjs/commands/StartFraudsterRegistrationJobCommand.js +2 -2
- package/dist-cjs/commands/StartSpeakerEnrollmentJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainCommand.js +2 -2
- package/dist-cjs/commands/UpdateWatchlistCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +600 -658
- package/dist-es/commands/AssociateFraudsterCommand.js +3 -3
- package/dist-es/commands/CreateDomainCommand.js +3 -3
- package/dist-es/commands/CreateWatchlistCommand.js +3 -3
- package/dist-es/commands/DeleteDomainCommand.js +3 -3
- package/dist-es/commands/DeleteFraudsterCommand.js +3 -3
- package/dist-es/commands/DeleteSpeakerCommand.js +3 -3
- package/dist-es/commands/DeleteWatchlistCommand.js +3 -3
- package/dist-es/commands/DescribeDomainCommand.js +3 -3
- package/dist-es/commands/DescribeFraudsterCommand.js +3 -3
- package/dist-es/commands/DescribeFraudsterRegistrationJobCommand.js +3 -3
- package/dist-es/commands/DescribeSpeakerCommand.js +3 -3
- package/dist-es/commands/DescribeSpeakerEnrollmentJobCommand.js +3 -3
- package/dist-es/commands/DescribeWatchlistCommand.js +3 -3
- package/dist-es/commands/DisassociateFraudsterCommand.js +3 -3
- package/dist-es/commands/EvaluateSessionCommand.js +3 -3
- package/dist-es/commands/ListDomainsCommand.js +3 -3
- package/dist-es/commands/ListFraudsterRegistrationJobsCommand.js +3 -3
- package/dist-es/commands/ListFraudstersCommand.js +3 -3
- package/dist-es/commands/ListSpeakerEnrollmentJobsCommand.js +3 -3
- package/dist-es/commands/ListSpeakersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWatchlistsCommand.js +3 -3
- package/dist-es/commands/OptOutSpeakerCommand.js +3 -3
- package/dist-es/commands/StartFraudsterRegistrationJobCommand.js +3 -3
- package/dist-es/commands/StartSpeakerEnrollmentJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDomainCommand.js +3 -3
- package/dist-es/commands/UpdateWatchlistCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +540 -598
- package/dist-types/protocols/Aws_json1_0.d.ts +232 -58
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +58 -58
- package/package.json +6 -6
|
@@ -3,281 +3,281 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { VoiceIDServiceException as __BaseException } from "../models/VoiceIDServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateFraudsterCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.0",
|
|
9
9
|
"x-amz-target": "VoiceID.AssociateFraudster",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_AssociateFraudsterRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_CreateDomainCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.0",
|
|
18
18
|
"x-amz-target": "VoiceID.CreateDomain",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_CreateDomainRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_CreateWatchlistCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.0",
|
|
27
27
|
"x-amz-target": "VoiceID.CreateWatchlist",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_CreateWatchlistRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DeleteDomainCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.0",
|
|
36
36
|
"x-amz-target": "VoiceID.DeleteDomain",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_DeleteDomainRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_DeleteFraudsterCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.0",
|
|
45
45
|
"x-amz-target": "VoiceID.DeleteFraudster",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_DeleteFraudsterRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_DeleteSpeakerCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.0",
|
|
54
54
|
"x-amz-target": "VoiceID.DeleteSpeaker",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_DeleteSpeakerRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_DeleteWatchlistCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.0",
|
|
63
63
|
"x-amz-target": "VoiceID.DeleteWatchlist",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_DeleteWatchlistRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_DescribeDomainCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.0",
|
|
72
72
|
"x-amz-target": "VoiceID.DescribeDomain",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DescribeDomainRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_DescribeFraudsterCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.0",
|
|
81
81
|
"x-amz-target": "VoiceID.DescribeFraudster",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeFraudsterRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_DescribeFraudsterRegistrationJobCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.0",
|
|
90
90
|
"x-amz-target": "VoiceID.DescribeFraudsterRegistrationJob",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_DescribeFraudsterRegistrationJobRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const se_DescribeSpeakerCommand = async (input, context) => {
|
|
97
97
|
const headers = {
|
|
98
98
|
"content-type": "application/x-amz-json-1.0",
|
|
99
99
|
"x-amz-target": "VoiceID.DescribeSpeaker",
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify(se_DescribeSpeakerRequest(input, context));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_DescribeSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
106
106
|
const headers = {
|
|
107
107
|
"content-type": "application/x-amz-json-1.0",
|
|
108
108
|
"x-amz-target": "VoiceID.DescribeSpeakerEnrollmentJob",
|
|
109
109
|
};
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(se_DescribeSpeakerEnrollmentJobRequest(input, context));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_DescribeWatchlistCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-amz-json-1.0",
|
|
117
117
|
"x-amz-target": "VoiceID.DescribeWatchlist",
|
|
118
118
|
};
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
120
|
+
body = JSON.stringify(se_DescribeWatchlistRequest(input, context));
|
|
121
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
122
|
};
|
|
123
|
-
export const
|
|
123
|
+
export const se_DisassociateFraudsterCommand = async (input, context) => {
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/x-amz-json-1.0",
|
|
126
126
|
"x-amz-target": "VoiceID.DisassociateFraudster",
|
|
127
127
|
};
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(se_DisassociateFraudsterRequest(input, context));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_EvaluateSessionCommand = async (input, context) => {
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/x-amz-json-1.0",
|
|
135
135
|
"x-amz-target": "VoiceID.EvaluateSession",
|
|
136
136
|
};
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify(se_EvaluateSessionRequest(input, context));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
|
-
export const
|
|
141
|
+
export const se_ListDomainsCommand = async (input, context) => {
|
|
142
142
|
const headers = {
|
|
143
143
|
"content-type": "application/x-amz-json-1.0",
|
|
144
144
|
"x-amz-target": "VoiceID.ListDomains",
|
|
145
145
|
};
|
|
146
146
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify(se_ListDomainsRequest(input, context));
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_ListFraudsterRegistrationJobsCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-amz-json-1.0",
|
|
153
153
|
"x-amz-target": "VoiceID.ListFraudsterRegistrationJobs",
|
|
154
154
|
};
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
156
|
+
body = JSON.stringify(se_ListFraudsterRegistrationJobsRequest(input, context));
|
|
157
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_ListFraudstersCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.0",
|
|
162
162
|
"x-amz-target": "VoiceID.ListFraudsters",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_ListFraudstersRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
export const
|
|
168
|
+
export const se_ListSpeakerEnrollmentJobsCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.0",
|
|
171
171
|
"x-amz-target": "VoiceID.ListSpeakerEnrollmentJobs",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_ListSpeakerEnrollmentJobsRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const se_ListSpeakersCommand = async (input, context) => {
|
|
178
178
|
const headers = {
|
|
179
179
|
"content-type": "application/x-amz-json-1.0",
|
|
180
180
|
"x-amz-target": "VoiceID.ListSpeakers",
|
|
181
181
|
};
|
|
182
182
|
let body;
|
|
183
|
-
body = JSON.stringify(
|
|
183
|
+
body = JSON.stringify(se_ListSpeakersRequest(input, context));
|
|
184
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
185
|
};
|
|
186
|
-
export const
|
|
186
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
187
187
|
const headers = {
|
|
188
188
|
"content-type": "application/x-amz-json-1.0",
|
|
189
189
|
"x-amz-target": "VoiceID.ListTagsForResource",
|
|
190
190
|
};
|
|
191
191
|
let body;
|
|
192
|
-
body = JSON.stringify(
|
|
192
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
193
193
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
194
|
};
|
|
195
|
-
export const
|
|
195
|
+
export const se_ListWatchlistsCommand = async (input, context) => {
|
|
196
196
|
const headers = {
|
|
197
197
|
"content-type": "application/x-amz-json-1.0",
|
|
198
198
|
"x-amz-target": "VoiceID.ListWatchlists",
|
|
199
199
|
};
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify(se_ListWatchlistsRequest(input, context));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
|
-
export const
|
|
204
|
+
export const se_OptOutSpeakerCommand = async (input, context) => {
|
|
205
205
|
const headers = {
|
|
206
206
|
"content-type": "application/x-amz-json-1.0",
|
|
207
207
|
"x-amz-target": "VoiceID.OptOutSpeaker",
|
|
208
208
|
};
|
|
209
209
|
let body;
|
|
210
|
-
body = JSON.stringify(
|
|
210
|
+
body = JSON.stringify(se_OptOutSpeakerRequest(input, context));
|
|
211
211
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
212
|
};
|
|
213
|
-
export const
|
|
213
|
+
export const se_StartFraudsterRegistrationJobCommand = async (input, context) => {
|
|
214
214
|
const headers = {
|
|
215
215
|
"content-type": "application/x-amz-json-1.0",
|
|
216
216
|
"x-amz-target": "VoiceID.StartFraudsterRegistrationJob",
|
|
217
217
|
};
|
|
218
218
|
let body;
|
|
219
|
-
body = JSON.stringify(
|
|
219
|
+
body = JSON.stringify(se_StartFraudsterRegistrationJobRequest(input, context));
|
|
220
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
221
|
};
|
|
222
|
-
export const
|
|
222
|
+
export const se_StartSpeakerEnrollmentJobCommand = async (input, context) => {
|
|
223
223
|
const headers = {
|
|
224
224
|
"content-type": "application/x-amz-json-1.0",
|
|
225
225
|
"x-amz-target": "VoiceID.StartSpeakerEnrollmentJob",
|
|
226
226
|
};
|
|
227
227
|
let body;
|
|
228
|
-
body = JSON.stringify(
|
|
228
|
+
body = JSON.stringify(se_StartSpeakerEnrollmentJobRequest(input, context));
|
|
229
229
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
230
|
};
|
|
231
|
-
export const
|
|
231
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
232
232
|
const headers = {
|
|
233
233
|
"content-type": "application/x-amz-json-1.0",
|
|
234
234
|
"x-amz-target": "VoiceID.TagResource",
|
|
235
235
|
};
|
|
236
236
|
let body;
|
|
237
|
-
body = JSON.stringify(
|
|
237
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
238
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
239
|
};
|
|
240
|
-
export const
|
|
240
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
241
241
|
const headers = {
|
|
242
242
|
"content-type": "application/x-amz-json-1.0",
|
|
243
243
|
"x-amz-target": "VoiceID.UntagResource",
|
|
244
244
|
};
|
|
245
245
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
246
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
247
247
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
248
|
};
|
|
249
|
-
export const
|
|
249
|
+
export const se_UpdateDomainCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.0",
|
|
252
252
|
"x-amz-target": "VoiceID.UpdateDomain",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_UpdateDomainRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
export const
|
|
258
|
+
export const se_UpdateWatchlistCommand = async (input, context) => {
|
|
259
259
|
const headers = {
|
|
260
260
|
"content-type": "application/x-amz-json-1.0",
|
|
261
261
|
"x-amz-target": "VoiceID.UpdateWatchlist",
|
|
262
262
|
};
|
|
263
263
|
let body;
|
|
264
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify(se_UpdateWatchlistRequest(input, context));
|
|
265
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
266
|
};
|
|
267
|
-
export const
|
|
267
|
+
export const de_AssociateFraudsterCommand = async (output, context) => {
|
|
268
268
|
if (output.statusCode >= 300) {
|
|
269
|
-
return
|
|
269
|
+
return de_AssociateFraudsterCommandError(output, context);
|
|
270
270
|
}
|
|
271
271
|
const data = await parseBody(output.body, context);
|
|
272
272
|
let contents = {};
|
|
273
|
-
contents =
|
|
273
|
+
contents = de_AssociateFraudsterResponse(data, context);
|
|
274
274
|
const response = {
|
|
275
275
|
$metadata: deserializeMetadata(output),
|
|
276
276
|
...contents,
|
|
277
277
|
};
|
|
278
278
|
return Promise.resolve(response);
|
|
279
279
|
};
|
|
280
|
-
const
|
|
280
|
+
const de_AssociateFraudsterCommandError = async (output, context) => {
|
|
281
281
|
const parsedOutput = {
|
|
282
282
|
...output,
|
|
283
283
|
body: await parseErrorBody(output.body, context),
|
|
@@ -286,25 +286,25 @@ const deserializeAws_json1_0AssociateFraudsterCommandError = async (output, cont
|
|
|
286
286
|
switch (errorCode) {
|
|
287
287
|
case "AccessDeniedException":
|
|
288
288
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
289
|
-
throw await
|
|
289
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
290
290
|
case "ConflictException":
|
|
291
291
|
case "com.amazonaws.voiceid#ConflictException":
|
|
292
|
-
throw await
|
|
292
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
293
293
|
case "InternalServerException":
|
|
294
294
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
296
296
|
case "ResourceNotFoundException":
|
|
297
297
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
298
|
-
throw await
|
|
298
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
299
299
|
case "ServiceQuotaExceededException":
|
|
300
300
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
301
|
-
throw await
|
|
301
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
302
302
|
case "ThrottlingException":
|
|
303
303
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
304
|
-
throw await
|
|
304
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
305
305
|
case "ValidationException":
|
|
306
306
|
case "com.amazonaws.voiceid#ValidationException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
308
308
|
default:
|
|
309
309
|
const parsedBody = parsedOutput.body;
|
|
310
310
|
throwDefaultError({
|
|
@@ -315,20 +315,20 @@ const deserializeAws_json1_0AssociateFraudsterCommandError = async (output, cont
|
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
export const
|
|
318
|
+
export const de_CreateDomainCommand = async (output, context) => {
|
|
319
319
|
if (output.statusCode >= 300) {
|
|
320
|
-
return
|
|
320
|
+
return de_CreateDomainCommandError(output, context);
|
|
321
321
|
}
|
|
322
322
|
const data = await parseBody(output.body, context);
|
|
323
323
|
let contents = {};
|
|
324
|
-
contents =
|
|
324
|
+
contents = de_CreateDomainResponse(data, context);
|
|
325
325
|
const response = {
|
|
326
326
|
$metadata: deserializeMetadata(output),
|
|
327
327
|
...contents,
|
|
328
328
|
};
|
|
329
329
|
return Promise.resolve(response);
|
|
330
330
|
};
|
|
331
|
-
const
|
|
331
|
+
const de_CreateDomainCommandError = async (output, context) => {
|
|
332
332
|
const parsedOutput = {
|
|
333
333
|
...output,
|
|
334
334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -337,25 +337,25 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
337
337
|
switch (errorCode) {
|
|
338
338
|
case "AccessDeniedException":
|
|
339
339
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
340
|
-
throw await
|
|
340
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
341
341
|
case "ConflictException":
|
|
342
342
|
case "com.amazonaws.voiceid#ConflictException":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
344
344
|
case "InternalServerException":
|
|
345
345
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
347
347
|
case "ResourceNotFoundException":
|
|
348
348
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
349
|
-
throw await
|
|
349
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
350
350
|
case "ServiceQuotaExceededException":
|
|
351
351
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
352
|
-
throw await
|
|
352
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
353
353
|
case "ThrottlingException":
|
|
354
354
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
355
|
-
throw await
|
|
355
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
356
356
|
case "ValidationException":
|
|
357
357
|
case "com.amazonaws.voiceid#ValidationException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
359
|
default:
|
|
360
360
|
const parsedBody = parsedOutput.body;
|
|
361
361
|
throwDefaultError({
|
|
@@ -366,20 +366,20 @@ const deserializeAws_json1_0CreateDomainCommandError = async (output, context) =
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
|
-
export const
|
|
369
|
+
export const de_CreateWatchlistCommand = async (output, context) => {
|
|
370
370
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
371
|
+
return de_CreateWatchlistCommandError(output, context);
|
|
372
372
|
}
|
|
373
373
|
const data = await parseBody(output.body, context);
|
|
374
374
|
let contents = {};
|
|
375
|
-
contents =
|
|
375
|
+
contents = de_CreateWatchlistResponse(data, context);
|
|
376
376
|
const response = {
|
|
377
377
|
$metadata: deserializeMetadata(output),
|
|
378
378
|
...contents,
|
|
379
379
|
};
|
|
380
380
|
return Promise.resolve(response);
|
|
381
381
|
};
|
|
382
|
-
const
|
|
382
|
+
const de_CreateWatchlistCommandError = async (output, context) => {
|
|
383
383
|
const parsedOutput = {
|
|
384
384
|
...output,
|
|
385
385
|
body: await parseErrorBody(output.body, context),
|
|
@@ -388,25 +388,25 @@ const deserializeAws_json1_0CreateWatchlistCommandError = async (output, context
|
|
|
388
388
|
switch (errorCode) {
|
|
389
389
|
case "AccessDeniedException":
|
|
390
390
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
391
|
-
throw await
|
|
391
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
392
392
|
case "ConflictException":
|
|
393
393
|
case "com.amazonaws.voiceid#ConflictException":
|
|
394
|
-
throw await
|
|
394
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
395
395
|
case "InternalServerException":
|
|
396
396
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
397
|
-
throw await
|
|
397
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
398
|
case "ResourceNotFoundException":
|
|
399
399
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
400
|
-
throw await
|
|
400
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
401
401
|
case "ServiceQuotaExceededException":
|
|
402
402
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
403
|
-
throw await
|
|
403
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
404
404
|
case "ThrottlingException":
|
|
405
405
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
406
|
-
throw await
|
|
406
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
407
407
|
case "ValidationException":
|
|
408
408
|
case "com.amazonaws.voiceid#ValidationException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
410
410
|
default:
|
|
411
411
|
const parsedBody = parsedOutput.body;
|
|
412
412
|
throwDefaultError({
|
|
@@ -417,9 +417,9 @@ const deserializeAws_json1_0CreateWatchlistCommandError = async (output, context
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
export const
|
|
420
|
+
export const de_DeleteDomainCommand = async (output, context) => {
|
|
421
421
|
if (output.statusCode >= 300) {
|
|
422
|
-
return
|
|
422
|
+
return de_DeleteDomainCommandError(output, context);
|
|
423
423
|
}
|
|
424
424
|
await collectBody(output.body, context);
|
|
425
425
|
const response = {
|
|
@@ -427,7 +427,7 @@ export const deserializeAws_json1_0DeleteDomainCommand = async (output, context)
|
|
|
427
427
|
};
|
|
428
428
|
return Promise.resolve(response);
|
|
429
429
|
};
|
|
430
|
-
const
|
|
430
|
+
const de_DeleteDomainCommandError = async (output, context) => {
|
|
431
431
|
const parsedOutput = {
|
|
432
432
|
...output,
|
|
433
433
|
body: await parseErrorBody(output.body, context),
|
|
@@ -436,22 +436,22 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
|
|
|
436
436
|
switch (errorCode) {
|
|
437
437
|
case "AccessDeniedException":
|
|
438
438
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
439
|
-
throw await
|
|
439
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
440
440
|
case "ConflictException":
|
|
441
441
|
case "com.amazonaws.voiceid#ConflictException":
|
|
442
|
-
throw await
|
|
442
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
443
443
|
case "InternalServerException":
|
|
444
444
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
445
|
-
throw await
|
|
445
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
446
446
|
case "ResourceNotFoundException":
|
|
447
447
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
449
|
case "ThrottlingException":
|
|
450
450
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
452
452
|
case "ValidationException":
|
|
453
453
|
case "com.amazonaws.voiceid#ValidationException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
455
455
|
default:
|
|
456
456
|
const parsedBody = parsedOutput.body;
|
|
457
457
|
throwDefaultError({
|
|
@@ -462,9 +462,9 @@ const deserializeAws_json1_0DeleteDomainCommandError = async (output, context) =
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
export const
|
|
465
|
+
export const de_DeleteFraudsterCommand = async (output, context) => {
|
|
466
466
|
if (output.statusCode >= 300) {
|
|
467
|
-
return
|
|
467
|
+
return de_DeleteFraudsterCommandError(output, context);
|
|
468
468
|
}
|
|
469
469
|
await collectBody(output.body, context);
|
|
470
470
|
const response = {
|
|
@@ -472,7 +472,7 @@ export const deserializeAws_json1_0DeleteFraudsterCommand = async (output, conte
|
|
|
472
472
|
};
|
|
473
473
|
return Promise.resolve(response);
|
|
474
474
|
};
|
|
475
|
-
const
|
|
475
|
+
const de_DeleteFraudsterCommandError = async (output, context) => {
|
|
476
476
|
const parsedOutput = {
|
|
477
477
|
...output,
|
|
478
478
|
body: await parseErrorBody(output.body, context),
|
|
@@ -481,22 +481,22 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
|
|
|
481
481
|
switch (errorCode) {
|
|
482
482
|
case "AccessDeniedException":
|
|
483
483
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
484
|
-
throw await
|
|
484
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
485
485
|
case "ConflictException":
|
|
486
486
|
case "com.amazonaws.voiceid#ConflictException":
|
|
487
|
-
throw await
|
|
487
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
488
488
|
case "InternalServerException":
|
|
489
489
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
490
|
-
throw await
|
|
490
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
491
491
|
case "ResourceNotFoundException":
|
|
492
492
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
494
494
|
case "ThrottlingException":
|
|
495
495
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
497
497
|
case "ValidationException":
|
|
498
498
|
case "com.amazonaws.voiceid#ValidationException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
500
|
default:
|
|
501
501
|
const parsedBody = parsedOutput.body;
|
|
502
502
|
throwDefaultError({
|
|
@@ -507,9 +507,9 @@ const deserializeAws_json1_0DeleteFraudsterCommandError = async (output, context
|
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
-
export const
|
|
510
|
+
export const de_DeleteSpeakerCommand = async (output, context) => {
|
|
511
511
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
512
|
+
return de_DeleteSpeakerCommandError(output, context);
|
|
513
513
|
}
|
|
514
514
|
await collectBody(output.body, context);
|
|
515
515
|
const response = {
|
|
@@ -517,7 +517,7 @@ export const deserializeAws_json1_0DeleteSpeakerCommand = async (output, context
|
|
|
517
517
|
};
|
|
518
518
|
return Promise.resolve(response);
|
|
519
519
|
};
|
|
520
|
-
const
|
|
520
|
+
const de_DeleteSpeakerCommandError = async (output, context) => {
|
|
521
521
|
const parsedOutput = {
|
|
522
522
|
...output,
|
|
523
523
|
body: await parseErrorBody(output.body, context),
|
|
@@ -526,22 +526,22 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
526
526
|
switch (errorCode) {
|
|
527
527
|
case "AccessDeniedException":
|
|
528
528
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
529
|
-
throw await
|
|
529
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
530
530
|
case "ConflictException":
|
|
531
531
|
case "com.amazonaws.voiceid#ConflictException":
|
|
532
|
-
throw await
|
|
532
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
533
533
|
case "InternalServerException":
|
|
534
534
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
535
|
-
throw await
|
|
535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
536
536
|
case "ResourceNotFoundException":
|
|
537
537
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
538
|
-
throw await
|
|
538
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
539
539
|
case "ThrottlingException":
|
|
540
540
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
541
|
-
throw await
|
|
541
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
542
542
|
case "ValidationException":
|
|
543
543
|
case "com.amazonaws.voiceid#ValidationException":
|
|
544
|
-
throw await
|
|
544
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
545
545
|
default:
|
|
546
546
|
const parsedBody = parsedOutput.body;
|
|
547
547
|
throwDefaultError({
|
|
@@ -552,9 +552,9 @@ const deserializeAws_json1_0DeleteSpeakerCommandError = async (output, context)
|
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
|
-
export const
|
|
555
|
+
export const de_DeleteWatchlistCommand = async (output, context) => {
|
|
556
556
|
if (output.statusCode >= 300) {
|
|
557
|
-
return
|
|
557
|
+
return de_DeleteWatchlistCommandError(output, context);
|
|
558
558
|
}
|
|
559
559
|
await collectBody(output.body, context);
|
|
560
560
|
const response = {
|
|
@@ -562,7 +562,7 @@ export const deserializeAws_json1_0DeleteWatchlistCommand = async (output, conte
|
|
|
562
562
|
};
|
|
563
563
|
return Promise.resolve(response);
|
|
564
564
|
};
|
|
565
|
-
const
|
|
565
|
+
const de_DeleteWatchlistCommandError = async (output, context) => {
|
|
566
566
|
const parsedOutput = {
|
|
567
567
|
...output,
|
|
568
568
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,22 +571,22 @@ const deserializeAws_json1_0DeleteWatchlistCommandError = async (output, context
|
|
|
571
571
|
switch (errorCode) {
|
|
572
572
|
case "AccessDeniedException":
|
|
573
573
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
574
|
-
throw await
|
|
574
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
575
|
case "ConflictException":
|
|
576
576
|
case "com.amazonaws.voiceid#ConflictException":
|
|
577
|
-
throw await
|
|
577
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
578
578
|
case "InternalServerException":
|
|
579
579
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
581
|
case "ResourceNotFoundException":
|
|
582
582
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
584
|
case "ThrottlingException":
|
|
585
585
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
587
587
|
case "ValidationException":
|
|
588
588
|
case "com.amazonaws.voiceid#ValidationException":
|
|
589
|
-
throw await
|
|
589
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
590
590
|
default:
|
|
591
591
|
const parsedBody = parsedOutput.body;
|
|
592
592
|
throwDefaultError({
|
|
@@ -597,20 +597,20 @@ const deserializeAws_json1_0DeleteWatchlistCommandError = async (output, context
|
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
|
-
export const
|
|
600
|
+
export const de_DescribeDomainCommand = async (output, context) => {
|
|
601
601
|
if (output.statusCode >= 300) {
|
|
602
|
-
return
|
|
602
|
+
return de_DescribeDomainCommandError(output, context);
|
|
603
603
|
}
|
|
604
604
|
const data = await parseBody(output.body, context);
|
|
605
605
|
let contents = {};
|
|
606
|
-
contents =
|
|
606
|
+
contents = de_DescribeDomainResponse(data, context);
|
|
607
607
|
const response = {
|
|
608
608
|
$metadata: deserializeMetadata(output),
|
|
609
609
|
...contents,
|
|
610
610
|
};
|
|
611
611
|
return Promise.resolve(response);
|
|
612
612
|
};
|
|
613
|
-
const
|
|
613
|
+
const de_DescribeDomainCommandError = async (output, context) => {
|
|
614
614
|
const parsedOutput = {
|
|
615
615
|
...output,
|
|
616
616
|
body: await parseErrorBody(output.body, context),
|
|
@@ -619,19 +619,19 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
619
619
|
switch (errorCode) {
|
|
620
620
|
case "AccessDeniedException":
|
|
621
621
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
623
623
|
case "InternalServerException":
|
|
624
624
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
625
|
-
throw await
|
|
625
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
626
626
|
case "ResourceNotFoundException":
|
|
627
627
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
629
629
|
case "ThrottlingException":
|
|
630
630
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
632
632
|
case "ValidationException":
|
|
633
633
|
case "com.amazonaws.voiceid#ValidationException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
635
|
default:
|
|
636
636
|
const parsedBody = parsedOutput.body;
|
|
637
637
|
throwDefaultError({
|
|
@@ -642,20 +642,20 @@ const deserializeAws_json1_0DescribeDomainCommandError = async (output, context)
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
|
-
export const
|
|
645
|
+
export const de_DescribeFraudsterCommand = async (output, context) => {
|
|
646
646
|
if (output.statusCode >= 300) {
|
|
647
|
-
return
|
|
647
|
+
return de_DescribeFraudsterCommandError(output, context);
|
|
648
648
|
}
|
|
649
649
|
const data = await parseBody(output.body, context);
|
|
650
650
|
let contents = {};
|
|
651
|
-
contents =
|
|
651
|
+
contents = de_DescribeFraudsterResponse(data, context);
|
|
652
652
|
const response = {
|
|
653
653
|
$metadata: deserializeMetadata(output),
|
|
654
654
|
...contents,
|
|
655
655
|
};
|
|
656
656
|
return Promise.resolve(response);
|
|
657
657
|
};
|
|
658
|
-
const
|
|
658
|
+
const de_DescribeFraudsterCommandError = async (output, context) => {
|
|
659
659
|
const parsedOutput = {
|
|
660
660
|
...output,
|
|
661
661
|
body: await parseErrorBody(output.body, context),
|
|
@@ -664,19 +664,19 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
|
|
|
664
664
|
switch (errorCode) {
|
|
665
665
|
case "AccessDeniedException":
|
|
666
666
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
667
|
-
throw await
|
|
667
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
668
668
|
case "InternalServerException":
|
|
669
669
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
670
|
-
throw await
|
|
670
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
671
671
|
case "ResourceNotFoundException":
|
|
672
672
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
673
|
-
throw await
|
|
673
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
674
674
|
case "ThrottlingException":
|
|
675
675
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
676
|
-
throw await
|
|
676
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
677
677
|
case "ValidationException":
|
|
678
678
|
case "com.amazonaws.voiceid#ValidationException":
|
|
679
|
-
throw await
|
|
679
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
680
|
default:
|
|
681
681
|
const parsedBody = parsedOutput.body;
|
|
682
682
|
throwDefaultError({
|
|
@@ -687,20 +687,20 @@ const deserializeAws_json1_0DescribeFraudsterCommandError = async (output, conte
|
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
export const
|
|
690
|
+
export const de_DescribeFraudsterRegistrationJobCommand = async (output, context) => {
|
|
691
691
|
if (output.statusCode >= 300) {
|
|
692
|
-
return
|
|
692
|
+
return de_DescribeFraudsterRegistrationJobCommandError(output, context);
|
|
693
693
|
}
|
|
694
694
|
const data = await parseBody(output.body, context);
|
|
695
695
|
let contents = {};
|
|
696
|
-
contents =
|
|
696
|
+
contents = de_DescribeFraudsterRegistrationJobResponse(data, context);
|
|
697
697
|
const response = {
|
|
698
698
|
$metadata: deserializeMetadata(output),
|
|
699
699
|
...contents,
|
|
700
700
|
};
|
|
701
701
|
return Promise.resolve(response);
|
|
702
702
|
};
|
|
703
|
-
const
|
|
703
|
+
const de_DescribeFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
704
704
|
const parsedOutput = {
|
|
705
705
|
...output,
|
|
706
706
|
body: await parseErrorBody(output.body, context),
|
|
@@ -709,19 +709,19 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
|
|
|
709
709
|
switch (errorCode) {
|
|
710
710
|
case "AccessDeniedException":
|
|
711
711
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
712
|
-
throw await
|
|
712
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
713
|
case "InternalServerException":
|
|
714
714
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
715
|
-
throw await
|
|
715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
716
|
case "ResourceNotFoundException":
|
|
717
717
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
719
|
case "ThrottlingException":
|
|
720
720
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
722
|
case "ValidationException":
|
|
723
723
|
case "com.amazonaws.voiceid#ValidationException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
725
|
default:
|
|
726
726
|
const parsedBody = parsedOutput.body;
|
|
727
727
|
throwDefaultError({
|
|
@@ -732,20 +732,20 @@ const deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = async
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
export const
|
|
735
|
+
export const de_DescribeSpeakerCommand = async (output, context) => {
|
|
736
736
|
if (output.statusCode >= 300) {
|
|
737
|
-
return
|
|
737
|
+
return de_DescribeSpeakerCommandError(output, context);
|
|
738
738
|
}
|
|
739
739
|
const data = await parseBody(output.body, context);
|
|
740
740
|
let contents = {};
|
|
741
|
-
contents =
|
|
741
|
+
contents = de_DescribeSpeakerResponse(data, context);
|
|
742
742
|
const response = {
|
|
743
743
|
$metadata: deserializeMetadata(output),
|
|
744
744
|
...contents,
|
|
745
745
|
};
|
|
746
746
|
return Promise.resolve(response);
|
|
747
747
|
};
|
|
748
|
-
const
|
|
748
|
+
const de_DescribeSpeakerCommandError = async (output, context) => {
|
|
749
749
|
const parsedOutput = {
|
|
750
750
|
...output,
|
|
751
751
|
body: await parseErrorBody(output.body, context),
|
|
@@ -754,19 +754,19 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
|
|
|
754
754
|
switch (errorCode) {
|
|
755
755
|
case "AccessDeniedException":
|
|
756
756
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
758
758
|
case "InternalServerException":
|
|
759
759
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
761
761
|
case "ResourceNotFoundException":
|
|
762
762
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
764
764
|
case "ThrottlingException":
|
|
765
765
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ValidationException":
|
|
768
768
|
case "com.amazonaws.voiceid#ValidationException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
770
|
default:
|
|
771
771
|
const parsedBody = parsedOutput.body;
|
|
772
772
|
throwDefaultError({
|
|
@@ -777,20 +777,20 @@ const deserializeAws_json1_0DescribeSpeakerCommandError = async (output, context
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
export const
|
|
780
|
+
export const de_DescribeSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
781
781
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
782
|
+
return de_DescribeSpeakerEnrollmentJobCommandError(output, context);
|
|
783
783
|
}
|
|
784
784
|
const data = await parseBody(output.body, context);
|
|
785
785
|
let contents = {};
|
|
786
|
-
contents =
|
|
786
|
+
contents = de_DescribeSpeakerEnrollmentJobResponse(data, context);
|
|
787
787
|
const response = {
|
|
788
788
|
$metadata: deserializeMetadata(output),
|
|
789
789
|
...contents,
|
|
790
790
|
};
|
|
791
791
|
return Promise.resolve(response);
|
|
792
792
|
};
|
|
793
|
-
const
|
|
793
|
+
const de_DescribeSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -799,19 +799,19 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
799
799
|
switch (errorCode) {
|
|
800
800
|
case "AccessDeniedException":
|
|
801
801
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
802
|
-
throw await
|
|
802
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
803
803
|
case "InternalServerException":
|
|
804
804
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
805
|
-
throw await
|
|
805
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
806
806
|
case "ResourceNotFoundException":
|
|
807
807
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
809
|
case "ThrottlingException":
|
|
810
810
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
811
|
-
throw await
|
|
811
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
812
812
|
case "ValidationException":
|
|
813
813
|
case "com.amazonaws.voiceid#ValidationException":
|
|
814
|
-
throw await
|
|
814
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
815
815
|
default:
|
|
816
816
|
const parsedBody = parsedOutput.body;
|
|
817
817
|
throwDefaultError({
|
|
@@ -822,20 +822,20 @@ const deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = async (ou
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
|
-
export const
|
|
825
|
+
export const de_DescribeWatchlistCommand = async (output, context) => {
|
|
826
826
|
if (output.statusCode >= 300) {
|
|
827
|
-
return
|
|
827
|
+
return de_DescribeWatchlistCommandError(output, context);
|
|
828
828
|
}
|
|
829
829
|
const data = await parseBody(output.body, context);
|
|
830
830
|
let contents = {};
|
|
831
|
-
contents =
|
|
831
|
+
contents = de_DescribeWatchlistResponse(data, context);
|
|
832
832
|
const response = {
|
|
833
833
|
$metadata: deserializeMetadata(output),
|
|
834
834
|
...contents,
|
|
835
835
|
};
|
|
836
836
|
return Promise.resolve(response);
|
|
837
837
|
};
|
|
838
|
-
const
|
|
838
|
+
const de_DescribeWatchlistCommandError = async (output, context) => {
|
|
839
839
|
const parsedOutput = {
|
|
840
840
|
...output,
|
|
841
841
|
body: await parseErrorBody(output.body, context),
|
|
@@ -844,19 +844,19 @@ const deserializeAws_json1_0DescribeWatchlistCommandError = async (output, conte
|
|
|
844
844
|
switch (errorCode) {
|
|
845
845
|
case "AccessDeniedException":
|
|
846
846
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
848
848
|
case "InternalServerException":
|
|
849
849
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
851
851
|
case "ResourceNotFoundException":
|
|
852
852
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
853
|
-
throw await
|
|
853
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
854
854
|
case "ThrottlingException":
|
|
855
855
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
856
|
-
throw await
|
|
856
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
857
857
|
case "ValidationException":
|
|
858
858
|
case "com.amazonaws.voiceid#ValidationException":
|
|
859
|
-
throw await
|
|
859
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
860
|
default:
|
|
861
861
|
const parsedBody = parsedOutput.body;
|
|
862
862
|
throwDefaultError({
|
|
@@ -867,20 +867,20 @@ const deserializeAws_json1_0DescribeWatchlistCommandError = async (output, conte
|
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
|
-
export const
|
|
870
|
+
export const de_DisassociateFraudsterCommand = async (output, context) => {
|
|
871
871
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
872
|
+
return de_DisassociateFraudsterCommandError(output, context);
|
|
873
873
|
}
|
|
874
874
|
const data = await parseBody(output.body, context);
|
|
875
875
|
let contents = {};
|
|
876
|
-
contents =
|
|
876
|
+
contents = de_DisassociateFraudsterResponse(data, context);
|
|
877
877
|
const response = {
|
|
878
878
|
$metadata: deserializeMetadata(output),
|
|
879
879
|
...contents,
|
|
880
880
|
};
|
|
881
881
|
return Promise.resolve(response);
|
|
882
882
|
};
|
|
883
|
-
const
|
|
883
|
+
const de_DisassociateFraudsterCommandError = async (output, context) => {
|
|
884
884
|
const parsedOutput = {
|
|
885
885
|
...output,
|
|
886
886
|
body: await parseErrorBody(output.body, context),
|
|
@@ -889,22 +889,22 @@ const deserializeAws_json1_0DisassociateFraudsterCommandError = async (output, c
|
|
|
889
889
|
switch (errorCode) {
|
|
890
890
|
case "AccessDeniedException":
|
|
891
891
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
892
|
-
throw await
|
|
892
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
893
|
case "ConflictException":
|
|
894
894
|
case "com.amazonaws.voiceid#ConflictException":
|
|
895
|
-
throw await
|
|
895
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
896
896
|
case "InternalServerException":
|
|
897
897
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
898
|
-
throw await
|
|
898
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
899
899
|
case "ResourceNotFoundException":
|
|
900
900
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
901
|
-
throw await
|
|
901
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
902
902
|
case "ThrottlingException":
|
|
903
903
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
904
|
-
throw await
|
|
904
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
905
905
|
case "ValidationException":
|
|
906
906
|
case "com.amazonaws.voiceid#ValidationException":
|
|
907
|
-
throw await
|
|
907
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
908
|
default:
|
|
909
909
|
const parsedBody = parsedOutput.body;
|
|
910
910
|
throwDefaultError({
|
|
@@ -915,20 +915,20 @@ const deserializeAws_json1_0DisassociateFraudsterCommandError = async (output, c
|
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
|
-
export const
|
|
918
|
+
export const de_EvaluateSessionCommand = async (output, context) => {
|
|
919
919
|
if (output.statusCode >= 300) {
|
|
920
|
-
return
|
|
920
|
+
return de_EvaluateSessionCommandError(output, context);
|
|
921
921
|
}
|
|
922
922
|
const data = await parseBody(output.body, context);
|
|
923
923
|
let contents = {};
|
|
924
|
-
contents =
|
|
924
|
+
contents = de_EvaluateSessionResponse(data, context);
|
|
925
925
|
const response = {
|
|
926
926
|
$metadata: deserializeMetadata(output),
|
|
927
927
|
...contents,
|
|
928
928
|
};
|
|
929
929
|
return Promise.resolve(response);
|
|
930
930
|
};
|
|
931
|
-
const
|
|
931
|
+
const de_EvaluateSessionCommandError = async (output, context) => {
|
|
932
932
|
const parsedOutput = {
|
|
933
933
|
...output,
|
|
934
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -937,22 +937,22 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
937
937
|
switch (errorCode) {
|
|
938
938
|
case "AccessDeniedException":
|
|
939
939
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
940
|
-
throw await
|
|
940
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
941
941
|
case "ConflictException":
|
|
942
942
|
case "com.amazonaws.voiceid#ConflictException":
|
|
943
|
-
throw await
|
|
943
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
944
944
|
case "InternalServerException":
|
|
945
945
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
946
|
-
throw await
|
|
946
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
947
947
|
case "ResourceNotFoundException":
|
|
948
948
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
949
|
-
throw await
|
|
949
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
950
950
|
case "ThrottlingException":
|
|
951
951
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
952
|
-
throw await
|
|
952
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
953
953
|
case "ValidationException":
|
|
954
954
|
case "com.amazonaws.voiceid#ValidationException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
956
|
default:
|
|
957
957
|
const parsedBody = parsedOutput.body;
|
|
958
958
|
throwDefaultError({
|
|
@@ -963,20 +963,20 @@ const deserializeAws_json1_0EvaluateSessionCommandError = async (output, context
|
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
|
-
export const
|
|
966
|
+
export const de_ListDomainsCommand = async (output, context) => {
|
|
967
967
|
if (output.statusCode >= 300) {
|
|
968
|
-
return
|
|
968
|
+
return de_ListDomainsCommandError(output, context);
|
|
969
969
|
}
|
|
970
970
|
const data = await parseBody(output.body, context);
|
|
971
971
|
let contents = {};
|
|
972
|
-
contents =
|
|
972
|
+
contents = de_ListDomainsResponse(data, context);
|
|
973
973
|
const response = {
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
975
975
|
...contents,
|
|
976
976
|
};
|
|
977
977
|
return Promise.resolve(response);
|
|
978
978
|
};
|
|
979
|
-
const
|
|
979
|
+
const de_ListDomainsCommandError = async (output, context) => {
|
|
980
980
|
const parsedOutput = {
|
|
981
981
|
...output,
|
|
982
982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -985,16 +985,16 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
985
985
|
switch (errorCode) {
|
|
986
986
|
case "AccessDeniedException":
|
|
987
987
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
989
989
|
case "InternalServerException":
|
|
990
990
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
991
|
-
throw await
|
|
991
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
992
992
|
case "ThrottlingException":
|
|
993
993
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
994
|
-
throw await
|
|
994
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
995
995
|
case "ValidationException":
|
|
996
996
|
case "com.amazonaws.voiceid#ValidationException":
|
|
997
|
-
throw await
|
|
997
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
998
998
|
default:
|
|
999
999
|
const parsedBody = parsedOutput.body;
|
|
1000
1000
|
throwDefaultError({
|
|
@@ -1005,20 +1005,20 @@ const deserializeAws_json1_0ListDomainsCommandError = async (output, context) =>
|
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
export const
|
|
1008
|
+
export const de_ListFraudsterRegistrationJobsCommand = async (output, context) => {
|
|
1009
1009
|
if (output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
1010
|
+
return de_ListFraudsterRegistrationJobsCommandError(output, context);
|
|
1011
1011
|
}
|
|
1012
1012
|
const data = await parseBody(output.body, context);
|
|
1013
1013
|
let contents = {};
|
|
1014
|
-
contents =
|
|
1014
|
+
contents = de_ListFraudsterRegistrationJobsResponse(data, context);
|
|
1015
1015
|
const response = {
|
|
1016
1016
|
$metadata: deserializeMetadata(output),
|
|
1017
1017
|
...contents,
|
|
1018
1018
|
};
|
|
1019
1019
|
return Promise.resolve(response);
|
|
1020
1020
|
};
|
|
1021
|
-
const
|
|
1021
|
+
const de_ListFraudsterRegistrationJobsCommandError = async (output, context) => {
|
|
1022
1022
|
const parsedOutput = {
|
|
1023
1023
|
...output,
|
|
1024
1024
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1027,19 +1027,19 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
1027
1027
|
switch (errorCode) {
|
|
1028
1028
|
case "AccessDeniedException":
|
|
1029
1029
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1030
|
-
throw await
|
|
1030
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1031
1031
|
case "InternalServerException":
|
|
1032
1032
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1033
|
-
throw await
|
|
1033
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1034
1034
|
case "ResourceNotFoundException":
|
|
1035
1035
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1036
|
-
throw await
|
|
1036
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1037
1037
|
case "ThrottlingException":
|
|
1038
1038
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1039
|
-
throw await
|
|
1039
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1040
1040
|
case "ValidationException":
|
|
1041
1041
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1042
|
-
throw await
|
|
1042
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1043
1043
|
default:
|
|
1044
1044
|
const parsedBody = parsedOutput.body;
|
|
1045
1045
|
throwDefaultError({
|
|
@@ -1050,20 +1050,20 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = async (o
|
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
export const
|
|
1053
|
+
export const de_ListFraudstersCommand = async (output, context) => {
|
|
1054
1054
|
if (output.statusCode >= 300) {
|
|
1055
|
-
return
|
|
1055
|
+
return de_ListFraudstersCommandError(output, context);
|
|
1056
1056
|
}
|
|
1057
1057
|
const data = await parseBody(output.body, context);
|
|
1058
1058
|
let contents = {};
|
|
1059
|
-
contents =
|
|
1059
|
+
contents = de_ListFraudstersResponse(data, context);
|
|
1060
1060
|
const response = {
|
|
1061
1061
|
$metadata: deserializeMetadata(output),
|
|
1062
1062
|
...contents,
|
|
1063
1063
|
};
|
|
1064
1064
|
return Promise.resolve(response);
|
|
1065
1065
|
};
|
|
1066
|
-
const
|
|
1066
|
+
const de_ListFraudstersCommandError = async (output, context) => {
|
|
1067
1067
|
const parsedOutput = {
|
|
1068
1068
|
...output,
|
|
1069
1069
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1072,19 +1072,19 @@ const deserializeAws_json1_0ListFraudstersCommandError = async (output, context)
|
|
|
1072
1072
|
switch (errorCode) {
|
|
1073
1073
|
case "AccessDeniedException":
|
|
1074
1074
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1076
1076
|
case "InternalServerException":
|
|
1077
1077
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1078
|
-
throw await
|
|
1078
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1079
1079
|
case "ResourceNotFoundException":
|
|
1080
1080
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1081
|
-
throw await
|
|
1081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
1082
|
case "ThrottlingException":
|
|
1083
1083
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1084
|
-
throw await
|
|
1084
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1085
1085
|
case "ValidationException":
|
|
1086
1086
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1087
|
-
throw await
|
|
1087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
1088
|
default:
|
|
1089
1089
|
const parsedBody = parsedOutput.body;
|
|
1090
1090
|
throwDefaultError({
|
|
@@ -1095,20 +1095,20 @@ const deserializeAws_json1_0ListFraudstersCommandError = async (output, context)
|
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
};
|
|
1098
|
-
export const
|
|
1098
|
+
export const de_ListSpeakerEnrollmentJobsCommand = async (output, context) => {
|
|
1099
1099
|
if (output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
1100
|
+
return de_ListSpeakerEnrollmentJobsCommandError(output, context);
|
|
1101
1101
|
}
|
|
1102
1102
|
const data = await parseBody(output.body, context);
|
|
1103
1103
|
let contents = {};
|
|
1104
|
-
contents =
|
|
1104
|
+
contents = de_ListSpeakerEnrollmentJobsResponse(data, context);
|
|
1105
1105
|
const response = {
|
|
1106
1106
|
$metadata: deserializeMetadata(output),
|
|
1107
1107
|
...contents,
|
|
1108
1108
|
};
|
|
1109
1109
|
return Promise.resolve(response);
|
|
1110
1110
|
};
|
|
1111
|
-
const
|
|
1111
|
+
const de_ListSpeakerEnrollmentJobsCommandError = async (output, context) => {
|
|
1112
1112
|
const parsedOutput = {
|
|
1113
1113
|
...output,
|
|
1114
1114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1117,19 +1117,19 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
1117
1117
|
switch (errorCode) {
|
|
1118
1118
|
case "AccessDeniedException":
|
|
1119
1119
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1120
|
-
throw await
|
|
1120
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1121
1121
|
case "InternalServerException":
|
|
1122
1122
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1123
|
-
throw await
|
|
1123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1124
1124
|
case "ResourceNotFoundException":
|
|
1125
1125
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1126
|
-
throw await
|
|
1126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1127
1127
|
case "ThrottlingException":
|
|
1128
1128
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1129
|
-
throw await
|
|
1129
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1130
1130
|
case "ValidationException":
|
|
1131
1131
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1132
|
-
throw await
|
|
1132
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1133
1133
|
default:
|
|
1134
1134
|
const parsedBody = parsedOutput.body;
|
|
1135
1135
|
throwDefaultError({
|
|
@@ -1140,20 +1140,20 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = async (outpu
|
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
1142
|
};
|
|
1143
|
-
export const
|
|
1143
|
+
export const de_ListSpeakersCommand = async (output, context) => {
|
|
1144
1144
|
if (output.statusCode >= 300) {
|
|
1145
|
-
return
|
|
1145
|
+
return de_ListSpeakersCommandError(output, context);
|
|
1146
1146
|
}
|
|
1147
1147
|
const data = await parseBody(output.body, context);
|
|
1148
1148
|
let contents = {};
|
|
1149
|
-
contents =
|
|
1149
|
+
contents = de_ListSpeakersResponse(data, context);
|
|
1150
1150
|
const response = {
|
|
1151
1151
|
$metadata: deserializeMetadata(output),
|
|
1152
1152
|
...contents,
|
|
1153
1153
|
};
|
|
1154
1154
|
return Promise.resolve(response);
|
|
1155
1155
|
};
|
|
1156
|
-
const
|
|
1156
|
+
const de_ListSpeakersCommandError = async (output, context) => {
|
|
1157
1157
|
const parsedOutput = {
|
|
1158
1158
|
...output,
|
|
1159
1159
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1162,19 +1162,19 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
1162
1162
|
switch (errorCode) {
|
|
1163
1163
|
case "AccessDeniedException":
|
|
1164
1164
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1165
|
-
throw await
|
|
1165
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
1166
|
case "InternalServerException":
|
|
1167
1167
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1168
|
-
throw await
|
|
1168
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1169
1169
|
case "ResourceNotFoundException":
|
|
1170
1170
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1171
|
-
throw await
|
|
1171
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
1172
|
case "ThrottlingException":
|
|
1173
1173
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1174
|
-
throw await
|
|
1174
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
1175
|
case "ValidationException":
|
|
1176
1176
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1177
|
-
throw await
|
|
1177
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1178
1178
|
default:
|
|
1179
1179
|
const parsedBody = parsedOutput.body;
|
|
1180
1180
|
throwDefaultError({
|
|
@@ -1185,20 +1185,20 @@ const deserializeAws_json1_0ListSpeakersCommandError = async (output, context) =
|
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
|
-
export const
|
|
1188
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1189
1189
|
if (output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
1190
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1191
1191
|
}
|
|
1192
1192
|
const data = await parseBody(output.body, context);
|
|
1193
1193
|
let contents = {};
|
|
1194
|
-
contents =
|
|
1194
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1195
1195
|
const response = {
|
|
1196
1196
|
$metadata: deserializeMetadata(output),
|
|
1197
1197
|
...contents,
|
|
1198
1198
|
};
|
|
1199
1199
|
return Promise.resolve(response);
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1202
1202
|
const parsedOutput = {
|
|
1203
1203
|
...output,
|
|
1204
1204
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1207,19 +1207,19 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1207
1207
|
switch (errorCode) {
|
|
1208
1208
|
case "AccessDeniedException":
|
|
1209
1209
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1210
|
-
throw await
|
|
1210
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1211
1211
|
case "InternalServerException":
|
|
1212
1212
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1213
|
-
throw await
|
|
1213
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1214
1214
|
case "ResourceNotFoundException":
|
|
1215
1215
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1216
|
-
throw await
|
|
1216
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1217
1217
|
case "ThrottlingException":
|
|
1218
1218
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1219
|
-
throw await
|
|
1219
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1220
1220
|
case "ValidationException":
|
|
1221
1221
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1222
|
-
throw await
|
|
1222
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
1223
|
default:
|
|
1224
1224
|
const parsedBody = parsedOutput.body;
|
|
1225
1225
|
throwDefaultError({
|
|
@@ -1230,20 +1230,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
1233
|
-
export const
|
|
1233
|
+
export const de_ListWatchlistsCommand = async (output, context) => {
|
|
1234
1234
|
if (output.statusCode >= 300) {
|
|
1235
|
-
return
|
|
1235
|
+
return de_ListWatchlistsCommandError(output, context);
|
|
1236
1236
|
}
|
|
1237
1237
|
const data = await parseBody(output.body, context);
|
|
1238
1238
|
let contents = {};
|
|
1239
|
-
contents =
|
|
1239
|
+
contents = de_ListWatchlistsResponse(data, context);
|
|
1240
1240
|
const response = {
|
|
1241
1241
|
$metadata: deserializeMetadata(output),
|
|
1242
1242
|
...contents,
|
|
1243
1243
|
};
|
|
1244
1244
|
return Promise.resolve(response);
|
|
1245
1245
|
};
|
|
1246
|
-
const
|
|
1246
|
+
const de_ListWatchlistsCommandError = async (output, context) => {
|
|
1247
1247
|
const parsedOutput = {
|
|
1248
1248
|
...output,
|
|
1249
1249
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1252,19 +1252,19 @@ const deserializeAws_json1_0ListWatchlistsCommandError = async (output, context)
|
|
|
1252
1252
|
switch (errorCode) {
|
|
1253
1253
|
case "AccessDeniedException":
|
|
1254
1254
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1255
|
-
throw await
|
|
1255
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1256
1256
|
case "InternalServerException":
|
|
1257
1257
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1258
|
-
throw await
|
|
1258
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1259
1259
|
case "ResourceNotFoundException":
|
|
1260
1260
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1261
|
-
throw await
|
|
1261
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
1262
|
case "ThrottlingException":
|
|
1263
1263
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1264
|
-
throw await
|
|
1264
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1265
1265
|
case "ValidationException":
|
|
1266
1266
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1267
|
-
throw await
|
|
1267
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
1268
|
default:
|
|
1269
1269
|
const parsedBody = parsedOutput.body;
|
|
1270
1270
|
throwDefaultError({
|
|
@@ -1275,20 +1275,20 @@ const deserializeAws_json1_0ListWatchlistsCommandError = async (output, context)
|
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
};
|
|
1278
|
-
export const
|
|
1278
|
+
export const de_OptOutSpeakerCommand = async (output, context) => {
|
|
1279
1279
|
if (output.statusCode >= 300) {
|
|
1280
|
-
return
|
|
1280
|
+
return de_OptOutSpeakerCommandError(output, context);
|
|
1281
1281
|
}
|
|
1282
1282
|
const data = await parseBody(output.body, context);
|
|
1283
1283
|
let contents = {};
|
|
1284
|
-
contents =
|
|
1284
|
+
contents = de_OptOutSpeakerResponse(data, context);
|
|
1285
1285
|
const response = {
|
|
1286
1286
|
$metadata: deserializeMetadata(output),
|
|
1287
1287
|
...contents,
|
|
1288
1288
|
};
|
|
1289
1289
|
return Promise.resolve(response);
|
|
1290
1290
|
};
|
|
1291
|
-
const
|
|
1291
|
+
const de_OptOutSpeakerCommandError = async (output, context) => {
|
|
1292
1292
|
const parsedOutput = {
|
|
1293
1293
|
...output,
|
|
1294
1294
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1297,25 +1297,25 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
|
|
|
1297
1297
|
switch (errorCode) {
|
|
1298
1298
|
case "AccessDeniedException":
|
|
1299
1299
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1301
1301
|
case "ConflictException":
|
|
1302
1302
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1303
|
-
throw await
|
|
1303
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1304
1304
|
case "InternalServerException":
|
|
1305
1305
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1306
|
-
throw await
|
|
1306
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1307
1307
|
case "ResourceNotFoundException":
|
|
1308
1308
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1309
|
-
throw await
|
|
1309
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
1310
|
case "ServiceQuotaExceededException":
|
|
1311
1311
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1312
|
-
throw await
|
|
1312
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1313
1313
|
case "ThrottlingException":
|
|
1314
1314
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1315
|
-
throw await
|
|
1315
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1316
1316
|
case "ValidationException":
|
|
1317
1317
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1318
|
-
throw await
|
|
1318
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1319
1319
|
default:
|
|
1320
1320
|
const parsedBody = parsedOutput.body;
|
|
1321
1321
|
throwDefaultError({
|
|
@@ -1326,20 +1326,20 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
|
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
|
-
export const
|
|
1329
|
+
export const de_StartFraudsterRegistrationJobCommand = async (output, context) => {
|
|
1330
1330
|
if (output.statusCode >= 300) {
|
|
1331
|
-
return
|
|
1331
|
+
return de_StartFraudsterRegistrationJobCommandError(output, context);
|
|
1332
1332
|
}
|
|
1333
1333
|
const data = await parseBody(output.body, context);
|
|
1334
1334
|
let contents = {};
|
|
1335
|
-
contents =
|
|
1335
|
+
contents = de_StartFraudsterRegistrationJobResponse(data, context);
|
|
1336
1336
|
const response = {
|
|
1337
1337
|
$metadata: deserializeMetadata(output),
|
|
1338
1338
|
...contents,
|
|
1339
1339
|
};
|
|
1340
1340
|
return Promise.resolve(response);
|
|
1341
1341
|
};
|
|
1342
|
-
const
|
|
1342
|
+
const de_StartFraudsterRegistrationJobCommandError = async (output, context) => {
|
|
1343
1343
|
const parsedOutput = {
|
|
1344
1344
|
...output,
|
|
1345
1345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1348,25 +1348,25 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
|
|
|
1348
1348
|
switch (errorCode) {
|
|
1349
1349
|
case "AccessDeniedException":
|
|
1350
1350
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1351
|
-
throw await
|
|
1351
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1352
1352
|
case "ConflictException":
|
|
1353
1353
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1354
|
-
throw await
|
|
1354
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1355
1355
|
case "InternalServerException":
|
|
1356
1356
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1357
|
-
throw await
|
|
1357
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1358
1358
|
case "ResourceNotFoundException":
|
|
1359
1359
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1360
|
-
throw await
|
|
1360
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1361
1361
|
case "ServiceQuotaExceededException":
|
|
1362
1362
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1363
|
-
throw await
|
|
1363
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1364
1364
|
case "ThrottlingException":
|
|
1365
1365
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1366
|
-
throw await
|
|
1366
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1367
1367
|
case "ValidationException":
|
|
1368
1368
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1369
|
-
throw await
|
|
1369
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1370
1370
|
default:
|
|
1371
1371
|
const parsedBody = parsedOutput.body;
|
|
1372
1372
|
throwDefaultError({
|
|
@@ -1377,20 +1377,20 @@ const deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = async (o
|
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
1379
|
};
|
|
1380
|
-
export const
|
|
1380
|
+
export const de_StartSpeakerEnrollmentJobCommand = async (output, context) => {
|
|
1381
1381
|
if (output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
1382
|
+
return de_StartSpeakerEnrollmentJobCommandError(output, context);
|
|
1383
1383
|
}
|
|
1384
1384
|
const data = await parseBody(output.body, context);
|
|
1385
1385
|
let contents = {};
|
|
1386
|
-
contents =
|
|
1386
|
+
contents = de_StartSpeakerEnrollmentJobResponse(data, context);
|
|
1387
1387
|
const response = {
|
|
1388
1388
|
$metadata: deserializeMetadata(output),
|
|
1389
1389
|
...contents,
|
|
1390
1390
|
};
|
|
1391
1391
|
return Promise.resolve(response);
|
|
1392
1392
|
};
|
|
1393
|
-
const
|
|
1393
|
+
const de_StartSpeakerEnrollmentJobCommandError = async (output, context) => {
|
|
1394
1394
|
const parsedOutput = {
|
|
1395
1395
|
...output,
|
|
1396
1396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1399,25 +1399,25 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
|
|
|
1399
1399
|
switch (errorCode) {
|
|
1400
1400
|
case "AccessDeniedException":
|
|
1401
1401
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1402
|
-
throw await
|
|
1402
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1403
1403
|
case "ConflictException":
|
|
1404
1404
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1405
|
-
throw await
|
|
1405
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1406
1406
|
case "InternalServerException":
|
|
1407
1407
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1408
|
-
throw await
|
|
1408
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1409
1409
|
case "ResourceNotFoundException":
|
|
1410
1410
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1411
|
-
throw await
|
|
1411
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1412
1412
|
case "ServiceQuotaExceededException":
|
|
1413
1413
|
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1414
|
-
throw await
|
|
1414
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1415
1415
|
case "ThrottlingException":
|
|
1416
1416
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1417
|
-
throw await
|
|
1417
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1418
1418
|
case "ValidationException":
|
|
1419
1419
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1420
|
-
throw await
|
|
1420
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1421
1421
|
default:
|
|
1422
1422
|
const parsedBody = parsedOutput.body;
|
|
1423
1423
|
throwDefaultError({
|
|
@@ -1428,20 +1428,20 @@ const deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = async (outpu
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
};
|
|
1431
|
-
export const
|
|
1431
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1432
1432
|
if (output.statusCode >= 300) {
|
|
1433
|
-
return
|
|
1433
|
+
return de_TagResourceCommandError(output, context);
|
|
1434
1434
|
}
|
|
1435
1435
|
const data = await parseBody(output.body, context);
|
|
1436
1436
|
let contents = {};
|
|
1437
|
-
contents =
|
|
1437
|
+
contents = de_TagResourceResponse(data, context);
|
|
1438
1438
|
const response = {
|
|
1439
1439
|
$metadata: deserializeMetadata(output),
|
|
1440
1440
|
...contents,
|
|
1441
1441
|
};
|
|
1442
1442
|
return Promise.resolve(response);
|
|
1443
1443
|
};
|
|
1444
|
-
const
|
|
1444
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
1447
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1450,22 +1450,22 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1450
1450
|
switch (errorCode) {
|
|
1451
1451
|
case "AccessDeniedException":
|
|
1452
1452
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1453
|
-
throw await
|
|
1453
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1454
1454
|
case "ConflictException":
|
|
1455
1455
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1456
|
-
throw await
|
|
1456
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1457
1457
|
case "InternalServerException":
|
|
1458
1458
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1460
1460
|
case "ResourceNotFoundException":
|
|
1461
1461
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1462
|
-
throw await
|
|
1462
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1463
1463
|
case "ThrottlingException":
|
|
1464
1464
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1465
|
-
throw await
|
|
1465
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1466
1466
|
case "ValidationException":
|
|
1467
1467
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1468
|
-
throw await
|
|
1468
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
1469
|
default:
|
|
1470
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
1471
|
throwDefaultError({
|
|
@@ -1476,20 +1476,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
export const
|
|
1479
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1480
1480
|
if (output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1481
|
+
return de_UntagResourceCommandError(output, context);
|
|
1482
1482
|
}
|
|
1483
1483
|
const data = await parseBody(output.body, context);
|
|
1484
1484
|
let contents = {};
|
|
1485
|
-
contents =
|
|
1485
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1486
1486
|
const response = {
|
|
1487
1487
|
$metadata: deserializeMetadata(output),
|
|
1488
1488
|
...contents,
|
|
1489
1489
|
};
|
|
1490
1490
|
return Promise.resolve(response);
|
|
1491
1491
|
};
|
|
1492
|
-
const
|
|
1492
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1493
1493
|
const parsedOutput = {
|
|
1494
1494
|
...output,
|
|
1495
1495
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1498,22 +1498,22 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1498
1498
|
switch (errorCode) {
|
|
1499
1499
|
case "AccessDeniedException":
|
|
1500
1500
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1501
|
-
throw await
|
|
1501
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1502
1502
|
case "ConflictException":
|
|
1503
1503
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1504
|
-
throw await
|
|
1504
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1505
1505
|
case "InternalServerException":
|
|
1506
1506
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1507
|
-
throw await
|
|
1507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1508
1508
|
case "ResourceNotFoundException":
|
|
1509
1509
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1510
|
-
throw await
|
|
1510
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1511
1511
|
case "ThrottlingException":
|
|
1512
1512
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1513
|
-
throw await
|
|
1513
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1514
1514
|
case "ValidationException":
|
|
1515
1515
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1516
|
-
throw await
|
|
1516
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1517
1517
|
default:
|
|
1518
1518
|
const parsedBody = parsedOutput.body;
|
|
1519
1519
|
throwDefaultError({
|
|
@@ -1524,20 +1524,20 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
1526
|
};
|
|
1527
|
-
export const
|
|
1527
|
+
export const de_UpdateDomainCommand = async (output, context) => {
|
|
1528
1528
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
1529
|
+
return de_UpdateDomainCommandError(output, context);
|
|
1530
1530
|
}
|
|
1531
1531
|
const data = await parseBody(output.body, context);
|
|
1532
1532
|
let contents = {};
|
|
1533
|
-
contents =
|
|
1533
|
+
contents = de_UpdateDomainResponse(data, context);
|
|
1534
1534
|
const response = {
|
|
1535
1535
|
$metadata: deserializeMetadata(output),
|
|
1536
1536
|
...contents,
|
|
1537
1537
|
};
|
|
1538
1538
|
return Promise.resolve(response);
|
|
1539
1539
|
};
|
|
1540
|
-
const
|
|
1540
|
+
const de_UpdateDomainCommandError = async (output, context) => {
|
|
1541
1541
|
const parsedOutput = {
|
|
1542
1542
|
...output,
|
|
1543
1543
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1546,22 +1546,22 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1546
1546
|
switch (errorCode) {
|
|
1547
1547
|
case "AccessDeniedException":
|
|
1548
1548
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1549
|
-
throw await
|
|
1549
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1550
1550
|
case "ConflictException":
|
|
1551
1551
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1552
|
-
throw await
|
|
1552
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1553
1553
|
case "InternalServerException":
|
|
1554
1554
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1555
|
-
throw await
|
|
1555
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1556
1556
|
case "ResourceNotFoundException":
|
|
1557
1557
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1558
|
-
throw await
|
|
1558
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1559
1559
|
case "ThrottlingException":
|
|
1560
1560
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1561
|
-
throw await
|
|
1561
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1562
1562
|
case "ValidationException":
|
|
1563
1563
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1564
|
-
throw await
|
|
1564
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1565
1565
|
default:
|
|
1566
1566
|
const parsedBody = parsedOutput.body;
|
|
1567
1567
|
throwDefaultError({
|
|
@@ -1572,20 +1572,20 @@ const deserializeAws_json1_0UpdateDomainCommandError = async (output, context) =
|
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
};
|
|
1575
|
-
export const
|
|
1575
|
+
export const de_UpdateWatchlistCommand = async (output, context) => {
|
|
1576
1576
|
if (output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
1577
|
+
return de_UpdateWatchlistCommandError(output, context);
|
|
1578
1578
|
}
|
|
1579
1579
|
const data = await parseBody(output.body, context);
|
|
1580
1580
|
let contents = {};
|
|
1581
|
-
contents =
|
|
1581
|
+
contents = de_UpdateWatchlistResponse(data, context);
|
|
1582
1582
|
const response = {
|
|
1583
1583
|
$metadata: deserializeMetadata(output),
|
|
1584
1584
|
...contents,
|
|
1585
1585
|
};
|
|
1586
1586
|
return Promise.resolve(response);
|
|
1587
1587
|
};
|
|
1588
|
-
const
|
|
1588
|
+
const de_UpdateWatchlistCommandError = async (output, context) => {
|
|
1589
1589
|
const parsedOutput = {
|
|
1590
1590
|
...output,
|
|
1591
1591
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1594,22 +1594,22 @@ const deserializeAws_json1_0UpdateWatchlistCommandError = async (output, context
|
|
|
1594
1594
|
switch (errorCode) {
|
|
1595
1595
|
case "AccessDeniedException":
|
|
1596
1596
|
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1597
|
-
throw await
|
|
1597
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
1598
|
case "ConflictException":
|
|
1599
1599
|
case "com.amazonaws.voiceid#ConflictException":
|
|
1600
|
-
throw await
|
|
1600
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1601
1601
|
case "InternalServerException":
|
|
1602
1602
|
case "com.amazonaws.voiceid#InternalServerException":
|
|
1603
|
-
throw await
|
|
1603
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
1604
|
case "ResourceNotFoundException":
|
|
1605
1605
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1606
|
-
throw await
|
|
1606
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
1607
|
case "ThrottlingException":
|
|
1608
1608
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1609
|
-
throw await
|
|
1609
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
1610
|
case "ValidationException":
|
|
1611
1611
|
case "com.amazonaws.voiceid#ValidationException":
|
|
1612
|
-
throw await
|
|
1612
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
1613
|
default:
|
|
1614
1614
|
const parsedBody = parsedOutput.body;
|
|
1615
1615
|
throwDefaultError({
|
|
@@ -1620,88 +1620,88 @@ const deserializeAws_json1_0UpdateWatchlistCommandError = async (output, context
|
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
1622
|
};
|
|
1623
|
-
const
|
|
1623
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1624
1624
|
const body = parsedOutput.body;
|
|
1625
|
-
const deserialized =
|
|
1625
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1626
1626
|
const exception = new AccessDeniedException({
|
|
1627
1627
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1628
1628
|
...deserialized,
|
|
1629
1629
|
});
|
|
1630
1630
|
return __decorateServiceException(exception, body);
|
|
1631
1631
|
};
|
|
1632
|
-
const
|
|
1632
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1633
1633
|
const body = parsedOutput.body;
|
|
1634
|
-
const deserialized =
|
|
1634
|
+
const deserialized = de_ConflictException(body, context);
|
|
1635
1635
|
const exception = new ConflictException({
|
|
1636
1636
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1637
1637
|
...deserialized,
|
|
1638
1638
|
});
|
|
1639
1639
|
return __decorateServiceException(exception, body);
|
|
1640
1640
|
};
|
|
1641
|
-
const
|
|
1641
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1642
1642
|
const body = parsedOutput.body;
|
|
1643
|
-
const deserialized =
|
|
1643
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1644
1644
|
const exception = new InternalServerException({
|
|
1645
1645
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1646
1646
|
...deserialized,
|
|
1647
1647
|
});
|
|
1648
1648
|
return __decorateServiceException(exception, body);
|
|
1649
1649
|
};
|
|
1650
|
-
const
|
|
1650
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1651
1651
|
const body = parsedOutput.body;
|
|
1652
|
-
const deserialized =
|
|
1652
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1653
1653
|
const exception = new ResourceNotFoundException({
|
|
1654
1654
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1655
1655
|
...deserialized,
|
|
1656
1656
|
});
|
|
1657
1657
|
return __decorateServiceException(exception, body);
|
|
1658
1658
|
};
|
|
1659
|
-
const
|
|
1659
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1660
1660
|
const body = parsedOutput.body;
|
|
1661
|
-
const deserialized =
|
|
1661
|
+
const deserialized = de_ServiceQuotaExceededException(body, context);
|
|
1662
1662
|
const exception = new ServiceQuotaExceededException({
|
|
1663
1663
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1664
1664
|
...deserialized,
|
|
1665
1665
|
});
|
|
1666
1666
|
return __decorateServiceException(exception, body);
|
|
1667
1667
|
};
|
|
1668
|
-
const
|
|
1668
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1669
1669
|
const body = parsedOutput.body;
|
|
1670
|
-
const deserialized =
|
|
1670
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1671
1671
|
const exception = new ThrottlingException({
|
|
1672
1672
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1673
1673
|
...deserialized,
|
|
1674
1674
|
});
|
|
1675
1675
|
return __decorateServiceException(exception, body);
|
|
1676
1676
|
};
|
|
1677
|
-
const
|
|
1677
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1678
1678
|
const body = parsedOutput.body;
|
|
1679
|
-
const deserialized =
|
|
1679
|
+
const deserialized = de_ValidationException(body, context);
|
|
1680
1680
|
const exception = new ValidationException({
|
|
1681
1681
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1682
1682
|
...deserialized,
|
|
1683
1683
|
});
|
|
1684
1684
|
return __decorateServiceException(exception, body);
|
|
1685
1685
|
};
|
|
1686
|
-
const
|
|
1686
|
+
const se_AssociateFraudsterRequest = (input, context) => {
|
|
1687
1687
|
return {
|
|
1688
1688
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1689
1689
|
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1690
1690
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1691
1691
|
};
|
|
1692
1692
|
};
|
|
1693
|
-
const
|
|
1693
|
+
const se_CreateDomainRequest = (input, context) => {
|
|
1694
1694
|
return {
|
|
1695
1695
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1696
1696
|
...(input.Description != null && { Description: input.Description }),
|
|
1697
1697
|
...(input.Name != null && { Name: input.Name }),
|
|
1698
1698
|
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1699
|
-
ServerSideEncryptionConfiguration:
|
|
1699
|
+
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1700
1700
|
}),
|
|
1701
|
-
...(input.Tags != null && { Tags:
|
|
1701
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1702
1702
|
};
|
|
1703
1703
|
};
|
|
1704
|
-
const
|
|
1704
|
+
const se_CreateWatchlistRequest = (input, context) => {
|
|
1705
1705
|
return {
|
|
1706
1706
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1707
1707
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1709,113 +1709,113 @@ const serializeAws_json1_0CreateWatchlistRequest = (input, context) => {
|
|
|
1709
1709
|
...(input.Name != null && { Name: input.Name }),
|
|
1710
1710
|
};
|
|
1711
1711
|
};
|
|
1712
|
-
const
|
|
1712
|
+
const se_DeleteDomainRequest = (input, context) => {
|
|
1713
1713
|
return {
|
|
1714
1714
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1715
1715
|
};
|
|
1716
1716
|
};
|
|
1717
|
-
const
|
|
1717
|
+
const se_DeleteFraudsterRequest = (input, context) => {
|
|
1718
1718
|
return {
|
|
1719
1719
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1720
1720
|
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1721
1721
|
};
|
|
1722
1722
|
};
|
|
1723
|
-
const
|
|
1723
|
+
const se_DeleteSpeakerRequest = (input, context) => {
|
|
1724
1724
|
return {
|
|
1725
1725
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1726
1726
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1727
1727
|
};
|
|
1728
1728
|
};
|
|
1729
|
-
const
|
|
1729
|
+
const se_DeleteWatchlistRequest = (input, context) => {
|
|
1730
1730
|
return {
|
|
1731
1731
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1732
1732
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1733
1733
|
};
|
|
1734
1734
|
};
|
|
1735
|
-
const
|
|
1735
|
+
const se_DescribeDomainRequest = (input, context) => {
|
|
1736
1736
|
return {
|
|
1737
1737
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1738
1738
|
};
|
|
1739
1739
|
};
|
|
1740
|
-
const
|
|
1740
|
+
const se_DescribeFraudsterRegistrationJobRequest = (input, context) => {
|
|
1741
1741
|
return {
|
|
1742
1742
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1743
1743
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1744
1744
|
};
|
|
1745
1745
|
};
|
|
1746
|
-
const
|
|
1746
|
+
const se_DescribeFraudsterRequest = (input, context) => {
|
|
1747
1747
|
return {
|
|
1748
1748
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1749
1749
|
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1750
1750
|
};
|
|
1751
1751
|
};
|
|
1752
|
-
const
|
|
1752
|
+
const se_DescribeSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1753
1753
|
return {
|
|
1754
1754
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1755
1755
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1756
1756
|
};
|
|
1757
1757
|
};
|
|
1758
|
-
const
|
|
1758
|
+
const se_DescribeSpeakerRequest = (input, context) => {
|
|
1759
1759
|
return {
|
|
1760
1760
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1761
1761
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1762
1762
|
};
|
|
1763
1763
|
};
|
|
1764
|
-
const
|
|
1764
|
+
const se_DescribeWatchlistRequest = (input, context) => {
|
|
1765
1765
|
return {
|
|
1766
1766
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1767
1767
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1768
1768
|
};
|
|
1769
1769
|
};
|
|
1770
|
-
const
|
|
1770
|
+
const se_DisassociateFraudsterRequest = (input, context) => {
|
|
1771
1771
|
return {
|
|
1772
1772
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1773
1773
|
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1774
1774
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1775
1775
|
};
|
|
1776
1776
|
};
|
|
1777
|
-
const
|
|
1777
|
+
const se_EnrollmentConfig = (input, context) => {
|
|
1778
1778
|
return {
|
|
1779
1779
|
...(input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction }),
|
|
1780
1780
|
...(input.FraudDetectionConfig != null && {
|
|
1781
|
-
FraudDetectionConfig:
|
|
1781
|
+
FraudDetectionConfig: se_EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1782
1782
|
}),
|
|
1783
1783
|
};
|
|
1784
1784
|
};
|
|
1785
|
-
const
|
|
1785
|
+
const se_EnrollmentJobFraudDetectionConfig = (input, context) => {
|
|
1786
1786
|
return {
|
|
1787
1787
|
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1788
1788
|
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1789
1789
|
...(input.WatchlistIds != null && {
|
|
1790
|
-
WatchlistIds:
|
|
1790
|
+
WatchlistIds: se_EnrollmentJobFraudDetectionConfigWatchlistIds(input.WatchlistIds, context),
|
|
1791
1791
|
}),
|
|
1792
1792
|
};
|
|
1793
1793
|
};
|
|
1794
|
-
const
|
|
1794
|
+
const se_EnrollmentJobFraudDetectionConfigWatchlistIds = (input, context) => {
|
|
1795
1795
|
return input
|
|
1796
1796
|
.filter((e) => e != null)
|
|
1797
1797
|
.map((entry) => {
|
|
1798
1798
|
return entry;
|
|
1799
1799
|
});
|
|
1800
1800
|
};
|
|
1801
|
-
const
|
|
1801
|
+
const se_EvaluateSessionRequest = (input, context) => {
|
|
1802
1802
|
return {
|
|
1803
1803
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1804
1804
|
...(input.SessionNameOrId != null && { SessionNameOrId: input.SessionNameOrId }),
|
|
1805
1805
|
};
|
|
1806
1806
|
};
|
|
1807
|
-
const
|
|
1807
|
+
const se_InputDataConfig = (input, context) => {
|
|
1808
1808
|
return {
|
|
1809
1809
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1810
1810
|
};
|
|
1811
1811
|
};
|
|
1812
|
-
const
|
|
1812
|
+
const se_ListDomainsRequest = (input, context) => {
|
|
1813
1813
|
return {
|
|
1814
1814
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1815
1815
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1816
1816
|
};
|
|
1817
1817
|
};
|
|
1818
|
-
const
|
|
1818
|
+
const se_ListFraudsterRegistrationJobsRequest = (input, context) => {
|
|
1819
1819
|
return {
|
|
1820
1820
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1821
1821
|
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
@@ -1823,7 +1823,7 @@ const serializeAws_json1_0ListFraudsterRegistrationJobsRequest = (input, context
|
|
|
1823
1823
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1824
1824
|
};
|
|
1825
1825
|
};
|
|
1826
|
-
const
|
|
1826
|
+
const se_ListFraudstersRequest = (input, context) => {
|
|
1827
1827
|
return {
|
|
1828
1828
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1829
1829
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1831,7 +1831,7 @@ const serializeAws_json1_0ListFraudstersRequest = (input, context) => {
|
|
|
1831
1831
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1832
1832
|
};
|
|
1833
1833
|
};
|
|
1834
|
-
const
|
|
1834
|
+
const se_ListSpeakerEnrollmentJobsRequest = (input, context) => {
|
|
1835
1835
|
return {
|
|
1836
1836
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1837
1837
|
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
@@ -1839,38 +1839,38 @@ const serializeAws_json1_0ListSpeakerEnrollmentJobsRequest = (input, context) =>
|
|
|
1839
1839
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1840
1840
|
};
|
|
1841
1841
|
};
|
|
1842
|
-
const
|
|
1842
|
+
const se_ListSpeakersRequest = (input, context) => {
|
|
1843
1843
|
return {
|
|
1844
1844
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1845
1845
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1846
1846
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1847
1847
|
};
|
|
1848
1848
|
};
|
|
1849
|
-
const
|
|
1849
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1850
1850
|
return {
|
|
1851
1851
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1852
1852
|
};
|
|
1853
1853
|
};
|
|
1854
|
-
const
|
|
1854
|
+
const se_ListWatchlistsRequest = (input, context) => {
|
|
1855
1855
|
return {
|
|
1856
1856
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1857
1857
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1858
1858
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1859
1859
|
};
|
|
1860
1860
|
};
|
|
1861
|
-
const
|
|
1861
|
+
const se_OptOutSpeakerRequest = (input, context) => {
|
|
1862
1862
|
return {
|
|
1863
1863
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1864
1864
|
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1865
1865
|
};
|
|
1866
1866
|
};
|
|
1867
|
-
const
|
|
1867
|
+
const se_OutputDataConfig = (input, context) => {
|
|
1868
1868
|
return {
|
|
1869
1869
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1870
1870
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1871
1871
|
};
|
|
1872
1872
|
};
|
|
1873
|
-
const
|
|
1873
|
+
const se_RegistrationConfig = (input, context) => {
|
|
1874
1874
|
return {
|
|
1875
1875
|
...(input.DuplicateRegistrationAction != null && {
|
|
1876
1876
|
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
@@ -1878,100 +1878,88 @@ const serializeAws_json1_0RegistrationConfig = (input, context) => {
|
|
|
1878
1878
|
...(input.FraudsterSimilarityThreshold != null && {
|
|
1879
1879
|
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1880
1880
|
}),
|
|
1881
|
-
...(input.WatchlistIds != null && {
|
|
1882
|
-
WatchlistIds: serializeAws_json1_0RegistrationConfigWatchlistIds(input.WatchlistIds, context),
|
|
1883
|
-
}),
|
|
1881
|
+
...(input.WatchlistIds != null && { WatchlistIds: se_RegistrationConfigWatchlistIds(input.WatchlistIds, context) }),
|
|
1884
1882
|
};
|
|
1885
1883
|
};
|
|
1886
|
-
const
|
|
1884
|
+
const se_RegistrationConfigWatchlistIds = (input, context) => {
|
|
1887
1885
|
return input
|
|
1888
1886
|
.filter((e) => e != null)
|
|
1889
1887
|
.map((entry) => {
|
|
1890
1888
|
return entry;
|
|
1891
1889
|
});
|
|
1892
1890
|
};
|
|
1893
|
-
const
|
|
1891
|
+
const se_ServerSideEncryptionConfiguration = (input, context) => {
|
|
1894
1892
|
return {
|
|
1895
1893
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1896
1894
|
};
|
|
1897
1895
|
};
|
|
1898
|
-
const
|
|
1896
|
+
const se_StartFraudsterRegistrationJobRequest = (input, context) => {
|
|
1899
1897
|
return {
|
|
1900
1898
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1901
1899
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1902
1900
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1903
|
-
...(input.InputDataConfig != null && {
|
|
1904
|
-
InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
|
|
1905
|
-
}),
|
|
1901
|
+
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1906
1902
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
1907
|
-
...(input.OutputDataConfig != null && {
|
|
1908
|
-
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1909
|
-
}),
|
|
1903
|
+
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1910
1904
|
...(input.RegistrationConfig != null && {
|
|
1911
|
-
RegistrationConfig:
|
|
1905
|
+
RegistrationConfig: se_RegistrationConfig(input.RegistrationConfig, context),
|
|
1912
1906
|
}),
|
|
1913
1907
|
};
|
|
1914
1908
|
};
|
|
1915
|
-
const
|
|
1909
|
+
const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
|
|
1916
1910
|
return {
|
|
1917
1911
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1918
1912
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1919
1913
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1920
|
-
...(input.EnrollmentConfig != null && {
|
|
1921
|
-
|
|
1922
|
-
}),
|
|
1923
|
-
...(input.InputDataConfig != null && {
|
|
1924
|
-
InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
|
|
1925
|
-
}),
|
|
1914
|
+
...(input.EnrollmentConfig != null && { EnrollmentConfig: se_EnrollmentConfig(input.EnrollmentConfig, context) }),
|
|
1915
|
+
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
1926
1916
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
1927
|
-
...(input.OutputDataConfig != null && {
|
|
1928
|
-
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1929
|
-
}),
|
|
1917
|
+
...(input.OutputDataConfig != null && { OutputDataConfig: se_OutputDataConfig(input.OutputDataConfig, context) }),
|
|
1930
1918
|
};
|
|
1931
1919
|
};
|
|
1932
|
-
const
|
|
1920
|
+
const se_Tag = (input, context) => {
|
|
1933
1921
|
return {
|
|
1934
1922
|
...(input.Key != null && { Key: input.Key }),
|
|
1935
1923
|
...(input.Value != null && { Value: input.Value }),
|
|
1936
1924
|
};
|
|
1937
1925
|
};
|
|
1938
|
-
const
|
|
1926
|
+
const se_TagKeyList = (input, context) => {
|
|
1939
1927
|
return input
|
|
1940
1928
|
.filter((e) => e != null)
|
|
1941
1929
|
.map((entry) => {
|
|
1942
1930
|
return entry;
|
|
1943
1931
|
});
|
|
1944
1932
|
};
|
|
1945
|
-
const
|
|
1933
|
+
const se_TagList = (input, context) => {
|
|
1946
1934
|
return input
|
|
1947
1935
|
.filter((e) => e != null)
|
|
1948
1936
|
.map((entry) => {
|
|
1949
|
-
return
|
|
1937
|
+
return se_Tag(entry, context);
|
|
1950
1938
|
});
|
|
1951
1939
|
};
|
|
1952
|
-
const
|
|
1940
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1953
1941
|
return {
|
|
1954
1942
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1955
|
-
...(input.Tags != null && { Tags:
|
|
1943
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1956
1944
|
};
|
|
1957
1945
|
};
|
|
1958
|
-
const
|
|
1946
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1959
1947
|
return {
|
|
1960
1948
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1961
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1949
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1962
1950
|
};
|
|
1963
1951
|
};
|
|
1964
|
-
const
|
|
1952
|
+
const se_UpdateDomainRequest = (input, context) => {
|
|
1965
1953
|
return {
|
|
1966
1954
|
...(input.Description != null && { Description: input.Description }),
|
|
1967
1955
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1968
1956
|
...(input.Name != null && { Name: input.Name }),
|
|
1969
1957
|
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1970
|
-
ServerSideEncryptionConfiguration:
|
|
1958
|
+
ServerSideEncryptionConfiguration: se_ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1971
1959
|
}),
|
|
1972
1960
|
};
|
|
1973
1961
|
};
|
|
1974
|
-
const
|
|
1962
|
+
const se_UpdateWatchlistRequest = (input, context) => {
|
|
1975
1963
|
return {
|
|
1976
1964
|
...(input.Description != null && { Description: input.Description }),
|
|
1977
1965
|
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
@@ -1979,22 +1967,22 @@ const serializeAws_json1_0UpdateWatchlistRequest = (input, context) => {
|
|
|
1979
1967
|
...(input.WatchlistId != null && { WatchlistId: input.WatchlistId }),
|
|
1980
1968
|
};
|
|
1981
1969
|
};
|
|
1982
|
-
const
|
|
1970
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1983
1971
|
return {
|
|
1984
1972
|
Message: __expectString(output.Message),
|
|
1985
1973
|
};
|
|
1986
1974
|
};
|
|
1987
|
-
const
|
|
1975
|
+
const de_AssociateFraudsterResponse = (output, context) => {
|
|
1988
1976
|
return {
|
|
1989
|
-
Fraudster: output.Fraudster != null ?
|
|
1977
|
+
Fraudster: output.Fraudster != null ? de_Fraudster(output.Fraudster, context) : undefined,
|
|
1990
1978
|
};
|
|
1991
1979
|
};
|
|
1992
|
-
const
|
|
1980
|
+
const de_AuthenticationConfiguration = (output, context) => {
|
|
1993
1981
|
return {
|
|
1994
1982
|
AcceptanceThreshold: __expectInt32(output.AcceptanceThreshold),
|
|
1995
1983
|
};
|
|
1996
1984
|
};
|
|
1997
|
-
const
|
|
1985
|
+
const de_AuthenticationResult = (output, context) => {
|
|
1998
1986
|
return {
|
|
1999
1987
|
AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
|
|
2000
1988
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationEndedAt)))
|
|
@@ -2003,67 +1991,65 @@ const deserializeAws_json1_0AuthenticationResult = (output, context) => {
|
|
|
2003
1991
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationStartedAt)))
|
|
2004
1992
|
: undefined,
|
|
2005
1993
|
AuthenticationResultId: __expectString(output.AuthenticationResultId),
|
|
2006
|
-
Configuration: output.Configuration != null
|
|
2007
|
-
? deserializeAws_json1_0AuthenticationConfiguration(output.Configuration, context)
|
|
2008
|
-
: undefined,
|
|
1994
|
+
Configuration: output.Configuration != null ? de_AuthenticationConfiguration(output.Configuration, context) : undefined,
|
|
2009
1995
|
CustomerSpeakerId: __expectString(output.CustomerSpeakerId),
|
|
2010
1996
|
Decision: __expectString(output.Decision),
|
|
2011
1997
|
GeneratedSpeakerId: __expectString(output.GeneratedSpeakerId),
|
|
2012
1998
|
Score: __expectInt32(output.Score),
|
|
2013
1999
|
};
|
|
2014
2000
|
};
|
|
2015
|
-
const
|
|
2001
|
+
const de_ConflictException = (output, context) => {
|
|
2016
2002
|
return {
|
|
2017
2003
|
ConflictType: __expectString(output.ConflictType),
|
|
2018
2004
|
Message: __expectString(output.Message),
|
|
2019
2005
|
};
|
|
2020
2006
|
};
|
|
2021
|
-
const
|
|
2007
|
+
const de_CreateDomainResponse = (output, context) => {
|
|
2022
2008
|
return {
|
|
2023
|
-
Domain: output.Domain != null ?
|
|
2009
|
+
Domain: output.Domain != null ? de_Domain(output.Domain, context) : undefined,
|
|
2024
2010
|
};
|
|
2025
2011
|
};
|
|
2026
|
-
const
|
|
2012
|
+
const de_CreateWatchlistResponse = (output, context) => {
|
|
2027
2013
|
return {
|
|
2028
|
-
Watchlist: output.Watchlist != null ?
|
|
2014
|
+
Watchlist: output.Watchlist != null ? de_Watchlist(output.Watchlist, context) : undefined,
|
|
2029
2015
|
};
|
|
2030
2016
|
};
|
|
2031
|
-
const
|
|
2017
|
+
const de_DescribeDomainResponse = (output, context) => {
|
|
2032
2018
|
return {
|
|
2033
|
-
Domain: output.Domain != null ?
|
|
2019
|
+
Domain: output.Domain != null ? de_Domain(output.Domain, context) : undefined,
|
|
2034
2020
|
};
|
|
2035
2021
|
};
|
|
2036
|
-
const
|
|
2022
|
+
const de_DescribeFraudsterRegistrationJobResponse = (output, context) => {
|
|
2037
2023
|
return {
|
|
2038
|
-
Job: output.Job != null ?
|
|
2024
|
+
Job: output.Job != null ? de_FraudsterRegistrationJob(output.Job, context) : undefined,
|
|
2039
2025
|
};
|
|
2040
2026
|
};
|
|
2041
|
-
const
|
|
2027
|
+
const de_DescribeFraudsterResponse = (output, context) => {
|
|
2042
2028
|
return {
|
|
2043
|
-
Fraudster: output.Fraudster != null ?
|
|
2029
|
+
Fraudster: output.Fraudster != null ? de_Fraudster(output.Fraudster, context) : undefined,
|
|
2044
2030
|
};
|
|
2045
2031
|
};
|
|
2046
|
-
const
|
|
2032
|
+
const de_DescribeSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2047
2033
|
return {
|
|
2048
|
-
Job: output.Job != null ?
|
|
2034
|
+
Job: output.Job != null ? de_SpeakerEnrollmentJob(output.Job, context) : undefined,
|
|
2049
2035
|
};
|
|
2050
2036
|
};
|
|
2051
|
-
const
|
|
2037
|
+
const de_DescribeSpeakerResponse = (output, context) => {
|
|
2052
2038
|
return {
|
|
2053
|
-
Speaker: output.Speaker != null ?
|
|
2039
|
+
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2054
2040
|
};
|
|
2055
2041
|
};
|
|
2056
|
-
const
|
|
2042
|
+
const de_DescribeWatchlistResponse = (output, context) => {
|
|
2057
2043
|
return {
|
|
2058
|
-
Watchlist: output.Watchlist != null ?
|
|
2044
|
+
Watchlist: output.Watchlist != null ? de_Watchlist(output.Watchlist, context) : undefined,
|
|
2059
2045
|
};
|
|
2060
2046
|
};
|
|
2061
|
-
const
|
|
2047
|
+
const de_DisassociateFraudsterResponse = (output, context) => {
|
|
2062
2048
|
return {
|
|
2063
|
-
Fraudster: output.Fraudster != null ?
|
|
2049
|
+
Fraudster: output.Fraudster != null ? de_Fraudster(output.Fraudster, context) : undefined,
|
|
2064
2050
|
};
|
|
2065
2051
|
};
|
|
2066
|
-
const
|
|
2052
|
+
const de_Domain = (output, context) => {
|
|
2067
2053
|
return {
|
|
2068
2054
|
Arn: __expectString(output.Arn),
|
|
2069
2055
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -2072,29 +2058,27 @@ const deserializeAws_json1_0Domain = (output, context) => {
|
|
|
2072
2058
|
DomainStatus: __expectString(output.DomainStatus),
|
|
2073
2059
|
Name: __expectString(output.Name),
|
|
2074
2060
|
ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration != null
|
|
2075
|
-
?
|
|
2061
|
+
? de_ServerSideEncryptionConfiguration(output.ServerSideEncryptionConfiguration, context)
|
|
2076
2062
|
: undefined,
|
|
2077
2063
|
ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails != null
|
|
2078
|
-
?
|
|
2064
|
+
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2079
2065
|
: undefined,
|
|
2080
2066
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2081
|
-
WatchlistDetails: output.WatchlistDetails != null
|
|
2082
|
-
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2083
|
-
: undefined,
|
|
2067
|
+
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2084
2068
|
};
|
|
2085
2069
|
};
|
|
2086
|
-
const
|
|
2070
|
+
const de_DomainSummaries = (output, context) => {
|
|
2087
2071
|
const retVal = (output || [])
|
|
2088
2072
|
.filter((e) => e != null)
|
|
2089
2073
|
.map((entry) => {
|
|
2090
2074
|
if (entry === null) {
|
|
2091
2075
|
return null;
|
|
2092
2076
|
}
|
|
2093
|
-
return
|
|
2077
|
+
return de_DomainSummary(entry, context);
|
|
2094
2078
|
});
|
|
2095
2079
|
return retVal;
|
|
2096
2080
|
};
|
|
2097
|
-
const
|
|
2081
|
+
const de_DomainSummary = (output, context) => {
|
|
2098
2082
|
return {
|
|
2099
2083
|
Arn: __expectString(output.Arn),
|
|
2100
2084
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -2103,35 +2087,33 @@ const deserializeAws_json1_0DomainSummary = (output, context) => {
|
|
|
2103
2087
|
DomainStatus: __expectString(output.DomainStatus),
|
|
2104
2088
|
Name: __expectString(output.Name),
|
|
2105
2089
|
ServerSideEncryptionConfiguration: output.ServerSideEncryptionConfiguration != null
|
|
2106
|
-
?
|
|
2090
|
+
? de_ServerSideEncryptionConfiguration(output.ServerSideEncryptionConfiguration, context)
|
|
2107
2091
|
: undefined,
|
|
2108
2092
|
ServerSideEncryptionUpdateDetails: output.ServerSideEncryptionUpdateDetails != null
|
|
2109
|
-
?
|
|
2093
|
+
? de_ServerSideEncryptionUpdateDetails(output.ServerSideEncryptionUpdateDetails, context)
|
|
2110
2094
|
: undefined,
|
|
2111
2095
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2112
|
-
WatchlistDetails: output.WatchlistDetails != null
|
|
2113
|
-
? deserializeAws_json1_0WatchlistDetails(output.WatchlistDetails, context)
|
|
2114
|
-
: undefined,
|
|
2096
|
+
WatchlistDetails: output.WatchlistDetails != null ? de_WatchlistDetails(output.WatchlistDetails, context) : undefined,
|
|
2115
2097
|
};
|
|
2116
2098
|
};
|
|
2117
|
-
const
|
|
2099
|
+
const de_EnrollmentConfig = (output, context) => {
|
|
2118
2100
|
return {
|
|
2119
2101
|
ExistingEnrollmentAction: __expectString(output.ExistingEnrollmentAction),
|
|
2120
2102
|
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
2121
|
-
?
|
|
2103
|
+
? de_EnrollmentJobFraudDetectionConfig(output.FraudDetectionConfig, context)
|
|
2122
2104
|
: undefined,
|
|
2123
2105
|
};
|
|
2124
2106
|
};
|
|
2125
|
-
const
|
|
2107
|
+
const de_EnrollmentJobFraudDetectionConfig = (output, context) => {
|
|
2126
2108
|
return {
|
|
2127
2109
|
FraudDetectionAction: __expectString(output.FraudDetectionAction),
|
|
2128
2110
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2129
2111
|
WatchlistIds: output.WatchlistIds != null
|
|
2130
|
-
?
|
|
2112
|
+
? de_EnrollmentJobFraudDetectionConfigWatchlistIds(output.WatchlistIds, context)
|
|
2131
2113
|
: undefined,
|
|
2132
2114
|
};
|
|
2133
2115
|
};
|
|
2134
|
-
const
|
|
2116
|
+
const de_EnrollmentJobFraudDetectionConfigWatchlistIds = (output, context) => {
|
|
2135
2117
|
const retVal = (output || [])
|
|
2136
2118
|
.filter((e) => e != null)
|
|
2137
2119
|
.map((entry) => {
|
|
@@ -2142,33 +2124,29 @@ const deserializeAws_json1_0EnrollmentJobFraudDetectionConfigWatchlistIds = (out
|
|
|
2142
2124
|
});
|
|
2143
2125
|
return retVal;
|
|
2144
2126
|
};
|
|
2145
|
-
const
|
|
2127
|
+
const de_EvaluateSessionResponse = (output, context) => {
|
|
2146
2128
|
return {
|
|
2147
|
-
AuthenticationResult: output.AuthenticationResult != null
|
|
2148
|
-
? deserializeAws_json1_0AuthenticationResult(output.AuthenticationResult, context)
|
|
2149
|
-
: undefined,
|
|
2129
|
+
AuthenticationResult: output.AuthenticationResult != null ? de_AuthenticationResult(output.AuthenticationResult, context) : undefined,
|
|
2150
2130
|
DomainId: __expectString(output.DomainId),
|
|
2151
|
-
FraudDetectionResult: output.FraudDetectionResult != null
|
|
2152
|
-
? deserializeAws_json1_0FraudDetectionResult(output.FraudDetectionResult, context)
|
|
2153
|
-
: undefined,
|
|
2131
|
+
FraudDetectionResult: output.FraudDetectionResult != null ? de_FraudDetectionResult(output.FraudDetectionResult, context) : undefined,
|
|
2154
2132
|
SessionId: __expectString(output.SessionId),
|
|
2155
2133
|
SessionName: __expectString(output.SessionName),
|
|
2156
2134
|
StreamingStatus: __expectString(output.StreamingStatus),
|
|
2157
2135
|
};
|
|
2158
2136
|
};
|
|
2159
|
-
const
|
|
2137
|
+
const de_FailureDetails = (output, context) => {
|
|
2160
2138
|
return {
|
|
2161
2139
|
Message: __expectString(output.Message),
|
|
2162
2140
|
StatusCode: __expectInt32(output.StatusCode),
|
|
2163
2141
|
};
|
|
2164
2142
|
};
|
|
2165
|
-
const
|
|
2143
|
+
const de_FraudDetectionConfiguration = (output, context) => {
|
|
2166
2144
|
return {
|
|
2167
2145
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
2168
2146
|
WatchlistId: __expectString(output.WatchlistId),
|
|
2169
2147
|
};
|
|
2170
2148
|
};
|
|
2171
|
-
const
|
|
2149
|
+
const de_FraudDetectionReasons = (output, context) => {
|
|
2172
2150
|
const retVal = (output || [])
|
|
2173
2151
|
.filter((e) => e != null)
|
|
2174
2152
|
.map((entry) => {
|
|
@@ -2179,7 +2157,7 @@ const deserializeAws_json1_0FraudDetectionReasons = (output, context) => {
|
|
|
2179
2157
|
});
|
|
2180
2158
|
return retVal;
|
|
2181
2159
|
};
|
|
2182
|
-
const
|
|
2160
|
+
const de_FraudDetectionResult = (output, context) => {
|
|
2183
2161
|
return {
|
|
2184
2162
|
AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
|
|
2185
2163
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationEndedAt)))
|
|
@@ -2187,196 +2165,166 @@ const deserializeAws_json1_0FraudDetectionResult = (output, context) => {
|
|
|
2187
2165
|
AudioAggregationStartedAt: output.AudioAggregationStartedAt != null
|
|
2188
2166
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationStartedAt)))
|
|
2189
2167
|
: undefined,
|
|
2190
|
-
Configuration: output.Configuration != null
|
|
2191
|
-
? deserializeAws_json1_0FraudDetectionConfiguration(output.Configuration, context)
|
|
2192
|
-
: undefined,
|
|
2168
|
+
Configuration: output.Configuration != null ? de_FraudDetectionConfiguration(output.Configuration, context) : undefined,
|
|
2193
2169
|
Decision: __expectString(output.Decision),
|
|
2194
2170
|
FraudDetectionResultId: __expectString(output.FraudDetectionResultId),
|
|
2195
|
-
Reasons: output.Reasons != null ?
|
|
2196
|
-
RiskDetails: output.RiskDetails != null ?
|
|
2171
|
+
Reasons: output.Reasons != null ? de_FraudDetectionReasons(output.Reasons, context) : undefined,
|
|
2172
|
+
RiskDetails: output.RiskDetails != null ? de_FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
2197
2173
|
};
|
|
2198
2174
|
};
|
|
2199
|
-
const
|
|
2175
|
+
const de_FraudRiskDetails = (output, context) => {
|
|
2200
2176
|
return {
|
|
2201
|
-
KnownFraudsterRisk: output.KnownFraudsterRisk != null
|
|
2202
|
-
|
|
2203
|
-
: undefined,
|
|
2204
|
-
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null
|
|
2205
|
-
? deserializeAws_json1_0VoiceSpoofingRisk(output.VoiceSpoofingRisk, context)
|
|
2206
|
-
: undefined,
|
|
2177
|
+
KnownFraudsterRisk: output.KnownFraudsterRisk != null ? de_KnownFraudsterRisk(output.KnownFraudsterRisk, context) : undefined,
|
|
2178
|
+
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null ? de_VoiceSpoofingRisk(output.VoiceSpoofingRisk, context) : undefined,
|
|
2207
2179
|
};
|
|
2208
2180
|
};
|
|
2209
|
-
const
|
|
2181
|
+
const de_Fraudster = (output, context) => {
|
|
2210
2182
|
return {
|
|
2211
2183
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2212
2184
|
DomainId: __expectString(output.DomainId),
|
|
2213
2185
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2214
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2215
|
-
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2216
|
-
: undefined,
|
|
2186
|
+
WatchlistIds: output.WatchlistIds != null ? de_ResponseWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2217
2187
|
};
|
|
2218
2188
|
};
|
|
2219
|
-
const
|
|
2189
|
+
const de_FraudsterRegistrationJob = (output, context) => {
|
|
2220
2190
|
return {
|
|
2221
2191
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2222
2192
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
2223
2193
|
DomainId: __expectString(output.DomainId),
|
|
2224
2194
|
EndedAt: output.EndedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndedAt))) : undefined,
|
|
2225
|
-
FailureDetails: output.FailureDetails != null ?
|
|
2226
|
-
InputDataConfig: output.InputDataConfig != null
|
|
2227
|
-
? deserializeAws_json1_0InputDataConfig(output.InputDataConfig, context)
|
|
2228
|
-
: undefined,
|
|
2195
|
+
FailureDetails: output.FailureDetails != null ? de_FailureDetails(output.FailureDetails, context) : undefined,
|
|
2196
|
+
InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
|
|
2229
2197
|
JobId: __expectString(output.JobId),
|
|
2230
2198
|
JobName: __expectString(output.JobName),
|
|
2231
|
-
JobProgress: output.JobProgress != null ?
|
|
2199
|
+
JobProgress: output.JobProgress != null ? de_JobProgress(output.JobProgress, context) : undefined,
|
|
2232
2200
|
JobStatus: __expectString(output.JobStatus),
|
|
2233
|
-
OutputDataConfig: output.OutputDataConfig != null
|
|
2234
|
-
|
|
2235
|
-
: undefined,
|
|
2236
|
-
RegistrationConfig: output.RegistrationConfig != null
|
|
2237
|
-
? deserializeAws_json1_0RegistrationConfig(output.RegistrationConfig, context)
|
|
2238
|
-
: undefined,
|
|
2201
|
+
OutputDataConfig: output.OutputDataConfig != null ? de_OutputDataConfig(output.OutputDataConfig, context) : undefined,
|
|
2202
|
+
RegistrationConfig: output.RegistrationConfig != null ? de_RegistrationConfig(output.RegistrationConfig, context) : undefined,
|
|
2239
2203
|
};
|
|
2240
2204
|
};
|
|
2241
|
-
const
|
|
2205
|
+
const de_FraudsterRegistrationJobSummaries = (output, context) => {
|
|
2242
2206
|
const retVal = (output || [])
|
|
2243
2207
|
.filter((e) => e != null)
|
|
2244
2208
|
.map((entry) => {
|
|
2245
2209
|
if (entry === null) {
|
|
2246
2210
|
return null;
|
|
2247
2211
|
}
|
|
2248
|
-
return
|
|
2212
|
+
return de_FraudsterRegistrationJobSummary(entry, context);
|
|
2249
2213
|
});
|
|
2250
2214
|
return retVal;
|
|
2251
2215
|
};
|
|
2252
|
-
const
|
|
2216
|
+
const de_FraudsterRegistrationJobSummary = (output, context) => {
|
|
2253
2217
|
return {
|
|
2254
2218
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2255
2219
|
DomainId: __expectString(output.DomainId),
|
|
2256
2220
|
EndedAt: output.EndedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndedAt))) : undefined,
|
|
2257
|
-
FailureDetails: output.FailureDetails != null ?
|
|
2221
|
+
FailureDetails: output.FailureDetails != null ? de_FailureDetails(output.FailureDetails, context) : undefined,
|
|
2258
2222
|
JobId: __expectString(output.JobId),
|
|
2259
2223
|
JobName: __expectString(output.JobName),
|
|
2260
|
-
JobProgress: output.JobProgress != null ?
|
|
2224
|
+
JobProgress: output.JobProgress != null ? de_JobProgress(output.JobProgress, context) : undefined,
|
|
2261
2225
|
JobStatus: __expectString(output.JobStatus),
|
|
2262
2226
|
};
|
|
2263
2227
|
};
|
|
2264
|
-
const
|
|
2228
|
+
const de_FraudsterSummaries = (output, context) => {
|
|
2265
2229
|
const retVal = (output || [])
|
|
2266
2230
|
.filter((e) => e != null)
|
|
2267
2231
|
.map((entry) => {
|
|
2268
2232
|
if (entry === null) {
|
|
2269
2233
|
return null;
|
|
2270
2234
|
}
|
|
2271
|
-
return
|
|
2235
|
+
return de_FraudsterSummary(entry, context);
|
|
2272
2236
|
});
|
|
2273
2237
|
return retVal;
|
|
2274
2238
|
};
|
|
2275
|
-
const
|
|
2239
|
+
const de_FraudsterSummary = (output, context) => {
|
|
2276
2240
|
return {
|
|
2277
2241
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2278
2242
|
DomainId: __expectString(output.DomainId),
|
|
2279
2243
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2280
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2281
|
-
? deserializeAws_json1_0ResponseWatchlistIds(output.WatchlistIds, context)
|
|
2282
|
-
: undefined,
|
|
2244
|
+
WatchlistIds: output.WatchlistIds != null ? de_ResponseWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2283
2245
|
};
|
|
2284
2246
|
};
|
|
2285
|
-
const
|
|
2247
|
+
const de_InputDataConfig = (output, context) => {
|
|
2286
2248
|
return {
|
|
2287
2249
|
S3Uri: __expectString(output.S3Uri),
|
|
2288
2250
|
};
|
|
2289
2251
|
};
|
|
2290
|
-
const
|
|
2252
|
+
const de_InternalServerException = (output, context) => {
|
|
2291
2253
|
return {
|
|
2292
2254
|
Message: __expectString(output.Message),
|
|
2293
2255
|
};
|
|
2294
2256
|
};
|
|
2295
|
-
const
|
|
2257
|
+
const de_JobProgress = (output, context) => {
|
|
2296
2258
|
return {
|
|
2297
2259
|
PercentComplete: __expectInt32(output.PercentComplete),
|
|
2298
2260
|
};
|
|
2299
2261
|
};
|
|
2300
|
-
const
|
|
2262
|
+
const de_KnownFraudsterRisk = (output, context) => {
|
|
2301
2263
|
return {
|
|
2302
2264
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
2303
2265
|
RiskScore: __expectInt32(output.RiskScore),
|
|
2304
2266
|
};
|
|
2305
2267
|
};
|
|
2306
|
-
const
|
|
2268
|
+
const de_ListDomainsResponse = (output, context) => {
|
|
2307
2269
|
return {
|
|
2308
|
-
DomainSummaries: output.DomainSummaries != null
|
|
2309
|
-
? deserializeAws_json1_0DomainSummaries(output.DomainSummaries, context)
|
|
2310
|
-
: undefined,
|
|
2270
|
+
DomainSummaries: output.DomainSummaries != null ? de_DomainSummaries(output.DomainSummaries, context) : undefined,
|
|
2311
2271
|
NextToken: __expectString(output.NextToken),
|
|
2312
2272
|
};
|
|
2313
2273
|
};
|
|
2314
|
-
const
|
|
2274
|
+
const de_ListFraudsterRegistrationJobsResponse = (output, context) => {
|
|
2315
2275
|
return {
|
|
2316
|
-
JobSummaries: output.JobSummaries != null
|
|
2317
|
-
? deserializeAws_json1_0FraudsterRegistrationJobSummaries(output.JobSummaries, context)
|
|
2318
|
-
: undefined,
|
|
2276
|
+
JobSummaries: output.JobSummaries != null ? de_FraudsterRegistrationJobSummaries(output.JobSummaries, context) : undefined,
|
|
2319
2277
|
NextToken: __expectString(output.NextToken),
|
|
2320
2278
|
};
|
|
2321
2279
|
};
|
|
2322
|
-
const
|
|
2280
|
+
const de_ListFraudstersResponse = (output, context) => {
|
|
2323
2281
|
return {
|
|
2324
|
-
FraudsterSummaries: output.FraudsterSummaries != null
|
|
2325
|
-
? deserializeAws_json1_0FraudsterSummaries(output.FraudsterSummaries, context)
|
|
2326
|
-
: undefined,
|
|
2282
|
+
FraudsterSummaries: output.FraudsterSummaries != null ? de_FraudsterSummaries(output.FraudsterSummaries, context) : undefined,
|
|
2327
2283
|
NextToken: __expectString(output.NextToken),
|
|
2328
2284
|
};
|
|
2329
2285
|
};
|
|
2330
|
-
const
|
|
2286
|
+
const de_ListSpeakerEnrollmentJobsResponse = (output, context) => {
|
|
2331
2287
|
return {
|
|
2332
|
-
JobSummaries: output.JobSummaries != null
|
|
2333
|
-
? deserializeAws_json1_0SpeakerEnrollmentJobSummaries(output.JobSummaries, context)
|
|
2334
|
-
: undefined,
|
|
2288
|
+
JobSummaries: output.JobSummaries != null ? de_SpeakerEnrollmentJobSummaries(output.JobSummaries, context) : undefined,
|
|
2335
2289
|
NextToken: __expectString(output.NextToken),
|
|
2336
2290
|
};
|
|
2337
2291
|
};
|
|
2338
|
-
const
|
|
2292
|
+
const de_ListSpeakersResponse = (output, context) => {
|
|
2339
2293
|
return {
|
|
2340
2294
|
NextToken: __expectString(output.NextToken),
|
|
2341
|
-
SpeakerSummaries: output.SpeakerSummaries != null
|
|
2342
|
-
? deserializeAws_json1_0SpeakerSummaries(output.SpeakerSummaries, context)
|
|
2343
|
-
: undefined,
|
|
2295
|
+
SpeakerSummaries: output.SpeakerSummaries != null ? de_SpeakerSummaries(output.SpeakerSummaries, context) : undefined,
|
|
2344
2296
|
};
|
|
2345
2297
|
};
|
|
2346
|
-
const
|
|
2298
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2347
2299
|
return {
|
|
2348
|
-
Tags: output.Tags != null ?
|
|
2300
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2349
2301
|
};
|
|
2350
2302
|
};
|
|
2351
|
-
const
|
|
2303
|
+
const de_ListWatchlistsResponse = (output, context) => {
|
|
2352
2304
|
return {
|
|
2353
2305
|
NextToken: __expectString(output.NextToken),
|
|
2354
|
-
WatchlistSummaries: output.WatchlistSummaries != null
|
|
2355
|
-
? deserializeAws_json1_0WatchlistSummaries(output.WatchlistSummaries, context)
|
|
2356
|
-
: undefined,
|
|
2306
|
+
WatchlistSummaries: output.WatchlistSummaries != null ? de_WatchlistSummaries(output.WatchlistSummaries, context) : undefined,
|
|
2357
2307
|
};
|
|
2358
2308
|
};
|
|
2359
|
-
const
|
|
2309
|
+
const de_OptOutSpeakerResponse = (output, context) => {
|
|
2360
2310
|
return {
|
|
2361
|
-
Speaker: output.Speaker != null ?
|
|
2311
|
+
Speaker: output.Speaker != null ? de_Speaker(output.Speaker, context) : undefined,
|
|
2362
2312
|
};
|
|
2363
2313
|
};
|
|
2364
|
-
const
|
|
2314
|
+
const de_OutputDataConfig = (output, context) => {
|
|
2365
2315
|
return {
|
|
2366
2316
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2367
2317
|
S3Uri: __expectString(output.S3Uri),
|
|
2368
2318
|
};
|
|
2369
2319
|
};
|
|
2370
|
-
const
|
|
2320
|
+
const de_RegistrationConfig = (output, context) => {
|
|
2371
2321
|
return {
|
|
2372
2322
|
DuplicateRegistrationAction: __expectString(output.DuplicateRegistrationAction),
|
|
2373
2323
|
FraudsterSimilarityThreshold: __expectInt32(output.FraudsterSimilarityThreshold),
|
|
2374
|
-
WatchlistIds: output.WatchlistIds != null
|
|
2375
|
-
? deserializeAws_json1_0RegistrationConfigWatchlistIds(output.WatchlistIds, context)
|
|
2376
|
-
: undefined,
|
|
2324
|
+
WatchlistIds: output.WatchlistIds != null ? de_RegistrationConfigWatchlistIds(output.WatchlistIds, context) : undefined,
|
|
2377
2325
|
};
|
|
2378
2326
|
};
|
|
2379
|
-
const
|
|
2327
|
+
const de_RegistrationConfigWatchlistIds = (output, context) => {
|
|
2380
2328
|
const retVal = (output || [])
|
|
2381
2329
|
.filter((e) => e != null)
|
|
2382
2330
|
.map((entry) => {
|
|
@@ -2387,13 +2335,13 @@ const deserializeAws_json1_0RegistrationConfigWatchlistIds = (output, context) =
|
|
|
2387
2335
|
});
|
|
2388
2336
|
return retVal;
|
|
2389
2337
|
};
|
|
2390
|
-
const
|
|
2338
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2391
2339
|
return {
|
|
2392
2340
|
Message: __expectString(output.Message),
|
|
2393
2341
|
ResourceType: __expectString(output.ResourceType),
|
|
2394
2342
|
};
|
|
2395
2343
|
};
|
|
2396
|
-
const
|
|
2344
|
+
const de_ResponseWatchlistIds = (output, context) => {
|
|
2397
2345
|
const retVal = (output || [])
|
|
2398
2346
|
.filter((e) => e != null)
|
|
2399
2347
|
.map((entry) => {
|
|
@@ -2404,24 +2352,24 @@ const deserializeAws_json1_0ResponseWatchlistIds = (output, context) => {
|
|
|
2404
2352
|
});
|
|
2405
2353
|
return retVal;
|
|
2406
2354
|
};
|
|
2407
|
-
const
|
|
2355
|
+
const de_ServerSideEncryptionConfiguration = (output, context) => {
|
|
2408
2356
|
return {
|
|
2409
2357
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2410
2358
|
};
|
|
2411
2359
|
};
|
|
2412
|
-
const
|
|
2360
|
+
const de_ServerSideEncryptionUpdateDetails = (output, context) => {
|
|
2413
2361
|
return {
|
|
2414
2362
|
Message: __expectString(output.Message),
|
|
2415
2363
|
OldKmsKeyId: __expectString(output.OldKmsKeyId),
|
|
2416
2364
|
UpdateStatus: __expectString(output.UpdateStatus),
|
|
2417
2365
|
};
|
|
2418
2366
|
};
|
|
2419
|
-
const
|
|
2367
|
+
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2420
2368
|
return {
|
|
2421
2369
|
Message: __expectString(output.Message),
|
|
2422
2370
|
};
|
|
2423
2371
|
};
|
|
2424
|
-
const
|
|
2372
|
+
const de_Speaker = (output, context) => {
|
|
2425
2373
|
return {
|
|
2426
2374
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2427
2375
|
CustomerSpeakerId: __expectString(output.CustomerSpeakerId),
|
|
@@ -2434,63 +2382,57 @@ const deserializeAws_json1_0Speaker = (output, context) => {
|
|
|
2434
2382
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2435
2383
|
};
|
|
2436
2384
|
};
|
|
2437
|
-
const
|
|
2385
|
+
const de_SpeakerEnrollmentJob = (output, context) => {
|
|
2438
2386
|
return {
|
|
2439
2387
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2440
2388
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
2441
2389
|
DomainId: __expectString(output.DomainId),
|
|
2442
2390
|
EndedAt: output.EndedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndedAt))) : undefined,
|
|
2443
|
-
EnrollmentConfig: output.EnrollmentConfig != null
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
FailureDetails: output.FailureDetails != null ? deserializeAws_json1_0FailureDetails(output.FailureDetails, context) : undefined,
|
|
2447
|
-
InputDataConfig: output.InputDataConfig != null
|
|
2448
|
-
? deserializeAws_json1_0InputDataConfig(output.InputDataConfig, context)
|
|
2449
|
-
: undefined,
|
|
2391
|
+
EnrollmentConfig: output.EnrollmentConfig != null ? de_EnrollmentConfig(output.EnrollmentConfig, context) : undefined,
|
|
2392
|
+
FailureDetails: output.FailureDetails != null ? de_FailureDetails(output.FailureDetails, context) : undefined,
|
|
2393
|
+
InputDataConfig: output.InputDataConfig != null ? de_InputDataConfig(output.InputDataConfig, context) : undefined,
|
|
2450
2394
|
JobId: __expectString(output.JobId),
|
|
2451
2395
|
JobName: __expectString(output.JobName),
|
|
2452
|
-
JobProgress: output.JobProgress != null ?
|
|
2396
|
+
JobProgress: output.JobProgress != null ? de_JobProgress(output.JobProgress, context) : undefined,
|
|
2453
2397
|
JobStatus: __expectString(output.JobStatus),
|
|
2454
|
-
OutputDataConfig: output.OutputDataConfig != null
|
|
2455
|
-
? deserializeAws_json1_0OutputDataConfig(output.OutputDataConfig, context)
|
|
2456
|
-
: undefined,
|
|
2398
|
+
OutputDataConfig: output.OutputDataConfig != null ? de_OutputDataConfig(output.OutputDataConfig, context) : undefined,
|
|
2457
2399
|
};
|
|
2458
2400
|
};
|
|
2459
|
-
const
|
|
2401
|
+
const de_SpeakerEnrollmentJobSummaries = (output, context) => {
|
|
2460
2402
|
const retVal = (output || [])
|
|
2461
2403
|
.filter((e) => e != null)
|
|
2462
2404
|
.map((entry) => {
|
|
2463
2405
|
if (entry === null) {
|
|
2464
2406
|
return null;
|
|
2465
2407
|
}
|
|
2466
|
-
return
|
|
2408
|
+
return de_SpeakerEnrollmentJobSummary(entry, context);
|
|
2467
2409
|
});
|
|
2468
2410
|
return retVal;
|
|
2469
2411
|
};
|
|
2470
|
-
const
|
|
2412
|
+
const de_SpeakerEnrollmentJobSummary = (output, context) => {
|
|
2471
2413
|
return {
|
|
2472
2414
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2473
2415
|
DomainId: __expectString(output.DomainId),
|
|
2474
2416
|
EndedAt: output.EndedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndedAt))) : undefined,
|
|
2475
|
-
FailureDetails: output.FailureDetails != null ?
|
|
2417
|
+
FailureDetails: output.FailureDetails != null ? de_FailureDetails(output.FailureDetails, context) : undefined,
|
|
2476
2418
|
JobId: __expectString(output.JobId),
|
|
2477
2419
|
JobName: __expectString(output.JobName),
|
|
2478
|
-
JobProgress: output.JobProgress != null ?
|
|
2420
|
+
JobProgress: output.JobProgress != null ? de_JobProgress(output.JobProgress, context) : undefined,
|
|
2479
2421
|
JobStatus: __expectString(output.JobStatus),
|
|
2480
2422
|
};
|
|
2481
2423
|
};
|
|
2482
|
-
const
|
|
2424
|
+
const de_SpeakerSummaries = (output, context) => {
|
|
2483
2425
|
const retVal = (output || [])
|
|
2484
2426
|
.filter((e) => e != null)
|
|
2485
2427
|
.map((entry) => {
|
|
2486
2428
|
if (entry === null) {
|
|
2487
2429
|
return null;
|
|
2488
2430
|
}
|
|
2489
|
-
return
|
|
2431
|
+
return de_SpeakerSummary(entry, context);
|
|
2490
2432
|
});
|
|
2491
2433
|
return retVal;
|
|
2492
2434
|
};
|
|
2493
|
-
const
|
|
2435
|
+
const de_SpeakerSummary = (output, context) => {
|
|
2494
2436
|
return {
|
|
2495
2437
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2496
2438
|
CustomerSpeakerId: __expectString(output.CustomerSpeakerId),
|
|
@@ -2503,65 +2445,65 @@ const deserializeAws_json1_0SpeakerSummary = (output, context) => {
|
|
|
2503
2445
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2504
2446
|
};
|
|
2505
2447
|
};
|
|
2506
|
-
const
|
|
2448
|
+
const de_StartFraudsterRegistrationJobResponse = (output, context) => {
|
|
2507
2449
|
return {
|
|
2508
|
-
Job: output.Job != null ?
|
|
2450
|
+
Job: output.Job != null ? de_FraudsterRegistrationJob(output.Job, context) : undefined,
|
|
2509
2451
|
};
|
|
2510
2452
|
};
|
|
2511
|
-
const
|
|
2453
|
+
const de_StartSpeakerEnrollmentJobResponse = (output, context) => {
|
|
2512
2454
|
return {
|
|
2513
|
-
Job: output.Job != null ?
|
|
2455
|
+
Job: output.Job != null ? de_SpeakerEnrollmentJob(output.Job, context) : undefined,
|
|
2514
2456
|
};
|
|
2515
2457
|
};
|
|
2516
|
-
const
|
|
2458
|
+
const de_Tag = (output, context) => {
|
|
2517
2459
|
return {
|
|
2518
2460
|
Key: __expectString(output.Key),
|
|
2519
2461
|
Value: __expectString(output.Value),
|
|
2520
2462
|
};
|
|
2521
2463
|
};
|
|
2522
|
-
const
|
|
2464
|
+
const de_TagList = (output, context) => {
|
|
2523
2465
|
const retVal = (output || [])
|
|
2524
2466
|
.filter((e) => e != null)
|
|
2525
2467
|
.map((entry) => {
|
|
2526
2468
|
if (entry === null) {
|
|
2527
2469
|
return null;
|
|
2528
2470
|
}
|
|
2529
|
-
return
|
|
2471
|
+
return de_Tag(entry, context);
|
|
2530
2472
|
});
|
|
2531
2473
|
return retVal;
|
|
2532
2474
|
};
|
|
2533
|
-
const
|
|
2475
|
+
const de_TagResourceResponse = (output, context) => {
|
|
2534
2476
|
return {};
|
|
2535
2477
|
};
|
|
2536
|
-
const
|
|
2478
|
+
const de_ThrottlingException = (output, context) => {
|
|
2537
2479
|
return {
|
|
2538
2480
|
Message: __expectString(output.Message),
|
|
2539
2481
|
};
|
|
2540
2482
|
};
|
|
2541
|
-
const
|
|
2483
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
2542
2484
|
return {};
|
|
2543
2485
|
};
|
|
2544
|
-
const
|
|
2486
|
+
const de_UpdateDomainResponse = (output, context) => {
|
|
2545
2487
|
return {
|
|
2546
|
-
Domain: output.Domain != null ?
|
|
2488
|
+
Domain: output.Domain != null ? de_Domain(output.Domain, context) : undefined,
|
|
2547
2489
|
};
|
|
2548
2490
|
};
|
|
2549
|
-
const
|
|
2491
|
+
const de_UpdateWatchlistResponse = (output, context) => {
|
|
2550
2492
|
return {
|
|
2551
|
-
Watchlist: output.Watchlist != null ?
|
|
2493
|
+
Watchlist: output.Watchlist != null ? de_Watchlist(output.Watchlist, context) : undefined,
|
|
2552
2494
|
};
|
|
2553
2495
|
};
|
|
2554
|
-
const
|
|
2496
|
+
const de_ValidationException = (output, context) => {
|
|
2555
2497
|
return {
|
|
2556
2498
|
Message: __expectString(output.Message),
|
|
2557
2499
|
};
|
|
2558
2500
|
};
|
|
2559
|
-
const
|
|
2501
|
+
const de_VoiceSpoofingRisk = (output, context) => {
|
|
2560
2502
|
return {
|
|
2561
2503
|
RiskScore: __expectInt32(output.RiskScore),
|
|
2562
2504
|
};
|
|
2563
2505
|
};
|
|
2564
|
-
const
|
|
2506
|
+
const de_Watchlist = (output, context) => {
|
|
2565
2507
|
return {
|
|
2566
2508
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2567
2509
|
DefaultWatchlist: __expectBoolean(output.DefaultWatchlist),
|
|
@@ -2572,23 +2514,23 @@ const deserializeAws_json1_0Watchlist = (output, context) => {
|
|
|
2572
2514
|
WatchlistId: __expectString(output.WatchlistId),
|
|
2573
2515
|
};
|
|
2574
2516
|
};
|
|
2575
|
-
const
|
|
2517
|
+
const de_WatchlistDetails = (output, context) => {
|
|
2576
2518
|
return {
|
|
2577
2519
|
DefaultWatchlistId: __expectString(output.DefaultWatchlistId),
|
|
2578
2520
|
};
|
|
2579
2521
|
};
|
|
2580
|
-
const
|
|
2522
|
+
const de_WatchlistSummaries = (output, context) => {
|
|
2581
2523
|
const retVal = (output || [])
|
|
2582
2524
|
.filter((e) => e != null)
|
|
2583
2525
|
.map((entry) => {
|
|
2584
2526
|
if (entry === null) {
|
|
2585
2527
|
return null;
|
|
2586
2528
|
}
|
|
2587
|
-
return
|
|
2529
|
+
return de_WatchlistSummary(entry, context);
|
|
2588
2530
|
});
|
|
2589
2531
|
return retVal;
|
|
2590
2532
|
};
|
|
2591
|
-
const
|
|
2533
|
+
const de_WatchlistSummary = (output, context) => {
|
|
2592
2534
|
return {
|
|
2593
2535
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
2594
2536
|
DefaultWatchlist: __expectBoolean(output.DefaultWatchlist),
|