@aws-sdk/client-voice-id 3.185.0 → 3.188.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 (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/VoiceID.js +86 -93
  3. package/dist-es/VoiceIDClient.js +22 -28
  4. package/dist-es/commands/CreateDomainCommand.js +21 -28
  5. package/dist-es/commands/DeleteDomainCommand.js +22 -29
  6. package/dist-es/commands/DeleteFraudsterCommand.js +22 -29
  7. package/dist-es/commands/DeleteSpeakerCommand.js +22 -29
  8. package/dist-es/commands/DescribeDomainCommand.js +21 -28
  9. package/dist-es/commands/DescribeFraudsterCommand.js +21 -28
  10. package/dist-es/commands/DescribeFraudsterRegistrationJobCommand.js +21 -28
  11. package/dist-es/commands/DescribeSpeakerCommand.js +21 -28
  12. package/dist-es/commands/DescribeSpeakerEnrollmentJobCommand.js +21 -28
  13. package/dist-es/commands/EvaluateSessionCommand.js +21 -28
  14. package/dist-es/commands/ListDomainsCommand.js +21 -28
  15. package/dist-es/commands/ListFraudsterRegistrationJobsCommand.js +21 -28
  16. package/dist-es/commands/ListSpeakerEnrollmentJobsCommand.js +21 -28
  17. package/dist-es/commands/ListSpeakersCommand.js +21 -28
  18. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  19. package/dist-es/commands/OptOutSpeakerCommand.js +21 -28
  20. package/dist-es/commands/StartFraudsterRegistrationJobCommand.js +21 -28
  21. package/dist-es/commands/StartSpeakerEnrollmentJobCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/UntagResourceCommand.js +21 -28
  24. package/dist-es/commands/UpdateDomainCommand.js +21 -28
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/VoiceIDServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +333 -162
  28. package/dist-es/pagination/ListDomainsPaginator.js +25 -68
  29. package/dist-es/pagination/ListFraudsterRegistrationJobsPaginator.js +25 -68
  30. package/dist-es/pagination/ListSpeakerEnrollmentJobsPaginator.js +25 -68
  31. package/dist-es/pagination/ListSpeakersPaginator.js +25 -68
  32. package/dist-es/protocols/Aws_json1_0.js +1529 -1984
  33. package/dist-es/runtimeConfig.browser.js +26 -12
  34. package/dist-es/runtimeConfig.js +30 -12
  35. package/dist-es/runtimeConfig.native.js +8 -5
  36. package/dist-es/runtimeConfig.shared.js +8 -11
  37. package/package.json +33 -33
@@ -1,19 +1,18 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException";
4
- var AccessDeniedException = (function (_super) {
5
- __extends(AccessDeniedException, _super);
6
- function AccessDeniedException(opts) {
7
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
- _this.name = "AccessDeniedException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
11
- _this.Message = opts.Message;
12
- return _this;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
13
14
  }
14
- return AccessDeniedException;
15
- }(__BaseException));
16
- export { AccessDeniedException };
15
+ }
17
16
  export var AuthenticationDecision;
18
17
  (function (AuthenticationDecision) {
19
18
  AuthenticationDecision["ACCEPT"] = "ACCEPT";
@@ -35,20 +34,20 @@ export var ConflictType;
35
34
  ConflictType["SPEAKER_NOT_SET"] = "SPEAKER_NOT_SET";
36
35
  ConflictType["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
37
36
  })(ConflictType || (ConflictType = {}));
38
- var ConflictException = (function (_super) {
39
- __extends(ConflictException, _super);
40
- function ConflictException(opts) {
41
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
42
- _this.name = "ConflictException";
43
- _this.$fault = "client";
44
- Object.setPrototypeOf(_this, ConflictException.prototype);
45
- _this.Message = opts.Message;
46
- _this.ConflictType = opts.ConflictType;
47
- return _this;
37
+ export class ConflictException extends __BaseException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "ConflictException",
41
+ $fault: "client",
42
+ ...opts,
43
+ });
44
+ this.name = "ConflictException";
45
+ this.$fault = "client";
46
+ Object.setPrototypeOf(this, ConflictException.prototype);
47
+ this.Message = opts.Message;
48
+ this.ConflictType = opts.ConflictType;
48
49
  }
49
- return ConflictException;
50
- }(__BaseException));
51
- export { ConflictException };
50
+ }
52
51
  export var DomainStatus;
