@aws-sdk/client-voice-id 3.159.0 → 3.162.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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -2
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +28 -23
- package/dist-cjs/protocols/Aws_json1_0.js +11 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +8 -6
- package/dist-es/protocols/Aws_json1_0.js +22 -10
- package/dist-types/VoiceID.d.ts +21 -23
- package/dist-types/VoiceIDClient.d.ts +1 -2
- package/dist-types/commands/CreateDomainCommand.d.ts +2 -3
- package/dist-types/commands/EvaluateSessionCommand.d.ts +2 -2
- package/dist-types/commands/ListDomainsCommand.d.ts +1 -2
- package/dist-types/commands/ListFraudsterRegistrationJobsCommand.d.ts +3 -4
- package/dist-types/commands/ListSpeakerEnrollmentJobsCommand.d.ts +3 -3
- package/dist-types/commands/OptOutSpeakerCommand.d.ts +6 -5
- package/dist-types/commands/UpdateDomainCommand.d.ts +3 -2
- package/dist-types/models/models_0.d.ts +389 -325
- package/dist-types/ts3.4/models/models_0.d.ts +45 -35
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-voice-id
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.161.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.160.0...v3.161.0) (2022-08-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update client endpoints as of 2022-08-30 ([59043d3](https://github.com/aws/aws-sdk-js-v3/commit/59043d3755015c9185990f3ad850aaded13bd58c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.160.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.159.0...v3.160.0) (2022-08-29)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **client-voice-id:** Amazon Connect Voice ID now detects voice spoofing. When a prospective fraudster tries to spoof caller audio using audio playback or synthesized speech, Voice ID will return a risk score and outcome to indicate the how likely it is that the voice is spoofed. ([bf82531](https://github.com/aws/aws-sdk-js-v3/commit/bf82531c49e1b8dad002f2bb2dfdf920fc8e1ee6))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-voice-id
|
package/README.md
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
AWS SDK for JavaScript VoiceID Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
12
|
<p>Amazon Connect Voice ID provides real-time caller authentication and fraud screening. This guide
|
|
13
|
-
describes the APIs used for this service.
|
|
14
|
-
</p>
|
|
13
|
+
describes the APIs used for this service. </p>
|
|
15
14
|
|
|
16
15
|
## Installing
|
|
17
16
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnrollmentJobFraudDetectionConfigFilterSensitiveLog = exports.DescribeSpeakerEnrollmentJobRequestFilterSensitiveLog = exports.DescribeSpeakerResponseFilterSensitiveLog = exports.SpeakerFilterSensitiveLog = exports.DescribeSpeakerRequestFilterSensitiveLog = exports.DescribeFraudsterRegistrationJobResponseFilterSensitiveLog = exports.FraudsterRegistrationJobFilterSensitiveLog = exports.RegistrationConfigFilterSensitiveLog = exports.OutputDataConfigFilterSensitiveLog = exports.JobProgressFilterSensitiveLog = exports.InputDataConfigFilterSensitiveLog = exports.FailureDetailsFilterSensitiveLog = exports.DescribeFraudsterRegistrationJobRequestFilterSensitiveLog = exports.DescribeFraudsterResponseFilterSensitiveLog = exports.FraudsterFilterSensitiveLog = exports.DescribeFraudsterRequestFilterSensitiveLog = exports.DescribeDomainResponseFilterSensitiveLog = exports.DescribeDomainRequestFilterSensitiveLog = exports.DeleteSpeakerRequestFilterSensitiveLog = exports.DeleteFraudsterRequestFilterSensitiveLog = exports.DeleteDomainRequestFilterSensitiveLog = exports.CreateDomainResponseFilterSensitiveLog = exports.DomainFilterSensitiveLog = exports.ServerSideEncryptionUpdateDetailsFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.AuthenticationResultFilterSensitiveLog = exports.AuthenticationConfigurationFilterSensitiveLog = 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.
|
|
4
|
+
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.StartSpeakerEnrollmentJobRequestFilterSensitiveLog = exports.StartFraudsterRegistrationJobResponseFilterSensitiveLog = exports.StartFraudsterRegistrationJobRequestFilterSensitiveLog = exports.OptOutSpeakerResponseFilterSensitiveLog = exports.OptOutSpeakerRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSpeakersResponseFilterSensitiveLog = exports.SpeakerSummaryFilterSensitiveLog = exports.ListSpeakersRequestFilterSensitiveLog = exports.ListSpeakerEnrollmentJobsResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobSummaryFilterSensitiveLog = exports.ListSpeakerEnrollmentJobsRequestFilterSensitiveLog = exports.ListFraudsterRegistrationJobsResponseFilterSensitiveLog = exports.ListFraudsterRegistrationJobsRequestFilterSensitiveLog = exports.FraudsterRegistrationJobSummaryFilterSensitiveLog = exports.EvaluateSessionResponseFilterSensitiveLog = exports.FraudDetectionResultFilterSensitiveLog = exports.FraudRiskDetailsFilterSensitiveLog = exports.VoiceSpoofingRiskFilterSensitiveLog = exports.KnownFraudsterRiskFilterSensitiveLog = exports.FraudDetectionConfigurationFilterSensitiveLog = exports.EvaluateSessionRequestFilterSensitiveLog = exports.UpdateDomainResponseFilterSensitiveLog = exports.UpdateDomainRequestFilterSensitiveLog = exports.ListDomainsResponseFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.ListDomainsRequestFilterSensitiveLog = exports.DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = exports.SpeakerEnrollmentJobFilterSensitiveLog = exports.EnrollmentConfigFilterSensitiveLog = 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 {
|
|
@@ -193,6 +193,7 @@ var FraudDetectionDecision;
|
|
|
193
193
|
var FraudDetectionReason;
|
|
194
194
|
(function (FraudDetectionReason) {
|
|
195
195
|
FraudDetectionReason["KNOWN_FRAUDSTER"] = "KNOWN_FRAUDSTER";
|
|
196
|
+
FraudDetectionReason["VOICE_SPOOFING"] = "VOICE_SPOOFING";
|
|
196
197
|
})(FraudDetectionReason = exports.FraudDetectionReason || (exports.FraudDetectionReason = {}));
|
|
197
198
|
var StreamingStatus;
|
|
198
199
|
(function (StreamingStatus) {
|
|
@@ -348,12 +349,34 @@ const DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = (obj) => ({
|
|
|
348
349
|
...(obj.Job && { Job: (0, exports.SpeakerEnrollmentJobFilterSensitiveLog)(obj.Job) }),
|
|
349
350
|
});
|
|
350
351
|
exports.DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog;
|
|
352
|
+
const ListDomainsRequestFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
});
|
|
355
|
+
exports.ListDomainsRequestFilterSensitiveLog = ListDomainsRequestFilterSensitiveLog;
|
|
351
356
|
const DomainSummaryFilterSensitiveLog = (obj) => ({
|
|
352
357
|
...obj,
|
|
353
358
|
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
354
359
|
...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
|
|
355
360
|
});
|
|
356
361
|
exports.DomainSummaryFilterSensitiveLog = DomainSummaryFilterSensitiveLog;
|
|
362
|
+
const ListDomainsResponseFilterSensitiveLog = (obj) => ({
|
|
363
|
+
...obj,
|
|
364
|
+
...(obj.DomainSummaries && {
|
|
365
|
+
DomainSummaries: obj.DomainSummaries.map((item) => (0, exports.DomainSummaryFilterSensitiveLog)(item)),
|
|
366
|
+
}),
|
|
367
|
+
});
|
|
368
|
+
exports.ListDomainsResponseFilterSensitiveLog = ListDomainsResponseFilterSensitiveLog;
|
|
369
|
+
const UpdateDomainRequestFilterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
372
|
+
...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
|
|
373
|
+
});
|
|
374
|
+
exports.UpdateDomainRequestFilterSensitiveLog = UpdateDomainRequestFilterSensitiveLog;
|
|
375
|
+
const UpdateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
376
|
+
...obj,
|
|
377
|
+
...(obj.Domain && { Domain: (0, exports.DomainFilterSensitiveLog)(obj.Domain) }),
|
|
378
|
+
});
|
|
379
|
+
exports.UpdateDomainResponseFilterSensitiveLog = UpdateDomainResponseFilterSensitiveLog;
|
|
357
380
|
const EvaluateSessionRequestFilterSensitiveLog = (obj) => ({
|
|
358
381
|
...obj,
|
|
359
382
|
});
|
|
@@ -366,6 +389,10 @@ const KnownFraudsterRiskFilterSensitiveLog = (obj) => ({
|
|
|
366
389
|
...obj,
|
|
367
390
|
});
|
|
368
391
|
exports.KnownFraudsterRiskFilterSensitiveLog = KnownFraudsterRiskFilterSensitiveLog;
|
|
392
|
+
const VoiceSpoofingRiskFilterSensitiveLog = (obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
});
|
|
395
|
+
exports.VoiceSpoofingRiskFilterSensitiveLog = VoiceSpoofingRiskFilterSensitiveLog;
|
|
369
396
|
const FraudRiskDetailsFilterSensitiveLog = (obj) => ({
|
|
370
397
|
...obj,
|
|
371
398
|
});
|
|
@@ -386,17 +413,6 @@ const FraudsterRegistrationJobSummaryFilterSensitiveLog = (obj) => ({
|
|
|
386
413
|
...(obj.JobName && { JobName: smithy_client_1.SENSITIVE_STRING }),
|
|
387
414
|
});
|
|
388
415
|
exports.FraudsterRegistrationJobSummaryFilterSensitiveLog = FraudsterRegistrationJobSummaryFilterSensitiveLog;
|
|
389
|
-
const ListDomainsRequestFilterSensitiveLog = (obj) => ({
|
|
390
|
-
...obj,
|
|
391
|
-
});
|
|
392
|
-
exports.ListDomainsRequestFilterSensitiveLog = ListDomainsRequestFilterSensitiveLog;
|
|
393
|
-
const ListDomainsResponseFilterSensitiveLog = (obj) => ({
|
|
394
|
-
...obj,
|
|
395
|
-
...(obj.DomainSummaries && {
|
|
396
|
-
DomainSummaries: obj.DomainSummaries.map((item) => (0, exports.DomainSummaryFilterSensitiveLog)(item)),
|
|
397
|
-
}),
|
|
398
|
-
});
|
|
399
|
-
exports.ListDomainsResponseFilterSensitiveLog = ListDomainsResponseFilterSensitiveLog;
|
|
400
416
|
const ListFraudsterRegistrationJobsRequestFilterSensitiveLog = (obj) => ({
|
|
401
417
|
...obj,
|
|
402
418
|
});
|
|
@@ -497,14 +513,3 @@ const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
|
497
513
|
...obj,
|
|
498
514
|
});
|
|
499
515
|
exports.UntagResourceResponseFilterSensitiveLog = UntagResourceResponseFilterSensitiveLog;
|
|
500
|
-
const UpdateDomainRequestFilterSensitiveLog = (obj) => ({
|
|
501
|
-
...obj,
|
|
502
|
-
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
503
|
-
...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
|
|
504
|
-
});
|
|
505
|
-
exports.UpdateDomainRequestFilterSensitiveLog = UpdateDomainRequestFilterSensitiveLog;
|
|
506
|
-
const UpdateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
507
|
-
...obj,
|
|
508
|
-
...(obj.Domain && { Domain: (0, exports.DomainFilterSensitiveLog)(obj.Domain) }),
|
|
509
|
-
});
|
|
510
|
-
exports.UpdateDomainResponseFilterSensitiveLog = UpdateDomainResponseFilterSensitiveLog;
|
|
@@ -945,6 +945,9 @@ const deserializeAws_json1_0OptOutSpeakerCommandError = async (output, context)
|
|
|
945
945
|
case "ResourceNotFoundException":
|
|
946
946
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
947
947
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
948
|
+
case "ServiceQuotaExceededException":
|
|
949
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
950
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
948
951
|
case "ThrottlingException":
|
|
949
952
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
950
953
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -1678,6 +1681,9 @@ const deserializeAws_json1_0FraudRiskDetails = (output, context) => {
|
|
|
1678
1681
|
KnownFraudsterRisk: output.KnownFraudsterRisk != null
|
|
1679
1682
|
? deserializeAws_json1_0KnownFraudsterRisk(output.KnownFraudsterRisk, context)
|
|
1680
1683
|
: undefined,
|
|
1684
|
+
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null
|
|
1685
|
+
? deserializeAws_json1_0VoiceSpoofingRisk(output.VoiceSpoofingRisk, context)
|
|
1686
|
+
: undefined,
|
|
1681
1687
|
};
|
|
1682
1688
|
};
|
|
1683
1689
|
const deserializeAws_json1_0Fraudster = (output, context) => {
|
|
@@ -1960,6 +1966,11 @@ const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
|
1960
1966
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1961
1967
|
};
|
|
1962
1968
|
};
|
|
1969
|
+
const deserializeAws_json1_0VoiceSpoofingRisk = (output, context) => {
|
|
1970
|
+
return {
|
|
1971
|
+
RiskScore: (0, smithy_client_1.expectInt32)(output.RiskScore),
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1963
1974
|
const deserializeMetadata = (output) => {
|
|
1964
1975
|
var _a;
|
|
1965
1976
|
return ({
|
package/dist-es/endpoints.js
CHANGED
|
@@ -183,6 +183,7 @@ export var FraudDetectionDecision;
|
|
|
183
183
|
export var FraudDetectionReason;
|
|
184
184
|
(function (FraudDetectionReason) {
|
|
185
185
|
FraudDetectionReason["KNOWN_FRAUDSTER"] = "KNOWN_FRAUDSTER";
|
|
186
|
+
FraudDetectionReason["VOICE_SPOOFING"] = "VOICE_SPOOFING";
|
|
186
187
|
})(FraudDetectionReason || (FraudDetectionReason = {}));
|
|
187
188
|
export var StreamingStatus;
|
|
188
189
|
(function (StreamingStatus) {
|
|
@@ -222,20 +223,23 @@ export var EnrollmentJobFraudDetectionConfigFilterSensitiveLog = function (obj)
|
|
|
222
223
|
export var EnrollmentConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
224
|
export var SpeakerEnrollmentJobFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
|
|
224
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)); };
|
|
225
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) }))); };
|
|
226
233
|
export var EvaluateSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
227
234
|
export var FraudDetectionConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
228
235
|
export var KnownFraudsterRiskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
236
|
+
export var VoiceSpoofingRiskFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
229
237
|
export var FraudRiskDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
230
238
|
export var FraudDetectionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
239
|
export var EvaluateSessionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AuthenticationResult && {
|
|
232
240
|
AuthenticationResult: AuthenticationResultFilterSensitiveLog(obj.AuthenticationResult),
|
|
233
241
|
}))); };
|
|
234
242
|
export var FraudsterRegistrationJobSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobName && { JobName: SENSITIVE_STRING }))); };
|
|
235
|
-
export var ListDomainsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
236
|
-
export var ListDomainsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DomainSummaries && {
|
|
237
|
-
DomainSummaries: obj.DomainSummaries.map(function (item) { return DomainSummaryFilterSensitiveLog(item); }),
|
|
238
|
-
}))); };
|
|
239
243
|
export var ListFraudsterRegistrationJobsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
244
|
export var ListFraudsterRegistrationJobsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.JobSummaries && {
|
|
241
245
|
JobSummaries: obj.JobSummaries.map(function (item) { return FraudsterRegistrationJobSummaryFilterSensitiveLog(item); }),
|
|
@@ -262,5 +266,3 @@ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__ass
|
|
|
262
266
|
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
263
267
|
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TagKeys && { TagKeys: SENSITIVE_STRING }))); };
|
|
264
268
|
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
265
|
-
export var UpdateDomainRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Description && { Description: SENSITIVE_STRING }))); };
|
|
266
|
-
export var UpdateDomainResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }))); };
|
|
@@ -1300,12 +1300,14 @@ var deserializeAws_json1_0OptOutSpeakerCommandError = function (output, context)
|
|
|
1300
1300
|
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1301
1301
|
case "ResourceNotFoundException": return [3, 8];
|
|
1302
1302
|
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1303
|
-
case "
|
|
1304
|
-
case "com.amazonaws.voiceid#
|
|
1305
|
-
case "
|
|
1306
|
-
case "com.amazonaws.voiceid#
|
|
1303
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1304
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException": return [3, 10];
|
|
1305
|
+
case "ThrottlingException": return [3, 12];
|
|
1306
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 12];
|
|
1307
|
+
case "ValidationException": return [3, 14];
|
|
1308
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 14];
|
|
1307
1309
|
}
|
|
1308
|
-
return [3,
|
|
1310
|
+
return [3, 16];
|
|
1309
1311
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1310
1312
|
case 3: throw _d.sent();
|
|
1311
1313
|
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1314,11 +1316,13 @@ var deserializeAws_json1_0OptOutSpeakerCommandError = function (output, context)
|
|
|
1314
1316
|
case 7: throw _d.sent();
|
|
1315
1317
|
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1316
1318
|
case 9: throw _d.sent();
|
|
1317
|
-
case 10: return [4,
|
|
1319
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1318
1320
|
case 11: throw _d.sent();
|
|
1319
|
-
case 12: return [4,
|
|
1321
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1320
1322
|
case 13: throw _d.sent();
|
|
1321
|
-
case 14:
|
|
1323
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1324
|
+
case 15: throw _d.sent();
|
|
1325
|
+
case 16:
|
|
1322
1326
|
parsedBody = parsedOutput.body;
|
|
1323
1327
|
throwDefaultError({
|
|
1324
1328
|
output: output,
|
|
@@ -1326,8 +1330,8 @@ var deserializeAws_json1_0OptOutSpeakerCommandError = function (output, context)
|
|
|
1326
1330
|
exceptionCtor: __BaseException,
|
|
1327
1331
|
errorCode: errorCode,
|
|
1328
1332
|
});
|
|
1329
|
-
_d.label =
|
|
1330
|
-
case
|
|
1333
|
+
_d.label = 17;
|
|
1334
|
+
case 17: return [2];
|
|
1331
1335
|
}
|
|
1332
1336
|
});
|
|
1333
1337
|
}); };
|
|
@@ -2061,6 +2065,9 @@ var deserializeAws_json1_0FraudRiskDetails = function (output, context) {
|
|
|
2061
2065
|
KnownFraudsterRisk: output.KnownFraudsterRisk != null
|
|
2062
2066
|
? deserializeAws_json1_0KnownFraudsterRisk(output.KnownFraudsterRisk, context)
|
|
2063
2067
|
: undefined,
|
|
2068
|
+
VoiceSpoofingRisk: output.VoiceSpoofingRisk != null
|
|
2069
|
+
? deserializeAws_json1_0VoiceSpoofingRisk(output.VoiceSpoofingRisk, context)
|
|
2070
|
+
: undefined,
|
|
2064
2071
|
};
|
|
2065
2072
|
};
|
|
2066
2073
|
var deserializeAws_json1_0Fraudster = function (output, context) {
|
|
@@ -2343,6 +2350,11 @@ var deserializeAws_json1_0ValidationException = function (output, context) {
|
|
|
2343
2350
|
Message: __expectString(output.Message),
|
|
2344
2351
|
};
|
|
2345
2352
|
};
|
|
2353
|
+
var deserializeAws_json1_0VoiceSpoofingRisk = function (output, context) {
|
|
2354
|
+
return {
|
|
2355
|
+
RiskScore: __expectInt32(output.RiskScore),
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2346
2358
|
var deserializeMetadata = function (output) {
|
|
2347
2359
|
var _a;
|
|
2348
2360
|
return ({
|
package/dist-types/VoiceID.d.ts
CHANGED
|
@@ -23,14 +23,12 @@ import { UpdateDomainCommandInput, UpdateDomainCommandOutput } from "./commands/
|
|
|
23
23
|
import { VoiceIDClient } from "./VoiceIDClient";
|
|
24
24
|
/**
|
|
25
25
|
* <p>Amazon Connect Voice ID provides real-time caller authentication and fraud screening. This guide
|
|
26
|
-
* describes the APIs used for this service.
|
|
27
|
-
* </p>
|
|
26
|
+
* describes the APIs used for this service. </p>
|
|
28
27
|
*/
|
|
29
28
|
export declare class VoiceID extends VoiceIDClient {
|
|
30
29
|
/**
|
|
31
|
-
* <p>Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters,
|
|
32
|
-
* audio, and voiceprints.
|
|
33
|
-
* </p>
|
|
30
|
+
* <p>Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters,
|
|
31
|
+
* customer audio, and voiceprints. </p>
|
|
34
32
|
*/
|
|
35
33
|
createDomain(args: CreateDomainCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainCommandOutput>;
|
|
36
34
|
createDomain(args: CreateDomainCommandInput, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
|
|
@@ -84,32 +82,30 @@ export declare class VoiceID extends VoiceIDClient {
|
|
|
84
82
|
describeSpeakerEnrollmentJob(args: DescribeSpeakerEnrollmentJobCommandInput, cb: (err: any, data?: DescribeSpeakerEnrollmentJobCommandOutput) => void): void;
|
|
85
83
|
describeSpeakerEnrollmentJob(args: DescribeSpeakerEnrollmentJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSpeakerEnrollmentJobCommandOutput) => void): void;
|
|
86
84
|
/**
|
|
87
|
-
* <p>Evaluates a specified session based on audio data accumulated during a streaming
|
|
88
|
-
* ID call.</p>
|
|
85
|
+
* <p>Evaluates a specified session based on audio data accumulated during a streaming
|
|
86
|
+
* Amazon Connect Voice ID call.</p>
|
|
89
87
|
*/
|
|
90
88
|
evaluateSession(args: EvaluateSessionCommandInput, options?: __HttpHandlerOptions): Promise<EvaluateSessionCommandOutput>;
|
|
91
89
|
evaluateSession(args: EvaluateSessionCommandInput, cb: (err: any, data?: EvaluateSessionCommandOutput) => void): void;
|
|
92
90
|
evaluateSession(args: EvaluateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EvaluateSessionCommandOutput) => void): void;
|
|
93
91
|
/**
|
|
94
|
-
* <p>Lists all the domains in the Amazon Web Services account.
|
|
95
|
-
* </p>
|
|
92
|
+
* <p>Lists all the domains in the Amazon Web Services account. </p>
|
|
96
93
|
*/
|
|
97
94
|
listDomains(args: ListDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainsCommandOutput>;
|
|
98
95
|
listDomains(args: ListDomainsCommandInput, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
|
|
99
96
|
listDomains(args: ListDomainsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
|
|
100
97
|
/**
|
|
101
|
-
* <p>Lists all the fraudster registration jobs in the domain with the given
|
|
102
|
-
*
|
|
103
|
-
* domain.
|
|
104
|
-
* </p>
|
|
98
|
+
* <p>Lists all the fraudster registration jobs in the domain with the given
|
|
99
|
+
* <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
|
|
100
|
+
* fraudster registration jobs in the given domain. </p>
|
|
105
101
|
*/
|
|
106
102
|
listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListFraudsterRegistrationJobsCommandOutput>;
|
|
107
103
|
listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, cb: (err: any, data?: ListFraudsterRegistrationJobsCommandOutput) => void): void;
|
|
108
104
|
listFraudsterRegistrationJobs(args: ListFraudsterRegistrationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFraudsterRegistrationJobsCommandOutput) => void): void;
|
|
109
105
|
/**
|
|
110
|
-
* <p>Lists all the speaker enrollment jobs in the domain with the specified
|
|
111
|
-
*
|
|
112
|
-
* statuses.</p>
|
|
106
|
+
* <p>Lists all the speaker enrollment jobs in the domain with the specified
|
|
107
|
+
* <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
|
|
108
|
+
* jobs with all possible speaker enrollment job statuses.</p>
|
|
113
109
|
*/
|
|
114
110
|
listSpeakerEnrollmentJobs(args: ListSpeakerEnrollmentJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListSpeakerEnrollmentJobsCommandOutput>;
|
|
115
111
|
listSpeakerEnrollmentJobs(args: ListSpeakerEnrollmentJobsCommandInput, cb: (err: any, data?: ListSpeakerEnrollmentJobsCommandOutput) => void): void;
|
|
@@ -127,11 +123,12 @@ export declare class VoiceID extends VoiceIDClient {
|
|
|
127
123
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
128
124
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
129
125
|
/**
|
|
130
|
-
* <p>Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or
|
|
131
|
-
* already exist in Voice ID. If they don't yet exist, a new speaker is created
|
|
132
|
-
* If they already exist, their existing status is overridden and
|
|
133
|
-
*
|
|
134
|
-
* no voice embeddings stored in
|
|
126
|
+
* <p>Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or
|
|
127
|
+
* not they already exist in Voice ID. If they don't yet exist, a new speaker is created
|
|
128
|
+
* in an opted out state. If they already exist, their existing status is overridden and
|
|
129
|
+
* they are opted out. Enrollment and evaluation authentication requests are rejected for
|
|
130
|
+
* opted out speakers, and opted out speakers have no voice embeddings stored in
|
|
131
|
+
* Voice ID.</p>
|
|
135
132
|
*/
|
|
136
133
|
optOutSpeaker(args: OptOutSpeakerCommandInput, options?: __HttpHandlerOptions): Promise<OptOutSpeakerCommandOutput>;
|
|
137
134
|
optOutSpeaker(args: OptOutSpeakerCommandInput, cb: (err: any, data?: OptOutSpeakerCommandOutput) => void): void;
|
|
@@ -161,8 +158,9 @@ export declare class VoiceID extends VoiceIDClient {
|
|
|
161
158
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
162
159
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
163
160
|
/**
|
|
164
|
-
* <p>Updates the specified domain. This API has clobber behavior, and clears and replaces
|
|
165
|
-
* If an optional field, such as 'Description' is not provided, it is
|
|
161
|
+
* <p>Updates the specified domain. This API has clobber behavior, and clears and replaces
|
|
162
|
+
* all attributes. If an optional field, such as 'Description' is not provided, it is
|
|
163
|
+
* removed from the domain.</p>
|
|
166
164
|
*/
|
|
167
165
|
updateDomain(args: UpdateDomainCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDomainCommandOutput>;
|
|
168
166
|
updateDomain(args: UpdateDomainCommandInput, cb: (err: any, data?: UpdateDomainCommandOutput) => void): void;
|
|
@@ -148,8 +148,7 @@ export interface VoiceIDClientResolvedConfig extends VoiceIDClientResolvedConfig
|
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* <p>Amazon Connect Voice ID provides real-time caller authentication and fraud screening. This guide
|
|
151
|
-
* describes the APIs used for this service.
|
|
152
|
-
* </p>
|
|
151
|
+
* describes the APIs used for this service. </p>
|
|
153
152
|
*/
|
|
154
153
|
export declare class VoiceIDClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, VoiceIDClientResolvedConfig> {
|
|
155
154
|
/**
|
|
@@ -7,9 +7,8 @@ export interface CreateDomainCommandInput extends CreateDomainRequest {
|
|
|
7
7
|
export interface CreateDomainCommandOutput extends CreateDomainResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters,
|
|
11
|
-
* audio, and voiceprints.
|
|
12
|
-
* </p>
|
|
10
|
+
* <p>Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters,
|
|
11
|
+
* customer audio, and voiceprints. </p>
|
|
13
12
|
* @example
|
|
14
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
14
|
* ```javascript
|
|
@@ -7,8 +7,8 @@ export interface EvaluateSessionCommandInput extends EvaluateSessionRequest {
|
|
|
7
7
|
export interface EvaluateSessionCommandOutput extends EvaluateSessionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Evaluates a specified session based on audio data accumulated during a streaming
|
|
11
|
-
* ID call.</p>
|
|
10
|
+
* <p>Evaluates a specified session based on audio data accumulated during a streaming
|
|
11
|
+
* Amazon Connect Voice ID call.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|
|
@@ -7,8 +7,7 @@ export interface ListDomainsCommandInput extends ListDomainsRequest {
|
|
|
7
7
|
export interface ListDomainsCommandOutput extends ListDomainsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists all the domains in the Amazon Web Services account.
|
|
11
|
-
* </p>
|
|
10
|
+
* <p>Lists all the domains in the Amazon Web Services account. </p>
|
|
12
11
|
* @example
|
|
13
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
13
|
* ```javascript
|
|
@@ -7,10 +7,9 @@ export interface ListFraudsterRegistrationJobsCommandInput extends ListFraudster
|
|
|
7
7
|
export interface ListFraudsterRegistrationJobsCommandOutput extends ListFraudsterRegistrationJobsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists all the fraudster registration jobs in the domain with the given
|
|
11
|
-
*
|
|
12
|
-
* domain.
|
|
13
|
-
* </p>
|
|
10
|
+
* <p>Lists all the fraudster registration jobs in the domain with the given
|
|
11
|
+
* <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
|
|
12
|
+
* fraudster registration jobs in the given domain. </p>
|
|
14
13
|
* @example
|
|
15
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
15
|
* ```javascript
|
|
@@ -7,9 +7,9 @@ export interface ListSpeakerEnrollmentJobsCommandInput extends ListSpeakerEnroll
|
|
|
7
7
|
export interface ListSpeakerEnrollmentJobsCommandOutput extends ListSpeakerEnrollmentJobsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists all the speaker enrollment jobs in the domain with the specified
|
|
11
|
-
*
|
|
12
|
-
* statuses.</p>
|
|
10
|
+
* <p>Lists all the speaker enrollment jobs in the domain with the specified
|
|
11
|
+
* <code>JobStatus</code>. If <code>JobStatus</code> is not provided, this lists all
|
|
12
|
+
* jobs with all possible speaker enrollment job statuses.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -7,11 +7,12 @@ export interface OptOutSpeakerCommandInput extends OptOutSpeakerRequest {
|
|
|
7
7
|
export interface OptOutSpeakerCommandOutput extends OptOutSpeakerResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or
|
|
11
|
-
* already exist in Voice ID. If they don't yet exist, a new speaker is created
|
|
12
|
-
* If they already exist, their existing status is overridden and
|
|
13
|
-
*
|
|
14
|
-
* no voice embeddings stored in
|
|
10
|
+
* <p>Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or
|
|
11
|
+
* not they already exist in Voice ID. If they don't yet exist, a new speaker is created
|
|
12
|
+
* in an opted out state. If they already exist, their existing status is overridden and
|
|
13
|
+
* they are opted out. Enrollment and evaluation authentication requests are rejected for
|
|
14
|
+
* opted out speakers, and opted out speakers have no voice embeddings stored in
|
|
15
|
+
* Voice ID.</p>
|
|
15
16
|
* @example
|
|
16
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
17
18
|
* ```javascript
|
|
@@ -7,8 +7,9 @@ export interface UpdateDomainCommandInput extends UpdateDomainRequest {
|
|
|
7
7
|
export interface UpdateDomainCommandOutput extends UpdateDomainResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Updates the specified domain. This API has clobber behavior, and clears and replaces
|
|
11
|
-
* If an optional field, such as 'Description' is not provided, it is
|
|
10
|
+
* <p>Updates the specified domain. This API has clobber behavior, and clears and replaces
|
|
11
|
+
* all attributes. If an optional field, such as 'Description' is not provided, it is
|
|
12
|
+
* removed from the domain.</p>
|
|
12
13
|
* @example
|
|
13
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
15
|
* ```javascript
|