@aws-sdk/client-voice-id 3.183.0 → 3.185.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/VoiceID.js +93 -86
  4. package/dist-es/VoiceIDClient.js +28 -22
  5. package/dist-es/commands/CreateDomainCommand.js +28 -21
  6. package/dist-es/commands/DeleteDomainCommand.js +29 -22
  7. package/dist-es/commands/DeleteFraudsterCommand.js +29 -22
  8. package/dist-es/commands/DeleteSpeakerCommand.js +29 -22
  9. package/dist-es/commands/DescribeDomainCommand.js +28 -21
  10. package/dist-es/commands/DescribeFraudsterCommand.js +28 -21
  11. package/dist-es/commands/DescribeFraudsterRegistrationJobCommand.js +28 -21
  12. package/dist-es/commands/DescribeSpeakerCommand.js +28 -21
  13. package/dist-es/commands/DescribeSpeakerEnrollmentJobCommand.js +28 -21
  14. package/dist-es/commands/EvaluateSessionCommand.js +28 -21
  15. package/dist-es/commands/ListDomainsCommand.js +28 -21
  16. package/dist-es/commands/ListFraudsterRegistrationJobsCommand.js +28 -21
  17. package/dist-es/commands/ListSpeakerEnrollmentJobsCommand.js +28 -21
  18. package/dist-es/commands/ListSpeakersCommand.js +28 -21
  19. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  20. package/dist-es/commands/OptOutSpeakerCommand.js +28 -21
  21. package/dist-es/commands/StartFraudsterRegistrationJobCommand.js +28 -21
  22. package/dist-es/commands/StartSpeakerEnrollmentJobCommand.js +28 -21
  23. package/dist-es/commands/TagResourceCommand.js +28 -21
  24. package/dist-es/commands/UntagResourceCommand.js +28 -21
  25. package/dist-es/commands/UpdateDomainCommand.js +28 -21
  26. package/dist-es/endpoints.js +8 -8
  27. package/dist-es/models/VoiceIDServiceException.js +10 -5
  28. package/dist-es/models/models_0.js +162 -333
  29. package/dist-es/pagination/ListDomainsPaginator.js +68 -25
  30. package/dist-es/pagination/ListFraudsterRegistrationJobsPaginator.js +68 -25
  31. package/dist-es/pagination/ListSpeakerEnrollmentJobsPaginator.js +68 -25
  32. package/dist-es/pagination/ListSpeakersPaginator.js +68 -25
  33. package/dist-es/protocols/Aws_json1_0.js +1984 -1529
  34. package/dist-es/runtimeConfig.browser.js +12 -26
  35. package/dist-es/runtimeConfig.js +12 -30
  36. package/dist-es/runtimeConfig.native.js +5 -8
  37. package/dist-es/runtimeConfig.shared.js +11 -8
  38. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-voice-id
@@ -1972,10 +1972,10 @@ const deserializeAws_json1_0VoiceSpoofingRisk = (output, context) => {
1972
1972
  };
1973
1973
  };
