import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { CreateAssistantAssociationCommand , CreateAssistantAssociationCommandInput , CreateAssistantAssociationCommandOutput , } from "./commands/CreateAssistantAssociationCommand" ; import { CreateAssistantCommand , CreateAssistantCommandInput , CreateAssistantCommandOutput , } from "./commands/CreateAssistantCommand" ; import { CreateContentCommand , CreateContentCommandInput , CreateContentCommandOutput , } from "./commands/CreateContentCommand" ; import { CreateKnowledgeBaseCommand , CreateKnowledgeBaseCommandInput , CreateKnowledgeBaseCommandOutput , } from "./commands/CreateKnowledgeBaseCommand" ; import { CreateSessionCommand , CreateSessionCommandInput , CreateSessionCommandOutput , } from "./commands/CreateSessionCommand" ; import { DeleteAssistantAssociationCommand , DeleteAssistantAssociationCommandInput , DeleteAssistantAssociationCommandOutput , } from "./commands/DeleteAssistantAssociationCommand" ; import { DeleteAssistantCommand , DeleteAssistantCommandInput , DeleteAssistantCommandOutput , } from "./commands/DeleteAssistantCommand" ; import { DeleteContentCommand , DeleteContentCommandInput , DeleteContentCommandOutput , } from "./commands/DeleteContentCommand" ; import { DeleteKnowledgeBaseCommand , DeleteKnowledgeBaseCommandInput , DeleteKnowledgeBaseCommandOutput , } from "./commands/DeleteKnowledgeBaseCommand" ; import { GetAssistantAssociationCommand , GetAssistantAssociationCommandInput , GetAssistantAssociationCommandOutput , } from "./commands/GetAssistantAssociationCommand" ; import { GetAssistantCommand , GetAssistantCommandInput , GetAssistantCommandOutput , } from "./commands/GetAssistantCommand" ; import { GetContentCommand , GetContentCommandInput , GetContentCommandOutput } from "./commands/GetContentCommand" ; import { GetContentSummaryCommand , GetContentSummaryCommandInput , GetContentSummaryCommandOutput , } from "./commands/GetContentSummaryCommand" ; import { GetKnowledgeBaseCommand , GetKnowledgeBaseCommandInput , GetKnowledgeBaseCommandOutput , } from "./commands/GetKnowledgeBaseCommand" ; import { GetRecommendationsCommand , GetRecommendationsCommandInput , GetRecommendationsCommandOutput , } from "./commands/GetRecommendationsCommand" ; import { GetSessionCommand , GetSessionCommandInput , GetSessionCommandOutput } from "./commands/GetSessionCommand" ; import { ListAssistantAssociationsCommand , ListAssistantAssociationsCommandInput , ListAssistantAssociationsCommandOutput , } from "./commands/ListAssistantAssociationsCommand" ; import { ListAssistantsCommand , ListAssistantsCommandInput , ListAssistantsCommandOutput , } from "./commands/ListAssistantsCommand" ; import { ListContentsCommand , ListContentsCommandInput , ListContentsCommandOutput , } from "./commands/ListContentsCommand" ; import { ListKnowledgeBasesCommand , ListKnowledgeBasesCommandInput , ListKnowledgeBasesCommandOutput , } from "./commands/ListKnowledgeBasesCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { NotifyRecommendationsReceivedCommand , NotifyRecommendationsReceivedCommandInput , NotifyRecommendationsReceivedCommandOutput , } from "./commands/NotifyRecommendationsReceivedCommand" ; import { QueryAssistantCommand , QueryAssistantCommandInput , QueryAssistantCommandOutput , } from "./commands/QueryAssistantCommand" ; import { RemoveKnowledgeBaseTemplateUriCommand , RemoveKnowledgeBaseTemplateUriCommandInput , RemoveKnowledgeBaseTemplateUriCommandOutput , } from "./commands/RemoveKnowledgeBaseTemplateUriCommand" ; import { SearchContentCommand , SearchContentCommandInput , SearchContentCommandOutput , } from "./commands/SearchContentCommand" ; import { SearchSessionsCommand , SearchSessionsCommandInput , SearchSessionsCommandOutput , } from "./commands/SearchSessionsCommand" ; import { StartContentUploadCommand , StartContentUploadCommandInput , StartContentUploadCommandOutput , } from "./commands/StartContentUploadCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateContentCommand , UpdateContentCommandInput , UpdateContentCommandOutput , } from "./commands/UpdateContentCommand" ; import { UpdateKnowledgeBaseTemplateUriCommand , UpdateKnowledgeBaseTemplateUriCommandInput , UpdateKnowledgeBaseTemplateUriCommandOutput , } from "./commands/UpdateKnowledgeBaseTemplateUriCommand" ; import { WisdomClient } from "./WisdomClient" ; /**
 * <p>All Amazon Connect Wisdom functionality is accessible using the API. For example, you can create an
 *       assistant and a knowledge base.</p>
 *
 *          <p>Some more advanced features are only accessible using the Wisdom API. For example, you
 *       can manually manage content by uploading custom files and control their lifecycle. </p>
 */ export class Wisdom extends WisdomClient { /**
     * <p>Creates an Amazon Connect Wisdom assistant.</p>
     */ public createAssistant ( args , options ? ) ; public createAssistant ( args , cb ) ; public createAssistant ( args , options , cb ) ; public createAssistant ( args , optionsOrCb ? , cb ? ) { const command = new CreateAssistantCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates an association between an Amazon Connect Wisdom assistant and another resource. Currently, the
     *       only supported association is with a knowledge base. An assistant can have only a single
     *       association.</p>
     */ public createAssistantAssociation ( args , options ? ) ; public createAssistantAssociation ( args , cb ) ; public createAssistantAssociation ( args , options , cb ) ; public createAssistantAssociation ( args , optionsOrCb ? , cb ? ) { const command = new CreateAssistantAssociationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <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
     *       upload an asset.</p>
     */ public createContent ( args , options ? ) ; public createContent ( args , cb ) ; public createContent ( args , options , cb ) ; public createContent ( args , optionsOrCb ? , cb ? ) { const command = new CreateContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a knowledge base.</p>
     *          <note>
     *             <p>When using this API, you cannot reuse <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html">Amazon AppIntegrations</a>
     *         DataIntegrations with external knowledge bases such as Salesforce and ServiceNow. If you do,
     *         you'll get an <code>InvalidRequestException</code> error. </p>
     *
     *             <p>For example, you're programmatically managing your external knowledge base, and you want
     *         to add or remove one of the fields that is being ingested from Salesforce. Do the
     *         following:</p>
     *             <ol>
     *                <li>
     *                   <p>Call <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_DeleteKnowledgeBase.html">DeleteKnowledgeBase</a>.</p>
     *                </li>
     *                <li>
     *                   <p>Call <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html">DeleteDataIntegration</a>.</p>
     *                </li>
     *                <li>
     *                   <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
     *             one.</p>
     *                </li>
     *                <li>
     *                   <p>Call CreateKnowledgeBase.</p>
     *                </li>
     *             </ol>
     *          </note>
     */ public createKnowledgeBase ( args , options ? ) ; public createKnowledgeBase ( args , cb ) ; public createKnowledgeBase ( args , options , cb ) ; public createKnowledgeBase ( args , optionsOrCb ? , cb ? ) { const command = new CreateKnowledgeBaseCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a session. A session is a contextual container used for generating
     *       recommendations. Amazon Connect creates a new Wisdom session for each contact on which Wisdom is
     *       enabled.</p>
     */ public createSession ( args , options ? ) ; public createSession ( args , cb ) ; public createSession ( args , options , cb ) ; public createSession ( args , optionsOrCb ? , cb ? ) { const command = new CreateSessionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes an assistant.</p>
     */ public deleteAssistant ( args , options ? ) ; public deleteAssistant ( args , cb ) ; public deleteAssistant ( args , options , cb ) ; public deleteAssistant ( args , optionsOrCb ? , cb ? ) { const command = new DeleteAssistantCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes an assistant association.</p>
     */ public deleteAssistantAssociation ( args , options ? ) ; public deleteAssistantAssociation ( args , cb ) ; public deleteAssistantAssociation ( args , options , cb ) ; public deleteAssistantAssociation ( args , optionsOrCb ? , cb ? ) { const command = new DeleteAssistantAssociationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the content.</p>
     */ public deleteContent ( args , options ? ) ; public deleteContent ( args , cb ) ; public deleteContent ( args , options , cb ) ; public deleteContent ( args , optionsOrCb ? , cb ? ) { const command = new DeleteContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the knowledge base.</p>
     *          <note>
     *             <p>When you use this API to delete an external knowledge base such as Salesforce or
     *         ServiceNow, you must also delete the <a href="https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html">Amazon AppIntegrations</a> DataIntegration.
     *         This is because you can't reuse the DataIntegration after it's been associated with an
     *         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
     *         Reference</i>.</p>
     *          </note>
     */ public deleteKnowledgeBase ( args , options ? ) ; public deleteKnowledgeBase ( args , cb ) ; public deleteKnowledgeBase ( args , options , cb ) ; public deleteKnowledgeBase ( args , optionsOrCb ? , cb ? ) { const command = new DeleteKnowledgeBaseCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves information about an assistant.</p>
     */ public getAssistant ( args , options ? ) ; public getAssistant ( args , cb ) ; public getAssistant ( args , options , cb ) ; public getAssistant ( args , optionsOrCb ? , cb ? ) { const command = new GetAssistantCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves information about an assistant association.</p>
     */ public getAssistantAssociation ( args , options ? ) ; public getAssistantAssociation ( args , cb ) ; public getAssistantAssociation ( args , options , cb ) ; public getAssistantAssociation ( args , optionsOrCb ? , cb ? ) { const command = new GetAssistantAssociationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves content, including a pre-signed URL to download the content.</p>
     */ public getContent ( args , options ? ) ; public getContent ( args , cb ) ; public getContent ( args , options , cb ) ; public getContent ( args , optionsOrCb ? , cb ? ) { const command = new GetContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves summary information about the content.</p>
     */ public getContentSummary ( args , options ? ) ; public getContentSummary ( args , cb ) ; public getContentSummary ( args , options , cb ) ; public getContentSummary ( args , optionsOrCb ? , cb ? ) { const command = new GetContentSummaryCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves information about the knowledge base.</p>
     */ public getKnowledgeBase ( args , options ? ) ; public getKnowledgeBase ( args , cb ) ; public getKnowledgeBase ( args , options , cb ) ; public getKnowledgeBase ( args , optionsOrCb ? , cb ? ) { const command = new GetKnowledgeBaseCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves recommendations for the specified session. To avoid retrieving the same
     *       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
     *         <code>waitTimeSeconds</code> parameter. Short poll is the default behavior and only returns
     *       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>
     */ public getRecommendations ( args , options ? ) ; public getRecommendations ( args , cb ) ; public getRecommendations ( args , options , cb ) ; public getRecommendations ( args , optionsOrCb ? , cb ? ) { const command = new GetRecommendationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves information for a specified session.</p>
     */ public getSession ( args , options ? ) ; public getSession ( args , cb ) ; public getSession ( args , options , cb ) ; public getSession ( args , optionsOrCb ? , cb ? ) { const command = new GetSessionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists information about assistant associations.</p>
     */ public listAssistantAssociations ( args , options ? ) ; public listAssistantAssociations ( args , cb ) ; public listAssistantAssociations ( args , options , cb ) ; public listAssistantAssociations ( args , optionsOrCb ? , cb ? ) { const command = new ListAssistantAssociationsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists information about assistants.</p>
     */ public listAssistants ( args , options ? ) ; public listAssistants ( args , cb ) ; public listAssistants ( args , options , cb ) ; public listAssistants ( args , optionsOrCb ? , cb ? ) { const command = new ListAssistantsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the content.</p>
     */ public listContents ( args , options ? ) ; public listContents ( args , cb ) ; public listContents ( args , options , cb ) ; public listContents ( args , optionsOrCb ? , cb ? ) { const command = new ListContentsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the knowledge bases.</p>
     */ public listKnowledgeBases ( args , options ? ) ; public listKnowledgeBases ( args , cb ) ; public listKnowledgeBases ( args , options , cb ) ; public listKnowledgeBases ( args , optionsOrCb ? , cb ? ) { const command = new ListKnowledgeBasesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the tags for the specified resource.</p>
     */ public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes the specified recommendations from the specified assistant's queue of newly
     *       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
     *       behavior and avoiding duplicate recommendations.</p>
     */ public notifyRecommendationsReceived ( args , options ? ) ; public notifyRecommendationsReceived ( args , cb ) ; public notifyRecommendationsReceived ( args , options , cb ) ; public notifyRecommendationsReceived ( args , optionsOrCb ? , cb ? ) { const command = new NotifyRecommendationsReceivedCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Performs a manual search against the specified assistant. To retrieve recommendations for
     *       an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.
     *     </p>
     */ public queryAssistant ( args , options ? ) ; public queryAssistant ( args , cb ) ; public queryAssistant ( args , options , cb ) ; public queryAssistant ( args , optionsOrCb ? , cb ? ) { const command = new QueryAssistantCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes a URI template from a knowledge base.</p>
     */ public removeKnowledgeBaseTemplateUri ( args , options ? ) ; public removeKnowledgeBaseTemplateUri ( args , cb ) ; public removeKnowledgeBaseTemplateUri ( args , options , cb ) ; public removeKnowledgeBaseTemplateUri ( args , optionsOrCb ? , cb ? ) { const command = new RemoveKnowledgeBaseTemplateUriCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Searches for content in a specified knowledge base. Can be used to get a specific content
     *       resource by its name.</p>
     */ public searchContent ( args , options ? ) ; public searchContent ( args , cb ) ; public searchContent ( args , options , cb ) ; public searchContent ( args , optionsOrCb ? , cb ? ) { const command = new SearchContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Searches for sessions.</p>
     */ public searchSessions ( args , options ? ) ; public searchSessions ( args , cb ) ; public searchSessions ( args , options , cb ) ; public searchSessions ( args , optionsOrCb ? , cb ? ) { const command = new SearchSessionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Get a URL to upload content to a knowledge base. To upload content, first make a PUT
     *       request to the returned URL with your file, making sure to include the required headers. Then
     *       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
     *       knowledge base of type CUSTOM.</p>
     */ public startContentUpload ( args , options ? ) ; public startContentUpload ( args , cb ) ; public startContentUpload ( args , options , cb ) ; public startContentUpload ( args , optionsOrCb ? , cb ? ) { const command = new StartContentUploadCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds the specified tags to the specified resource.</p>
     */ public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes the specified tags from the specified resource.</p>
     */ public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates information about the content.</p>
     */ public updateContent ( args , options ? ) ; public updateContent ( args , cb ) ; public updateContent ( args , options , cb ) ; public updateContent ( args , optionsOrCb ? , cb ? ) { const command = new UpdateContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the template URI of a knowledge base. This is only supported for knowledge bases
     *       of type EXTERNAL. Include a single variable in <code>${variable}</code> format; this
     *       interpolated by Wisdom using ingested content. For example, if you ingest a Salesforce
     *       article, it has an <code>Id</code> value, and you can set the template URI to
     *         <code>https://myInstanceName.lightning.force.com/lightning/r/Knowledge__kav/*${Id}*\/view</code>.
     *     </p>
     */ public updateKnowledgeBaseTemplateUri ( args , options ? ) ; public updateKnowledgeBaseTemplateUri ( args , cb ) ; public updateKnowledgeBaseTemplateUri ( args , options , cb ) ; public updateKnowledgeBaseTemplateUri ( args , optionsOrCb ? , cb ? ) { const command = new UpdateKnowledgeBaseTemplateUriCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }