@aws-sdk/client-lex-runtime-v2 3.379.1 → 3.382.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/models/models_0.d.ts +187 -0
- package/package.json +5 -5
|
@@ -20,11 +20,13 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ActiveContextTimeToLive {
|
|
22
22
|
/**
|
|
23
|
+
* @public
|
|
23
24
|
* <p>The number of seconds that the context is active. You can specify
|
|
24
25
|
* between 5 and 86400 seconds (24 hours).</p>
|
|
25
26
|
*/
|
|
26
27
|
timeToLiveInSeconds: number | undefined;
|
|
27
28
|
/**
|
|
29
|
+
* @public
|
|
28
30
|
* <p>The number of turns that the context is active. You can specify up
|
|
29
31
|
* to 20 turns. Each request and response from the bot is a turn.</p>
|
|
30
32
|
*/
|
|
@@ -43,16 +45,19 @@ export interface ActiveContextTimeToLive {
|
|
|
43
45
|
*/
|
|
44
46
|
export interface ActiveContext {
|
|
45
47
|
/**
|
|
48
|
+
* @public
|
|
46
49
|
* <p>The name of the context.</p>
|
|
47
50
|
*/
|
|
48
51
|
name: string | undefined;
|
|
49
52
|
/**
|
|
53
|
+
* @public
|
|
50
54
|
* <p>Indicates the number of turns or seconds that the context is active.
|
|
51
55
|
* Once the time to live expires, the context is no longer returned in a
|
|
52
56
|
* response.</p>
|
|
53
57
|
*/
|
|
54
58
|
timeToLive: ActiveContextTimeToLive | undefined;
|
|
55
59
|
/**
|
|
60
|
+
* @public
|
|
56
61
|
* <p>A list of contexts active for the request. A context can be
|
|
57
62
|
* activated when a previous intent is fulfilled, or by including the
|
|
58
63
|
* context in the request.</p>
|
|
@@ -71,10 +76,12 @@ export interface ActiveContext {
|
|
|
71
76
|
*/
|
|
72
77
|
export interface AudioInputEvent {
|
|
73
78
|
/**
|
|
79
|
+
* @public
|
|
74
80
|
* <p>An encoded stream of audio.</p>
|
|
75
81
|
*/
|
|
76
82
|
audioChunk?: Uint8Array;
|
|
77
83
|
/**
|
|
84
|
+
* @public
|
|
78
85
|
* <p>The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit
|
|
79
86
|
* mono-channel little-endian format. The value of the field should
|
|
80
87
|
* be:</p>
|
|
@@ -85,11 +92,13 @@ export interface AudioInputEvent {
|
|
|
85
92
|
*/
|
|
86
93
|
contentType: string | undefined;
|
|
87
94
|
/**
|
|
95
|
+
* @public
|
|
88
96
|
* <p>A unique identifier that your application assigns to the event. You
|
|
89
97
|
* can use this to identify events in logs.</p>
|
|
90
98
|
*/
|
|
91
99
|
eventId?: string;
|
|
92
100
|
/**
|
|
101
|
+
* @public
|
|
93
102
|
* <p>A timestamp set by the client of the date and time that the event
|
|
94
103
|
* was sent to Amazon Lex V2.</p>
|
|
95
104
|
*/
|
|
@@ -102,16 +111,19 @@ export interface AudioInputEvent {
|
|
|
102
111
|
*/
|
|
103
112
|
export interface AudioResponseEvent {
|
|
104
113
|
/**
|
|
114
|
+
* @public
|
|
105
115
|
* <p>A chunk of the audio to play. </p>
|
|
106
116
|
*/
|
|
107
117
|
audioChunk?: Uint8Array;
|
|
108
118
|
/**
|
|
119
|
+
* @public
|
|
109
120
|
* <p>The encoding of the audio chunk. This is the same as the encoding
|
|
110
121
|
* configure in the <code>contentType</code> field of the
|
|
111
122
|
* <code>ConfigurationEvent</code>.</p>
|
|
112
123
|
*/
|
|
113
124
|
contentType?: string;
|
|
114
125
|
/**
|
|
126
|
+
* @public
|
|
115
127
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
116
128
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
117
129
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -136,19 +148,23 @@ export declare class ConflictException extends __BaseException {
|
|
|
136
148
|
*/
|
|
137
149
|
export interface DeleteSessionRequest {
|
|
138
150
|
/**
|
|
151
|
+
* @public
|
|
139
152
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
140
153
|
*/
|
|
141
154
|
botId: string | undefined;
|
|
142
155
|
/**
|
|
156
|
+
* @public
|
|
143
157
|
* <p>The alias identifier in use for the bot that contains the session
|
|
144
158
|
* data.</p>
|
|
145
159
|
*/
|
|
146
160
|
botAliasId: string | undefined;
|
|
147
161
|
/**
|
|
162
|
+
* @public
|
|
148
163
|
* <p>The locale where the session is in use.</p>
|
|
149
164
|
*/
|
|
150
165
|
localeId: string | undefined;
|
|
151
166
|
/**
|
|
167
|
+
* @public
|
|
152
168
|
* <p>The identifier of the session to delete.</p>
|
|
153
169
|
*/
|
|
154
170
|
sessionId: string | undefined;
|
|
@@ -158,19 +174,23 @@ export interface DeleteSessionRequest {
|
|
|
158
174
|
*/
|
|
159
175
|
export interface DeleteSessionResponse {
|
|
160
176
|
/**
|
|
177
|
+
* @public
|
|
161
178
|
* <p>The identifier of the bot that contained the session data.</p>
|
|
162
179
|
*/
|
|
163
180
|
botId?: string;
|
|
164
181
|
/**
|
|
182
|
+
* @public
|
|
165
183
|
* <p>The alias identifier in use for the bot that contained the session
|
|
166
184
|
* data.</p>
|
|
167
185
|
*/
|
|
168
186
|
botAliasId?: string;
|
|
169
187
|
/**
|
|
188
|
+
* @public
|
|
170
189
|
* <p>The locale where the session was used.</p>
|
|
171
190
|
*/
|
|
172
191
|
localeId?: string;
|
|
173
192
|
/**
|
|
193
|
+
* @public
|
|
174
194
|
* <p>The identifier of the deleted session.</p>
|
|
175
195
|
*/
|
|
176
196
|
sessionId?: string;
|
|
@@ -228,19 +248,23 @@ export declare class ValidationException extends __BaseException {
|
|
|
228
248
|
*/
|
|
229
249
|
export interface GetSessionRequest {
|
|
230
250
|
/**
|
|
251
|
+
* @public
|
|
231
252
|
* <p>The identifier of the bot that contains the session data.</p>
|
|
232
253
|
*/
|
|
233
254
|
botId: string | undefined;
|
|
234
255
|
/**
|
|
256
|
+
* @public
|
|
235
257
|
* <p>The alias identifier in use for the bot that contains the session
|
|
236
258
|
* data.</p>
|
|
237
259
|
*/
|
|
238
260
|
botAliasId: string | undefined;
|
|
239
261
|
/**
|
|
262
|
+
* @public
|
|
240
263
|
* <p>The locale where the session is in use.</p>
|
|
241
264
|
*/
|
|
242
265
|
localeId: string | undefined;
|
|
243
266
|
/**
|
|
267
|
+
* @public
|
|
244
268
|
* <p>The identifier of the session to return.</p>
|
|
245
269
|
*/
|
|
246
270
|
sessionId: string | undefined;
|
|
@@ -277,11 +301,13 @@ export type Shape = (typeof Shape)[keyof typeof Shape];
|
|
|
277
301
|
*/
|
|
278
302
|
export interface Value {
|
|
279
303
|
/**
|
|
304
|
+
* @public
|
|
280
305
|
* <p>The text of the utterance from the user that was entered for the
|
|
281
306
|
* slot.</p>
|
|
282
307
|
*/
|
|
283
308
|
originalValue?: string;
|
|
284
309
|
/**
|
|
310
|
+
* @public
|
|
285
311
|
* <p>The value that Amazon Lex V2 determines for the slot. The actual value
|
|
286
312
|
* depends on the setting of the value selection strategy for the bot. You
|
|
287
313
|
* can choose to use the value entered by the user, or you can have Amazon Lex V2
|
|
@@ -289,6 +315,7 @@ export interface Value {
|
|
|
289
315
|
*/
|
|
290
316
|
interpretedValue: string | undefined;
|
|
291
317
|
/**
|
|
318
|
+
* @public
|
|
292
319
|
* <p>A list of additional values that have been recognized for the
|
|
293
320
|
* slot.</p>
|
|
294
321
|
*/
|
|
@@ -317,6 +344,7 @@ export type IntentState = (typeof IntentState)[keyof typeof IntentState];
|
|
|
317
344
|
*/
|
|
318
345
|
export interface ConfidenceScore {
|
|
319
346
|
/**
|
|
347
|
+
* @public
|
|
320
348
|
* <p>A score that indicates how confident Amazon Lex V2 is that an intent
|
|
321
349
|
* satisfies the user's intent. Ranges between 0.00 and 1.00. Higher
|
|
322
350
|
* scores indicate higher confidence.</p>
|
|
@@ -343,21 +371,25 @@ export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
|
|
|
343
371
|
*/
|
|
344
372
|
export interface SentimentScore {
|
|
345
373
|
/**
|
|
374
|
+
* @public
|
|
346
375
|
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
347
376
|
* of its detection of the <code>POSITIVE</code> sentiment.</p>
|
|
348
377
|
*/
|
|
349
378
|
positive?: number;
|
|
350
379
|
/**
|
|
380
|
+
* @public
|
|
351
381
|
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
352
382
|
* of its detection of the <code>NEGATIVE</code> sentiment.</p>
|
|
353
383
|
*/
|
|
354
384
|
negative?: number;
|
|
355
385
|
/**
|
|
386
|
+
* @public
|
|
356
387
|
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
357
388
|
* of its detection of the <code>NEUTRAL</code> sentiment.</p>
|
|
358
389
|
*/
|
|
359
390
|
neutral?: number;
|
|
360
391
|
/**
|
|
392
|
+
* @public
|
|
361
393
|
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
362
394
|
* of its detection of the <code>MIXED</code> sentiment.</p>
|
|
363
395
|
*/
|
|
@@ -375,12 +407,14 @@ export interface SentimentScore {
|
|
|
375
407
|
*/
|
|
376
408
|
export interface SentimentResponse {
|
|
377
409
|
/**
|
|
410
|
+
* @public
|
|
378
411
|
* <p>The overall sentiment expressed in the user's response. This is the
|
|
379
412
|
* sentiment most likely expressed by the user based on the analysis by
|
|
380
413
|
* Amazon Comprehend.</p>
|
|
381
414
|
*/
|
|
382
415
|
sentiment?: SentimentType | string;
|
|
383
416
|
/**
|
|
417
|
+
* @public
|
|
384
418
|
* <p>The individual sentiment responses for the utterance.</p>
|
|
385
419
|
*/
|
|
386
420
|
sentimentScore?: SentimentScore;
|
|
@@ -405,10 +439,12 @@ export type MessageContentType = (typeof MessageContentType)[keyof typeof Messag
|
|
|
405
439
|
*/
|
|
406
440
|
export interface Button {
|
|
407
441
|
/**
|
|
442
|
+
* @public
|
|
408
443
|
* <p>The text that is displayed on the button.</p>
|
|
409
444
|
*/
|
|
410
445
|
text: string | undefined;
|
|
411
446
|
/**
|
|
447
|
+
* @public
|
|
412
448
|
* <p>The value returned to Amazon Lex V2 when a user chooses the button.</p>
|
|
413
449
|
*/
|
|
414
450
|
value: string | undefined;
|
|
@@ -422,23 +458,27 @@ export interface Button {
|
|
|
422
458
|
*/
|
|
423
459
|
export interface ImageResponseCard {
|
|
424
460
|
/**
|
|
461
|
+
* @public
|
|
425
462
|
* <p>The title to display on the response card. The format of the title
|
|
426
463
|
* is determined by the platform displaying the response card.</p>
|
|
427
464
|
*/
|
|
428
465
|
title: string | undefined;
|
|
429
466
|
/**
|
|
467
|
+
* @public
|
|
430
468
|
* <p>The subtitle to display on the response card. The format of the
|
|
431
469
|
* subtitle is determined by the platform displaying the response
|
|
432
470
|
* card.</p>
|
|
433
471
|
*/
|
|
434
472
|
subtitle?: string;
|
|
435
473
|
/**
|
|
474
|
+
* @public
|
|
436
475
|
* <p>The URL of an image to display on the response card. The image URL
|
|
437
476
|
* must be publicly available so that the platform displaying the response
|
|
438
477
|
* card has access to the image.</p>
|
|
439
478
|
*/
|
|
440
479
|
imageUrl?: string;
|
|
441
480
|
/**
|
|
481
|
+
* @public
|
|
442
482
|
* <p>A list of buttons that should be displayed on the response card. The
|
|
443
483
|
* arrangement of the buttons is determined by the platform that displays
|
|
444
484
|
* the button.</p>
|
|
@@ -451,14 +491,17 @@ export interface ImageResponseCard {
|
|
|
451
491
|
*/
|
|
452
492
|
export interface Message {
|
|
453
493
|
/**
|
|
494
|
+
* @public
|
|
454
495
|
* <p>The text of the message.</p>
|
|
455
496
|
*/
|
|
456
497
|
content?: string;
|
|
457
498
|
/**
|
|
499
|
+
* @public
|
|
458
500
|
* <p>Indicates the type of response.</p>
|
|
459
501
|
*/
|
|
460
502
|
contentType: MessageContentType | string | undefined;
|
|
461
503
|
/**
|
|
504
|
+
* @public
|
|
462
505
|
* <p>A card that is shown to the user by a messaging platform. You define
|
|
463
506
|
* the contents of the card, the card is displayed by the platform. </p>
|
|
464
507
|
* <p>When you use a response card, the response from the user is
|
|
@@ -502,6 +545,7 @@ export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActi
|
|
|
502
545
|
*/
|
|
503
546
|
export interface RuntimeHintValue {
|
|
504
547
|
/**
|
|
548
|
+
* @public
|
|
505
549
|
* <p>The phrase that Amazon Lex V2 should look for in the user's input to the
|
|
506
550
|
* bot.</p>
|
|
507
551
|
*/
|
|
@@ -536,17 +580,20 @@ export declare class DependencyFailedException extends __BaseException {
|
|
|
536
580
|
*/
|
|
537
581
|
export interface PutSessionResponse {
|
|
538
582
|
/**
|
|
583
|
+
* @public
|
|
539
584
|
* <p>The type of response. Same as the type specified in the
|
|
540
585
|
* <code>responseContentType</code> field in the request.</p>
|
|
541
586
|
*/
|
|
542
587
|
contentType?: string;
|
|
543
588
|
/**
|
|
589
|
+
* @public
|
|
544
590
|
* <p>A list of messages that were last sent to the user. The messages are
|
|
545
591
|
* ordered based on how you return the messages from you Lambda function
|
|
546
592
|
* or the order that the messages are defined in the bot.</p>
|
|
547
593
|
*/
|
|
548
594
|
messages?: string;
|
|
549
595
|
/**
|
|
596
|
+
* @public
|
|
550
597
|
* <p>Represents the current state of the dialog between the user and the
|
|
551
598
|
* bot.</p>
|
|
552
599
|
* <p>Use this to determine the progress of the conversation and what the
|
|
@@ -554,16 +601,19 @@ export interface PutSessionResponse {
|
|
|
554
601
|
*/
|
|
555
602
|
sessionState?: string;
|
|
556
603
|
/**
|
|
604
|
+
* @public
|
|
557
605
|
* <p>Request-specific information passed between the client application
|
|
558
606
|
* and Amazon Lex V2. These are the same as the <code>requestAttribute</code>
|
|
559
607
|
* parameter in the call to the <code>PutSession</code> operation.</p>
|
|
560
608
|
*/
|
|
561
609
|
requestAttributes?: string;
|
|
562
610
|
/**
|
|
611
|
+
* @public
|
|
563
612
|
* <p>The identifier of the session that received the data.</p>
|
|
564
613
|
*/
|
|
565
614
|
sessionId?: string;
|
|
566
615
|
/**
|
|
616
|
+
* @public
|
|
567
617
|
* <p>If the requested content type was audio, the audio version of the
|
|
568
618
|
* message to convey to the user.</p>
|
|
569
619
|
*/
|
|
@@ -575,10 +625,12 @@ export interface PutSessionResponse {
|
|
|
575
625
|
*/
|
|
576
626
|
export interface RecognizedBotMember {
|
|
577
627
|
/**
|
|
628
|
+
* @public
|
|
578
629
|
* <p>The identifier of the bot member that processes the request.</p>
|
|
579
630
|
*/
|
|
580
631
|
botId: string | undefined;
|
|
581
632
|
/**
|
|
633
|
+
* @public
|
|
582
634
|
* <p>The name of the bot member that processes the request.</p>
|
|
583
635
|
*/
|
|
584
636
|
botName?: string;
|
|
@@ -588,23 +640,28 @@ export interface RecognizedBotMember {
|
|
|
588
640
|
*/
|
|
589
641
|
export interface RecognizeUtteranceRequest {
|
|
590
642
|
/**
|
|
643
|
+
* @public
|
|
591
644
|
* <p>The identifier of the bot that should receive the request.</p>
|
|
592
645
|
*/
|
|
593
646
|
botId: string | undefined;
|
|
594
647
|
/**
|
|
648
|
+
* @public
|
|
595
649
|
* <p>The alias identifier in use for the bot that should receive the
|
|
596
650
|
* request.</p>
|
|
597
651
|
*/
|
|
598
652
|
botAliasId: string | undefined;
|
|
599
653
|
/**
|
|
654
|
+
* @public
|
|
600
655
|
* <p>The locale where the session is in use.</p>
|
|
601
656
|
*/
|
|
602
657
|
localeId: string | undefined;
|
|
603
658
|
/**
|
|
659
|
+
* @public
|
|
604
660
|
* <p>The identifier of the session in use.</p>
|
|
605
661
|
*/
|
|
606
662
|
sessionId: string | undefined;
|
|
607
663
|
/**
|
|
664
|
+
* @public
|
|
608
665
|
* <p>Sets the state of the session with the user. You can use this to set
|
|
609
666
|
* the current intent, attributes, context, and dialog action. Use the
|
|
610
667
|
* dialog action to determine the next step that Amazon Lex V2 should use in the
|
|
@@ -614,6 +671,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
614
671
|
*/
|
|
615
672
|
sessionState?: string;
|
|
616
673
|
/**
|
|
674
|
+
* @public
|
|
617
675
|
* <p>Request-specific information passed between the client application
|
|
618
676
|
* and Amazon Lex V2 </p>
|
|
619
677
|
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
@@ -624,6 +682,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
624
682
|
*/
|
|
625
683
|
requestAttributes?: string;
|
|
626
684
|
/**
|
|
685
|
+
* @public
|
|
627
686
|
* <p>Indicates the format for audio input or that the content is text.
|
|
628
687
|
* The header must start with one of the following prefixes:</p>
|
|
629
688
|
* <ul>
|
|
@@ -663,6 +722,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
663
722
|
*/
|
|
664
723
|
requestContentType: string | undefined;
|
|
665
724
|
/**
|
|
725
|
+
* @public
|
|
666
726
|
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
667
727
|
* speech based on the <code>responseContentType</code> value.</p>
|
|
668
728
|
* <ul>
|
|
@@ -707,6 +767,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
707
767
|
*/
|
|
708
768
|
responseContentType?: string;
|
|
709
769
|
/**
|
|
770
|
+
* @public
|
|
710
771
|
* <p>User input in PCM or Opus audio format or text format as described
|
|
711
772
|
* in the <code>requestContentType</code> parameter.</p>
|
|
712
773
|
*/
|
|
@@ -717,17 +778,20 @@ export interface RecognizeUtteranceRequest {
|
|
|
717
778
|
*/
|
|
718
779
|
export interface RecognizeUtteranceResponse {
|
|
719
780
|
/**
|
|
781
|
+
* @public
|
|
720
782
|
* <p>Indicates whether the input mode to the operation was text or
|
|
721
783
|
* speech.
|
|
722
784
|
* </p>
|
|
723
785
|
*/
|
|
724
786
|
inputMode?: string;
|
|
725
787
|
/**
|
|
788
|
+
* @public
|
|
726
789
|
* <p>Content type as specified in the <code>responseContentType</code> in
|
|
727
790
|
* the request.</p>
|
|
728
791
|
*/
|
|
729
792
|
contentType?: string;
|
|
730
793
|
/**
|
|
794
|
+
* @public
|
|
731
795
|
* <p>A list of messages that were last sent to the user. The messages are
|
|
732
796
|
* ordered based on the order that you returned the messages from your
|
|
733
797
|
* Lambda function or the order that the messages are defined in the
|
|
@@ -739,6 +803,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
739
803
|
*/
|
|
740
804
|
messages?: string;
|
|
741
805
|
/**
|
|
806
|
+
* @public
|
|
742
807
|
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
743
808
|
* utterance.</p>
|
|
744
809
|
* <p>Each interpretation includes the intent, a score that indicates how
|
|
@@ -752,6 +817,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
752
817
|
*/
|
|
753
818
|
interpretations?: string;
|
|
754
819
|
/**
|
|
820
|
+
* @public
|
|
755
821
|
* <p>Represents the current state of the dialog between the user and the
|
|
756
822
|
* bot.</p>
|
|
757
823
|
* <p>Use this to determine the progress of the conversation and what the
|
|
@@ -763,6 +829,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
763
829
|
*/
|
|
764
830
|
sessionState?: string;
|
|
765
831
|
/**
|
|
832
|
+
* @public
|
|
766
833
|
* <p>The attributes sent in the request.</p>
|
|
767
834
|
* <p>The <code>requestAttributes</code> field is compressed with gzip and
|
|
768
835
|
* then base64 encoded. Before you can use the contents of the field, you
|
|
@@ -770,10 +837,12 @@ export interface RecognizeUtteranceResponse {
|
|
|
770
837
|
*/
|
|
771
838
|
requestAttributes?: string;
|
|
772
839
|
/**
|
|
840
|
+
* @public
|
|
773
841
|
* <p>The identifier of the session in use.</p>
|
|
774
842
|
*/
|
|
775
843
|
sessionId?: string;
|
|
776
844
|
/**
|
|
845
|
+
* @public
|
|
777
846
|
* <p>The text used to process the request.</p>
|
|
778
847
|
* <p>If the input was an audio stream, the <code>inputTranscript</code>
|
|
779
848
|
* field contains the text extracted from the audio stream. This is the
|
|
@@ -787,6 +856,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
787
856
|
*/
|
|
788
857
|
inputTranscript?: string;
|
|
789
858
|
/**
|
|
859
|
+
* @public
|
|
790
860
|
* <p>The prompt or statement to send to the user. This is based on the
|
|
791
861
|
* bot configuration and context. For example, if Amazon Lex V2 did not understand
|
|
792
862
|
* the user intent, it sends the <code>clarificationPrompt</code>
|
|
@@ -799,6 +869,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
799
869
|
*/
|
|
800
870
|
audioStream?: StreamingBlobTypes;
|
|
801
871
|
/**
|
|
872
|
+
* @public
|
|
802
873
|
* <p>The bot member that recognized the utterance.</p>
|
|
803
874
|
*/
|
|
804
875
|
recognizedBotMember?: string;
|
|
@@ -823,11 +894,13 @@ export type ConversationMode = (typeof ConversationMode)[keyof typeof Conversati
|
|
|
823
894
|
*/
|
|
824
895
|
export interface DisconnectionEvent {
|
|
825
896
|
/**
|
|
897
|
+
* @public
|
|
826
898
|
* <p>A unique identifier that your application assigns to the event. You
|
|
827
899
|
* can use this to identify events in logs.</p>
|
|
828
900
|
*/
|
|
829
901
|
eventId?: string;
|
|
830
902
|
/**
|
|
903
|
+
* @public
|
|
831
904
|
* <p>A timestamp set by the client of the date and time that the event
|
|
832
905
|
* was sent to Amazon Lex V2.</p>
|
|
833
906
|
*/
|
|
@@ -842,16 +915,19 @@ export interface DisconnectionEvent {
|
|
|
842
915
|
*/
|
|
843
916
|
export interface DTMFInputEvent {
|
|
844
917
|
/**
|
|
918
|
+
* @public
|
|
845
919
|
* <p>The DTMF character that the user pressed. The allowed characters are
|
|
846
920
|
* A - D, 0 - 9, # and *.</p>
|
|
847
921
|
*/
|
|
848
922
|
inputCharacter: string | undefined;
|
|
849
923
|
/**
|
|
924
|
+
* @public
|
|
850
925
|
* <p>A unique identifier that your application assigns to the event. You
|
|
851
926
|
* can use this to identify events in logs.</p>
|
|
852
927
|
*/
|
|
853
928
|
eventId?: string;
|
|
854
929
|
/**
|
|
930
|
+
* @public
|
|
855
931
|
* <p>A timestamp set by the client of the date and time that the event
|
|
856
932
|
* was sent to Amazon Lex V2.</p>
|
|
857
933
|
*/
|
|
@@ -865,11 +941,13 @@ export interface DTMFInputEvent {
|
|
|
865
941
|
*/
|
|
866
942
|
export interface PlaybackCompletionEvent {
|
|
867
943
|
/**
|
|
944
|
+
* @public
|
|
868
945
|
* <p>A unique identifier that your application assigns to the event. You
|
|
869
946
|
* can use this to identify events in logs.</p>
|
|
870
947
|
*/
|
|
871
948
|
eventId?: string;
|
|
872
949
|
/**
|
|
950
|
+
* @public
|
|
873
951
|
* <p>A timestamp set by the client of the date and time that the event
|
|
874
952
|
* was sent to Amazon Lex V2.</p>
|
|
875
953
|
*/
|
|
@@ -882,16 +960,19 @@ export interface PlaybackCompletionEvent {
|
|
|
882
960
|
*/
|
|
883
961
|
export interface TextInputEvent {
|
|
884
962
|
/**
|
|
963
|
+
* @public
|
|
885
964
|
* <p>The text from the user. Amazon Lex V2 processes this as a complete
|
|
886
965
|
* statement.</p>
|
|
887
966
|
*/
|
|
888
967
|
text: string | undefined;
|
|
889
968
|
/**
|
|
969
|
+
* @public
|
|
890
970
|
* <p>A unique identifier that your application assigns to the event. You
|
|
891
971
|
* can use this to identify events in logs.</p>
|
|
892
972
|
*/
|
|
893
973
|
eventId?: string;
|
|
894
974
|
/**
|
|
975
|
+
* @public
|
|
895
976
|
* <p>A timestamp set by the client of the date and time that the event
|
|
896
977
|
* was sent to Amazon Lex V2.</p>
|
|
897
978
|
*/
|
|
@@ -904,6 +985,7 @@ export interface TextInputEvent {
|
|
|
904
985
|
*/
|
|
905
986
|
export interface HeartbeatEvent {
|
|
906
987
|
/**
|
|
988
|
+
* @public
|
|
907
989
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
908
990
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
909
991
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -948,15 +1030,18 @@ export type PlaybackInterruptionReason = (typeof PlaybackInterruptionReason)[key
|
|
|
948
1030
|
*/
|
|
949
1031
|
export interface PlaybackInterruptionEvent {
|
|
950
1032
|
/**
|
|
1033
|
+
* @public
|
|
951
1034
|
* <p>Indicates the type of user input that Amazon Lex V2 detected.</p>
|
|
952
1035
|
*/
|
|
953
1036
|
eventReason?: PlaybackInterruptionReason | string;
|
|
954
1037
|
/**
|
|
1038
|
+
* @public
|
|
955
1039
|
* <p>The identifier of the event that contained the audio, DTMF, or text
|
|
956
1040
|
* that caused the interruption.</p>
|
|
957
1041
|
*/
|
|
958
1042
|
causedByEventId?: string;
|
|
959
1043
|
/**
|
|
1044
|
+
* @public
|
|
960
1045
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
961
1046
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
962
1047
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -971,12 +1056,14 @@ export interface PlaybackInterruptionEvent {
|
|
|
971
1056
|
*/
|
|
972
1057
|
export interface TextResponseEvent {
|
|
973
1058
|
/**
|
|
1059
|
+
* @public
|
|
974
1060
|
* <p>A list of messages to send to the user. Messages are ordered based
|
|
975
1061
|
* on the order that you returned the messages from your Lambda function
|
|
976
1062
|
* or the order that the messages are defined in the bot.</p>
|
|
977
1063
|
*/
|
|
978
1064
|
messages?: Message[];
|
|
979
1065
|
/**
|
|
1066
|
+
* @public
|
|
980
1067
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
981
1068
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
982
1069
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -991,10 +1078,12 @@ export interface TextResponseEvent {
|
|
|
991
1078
|
*/
|
|
992
1079
|
export interface TranscriptEvent {
|
|
993
1080
|
/**
|
|
1081
|
+
* @public
|
|
994
1082
|
* <p>The transcript of the voice audio from the user.</p>
|
|
995
1083
|
*/
|
|
996
1084
|
transcript?: string;
|
|
997
1085
|
/**
|
|
1086
|
+
* @public
|
|
998
1087
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
999
1088
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1000
1089
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -1008,10 +1097,12 @@ export interface TranscriptEvent {
|
|
|
1008
1097
|
*/
|
|
1009
1098
|
export interface ElicitSubSlot {
|
|
1010
1099
|
/**
|
|
1100
|
+
* @public
|
|
1011
1101
|
* <p>The name of the slot that should be elicited from the user.</p>
|
|
1012
1102
|
*/
|
|
1013
1103
|
name: string | undefined;
|
|
1014
1104
|
/**
|
|
1105
|
+
* @public
|
|
1015
1106
|
* <p>The field is not supported.</p>
|
|
1016
1107
|
*/
|
|
1017
1108
|
subSlotToElicit?: ElicitSubSlot;
|
|
@@ -1022,6 +1113,7 @@ export interface ElicitSubSlot {
|
|
|
1022
1113
|
*/
|
|
1023
1114
|
export interface DialogAction {
|
|
1024
1115
|
/**
|
|
1116
|
+
* @public
|
|
1025
1117
|
* <p>The next action that the bot should take in its interaction with the
|
|
1026
1118
|
* user. The possible values are:</p>
|
|
1027
1119
|
* <ul>
|
|
@@ -1056,10 +1148,12 @@ export interface DialogAction {
|
|
|
1056
1148
|
*/
|
|
1057
1149
|
type: DialogActionType | string | undefined;
|
|
1058
1150
|
/**
|
|
1151
|
+
* @public
|
|
1059
1152
|
* <p>The name of the slot that should be elicited from the user.</p>
|
|
1060
1153
|
*/
|
|
1061
1154
|
slotToElicit?: string;
|
|
1062
1155
|
/**
|
|
1156
|
+
* @public
|
|
1063
1157
|
* <p>Configures the slot to use spell-by-letter or spell-by-word style.
|
|
1064
1158
|
* When you use a style on a slot, users can spell out their input to make
|
|
1065
1159
|
* it clear to your bot.</p>
|
|
@@ -1077,6 +1171,7 @@ export interface DialogAction {
|
|
|
1077
1171
|
*/
|
|
1078
1172
|
slotElicitationStyle?: StyleType | string;
|
|
1079
1173
|
/**
|
|
1174
|
+
* @public
|
|
1080
1175
|
* <p>The name of the constituent sub slot of the composite slot
|
|
1081
1176
|
* specified in slotToElicit that should be elicited from the user.</p>
|
|
1082
1177
|
*/
|
|
@@ -1089,12 +1184,14 @@ export interface DialogAction {
|
|
|
1089
1184
|
*/
|
|
1090
1185
|
export interface RuntimeHintDetails {
|
|
1091
1186
|
/**
|
|
1187
|
+
* @public
|
|
1092
1188
|
* <p>One or more strings that Amazon Lex V2 should look for in the input to the
|
|
1093
1189
|
* bot. Each phrase is given preference when deciding on slot
|
|
1094
1190
|
* values.</p>
|
|
1095
1191
|
*/
|
|
1096
1192
|
runtimeHintValues?: RuntimeHintValue[];
|
|
1097
1193
|
/**
|
|
1194
|
+
* @public
|
|
1098
1195
|
* <p>A map of constituent sub slot names inside a composite slot in the intent and the phrases
|
|
1099
1196
|
* that should be added for each sub slot. Inside each composite slot hints, this structure provides
|
|
1100
1197
|
* a mechanism to add granular sub slot phrases. Only sub slot hints are supported for composite slots.
|
|
@@ -1116,6 +1213,7 @@ export interface RuntimeHintDetails {
|
|
|
1116
1213
|
*/
|
|
1117
1214
|
export interface RuntimeHints {
|
|
1118
1215
|
/**
|
|
1216
|
+
* @public
|
|
1119
1217
|
* <p>A list of the slots in the intent that should have runtime hints
|
|
1120
1218
|
* added, and the phrases that should be added for each slot.</p>
|
|
1121
1219
|
* <p>The first level of the <code>slotHints</code> map is the name of the
|
|
@@ -1132,10 +1230,12 @@ export interface RuntimeHints {
|
|
|
1132
1230
|
*/
|
|
1133
1231
|
export interface Slot {
|
|
1134
1232
|
/**
|
|
1233
|
+
* @public
|
|
1135
1234
|
* <p>The current value of the slot.</p>
|
|
1136
1235
|
*/
|
|
1137
1236
|
value?: Value;
|
|
1138
1237
|
/**
|
|
1238
|
+
* @public
|
|
1139
1239
|
* <p>When the <code>shape</code> value is <code>List</code>, it indicates
|
|
1140
1240
|
* that the <code>values</code> field contains a list of slot values. When
|
|
1141
1241
|
* the value is <code>Scalar</code>, it indicates that the
|
|
@@ -1143,12 +1243,14 @@ export interface Slot {
|
|
|
1143
1243
|
*/
|
|
1144
1244
|
shape?: Shape | string;
|
|
1145
1245
|
/**
|
|
1246
|
+
* @public
|
|
1146
1247
|
* <p>A list of one or more values that the user provided for the slot.
|
|
1147
1248
|
* For example, if a for a slot that elicits pizza toppings, the values
|
|
1148
1249
|
* might be "pepperoni" and "pineapple." </p>
|
|
1149
1250
|
*/
|
|
1150
1251
|
values?: Slot[];
|
|
1151
1252
|
/**
|
|
1253
|
+
* @public
|
|
1152
1254
|
* <p>The constituent sub slots of a composite slot.</p>
|
|
1153
1255
|
*/
|
|
1154
1256
|
subSlots?: Record<string, Slot>;
|
|
@@ -1159,20 +1261,24 @@ export interface Slot {
|
|
|
1159
1261
|
*/
|
|
1160
1262
|
export interface Intent {
|
|
1161
1263
|
/**
|
|
1264
|
+
* @public
|
|
1162
1265
|
* <p>The name of the intent.</p>
|
|
1163
1266
|
*/
|
|
1164
1267
|
name: string | undefined;
|
|
1165
1268
|
/**
|
|
1269
|
+
* @public
|
|
1166
1270
|
* <p>A map of all of the slots for the intent. The name of the slot maps
|
|
1167
1271
|
* to the value of the slot. If a slot has not been filled, the value is
|
|
1168
1272
|
* null.</p>
|
|
1169
1273
|
*/
|
|
1170
1274
|
slots?: Record<string, Slot>;
|
|
1171
1275
|
/**
|
|
1276
|
+
* @public
|
|
1172
1277
|
* <p>Contains fulfillment information for the intent. </p>
|
|
1173
1278
|
*/
|
|
1174
1279
|
state?: IntentState | string;
|
|
1175
1280
|
/**
|
|
1281
|
+
* @public
|
|
1176
1282
|
* <p>Contains information about whether fulfillment of the intent has
|
|
1177
1283
|
* been confirmed.</p>
|
|
1178
1284
|
*/
|
|
@@ -1185,6 +1291,7 @@ export interface Intent {
|
|
|
1185
1291
|
*/
|
|
1186
1292
|
export interface Interpretation {
|
|
1187
1293
|
/**
|
|
1294
|
+
* @public
|
|
1188
1295
|
* <p>Determines the threshold where Amazon Lex V2 will insert the
|
|
1189
1296
|
* <code>AMAZON.FallbackIntent</code>,
|
|
1190
1297
|
* <code>AMAZON.KendraSearchIntent</code>, or both when returning
|
|
@@ -1194,6 +1301,7 @@ export interface Interpretation {
|
|
|
1194
1301
|
*/
|
|
1195
1302
|
nluConfidence?: ConfidenceScore;
|
|
1196
1303
|
/**
|
|
1304
|
+
* @public
|
|
1197
1305
|
* <p>The sentiment expressed in an utterance. </p>
|
|
1198
1306
|
* <p>When the bot is configured to send utterances to Amazon Comprehend
|
|
1199
1307
|
* for sentiment analysis, this field contains the result of the
|
|
@@ -1201,6 +1309,7 @@ export interface Interpretation {
|
|
|
1201
1309
|
*/
|
|
1202
1310
|
sentimentResponse?: SentimentResponse;
|
|
1203
1311
|
/**
|
|
1312
|
+
* @public
|
|
1204
1313
|
* <p>A list of intents that might satisfy the user's utterance. The
|
|
1205
1314
|
* intents are ordered by the confidence score.</p>
|
|
1206
1315
|
*/
|
|
@@ -1212,31 +1321,37 @@ export interface Interpretation {
|
|
|
1212
1321
|
*/
|
|
1213
1322
|
export interface SessionState {
|
|
1214
1323
|
/**
|
|
1324
|
+
* @public
|
|
1215
1325
|
* <p>The next step that Amazon Lex V2 should take in the conversation with a
|
|
1216
1326
|
* user.</p>
|
|
1217
1327
|
*/
|
|
1218
1328
|
dialogAction?: DialogAction;
|
|
1219
1329
|
/**
|
|
1330
|
+
* @public
|
|
1220
1331
|
* <p>The active intent that Amazon Lex V2 is processing.</p>
|
|
1221
1332
|
*/
|
|
1222
1333
|
intent?: Intent;
|
|
1223
1334
|
/**
|
|
1335
|
+
* @public
|
|
1224
1336
|
* <p>One or more contexts that indicate to Amazon Lex V2 the context of a
|
|
1225
1337
|
* request. When a context is active, Amazon Lex V2 considers intents with the
|
|
1226
1338
|
* matching context as a trigger as the next intent in a session.</p>
|
|
1227
1339
|
*/
|
|
1228
1340
|
activeContexts?: ActiveContext[];
|
|
1229
1341
|
/**
|
|
1342
|
+
* @public
|
|
1230
1343
|
* <p>Map of key/value pairs representing session-specific context
|
|
1231
1344
|
* information. It contains application information passed between Amazon Lex V2
|
|
1232
1345
|
* and a client application.</p>
|
|
1233
1346
|
*/
|
|
1234
1347
|
sessionAttributes?: Record<string, string>;
|
|
1235
1348
|
/**
|
|
1349
|
+
* @public
|
|
1236
1350
|
* <p>A unique identifier for a specific request.</p>
|
|
1237
1351
|
*/
|
|
1238
1352
|
originatingRequestId?: string;
|
|
1239
1353
|
/**
|
|
1354
|
+
* @public
|
|
1240
1355
|
* <p>Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2
|
|
1241
1356
|
* uses the hints to help determine the correct value of a slot.</p>
|
|
1242
1357
|
*/
|
|
@@ -1250,6 +1365,7 @@ export interface SessionState {
|
|
|
1250
1365
|
*/
|
|
1251
1366
|
export interface ConfigurationEvent {
|
|
1252
1367
|
/**
|
|
1368
|
+
* @public
|
|
1253
1369
|
* <p>Request-specific information passed between the client application
|
|
1254
1370
|
* and Amazon Lex V2.</p>
|
|
1255
1371
|
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
@@ -1258,6 +1374,7 @@ export interface ConfigurationEvent {
|
|
|
1258
1374
|
*/
|
|
1259
1375
|
requestAttributes?: Record<string, string>;
|
|
1260
1376
|
/**
|
|
1377
|
+
* @public
|
|
1261
1378
|
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
1262
1379
|
* speech based on the <code>responseContentType</code> value.</p>
|
|
1263
1380
|
* <ul>
|
|
@@ -1301,10 +1418,12 @@ export interface ConfigurationEvent {
|
|
|
1301
1418
|
*/
|
|
1302
1419
|
responseContentType: string | undefined;
|
|
1303
1420
|
/**
|
|
1421
|
+
* @public
|
|
1304
1422
|
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1305
1423
|
*/
|
|
1306
1424
|
sessionState?: SessionState;
|
|
1307
1425
|
/**
|
|
1426
|
+
* @public
|
|
1308
1427
|
* <p>A list of messages to send to the user.</p>
|
|
1309
1428
|
* <p>If you set the <code>welcomeMessage</code> field, you must also set
|
|
1310
1429
|
* the <a href="https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html">
|
|
@@ -1315,6 +1434,7 @@ export interface ConfigurationEvent {
|
|
|
1315
1434
|
*/
|
|
1316
1435
|
welcomeMessages?: Message[];
|
|
1317
1436
|
/**
|
|
1437
|
+
* @public
|
|
1318
1438
|
* <p>Determines whether Amazon Lex V2 should send audio responses to the client
|
|
1319
1439
|
* application.
|
|
1320
1440
|
* </p>
|
|
@@ -1326,11 +1446,13 @@ export interface ConfigurationEvent {
|
|
|
1326
1446
|
*/
|
|
1327
1447
|
disablePlayback?: boolean;
|
|
1328
1448
|
/**
|
|
1449
|
+
* @public
|
|
1329
1450
|
* <p>A unique identifier that your application assigns to the event. You
|
|
1330
1451
|
* can use this to identify events in logs.</p>
|
|
1331
1452
|
*/
|
|
1332
1453
|
eventId?: string;
|
|
1333
1454
|
/**
|
|
1455
|
+
* @public
|
|
1334
1456
|
* <p>A timestamp set by the client of the date and time that the event
|
|
1335
1457
|
* was sent to Amazon Lex V2.</p>
|
|
1336
1458
|
*/
|
|
@@ -1341,28 +1463,34 @@ export interface ConfigurationEvent {
|
|
|
1341
1463
|
*/
|
|
1342
1464
|
export interface PutSessionRequest {
|
|
1343
1465
|
/**
|
|
1466
|
+
* @public
|
|
1344
1467
|
* <p>The identifier of the bot that receives the session data.</p>
|
|
1345
1468
|
*/
|
|
1346
1469
|
botId: string | undefined;
|
|
1347
1470
|
/**
|
|
1471
|
+
* @public
|
|
1348
1472
|
* <p>The alias identifier of the bot that receives the session
|
|
1349
1473
|
* data.</p>
|
|
1350
1474
|
*/
|
|
1351
1475
|
botAliasId: string | undefined;
|
|
1352
1476
|
/**
|
|
1477
|
+
* @public
|
|
1353
1478
|
* <p>The locale where the session is in use.</p>
|
|
1354
1479
|
*/
|
|
1355
1480
|
localeId: string | undefined;
|
|
1356
1481
|
/**
|
|
1482
|
+
* @public
|
|
1357
1483
|
* <p>The identifier of the session that receives the session data.</p>
|
|
1358
1484
|
*/
|
|
1359
1485
|
sessionId: string | undefined;
|
|
1360
1486
|
/**
|
|
1487
|
+
* @public
|
|
1361
1488
|
* <p>A list of messages to send to the user. Messages are sent in the
|
|
1362
1489
|
* order that they are defined in the list.</p>
|
|
1363
1490
|
*/
|
|
1364
1491
|
messages?: Message[];
|
|
1365
1492
|
/**
|
|
1493
|
+
* @public
|
|
1366
1494
|
* <p>Sets the state of the session with the user. You can use this to set
|
|
1367
1495
|
* the current intent, attributes, context, and dialog action. Use the
|
|
1368
1496
|
* dialog action to determine the next step that Amazon Lex V2 should use in the
|
|
@@ -1370,6 +1498,7 @@ export interface PutSessionRequest {
|
|
|
1370
1498
|
*/
|
|
1371
1499
|
sessionState: SessionState | undefined;
|
|
1372
1500
|
/**
|
|
1501
|
+
* @public
|
|
1373
1502
|
* <p>Request-specific information passed between Amazon Lex V2 and the client
|
|
1374
1503
|
* application.</p>
|
|
1375
1504
|
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
@@ -1378,6 +1507,7 @@ export interface PutSessionRequest {
|
|
|
1378
1507
|
*/
|
|
1379
1508
|
requestAttributes?: Record<string, string>;
|
|
1380
1509
|
/**
|
|
1510
|
+
* @public
|
|
1381
1511
|
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
1382
1512
|
* speech depending on the value of this parameter. </p>
|
|
1383
1513
|
* <ul>
|
|
@@ -1394,32 +1524,39 @@ export interface PutSessionRequest {
|
|
|
1394
1524
|
*/
|
|
1395
1525
|
export interface RecognizeTextRequest {
|
|
1396
1526
|
/**
|
|
1527
|
+
* @public
|
|
1397
1528
|
* <p>The identifier of the bot that processes the request.</p>
|
|
1398
1529
|
*/
|
|
1399
1530
|
botId: string | undefined;
|
|
1400
1531
|
/**
|
|
1532
|
+
* @public
|
|
1401
1533
|
* <p>The alias identifier in use for the bot that processes the
|
|
1402
1534
|
* request.</p>
|
|
1403
1535
|
*/
|
|
1404
1536
|
botAliasId: string | undefined;
|
|
1405
1537
|
/**
|
|
1538
|
+
* @public
|
|
1406
1539
|
* <p>The locale where the session is in use.</p>
|
|
1407
1540
|
*/
|
|
1408
1541
|
localeId: string | undefined;
|
|
1409
1542
|
/**
|
|
1543
|
+
* @public
|
|
1410
1544
|
* <p>The identifier of the user session that is having the
|
|
1411
1545
|
* conversation.</p>
|
|
1412
1546
|
*/
|
|
1413
1547
|
sessionId: string | undefined;
|
|
1414
1548
|
/**
|
|
1549
|
+
* @public
|
|
1415
1550
|
* <p>The text that the user entered. Amazon Lex V2 interprets this text.</p>
|
|
1416
1551
|
*/
|
|
1417
1552
|
text: string | undefined;
|
|
1418
1553
|
/**
|
|
1554
|
+
* @public
|
|
1419
1555
|
* <p>The current state of the dialog between the user and the bot.</p>
|
|
1420
1556
|
*/
|
|
1421
1557
|
sessionState?: SessionState;
|
|
1422
1558
|
/**
|
|
1559
|
+
* @public
|
|
1423
1560
|
* <p>Request-specific information passed between the client application
|
|
1424
1561
|
* and Amazon Lex V2 </p>
|
|
1425
1562
|
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
@@ -1439,6 +1576,7 @@ export type StartConversationRequestEventStream = StartConversationRequestEventS
|
|
|
1439
1576
|
*/
|
|
1440
1577
|
export declare namespace StartConversationRequestEventStream {
|
|
1441
1578
|
/**
|
|
1579
|
+
* @public
|
|
1442
1580
|
* <p>Configuration information sent from your client application to
|
|
1443
1581
|
* Amazon Lex V2</p>
|
|
1444
1582
|
*/
|
|
@@ -1452,6 +1590,7 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1452
1590
|
$unknown?: never;
|
|
1453
1591
|
}
|
|
1454
1592
|
/**
|
|
1593
|
+
* @public
|
|
1455
1594
|
* <p>Speech audio sent from your client application to Amazon Lex V2. Audio
|
|
1456
1595
|
* starts accumulating when Amazon Lex V2 identifies a voice and continues until a
|
|
1457
1596
|
* natural pause in the speech is found before processing.</p>
|
|
@@ -1466,6 +1605,7 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1466
1605
|
$unknown?: never;
|
|
1467
1606
|
}
|
|
1468
1607
|
/**
|
|
1608
|
+
* @public
|
|
1469
1609
|
* <p>DTMF information sent to Amazon Lex V2 by your application. Amazon Lex V2
|
|
1470
1610
|
* accumulates the DMTF information from when the user sends the first
|
|
1471
1611
|
* character and ends</p>
|
|
@@ -1494,6 +1634,7 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1494
1634
|
$unknown?: never;
|
|
1495
1635
|
}
|
|
1496
1636
|
/**
|
|
1637
|
+
* @public
|
|
1497
1638
|
* <p>Text sent from your client application to Amazon Lex V2. Each
|
|
1498
1639
|
* <code>TextInputEvent</code> is processed individually.</p>
|
|
1499
1640
|
*/
|
|
@@ -1507,6 +1648,7 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1507
1648
|
$unknown?: never;
|
|
1508
1649
|
}
|
|
1509
1650
|
/**
|
|
1651
|
+
* @public
|
|
1510
1652
|
* <p>Event sent from the client application to Amazon Lex V2 to indicate that it
|
|
1511
1653
|
* has finished playing audio and that Amazon Lex V2 should start listening for
|
|
1512
1654
|
* user input.</p>
|
|
@@ -1521,6 +1663,7 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1521
1663
|
$unknown?: never;
|
|
1522
1664
|
}
|
|
1523
1665
|
/**
|
|
1666
|
+
* @public
|
|
1524
1667
|
* <p>Event sent from the client application to indicate to Amazon Lex V2 that the
|
|
1525
1668
|
* conversation is over.</p>
|
|
1526
1669
|
*/
|
|
@@ -1533,6 +1676,9 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1533
1676
|
DisconnectionEvent: DisconnectionEvent;
|
|
1534
1677
|
$unknown?: never;
|
|
1535
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* @public
|
|
1681
|
+
*/
|
|
1536
1682
|
interface $UnknownMember {
|
|
1537
1683
|
ConfigurationEvent?: never;
|
|
1538
1684
|
AudioInputEvent?: never;
|
|
@@ -1558,24 +1704,29 @@ export declare namespace StartConversationRequestEventStream {
|
|
|
1558
1704
|
*/
|
|
1559
1705
|
export interface StartConversationRequest {
|
|
1560
1706
|
/**
|
|
1707
|
+
* @public
|
|
1561
1708
|
* <p>The identifier of the bot to process the request.</p>
|
|
1562
1709
|
*/
|
|
1563
1710
|
botId: string | undefined;
|
|
1564
1711
|
/**
|
|
1712
|
+
* @public
|
|
1565
1713
|
* <p>The alias identifier in use for the bot that processes the
|
|
1566
1714
|
* request.</p>
|
|
1567
1715
|
*/
|
|
1568
1716
|
botAliasId: string | undefined;
|
|
1569
1717
|
/**
|
|
1718
|
+
* @public
|
|
1570
1719
|
* <p>The locale where the session is in use.</p>
|
|
1571
1720
|
*/
|
|
1572
1721
|
localeId: string | undefined;
|
|
1573
1722
|
/**
|
|
1723
|
+
* @public
|
|
1574
1724
|
* <p>The identifier of the user session that is having the
|
|
1575
1725
|
* conversation.</p>
|
|
1576
1726
|
*/
|
|
1577
1727
|
sessionId: string | undefined;
|
|
1578
1728
|
/**
|
|
1729
|
+
* @public
|
|
1579
1730
|
* <p>The conversation type that you are using the Amazon Lex V2. If the
|
|
1580
1731
|
* conversation mode is <code>AUDIO</code> you can send both audio and
|
|
1581
1732
|
* DTMF information. If the mode is <code>TEXT</code> you can only send
|
|
@@ -1583,6 +1734,7 @@ export interface StartConversationRequest {
|
|
|
1583
1734
|
*/
|
|
1584
1735
|
conversationMode?: ConversationMode | string;
|
|
1585
1736
|
/**
|
|
1737
|
+
* @public
|
|
1586
1738
|
* <p>Represents the stream of events to Amazon Lex V2 from your application. The
|
|
1587
1739
|
* events are encoded as HTTP/2 data frames.</p>
|
|
1588
1740
|
*/
|
|
@@ -1593,10 +1745,12 @@ export interface StartConversationRequest {
|
|
|
1593
1745
|
*/
|
|
1594
1746
|
export interface GetSessionResponse {
|
|
1595
1747
|
/**
|
|
1748
|
+
* @public
|
|
1596
1749
|
* <p>The identifier of the returned session.</p>
|
|
1597
1750
|
*/
|
|
1598
1751
|
sessionId?: string;
|
|
1599
1752
|
/**
|
|
1753
|
+
* @public
|
|
1600
1754
|
* <p>A list of messages that were last sent to the user. The messages are
|
|
1601
1755
|
* ordered based on the order that your returned the messages from your
|
|
1602
1756
|
* Lambda function or the order that messages are defined in the bot.
|
|
@@ -1604,6 +1758,7 @@ export interface GetSessionResponse {
|
|
|
1604
1758
|
*/
|
|
1605
1759
|
messages?: Message[];
|
|
1606
1760
|
/**
|
|
1761
|
+
* @public
|
|
1607
1762
|
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1608
1763
|
* utterance. </p>
|
|
1609
1764
|
* <p>Each interpretation includes the intent, a score that indicates how
|
|
@@ -1613,6 +1768,7 @@ export interface GetSessionResponse {
|
|
|
1613
1768
|
*/
|
|
1614
1769
|
interpretations?: Interpretation[];
|
|
1615
1770
|
/**
|
|
1771
|
+
* @public
|
|
1616
1772
|
* <p>Represents the current state of the dialog between the user and the
|
|
1617
1773
|
* bot.</p>
|
|
1618
1774
|
* <p>You can use this to determine the progress of the conversation and
|
|
@@ -1627,11 +1783,13 @@ export interface GetSessionResponse {
|
|
|
1627
1783
|
*/
|
|
1628
1784
|
export interface IntentResultEvent {
|
|
1629
1785
|
/**
|
|
1786
|
+
* @public
|
|
1630
1787
|
* <p>Indicates whether the input to the operation was text or
|
|
1631
1788
|
* speech.</p>
|
|
1632
1789
|
*/
|
|
1633
1790
|
inputMode?: InputMode | string;
|
|
1634
1791
|
/**
|
|
1792
|
+
* @public
|
|
1635
1793
|
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1636
1794
|
* utterance.</p>
|
|
1637
1795
|
* <p>Each interpretation includes the intent, a score that indicates how
|
|
@@ -1641,18 +1799,22 @@ export interface IntentResultEvent {
|
|
|
1641
1799
|
*/
|
|
1642
1800
|
interpretations?: Interpretation[];
|
|
1643
1801
|
/**
|
|
1802
|
+
* @public
|
|
1644
1803
|
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1645
1804
|
*/
|
|
1646
1805
|
sessionState?: SessionState;
|
|
1647
1806
|
/**
|
|
1807
|
+
* @public
|
|
1648
1808
|
* <p>The attributes sent in the request.</p>
|
|
1649
1809
|
*/
|
|
1650
1810
|
requestAttributes?: Record<string, string>;
|
|
1651
1811
|
/**
|
|
1812
|
+
* @public
|
|
1652
1813
|
* <p>The identifier of the session in use.</p>
|
|
1653
1814
|
*/
|
|
1654
1815
|
sessionId?: string;
|
|
1655
1816
|
/**
|
|
1817
|
+
* @public
|
|
1656
1818
|
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1657
1819
|
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1658
1820
|
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
@@ -1660,6 +1822,7 @@ export interface IntentResultEvent {
|
|
|
1660
1822
|
*/
|
|
1661
1823
|
eventId?: string;
|
|
1662
1824
|
/**
|
|
1825
|
+
* @public
|
|
1663
1826
|
* <p>The bot member that is processing the intent.</p>
|
|
1664
1827
|
*/
|
|
1665
1828
|
recognizedBotMember?: RecognizedBotMember;
|
|
@@ -1669,12 +1832,14 @@ export interface IntentResultEvent {
|
|
|
1669
1832
|
*/
|
|
1670
1833
|
export interface RecognizeTextResponse {
|
|
1671
1834
|
/**
|
|
1835
|
+
* @public
|
|
1672
1836
|
* <p>A list of messages last sent to the user. The messages are ordered
|
|
1673
1837
|
* based on the order that you returned the messages from your Lambda
|
|
1674
1838
|
* function or the order that the messages are defined in the bot.</p>
|
|
1675
1839
|
*/
|
|
1676
1840
|
messages?: Message[];
|
|
1677
1841
|
/**
|
|
1842
|
+
* @public
|
|
1678
1843
|
* <p>Represents the current state of the dialog between the user and the
|
|
1679
1844
|
* bot. </p>
|
|
1680
1845
|
* <p>Use this to determine the progress of the conversation and what the
|
|
@@ -1682,6 +1847,7 @@ export interface RecognizeTextResponse {
|
|
|
1682
1847
|
*/
|
|
1683
1848
|
sessionState?: SessionState;
|
|
1684
1849
|
/**
|
|
1850
|
+
* @public
|
|
1685
1851
|
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1686
1852
|
* utterance. </p>
|
|
1687
1853
|
* <p>Each interpretation includes the intent, a score that indicates now
|
|
@@ -1691,14 +1857,17 @@ export interface RecognizeTextResponse {
|
|
|
1691
1857
|
*/
|
|
1692
1858
|
interpretations?: Interpretation[];
|
|
1693
1859
|
/**
|
|
1860
|
+
* @public
|
|
1694
1861
|
* <p>The attributes sent in the request.</p>
|
|
1695
1862
|
*/
|
|
1696
1863
|
requestAttributes?: Record<string, string>;
|
|
1697
1864
|
/**
|
|
1865
|
+
* @public
|
|
1698
1866
|
* <p>The identifier of the session in use.</p>
|
|
1699
1867
|
*/
|
|
1700
1868
|
sessionId?: string;
|
|
1701
1869
|
/**
|
|
1870
|
+
* @public
|
|
1702
1871
|
* <p>The bot member that recognized the text.</p>
|
|
1703
1872
|
*/
|
|
1704
1873
|
recognizedBotMember?: RecognizedBotMember;
|
|
@@ -1714,6 +1883,7 @@ export type StartConversationResponseEventStream = StartConversationResponseEven
|
|
|
1714
1883
|
*/
|
|
1715
1884
|
export declare namespace StartConversationResponseEventStream {
|
|
1716
1885
|
/**
|
|
1886
|
+
* @public
|
|
1717
1887
|
* <p>Event sent from Amazon Lex V2 to indicate to the client application should
|
|
1718
1888
|
* stop playback of audio. For example, if the client is playing a prompt
|
|
1719
1889
|
* that asks for the user's telephone number, the user might start to say
|
|
@@ -1739,6 +1909,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1739
1909
|
$unknown?: never;
|
|
1740
1910
|
}
|
|
1741
1911
|
/**
|
|
1912
|
+
* @public
|
|
1742
1913
|
* <p>Event sent from Amazon Lex V2 to your client application that contains a
|
|
1743
1914
|
* transcript of voice audio. </p>
|
|
1744
1915
|
*/
|
|
@@ -1760,6 +1931,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1760
1931
|
$unknown?: never;
|
|
1761
1932
|
}
|
|
1762
1933
|
/**
|
|
1934
|
+
* @public
|
|
1763
1935
|
* <p>Event sent from Amazon Lex V2 to the client application containing the
|
|
1764
1936
|
* current state of the conversation between the user and Amazon Lex V2.</p>
|
|
1765
1937
|
*/
|
|
@@ -1781,6 +1953,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1781
1953
|
$unknown?: never;
|
|
1782
1954
|
}
|
|
1783
1955
|
/**
|
|
1956
|
+
* @public
|
|
1784
1957
|
* <p>The event sent from Amazon Lex V2 to your application with text to present
|
|
1785
1958
|
* to the user.</p>
|
|
1786
1959
|
*/
|
|
@@ -1802,6 +1975,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1802
1975
|
$unknown?: never;
|
|
1803
1976
|
}
|
|
1804
1977
|
/**
|
|
1978
|
+
* @public
|
|
1805
1979
|
* <p>An event sent from Amazon Lex V2 to your client application containing audio
|
|
1806
1980
|
* to play to the user. </p>
|
|
1807
1981
|
*/
|
|
@@ -1823,6 +1997,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1823
1997
|
$unknown?: never;
|
|
1824
1998
|
}
|
|
1825
1999
|
/**
|
|
2000
|
+
* @public
|
|
1826
2001
|
* <p>Event that Amazon Lex V2 sends to indicate that the stream is still open
|
|
1827
2002
|
* between the client application and Amazon Lex V2 </p>
|
|
1828
2003
|
*/
|
|
@@ -1844,6 +2019,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1844
2019
|
$unknown?: never;
|
|
1845
2020
|
}
|
|
1846
2021
|
/**
|
|
2022
|
+
* @public
|
|
1847
2023
|
* <p>Exception thrown when the credentials passed with the request are
|
|
1848
2024
|
* invalid or expired. Also thrown when the credentials in the request do
|
|
1849
2025
|
* not have permission to access the <code>StartConversation</code>
|
|
@@ -1867,6 +2043,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1867
2043
|
$unknown?: never;
|
|
1868
2044
|
}
|
|
1869
2045
|
/**
|
|
2046
|
+
* @public
|
|
1870
2047
|
* <p>Exception thrown if one of the input parameters points to a resource
|
|
1871
2048
|
* that does not exist. For example, if the bot ID specified does not
|
|
1872
2049
|
* exist.</p>
|
|
@@ -1889,6 +2066,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1889
2066
|
$unknown?: never;
|
|
1890
2067
|
}
|
|
1891
2068
|
/**
|
|
2069
|
+
* @public
|
|
1892
2070
|
* <p>Exception thrown when one or more parameters could not be validated.
|
|
1893
2071
|
* The <code>message</code> contains the name of the field that isn't
|
|
1894
2072
|
* valid.</p>
|
|
@@ -1911,6 +2089,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1911
2089
|
$unknown?: never;
|
|
1912
2090
|
}
|
|
1913
2091
|
/**
|
|
2092
|
+
* @public
|
|
1914
2093
|
* <p>Exception thrown when your application exceeds the maximum number of
|
|
1915
2094
|
* concurrent requests. </p>
|
|
1916
2095
|
*/
|
|
@@ -1932,6 +2111,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1932
2111
|
$unknown?: never;
|
|
1933
2112
|
}
|
|
1934
2113
|
/**
|
|
2114
|
+
* @public
|
|
1935
2115
|
* <p>An error occurred with Amazon Lex V2.</p>
|
|
1936
2116
|
*/
|
|
1937
2117
|
interface InternalServerExceptionMember {
|
|
@@ -1952,6 +2132,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1952
2132
|
$unknown?: never;
|
|
1953
2133
|
}
|
|
1954
2134
|
/**
|
|
2135
|
+
* @public
|
|
1955
2136
|
* <p>Exception thrown when two clients are using the same AWS account,
|
|
1956
2137
|
* Amazon Lex V2 bot, and session ID.</p>
|
|
1957
2138
|
*/
|
|
@@ -1973,6 +2154,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1973
2154
|
$unknown?: never;
|
|
1974
2155
|
}
|
|
1975
2156
|
/**
|
|
2157
|
+
* @public
|
|
1976
2158
|
* <p></p>
|
|
1977
2159
|
*/
|
|
1978
2160
|
interface DependencyFailedExceptionMember {
|
|
@@ -1993,6 +2175,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
1993
2175
|
$unknown?: never;
|
|
1994
2176
|
}
|
|
1995
2177
|
/**
|
|
2178
|
+
* @public
|
|
1996
2179
|
* <p></p>
|
|
1997
2180
|
*/
|
|
1998
2181
|
interface BadGatewayExceptionMember {
|
|
@@ -2012,6 +2195,9 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
2012
2195
|
BadGatewayException: BadGatewayException;
|
|
2013
2196
|
$unknown?: never;
|
|
2014
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* @public
|
|
2200
|
+
*/
|
|
2015
2201
|
interface $UnknownMember {
|
|
2016
2202
|
PlaybackInterruptionEvent?: never;
|
|
2017
2203
|
TranscriptEvent?: never;
|
|
@@ -2053,6 +2239,7 @@ export declare namespace StartConversationResponseEventStream {
|
|
|
2053
2239
|
*/
|
|
2054
2240
|
export interface StartConversationResponse {
|
|
2055
2241
|
/**
|
|
2242
|
+
* @public
|
|
2056
2243
|
* <p>Represents the stream of events from Amazon Lex V2 to your application. The
|
|
2057
2244
|
* events are encoded as HTTP/2 data frames.</p>
|
|
2058
2245
|
*/
|
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.382.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,17 +21,17 @@
|
|
|
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/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.382.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.382.0",
|
|
26
26
|
"@aws-sdk/eventstream-handler-node": "3.378.0",
|
|
27
27
|
"@aws-sdk/middleware-eventstream": "3.379.1",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
31
31
|
"@aws-sdk/middleware-signing": "3.379.1",
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.382.0",
|
|
33
33
|
"@aws-sdk/types": "3.378.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.382.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
37
37
|
"@smithy/config-resolver": "^2.0.1",
|