@aws-sdk/client-voice-id 3.477.0 → 3.478.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/dist-cjs/pagination/ListDomainsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFraudsterRegistrationJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFraudstersPaginator.js +2 -24
- package/dist-cjs/pagination/ListSpeakerEnrollmentJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSpeakersPaginator.js +2 -24
- package/dist-cjs/pagination/ListWatchlistsPaginator.js +2 -24
- package/dist-es/pagination/ListDomainsPaginator.js +2 -23
- package/dist-es/pagination/ListFraudsterRegistrationJobsPaginator.js +2 -23
- package/dist-es/pagination/ListFraudstersPaginator.js +2 -23
- package/dist-es/pagination/ListSpeakerEnrollmentJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSpeakersPaginator.js +2 -23
- package/dist-es/pagination/ListWatchlistsPaginator.js +2 -23
- package/dist-types/pagination/ListDomainsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFraudsterRegistrationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFraudstersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSpeakerEnrollmentJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSpeakersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWatchlistsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFraudsterRegistrationJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFraudstersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSpeakerEnrollmentJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSpeakersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWatchlistsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDomains = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDomainsCommand_1 = require("../commands/ListDomainsCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDomainsCommand_1.ListDomainsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDomains(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.paginateListDomains = paginateListDomains;
|
|
7
|
+
exports.paginateListDomains = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListDomainsCommand_1.ListDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFraudsterRegistrationJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFraudsterRegistrationJobsCommand_1 = require("../commands/ListFraudsterRegistrationJobsCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFraudsterRegistrationJobsCommand_1.ListFraudsterRegistrationJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFraudsterRegistrationJobs(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.paginateListFraudsterRegistrationJobs = paginateListFraudsterRegistrationJobs;
|
|
7
|
+
exports.paginateListFraudsterRegistrationJobs = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListFraudsterRegistrationJobsCommand_1.ListFraudsterRegistrationJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFraudsters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFraudstersCommand_1 = require("../commands/ListFraudstersCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
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;
|
|
7
|
+
exports.paginateListFraudsters = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListFraudstersCommand_1.ListFraudstersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSpeakerEnrollmentJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSpeakerEnrollmentJobsCommand_1 = require("../commands/ListSpeakerEnrollmentJobsCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSpeakerEnrollmentJobsCommand_1.ListSpeakerEnrollmentJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSpeakerEnrollmentJobs(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.paginateListSpeakerEnrollmentJobs = paginateListSpeakerEnrollmentJobs;
|
|
7
|
+
exports.paginateListSpeakerEnrollmentJobs = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListSpeakerEnrollmentJobsCommand_1.ListSpeakerEnrollmentJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSpeakers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSpeakersCommand_1 = require("../commands/ListSpeakersCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSpeakersCommand_1.ListSpeakersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSpeakers(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.paginateListSpeakers = paginateListSpeakers;
|
|
7
|
+
exports.paginateListSpeakers = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListSpeakersCommand_1.ListSpeakersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWatchlists = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWatchlistsCommand_1 = require("../commands/ListWatchlistsCommand");
|
|
5
6
|
const VoiceIDClient_1 = require("../VoiceIDClient");
|
|
6
|
-
|
|
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;
|
|
7
|
+
exports.paginateListWatchlists = (0, core_1.createPaginator)(VoiceIDClient_1.VoiceIDClient, ListWatchlistsCommand_1.ListWatchlistsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainsCommand } from "../commands/ListDomainsCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomains(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
|
-
}
|
|
4
|
+
export const paginateListDomains = createPaginator(VoiceIDClient, ListDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFraudsterRegistrationJobsCommand, } from "../commands/ListFraudsterRegistrationJobsCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFraudsterRegistrationJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFraudsterRegistrationJobs(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
|
-
}
|
|
4
|
+
export const paginateListFraudsterRegistrationJobs = createPaginator(VoiceIDClient, ListFraudsterRegistrationJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFraudstersCommand, } from "../commands/ListFraudstersCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListFraudsters = createPaginator(VoiceIDClient, ListFraudstersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSpeakerEnrollmentJobsCommand, } from "../commands/ListSpeakerEnrollmentJobsCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSpeakerEnrollmentJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSpeakerEnrollmentJobs(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
|
-
}
|
|
4
|
+
export const paginateListSpeakerEnrollmentJobs = createPaginator(VoiceIDClient, ListSpeakerEnrollmentJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSpeakersCommand, } from "../commands/ListSpeakersCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSpeakersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSpeakers(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
|
-
}
|
|
4
|
+
export const paginateListSpeakers = createPaginator(VoiceIDClient, ListSpeakersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWatchlistsCommand, } from "../commands/ListWatchlistsCommand";
|
|
2
3
|
import { VoiceIDClient } from "../VoiceIDClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListWatchlists = createPaginator(VoiceIDClient, ListWatchlistsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDomains: (config: VoiceIDPaginationConfiguration, input: ListDomainsCommandInput, ...rest: any[]) => Paginator<ListDomainsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFraudsterRegistrationJobs: (config: VoiceIDPaginationConfiguration, input: ListFraudsterRegistrationJobsCommandInput, ...rest: any[]) => Paginator<ListFraudsterRegistrationJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFraudsters: (config: VoiceIDPaginationConfiguration, input: ListFraudstersCommandInput, ...rest: any[]) => Paginator<ListFraudstersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSpeakerEnrollmentJobs: (config: VoiceIDPaginationConfiguration, input: ListSpeakerEnrollmentJobsCommandInput, ...rest: any[]) => Paginator<ListSpeakerEnrollmentJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSpeakers: (config: VoiceIDPaginationConfiguration, input: ListSpeakersCommandInput, ...rest: any[]) => Paginator<ListSpeakersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWatchlists: (config: VoiceIDPaginationConfiguration, input: ListWatchlistsCommandInput, ...rest: any[]) => Paginator<ListWatchlistsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDomainsCommandOutput,
|
|
5
5
|
} from "../commands/ListDomainsCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDomains: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListDomainsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDomainsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListFraudsterRegistrationJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListFraudsterRegistrationJobsCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFraudsterRegistrationJobs: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListFraudsterRegistrationJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListFraudsterRegistrationJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListFraudstersCommandOutput,
|
|
5
5
|
} from "../commands/ListFraudstersCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFraudsters: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListFraudstersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListFraudstersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListSpeakerEnrollmentJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListSpeakerEnrollmentJobsCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSpeakerEnrollmentJobs: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListSpeakerEnrollmentJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListSpeakerEnrollmentJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListSpeakersCommandOutput,
|
|
5
5
|
} from "../commands/ListSpeakersCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSpeakers: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListSpeakersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListSpeakersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListWatchlistsCommandOutput,
|
|
5
5
|
} from "../commands/ListWatchlistsCommand";
|
|
6
6
|
import { VoiceIDPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWatchlists: (
|
|
8
8
|
config: VoiceIDPaginationConfiguration,
|
|
9
9
|
input: ListWatchlistsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListWatchlistsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-voice-id",
|
|
3
3
|
"description": "AWS SDK for JavaScript Voice Id Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|