@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,98 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { ListAssistantAssociationsRequest, ListAssistantAssociationsResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1ListAssistantAssociationsCommand,
|
|
17
|
+
serializeAws_restJson1ListAssistantAssociationsCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface ListAssistantAssociationsCommandInput extends ListAssistantAssociationsRequest {}
|
|
22
|
+
export interface ListAssistantAssociationsCommandOutput extends ListAssistantAssociationsResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists information about assistant associations.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, ListAssistantAssociationsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, ListAssistantAssociationsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new ListAssistantAssociationsCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListAssistantAssociationsCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListAssistantAssociationsCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListAssistantAssociationsCommand extends $Command<
|
|
42
|
+
ListAssistantAssociationsCommandInput,
|
|
43
|
+
ListAssistantAssociationsCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListAssistantAssociationsCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: WisdomClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListAssistantAssociationsCommandInput, ListAssistantAssociationsCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "WisdomClient";
|
|
69
|
+
const commandName = "ListAssistantAssociationsCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListAssistantAssociationsRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListAssistantAssociationsResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListAssistantAssociationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1ListAssistantAssociationsCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(
|
|
90
|
+
output: __HttpResponse,
|
|
91
|
+
context: __SerdeContext
|
|
92
|
+
): Promise<ListAssistantAssociationsCommandOutput> {
|
|
93
|
+
return deserializeAws_restJson1ListAssistantAssociationsCommand(output, context);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Start section: command_body_extra
|
|
97
|
+
// End section: command_body_extra
|
|
98
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { ListAssistantsRequest, ListAssistantsResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1ListAssistantsCommand,
|
|
17
|
+
serializeAws_restJson1ListAssistantsCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface ListAssistantsCommandInput extends ListAssistantsRequest {}
|
|
22
|
+
export interface ListAssistantsCommandOutput extends ListAssistantsResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists information about assistants.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, ListAssistantsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, ListAssistantsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new ListAssistantsCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListAssistantsCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListAssistantsCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListAssistantsCommand extends $Command<
|
|
42
|
+
ListAssistantsCommandInput,
|
|
43
|
+
ListAssistantsCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListAssistantsCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: WisdomClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListAssistantsCommandInput, ListAssistantsCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "WisdomClient";
|
|
69
|
+
const commandName = "ListAssistantsCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListAssistantsRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListAssistantsResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListAssistantsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1ListAssistantsCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListAssistantsCommandOutput> {
|
|
90
|
+
return deserializeAws_restJson1ListAssistantsCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { ListContentsRequest, ListContentsResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1ListContentsCommand,
|
|
17
|
+
serializeAws_restJson1ListContentsCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface ListContentsCommandInput extends ListContentsRequest {}
|
|
22
|
+
export interface ListContentsCommandOutput extends ListContentsResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists the content.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, ListContentsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, ListContentsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new ListContentsCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListContentsCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListContentsCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListContentsCommand extends $Command<
|
|
42
|
+
ListContentsCommandInput,
|
|
43
|
+
ListContentsCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListContentsCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: WisdomClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListContentsCommandInput, ListContentsCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "WisdomClient";
|
|
69
|
+
const commandName = "ListContentsCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListContentsRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListContentsResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListContentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1ListContentsCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListContentsCommandOutput> {
|
|
90
|
+
return deserializeAws_restJson1ListContentsCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { ListKnowledgeBasesRequest, ListKnowledgeBasesResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1ListKnowledgeBasesCommand,
|
|
17
|
+
serializeAws_restJson1ListKnowledgeBasesCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface ListKnowledgeBasesCommandInput extends ListKnowledgeBasesRequest {}
|
|
22
|
+
export interface ListKnowledgeBasesCommandOutput extends ListKnowledgeBasesResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists the knowledge bases.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, ListKnowledgeBasesCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, ListKnowledgeBasesCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new ListKnowledgeBasesCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListKnowledgeBasesCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListKnowledgeBasesCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListKnowledgeBasesCommand extends $Command<
|
|
42
|
+
ListKnowledgeBasesCommandInput,
|
|
43
|
+
ListKnowledgeBasesCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListKnowledgeBasesCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: WisdomClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "WisdomClient";
|
|
69
|
+
const commandName = "ListKnowledgeBasesCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListKnowledgeBasesRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListKnowledgeBasesResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListKnowledgeBasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1ListKnowledgeBasesCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListKnowledgeBasesCommandOutput> {
|
|
90
|
+
return deserializeAws_restJson1ListKnowledgeBasesCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1ListTagsForResourceCommand,
|
|
17
|
+
serializeAws_restJson1ListTagsForResourceCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists the tags for the specified resource.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, ListTagsForResourceCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, ListTagsForResourceCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListTagsForResourceCommand extends $Command<
|
|
42
|
+
ListTagsForResourceCommandInput,
|
|
43
|
+
ListTagsForResourceCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListTagsForResourceCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: WisdomClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "WisdomClient";
|
|
69
|
+
const commandName = "ListTagsForResourceCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
90
|
+
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { NotifyRecommendationsReceivedRequest, NotifyRecommendationsReceivedResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1NotifyRecommendationsReceivedCommand,
|
|
17
|
+
serializeAws_restJson1NotifyRecommendationsReceivedCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface NotifyRecommendationsReceivedCommandInput extends NotifyRecommendationsReceivedRequest {}
|
|
22
|
+
export interface NotifyRecommendationsReceivedCommandOutput
|
|
23
|
+
extends NotifyRecommendationsReceivedResponse,
|
|
24
|
+
__MetadataBearer {}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* <p>Removes the specified recommendations from the specified assistant's queue of newly
|
|
28
|
+
* available recommendations. You can use this API in conjunction with <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a> and a <code>waitTimeSeconds</code> input for long-polling
|
|
29
|
+
* behavior and avoiding duplicate recommendations.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { WisdomClient, NotifyRecommendationsReceivedCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
34
|
+
* // const { WisdomClient, NotifyRecommendationsReceivedCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
35
|
+
* const client = new WisdomClient(config);
|
|
36
|
+
* const command = new NotifyRecommendationsReceivedCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @see {@link NotifyRecommendationsReceivedCommandInput} for command's `input` shape.
|
|
41
|
+
* @see {@link NotifyRecommendationsReceivedCommandOutput} for command's `response` shape.
|
|
42
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export class NotifyRecommendationsReceivedCommand extends $Command<
|
|
46
|
+
NotifyRecommendationsReceivedCommandInput,
|
|
47
|
+
NotifyRecommendationsReceivedCommandOutput,
|
|
48
|
+
WisdomClientResolvedConfig
|
|
49
|
+
> {
|
|
50
|
+
// Start section: command_properties
|
|
51
|
+
// End section: command_properties
|
|
52
|
+
|
|
53
|
+
constructor(readonly input: NotifyRecommendationsReceivedCommandInput) {
|
|
54
|
+
// Start section: command_constructor
|
|
55
|
+
super();
|
|
56
|
+
// End section: command_constructor
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
resolveMiddleware(
|
|
63
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
+
configuration: WisdomClientResolvedConfig,
|
|
65
|
+
options?: __HttpHandlerOptions
|
|
66
|
+
): Handler<NotifyRecommendationsReceivedCommandInput, NotifyRecommendationsReceivedCommandOutput> {
|
|
67
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
+
|
|
69
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
+
|
|
71
|
+
const { logger } = configuration;
|
|
72
|
+
const clientName = "WisdomClient";
|
|
73
|
+
const commandName = "NotifyRecommendationsReceivedCommand";
|
|
74
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
+
logger,
|
|
76
|
+
clientName,
|
|
77
|
+
commandName,
|
|
78
|
+
inputFilterSensitiveLog: NotifyRecommendationsReceivedRequest.filterSensitiveLog,
|
|
79
|
+
outputFilterSensitiveLog: NotifyRecommendationsReceivedResponse.filterSensitiveLog,
|
|
80
|
+
};
|
|
81
|
+
const { requestHandler } = configuration;
|
|
82
|
+
return stack.resolve(
|
|
83
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
+
handlerExecutionContext
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private serialize(input: NotifyRecommendationsReceivedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
+
return serializeAws_restJson1NotifyRecommendationsReceivedCommand(input, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
private deserialize(
|
|
94
|
+
output: __HttpResponse,
|
|
95
|
+
context: __SerdeContext
|
|
96
|
+
): Promise<NotifyRecommendationsReceivedCommandOutput> {
|
|
97
|
+
return deserializeAws_restJson1NotifyRecommendationsReceivedCommand(output, context);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Start section: command_body_extra
|
|
101
|
+
// End section: command_body_extra
|
|
102
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { QueryAssistantRequest, QueryAssistantResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1QueryAssistantCommand,
|
|
17
|
+
serializeAws_restJson1QueryAssistantCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface QueryAssistantCommandInput extends QueryAssistantRequest {}
|
|
22
|
+
export interface QueryAssistantCommandOutput extends QueryAssistantResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Performs a manual search against the specified assistant. To retrieve recommendations for
|
|
26
|
+
* an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
|
|
27
|
+
* </p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { WisdomClient, QueryAssistantCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
32
|
+
* // const { WisdomClient, QueryAssistantCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
33
|
+
* const client = new WisdomClient(config);
|
|
34
|
+
* const command = new QueryAssistantCommand(input);
|
|
35
|
+
* const response = await client.send(command);
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see {@link QueryAssistantCommandInput} for command's `input` shape.
|
|
39
|
+
* @see {@link QueryAssistantCommandOutput} for command's `response` shape.
|
|
40
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export class QueryAssistantCommand extends $Command<
|
|
44
|
+
QueryAssistantCommandInput,
|
|
45
|
+
QueryAssistantCommandOutput,
|
|
46
|
+
WisdomClientResolvedConfig
|
|
47
|
+
> {
|
|
48
|
+
// Start section: command_properties
|
|
49
|
+
// End section: command_properties
|
|
50
|
+
|
|
51
|
+
constructor(readonly input: QueryAssistantCommandInput) {
|
|
52
|
+
// Start section: command_constructor
|
|
53
|
+
super();
|
|
54
|
+
// End section: command_constructor
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
resolveMiddleware(
|
|
61
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
+
configuration: WisdomClientResolvedConfig,
|
|
63
|
+
options?: __HttpHandlerOptions
|
|
64
|
+
): Handler<QueryAssistantCommandInput, QueryAssistantCommandOutput> {
|
|
65
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
+
|
|
67
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
+
|
|
69
|
+
const { logger } = configuration;
|
|
70
|
+
const clientName = "WisdomClient";
|
|
71
|
+
const commandName = "QueryAssistantCommand";
|
|
72
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
+
logger,
|
|
74
|
+
clientName,
|
|
75
|
+
commandName,
|
|
76
|
+
inputFilterSensitiveLog: QueryAssistantRequest.filterSensitiveLog,
|
|
77
|
+
outputFilterSensitiveLog: QueryAssistantResponse.filterSensitiveLog,
|
|
78
|
+
};
|
|
79
|
+
const { requestHandler } = configuration;
|
|
80
|
+
return stack.resolve(
|
|
81
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
+
handlerExecutionContext
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private serialize(input: QueryAssistantCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
+
return serializeAws_restJson1QueryAssistantCommand(input, context);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<QueryAssistantCommandOutput> {
|
|
92
|
+
return deserializeAws_restJson1QueryAssistantCommand(output, context);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Start section: command_body_extra
|
|
96
|
+
// End section: command_body_extra
|
|
97
|
+
}
|