@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.
- package/dist-cjs/models/models_0.js +57 -67
- package/dist-es/models/models_0.js +57 -67
- package/dist-types/models/models_0.d.ts +107 -57
- package/dist-types/ts3.4/models/models_0.d.ts +72 -57
- package/package.json +41 -41
|
@@ -81,56 +81,49 @@ class ValidationException extends LexRuntimeV2ServiceException_1.LexRuntimeV2Ser
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
exports.ValidationException = ValidationException;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
export
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
|
253
|
-
CONFIRMED
|
|
254
|
-
DENIED
|
|
255
|
-
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
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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
|
|
292
|
-
FAILED
|
|
293
|
-
FULFILLED
|
|
294
|
-
FULFILLMENT_IN_PROGRESS
|
|
295
|
-
IN_PROGRESS
|
|
296
|
-
READY_FOR_FULFILLMENT
|
|
297
|
-
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
|
|
316
|
-
MIXED
|
|
317
|
-
NEGATIVE
|
|
318
|
-
NEUTRAL
|
|
319
|
-
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
|
|
373
|
-
CUSTOM_PAYLOAD
|
|
374
|
-
IMAGE_RESPONSE_CARD
|
|
375
|
-
PLAIN_TEXT
|
|
376
|
-
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
|
|
449
|
-
DEFAULT
|
|
450
|
-
SPELL_BY_LETTER
|
|
451
|
-
SPELL_BY_WORD
|
|
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
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
|
776
|
-
AUDIO
|
|
777
|
-
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
|
|
879
|
-
DTMF
|
|
880
|
-
SPEECH
|
|
881
|
-
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
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
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
|
|
83
|
-
CONFIRMED
|
|
84
|
-
DENIED
|
|
85
|
-
NONE
|
|
86
|
-
}
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
98
|
-
FAILED
|
|
99
|
-
FULFILLED
|
|
100
|
-
FULFILLMENT_IN_PROGRESS
|
|
101
|
-
IN_PROGRESS
|
|
102
|
-
READY_FOR_FULFILLMENT
|
|
103
|
-
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
|
|
109
|
-
MIXED
|
|
110
|
-
NEGATIVE
|
|
111
|
-
NEUTRAL
|
|
112
|
-
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
|
|
125
|
-
CUSTOM_PAYLOAD
|
|
126
|
-
IMAGE_RESPONSE_CARD
|
|
127
|
-
PLAIN_TEXT
|
|
128
|
-
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
|
|
146
|
-
DEFAULT
|
|
147
|
-
SPELL_BY_LETTER
|
|
148
|
-
SPELL_BY_WORD
|
|
149
|
-
}
|
|
150
|
-
export
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|
211
|
-
AUDIO
|
|
212
|
-
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
|
|
236
|
-
DTMF
|
|
237
|
-
SPEECH
|
|
238
|
-
TEXT
|
|
239
|
-
}
|
|
240
|
-
export
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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.
|
|
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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
28
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
29
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
31
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
32
|
-
"@aws-sdk/hash-node": "3.
|
|
33
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
34
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
35
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
36
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
40
|
-
"@aws-sdk/middleware-retry": "3.
|
|
41
|
-
"@aws-sdk/middleware-serde": "3.
|
|
42
|
-
"@aws-sdk/middleware-signing": "3.
|
|
43
|
-
"@aws-sdk/middleware-stack": "3.
|
|
44
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
45
|
-
"@aws-sdk/node-config-provider": "3.
|
|
46
|
-
"@aws-sdk/node-http-handler": "3.
|
|
47
|
-
"@aws-sdk/protocol-http": "3.
|
|
48
|
-
"@aws-sdk/smithy-client": "3.
|
|
49
|
-
"@aws-sdk/types": "3.
|
|
50
|
-
"@aws-sdk/url-parser": "3.
|
|
51
|
-
"@aws-sdk/util-base64": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
55
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
56
|
-
"@aws-sdk/util-endpoints": "3.
|
|
57
|
-
"@aws-sdk/util-retry": "3.
|
|
58
|
-
"@aws-sdk/util-stream-browser": "3.
|
|
59
|
-
"@aws-sdk/util-stream-node": "3.
|
|
60
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
61
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
62
|
-
"@aws-sdk/util-utf8": "3.
|
|
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.
|
|
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",
|