53
52
  (function (DomainStatus) {
54
53
  DomainStatus["ACTIVE"] = "ACTIVE";
@@ -61,19 +60,19 @@ export var ServerSideEncryptionUpdateStatus;
61
60
  ServerSideEncryptionUpdateStatus["FAILED"] = "FAILED";
62
61
  ServerSideEncryptionUpdateStatus["IN_PROGRESS"] = "IN_PROGRESS";
63
62
  })(ServerSideEncryptionUpdateStatus || (ServerSideEncryptionUpdateStatus = {}));
64
- var InternalServerException = (function (_super) {
65
- __extends(InternalServerException, _super);
66
- function InternalServerException(opts) {
67
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
68
- _this.name = "InternalServerException";
69
- _this.$fault = "server";
70
- Object.setPrototypeOf(_this, InternalServerException.prototype);
71
- _this.Message = opts.Message;
72
- return _this;
63
+ export class InternalServerException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "InternalServerException",
67
+ $fault: "server",
68
+ ...opts,
69
+ });
70
+ this.name = "InternalServerException";
71
+ this.$fault = "server";
72
+ Object.setPrototypeOf(this, InternalServerException.prototype);
73
+ this.Message = opts.Message;
73
74
  }
74
- return InternalServerException;
75
- }(__BaseException));
76
- export { InternalServerException };
75
+ }
77
76
  export var ResourceType;
78
77
  (function (ResourceType) {
79
78
  ResourceType["BATCH_JOB"] = "BATCH_JOB";
@@ -83,59 +82,59 @@ export var ResourceType;
83
82
  ResourceType["SESSION"] = "SESSION";
84
83
  ResourceType["SPEAKER"] = "SPEAKER";
85
84
  })(ResourceType || (ResourceType = {}));
