@aws-sdk/client-lex-runtime-service 3.325.0 → 3.327.0
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/commands/DeleteSessionCommand.d.ts +9 -0
- package/dist-types/commands/GetSessionCommand.d.ts +43 -0
- package/dist-types/commands/PostContentCommand.d.ts +23 -0
- package/dist-types/commands/PostTextCommand.d.ts +66 -0
- package/dist-types/commands/PutSessionCommand.d.ts +17 -0
- package/package.json +7 -7
|
@@ -34,6 +34,13 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new DeleteSessionCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // { // DeleteSessionResponse
|
|
38
|
+
* // botName: "STRING_VALUE",
|
|
39
|
+
* // botAlias: "STRING_VALUE",
|
|
40
|
+
* // userId: "STRING_VALUE",
|
|
41
|
+
* // sessionId: "STRING_VALUE",
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
37
44
|
* ```
|
|
38
45
|
*
|
|
39
46
|
* @param DeleteSessionCommandInput - {@link DeleteSessionCommandInput}
|
|
@@ -61,6 +68,8 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
61
68
|
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
|
|
62
69
|
* to is not found.</p>
|
|
63
70
|
*
|
|
71
|
+
* @throws {@link LexRuntimeServiceServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
|
|
64
73
|
*
|
|
65
74
|
*/
|
|
66
75
|
export declare class DeleteSessionCommand extends $Command<DeleteSessionCommandInput, DeleteSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
|
|
@@ -35,6 +35,47 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
35
35
|
* };
|
|
36
36
|
* const command = new GetSessionCommand(input);
|
|
37
37
|
* const response = await client.send(command);
|
|
38
|
+
* // { // GetSessionResponse
|
|
39
|
+
* // recentIntentSummaryView: [ // IntentSummaryList
|
|
40
|
+
* // { // IntentSummary
|
|
41
|
+
* // intentName: "STRING_VALUE",
|
|
42
|
+
* // checkpointLabel: "STRING_VALUE",
|
|
43
|
+
* // slots: { // StringMap
|
|
44
|
+
* // "<keys>": "STRING_VALUE",
|
|
45
|
+
* // },
|
|
46
|
+
* // confirmationStatus: "STRING_VALUE",
|
|
47
|
+
* // dialogActionType: "STRING_VALUE", // required
|
|
48
|
+
* // fulfillmentState: "STRING_VALUE",
|
|
49
|
+
* // slotToElicit: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // sessionAttributes: {
|
|
53
|
+
* // "<keys>": "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // sessionId: "STRING_VALUE",
|
|
56
|
+
* // dialogAction: { // DialogAction
|
|
57
|
+
* // type: "STRING_VALUE", // required
|
|
58
|
+
* // intentName: "STRING_VALUE",
|
|
59
|
+
* // slots: "<StringMap>",
|
|
60
|
+
* // slotToElicit: "STRING_VALUE",
|
|
61
|
+
* // fulfillmentState: "STRING_VALUE",
|
|
62
|
+
* // message: "STRING_VALUE",
|
|
63
|
+
* // messageFormat: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // activeContexts: [ // ActiveContextsList
|
|
66
|
+
* // { // ActiveContext
|
|
67
|
+
* // name: "STRING_VALUE", // required
|
|
68
|
+
* // timeToLive: { // ActiveContextTimeToLive
|
|
69
|
+
* // timeToLiveInSeconds: Number("int"),
|
|
70
|
+
* // turnsToLive: Number("int"),
|
|
71
|
+
* // },
|
|
72
|
+
* // parameters: { // ActiveContextParametersMap // required
|
|
73
|
+
* // "<keys>": "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
38
79
|
* ```
|
|
39
80
|
*
|
|
40
81
|
* @param GetSessionCommandInput - {@link GetSessionCommandInput}
|
|
@@ -58,6 +99,8 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
58
99
|
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
|
|
59
100
|
* to is not found.</p>
|
|
60
101
|
*
|
|
102
|
+
* @throws {@link LexRuntimeServiceServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
|
|
61
104
|
*
|
|
62
105
|
*/
|
|
63
106
|
export declare class GetSessionCommand extends $Command<GetSessionCommandInput, GetSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
|
|
@@ -125,6 +125,27 @@ export interface PostContentCommandOutput extends __WithSdkStreamMixin<PostConte
|
|
|
125
125
|
* };
|
|
126
126
|
* const command = new PostContentCommand(input);
|
|
127
127
|
* const response = await client.send(command);
|
|
128
|
+
* // { // PostContentResponse
|
|
129
|
+
* // contentType: "STRING_VALUE",
|
|
130
|
+
* // intentName: "STRING_VALUE",
|
|
131
|
+
* // nluIntentConfidence: "STRING_VALUE",
|
|
132
|
+
* // alternativeIntents: "STRING_VALUE",
|
|
133
|
+
* // slots: "STRING_VALUE",
|
|
134
|
+
* // sessionAttributes: "STRING_VALUE",
|
|
135
|
+
* // sentimentResponse: "STRING_VALUE",
|
|
136
|
+
* // message: "STRING_VALUE",
|
|
137
|
+
* // encodedMessage: "STRING_VALUE",
|
|
138
|
+
* // messageFormat: "STRING_VALUE",
|
|
139
|
+
* // dialogState: "STRING_VALUE",
|
|
140
|
+
* // slotToElicit: "STRING_VALUE",
|
|
141
|
+
* // inputTranscript: "STRING_VALUE",
|
|
142
|
+
* // encodedInputTranscript: "STRING_VALUE",
|
|
143
|
+
* // audioStream: "STREAMING_BLOB_VALUE",
|
|
144
|
+
* // botVersion: "STRING_VALUE",
|
|
145
|
+
* // sessionId: "STRING_VALUE",
|
|
146
|
+
* // activeContexts: "STRING_VALUE",
|
|
147
|
+
* // };
|
|
148
|
+
*
|
|
128
149
|
* ```
|
|
129
150
|
*
|
|
130
151
|
* @param PostContentCommandInput - {@link PostContentCommandInput}
|
|
@@ -188,6 +209,8 @@ export interface PostContentCommandOutput extends __WithSdkStreamMixin<PostConte
|
|
|
188
209
|
* <p>The Content-Type header (<code>PostContent</code> API) has an invalid
|
|
189
210
|
* value. </p>
|
|
190
211
|
*
|
|
212
|
+
* @throws {@link LexRuntimeServiceServiceException}
|
|
213
|
+
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
|
|
191
214
|
*
|
|
192
215
|
*/
|
|
193
216
|
export declare class PostContentCommand extends $Command<PostContentCommandInput, PostContentCommandOutput, LexRuntimeServiceClientResolvedConfig> {
|
|
@@ -127,6 +127,70 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
|
|
|
127
127
|
* };
|
|
128
128
|
* const command = new PostTextCommand(input);
|
|
129
129
|
* const response = await client.send(command);
|
|
130
|
+
* // { // PostTextResponse
|
|
131
|
+
* // intentName: "STRING_VALUE",
|
|
132
|
+
* // nluIntentConfidence: { // IntentConfidence
|
|
133
|
+
* // score: Number("double"),
|
|
134
|
+
* // },
|
|
135
|
+
* // alternativeIntents: [ // IntentList
|
|
136
|
+
* // { // PredictedIntent
|
|
137
|
+
* // intentName: "STRING_VALUE",
|
|
138
|
+
* // nluIntentConfidence: {
|
|
139
|
+
* // score: Number("double"),
|
|
140
|
+
* // },
|
|
141
|
+
* // slots: { // StringMap
|
|
142
|
+
* // "<keys>": "STRING_VALUE",
|
|
143
|
+
* // },
|
|
144
|
+
* // },
|
|
145
|
+
* // ],
|
|
146
|
+
* // slots: {
|
|
147
|
+
* // "<keys>": "STRING_VALUE",
|
|
148
|
+
* // },
|
|
149
|
+
* // sessionAttributes: {
|
|
150
|
+
* // "<keys>": "STRING_VALUE",
|
|
151
|
+
* // },
|
|
152
|
+
* // message: "STRING_VALUE",
|
|
153
|
+
* // sentimentResponse: { // SentimentResponse
|
|
154
|
+
* // sentimentLabel: "STRING_VALUE",
|
|
155
|
+
* // sentimentScore: "STRING_VALUE",
|
|
156
|
+
* // },
|
|
157
|
+
* // messageFormat: "STRING_VALUE",
|
|
158
|
+
* // dialogState: "STRING_VALUE",
|
|
159
|
+
* // slotToElicit: "STRING_VALUE",
|
|
160
|
+
* // responseCard: { // ResponseCard
|
|
161
|
+
* // version: "STRING_VALUE",
|
|
162
|
+
* // contentType: "STRING_VALUE",
|
|
163
|
+
* // genericAttachments: [ // genericAttachmentList
|
|
164
|
+
* // { // GenericAttachment
|
|
165
|
+
* // title: "STRING_VALUE",
|
|
166
|
+
* // subTitle: "STRING_VALUE",
|
|
167
|
+
* // attachmentLinkUrl: "STRING_VALUE",
|
|
168
|
+
* // imageUrl: "STRING_VALUE",
|
|
169
|
+
* // buttons: [ // listOfButtons
|
|
170
|
+
* // { // Button
|
|
171
|
+
* // text: "STRING_VALUE", // required
|
|
172
|
+
* // value: "STRING_VALUE", // required
|
|
173
|
+
* // },
|
|
174
|
+
* // ],
|
|
175
|
+
* // },
|
|
176
|
+
* // ],
|
|
177
|
+
* // },
|
|
178
|
+
* // sessionId: "STRING_VALUE",
|
|
179
|
+
* // botVersion: "STRING_VALUE",
|
|
180
|
+
* // activeContexts: [ // ActiveContextsList
|
|
181
|
+
* // { // ActiveContext
|
|
182
|
+
* // name: "STRING_VALUE", // required
|
|
183
|
+
* // timeToLive: { // ActiveContextTimeToLive
|
|
184
|
+
* // timeToLiveInSeconds: Number("int"),
|
|
185
|
+
* // turnsToLive: Number("int"),
|
|
186
|
+
* // },
|
|
187
|
+
* // parameters: { // ActiveContextParametersMap // required
|
|
188
|
+
* // "<keys>": "STRING_VALUE",
|
|
189
|
+
* // },
|
|
190
|
+
* // },
|
|
191
|
+
* // ],
|
|
192
|
+
* // };
|
|
193
|
+
*
|
|
130
194
|
* ```
|
|
131
195
|
*
|
|
132
196
|
* @param PostTextCommandInput - {@link PostTextCommandInput}
|
|
@@ -180,6 +244,8 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
|
|
|
180
244
|
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
|
|
181
245
|
* to is not found.</p>
|
|
182
246
|
*
|
|
247
|
+
* @throws {@link LexRuntimeServiceServiceException}
|
|
248
|
+
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
|
|
183
249
|
*
|
|
184
250
|
*/
|
|
185
251
|
export declare class PostTextCommand extends $Command<PostTextCommandInput, PostTextCommandOutput, LexRuntimeServiceClientResolvedConfig> {
|
|
@@ -75,6 +75,21 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
75
75
|
* };
|
|
76
76
|
* const command = new PutSessionCommand(input);
|
|
77
77
|
* const response = await client.send(command);
|
|
78
|
+
* // { // PutSessionResponse
|
|
79
|
+
* // contentType: "STRING_VALUE",
|
|
80
|
+
* // intentName: "STRING_VALUE",
|
|
81
|
+
* // slots: "STRING_VALUE",
|
|
82
|
+
* // sessionAttributes: "STRING_VALUE",
|
|
83
|
+
* // message: "STRING_VALUE",
|
|
84
|
+
* // encodedMessage: "STRING_VALUE",
|
|
85
|
+
* // messageFormat: "STRING_VALUE",
|
|
86
|
+
* // dialogState: "STRING_VALUE",
|
|
87
|
+
* // slotToElicit: "STRING_VALUE",
|
|
88
|
+
* // audioStream: "STREAMING_BLOB_VALUE",
|
|
89
|
+
* // sessionId: "STRING_VALUE",
|
|
90
|
+
* // activeContexts: "STRING_VALUE",
|
|
91
|
+
* // };
|
|
92
|
+
*
|
|
78
93
|
* ```
|
|
79
94
|
*
|
|
80
95
|
* @param PutSessionCommandInput - {@link PutSessionCommandInput}
|
|
@@ -128,6 +143,8 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
128
143
|
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
|
|
129
144
|
* to is not found.</p>
|
|
130
145
|
*
|
|
146
|
+
* @throws {@link LexRuntimeServiceServiceException}
|
|
147
|
+
* <p>Base exception class for all service exceptions from LexRuntimeService service.</p>
|
|
131
148
|
*
|
|
132
149
|
*/
|
|
133
150
|
export declare class PutSessionCommand extends $Command<PutSessionCommandInput, PutSessionCommandOutput, LexRuntimeServiceClientResolvedConfig> {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.327.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.327.0",
|
|
27
27
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.327.0",
|
|
29
29
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
30
30
|
"@aws-sdk/hash-node": "3.310.0",
|
|
31
31
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
35
35
|
"@aws-sdk/middleware-logger": "3.325.0",
|
|
36
36
|
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
37
|
+
"@aws-sdk/middleware-retry": "3.327.0",
|
|
38
38
|
"@aws-sdk/middleware-serde": "3.325.0",
|
|
39
39
|
"@aws-sdk/middleware-signing": "3.325.0",
|
|
40
40
|
"@aws-sdk/middleware-stack": "3.325.0",
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.327.0",
|
|
42
42
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
43
43
|
"@aws-sdk/node-http-handler": "3.321.1",
|
|
44
44
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
51
51
|
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
52
52
|
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
53
|
-
"@aws-sdk/util-endpoints": "3.
|
|
54
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
+
"@aws-sdk/util-endpoints": "3.327.0",
|
|
54
|
+
"@aws-sdk/util-retry": "3.327.0",
|
|
55
55
|
"@aws-sdk/util-stream-browser": "3.310.0",
|
|
56
56
|
"@aws-sdk/util-stream-node": "3.321.1",
|
|
57
57
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|