@aws-sdk/client-voice-id 3.298.0 → 3.300.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 (87) hide show
  1. package/README.md +73 -9
  2. package/dist-cjs/VoiceID.js +120 -0
  3. package/dist-cjs/commands/AssociateFraudsterCommand.js +46 -0
  4. package/dist-cjs/commands/CreateWatchlistCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteWatchlistCommand.js +45 -0
  6. package/dist-cjs/commands/DescribeWatchlistCommand.js +46 -0
  7. package/dist-cjs/commands/DisassociateFraudsterCommand.js +46 -0
  8. package/dist-cjs/commands/ListFraudstersCommand.js +45 -0
  9. package/dist-cjs/commands/ListWatchlistsCommand.js +46 -0
  10. package/dist-cjs/commands/UpdateWatchlistCommand.js +46 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/endpoint/ruleset.js +3 -3
  13. package/dist-cjs/models/models_0.js +83 -24
  14. package/dist-cjs/pagination/ListFraudstersPaginator.js +29 -0
  15. package/dist-cjs/pagination/ListWatchlistsPaginator.js +29 -0
  16. package/dist-cjs/pagination/index.js +2 -0
  17. package/dist-cjs/protocols/Aws_json1_0.js +722 -29
  18. package/dist-es/VoiceID.js +120 -0
  19. package/dist-es/commands/AssociateFraudsterCommand.js +42 -0
  20. package/dist-es/commands/CreateWatchlistCommand.js +42 -0
  21. package/dist-es/commands/DeleteWatchlistCommand.js +41 -0
  22. package/dist-es/commands/DescribeWatchlistCommand.js +42 -0
  23. package/dist-es/commands/DisassociateFraudsterCommand.js +42 -0
  24. package/dist-es/commands/ListFraudstersCommand.js +41 -0
  25. package/dist-es/commands/ListWatchlistsCommand.js +42 -0
  26. package/dist-es/commands/UpdateWatchlistCommand.js +42 -0
  27. package/dist-es/commands/index.js +8 -0
  28. package/dist-es/endpoint/ruleset.js +3 -3
  29. package/dist-es/models/models_0.js +71 -22
  30. package/dist-es/pagination/ListFraudstersPaginator.js +25 -0
  31. package/dist-es/pagination/ListWatchlistsPaginator.js +25 -0
  32. package/dist-es/pagination/index.js +2 -0
  33. package/dist-es/protocols/Aws_json1_0.js +707 -31
  34. package/dist-types/VoiceID.d.ts +74 -4
  35. package/dist-types/VoiceIDClient.d.ts +12 -4
  36. package/dist-types/commands/AssociateFraudsterCommand.d.ts +93 -0
  37. package/dist-types/commands/CreateDomainCommand.d.ts +15 -1
  38. package/dist-types/commands/CreateWatchlistCommand.d.ts +94 -0
  39. package/dist-types/commands/DeleteDomainCommand.d.ts +3 -0
  40. package/dist-types/commands/DeleteFraudsterCommand.d.ts +5 -1
  41. package/dist-types/commands/DeleteSpeakerCommand.d.ts +4 -0
  42. package/dist-types/commands/DeleteWatchlistCommand.d.ts +91 -0
  43. package/dist-types/commands/DescribeDomainCommand.d.ts +3 -0
  44. package/dist-types/commands/DescribeFraudsterCommand.d.ts +4 -0
  45. package/dist-types/commands/DescribeFraudsterRegistrationJobCommand.d.ts +4 -0
  46. package/dist-types/commands/DescribeSpeakerCommand.d.ts +4 -0
  47. package/dist-types/commands/DescribeSpeakerEnrollmentJobCommand.d.ts +4 -0
  48. package/dist-types/commands/DescribeWatchlistCommand.d.ts +85 -0
  49. package/dist-types/commands/DisassociateFraudsterCommand.d.ts +93 -0
  50. package/dist-types/commands/EvaluateSessionCommand.d.ts +4 -0
  51. package/dist-types/commands/ListDomainsCommand.d.ts +4 -0
  52. package/dist-types/commands/ListFraudsterRegistrationJobsCommand.d.ts +6 -0
  53. package/dist-types/commands/ListFraudstersCommand.d.ts +87 -0
  54. package/dist-types/commands/ListSpeakerEnrollmentJobsCommand.d.ts +6 -0
  55. package/dist-types/commands/ListSpeakersCommand.d.ts +5 -0
  56. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  57. package/dist-types/commands/ListWatchlistsCommand.d.ts +86 -0
  58. package/dist-types/commands/OptOutSpeakerCommand.d.ts +4 -0
  59. package/dist-types/commands/StartFraudsterRegistrationJobCommand.d.ts +20 -0
  60. package/dist-types/commands/StartSpeakerEnrollmentJobCommand.d.ts +23 -0
  61. package/dist-types/commands/TagResourceCommand.d.ts +9 -0
  62. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  63. package/dist-types/commands/UpdateDomainCommand.d.ts +8 -0
  64. package/dist-types/commands/UpdateWatchlistCommand.d.ts +92 -0
  65. package/dist-types/commands/index.d.ts +8 -0
  66. package/dist-types/models/models_0.d.ts +621 -214
  67. package/dist-types/pagination/ListFraudstersPaginator.d.ts +7 -0
  68. package/dist-types/pagination/ListWatchlistsPaginator.d.ts +7 -0
  69. package/dist-types/pagination/index.d.ts +2 -0
  70. package/dist-types/protocols/Aws_json1_0.d.ts +24 -0
  71. package/dist-types/ts3.4/VoiceID.d.ts +136 -0
  72. package/dist-types/ts3.4/VoiceIDClient.d.ts +50 -2
  73. package/dist-types/ts3.4/commands/AssociateFraudsterCommand.d.ts +38 -0
  74. package/dist-types/ts3.4/commands/CreateWatchlistCommand.d.ts +37 -0
  75. package/dist-types/ts3.4/commands/DeleteWatchlistCommand.d.ts +32 -0
  76. package/dist-types/ts3.4/commands/DescribeWatchlistCommand.d.ts +38 -0
  77. package/dist-types/ts3.4/commands/DisassociateFraudsterCommand.d.ts +41 -0
  78. package/dist-types/ts3.4/commands/ListFraudstersCommand.d.ts +37 -0
  79. package/dist-types/ts3.4/commands/ListWatchlistsCommand.d.ts +37 -0
  80. package/dist-types/ts3.4/commands/UpdateWatchlistCommand.d.ts +37 -0
  81. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +197 -69
  83. package/dist-types/ts3.4/pagination/ListFraudstersPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/ListWatchlistsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  86. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
  87. package/package.json +12 -12
