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