@aws-sdk/client-lex-runtime-v2 3.296.0 → 3.298.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/commands/DeleteSessionCommand.js +2 -3
- package/dist-cjs/commands/GetSessionCommand.js +1 -1
- package/dist-cjs/models/models_0.js +8 -113
- package/dist-es/commands/DeleteSessionCommand.js +2 -3
- package/dist-es/commands/GetSessionCommand.js +2 -2
- package/dist-es/models/models_0.js +7 -85
- package/dist-types/LexRuntimeV2.d.ts +7 -0
- package/dist-types/LexRuntimeV2Client.d.ts +24 -4
- package/dist-types/commands/DeleteSessionCommand.d.ts +16 -0
- package/dist-types/commands/GetSessionCommand.d.ts +16 -0
- package/dist-types/commands/PutSessionCommand.d.ts +16 -0
- package/dist-types/commands/RecognizeTextCommand.d.ts +16 -0
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +17 -2
- package/dist-types/commands/StartConversationCommand.d.ts +16 -0
- package/dist-types/models/LexRuntimeV2ServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +113 -104
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +0 -66
- package/package.json +4 -3
|
@@ -3,6 +3,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
3
3
|
import { Readable } from "stream";
|
|
4
4
|
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
5
5
|
/**
|
|
6
|
+
* @public
|
|
6
7
|
* <p></p>
|
|
7
8
|
*/
|
|
8
9
|
export declare class AccessDeniedException extends __BaseException {
|
|
@@ -14,6 +15,7 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
14
15
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
18
|
+
* @public
|
|
17
19
|
* <p>The time that a context is active. You can specify the time to live
|
|
18
20
|
* in seconds or in conversation turns.</p>
|
|
19
21
|
*/
|
|
@@ -30,6 +32,7 @@ export interface ActiveContextTimeToLive {
|
|
|
30
32
|
turnsToLive: number | undefined;
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
35
|
+
* @public
|
|
33
36
|
* <p>Contains information about the contexts that a user is using in a
|
|
34
37
|
* session. You can configure Amazon Lex V2 to set a context when an intent is
|
|
35
38
|
* fulfilled, or you can set a context using the , , or operations.</p>
|
|
@@ -61,6 +64,7 @@ export interface ActiveContext {
|
|
|
61
64
|
contextAttributes: Record<string, string> | undefined;
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
67
|
+
* @public
|
|
64
68
|
* <p>Represents a chunk of audio sent from the client application to
|
|
65
69
|
* Amazon Lex V2. The audio is all or part of an utterance from the user.</p>
|
|
66
70
|
* <p>Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause
|
|
@@ -93,6 +97,7 @@ export interface AudioInputEvent {
|
|
|
93
97
|
clientTimestampMillis?: number;
|
|
94
98
|
}
|
|
95
99
|
/**
|
|
100
|
+
* @public
|
|
96
101
|
* <p>An event sent from Amazon Lex V2 to your client application containing audio
|
|
97
102
|
* to play to the user. </p>
|
|
98
103
|
*/
|
|
@@ -116,6 +121,7 @@ export interface AudioResponseEvent {
|
|
|
116
121
|
eventId?: string;
|
|
117
122
|
}
|
|
118
123
|
/**
|
|
124
|
+
* @public
|
|
119
125
|
* <p></p>
|
|
120
126
|
*/
|
|
121
127
|
export declare class ConflictException extends __BaseException {
|
|
@@ -126,6 +132,9 @@ export declare class ConflictException extends __BaseException {
|
|
|
126
132
|
*/
|
|
127
133
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
128
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
129
138
|
export interface DeleteSessionRequest {
|
|
130
139
|
/**
|
|
131
140
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
@@ -145,6 +154,9 @@ export interface DeleteSessionRequest {
|
|
|
145
154
|
*/
|
|
146
155
|
sessionId: string | undefined;
|
|
147
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
148
160
|
export interface DeleteSessionResponse {
|
|
149
161
|
/**
|
|
150
162
|
* <p>The identifier of the bot that contained the session data.</p>
|
|
@@ -165,6 +177,7 @@ export interface DeleteSessionResponse {
|
|
|
165
177
|
sessionId?: string;
|
|
166
178
|
}
|
|
167
179
|
/**
|
|
180
|
+
* @public
|
|
168
181
|
* <p></p>
|
|
169
182
|
*/
|
|
170
183
|
export declare class InternalServerException extends __BaseException {
|
|
@@ -176,6 +189,7 @@ export declare class InternalServerException extends __BaseException {
|
|
|
176
189
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
177
190
|
}
|
|
178
191
|
/**
|
|
192
|
+
* @public
|
|
179
193
|
* <p></p>
|
|
180
194
|
*/
|
|
181
195
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
@@ -187,6 +201,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
187
201
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
188
202
|
}
|
|
189
203
|
/**
|
|
204
|
+
* @public
|
|
190
205
|
* <p></p>
|
|
191
206
|
*/
|
|
192
207
|
export declare class ThrottlingException extends __BaseException {
|
|
@@ -198,6 +213,7 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
198
213
|
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
199
214
|
}
|
|
200
215
|
/**
|
|
216
|
+
* @public
|
|
201
217
|
* <p></p>
|
|
202
218
|
*/
|
|
203
219
|
export declare class ValidationException extends __BaseException {
|
|
@@ -208,6 +224,9 @@ export declare class ValidationException extends __BaseException {
|
|
|
208
224
|
*/
|
|
209
225
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
210
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
211
230
|
export interface GetSessionRequest {
|
|
212
231
|
/**
|
|
213
232
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
@@ -227,17 +246,24 @@ export interface GetSessionRequest {
|
|
|
227
246
|
*/
|
|
228
247
|
sessionId: string | undefined;
|
|
229
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
230
252
|
export declare enum ConfirmationState {
|
|
231
253
|
CONFIRMED = "Confirmed",
|
|
232
254
|
DENIED = "Denied",
|
|
233
255
|
NONE = "None"
|
|
234
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
235
260
|
export declare enum Shape {
|
|
236
261
|
COMPOSITE = "Composite",
|
|
237
262
|
LIST = "List",
|
|
238
263
|
SCALAR = "Scalar"
|
|
239
264
|
}
|
|
240
265
|
/**
|
|
266
|
+
* @public
|
|
241
267
|
* <p>The value of a slot.</p>
|
|
242
268
|
*/
|
|
243
269
|
export interface Value {
|
|
@@ -259,6 +285,9 @@ export interface Value {
|
|
|
259
285
|
*/
|
|
260
286
|
resolvedValues?: string[];
|
|
261
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
262
291
|
export declare enum IntentState {
|
|
263
292
|
FAILED = "Failed",
|
|
264
293
|
FULFILLED = "Fulfilled",
|
|
@@ -268,6 +297,7 @@ export declare enum IntentState {
|
|
|
268
297
|
WAITING = "Waiting"
|
|
269
298
|
}
|
|
270
299
|
/**
|
|
300
|
+
* @public
|
|
271
301
|
* <p>Provides a score that indicates the confidence that Amazon Lex V2 has that
|
|
272
302
|
* an intent is the one that satisfies the user's intent.</p>
|
|
273
303
|
*/
|
|
@@ -279,6 +309,9 @@ export interface ConfidenceScore {
|
|
|
279
309
|
*/
|
|
280
310
|
score?: number;
|
|
281
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* @public
|
|
314
|
+
*/
|
|
282
315
|
export declare enum SentimentType {
|
|
283
316
|
MIXED = "MIXED",
|
|
284
317
|
NEGATIVE = "NEGATIVE",
|
|
@@ -286,6 +319,7 @@ export declare enum SentimentType {
|
|
|
286
319
|
POSITIVE = "POSITIVE"
|
|
287
320
|
}
|
|
288
321
|
/**
|
|
322
|
+
* @public
|
|
289
323
|
* <p>The individual sentiment responses for the utterance.</p>
|
|
290
324
|
*/
|
|
291
325
|
export interface SentimentScore {
|
|
@@ -311,6 +345,7 @@ export interface SentimentScore {
|
|
|
311
345
|
mixed?: number;
|
|
312
346
|
}
|
|
313
347
|
/**
|
|
348
|
+
* @public
|
|
314
349
|
* <p>Provides information about the sentiment expressed in a user's
|
|
315
350
|
* response in a conversation. Sentiments are determined using Amazon
|
|
316
351
|
* Comprehend. Sentiments are only returned if they are enabled for the
|
|
@@ -331,6 +366,9 @@ export interface SentimentResponse {
|
|
|
331
366
|
*/
|
|
332
367
|
sentimentScore?: SentimentScore;
|
|
333
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
334
372
|
export declare enum MessageContentType {
|
|
335
373
|
CUSTOM_PAYLOAD = "CustomPayload",
|
|
336
374
|
IMAGE_RESPONSE_CARD = "ImageResponseCard",
|
|
@@ -338,6 +376,7 @@ export declare enum MessageContentType {
|
|
|
338
376
|
SSML = "SSML"
|
|
339
377
|
}
|
|
340
378
|
/**
|
|
379
|
+
* @public
|
|
341
380
|
* <p>A button that appears on a response card show to the user.</p>
|
|
342
381
|
*/
|
|
343
382
|
export interface Button {
|
|
@@ -351,6 +390,7 @@ export interface Button {
|
|
|
351
390
|
value: string | undefined;
|
|
352
391
|
}
|
|
353
392
|
/**
|
|
393
|
+
* @public
|
|
354
394
|
* <p>A card that is shown to the user by a messaging platform. You define
|
|
355
395
|
* the contents of the card, the card is displayed by the platform. </p>
|
|
356
396
|
* <p>When you use a response card, the response from the user is
|
|
@@ -382,6 +422,7 @@ export interface ImageResponseCard {
|
|
|
382
422
|
buttons?: Button[];
|
|
383
423
|
}
|
|
384
424
|
/**
|
|
425
|
+
* @public
|
|
385
426
|
* <p>Container for text that is returned to the customer..</p>
|
|
386
427
|
*/
|
|
387
428
|
export interface Message {
|
|
@@ -401,11 +442,17 @@ export interface Message {
|
|
|
401
442
|
*/
|
|
402
443
|
imageResponseCard?: ImageResponseCard;
|
|
403
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* @public
|
|
447
|
+
*/
|
|
404
448
|
export declare enum StyleType {
|
|
405
449
|
DEFAULT = "Default",
|
|
406
450
|
SPELL_BY_LETTER = "SpellByLetter",
|
|
407
451
|
SPELL_BY_WORD = "SpellByWord"
|
|
408
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* @public
|
|
455
|
+
*/
|
|
409
456
|
export declare enum DialogActionType {
|
|
410
457
|
CLOSE = "Close",
|
|
411
458
|
CONFIRM_INTENT = "ConfirmIntent",
|
|
@@ -415,6 +462,7 @@ export declare enum DialogActionType {
|
|
|
415
462
|
NONE = "None"
|
|
416
463
|
}
|
|
417
464
|
/**
|
|
465
|
+
* @public
|
|
418
466
|
* <p>Provides the phrase that Amazon Lex V2 should look for in the user's input
|
|
419
467
|
* to the bot.</p>
|
|
420
468
|
*/
|
|
@@ -426,6 +474,7 @@ export interface RuntimeHintValue {
|
|
|
426
474
|
phrase: string | undefined;
|
|
427
475
|
}
|
|
428
476
|
/**
|
|
477
|
+
* @public
|
|
429
478
|
* <p></p>
|
|
430
479
|
*/
|
|
431
480
|
export declare class BadGatewayException extends __BaseException {
|
|
@@ -437,6 +486,7 @@ export declare class BadGatewayException extends __BaseException {
|
|
|
437
486
|
constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
|
|
438
487
|
}
|
|
439
488
|
/**
|
|
489
|
+
* @public
|
|
440
490
|
* <p></p>
|
|
441
491
|
*/
|
|
442
492
|
export declare class DependencyFailedException extends __BaseException {
|
|
@@ -447,6 +497,9 @@ export declare class DependencyFailedException extends __BaseException {
|
|
|
447
497
|
*/
|
|
448
498
|
constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
|
|
449
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
450
503
|
export interface PutSessionResponse {
|
|
451
504
|
/**
|
|
452
505
|
* <p>The type of response. Same as the type specified in the
|
|
@@ -483,6 +536,7 @@ export interface PutSessionResponse {
|
|
|
483
536
|
audioStream?: Readable | ReadableStream | Blob;
|
|
484
537
|
}
|
|
485
538
|
/**
|
|
539
|
+
* @public
|
|
486
540
|
* <p>The bot member that processes the request.</p>
|
|
487
541
|
*/
|
|
488
542
|
export interface RecognizedBotMember {
|
|
@@ -495,6 +549,9 @@ export interface RecognizedBotMember {
|
|
|
495
549
|
*/
|
|
496
550
|
botName?: string;
|
|
497
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
498
555
|
export interface RecognizeUtteranceRequest {
|
|
499
556
|
/**
|
|
500
557
|
* <p>The identifier of the bot that should receive the request.</p>
|
|
@@ -621,6 +678,9 @@ export interface RecognizeUtteranceRequest {
|
|
|
621
678
|
*/
|
|
622
679
|
inputStream?: Readable | ReadableStream | Blob;
|
|
623
680
|
}
|
|
681
|
+
/**
|
|
682
|
+
* @public
|
|
683
|
+
*/
|
|
624
684
|
export interface RecognizeUtteranceResponse {
|
|
625
685
|
/**
|
|
626
686
|
* <p>Indicates whether the input mode to the operation was text or
|
|
@@ -709,11 +769,15 @@ export interface RecognizeUtteranceResponse {
|
|
|
709
769
|
*/
|
|
710
770
|
recognizedBotMember?: string;
|
|
711
771
|
}
|
|
772
|
+
/**
|
|
773
|
+
* @public
|
|
774
|
+
*/
|
|
712
775
|
export declare enum ConversationMode {
|
|
713
776
|
AUDIO = "AUDIO",
|
|
714
777
|
TEXT = "TEXT"
|
|
715
778
|
}
|
|
716
779
|
/**
|
|
780
|
+
* @public
|
|
717
781
|
* <p>A notification from the client that it is disconnecting from Amazon Lex V2.
|
|
718
782
|
* Sending a <code>DisconnectionEvent</code> event is optional, but can
|
|
719
783
|
* help identify a conversation in logs.</p>
|
|
@@ -731,6 +795,7 @@ export interface DisconnectionEvent {
|
|
|
731
795
|
clientTimestampMillis?: number;
|
|
732
796
|
}
|
|
733
797
|
/**
|
|
798
|
+
* @public
|
|
734
799
|
* <p>A DTMF character sent from the client application. DTMF characters
|
|
735
800
|
* are typically sent from a phone keypad to represent numbers. For
|
|
736
801
|
* example, you can have Amazon Lex V2 process a credit card number input from a
|
|
@@ -754,6 +819,7 @@ export interface DTMFInputEvent {
|
|
|
754
819
|
clientTimestampMillis?: number;
|
|
755
820
|
}
|
|
756
821
|
/**
|
|
822
|
+
* @public
|
|
757
823
|
* <p>Event sent from the client application to Amazon Lex V2 to indicate that
|
|
758
824
|
* playback of audio is complete and that Amazon Lex V2 should start processing
|
|
759
825
|
* the user's input.</p>
|
|
@@ -771,6 +837,7 @@ export interface PlaybackCompletionEvent {
|
|
|
771
837
|
clientTimestampMillis?: number;
|
|
772
838
|
}
|
|
773
839
|
/**
|
|
840
|
+
* @public
|
|
774
841
|
* <p>The event sent from your client application to Amazon Lex V2 with text input
|
|
775
842
|
* from the user.</p>
|
|
776
843
|
*/
|
|
@@ -792,6 +859,7 @@ export interface TextInputEvent {
|
|
|
792
859
|
clientTimestampMillis?: number;
|
|
793
860
|
}
|
|
794
861
|
/**
|
|
862
|
+
* @public
|
|
795
863
|
* <p>Event that Amazon Lex V2 sends to indicate that the stream is still open
|
|
796
864
|
* between the client application and Amazon Lex V2 </p>
|
|
797
865
|
*/
|
|
@@ -804,17 +872,24 @@ export interface HeartbeatEvent {
|
|
|
804
872
|
*/
|
|
805
873
|
eventId?: string;
|
|
806
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* @public
|
|
877
|
+
*/
|
|
807
878
|
export declare enum InputMode {
|
|
808
879
|
DTMF = "DTMF",
|
|
809
880
|
SPEECH = "Speech",
|
|
810
881
|
TEXT = "Text"
|
|
811
882
|
}
|
|
883
|
+
/**
|
|
884
|
+
* @public
|
|
885
|
+
*/
|
|
812
886
|
export declare enum PlaybackInterruptionReason {
|
|
813
887
|
DTMF_START_DETECTED = "DTMF_START_DETECTED",
|
|
814
888
|
TEXT_DETECTED = "TEXT_DETECTED",
|
|
815
889
|
VOICE_START_DETECTED = "VOICE_START_DETECTED"
|
|
816
890
|
}
|
|
817
891
|
/**
|
|
892
|
+
* @public
|
|
818
893
|
* <p>Event sent from Amazon Lex V2 to indicate to the client application should
|
|
819
894
|
* stop playback of audio. For example, if the client is playing a prompt
|
|
820
895
|
* that asks for the user's telephone number, the user might start to say
|
|
@@ -841,6 +916,7 @@ export interface PlaybackInterruptionEvent {
|
|
|
841
916
|
eventId?: string;
|
|
842
917
|
}
|
|
843
918
|
/**
|
|
919
|
+
* @public
|
|
844
920
|
* <p>The event sent from Amazon Lex V2 to your application with text to present
|
|
845
921
|
* to the user.</p>
|
|
846
922
|
*/
|
|
@@ -860,6 +936,7 @@ export interface TextResponseEvent {
|
|
|
860
936
|
eventId?: string;
|
|
861
937
|
}
|
|
862
938
|
/**
|
|
939
|
+
* @public
|
|
863
940
|
* <p>Event sent from Amazon Lex V2 to your client application that contains a
|
|
864
941
|
* transcript of voice audio. </p>
|
|
865
942
|
*/
|
|
@@ -877,6 +954,7 @@ export interface TranscriptEvent {
|
|
|
877
954
|
eventId?: string;
|
|
878
955
|
}
|
|
879
956
|
/**
|
|
957
|
+
* @public
|
|
880
958
|
* <p>The specific constituent sub slot of the composite slot to elicit in dialog action.</p>
|
|
881
959
|
*/
|
|
882
960
|
export interface ElicitSubSlot {
|
|
@@ -890,6 +968,7 @@ export interface ElicitSubSlot {
|
|
|
890
968
|
subSlotToElicit?: ElicitSubSlot;
|
|
891
969
|
}
|
|
892
970
|
/**
|
|
971
|
+
* @public
|
|
893
972
|
* <p>The next action that Amazon Lex V2 should take.</p>
|
|
894
973
|
*/
|
|
895
974
|
export interface DialogAction {
|
|
@@ -955,6 +1034,7 @@ export interface DialogAction {
|
|
|
955
1034
|
subSlotToElicit?: ElicitSubSlot;
|
|
956
1035
|
}
|
|
957
1036
|
/**
|
|
1037
|
+
* @public
|
|
958
1038
|
* <p>Provides an array of phrases that should be given preference when
|
|
959
1039
|
* resolving values for a slot.</p>
|
|
960
1040
|
*/
|
|
@@ -974,6 +1054,7 @@ export interface RuntimeHintDetails {
|
|
|
974
1054
|
subSlotHints?: Record<string, RuntimeHintDetails>;
|
|
975
1055
|
}
|
|
976
1056
|
/**
|
|
1057
|
+
* @public
|
|
977
1058
|
* <p>You can provide Amazon Lex V2 with hints to the phrases that a customer is
|
|
978
1059
|
* likely to use for a slot. When a slot with hints is resolved, the
|
|
979
1060
|
* phrases in the runtime hints are preferred in the resolution. You can
|
|
@@ -997,6 +1078,7 @@ export interface RuntimeHints {
|
|
|
997
1078
|
slotHints?: Record<string, Record<string, RuntimeHintDetails>>;
|
|
998
1079
|
}
|
|
999
1080
|
/**
|
|
1081
|
+
* @public
|
|
1000
1082
|
* <p>A value that Amazon Lex V2 uses to fulfill an intent. </p>
|
|
1001
1083
|
*/
|
|
1002
1084
|
export interface Slot {
|
|
@@ -1023,6 +1105,7 @@ export interface Slot {
|
|
|
1023
1105
|
subSlots?: Record<string, Slot>;
|
|
1024
1106
|
}
|
|
1025
1107
|
/**
|
|
1108
|
+
* @public
|
|
1026
1109
|
* <p>The current intent that Amazon Lex V2 is attempting to fulfill.</p>
|
|
1027
1110
|
*/
|
|
1028
1111
|
export interface Intent {
|
|
@@ -1047,6 +1130,7 @@ export interface Intent {
|
|
|
1047
1130
|
confirmationState?: ConfirmationState | string;
|
|
1048
1131
|
}
|
|
1049
1132
|
/**
|
|
1133
|
+
* @public
|
|
1050
1134
|
* <p>An intent that Amazon Lex V2 determined might satisfy the user's utterance.
|
|
1051
1135
|
* The intents are ordered by the confidence score. </p>
|
|
1052
1136
|
*/
|
|
@@ -1074,6 +1158,7 @@ export interface Interpretation {
|
|
|
1074
1158
|
intent?: Intent;
|
|
1075
1159
|
}
|
|
1076
1160
|
/**
|
|
1161
|
+
* @public
|
|
1077
1162
|
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1078
1163
|
*/
|
|
1079
1164
|
export interface SessionState {
|
|
@@ -1109,6 +1194,7 @@ export interface SessionState {
|
|
|
1109
1194
|
runtimeHints?: RuntimeHints;
|
|
1110
1195
|
}
|
|
1111
1196
|
/**
|
|
1197
|
+
* @public
|
|
1112
1198
|
* <p>The initial event sent from the application to Amazon Lex V2 to configure
|
|
1113
1199
|
* the conversation, including session and request attributes and the
|
|
1114
1200
|
* response content type.</p>
|
|
@@ -1201,6 +1287,9 @@ export interface ConfigurationEvent {
|
|
|
1201
1287
|
*/
|
|
1202
1288
|
clientTimestampMillis?: number;
|
|
1203
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
* @public
|
|
1292
|
+
*/
|
|
1204
1293
|
export interface PutSessionRequest {
|
|
1205
1294
|
/**
|
|
1206
1295
|
* <p>The identifier of the bot that receives the session data.</p>
|
|
@@ -1251,6 +1340,9 @@ export interface PutSessionRequest {
|
|
|
1251
1340
|
*/
|
|
1252
1341
|
responseContentType?: string;
|
|
1253
1342
|
}
|
|
1343
|
+
/**
|
|
1344
|
+
* @public
|
|
1345
|
+
*/
|
|
1254
1346
|
export interface RecognizeTextRequest {
|
|
1255
1347
|
/**
|
|
1256
1348
|
* <p>The identifier of the bot that processes the request.</p>
|
|
@@ -1288,10 +1380,14 @@ export interface RecognizeTextRequest {
|
|
|
1288
1380
|
requestAttributes?: Record<string, string>;
|
|
1289
1381
|
}
|
|
1290
1382
|
/**
|
|
1383
|
+
* @public
|
|
1291
1384
|
* <p>Represents a stream of events between your application and
|
|
1292
1385
|
* Amazon Lex V2.</p>
|
|
1293
1386
|
*/
|
|
1294
1387
|
export type StartConversationRequestEventStream = StartConversationRequestEventStream.AudioInputEventMember | StartConversationRequestEventStream.ConfigurationEventMember | StartConversationRequestEventStream.DTMFInputEventMember | StartConversationRequestEventStream.DisconnectionEventMember | StartConversationRequestEventStream.PlaybackCompletionEventMember | StartConversationRequestEventStream.TextInputEventMember | StartConversationRequestEventStream.$UnknownMember;
|
|
1388
|
+
/**
|
|
1389
|
+
* @public
|
|
1390
|
+
*/
|
|
1295
1391
|
export declare namespace StartConversationRequestEventStream {
|
|
1296
1392
|
/**
|
|
1297
1393
|
* <p>Configuration information sent from your client application to
|
|
@@ -1408,6 +1504,9 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1408
1504
|
}
|
|
1409
1505
|
const visit: <T>(value: StartConversationRequestEventStream, visitor: Visitor<T>) => T;
|
|
1410
1506
|
}
|
|
1507
|
+
/**
|
|
1508
|
+
* @public
|
|
1509
|
+
*/
|
|
1411
1510
|
export interface StartConversationRequest {
|
|
1412
1511
|
/**
|
|
1413
1512
|
* <p>The identifier of the bot to process the request.</p>
|
|
@@ -1440,6 +1539,9 @@ export interface StartConversationRequest {
|
|
|
1440
1539
|
*/
|
|
1441
1540
|
requestEventStream: AsyncIterable<StartConversationRequestEventStream> | undefined;
|
|
1442
1541
|
}
|
|
1542
|
+
/**
|
|
1543
|
+
* @public
|
|
1544
|
+
*/
|
|
1443
1545
|
export interface GetSessionResponse {
|
|
1444
1546
|
/**
|
|
1445
1547
|
* <p>The identifier of the returned session.</p>
|
|
@@ -1470,6 +1572,7 @@ export interface GetSessionResponse {
|
|
|
1470
1572
|
sessionState?: SessionState;
|
|
1471
1573
|
}
|
|
1472
1574
|
/**
|
|
1575
|
+
* @public
|
|
1473
1576
|
* <p>Contains the current state of the conversation between the client
|
|
1474
1577
|
* application and Amazon Lex V2.</p>
|
|
1475
1578
|
*/
|
|
@@ -1512,6 +1615,9 @@ export interface IntentResultEvent {
|
|
|
1512
1615
|
*/
|
|
1513
1616
|
recognizedBotMember?: RecognizedBotMember;
|
|
1514
1617
|
}
|
|
1618
|
+
/**
|
|
1619
|
+
* @public
|
|
1620
|
+
*/
|
|
1515
1621
|
export interface RecognizeTextResponse {
|
|
1516
1622
|
/**
|
|
1517
1623
|
* <p>A list of messages last sent to the user. The messages are ordered
|
|
@@ -1549,10 +1655,14 @@ export interface RecognizeTextResponse {
|
|
|
1549
1655
|
recognizedBotMember?: RecognizedBotMember;
|
|
1550
1656
|
}
|
|
1551
1657
|
/**
|
|
1658
|
+
* @public
|
|
1552
1659
|
* <p>Represents a stream of events between Amazon Lex V2 and your
|
|
1553
1660
|
* application.</p>
|
|
1554
1661
|
*/
|
|
1555
1662
|
export type StartConversationResponseEventStream = StartConversationResponseEventStream.AccessDeniedExceptionMember | StartConversationResponseEventStream.AudioResponseEventMember | StartConversationResponseEventStream.BadGatewayExceptionMember | StartConversationResponseEventStream.ConflictExceptionMember | StartConversationResponseEventStream.DependencyFailedExceptionMember | StartConversationResponseEventStream.HeartbeatEventMember | StartConversationResponseEventStream.IntentResultEventMember | StartConversationResponseEventStream.InternalServerExceptionMember | StartConversationResponseEventStream.PlaybackInterruptionEventMember | StartConversationResponseEventStream.ResourceNotFoundExceptionMember | StartConversationResponseEventStream.TextResponseEventMember | StartConversationResponseEventStream.ThrottlingExceptionMember | StartConversationResponseEventStream.TranscriptEventMember | StartConversationResponseEventStream.ValidationExceptionMember | StartConversationResponseEventStream.$UnknownMember;
|
|
1663
|
+
/**
|
|
1664
|
+
* @public
|
|
1665
|
+
*/
|
|
1556
1666
|
export declare namespace StartConversationResponseEventStream {
|
|
1557
1667
|
/**
|
|
1558
1668
|
* <p>Event sent from Amazon Lex V2 to indicate to the client application should
|
|
@@ -1889,6 +1999,9 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1889
1999
|
}
|
|
1890
2000
|
const visit: <T>(value: StartConversationResponseEventStream, visitor: Visitor<T>) => T;
|
|
1891
2001
|
}
|
|
2002
|
+
/**
|
|
2003
|
+
* @public
|
|
2004
|
+
*/
|
|
1892
2005
|
export interface StartConversationResponse {
|
|
1893
2006
|
/**
|
|
1894
2007
|
* <p>Represents the stream of events from Amazon Lex V2 to your application. The
|
|
@@ -1896,74 +2009,18 @@ export interface StartConversationResponse {
|
|
|
1896
2009
|
*/
|
|
1897
2010
|
responseEventStream?: AsyncIterable<StartConversationResponseEventStream>;
|
|
1898
2011
|
}
|
|
1899
|
-
/**
|
|
1900
|
-
* @internal
|
|
1901
|
-
*/
|
|
1902
|
-
export declare const ActiveContextTimeToLiveFilterSensitiveLog: (obj: ActiveContextTimeToLive) => any;
|
|
1903
2012
|
/**
|
|
1904
2013
|
* @internal
|
|
1905
2014
|
*/
|
|
1906
2015
|
export declare const ActiveContextFilterSensitiveLog: (obj: ActiveContext) => any;
|
|
1907
|
-
/**
|
|
1908
|
-
* @internal
|
|
1909
|
-
*/
|
|
1910
|
-
export declare const AudioInputEventFilterSensitiveLog: (obj: AudioInputEvent) => any;
|
|
1911
|
-
/**
|
|
1912
|
-
* @internal
|
|
1913
|
-
*/
|
|
1914
|
-
export declare const AudioResponseEventFilterSensitiveLog: (obj: AudioResponseEvent) => any;
|
|
1915
|
-
/**
|
|
1916
|
-
* @internal
|
|
1917
|
-
*/
|
|
1918
|
-
export declare const DeleteSessionRequestFilterSensitiveLog: (obj: DeleteSessionRequest) => any;
|
|
1919
|
-
/**
|
|
1920
|
-
* @internal
|
|
1921
|
-
*/
|
|
1922
|
-
export declare const DeleteSessionResponseFilterSensitiveLog: (obj: DeleteSessionResponse) => any;
|
|
1923
|
-
/**
|
|
1924
|
-
* @internal
|
|
1925
|
-
*/
|
|
1926
|
-
export declare const GetSessionRequestFilterSensitiveLog: (obj: GetSessionRequest) => any;
|
|
1927
|
-
/**
|
|
1928
|
-
* @internal
|
|
1929
|
-
*/
|
|
1930
|
-
export declare const ValueFilterSensitiveLog: (obj: Value) => any;
|
|
1931
|
-
/**
|
|
1932
|
-
* @internal
|
|
1933
|
-
*/
|
|
1934
|
-
export declare const ConfidenceScoreFilterSensitiveLog: (obj: ConfidenceScore) => any;
|
|
1935
|
-
/**
|
|
1936
|
-
* @internal
|
|
1937
|
-
*/
|
|
1938
|
-
export declare const SentimentScoreFilterSensitiveLog: (obj: SentimentScore) => any;
|
|
1939
|
-
/**
|
|
1940
|
-
* @internal
|
|
1941
|
-
*/
|
|
1942
|
-
export declare const SentimentResponseFilterSensitiveLog: (obj: SentimentResponse) => any;
|
|
1943
|
-
/**
|
|
1944
|
-
* @internal
|
|
1945
|
-
*/
|
|
1946
|
-
export declare const ButtonFilterSensitiveLog: (obj: Button) => any;
|
|
1947
|
-
/**
|
|
1948
|
-
* @internal
|
|
1949
|
-
*/
|
|
1950
|
-
export declare const ImageResponseCardFilterSensitiveLog: (obj: ImageResponseCard) => any;
|
|
1951
2016
|
/**
|
|
1952
2017
|
* @internal
|
|
1953
2018
|
*/
|
|
1954
2019
|
export declare const MessageFilterSensitiveLog: (obj: Message) => any;
|
|
1955
|
-
/**
|
|
1956
|
-
* @internal
|
|
1957
|
-
*/
|
|
1958
|
-
export declare const RuntimeHintValueFilterSensitiveLog: (obj: RuntimeHintValue) => any;
|
|
1959
2020
|
/**
|
|
1960
2021
|
* @internal
|
|
1961
2022
|
*/
|
|
1962
2023
|
export declare const PutSessionResponseFilterSensitiveLog: (obj: PutSessionResponse) => any;
|
|
1963
|
-
/**
|
|
1964
|
-
* @internal
|
|
1965
|
-
*/
|
|
1966
|
-
export declare const RecognizedBotMemberFilterSensitiveLog: (obj: RecognizedBotMember) => any;
|
|
1967
2024
|
/**
|
|
1968
2025
|
* @internal
|
|
1969
2026
|
*/
|
|
@@ -1972,66 +2029,18 @@ export declare const RecognizeUtteranceRequestFilterSensitiveLog: (obj: Recogniz
|
|
|
1972
2029
|
* @internal
|
|
1973
2030
|
*/
|
|
1974
2031
|
export declare const RecognizeUtteranceResponseFilterSensitiveLog: (obj: RecognizeUtteranceResponse) => any;
|
|
1975
|
-
/**
|
|
1976
|
-
* @internal
|
|
1977
|
-
*/
|
|
1978
|
-
export declare const DisconnectionEventFilterSensitiveLog: (obj: DisconnectionEvent) => any;
|
|
1979
2032
|
/**
|
|
1980
2033
|
* @internal
|
|
1981
2034
|
*/
|
|
1982
2035
|
export declare const DTMFInputEventFilterSensitiveLog: (obj: DTMFInputEvent) => any;
|
|
1983
|
-
/**
|
|
1984
|
-
* @internal
|
|
1985
|
-
*/
|
|
1986
|
-
export declare const PlaybackCompletionEventFilterSensitiveLog: (obj: PlaybackCompletionEvent) => any;
|
|
1987
2036
|
/**
|
|
1988
2037
|
* @internal
|
|
1989
2038
|
*/
|
|
1990
2039
|
export declare const TextInputEventFilterSensitiveLog: (obj: TextInputEvent) => any;
|
|
1991
|
-
/**
|
|
1992
|
-
* @internal
|
|
1993
|
-
*/
|
|
1994
|
-
export declare const HeartbeatEventFilterSensitiveLog: (obj: HeartbeatEvent) => any;
|
|
1995
|
-
/**
|
|
1996
|
-
* @internal
|
|
1997
|
-
*/
|
|
1998
|
-
export declare const PlaybackInterruptionEventFilterSensitiveLog: (obj: PlaybackInterruptionEvent) => any;
|
|
1999
2040
|
/**
|
|
2000
2041
|
* @internal
|
|
2001
2042
|
*/
|
|
2002
2043
|
export declare const TextResponseEventFilterSensitiveLog: (obj: TextResponseEvent) => any;
|
|
2003
|
-
/**
|
|
2004
|
-
* @internal
|
|
2005
|
-
*/
|
|
2006
|
-
export declare const TranscriptEventFilterSensitiveLog: (obj: TranscriptEvent) => any;
|
|
2007
|
-
/**
|
|
2008
|
-
* @internal
|
|
2009
|
-
*/
|
|
2010
|
-
export declare const ElicitSubSlotFilterSensitiveLog: (obj: ElicitSubSlot) => any;
|
|
2011
|
-
/**
|
|
2012
|
-
* @internal
|
|
2013
|
-
*/
|
|
2014
|
-
export declare const DialogActionFilterSensitiveLog: (obj: DialogAction) => any;
|
|
2015
|
-
/**
|
|
2016
|
-
* @internal
|
|
2017
|
-
*/
|
|
2018
|
-
export declare const RuntimeHintDetailsFilterSensitiveLog: (obj: RuntimeHintDetails) => any;
|
|
2019
|
-
/**
|
|
2020
|
-
* @internal
|
|
2021
|
-
*/
|
|
2022
|
-
export declare const RuntimeHintsFilterSensitiveLog: (obj: RuntimeHints) => any;
|
|
2023
|
-
/**
|
|
2024
|
-
* @internal
|
|
2025
|
-
*/
|
|
2026
|
-
export declare const SlotFilterSensitiveLog: (obj: Slot) => any;
|
|
2027
|
-
/**
|
|
2028
|
-
* @internal
|
|
2029
|
-
*/
|
|
2030
|
-
export declare const IntentFilterSensitiveLog: (obj: Intent) => any;
|
|
2031
|
-
/**
|
|
2032
|
-
* @internal
|
|
2033
|
-
*/
|
|
2034
|
-
export declare const InterpretationFilterSensitiveLog: (obj: Interpretation) => any;
|
|
2035
2044
|
/**
|
|
2036
2045
|
* @internal
|
|
2037
2046
|
*/
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
RecognizeUtteranceRequest,
|
|
17
17
|
RecognizeUtteranceResponse,
|
|
18
18
|
} from "../models/models_0";
|
|
19
|
-
type RecognizeUtteranceCommandInputType = Pick<
|
|
19
|
+
export type RecognizeUtteranceCommandInputType = Pick<
|
|
20
20
|
RecognizeUtteranceRequest,
|
|
21
21
|
Exclude<keyof RecognizeUtteranceRequest, "inputStream">
|
|
22
22
|
> & {
|
|
@@ -47,4 +47,3 @@ export declare class RecognizeUtteranceCommand extends $Command<
|
|
|
47
47
|
private serialize;
|
|
48
48
|
private deserialize;
|
|
49
49
|
}
|
|
50
|
-
export {};
|