@aws-sdk/client-lex-runtime-v2 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.
@@ -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 = { // DeleteSessionRequest
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 = { // GetSessionRequest
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,122 @@ 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 = { // PutSessionRequest
32
+ * botId: "STRING_VALUE", // required
33
+ * botAliasId: "STRING_VALUE", // required
34
+ * localeId: "STRING_VALUE", // required
35
+ * sessionId: "STRING_VALUE", // required
36
+ * messages: [ // Messages
37
+ * { // Message
38
+ * content: "STRING_VALUE",
39
+ * contentType: "CustomPayload" || "ImageResponseCard" || "PlainText" || "SSML", // required
40
+ * imageResponseCard: { // ImageResponseCard
41
+ * title: "STRING_VALUE", // required
42
+ * subtitle: "STRING_VALUE",
43
+ * imageUrl: "STRING_VALUE",
44
+ * buttons: [ // ButtonsList
45
+ * { // Button
46
+ * text: "STRING_VALUE", // required
47
+ * value: "STRING_VALUE", // required
48
+ * },
49
+ * ],
50
+ * },
51
+ * },
52
+ * ],
53
+ * sessionState: { // SessionState
54
+ * dialogAction: { // DialogAction
55
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
56
+ * slotToElicit: "STRING_VALUE",
57
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
58
+ * subSlotToElicit: { // ElicitSubSlot
59
+ * name: "STRING_VALUE", // required
60
+ * subSlotToElicit: {
61
+ * name: "STRING_VALUE", // required
62
+ * subSlotToElicit: "<ElicitSubSlot>",
63
+ * },
64
+ * },
65
+ * },
66
+ * intent: { // Intent
67
+ * name: "STRING_VALUE", // required
68
+ * slots: { // Slots
69
+ * "<keys>": { // Slot
70
+ * value: { // Value
71
+ * originalValue: "STRING_VALUE",
72
+ * interpretedValue: "STRING_VALUE", // required
73
+ * resolvedValues: [ // StringList
74
+ * "STRING_VALUE",
75
+ * ],
76
+ * },
77
+ * shape: "Scalar" || "List" || "Composite",
78
+ * values: [ // Values
79
+ * {
80
+ * value: {
81
+ * originalValue: "STRING_VALUE",
82
+ * interpretedValue: "STRING_VALUE", // required
83
+ * resolvedValues: [
84
+ * "STRING_VALUE",
85
+ * ],
86
+ * },
87
+ * shape: "Scalar" || "List" || "Composite",
88
+ * values: [
89
+ * "<Slot>",
90
+ * ],
91
+ * subSlots: {
92
+ * "<keys>": "<Slot>",
93
+ * },
94
+ * },
95
+ * ],
96
+ * subSlots: "<Slots>",
97
+ * },
98
+ * },
99
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
100
+ * confirmationState: "Confirmed" || "Denied" || "None",
101
+ * },
102
+ * activeContexts: [ // ActiveContextsList
103
+ * { // ActiveContext
104
+ * name: "STRING_VALUE", // required
105
+ * timeToLive: { // ActiveContextTimeToLive
106
+ * timeToLiveInSeconds: Number("int"), // required
107
+ * turnsToLive: Number("int"), // required
108
+ * },
109
+ * contextAttributes: { // ActiveContextParametersMap // required
110
+ * "<keys>": "STRING_VALUE",
111
+ * },
112
+ * },
113
+ * ],
114
+ * sessionAttributes: { // StringMap
115
+ * "<keys>": "STRING_VALUE",
116
+ * },
117
+ * originatingRequestId: "STRING_VALUE",
118
+ * runtimeHints: { // RuntimeHints
119
+ * slotHints: { // SlotHintsIntentMap
120
+ * "<keys>": { // SlotHintsSlotMap
121
+ * "<keys>": { // RuntimeHintDetails
122
+ * runtimeHintValues: [ // RuntimeHintValuesList
123
+ * { // RuntimeHintValue
124
+ * phrase: "STRING_VALUE", // required
125
+ * },
126
+ * ],
127
+ * subSlotHints: {
128
+ * "<keys>": {
129
+ * runtimeHintValues: [
130
+ * {
131
+ * phrase: "STRING_VALUE", // required
132
+ * },
133
+ * ],
134
+ * subSlotHints: "<SlotHintsSlotMap>",
135
+ * },
136
+ * },
137
+ * },
138
+ * },
139
+ * },
140
+ * },
141
+ * },
142
+ * requestAttributes: {
143
+ * "<keys>": "STRING_VALUE",
144
+ * },
145
+ * responseContentType: "STRING_VALUE",
146
+ * };
31
147
  * const command = new PutSessionCommand(input);
32
148
  * const response = await client.send(command);
33
149
  * ```
@@ -56,6 +56,105 @@ 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 = { // RecognizeTextRequest
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: { // SessionState
66
+ * dialogAction: { // DialogAction
67
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
68
+ * slotToElicit: "STRING_VALUE",
69
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
70
+ * subSlotToElicit: { // ElicitSubSlot
71
+ * name: "STRING_VALUE", // required
72
+ * subSlotToElicit: {
73
+ * name: "STRING_VALUE", // required
74
+ * subSlotToElicit: "<ElicitSubSlot>",
75
+ * },
76
+ * },
77
+ * },
78
+ * intent: { // Intent
79
+ * name: "STRING_VALUE", // required
80
+ * slots: { // Slots
81
+ * "<keys>": { // Slot
82
+ * value: { // Value
83
+ * originalValue: "STRING_VALUE",
84
+ * interpretedValue: "STRING_VALUE", // required
85
+ * resolvedValues: [ // StringList
86
+ * "STRING_VALUE",
87
+ * ],
88
+ * },
89
+ * shape: "Scalar" || "List" || "Composite",
90
+ * values: [ // Values
91
+ * {
92
+ * value: {
93
+ * originalValue: "STRING_VALUE",
94
+ * interpretedValue: "STRING_VALUE", // required
95
+ * resolvedValues: [
96
+ * "STRING_VALUE",
97
+ * ],
98
+ * },
99
+ * shape: "Scalar" || "List" || "Composite",
100
+ * values: [
101
+ * "<Slot>",
102
+ * ],
103
+ * subSlots: {
104
+ * "<keys>": "<Slot>",
105
+ * },
106
+ * },
107
+ * ],
108
+ * subSlots: "<Slots>",
109
+ * },
110
+ * },
111
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
112
+ * confirmationState: "Confirmed" || "Denied" || "None",
113
+ * },
114
+ * activeContexts: [ // ActiveContextsList
115
+ * { // ActiveContext
116
+ * name: "STRING_VALUE", // required
117
+ * timeToLive: { // ActiveContextTimeToLive
118
+ * timeToLiveInSeconds: Number("int"), // required
119
+ * turnsToLive: Number("int"), // required
120
+ * },
121
+ * contextAttributes: { // ActiveContextParametersMap // required
122
+ * "<keys>": "STRING_VALUE",
123
+ * },
124
+ * },
125
+ * ],
126
+ * sessionAttributes: { // StringMap
127
+ * "<keys>": "STRING_VALUE",
128
+ * },
129
+ * originatingRequestId: "STRING_VALUE",
130
+ * runtimeHints: { // RuntimeHints
131
+ * slotHints: { // SlotHintsIntentMap
132
+ * "<keys>": { // SlotHintsSlotMap
133
+ * "<keys>": { // RuntimeHintDetails
134
+ * runtimeHintValues: [ // RuntimeHintValuesList
135
+ * { // RuntimeHintValue
136
+ * phrase: "STRING_VALUE", // required
137
+ * },
138
+ * ],
139
+ * subSlotHints: {
140
+ * "<keys>": {
141
+ * runtimeHintValues: [
142
+ * {
143
+ * phrase: "STRING_VALUE", // required
144
+ * },
145
+ * ],
146
+ * subSlotHints: "<SlotHintsSlotMap>",
147
+ * },
148
+ * },
149
+ * },
150
+ * },
151
+ * },
152
+ * },
153
+ * },
154
+ * requestAttributes: {
155
+ * "<keys>": "STRING_VALUE",
156
+ * },
157
+ * };
59
158
  * const command = new RecognizeTextCommand(input);
60
159
  * const response = await client.send(command);
61
160
  * ```
@@ -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 = { // RecognizeUtteranceRequest
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,154 @@ 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 = { // StartConversationRequest
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: { // StartConversationRequestEventStream Union: only one key present
95
+ * ConfigurationEvent: { // ConfigurationEvent
96
+ * requestAttributes: { // StringMap
97
+ * "<keys>": "STRING_VALUE",
98
+ * },
99
+ * responseContentType: "STRING_VALUE", // required
100
+ * sessionState: { // SessionState
101
+ * dialogAction: { // DialogAction
102
+ * type: "Close" || "ConfirmIntent" || "Delegate" || "ElicitIntent" || "ElicitSlot" || "None", // required
103
+ * slotToElicit: "STRING_VALUE",
104
+ * slotElicitationStyle: "Default" || "SpellByLetter" || "SpellByWord",
105
+ * subSlotToElicit: { // ElicitSubSlot
106
+ * name: "STRING_VALUE", // required
107
+ * subSlotToElicit: {
108
+ * name: "STRING_VALUE", // required
109
+ * subSlotToElicit: "<ElicitSubSlot>",
110
+ * },
111
+ * },
112
+ * },
113
+ * intent: { // Intent
114
+ * name: "STRING_VALUE", // required
115
+ * slots: { // Slots
116
+ * "<keys>": { // Slot
117
+ * value: { // Value
118
+ * originalValue: "STRING_VALUE",
119
+ * interpretedValue: "STRING_VALUE", // required
120
+ * resolvedValues: [ // StringList
121
+ * "STRING_VALUE",
122
+ * ],
123
+ * },
124
+ * shape: "Scalar" || "List" || "Composite",
125
+ * values: [ // Values
126
+ * {
127
+ * value: {
128
+ * originalValue: "STRING_VALUE",
129
+ * interpretedValue: "STRING_VALUE", // required
130
+ * resolvedValues: [
131
+ * "STRING_VALUE",
132
+ * ],
133
+ * },
134
+ * shape: "Scalar" || "List" || "Composite",
135
+ * values: [
136
+ * "<Slot>",
137
+ * ],
138
+ * subSlots: {
139
+ * "<keys>": "<Slot>",
140
+ * },
141
+ * },
142
+ * ],
143
+ * subSlots: "<Slots>",
144
+ * },
145
+ * },
146
+ * state: "Failed" || "Fulfilled" || "InProgress" || "ReadyForFulfillment" || "Waiting" || "FulfillmentInProgress",
147
+ * confirmationState: "Confirmed" || "Denied" || "None",
148
+ * },
149
+ * activeContexts: [ // ActiveContextsList
150
+ * { // ActiveContext
151
+ * name: "STRING_VALUE", // required
152
+ * timeToLive: { // ActiveContextTimeToLive
153
+ * timeToLiveInSeconds: Number("int"), // required
154
+ * turnsToLive: Number("int"), // required
155
+ * },
156
+ * contextAttributes: { // ActiveContextParametersMap // required
157
+ * "<keys>": "STRING_VALUE",
158
+ * },
159
+ * },
160
+ * ],
161
+ * sessionAttributes: {
162
+ * "<keys>": "STRING_VALUE",
163
+ * },
164
+ * originatingRequestId: "STRING_VALUE",
165
+ * runtimeHints: { // RuntimeHints
166
+ * slotHints: { // SlotHintsIntentMap
167
+ * "<keys>": { // SlotHintsSlotMap
168
+ * "<keys>": { // RuntimeHintDetails
169
+ * runtimeHintValues: [ // RuntimeHintValuesList
170
+ * { // RuntimeHintValue
171
+ * phrase: "STRING_VALUE", // required
172
+ * },
173
+ * ],
174
+ * subSlotHints: {
175
+ * "<keys>": {
176
+ * runtimeHintValues: [
177
+ * {
178
+ * phrase: "STRING_VALUE", // required
179
+ * },
180
+ * ],
181
+ * subSlotHints: "<SlotHintsSlotMap>",
182
+ * },
183
+ * },
184
+ * },
185
+ * },
186
+ * },
187
+ * },
188
+ * },
189
+ * welcomeMessages: [ // Messages
190
+ * { // Message
191
+ * content: "STRING_VALUE",
192
+ * contentType: "CustomPayload" || "ImageResponseCard" || "PlainText" || "SSML", // required
193
+ * imageResponseCard: { // ImageResponseCard
194
+ * title: "STRING_VALUE", // required
195
+ * subtitle: "STRING_VALUE",
196
+ * imageUrl: "STRING_VALUE",
197
+ * buttons: [ // ButtonsList
198
+ * { // Button
199
+ * text: "STRING_VALUE", // required
200
+ * value: "STRING_VALUE", // required
201
+ * },
202
+ * ],
203
+ * },
204
+ * },
205
+ * ],
206
+ * disablePlayback: true || false,
207
+ * eventId: "STRING_VALUE",
208
+ * clientTimestampMillis: Number("long"),
209
+ * },
210
+ * AudioInputEvent: { // AudioInputEvent
211
+ * audioChunk: "BLOB_VALUE",
212
+ * contentType: "STRING_VALUE", // required
213
+ * eventId: "STRING_VALUE",
214
+ * clientTimestampMillis: Number("long"),
215
+ * },
216
+ * DTMFInputEvent: { // DTMFInputEvent
217
+ * inputCharacter: "STRING_VALUE", // required
218
+ * eventId: "STRING_VALUE",
219
+ * clientTimestampMillis: Number("long"),
220
+ * },
221
+ * TextInputEvent: { // TextInputEvent
222
+ * text: "STRING_VALUE", // required
223
+ * eventId: "STRING_VALUE",
224
+ * clientTimestampMillis: Number("long"),
225
+ * },
226
+ * PlaybackCompletionEvent: { // PlaybackCompletionEvent
227
+ * eventId: "STRING_VALUE",
228
+ * clientTimestampMillis: Number("long"),
229
+ * },
230
+ * DisconnectionEvent: { // DisconnectionEvent
231
+ * eventId: "STRING_VALUE",
232
+ * clientTimestampMillis: Number("long"),
233
+ * },
234
+ * },
235
+ * };
88
236
  * const command = new StartConversationCommand(input);
89
237
  * const response = await client.send(command);
90
238
  * ```
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.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",
@@ -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.301.0",
25
+ "@aws-sdk/config-resolver": "3.300.0",
26
+ "@aws-sdk/credential-provider-node": "3.301.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
  },