@aws-sdk/client-wisdom 3.476.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.
Files changed (43) hide show
  1. package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAssistantsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListContentsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListImportJobsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListQuickResponsesPaginator.js +2 -24
  7. package/dist-cjs/pagination/QueryAssistantPaginator.js +2 -24
  8. package/dist-cjs/pagination/SearchContentPaginator.js +2 -24
  9. package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +2 -24
  10. package/dist-cjs/pagination/SearchSessionsPaginator.js +2 -24
  11. package/dist-cjs/protocols/Aws_restJson1.js +242 -559
  12. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +2 -23
  13. package/dist-es/pagination/ListAssistantsPaginator.js +2 -23
  14. package/dist-es/pagination/ListContentsPaginator.js +2 -23
  15. package/dist-es/pagination/ListImportJobsPaginator.js +2 -23
  16. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +2 -23
  17. package/dist-es/pagination/ListQuickResponsesPaginator.js +2 -23
  18. package/dist-es/pagination/QueryAssistantPaginator.js +2 -23
  19. package/dist-es/pagination/SearchContentPaginator.js +2 -23
  20. package/dist-es/pagination/SearchQuickResponsesPaginator.js +2 -23
  21. package/dist-es/pagination/SearchSessionsPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +243 -560
  23. package/dist-types/pagination/ListAssistantAssociationsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAssistantsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListContentsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListImportJobsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/QueryAssistantPaginator.d.ts +1 -1
  30. package/dist-types/pagination/SearchContentPaginator.d.ts +1 -1
  31. package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +1 -1
  32. package/dist-types/pagination/SearchSessionsPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/ListAssistantAssociationsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListAssistantsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListContentsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/QueryAssistantPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/SearchContentPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/SearchSessionsPaginator.d.ts +3 -3
  43. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssistantAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssistantAssociationsCommand_1 = require("../commands/ListAssistantAssociationsCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssistantAssociationsCommand_1.ListAssistantAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListAssistantAssociations(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateListAssistantAssociations = paginateListAssistantAssociations;
7
+ exports.paginateListAssistantAssociations = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, ListAssistantAssociationsCommand_1.ListAssistantAssociationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssistants = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssistantsCommand_1 = require("../commands/ListAssistantsCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssistantsCommand_1.ListAssistantsCommand(input), ...args);
8
- };
9
- async function* paginateListAssistants(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateListAssistants = paginateListAssistants;
7
+ exports.paginateListAssistants = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, ListAssistantsCommand_1.ListAssistantsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListContents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListContentsCommand_1 = require("../commands/ListContentsCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListContentsCommand_1.ListContentsCommand(input), ...args);
8
- };
9
- async function* paginateListContents(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateListContents = paginateListContents;
7
+ exports.paginateListContents = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, ListContentsCommand_1.ListContentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImportJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListImportJobsCommand_1 = require("../commands/ListImportJobsCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListImportJobsCommand_1.ListImportJobsCommand(input), ...args);
8
- };
9
- async function* paginateListImportJobs(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateListImportJobs = paginateListImportJobs;
7
+ exports.paginateListImportJobs = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, ListImportJobsCommand_1.ListImportJobsCommand, "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 ListKnowledgeBasesCommand_1 = require("../commands/ListKnowledgeBasesCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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)(WisdomClient_1.WisdomClient, ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListQuickResponses = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListQuickResponsesCommand_1 = require("../commands/ListQuickResponsesCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListQuickResponsesCommand_1.ListQuickResponsesCommand(input), ...args);
8
- };
9
- async function* paginateListQuickResponses(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateListQuickResponses = paginateListQuickResponses;
7
+ exports.paginateListQuickResponses = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, ListQuickResponsesCommand_1.ListQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateQueryAssistant = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const QueryAssistantCommand_1 = require("../commands/QueryAssistantCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new QueryAssistantCommand_1.QueryAssistantCommand(input), ...args);
8
- };
9
- async function* paginateQueryAssistant(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateQueryAssistant = paginateQueryAssistant;
7
+ exports.paginateQueryAssistant = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, QueryAssistantCommand_1.QueryAssistantCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchContent = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchContentCommand_1 = require("../commands/SearchContentCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchContentCommand_1.SearchContentCommand(input), ...args);
8
- };
9
- async function* paginateSearchContent(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateSearchContent = paginateSearchContent;
7
+ exports.paginateSearchContent = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, SearchContentCommand_1.SearchContentCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchQuickResponses = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchQuickResponsesCommand_1 = require("../commands/SearchQuickResponsesCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchQuickResponsesCommand_1.SearchQuickResponsesCommand(input), ...args);
8
- };
9
- async function* paginateSearchQuickResponses(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateSearchQuickResponses = paginateSearchQuickResponses;
7
+ exports.paginateSearchQuickResponses = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, SearchQuickResponsesCommand_1.SearchQuickResponsesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateSearchSessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const SearchSessionsCommand_1 = require("../commands/SearchSessionsCommand");
5
6
  const WisdomClient_1 = require("../WisdomClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new SearchSessionsCommand_1.SearchSessionsCommand(input), ...args);
8
- };
9
- async function* paginateSearchSessions(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 WisdomClient_1.WisdomClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Wisdom | WisdomClient");
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.paginateSearchSessions = paginateSearchSessions;
7
+ exports.paginateSearchSessions = (0, core_1.createPaginator)(WisdomClient_1.WisdomClient, SearchSessionsCommand_1.SearchSessionsCommand, "nextToken", "nextToken", "maxResults");