import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { LexRuntimeV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeV2Client"; import type { GetSessionRequest, GetSessionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetSessionCommand}. */ export interface GetSessionCommandInput extends GetSessionRequest { } /** * @public * * The output of {@link GetSessionCommand}. */ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer { } declare const GetSessionCommand_base: { new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetSessionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns session information for a specified bot, alias, and * user.

*

For example, you can use this operation to retrieve session * information for a user that has left a long-running session in * use.

*

If the bot, alias, or session identifier doesn't exist, Amazon Lex V2 * returns a BadRequestException. If the locale doesn't exist * or is not enabled for the alias, you receive a * BadRequestException.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import * // const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import * // import type { LexRuntimeV2ClientConfig } from "@aws-sdk/client-lex-runtime-v2"; * const config = {}; // type is LexRuntimeV2ClientConfig * const client = new LexRuntimeV2Client(config); * const input = { // GetSessionRequest * botId: "STRING_VALUE", // required * botAliasId: "STRING_VALUE", // required * localeId: "STRING_VALUE", // required * sessionId: "STRING_VALUE", // required * }; * const command = new GetSessionCommand(input); * const response = await client.send(command); * // { // GetSessionResponse * // sessionId: "STRING_VALUE", * // messages: [ // Messages * // { // Message * // content: "STRING_VALUE", * // contentType: "CustomPayload" || "ImageResponseCard" || "PlainText" || "SSML", // required * // imageResponseCard: { // ImageResponseCard * // title: "STRING_VALUE", // required * // subtitle: "STRING_VALUE", * // imageUrl: "STRING_VALUE", * // buttons: [ // ButtonsList * // { // Button * // text: "STRING_VALUE", // required * // value: "STRING_VALUE", // required * // }, * // ], * // }, * // }, * // ], * // interpretations: [ // Interpretations * // { // Interpretation * // nluConfidence: { // ConfidenceScore * // score: Number("double"), * // }, * // sentimentResponse: { // SentimentResponse * // sentiment: "MIXED" || "NEGATIVE" || "NEUTRAL" || "POSITIVE", * // sentimentScore: { // SentimentScore * // positive: Number("double"), * // negative: Number("double"), * // neutral: Number("double"), * // mixed: Number("double"), * // }, * // }, * // intent: { // Intent * // name: "STRING_VALUE", // required * // slots: { // Slots * // "": { // Slot * // value: { // Value * // originalValue: "STRING_VALUE", * // interpretedValue: "STRING_VALUE", // required * // resolvedValues: [ // StringList * // "STRING_VALUE", * // ], * // }, * // shape: "Scalar" || "List" || "Composite", * // values: [ // Values * // { * // value: { * // originalValue: "STRING_VALUE", * // interpretedValue: "STRING_VALUE", // required * // resolvedValues: [ * // "STRING_VALUE", * // ], * // }, * // shape: "Scalar" || "List" || "Composite", * // values: [ * // "", * // ], * // subSlots: { * // "": "", * // }, * // }, * // ], * // subSlots: "", * // }, * // }, * // state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress", * // confirmationState: "Confirmed" || "Denied" || "None", * // }, * // interpretationSource: "Bedrock" || "Lex", * // }, * // ], * // sessionState: { // SessionState * // dialogAction: { // DialogAction * // type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required * // slotToElicit: "STRING_VALUE", * // slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord", * // subSlotToElicit: { // ElicitSubSlot * // name: "STRING_VALUE", // required * // subSlotToElicit: { * // name: "STRING_VALUE", // required * // subSlotToElicit: "", * // }, * // }, * // }, * // intent: { * // name: "STRING_VALUE", // required * // slots: "", * // state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress", * // confirmationState: "Confirmed" || "Denied" || "None", * // }, * // activeContexts: [ // ActiveContextsList * // { // ActiveContext * // name: "STRING_VALUE", // required * // timeToLive: { // ActiveContextTimeToLive * // timeToLiveInSeconds: Number("int"), // required * // turnsToLive: Number("int"), // required * // }, * // contextAttributes: { // ActiveContextParametersMap // required * // "": "STRING_VALUE", * // }, * // }, * // ], * // sessionAttributes: { // StringMap * // "": "STRING_VALUE", * // }, * // originatingRequestId: "STRING_VALUE", * // runtimeHints: { // RuntimeHints * // slotHints: { // SlotHintsIntentMap * // "": { // SlotHintsSlotMap * // "": { // RuntimeHintDetails * // runtimeHintValues: [ // RuntimeHintValuesList * // { // RuntimeHintValue * // phrase: "STRING_VALUE", // required * // }, * // ], * // subSlotHints: { * // "": { * // runtimeHintValues: [ * // { * // phrase: "STRING_VALUE", // required * // }, * // ], * // subSlotHints: "", * // }, * // }, * // }, * // }, * // }, * // }, * // }, * // }; * * ``` * * @param GetSessionCommandInput - {@link GetSessionCommandInput} * @returns {@link GetSessionCommandOutput} * @see {@link GetSessionCommandInput} for command's `input` shape. * @see {@link GetSessionCommandOutput} for command's `response` shape. * @see {@link LexRuntimeV2ClientResolvedConfig | config} for LexRuntimeV2Client's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

* * @throws {@link InternalServerException} (server fault) *

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

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

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

* * @throws {@link LexRuntimeV2ServiceException} *

Base exception class for all service exceptions from LexRuntimeV2 service.

* * * @public */ export declare class GetSessionCommand extends GetSessionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetSessionRequest; output: GetSessionResponse; }; sdk: { input: GetSessionCommandInput; output: GetSessionCommandOutput; }; }; }