@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.
- package/README.md +73 -9
- package/dist-cjs/VoiceID.js +120 -0
- package/dist-cjs/commands/AssociateFraudsterCommand.js +46 -0
- package/dist-cjs/commands/CreateWatchlistCommand.js +46 -0
- package/dist-cjs/commands/DeleteWatchlistCommand.js +45 -0
- package/dist-cjs/commands/DescribeWatchlistCommand.js +46 -0
- package/dist-cjs/commands/DisassociateFraudsterCommand.js +46 -0
- package/dist-cjs/commands/ListFraudstersCommand.js +45 -0
- package/dist-cjs/commands/ListWatchlistsCommand.js +46 -0
- package/dist-cjs/commands/UpdateWatchlistCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +83 -24
- package/dist-cjs/pagination/ListFraudstersPaginator.js +29 -0
- package/dist-cjs/pagination/ListWatchlistsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_0.js +722 -29
- package/dist-es/VoiceID.js +120 -0
- package/dist-es/commands/AssociateFraudsterCommand.js +42 -0
- package/dist-es/commands/CreateWatchlistCommand.js +42 -0
- package/dist-es/commands/DeleteWatchlistCommand.js +41 -0
- package/dist-es/commands/DescribeWatchlistCommand.js +42 -0
- package/dist-es/commands/DisassociateFraudsterCommand.js +42 -0
- package/dist-es/commands/ListFraudstersCommand.js +41 -0
- package/dist-es/commands/ListWatchlistsCommand.js +42 -0
- package/dist-es/commands/UpdateWatchlistCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +71 -22
- package/dist-es/pagination/ListFraudstersPaginator.js +25 -0
- package/dist-es/pagination/ListWatchlistsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +707 -31
- package/dist-types/VoiceID.d.ts +74 -4
- package/dist-types/VoiceIDClient.d.ts +12 -4
- package/dist-types/commands/AssociateFraudsterCommand.d.ts +93 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +15 -1
- package/dist-types/commands/CreateWatchlistCommand.d.ts +94 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +3 -0
- package/dist-types/commands/DeleteFraudsterCommand.d.ts +5 -1
- package/dist-types/commands/DeleteSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/DeleteWatchlistCommand.d.ts +91 -0
- package/dist-types/commands/DescribeDomainCommand.d.ts +3 -0
- package/dist-types/commands/DescribeFraudsterCommand.d.ts +4 -0
- package/dist-types/commands/DescribeFraudsterRegistrationJobCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/DescribeSpeakerEnrollmentJobCommand.d.ts +4 -0
- package/dist-types/commands/DescribeWatchlistCommand.d.ts +85 -0
- package/dist-types/commands/DisassociateFraudsterCommand.d.ts +93 -0
- package/dist-types/commands/EvaluateSessionCommand.d.ts +4 -0
- package/dist-types/commands/ListDomainsCommand.d.ts +4 -0
- package/dist-types/commands/ListFraudsterRegistrationJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListFraudstersCommand.d.ts +87 -0
- package/dist-types/commands/ListSpeakerEnrollmentJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListSpeakersCommand.d.ts +5 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListWatchlistsCommand.d.ts +86 -0
- package/dist-types/commands/OptOutSpeakerCommand.d.ts +4 -0
- package/dist-types/commands/StartFraudsterRegistrationJobCommand.d.ts +20 -0
- package/dist-types/commands/StartSpeakerEnrollmentJobCommand.d.ts +23 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateDomainCommand.d.ts +8 -0
- package/dist-types/commands/UpdateWatchlistCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +621 -214
- package/dist-types/pagination/ListFraudstersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWatchlistsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +24 -0
- package/dist-types/ts3.4/VoiceID.d.ts +136 -0
- package/dist-types/ts3.4/VoiceIDClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/AssociateFraudsterCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateWatchlistCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteWatchlistCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DescribeWatchlistCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateFraudsterCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFraudstersCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListWatchlistsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateWatchlistCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +197 -69
- package/dist-types/ts3.4/pagination/ListFraudstersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWatchlistsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
- package/package.json +8 -8
|
@@ -13,24 +13,16 @@ export class AccessDeniedException extends __BaseException {
|
|
|
13
13
|
this.Message = opts.Message;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export var AuthenticationDecision;
|
|
17
|
-
(function (AuthenticationDecision) {
|
|
18
|
-
AuthenticationDecision["ACCEPT"] = "ACCEPT";
|
|
19
|
-
AuthenticationDecision["NOT_ENOUGH_SPEECH"] = "NOT_ENOUGH_SPEECH";
|
|
20
|
-
AuthenticationDecision["REJECT"] = "REJECT";
|
|
21
|
-
AuthenticationDecision["SPEAKER_EXPIRED"] = "SPEAKER_EXPIRED";
|
|
22
|
-
AuthenticationDecision["SPEAKER_ID_NOT_PROVIDED"] = "SPEAKER_ID_NOT_PROVIDED";
|
|
23
|
-
AuthenticationDecision["SPEAKER_NOT_ENROLLED"] = "SPEAKER_NOT_ENROLLED";
|
|
24
|
-
AuthenticationDecision["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
|
|
25
|
-
})(AuthenticationDecision || (AuthenticationDecision = {}));
|
|
26
16
|
export var ConflictType;
|
|
27
17
|
(function (ConflictType) {
|
|
28
18
|
ConflictType["ANOTHER_ACTIVE_STREAM"] = "ANOTHER_ACTIVE_STREAM";
|
|
29
19
|
ConflictType["CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT"] = "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT";
|
|
20
|
+
ConflictType["CANNOT_DELETE_NON_EMPTY_WATCHLIST"] = "CANNOT_DELETE_NON_EMPTY_WATCHLIST";
|
|
30
21
|
ConflictType["CONCURRENT_CHANGES"] = "CONCURRENT_CHANGES";
|
|
31
22
|
ConflictType["DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES"] = "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES";
|
|
32
23
|
ConflictType["DOMAIN_NOT_ACTIVE"] = "DOMAIN_NOT_ACTIVE";
|
|
33
24
|
ConflictType["ENROLLMENT_ALREADY_EXISTS"] = "ENROLLMENT_ALREADY_EXISTS";
|
|
25
|
+
ConflictType["FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST"] = "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST";
|
|
34
26
|
ConflictType["SPEAKER_NOT_SET"] = "SPEAKER_NOT_SET";
|
|
35
27
|
ConflictType["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
|
|
36
28
|
})(ConflictType || (ConflictType = {}));
|
|
@@ -48,18 +40,6 @@ export class ConflictException extends __BaseException {
|
|
|
48
40
|
this.ConflictType = opts.ConflictType;
|
|
49
41
|
}
|
|
50
42
|
}
|
|
51
|
-
export var DomainStatus;
|
|
52
|
-
(function (DomainStatus) {
|
|
53
|
-
DomainStatus["ACTIVE"] = "ACTIVE";
|
|
54
|
-
DomainStatus["PENDING"] = "PENDING";
|
|
55
|
-
DomainStatus["SUSPENDED"] = "SUSPENDED";
|
|
56
|
-
})(DomainStatus || (DomainStatus = {}));
|
|
57
|
-
export var ServerSideEncryptionUpdateStatus;
|
|
58
|
-
(function (ServerSideEncryptionUpdateStatus) {
|
|
59
|
-
ServerSideEncryptionUpdateStatus["COMPLETED"] = "COMPLETED";
|
|
60
|
-
ServerSideEncryptionUpdateStatus["FAILED"] = "FAILED";
|
|
61
|
-
ServerSideEncryptionUpdateStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
62
|
-
})(ServerSideEncryptionUpdateStatus || (ServerSideEncryptionUpdateStatus = {}));
|
|
63
43
|
export class InternalServerException extends __BaseException {
|
|
64
44
|
constructor(opts) {
|
|
65
45
|
super({
|
|
@@ -81,6 +61,7 @@ export var ResourceType;
|
|
|
81
61
|
ResourceType["FRAUDSTER"] = "FRAUDSTER";
|
|
82
62
|
ResourceType["SESSION"] = "SESSION";
|
|
83
63
|
ResourceType["SPEAKER"] = "SPEAKER";
|
|
64
|
+
ResourceType["WATCHLIST"] = "WATCHLIST";
|
|
84
65
|
})(ResourceType || (ResourceType = {}));
|
|
85
66
|
export class ResourceNotFoundException extends __BaseException {
|
|
86
67
|
constructor(opts) {
|
|
@@ -135,6 +116,28 @@ export class ValidationException extends __BaseException {
|
|
|
135
116
|
this.Message = opts.Message;
|
|
136
117
|
}
|
|
137
118
|
}
|
|
119
|
+
export var AuthenticationDecision;
|
|
120
|
+
(function (AuthenticationDecision) {
|
|
121
|
+
AuthenticationDecision["ACCEPT"] = "ACCEPT";
|
|
122
|
+
AuthenticationDecision["NOT_ENOUGH_SPEECH"] = "NOT_ENOUGH_SPEECH";
|
|
123
|
+
AuthenticationDecision["REJECT"] = "REJECT";
|
|
124
|
+
AuthenticationDecision["SPEAKER_EXPIRED"] = "SPEAKER_EXPIRED";
|
|
125
|
+
AuthenticationDecision["SPEAKER_ID_NOT_PROVIDED"] = "SPEAKER_ID_NOT_PROVIDED";
|
|
126
|
+
AuthenticationDecision["SPEAKER_NOT_ENROLLED"] = "SPEAKER_NOT_ENROLLED";
|
|
127
|
+
AuthenticationDecision["SPEAKER_OPTED_OUT"] = "SPEAKER_OPTED_OUT";
|
|
128
|
+
})(AuthenticationDecision || (AuthenticationDecision = {}));
|
|
129
|
+
export var DomainStatus;
|
|
130
|
+
(function (DomainStatus) {
|
|
131
|
+
DomainStatus["ACTIVE"] = "ACTIVE";
|
|
132
|
+
DomainStatus["PENDING"] = "PENDING";
|
|
133
|
+
DomainStatus["SUSPENDED"] = "SUSPENDED";
|
|
134
|
+
})(DomainStatus || (DomainStatus = {}));
|
|
135
|
+
export var ServerSideEncryptionUpdateStatus;
|
|
136
|
+
(function (ServerSideEncryptionUpdateStatus) {
|
|
137
|
+
ServerSideEncryptionUpdateStatus["COMPLETED"] = "COMPLETED";
|
|
138
|
+
ServerSideEncryptionUpdateStatus["FAILED"] = "FAILED";
|
|
139
|
+
ServerSideEncryptionUpdateStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
140
|
+
})(ServerSideEncryptionUpdateStatus || (ServerSideEncryptionUpdateStatus = {}));
|
|
138
141
|
export var FraudsterRegistrationJobStatus;
|
|
139
142
|
(function (FraudsterRegistrationJobStatus) {
|
|
140
143
|
FraudsterRegistrationJobStatus["COMPLETED"] = "COMPLETED";
|
|
@@ -190,6 +193,10 @@ export var StreamingStatus;
|
|
|
190
193
|
StreamingStatus["ONGOING"] = "ONGOING";
|
|
191
194
|
StreamingStatus["PENDING_CONFIGURATION"] = "PENDING_CONFIGURATION";
|
|
192
195
|
})(StreamingStatus || (StreamingStatus = {}));
|
|
196
|
+
export const AssociateFraudsterRequestFilterSensitiveLog = (obj) => ({
|
|
197
|
+
...obj,
|
|
198
|
+
...(obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }),
|
|
199
|
+
});
|
|
193
200
|
export const AuthenticationResultFilterSensitiveLog = (obj) => ({
|
|
194
201
|
...obj,
|
|
195
202
|
...(obj.CustomerSpeakerId && { CustomerSpeakerId: SENSITIVE_STRING }),
|
|
@@ -214,6 +221,20 @@ export const CreateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
|
214
221
|
...obj,
|
|
215
222
|
...(obj.Domain && { Domain: DomainFilterSensitiveLog(obj.Domain) }),
|
|
216
223
|
});
|
|
224
|
+
export const CreateWatchlistRequestFilterSensitiveLog = (obj) => ({
|
|
225
|
+
...obj,
|
|
226
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
227
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
228
|
+
});
|
|
229
|
+
export const WatchlistFilterSensitiveLog = (obj) => ({
|
|
230
|
+
...obj,
|
|
231
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
232
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
233
|
+
});
|
|
234
|
+
export const CreateWatchlistResponseFilterSensitiveLog = (obj) => ({
|
|
235
|
+
...obj,
|
|
236
|
+
...(obj.Watchlist && { Watchlist: WatchlistFilterSensitiveLog(obj.Watchlist) }),
|
|
237
|
+
});
|
|
217
238
|
export const DeleteFraudsterRequestFilterSensitiveLog = (obj) => ({
|
|
218
239
|
...obj,
|
|
219
240
|
...(obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }),
|
|
@@ -258,6 +279,14 @@ export const DescribeSpeakerEnrollmentJobResponseFilterSensitiveLog = (obj) => (
|
|
|
258
279
|
...obj,
|
|
259
280
|
...(obj.Job && { Job: SpeakerEnrollmentJobFilterSensitiveLog(obj.Job) }),
|
|
260
281
|
});
|
|
282
|
+
export const DescribeWatchlistResponseFilterSensitiveLog = (obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
...(obj.Watchlist && { Watchlist: WatchlistFilterSensitiveLog(obj.Watchlist) }),
|
|
285
|
+
});
|
|
286
|
+
export const DisassociateFraudsterRequestFilterSensitiveLog = (obj) => ({
|
|
287
|
+
...obj,
|
|
288
|
+
...(obj.FraudsterId && { FraudsterId: SENSITIVE_STRING }),
|
|
289
|
+
});
|
|
261
290
|
export const DomainSummaryFilterSensitiveLog = (obj) => ({
|
|
262
291
|
...obj,
|
|
263
292
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
@@ -318,6 +347,17 @@ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
|
318
347
|
...obj,
|
|
319
348
|
...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
|
|
320
349
|
});
|
|
350
|
+
export const WatchlistSummaryFilterSensitiveLog = (obj) => ({
|
|
351
|
+
...obj,
|
|
352
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
353
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
354
|
+
});
|
|
355
|
+
export const ListWatchlistsResponseFilterSensitiveLog = (obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...(obj.WatchlistSummaries && {
|
|
358
|
+
WatchlistSummaries: obj.WatchlistSummaries.map((item) => WatchlistSummaryFilterSensitiveLog(item)),
|
|
359
|
+
}),
|
|
360
|
+
});
|
|
321
361
|
export const OptOutSpeakerRequestFilterSensitiveLog = (obj) => ({
|
|
322
362
|
...obj,
|
|
323
363
|
...(obj.SpeakerId && { SpeakerId: SENSITIVE_STRING }),
|
|
@@ -350,3 +390,12 @@ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
|
350
390
|
...obj,
|
|
351
391
|
...(obj.TagKeys && { TagKeys: SENSITIVE_STRING }),
|
|
352
392
|
});
|
|
393
|
+
export const UpdateWatchlistRequestFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
396
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
397
|
+
});
|
|
398
|
+
export const UpdateWatchlistResponseFilterSensitiveLog = (obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
...(obj.Watchlist && { Watchlist: WatchlistFilterSensitiveLog(obj.Watchlist) }),
|
|
401
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListFraudstersCommand, } from "../commands/ListFraudstersCommand";
|
|
2
|
+
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListFraudstersCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListFraudsters(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VoiceIDClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWatchlistsCommand, } from "../commands/ListWatchlistsCommand";
|
|
2
|
+
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWatchlistsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWatchlists(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VoiceIDClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VoiceID | VoiceIDClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListDomainsPaginator";
|
|
3
3
|
export * from "./ListFraudsterRegistrationJobsPaginator";
|
|
4
|
+
export * from "./ListFraudstersPaginator";
|
|
4
5
|
export * from "./ListSpeakerEnrollmentJobsPaginator";
|
|
5
6
|
export * from "./ListSpeakersPaginator";
|
|
7
|
+
export * from "./ListWatchlistsPaginator";
|