@aws-sdk/client-voice-id 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VoiceID = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AssociateFraudsterCommand_1 = require("./commands/AssociateFraudsterCommand");
5
6
  const CreateDomainCommand_1 = require("./commands/CreateDomainCommand");
6
7
  const CreateWatchlistCommand_1 = require("./commands/CreateWatchlistCommand");
@@ -31,412 +32,38 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
31
32
  const UpdateDomainCommand_1 = require("./commands/UpdateDomainCommand");
32
33
  const UpdateWatchlistCommand_1 = require("./commands/UpdateWatchlistCommand");
33
34
  const VoiceIDClient_1 = require("./VoiceIDClient");
35
+ const commands = {
36
+ AssociateFraudsterCommand: AssociateFraudsterCommand_1.AssociateFraudsterCommand,
37
+ CreateDomainCommand: CreateDomainCommand_1.CreateDomainCommand,
38
+ CreateWatchlistCommand: CreateWatchlistCommand_1.CreateWatchlistCommand,
39
+ DeleteDomainCommand: DeleteDomainCommand_1.DeleteDomainCommand,
40
+ DeleteFraudsterCommand: DeleteFraudsterCommand_1.DeleteFraudsterCommand,
41
+ DeleteSpeakerCommand: DeleteSpeakerCommand_1.DeleteSpeakerCommand,
42
+ DeleteWatchlistCommand: DeleteWatchlistCommand_1.DeleteWatchlistCommand,
43
+ DescribeDomainCommand: DescribeDomainCommand_1.DescribeDomainCommand,
44
+ DescribeFraudsterCommand: DescribeFraudsterCommand_1.DescribeFraudsterCommand,
45
+ DescribeFraudsterRegistrationJobCommand: DescribeFraudsterRegistrationJobCommand_1.DescribeFraudsterRegistrationJobCommand,
46
+ DescribeSpeakerCommand: DescribeSpeakerCommand_1.DescribeSpeakerCommand,
47
+ DescribeSpeakerEnrollmentJobCommand: DescribeSpeakerEnrollmentJobCommand_1.DescribeSpeakerEnrollmentJobCommand,
48
+ DescribeWatchlistCommand: DescribeWatchlistCommand_1.DescribeWatchlistCommand,
49
+ DisassociateFraudsterCommand: DisassociateFraudsterCommand_1.DisassociateFraudsterCommand,
50
+ EvaluateSessionCommand: EvaluateSessionCommand_1.EvaluateSessionCommand,
51
+ ListDomainsCommand: ListDomainsCommand_1.ListDomainsCommand,
52
+ ListFraudsterRegistrationJobsCommand: ListFraudsterRegistrationJobsCommand_1.ListFraudsterRegistrationJobsCommand,
53
+ ListFraudstersCommand: ListFraudstersCommand_1.ListFraudstersCommand,
54
+ ListSpeakerEnrollmentJobsCommand: ListSpeakerEnrollmentJobsCommand_1.ListSpeakerEnrollmentJobsCommand,
55
+ ListSpeakersCommand: ListSpeakersCommand_1.ListSpeakersCommand,
56
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
57
+ ListWatchlistsCommand: ListWatchlistsCommand_1.ListWatchlistsCommand,
58
+ OptOutSpeakerCommand: OptOutSpeakerCommand_1.OptOutSpeakerCommand,
59
+ StartFraudsterRegistrationJobCommand: StartFraudsterRegistrationJobCommand_1.StartFraudsterRegistrationJobCommand,
60
+ StartSpeakerEnrollmentJobCommand: StartSpeakerEnrollmentJobCommand_1.StartSpeakerEnrollmentJobCommand,
61
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
62
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
63
+ UpdateDomainCommand: UpdateDomainCommand_1.UpdateDomainCommand,
64
+ UpdateWatchlistCommand: UpdateWatchlistCommand_1.UpdateWatchlistCommand,
65
+ };
34
66
  class VoiceID extends VoiceIDClient_1.VoiceIDClient {
35
- associateFraudster(args, optionsOrCb, cb) {
36
- const command = new AssociateFraudsterCommand_1.AssociateFraudsterCommand(args);
37
- if (typeof optionsOrCb === "function") {
38
- this.send(command, optionsOrCb);
39
- }
40
- else if (typeof cb === "function") {
41
- if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
- this.send(command, optionsOrCb || {}, cb);
44
- }
45
- else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
- createDomain(args, optionsOrCb, cb) {
50
- const command = new CreateDomainCommand_1.CreateDomainCommand(args);
51
- if (typeof optionsOrCb === "function") {
52
- this.send(command, optionsOrCb);
53
- }
54
- else if (typeof cb === "function") {
55
- if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
- this.send(command, optionsOrCb || {}, cb);
58
- }
59
- else {
60
- return this.send(command, optionsOrCb);
61
- }
62
- }
63
- createWatchlist(args, optionsOrCb, cb) {
64
- const command = new CreateWatchlistCommand_1.CreateWatchlistCommand(args);
65
- if (typeof optionsOrCb === "function") {
66
- this.send(command, optionsOrCb);
67
- }
68
- else if (typeof cb === "function") {
69
- if (typeof optionsOrCb !== "object")
70
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
- this.send(command, optionsOrCb || {}, cb);
72
- }
73
- else {
74
- return this.send(command, optionsOrCb);
75
- }
76
- }
77
- deleteDomain(args, optionsOrCb, cb) {
78
- const command = new DeleteDomainCommand_1.DeleteDomainCommand(args);
79
- if (typeof optionsOrCb === "function") {
80
- this.send(command, optionsOrCb);
81
- }
82
- else if (typeof cb === "function") {
83
- if (typeof optionsOrCb !== "object")
84
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
- this.send(command, optionsOrCb || {}, cb);
86
- }
87
- else {
88
- return this.send(command, optionsOrCb);
89
- }
90
- }
91
- deleteFraudster(args, optionsOrCb, cb) {
92
- const command = new DeleteFraudsterCommand_1.DeleteFraudsterCommand(args);
93
- if (typeof optionsOrCb === "function") {
94
- this.send(command, optionsOrCb);
95
- }
96
- else if (typeof cb === "function") {
97
- if (typeof optionsOrCb !== "object")
98
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
- this.send(command, optionsOrCb || {}, cb);
100
- }
101
- else {
102
- return this.send(command, optionsOrCb);
103
- }
104
- }
105
- deleteSpeaker(args, optionsOrCb, cb) {
106
- const command = new DeleteSpeakerCommand_1.DeleteSpeakerCommand(args);
107
- if (typeof optionsOrCb === "function") {
108
- this.send(command, optionsOrCb);
109
- }
110
- else if (typeof cb === "function") {
111
- if (typeof optionsOrCb !== "object")
112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
- this.send(command, optionsOrCb || {}, cb);
114
- }
115
- else {
116
- return this.send(command, optionsOrCb);
117
- }
118
- }
119
- deleteWatchlist(args, optionsOrCb, cb) {
120
- const command = new DeleteWatchlistCommand_1.DeleteWatchlistCommand(args);
121
- if (typeof optionsOrCb === "function") {
122
- this.send(command, optionsOrCb);
123
- }
124
- else if (typeof cb === "function") {
125
- if (typeof optionsOrCb !== "object")
126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
- this.send(command, optionsOrCb || {}, cb);
128
- }
129
- else {
130
- return this.send(command, optionsOrCb);
131
- }
132
- }
133
- describeDomain(args, optionsOrCb, cb) {
134
- const command = new DescribeDomainCommand_1.DescribeDomainCommand(args);
135
- if (typeof optionsOrCb === "function") {
136
- this.send(command, optionsOrCb);
137
- }
138
- else if (typeof cb === "function") {
139
- if (typeof optionsOrCb !== "object")
140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
- this.send(command, optionsOrCb || {}, cb);
142
- }
143
- else {
144
- return this.send(command, optionsOrCb);
145
- }
146
- }
147
- describeFraudster(args, optionsOrCb, cb) {
148
- const command = new DescribeFraudsterCommand_1.DescribeFraudsterCommand(args);
149
- if (typeof optionsOrCb === "function") {
150
- this.send(command, optionsOrCb);
151
- }
152
- else if (typeof cb === "function") {
153
- if (typeof optionsOrCb !== "object")
154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
- this.send(command, optionsOrCb || {}, cb);
156
- }
157
- else {
158
- return this.send(command, optionsOrCb);
159
- }
160
- }
161
- describeFraudsterRegistrationJob(args, optionsOrCb, cb) {
162
- const command = new DescribeFraudsterRegistrationJobCommand_1.DescribeFraudsterRegistrationJobCommand(args);
163
- if (typeof optionsOrCb === "function") {
164
- this.send(command, optionsOrCb);
165
- }
166
- else if (typeof cb === "function") {
167
- if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
- this.send(command, optionsOrCb || {}, cb);
170
- }
171
- else {
172
- return this.send(command, optionsOrCb);
173
- }
174
- }
175
- describeSpeaker(args, optionsOrCb, cb) {
176
- const command = new DescribeSpeakerCommand_1.DescribeSpeakerCommand(args);
177
- if (typeof optionsOrCb === "function") {
178
- this.send(command, optionsOrCb);
179
- }
180
- else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
- this.send(command, optionsOrCb || {}, cb);
184
- }
185
- else {
186
- return this.send(command, optionsOrCb);
187
- }
188
- }
189
- describeSpeakerEnrollmentJob(args, optionsOrCb, cb) {
190
- const command = new DescribeSpeakerEnrollmentJobCommand_1.DescribeSpeakerEnrollmentJobCommand(args);
191
- if (typeof optionsOrCb === "function") {
192
- this.send(command, optionsOrCb);
193
- }
194
- else if (typeof cb === "function") {
195
- if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
- this.send(command, optionsOrCb || {}, cb);
198
- }
199
- else {
200
- return this.send(command, optionsOrCb);
201
- }
202
- }
203
- describeWatchlist(args, optionsOrCb, cb) {
204
- const command = new DescribeWatchlistCommand_1.DescribeWatchlistCommand(args);
205
- if (typeof optionsOrCb === "function") {
206
- this.send(command, optionsOrCb);
207
- }
208
- else if (typeof cb === "function") {
209
- if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
- this.send(command, optionsOrCb || {}, cb);
212
- }
213
- else {
214
- return this.send(command, optionsOrCb);
215
- }
216
- }
217
- disassociateFraudster(args, optionsOrCb, cb) {
218
- const command = new DisassociateFraudsterCommand_1.DisassociateFraudsterCommand(args);
219
- if (typeof optionsOrCb === "function") {
220
- this.send(command, optionsOrCb);
221
- }
222
- else if (typeof cb === "function") {
223
- if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
- this.send(command, optionsOrCb || {}, cb);
226
- }
227
- else {
228
- return this.send(command, optionsOrCb);
229
- }
230
- }
231
- evaluateSession(args, optionsOrCb, cb) {
232
- const command = new EvaluateSessionCommand_1.EvaluateSessionCommand(args);
233
- if (typeof optionsOrCb === "function") {
234
- this.send(command, optionsOrCb);
235
- }
236
- else if (typeof cb === "function") {
237
- if (typeof optionsOrCb !== "object")
238
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
- this.send(command, optionsOrCb || {}, cb);
240
- }
241
- else {
242
- return this.send(command, optionsOrCb);
243
- }
244
- }
245
- listDomains(args, optionsOrCb, cb) {
246
- const command = new ListDomainsCommand_1.ListDomainsCommand(args);
247
- if (typeof optionsOrCb === "function") {
248
- this.send(command, optionsOrCb);
249
- }
250
- else if (typeof cb === "function") {
251
- if (typeof optionsOrCb !== "object")
252
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
- this.send(command, optionsOrCb || {}, cb);
254
- }
255
- else {
256
- return this.send(command, optionsOrCb);
257
- }
258
- }
259
- listFraudsterRegistrationJobs(args, optionsOrCb, cb) {
260
- const command = new ListFraudsterRegistrationJobsCommand_1.ListFraudsterRegistrationJobsCommand(args);
261
- if (typeof optionsOrCb === "function") {
262
- this.send(command, optionsOrCb);
263
- }
264
- else if (typeof cb === "function") {
265
- if (typeof optionsOrCb !== "object")
266
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
- this.send(command, optionsOrCb || {}, cb);
268
- }
269
- else {
270
- return this.send(command, optionsOrCb);
271
- }
272
- }
273
- listFraudsters(args, optionsOrCb, cb) {
274
- const command = new ListFraudstersCommand_1.ListFraudstersCommand(args);
275
- if (typeof optionsOrCb === "function") {
276
- this.send(command, optionsOrCb);
277
- }
278
- else if (typeof cb === "function") {
279
- if (typeof optionsOrCb !== "object")
280
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
- this.send(command, optionsOrCb || {}, cb);
282
- }
283
- else {
284
- return this.send(command, optionsOrCb);
285
- }
286
- }
287
- listSpeakerEnrollmentJobs(args, optionsOrCb, cb) {
288
- const command = new ListSpeakerEnrollmentJobsCommand_1.ListSpeakerEnrollmentJobsCommand(args);
289
- if (typeof optionsOrCb === "function") {
290
- this.send(command, optionsOrCb);
291
- }
292
- else if (typeof cb === "function") {
293
- if (typeof optionsOrCb !== "object")
294
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
- this.send(command, optionsOrCb || {}, cb);
296
- }
297
- else {
298
- return this.send(command, optionsOrCb);
299
- }
300
- }
301
- listSpeakers(args, optionsOrCb, cb) {
302
- const command = new ListSpeakersCommand_1.ListSpeakersCommand(args);
303
- if (typeof optionsOrCb === "function") {
304
- this.send(command, optionsOrCb);
305
- }
306
- else if (typeof cb === "function") {
307
- if (typeof optionsOrCb !== "object")
308
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
- this.send(command, optionsOrCb || {}, cb);
310
- }
311
- else {
312
- return this.send(command, optionsOrCb);
313
- }
314
- }
315
- listTagsForResource(args, optionsOrCb, cb) {
316
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
317
- if (typeof optionsOrCb === "function") {
318
- this.send(command, optionsOrCb);
319
- }
320
- else if (typeof cb === "function") {
321
- if (typeof optionsOrCb !== "object")
322
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
- this.send(command, optionsOrCb || {}, cb);
324
- }
325
- else {
326
- return this.send(command, optionsOrCb);
327
- }
328
- }
329
- listWatchlists(args, optionsOrCb, cb) {
330
- const command = new ListWatchlistsCommand_1.ListWatchlistsCommand(args);
331
- if (typeof optionsOrCb === "function") {
332
- this.send(command, optionsOrCb);
333
- }
334
- else if (typeof cb === "function") {
335
- if (typeof optionsOrCb !== "object")
336
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
- this.send(command, optionsOrCb || {}, cb);
338
- }
339
- else {
340
- return this.send(command, optionsOrCb);
341
- }
342
- }
343
- optOutSpeaker(args, optionsOrCb, cb) {
344
- const command = new OptOutSpeakerCommand_1.OptOutSpeakerCommand(args);
345
- if (typeof optionsOrCb === "function") {
346
- this.send(command, optionsOrCb);
347
- }
348
- else if (typeof cb === "function") {
349
- if (typeof optionsOrCb !== "object")
350
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
- this.send(command, optionsOrCb || {}, cb);
352
- }
353
- else {
354
- return this.send(command, optionsOrCb);
355
- }
356
- }
357
- startFraudsterRegistrationJob(args, optionsOrCb, cb) {
358
- const command = new StartFraudsterRegistrationJobCommand_1.StartFraudsterRegistrationJobCommand(args);
359
- if (typeof optionsOrCb === "function") {
360
- this.send(command, optionsOrCb);
361
- }
362
- else if (typeof cb === "function") {
363
- if (typeof optionsOrCb !== "object")
364
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
- this.send(command, optionsOrCb || {}, cb);
366
- }
367
- else {
368
- return this.send(command, optionsOrCb);
369
- }
370
- }
371
- startSpeakerEnrollmentJob(args, optionsOrCb, cb) {
372
- const command = new StartSpeakerEnrollmentJobCommand_1.StartSpeakerEnrollmentJobCommand(args);
373
- if (typeof optionsOrCb === "function") {
374
- this.send(command, optionsOrCb);
375
- }
376
- else if (typeof cb === "function") {
377
- if (typeof optionsOrCb !== "object")
378
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
- this.send(command, optionsOrCb || {}, cb);
380
- }
381
- else {
382
- return this.send(command, optionsOrCb);
383
- }
384
- }
385
- tagResource(args, optionsOrCb, cb) {
386
- const command = new TagResourceCommand_1.TagResourceCommand(args);
387
- if (typeof optionsOrCb === "function") {
388
- this.send(command, optionsOrCb);
389
- }
390
- else if (typeof cb === "function") {
391
- if (typeof optionsOrCb !== "object")
392
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
- this.send(command, optionsOrCb || {}, cb);
394
- }
395
- else {
396
- return this.send(command, optionsOrCb);
397
- }
398
- }
399
- untagResource(args, optionsOrCb, cb) {
400
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
401
- if (typeof optionsOrCb === "function") {
402
- this.send(command, optionsOrCb);
403
- }
404
- else if (typeof cb === "function") {
405
- if (typeof optionsOrCb !== "object")
406
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
- this.send(command, optionsOrCb || {}, cb);
408
- }
409
- else {
410
- return this.send(command, optionsOrCb);
411
- }
412
- }
413
- updateDomain(args, optionsOrCb, cb) {
414
- const command = new UpdateDomainCommand_1.UpdateDomainCommand(args);
415
- if (typeof optionsOrCb === "function") {
416
- this.send(command, optionsOrCb);
417
- }
418
- else if (typeof cb === "function") {
419
- if (typeof optionsOrCb !== "object")
420
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
- this.send(command, optionsOrCb || {}, cb);
422
- }
423
- else {
424
- return this.send(command, optionsOrCb);
425
- }
426
- }
427
- updateWatchlist(args, optionsOrCb, cb) {
428
- const command = new UpdateWatchlistCommand_1.UpdateWatchlistCommand(args);
429
- if (typeof optionsOrCb === "function") {
430
- this.send(command, optionsOrCb);
431
- }
432
- else if (typeof cb === "function") {
433
- if (typeof optionsOrCb !== "object")
434
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
- this.send(command, optionsOrCb || {}, cb);
436
- }
437
- else {
438
- return this.send(command, optionsOrCb);
439
- }
440
- }
441
67
  }
