@aws-sdk/client-lex-runtime-v2 3.299.0 → 3.300.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.
@@ -39,6 +39,12 @@ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __Met
39
39
  * import { LexRuntimeV2Client, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
40
40
  * // const { LexRuntimeV2Client, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
41
41
  * const client = new LexRuntimeV2Client(config);
42
+ * const input = {
43
+ * botId: "STRING_VALUE", // required
44
+ * botAliasId: "STRING_VALUE", // required
45
+ * localeId: "STRING_VALUE", // required
46
+ * sessionId: "STRING_VALUE", // required
47
+ * };
42
48
  * const command = new DeleteSessionCommand(input);
43
49
  * const response = await client.send(command);
44
50
  * ```
@@ -34,6 +34,12 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
34
34
  * import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
35
35
  * // const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
36
36
  * const client = new LexRuntimeV2Client(config);
37
+ * const input = {
38
+ * botId: "STRING_VALUE", // required
39
+ * botAliasId: "STRING_VALUE", // required
40
+ * localeId: "STRING_VALUE", // required
41
+ * sessionId: "STRING_VALUE", // required
42
+ * };
37
43
  * const command = new GetSessionCommand(input);
38
44
  * const response = await client.send(command);
39
45
  * ```
@@ -28,6 +28,139 @@ export interface PutSessionCommandOutput extends __WithSdkStreamMixin<PutSession
28
28
  * import { LexRuntimeV2Client, PutSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
29
29
  * // const { LexRuntimeV2Client, PutSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
30
30
  * const client = new LexRuntimeV2Client(config);
31
+ * const input = {
32
+ * botId: "STRING_VALUE", // required
33
+ * botAliasId: "STRING_VALUE", // required
34
+ * localeId: "STRING_VALUE", // required
35
+ * sessionId: "STRING_VALUE", // required
36
+ * messages: [
37
+ * {
38
+ * content: "STRING_VALUE",
39
+ * contentType: "CustomPayload" || "ImageResponseCard" || "PlainText" || "SSML", // required
40
+ * imageResponseCard: {
41
+ * title: "STRING_VALUE", // required
42
+ * subtitle: "STRING_VALUE",
43
+ * imageUrl: "STRING_VALUE",
44
+ * buttons: [
45
+ * {
46
+ * text: "STRING_VALUE", // required
47
+ * value: "STRING_VALUE", // required
48
+ * },
49
+ * ],
50
+ * },
51
+ * },
52
+ * ],
53
+ * sessionState: {
54
+ * dialogAction: {
55
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
56
+ * slotToElicit: "STRING_VALUE",
57
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
58
+ * subSlotToElicit: {
59
+ * name: "STRING_VALUE", // required
60
+ * subSlotToElicit: {
61
+ * name: "STRING_VALUE", // required
62
+ * subSlotToElicit: {
63
+ * name: "<ElicitSubSlot>",
64
+ * subSlotToElicit: "<ElicitSubSlot>",
65
+ * },
66
+ * },
67
+ * },
68
+ * },
69
+ * intent: {
70
+ * name: "STRING_VALUE", // required
71
+ * slots: {
72
+ * "<keys>": {
73
+ * value: {
74
+ * originalValue: "STRING_VALUE",
75
+ * interpretedValue: "STRING_VALUE", // required
76
+ * resolvedValues: [
77
+ * "STRING_VALUE",
78
+ * ],
79
+ * },
80
+ * shape: "Scalar" || "List" || "Composite",
81
+ * values: [
82
+ * {
83
+ * value: {
84
+ * originalValue: "STRING_VALUE",
85
+ * interpretedValue: "STRING_VALUE", // required
86
+ * resolvedValues: [
87
+ * "STRING_VALUE",
88
+ * ],
89
+ * },
90
+ * shape: "Scalar" || "List" || "Composite",
91
+ * values: [
92
+ * {
93
+ * value: "<Slot>",
94
+ * shape: "<Slot>",
95
+ * values: "<Slot>",
96
+ * subSlots: {
97
+ * "<keys>": {
98
+ * value: "<Slot>",
99
+ * shape: "<Slot>",
100
+ * values: "<Slot>",
101
+ * subSlots: {
102
+ * "<keys>": "<Slot>",
103
+ * },
104
+ * },
105
+ * },
106
+ * },
107
+ * ],
108
+ * subSlots: "<Slot>",
109
+ * },
110
+ * ],
111
+ * subSlots: "<Slot>",
112
+ * },
113
+ * },
114
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
115
+ * confirmationState: "Confirmed" || "Denied" || "None",
116
+ * },
117
+ * activeContexts: [
118
+ * {
119
+ * name: "STRING_VALUE", // required
120
+ * timeToLive: {
121
+ * timeToLiveInSeconds: Number("int"), // required
122
+ * turnsToLive: Number("int"), // required
123
+ * },
124
+ * contextAttributes: { // required
125
+ * "<keys>": "STRING_VALUE",
126
+ * },
127
+ * },
128
+ * ],
129
+ * sessionAttributes: {
130
+ * "<keys>": "STRING_VALUE",
131
+ * },
132
+ * originatingRequestId: "STRING_VALUE",
133
+ * runtimeHints: {
134
+ * slotHints: {
135
+ * "<keys>": {
136
+ * "<keys>": {
137
+ * runtimeHintValues: [
138
+ * {
139
+ * phrase: "STRING_VALUE", // required
140
+ * },
141
+ * ],
142
+ * subSlotHints: {
143
+ * "<keys>": {
144
+ * runtimeHintValues: [
145
+ * {
146
+ * phrase: "STRING_VALUE", // required
147
+ * },
148
+ * ],
149
+ * subSlotHints: {
150
+ * "<keys>": "<RuntimeHintDetails>",
151
+ * },
152
+ * },
153
+ * },
154
+ * },
155
+ * },
156
+ * },
157
+ * },
158
+ * },
159
+ * requestAttributes: {
160
+ * "<keys>": "STRING_VALUE",
161
+ * },
162
+ * responseContentType: "STRING_VALUE",
163
+ * };
31
164
  * const command = new PutSessionCommand(input);
32
165
  * const response = await client.send(command);
33
166
  * ```
@@ -56,6 +56,122 @@ export interface RecognizeTextCommandOutput extends RecognizeTextResponse, __Met
56
56
  * import { LexRuntimeV2Client, RecognizeTextCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
57
57
  * // const { LexRuntimeV2Client, RecognizeTextCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
58
58
  * const client = new LexRuntimeV2Client(config);
59
+ * const input = {
60
+ * botId: "STRING_VALUE", // required
61
+ * botAliasId: "STRING_VALUE", // required
62
+ * localeId: "STRING_VALUE", // required
63
+ * sessionId: "STRING_VALUE", // required
64
+ * text: "STRING_VALUE", // required
65
+ * sessionState: {
66
+ * dialogAction: {
67
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
68
+ * slotToElicit: "STRING_VALUE",
69
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
70
+ * subSlotToElicit: {
71
+ * name: "STRING_VALUE", // required
72
+ * subSlotToElicit: {
73
+ * name: "STRING_VALUE", // required
74
+ * subSlotToElicit: {
75
+ * name: "<ElicitSubSlot>",
76
+ * subSlotToElicit: "<ElicitSubSlot>",
77
+ * },
78
+ * },
79
+ * },
80
+ * },
81
+ * intent: {
82
+ * name: "STRING_VALUE", // required
83
+ * slots: {
84
+ * "<keys>": {
85
+ * value: {
86
+ * originalValue: "STRING_VALUE",
87
+ * interpretedValue: "STRING_VALUE", // required
88
+ * resolvedValues: [
89
+ * "STRING_VALUE",
90
+ * ],
91
+ * },
92
+ * shape: "Scalar" || "List" || "Composite",
93
+ * values: [
94
+ * {
95
+ * value: {
96
+ * originalValue: "STRING_VALUE",
97
+ * interpretedValue: "STRING_VALUE", // required
98
+ * resolvedValues: [
99
+ * "STRING_VALUE",
100
+ * ],
101
+ * },
102
+ * shape: "Scalar" || "List" || "Composite",
103
+ * values: [
104
+ * {
105
+ * value: "<Slot>",
106
+ * shape: "<Slot>",
107
+ * values: "<Slot>",
108
+ * subSlots: {
109
+ * "<keys>": {
110
+ * value: "<Slot>",
111
+ * shape: "<Slot>",
112
+ * values: "<Slot>",
113
+ * subSlots: {
114
+ * "<keys>": "<Slot>",
115
+ * },
116
+ * },
117
+ * },
118
+ * },
119
+ * ],
120
+ * subSlots: "<Slot>",
121
+ * },
122
+ * ],
123
+ * subSlots: "<Slot>",
124
+ * },
125
+ * },
126
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
127
+ * confirmationState: "Confirmed" || "Denied" || "None",
128
+ * },
129
+ * activeContexts: [
130
+ * {
131
+ * name: "STRING_VALUE", // required
132
+ * timeToLive: {
133
+ * timeToLiveInSeconds: Number("int"), // required
134
+ * turnsToLive: Number("int"), // required
135
+ * },
136
+ * contextAttributes: { // required
137
+ * "<keys>": "STRING_VALUE",
138
+ * },
139
+ * },
140
+ * ],
141
+ * sessionAttributes: {
142
+ * "<keys>": "STRING_VALUE",
143
+ * },
144
+ * originatingRequestId: "STRING_VALUE",
145
+ * runtimeHints: {
146
+ * slotHints: {
147
+ * "<keys>": {
148
+ * "<keys>": {
149
+ * runtimeHintValues: [
150
+ * {
151
+ * phrase: "STRING_VALUE", // required
152
+ * },
153
+ * ],
154
+ * subSlotHints: {
155
+ * "<keys>": {
156
+ * runtimeHintValues: [
157
+ * {
158
+ * phrase: "STRING_VALUE", // required
159
+ * },
160
+ * ],
161
+ * subSlotHints: {
162
+ * "<keys>": "<RuntimeHintDetails>",
163
+ * },
164
+ * },
165
+ * },
166
+ * },
167
+ * },
168
+ * },
169
+ * },
170
+ * },
171
+ * requestAttributes: {
172
+ * "<keys>": "STRING_VALUE",
173
+ * },
174
+ * };
59
175
  * const command = new RecognizeTextCommand(input);
60
176
  * const response = await client.send(command);
61
177
  * ```
@@ -98,6 +98,17 @@ export interface RecognizeUtteranceCommandOutput extends __WithSdkStreamMixin<Re
98
98
  * import { LexRuntimeV2Client, RecognizeUtteranceCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
99
99
  * // const { LexRuntimeV2Client, RecognizeUtteranceCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
100
100
  * const client = new LexRuntimeV2Client(config);
101
+ * const input = {
102
+ * botId: "STRING_VALUE", // required
103
+ * botAliasId: "STRING_VALUE", // required
104
+ * localeId: "STRING_VALUE", // required
105
+ * sessionId: "STRING_VALUE", // required
106
+ * sessionState: "STRING_VALUE",
107
+ * requestAttributes: "STRING_VALUE",
108
+ * requestContentType: "STRING_VALUE", // required
109
+ * responseContentType: "STRING_VALUE",
110
+ * inputStream: "STREAMING_BLOB_VALUE",
111
+ * };
101
112
  * const command = new RecognizeUtteranceCommand(input);
102
113
  * const response = await client.send(command);
103
114
  * ```
@@ -85,6 +85,171 @@ export interface StartConversationCommandOutput extends StartConversationRespons
85
85
  * import { LexRuntimeV2Client, StartConversationCommand } from "@aws-sdk/client-lex-runtime-v2"; // ES Modules import
86
86
  * // const { LexRuntimeV2Client, StartConversationCommand } = require("@aws-sdk/client-lex-runtime-v2"); // CommonJS import
87
87
  * const client = new LexRuntimeV2Client(config);
88
+ * const input = {
89
+ * botId: "STRING_VALUE", // required
90
+ * botAliasId: "STRING_VALUE", // required
91
+ * localeId: "STRING_VALUE", // required
92
+ * sessionId: "STRING_VALUE", // required
93
+ * conversationMode: "AUDIO" || "TEXT",
94
+ * requestEventStream: { // Union: only one key present
95
+ * ConfigurationEvent: {
96
+ * requestAttributes: {
97
+ * "<keys>": "STRING_VALUE",
98
+ * },
99
+ * responseContentType: "STRING_VALUE", // required
100
+ * sessionState: {
101
+ * dialogAction: {
102
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
103
+ * slotToElicit: "STRING_VALUE",
104
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
105
+ * subSlotToElicit: {
106
+ * name: "STRING_VALUE", // required
107
+ * subSlotToElicit: {
108
+ * name: "STRING_VALUE", // required
109
+ * subSlotToElicit: {
110
+ * name: "<ElicitSubSlot>",
111
+ * subSlotToElicit: "<ElicitSubSlot>",
112
+ * },
113
+ * },
114
+ * },
115
+ * },
116
+ * intent: {
117
+ * name: "STRING_VALUE", // required
118
+ * slots: {
119
+ * "<keys>": {
120
+ * value: {
121
+ * originalValue: "STRING_VALUE",
122
+ * interpretedValue: "STRING_VALUE", // required
123
+ * resolvedValues: [
124
+ * "STRING_VALUE",
125
+ * ],
126
+ * },
127
+ * shape: "Scalar" || "List" || "Composite",
128
+ * values: [
129
+ * {
130
+ * value: {
131
+ * originalValue: "STRING_VALUE",
132
+ * interpretedValue: "STRING_VALUE", // required
133
+ * resolvedValues: [
134
+ * "STRING_VALUE",
135
+ * ],
136
+ * },
137
+ * shape: "Scalar" || "List" || "Composite",
138
+ * values: [
139
+ * {
140
+ * value: "<Slot>",
141
+ * shape: "<Slot>",
142
+ * values: "<Slot>",
143
+ * subSlots: {
144
+ * "<keys>": {
145
+ * value: "<Slot>",
146
+ * shape: "<Slot>",
147
+ * values: "<Slot>",
148
+ * subSlots: {
149
+ * "<keys>": "<Slot>",
150
+ * },
151
+ * },
152
+ * },
153
+ * },
154
+ * ],
155
+ * subSlots: "<Slot>",
156
+ * },
157
+ * ],
158
+ * subSlots: "<Slot>",
159
+ * },
160
+ * },
161
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
162
+ * confirmationState: "Confirmed" || "Denied" || "None",
163
+ * },
164
+ * activeContexts: [
165
+ * {
166
+ * name: "STRING_VALUE", // required
167
+ * timeToLive: {
168
+ * timeToLiveInSeconds: Number("int"), // required
169
+ * turnsToLive: Number("int"), // required
170
+ * },
171
+ * contextAttributes: { // required
172
+ * "<keys>": "STRING_VALUE",
173
+ * },
174
+ * },
175
+ * ],
176
+ * sessionAttributes: {
177
+ * "<keys>": "STRING_VALUE",
178
+ * },
179
+ * originatingRequestId: "STRING_VALUE",
180
+ * runtimeHints: {
181
+ * slotHints: {
182
+ * "<keys>": {
183
+ * "<keys>": {
184
+ * runtimeHintValues: [
185
+ * {
186
+ * phrase: "STRING_VALUE", // required
187
+ * },
188
+ * ],
189
+ * subSlotHints: {
190
+ * "<keys>": {
191
+ * runtimeHintValues: [
192
+ * {
193
+ * phrase: "STRING_VALUE", // required
194
+ * },
195
+ * ],
196
+ * subSlotHints: {
197
+ * "<keys>": "<RuntimeHintDetails>",
198
+ * },
199
+ * },
200
+ * },
201
+ * },
202
+ * },
203
+ * },
204
+ * },
205
+ * },
206
+ * welcomeMessages: [
207
+ * {
208
+ * content: "STRING_VALUE",
209
+ * contentType: "CustomPayload" || "ImageResponseCard" || "PlainText" || "SSML", // required
210
+ * imageResponseCard: {
211
+ * title: "STRING_VALUE", // required
212
+ * subtitle: "STRING_VALUE",
213
+ * imageUrl: "STRING_VALUE",
214
+ * buttons: [
215
+ * {
216
+ * text: "STRING_VALUE", // required
217
+ * value: "STRING_VALUE", // required
218
+ * },
219
+ * ],
220
+ * },
221
+ * },
222
+ * ],
223
+ * disablePlayback: true || false,
224
+ * eventId: "STRING_VALUE",
225
+ * clientTimestampMillis: Number("long"),
226
+ * },
227
+ * AudioInputEvent: {
228
+ * audioChunk: "BLOB_VALUE",
229
+ * contentType: "STRING_VALUE", // required
230
+ * eventId: "STRING_VALUE",
231
+ * clientTimestampMillis: Number("long"),
232
+ * },
233
+ * DTMFInputEvent: {
234
+ * inputCharacter: "STRING_VALUE", // required
235
+ * eventId: "STRING_VALUE",
236
+ * clientTimestampMillis: Number("long"),
237
+ * },
238
+ * TextInputEvent: {
239
+ * text: "STRING_VALUE", // required
240
+ * eventId: "STRING_VALUE",
241
+ * clientTimestampMillis: Number("long"),
242
+ * },
243
+ * PlaybackCompletionEvent: {
244
+ * eventId: "STRING_VALUE",
245
+ * clientTimestampMillis: Number("long"),
246
+ * },
247
+ * DisconnectionEvent: {
248
+ * eventId: "STRING_VALUE",
249
+ * clientTimestampMillis: Number("long"),
250
+ * },
251
+ * },
252
+ * };
88
253
  * const command = new StartConversationCommand(input);
89
254
  * const response = await client.send(command);
90
255
  * ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
4
- "version": "3.299.0",
4
+ "version": "3.300.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.299.0",
25
- "@aws-sdk/config-resolver": "3.299.0",
26
- "@aws-sdk/credential-provider-node": "3.299.0",
24
+ "@aws-sdk/client-sts": "3.300.0",
25
+ "@aws-sdk/config-resolver": "3.300.0",
26
+ "@aws-sdk/credential-provider-node": "3.300.0",
27
27
  "@aws-sdk/eventstream-handler-node": "3.296.0",
28
28
  "@aws-sdk/eventstream-serde-browser": "3.296.0",
29
29
  "@aws-sdk/eventstream-serde-config-resolver": "3.296.0",
@@ -37,12 +37,12 @@
37
37
  "@aws-sdk/middleware-host-header": "3.296.0",
38
38
  "@aws-sdk/middleware-logger": "3.296.0",
39
39
  "@aws-sdk/middleware-recursion-detection": "3.296.0",
40
- "@aws-sdk/middleware-retry": "3.296.0",
40
+ "@aws-sdk/middleware-retry": "3.300.0",
41
41
  "@aws-sdk/middleware-serde": "3.296.0",
42
42
  "@aws-sdk/middleware-signing": "3.299.0",
43
43
  "@aws-sdk/middleware-stack": "3.296.0",
44
44
  "@aws-sdk/middleware-user-agent": "3.299.0",
45
- "@aws-sdk/node-config-provider": "3.296.0",
45
+ "@aws-sdk/node-config-provider": "3.300.0",
46
46
  "@aws-sdk/node-http-handler": "3.296.0",
47
47
  "@aws-sdk/protocol-http": "3.296.0",
48
48
  "@aws-sdk/smithy-client": "3.296.0",
@@ -52,13 +52,13 @@
52
52
  "@aws-sdk/util-body-length-browser": "3.295.0",
53
53
  "@aws-sdk/util-body-length-node": "3.295.0",
54
54
  "@aws-sdk/util-defaults-mode-browser": "3.296.0",
55
- "@aws-sdk/util-defaults-mode-node": "3.299.0",
55
+ "@aws-sdk/util-defaults-mode-node": "3.300.0",
56
56
  "@aws-sdk/util-endpoints": "3.296.0",
57
57
  "@aws-sdk/util-retry": "3.296.0",
58
58
  "@aws-sdk/util-stream-browser": "3.296.0",
59
59
  "@aws-sdk/util-stream-node": "3.296.0",
60
60
  "@aws-sdk/util-user-agent-browser": "3.299.0",
61
- "@aws-sdk/util-user-agent-node": "3.299.0",
61
+ "@aws-sdk/util-user-agent-node": "3.300.0",
62
62
  "@aws-sdk/util-utf8": "3.295.0",
63
63
  "tslib": "^2.5.0"
64
64
  },