@aws-sdk/client-lex-runtime-service 3.299.0 → 3.301.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 +5 -0
- package/dist-types/commands/GetSessionCommand.d.ts +6 -0
- package/dist-types/commands/PostContentCommand.d.ts +11 -0
- package/dist-types/commands/PostTextCommand.d.ts +24 -0
- package/dist-types/commands/PutSessionCommand.d.ts +43 -0
- package/package.json +8 -8
|
@@ -27,6 +27,11 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
|
|
|
27
27
|
* import { LexRuntimeServiceClient, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
28
28
|
* // const { LexRuntimeServiceClient, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
29
29
|
* const client = new LexRuntimeServiceClient(config);
|
|
30
|
+
* const input = { // DeleteSessionRequest
|
|
31
|
+
* botName: "STRING_VALUE", // required
|
|
32
|
+
* botAlias: "STRING_VALUE", // required
|
|
33
|
+
* userId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
30
35
|
* const command = new DeleteSessionCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
|
|
|
27
27
|
* import { LexRuntimeServiceClient, GetSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
28
28
|
* // const { LexRuntimeServiceClient, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
29
29
|
* const client = new LexRuntimeServiceClient(config);
|
|
30
|
+
* const input = { // GetSessionRequest
|
|
31
|
+
* botName: "STRING_VALUE", // required
|
|
32
|
+
* botAlias: "STRING_VALUE", // required
|
|
33
|
+
* userId: "STRING_VALUE", // required
|
|
34
|
+
* checkpointLabelFilter: "STRING_VALUE",
|
|
35
|
+
* };
|
|
30
36
|
* const command = new GetSessionCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -112,6 +112,17 @@ export interface PostContentCommandOutput extends __WithSdkStreamMixin<PostConte
|
|
|
112
112
|
* import { LexRuntimeServiceClient, PostContentCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
113
113
|
* // const { LexRuntimeServiceClient, PostContentCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
114
114
|
* const client = new LexRuntimeServiceClient(config);
|
|
115
|
+
* const input = { // PostContentRequest
|
|
116
|
+
* botName: "STRING_VALUE", // required
|
|
117
|
+
* botAlias: "STRING_VALUE", // required
|
|
118
|
+
* userId: "STRING_VALUE", // required
|
|
119
|
+
* sessionAttributes: "STRING_VALUE",
|
|
120
|
+
* requestAttributes: "STRING_VALUE",
|
|
121
|
+
* contentType: "STRING_VALUE", // required
|
|
122
|
+
* accept: "STRING_VALUE",
|
|
123
|
+
* inputStream: "STREAMING_BLOB_VALUE", // required
|
|
124
|
+
* activeContexts: "STRING_VALUE",
|
|
125
|
+
* };
|
|
115
126
|
* const command = new PostContentCommand(input);
|
|
116
127
|
* const response = await client.send(command);
|
|
117
128
|
* ```
|
|
@@ -101,6 +101,30 @@ export interface PostTextCommandOutput extends PostTextResponse, __MetadataBeare
|
|
|
101
101
|
* import { LexRuntimeServiceClient, PostTextCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
102
102
|
* // const { LexRuntimeServiceClient, PostTextCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
103
103
|
* const client = new LexRuntimeServiceClient(config);
|
|
104
|
+
* const input = { // PostTextRequest
|
|
105
|
+
* botName: "STRING_VALUE", // required
|
|
106
|
+
* botAlias: "STRING_VALUE", // required
|
|
107
|
+
* userId: "STRING_VALUE", // required
|
|
108
|
+
* sessionAttributes: { // StringMap
|
|
109
|
+
* "<keys>": "STRING_VALUE",
|
|
110
|
+
* },
|
|
111
|
+
* requestAttributes: {
|
|
112
|
+
* "<keys>": "STRING_VALUE",
|
|
113
|
+
* },
|
|
114
|
+
* inputText: "STRING_VALUE", // required
|
|
115
|
+
* activeContexts: [ // ActiveContextsList
|
|
116
|
+
* { // ActiveContext
|
|
117
|
+
* name: "STRING_VALUE", // required
|
|
118
|
+
* timeToLive: { // ActiveContextTimeToLive
|
|
119
|
+
* timeToLiveInSeconds: Number("int"),
|
|
120
|
+
* turnsToLive: Number("int"),
|
|
121
|
+
* },
|
|
122
|
+
* parameters: { // ActiveContextParametersMap // required
|
|
123
|
+
* "<keys>": "STRING_VALUE",
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* ],
|
|
127
|
+
* };
|
|
104
128
|
* const command = new PostTextCommand(input);
|
|
105
129
|
* const response = await client.send(command);
|
|
106
130
|
* ```
|
|
@@ -30,6 +30,49 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
|
|
|
30
30
|
* import { LexRuntimeServiceClient, PutSessionCommand } from "@aws-sdk/client-lex-runtime-service"; // ES Modules import
|
|
31
31
|
* // const { LexRuntimeServiceClient, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); // CommonJS import
|
|
32
32
|
* const client = new LexRuntimeServiceClient(config);
|
|
33
|
+
* const input = { // PutSessionRequest
|
|
34
|
+
* botName: "STRING_VALUE", // required
|
|
35
|
+
* botAlias: "STRING_VALUE", // required
|
|
36
|
+
* userId: "STRING_VALUE", // required
|
|
37
|
+
* sessionAttributes: { // StringMap
|
|
38
|
+
* "<keys>": "STRING_VALUE",
|
|
39
|
+
* },
|
|
40
|
+
* dialogAction: { // DialogAction
|
|
41
|
+
* type: "STRING_VALUE", // required
|
|
42
|
+
* intentName: "STRING_VALUE",
|
|
43
|
+
* slots: {
|
|
44
|
+
* "<keys>": "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* slotToElicit: "STRING_VALUE",
|
|
47
|
+
* fulfillmentState: "STRING_VALUE",
|
|
48
|
+
* message: "STRING_VALUE",
|
|
49
|
+
* messageFormat: "STRING_VALUE",
|
|
50
|
+
* },
|
|
51
|
+
* recentIntentSummaryView: [ // IntentSummaryList
|
|
52
|
+
* { // IntentSummary
|
|
53
|
+
* intentName: "STRING_VALUE",
|
|
54
|
+
* checkpointLabel: "STRING_VALUE",
|
|
55
|
+
* slots: "<StringMap>",
|
|
56
|
+
* confirmationStatus: "STRING_VALUE",
|
|
57
|
+
* dialogActionType: "STRING_VALUE", // required
|
|
58
|
+
* fulfillmentState: "STRING_VALUE",
|
|
59
|
+
* slotToElicit: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* accept: "STRING_VALUE",
|
|
63
|
+
* activeContexts: [ // ActiveContextsList
|
|
64
|
+
* { // ActiveContext
|
|
65
|
+
* name: "STRING_VALUE", // required
|
|
66
|
+
* timeToLive: { // ActiveContextTimeToLive
|
|
67
|
+
* timeToLiveInSeconds: Number("int"),
|
|
68
|
+
* turnsToLive: Number("int"),
|
|
69
|
+
* },
|
|
70
|
+
* parameters: { // ActiveContextParametersMap // required
|
|
71
|
+
* "<keys>": "STRING_VALUE",
|
|
72
|
+
* },
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* };
|
|
33
76
|
* const command = new PutSessionCommand(input);
|
|
34
77
|
* const response = await client.send(command);
|
|
35
78
|
* ```
|
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.301.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.
|
|
27
|
-
"@aws-sdk/config-resolver": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.301.0",
|
|
27
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
29
29
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
30
30
|
"@aws-sdk/hash-node": "3.296.0",
|
|
31
31
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
35
35
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
36
36
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
37
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
38
38
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
40
40
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
41
41
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
42
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
43
43
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
44
44
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
45
45
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
51
51
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
53
53
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
54
54
|
"@aws-sdk/util-retry": "3.296.0",
|
|
55
55
|
"@aws-sdk/util-stream-browser": "3.296.0",
|
|
56
56
|
"@aws-sdk/util-stream-node": "3.296.0",
|
|
57
57
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
58
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
58
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
59
59
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|