@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,363 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EndpointsInputConfig,
|
|
3
|
+
EndpointsResolvedConfig,
|
|
4
|
+
RegionInputConfig,
|
|
5
|
+
RegionResolvedConfig,
|
|
6
|
+
resolveEndpointsConfig,
|
|
7
|
+
resolveRegionConfig,
|
|
8
|
+
} from "@aws-sdk/config-resolver";
|
|
9
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
+
import {
|
|
11
|
+
getHostHeaderPlugin,
|
|
12
|
+
HostHeaderInputConfig,
|
|
13
|
+
HostHeaderResolvedConfig,
|
|
14
|
+
resolveHostHeaderConfig,
|
|
15
|
+
} from "@aws-sdk/middleware-host-header";
|
|
16
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
+
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
+
import {
|
|
19
|
+
AwsAuthInputConfig,
|
|
20
|
+
AwsAuthResolvedConfig,
|
|
21
|
+
getAwsAuthPlugin,
|
|
22
|
+
resolveAwsAuthConfig,
|
|
23
|
+
} from "@aws-sdk/middleware-signing";
|
|
24
|
+
import {
|
|
25
|
+
getUserAgentPlugin,
|
|
26
|
+
resolveUserAgentConfig,
|
|
27
|
+
UserAgentInputConfig,
|
|
28
|
+
UserAgentResolvedConfig,
|
|
29
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
+
import {
|
|
32
|
+
Client as __Client,
|
|
33
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
+
} from "@aws-sdk/smithy-client";
|
|
36
|
+
import {
|
|
37
|
+
Credentials as __Credentials,
|
|
38
|
+
Decoder as __Decoder,
|
|
39
|
+
Encoder as __Encoder,
|
|
40
|
+
Hash as __Hash,
|
|
41
|
+
HashConstructor as __HashConstructor,
|
|
42
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
+
Logger as __Logger,
|
|
44
|
+
Provider as __Provider,
|
|
45
|
+
Provider,
|
|
46
|
+
RegionInfoProvider,
|
|
47
|
+
StreamCollector as __StreamCollector,
|
|
48
|
+
UrlParser as __UrlParser,
|
|
49
|
+
UserAgent as __UserAgent,
|
|
50
|
+
} from "@aws-sdk/types";
|
|
51
|
+
|
|
52
|
+
import {
|
|
53
|
+
CreateAssistantAssociationCommandInput,
|
|
54
|
+
CreateAssistantAssociationCommandOutput,
|
|
55
|
+
} from "./commands/CreateAssistantAssociationCommand";
|
|
56
|
+
import { CreateAssistantCommandInput, CreateAssistantCommandOutput } from "./commands/CreateAssistantCommand";
|
|
57
|
+
import { CreateContentCommandInput, CreateContentCommandOutput } from "./commands/CreateContentCommand";
|
|
58
|
+
import {
|
|
59
|
+
CreateKnowledgeBaseCommandInput,
|
|
60
|
+
CreateKnowledgeBaseCommandOutput,
|
|
61
|
+
} from "./commands/CreateKnowledgeBaseCommand";
|
|
62
|
+
import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
|
|
63
|
+
import {
|
|
64
|
+
DeleteAssistantAssociationCommandInput,
|
|
65
|
+
DeleteAssistantAssociationCommandOutput,
|
|
66
|
+
} from "./commands/DeleteAssistantAssociationCommand";
|
|
67
|
+
import { DeleteAssistantCommandInput, DeleteAssistantCommandOutput } from "./commands/DeleteAssistantCommand";
|
|
68
|
+
import { DeleteContentCommandInput, DeleteContentCommandOutput } from "./commands/DeleteContentCommand";
|
|
69
|
+
import {
|
|
70
|
+
DeleteKnowledgeBaseCommandInput,
|
|
71
|
+
DeleteKnowledgeBaseCommandOutput,
|
|
72
|
+
} from "./commands/DeleteKnowledgeBaseCommand";
|
|
73
|
+
import {
|
|
74
|
+
GetAssistantAssociationCommandInput,
|
|
75
|
+
GetAssistantAssociationCommandOutput,
|
|
76
|
+
} from "./commands/GetAssistantAssociationCommand";
|
|
77
|
+
import { GetAssistantCommandInput, GetAssistantCommandOutput } from "./commands/GetAssistantCommand";
|
|
78
|
+
import { GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
|
|
79
|
+
import { GetContentSummaryCommandInput, GetContentSummaryCommandOutput } from "./commands/GetContentSummaryCommand";
|
|
80
|
+
import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "./commands/GetKnowledgeBaseCommand";
|
|
81
|
+
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
82
|
+
import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
83
|
+
import {
|
|
84
|
+
ListAssistantAssociationsCommandInput,
|
|
85
|
+
ListAssistantAssociationsCommandOutput,
|
|
86
|
+
} from "./commands/ListAssistantAssociationsCommand";
|
|
87
|
+
import { ListAssistantsCommandInput, ListAssistantsCommandOutput } from "./commands/ListAssistantsCommand";
|
|
88
|
+
import { ListContentsCommandInput, ListContentsCommandOutput } from "./commands/ListContentsCommand";
|
|
89
|
+
import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "./commands/ListKnowledgeBasesCommand";
|
|
90
|
+
import {
|
|
91
|
+
ListTagsForResourceCommandInput,
|
|
92
|
+
ListTagsForResourceCommandOutput,
|
|
93
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
94
|
+
import {
|
|
95
|
+
NotifyRecommendationsReceivedCommandInput,
|
|
96
|
+
NotifyRecommendationsReceivedCommandOutput,
|
|
97
|
+
} from "./commands/NotifyRecommendationsReceivedCommand";
|
|
98
|
+
import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
|
|
99
|
+
import {
|
|
100
|
+
RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
101
|
+
RemoveKnowledgeBaseTemplateUriCommandOutput,
|
|
102
|
+
} from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
103
|
+
import { SearchContentCommandInput, SearchContentCommandOutput } from "./commands/SearchContentCommand";
|
|
104
|
+
import { SearchSessionsCommandInput, SearchSessionsCommandOutput } from "./commands/SearchSessionsCommand";
|
|
105
|
+
import { StartContentUploadCommandInput, StartContentUploadCommandOutput } from "./commands/StartContentUploadCommand";
|
|
106
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
107
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
108
|
+
import { UpdateContentCommandInput, UpdateContentCommandOutput } from "./commands/UpdateContentCommand";
|
|
109
|
+
import {
|
|
110
|
+
UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
111
|
+
UpdateKnowledgeBaseTemplateUriCommandOutput,
|
|
112
|
+
} from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
|
|
113
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
114
|
+
|
|
115
|
+
export type ServiceInputTypes =
|
|
116
|
+
| CreateAssistantAssociationCommandInput
|
|
117
|
+
| CreateAssistantCommandInput
|
|
118
|
+
| CreateContentCommandInput
|
|
119
|
+
| CreateKnowledgeBaseCommandInput
|
|
120
|
+
| CreateSessionCommandInput
|
|
121
|
+
| DeleteAssistantAssociationCommandInput
|
|
122
|
+
| DeleteAssistantCommandInput
|
|
123
|
+
| DeleteContentCommandInput
|
|
124
|
+
| DeleteKnowledgeBaseCommandInput
|
|
125
|
+
| GetAssistantAssociationCommandInput
|
|
126
|
+
| GetAssistantCommandInput
|
|
127
|
+
| GetContentCommandInput
|
|
128
|
+
| GetContentSummaryCommandInput
|
|
129
|
+
| GetKnowledgeBaseCommandInput
|
|
130
|
+
| GetRecommendationsCommandInput
|
|
131
|
+
| GetSessionCommandInput
|
|
132
|
+
| ListAssistantAssociationsCommandInput
|
|
133
|
+
| ListAssistantsCommandInput
|
|
134
|
+
| ListContentsCommandInput
|
|
135
|
+
| ListKnowledgeBasesCommandInput
|
|
136
|
+
| ListTagsForResourceCommandInput
|
|
137
|
+
| NotifyRecommendationsReceivedCommandInput
|
|
138
|
+
| QueryAssistantCommandInput
|
|
139
|
+
| RemoveKnowledgeBaseTemplateUriCommandInput
|
|
140
|
+
| SearchContentCommandInput
|
|
141
|
+
| SearchSessionsCommandInput
|
|
142
|
+
| StartContentUploadCommandInput
|
|
143
|
+
| TagResourceCommandInput
|
|
144
|
+
| UntagResourceCommandInput
|
|
145
|
+
| UpdateContentCommandInput
|
|
146
|
+
| UpdateKnowledgeBaseTemplateUriCommandInput;
|
|
147
|
+
|
|
148
|
+
export type ServiceOutputTypes =
|
|
149
|
+
| CreateAssistantAssociationCommandOutput
|
|
150
|
+
| CreateAssistantCommandOutput
|
|
151
|
+
| CreateContentCommandOutput
|
|
152
|
+
| CreateKnowledgeBaseCommandOutput
|
|
153
|
+
| CreateSessionCommandOutput
|
|
154
|
+
| DeleteAssistantAssociationCommandOutput
|
|
155
|
+
| DeleteAssistantCommandOutput
|
|
156
|
+
| DeleteContentCommandOutput
|
|
157
|
+
| DeleteKnowledgeBaseCommandOutput
|
|
158
|
+
| GetAssistantAssociationCommandOutput
|
|
159
|
+
| GetAssistantCommandOutput
|
|
160
|
+
| GetContentCommandOutput
|
|
161
|
+
| GetContentSummaryCommandOutput
|
|
162
|
+
| GetKnowledgeBaseCommandOutput
|
|
163
|
+
| GetRecommendationsCommandOutput
|
|
164
|
+
| GetSessionCommandOutput
|
|
165
|
+
| ListAssistantAssociationsCommandOutput
|
|
166
|
+
| ListAssistantsCommandOutput
|
|
167
|
+
| ListContentsCommandOutput
|
|
168
|
+
| ListKnowledgeBasesCommandOutput
|
|
169
|
+
| ListTagsForResourceCommandOutput
|
|
170
|
+
| NotifyRecommendationsReceivedCommandOutput
|
|
171
|
+
| QueryAssistantCommandOutput
|
|
172
|
+
| RemoveKnowledgeBaseTemplateUriCommandOutput
|
|
173
|
+
| SearchContentCommandOutput
|
|
174
|
+
| SearchSessionsCommandOutput
|
|
175
|
+
| StartContentUploadCommandOutput
|
|
176
|
+
| TagResourceCommandOutput
|
|
177
|
+
| UntagResourceCommandOutput
|
|
178
|
+
| UpdateContentCommandOutput
|
|
179
|
+
| UpdateKnowledgeBaseTemplateUriCommandOutput;
|
|
180
|
+
|
|
181
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
182
|
+
/**
|
|
183
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
184
|
+
*/
|
|
185
|
+
requestHandler?: __HttpHandler;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
189
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
sha256?: __HashConstructor;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
urlParser?: __UrlParser;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* A function that can calculate the length of a request body.
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A function that converts a stream into an array of bytes.
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
streamCollector?: __StreamCollector;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
base64Decoder?: __Decoder;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
base64Encoder?: __Encoder;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
226
|
+
* @internal
|
|
227
|
+
*/
|
|
228
|
+
utf8Decoder?: __Decoder;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
232
|
+
* @internal
|
|
233
|
+
*/
|
|
234
|
+
utf8Encoder?: __Encoder;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The runtime environment.
|
|
238
|
+
* @internal
|
|
239
|
+
*/
|
|
240
|
+
runtime?: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
244
|
+
* trait of an operation.
|
|
245
|
+
*/
|
|
246
|
+
disableHostPrefix?: boolean;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
250
|
+
*/
|
|
251
|
+
maxAttempts?: number | __Provider<number>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Specifies which retry algorithm to use.
|
|
255
|
+
*/
|
|
256
|
+
retryMode?: string | __Provider<string>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Optional logger for logging debug/info/warn/error.
|
|
260
|
+
*/
|
|
261
|
+
logger?: __Logger;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Unique service identifier.
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
serviceId?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The AWS region to which this client will send requests
|
|
271
|
+
*/
|
|
272
|
+
region?: string | __Provider<string>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Default credentials provider; Not available in browser runtime.
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
288
|
+
* @internal
|
|
289
|
+
*/
|
|
290
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type WisdomClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
294
|
+
ClientDefaults &
|
|
295
|
+
RegionInputConfig &
|
|
296
|
+
EndpointsInputConfig &
|
|
297
|
+
RetryInputConfig &
|
|
298
|
+
HostHeaderInputConfig &
|
|
299
|
+
AwsAuthInputConfig &
|
|
300
|
+
UserAgentInputConfig;
|
|
301
|
+
/**
|
|
302
|
+
* The configuration interface of WisdomClient class constructor that set the region, credentials and other options.
|
|
303
|
+
*/
|
|
304
|
+
export interface WisdomClientConfig extends WisdomClientConfigType {}
|
|
305
|
+
|
|
306
|
+
type WisdomClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
307
|
+
Required<ClientDefaults> &
|
|
308
|
+
RegionResolvedConfig &
|
|
309
|
+
EndpointsResolvedConfig &
|
|
310
|
+
RetryResolvedConfig &
|
|
311
|
+
HostHeaderResolvedConfig &
|
|
312
|
+
AwsAuthResolvedConfig &
|
|
313
|
+
UserAgentResolvedConfig;
|
|
314
|
+
/**
|
|
315
|
+
* The resolved configuration interface of WisdomClient class. This is resolved and normalized from the {@link WisdomClientConfig | constructor configuration interface}.
|
|
316
|
+
*/
|
|
317
|
+
export interface WisdomClientResolvedConfig extends WisdomClientResolvedConfigType {}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
|
|
321
|
+
* assistant and a knowledge base.</p>
|
|
322
|
+
*
|
|
323
|
+
* <p>Some more advanced features are only accessible using the Wisdom API. For example, you
|
|
324
|
+
* can manually manage content by uploading custom files and control their lifecycle. </p>
|
|
325
|
+
*/
|
|
326
|
+
export class WisdomClient extends __Client<
|
|
327
|
+
__HttpHandlerOptions,
|
|
328
|
+
ServiceInputTypes,
|
|
329
|
+
ServiceOutputTypes,
|
|
330
|
+
WisdomClientResolvedConfig
|
|
331
|
+
> {
|
|
332
|
+
/**
|
|
333
|
+
* The resolved configuration of WisdomClient class. This is resolved and normalized from the {@link WisdomClientConfig | constructor configuration interface}.
|
|
334
|
+
*/
|
|
335
|
+
readonly config: WisdomClientResolvedConfig;
|
|
336
|
+
|
|
337
|
+
constructor(configuration: WisdomClientConfig) {
|
|
338
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
339
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
340
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
341
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
342
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
343
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
344
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
345
|
+
super(_config_6);
|
|
346
|
+
this.config = _config_6;
|
|
347
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
348
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
349
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
350
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
351
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
352
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
357
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
358
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
359
|
+
*/
|
|
360
|
+
destroy(): void {
|
|
361
|
+
super.destroy();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { CreateAssistantAssociationRequest, CreateAssistantAssociationResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1CreateAssistantAssociationCommand,
|
|
17
|
+
serializeAws_restJson1CreateAssistantAssociationCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface CreateAssistantAssociationCommandInput extends CreateAssistantAssociationRequest {}
|
|
22
|
+
export interface CreateAssistantAssociationCommandOutput extends CreateAssistantAssociationResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates an association between an Amazon Connect Wisdom assistant and another resource. Currently, the
|
|
26
|
+
* only supported association is with a knowledge base. An assistant can have only a single
|
|
27
|
+
* association.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { WisdomClient, CreateAssistantAssociationCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
32
|
+
* // const { WisdomClient, CreateAssistantAssociationCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
33
|
+
* const client = new WisdomClient(config);
|
|
34
|
+
* const command = new CreateAssistantAssociationCommand(input);
|
|
35
|
+
* const response = await client.send(command);
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @see {@link CreateAssistantAssociationCommandInput} for command's `input` shape.
|
|
39
|
+
* @see {@link CreateAssistantAssociationCommandOutput} for command's `response` shape.
|
|
40
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export class CreateAssistantAssociationCommand extends $Command<
|
|
44
|
+
CreateAssistantAssociationCommandInput,
|
|
45
|
+
CreateAssistantAssociationCommandOutput,
|
|
46
|
+
WisdomClientResolvedConfig
|
|
47
|
+
> {
|
|
48
|
+
// Start section: command_properties
|
|
49
|
+
// End section: command_properties
|
|
50
|
+
|
|
51
|
+
constructor(readonly input: CreateAssistantAssociationCommandInput) {
|
|
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<CreateAssistantAssociationCommandInput, CreateAssistantAssociationCommandOutput> {
|
|
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 = "CreateAssistantAssociationCommand";
|
|
72
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
+
logger,
|
|
74
|
+
clientName,
|
|
75
|
+
commandName,
|
|
76
|
+
inputFilterSensitiveLog: CreateAssistantAssociationRequest.filterSensitiveLog,
|
|
77
|
+
outputFilterSensitiveLog: CreateAssistantAssociationResponse.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: CreateAssistantAssociationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
+
return serializeAws_restJson1CreateAssistantAssociationCommand(input, context);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private deserialize(
|
|
92
|
+
output: __HttpResponse,
|
|
93
|
+
context: __SerdeContext
|
|
94
|
+
): Promise<CreateAssistantAssociationCommandOutput> {
|
|
95
|
+
return deserializeAws_restJson1CreateAssistantAssociationCommand(output, context);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Start section: command_body_extra
|
|
99
|
+
// End section: command_body_extra
|
|
100
|
+
}
|
|
@@ -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 { CreateAssistantRequest, CreateAssistantResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1CreateAssistantCommand,
|
|
17
|
+
serializeAws_restJson1CreateAssistantCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface CreateAssistantCommandInput extends CreateAssistantRequest {}
|
|
22
|
+
export interface CreateAssistantCommandOutput extends CreateAssistantResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates an Amazon Connect Wisdom assistant.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WisdomClient, CreateAssistantCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
30
|
+
* // const { WisdomClient, CreateAssistantCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
31
|
+
* const client = new WisdomClient(config);
|
|
32
|
+
* const command = new CreateAssistantCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link CreateAssistantCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link CreateAssistantCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class CreateAssistantCommand extends $Command<
|
|
42
|
+
CreateAssistantCommandInput,
|
|
43
|
+
CreateAssistantCommandOutput,
|
|
44
|
+
WisdomClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: CreateAssistantCommandInput) {
|
|
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<CreateAssistantCommandInput, CreateAssistantCommandOutput> {
|
|
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 = "CreateAssistantCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: CreateAssistantRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: CreateAssistantResponse.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: CreateAssistantCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_restJson1CreateAssistantCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateAssistantCommandOutput> {
|
|
90
|
+
return deserializeAws_restJson1CreateAssistantCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { CreateContentRequest, CreateContentResponse } from "../models/models_0";
|
|
15
|
+
import {
|
|
16
|
+
deserializeAws_restJson1CreateContentCommand,
|
|
17
|
+
serializeAws_restJson1CreateContentCommand,
|
|
18
|
+
} from "../protocols/Aws_restJson1";
|
|
19
|
+
import { ServiceInputTypes, ServiceOutputTypes, WisdomClientResolvedConfig } from "../WisdomClient";
|
|
20
|
+
|
|
21
|
+
export interface CreateContentCommandInput extends CreateContentRequest {}
|
|
22
|
+
export interface CreateContentCommandOutput extends CreateContentResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates Wisdom content. Before to calling this API, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a> to
|
|
26
|
+
* upload an asset.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { WisdomClient, CreateContentCommand } from "@aws-sdk/client-wisdom"; // ES Modules import
|
|
31
|
+
* // const { WisdomClient, CreateContentCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import
|
|
32
|
+
* const client = new WisdomClient(config);
|
|
33
|
+
* const command = new CreateContentCommand(input);
|
|
34
|
+
* const response = await client.send(command);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see {@link CreateContentCommandInput} for command's `input` shape.
|
|
38
|
+
* @see {@link CreateContentCommandOutput} for command's `response` shape.
|
|
39
|
+
* @see {@link WisdomClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export class CreateContentCommand extends $Command<
|
|
43
|
+
CreateContentCommandInput,
|
|
44
|
+
CreateContentCommandOutput,
|
|
45
|
+
WisdomClientResolvedConfig
|
|
46
|
+
> {
|
|
47
|
+
// Start section: command_properties
|
|
48
|
+
// End section: command_properties
|
|
49
|
+
|
|
50
|
+
constructor(readonly input: CreateContentCommandInput) {
|
|
51
|
+
// Start section: command_constructor
|
|
52
|
+
super();
|
|
53
|
+
// End section: command_constructor
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
resolveMiddleware(
|
|
60
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
+
configuration: WisdomClientResolvedConfig,
|
|
62
|
+
options?: __HttpHandlerOptions
|
|
63
|
+
): Handler<CreateContentCommandInput, CreateContentCommandOutput> {
|
|
64
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
+
|
|
66
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
+
|
|
68
|
+
const { logger } = configuration;
|
|
69
|
+
const clientName = "WisdomClient";
|
|
70
|
+
const commandName = "CreateContentCommand";
|
|
71
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
+
logger,
|
|
73
|
+
clientName,
|
|
74
|
+
commandName,
|
|
75
|
+
inputFilterSensitiveLog: CreateContentRequest.filterSensitiveLog,
|
|
76
|
+
outputFilterSensitiveLog: CreateContentResponse.filterSensitiveLog,
|
|
77
|
+
};
|
|
78
|
+
const { requestHandler } = configuration;
|
|
79
|
+
return stack.resolve(
|
|
80
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
+
handlerExecutionContext
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private serialize(input: CreateContentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
+
return serializeAws_restJson1CreateContentCommand(input, context);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateContentCommandOutput> {
|
|
91
|
+
return deserializeAws_restJson1CreateContentCommand(output, context);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Start section: command_body_extra
|
|
95
|
+
// End section: command_body_extra
|
|
96
|
+
}
|