@aws-sdk/client-lex-runtime-v2 3.301.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) => {
@@ -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.301.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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.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",