@aws-sdk/client-bedrock-agent 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/ListAgentActionGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentKnowledgeBasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAgentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListIngestionJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +2 -24
- package/dist-es/pagination/ListAgentActionGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListAgentAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListAgentKnowledgeBasesPaginator.js +2 -23
- package/dist-es/pagination/ListAgentVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListAgentsPaginator.js +2 -23
- package/dist-es/pagination/ListDataSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListIngestionJobsPaginator.js +2 -23
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +2 -23
- package/dist-types/pagination/ListAgentActionGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentKnowledgeBasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAgentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAgentActionGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentKnowledgeBasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAgentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAgentActionGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListAgentActionGroupsCommand_1 = require("../commands/ListAgentActionGroupsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAgentActionGroupsCommand_1.ListAgentActionGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAgentActionGroups(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListAgentActionGroups = paginateListAgentActionGroups;
|
|
7
|
+
exports.paginateListAgentActionGroups = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentActionGroupsCommand_1.ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAgentAliases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListAgentAliasesCommand_1 = require("../commands/ListAgentAliasesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAgentAliasesCommand_1.ListAgentAliasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAgentAliases(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListAgentAliases = paginateListAgentAliases;
|
|
7
|
+
exports.paginateListAgentAliases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentAliasesCommand_1.ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAgentKnowledgeBases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListAgentKnowledgeBasesCommand_1 = require("../commands/ListAgentKnowledgeBasesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAgentKnowledgeBasesCommand_1.ListAgentKnowledgeBasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAgentKnowledgeBases(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListAgentKnowledgeBases = paginateListAgentKnowledgeBases;
|
|
7
|
+
exports.paginateListAgentKnowledgeBases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentKnowledgeBasesCommand_1.ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAgentVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListAgentVersionsCommand_1 = require("../commands/ListAgentVersionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAgentVersionsCommand_1.ListAgentVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAgentVersions(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListAgentVersions = paginateListAgentVersions;
|
|
7
|
+
exports.paginateListAgentVersions = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentVersionsCommand_1.ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAgents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListAgentsCommand_1 = require("../commands/ListAgentsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAgentsCommand_1.ListAgentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAgents(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListAgents = paginateListAgents;
|
|
7
|
+
exports.paginateListAgents = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListAgentsCommand_1.ListAgentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataSources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListDataSourcesCommand_1 = require("../commands/ListDataSourcesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataSourcesCommand_1.ListDataSourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataSources(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListDataSources = paginateListDataSources;
|
|
7
|
+
exports.paginateListDataSources = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListDataSourcesCommand_1.ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIngestionJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListIngestionJobsCommand_1 = require("../commands/ListIngestionJobsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListIngestionJobsCommand_1.ListIngestionJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListIngestionJobs(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListIngestionJobs = paginateListIngestionJobs;
|
|
7
|
+
exports.paginateListIngestionJobs = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListIngestionJobsCommand_1.ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListKnowledgeBases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BedrockAgentClient_1 = require("../BedrockAgentClient");
|
|
5
6
|
const ListKnowledgeBasesCommand_1 = require("../commands/ListKnowledgeBasesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListKnowledgeBases(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 BedrockAgentClient_1.BedrockAgentClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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.paginateListKnowledgeBases = paginateListKnowledgeBases;
|
|
7
|
+
exports.paginateListKnowledgeBases = (0, core_1.createPaginator)(BedrockAgentClient_1.BedrockAgentClient, ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListAgentActionGroupsCommand, } from "../commands/ListAgentActionGroupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentActionGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgentActionGroups(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListAgentActionGroups = createPaginator(BedrockAgentClient, ListAgentActionGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListAgentAliasesCommand, } from "../commands/ListAgentAliasesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentAliasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgentAliases(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListAgentAliases = createPaginator(BedrockAgentClient, ListAgentAliasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListAgentKnowledgeBasesCommand, } from "../commands/ListAgentKnowledgeBasesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentKnowledgeBasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgentKnowledgeBases(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListAgentKnowledgeBases = createPaginator(BedrockAgentClient, ListAgentKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListAgentVersionsCommand, } from "../commands/ListAgentVersionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgentVersions(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListAgentVersions = createPaginator(BedrockAgentClient, ListAgentVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListAgentsCommand } from "../commands/ListAgentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAgentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAgents(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListAgents = createPaginator(BedrockAgentClient, ListAgentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListDataSourcesCommand, } from "../commands/ListDataSourcesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataSources(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListDataSources = createPaginator(BedrockAgentClient, ListDataSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListIngestionJobsCommand, } from "../commands/ListIngestionJobsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIngestionJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIngestionJobs(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListIngestionJobs = createPaginator(BedrockAgentClient, ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockAgentClient } from "../BedrockAgentClient";
|
|
2
3
|
import { ListKnowledgeBasesCommand, } from "../commands/ListKnowledgeBasesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListKnowledgeBasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListKnowledgeBases(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 BedrockAgentClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected BedrockAgent | BedrockAgentClient");
|
|
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 paginateListKnowledgeBases = createPaginator(BedrockAgentClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentActionGroups: (config: BedrockAgentPaginationConfiguration, input: ListAgentActionGroupsCommandInput, ...rest: any[]) => Paginator<ListAgentActionGroupsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentAliases: (config: BedrockAgentPaginationConfiguration, input: ListAgentAliasesCommandInput, ...rest: any[]) => Paginator<ListAgentAliasesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentKnowledgeBases: (config: BedrockAgentPaginationConfiguration, input: ListAgentKnowledgeBasesCommandInput, ...rest: any[]) => Paginator<ListAgentKnowledgeBasesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentVersions: (config: BedrockAgentPaginationConfiguration, input: ListAgentVersionsCommandInput, ...rest: any[]) => Paginator<ListAgentVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgents: (config: BedrockAgentPaginationConfiguration, input: ListAgentsCommandInput, ...rest: any[]) => Paginator<ListAgentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSources: (config: BedrockAgentPaginationConfiguration, input: ListDataSourcesCommandInput, ...rest: any[]) => Paginator<ListDataSourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIngestionJobs: (config: BedrockAgentPaginationConfiguration, input: ListIngestionJobsCommandInput, ...rest: any[]) => Paginator<ListIngestionJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListKnowledgeBases: (config: BedrockAgentPaginationConfiguration, input: ListKnowledgeBasesCommandInput, ...rest: any[]) => Paginator<ListKnowledgeBasesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAgentActionGroupsCommandOutput,
|
|
5
5
|
} from "../commands/ListAgentActionGroupsCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentActionGroups: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListAgentActionGroupsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAgentActionGroupsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAgentAliasesCommandOutput,
|
|
5
5
|
} from "../commands/ListAgentAliasesCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentAliases: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListAgentAliasesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAgentAliasesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAgentKnowledgeBasesCommandOutput,
|
|
5
5
|
} from "../commands/ListAgentKnowledgeBasesCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentKnowledgeBases: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListAgentKnowledgeBasesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAgentKnowledgeBasesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAgentVersionsCommandOutput,
|
|
5
5
|
} from "../commands/ListAgentVersionsCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgentVersions: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListAgentVersionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAgentVersionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAgentsCommandOutput,
|
|
5
5
|
} from "../commands/ListAgentsCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAgents: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListAgentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAgentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDataSourcesCommandOutput,
|
|
5
5
|
} from "../commands/ListDataSourcesCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDataSources: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListDataSourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDataSourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListIngestionJobsCommandOutput,
|
|
5
5
|
} from "../commands/ListIngestionJobsCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListIngestionJobs: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListIngestionJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListIngestionJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListKnowledgeBasesCommandOutput,
|
|
5
5
|
} from "../commands/ListKnowledgeBasesCommand";
|
|
6
6
|
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListKnowledgeBases: (
|
|
8
8
|
config: BedrockAgentPaginationConfiguration,
|
|
9
9
|
input: ListKnowledgeBasesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListKnowledgeBasesCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent 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,17 +20,17 @@
|
|
|
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",
|