@aws-sdk/client-lex-runtime-service 3.186.0 → 3.186.1

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.
@@ -1,35 +1,36 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeServiceClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeServiceClient";
13
- import {
14
- DeleteSessionRequest,
15
- DeleteSessionResponse,
16
- } from "../models/models_0";
17
- export interface DeleteSessionCommandInput extends DeleteSessionRequest {}
18
- export interface DeleteSessionCommandOutput
19
- extends DeleteSessionResponse,
20
- __MetadataBearer {}
21
- export declare class DeleteSessionCommand extends $Command<
22
- DeleteSessionCommandInput,
23
- DeleteSessionCommandOutput,
24
- LexRuntimeServiceClientResolvedConfig
25
- > {
26
- readonly input: DeleteSessionCommandInput;
27
- constructor(input: DeleteSessionCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: LexRuntimeServiceClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
4
+ import { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
5
+ export interface DeleteSessionCommandInput extends DeleteSessionRequest {
6
+ }
7
+ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Removes session information for a specified bot, alias, and user ID.
11
+ * </p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { LexRuntimeServiceClient, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
16
+ * // const { LexRuntimeServiceClient, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
17
+ * const client = new LexRuntimeServiceClient(config);
18
+ * const command = new DeleteSessionCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DeleteSessionCommandInput} for command's `input` shape.
23
+ * @see {@link DeleteSessionCommandOutput} for command's `response` shape.
24
+ * @see {@link LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
28
+ readonly input: DeleteSessionCommandInput;
29
+ constructor(input: DeleteSessionCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSessionCommandInput, DeleteSessionCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -1,32 +1,36 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeServiceClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeServiceClient";
13
- import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
14
- export interface GetSessionCommandInput extends GetSessionRequest {}
15
- export interface GetSessionCommandOutput
16
- extends GetSessionResponse,
17
- __MetadataBearer {}
18
- export declare class GetSessionCommand extends $Command<
19
- GetSessionCommandInput,
20
- GetSessionCommandOutput,
21
- LexRuntimeServiceClientResolvedConfig
22
- > {
23
- readonly input: GetSessionCommandInput;
24
- constructor(input: GetSessionCommandInput);
25
- resolveMiddleware(
26
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
- configuration: LexRuntimeServiceClientResolvedConfig,
28
- options?: __HttpHandlerOptions
29
- ): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
30
- private serialize;
31
- private deserialize;
32
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
4
+ import { GetSessionRequest, GetSessionResponse } from "../models/models_0";
5
+ export interface GetSessionCommandInput extends GetSessionRequest {
6
+ }
7
+ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns session information for a specified bot, alias, and user
11
+ * ID.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { LexRuntimeServiceClient, GetSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
16
+ * // const { LexRuntimeServiceClient, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
17
+ * const client = new LexRuntimeServiceClient(config);
18
+ * const command = new GetSessionCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link GetSessionCommandInput} for command's `input` shape.
23
+ * @see {@link GetSessionCommandOutput} for command's `response` shape.
24
+ * @see {@link LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
28
+ readonly input: GetSessionCommandInput;
29
+ constructor(input: GetSessionCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSessionCommandInput, GetSessionCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -1,39 +1,122 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeServiceClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeServiceClient";
13
- import { PostContentRequest, PostContentResponse } from "../models/models_0";
14
- declare type PostContentCommandInputType = Pick<
15
- PostContentRequest,
16
- Exclude<keyof PostContentRequest, "inputStream">
17
- > & {
18
- inputStream: PostContentRequest["inputStream"] | string | Uint8Array | Buffer;
19
- };
20
- export interface PostContentCommandInput extends PostContentCommandInputType {}
21
- export interface PostContentCommandOutput
22
- extends PostContentResponse,
23
- __MetadataBearer {}
24
- export declare class PostContentCommand extends $Command<
25
- PostContentCommandInput,
26
- PostContentCommandOutput,
27
- LexRuntimeServiceClientResolvedConfig
28
- > {
29
- readonly input: PostContentCommandInput;
30
- constructor(input: PostContentCommandInput);
31
- resolveMiddleware(
32
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
- configuration: LexRuntimeServiceClientResolvedConfig,
34
- options?: __HttpHandlerOptions
35
- ): Handler<PostContentCommandInput, PostContentCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }
39
- export {};
1
+ /// <reference types="node" />
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
5
+ import { PostContentRequest, PostContentResponse } from "../models/models_0";
6
+ declare type PostContentCommandInputType = Pick<PostContentRequest, Exclude<keyof PostContentRequest, "inputStream">> & {
7
+ /**
8
+ * For *`PostContentRequest["inputStream"]`*, see {@link PostContentRequest.inputStream}.
9
+ */
10
+ inputStream: PostContentRequest["inputStream"] | string | Uint8Array | Buffer;
11
+ };
12
+ /**
13
+ * This interface extends from `PostContentRequest` interface. There are more parameters than `inputStream` defined in {@link PostContentRequest}
14
+ */
15
+ export interface PostContentCommandInput extends PostContentCommandInputType {
16
+ }
17
+ export interface PostContentCommandOutput extends PostContentResponse, __MetadataBearer {
18
+ }
19
+ /**
20
+ * <p> Sends user input (text or speech) to Amazon Lex. Clients use this API to
21
+ * send text and audio requests to Amazon Lex at runtime. Amazon Lex interprets the
22
+ * user input using the machine learning model that it built for the bot. </p>
23
+ * <p>The <code>PostContent</code> operation supports audio input at 8kHz
24
+ * and 16kHz. You can use 8kHz audio to achieve higher speech recognition
25
+ * accuracy in telephone audio applications. </p>
26
+ * <p> In response, Amazon Lex returns the next message to convey to the user.
27
+ * Consider the following example messages: </p>
28
+ * <ul>
29
+ * <li>
30
+ * <p> For a user input "I would like a pizza," Amazon Lex might return a
31
+ * response with a message eliciting slot data (for example,
32
+ * <code>PizzaSize</code>): "What size pizza would you like?". </p>
33
+ * </li>
34
+ * <li>
35
+ * <p> After the user provides all of the pizza order information, Amazon Lex
36
+ * might return a response with a message to get user confirmation:
37
+ * "Order the pizza?". </p>
38
+ * </li>
39
+ * <li>
40
+ * <p> After the user replies "Yes" to the confirmation prompt, Amazon Lex
41
+ * might return a conclusion statement: "Thank you, your cheese pizza has
42
+ * been ordered.". </p>
43
+ * </li>
44
+ * </ul>
45
+ * <p> Not all Amazon Lex messages require a response from the user. For example,
46
+ * conclusion statements do not require a response. Some messages require
47
+ * only a yes or no response. In addition to the <code>message</code>, Amazon Lex
48
+ * provides additional context about the message in the response that you can
49
+ * use to enhance client behavior, such as displaying the appropriate client
50
+ * user interface. Consider the following examples: </p>
51
+ * <ul>
52
+ * <li>
53
+ * <p> If the message is to elicit slot data, Amazon Lex returns the
54
+ * following context information: </p>
55
+ * <ul>
56
+ * <li>
57
+ * <p>
58
+ * <code>x-amz-lex-dialog-state</code> header set to
59
+ * <code>ElicitSlot</code>
60
+ * </p>
61
+ * </li>
62
+ * <li>
63
+ * <p>
64
+ * <code>x-amz-lex-intent-name</code> header set to the intent name
65
+ * in the current context </p>
66
+ * </li>
67
+ * <li>
68
+ * <p>
69
+ * <code>x-amz-lex-slot-to-elicit</code> header set to the slot name
70
+ * for which the <code>message</code> is eliciting information
71
+ * </p>
72
+ * </li>
73
+ * <li>
74
+ * <p>
75
+ * <code>x-amz-lex-slots</code> header set to a map of slots
76
+ * configured for the intent with their current values </p>
77
+ * </li>
78
+ * </ul>
79
+ * </li>
80
+ * <li>
81
+ * <p> If the message is a confirmation prompt, the
82
+ * <code>x-amz-lex-dialog-state</code> header is set to
83
+ * <code>Confirmation</code> and the
84
+ * <code>x-amz-lex-slot-to-elicit</code> header is omitted. </p>
85
+ * </li>
86
+ * <li>
87
+ * <p> If the message is a clarification prompt configured for the
88
+ * intent, indicating that the user intent is not understood, the
89
+ * <code>x-amz-dialog-state</code> header is set to
90
+ * <code>ElicitIntent</code> and the <code>x-amz-slot-to-elicit</code>
91
+ * header is omitted. </p>
92
+ * </li>
93
+ * </ul>
94
+ * <p> In addition, Amazon Lex also returns your application-specific
95
+ * <code>sessionAttributes</code>. For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html">Managing
96
+ * Conversation Context</a>. </p>
97
+ * @example
98
+ * Use a bare-bones client and the command you need to make an API call.
99
+ * ```javascript
100
+ * import { LexRuntimeServiceClient, PostContentCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
101
+ * // const { LexRuntimeServiceClient, PostContentCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
102
+ * const client = new LexRuntimeServiceClient(config);
103
+ * const command = new PostContentCommand(input);
104
+ * const response = await client.send(command);
105
+ * ```
106
+ *
107
+ * @see {@link PostContentCommandInput} for command's `input` shape.
108
+ * @see {@link PostContentCommandOutput} for command's `response` shape.
109
+ * @see {@link LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
110
+ *
111
+ */
112
+ export declare class PostContentCommand extends $Command<PostContentCommandInput, PostContentCommandOutput, LexRuntimeServiceClientResolvedConfig> {
113
+ readonly input: PostContentCommandInput;
114
+ constructor(input: PostContentCommandInput);
115
+ /**
116
+ * @internal
117
+ */
118
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PostContentCommandInput, PostContentCommandOutput>;
119
+ private serialize;
120
+ private deserialize;
121
+ }
122
+ export {};
@@ -1,32 +1,110 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeServiceClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeServiceClient";
13
- import { PostTextRequest, PostTextResponse } from "../models/models_0";
14
- export interface PostTextCommandInput extends PostTextRequest {}
15
- export interface PostTextCommandOutput
16
- extends PostTextResponse,
17
- __MetadataBearer {}
18
- export declare class PostTextCommand extends $Command<
19
- PostTextCommandInput,
20
- PostTextCommandOutput,
21
- LexRuntimeServiceClientResolvedConfig
22
- > {
23
- readonly input: PostTextCommandInput;
24
- constructor(input: PostTextCommandInput);
25
- resolveMiddleware(
26
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
- configuration: LexRuntimeServiceClientResolvedConfig,
28
- options?: __HttpHandlerOptions
29
- ): Handler<PostTextCommandInput, PostTextCommandOutput>;
30
- private serialize;
31
- private deserialize;
32
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
4
+ import { PostTextRequest, PostTextResponse } from "../models/models_0";
5
+ export interface PostTextCommandInput extends PostTextRequest {
6
+ }
7
+ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Sends user input to Amazon Lex. Client applications can use this API to
11
+ * send requests to Amazon Lex at runtime. Amazon Lex then interprets the user input
12
+ * using the machine learning model it built for the bot. </p>
13
+ * <p> In response, Amazon Lex returns the next <code>message</code> to convey to
14
+ * the user an optional <code>responseCard</code> to display. Consider the
15
+ * following example messages: </p>
16
+ * <ul>
17
+ * <li>
18
+ * <p> For a user input "I would like a pizza", Amazon Lex might return a
19
+ * response with a message eliciting slot data (for example, PizzaSize):
20
+ * "What size pizza would you like?" </p>
21
+ * </li>
22
+ * <li>
23
+ * <p> After the user provides all of the pizza order information,
24
+ * Amazon Lex might return a response with a message to obtain user
25
+ * confirmation "Proceed with the pizza order?". </p>
26
+ * </li>
27
+ * <li>
28
+ * <p> After the user replies to a confirmation prompt with a "yes",
29
+ * Amazon Lex might return a conclusion statement: "Thank you, your cheese
30
+ * pizza has been ordered.". </p>
31
+ * </li>
32
+ * </ul>
33
+ *
34
+ * <p> Not all Amazon Lex messages require a user response. For example, a
35
+ * conclusion statement does not require a response. Some messages require
36
+ * only a "yes" or "no" user response. In addition to the
37
+ * <code>message</code>, Amazon Lex provides additional context about the
38
+ * message in the response that you might use to enhance client behavior, for
39
+ * example, to display the appropriate client user interface. These are the
40
+ * <code>slotToElicit</code>, <code>dialogState</code>,
41
+ * <code>intentName</code>, and <code>slots</code> fields in the response.
42
+ * Consider the following examples: </p>
43
+ *
44
+ * <ul>
45
+ * <li>
46
+ * <p>If the message is to elicit slot data, Amazon Lex returns the
47
+ * following context information:</p>
48
+ * <ul>
49
+ * <li>
50
+ * <p>
51
+ * <code>dialogState</code> set to ElicitSlot </p>
52
+ * </li>
53
+ * <li>
54
+ * <p>
55
+ * <code>intentName</code> set to the intent name in the current
56
+ * context </p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>slotToElicit</code> set to the slot name for which the
61
+ * <code>message</code> is eliciting information </p>
62
+ * </li>
63
+ * <li>
64
+ * <p>
65
+ * <code>slots</code> set to a map of slots, configured for the
66
+ * intent, with currently known values </p>
67
+ * </li>
68
+ * </ul>
69
+ * </li>
70
+ * <li>
71
+ * <p> If the message is a confirmation prompt, the
72
+ * <code>dialogState</code> is set to ConfirmIntent and
73
+ * <code>SlotToElicit</code> is set to null. </p>
74
+ * </li>
75
+ * <li>
76
+ * <p>If the message is a clarification prompt (configured for the
77
+ * intent) that indicates that user intent is not understood, the
78
+ * <code>dialogState</code> is set to ElicitIntent and
79
+ * <code>slotToElicit</code> is set to null. </p>
80
+ * </li>
81
+ * </ul>
82
+ *
83
+ * <p> In addition, Amazon Lex also returns your application-specific
84
+ * <code>sessionAttributes</code>. For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html">Managing
85
+ * Conversation Context</a>. </p>
86
+ * @example
87
+ * Use a bare-bones client and the command you need to make an API call.
88
+ * ```javascript
89
+ * import { LexRuntimeServiceClient, PostTextCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
90
+ * // const { LexRuntimeServiceClient, PostTextCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
91
+ * const client = new LexRuntimeServiceClient(config);
92
+ * const command = new PostTextCommand(input);
93
+ * const response = await client.send(command);
94
+ * ```
95
+ *
96
+ * @see {@link PostTextCommandInput} for command's `input` shape.
97
+ * @see {@link PostTextCommandOutput} for command's `response` shape.
98
+ * @see {@link LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
99
+ *
100
+ */
101
+ export declare class PostTextCommand extends $Command<PostTextCommandInput, PostTextCommandOutput, LexRuntimeServiceClientResolvedConfig> {
102
+ readonly input: PostTextCommandInput;
103
+ constructor(input: PostTextCommandInput);
104
+ /**
105
+ * @internal
106
+ */
107
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PostTextCommandInput, PostTextCommandOutput>;
108
+ private serialize;
109
+ private deserialize;
110
+ }
@@ -1,32 +1,39 @@
1
- import { Command as $Command } from "@aws-sdk/smithy-client";
2
- import {
3
- Handler,
4
- HttpHandlerOptions as __HttpHandlerOptions,
5
- MetadataBearer as __MetadataBearer,
6
- MiddlewareStack,
7
- } from "@aws-sdk/types";
8
- import {
9
- LexRuntimeServiceClientResolvedConfig,
10
- ServiceInputTypes,
11
- ServiceOutputTypes,
12
- } from "../LexRuntimeServiceClient";
13
- import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
14
- export interface PutSessionCommandInput extends PutSessionRequest {}
15
- export interface PutSessionCommandOutput
16
- extends PutSessionResponse,
17
- __MetadataBearer {}
18
- export declare class PutSessionCommand extends $Command<
19
- PutSessionCommandInput,
20
- PutSessionCommandOutput,
21
- LexRuntimeServiceClientResolvedConfig
22
- > {
23
- readonly input: PutSessionCommandInput;
24
- constructor(input: PutSessionCommandInput);
25
- resolveMiddleware(
26
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
27
- configuration: LexRuntimeServiceClientResolvedConfig,
28
- options?: __HttpHandlerOptions
29
- ): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
30
- private serialize;
31
- private deserialize;
32
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LexRuntimeServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexRuntimeServiceClient";
4
+ import { PutSessionRequest, PutSessionResponse } from "../models/models_0";
5
+ export interface PutSessionCommandInput extends PutSessionRequest {
6
+ }
7
+ export interface PutSessionCommandOutput extends PutSessionResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Creates a new session or modifies an existing session with an Amazon Lex
11
+ * bot. Use this operation to enable your application to set the state of the
12
+ * bot.</p>
13
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/how-session-api.html">Managing
14
+ * Sessions</a>.</p>
15
+ * @example
16
+ * Use a bare-bones client and the command you need to make an API call.
17
+ * ```javascript
18
+ * import { LexRuntimeServiceClient, PutSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
19
+ * // const { LexRuntimeServiceClient, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
20
+ * const client = new LexRuntimeServiceClient(config);
21
+ * const command = new PutSessionCommand(input);
22
+ * const response = await client.send(command);
23
+ * ```
24
+ *
25
+ * @see {@link PutSessionCommandInput} for command's `input` shape.
26
+ * @see {@link PutSessionCommandOutput} for command's `response` shape.
27
+ * @see {@link LexRuntimeServiceClientResolvedConfig | config} for LexRuntimeServiceClient's `config` shape.
28
+ *
29
+ */
30
+ export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
31
+ readonly input: PutSessionCommandInput;
32
+ constructor(input: PutSessionCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexRuntimeServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSessionCommandInput, PutSessionCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -1,5 +1,5 @@
1
- export * from "./DeleteSessionCommand";
2
- export * from "./GetSessionCommand";
3
- export * from "./PostContentCommand";
4
- export * from "./PostTextCommand";
5
- export * from "./PutSessionCommand";
1
+ export * from "./DeleteSessionCommand";
2
+ export * from "./GetSessionCommand";
3
+ export * from "./PostContentCommand";
4
+ export * from "./PostTextCommand";
5
+ export * from "./PutSessionCommand";
@@ -1,2 +1,2 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,5 +1,5 @@
1
- export * from "./LexRuntimeService";
2
- export * from "./LexRuntimeServiceClient";
3
- export * from "./commands";
4
- export * from "./models";
5
- export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
1
+ export * from "./LexRuntimeService";
2
+ export * from "./LexRuntimeServiceClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
@@ -1,7 +1,10 @@
1
- import {
2
- ServiceException as __ServiceException,
3
- ServiceExceptionOptions as __ServiceExceptionOptions,
4
- } from "@aws-sdk/smithy-client";
5
- export declare class LexRuntimeServiceServiceException extends __ServiceException {
6
- constructor(options: __ServiceExceptionOptions);
7
- }
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from LexRuntimeService service.
4
+ */
5
+ export declare class LexRuntimeServiceServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1 +1 @@
1
- export * from "./models_0";
1
+ export * from "./models_0";