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