@aws-sdk/client-voice-id 3.299.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 +8 -8
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListWatchlistsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class ListWatchlistsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListWatchlistsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "VoiceIDClient";
28
+ const commandName = "ListWatchlistsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: models_0_1.ListWatchlistsResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_0_1.serializeAws_json1_0ListWatchlistsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0ListWatchlistsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListWatchlistsCommand = ListWatchlistsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateWatchlistCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class UpdateWatchlistCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateWatchlistCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "VoiceIDClient";
28
+ const commandName = "UpdateWatchlistCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.UpdateWatchlistRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.UpdateWatchlistResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_0_1.serializeAws_json1_0UpdateWatchlistCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateWatchlistCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UpdateWatchlistCommand = UpdateWatchlistCommand;
@@ -1,24 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateFraudsterCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateDomainCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateWatchlistCommand"), exports);
5
7
  tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
6
8
  tslib_1.__exportStar(require("./DeleteFraudsterCommand"), exports);
7
9
  tslib_1.__exportStar(require("./DeleteSpeakerCommand"), exports);
10
+ tslib_1.__exportStar(require("./DeleteWatchlistCommand"), exports);
8
11
  tslib_1.__exportStar(require("./DescribeDomainCommand"), exports);
9
12
  tslib_1.__exportStar(require("./DescribeFraudsterCommand"), exports);
10
13
  tslib_1.__exportStar(require("./DescribeFraudsterRegistrationJobCommand"), exports);
11
14
  tslib_1.__exportStar(require("./DescribeSpeakerCommand"), exports);
12
15
  tslib_1.__exportStar(require("./DescribeSpeakerEnrollmentJobCommand"), exports);
16
+ tslib_1.__exportStar(require("./DescribeWatchlistCommand"), exports);
17
+ tslib_1.__exportStar(require("./DisassociateFraudsterCommand"), exports);
13
18
  tslib_1.__exportStar(require("./EvaluateSessionCommand"), exports);
14
19
  tslib_1.__exportStar(require("./ListDomainsCommand"), exports);
15
20
  tslib_1.__exportStar(require("./ListFraudsterRegistrationJobsCommand"), exports);
21
+ tslib_1.__exportStar(require("./ListFraudstersCommand"), exports);
16
22
  tslib_1.__exportStar(require("./ListSpeakerEnrollmentJobsCommand"), exports);
17
23
  tslib_1.__exportStar(require("./ListSpeakersCommand"), exports);
18
24
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
25
+ tslib_1.__exportStar(require("./ListWatchlistsCommand"), exports);
19
26
  tslib_1.__exportStar(require("./OptOutSpeakerCommand"), exports);
20
27
  tslib_1.__exportStar(require("./StartFraudsterRegistrationJobCommand"), exports);
21
28
  tslib_1.__exportStar(require("./StartSpeakerEnrollmentJobCommand"), exports);
22
29
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
23
30
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
24
31
  tslib_1.__exportStar(require("./UpdateDomainCommand"), exports);