442
68
  exports.VoiceID = VoiceID;
69
+ (0, smithy_client_1.createAggregatedClient)(commands, VoiceID);
@@ -1631,7 +1631,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1631
1631
  };
1632
1632
  const se_CreateDomainRequest = (input, context) => {
1633
1633
  return (0, smithy_client_1.take)(input, {
1634
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1634
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1635
1635
  Description: [],
1636
1636
  Name: [],
1637
1637
  ServerSideEncryptionConfiguration: smithy_client_1._json,
@@ -1640,7 +1640,7 @@ const se_CreateDomainRequest = (input, context) => {
1640
1640
  };
1641
1641
  const se_CreateWatchlistRequest = (input, context) => {
1642
1642
  return (0, smithy_client_1.take)(input, {
1643
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1643
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1644
1644
  Description: [],
1645
1645
  DomainId: [],
1646
1646
  Name: [],
@@ -1648,7 +1648,7 @@ const se_CreateWatchlistRequest = (input, context) => {
1648
1648
  };
1649
1649
  const se_StartFraudsterRegistrationJobRequest = (input, context) => {
1650
1650
  return (0, smithy_client_1.take)(input, {
1651
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1651
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1652
1652
  DataAccessRoleArn: [],
1653
1653
  DomainId: [],
1654
1654
  InputDataConfig: smithy_client_1._json,
@@ -1659,7 +1659,7 @@ const se_StartFraudsterRegistrationJobRequest = (input, context) => {
1659
1659
  };
1660
1660
  const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
1661
1661
  return (0, smithy_client_1.take)(input, {
1662
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1662
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1663
1663
  DataAccessRoleArn: [],
1664
1664
  DomainId: [],
1665
1665
  EnrollmentConfig: smithy_client_1._json,
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AssociateFraudsterCommand, } from "./commands/AssociateFraudsterCommand";
2
3
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
3
4
  import { CreateWatchlistCommand, } from "./commands/CreateWatchlistCommand";
@@ -28,411 +29,37 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
28
29
  import { UpdateDomainCommand, } from "./commands/UpdateDomainCommand";
29
30
  import { UpdateWatchlistCommand, } from "./commands/UpdateWatchlistCommand";
30
31
  import { VoiceIDClient } from "./VoiceIDClient";
32
+ const commands = {
33
+ AssociateFraudsterCommand,
34
+ CreateDomainCommand,
35
+ CreateWatchlistCommand,
36
+ DeleteDomainCommand,
37
+ DeleteFraudsterCommand,
38
+ DeleteSpeakerCommand,
39
+ DeleteWatchlistCommand,
40
+ DescribeDomainCommand,
41
+ DescribeFraudsterCommand,
42
+ DescribeFraudsterRegistrationJobCommand,
43
+ DescribeSpeakerCommand,
44
+ DescribeSpeakerEnrollmentJobCommand,
45
+ DescribeWatchlistCommand,
46
+ DisassociateFraudsterCommand,
47
+ EvaluateSessionCommand,
48
+ ListDomainsCommand,
49
+ ListFraudsterRegistrationJobsCommand,
50
+ ListFraudstersCommand,
51
+ ListSpeakerEnrollmentJobsCommand,
52
+ ListSpeakersCommand,
53
+ ListTagsForResourceCommand,
54
+ ListWatchlistsCommand,
55
+ OptOutSpeakerCommand,
56
+ StartFraudsterRegistrationJobCommand,
57
+ StartSpeakerEnrollmentJobCommand,
58
+ TagResourceCommand,
59
+ UntagResourceCommand,
60
+ UpdateDomainCommand,
61
+ UpdateWatchlistCommand,
62
+ };
31
63
  export class VoiceID extends VoiceIDClient {
32
- associateFraudster(args, optionsOrCb, cb) {
33
- const command = new AssociateFraudsterCommand(args);
34
- if (typeof optionsOrCb === "function") {
35
- this.send(command, optionsOrCb);
36
- }
37
- else if (typeof cb === "function") {
38
- if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
- this.send(command, optionsOrCb || {}, cb);
41
- }
42
- else {
43
- return this.send(command, optionsOrCb);
44
- }
45
- }
46
- createDomain(args, optionsOrCb, cb) {
47
- const command = new CreateDomainCommand(args);
48
- if (typeof optionsOrCb === "function") {
49
- this.send(command, optionsOrCb);
50
- }
51
- else if (typeof cb === "function") {
52
- if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
- this.send(command, optionsOrCb || {}, cb);
55
- }
56
- else {
57
- return this.send(command, optionsOrCb);
58
- }
59
- }
60
- createWatchlist(args, optionsOrCb, cb) {
61
- const command = new CreateWatchlistCommand(args);
62
- if (typeof optionsOrCb === "function") {
63
- this.send(command, optionsOrCb);
64
- }
65
- else if (typeof cb === "function") {
66
- if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
- this.send(command, optionsOrCb || {}, cb);
69
- }
70
- else {
71
- return this.send(command, optionsOrCb);
72
- }
73
- }
74
- deleteDomain(args, optionsOrCb, cb) {
75
- const command = new DeleteDomainCommand(args);
76
- if (typeof optionsOrCb === "function") {
77
- this.send(command, optionsOrCb);
78
- }
79
- else if (typeof cb === "function") {
80
- if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- }
84
- else {
85
- return this.send(command, optionsOrCb);
86
- }
87
- }
88
- deleteFraudster(args, optionsOrCb, cb) {
89
- const command = new DeleteFraudsterCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- deleteSpeaker(args, optionsOrCb, cb) {
103
- const command = new DeleteSpeakerCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- deleteWatchlist(args, optionsOrCb, cb) {
117
- const command = new DeleteWatchlistCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- describeDomain(args, optionsOrCb, cb) {
131
- const command = new DescribeDomainCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- describeFraudster(args, optionsOrCb, cb) {
145
- const command = new DescribeFraudsterCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- describeFraudsterRegistrationJob(args, optionsOrCb, cb) {
159
- const command = new DescribeFraudsterRegistrationJobCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- describeSpeaker(args, optionsOrCb, cb) {
173
- const command = new DescribeSpeakerCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- describeSpeakerEnrollmentJob(args, optionsOrCb, cb) {
187
- const command = new DescribeSpeakerEnrollmentJobCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- describeWatchlist(args, optionsOrCb, cb) {
201
- const command = new DescribeWatchlistCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- disassociateFraudster(args, optionsOrCb, cb) {
215
- const command = new DisassociateFraudsterCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
- evaluateSession(args, optionsOrCb, cb) {
229
- const command = new EvaluateSessionCommand(args);
230
- if (typeof optionsOrCb === "function") {
231
- this.send(command, optionsOrCb);
232
- }
233
- else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- }
238
- else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
- listDomains(args, optionsOrCb, cb) {
243
- const command = new ListDomainsCommand(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- }
247
- else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
- this.send(command, optionsOrCb || {}, cb);
251
- }
252
- else {
253
- return this.send(command, optionsOrCb);
254
- }
255
- }
256
- listFraudsterRegistrationJobs(args, optionsOrCb, cb) {
257
- const command = new ListFraudsterRegistrationJobsCommand(args);
258
- if (typeof optionsOrCb === "function") {
259
- this.send(command, optionsOrCb);
260
- }
261
- else if (typeof cb === "function") {
262
- if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
- this.send(command, optionsOrCb || {}, cb);
265
- }
266
- else {
267
- return this.send(command, optionsOrCb);
268
- }
269
- }
270
- listFraudsters(args, optionsOrCb, cb) {
271
- const command = new ListFraudstersCommand(args);
272
- if (typeof optionsOrCb === "function") {
273
- this.send(command, optionsOrCb);
274
- }
275
- else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- }
280
- else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
- listSpeakerEnrollmentJobs(args, optionsOrCb, cb) {
285
- const command = new ListSpeakerEnrollmentJobsCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- }
289
- else if (typeof cb === "function") {
290
- if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
- this.send(command, optionsOrCb || {}, cb);
293
- }
294
- else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
- listSpeakers(args, optionsOrCb, cb) {
299
- const command = new ListSpeakersCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- }
303
- else if (typeof cb === "function") {
304
- if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- }
308
- else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
- listTagsForResource(args, optionsOrCb, cb) {
313
- const command = new ListTagsForResourceCommand(args);
314
- if (typeof optionsOrCb === "function") {
315
- this.send(command, optionsOrCb);
316
- }
317
- else if (typeof cb === "function") {
318
- if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
- this.send(command, optionsOrCb || {}, cb);
321
- }
322
- else {
323
- return this.send(command, optionsOrCb);
324
- }
325
- }
326
- listWatchlists(args, optionsOrCb, cb) {
327
- const command = new ListWatchlistsCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- }
331
- else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- }
336
- else {
337
- return this.send(command, optionsOrCb);
338
- }
339
- }
340
- optOutSpeaker(args, optionsOrCb, cb) {
341
- const command = new OptOutSpeakerCommand(args);
342
- if (typeof optionsOrCb === "function") {
343
- this.send(command, optionsOrCb);
344
- }
345
- else if (typeof cb === "function") {
346
- if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
- this.send(command, optionsOrCb || {}, cb);
349
- }
350
- else {
351
- return this.send(command, optionsOrCb);
352
- }
353
- }
354
- startFraudsterRegistrationJob(args, optionsOrCb, cb) {
355
- const command = new StartFraudsterRegistrationJobCommand(args);
356
- if (typeof optionsOrCb === "function") {
357
- this.send(command, optionsOrCb);
358
- }
359
- else if (typeof cb === "function") {
360
- if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
- this.send(command, optionsOrCb || {}, cb);
363
- }
364
- else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
- startSpeakerEnrollmentJob(args, optionsOrCb, cb) {
369
- const command = new StartSpeakerEnrollmentJobCommand(args);
370
- if (typeof optionsOrCb === "function") {
371
- this.send(command, optionsOrCb);
372
- }
373
- else if (typeof cb === "function") {
374
- if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- }
378
- else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
- tagResource(args, optionsOrCb, cb) {
383
- const command = new TagResourceCommand(args);
384
- if (typeof optionsOrCb === "function") {
385
- this.send(command, optionsOrCb);
386
- }
387
- else if (typeof cb === "function") {
388
- if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
- this.send(command, optionsOrCb || {}, cb);
391
- }
392
- else {
393
- return this.send(command, optionsOrCb);
394
- }
395
- }
396
- untagResource(args, optionsOrCb, cb) {
397
- const command = new UntagResourceCommand(args);
398
- if (typeof optionsOrCb === "function") {
399
- this.send(command, optionsOrCb);
400
- }
401
- else if (typeof cb === "function") {
402
- if (typeof optionsOrCb !== "object")
403
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
- this.send(command, optionsOrCb || {}, cb);
405
- }
406
- else {
407
- return this.send(command, optionsOrCb);
408
- }
409
- }
410
- updateDomain(args, optionsOrCb, cb) {
411
- const command = new UpdateDomainCommand(args);
412
- if (typeof optionsOrCb === "function") {
413
- this.send(command, optionsOrCb);
414
- }
415
- else if (typeof cb === "function") {
416
- if (typeof optionsOrCb !== "object")
417
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
418
- this.send(command, optionsOrCb || {}, cb);
419
- }
420
- else {
421
- return this.send(command, optionsOrCb);
422
- }
423
- }
424
- updateWatchlist(args, optionsOrCb, cb) {
425
- const command = new UpdateWatchlistCommand(args);
426
- if (typeof optionsOrCb === "function") {
427
- this.send(command, optionsOrCb);
428
- }
429
- else if (typeof cb === "function") {
430
- if (typeof optionsOrCb !== "object")
431
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
- this.send(command, optionsOrCb || {}, cb);
433
- }
434
- else {
435
- return this.send(command, optionsOrCb);
436
- }
437
- }
438
64
  }
65
+ createAggregatedClient(commands, VoiceID);
@@ -1569,7 +1569,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1569
1569
  };
1570
1570
  const se_CreateDomainRequest = (input, context) => {
1571
1571
  return take(input, {
1572
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
1572
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1573
1573
  Description: [],
1574
1574
  Name: [],
1575
1575
  ServerSideEncryptionConfiguration: _json,
@@ -1578,7 +1578,7 @@ const se_CreateDomainRequest = (input, context) => {
1578
1578
  };
1579
1579
  const se_CreateWatchlistRequest = (input, context) => {
1580
1580
  return take(input, {
1581
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
1581
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1582
1582
  Description: [],
1583
1583
  DomainId: [],
1584
1584
  Name: [],
@@ -1586,7 +1586,7 @@ const se_CreateWatchlistRequest = (input, context) => {
1586
1586
  };
1587
1587
  const se_StartFraudsterRegistrationJobRequest = (input, context) => {
1588
1588
  return take(input, {
1589
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
1589
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1590
1590
  DataAccessRoleArn: [],
1591
1591
  DomainId: [],
1592
1592
  InputDataConfig: _json,
@@ -1597,7 +1597,7 @@ const se_StartFraudsterRegistrationJobRequest = (input, context) => {
1597
1597
  };
1598
1598
  const se_StartSpeakerEnrollmentJobRequest = (input, context) => {
1599
1599
  return take(input, {
1600
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
1600
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1601
1601
  DataAccessRoleArn: [],
1602
1602
  DomainId: [],
1603
1603
  EnrollmentConfig: _json,
@@ -29,232 +29,186 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
29
29
  import { UpdateDomainCommandInput, UpdateDomainCommandOutput } from "./commands/UpdateDomainCommand";
30
30
  import { UpdateWatchlistCommandInput, UpdateWatchlistCommandOutput } from "./commands/UpdateWatchlistCommand";
31
31
  import { VoiceIDClient } from "./VoiceIDClient";
32
- /**
33
- * @public
34
- * <p>Amazon Connect Voice ID provides real-time caller authentication and fraud risk detection, which
35
- * make voice interactions in contact centers more secure and efficient.</p>
36
- */
37
- export declare class VoiceID extends VoiceIDClient {
32
+ export interface VoiceID {
38
33
  /**
39
- * @public
40
- * <p>Associates the fraudsters with the watchlist specified in the same domain. </p>
34
+ * @see {@link AssociateFraudsterCommand}
41
35
  */
42
36
  associateFraudster(args: AssociateFraudsterCommandInput, options?: __HttpHandlerOptions): Promise<AssociateFraudsterCommandOutput>;
43
37
  associateFraudster(args: AssociateFraudsterCommandInput, cb: (err: any, data?: AssociateFraudsterCommandOutput) => void): void;
44
38
  associateFraudster(args: AssociateFraudsterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateFraudsterCommandOutput) => void): void;
45
39
  /**
46
- * @public
47
- * <p>Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters,
48
- * customer audio, and voiceprints. Every domain is created with a default watchlist that fraudsters can be a part of.</p>
40
+ * @see {@link CreateDomainCommand}
49
41
  */
50
42
  createDomain(args: CreateDomainCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainCommandOutput>;
51
43
  createDomain(args: CreateDomainCommandInput, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
52
44
  createDomain(args: CreateDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
53
45
  /**
54
- * @public
55
- * <p>Creates a watchlist that fraudsters can be a part of.</p>
46
+ * @see {@link CreateWatchlistCommand}
56
47
  */
57
48
  createWatchlist(args: CreateWatchlistCommandInput, options?: __HttpHandlerOptions): Promise<CreateWatchlistCommandOutput>;
58
49
  createWatchlist(args: CreateWatchlistCommandInput, cb: (err: any, data?: CreateWatchlistCommandOutput) => void): void;
59
50
  createWatchlist(args: CreateWatchlistCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWatchlistCommandOutput) => void): void;
60
51
  /**
61
- * @public
62
- * <p>Deletes the specified domain from Voice ID.</p>
52
+ * @see {@link DeleteDomainCommand}
63
53
  */
64
54
  deleteDomain(args: DeleteDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainCommandOutput>;
65
55
  deleteDomain(args: DeleteDomainCommandInput, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
66
56
  deleteDomain(args: DeleteDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
67
57
  /**
68
- * @public
69
- * <p>Deletes the specified fraudster from Voice ID. This action disassociates the fraudster from any watchlists it is a part of.</p>
58
+ * @see {@link DeleteFraudsterCommand}
70
59
  */
71
60
  deleteFraudster(args: DeleteFraudsterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFraudsterCommandOutput>;
72
61
  deleteFraudster(args: DeleteFraudsterCommandInput, cb: (err: any, data?: DeleteFraudsterCommandOutput) => void): void;
73
62
  deleteFraudster(args: DeleteFraudsterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFraudsterCommandOutput) => void): void;
74
63
  /**
75
- * @public
76
- * <p>Deletes the specified speaker from Voice ID.</p>
64
+ * @see {@link DeleteSpeakerCommand}
77
65
  */
78
66
  deleteSpeaker(args: DeleteSpeakerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSpeakerCommandOutput>;
79
67
  deleteSpeaker(args: DeleteSpeakerCommandInput, cb: (err: any, data?: DeleteSpeakerCommandOutput) => void): void;
80
68
  deleteSpeaker(args: DeleteSpeakerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSpeakerCommandOutput) => void): void;
81
69
  /**
82
- * @public
83
- * <p>Deletes the specified watchlist from Voice ID. This API throws an exception when
84
- * there are fraudsters in the watchlist that you are trying to delete. You must delete the
85
- * fraudsters, and then delete the watchlist. Every domain has a default watchlist which cannot be deleted. </p>
70
+ * @see {@link DeleteWatchlistCommand}
86
71
  */
87
72
  deleteWatchlist(args: DeleteWatchlistCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWatchlistCommandOutput>;
88
73
  deleteWatchlist(args: DeleteWatchlistCommandInput, cb: (err: any, data?: DeleteWatchlistCommandOutput) => void): void;
89
74
  deleteWatchlist(args: DeleteWatchlistCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWatchlistCommandOutput) => void): void;
90
75
  /**
91
- * @public
92
- * <p>Describes the specified domain.</p>
76
+ * @see {@link DescribeDomainCommand}
93
77
  */
94
78
  describeDomain(args: DescribeDomainCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainCommandOutput>;
95
79
  describeDomain(args: DescribeDomainCommandInput, cb: (err: any, data?: DescribeDomainCommandOutput) => void): void;
96
80
  describeDomain(args: DescribeDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainCommandOutput) => void): void;
97
81
  /**
98
- * @public
99
- * <p>Describes the specified fraudster.</p>
82
+ * @see {@link DescribeFraudsterCommand}
100
83
  */
101
84
  describeFraudster(args: DescribeFraudsterCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFraudsterCommandOutput>;
102
85
  describeFraudster(args: DescribeFraudsterCommandInput, cb: (err: any, data?: DescribeFraudsterCommandOutput) => void): void;
103
86
  describeFraudster(args: DescribeFraudsterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFraudsterCommandOutput) => void): void;
104
87
  /**
105
- * @public
106
- * <p>Describes the specified fraudster registration job.</p>
88
+ * @see {@link DescribeFraudsterRegistrationJobCommand}
107
89
  */
108
90
  describeFraudsterRegistrationJob(args: DescribeFraudsterRegistrationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFraudsterRegistrationJobCommandOutput>;
109
91
  describeFraudsterRegistrationJob(args: DescribeFraudsterRegistrationJobCommandInput, cb: (err: any, data?: DescribeFraudsterRegistrationJobCommandOutput) => void): void;
110
92
  describeFraudsterRegistrationJob(args: DescribeFraudsterRegistrationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFraudsterRegistrationJobCommandOutput) => void): void;
111
93
  /**
112
- * @public
113
- * <p>Describes the specified speaker.</p>
94
+ * @see {@link DescribeSpeakerCommand}
114
95
  */
115
96
  describeSpeaker(args: DescribeSpeakerCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSpeakerCommandOutput>;
116
97
  describeSpeaker(args: DescribeSpeakerCommandInput, cb: (err: any, data?: DescribeSpeakerCommandOutput) => void): void;
117
98
  describeSpeaker(args: DescribeSpeakerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSpeakerCommandOutput) => void): void;
118
99
  /**
119
- * @public
120
- * <p>Describes the specified speaker enrollment job.</p>
100
+ * @see {@link DescribeSpeakerEnrollmentJobCommand}
121
101
  */
122
102
  describeSpeakerEnrollmentJob(args: DescribeSpeakerEnrollmentJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSpeakerEnrollmentJobCommandOutput>;
123
103
  describeSpeakerEnrollmentJob(args: DescribeSpeakerEnrollmentJobCommandInput, cb: (err: any, data?: DescribeSpeakerEnrollmentJobCommandOutput) => void): void;
124
104
  describeSpeakerEnrollmentJob(args: DescribeSpeakerEnrollmentJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSpeakerEnrollmentJobCommandOutput) => void): void;
125
105
  /**
126
- * @public
127
- * <p>Describes the specified watchlist.</p>
106
+ * @see {@link DescribeWatchlistCommand}
128
107
  */
129
108
  describeWatchlist(args: DescribeWatchlistCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWatchlistCommandOutput>;
130
109
  describeWatchlist(args: DescribeWatchlistCommandInput, cb: (err: any, data?: DescribeWatchlistCommandOutput) => void): void;
131
110
  describeWatchlist(args: DescribeWatchlistCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWatchlistCommandOutput) => void): void;
132
111
  /**
133
- * @public
134
- * <p>Disassociates the fraudsters from the watchlist specified. Voice ID always expects a
135
- * fraudster to be a part of at least one watchlist. If
136
- * you try to disassociate a fraudster from its only watchlist, a <code>ValidationException</code> is thrown.
137
- * </p>
112
+ * @see {@link DisassociateFraudsterCommand}
138
113
  */
139
114
  disassociateFraudster(args: DisassociateFraudsterCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateFraudsterCommandOutput>;
140
115
  disassociateFraudster(args: DisassociateFraudsterCommandInput, cb: (err: any, data?: DisassociateFraudsterCommandOutput) => void): void;
141
116
  disassociateFraudster(args: DisassociateFraudsterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateFraudsterCommandOutput) => void): void;
142
117
  /**
143
- * @public
144
- * <p>Evaluates a specified session based on audio data accumulated during a streaming
145
- * Amazon Connect Voice ID call.</p>
118
+ * @see {@link EvaluateSessionCommand}
146
119
  */
147
120
  evaluateSession(args: EvaluateSessionCommandInput, options?: __HttpHandlerOptions): Promise<EvaluateSessionCommandOutput>;
148
121
  evaluateSession(args: EvaluateSessionCommandInput, cb: (err: any, data?: EvaluateSessionCommandOutput) => void): void;
149
122
  evaluateSession(args: EvaluateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EvaluateSessionCommandOutput) => void): void;
150
123
  /**
151
- * @public
152
- * <p>Lists all the domains in the Amazon Web Services account. </p>
124
+ * @see {@link ListDomainsCommand}
153
125
  */
154
126
  listDomains(args: ListDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainsCommandOutput>;
155
127
  listDomains(args: ListDomainsCommandInput, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
156
128
  listDomains(args: ListDomainsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
157
129
  /**
158
- * @public
159
- * <p>Lists all the fraudster registration jobs in the domain with the given
160
- * <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
161
- * fraudster registration jobs in the given domain. </p>
130
+ * @see {@link ListFraudsterRegistrationJobsCommand}
162
131
  */
163
132
  listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListFraudsterRegistrationJobsCommandOutput>;
164
133
  listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, cb: (err: any, data?: ListFraudsterRegistrationJobsCommandOutput) => void): void;
165
134
  listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFraudsterRegistrationJobsCommandOutput) => void): void;
166
135
  /**
167
- * @public
168
- * <p>Lists all fraudsters in a specified watchlist or domain.</p>
136
+ * @see {@link ListFraudstersCommand}
169
137
  */
170
138
  listFraudsters(args: ListFraudstersCommandInput, options?: __HttpHandlerOptions): Promise<ListFraudstersCommandOutput>;
171
139
  listFraudsters(args: ListFraudstersCommandInput, cb: (err: any, data?: ListFraudstersCommandOutput) => void): void;
172
140
  listFraudsters(args: ListFraudstersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFraudstersCommandOutput) => void): void;
173
141
  /**
174
- * @public
175
- * <p>Lists all the speaker enrollment jobs in the domain with the specified
176
- * <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
177
- * jobs with all possible speaker enrollment job statuses.</p>
142
+ * @see {@link ListSpeakerEnrollmentJobsCommand}
178
143
  */
179
144
  listSpeakerEnrollmentJobs(args: ListSpeakerEnrollmentJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeakerEnrollmentJobsCommandOutput>;
180
145
  listSpeakerEnrollmentJobs(args: ListSpeakerEnrollmentJobsCommandInput, cb: (err: any, data?: ListSpeakerEnrollmentJobsCommandOutput) => void): void;
181
146
  listSpeakerEnrollmentJobs(args: ListSpeakerEnrollmentJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeakerEnrollmentJobsCommandOutput) => void): void;
182
147
  /**
183
- * @public
184
- * <p>Lists all speakers in a specified domain.</p>
148
+ * @see {@link ListSpeakersCommand}
185
149
  */
186
150
  listSpeakers(args: ListSpeakersCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeakersCommandOutput>;
187
151
  listSpeakers(args: ListSpeakersCommandInput, cb: (err: any, data?: ListSpeakersCommandOutput) => void): void;
188
152
  listSpeakers(args: ListSpeakersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSpeakersCommandOutput) => void): void;
189
153
  /**
190
- * @public
191
- * <p>Lists all tags associated with a specified Voice ID resource.</p>
154
+ * @see {@link ListTagsForResourceCommand}
192
155
  */
193
156
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
194
157
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
195
158
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
196
159
  /**
197
- * @public
198
- * <p>Lists all watchlists in a specified domain.</p>
160
+ * @see {@link ListWatchlistsCommand}
199
161
  */
200
162
  listWatchlists(args: ListWatchlistsCommandInput, options?: __HttpHandlerOptions): Promise<ListWatchlistsCommandOutput>;
201
163
  listWatchlists(args: ListWatchlistsCommandInput, cb: (err: any, data?: ListWatchlistsCommandOutput) => void): void;
202
164
  listWatchlists(args: ListWatchlistsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWatchlistsCommandOutput) => void): void;
203
165
  /**
204
- * @public
205
- * <p>Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or
206
- * not they already exist in Voice ID. If they don't yet exist, a new speaker is created
207
- * in an opted out state. If they already exist, their existing status is overridden and
208
- * they are opted out. Enrollment and evaluation authentication requests are rejected for
209
- * opted out speakers, and opted out speakers have no voice embeddings stored in
210
- * Voice ID.</p>
166
+ * @see {@link OptOutSpeakerCommand}
211
167
  */
212
168
  optOutSpeaker(args: OptOutSpeakerCommandInput, options?: __HttpHandlerOptions): Promise<OptOutSpeakerCommandOutput>;
213
169
  optOutSpeaker(args: OptOutSpeakerCommandInput, cb: (err: any, data?: OptOutSpeakerCommandOutput) => void): void;
214
170
  optOutSpeaker(args: OptOutSpeakerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OptOutSpeakerCommandOutput) => void): void;
215
171
  /**
216
- * @public
217
- * <p>Starts a new batch fraudster registration job using provided details.</p>
172
+ * @see {@link StartFraudsterRegistrationJobCommand}
218
173
  */
219
174
  startFraudsterRegistrationJob(args: StartFraudsterRegistrationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartFraudsterRegistrationJobCommandOutput>;
220
175
  startFraudsterRegistrationJob(args: StartFraudsterRegistrationJobCommandInput, cb: (err: any, data?: StartFraudsterRegistrationJobCommandOutput) => void): void;
221
176
  startFraudsterRegistrationJob(args: StartFraudsterRegistrationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartFraudsterRegistrationJobCommandOutput) => void): void;
222
177
  /**
223
- * @public
224
- * <p>Starts a new batch speaker enrollment job using specified details.</p>
178
+ * @see {@link StartSpeakerEnrollmentJobCommand}
225
179
  */
226
180
  startSpeakerEnrollmentJob(args: StartSpeakerEnrollmentJobCommandInput, options?: __HttpHandlerOptions): Promise<StartSpeakerEnrollmentJobCommandOutput>;
227
181
  startSpeakerEnrollmentJob(args: StartSpeakerEnrollmentJobCommandInput, cb: (err: any, data?: StartSpeakerEnrollmentJobCommandOutput) => void): void;
228
182
  startSpeakerEnrollmentJob(args: StartSpeakerEnrollmentJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSpeakerEnrollmentJobCommandOutput) => void): void;
229
183
  /**
230
- * @public
231
- * <p>Tags a Voice ID resource with the provided list of tags.</p>
184
+ * @see {@link TagResourceCommand}
232
185
  */
233
186
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
234
187
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
235
188
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
236
189
  /**
237
- * @public
238
- * <p>Removes specified tags from a specified Amazon Connect Voice ID resource.</p>
190
+ * @see {@link UntagResourceCommand}
239
191
  */
240
192
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
241
193
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
242
194
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
243
195
  /**
244
- * @public
245
- * <p>Updates the specified domain. This API has clobber behavior, and clears and replaces
246
- * all attributes. If an optional field, such as 'Description' is not provided, it is
247
- * removed from the domain.</p>
196
+ * @see {@link UpdateDomainCommand}
248
197
  */
249
198
  updateDomain(args: UpdateDomainCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDomainCommandOutput>;
250
199
  updateDomain(args: UpdateDomainCommandInput, cb: (err: any, data?: UpdateDomainCommandOutput) => void): void;
251
200
  updateDomain(args: UpdateDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDomainCommandOutput) => void): void;
252
201
  /**
253
- * @public
254
- * <p>Updates the specified watchlist. Every domain has a default watchlist which cannot be updated.
255
- * </p>
202
+ * @see {@link UpdateWatchlistCommand}
256
203
  */
257
204
  updateWatchlist(args: UpdateWatchlistCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWatchlistCommandOutput>;
258
205
  updateWatchlist(args: UpdateWatchlistCommandInput, cb: (err: any, data?: UpdateWatchlistCommandOutput) => void): void;
259
206
  updateWatchlist(args: UpdateWatchlistCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWatchlistCommandOutput) => void): void;
260
207
  }
208
+ /**
209
+ * @public
210
+ * <p>Amazon Connect Voice ID provides real-time caller authentication and fraud risk detection, which
211
+ * make voice interactions in contact centers more secure and efficient.</p>
212
+ */
213
+ export declare class VoiceID extends VoiceIDClient implements VoiceID {
214
+ }
@@ -116,7 +116,7 @@ import {
116
116
  UpdateWatchlistCommandOutput,
117
117
  } from "./commands/UpdateWatchlistCommand";
118
118
  import { VoiceIDClient } from "./VoiceIDClient";
119
- export declare class VoiceID extends VoiceIDClient {
119
+ export interface VoiceID {
120
120
  associateFraudster(
121
121
  args: AssociateFraudsterCommandInput,
122
122
  options?: __HttpHandlerOptions
@@ -495,3 +495,4 @@ export declare class VoiceID extends VoiceIDClient {
495
495
  cb: (err: any, data?: UpdateWatchlistCommandOutput) => void
496
496
  ): void;
497
497
  }
498
+ export declare class VoiceID extends VoiceIDClient implements VoiceID {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-voice-id",
3
3
  "description": "AWS SDK for JavaScript Voice Id Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",