@aws-sdk/client-lex-runtime-service 3.533.0 → 3.540.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/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +0 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-types/LexRuntimeService.d.ts +1 -1
- package/dist-types/LexRuntimeServiceClient.d.ts +1 -1
- package/dist-types/commands/DeleteSessionCommand.d.ts +2 -1
- package/dist-types/commands/GetSessionCommand.d.ts +2 -1
- package/dist-types/commands/PostContentCommand.d.ts +2 -1
- package/dist-types/commands/PostTextCommand.d.ts +2 -1
- package/dist-types/commands/PutSessionCommand.d.ts +2 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +140 -140
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PostContentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PostTextCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/package.json +41 -41
|
@@ -2,59 +2,59 @@ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJ
|
|
|
2
2
|
import { StreamingBlobTypes } from "@smithy/types";
|
|
3
3
|
import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
|
|
4
4
|
/**
|
|
5
|
-
* @public
|
|
6
5
|
* <p>The length of time or number of turns that a context remains
|
|
7
6
|
* active.</p>
|
|
7
|
+
* @public
|
|
8
8
|
*/
|
|
9
9
|
export interface ActiveContextTimeToLive {
|
|
10
10
|
/**
|
|
11
|
-
* @public
|
|
12
11
|
* <p>The number of seconds that the context should be active after it is
|
|
13
12
|
* first sent in a <code>PostContent</code> or <code>PostText</code>
|
|
14
13
|
* response. You can set the value between 5 and 86,400 seconds (24
|
|
15
14
|
* hours).</p>
|
|
15
|
+
* @public
|
|
16
16
|
*/
|
|
17
17
|
timeToLiveInSeconds?: number;
|
|
18
18
|
/**
|
|
19
|
-
* @public
|
|
20
19
|
* <p>The number of conversation turns that the context should be active. A
|
|
21
20
|
* conversation turn is one <code>PostContent</code> or <code>PostText</code>
|
|
22
21
|
* request and the corresponding response from Amazon Lex.</p>
|
|
22
|
+
* @public
|
|
23
23
|
*/
|
|
24
24
|
turnsToLive?: number;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* @public
|
|
28
27
|
* <p>A context is a variable that contains information about the current
|
|
29
28
|
* state of the conversation between a user and Amazon Lex. Context can be set
|
|
30
29
|
* automatically by Amazon Lex when an intent is fulfilled, or it can be set at
|
|
31
30
|
* runtime using the <code>PutContent</code>, <code>PutText</code>, or
|
|
32
31
|
* <code>PutSession</code> operation.</p>
|
|
32
|
+
* @public
|
|
33
33
|
*/
|
|
34
34
|
export interface ActiveContext {
|
|
35
35
|
/**
|
|
36
|
-
* @public
|
|
37
36
|
* <p>The name of the context.</p>
|
|
37
|
+
* @public
|
|
38
38
|
*/
|
|
39
39
|
name: string | undefined;
|
|
40
40
|
/**
|
|
41
|
-
* @public
|
|
42
41
|
* <p>The length of time or number of turns that a context remains
|
|
43
42
|
* active.</p>
|
|
43
|
+
* @public
|
|
44
44
|
*/
|
|
45
45
|
timeToLive: ActiveContextTimeToLive | undefined;
|
|
46
46
|
/**
|
|
47
|
-
* @public
|
|
48
47
|
* <p>State variables for the current context. You can use these values as
|
|
49
48
|
* default values for slots in subsequent events.</p>
|
|
49
|
+
* @public
|
|
50
50
|
*/
|
|
51
51
|
parameters: Record<string, string> | undefined;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* @public
|
|
55
54
|
* <p> Request validation failed, there is no usable message in the context,
|
|
56
55
|
* or the bot build failed, is still in progress, or contains unbuilt
|
|
57
56
|
* changes. </p>
|
|
57
|
+
* @public
|
|
58
58
|
*/
|
|
59
59
|
export declare class BadRequestException extends __BaseException {
|
|
60
60
|
readonly name: "BadRequestException";
|
|
@@ -65,9 +65,9 @@ export declare class BadRequestException extends __BaseException {
|
|
|
65
65
|
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* @public
|
|
69
68
|
* <p> Two clients are using the same AWS account, Amazon Lex bot, and user
|
|
70
69
|
* ID. </p>
|
|
70
|
+
* @public
|
|
71
71
|
*/
|
|
72
72
|
export declare class ConflictException extends __BaseException {
|
|
73
73
|
readonly name: "ConflictException";
|
|
@@ -82,18 +82,18 @@ export declare class ConflictException extends __BaseException {
|
|
|
82
82
|
*/
|
|
83
83
|
export interface DeleteSessionRequest {
|
|
84
84
|
/**
|
|
85
|
-
* @public
|
|
86
85
|
* <p>The name of the bot that contains the session data.</p>
|
|
86
|
+
* @public
|
|
87
87
|
*/
|
|
88
88
|
botName: string | undefined;
|
|
89
89
|
/**
|
|
90
|
-
* @public
|
|
91
90
|
* <p>The alias in use for the bot that contains the session data.</p>
|
|
91
|
+
* @public
|
|
92
92
|
*/
|
|
93
93
|
botAlias: string | undefined;
|
|
94
94
|
/**
|
|
95
|
-
* @public
|
|
96
95
|
* <p>The identifier of the user associated with the session data.</p>
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
98
|
userId: string | undefined;
|
|
99
99
|
}
|
|
@@ -102,29 +102,29 @@ export interface DeleteSessionRequest {
|
|
|
102
102
|
*/
|
|
103
103
|
export interface DeleteSessionResponse {
|
|
104
104
|
/**
|
|
105
|
-
* @public
|
|
106
105
|
* <p>The name of the bot associated with the session data.</p>
|
|
106
|
+
* @public
|
|
107
107
|
*/
|
|
108
108
|
botName?: string;
|
|
109
109
|
/**
|
|
110
|
-
* @public
|
|
111
110
|
* <p>The alias in use for the bot associated with the session data.</p>
|
|
111
|
+
* @public
|
|
112
112
|
*/
|
|
113
113
|
botAlias?: string;
|
|
114
114
|
/**
|
|
115
|
-
* @public
|
|
116
115
|
* <p>The ID of the client application user.</p>
|
|
116
|
+
* @public
|
|
117
117
|
*/
|
|
118
118
|
userId?: string;
|
|
119
119
|
/**
|
|
120
|
-
* @public
|
|
121
120
|
* <p>The unique identifier for the session.</p>
|
|
121
|
+
* @public
|
|
122
122
|
*/
|
|
123
123
|
sessionId?: string;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* @public
|
|
127
126
|
* <p>Internal service error. Retry the call.</p>
|
|
127
|
+
* @public
|
|
128
128
|
*/
|
|
129
129
|
export declare class InternalFailureException extends __BaseException {
|
|
130
130
|
readonly name: "InternalFailureException";
|
|
@@ -135,8 +135,8 @@ export declare class InternalFailureException extends __BaseException {
|
|
|
135
135
|
constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* @public
|
|
139
138
|
* <p>Exceeded a limit.</p>
|
|
139
|
+
* @public
|
|
140
140
|
*/
|
|
141
141
|
export declare class LimitExceededException extends __BaseException {
|
|
142
142
|
readonly name: "LimitExceededException";
|
|
@@ -148,9 +148,9 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
148
148
|
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* @public
|
|
152
151
|
* <p>The resource (such as the Amazon Lex bot or an alias) that is referred
|
|
153
152
|
* to is not found.</p>
|
|
153
|
+
* @public
|
|
154
154
|
*/
|
|
155
155
|
export declare class NotFoundException extends __BaseException {
|
|
156
156
|
readonly name: "NotFoundException";
|
|
@@ -165,28 +165,28 @@ export declare class NotFoundException extends __BaseException {
|
|
|
165
165
|
*/
|
|
166
166
|
export interface GetSessionRequest {
|
|
167
167
|
/**
|
|
168
|
-
* @public
|
|
169
168
|
* <p>The name of the bot that contains the session data.</p>
|
|
169
|
+
* @public
|
|
170
170
|
*/
|
|
171
171
|
botName: string | undefined;
|
|
172
172
|
/**
|
|
173
|
-
* @public
|
|
174
173
|
* <p>The alias in use for the bot that contains the session data.</p>
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
botAlias: string | undefined;
|
|
177
177
|
/**
|
|
178
|
-
* @public
|
|
179
178
|
* <p>The ID of the client application user. Amazon Lex uses this to identify a
|
|
180
179
|
* user's conversation with your bot. </p>
|
|
180
|
+
* @public
|
|
181
181
|
*/
|
|
182
182
|
userId: string | undefined;
|
|
183
183
|
/**
|
|
184
|
-
* @public
|
|
185
184
|
* <p>A string used to filter the intents returned in the
|
|
186
185
|
* <code>recentIntentSummaryView</code> structure. </p>
|
|
187
186
|
* <p>When you specify a filter, only intents with their
|
|
188
187
|
* <code>checkpointLabel</code> field set to that string are
|
|
189
188
|
* returned.</p>
|
|
189
|
+
* @public
|
|
190
190
|
*/
|
|
191
191
|
checkpointLabelFilter?: string;
|
|
192
192
|
}
|
|
@@ -233,16 +233,15 @@ export declare const DialogActionType: {
|
|
|
233
233
|
*/
|
|
234
234
|
export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
|
|
235
235
|
/**
|
|
236
|
-
* @public
|
|
237
236
|
* <p>Describes the next action that the bot should take in its interaction
|
|
238
237
|
* with the user and provides information about the context in which the
|
|
239
238
|
* action takes place. Use the <code>DialogAction</code> data type to set the
|
|
240
239
|
* interaction to a specific state, or to return the interaction to a
|
|
241
240
|
* previous state.</p>
|
|
241
|
+
* @public
|
|
242
242
|
*/
|
|
243
243
|
export interface DialogAction {
|
|
244
244
|
/**
|
|
245
|
-
* @public
|
|
246
245
|
* <p>The next action that the bot should take in its interaction with the
|
|
247
246
|
* user. The possible values are:</p>
|
|
248
247
|
* <ul>
|
|
@@ -274,25 +273,25 @@ export interface DialogAction {
|
|
|
274
273
|
* value from the user.</p>
|
|
275
274
|
* </li>
|
|
276
275
|
* </ul>
|
|
276
|
+
* @public
|
|
277
277
|
*/
|
|
278
278
|
type: DialogActionType | undefined;
|
|
279
279
|
/**
|
|
280
|
-
* @public
|
|
281
280
|
* <p>The name of the intent.</p>
|
|
281
|
+
* @public
|
|
282
282
|
*/
|
|
283
283
|
intentName?: string;
|
|
284
284
|
/**
|
|
285
|
-
* @public
|
|
286
285
|
* <p>Map of the slots that have been gathered and their values. </p>
|
|
286
|
+
* @public
|
|
287
287
|
*/
|
|
288
288
|
slots?: Record<string, string>;
|
|
289
289
|
/**
|
|
290
|
-
* @public
|
|
291
290
|
* <p>The name of the slot that should be elicited from the user.</p>
|
|
291
|
+
* @public
|
|
292
292
|
*/
|
|
293
293
|
slotToElicit?: string;
|
|
294
294
|
/**
|
|
295
|
-
* @public
|
|
296
295
|
* <p>The fulfillment state of the intent. The possible values are:</p>
|
|
297
296
|
* <ul>
|
|
298
297
|
* <li>
|
|
@@ -312,16 +311,16 @@ export interface DialogAction {
|
|
|
312
311
|
* fulfilled by the client application.</p>
|
|
313
312
|
* </li>
|
|
314
313
|
* </ul>
|
|
314
|
+
* @public
|
|
315
315
|
*/
|
|
316
316
|
fulfillmentState?: FulfillmentState;
|
|
317
317
|
/**
|
|
318
|
-
* @public
|
|
319
318
|
* <p>The message that should be shown to the user. If you don't specify a
|
|
320
319
|
* message, Amazon Lex will use the message configured for the intent.</p>
|
|
320
|
+
* @public
|
|
321
321
|
*/
|
|
322
322
|
message?: string;
|
|
323
323
|
/**
|
|
324
|
-
* @public
|
|
325
324
|
* <ul>
|
|
326
325
|
* <li>
|
|
327
326
|
* <p>
|
|
@@ -345,6 +344,7 @@ export interface DialogAction {
|
|
|
345
344
|
* <a href="https://docs.aws.amazon.com/lex/latest/dg/howitworks-manage-prompts.html">Message Groups</a>. </p>
|
|
346
345
|
* </li>
|
|
347
346
|
* </ul>
|
|
347
|
+
* @public
|
|
348
348
|
*/
|
|
349
349
|
messageFormat?: MessageFormatType;
|
|
350
350
|
}
|
|
@@ -362,34 +362,33 @@ export declare const ConfirmationStatus: {
|
|
|
362
362
|
*/
|
|
363
363
|
export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
364
364
|
/**
|
|
365
|
-
* @public
|
|
366
365
|
* <p>Provides information about the state of an intent. You can use this
|
|
367
366
|
* information to get the current state of an intent so that you can process
|
|
368
367
|
* the intent, or so that you can return the intent to its previous
|
|
369
368
|
* state.</p>
|
|
369
|
+
* @public
|
|
370
370
|
*/
|
|
371
371
|
export interface IntentSummary {
|
|
372
372
|
/**
|
|
373
|
-
* @public
|
|
374
373
|
* <p>The name of the intent.</p>
|
|
374
|
+
* @public
|
|
375
375
|
*/
|
|
376
376
|
intentName?: string;
|
|
377
377
|
/**
|
|
378
|
-
* @public
|
|
379
378
|
* <p>A user-defined label that identifies a particular intent. You can use
|
|
380
379
|
* this label to return to a previous intent. </p>
|
|
381
380
|
* <p>Use the <code>checkpointLabelFilter</code> parameter of the
|
|
382
381
|
* <code>GetSessionRequest</code> operation to filter the intents returned
|
|
383
382
|
* by the operation to those with only the specified label.</p>
|
|
383
|
+
* @public
|
|
384
384
|
*/
|
|
385
385
|
checkpointLabel?: string;
|
|
386
386
|
/**
|
|
387
|
-
* @public
|
|
388
387
|
* <p>Map of the slots that have been gathered and their values. </p>
|
|
388
|
+
* @public
|
|
389
389
|
*/
|
|
390
390
|
slots?: Record<string, string>;
|
|
391
391
|
/**
|
|
392
|
-
* @public
|
|
393
392
|
* <p>The status of the intent after the user responds to the confirmation
|
|
394
393
|
* prompt. If the user confirms the intent, Amazon Lex sets this field to
|
|
395
394
|
* <code>Confirmed</code>. If the user denies the intent, Amazon Lex sets this
|
|
@@ -413,10 +412,10 @@ export interface IntentSummary {
|
|
|
413
412
|
* the prompt.</p>
|
|
414
413
|
* </li>
|
|
415
414
|
* </ul>
|
|
415
|
+
* @public
|
|
416
416
|
*/
|
|
417
417
|
confirmationStatus?: ConfirmationStatus;
|
|
418
418
|
/**
|
|
419
|
-
* @public
|
|
420
419
|
* <p>The next action that the bot should take in its interaction with the
|
|
421
420
|
* user. The possible values are:</p>
|
|
422
421
|
* <ul>
|
|
@@ -443,10 +442,10 @@ export interface IntentSummary {
|
|
|
443
442
|
* value from the user.</p>
|
|
444
443
|
* </li>
|
|
445
444
|
* </ul>
|
|
445
|
+
* @public
|
|
446
446
|
*/
|
|
447
447
|
dialogActionType: DialogActionType | undefined;
|
|
448
448
|
/**
|
|
449
|
-
* @public
|
|
450
449
|
* <p>The fulfillment state of the intent. The possible values are:</p>
|
|
451
450
|
* <ul>
|
|
452
451
|
* <li>
|
|
@@ -466,12 +465,13 @@ export interface IntentSummary {
|
|
|
466
465
|
* fulfilled by the client application.</p>
|
|
467
466
|
* </li>
|
|
468
467
|
* </ul>
|
|
468
|
+
* @public
|
|
469
469
|
*/
|
|
470
470
|
fulfillmentState?: FulfillmentState;
|
|
471
471
|
/**
|
|
472
|
-
* @public
|
|
473
472
|
* <p>The next slot to elicit from the user. If there is not slot to elicit,
|
|
474
473
|
* the field is blank.</p>
|
|
474
|
+
* @public
|
|
475
475
|
*/
|
|
476
476
|
slotToElicit?: string;
|
|
477
477
|
}
|
|
@@ -480,7 +480,6 @@ export interface IntentSummary {
|
|
|
480
480
|
*/
|
|
481
481
|
export interface GetSessionResponse {
|
|
482
482
|
/**
|
|
483
|
-
* @public
|
|
484
483
|
* <p>An array of information about the intents used in the session. The
|
|
485
484
|
* array can contain a maximum of three summaries. If more than three intents
|
|
486
485
|
* are used in the session, the <code>recentIntentSummaryView</code>
|
|
@@ -488,40 +487,41 @@ export interface GetSessionResponse {
|
|
|
488
487
|
* <p>If you set the <code>checkpointLabelFilter</code> parameter in the
|
|
489
488
|
* request, the array contains only the intents with the specified
|
|
490
489
|
* label.</p>
|
|
490
|
+
* @public
|
|
491
491
|
*/
|
|
492
492
|
recentIntentSummaryView?: IntentSummary[];
|
|
493
493
|
/**
|
|
494
|
-
* @public
|
|
495
494
|
* <p>Map of key/value pairs representing the session-specific context
|
|
496
495
|
* information. It contains application information passed between Amazon Lex and
|
|
497
496
|
* a client application.</p>
|
|
497
|
+
* @public
|
|
498
498
|
*/
|
|
499
499
|
sessionAttributes?: Record<string, string>;
|
|
500
500
|
/**
|
|
501
|
-
* @public
|
|
502
501
|
* <p>A unique identifier for the session.</p>
|
|
502
|
+
* @public
|
|
503
503
|
*/
|
|
504
504
|
sessionId?: string;
|
|
505
505
|
/**
|
|
506
|
-
* @public
|
|
507
506
|
* <p>Describes the current state of the bot.</p>
|
|
507
|
+
* @public
|
|
508
508
|
*/
|
|
509
509
|
dialogAction?: DialogAction;
|
|
510
510
|
/**
|
|
511
|
-
* @public
|
|
512
511
|
* <p>A list of active contexts for the session. A context can be set when
|
|
513
512
|
* an intent is fulfilled or by calling the <code>PostContent</code>,
|
|
514
513
|
* <code>PostText</code>, or <code>PutSession</code> operation.</p>
|
|
515
514
|
* <p>You can use a context to control the intents that can follow up an
|
|
516
515
|
* intent, or to modify the operation of your application.</p>
|
|
516
|
+
* @public
|
|
517
517
|
*/
|
|
518
518
|
activeContexts?: ActiveContext[];
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
521
|
-
* @public
|
|
522
521
|
* <p>Either the Amazon Lex bot is still building, or one of the dependent
|
|
523
522
|
* services (Amazon Polly, AWS Lambda) failed with an internal service
|
|
524
523
|
* error.</p>
|
|
524
|
+
* @public
|
|
525
525
|
*/
|
|
526
526
|
export declare class BadGatewayException extends __BaseException {
|
|
527
527
|
readonly name: "BadGatewayException";
|
|
@@ -533,7 +533,6 @@ export declare class BadGatewayException extends __BaseException {
|
|
|
533
533
|
constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
536
|
-
* @public
|
|
537
536
|
* <p> One of the dependencies, such as AWS Lambda or Amazon Polly, threw an
|
|
538
537
|
* exception. For example, </p>
|
|
539
538
|
* <ul>
|
|
@@ -550,6 +549,7 @@ export declare class BadGatewayException extends __BaseException {
|
|
|
550
549
|
* dialog action without removing any slot values.</p>
|
|
551
550
|
* </li>
|
|
552
551
|
* </ul>
|
|
552
|
+
* @public
|
|
553
553
|
*/
|
|
554
554
|
export declare class DependencyFailedException extends __BaseException {
|
|
555
555
|
readonly name: "DependencyFailedException";
|
|
@@ -561,8 +561,8 @@ export declare class DependencyFailedException extends __BaseException {
|
|
|
561
561
|
constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
|
|
562
562
|
}
|
|
563
563
|
/**
|
|
564
|
-
* @public
|
|
565
564
|
* <p>This exception is not used.</p>
|
|
565
|
+
* @public
|
|
566
566
|
*/
|
|
567
567
|
export declare class LoopDetectedException extends __BaseException {
|
|
568
568
|
readonly name: "LoopDetectedException";
|
|
@@ -574,8 +574,8 @@ export declare class LoopDetectedException extends __BaseException {
|
|
|
574
574
|
constructor(opts: __ExceptionOptionType<LoopDetectedException, __BaseException>);
|
|
575
575
|
}
|
|
576
576
|
/**
|
|
577
|
-
* @public
|
|
578
577
|
* <p>The accept header in the request does not have a valid value.</p>
|
|
578
|
+
* @public
|
|
579
579
|
*/
|
|
580
580
|
export declare class NotAcceptableException extends __BaseException {
|
|
581
581
|
readonly name: "NotAcceptableException";
|
|
@@ -590,17 +590,16 @@ export declare class NotAcceptableException extends __BaseException {
|
|
|
590
590
|
*/
|
|
591
591
|
export interface PostContentRequest {
|
|
592
592
|
/**
|
|
593
|
-
* @public
|
|
594
593
|
* <p>Name of the Amazon Lex bot.</p>
|
|
594
|
+
* @public
|
|
595
595
|
*/
|
|
596
596
|
botName: string | undefined;
|
|
597
597
|
/**
|
|
598
|
-
* @public
|
|
599
598
|
* <p>Alias of the Amazon Lex bot.</p>
|
|
599
|
+
* @public
|
|
600
600
|
*/
|
|
601
601
|
botAlias: string | undefined;
|
|
602
602
|
/**
|
|
603
|
-
* @public
|
|
604
603
|
* <p>The ID of the client application user. Amazon Lex uses this to identify a
|
|
605
604
|
* user's conversation with your bot. At runtime, each request must contain
|
|
606
605
|
* the <code>userID</code> field.</p>
|
|
@@ -630,10 +629,10 @@ export interface PostContentRequest {
|
|
|
630
629
|
* in the user ID to separate the two conversations.</p>
|
|
631
630
|
* </li>
|
|
632
631
|
* </ul>
|
|
632
|
+
* @public
|
|
633
633
|
*/
|
|
634
634
|
userId: string | undefined;
|
|
635
635
|
/**
|
|
636
|
-
* @public
|
|
637
636
|
* <p>You pass this value as the <code>x-amz-lex-session-attributes</code>
|
|
638
637
|
* HTTP header.</p>
|
|
639
638
|
* <p>Application-specific information passed between Amazon Lex and a client
|
|
@@ -642,10 +641,10 @@ export interface PostContentRequest {
|
|
|
642
641
|
* <code>sessionAttributes</code> and <code>requestAttributes</code>
|
|
643
642
|
* headers is limited to 12 KB.</p>
|
|
644
643
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs">Setting Session Attributes</a>.</p>
|
|
644
|
+
* @public
|
|
645
645
|
*/
|
|
646
646
|
sessionAttributes?: __LazyJsonString | string;
|
|
647
647
|
/**
|
|
648
|
-
* @public
|
|
649
648
|
* <p>You pass this value as the <code>x-amz-lex-request-attributes</code>
|
|
650
649
|
* HTTP header.</p>
|
|
651
650
|
* <p>Request-specific information passed between Amazon Lex and a client
|
|
@@ -657,10 +656,10 @@ export interface PostContentRequest {
|
|
|
657
656
|
* attributes. Don't create any request attributes with the prefix
|
|
658
657
|
* <code>x-amz-lex:</code>.</p>
|
|
659
658
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs">Setting Request Attributes</a>.</p>
|
|
659
|
+
* @public
|
|
660
660
|
*/
|
|
661
661
|
requestAttributes?: __LazyJsonString | string;
|
|
662
662
|
/**
|
|
663
|
-
* @public
|
|
664
663
|
* <p> You pass this value as the <code>Content-Type</code> HTTP header. </p>
|
|
665
664
|
* <p> Indicates the audio format or text. The header value must start with
|
|
666
665
|
* one of the following prefixes: </p>
|
|
@@ -698,10 +697,10 @@ export interface PostContentRequest {
|
|
|
698
697
|
* </ul>
|
|
699
698
|
* </li>
|
|
700
699
|
* </ul>
|
|
700
|
+
* @public
|
|
701
701
|
*/
|
|
702
702
|
contentType: string | undefined;
|
|
703
703
|
/**
|
|
704
|
-
* @public
|
|
705
704
|
* <p> You pass this value as the <code>Accept</code> HTTP header. </p>
|
|
706
705
|
* <p> The message Amazon Lex returns in the response can be either text or
|
|
707
706
|
* speech based on the <code>Accept</code> HTTP header value in the request. </p>
|
|
@@ -743,26 +742,27 @@ export interface PostContentRequest {
|
|
|
743
742
|
* </ul>
|
|
744
743
|
* </li>
|
|
745
744
|
* </ul>
|
|
745
|
+
* @public
|
|
746
746
|
*/
|
|
747
747
|
accept?: string;
|
|
748
748
|
/**
|
|
749
|
-
* @public
|
|
750
749
|
* <p> User input in PCM or Opus audio format or text format as described in
|
|
751
750
|
* the <code>Content-Type</code> HTTP header. </p>
|
|
752
751
|
* <p>You can stream audio data to Amazon Lex or you can create a local buffer
|
|
753
752
|
* that captures all of the audio data before sending. In general, you get
|
|
754
753
|
* better performance if you stream audio data rather than buffering the data
|
|
755
754
|
* locally.</p>
|
|
755
|
+
* @public
|
|
756
756
|
*/
|
|
757
757
|
inputStream: StreamingBlobTypes | undefined;
|
|
758
758
|
/**
|
|
759
|
-
* @public
|
|
760
759
|
* <p>A list of contexts active for the request. A context can be activated
|
|
761
760
|
* when a previous intent is fulfilled, or by including the context in the
|
|
762
761
|
* request,</p>
|
|
763
762
|
* <p>If you don't specify a list of contexts, Amazon Lex will use the current
|
|
764
763
|
* list of contexts for the session. If you specify an empty list, all
|
|
765
764
|
* contexts for the session are cleared.</p>
|
|
765
|
+
* @public
|
|
766
766
|
*/
|
|
767
767
|
activeContexts?: __LazyJsonString | string;
|
|
768
768
|
}
|
|
@@ -787,36 +787,35 @@ export type DialogState = (typeof DialogState)[keyof typeof DialogState];
|
|
|
787
787
|
*/
|
|
788
788
|
export interface PostContentResponse {
|
|
789
789
|
/**
|
|
790
|
-
* @public
|
|
791
790
|
* <p>Content type as specified in the <code>Accept</code> HTTP header in
|
|
792
791
|
* the request.</p>
|
|
792
|
+
* @public
|
|
793
793
|
*/
|
|
794
794
|
contentType?: string;
|
|
795
795
|
/**
|
|
796
|
-
* @public
|
|
797
796
|
* <p>Current user intent that Amazon Lex is aware of.</p>
|
|
797
|
+
* @public
|
|
798
798
|
*/
|
|
799
799
|
intentName?: string;
|
|
800
800
|
/**
|
|
801
|
-
* @public
|
|
802
801
|
* <p>Provides a score that indicates how confident Amazon Lex is that the
|
|
803
802
|
* returned intent is the one that matches the user's intent. The score is
|
|
804
803
|
* between 0.0 and 1.0.</p>
|
|
805
804
|
* <p>The score is a relative score, not an absolute score. The score may
|
|
806
805
|
* change based on improvements to Amazon Lex. </p>
|
|
806
|
+
* @public
|
|
807
807
|
*/
|
|
808
808
|
nluIntentConfidence?: __LazyJsonString | string;
|
|
809
809
|
/**
|
|
810
|
-
* @public
|
|
811
810
|
* <p>One to four alternative intents that may be applicable to the user's
|
|
812
811
|
* intent.</p>
|
|
813
812
|
* <p>Each alternative includes a score that indicates how confident Amazon Lex
|
|
814
813
|
* is that the intent matches the user's intent. The intents are sorted by
|
|
815
814
|
* the confidence score.</p>
|
|
815
|
+
* @public
|
|
816
816
|
*/
|
|
817
817
|
alternativeIntents?: __LazyJsonString | string;
|
|
818
818
|
/**
|
|
819
|
-
* @public
|
|
820
819
|
* <p>Map of zero or more intent slots (name/value pairs) Amazon Lex detected
|
|
821
820
|
* from the user input during the conversation. The field is base-64
|
|
822
821
|
* encoded.</p>
|
|
@@ -831,23 +830,23 @@ export interface PostContentResponse {
|
|
|
831
830
|
* resolution list or, if there is no resolution list, null. If you don't
|
|
832
831
|
* specify a <code>valueSelectionStrategy</code>, the default is
|
|
833
832
|
* <code>ORIGINAL_VALUE</code>.</p>
|
|
833
|
+
* @public
|
|
834
834
|
*/
|
|
835
835
|
slots?: __LazyJsonString | string;
|
|
836
836
|
/**
|
|
837
|
-
* @public
|
|
838
837
|
* <p> Map of key/value pairs representing the session-specific context
|
|
839
838
|
* information. </p>
|
|
839
|
+
* @public
|
|
840
840
|
*/
|
|
841
841
|
sessionAttributes?: __LazyJsonString | string;
|
|
842
842
|
/**
|
|
843
|
-
* @public
|
|
844
843
|
* <p>The sentiment expressed in an utterance.</p>
|
|
845
844
|
* <p>When the bot is configured to send utterances to Amazon Comprehend for
|
|
846
845
|
* sentiment analysis, this field contains the result of the analysis.</p>
|
|
846
|
+
* @public
|
|
847
847
|
*/
|
|
848
848
|
sentimentResponse?: string;
|
|
849
849
|
/**
|
|
850
|
-
* @public
|
|
851
850
|
* @deprecated
|
|
852
851
|
*
|
|
853
852
|
* <p>You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419,
|
|
@@ -870,10 +869,10 @@ export interface PostContentResponse {
|
|
|
870
869
|
* returned, see <a>msg-prompts-formats</a>.</p>
|
|
871
870
|
* <p>If the Lambda function returns a message, Amazon Lex passes it to the client
|
|
872
871
|
* in its response.</p>
|
|
872
|
+
* @public
|
|
873
873
|
*/
|
|
874
874
|
message?: string;
|
|
875
875
|
/**
|
|
876
|
-
* @public
|
|
877
876
|
* <p>The message to convey to the user. The message can come from the bot's
|
|
878
877
|
* configuration or from a Lambda function.</p>
|
|
879
878
|
* <p>If the intent is not configured with a Lambda function, or if the Lambda
|
|
@@ -892,10 +891,10 @@ export interface PostContentResponse {
|
|
|
892
891
|
* in its response.</p>
|
|
893
892
|
* <p>The <code>encodedMessage</code> field is base-64 encoded. You must
|
|
894
893
|
* decode the field before you can use the value.</p>
|
|
894
|
+
* @public
|
|
895
895
|
*/
|
|
896
896
|
encodedMessage?: string;
|
|
897
897
|
/**
|
|
898
|
-
* @public
|
|
899
898
|
* <p>The format of the response message. One of the following
|
|
900
899
|
* values:</p>
|
|
901
900
|
* <ul>
|
|
@@ -921,10 +920,10 @@ export interface PostContentResponse {
|
|
|
921
920
|
* were assigned to when the intent was created.</p>
|
|
922
921
|
* </li>
|
|
923
922
|
* </ul>
|
|
923
|
+
* @public
|
|
924
924
|
*/
|
|
925
925
|
messageFormat?: MessageFormatType;
|
|
926
926
|
/**
|
|
927
|
-
* @public
|
|
928
927
|
* <p>Identifies the current state of the user interaction. Amazon Lex returns
|
|
929
928
|
* one of the following values as <code>dialogState</code>. The client can
|
|
930
929
|
* optionally use this information to customize the user interface. </p>
|
|
@@ -980,16 +979,16 @@ export interface PostContentResponse {
|
|
|
980
979
|
* </p>
|
|
981
980
|
* </li>
|
|
982
981
|
* </ul>
|
|
982
|
+
* @public
|
|
983
983
|
*/
|
|
984
984
|
dialogState?: DialogState;
|
|
985
985
|
/**
|
|
986
|
-
* @public
|
|
987
986
|
* <p> If the <code>dialogState</code> value is <code>ElicitSlot</code>,
|
|
988
987
|
* returns the name of the slot for which Amazon Lex is eliciting a value. </p>
|
|
988
|
+
* @public
|
|
989
989
|
*/
|
|
990
990
|
slotToElicit?: string;
|
|
991
991
|
/**
|
|
992
|
-
* @public
|
|
993
992
|
* @deprecated
|
|
994
993
|
*
|
|
995
994
|
* <p>The text used to process the request.</p>
|
|
@@ -1002,10 +1001,10 @@ export interface PostContentResponse {
|
|
|
1002
1001
|
* that is actually processed to recognize intents and slot values. You can
|
|
1003
1002
|
* use this information to determine if Amazon Lex is correctly processing the
|
|
1004
1003
|
* audio that you send.</p>
|
|
1004
|
+
* @public
|
|
1005
1005
|
*/
|
|
1006
1006
|
inputTranscript?: string;
|
|
1007
1007
|
/**
|
|
1008
|
-
* @public
|
|
1009
1008
|
* <p>The text used to process the request.</p>
|
|
1010
1009
|
* <p>If the input was an audio stream, the
|
|
1011
1010
|
* <code>encodedInputTranscript</code> field contains the text extracted
|
|
@@ -1014,10 +1013,10 @@ export interface PostContentResponse {
|
|
|
1014
1013
|
* determine if Amazon Lex is correctly processing the audio that you send.</p>
|
|
1015
1014
|
* <p>The <code>encodedInputTranscript</code> field is base-64 encoded. You must
|
|
1016
1015
|
* decode the field before you can use the value.</p>
|
|
1016
|
+
* @public
|
|
1017
1017
|
*/
|
|
1018
1018
|
encodedInputTranscript?: string;
|
|
1019
1019
|
/**
|
|
1020
|
-
* @public
|
|
1021
1020
|
* <p>The prompt (or statement) to convey to the user. This is based on the
|
|
1022
1021
|
* bot configuration and context. For example, if Amazon Lex did not understand
|
|
1023
1022
|
* the user intent, it sends the <code>clarificationPrompt</code> configured
|
|
@@ -1026,33 +1025,34 @@ export interface PostContentResponse {
|
|
|
1026
1025
|
* example: Suppose that the Lambda function successfully fulfilled the
|
|
1027
1026
|
* intent, and sent a message to convey to the user. Then Amazon Lex sends that
|
|
1028
1027
|
* message in the response. </p>
|
|
1028
|
+
* @public
|
|
1029
1029
|
*/
|
|
1030
1030
|
audioStream?: StreamingBlobTypes;
|
|
1031
1031
|
/**
|
|
1032
|
-
* @public
|
|
1033
1032
|
* <p>The version of the bot that responded to the conversation. You can use
|
|
1034
1033
|
* this information to help determine if one version of a bot is performing
|
|
1035
1034
|
* better than another version.</p>
|
|
1035
|
+
* @public
|
|
1036
1036
|
*/
|
|
1037
1037
|
botVersion?: string;
|
|
1038
1038
|
/**
|
|
1039
|
-
* @public
|
|
1040
1039
|
* <p>The unique identifier for the session.</p>
|
|
1040
|
+
* @public
|
|
1041
1041
|
*/
|
|
1042
1042
|
sessionId?: string;
|
|
1043
1043
|
/**
|
|
1044
|
-
* @public
|
|
1045
1044
|
* <p>A list of active contexts for the session. A context can be set when
|
|
1046
1045
|
* an intent is fulfilled or by calling the <code>PostContent</code>,
|
|
1047
1046
|
* <code>PostText</code>, or <code>PutSession</code> operation.</p>
|
|
1048
1047
|
* <p>You can use a context to control the intents that can follow up an
|
|
1049
1048
|
* intent, or to modify the operation of your application.</p>
|
|
1049
|
+
* @public
|
|
1050
1050
|
*/
|
|
1051
1051
|
activeContexts?: __LazyJsonString | string;
|
|
1052
1052
|
}
|
|
1053
1053
|
/**
|
|
1054
|
-
* @public
|
|
1055
1054
|
* <p>The input speech is too long.</p>
|
|
1055
|
+
* @public
|
|
1056
1056
|
*/
|
|
1057
1057
|
export declare class RequestTimeoutException extends __BaseException {
|
|
1058
1058
|
readonly name: "RequestTimeoutException";
|
|
@@ -1063,9 +1063,9 @@ export declare class RequestTimeoutException extends __BaseException {
|
|
|
1063
1063
|
constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
|
|
1064
1064
|
}
|
|
1065
1065
|
/**
|
|
1066
|
-
* @public
|
|
1067
1066
|
* <p>The Content-Type header (<code>PostContent</code> API) has an invalid
|
|
1068
1067
|
* value. </p>
|
|
1068
|
+
* @public
|
|
1069
1069
|
*/
|
|
1070
1070
|
export declare class UnsupportedMediaTypeException extends __BaseException {
|
|
1071
1071
|
readonly name: "UnsupportedMediaTypeException";
|
|
@@ -1080,17 +1080,16 @@ export declare class UnsupportedMediaTypeException extends __BaseException {
|
|
|
1080
1080
|
*/
|
|
1081
1081
|
export interface PostTextRequest {
|
|
1082
1082
|
/**
|
|
1083
|
-
* @public
|
|
1084
1083
|
* <p>The name of the Amazon Lex bot.</p>
|
|
1084
|
+
* @public
|
|
1085
1085
|
*/
|
|
1086
1086
|
botName: string | undefined;
|
|
1087
1087
|
/**
|
|
1088
|
-
* @public
|
|
1089
1088
|
* <p>The alias of the Amazon Lex bot.</p>
|
|
1089
|
+
* @public
|
|
1090
1090
|
*/
|
|
1091
1091
|
botAlias: string | undefined;
|
|
1092
1092
|
/**
|
|
1093
|
-
* @public
|
|
1094
1093
|
* <p>The ID of the client application user. Amazon Lex uses this to identify a
|
|
1095
1094
|
* user's conversation with your bot. At runtime, each request must contain
|
|
1096
1095
|
* the <code>userID</code> field.</p>
|
|
@@ -1120,77 +1119,78 @@ export interface PostTextRequest {
|
|
|
1120
1119
|
* in the user ID to separate the two conversations.</p>
|
|
1121
1120
|
* </li>
|
|
1122
1121
|
* </ul>
|
|
1122
|
+
* @public
|
|
1123
1123
|
*/
|
|
1124
1124
|
userId: string | undefined;
|
|
1125
1125
|
/**
|
|
1126
|
-
* @public
|
|
1127
1126
|
* <p>Application-specific information passed between Amazon Lex and a client
|
|
1128
1127
|
* application.</p>
|
|
1129
1128
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs">Setting Session Attributes</a>.</p>
|
|
1129
|
+
* @public
|
|
1130
1130
|
*/
|
|
1131
1131
|
sessionAttributes?: Record<string, string>;
|
|
1132
1132
|
/**
|
|
1133
|
-
* @public
|
|
1134
1133
|
* <p>Request-specific information passed between Amazon Lex and a client
|
|
1135
1134
|
* application.</p>
|
|
1136
1135
|
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
1137
1136
|
* attributes. Don't create any request attributes with the prefix
|
|
1138
1137
|
* <code>x-amz-lex:</code>.</p>
|
|
1139
1138
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs">Setting Request Attributes</a>.</p>
|
|
1139
|
+
* @public
|
|
1140
1140
|
*/
|
|
1141
1141
|
requestAttributes?: Record<string, string>;
|
|
1142
1142
|
/**
|
|
1143
|
-
* @public
|
|
1144
1143
|
* <p>The text that the user entered (Amazon Lex interprets this text).</p>
|
|
1144
|
+
* @public
|
|
1145
1145
|
*/
|
|
1146
1146
|
inputText: string | undefined;
|
|
1147
1147
|
/**
|
|
1148
|
-
* @public
|
|
1149
1148
|
* <p>A list of contexts active for the request. A context can be activated
|
|
1150
1149
|
* when a previous intent is fulfilled, or by including the context in the
|
|
1151
1150
|
* request,</p>
|
|
1152
1151
|
* <p>If you don't specify a list of contexts, Amazon Lex will use the current
|
|
1153
1152
|
* list of contexts for the session. If you specify an empty list, all
|
|
1154
1153
|
* contexts for the session are cleared.</p>
|
|
1154
|
+
* @public
|
|
1155
1155
|
*/
|
|
1156
1156
|
activeContexts?: ActiveContext[];
|
|
1157
1157
|
}
|
|
1158
1158
|
/**
|
|
1159
|
-
* @public
|
|
1160
1159
|
* <p>Provides a score that indicates the confidence that Amazon Lex has that an
|
|
1161
1160
|
* intent is the one that satisfies the user's intent.</p>
|
|
1161
|
+
* @public
|
|
1162
1162
|
*/
|
|
1163
1163
|
export interface IntentConfidence {
|
|
1164
1164
|
/**
|
|
1165
|
-
* @public
|
|
1166
1165
|
* <p>A score that indicates how confident Amazon Lex is that an intent satisfies
|
|
1167
1166
|
* the user's intent. Ranges between 0.00 and 1.00. Higher scores indicate
|
|
1168
1167
|
* higher confidence.</p>
|
|
1168
|
+
* @public
|
|
1169
1169
|
*/
|
|
1170
1170
|
score?: number;
|
|
1171
1171
|
}
|
|
1172
1172
|
/**
|
|
1173
|
-
* @public
|
|
1174
1173
|
* <p>An intent that Amazon Lex suggests satisfies the user's intent. Includes
|
|
1175
1174
|
* the name of the intent, the confidence that Amazon Lex has that the user's
|
|
1176
1175
|
* intent is satisfied, and the slots defined for the intent.</p>
|
|
1176
|
+
* @public
|
|
1177
1177
|
*/
|
|
1178
1178
|
export interface PredictedIntent {
|
|
1179
1179
|
/**
|
|
1180
|
-
* @public
|
|
1181
1180
|
* <p>The name of the intent that Amazon Lex suggests satisfies the user's
|
|
1182
1181
|
* intent.</p>
|
|
1182
|
+
* @public
|
|
1183
1183
|
*/
|
|
1184
1184
|
intentName?: string;
|
|
1185
1185
|
/**
|
|
1186
|
-
* @public
|
|
1187
1186
|
* <p>Indicates how confident Amazon Lex is that an intent satisfies the user's
|
|
1188
1187
|
* intent.</p>
|
|
1188
|
+
* @public
|
|
1189
1189
|
*/
|
|
1190
1190
|
nluIntentConfidence?: IntentConfidence;
|
|
1191
1191
|
/**
|
|
1192
|
-
* @public
|
|
1193
1192
|
* <p>The slot and slot values associated with the predicted intent.</p>
|
|
1193
|
+
* @public
|
|
1194
1194
|
*/
|
|
1195
1195
|
slots?: Record<string, string>;
|
|
1196
1196
|
}
|
|
@@ -1206,98 +1206,98 @@ export declare const ContentType: {
|
|
|
1206
1206
|
*/
|
|
1207
1207
|
export type ContentType = (typeof ContentType)[keyof typeof ContentType];
|
|
1208
1208
|
/**
|
|
1209
|
-
* @public
|
|
1210
1209
|
* <p>Represents an option to be shown on the client platform (Facebook,
|
|
1211
1210
|
* Slack, etc.)</p>
|
|
1211
|
+
* @public
|
|
1212
1212
|
*/
|
|
1213
1213
|
export interface Button {
|
|
1214
1214
|
/**
|
|
1215
|
-
* @public
|
|
1216
1215
|
* <p>Text that is visible to the user on the button.</p>
|
|
1216
|
+
* @public
|
|
1217
1217
|
*/
|
|
1218
1218
|
text: string | undefined;
|
|
1219
1219
|
/**
|
|
1220
|
-
* @public
|
|
1221
1220
|
* <p>The value sent to Amazon Lex when a user chooses the button. For
|
|
1222
1221
|
* example, consider button text "NYC." When the user chooses the button, the
|
|
1223
1222
|
* value sent can be "New York City."</p>
|
|
1223
|
+
* @public
|
|
1224
1224
|
*/
|
|
1225
1225
|
value: string | undefined;
|
|
1226
1226
|
}
|
|
1227
1227
|
/**
|
|
1228
|
-
* @public
|
|
1229
1228
|
* <p>Represents an option rendered to the user when a prompt is shown. It
|
|
1230
1229
|
* could be an image, a button, a link, or text. </p>
|
|
1230
|
+
* @public
|
|
1231
1231
|
*/
|
|
1232
1232
|
export interface GenericAttachment {
|
|
1233
1233
|
/**
|
|
1234
|
-
* @public
|
|
1235
1234
|
* <p>The title of the option.</p>
|
|
1235
|
+
* @public
|
|
1236
1236
|
*/
|
|
1237
1237
|
title?: string;
|
|
1238
1238
|
/**
|
|
1239
|
-
* @public
|
|
1240
1239
|
* <p>The subtitle shown below the title.</p>
|
|
1240
|
+
* @public
|
|
1241
1241
|
*/
|
|
1242
1242
|
subTitle?: string;
|
|
1243
1243
|
/**
|
|
1244
|
-
* @public
|
|
1245
1244
|
* <p>The URL of an attachment to the response card.</p>
|
|
1245
|
+
* @public
|
|
1246
1246
|
*/
|
|
1247
1247
|
attachmentLinkUrl?: string;
|
|
1248
1248
|
/**
|
|
1249
|
-
* @public
|
|
1250
1249
|
* <p>The URL of an image that is displayed to the user.</p>
|
|
1250
|
+
* @public
|
|
1251
1251
|
*/
|
|
1252
1252
|
imageUrl?: string;
|
|
1253
1253
|
/**
|
|
1254
|
-
* @public
|
|
1255
1254
|
* <p>The list of options to show to the user.</p>
|
|
1255
|
+
* @public
|
|
1256
1256
|
*/
|
|
1257
1257
|
buttons?: Button[];
|
|
1258
1258
|
}
|
|
1259
1259
|
/**
|
|
1260
|
-
* @public
|
|
1261
1260
|
* <p>If you configure a response card when creating your bots, Amazon Lex
|
|
1262
1261
|
* substitutes the session attributes and slot values that are available, and
|
|
1263
1262
|
* then returns it. The response card can also come from a Lambda function (
|
|
1264
1263
|
* <code>dialogCodeHook</code> and <code>fulfillmentActivity</code> on an
|
|
1265
1264
|
* intent).</p>
|
|
1265
|
+
* @public
|
|
1266
1266
|
*/
|
|
1267
1267
|
export interface ResponseCard {
|
|
1268
1268
|
/**
|
|
1269
|
-
* @public
|
|
1270
1269
|
* <p>The version of the response card format.</p>
|
|
1270
|
+
* @public
|
|
1271
1271
|
*/
|
|
1272
1272
|
version?: string;
|
|
1273
1273
|
/**
|
|
1274
|
-
* @public
|
|
1275
1274
|
* <p>The content type of the response.</p>
|
|
1275
|
+
* @public
|
|
1276
1276
|
*/
|
|
1277
1277
|
contentType?: ContentType;
|
|
1278
1278
|
/**
|
|
1279
|
-
* @public
|
|
1280
1279
|
* <p>An array of attachment objects representing options.</p>
|
|
1280
|
+
* @public
|
|
1281
1281
|
*/
|
|
1282
1282
|
genericAttachments?: GenericAttachment[];
|
|
1283
1283
|
}
|
|
1284
1284
|
/**
|
|
1285
|
-
* @public
|
|
1286
1285
|
* <p>The sentiment expressed in an utterance.</p>
|
|
1287
1286
|
* <p>When the bot is configured to send utterances to Amazon Comprehend for
|
|
1288
1287
|
* sentiment analysis, this field structure contains the result of the
|
|
1289
1288
|
* analysis.</p>
|
|
1289
|
+
* @public
|
|
1290
1290
|
*/
|
|
1291
1291
|
export interface SentimentResponse {
|
|
1292
1292
|
/**
|
|
1293
|
-
* @public
|
|
1294
1293
|
* <p>The inferred sentiment that Amazon Comprehend has the highest
|
|
1295
1294
|
* confidence in.</p>
|
|
1295
|
+
* @public
|
|
1296
1296
|
*/
|
|
1297
1297
|
sentimentLabel?: string;
|
|
1298
1298
|
/**
|
|
1299
|
-
* @public
|
|
1300
1299
|
* <p>The likelihood that the sentiment was correctly inferred.</p>
|
|
1300
|
+
* @public
|
|
1301
1301
|
*/
|
|
1302
1302
|
sentimentScore?: string;
|
|
1303
1303
|
}
|
|
@@ -1306,30 +1306,29 @@ export interface SentimentResponse {
|
|
|
1306
1306
|
*/
|
|
1307
1307
|
export interface PostTextResponse {
|
|
1308
1308
|
/**
|
|
1309
|
-
* @public
|
|
1310
1309
|
* <p>The current user intent that Amazon Lex is aware of.</p>
|
|
1310
|
+
* @public
|
|
1311
1311
|
*/
|
|
1312
1312
|
intentName?: string;
|
|
1313
1313
|
/**
|
|
1314
|
-
* @public
|
|
1315
1314
|
* <p>Provides a score that indicates how confident Amazon Lex is that the
|
|
1316
1315
|
* returned intent is the one that matches the user's intent. The score is
|
|
1317
1316
|
* between 0.0 and 1.0. For more information, see <a href="https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html">Confidence Scores</a>.</p>
|
|
1318
1317
|
* <p>The score is a relative score, not an absolute score. The score may
|
|
1319
1318
|
* change based on improvements to Amazon Lex.</p>
|
|
1319
|
+
* @public
|
|
1320
1320
|
*/
|
|
1321
1321
|
nluIntentConfidence?: IntentConfidence;
|
|
1322
1322
|
/**
|
|
1323
|
-
* @public
|
|
1324
1323
|
* <p>One to four alternative intents that may be applicable to the user's
|
|
1325
1324
|
* intent.</p>
|
|
1326
1325
|
* <p>Each alternative includes a score that indicates how confident Amazon Lex
|
|
1327
1326
|
* is that the intent matches the user's intent. The intents are sorted by
|
|
1328
1327
|
* the confidence score.</p>
|
|
1328
|
+
* @public
|
|
1329
1329
|
*/
|
|
1330
1330
|
alternativeIntents?: PredictedIntent[];
|
|
1331
1331
|
/**
|
|
1332
|
-
* @public
|
|
1333
1332
|
* <p> The intent slots that Amazon Lex detected from the user input in the
|
|
1334
1333
|
* conversation. </p>
|
|
1335
1334
|
* <p>Amazon Lex creates a resolution list containing likely values for a slot.
|
|
@@ -1343,16 +1342,16 @@ export interface PostTextResponse {
|
|
|
1343
1342
|
* resolution list or, if there is no resolution list, null. If you don't
|
|
1344
1343
|
* specify a <code>valueSelectionStrategy</code>, the default is
|
|
1345
1344
|
* <code>ORIGINAL_VALUE</code>.</p>
|
|
1345
|
+
* @public
|
|
1346
1346
|
*/
|
|
1347
1347
|
slots?: Record<string, string>;
|
|
1348
1348
|
/**
|
|
1349
|
-
* @public
|
|
1350
1349
|
* <p>A map of key-value pairs representing the session-specific context
|
|
1351
1350
|
* information.</p>
|
|
1351
|
+
* @public
|
|
1352
1352
|
*/
|
|
1353
1353
|
sessionAttributes?: Record<string, string>;
|
|
1354
1354
|
/**
|
|
1355
|
-
* @public
|
|
1356
1355
|
* <p>The message to convey to the user. The message can come from the bot's
|
|
1357
1356
|
* configuration or from a Lambda function.</p>
|
|
1358
1357
|
* <p>If the intent is not configured with a Lambda function, or if the Lambda
|
|
@@ -1369,17 +1368,17 @@ export interface PostTextResponse {
|
|
|
1369
1368
|
* returned, see <a>msg-prompts-formats</a>.</p>
|
|
1370
1369
|
* <p>If the Lambda function returns a message, Amazon Lex passes it to the client
|
|
1371
1370
|
* in its response.</p>
|
|
1371
|
+
* @public
|
|
1372
1372
|
*/
|
|
1373
1373
|
message?: string;
|
|
1374
1374
|
/**
|
|
1375
|
-
* @public
|
|
1376
1375
|
* <p>The sentiment expressed in and utterance.</p>
|
|
1377
1376
|
* <p>When the bot is configured to send utterances to Amazon Comprehend for
|
|
1378
1377
|
* sentiment analysis, this field contains the result of the analysis.</p>
|
|
1378
|
+
* @public
|
|
1379
1379
|
*/
|
|
1380
1380
|
sentimentResponse?: SentimentResponse;
|
|
1381
1381
|
/**
|
|
1382
|
-
* @public
|
|
1383
1382
|
* <p>The format of the response message. One of the following
|
|
1384
1383
|
* values:</p>
|
|
1385
1384
|
* <ul>
|
|
@@ -1405,10 +1404,10 @@ export interface PostTextResponse {
|
|
|
1405
1404
|
* were assigned to when the intent was created.</p>
|
|
1406
1405
|
* </li>
|
|
1407
1406
|
* </ul>
|
|
1407
|
+
* @public
|
|
1408
1408
|
*/
|
|
1409
1409
|
messageFormat?: MessageFormatType;
|
|
1410
1410
|
/**
|
|
1411
|
-
* @public
|
|
1412
1411
|
* <p> Identifies the current state of the user interaction. Amazon Lex returns
|
|
1413
1412
|
* one of the following values as <code>dialogState</code>. The client can
|
|
1414
1413
|
* optionally use this information to customize the user interface. </p>
|
|
@@ -1465,41 +1464,42 @@ export interface PostTextResponse {
|
|
|
1465
1464
|
* </p>
|
|
1466
1465
|
* </li>
|
|
1467
1466
|
* </ul>
|
|
1467
|
+
* @public
|
|
1468
1468
|
*/
|
|
1469
1469
|
dialogState?: DialogState;
|
|
1470
1470
|
/**
|
|
1471
|
-
* @public
|
|
1472
1471
|
* <p>If the <code>dialogState</code> value is <code>ElicitSlot</code>,
|
|
1473
1472
|
* returns the name of the slot for which Amazon Lex is eliciting a value. </p>
|
|
1473
|
+
* @public
|
|
1474
1474
|
*/
|
|
1475
1475
|
slotToElicit?: string;
|
|
1476
1476
|
/**
|
|
1477
|
-
* @public
|
|
1478
1477
|
* <p>Represents the options that the user has to respond to the current
|
|
1479
1478
|
* prompt. Response Card can come from the bot configuration (in the
|
|
1480
1479
|
* Amazon Lex console, choose the settings button next to a slot) or from a
|
|
1481
1480
|
* code hook (Lambda function). </p>
|
|
1481
|
+
* @public
|
|
1482
1482
|
*/
|
|
1483
1483
|
responseCard?: ResponseCard;
|
|
1484
1484
|
/**
|
|
1485
|
-
* @public
|
|
1486
1485
|
* <p>A unique identifier for the session.</p>
|
|
1486
|
+
* @public
|
|
1487
1487
|
*/
|
|
1488
1488
|
sessionId?: string;
|
|
1489
1489
|
/**
|
|
1490
|
-
* @public
|
|
1491
1490
|
* <p>The version of the bot that responded to the conversation. You can use
|
|
1492
1491
|
* this information to help determine if one version of a bot is performing
|
|
1493
1492
|
* better than another version.</p>
|
|
1493
|
+
* @public
|
|
1494
1494
|
*/
|
|
1495
1495
|
botVersion?: string;
|
|
1496
1496
|
/**
|
|
1497
|
-
* @public
|
|
1498
1497
|
* <p>A list of active contexts for the session. A context can be set when
|
|
1499
1498
|
* an intent is fulfilled or by calling the <code>PostContent</code>,
|
|
1500
1499
|
* <code>PostText</code>, or <code>PutSession</code> operation.</p>
|
|
1501
1500
|
* <p>You can use a context to control the intents that can follow up an
|
|
1502
1501
|
* intent, or to modify the operation of your application.</p>
|
|
1502
|
+
* @public
|
|
1503
1503
|
*/
|
|
1504
1504
|
activeContexts?: ActiveContext[];
|
|
1505
1505
|
}
|
|
@@ -1508,36 +1508,35 @@ export interface PostTextResponse {
|
|
|
1508
1508
|
*/
|
|
1509
1509
|
export interface PutSessionRequest {
|
|
1510
1510
|
/**
|
|
1511
|
-
* @public
|
|
1512
1511
|
* <p>The name of the bot that contains the session data.</p>
|
|
1512
|
+
* @public
|
|
1513
1513
|
*/
|
|
1514
1514
|
botName: string | undefined;
|
|
1515
1515
|
/**
|
|
1516
|
-
* @public
|
|
1517
1516
|
* <p>The alias in use for the bot that contains the session data.</p>
|
|
1517
|
+
* @public
|
|
1518
1518
|
*/
|
|
1519
1519
|
botAlias: string | undefined;
|
|
1520
1520
|
/**
|
|
1521
|
-
* @public
|
|
1522
1521
|
* <p>The ID of the client application user. Amazon Lex uses this to identify a
|
|
1523
1522
|
* user's conversation with your bot. </p>
|
|
1523
|
+
* @public
|
|
1524
1524
|
*/
|
|
1525
1525
|
userId: string | undefined;
|
|
1526
1526
|
/**
|
|
1527
|
-
* @public
|
|
1528
1527
|
* <p>Map of key/value pairs representing the session-specific context
|
|
1529
1528
|
* information. It contains application information passed between Amazon Lex and
|
|
1530
1529
|
* a client application.</p>
|
|
1530
|
+
* @public
|
|
1531
1531
|
*/
|
|
1532
1532
|
sessionAttributes?: Record<string, string>;
|
|
1533
1533
|
/**
|
|
1534
|
-
* @public
|
|
1535
1534
|
* <p>Sets the next action that the bot should take to fulfill the
|
|
1536
1535
|
* conversation.</p>
|
|
1536
|
+
* @public
|
|
1537
1537
|
*/
|
|
1538
1538
|
dialogAction?: DialogAction;
|
|
1539
1539
|
/**
|
|
1540
|
-
* @public
|
|
1541
1540
|
* <p>A summary of the recent intents for the bot. You can use the intent
|
|
1542
1541
|
* summary view to set a checkpoint label on an intent and modify attributes
|
|
1543
1542
|
* of intents. You can also use it to remove or add intent summary objects to
|
|
@@ -1566,10 +1565,10 @@ export interface PutSessionRequest {
|
|
|
1566
1565
|
* request returns three intents in the summary view and you call
|
|
1567
1566
|
* <code>PutSession</code> with one intent in the summary view, the next
|
|
1568
1567
|
* call to <code>GetSession</code> will only return one intent.</p>
|
|
1568
|
+
* @public
|
|
1569
1569
|
*/
|
|
1570
1570
|
recentIntentSummaryView?: IntentSummary[];
|
|
1571
1571
|
/**
|
|
1572
|
-
* @public
|
|
1573
1572
|
* <p>The message that Amazon Lex returns in the response can be either text or
|
|
1574
1573
|
* speech based depending on the value of this field.</p>
|
|
1575
1574
|
* <ul>
|
|
@@ -1618,16 +1617,17 @@ export interface PutSessionRequest {
|
|
|
1618
1617
|
* </ul>
|
|
1619
1618
|
* </li>
|
|
1620
1619
|
* </ul>
|
|
1620
|
+
* @public
|
|
1621
1621
|
*/
|
|
1622
1622
|
accept?: string;
|
|
1623
1623
|
/**
|
|
1624
|
-
* @public
|
|
1625
1624
|
* <p>A list of contexts active for the request. A context can be activated
|
|
1626
1625
|
* when a previous intent is fulfilled, or by including the context in the
|
|
1627
1626
|
* request,</p>
|
|
1628
1627
|
* <p>If you don't specify a list of contexts, Amazon Lex will use the current
|
|
1629
1628
|
* list of contexts for the session. If you specify an empty list, all
|
|
1630
1629
|
* contexts for the session are cleared.</p>
|
|
1630
|
+
* @public
|
|
1631
1631
|
*/
|
|
1632
1632
|
activeContexts?: ActiveContext[];
|
|
1633
1633
|
}
|
|
@@ -1636,18 +1636,17 @@ export interface PutSessionRequest {
|
|
|
1636
1636
|
*/
|
|
1637
1637
|
export interface PutSessionResponse {
|
|
1638
1638
|
/**
|
|
1639
|
-
* @public
|
|
1640
1639
|
* <p>Content type as specified in the <code>Accept</code> HTTP header in
|
|
1641
1640
|
* the request.</p>
|
|
1641
|
+
* @public
|
|
1642
1642
|
*/
|
|
1643
1643
|
contentType?: string;
|
|
1644
1644
|
/**
|
|
1645
|
-
* @public
|
|
1646
1645
|
* <p>The name of the current intent.</p>
|
|
1646
|
+
* @public
|
|
1647
1647
|
*/
|
|
1648
1648
|
intentName?: string;
|
|
1649
1649
|
/**
|
|
1650
|
-
* @public
|
|
1651
1650
|
* <p>Map of zero or more intent slots Amazon Lex detected from the user input
|
|
1652
1651
|
* during the conversation.</p>
|
|
1653
1652
|
* <p>Amazon Lex creates a resolution list containing likely values for a slot.
|
|
@@ -1661,16 +1660,16 @@ export interface PutSessionResponse {
|
|
|
1661
1660
|
* resolution list or, if there is no resolution list, null. If you don't
|
|
1662
1661
|
* specify a <code>valueSelectionStrategy</code> the default is
|
|
1663
1662
|
* <code>ORIGINAL_VALUE</code>. </p>
|
|
1663
|
+
* @public
|
|
1664
1664
|
*/
|
|
1665
1665
|
slots?: __LazyJsonString | string;
|
|
1666
1666
|
/**
|
|
1667
|
-
* @public
|
|
1668
1667
|
* <p>Map of key/value pairs representing session-specific context
|
|
1669
1668
|
* information.</p>
|
|
1669
|
+
* @public
|
|
1670
1670
|
*/
|
|
1671
1671
|
sessionAttributes?: __LazyJsonString | string;
|
|
1672
1672
|
/**
|
|
1673
|
-
* @public
|
|
1674
1673
|
* @deprecated
|
|
1675
1674
|
*
|
|
1676
1675
|
* <p>The next message that should be presented to the user.</p>
|
|
@@ -1678,17 +1677,17 @@ export interface PutSessionResponse {
|
|
|
1678
1677
|
* es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales, the
|
|
1679
1678
|
* <code>message</code> field is null. You should use the
|
|
1680
1679
|
* <code>encodedMessage</code> field instead.</p>
|
|
1680
|
+
* @public
|
|
1681
1681
|
*/
|
|
1682
1682
|
message?: string;
|
|
1683
1683
|
/**
|
|
1684
|
-
* @public
|
|
1685
1684
|
* <p>The next message that should be presented to the user.</p>
|
|
1686
1685
|
* <p>The <code>encodedMessage</code> field is base-64 encoded. You must
|
|
1687
1686
|
* decode the field before you can use the value.</p>
|
|
1687
|
+
* @public
|
|
1688
1688
|
*/
|
|
1689
1689
|
encodedMessage?: string;
|
|
1690
1690
|
/**
|
|
1691
|
-
* @public
|
|
1692
1691
|
* <p>The format of the response message. One of the following
|
|
1693
1692
|
* values:</p>
|
|
1694
1693
|
* <ul>
|
|
@@ -1714,10 +1713,10 @@ export interface PutSessionResponse {
|
|
|
1714
1713
|
* were assigned to when the intent was created.</p>
|
|
1715
1714
|
* </li>
|
|
1716
1715
|
* </ul>
|
|
1716
|
+
* @public
|
|
1717
1717
|
*/
|
|
1718
1718
|
messageFormat?: MessageFormatType;
|
|
1719
1719
|
/**
|
|
1720
|
-
* @public
|
|
1721
1720
|
* <p></p>
|
|
1722
1721
|
* <ul>
|
|
1723
1722
|
* <li>
|
|
@@ -1753,27 +1752,28 @@ export interface PutSessionResponse {
|
|
|
1753
1752
|
* fulfill the intent.</p>
|
|
1754
1753
|
* </li>
|
|
1755
1754
|
* </ul>
|
|
1755
|
+
* @public
|
|
1756
1756
|
*/
|
|
1757
1757
|
dialogState?: DialogState;
|
|
1758
1758
|
/**
|
|
1759
|
-
* @public
|
|
1760
1759
|
* <p>If the <code>dialogState</code> is <code>ElicitSlot</code>, returns
|
|
1761
1760
|
* the name of the slot for which Amazon Lex is eliciting a value.</p>
|
|
1761
|
+
* @public
|
|
1762
1762
|
*/
|
|
1763
1763
|
slotToElicit?: string;
|
|
1764
1764
|
/**
|
|
1765
|
-
* @public
|
|
1766
1765
|
* <p>The audio version of the message to convey to the user.</p>
|
|
1766
|
+
* @public
|
|
1767
1767
|
*/
|
|
1768
1768
|
audioStream?: StreamingBlobTypes;
|
|
1769
1769
|
/**
|
|
1770
|
-
* @public
|
|
1771
1770
|
* <p>A unique identifier for the session.</p>
|
|
1771
|
+
* @public
|
|
1772
1772
|
*/
|
|
1773
1773
|
sessionId?: string;
|
|
1774
1774
|
/**
|
|
1775
|
-
* @public
|
|
1776
1775
|
* <p>A list of active contexts for the session.</p>
|
|
1776
|
+
* @public
|
|
1777
1777
|
*/
|
|
1778
1778
|
activeContexts?: __LazyJsonString | string;
|
|
1779
1779
|
}
|