@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.
- package/dist-types/ts3.4/LexRuntimeService.d.ts +210 -89
- package/dist-types/ts3.4/LexRuntimeServiceClient.d.ts +160 -135
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +36 -35
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +36 -32
- package/dist-types/ts3.4/commands/PostContentCommand.d.ts +122 -39
- package/dist-types/ts3.4/commands/PostTextCommand.d.ts +110 -32
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +39 -32
- package/dist-types/ts3.4/commands/index.d.ts +5 -5
- package/dist-types/ts3.4/endpoints.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +5 -5
- package/dist-types/ts3.4/models/LexRuntimeServiceServiceException.d.ts +10 -7
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1642 -330
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -65
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +40 -69
- package/dist-types/ts3.4/runtimeConfig.d.ts +40 -69
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +39 -70
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +13 -12
- package/package.json +2 -2
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare class LexRuntimeServiceServiceException extends __ServiceException {
|
|
6
|
-
|
|
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";
|