@aws-sdk/client-lex-runtime-v2 3.300.0 → 3.303.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.
@@ -81,56 +81,49 @@ class ValidationException extends LexRuntimeV2ServiceException_1.LexRuntimeV2Ser
81
81
  }
82
82
  }
83
83
  exports.ValidationException = ValidationException;
84
- var ConfirmationState;
85
- (function (ConfirmationState) {
86
- ConfirmationState["CONFIRMED"] = "Confirmed";
87
- ConfirmationState["DENIED"] = "Denied";
88
- ConfirmationState["NONE"] = "None";
89
- })(ConfirmationState = exports.ConfirmationState || (exports.ConfirmationState = {}));
90
- var Shape;
91
- (function (Shape) {
92
- Shape["COMPOSITE"] = "Composite";
93
- Shape["LIST"] = "List";
94
- Shape["SCALAR"] = "Scalar";
95
- })(Shape = exports.Shape || (exports.Shape = {}));
96
- var IntentState;
97
- (function (IntentState) {
98
- IntentState["FAILED"] = "Failed";
99
- IntentState["FULFILLED"] = "Fulfilled";
100
- IntentState["FULFILLMENT_IN_PROGRESS"] = "FulfillmentInProgress";
101
- IntentState["IN_PROGRESS"] = "InProgress";
102
- IntentState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment";
103
- IntentState["WAITING"] = "Waiting";
104
- })(IntentState = exports.IntentState || (exports.IntentState = {}));
105
- var SentimentType;
106
- (function (SentimentType) {
107
- SentimentType["MIXED"] = "MIXED";
108
- SentimentType["NEGATIVE"] = "NEGATIVE";
109
- SentimentType["NEUTRAL"] = "NEUTRAL";
110
- SentimentType["POSITIVE"] = "POSITIVE";
111
- })(SentimentType = exports.SentimentType || (exports.SentimentType = {}));
112
- var MessageContentType;
113
- (function (MessageContentType) {
114
- MessageContentType["CUSTOM_PAYLOAD"] = "CustomPayload";
115
- MessageContentType["IMAGE_RESPONSE_CARD"] = "ImageResponseCard";
116
- MessageContentType["PLAIN_TEXT"] = "PlainText";
117
- MessageContentType["SSML"] = "SSML";
118
- })(MessageContentType = exports.MessageContentType || (exports.MessageContentType = {}));
119
- var StyleType;
120
- (function (StyleType) {
121
- StyleType["DEFAULT"] = "Default";
122
- StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
123
- StyleType["SPELL_BY_WORD"] = "SpellByWord";
124
- })(StyleType = exports.StyleType || (exports.StyleType = {}));
125
- var DialogActionType;
126
- (function (DialogActionType) {
127
- DialogActionType["CLOSE"] = "Close";
128
- DialogActionType["CONFIRM_INTENT"] = "ConfirmIntent";
129
- DialogActionType["DELEGATE"] = "Delegate";
130
- DialogActionType["ELICIT_INTENT"] = "ElicitIntent";
131
- DialogActionType["ELICIT_SLOT"] = "ElicitSlot";
132
- DialogActionType["NONE"] = "None";
133
- })(DialogActionType = exports.DialogActionType || (exports.DialogActionType = {}));
84
+ exports.ConfirmationState = {
85
+ CONFIRMED: "Confirmed",
86
+ DENIED: "Denied",
87
+ NONE: "None",
88
+ };
89
+ exports.Shape = {
90
+ COMPOSITE: "Composite",
91
+ LIST: "List",
92
+ SCALAR: "Scalar",
93
+ };
94
+ exports.IntentState = {
95
+ FAILED: "Failed",
96
+ FULFILLED: "Fulfilled",
97
+ FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
98
+ IN_PROGRESS: "InProgress",
99
+ READY_FOR_FULFILLMENT: "ReadyForFulfillment",
100
+ WAITING: "Waiting",
101
+ };
102
+ exports.SentimentType = {
103
+ MIXED: "MIXED",
104
+ NEGATIVE: "NEGATIVE",
105
+ NEUTRAL: "NEUTRAL",
106
+ POSITIVE: "POSITIVE",
107
+ };
108
+ exports.MessageContentType = {
109
+ CUSTOM_PAYLOAD: "CustomPayload",
110
+ IMAGE_RESPONSE_CARD: "ImageResponseCard",
111
+ PLAIN_TEXT: "PlainText",
112
+ SSML: "SSML",
113
+ };
114
+ exports.StyleType = {
115
+ DEFAULT: "Default",
116
+ SPELL_BY_LETTER: "SpellByLetter",
117
+ SPELL_BY_WORD: "SpellByWord",
118
+ };
119
+ exports.DialogActionType = {
120
+ CLOSE: "Close",
121
+ CONFIRM_INTENT: "ConfirmIntent",
122
+ DELEGATE: "Delegate",
123
+ ELICIT_INTENT: "ElicitIntent",
124
+ ELICIT_SLOT: "ElicitSlot",
125
+ NONE: "None",
126
+ };
134
127
  class BadGatewayException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