32
+ tslib_1.__exportStar(require("./UpdateWatchlistCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- 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];
6
- 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 }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ 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" }];
6
+ 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 }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OptOutSpeakerRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListSpeakersResponseFilterSensitiveLog = exports.SpeakerSummaryFilterSensitiveLog = exports.ListSpeakerEnrollmentJobsResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobSummaryFilterSensitiveLog = exports.ListFraudsterRegistrationJobsResponseFilterSensitiveLog = exports.FraudsterRegistrationJobSummaryFilterSensitiveLog = exports.EvaluateSessionResponseFilterSensitiveLog = exports.UpdateDomainResponseFilterSensitiveLog = exports.UpdateDomainRequestFilterSensitiveLog = exports.ListDomainsResponseFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobFilterSensitiveLog = exports.DescribeSpeakerResponseFilterSensitiveLog = exports.SpeakerFilterSensitiveLog = exports.DescribeSpeakerRequestFilterSensitiveLog = exports.DescribeFraudsterRegistrationJobResponseFilterSensitiveLog = exports.FraudsterRegistrationJobFilterSensitiveLog = exports.DescribeFraudsterRequestFilterSensitiveLog = exports.DescribeDomainResponseFilterSensitiveLog = exports.DeleteSpeakerRequestFilterSensitiveLog = exports.DeleteFraudsterRequestFilterSensitiveLog = exports.CreateDomainResponseFilterSensitiveLog = exports.DomainFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AuthenticationResultFilterSensitiveLog = exports.StreamingStatus = exports.FraudDetectionReason = exports.FraudDetectionDecision = exports.SpeakerEnrollmentJobStatus = exports.FraudDetectionAction = exports.ExistingEnrollmentAction = exports.SpeakerStatus = exports.DuplicateRegistrationAction = exports.FraudsterRegistrationJobStatus = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ServerSideEncryptionUpdateStatus = exports.DomainStatus = exports.ConflictException = exports.ConflictType = exports.AuthenticationDecision = exports.AccessDeniedException = void 0;
4
- exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.StartSpeakerEnrollmentJobRequestFilterSensitiveLog = exports.StartFraudsterRegistrationJobResponseFilterSensitiveLog = exports.StartFraudsterRegistrationJobRequestFilterSensitiveLog = exports.OptOutSpeakerResponseFilterSensitiveLog = void 0;
3
+ exports.ListFraudsterRegistrationJobsResponseFilterSensitiveLog = exports.FraudsterRegistrationJobSummaryFilterSensitiveLog = exports.EvaluateSessionResponseFilterSensitiveLog = exports.UpdateDomainResponseFilterSensitiveLog = exports.UpdateDomainRequestFilterSensitiveLog = exports.ListDomainsResponseFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.DisassociateFraudsterRequestFilterSensitiveLog = exports.DescribeWatchlistResponseFilterSensitiveLog = exports.DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobFilterSensitiveLog = exports.DescribeSpeakerResponseFilterSensitiveLog = exports.SpeakerFilterSensitiveLog = exports.DescribeSpeakerRequestFilterSensitiveLog = exports.DescribeFraudsterRegistrationJobResponseFilterSensitiveLog = exports.FraudsterRegistrationJobFilterSensitiveLog = exports.DescribeFraudsterRequestFilterSensitiveLog = exports.DescribeDomainResponseFilterSensitiveLog = exports.DeleteSpeakerRequestFilterSensitiveLog = exports.DeleteFraudsterRequestFilterSensitiveLog = exports.CreateWatchlistResponseFilterSensitiveLog = exports.WatchlistFilterSensitiveLog = exports.CreateWatchlistRequestFilterSensitiveLog = exports.CreateDomainResponseFilterSensitiveLog = exports.DomainFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AuthenticationResultFilterSensitiveLog = exports.AssociateFraudsterRequestFilterSensitiveLog = exports.StreamingStatus = exports.FraudDetectionReason = exports.FraudDetectionDecision = exports.SpeakerEnrollmentJobStatus = exports.FraudDetectionAction = exports.ExistingEnrollmentAction = exports.SpeakerStatus = exports.DuplicateRegistrationAction = exports.FraudsterRegistrationJobStatus = exports.ServerSideEncryptionUpdateStatus = exports.DomainStatus = exports.AuthenticationDecision = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ConflictException = exports.ConflictType = exports.AccessDeniedException = void 0;
4
+ exports.UpdateWatchlistResponseFilterSensitiveLog = exports.UpdateWatchlistRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.StartSpeakerEnrollmentJobRequestFilterSensitiveLog = exports.StartFraudsterRegistrationJobResponseFilterSensitiveLog = exports.StartFraudsterRegistrationJobRequestFilterSensitiveLog = exports.OptOutSpeakerResponseFilterSensitiveLog = exports.OptOutSpeakerRequestFilterSensitiveLog = exports.ListWatchlistsResponseFilterSensitiveLog = exports.WatchlistSummaryFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListSpeakersResponseFilterSensitiveLog = exports.SpeakerSummaryFilterSensitiveLog = exports.ListSpeakerEnrollmentJobsResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobSummaryFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const VoiceIDServiceException_1 = require("./VoiceIDServiceException");
7
7
  class AccessDeniedException extends VoiceIDServiceException_1.VoiceIDServiceException {
@@ -18,24 +18,16 @@ class AccessDeniedException extends VoiceIDServiceException_1.VoiceIDServiceExce
18
18
  }
19
19
  }
20
20
  exports.AccessDeniedException = AccessDeniedException;