@@ -1,26 +1,48 @@
1
+ import { AssociateFraudsterCommand, } from "./commands/AssociateFraudsterCommand";
1
2
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
3
+ import { CreateWatchlistCommand, } from "./commands/CreateWatchlistCommand";
2
4
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
3
5
  import { DeleteFraudsterCommand, } from "./commands/DeleteFraudsterCommand";
4
6
  import { DeleteSpeakerCommand, } from "./commands/DeleteSpeakerCommand";
7
+ import { DeleteWatchlistCommand, } from "./commands/DeleteWatchlistCommand";
5
8
  import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
6
9
  import { DescribeFraudsterCommand, } from "./commands/DescribeFraudsterCommand";
7
10
  import { DescribeFraudsterRegistrationJobCommand, } from "./commands/DescribeFraudsterRegistrationJobCommand";
8
11
  import { DescribeSpeakerCommand, } from "./commands/DescribeSpeakerCommand";
9
12
  import { DescribeSpeakerEnrollmentJobCommand, } from "./commands/DescribeSpeakerEnrollmentJobCommand";
13
+ import { DescribeWatchlistCommand, } from "./commands/DescribeWatchlistCommand";
14
+ import { DisassociateFraudsterCommand, } from "./commands/DisassociateFraudsterCommand";
10
15
  import { EvaluateSessionCommand, } from "./commands/EvaluateSessionCommand";
11
16
  import { ListDomainsCommand } from "./commands/ListDomainsCommand";
12
17
  import { ListFraudsterRegistrationJobsCommand, } from "./commands/ListFraudsterRegistrationJobsCommand";