135
128
  constructor(opts) {
136
129
  super({
@@ -157,23 +150,20 @@ class DependencyFailedException extends LexRuntimeV2ServiceException_1.LexRuntim
157
150
  }
158
151
  }
159
152
  exports.DependencyFailedException = DependencyFailedException;
160
- var ConversationMode;
161
- (function (ConversationMode) {
162
- ConversationMode["AUDIO"] = "AUDIO";
163
- ConversationMode["TEXT"] = "TEXT";
164
- })(ConversationMode = exports.ConversationMode || (exports.ConversationMode = {}));
165
- var InputMode;
166
- (function (InputMode) {
167
- InputMode["DTMF"] = "DTMF";
168
- InputMode["SPEECH"] = "Speech";
169
- InputMode["TEXT"] = "Text";
170
- })(InputMode = exports.InputMode || (exports.InputMode = {}));
171
- var PlaybackInterruptionReason;
172
- (function (PlaybackInterruptionReason) {
173
- PlaybackInterruptionReason["DTMF_START_DETECTED"] = "DTMF_START_DETECTED";
174
- PlaybackInterruptionReason["TEXT_DETECTED"] = "TEXT_DETECTED";
175
- PlaybackInterruptionReason["VOICE_START_DETECTED"] = "VOICE_START_DETECTED";
176
- })(PlaybackInterruptionReason = exports.PlaybackInterruptionReason || (exports.PlaybackInterruptionReason = {}));
153
+ exports.ConversationMode = {
154
+ AUDIO: "AUDIO",
155
+ TEXT: "TEXT",
156
+ };
157
+ exports.InputMode = {
158
+ DTMF: "DTMF",
159
+ SPEECH: "Speech",
160
+ TEXT: "Text",
161
+ };
162
+ exports.PlaybackInterruptionReason = {
163
+ DTMF_START_DETECTED: "DTMF_START_DETECTED",
164
+ TEXT_DETECTED: "TEXT_DETECTED",
165
+ VOICE_START_DETECTED: "VOICE_START_DETECTED",
166
+ };
177
167
  var StartConversationRequestEventStream;
178
168
  (function (StartConversationRequestEventStream) {
179
169
  StartConversationRequestEventStream.visit = (value, visitor) => {
@@ -72,56 +72,49 @@ export class ValidationException extends __BaseException {
72
72
  Object.setPrototypeOf(this, ValidationException.prototype);
73
73
  }
74
74
  }
75
- export var ConfirmationState;
76
- (function (ConfirmationState) {
77
- ConfirmationState["CONFIRMED"] = "Confirmed";
78
- ConfirmationState["DENIED"] = "Denied";
79
- ConfirmationState["NONE"] = "None";
80
- })(ConfirmationState || (ConfirmationState = {}));
81
- export var Shape;
82
- (function (Shape) {
83
- Shape["COMPOSITE"] = "Composite";
84
- Shape["LIST"] = "List";
85
- Shape["SCALAR"] = "Scalar";
86
- })(Shape || (Shape = {}));
87
- export var IntentState;
88
- (function (IntentState) {
89
- IntentState["FAILED"] = "Failed";
90
- IntentState["FULFILLED"] = "Fulfilled";
91
- IntentState["FULFILLMENT_IN_PROGRESS"] = "FulfillmentInProgress";
92
- IntentState["IN_PROGRESS"] = "InProgress";
93
- IntentState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment";
94
- IntentState["WAITING"] = "Waiting";
95
- })(IntentState || (IntentState = {}));
96
- export var SentimentType;
97
- (function (SentimentType) {
98
- SentimentType["MIXED"] = "MIXED";
99
- SentimentType["NEGATIVE"] = "NEGATIVE";
100
- SentimentType["NEUTRAL"] = "NEUTRAL";
101
- SentimentType["POSITIVE"] = "POSITIVE";
102
- })(SentimentType || (SentimentType = {}));
103
- export var MessageContentType;
104
- (function (MessageContentType) {
105
- MessageContentType["CUSTOM_PAYLOAD"] = "CustomPayload";
106
- MessageContentType["IMAGE_RESPONSE_CARD"] = "ImageResponseCard";
107
- MessageContentType["PLAIN_TEXT"] = "PlainText";
108
- MessageContentType["SSML"] = "SSML";
109
- })(MessageContentType || (MessageContentType = {}));
110
- export var StyleType;
111
- (function (StyleType) {
112
- StyleType["DEFAULT"] = "Default";
113
- StyleType["SPELL_BY_LETTER"] = "SpellByLetter";
114
- StyleType["SPELL_BY_WORD"] = "SpellByWord";
115
- })(StyleType || (StyleType = {}));
116
- export var DialogActionType;
117
- (function (DialogActionType) {
118
- DialogActionType["CLOSE"] = "Close";
119
- DialogActionType["CONFIRM_INTENT"] = "ConfirmIntent";
120
- DialogActionType["DELEGATE"] = "Delegate";
121
- DialogActionType["ELICIT_INTENT"] = "ElicitIntent";
122
- DialogActionType["ELICIT_SLOT"] = "ElicitSlot";
123
- DialogActionType["NONE"] = "None";
124
- })(DialogActionType || (DialogActionType = {}));
75
+ export const ConfirmationState = {
76
+ CONFIRMED: "Confirmed",
77
+ DENIED: "Denied",
78
+ NONE: "None",
79
+ };
80
+ export const Shape = {
81
+ COMPOSITE: "Composite",
82
+ LIST: "List",
83
+ SCALAR: "Scalar",
84
+ };
85
+ export const IntentState = {
86
+ FAILED: "Failed",
87
+ FULFILLED: "Fulfilled",
88
+ FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
89
+ IN_PROGRESS: "InProgress",
90
+ READY_FOR_FULFILLMENT: "ReadyForFulfillment",
91
+ WAITING: "Waiting",
92
+ };
93
+ export const SentimentType = {
94
+ MIXED: "MIXED",
95
+ NEGATIVE: "NEGATIVE",
96
+ NEUTRAL: "NEUTRAL",
97
+ POSITIVE: "POSITIVE",
98
+ };
99
+ export const MessageContentType = {
100
+ CUSTOM_PAYLOAD: "CustomPayload",
101
+ IMAGE_RESPONSE_CARD: "ImageResponseCard",
102
+ PLAIN_TEXT: "PlainText",
103
+ SSML: "SSML",
104
+ };
105
+ export const StyleType = {
106
+ DEFAULT: "Default",
107
+ SPELL_BY_LETTER: "SpellByLetter",
108
+ SPELL_BY_WORD: "SpellByWord",
109
+ };
110
+ export const DialogActionType = {
111
+ CLOSE: "Close",
112
+ CONFIRM_INTENT: "ConfirmIntent",
113
+ DELEGATE: "Delegate",
114
+ ELICIT_INTENT: "ElicitIntent",
115
+ ELICIT_SLOT: "ElicitSlot",
116
+ NONE: "None",
117
+ };
125
118
  export class BadGatewayException extends __BaseException {
126
119
  constructor(opts) {
127
120
  super({
@@ -146,23 +139,20 @@ export class DependencyFailedException extends __BaseException {
146
139
  Object.setPrototypeOf(this, DependencyFailedException.prototype);
147
140
  }
148
141
  }
149
- export var ConversationMode;
150
- (function (ConversationMode) {
151
- ConversationMode["AUDIO"] = "AUDIO";
152
- ConversationMode["TEXT"] = "TEXT";
153
- })(ConversationMode || (ConversationMode = {}));
154
- export var InputMode;
155
- (function (InputMode) {
156
- InputMode["DTMF"] = "DTMF";
157
- InputMode["SPEECH"] = "Speech";
158
- InputMode["TEXT"] = "Text";
159
- })(InputMode || (InputMode = {}));
160
- export var PlaybackInterruptionReason;
161
- (function (PlaybackInterruptionReason) {
162
- PlaybackInterruptionReason["DTMF_START_DETECTED"] = "DTMF_START_DETECTED";
163
- PlaybackInterruptionReason["TEXT_DETECTED"] = "TEXT_DETECTED";
164
- PlaybackInterruptionReason["VOICE_START_DETECTED"] = "VOICE_START_DETECTED";
165
- })(PlaybackInterruptionReason || (PlaybackInterruptionReason = {}));
142
+ export const ConversationMode = {
143
+ AUDIO: "AUDIO",
144
+ TEXT: "TEXT",
145
+ };
146
+ export const InputMode = {
147
+ DTMF: "DTMF",
148
+ SPEECH: "Speech",
149
+ TEXT: "Text",
150
+ };
151
+ export const PlaybackInterruptionReason = {
152
+ DTMF_START_DETECTED: "DTMF_START_DETECTED",
153
+ TEXT_DETECTED: "TEXT_DETECTED",
154
+ VOICE_START_DETECTED: "VOICE_START_DETECTED",
155
+ };
166
156
  export var StartConversationRequestEventStream;
167
157
  (function (StartConversationRequestEventStream) {
168
158
  StartConversationRequestEventStream.visit = (value, visitor) => {
@@ -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: "<Slot>",
91
+ * subSlots: {
92
+ * "<keys>": "<Slot>",
93
+ * },
109
94
  * },
110
95
  * ],
111
- * subSlots: "<Slot>",
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: "<Slot>",
103
+ * subSlots: {
104
+ * "<keys>": "<Slot>",
105
+ * },
121
106
  * },
122
107
  * ],
123
- * subSlots: "<Slot>",
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: "<Slot>",
138
+ * subSlots: {
139
+ * "<keys>": "<Slot>",
140
+ * },
156
141
  * },
157
142
  * ],
158
- * subSlots: "<Slot>",
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
  * },
@@ -248,20 +248,30 @@ export interface GetSessionRequest {
248
248
  }
249
249
  /**
250
250
  * @public
251
+ * @enum
251
252
  */
252
- export declare enum ConfirmationState {
253
- CONFIRMED = "Confirmed",
254
- DENIED = "Denied",
255
- NONE = "None"
256
- }
253
+ export declare const ConfirmationState: {
254
+ readonly CONFIRMED: "Confirmed";
255
+ readonly DENIED: "Denied";
256
+ readonly NONE: "None";
257
+ };
257
258
  /**
258
259
  * @public
259
260
  */
260
- export declare enum Shape {
261
- COMPOSITE = "Composite",
262
- LIST = "List",
263
- SCALAR = "Scalar"
264
- }
261
+ export type ConfirmationState = (typeof ConfirmationState)[keyof typeof ConfirmationState];
262
+ /**
263
+ * @public
264
+ * @enum
265
+ */
266
+ export declare const Shape: {
267
+ readonly COMPOSITE: "Composite";
268
+ readonly LIST: "List";
269
+ readonly SCALAR: "Scalar";
270
+ };
271
+ /**
272
+ * @public
273
+ */
274
+ export type Shape = (typeof Shape)[keyof typeof Shape];
265
275
  /**
266
276
  * @public
267
277
  * <p>The value of a slot.</p>
@@ -287,15 +297,20 @@ export interface Value {
287
297
  }
288
298
  /**
289
299
  * @public
300
+ * @enum
290
301
  */
291
- export declare enum IntentState {
292
- FAILED = "Failed",
293
- FULFILLED = "Fulfilled",
294
- FULFILLMENT_IN_PROGRESS = "FulfillmentInProgress",
295
- IN_PROGRESS = "InProgress",
296
- READY_FOR_FULFILLMENT = "ReadyForFulfillment",
297
- WAITING = "Waiting"
298
- }
302
+ export declare const IntentState: {
303
+ readonly FAILED: "Failed";
304
+ readonly FULFILLED: "Fulfilled";
305
+ readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
306
+ readonly IN_PROGRESS: "InProgress";
307
+ readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
308
+ readonly WAITING: "Waiting";
309
+ };
310
+ /**
311
+ * @public
312
+ */
313
+ export type IntentState = (typeof IntentState)[keyof typeof IntentState];
299
314
  /**
300
315
  * @public
301
316
  * <p>Provides a score that indicates the confidence that Amazon Lex V2 has that
@@ -311,13 +326,18 @@ export interface ConfidenceScore {
311
326
  }
312
327
  /**
313
328
  * @public
329
+ * @enum
314
330
  */
315
- export declare enum SentimentType {
316
- MIXED = "MIXED",
317
- NEGATIVE = "NEGATIVE",
318
- NEUTRAL = "NEUTRAL",
319
- POSITIVE = "POSITIVE"
320
- }
331
+ export declare const SentimentType: {
332
+ readonly MIXED: "MIXED";
333
+ readonly NEGATIVE: "NEGATIVE";
334
+ readonly NEUTRAL: "NEUTRAL";
335
+ readonly POSITIVE: "POSITIVE";
336
+ };
337
+ /**
338
+ * @public
339
+ */
340
+ export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
321
341
  /**
322
342
  * @public
323
343
  * <p>The individual sentiment responses for the utterance.</p>
@@ -368,13 +388,18 @@ export interface SentimentResponse {
368
388
  }
369
389
  /**
370
390
  * @public
391
+ * @enum
371
392
  */
372
- export declare enum MessageContentType {
373
- CUSTOM_PAYLOAD = "CustomPayload",
374
- IMAGE_RESPONSE_CARD = "ImageResponseCard",
375
- PLAIN_TEXT = "PlainText",
376
- SSML = "SSML"
377
- }
393
+ export declare const MessageContentType: {
394
+ readonly CUSTOM_PAYLOAD: "CustomPayload";
395
+ readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
396
+ readonly PLAIN_TEXT: "PlainText";
397
+ readonly SSML: "SSML";
398
+ };
399
+ /**
400
+ * @public
401
+ */
402
+ export type MessageContentType = (typeof MessageContentType)[keyof typeof MessageContentType];
378
403
  /**
379
404
  * @public
380
405
  * <p>A button that appears on a response card show to the user.</p>
@@ -444,23 +469,33 @@ export interface Message {
444
469
  }
445
470
  /**
446
471
  * @public
472
+ * @enum
447
473
  */
448
- export declare enum StyleType {
449
- DEFAULT = "Default",
450
- SPELL_BY_LETTER = "SpellByLetter",
451
- SPELL_BY_WORD = "SpellByWord"
452
- }
474
+ export declare const StyleType: {
475
+ readonly DEFAULT: "Default";
476
+ readonly SPELL_BY_LETTER: "SpellByLetter";
477
+ readonly SPELL_BY_WORD: "SpellByWord";
478
+ };
453
479
  /**
454
480
  * @public
455
481
  */
456
- export declare enum DialogActionType {
457
- CLOSE = "Close",
458
- CONFIRM_INTENT = "ConfirmIntent",
459
- DELEGATE = "Delegate",
460
- ELICIT_INTENT = "ElicitIntent",
461
- ELICIT_SLOT = "ElicitSlot",
462
- NONE = "None"
463
- }
482
+ export type StyleType = (typeof StyleType)[keyof typeof StyleType];
483
+ /**
484
+ * @public
485
+ * @enum
486
+ */
487
+ export declare const DialogActionType: {
488
+ readonly CLOSE: "Close";
489
+ readonly CONFIRM_INTENT: "ConfirmIntent";
490
+ readonly DELEGATE: "Delegate";
491
+ readonly ELICIT_INTENT: "ElicitIntent";
492
+ readonly ELICIT_SLOT: "ElicitSlot";
493
+ readonly NONE: "None";
494
+ };
495
+ /**
496
+ * @public
497
+ */
498
+ export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
464
499
  /**
465
500
  * @public
466
501
  * <p>Provides the phrase that Amazon Lex V2 should look for in the user's input
@@ -771,11 +806,16 @@ export interface RecognizeUtteranceResponse {
771
806
  }
772
807
  /**
773
808
  * @public
809
+ * @enum
774
810
  */
775
- export declare enum ConversationMode {
776
- AUDIO = "AUDIO",
777
- TEXT = "TEXT"
778
- }
811
+ export declare const ConversationMode: {
812
+ readonly AUDIO: "AUDIO";
813
+ readonly TEXT: "TEXT";
814
+ };
815
+ /**
816
+ * @public
817
+ */
818
+ export type ConversationMode = (typeof ConversationMode)[keyof typeof ConversationMode];
779
819
  /**
780
820
  * @public
781
821
  * <p>A notification from the client that it is disconnecting from Amazon Lex V2.
@@ -874,20 +914,30 @@ export interface HeartbeatEvent {
874
914
  }
875
915
  /**
876
916
  * @public
917
+ * @enum
877
918
  */
878
- export declare enum InputMode {
879
- DTMF = "DTMF",
880
- SPEECH = "Speech",
881
- TEXT = "Text"
882
- }
919
+ export declare const InputMode: {
920
+ readonly DTMF: "DTMF";
921
+ readonly SPEECH: "Speech";
922
+ readonly TEXT: "Text";
923
+ };
883
924
  /**
884
925
  * @public
885
926
  */
886
- export declare enum PlaybackInterruptionReason {
887
- DTMF_START_DETECTED = "DTMF_START_DETECTED",
888
- TEXT_DETECTED = "TEXT_DETECTED",
889
- VOICE_START_DETECTED = "VOICE_START_DETECTED"
890
- }
927
+ export type InputMode = (typeof InputMode)[keyof typeof InputMode];
928
+ /**
929
+ * @public
930
+ * @enum
931
+ */
932
+ export declare const PlaybackInterruptionReason: {
933
+ readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
934
+ readonly TEXT_DETECTED: "TEXT_DETECTED";
935
+ readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
936
+ };
937
+ /**
938
+ * @public
939
+ */
940
+ export type PlaybackInterruptionReason = (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
891
941
  /**
892
942
  * @public
893
943
  * <p>Event sent from Amazon Lex V2 to indicate to the client application should
@@ -79,38 +79,43 @@ export interface GetSessionRequest {
79
79
  localeId: string | undefined;
80
80
  sessionId: string | undefined;
81
81
  }
82
- export declare enum ConfirmationState {
83
- CONFIRMED = "Confirmed",
84
- DENIED = "Denied",
85
- NONE = "None",
86
- }
87
- export declare enum Shape {
88
- COMPOSITE = "Composite",
89
- LIST = "List",
90
- SCALAR = "Scalar",
91
- }
82
+ export declare const ConfirmationState: {
83
+ readonly CONFIRMED: "Confirmed";
84
+ readonly DENIED: "Denied";
85
+ readonly NONE: "None";
86
+ };
87
+ export type ConfirmationState =
88
+ (typeof ConfirmationState)[keyof typeof ConfirmationState];
89
+ export declare const Shape: {
90
+ readonly COMPOSITE: "Composite";
91
+ readonly LIST: "List";
92
+ readonly SCALAR: "Scalar";
93
+ };
94
+ export type Shape = (typeof Shape)[keyof typeof Shape];
92
95
  export interface Value {
93
96
  originalValue?: string;
94
97
  interpretedValue: string | undefined;
95
98
  resolvedValues?: string[];
96
99
  }
97
- export declare enum IntentState {
98
- FAILED = "Failed",
99
- FULFILLED = "Fulfilled",
100
- FULFILLMENT_IN_PROGRESS = "FulfillmentInProgress",
101
- IN_PROGRESS = "InProgress",
102
- READY_FOR_FULFILLMENT = "ReadyForFulfillment",
103
- WAITING = "Waiting",
104
- }
100
+ export declare const IntentState: {
101
+ readonly FAILED: "Failed";
102
+ readonly FULFILLED: "Fulfilled";
103
+ readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
104
+ readonly IN_PROGRESS: "InProgress";
105
+ readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
106
+ readonly WAITING: "Waiting";
107
+ };
108
+ export type IntentState = (typeof IntentState)[keyof typeof IntentState];
105
109
  export interface ConfidenceScore {
106
110
  score?: number;
107
111
  }
108
- export declare enum SentimentType {
109
- MIXED = "MIXED",
110
- NEGATIVE = "NEGATIVE",
111
- NEUTRAL = "NEUTRAL",
112
- POSITIVE = "POSITIVE",
113
- }
112
+ export declare const SentimentType: {
113
+ readonly MIXED: "MIXED";
114
+ readonly NEGATIVE: "NEGATIVE";
115
+ readonly NEUTRAL: "NEUTRAL";
116
+ readonly POSITIVE: "POSITIVE";
117
+ };
118
+ export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
114
119
  export interface SentimentScore {
115
120
  positive?: number;
116
121
  negative?: number;
@@ -121,12 +126,14 @@ export interface SentimentResponse {
121
126
  sentiment?: SentimentType | string;
122
127
  sentimentScore?: SentimentScore;
123
128
  }
124
- export declare enum MessageContentType {
125
- CUSTOM_PAYLOAD = "CustomPayload",
126
- IMAGE_RESPONSE_CARD = "ImageResponseCard",
127
- PLAIN_TEXT = "PlainText",
128
- SSML = "SSML",
129
- }
129
+ export declare const MessageContentType: {
130
+ readonly CUSTOM_PAYLOAD: "CustomPayload";
131
+ readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
132
+ readonly PLAIN_TEXT: "PlainText";
133
+ readonly SSML: "SSML";
134
+ };
135
+ export type MessageContentType =
136
+ (typeof MessageContentType)[keyof typeof MessageContentType];
130
137
  export interface Button {
131
138
  text: string | undefined;
132
139
  value: string | undefined;
@@ -142,19 +149,22 @@ export interface Message {
142
149
  contentType: MessageContentType | string | undefined;
143
150
  imageResponseCard?: ImageResponseCard;
144
151
  }
145
- export declare enum StyleType {
146
- DEFAULT = "Default",
147
- SPELL_BY_LETTER = "SpellByLetter",
148
- SPELL_BY_WORD = "SpellByWord",
149
- }
150
- export declare enum DialogActionType {
151
- CLOSE = "Close",
152
- CONFIRM_INTENT = "ConfirmIntent",
153
- DELEGATE = "Delegate",
154
- ELICIT_INTENT = "ElicitIntent",
155
- ELICIT_SLOT = "ElicitSlot",
156
- NONE = "None",
157
- }
152
+ export declare const StyleType: {
153
+ readonly DEFAULT: "Default";
154
+ readonly SPELL_BY_LETTER: "SpellByLetter";
155
+ readonly SPELL_BY_WORD: "SpellByWord";
156
+ };
157
+ export type StyleType = (typeof StyleType)[keyof typeof StyleType];
158
+ export declare const DialogActionType: {
159
+ readonly CLOSE: "Close";
160
+ readonly CONFIRM_INTENT: "ConfirmIntent";
161
+ readonly DELEGATE: "Delegate";
162
+ readonly ELICIT_INTENT: "ElicitIntent";
163
+ readonly ELICIT_SLOT: "ElicitSlot";
164
+ readonly NONE: "None";
165
+ };
166
+ export type DialogActionType =
167
+ (typeof DialogActionType)[keyof typeof DialogActionType];
158
168
  export interface RuntimeHintValue {
159
169
  phrase: string | undefined;
160
170
  }
@@ -207,10 +217,12 @@ export interface RecognizeUtteranceResponse {
207
217
  audioStream?: Readable | ReadableStream | Blob;
208
218
  recognizedBotMember?: string;
209
219
  }
210
- export declare enum ConversationMode {
211
- AUDIO = "AUDIO",
212
- TEXT = "TEXT",
213
- }
220
+ export declare const ConversationMode: {
221
+ readonly AUDIO: "AUDIO";
222
+ readonly TEXT: "TEXT";
223
+ };
224
+ export type ConversationMode =
225
+ (typeof ConversationMode)[keyof typeof ConversationMode];
214
226
  export interface DisconnectionEvent {
215
227
  eventId?: string;
216
228
  clientTimestampMillis?: number;
@@ -232,16 +244,19 @@ export interface TextInputEvent {
232
244
  export interface HeartbeatEvent {
233
245
  eventId?: string;
234
246
  }
235
- export declare enum InputMode {
236
- DTMF = "DTMF",
237
- SPEECH = "Speech",
238
- TEXT = "Text",
239
- }
240
- export declare enum PlaybackInterruptionReason {
241
- DTMF_START_DETECTED = "DTMF_START_DETECTED",
242
- TEXT_DETECTED = "TEXT_DETECTED",
243
- VOICE_START_DETECTED = "VOICE_START_DETECTED",
244
- }
247
+ export declare const InputMode: {
248
+ readonly DTMF: "DTMF";
249
+ readonly SPEECH: "Speech";
250
+ readonly TEXT: "Text";
251
+ };
252
+ export type InputMode = (typeof InputMode)[keyof typeof InputMode];
253
+ export declare const PlaybackInterruptionReason: {
254
+ readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
255
+ readonly TEXT_DETECTED: "TEXT_DETECTED";
256
+ readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
257
+ };
258
+ export type PlaybackInterruptionReason =
259
+ (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
245
260
  export interface PlaybackInterruptionEvent {
246
261
  eventReason?: PlaybackInterruptionReason | string;
247
262
  causedByEventId?: string;
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.300.0",
4
+ "version": "3.303.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,49 +21,49 @@
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/eventstream-handler-node": "3.296.0",
28
- "@aws-sdk/eventstream-serde-browser": "3.296.0",
29
- "@aws-sdk/eventstream-serde-config-resolver": "3.296.0",
30
- "@aws-sdk/eventstream-serde-node": "3.299.0",
31
- "@aws-sdk/fetch-http-handler": "3.296.0",
32
- "@aws-sdk/hash-node": "3.296.0",
33
- "@aws-sdk/invalid-dependency": "3.296.0",
34
- "@aws-sdk/middleware-content-length": "3.296.0",
35
- "@aws-sdk/middleware-endpoint": "3.299.0",
36
- "@aws-sdk/middleware-eventstream": "3.296.0",
37
- "@aws-sdk/middleware-host-header": "3.296.0",
38
- "@aws-sdk/middleware-logger": "3.296.0",
39
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
40
- "@aws-sdk/middleware-retry": "3.300.0",
41
- "@aws-sdk/middleware-serde": "3.296.0",
42
- "@aws-sdk/middleware-signing": "3.299.0",
43
- "@aws-sdk/middleware-stack": "3.296.0",
44
- "@aws-sdk/middleware-user-agent": "3.299.0",
45
- "@aws-sdk/node-config-provider": "3.300.0",
46
- "@aws-sdk/node-http-handler": "3.296.0",
47
- "@aws-sdk/protocol-http": "3.296.0",
48
- "@aws-sdk/smithy-client": "3.296.0",
49
- "@aws-sdk/types": "3.296.0",
50
- "@aws-sdk/url-parser": "3.296.0",
51
- "@aws-sdk/util-base64": "3.295.0",
52
- "@aws-sdk/util-body-length-browser": "3.295.0",
53
- "@aws-sdk/util-body-length-node": "3.295.0",
54
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
55
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
56
- "@aws-sdk/util-endpoints": "3.296.0",
57
- "@aws-sdk/util-retry": "3.296.0",
58
- "@aws-sdk/util-stream-browser": "3.296.0",
59
- "@aws-sdk/util-stream-node": "3.296.0",
60
- "@aws-sdk/util-user-agent-browser": "3.299.0",
61
- "@aws-sdk/util-user-agent-node": "3.300.0",
62
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/eventstream-handler-node": "3.303.0",
28
+ "@aws-sdk/eventstream-serde-browser": "3.303.0",
29
+ "@aws-sdk/eventstream-serde-config-resolver": "3.303.0",
30
+ "@aws-sdk/eventstream-serde-node": "3.303.0",
31
+ "@aws-sdk/fetch-http-handler": "3.303.0",
32
+ "@aws-sdk/hash-node": "3.303.0",
33
+ "@aws-sdk/invalid-dependency": "3.303.0",
34
+ "@aws-sdk/middleware-content-length": "3.303.0",
35
+ "@aws-sdk/middleware-endpoint": "3.303.0",
36
+ "@aws-sdk/middleware-eventstream": "3.303.0",
37
+ "@aws-sdk/middleware-host-header": "3.303.0",
38
+ "@aws-sdk/middleware-logger": "3.303.0",
39
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
40
+ "@aws-sdk/middleware-retry": "3.303.0",
41
+ "@aws-sdk/middleware-serde": "3.303.0",
42
+ "@aws-sdk/middleware-signing": "3.303.0",
43
+ "@aws-sdk/middleware-stack": "3.303.0",
44
+ "@aws-sdk/middleware-user-agent": "3.303.0",
45
+ "@aws-sdk/node-config-provider": "3.303.0",
46
+ "@aws-sdk/node-http-handler": "3.303.0",
47
+ "@aws-sdk/protocol-http": "3.303.0",
48
+ "@aws-sdk/smithy-client": "3.303.0",
49
+ "@aws-sdk/types": "3.303.0",
50
+ "@aws-sdk/url-parser": "3.303.0",
51
+ "@aws-sdk/util-base64": "3.303.0",
52
+ "@aws-sdk/util-body-length-browser": "3.303.0",
53
+ "@aws-sdk/util-body-length-node": "3.303.0",
54
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
55
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
56
+ "@aws-sdk/util-endpoints": "3.303.0",
57
+ "@aws-sdk/util-retry": "3.303.0",
58
+ "@aws-sdk/util-stream-browser": "3.303.0",
59
+ "@aws-sdk/util-stream-node": "3.303.0",
60
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
61
+ "@aws-sdk/util-user-agent-node": "3.303.0",
62
+ "@aws-sdk/util-utf8": "3.303.0",
63
63
  "tslib": "^2.5.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
66
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
67
67
  "@tsconfig/node14": "1.0.3",
68
68
  "@types/node": "^14.14.31",
69
69
  "concurrently": "7.0.0",