21
- var AuthenticationDecision;
22
- (function (AuthenticationDecision) {
23
- AuthenticationDecision["ACCEPT"] = "ACCEPT";
24
- AuthenticationDecision["NOT_ENOUGH_SPEECH"] = "NOT_ENOUGH_SPEECH";
25
- AuthenticationDecision["REJECT"] = "REJECT";
26
- AuthenticationDecision["SPEAKER_EXPIRED"] = "SPEAKER_EXPIRED";
27
- AuthenticationDecision["SPEAKER_ID_NOT_PROVIDED"] = "SPEAKER_ID_NOT_PROVIDED";
28
- AuthenticationDecision["SPEAKER_NOT_ENROLLED"] = "SPEAKER_NOT_ENROLLED";
29
- AuthenticationDecision["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
30
- })(AuthenticationDecision = exports.AuthenticationDecision || (exports.AuthenticationDecision = {}));
31
21
  var ConflictType;
32
22
  (function (ConflictType) {
33
23
  ConflictType["ANOTHER_ACTIVE_STREAM"] = "ANOTHER_ACTIVE_STREAM";
34
24
  ConflictType["CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT"] = "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT";
25
+ ConflictType["CANNOT_DELETE_NON_EMPTY_WATCHLIST"] = "CANNOT_DELETE_NON_EMPTY_WATCHLIST";
35
26
  ConflictType["CONCURRENT_CHANGES"] = "CONCURRENT_CHANGES";
36
27
  ConflictType["DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES"] = "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES";
37
28
  ConflictType["DOMAIN_NOT_ACTIVE"] = "DOMAIN_NOT_ACTIVE";
38
29
  ConflictType["ENROLLMENT_ALREADY_EXISTS"] = "ENROLLMENT_ALREADY_EXISTS";
30
+ ConflictType["FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST"] = "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST";
39
31
  ConflictType["SPEAKER_NOT_SET"] = "SPEAKER_NOT_SET";
40
32
  ConflictType["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
41
33
  })(ConflictType = exports.ConflictType || (exports.ConflictType = {}));
@@ -54,18 +46,6 @@ class ConflictException extends VoiceIDServiceException_1.VoiceIDServiceExceptio
54
46
  }
55
47
  }
56
48
  exports.ConflictException = ConflictException;
