@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,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListKnowledgeBasesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Lists the knowledge bases.</p>
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { WisdomClient, ListKnowledgeBasesCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
14
|
+
* // const { WisdomClient, ListKnowledgeBasesCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
15
|
+
* const client = new WisdomClient(config);
|
|
16
|
+
* const command = new ListKnowledgeBasesCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link ListKnowledgeBasesCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link ListKnowledgeBasesCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class ListKnowledgeBasesCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "WisdomClient";
|
|
42
|
+
const commandName = "ListKnowledgeBasesCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.ListKnowledgeBasesRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.ListKnowledgeBasesResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1ListKnowledgeBasesCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListKnowledgeBasesCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.ListKnowledgeBasesCommand = ListKnowledgeBasesCommand;
|
|
61
|
+
//# sourceMappingURL=ListKnowledgeBasesCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListKnowledgeBasesCommand.js","sourceRoot":"","sources":["../../src/commands/ListKnowledgeBasesCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAA2F;AAC3F,8DAGoC;AAMpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,yBAA0B,SAAQ,uBAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAqC;QACxD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAgC;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,oCAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,qCAA0B,CAAC,kBAAkB;SACxE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAqC,EAAE,OAAuB;QAC9E,OAAO,+DAA+C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,iEAAiD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CAIF;AAtDD,8DAsDC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTagsForResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Lists the tags for the specified resource.</p>
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { WisdomClient, ListTagsForResourceCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
14
|
+
* // const { WisdomClient, ListTagsForResourceCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
15
|
+
* const client = new WisdomClient(config);
|
|
16
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "WisdomClient";
|
|
42
|
+
const commandName = "ListTagsForResourceCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
61
|
+
//# sourceMappingURL=ListTagsForResourceCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListTagsForResourceCommand.js","sourceRoot":"","sources":["../../src/commands/ListTagsForResourceCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAA6F;AAC7F,8DAGoC;AAMpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,0BAA2B,SAAQ,uBAI/C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAsC;QACzD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAiC;QAGzD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,4BAA4B,CAAC;QACjD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,qCAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,sCAA2B,CAAC,kBAAkB;SACzE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAsC,EAAE,OAAuB;QAC/E,OAAO,gEAAgD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,kEAAkD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CAIF;AAtDD,gEAsDC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotifyRecommendationsReceivedCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Removes the specified recommendations from the specified assistant's queue of newly
|
|
10
|
+
* 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
|
|
11
|
+
* behavior and avoiding duplicate recommendations.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { WisdomClient, NotifyRecommendationsReceivedCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
16
|
+
* // const { WisdomClient, NotifyRecommendationsReceivedCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
17
|
+
* const client = new WisdomClient(config);
|
|
18
|
+
* const command = new NotifyRecommendationsReceivedCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link NotifyRecommendationsReceivedCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link NotifyRecommendationsReceivedCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
class NotifyRecommendationsReceivedCommand extends smithy_client_1.Command {
|
|
28
|
+
// Start section: command_properties
|
|
29
|
+
// End section: command_properties
|
|
30
|
+
constructor(input) {
|
|
31
|
+
// Start section: command_constructor
|
|
32
|
+
super();
|
|
33
|
+
this.input = input;
|
|
34
|
+
// End section: command_constructor
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
40
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
42
|
+
const { logger } = configuration;
|
|
43
|
+
const clientName = "WisdomClient";
|
|
44
|
+
const commandName = "NotifyRecommendationsReceivedCommand";
|
|
45
|
+
const handlerExecutionContext = {
|
|
46
|
+
logger,
|
|
47
|
+
clientName,
|
|
48
|
+
commandName,
|
|
49
|
+
inputFilterSensitiveLog: models_0_1.NotifyRecommendationsReceivedRequest.filterSensitiveLog,
|
|
50
|
+
outputFilterSensitiveLog: models_0_1.NotifyRecommendationsReceivedResponse.filterSensitiveLog,
|
|
51
|
+
};
|
|
52
|
+
const { requestHandler } = configuration;
|
|
53
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
54
|
+
}
|
|
55
|
+
serialize(input, context) {
|
|
56
|
+
return Aws_restJson1_1.serializeAws_restJson1NotifyRecommendationsReceivedCommand(input, context);
|
|
57
|
+
}
|
|
58
|
+
deserialize(output, context) {
|
|
59
|
+
return Aws_restJson1_1.deserializeAws_restJson1NotifyRecommendationsReceivedCommand(output, context);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.NotifyRecommendationsReceivedCommand = NotifyRecommendationsReceivedCommand;
|
|
63
|
+
//# sourceMappingURL=NotifyRecommendationsReceivedCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotifyRecommendationsReceivedCommand.js","sourceRoot":"","sources":["../../src/commands/NotifyRecommendationsReceivedCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAAiH;AACjH,8DAGoC;AAQpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,oCAAqC,SAAQ,uBAIzD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAgD;QACnE,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA2C;QAGnE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,sCAAsC,CAAC;QAC3D,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,+CAAoC,CAAC,kBAAkB;YAChF,wBAAwB,EAAE,gDAAqC,CAAC,kBAAkB;SACnF,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAgD,EAAE,OAAuB;QACzF,OAAO,0EAA0D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,4EAA4D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CAIF;AAzDD,oFAyDC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryAssistantCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Performs a manual search against the specified assistant. To retrieve recommendations for
|
|
10
|
+
* an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
|
|
11
|
+
* </p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { WisdomClient, QueryAssistantCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
16
|
+
* // const { WisdomClient, QueryAssistantCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
17
|
+
* const client = new WisdomClient(config);
|
|
18
|
+
* const command = new QueryAssistantCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link QueryAssistantCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link QueryAssistantCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
class QueryAssistantCommand extends smithy_client_1.Command {
|
|
28
|
+
// Start section: command_properties
|
|
29
|
+
// End section: command_properties
|
|
30
|
+
constructor(input) {
|
|
31
|
+
// Start section: command_constructor
|
|
32
|
+
super();
|
|
33
|
+
this.input = input;
|
|
34
|
+
// End section: command_constructor
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
40
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
42
|
+
const { logger } = configuration;
|
|
43
|
+
const clientName = "WisdomClient";
|
|
44
|
+
const commandName = "QueryAssistantCommand";
|
|
45
|
+
const handlerExecutionContext = {
|
|
46
|
+
logger,
|
|
47
|
+
clientName,
|
|
48
|
+
commandName,
|
|
49
|
+
inputFilterSensitiveLog: models_0_1.QueryAssistantRequest.filterSensitiveLog,
|
|
50
|
+
outputFilterSensitiveLog: models_0_1.QueryAssistantResponse.filterSensitiveLog,
|
|
51
|
+
};
|
|
52
|
+
const { requestHandler } = configuration;
|
|
53
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
54
|
+
}
|
|
55
|
+
serialize(input, context) {
|
|
56
|
+
return Aws_restJson1_1.serializeAws_restJson1QueryAssistantCommand(input, context);
|
|
57
|
+
}
|
|
58
|
+
deserialize(output, context) {
|
|
59
|
+
return Aws_restJson1_1.deserializeAws_restJson1QueryAssistantCommand(output, context);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.QueryAssistantCommand = QueryAssistantCommand;
|
|
63
|
+
//# sourceMappingURL=QueryAssistantCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryAssistantCommand.js","sourceRoot":"","sources":["../../src/commands/QueryAssistantCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAAmF;AACnF,8DAGoC;AAMpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,qBAAsB,SAAQ,uBAI1C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAiC;QACpD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA4B;QAGpD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,gCAAqB,CAAC,kBAAkB;YACjE,wBAAwB,EAAE,iCAAsB,CAAC,kBAAkB;SACpE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAiC,EAAE,OAAuB;QAC1E,OAAO,2DAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,6DAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CAIF;AAtDD,sDAsDC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveKnowledgeBaseTemplateUriCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Removes a URI template from a knowledge base.</p>
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { WisdomClient, RemoveKnowledgeBaseTemplateUriCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
14
|
+
* // const { WisdomClient, RemoveKnowledgeBaseTemplateUriCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
15
|
+
* const client = new WisdomClient(config);
|
|
16
|
+
* const command = new RemoveKnowledgeBaseTemplateUriCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link RemoveKnowledgeBaseTemplateUriCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link RemoveKnowledgeBaseTemplateUriCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class RemoveKnowledgeBaseTemplateUriCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "WisdomClient";
|
|
42
|
+
const commandName = "RemoveKnowledgeBaseTemplateUriCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.RemoveKnowledgeBaseTemplateUriRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.RemoveKnowledgeBaseTemplateUriResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.RemoveKnowledgeBaseTemplateUriCommand = RemoveKnowledgeBaseTemplateUriCommand;
|
|
61
|
+
//# sourceMappingURL=RemoveKnowledgeBaseTemplateUriCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveKnowledgeBaseTemplateUriCommand.js","sourceRoot":"","sources":["../../src/commands/RemoveKnowledgeBaseTemplateUriCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAAmH;AACnH,8DAGoC;AAQpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,qCAAsC,SAAQ,uBAI1D;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAiD;QACpE,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA4C;QAGpE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,uCAAuC,CAAC;QAC5D,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,gDAAqC,CAAC,kBAAkB;YACjF,wBAAwB,EAAE,iDAAsC,CAAC,kBAAkB;SACpF,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CACf,KAAiD,EACjD,OAAuB;QAEvB,OAAO,2EAA2D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,6EAA6D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CAIF;AA5DD,sFA4DC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchContentCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Searches for content in a specified knowledge base. Can be used to get a specific content
|
|
10
|
+
* resource by its name.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { WisdomClient, SearchContentCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
15
|
+
* // const { WisdomClient, SearchContentCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
16
|
+
* const client = new WisdomClient(config);
|
|
17
|
+
* const command = new SearchContentCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link SearchContentCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link SearchContentCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
class SearchContentCommand extends smithy_client_1.Command {
|
|
27
|
+
// Start section: command_properties
|
|
28
|
+
// End section: command_properties
|
|
29
|
+
constructor(input) {
|
|
30
|
+
// Start section: command_constructor
|
|
31
|
+
super();
|
|
32
|
+
this.input = input;
|
|
33
|
+
// End section: command_constructor
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
39
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
41
|
+
const { logger } = configuration;
|
|
42
|
+
const clientName = "WisdomClient";
|
|
43
|
+
const commandName = "SearchContentCommand";
|
|
44
|
+
const handlerExecutionContext = {
|
|
45
|
+
logger,
|
|
46
|
+
clientName,
|
|
47
|
+
commandName,
|
|
48
|
+
inputFilterSensitiveLog: models_0_1.SearchContentRequest.filterSensitiveLog,
|
|
49
|
+
outputFilterSensitiveLog: models_0_1.SearchContentResponse.filterSensitiveLog,
|
|
50
|
+
};
|
|
51
|
+
const { requestHandler } = configuration;
|
|
52
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
53
|
+
}
|
|
54
|
+
serialize(input, context) {
|
|
55
|
+
return Aws_restJson1_1.serializeAws_restJson1SearchContentCommand(input, context);
|
|
56
|
+
}
|
|
57
|
+
deserialize(output, context) {
|
|
58
|
+
return Aws_restJson1_1.deserializeAws_restJson1SearchContentCommand(output, context);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.SearchContentCommand = SearchContentCommand;
|
|
62
|
+
//# sourceMappingURL=SearchContentCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchContentCommand.js","sourceRoot":"","sources":["../../src/commands/SearchContentCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAAiF;AACjF,8DAGoC;AAMpC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,oBAAqB,SAAQ,uBAIzC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAgC;QACnD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA2B;QAGnD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,+BAAoB,CAAC,kBAAkB;YAChE,wBAAwB,EAAE,gCAAqB,CAAC,kBAAkB;SACnE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAgC,EAAE,OAAuB;QACzE,OAAO,0DAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,4DAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CAIF;AAtDD,oDAsDC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchSessionsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Searches for sessions.</p>
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { WisdomClient, SearchSessionsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
14
|
+
* // const { WisdomClient, SearchSessionsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
15
|
+
* const client = new WisdomClient(config);
|
|
16
|
+
* const command = new SearchSessionsCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link SearchSessionsCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link SearchSessionsCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class SearchSessionsCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "WisdomClient";
|
|
42
|
+
const commandName = "SearchSessionsCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.SearchSessionsRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.SearchSessionsResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1SearchSessionsCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1SearchSessionsCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.SearchSessionsCommand = SearchSessionsCommand;
|
|
61
|
+
//# sourceMappingURL=SearchSessionsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchSessionsCommand.js","sourceRoot":"","sources":["../../src/commands/SearchSessionsCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAAmF;AACnF,8DAGoC;AAMpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,qBAAsB,SAAQ,uBAI1C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAiC;QACpD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA4B;QAGpD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,gCAAqB,CAAC,kBAAkB;YACjE,wBAAwB,EAAE,iCAAsB,CAAC,kBAAkB;SACpE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAiC,EAAE,OAAuB;QAC1E,OAAO,2DAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,6DAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CAIF;AAtDD,sDAsDC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartContentUploadCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Get a URL to upload content to a knowledge base. To upload content, first make a PUT
|
|
10
|
+
* request to the returned URL with your file, making sure to include the required headers. Then
|
|
11
|
+
* use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_CreateContent.html">CreateContent</a> to finalize the content creation process or <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_UpdateContent.html">UpdateContent</a> to modify an existing resource. You can only upload content to a
|
|
12
|
+
* knowledge base of type CUSTOM.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { WisdomClient, StartContentUploadCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
17
|
+
* // const { WisdomClient, StartContentUploadCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
18
|
+
* const client = new WisdomClient(config);
|
|
19
|
+
* const command = new StartContentUploadCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link StartContentUploadCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link StartContentUploadCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
class StartContentUploadCommand extends smithy_client_1.Command {
|
|
29
|
+
// Start section: command_properties
|
|
30
|
+
// End section: command_properties
|
|
31
|
+
constructor(input) {
|
|
32
|
+
// Start section: command_constructor
|
|
33
|
+
super();
|
|
34
|
+
this.input = input;
|
|
35
|
+
// End section: command_constructor
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
41
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
43
|
+
const { logger } = configuration;
|
|
44
|
+
const clientName = "WisdomClient";
|
|
45
|
+
const commandName = "StartContentUploadCommand";
|
|
46
|
+
const handlerExecutionContext = {
|
|
47
|
+
logger,
|
|
48
|
+
clientName,
|
|
49
|
+
commandName,
|
|
50
|
+
inputFilterSensitiveLog: models_0_1.StartContentUploadRequest.filterSensitiveLog,
|
|
51
|
+
outputFilterSensitiveLog: models_0_1.StartContentUploadResponse.filterSensitiveLog,
|
|
52
|
+
};
|
|
53
|
+
const { requestHandler } = configuration;
|
|
54
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
55
|
+
}
|
|
56
|
+
serialize(input, context) {
|
|
57
|
+
return Aws_restJson1_1.serializeAws_restJson1StartContentUploadCommand(input, context);
|
|
58
|
+
}
|
|
59
|
+
deserialize(output, context) {
|
|
60
|
+
return Aws_restJson1_1.deserializeAws_restJson1StartContentUploadCommand(output, context);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.StartContentUploadCommand = StartContentUploadCommand;
|
|
64
|
+
//# sourceMappingURL=StartContentUploadCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StartContentUploadCommand.js","sourceRoot":"","sources":["../../src/commands/StartContentUploadCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAA2F;AAC3F,8DAGoC;AAMpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,yBAA0B,SAAQ,uBAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAqC;QACxD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAgC;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,oCAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,qCAA0B,CAAC,kBAAkB;SACxE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAqC,EAAE,OAAuB;QAC9E,OAAO,+DAA+C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,iEAAiD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CAIF;AAtDD,8DAsDC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* <p>Adds the specified tags to the specified resource.</p>
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { WisdomClient, TagResourceCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
14
|
+
* // const { WisdomClient, TagResourceCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
15
|
+
* const client = new WisdomClient(config);
|
|
16
|
+
* const command = new TagResourceCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class TagResourceCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "WisdomClient";
|
|
42
|
+
const commandName = "TagResourceCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.TagResourceRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.TagResourceResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1TagResourceCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
61
|
+
//# sourceMappingURL=TagResourceCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagResourceCommand.js","sourceRoot":"","sources":["../../src/commands/TagResourceCommand.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,0DAA6D;AAW7D,iDAA6E;AAC7E,8DAGoC;AAMpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,kBAAmB,SAAQ,uBAIvC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA8B;QACjD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAyB;QAGjD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAyC,EACzC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,cAAc,CAAC;QAClC,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,6BAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,8BAAmB,CAAC,kBAAkB;SACjE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA8B,EAAE,OAAuB;QACvE,OAAO,wDAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,0DAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CAIF;AAtDD,gDAsDC"}
|