18
+ import { ListFraudstersCommand, } from "./commands/ListFraudstersCommand";
13
19
  import { ListSpeakerEnrollmentJobsCommand, } from "./commands/ListSpeakerEnrollmentJobsCommand";
14
20
  import { ListSpeakersCommand, } from "./commands/ListSpeakersCommand";
15
21
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
22
+ import { ListWatchlistsCommand, } from "./commands/ListWatchlistsCommand";
16
23
  import { OptOutSpeakerCommand, } from "./commands/OptOutSpeakerCommand";
17
24
  import { StartFraudsterRegistrationJobCommand, } from "./commands/StartFraudsterRegistrationJobCommand";
18
25
  import { StartSpeakerEnrollmentJobCommand, } from "./commands/StartSpeakerEnrollmentJobCommand";
19
26
  import { TagResourceCommand } from "./commands/TagResourceCommand";
20
27
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
28
  import { UpdateDomainCommand, } from "./commands/UpdateDomainCommand";
29
+ import { UpdateWatchlistCommand, } from "./commands/UpdateWatchlistCommand";
22
30
  import { VoiceIDClient } from "./VoiceIDClient";
23
31
  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
+ }
24
46
  createDomain(args, optionsOrCb, cb) {
25
47
  const command = new CreateDomainCommand(args);
26
48
  if (typeof optionsOrCb === "function") {
@@ -35,6 +57,20 @@ export class VoiceID extends VoiceIDClient {
35
57
  return this.send(command, optionsOrCb);
36
58
  }
37
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
+ }
38
74
  deleteDomain(args, optionsOrCb, cb) {
39
75
  const command = new DeleteDomainCommand(args);
40
76
  if (typeof optionsOrCb === "function") {
@@ -77,6 +113,20 @@ export class VoiceID extends VoiceIDClient {
77
113
  return this.send(command, optionsOrCb);
78
114
  }
79
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
+ }
80
130
  describeDomain(args, optionsOrCb, cb) {
81
131
  const command = new DescribeDomainCommand(args);
82
132
  if (typeof optionsOrCb === "function") {
@@ -147,6 +197,34 @@ export class VoiceID extends VoiceIDClient {
147
197
  return this.send(command, optionsOrCb);
148
198
  }
149
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
+ }
150
228
  evaluateSession(args, optionsOrCb, cb) {
151
229
  const command = new EvaluateSessionCommand(args);
152
230
  if (typeof optionsOrCb === "function") {
@@ -189,6 +267,20 @@ export class VoiceID extends VoiceIDClient {
189
267
  return this.send(command, optionsOrCb);
190
268
  }
191
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
+ }
192
284
  listSpeakerEnrollmentJobs(args, optionsOrCb, cb) {
193
285
  const command = new ListSpeakerEnrollmentJobsCommand(args);
194
286
  if (typeof optionsOrCb === "function") {
@@ -231,6 +323,20 @@ export class VoiceID extends VoiceIDClient {
231
323
  return this.send(command, optionsOrCb);
232
324
  }
233
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
+ }
234
340
  optOutSpeaker(args, optionsOrCb, cb) {
235
341
  const command = new OptOutSpeakerCommand(args);
236
342
  if (typeof optionsOrCb === "function") {
@@ -315,4 +421,18 @@ export class VoiceID extends VoiceIDClient {
315
421
  return this.send(command, optionsOrCb);
316
422
  }
317
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
+ }
318
438
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AssociateFraudsterRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0AssociateFraudsterCommand, serializeAws_json1_0AssociateFraudsterCommand, } from "../protocols/Aws_json1_0";
6
+ export class AssociateFraudsterCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateFraudsterCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "AssociateFraudsterCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: AssociateFraudsterRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0AssociateFraudsterCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0AssociateFraudsterCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateWatchlistRequestFilterSensitiveLog, CreateWatchlistResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0CreateWatchlistCommand, serializeAws_json1_0CreateWatchlistCommand, } from "../protocols/Aws_json1_0";
6
+ export class CreateWatchlistCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateWatchlistCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "CreateWatchlistCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateWatchlistRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateWatchlistResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0CreateWatchlistCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0CreateWatchlistCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { deserializeAws_json1_0DeleteWatchlistCommand, serializeAws_json1_0DeleteWatchlistCommand, } from "../protocols/Aws_json1_0";
5
+ export class DeleteWatchlistCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteWatchlistCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "VoiceIDClient";
24
+ const commandName = "DeleteWatchlistCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return serializeAws_json1_0DeleteWatchlistCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return deserializeAws_json1_0DeleteWatchlistCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeWatchlistResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0DescribeWatchlistCommand, serializeAws_json1_0DescribeWatchlistCommand, } from "../protocols/Aws_json1_0";
6
+ export class DescribeWatchlistCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeWatchlistCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "DescribeWatchlistCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: DescribeWatchlistResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0DescribeWatchlistCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0DescribeWatchlistCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DisassociateFraudsterRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0DisassociateFraudsterCommand, serializeAws_json1_0DisassociateFraudsterCommand, } from "../protocols/Aws_json1_0";
6
+ export class DisassociateFraudsterCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateFraudsterCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "DisassociateFraudsterCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DisassociateFraudsterRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0DisassociateFraudsterCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0DisassociateFraudsterCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { deserializeAws_json1_0ListFraudstersCommand, serializeAws_json1_0ListFraudstersCommand, } from "../protocols/Aws_json1_0";
5
+ export class ListFraudstersCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListFraudstersCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "VoiceIDClient";
24
+ const commandName = "ListFraudstersCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return serializeAws_json1_0ListFraudstersCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return deserializeAws_json1_0ListFraudstersCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListWatchlistsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListWatchlistsCommand, serializeAws_json1_0ListWatchlistsCommand, } from "../protocols/Aws_json1_0";
6
+ export class ListWatchlistsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListWatchlistsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "ListWatchlistsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: ListWatchlistsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0ListWatchlistsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0ListWatchlistsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateWatchlistRequestFilterSensitiveLog, UpdateWatchlistResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0UpdateWatchlistCommand, serializeAws_json1_0UpdateWatchlistCommand, } from "../protocols/Aws_json1_0";
6
+ export class UpdateWatchlistCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWatchlistCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "VoiceIDClient";
25
+ const commandName = "UpdateWatchlistCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateWatchlistRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateWatchlistResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0UpdateWatchlistCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0UpdateWatchlistCommand(output, context);
41
+ }
42
+ }
@@ -1,21 +1,29 @@
1
+ export * from "./AssociateFraudsterCommand";
1
2
  export * from "./CreateDomainCommand";
3
+ export * from "./CreateWatchlistCommand";
2
4
  export * from "./DeleteDomainCommand";
3
5
  export * from "./DeleteFraudsterCommand";
4
6
  export * from "./DeleteSpeakerCommand";
7
+ export * from "./DeleteWatchlistCommand";
5
8
  export * from "./DescribeDomainCommand";
6
9
  export * from "./DescribeFraudsterCommand";
7
10
  export * from "./DescribeFraudsterRegistrationJobCommand";
8
11
  export * from "./DescribeSpeakerCommand";
9
12
  export * from "./DescribeSpeakerEnrollmentJobCommand";
13
+ export * from "./DescribeWatchlistCommand";
14
+ export * from "./DisassociateFraudsterCommand";
10
15
  export * from "./EvaluateSessionCommand";
11
16
  export * from "./ListDomainsCommand";
12
17
  export * from "./ListFraudsterRegistrationJobsCommand";
18
+ export * from "./ListFraudstersCommand";
13
19
  export * from "./ListSpeakerEnrollmentJobsCommand";
14
20
  export * from "./ListSpeakersCommand";
15
21
  export * from "./ListTagsForResourceCommand";
22
+ export * from "./ListWatchlistsCommand";
16
23
  export * from "./OptOutSpeakerCommand";
17
24
  export * from "./StartFraudsterRegistrationJobCommand";
18
25
  export * from "./StartSpeakerEnrollmentJobCommand";
19
26
  export * from "./TagResourceCommand";
20
27
  export * from "./UntagResourceCommand";
21
28
  export * from "./UpdateDomainCommand";
29
+ export * from "./UpdateWatchlistCommand";
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://voiceid-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://voiceid-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://voiceid.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://voiceid.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://voiceid-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://voiceid-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://voiceid.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://voiceid.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;