@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
package/src/Wisdom.ts
ADDED
|
@@ -0,0 +1,1175 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
CreateAssistantAssociationCommand,
|
|
5
|
+
CreateAssistantAssociationCommandInput,
|
|
6
|
+
CreateAssistantAssociationCommandOutput,
|
|
7
|
+
} from "./commands/CreateAssistantAssociationCommand";
|
|
8
|
+
import {
|
|
9
|
+
CreateAssistantCommand,
|
|
10
|
+
CreateAssistantCommandInput,
|
|
11
|
+
CreateAssistantCommandOutput,
|
|
12
|
+
} from "./commands/CreateAssistantCommand";
|
|
13
|
+
import {
|
|
14
|
+
CreateContentCommand,
|
|
15
|
+
CreateContentCommandInput,
|
|
16
|
+
CreateContentCommandOutput,
|
|
17
|
+
} from "./commands/CreateContentCommand";
|
|
18
|
+
import {
|
|
19
|
+
CreateKnowledgeBaseCommand,
|
|
20
|
+
CreateKnowledgeBaseCommandInput,
|
|
21
|
+
CreateKnowledgeBaseCommandOutput,
|
|
22
|
+
} from "./commands/CreateKnowledgeBaseCommand";
|
|
23
|
+
import {
|
|
24
|
+
CreateSessionCommand,
|
|
25
|
+
CreateSessionCommandInput,
|
|
26
|
+
CreateSessionCommandOutput,
|
|
27
|
+
} from "./commands/CreateSessionCommand";
|
|
28
|
+
import {
|
|
29
|
+
DeleteAssistantAssociationCommand,
|
|
30
|
+
DeleteAssistantAssociationCommandInput,
|
|
31
|
+
DeleteAssistantAssociationCommandOutput,
|
|
32
|
+
} from "./commands/DeleteAssistantAssociationCommand";
|
|
33
|
+
import {
|
|
34
|
+
DeleteAssistantCommand,
|
|
35
|
+
DeleteAssistantCommandInput,
|
|
36
|
+
DeleteAssistantCommandOutput,
|
|
37
|
+
} from "./commands/DeleteAssistantCommand";
|
|
38
|
+
import {
|
|
39
|
+
DeleteContentCommand,
|
|
40
|
+
DeleteContentCommandInput,
|
|
41
|
+
DeleteContentCommandOutput,
|
|
42
|
+
} from "./commands/DeleteContentCommand";
|
|
43
|
+
import {
|
|
44
|
+
DeleteKnowledgeBaseCommand,
|
|
45
|
+
DeleteKnowledgeBaseCommandInput,
|
|
46
|
+
DeleteKnowledgeBaseCommandOutput,
|
|
47
|
+
} from "./commands/DeleteKnowledgeBaseCommand";
|
|
48
|
+
import {
|
|
49
|
+
GetAssistantAssociationCommand,
|
|
50
|
+
GetAssistantAssociationCommandInput,
|
|
51
|
+
GetAssistantAssociationCommandOutput,
|
|
52
|
+
} from "./commands/GetAssistantAssociationCommand";
|
|
53
|
+
import {
|
|
54
|
+
GetAssistantCommand,
|
|
55
|
+
GetAssistantCommandInput,
|
|
56
|
+
GetAssistantCommandOutput,
|
|
57
|
+
} from "./commands/GetAssistantCommand";
|
|
58
|
+
import { GetContentCommand, GetContentCommandInput, GetContentCommandOutput } from "./commands/GetContentCommand";
|
|
59
|
+
import {
|
|
60
|
+
GetContentSummaryCommand,
|
|
61
|
+
GetContentSummaryCommandInput,
|
|
62
|
+
GetContentSummaryCommandOutput,
|
|
63
|
+
} from "./commands/GetContentSummaryCommand";
|
|
64
|
+
import {
|
|
65
|
+
GetKnowledgeBaseCommand,
|
|
66
|
+
GetKnowledgeBaseCommandInput,
|
|
67
|
+
GetKnowledgeBaseCommandOutput,
|
|
68
|
+
} from "./commands/GetKnowledgeBaseCommand";
|
|
69
|
+
import {
|
|
70
|
+
GetRecommendationsCommand,
|
|
71
|
+
GetRecommendationsCommandInput,
|
|
72
|
+
GetRecommendationsCommandOutput,
|
|
73
|
+
} from "./commands/GetRecommendationsCommand";
|
|
74
|
+
import { GetSessionCommand, GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
|
|
75
|
+
import {
|
|
76
|
+
ListAssistantAssociationsCommand,
|
|
77
|
+
ListAssistantAssociationsCommandInput,
|
|
78
|
+
ListAssistantAssociationsCommandOutput,
|
|
79
|
+
} from "./commands/ListAssistantAssociationsCommand";
|
|
80
|
+
import {
|
|
81
|
+
ListAssistantsCommand,
|
|
82
|
+
ListAssistantsCommandInput,
|
|
83
|
+
ListAssistantsCommandOutput,
|
|
84
|
+
} from "./commands/ListAssistantsCommand";
|
|
85
|
+
import {
|
|
86
|
+
ListContentsCommand,
|
|
87
|
+
ListContentsCommandInput,
|
|
88
|
+
ListContentsCommandOutput,
|
|
89
|
+
} from "./commands/ListContentsCommand";
|
|
90
|
+
import {
|
|
91
|
+
ListKnowledgeBasesCommand,
|
|
92
|
+
ListKnowledgeBasesCommandInput,
|
|
93
|
+
ListKnowledgeBasesCommandOutput,
|
|
94
|
+
} from "./commands/ListKnowledgeBasesCommand";
|
|
95
|
+
import {
|
|
96
|
+
ListTagsForResourceCommand,
|
|
97
|
+
ListTagsForResourceCommandInput,
|
|
98
|
+
ListTagsForResourceCommandOutput,
|
|
99
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
100
|
+
import {
|
|
101
|
+
NotifyRecommendationsReceivedCommand,
|
|
102
|
+
NotifyRecommendationsReceivedCommandInput,
|
|
103
|
+
NotifyRecommendationsReceivedCommandOutput,
|
|
104
|
+
} from "./commands/NotifyRecommendationsReceivedCommand";
|
|
105
|
+
import {
|
|
106
|
+
QueryAssistantCommand,
|
|
107
|
+
QueryAssistantCommandInput,
|
|
108
|
+
QueryAssistantCommandOutput,
|
|
109
|
+
} from "./commands/QueryAssistantCommand";
|
|
110
|
+
import {
|
|
111
|
+
RemoveKnowledgeBaseTemplateUriCommand,
|
|
112
|
+
RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
113
|
+
RemoveKnowledgeBaseTemplateUriCommandOutput,
|
|
114
|
+
} from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
|
|
115
|
+
import {
|
|
116
|
+
SearchContentCommand,
|
|
117
|
+
SearchContentCommandInput,
|
|
118
|
+
SearchContentCommandOutput,
|
|
119
|
+
} from "./commands/SearchContentCommand";
|
|
120
|
+
import {
|
|
121
|
+
SearchSessionsCommand,
|
|
122
|
+
SearchSessionsCommandInput,
|
|
123
|
+
SearchSessionsCommandOutput,
|
|
124
|
+
} from "./commands/SearchSessionsCommand";
|
|
125
|
+
import {
|
|
126
|
+
StartContentUploadCommand,
|
|
127
|
+
StartContentUploadCommandInput,
|
|
128
|
+
StartContentUploadCommandOutput,
|
|
129
|
+
} from "./commands/StartContentUploadCommand";
|
|
130
|
+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
131
|
+
import {
|
|
132
|
+
UntagResourceCommand,
|
|
133
|
+
UntagResourceCommandInput,
|
|
134
|
+
UntagResourceCommandOutput,
|
|
135
|
+
} from "./commands/UntagResourceCommand";
|
|
136
|
+
import {
|
|
137
|
+
UpdateContentCommand,
|
|
138
|
+
UpdateContentCommandInput,
|
|
139
|
+
UpdateContentCommandOutput,
|
|
140
|
+
} from "./commands/UpdateContentCommand";
|
|
141
|
+
import {
|
|
142
|
+
UpdateKnowledgeBaseTemplateUriCommand,
|
|
143
|
+
UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
144
|
+
UpdateKnowledgeBaseTemplateUriCommandOutput,
|
|
145
|
+
} from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
|
|
146
|
+
import { WisdomClient } from "./WisdomClient";
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
|
|
150
|
+
* assistant and a knowledge base.</p>
|
|
151
|
+
*
|
|
152
|
+
* <p>Some more advanced features are only accessible using the Wisdom API. For example, you
|
|
153
|
+
* can manually manage content by uploading custom files and control their lifecycle. </p>
|
|
154
|
+
*/
|
|
155
|
+
export class Wisdom extends WisdomClient {
|
|
156
|
+
/**
|
|
157
|
+
* <p>Creates an Amazon Connect Wisdom assistant.</p>
|
|
158
|
+
*/
|
|
159
|
+
public createAssistant(
|
|
160
|
+
args: CreateAssistantCommandInput,
|
|
161
|
+
options?: __HttpHandlerOptions
|
|
162
|
+
): Promise<CreateAssistantCommandOutput>;
|
|
163
|
+
public createAssistant(
|
|
164
|
+
args: CreateAssistantCommandInput,
|
|
165
|
+
cb: (err: any, data?: CreateAssistantCommandOutput) => void
|
|
166
|
+
): void;
|
|
167
|
+
public createAssistant(
|
|
168
|
+
args: CreateAssistantCommandInput,
|
|
169
|
+
options: __HttpHandlerOptions,
|
|
170
|
+
cb: (err: any, data?: CreateAssistantCommandOutput) => void
|
|
171
|
+
): void;
|
|
172
|
+
public createAssistant(
|
|
173
|
+
args: CreateAssistantCommandInput,
|
|
174
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssistantCommandOutput) => void),
|
|
175
|
+
cb?: (err: any, data?: CreateAssistantCommandOutput) => void
|
|
176
|
+
): Promise<CreateAssistantCommandOutput> | void {
|
|
177
|
+
const command = new CreateAssistantCommand(args);
|
|
178
|
+
if (typeof optionsOrCb === "function") {
|
|
179
|
+
this.send(command, optionsOrCb);
|
|
180
|
+
} else if (typeof cb === "function") {
|
|
181
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
+
} else {
|
|
184
|
+
return this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* <p>Creates an association between an Amazon Connect Wisdom assistant and another resource. Currently, the
|
|
190
|
+
* only supported association is with a knowledge base. An assistant can have only a single
|
|
191
|
+
* association.</p>
|
|
192
|
+
*/
|
|
193
|
+
public createAssistantAssociation(
|
|
194
|
+
args: CreateAssistantAssociationCommandInput,
|
|
195
|
+
options?: __HttpHandlerOptions
|
|
196
|
+
): Promise<CreateAssistantAssociationCommandOutput>;
|
|
197
|
+
public createAssistantAssociation(
|
|
198
|
+
args: CreateAssistantAssociationCommandInput,
|
|
199
|
+
cb: (err: any, data?: CreateAssistantAssociationCommandOutput) => void
|
|
200
|
+
): void;
|
|
201
|
+
public createAssistantAssociation(
|
|
202
|
+
args: CreateAssistantAssociationCommandInput,
|
|
203
|
+
options: __HttpHandlerOptions,
|
|
204
|
+
cb: (err: any, data?: CreateAssistantAssociationCommandOutput) => void
|
|
205
|
+
): void;
|
|
206
|
+
public createAssistantAssociation(
|
|
207
|
+
args: CreateAssistantAssociationCommandInput,
|
|
208
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAssistantAssociationCommandOutput) => void),
|
|
209
|
+
cb?: (err: any, data?: CreateAssistantAssociationCommandOutput) => void
|
|
210
|
+
): Promise<CreateAssistantAssociationCommandOutput> | void {
|
|
211
|
+
const command = new CreateAssistantAssociationCommand(args);
|
|
212
|
+
if (typeof optionsOrCb === "function") {
|
|
213
|
+
this.send(command, optionsOrCb);
|
|
214
|
+
} else if (typeof cb === "function") {
|
|
215
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
217
|
+
} else {
|
|
218
|
+
return this.send(command, optionsOrCb);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* <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
|
|
224
|
+
* upload an asset.</p>
|
|
225
|
+
*/
|
|
226
|
+
public createContent(
|
|
227
|
+
args: CreateContentCommandInput,
|
|
228
|
+
options?: __HttpHandlerOptions
|
|
229
|
+
): Promise<CreateContentCommandOutput>;
|
|
230
|
+
public createContent(
|
|
231
|
+
args: CreateContentCommandInput,
|
|
232
|
+
cb: (err: any, data?: CreateContentCommandOutput) => void
|
|
233
|
+
): void;
|
|
234
|
+
public createContent(
|
|
235
|
+
args: CreateContentCommandInput,
|
|
236
|
+
options: __HttpHandlerOptions,
|
|
237
|
+
cb: (err: any, data?: CreateContentCommandOutput) => void
|
|
238
|
+
): void;
|
|
239
|
+
public createContent(
|
|
240
|
+
args: CreateContentCommandInput,
|
|
241
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateContentCommandOutput) => void),
|
|
242
|
+
cb?: (err: any, data?: CreateContentCommandOutput) => void
|
|
243
|
+
): Promise<CreateContentCommandOutput> | void {
|
|
244
|
+
const command = new CreateContentCommand(args);
|
|
245
|
+
if (typeof optionsOrCb === "function") {
|
|
246
|
+
this.send(command, optionsOrCb);
|
|
247
|
+
} else if (typeof cb === "function") {
|
|
248
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
+
} else {
|
|
251
|
+
return this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* <p>Creates a knowledge base.</p>
|
|
257
|
+
* <note>
|
|
258
|
+
* <p>When using this API, you cannot reuse <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html">Amazon AppIntegrations</a>
|
|
259
|
+
* DataIntegrations with external knowledge bases such as Salesforce and ServiceNow. If you do,
|
|
260
|
+
* you'll get an <code>InvalidRequestException</code> error. </p>
|
|
261
|
+
*
|
|
262
|
+
* <p>For example, you're programmatically managing your external knowledge base, and you want
|
|
263
|
+
* to add or remove one of the fields that is being ingested from Salesforce. Do the
|
|
264
|
+
* following:</p>
|
|
265
|
+
* <ol>
|
|
266
|
+
* <li>
|
|
267
|
+
* <p>Call <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_DeleteKnowledgeBase.html">DeleteKnowledgeBase</a>.</p>
|
|
268
|
+
* </li>
|
|
269
|
+
* <li>
|
|
270
|
+
* <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html">DeleteDataIntegration</a>.</p>
|
|
271
|
+
* </li>
|
|
272
|
+
* <li>
|
|
273
|
+
* <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> to recreate the DataIntegration or a create different
|
|
274
|
+
* one.</p>
|
|
275
|
+
* </li>
|
|
276
|
+
* <li>
|
|
277
|
+
* <p>Call CreateKnowledgeBase.</p>
|
|
278
|
+
* </li>
|
|
279
|
+
* </ol>
|
|
280
|
+
* </note>
|
|
281
|
+
*/
|
|
282
|
+
public createKnowledgeBase(
|
|
283
|
+
args: CreateKnowledgeBaseCommandInput,
|
|
284
|
+
options?: __HttpHandlerOptions
|
|
285
|
+
): Promise<CreateKnowledgeBaseCommandOutput>;
|
|
286
|
+
public createKnowledgeBase(
|
|
287
|
+
args: CreateKnowledgeBaseCommandInput,
|
|
288
|
+
cb: (err: any, data?: CreateKnowledgeBaseCommandOutput) => void
|
|
289
|
+
): void;
|
|
290
|
+
public createKnowledgeBase(
|
|
291
|
+
args: CreateKnowledgeBaseCommandInput,
|
|
292
|
+
options: __HttpHandlerOptions,
|
|
293
|
+
cb: (err: any, data?: CreateKnowledgeBaseCommandOutput) => void
|
|
294
|
+
): void;
|
|
295
|
+
public createKnowledgeBase(
|
|
296
|
+
args: CreateKnowledgeBaseCommandInput,
|
|
297
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateKnowledgeBaseCommandOutput) => void),
|
|
298
|
+
cb?: (err: any, data?: CreateKnowledgeBaseCommandOutput) => void
|
|
299
|
+
): Promise<CreateKnowledgeBaseCommandOutput> | void {
|
|
300
|
+
const command = new CreateKnowledgeBaseCommand(args);
|
|
301
|
+
if (typeof optionsOrCb === "function") {
|
|
302
|
+
this.send(command, optionsOrCb);
|
|
303
|
+
} else if (typeof cb === "function") {
|
|
304
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
+
} else {
|
|
307
|
+
return this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* <p>Creates a session. A session is a contextual container used for generating
|
|
313
|
+
* recommendations. Amazon Connect creates a new Wisdom session for each contact on which Wisdom is
|
|
314
|
+
* enabled.</p>
|
|
315
|
+
*/
|
|
316
|
+
public createSession(
|
|
317
|
+
args: CreateSessionCommandInput,
|
|
318
|
+
options?: __HttpHandlerOptions
|
|
319
|
+
): Promise<CreateSessionCommandOutput>;
|
|
320
|
+
public createSession(
|
|
321
|
+
args: CreateSessionCommandInput,
|
|
322
|
+
cb: (err: any, data?: CreateSessionCommandOutput) => void
|
|
323
|
+
): void;
|
|
324
|
+
public createSession(
|
|
325
|
+
args: CreateSessionCommandInput,
|
|
326
|
+
options: __HttpHandlerOptions,
|
|
327
|
+
cb: (err: any, data?: CreateSessionCommandOutput) => void
|
|
328
|
+
): void;
|
|
329
|
+
public createSession(
|
|
330
|
+
args: CreateSessionCommandInput,
|
|
331
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateSessionCommandOutput) => void),
|
|
332
|
+
cb?: (err: any, data?: CreateSessionCommandOutput) => void
|
|
333
|
+
): Promise<CreateSessionCommandOutput> | void {
|
|
334
|
+
const command = new CreateSessionCommand(args);
|
|
335
|
+
if (typeof optionsOrCb === "function") {
|
|
336
|
+
this.send(command, optionsOrCb);
|
|
337
|
+
} else if (typeof cb === "function") {
|
|
338
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
339
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
340
|
+
} else {
|
|
341
|
+
return this.send(command, optionsOrCb);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* <p>Deletes an assistant.</p>
|
|
347
|
+
*/
|
|
348
|
+
public deleteAssistant(
|
|
349
|
+
args: DeleteAssistantCommandInput,
|
|
350
|
+
options?: __HttpHandlerOptions
|
|
351
|
+
): Promise<DeleteAssistantCommandOutput>;
|
|
352
|
+
public deleteAssistant(
|
|
353
|
+
args: DeleteAssistantCommandInput,
|
|
354
|
+
cb: (err: any, data?: DeleteAssistantCommandOutput) => void
|
|
355
|
+
): void;
|
|
356
|
+
public deleteAssistant(
|
|
357
|
+
args: DeleteAssistantCommandInput,
|
|
358
|
+
options: __HttpHandlerOptions,
|
|
359
|
+
cb: (err: any, data?: DeleteAssistantCommandOutput) => void
|
|
360
|
+
): void;
|
|
361
|
+
public deleteAssistant(
|
|
362
|
+
args: DeleteAssistantCommandInput,
|
|
363
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssistantCommandOutput) => void),
|
|
364
|
+
cb?: (err: any, data?: DeleteAssistantCommandOutput) => void
|
|
365
|
+
): Promise<DeleteAssistantCommandOutput> | void {
|
|
366
|
+
const command = new DeleteAssistantCommand(args);
|
|
367
|
+
if (typeof optionsOrCb === "function") {
|
|
368
|
+
this.send(command, optionsOrCb);
|
|
369
|
+
} else if (typeof cb === "function") {
|
|
370
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
371
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
372
|
+
} else {
|
|
373
|
+
return this.send(command, optionsOrCb);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* <p>Deletes an assistant association.</p>
|
|
379
|
+
*/
|
|
380
|
+
public deleteAssistantAssociation(
|
|
381
|
+
args: DeleteAssistantAssociationCommandInput,
|
|
382
|
+
options?: __HttpHandlerOptions
|
|
383
|
+
): Promise<DeleteAssistantAssociationCommandOutput>;
|
|
384
|
+
public deleteAssistantAssociation(
|
|
385
|
+
args: DeleteAssistantAssociationCommandInput,
|
|
386
|
+
cb: (err: any, data?: DeleteAssistantAssociationCommandOutput) => void
|
|
387
|
+
): void;
|
|
388
|
+
public deleteAssistantAssociation(
|
|
389
|
+
args: DeleteAssistantAssociationCommandInput,
|
|
390
|
+
options: __HttpHandlerOptions,
|
|
391
|
+
cb: (err: any, data?: DeleteAssistantAssociationCommandOutput) => void
|
|
392
|
+
): void;
|
|
393
|
+
public deleteAssistantAssociation(
|
|
394
|
+
args: DeleteAssistantAssociationCommandInput,
|
|
395
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAssistantAssociationCommandOutput) => void),
|
|
396
|
+
cb?: (err: any, data?: DeleteAssistantAssociationCommandOutput) => void
|
|
397
|
+
): Promise<DeleteAssistantAssociationCommandOutput> | void {
|
|
398
|
+
const command = new DeleteAssistantAssociationCommand(args);
|
|
399
|
+
if (typeof optionsOrCb === "function") {
|
|
400
|
+
this.send(command, optionsOrCb);
|
|
401
|
+
} else if (typeof cb === "function") {
|
|
402
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
403
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
404
|
+
} else {
|
|
405
|
+
return this.send(command, optionsOrCb);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* <p>Deletes the content.</p>
|
|
411
|
+
*/
|
|
412
|
+
public deleteContent(
|
|
413
|
+
args: DeleteContentCommandInput,
|
|
414
|
+
options?: __HttpHandlerOptions
|
|
415
|
+
): Promise<DeleteContentCommandOutput>;
|
|
416
|
+
public deleteContent(
|
|
417
|
+
args: DeleteContentCommandInput,
|
|
418
|
+
cb: (err: any, data?: DeleteContentCommandOutput) => void
|
|
419
|
+
): void;
|
|
420
|
+
public deleteContent(
|
|
421
|
+
args: DeleteContentCommandInput,
|
|
422
|
+
options: __HttpHandlerOptions,
|
|
423
|
+
cb: (err: any, data?: DeleteContentCommandOutput) => void
|
|
424
|
+
): void;
|
|
425
|
+
public deleteContent(
|
|
426
|
+
args: DeleteContentCommandInput,
|
|
427
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteContentCommandOutput) => void),
|
|
428
|
+
cb?: (err: any, data?: DeleteContentCommandOutput) => void
|
|
429
|
+
): Promise<DeleteContentCommandOutput> | void {
|
|
430
|
+
const command = new DeleteContentCommand(args);
|
|
431
|
+
if (typeof optionsOrCb === "function") {
|
|
432
|
+
this.send(command, optionsOrCb);
|
|
433
|
+
} else if (typeof cb === "function") {
|
|
434
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
+
} else {
|
|
437
|
+
return this.send(command, optionsOrCb);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* <p>Deletes the knowledge base.</p>
|
|
443
|
+
* <note>
|
|
444
|
+
* <p>When you use this API to delete an external knowledge base such as Salesforce or
|
|
445
|
+
* ServiceNow, you must also delete the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html">Amazon AppIntegrations</a> DataIntegration.
|
|
446
|
+
* This is because you can't reuse the DataIntegration after it's been associated with an
|
|
447
|
+
* external knowledge base. However, you can delete and recreate it. See <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html">DeleteDataIntegration</a> and <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html">CreateDataIntegration</a> in the <i>Amazon AppIntegrations API
|
|
448
|
+
* Reference</i>.</p>
|
|
449
|
+
* </note>
|
|
450
|
+
*/
|
|
451
|
+
public deleteKnowledgeBase(
|
|
452
|
+
args: DeleteKnowledgeBaseCommandInput,
|
|
453
|
+
options?: __HttpHandlerOptions
|
|
454
|
+
): Promise<DeleteKnowledgeBaseCommandOutput>;
|
|
455
|
+
public deleteKnowledgeBase(
|
|
456
|
+
args: DeleteKnowledgeBaseCommandInput,
|
|
457
|
+
cb: (err: any, data?: DeleteKnowledgeBaseCommandOutput) => void
|
|
458
|
+
): void;
|
|
459
|
+
public deleteKnowledgeBase(
|
|
460
|
+
args: DeleteKnowledgeBaseCommandInput,
|
|
461
|
+
options: __HttpHandlerOptions,
|
|
462
|
+
cb: (err: any, data?: DeleteKnowledgeBaseCommandOutput) => void
|
|
463
|
+
): void;
|
|
464
|
+
public deleteKnowledgeBase(
|
|
465
|
+
args: DeleteKnowledgeBaseCommandInput,
|
|
466
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteKnowledgeBaseCommandOutput) => void),
|
|
467
|
+
cb?: (err: any, data?: DeleteKnowledgeBaseCommandOutput) => void
|
|
468
|
+
): Promise<DeleteKnowledgeBaseCommandOutput> | void {
|
|
469
|
+
const command = new DeleteKnowledgeBaseCommand(args);
|
|
470
|
+
if (typeof optionsOrCb === "function") {
|
|
471
|
+
this.send(command, optionsOrCb);
|
|
472
|
+
} else if (typeof cb === "function") {
|
|
473
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
474
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
475
|
+
} else {
|
|
476
|
+
return this.send(command, optionsOrCb);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* <p>Retrieves information about an assistant.</p>
|
|
482
|
+
*/
|
|
483
|
+
public getAssistant(
|
|
484
|
+
args: GetAssistantCommandInput,
|
|
485
|
+
options?: __HttpHandlerOptions
|
|
486
|
+
): Promise<GetAssistantCommandOutput>;
|
|
487
|
+
public getAssistant(args: GetAssistantCommandInput, cb: (err: any, data?: GetAssistantCommandOutput) => void): void;
|
|
488
|
+
public getAssistant(
|
|
489
|
+
args: GetAssistantCommandInput,
|
|
490
|
+
options: __HttpHandlerOptions,
|
|
491
|
+
cb: (err: any, data?: GetAssistantCommandOutput) => void
|
|
492
|
+
): void;
|
|
493
|
+
public getAssistant(
|
|
494
|
+
args: GetAssistantCommandInput,
|
|
495
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAssistantCommandOutput) => void),
|
|
496
|
+
cb?: (err: any, data?: GetAssistantCommandOutput) => void
|
|
497
|
+
): Promise<GetAssistantCommandOutput> | void {
|
|
498
|
+
const command = new GetAssistantCommand(args);
|
|
499
|
+
if (typeof optionsOrCb === "function") {
|
|
500
|
+
this.send(command, optionsOrCb);
|
|
501
|
+
} else if (typeof cb === "function") {
|
|
502
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
503
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
504
|
+
} else {
|
|
505
|
+
return this.send(command, optionsOrCb);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* <p>Retrieves information about an assistant association.</p>
|
|
511
|
+
*/
|
|
512
|
+
public getAssistantAssociation(
|
|
513
|
+
args: GetAssistantAssociationCommandInput,
|
|
514
|
+
options?: __HttpHandlerOptions
|
|
515
|
+
): Promise<GetAssistantAssociationCommandOutput>;
|
|
516
|
+
public getAssistantAssociation(
|
|
517
|
+
args: GetAssistantAssociationCommandInput,
|
|
518
|
+
cb: (err: any, data?: GetAssistantAssociationCommandOutput) => void
|
|
519
|
+
): void;
|
|
520
|
+
public getAssistantAssociation(
|
|
521
|
+
args: GetAssistantAssociationCommandInput,
|
|
522
|
+
options: __HttpHandlerOptions,
|
|
523
|
+
cb: (err: any, data?: GetAssistantAssociationCommandOutput) => void
|
|
524
|
+
): void;
|
|
525
|
+
public getAssistantAssociation(
|
|
526
|
+
args: GetAssistantAssociationCommandInput,
|
|
527
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAssistantAssociationCommandOutput) => void),
|
|
528
|
+
cb?: (err: any, data?: GetAssistantAssociationCommandOutput) => void
|
|
529
|
+
): Promise<GetAssistantAssociationCommandOutput> | void {
|
|
530
|
+
const command = new GetAssistantAssociationCommand(args);
|
|
531
|
+
if (typeof optionsOrCb === "function") {
|
|
532
|
+
this.send(command, optionsOrCb);
|
|
533
|
+
} else if (typeof cb === "function") {
|
|
534
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
535
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
536
|
+
} else {
|
|
537
|
+
return this.send(command, optionsOrCb);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* <p>Retrieves content, including a pre-signed URL to download the content.</p>
|
|
543
|
+
*/
|
|
544
|
+
public getContent(args: GetContentCommandInput, options?: __HttpHandlerOptions): Promise<GetContentCommandOutput>;
|
|
545
|
+
public getContent(args: GetContentCommandInput, cb: (err: any, data?: GetContentCommandOutput) => void): void;
|
|
546
|
+
public getContent(
|
|
547
|
+
args: GetContentCommandInput,
|
|
548
|
+
options: __HttpHandlerOptions,
|
|
549
|
+
cb: (err: any, data?: GetContentCommandOutput) => void
|
|
550
|
+
): void;
|
|
551
|
+
public getContent(
|
|
552
|
+
args: GetContentCommandInput,
|
|
553
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetContentCommandOutput) => void),
|
|
554
|
+
cb?: (err: any, data?: GetContentCommandOutput) => void
|
|
555
|
+
): Promise<GetContentCommandOutput> | void {
|
|
556
|
+
const command = new GetContentCommand(args);
|
|
557
|
+
if (typeof optionsOrCb === "function") {
|
|
558
|
+
this.send(command, optionsOrCb);
|
|
559
|
+
} else if (typeof cb === "function") {
|
|
560
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
561
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
562
|
+
} else {
|
|
563
|
+
return this.send(command, optionsOrCb);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* <p>Retrieves summary information about the content.</p>
|
|
569
|
+
*/
|
|
570
|
+
public getContentSummary(
|
|
571
|
+
args: GetContentSummaryCommandInput,
|
|
572
|
+
options?: __HttpHandlerOptions
|
|
573
|
+
): Promise<GetContentSummaryCommandOutput>;
|
|
574
|
+
public getContentSummary(
|
|
575
|
+
args: GetContentSummaryCommandInput,
|
|
576
|
+
cb: (err: any, data?: GetContentSummaryCommandOutput) => void
|
|
577
|
+
): void;
|
|
578
|
+
public getContentSummary(
|
|
579
|
+
args: GetContentSummaryCommandInput,
|
|
580
|
+
options: __HttpHandlerOptions,
|
|
581
|
+
cb: (err: any, data?: GetContentSummaryCommandOutput) => void
|
|
582
|
+
): void;
|
|
583
|
+
public getContentSummary(
|
|
584
|
+
args: GetContentSummaryCommandInput,
|
|
585
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetContentSummaryCommandOutput) => void),
|
|
586
|
+
cb?: (err: any, data?: GetContentSummaryCommandOutput) => void
|
|
587
|
+
): Promise<GetContentSummaryCommandOutput> | void {
|
|
588
|
+
const command = new GetContentSummaryCommand(args);
|
|
589
|
+
if (typeof optionsOrCb === "function") {
|
|
590
|
+
this.send(command, optionsOrCb);
|
|
591
|
+
} else if (typeof cb === "function") {
|
|
592
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
593
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
594
|
+
} else {
|
|
595
|
+
return this.send(command, optionsOrCb);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* <p>Retrieves information about the knowledge base.</p>
|
|
601
|
+
*/
|
|
602
|
+
public getKnowledgeBase(
|
|
603
|
+
args: GetKnowledgeBaseCommandInput,
|
|
604
|
+
options?: __HttpHandlerOptions
|
|
605
|
+
): Promise<GetKnowledgeBaseCommandOutput>;
|
|
606
|
+
public getKnowledgeBase(
|
|
607
|
+
args: GetKnowledgeBaseCommandInput,
|
|
608
|
+
cb: (err: any, data?: GetKnowledgeBaseCommandOutput) => void
|
|
609
|
+
): void;
|
|
610
|
+
public getKnowledgeBase(
|
|
611
|
+
args: GetKnowledgeBaseCommandInput,
|
|
612
|
+
options: __HttpHandlerOptions,
|
|
613
|
+
cb: (err: any, data?: GetKnowledgeBaseCommandOutput) => void
|
|
614
|
+
): void;
|
|
615
|
+
public getKnowledgeBase(
|
|
616
|
+
args: GetKnowledgeBaseCommandInput,
|
|
617
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetKnowledgeBaseCommandOutput) => void),
|
|
618
|
+
cb?: (err: any, data?: GetKnowledgeBaseCommandOutput) => void
|
|
619
|
+
): Promise<GetKnowledgeBaseCommandOutput> | void {
|
|
620
|
+
const command = new GetKnowledgeBaseCommand(args);
|
|
621
|
+
if (typeof optionsOrCb === "function") {
|
|
622
|
+
this.send(command, optionsOrCb);
|
|
623
|
+
} else if (typeof cb === "function") {
|
|
624
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
625
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
626
|
+
} else {
|
|
627
|
+
return this.send(command, optionsOrCb);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* <p>Retrieves recommendations for the specified session. To avoid retrieving the same
|
|
633
|
+
* recommendations in subsequent calls, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_NotifyRecommendationsReceived.html">NotifyRecommendationsReceived</a>. This API supports long-polling behavior with the
|
|
634
|
+
* <code>waitTimeSeconds</code> parameter. Short poll is the default behavior and only returns
|
|
635
|
+
* recommendations already available. To perform a manual query against an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html">QueryAssistant</a>.</p>
|
|
636
|
+
*/
|
|
637
|
+
public getRecommendations(
|
|
638
|
+
args: GetRecommendationsCommandInput,
|
|
639
|
+
options?: __HttpHandlerOptions
|
|
640
|
+
): Promise<GetRecommendationsCommandOutput>;
|
|
641
|
+
public getRecommendations(
|
|
642
|
+
args: GetRecommendationsCommandInput,
|
|
643
|
+
cb: (err: any, data?: GetRecommendationsCommandOutput) => void
|
|
644
|
+
): void;
|
|
645
|
+
public getRecommendations(
|
|
646
|
+
args: GetRecommendationsCommandInput,
|
|
647
|
+
options: __HttpHandlerOptions,
|
|
648
|
+
cb: (err: any, data?: GetRecommendationsCommandOutput) => void
|
|
649
|
+
): void;
|
|
650
|
+
public getRecommendations(
|
|
651
|
+
args: GetRecommendationsCommandInput,
|
|
652
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRecommendationsCommandOutput) => void),
|
|
653
|
+
cb?: (err: any, data?: GetRecommendationsCommandOutput) => void
|
|
654
|
+
): Promise<GetRecommendationsCommandOutput> | void {
|
|
655
|
+
const command = new GetRecommendationsCommand(args);
|
|
656
|
+
if (typeof optionsOrCb === "function") {
|
|
657
|
+
this.send(command, optionsOrCb);
|
|
658
|
+
} else if (typeof cb === "function") {
|
|
659
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
660
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
661
|
+
} else {
|
|
662
|
+
return this.send(command, optionsOrCb);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* <p>Retrieves information for a specified session.</p>
|
|
668
|
+
*/
|
|
669
|
+
public getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
|
|
670
|
+
public getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
|
|
671
|
+
public getSession(
|
|
672
|
+
args: GetSessionCommandInput,
|
|
673
|
+
options: __HttpHandlerOptions,
|
|
674
|
+
cb: (err: any, data?: GetSessionCommandOutput) => void
|
|
675
|
+
): void;
|
|
676
|
+
public getSession(
|
|
677
|
+
args: GetSessionCommandInput,
|
|
678
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSessionCommandOutput) => void),
|
|
679
|
+
cb?: (err: any, data?: GetSessionCommandOutput) => void
|
|
680
|
+
): Promise<GetSessionCommandOutput> | void {
|
|
681
|
+
const command = new GetSessionCommand(args);
|
|
682
|
+
if (typeof optionsOrCb === "function") {
|
|
683
|
+
this.send(command, optionsOrCb);
|
|
684
|
+
} else if (typeof cb === "function") {
|
|
685
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
687
|
+
} else {
|
|
688
|
+
return this.send(command, optionsOrCb);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* <p>Lists information about assistant associations.</p>
|
|
694
|
+
*/
|
|
695
|
+
public listAssistantAssociations(
|
|
696
|
+
args: ListAssistantAssociationsCommandInput,
|
|
697
|
+
options?: __HttpHandlerOptions
|
|
698
|
+
): Promise<ListAssistantAssociationsCommandOutput>;
|
|
699
|
+
public listAssistantAssociations(
|
|
700
|
+
args: ListAssistantAssociationsCommandInput,
|
|
701
|
+
cb: (err: any, data?: ListAssistantAssociationsCommandOutput) => void
|
|
702
|
+
): void;
|
|
703
|
+
public listAssistantAssociations(
|
|
704
|
+
args: ListAssistantAssociationsCommandInput,
|
|
705
|
+
options: __HttpHandlerOptions,
|
|
706
|
+
cb: (err: any, data?: ListAssistantAssociationsCommandOutput) => void
|
|
707
|
+
): void;
|
|
708
|
+
public listAssistantAssociations(
|
|
709
|
+
args: ListAssistantAssociationsCommandInput,
|
|
710
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssistantAssociationsCommandOutput) => void),
|
|
711
|
+
cb?: (err: any, data?: ListAssistantAssociationsCommandOutput) => void
|
|
712
|
+
): Promise<ListAssistantAssociationsCommandOutput> | void {
|
|
713
|
+
const command = new ListAssistantAssociationsCommand(args);
|
|
714
|
+
if (typeof optionsOrCb === "function") {
|
|
715
|
+
this.send(command, optionsOrCb);
|
|
716
|
+
} else if (typeof cb === "function") {
|
|
717
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
718
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
719
|
+
} else {
|
|
720
|
+
return this.send(command, optionsOrCb);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* <p>Lists information about assistants.</p>
|
|
726
|
+
*/
|
|
727
|
+
public listAssistants(
|
|
728
|
+
args: ListAssistantsCommandInput,
|
|
729
|
+
options?: __HttpHandlerOptions
|
|
730
|
+
): Promise<ListAssistantsCommandOutput>;
|
|
731
|
+
public listAssistants(
|
|
732
|
+
args: ListAssistantsCommandInput,
|
|
733
|
+
cb: (err: any, data?: ListAssistantsCommandOutput) => void
|
|
734
|
+
): void;
|
|
735
|
+
public listAssistants(
|
|
736
|
+
args: ListAssistantsCommandInput,
|
|
737
|
+
options: __HttpHandlerOptions,
|
|
738
|
+
cb: (err: any, data?: ListAssistantsCommandOutput) => void
|
|
739
|
+
): void;
|
|
740
|
+
public listAssistants(
|
|
741
|
+
args: ListAssistantsCommandInput,
|
|
742
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssistantsCommandOutput) => void),
|
|
743
|
+
cb?: (err: any, data?: ListAssistantsCommandOutput) => void
|
|
744
|
+
): Promise<ListAssistantsCommandOutput> | void {
|
|
745
|
+
const command = new ListAssistantsCommand(args);
|
|
746
|
+
if (typeof optionsOrCb === "function") {
|
|
747
|
+
this.send(command, optionsOrCb);
|
|
748
|
+
} else if (typeof cb === "function") {
|
|
749
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
750
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
751
|
+
} else {
|
|
752
|
+
return this.send(command, optionsOrCb);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* <p>Lists the content.</p>
|
|
758
|
+
*/
|
|
759
|
+
public listContents(
|
|
760
|
+
args: ListContentsCommandInput,
|
|
761
|
+
options?: __HttpHandlerOptions
|
|
762
|
+
): Promise<ListContentsCommandOutput>;
|
|
763
|
+
public listContents(args: ListContentsCommandInput, cb: (err: any, data?: ListContentsCommandOutput) => void): void;
|
|
764
|
+
public listContents(
|
|
765
|
+
args: ListContentsCommandInput,
|
|
766
|
+
options: __HttpHandlerOptions,
|
|
767
|
+
cb: (err: any, data?: ListContentsCommandOutput) => void
|
|
768
|
+
): void;
|
|
769
|
+
public listContents(
|
|
770
|
+
args: ListContentsCommandInput,
|
|
771
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListContentsCommandOutput) => void),
|
|
772
|
+
cb?: (err: any, data?: ListContentsCommandOutput) => void
|
|
773
|
+
): Promise<ListContentsCommandOutput> | void {
|
|
774
|
+
const command = new ListContentsCommand(args);
|
|
775
|
+
if (typeof optionsOrCb === "function") {
|
|
776
|
+
this.send(command, optionsOrCb);
|
|
777
|
+
} else if (typeof cb === "function") {
|
|
778
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
779
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
780
|
+
} else {
|
|
781
|
+
return this.send(command, optionsOrCb);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* <p>Lists the knowledge bases.</p>
|
|
787
|
+
*/
|
|
788
|
+
public listKnowledgeBases(
|
|
789
|
+
args: ListKnowledgeBasesCommandInput,
|
|
790
|
+
options?: __HttpHandlerOptions
|
|
791
|
+
): Promise<ListKnowledgeBasesCommandOutput>;
|
|
792
|
+
public listKnowledgeBases(
|
|
793
|
+
args: ListKnowledgeBasesCommandInput,
|
|
794
|
+
cb: (err: any, data?: ListKnowledgeBasesCommandOutput) => void
|
|
795
|
+
): void;
|
|
796
|
+
public listKnowledgeBases(
|
|
797
|
+
args: ListKnowledgeBasesCommandInput,
|
|
798
|
+
options: __HttpHandlerOptions,
|
|
799
|
+
cb: (err: any, data?: ListKnowledgeBasesCommandOutput) => void
|
|
800
|
+
): void;
|
|
801
|
+
public listKnowledgeBases(
|
|
802
|
+
args: ListKnowledgeBasesCommandInput,
|
|
803
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListKnowledgeBasesCommandOutput) => void),
|
|
804
|
+
cb?: (err: any, data?: ListKnowledgeBasesCommandOutput) => void
|
|
805
|
+
): Promise<ListKnowledgeBasesCommandOutput> | void {
|
|
806
|
+
const command = new ListKnowledgeBasesCommand(args);
|
|
807
|
+
if (typeof optionsOrCb === "function") {
|
|
808
|
+
this.send(command, optionsOrCb);
|
|
809
|
+
} else if (typeof cb === "function") {
|
|
810
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
811
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
812
|
+
} else {
|
|
813
|
+
return this.send(command, optionsOrCb);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* <p>Lists the tags for the specified resource.</p>
|
|
819
|
+
*/
|
|
820
|
+
public listTagsForResource(
|
|
821
|
+
args: ListTagsForResourceCommandInput,
|
|
822
|
+
options?: __HttpHandlerOptions
|
|
823
|
+
): Promise<ListTagsForResourceCommandOutput>;
|
|
824
|
+
public listTagsForResource(
|
|
825
|
+
args: ListTagsForResourceCommandInput,
|
|
826
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
827
|
+
): void;
|
|
828
|
+
public listTagsForResource(
|
|
829
|
+
args: ListTagsForResourceCommandInput,
|
|
830
|
+
options: __HttpHandlerOptions,
|
|
831
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
832
|
+
): void;
|
|
833
|
+
public listTagsForResource(
|
|
834
|
+
args: ListTagsForResourceCommandInput,
|
|
835
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
|
|
836
|
+
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
837
|
+
): Promise<ListTagsForResourceCommandOutput> | void {
|
|
838
|
+
const command = new ListTagsForResourceCommand(args);
|
|
839
|
+
if (typeof optionsOrCb === "function") {
|
|
840
|
+
this.send(command, optionsOrCb);
|
|
841
|
+
} else if (typeof cb === "function") {
|
|
842
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
843
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
844
|
+
} else {
|
|
845
|
+
return this.send(command, optionsOrCb);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* <p>Removes the specified recommendations from the specified assistant's queue of newly
|
|
851
|
+
* 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
|
|
852
|
+
* behavior and avoiding duplicate recommendations.</p>
|
|
853
|
+
*/
|
|
854
|
+
public notifyRecommendationsReceived(
|
|
855
|
+
args: NotifyRecommendationsReceivedCommandInput,
|
|
856
|
+
options?: __HttpHandlerOptions
|
|
857
|
+
): Promise<NotifyRecommendationsReceivedCommandOutput>;
|
|
858
|
+
public notifyRecommendationsReceived(
|
|
859
|
+
args: NotifyRecommendationsReceivedCommandInput,
|
|
860
|
+
cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void
|
|
861
|
+
): void;
|
|
862
|
+
public notifyRecommendationsReceived(
|
|
863
|
+
args: NotifyRecommendationsReceivedCommandInput,
|
|
864
|
+
options: __HttpHandlerOptions,
|
|
865
|
+
cb: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void
|
|
866
|
+
): void;
|
|
867
|
+
public notifyRecommendationsReceived(
|
|
868
|
+
args: NotifyRecommendationsReceivedCommandInput,
|
|
869
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void),
|
|
870
|
+
cb?: (err: any, data?: NotifyRecommendationsReceivedCommandOutput) => void
|
|
871
|
+
): Promise<NotifyRecommendationsReceivedCommandOutput> | void {
|
|
872
|
+
const command = new NotifyRecommendationsReceivedCommand(args);
|
|
873
|
+
if (typeof optionsOrCb === "function") {
|
|
874
|
+
this.send(command, optionsOrCb);
|
|
875
|
+
} else if (typeof cb === "function") {
|
|
876
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
877
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
878
|
+
} else {
|
|
879
|
+
return this.send(command, optionsOrCb);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* <p>Performs a manual search against the specified assistant. To retrieve recommendations for
|
|
885
|
+
* an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
|
|
886
|
+
* </p>
|
|
887
|
+
*/
|
|
888
|
+
public queryAssistant(
|
|
889
|
+
args: QueryAssistantCommandInput,
|
|
890
|
+
options?: __HttpHandlerOptions
|
|
891
|
+
): Promise<QueryAssistantCommandOutput>;
|
|
892
|
+
public queryAssistant(
|
|
893
|
+
args: QueryAssistantCommandInput,
|
|
894
|
+
cb: (err: any, data?: QueryAssistantCommandOutput) => void
|
|
895
|
+
): void;
|
|
896
|
+
public queryAssistant(
|
|
897
|
+
args: QueryAssistantCommandInput,
|
|
898
|
+
options: __HttpHandlerOptions,
|
|
899
|
+
cb: (err: any, data?: QueryAssistantCommandOutput) => void
|
|
900
|
+
): void;
|
|
901
|
+
public queryAssistant(
|
|
902
|
+
args: QueryAssistantCommandInput,
|
|
903
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: QueryAssistantCommandOutput) => void),
|
|
904
|
+
cb?: (err: any, data?: QueryAssistantCommandOutput) => void
|
|
905
|
+
): Promise<QueryAssistantCommandOutput> | void {
|
|
906
|
+
const command = new QueryAssistantCommand(args);
|
|
907
|
+
if (typeof optionsOrCb === "function") {
|
|
908
|
+
this.send(command, optionsOrCb);
|
|
909
|
+
} else if (typeof cb === "function") {
|
|
910
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
911
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
912
|
+
} else {
|
|
913
|
+
return this.send(command, optionsOrCb);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* <p>Removes a URI template from a knowledge base.</p>
|
|
919
|
+
*/
|
|
920
|
+
public removeKnowledgeBaseTemplateUri(
|
|
921
|
+
args: RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
922
|
+
options?: __HttpHandlerOptions
|
|
923
|
+
): Promise<RemoveKnowledgeBaseTemplateUriCommandOutput>;
|
|
924
|
+
public removeKnowledgeBaseTemplateUri(
|
|
925
|
+
args: RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
926
|
+
cb: (err: any, data?: RemoveKnowledgeBaseTemplateUriCommandOutput) => void
|
|
927
|
+
): void;
|
|
928
|
+
public removeKnowledgeBaseTemplateUri(
|
|
929
|
+
args: RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
930
|
+
options: __HttpHandlerOptions,
|
|
931
|
+
cb: (err: any, data?: RemoveKnowledgeBaseTemplateUriCommandOutput) => void
|
|
932
|
+
): void;
|
|
933
|
+
public removeKnowledgeBaseTemplateUri(
|
|
934
|
+
args: RemoveKnowledgeBaseTemplateUriCommandInput,
|
|
935
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveKnowledgeBaseTemplateUriCommandOutput) => void),
|
|
936
|
+
cb?: (err: any, data?: RemoveKnowledgeBaseTemplateUriCommandOutput) => void
|
|
937
|
+
): Promise<RemoveKnowledgeBaseTemplateUriCommandOutput> | void {
|
|
938
|
+
const command = new RemoveKnowledgeBaseTemplateUriCommand(args);
|
|
939
|
+
if (typeof optionsOrCb === "function") {
|
|
940
|
+
this.send(command, optionsOrCb);
|
|
941
|
+
} else if (typeof cb === "function") {
|
|
942
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
943
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
944
|
+
} else {
|
|
945
|
+
return this.send(command, optionsOrCb);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* <p>Searches for content in a specified knowledge base. Can be used to get a specific content
|
|
951
|
+
* resource by its name.</p>
|
|
952
|
+
*/
|
|
953
|
+
public searchContent(
|
|
954
|
+
args: SearchContentCommandInput,
|
|
955
|
+
options?: __HttpHandlerOptions
|
|
956
|
+
): Promise<SearchContentCommandOutput>;
|
|
957
|
+
public searchContent(
|
|
958
|
+
args: SearchContentCommandInput,
|
|
959
|
+
cb: (err: any, data?: SearchContentCommandOutput) => void
|
|
960
|
+
): void;
|
|
961
|
+
public searchContent(
|
|
962
|
+
args: SearchContentCommandInput,
|
|
963
|
+
options: __HttpHandlerOptions,
|
|
964
|
+
cb: (err: any, data?: SearchContentCommandOutput) => void
|
|
965
|
+
): void;
|
|
966
|
+
public searchContent(
|
|
967
|
+
args: SearchContentCommandInput,
|
|
968
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SearchContentCommandOutput) => void),
|
|
969
|
+
cb?: (err: any, data?: SearchContentCommandOutput) => void
|
|
970
|
+
): Promise<SearchContentCommandOutput> | void {
|
|
971
|
+
const command = new SearchContentCommand(args);
|
|
972
|
+
if (typeof optionsOrCb === "function") {
|
|
973
|
+
this.send(command, optionsOrCb);
|
|
974
|
+
} else if (typeof cb === "function") {
|
|
975
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
976
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
977
|
+
} else {
|
|
978
|
+
return this.send(command, optionsOrCb);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* <p>Searches for sessions.</p>
|
|
984
|
+
*/
|
|
985
|
+
public searchSessions(
|
|
986
|
+
args: SearchSessionsCommandInput,
|
|
987
|
+
options?: __HttpHandlerOptions
|
|
988
|
+
): Promise<SearchSessionsCommandOutput>;
|
|
989
|
+
public searchSessions(
|
|
990
|
+
args: SearchSessionsCommandInput,
|
|
991
|
+
cb: (err: any, data?: SearchSessionsCommandOutput) => void
|
|
992
|
+
): void;
|
|
993
|
+
public searchSessions(
|
|
994
|
+
args: SearchSessionsCommandInput,
|
|
995
|
+
options: __HttpHandlerOptions,
|
|
996
|
+
cb: (err: any, data?: SearchSessionsCommandOutput) => void
|
|
997
|
+
): void;
|
|
998
|
+
public searchSessions(
|
|
999
|
+
args: SearchSessionsCommandInput,
|
|
1000
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SearchSessionsCommandOutput) => void),
|
|
1001
|
+
cb?: (err: any, data?: SearchSessionsCommandOutput) => void
|
|
1002
|
+
): Promise<SearchSessionsCommandOutput> | void {
|
|
1003
|
+
const command = new SearchSessionsCommand(args);
|
|
1004
|
+
if (typeof optionsOrCb === "function") {
|
|
1005
|
+
this.send(command, optionsOrCb);
|
|
1006
|
+
} else if (typeof cb === "function") {
|
|
1007
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1008
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1009
|
+
} else {
|
|
1010
|
+
return this.send(command, optionsOrCb);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* <p>Get a URL to upload content to a knowledge base. To upload content, first make a PUT
|
|
1016
|
+
* request to the returned URL with your file, making sure to include the required headers. Then
|
|
1017
|
+
* 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
|
|
1018
|
+
* knowledge base of type CUSTOM.</p>
|
|
1019
|
+
*/
|
|
1020
|
+
public startContentUpload(
|
|
1021
|
+
args: StartContentUploadCommandInput,
|
|
1022
|
+
options?: __HttpHandlerOptions
|
|
1023
|
+
): Promise<StartContentUploadCommandOutput>;
|
|
1024
|
+
public startContentUpload(
|
|
1025
|
+
args: StartContentUploadCommandInput,
|
|
1026
|
+
cb: (err: any, data?: StartContentUploadCommandOutput) => void
|
|
1027
|
+
): void;
|
|
1028
|
+
public startContentUpload(
|
|
1029
|
+
args: StartContentUploadCommandInput,
|
|
1030
|
+
options: __HttpHandlerOptions,
|
|
1031
|
+
cb: (err: any, data?: StartContentUploadCommandOutput) => void
|
|
1032
|
+
): void;
|
|
1033
|
+
public startContentUpload(
|
|
1034
|
+
args: StartContentUploadCommandInput,
|
|
1035
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartContentUploadCommandOutput) => void),
|
|
1036
|
+
cb?: (err: any, data?: StartContentUploadCommandOutput) => void
|
|
1037
|
+
): Promise<StartContentUploadCommandOutput> | void {
|
|
1038
|
+
const command = new StartContentUploadCommand(args);
|
|
1039
|
+
if (typeof optionsOrCb === "function") {
|
|
1040
|
+
this.send(command, optionsOrCb);
|
|
1041
|
+
} else if (typeof cb === "function") {
|
|
1042
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1043
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1044
|
+
} else {
|
|
1045
|
+
return this.send(command, optionsOrCb);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* <p>Adds the specified tags to the specified resource.</p>
|
|
1051
|
+
*/
|
|
1052
|
+
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
1053
|
+
public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
1054
|
+
public tagResource(
|
|
1055
|
+
args: TagResourceCommandInput,
|
|
1056
|
+
options: __HttpHandlerOptions,
|
|
1057
|
+
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
1058
|
+
): void;
|
|
1059
|
+
public tagResource(
|
|
1060
|
+
args: TagResourceCommandInput,
|
|
1061
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
|
|
1062
|
+
cb?: (err: any, data?: TagResourceCommandOutput) => void
|
|
1063
|
+
): Promise<TagResourceCommandOutput> | void {
|
|
1064
|
+
const command = new TagResourceCommand(args);
|
|
1065
|
+
if (typeof optionsOrCb === "function") {
|
|
1066
|
+
this.send(command, optionsOrCb);
|
|
1067
|
+
} else if (typeof cb === "function") {
|
|
1068
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1069
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1070
|
+
} else {
|
|
1071
|
+
return this.send(command, optionsOrCb);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* <p>Removes the specified tags from the specified resource.</p>
|
|
1077
|
+
*/
|
|
1078
|
+
public untagResource(
|
|
1079
|
+
args: UntagResourceCommandInput,
|
|
1080
|
+
options?: __HttpHandlerOptions
|
|
1081
|
+
): Promise<UntagResourceCommandOutput>;
|
|
1082
|
+
public untagResource(
|
|
1083
|
+
args: UntagResourceCommandInput,
|
|
1084
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1085
|
+
): void;
|
|
1086
|
+
public untagResource(
|
|
1087
|
+
args: UntagResourceCommandInput,
|
|
1088
|
+
options: __HttpHandlerOptions,
|
|
1089
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1090
|
+
): void;
|
|
1091
|
+
public untagResource(
|
|
1092
|
+
args: UntagResourceCommandInput,
|
|
1093
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
|
|
1094
|
+
cb?: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1095
|
+
): Promise<UntagResourceCommandOutput> | void {
|
|
1096
|
+
const command = new UntagResourceCommand(args);
|
|
1097
|
+
if (typeof optionsOrCb === "function") {
|
|
1098
|
+
this.send(command, optionsOrCb);
|
|
1099
|
+
} else if (typeof cb === "function") {
|
|
1100
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1101
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1102
|
+
} else {
|
|
1103
|
+
return this.send(command, optionsOrCb);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* <p>Updates information about the content.</p>
|
|
1109
|
+
*/
|
|
1110
|
+
public updateContent(
|
|
1111
|
+
args: UpdateContentCommandInput,
|
|
1112
|
+
options?: __HttpHandlerOptions
|
|
1113
|
+
): Promise<UpdateContentCommandOutput>;
|
|
1114
|
+
public updateContent(
|
|
1115
|
+
args: UpdateContentCommandInput,
|
|
1116
|
+
cb: (err: any, data?: UpdateContentCommandOutput) => void
|
|
1117
|
+
): void;
|
|
1118
|
+
public updateContent(
|
|
1119
|
+
args: UpdateContentCommandInput,
|
|
1120
|
+
options: __HttpHandlerOptions,
|
|
1121
|
+
cb: (err: any, data?: UpdateContentCommandOutput) => void
|
|
1122
|
+
): void;
|
|
1123
|
+
public updateContent(
|
|
1124
|
+
args: UpdateContentCommandInput,
|
|
1125
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateContentCommandOutput) => void),
|
|
1126
|
+
cb?: (err: any, data?: UpdateContentCommandOutput) => void
|
|
1127
|
+
): Promise<UpdateContentCommandOutput> | void {
|
|
1128
|
+
const command = new UpdateContentCommand(args);
|
|
1129
|
+
if (typeof optionsOrCb === "function") {
|
|
1130
|
+
this.send(command, optionsOrCb);
|
|
1131
|
+
} else if (typeof cb === "function") {
|
|
1132
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1133
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1134
|
+
} else {
|
|
1135
|
+
return this.send(command, optionsOrCb);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* <p>Updates the template URI of a knowledge base. This is only supported for knowledge bases
|
|
1141
|
+
* of type EXTERNAL. Include a single variable in <code>${variable}</code> format; this
|
|
1142
|
+
* interpolated by Wisdom using ingested content. For example, if you ingest a Salesforce
|
|
1143
|
+
* article, it has an <code>Id</code> value, and you can set the template URI to
|
|
1144
|
+
* <code>https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*\/view</code>.
|
|
1145
|
+
* </p>
|
|
1146
|
+
*/
|
|
1147
|
+
public updateKnowledgeBaseTemplateUri(
|
|
1148
|
+
args: UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
1149
|
+
options?: __HttpHandlerOptions
|
|
1150
|
+
): Promise<UpdateKnowledgeBaseTemplateUriCommandOutput>;
|
|
1151
|
+
public updateKnowledgeBaseTemplateUri(
|
|
1152
|
+
args: UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
1153
|
+
cb: (err: any, data?: UpdateKnowledgeBaseTemplateUriCommandOutput) => void
|
|
1154
|
+
): void;
|
|
1155
|
+
public updateKnowledgeBaseTemplateUri(
|
|
1156
|
+
args: UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
1157
|
+
options: __HttpHandlerOptions,
|
|
1158
|
+
cb: (err: any, data?: UpdateKnowledgeBaseTemplateUriCommandOutput) => void
|
|
1159
|
+
): void;
|
|
1160
|
+
public updateKnowledgeBaseTemplateUri(
|
|
1161
|
+
args: UpdateKnowledgeBaseTemplateUriCommandInput,
|
|
1162
|
+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateKnowledgeBaseTemplateUriCommandOutput) => void),
|
|
1163
|
+
cb?: (err: any, data?: UpdateKnowledgeBaseTemplateUriCommandOutput) => void
|
|
1164
|
+
): Promise<UpdateKnowledgeBaseTemplateUriCommandOutput> | void {
|
|
1165
|
+
const command = new UpdateKnowledgeBaseTemplateUriCommand(args);
|
|
1166
|
+
if (typeof optionsOrCb === "function") {
|
|
1167
|
+
this.send(command, optionsOrCb);
|
|
1168
|
+
} else if (typeof cb === "function") {
|
|
1169
|
+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1170
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1171
|
+
} else {
|
|
1172
|
+
return this.send(command, optionsOrCb);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|