1974
1974
  const deserializeMetadata = (output) => {
1975
- var _a;
1975
+ var _a, _b;
1976
1976
  return ({
1977
1977
  httpStatusCode: output.statusCode,
1978
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1978
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1979
1979
  extendedRequestId: output.headers["x-amz-id-2"],
1980
1980
  cfId: output.headers["x-amz-cf-id"],
1981
1981
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
2
3
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
3
4
  import { DeleteFraudsterCommand, } from "./commands/DeleteFraudsterCommand";
@@ -20,299 +21,305 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
20
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
22
  import { UpdateDomainCommand, } from "./commands/UpdateDomainCommand";
22
23
  import { VoiceIDClient } from "./VoiceIDClient";
23
- export class VoiceID extends VoiceIDClient {
24
- createDomain(args, optionsOrCb, cb) {
25
- const command = new CreateDomainCommand(args);
24
+ var VoiceID = (function (_super) {
25
+ __extends(VoiceID, _super);
26
+ function VoiceID() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ VoiceID.prototype.createDomain = function (args, optionsOrCb, cb) {
30
+ var command = new CreateDomainCommand(args);
26
31
  if (typeof optionsOrCb === "function") {
27
32
  this.send(command, optionsOrCb);
28
33
  }
29
34
  else if (typeof cb === "function") {
30
35
  if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
37
  this.send(command, optionsOrCb || {}, cb);
33
38
  }
34
39
  else {
35
40
  return this.send(command, optionsOrCb);
36
41
  }
37
- }
38
- deleteDomain(args, optionsOrCb, cb) {
39
- const command = new DeleteDomainCommand(args);
42
+ };
43
+ VoiceID.prototype.deleteDomain = function (args, optionsOrCb, cb) {
44
+ var command = new DeleteDomainCommand(args);
40
45
  if (typeof optionsOrCb === "function") {
41
46
  this.send(command, optionsOrCb);
42
47
  }
43
48
  else if (typeof cb === "function") {
44
49
  if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
51
  this.send(command, optionsOrCb || {}, cb);
47
52
  }
48
53
  else {
49
54
  return this.send(command, optionsOrCb);
50
55
  }
51
- }
52
- deleteFraudster(args, optionsOrCb, cb) {
53
- const command = new DeleteFraudsterCommand(args);
56
+ };
57
+ VoiceID.prototype.deleteFraudster = function (args, optionsOrCb, cb) {
58
+ var command = new DeleteFraudsterCommand(args);
54
59
  if (typeof optionsOrCb === "function") {
55
60
  this.send(command, optionsOrCb);
56
61
  }
57
62
  else if (typeof cb === "function") {
58
63
  if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
65
  this.send(command, optionsOrCb || {}, cb);
61
66
  }
62
67
  else {
63
68
  return this.send(command, optionsOrCb);
64
69
  }
65
- }
66
- deleteSpeaker(args, optionsOrCb, cb) {
67
- const command = new DeleteSpeakerCommand(args);
70
+ };
71
+ VoiceID.prototype.deleteSpeaker = function (args, optionsOrCb, cb) {
72
+ var command = new DeleteSpeakerCommand(args);
68
73
  if (typeof optionsOrCb === "function") {
69
74
  this.send(command, optionsOrCb);
70
75
  }
71
76
  else if (typeof cb === "function") {
72
77
  if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
79
  this.send(command, optionsOrCb || {}, cb);
75
80
  }
76
81
  else {
77
82
  return this.send(command, optionsOrCb);
78
83
  }
79
- }
80
- describeDomain(args, optionsOrCb, cb) {
81
- const command = new DescribeDomainCommand(args);
84
+ };
85
+ VoiceID.prototype.describeDomain = function (args, optionsOrCb, cb) {
86
+ var command = new DescribeDomainCommand(args);
82
87
  if (typeof optionsOrCb === "function") {
83
88
  this.send(command, optionsOrCb);
84
89
  }
85
90
  else if (typeof cb === "function") {
86
91
  if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
93
  this.send(command, optionsOrCb || {}, cb);
89
94
  }
90
95
  else {
91
96
  return this.send(command, optionsOrCb);
92
97
  }
93
- }
94
- describeFraudster(args, optionsOrCb, cb) {
95
- const command = new DescribeFraudsterCommand(args);
98
+ };
99
+ VoiceID.prototype.describeFraudster = function (args, optionsOrCb, cb) {
100
+ var command = new DescribeFraudsterCommand(args);
96
101
  if (typeof optionsOrCb === "function") {
97
102
  this.send(command, optionsOrCb);
98
103
  }
99
104
  else if (typeof cb === "function") {
100
105
  if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
107
  this.send(command, optionsOrCb || {}, cb);
103
108
  }
104
109
  else {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
- }
108
- describeFraudsterRegistrationJob(args, optionsOrCb, cb) {
109
- const command = new DescribeFraudsterRegistrationJobCommand(args);
112
+ };
113
+ VoiceID.prototype.describeFraudsterRegistrationJob = function (args, optionsOrCb, cb) {
114
+ var command = new DescribeFraudsterRegistrationJobCommand(args);
110
115
  if (typeof optionsOrCb === "function") {
111
116
  this.send(command, optionsOrCb);
112
117
  }
113
118
  else if (typeof cb === "function") {
114
119
  if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
121
  this.send(command, optionsOrCb || {}, cb);
117
122
  }
118
123
  else {
119
124
  return this.send(command, optionsOrCb);
120
125
  }
121
- }
122
- describeSpeaker(args, optionsOrCb, cb) {
123
- const command = new DescribeSpeakerCommand(args);
126
+ };
127
+ VoiceID.prototype.describeSpeaker = function (args, optionsOrCb, cb) {
128
+ var command = new DescribeSpeakerCommand(args);
124
129
  if (typeof optionsOrCb === "function") {
125
130
  this.send(command, optionsOrCb);
126
131
  }
127
132
  else if (typeof cb === "function") {
128
133
  if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
135
  this.send(command, optionsOrCb || {}, cb);
131
136
  }
132
137
  else {
133
138
  return this.send(command, optionsOrCb);
134
139
  }
135
- }
136
- describeSpeakerEnrollmentJob(args, optionsOrCb, cb) {
137
- const command = new DescribeSpeakerEnrollmentJobCommand(args);
140
+ };
141
+ VoiceID.prototype.describeSpeakerEnrollmentJob = function (args, optionsOrCb, cb) {
142
+ var command = new DescribeSpeakerEnrollmentJobCommand(args);
138
143
  if (typeof optionsOrCb === "function") {
139
144
  this.send(command, optionsOrCb);
140
145
  }
141
146
  else if (typeof cb === "function") {
142
147
  if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
149
  this.send(command, optionsOrCb || {}, cb);
145
150
  }
146
151
  else {
147
152
  return this.send(command, optionsOrCb);
148
153
  }
149
- }
150
- evaluateSession(args, optionsOrCb, cb) {
151
- const command = new EvaluateSessionCommand(args);
154
+ };
155
+ VoiceID.prototype.evaluateSession = function (args, optionsOrCb, cb) {
156
+ var command = new EvaluateSessionCommand(args);
152
157
  if (typeof optionsOrCb === "function") {
153
158
  this.send(command, optionsOrCb);
154
159
  }
155
160
  else if (typeof cb === "function") {
156
161
  if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
163
  this.send(command, optionsOrCb || {}, cb);
159
164
  }
160
165
  else {
161
166
  return this.send(command, optionsOrCb);
162
167
  }
163
- }
164
- listDomains(args, optionsOrCb, cb) {
165
- const command = new ListDomainsCommand(args);
168
+ };
169
+ VoiceID.prototype.listDomains = function (args, optionsOrCb, cb) {
170
+ var command = new ListDomainsCommand(args);
166
171
  if (typeof optionsOrCb === "function") {
167
172
  this.send(command, optionsOrCb);
168
173
  }
169
174
  else if (typeof cb === "function") {
170
175
  if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
177
  this.send(command, optionsOrCb || {}, cb);
173
178
  }
174
179
  else {
175
180
  return this.send(command, optionsOrCb);
176
181
  }
177
- }
178
- listFraudsterRegistrationJobs(args, optionsOrCb, cb) {
179
- const command = new ListFraudsterRegistrationJobsCommand(args);
182
+ };
183
+ VoiceID.prototype.listFraudsterRegistrationJobs = function (args, optionsOrCb, cb) {
184
+ var command = new ListFraudsterRegistrationJobsCommand(args);
180
185
  if (typeof optionsOrCb === "function") {
181
186
  this.send(command, optionsOrCb);
182
187
  }
183
188
  else if (typeof cb === "function") {
184
189
  if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
191
  this.send(command, optionsOrCb || {}, cb);
187
192
  }
188
193
  else {
189
194
  return this.send(command, optionsOrCb);
190
195
  }
191
- }
192
- listSpeakerEnrollmentJobs(args, optionsOrCb, cb) {
193
- const command = new ListSpeakerEnrollmentJobsCommand(args);
196
+ };
197
+ VoiceID.prototype.listSpeakerEnrollmentJobs = function (args, optionsOrCb, cb) {
198
+ var command = new ListSpeakerEnrollmentJobsCommand(args);
194
199
  if (typeof optionsOrCb === "function") {
195
200
  this.send(command, optionsOrCb);
196
201
  }
197
202
  else if (typeof cb === "function") {
198
203
  if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
205
  this.send(command, optionsOrCb || {}, cb);
201
206
  }
202
207
  else {
203
208
  return this.send(command, optionsOrCb);
204
209
  }
205
- }
206
- listSpeakers(args, optionsOrCb, cb) {
207
- const command = new ListSpeakersCommand(args);
210
+ };
211
+ VoiceID.prototype.listSpeakers = function (args, optionsOrCb, cb) {
212
+ var command = new ListSpeakersCommand(args);
208
213
  if (typeof optionsOrCb === "function") {
209
214
  this.send(command, optionsOrCb);
210
215
  }
211
216
  else if (typeof cb === "function") {
212
217
  if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
219
  this.send(command, optionsOrCb || {}, cb);
215
220
  }
216
221
  else {
217
222
  return this.send(command, optionsOrCb);
218
223
  }
219
- }
220
- listTagsForResource(args, optionsOrCb, cb) {
221
- const command = new ListTagsForResourceCommand(args);
224
+ };
225
+ VoiceID.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
226
+ var command = new ListTagsForResourceCommand(args);
222
227
  if (typeof optionsOrCb === "function") {
223
228
  this.send(command, optionsOrCb);
224
229
  }
225
230
  else if (typeof cb === "function") {
226
231
  if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
233
  this.send(command, optionsOrCb || {}, cb);
229
234
  }
230
235
  else {
231
236
  return this.send(command, optionsOrCb);
232
237
  }
233
- }
234
- optOutSpeaker(args, optionsOrCb, cb) {
235
- const command = new OptOutSpeakerCommand(args);
238
+ };
239
+ VoiceID.prototype.optOutSpeaker = function (args, optionsOrCb, cb) {
240
+ var command = new OptOutSpeakerCommand(args);
236
241
  if (typeof optionsOrCb === "function") {
237
242
  this.send(command, optionsOrCb);
238
243
  }
239
244
  else if (typeof cb === "function") {
240
245
  if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
247
  this.send(command, optionsOrCb || {}, cb);
243
248
  }
244
249
  else {
245
250
  return this.send(command, optionsOrCb);
246
251
  }
247
- }
248
- startFraudsterRegistrationJob(args, optionsOrCb, cb) {
249
- const command = new StartFraudsterRegistrationJobCommand(args);
252
+ };
253
+ VoiceID.prototype.startFraudsterRegistrationJob = function (args, optionsOrCb, cb) {
254
+ var command = new StartFraudsterRegistrationJobCommand(args);
250
255
  if (typeof optionsOrCb === "function") {
251
256
  this.send(command, optionsOrCb);
252
257
  }
253
258
  else if (typeof cb === "function") {
254
259
  if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
261
  this.send(command, optionsOrCb || {}, cb);
257
262
  }
258
263
  else {
259
264
  return this.send(command, optionsOrCb);
260
265
  }
261
- }
262
- startSpeakerEnrollmentJob(args, optionsOrCb, cb) {
263
- const command = new StartSpeakerEnrollmentJobCommand(args);
266
+ };
267
+ VoiceID.prototype.startSpeakerEnrollmentJob = function (args, optionsOrCb, cb) {
268
+ var command = new StartSpeakerEnrollmentJobCommand(args);
264
269
  if (typeof optionsOrCb === "function") {
265
270
  this.send(command, optionsOrCb);
266
271
  }
267
272
  else if (typeof cb === "function") {
268
273
  if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
275
  this.send(command, optionsOrCb || {}, cb);
271
276
  }
272
277
  else {
273
278
  return this.send(command, optionsOrCb);
274
279
  }
275
- }
276
- tagResource(args, optionsOrCb, cb) {
277
- const command = new TagResourceCommand(args);
280
+ };
281
+ VoiceID.prototype.tagResource = function (args, optionsOrCb, cb) {
282
+ var command = new TagResourceCommand(args);
278
283
  if (typeof optionsOrCb === "function") {
279
284
  this.send(command, optionsOrCb);
280
285
  }
281
286
  else if (typeof cb === "function") {
282
287
  if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
289
  this.send(command, optionsOrCb || {}, cb);
285
290
  }
286
291
  else {
287
292
  return this.send(command, optionsOrCb);
288
293
  }
289
- }
290
- untagResource(args, optionsOrCb, cb) {
291
- const command = new UntagResourceCommand(args);
294
+ };
295
+ VoiceID.prototype.untagResource = function (args, optionsOrCb, cb) {
296
+ var command = new UntagResourceCommand(args);
292
297
  if (typeof optionsOrCb === "function") {
293
298
  this.send(command, optionsOrCb);
294
299
  }
295
300
  else if (typeof cb === "function") {
296
301
  if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
303
  this.send(command, optionsOrCb || {}, cb);
299
304
  }
300
305
  else {
301
306
  return this.send(command, optionsOrCb);
302
307
  }
303
- }
304
- updateDomain(args, optionsOrCb, cb) {
305
- const command = new UpdateDomainCommand(args);
308
+ };
309
+ VoiceID.prototype.updateDomain = function (args, optionsOrCb, cb) {
310
+ var command = new UpdateDomainCommand(args);
306
311
  if (typeof optionsOrCb === "function") {
307
312
  this.send(command, optionsOrCb);
308
313
  }
309
314
  else if (typeof cb === "function") {
310
315
  if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
317
  this.send(command, optionsOrCb || {}, cb);
313
318
  }
314
319
  else {
315
320
  return this.send(command, optionsOrCb);
316
321
  }
317
- }
318
- }
322
+ };
323
+ return VoiceID;
324
+ }(VoiceIDClient));
325
+ export { VoiceID };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class VoiceIDClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var VoiceIDClient = (function (_super) {
13
+ __extends(VoiceIDClient, _super);
14
+ function VoiceIDClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ VoiceIDClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return VoiceIDClient;
38
+ }(__Client));
39
+ export { VoiceIDClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDomainRequestFilterSensitiveLog, CreateDomainResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0CreateDomainCommand, serializeAws_json1_0CreateDomainCommand, } from "../protocols/Aws_json1_0";
5
- export class CreateDomainCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDomainCommand = (function (_super) {
7
+ __extends(CreateDomainCommand, _super);
8
+ function CreateDomainCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "VoiceIDClient";
15
- const commandName = "CreateDomainCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "VoiceIDClient";
18
+ var commandName = "CreateDomainCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDomainRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDomainResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDomainCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0CreateDomainCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDomainCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0CreateDomainCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDomainCommand;
38
+ }($Command));
39
+ export { CreateDomainCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteDomainRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_0DeleteDomainCommand, serializeAws_json1_0DeleteDomainCommand, } from "../protocols/Aws_json1_0";
5
- export class DeleteDomainCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteDomainCommand = (function (_super) {
7
+ __extends(DeleteDomainCommand, _super);
8
+ function DeleteDomainCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "VoiceIDClient";
15
- const commandName = "DeleteDomainCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "VoiceIDClient";
18
+ var commandName = "DeleteDomainCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteDomainRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteDomainCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0DeleteDomainCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteDomainCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0DeleteDomainCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteDomainCommand;
38
+ }($Command));
39
+ export { DeleteDomainCommand };