@aws-sdk/client-wisdom 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +201 -0
- package/README.md +207 -0
- package/dist-cjs/Wisdom.js +480 -0
- package/dist-cjs/Wisdom.js.map +1 -0
- package/dist-cjs/WisdomClient.js +48 -0
- package/dist-cjs/WisdomClient.js.map +1 -0
- package/dist-cjs/commands/CreateAssistantAssociationCommand.js +63 -0
- package/dist-cjs/commands/CreateAssistantAssociationCommand.js.map +1 -0
- package/dist-cjs/commands/CreateAssistantCommand.js +61 -0
- package/dist-cjs/commands/CreateAssistantCommand.js.map +1 -0
- package/dist-cjs/commands/CreateContentCommand.js +62 -0
- package/dist-cjs/commands/CreateContentCommand.js.map +1 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +85 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js.map +1 -0
- package/dist-cjs/commands/CreateSessionCommand.js +63 -0
- package/dist-cjs/commands/CreateSessionCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +61 -0
- package/dist-cjs/commands/DeleteAssistantAssociationCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteAssistantCommand.js +61 -0
- package/dist-cjs/commands/DeleteAssistantCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteContentCommand.js +61 -0
- package/dist-cjs/commands/DeleteContentCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +68 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js.map +1 -0
- package/dist-cjs/commands/GetAssistantAssociationCommand.js +61 -0
- package/dist-cjs/commands/GetAssistantAssociationCommand.js.map +1 -0
- package/dist-cjs/commands/GetAssistantCommand.js +61 -0
- package/dist-cjs/commands/GetAssistantCommand.js.map +1 -0
- package/dist-cjs/commands/GetContentCommand.js +61 -0
- package/dist-cjs/commands/GetContentCommand.js.map +1 -0
- package/dist-cjs/commands/GetContentSummaryCommand.js +61 -0
- package/dist-cjs/commands/GetContentSummaryCommand.js.map +1 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js +61 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js.map +1 -0
- package/dist-cjs/commands/GetRecommendationsCommand.js +64 -0
- package/dist-cjs/commands/GetRecommendationsCommand.js.map +1 -0
- package/dist-cjs/commands/GetSessionCommand.js +61 -0
- package/dist-cjs/commands/GetSessionCommand.js.map +1 -0
- package/dist-cjs/commands/ListAssistantAssociationsCommand.js +61 -0
- package/dist-cjs/commands/ListAssistantAssociationsCommand.js.map +1 -0
- package/dist-cjs/commands/ListAssistantsCommand.js +61 -0
- package/dist-cjs/commands/ListAssistantsCommand.js.map +1 -0
- package/dist-cjs/commands/ListContentsCommand.js +61 -0
- package/dist-cjs/commands/ListContentsCommand.js.map +1 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js +61 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js.map +1 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +61 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +63 -0
- package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js.map +1 -0
- package/dist-cjs/commands/QueryAssistantCommand.js +63 -0
- package/dist-cjs/commands/QueryAssistantCommand.js.map +1 -0
- package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +61 -0
- package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js.map +1 -0
- package/dist-cjs/commands/SearchContentCommand.js +62 -0
- package/dist-cjs/commands/SearchContentCommand.js.map +1 -0
- package/dist-cjs/commands/SearchSessionsCommand.js +61 -0
- package/dist-cjs/commands/SearchSessionsCommand.js.map +1 -0
- package/dist-cjs/commands/StartContentUploadCommand.js +64 -0
- package/dist-cjs/commands/StartContentUploadCommand.js.map +1 -0
- package/dist-cjs/commands/TagResourceCommand.js +61 -0
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/dist-cjs/commands/UntagResourceCommand.js +61 -0
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/dist-cjs/commands/UpdateContentCommand.js +61 -0
- package/dist-cjs/commands/UpdateContentCommand.js.map +1 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +66 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js.map +1 -0
- package/dist-cjs/endpoints.js +57 -0
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +46 -0
- package/dist-cjs/index.js.map +1 -0
- package/dist-cjs/models/index.js +5 -0
- package/dist-cjs/models/index.js.map +1 -0
- package/dist-cjs/models/models_0.js +989 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/dist-cjs/pagination/Interfaces.js +3 -0
- package/dist-cjs/pagination/Interfaces.js.map +1 -0
- package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +46 -0
- package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js.map +1 -0
- package/dist-cjs/pagination/ListAssistantsPaginator.js +46 -0
- package/dist-cjs/pagination/ListAssistantsPaginator.js.map +1 -0
- package/dist-cjs/pagination/ListContentsPaginator.js +46 -0
- package/dist-cjs/pagination/ListContentsPaginator.js.map +1 -0
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +46 -0
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js.map +1 -0
- package/dist-cjs/pagination/QueryAssistantPaginator.js +46 -0
- package/dist-cjs/pagination/QueryAssistantPaginator.js.map +1 -0
- package/dist-cjs/pagination/SearchContentPaginator.js +46 -0
- package/dist-cjs/pagination/SearchContentPaginator.js.map +1 -0
- package/dist-cjs/pagination/SearchSessionsPaginator.js +46 -0
- package/dist-cjs/pagination/SearchSessionsPaginator.js.map +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3717 -0
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/dist-cjs/runtimeConfig.js +47 -0
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/dist-cjs/runtimeConfig.native.js +20 -0
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/dist-es/Wisdom.js +476 -0
- package/dist-es/Wisdom.js.map +1 -0
- package/dist-es/WisdomClient.js +38 -0
- package/dist-es/WisdomClient.js.map +1 -0
- package/dist-es/commands/CreateAssistantAssociationCommand.js +40 -0
- package/dist-es/commands/CreateAssistantAssociationCommand.js.map +1 -0
- package/dist-es/commands/CreateAssistantCommand.js +40 -0
- package/dist-es/commands/CreateAssistantCommand.js.map +1 -0
- package/dist-es/commands/CreateContentCommand.js +40 -0
- package/dist-es/commands/CreateContentCommand.js.map +1 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +40 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js.map +1 -0
- package/dist-es/commands/CreateSessionCommand.js +40 -0
- package/dist-es/commands/CreateSessionCommand.js.map +1 -0
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +40 -0
- package/dist-es/commands/DeleteAssistantAssociationCommand.js.map +1 -0
- package/dist-es/commands/DeleteAssistantCommand.js +40 -0
- package/dist-es/commands/DeleteAssistantCommand.js.map +1 -0
- package/dist-es/commands/DeleteContentCommand.js +40 -0
- package/dist-es/commands/DeleteContentCommand.js.map +1 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +40 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js.map +1 -0
- package/dist-es/commands/GetAssistantAssociationCommand.js +40 -0
- package/dist-es/commands/GetAssistantAssociationCommand.js.map +1 -0
- package/dist-es/commands/GetAssistantCommand.js +40 -0
- package/dist-es/commands/GetAssistantCommand.js.map +1 -0
- package/dist-es/commands/GetContentCommand.js +40 -0
- package/dist-es/commands/GetContentCommand.js.map +1 -0
- package/dist-es/commands/GetContentSummaryCommand.js +40 -0
- package/dist-es/commands/GetContentSummaryCommand.js.map +1 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +40 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js.map +1 -0
- package/dist-es/commands/GetRecommendationsCommand.js +40 -0
- package/dist-es/commands/GetRecommendationsCommand.js.map +1 -0
- package/dist-es/commands/GetSessionCommand.js +40 -0
- package/dist-es/commands/GetSessionCommand.js.map +1 -0
- package/dist-es/commands/ListAssistantAssociationsCommand.js +40 -0
- package/dist-es/commands/ListAssistantAssociationsCommand.js.map +1 -0
- package/dist-es/commands/ListAssistantsCommand.js +40 -0
- package/dist-es/commands/ListAssistantsCommand.js.map +1 -0
- package/dist-es/commands/ListContentsCommand.js +40 -0
- package/dist-es/commands/ListContentsCommand.js.map +1 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +40 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js.map +1 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +40 -0
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +40 -0
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js.map +1 -0
- package/dist-es/commands/QueryAssistantCommand.js +40 -0
- package/dist-es/commands/QueryAssistantCommand.js.map +1 -0
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +40 -0
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js.map +1 -0
- package/dist-es/commands/SearchContentCommand.js +40 -0
- package/dist-es/commands/SearchContentCommand.js.map +1 -0
- package/dist-es/commands/SearchSessionsCommand.js +40 -0
- package/dist-es/commands/SearchSessionsCommand.js.map +1 -0
- package/dist-es/commands/StartContentUploadCommand.js +40 -0
- package/dist-es/commands/StartContentUploadCommand.js.map +1 -0
- package/dist-es/commands/TagResourceCommand.js +40 -0
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/dist-es/commands/UntagResourceCommand.js +40 -0
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/dist-es/commands/UpdateContentCommand.js +40 -0
- package/dist-es/commands/UpdateContentCommand.js.map +1 -0
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +40 -0
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js.map +1 -0
- package/dist-es/endpoints.js +53 -0
- package/dist-es/endpoints.js.map +1 -0
- package/dist-es/index.js +43 -0
- package/dist-es/index.js.map +1 -0
- package/dist-es/models/index.js +2 -0
- package/dist-es/models/index.js.map +1 -0
- package/dist-es/models/models_0.js +495 -0
- package/dist-es/models/models_0.js.map +1 -0
- package/dist-es/pagination/Interfaces.js +2 -0
- package/dist-es/pagination/Interfaces.js.map +1 -0
- package/dist-es/pagination/ListAssistantAssociationsPaginator.js +75 -0
- package/dist-es/pagination/ListAssistantAssociationsPaginator.js.map +1 -0
- package/dist-es/pagination/ListAssistantsPaginator.js +75 -0
- package/dist-es/pagination/ListAssistantsPaginator.js.map +1 -0
- package/dist-es/pagination/ListContentsPaginator.js +75 -0
- package/dist-es/pagination/ListContentsPaginator.js.map +1 -0
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +75 -0
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js.map +1 -0
- package/dist-es/pagination/QueryAssistantPaginator.js +75 -0
- package/dist-es/pagination/QueryAssistantPaginator.js.map +1 -0
- package/dist-es/pagination/SearchContentPaginator.js +75 -0
- package/dist-es/pagination/SearchContentPaginator.js.map +1 -0
- package/dist-es/pagination/SearchSessionsPaginator.js +75 -0
- package/dist-es/pagination/SearchSessionsPaginator.js.map +1 -0
- package/dist-es/protocols/Aws_restJson1.js +4214 -0
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/dist-es/runtimeConfig.js +22 -0
- package/dist-es/runtimeConfig.js.map +1 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/dist-types/Wisdom.d.ts +280 -0
- package/dist-types/WisdomClient.d.ts +167 -0
- package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +37 -0
- package/dist-types/commands/CreateAssistantCommand.d.ts +35 -0
- package/dist-types/commands/CreateContentCommand.d.ts +36 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +59 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +37 -0
- package/dist-types/commands/DeleteAssistantAssociationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAssistantCommand.d.ts +35 -0
- package/dist-types/commands/DeleteContentCommand.d.ts +35 -0
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/commands/GetAssistantAssociationCommand.d.ts +35 -0
- package/dist-types/commands/GetAssistantCommand.d.ts +35 -0
- package/dist-types/commands/GetContentCommand.d.ts +35 -0
- package/dist-types/commands/GetContentSummaryCommand.d.ts +35 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +35 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +38 -0
- package/dist-types/commands/GetSessionCommand.d.ts +35 -0
- package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +35 -0
- package/dist-types/commands/ListAssistantsCommand.d.ts +35 -0
- package/dist-types/commands/ListContentsCommand.d.ts +35 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/NotifyRecommendationsReceivedCommand.d.ts +37 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +37 -0
- package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +35 -0
- package/dist-types/commands/SearchContentCommand.d.ts +36 -0
- package/dist-types/commands/SearchSessionsCommand.d.ts +35 -0
- package/dist-types/commands/StartContentUploadCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateContentCommand.d.ts +35 -0
- package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +40 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +42 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2073 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAssistantAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAssistantsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListContentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +4 -0
- package/dist-types/pagination/QueryAssistantPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchContentPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchSessionsPaginator.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +95 -0
- package/dist-types/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/runtimeConfig.d.ts +37 -0
- package/dist-types/runtimeConfig.native.d.ts +36 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/Wisdom.d.ts +280 -0
- package/dist-types/ts3.4/WisdomClient.d.ts +167 -0
- package/dist-types/ts3.4/commands/CreateAssistantAssociationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateAssistantCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateContentCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +59 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteAssistantAssociationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteAssistantCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteContentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAssistantAssociationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetAssistantCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetContentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetContentSummaryCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAssistantAssociationsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAssistantsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListContentsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/NotifyRecommendationsReceivedCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/SearchSessionsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateContentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +40 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +42 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2082 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAssistantAssociationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListAssistantsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListContentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/QueryAssistantPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchContentPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchSessionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +13 -0
- package/jest.config.js +4 -0
- package/package.json +93 -0
- package/src/Wisdom.ts +1175 -0
- package/src/WisdomClient.ts +363 -0
- package/src/commands/CreateAssistantAssociationCommand.ts +100 -0
- package/src/commands/CreateAssistantCommand.ts +95 -0
- package/src/commands/CreateContentCommand.ts +96 -0
- package/src/commands/CreateKnowledgeBaseCommand.ts +119 -0
- package/src/commands/CreateSessionCommand.ts +97 -0
- package/src/commands/DeleteAssistantAssociationCommand.ts +98 -0
- package/src/commands/DeleteAssistantCommand.ts +95 -0
- package/src/commands/DeleteContentCommand.ts +95 -0
- package/src/commands/DeleteKnowledgeBaseCommand.ts +102 -0
- package/src/commands/GetAssistantAssociationCommand.ts +95 -0
- package/src/commands/GetAssistantCommand.ts +95 -0
- package/src/commands/GetContentCommand.ts +95 -0
- package/src/commands/GetContentSummaryCommand.ts +95 -0
- package/src/commands/GetKnowledgeBaseCommand.ts +95 -0
- package/src/commands/GetRecommendationsCommand.ts +98 -0
- package/src/commands/GetSessionCommand.ts +95 -0
- package/src/commands/ListAssistantAssociationsCommand.ts +98 -0
- package/src/commands/ListAssistantsCommand.ts +95 -0
- package/src/commands/ListContentsCommand.ts +95 -0
- package/src/commands/ListKnowledgeBasesCommand.ts +95 -0
- package/src/commands/ListTagsForResourceCommand.ts +95 -0
- package/src/commands/NotifyRecommendationsReceivedCommand.ts +102 -0
- package/src/commands/QueryAssistantCommand.ts +97 -0
- package/src/commands/RemoveKnowledgeBaseTemplateUriCommand.ts +103 -0
- package/src/commands/SearchContentCommand.ts +96 -0
- package/src/commands/SearchSessionsCommand.ts +95 -0
- package/src/commands/StartContentUploadCommand.ts +98 -0
- package/src/commands/TagResourceCommand.ts +95 -0
- package/src/commands/UntagResourceCommand.ts +95 -0
- package/src/commands/UpdateContentCommand.ts +95 -0
- package/src/commands/UpdateKnowledgeBaseTemplateUriCommand.ts +108 -0
- package/src/endpoints.ts +57 -0
- package/src/index.ts +42 -0
- package/src/models/index.ts +1 -0
- package/src/models/models_0.ts +2662 -0
- package/src/pagination/Interfaces.ts +8 -0
- package/src/pagination/ListAssistantAssociationsPaginator.ts +59 -0
- package/src/pagination/ListAssistantsPaginator.ts +59 -0
- package/src/pagination/ListContentsPaginator.ts +59 -0
- package/src/pagination/ListKnowledgeBasesPaginator.ts +59 -0
- package/src/pagination/QueryAssistantPaginator.ts +59 -0
- package/src/pagination/SearchContentPaginator.ts +59 -0
- package/src/pagination/SearchSessionsPaginator.ts +59 -0
- package/src/protocols/Aws_restJson1.ts +4293 -0
- package/src/runtimeConfig.browser.ts +41 -0
- package/src/runtimeConfig.native.ts +17 -0
- package/src/runtimeConfig.shared.ts +17 -0
- package/src/runtimeConfig.ts +46 -0
- package/tsconfig.es.json +10 -0
- package/tsconfig.json +33 -0
- package/tsconfig.types.json +9 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import { Wisdom } from "../Wisdom";
|
|
4
|
+
import { WisdomClient } from "../WisdomClient";
|
|
5
|
+
|
|
6
|
+
export interface WisdomPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
+
client: Wisdom | WisdomClient;
|
|
8
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ListAssistantAssociationsCommand,
|
|
5
|
+
ListAssistantAssociationsCommandInput,
|
|
6
|
+
ListAssistantAssociationsCommandOutput,
|
|
7
|
+
} from "../commands/ListAssistantAssociationsCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: ListAssistantAssociationsCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<ListAssistantAssociationsCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new ListAssistantAssociationsCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: ListAssistantAssociationsCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<ListAssistantAssociationsCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.listAssistantAssociations(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateListAssistantAssociations(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: ListAssistantAssociationsCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<ListAssistantAssociationsCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: ListAssistantAssociationsCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ListAssistantsCommand,
|
|
5
|
+
ListAssistantsCommandInput,
|
|
6
|
+
ListAssistantsCommandOutput,
|
|
7
|
+
} from "../commands/ListAssistantsCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: ListAssistantsCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<ListAssistantsCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new ListAssistantsCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: ListAssistantsCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<ListAssistantsCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.listAssistants(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateListAssistants(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: ListAssistantsCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<ListAssistantsCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: ListAssistantsCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ListContentsCommand,
|
|
5
|
+
ListContentsCommandInput,
|
|
6
|
+
ListContentsCommandOutput,
|
|
7
|
+
} from "../commands/ListContentsCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: ListContentsCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<ListContentsCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new ListContentsCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: ListContentsCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<ListContentsCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.listContents(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateListContents(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: ListContentsCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<ListContentsCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: ListContentsCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ListKnowledgeBasesCommand,
|
|
5
|
+
ListKnowledgeBasesCommandInput,
|
|
6
|
+
ListKnowledgeBasesCommandOutput,
|
|
7
|
+
} from "../commands/ListKnowledgeBasesCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: ListKnowledgeBasesCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<ListKnowledgeBasesCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new ListKnowledgeBasesCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: ListKnowledgeBasesCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<ListKnowledgeBasesCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.listKnowledgeBases(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateListKnowledgeBases(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: ListKnowledgeBasesCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<ListKnowledgeBasesCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: ListKnowledgeBasesCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
QueryAssistantCommand,
|
|
5
|
+
QueryAssistantCommandInput,
|
|
6
|
+
QueryAssistantCommandOutput,
|
|
7
|
+
} from "../commands/QueryAssistantCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: QueryAssistantCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<QueryAssistantCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new QueryAssistantCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: QueryAssistantCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<QueryAssistantCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.queryAssistant(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateQueryAssistant(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: QueryAssistantCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<QueryAssistantCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: QueryAssistantCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
SearchContentCommand,
|
|
5
|
+
SearchContentCommandInput,
|
|
6
|
+
SearchContentCommandOutput,
|
|
7
|
+
} from "../commands/SearchContentCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: SearchContentCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<SearchContentCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new SearchContentCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: SearchContentCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<SearchContentCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.searchContent(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateSearchContent(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: SearchContentCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<SearchContentCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: SearchContentCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
SearchSessionsCommand,
|
|
5
|
+
SearchSessionsCommandInput,
|
|
6
|
+
SearchSessionsCommandOutput,
|
|
7
|
+
} from "../commands/SearchSessionsCommand";
|
|
8
|
+
import { Wisdom } from "../Wisdom";
|
|
9
|
+
import { WisdomClient } from "../WisdomClient";
|
|
10
|
+
import { WisdomPaginationConfiguration } from "./Interfaces";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
const makePagedClientRequest = async (
|
|
16
|
+
client: WisdomClient,
|
|
17
|
+
input: SearchSessionsCommandInput,
|
|
18
|
+
...args: any
|
|
19
|
+
): Promise<SearchSessionsCommandOutput> => {
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
return await client.send(new SearchSessionsCommand(input), ...args);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
const makePagedRequest = async (
|
|
27
|
+
client: Wisdom,
|
|
28
|
+
input: SearchSessionsCommandInput,
|
|
29
|
+
...args: any
|
|
30
|
+
): Promise<SearchSessionsCommandOutput> => {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
return await client.searchSessions(input, ...args);
|
|
33
|
+
};
|
|
34
|
+
export async function* paginateSearchSessions(
|
|
35
|
+
config: WisdomPaginationConfiguration,
|
|
36
|
+
input: SearchSessionsCommandInput,
|
|
37
|
+
...additionalArguments: any
|
|
38
|
+
): Paginator<SearchSessionsCommandOutput> {
|
|
39
|
+
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
+
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
+
let hasNext = true;
|
|
42
|
+
let page: SearchSessionsCommandOutput;
|
|
43
|
+
while (hasNext) {
|
|
44
|
+
input.nextToken = token;
|
|
45
|
+
input["maxResults"] = config.pageSize;
|
|
46
|
+
if (config.client instanceof Wisdom) {
|
|
47
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
+
} else if (config.client instanceof WisdomClient) {
|
|
49
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
+
} else {
|
|
51
|
+
throw new Error("Invalid client, expected Wisdom | WisdomClient");
|
|
52
|
+
}
|
|
53
|
+
yield page;
|
|
54
|
+
token = page.nextToken;
|
|
55
|
+
hasNext = !!token;
|
|
56
|
+
}
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|