import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetNextMessageRequest, GetNextMessageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetNextMessageCommand}. */ export interface GetNextMessageCommandInput extends GetNextMessageRequest { } /** * @public * * The output of {@link GetNextMessageCommand}. */ export interface GetNextMessageCommandOutput extends GetNextMessageResponse, __MetadataBearer { } declare const GetNextMessageCommand_base: { new (input: GetNextMessageCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetNextMessageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves next message on an Amazon Q in Connect session.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, GetNextMessageCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, GetNextMessageCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import * // import type { QConnectClientConfig } from "@aws-sdk/client-qconnect"; * const config = {}; // type is QConnectClientConfig * const client = new QConnectClient(config); * const input = { // GetNextMessageRequest * assistantId: "STRING_VALUE", // required * sessionId: "STRING_VALUE", // required * nextMessageToken: "STRING_VALUE", // required * }; * const command = new GetNextMessageCommand(input); * const response = await client.send(command); * // { // GetNextMessageResponse * // type: "STRING_VALUE", // required * // response: { // MessageOutput * // value: { // MessageData Union: only one key present * // text: { // TextMessage * // value: "STRING_VALUE", * // citations: [ // Citations * // { // Citation * // contentId: "STRING_VALUE", * // title: "STRING_VALUE", * // knowledgeBaseId: "STRING_VALUE", * // citationSpan: { // CitationSpan * // beginOffsetInclusive: Number("int"), * // endOffsetExclusive: Number("int"), * // }, * // sourceURL: "STRING_VALUE", * // referenceType: "STRING_VALUE", // required * // }, * // ], * // aiGuardrailAssessment: { // AIGuardrailAssessment * // blocked: true || false, // required * // }, * // }, * // toolUseResult: { // ToolUseResultData * // toolUseId: "STRING_VALUE", // required * // toolName: "STRING_VALUE", // required * // toolResult: "DOCUMENT_VALUE", // required * // inputSchema: "DOCUMENT_VALUE", * // }, * // }, * // messageId: "STRING_VALUE", // required * // participant: "STRING_VALUE", // required * // timestamp: new Date("TIMESTAMP"), // required * // }, * // requestMessageId: "STRING_VALUE", // required * // conversationState: { // ConversationState * // status: "STRING_VALUE", // required * // reason: "STRING_VALUE", * // }, * // nextMessageToken: "STRING_VALUE", * // conversationSessionData: [ // RuntimeSessionDataList * // { // RuntimeSessionData * // key: "STRING_VALUE", // required * // value: { // RuntimeSessionDataValue Union: only one key present * // stringValue: "STRING_VALUE", * // }, * // }, * // ], * // chunkedResponseTerminated: true || false, * // }; * * ``` * * @param GetNextMessageCommandInput - {@link GetNextMessageCommandInput} * @returns {@link GetNextMessageCommandOutput} * @see {@link GetNextMessageCommandInput} for command's `input` shape. * @see {@link GetNextMessageCommandOutput} for command's `response` shape. * @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource does not exist.

* * @throws {@link UnprocessableContentException} (client fault) *

The server has a failure of processing the message

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by a service.

* * @throws {@link QConnectServiceException} *

Base exception class for all service exceptions from QConnect service.

* * * @public */ export declare class GetNextMessageCommand extends GetNextMessageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetNextMessageRequest; output: GetNextMessageResponse; }; sdk: { input: GetNextMessageCommandInput; output: GetNextMessageCommandOutput; }; }; }