57
- var DomainStatus;
58
- (function (DomainStatus) {
59
- DomainStatus["ACTIVE"] = "ACTIVE";
60
- DomainStatus["PENDING"] = "PENDING";
61
- DomainStatus["SUSPENDED"] = "SUSPENDED";
62
- })(DomainStatus = exports.DomainStatus || (exports.DomainStatus = {}));
63
- var ServerSideEncryptionUpdateStatus;
64
- (function (ServerSideEncryptionUpdateStatus) {
65
- ServerSideEncryptionUpdateStatus["COMPLETED"] = "COMPLETED";
66
- ServerSideEncryptionUpdateStatus["FAILED"] = "FAILED";
67
- ServerSideEncryptionUpdateStatus["IN_PROGRESS"] = "IN_PROGRESS";
68
- })(ServerSideEncryptionUpdateStatus = exports.ServerSideEncryptionUpdateStatus || (exports.ServerSideEncryptionUpdateStatus = {}));
69
49
  class InternalServerException extends VoiceIDServiceException_1.VoiceIDServiceException {
70
50
  constructor(opts) {
71
51
  super({
@@ -88,6 +68,7 @@ var ResourceType;
88
68
  ResourceType["FRAUDSTER"] = "FRAUDSTER";
89
69
  ResourceType["SESSION"] = "SESSION";
90
70
  ResourceType["SPEAKER"] = "SPEAKER";
71
+ ResourceType["WATCHLIST"] = "WATCHLIST";
91
72
  })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
92
73
  class ResourceNotFoundException extends VoiceIDServiceException_1.VoiceIDServiceException {
93
74
  constructor(opts) {
@@ -146,6 +127,28 @@ class ValidationException extends VoiceIDServiceException_1.VoiceIDServiceExcept
146
127
  }
147
128
  }
148
129
  exports.ValidationException = ValidationException;
130
+ var AuthenticationDecision;
131
+ (function (AuthenticationDecision) {
132
+ AuthenticationDecision["ACCEPT"] = "ACCEPT";
133
+ AuthenticationDecision["NOT_ENOUGH_SPEECH"] = "NOT_ENOUGH_SPEECH";
134
+ AuthenticationDecision["REJECT"] = "REJECT";
135
+ AuthenticationDecision["SPEAKER_EXPIRED"] = "SPEAKER_EXPIRED";
136
+ AuthenticationDecision["SPEAKER_ID_NOT_PROVIDED"] = "SPEAKER_ID_NOT_PROVIDED";
137
+ AuthenticationDecision["SPEAKER_NOT_ENROLLED"] = "SPEAKER_NOT_ENROLLED";
138
+ AuthenticationDecision["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
139
+ })(AuthenticationDecision = exports.AuthenticationDecision || (exports.AuthenticationDecision = {}));
140
+ var DomainStatus;
141
+ (function (DomainStatus) {
142
+ DomainStatus["ACTIVE"] = "ACTIVE";
143
+ DomainStatus["PENDING"] = "PENDING";
144
+ DomainStatus["SUSPENDED"] = "SUSPENDED";
145
+ })(DomainStatus = exports.DomainStatus || (exports.DomainStatus = {}));
146
+ var ServerSideEncryptionUpdateStatus;
147
+ (function (ServerSideEncryptionUpdateStatus) {
148
+ ServerSideEncryptionUpdateStatus["COMPLETED"] = "COMPLETED";
149
+ ServerSideEncryptionUpdateStatus["FAILED"] = "FAILED";
150
+ ServerSideEncryptionUpdateStatus["IN_PROGRESS"] = "IN_PROGRESS";
151
+ })(ServerSideEncryptionUpdateStatus = exports.ServerSideEncryptionUpdateStatus || (exports.ServerSideEncryptionUpdateStatus = {}));
149
152
  var FraudsterRegistrationJobStatus;
150
153
  (function (FraudsterRegistrationJobStatus) {
151
154
  FraudsterRegistrationJobStatus["COMPLETED"] = "COMPLETED";
@@ -201,6 +204,11 @@ var StreamingStatus;
201
204
  StreamingStatus["ONGOING"] = "ONGOING";
202
205
  StreamingStatus["PENDING_CONFIGURATION"] = "PENDING_CONFIGURATION";
203
206
  })(StreamingStatus = exports.StreamingStatus || (exports.StreamingStatus = {}));
207
+ const AssociateFraudsterRequestFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ ...(obj.FraudsterId && { FraudsterId: smithy_client_1.SENSITIVE_STRING }),
210
+ });
211
+ exports.AssociateFraudsterRequestFilterSensitiveLog = AssociateFraudsterRequestFilterSensitiveLog;
204
212
  const AuthenticationResultFilterSensitiveLog = (obj) => ({
205
213
  ...obj,
206
214
  ...(obj.CustomerSpeakerId && { CustomerSpeakerId: smithy_client_1.SENSITIVE_STRING }),
@@ -230,6 +238,23 @@ const CreateDomainResponseFilterSensitiveLog = (obj) => ({
230
238
  ...(obj.Domain && { Domain: (0, exports.DomainFilterSensitiveLog)(obj.Domain) }),
231
239
  });
232
240
  exports.CreateDomainResponseFilterSensitiveLog = CreateDomainResponseFilterSensitiveLog;
241
+ const CreateWatchlistRequestFilterSensitiveLog = (obj) => ({
242
+ ...obj,
243
+ ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
244
+ ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
245
+ });
246
+ exports.CreateWatchlistRequestFilterSensitiveLog = CreateWatchlistRequestFilterSensitiveLog;
247
+ const WatchlistFilterSensitiveLog = (obj) => ({
248
+ ...obj,
249
+ ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
250
+ ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
251
+ });
252
+ exports.WatchlistFilterSensitiveLog = WatchlistFilterSensitiveLog;
253
+ const CreateWatchlistResponseFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ ...(obj.Watchlist && { Watchlist: (0, exports.WatchlistFilterSensitiveLog)(obj.Watchlist) }),
256
+ });
257
+ exports.CreateWatchlistResponseFilterSensitiveLog = CreateWatchlistResponseFilterSensitiveLog;
233
258
  const DeleteFraudsterRequestFilterSensitiveLog = (obj) => ({
234
259
  ...obj,
235
260
  ...(obj.FraudsterId && { FraudsterId: smithy_client_1.SENSITIVE_STRING }),
@@ -285,6 +310,16 @@ const DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = (obj) => ({
285
310
  ...(obj.Job && { Job: (0, exports.SpeakerEnrollmentJobFilterSensitiveLog)(obj.Job) }),
286
311
  });
287
312
  exports.DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog;
313
+ const DescribeWatchlistResponseFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ ...(obj.Watchlist && { Watchlist: (0, exports.WatchlistFilterSensitiveLog)(obj.Watchlist) }),
316
+ });
317
+ exports.DescribeWatchlistResponseFilterSensitiveLog = DescribeWatchlistResponseFilterSensitiveLog;
318
+ const DisassociateFraudsterRequestFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ ...(obj.FraudsterId && { FraudsterId: smithy_client_1.SENSITIVE_STRING }),
321
+ });
322
+ exports.DisassociateFraudsterRequestFilterSensitiveLog = DisassociateFraudsterRequestFilterSensitiveLog;
288
323
  const DomainSummaryFilterSensitiveLog = (obj) => ({
289
324
  ...obj,
290
325
  ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
@@ -357,6 +392,19 @@ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
357
392
  ...(obj.Tags && { Tags: obj.Tags.map((item) => (0, exports.TagFilterSensitiveLog)(item)) }),
358
393
  });
359
394
  exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
395
+ const WatchlistSummaryFilterSensitiveLog = (obj) => ({
396
+ ...obj,
397
+ ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
398
+ ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
399
+ });
400
+ exports.WatchlistSummaryFilterSensitiveLog = WatchlistSummaryFilterSensitiveLog;
401
+ const ListWatchlistsResponseFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ ...(obj.WatchlistSummaries && {
404
+ WatchlistSummaries: obj.WatchlistSummaries.map((item) => (0, exports.WatchlistSummaryFilterSensitiveLog)(item)),
405
+ }),
406
+ });
407
+ exports.ListWatchlistsResponseFilterSensitiveLog = ListWatchlistsResponseFilterSensitiveLog;
360
408
  const OptOutSpeakerRequestFilterSensitiveLog = (obj) => ({
361
409
  ...obj,
362
410
  ...(obj.SpeakerId && { SpeakerId: smithy_client_1.SENSITIVE_STRING }),
@@ -397,3 +445,14 @@ const UntagResourceRequestFilterSensitiveLog = (obj) => ({
397
445
  ...(obj.TagKeys && { TagKeys: smithy_client_1.SENSITIVE_STRING }),
398
446
  });
399
447
  exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
448
+ const UpdateWatchlistRequestFilterSensitiveLog = (obj) => ({
449
+ ...obj,
450
+ ...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
451
+ ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
452
+ });
453
+ exports.UpdateWatchlistRequestFilterSensitiveLog = UpdateWatchlistRequestFilterSensitiveLog;
454
+ const UpdateWatchlistResponseFilterSensitiveLog = (obj) => ({
455
+ ...obj,
456
+ ...(obj.Watchlist && { Watchlist: (0, exports.WatchlistFilterSensitiveLog)(obj.Watchlist) }),
457
+ });
458
+ exports.UpdateWatchlistResponseFilterSensitiveLog = UpdateWatchlistResponseFilterSensitiveLog;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListFraudsters = void 0;
4
+ const ListFraudstersCommand_1 = require("../commands/ListFraudstersCommand");
5
+ const VoiceIDClient_1 = require("../VoiceIDClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListFraudstersCommand_1.ListFraudstersCommand(input), ...args);
8
+ };
9
+ async function* paginateListFraudsters(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof VoiceIDClient_1.VoiceIDClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListFraudsters = paginateListFraudsters;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWatchlists = void 0;
4
+ const ListWatchlistsCommand_1 = require("../commands/ListWatchlistsCommand");
5
+ const VoiceIDClient_1 = require("../VoiceIDClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWatchlistsCommand_1.ListWatchlistsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWatchlists(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof VoiceIDClient_1.VoiceIDClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListWatchlists = paginateListWatchlists;
@@ -4,5 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListDomainsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListFraudsterRegistrationJobsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListFraudstersPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListSpeakerEnrollmentJobsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListSpeakersPaginator"), exports);
10
+ tslib_1.__exportStar(require("./ListWatchlistsPaginator"), exports);