86
- var ResourceNotFoundException = (function (_super) {
87
- __extends(ResourceNotFoundException, _super);
88
- function ResourceNotFoundException(opts) {
89
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
90
- _this.name = "ResourceNotFoundException";
91
- _this.$fault = "client";
92
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
93
- _this.Message = opts.Message;
94
- _this.ResourceType = opts.ResourceType;
95
- return _this;
85
+ export class ResourceNotFoundException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceNotFoundException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ResourceNotFoundException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
95
+ this.Message = opts.Message;
96
+ this.ResourceType = opts.ResourceType;
96
97
  }
97
- return ResourceNotFoundException;
98
- }(__BaseException));
99
- export { ResourceNotFoundException };
100
- var ServiceQuotaExceededException = (function (_super) {
101
- __extends(ServiceQuotaExceededException, _super);
102
- function ServiceQuotaExceededException(opts) {
103
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
104
- _this.name = "ServiceQuotaExceededException";
105
- _this.$fault = "client";
106
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
107
- _this.Message = opts.Message;
108
- return _this;
98
+ }
99
+ export class ServiceQuotaExceededException extends __BaseException {
100
+ constructor(opts) {
101
+ super({
102
+ name: "ServiceQuotaExceededException",
103
+ $fault: "client",
104
+ ...opts,
105
+ });
106
+ this.name = "ServiceQuotaExceededException";
107
+ this.$fault = "client";
108
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
109
+ this.Message = opts.Message;
109
110
  }
110
- return ServiceQuotaExceededException;
111
- }(__BaseException));
112
- export { ServiceQuotaExceededException };
113
- var ThrottlingException = (function (_super) {
114
- __extends(ThrottlingException, _super);
115
- function ThrottlingException(opts) {
116
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
117
- _this.name = "ThrottlingException";
118
- _this.$fault = "client";
119
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
120
- _this.Message = opts.Message;
121
- return _this;
111
+ }
112
+ export class ThrottlingException extends __BaseException {
113
+ constructor(opts) {
114
+ super({
115
+ name: "ThrottlingException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ this.name = "ThrottlingException";
120
+ this.$fault = "client";
121
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
122
+ this.Message = opts.Message;
122
123
  }
123
- return ThrottlingException;
124
- }(__BaseException));
125
- export { ThrottlingException };
126
- var ValidationException = (function (_super) {
127
- __extends(ValidationException, _super);
128
- function ValidationException(opts) {
129
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
130
- _this.name = "ValidationException";
131
- _this.$fault = "client";
132
- Object.setPrototypeOf(_this, ValidationException.prototype);
133
- _this.Message = opts.Message;
134
- return _this;
124
+ }
125
+ export class ValidationException extends __BaseException {
126
+ constructor(opts) {
127
+ super({
128
+ name: "ValidationException",
129
+ $fault: "client",
130
+ ...opts,
131
+ });
132
+ this.name = "ValidationException";
133
+ this.$fault = "client";
134
+ Object.setPrototypeOf(this, ValidationException.prototype);
135
+ this.Message = opts.Message;
135
136
  }
136
- return ValidationException;
137
- }(__BaseException));
138
- export { ValidationException };
137
+ }
139
138
  export var FraudsterRegistrationJobStatus;
140
139
  (function (FraudsterRegistrationJobStatus) {
141
140
  FraudsterRegistrationJobStatus["COMPLETED"] = "COMPLETED";
@@ -191,78 +190,250 @@ export var StreamingStatus;
191
190
  StreamingStatus["ONGOING"] = "ONGOING";
192
191
  StreamingStatus["PENDING_CONFIGURATION"] = "PENDING_CONFIGURATION";
193
192
  })(StreamingStatus || (StreamingStatus = {}));
194
- export var AuthenticationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- export var AuthenticationResultFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }))); };
196
- export var ServerSideEncryptionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- export var TagFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Key && { Key: SENSITIVE_STRING })), (obj.Value && { Value: SENSITIVE_STRING }))); };
198
- export var CreateDomainRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Description && { Description: SENSITIVE_STRING })), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
199
- export var ServerSideEncryptionUpdateDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
- export var DomainFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Description && { Description: SENSITIVE_STRING }))); };
201
- export var CreateDomainResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }))); };
202
- export var DeleteDomainRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
- export var DeleteFraudsterRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }))); };
204
- export var DeleteSpeakerRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }))); };
205
- export var DescribeDomainRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
- export var DescribeDomainResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }))); };
207
- export var DescribeFraudsterRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }))); };
208
- export var FraudsterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
- export var DescribeFraudsterResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
- export var DescribeFraudsterRegistrationJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
- export var FailureDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
- export var InputDataConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- export var JobProgressFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
- export var OutputDataConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
- export var RegistrationConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
- export var FraudsterRegistrationJobFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
217
- export var DescribeFraudsterRegistrationJobResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Job && { Job: FraudsterRegistrationJobFilterSensitiveLog(obj.Job) }))); };
218
- export var DescribeSpeakerRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }))); };
219
- export var SpeakerFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }))); };
220
- export var DescribeSpeakerResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Speaker && { Speaker: SpeakerFilterSensitiveLog(obj.Speaker) }))); };
221
- export var DescribeSpeakerEnrollmentJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
- export var EnrollmentJobFraudDetectionConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
- export var EnrollmentConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- export var SpeakerEnrollmentJobFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
225
- export var DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Job && { Job: SpeakerEnrollmentJobFilterSensitiveLog(obj.Job) }))); };
226
- export var ListDomainsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- export var DomainSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Description && { Description: SENSITIVE_STRING }))); };
228
- export var ListDomainsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DomainSummaries && {
229
- DomainSummaries: obj.DomainSummaries.map(function (item) { return DomainSummaryFilterSensitiveLog(item); }),
230
- }))); };
231
- export var UpdateDomainRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Description && { Description: SENSITIVE_STRING }))); };
232
- export var UpdateDomainResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }))); };
233
- export var EvaluateSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
- export var FraudDetectionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
- export var KnownFraudsterRiskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- export var VoiceSpoofingRiskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
- export var FraudRiskDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
- export var FraudDetectionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
- export var EvaluateSessionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AuthenticationResult && {
240
- AuthenticationResult: AuthenticationResultFilterSensitiveLog(obj.AuthenticationResult),
241
- }))); };
242
- export var FraudsterRegistrationJobSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
243
- export var ListFraudsterRegistrationJobsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
- export var ListFraudsterRegistrationJobsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobSummaries && {
245
- JobSummaries: obj.JobSummaries.map(function (item) { return FraudsterRegistrationJobSummaryFilterSensitiveLog(item); }),
246
- }))); };
247
- export var ListSpeakerEnrollmentJobsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- export var SpeakerEnrollmentJobSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
249
- export var ListSpeakerEnrollmentJobsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobSummaries && {
250
- JobSummaries: obj.JobSummaries.map(function (item) { return SpeakerEnrollmentJobSummaryFilterSensitiveLog(item); }),
251
- }))); };
252
- export var ListSpeakersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
- export var SpeakerSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }))); };
254
- export var ListSpeakersResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SpeakerSummaries && {
255
- SpeakerSummaries: obj.SpeakerSummaries.map(function (item) { return SpeakerSummaryFilterSensitiveLog(item); }),
256
- }))); };
257
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
259
- export var OptOutSpeakerRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }))); };
260
- export var OptOutSpeakerResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Speaker && { Speaker: SpeakerFilterSensitiveLog(obj.Speaker) }))); };
261
- export var StartFraudsterRegistrationJobRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
262
- export var StartFraudsterRegistrationJobResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Job && { Job: FraudsterRegistrationJobFilterSensitiveLog(obj.Job) }))); };
263
- export var StartSpeakerEnrollmentJobRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
264
- export var StartSpeakerEnrollmentJobResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Job && { Job: SpeakerEnrollmentJobFilterSensitiveLog(obj.Job) }))); };
265
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
266
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TagKeys && { TagKeys: SENSITIVE_STRING }))); };
268
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export const AuthenticationConfigurationFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ });
196
+ export const AuthenticationResultFilterSensitiveLog = (obj) => ({
197
+ ...obj,
198
+ ...(obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }),
199
+ });
200
+ export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ });
203
+ export const TagFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
206
+ ...(obj.Value && { Value: SENSITIVE_STRING }),
207
+ });
208
+ export const CreateDomainRequestFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
211
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
212
+ ...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
213
+ });
214
+ export const ServerSideEncryptionUpdateDetailsFilterSensitiveLog = (obj) => ({
215
+ ...obj,
216
+ });
217
+ export const DomainFilterSensitiveLog = (obj) => ({
218
+ ...obj,
219
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
220
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
221
+ });
222
+ export const CreateDomainResponseFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ ...(obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }),
225
+ });
226
+ export const DeleteDomainRequestFilterSensitiveLog = (obj) => ({
227
+ ...obj,
228
+ });
229
+ export const DeleteFraudsterRequestFilterSensitiveLog = (obj) => ({
230
+ ...obj,
231
+ ...(obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }),
232
+ });
233
+ export const DeleteSpeakerRequestFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ ...(obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }),
236
+ });
237
+ export const DescribeDomainRequestFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const DescribeDomainResponseFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ ...(obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }),
243
+ });
244
+ export const DescribeFraudsterRequestFilterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ ...(obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }),
247
+ });
248
+ export const FraudsterFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ });
251
+ export const DescribeFraudsterResponseFilterSensitiveLog = (obj) => ({
252
+ ...obj,
253
+ });
254
+ export const DescribeFraudsterRegistrationJobRequestFilterSensitiveLog = (obj) => ({
255
+ ...obj,
256
+ });
257
+ export const FailureDetailsFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ });
260
+ export const InputDataConfigFilterSensitiveLog = (obj) => ({
261
+ ...obj,
262
+ });
263
+ export const JobProgressFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ });
266
+ export const OutputDataConfigFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ });
269
+ export const RegistrationConfigFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ });
272
+ export const FraudsterRegistrationJobFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
275
+ });
276
+ export const DescribeFraudsterRegistrationJobResponseFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ ...(obj.Job && { Job: FraudsterRegistrationJobFilterSensitiveLog(obj.Job) }),
279
+ });
280
+ export const DescribeSpeakerRequestFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ ...(obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }),
283
+ });
284
+ export const SpeakerFilterSensitiveLog = (obj) => ({
285
+ ...obj,
286
+ ...(obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }),
287
+ });
288
+ export const DescribeSpeakerResponseFilterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ ...(obj.Speaker && { Speaker: SpeakerFilterSensitiveLog(obj.Speaker) }),
291
+ });
292
+ export const DescribeSpeakerEnrollmentJobRequestFilterSensitiveLog = (obj) => ({
293
+ ...obj,
294
+ });
295
+ export const EnrollmentJobFraudDetectionConfigFilterSensitiveLog = (obj) => ({
296
+ ...obj,
297
+ });
298
+ export const EnrollmentConfigFilterSensitiveLog = (obj) => ({
299
+ ...obj,
300
+ });
301
+ export const SpeakerEnrollmentJobFilterSensitiveLog = (obj) => ({
302
+ ...obj,
303
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
304
+ });
305
+ export const DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = (obj) => ({
306
+ ...obj,
307
+ ...(obj.Job && { Job: SpeakerEnrollmentJobFilterSensitiveLog(obj.Job) }),
308
+ });
309
+ export const ListDomainsRequestFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ });
312
+ export const DomainSummaryFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
315
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
316
+ });
317
+ export const ListDomainsResponseFilterSensitiveLog = (obj) => ({
318
+ ...obj,
319
+ ...(obj.DomainSummaries && {
320
+ DomainSummaries: obj.DomainSummaries.map((item) => DomainSummaryFilterSensitiveLog(item)),
321
+ }),
322
+ });
323
+ export const UpdateDomainRequestFilterSensitiveLog = (obj) => ({
324
+ ...obj,
325
+ ...(obj.Name && { Name: SENSITIVE_STRING }),
326
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
327
+ });
328
+ export const UpdateDomainResponseFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ ...(obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }),
331
+ });
332
+ export const EvaluateSessionRequestFilterSensitiveLog = (obj) => ({
333
+ ...obj,
334
+ });
335
+ export const FraudDetectionConfigurationFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ });
338
+ export const KnownFraudsterRiskFilterSensitiveLog = (obj) => ({
339
+ ...obj,
340
+ });
341
+ export const VoiceSpoofingRiskFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ });
344
+ export const FraudRiskDetailsFilterSensitiveLog = (obj) => ({
345
+ ...obj,
346
+ });
347
+ export const FraudDetectionResultFilterSensitiveLog = (obj) => ({
348
+ ...obj,
349
+ });
350
+ export const EvaluateSessionResponseFilterSensitiveLog = (obj) => ({
351
+ ...obj,
352
+ ...(obj.AuthenticationResult && {
353
+ AuthenticationResult: AuthenticationResultFilterSensitiveLog(obj.AuthenticationResult),
354
+ }),
355
+ });
356
+ export const FraudsterRegistrationJobSummaryFilterSensitiveLog = (obj) => ({
357
+ ...obj,
358
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
359
+ });
360
+ export const ListFraudsterRegistrationJobsRequestFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
363
+ export const ListFraudsterRegistrationJobsResponseFilterSensitiveLog = (obj) => ({
364
+ ...obj,
365
+ ...(obj.JobSummaries && {
366
+ JobSummaries: obj.JobSummaries.map((item) => FraudsterRegistrationJobSummaryFilterSensitiveLog(item)),
367
+ }),
368
+ });
369
+ export const ListSpeakerEnrollmentJobsRequestFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ });
372
+ export const SpeakerEnrollmentJobSummaryFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
375
+ });
376
+ export const ListSpeakerEnrollmentJobsResponseFilterSensitiveLog = (obj) => ({
377
+ ...obj,
378
+ ...(obj.JobSummaries && {
379
+ JobSummaries: obj.JobSummaries.map((item) => SpeakerEnrollmentJobSummaryFilterSensitiveLog(item)),
380
+ }),
381
+ });
382
+ export const ListSpeakersRequestFilterSensitiveLog = (obj) => ({
383
+ ...obj,
384
+ });
385
+ export const SpeakerSummaryFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ ...(obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }),
388
+ });
389
+ export const ListSpeakersResponseFilterSensitiveLog = (obj) => ({
390
+ ...obj,
391
+ ...(obj.SpeakerSummaries && {
392
+ SpeakerSummaries: obj.SpeakerSummaries.map((item) => SpeakerSummaryFilterSensitiveLog(item)),
393
+ }),
394
+ });
395
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
396
+ ...obj,
397
+ });
398
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
399
+ ...obj,
400
+ ...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
401
+ });
402
+ export const OptOutSpeakerRequestFilterSensitiveLog = (obj) => ({
403
+ ...obj,
404
+ ...(obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }),
405
+ });
406
+ export const OptOutSpeakerResponseFilterSensitiveLog = (obj) => ({
407
+ ...obj,
408
+ ...(obj.Speaker && { Speaker: SpeakerFilterSensitiveLog(obj.Speaker) }),
409
+ });
410
+ export const StartFraudsterRegistrationJobRequestFilterSensitiveLog = (obj) => ({
411
+ ...obj,
412
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
413
+ });
414
+ export const StartFraudsterRegistrationJobResponseFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ ...(obj.Job && { Job: FraudsterRegistrationJobFilterSensitiveLog(obj.Job) }),
417
+ });
418
+ export const StartSpeakerEnrollmentJobRequestFilterSensitiveLog = (obj) => ({
419
+ ...obj,
420
+ ...(obj.JobName && { JobName: SENSITIVE_STRING }),
421
+ });
422
+ export const StartSpeakerEnrollmentJobResponseFilterSensitiveLog = (obj) => ({
423
+ ...obj,
424
+ ...(obj.Job && { Job: SpeakerEnrollmentJobFilterSensitiveLog(obj.Job) }),
425
+ });
426
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
427
+ ...obj,
428
+ ...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
429
+ });
430
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
431
+ ...obj,
432
+ });
433
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
434
+ ...obj,
435
+ ...(obj.TagKeys && { TagKeys: SENSITIVE_STRING }),
436
+ });
437
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
438
+ ...obj,
439
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListDomainsCommand } from "../commands/ListDomainsCommand";
3
2
  import { VoiceID } from "../VoiceID";
4
3
  import { VoiceIDClient } from "../VoiceIDClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListDomainsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListDomainsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listDomains.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listDomains(input, ...args);
32
9
  };
33
- export function paginateListDomains(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListDomains(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof VoiceID) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof VoiceIDClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListDomains_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.NextToken = token;
49
- input["MaxResults"] = config.pageSize;
50
- if (!(config.client instanceof VoiceID)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof VoiceIDClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }