@aws-sdk/client-lex-runtime-service 3.686.0 → 3.691.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.
@@ -14,14 +14,14 @@ export interface ActiveContextTimeToLive {
14
14
  * hours).</p>
15
15
  * @public
16
16
  */
17
- timeToLiveInSeconds?: number;
17
+ timeToLiveInSeconds?: number | undefined;
18
18
  /**
19
19
  * <p>The number of conversation turns that the context should be active. A
20
20
  * conversation turn is one <code>PostContent</code> or <code>PostText</code>
21
21
  * request and the corresponding response from Amazon Lex.</p>
22
22
  * @public
23
23
  */
24
- turnsToLive?: number;
24
+ turnsToLive?: number | undefined;
25
25
  }
26
26
  /**
27
27
  * <p>A context is a variable that contains information about the current
@@ -105,22 +105,22 @@ export interface DeleteSessionResponse {
105
105
  * <p>The name of the bot associated with the session data.</p>
106
106
  * @public
107
107
  */
108
- botName?: string;
108
+ botName?: string | undefined;
109
109
  /**
110
110
  * <p>The alias in use for the bot associated with the session data.</p>
111
111
  * @public
112
112
  */
113
- botAlias?: string;
113
+ botAlias?: string | undefined;
114
114
  /**
115
115
  * <p>The ID of the client application user.</p>
116
116
  * @public
117
117
  */
118
- userId?: string;
118
+ userId?: string | undefined;
119
119
  /**
120
120
  * <p>The unique identifier for the session.</p>
121
121
  * @public
122
122
  */
123
- sessionId?: string;
123
+ sessionId?: string | undefined;
124
124
  }
125
125
  /**
126
126
  * <p>Internal service error. Retry the call.</p>
@@ -141,7 +141,7 @@ export declare class InternalFailureException extends __BaseException {
141
141
  export declare class LimitExceededException extends __BaseException {
142
142
  readonly name: "LimitExceededException";
143
143
  readonly $fault: "client";
144
- retryAfterSeconds?: string;
144
+ retryAfterSeconds?: string | undefined;
145
145
  /**
146
146
  * @internal
147
147
  */
@@ -188,7 +188,7 @@ export interface GetSessionRequest {
188
188
  * returned.</p>
189
189
  * @public
190
190
  */
191
- checkpointLabelFilter?: string;
191
+ checkpointLabelFilter?: string | undefined;
192
192
  }
193
193
  /**
194
194
  * @public
@@ -280,17 +280,17 @@ export interface DialogAction {
280
280
  * <p>The name of the intent.</p>
281
281
  * @public
282
282
  */
283
- intentName?: string;
283
+ intentName?: string | undefined;
284
284
  /**
285
285
  * <p>Map of the slots that have been gathered and their values. </p>
286
286
  * @public
287
287
  */
288
- slots?: Record<string, string>;
288
+ slots?: Record<string, string> | undefined;
289
289
  /**
290
290
  * <p>The name of the slot that should be elicited from the user.</p>
291
291
  * @public
292
292
  */
293
- slotToElicit?: string;
293
+ slotToElicit?: string | undefined;
294
294
  /**
295
295
  * <p>The fulfillment state of the intent. The possible values are:</p>
296
296
  * <ul>
@@ -313,13 +313,13 @@ export interface DialogAction {
313
313
  * </ul>
314
314
  * @public
315
315
  */
316
- fulfillmentState?: FulfillmentState;
316
+ fulfillmentState?: FulfillmentState | undefined;
317
317
  /**
318
318
  * <p>The message that should be shown to the user. If you don't specify a
319
319
  * message, Amazon Lex will use the message configured for the intent.</p>
320
320
  * @public
321
321
  */
322
- message?: string;
322
+ message?: string | undefined;
323
323
  /**
324
324
  * <ul>
325
325
  * <li>
@@ -346,7 +346,7 @@ export interface DialogAction {
346
346
  * </ul>
347
347
  * @public
348
348
  */
349
- messageFormat?: MessageFormatType;
349
+ messageFormat?: MessageFormatType | undefined;
350
350
  }
351
351
  /**
352
352
  * @public
@@ -373,7 +373,7 @@ export interface IntentSummary {
373
373
  * <p>The name of the intent.</p>
374
374
  * @public
375
375
  */
376
- intentName?: string;
376
+ intentName?: string | undefined;
377
377
  /**
378
378
  * <p>A user-defined label that identifies a particular intent. You can use
379
379
  * this label to return to a previous intent. </p>
@@ -382,12 +382,12 @@ export interface IntentSummary {
382
382
  * by the operation to those with only the specified label.</p>
383
383
  * @public
384
384
  */
385
- checkpointLabel?: string;
385
+ checkpointLabel?: string | undefined;
386
386
  /**
387
387
  * <p>Map of the slots that have been gathered and their values. </p>
388
388
  * @public
389
389
  */
390
- slots?: Record<string, string>;
390
+ slots?: Record<string, string> | undefined;
391
391
  /**
392
392
  * <p>The status of the intent after the user responds to the confirmation
393
393
  * prompt. If the user confirms the intent, Amazon Lex sets this field to
@@ -414,7 +414,7 @@ export interface IntentSummary {
414
414
  * </ul>
415
415
  * @public
416
416
  */
417
- confirmationStatus?: ConfirmationStatus;
417
+ confirmationStatus?: ConfirmationStatus | undefined;
418
418
  /**
419
419
  * <p>The next action that the bot should take in its interaction with the
420
420
  * user. The possible values are:</p>
@@ -467,13 +467,13 @@ export interface IntentSummary {
467
467
  * </ul>
468
468
  * @public
469
469
  */
470
- fulfillmentState?: FulfillmentState;
470
+ fulfillmentState?: FulfillmentState | undefined;
471
471
  /**
472
472
  * <p>The next slot to elicit from the user. If there is not slot to elicit,
473
473
  * the field is blank.</p>
474
474
  * @public
475
475
  */
476
- slotToElicit?: string;
476
+ slotToElicit?: string | undefined;
477
477
  }
478
478
  /**
479
479
  * @public
@@ -489,24 +489,24 @@ export interface GetSessionResponse {
489
489
  * label.</p>
490
490
  * @public
491
491
  */
492
- recentIntentSummaryView?: IntentSummary[];
492
+ recentIntentSummaryView?: IntentSummary[] | undefined;
493
493
  /**
494
494
  * <p>Map of key/value pairs representing the session-specific context
495
495
  * information. It contains application information passed between Amazon Lex and
496
496
  * a client application.</p>
497
497
  * @public
498
498
  */
499
- sessionAttributes?: Record<string, string>;
499
+ sessionAttributes?: Record<string, string> | undefined;
500
500
  /**
501
501
  * <p>A unique identifier for the session.</p>
502
502
  * @public
503
503
  */
504
- sessionId?: string;
504
+ sessionId?: string | undefined;
505
505
  /**
506
506
  * <p>Describes the current state of the bot.</p>
507
507
  * @public
508
508
  */
509
- dialogAction?: DialogAction;
509
+ dialogAction?: DialogAction | undefined;
510
510
  /**
511
511
  * <p>A list of active contexts for the session. A context can be set when
512
512
  * an intent is fulfilled or by calling the <code>PostContent</code>,
@@ -515,7 +515,7 @@ export interface GetSessionResponse {
515
515
  * intent, or to modify the operation of your application.</p>
516
516
  * @public
517
517
  */
518
- activeContexts?: ActiveContext[];
518
+ activeContexts?: ActiveContext[] | undefined;
519
519
  }
520
520
  /**
521
521
  * <p>Either the Amazon Lex bot is still building, or one of the dependent
@@ -526,7 +526,7 @@ export interface GetSessionResponse {
526
526
  export declare class BadGatewayException extends __BaseException {
527
527
  readonly name: "BadGatewayException";
528
528
  readonly $fault: "server";
529
- Message?: string;
529
+ Message?: string | undefined;
530
530
  /**
531
531
  * @internal
532
532
  */
@@ -554,7 +554,7 @@ export declare class BadGatewayException extends __BaseException {
554
554
  export declare class DependencyFailedException extends __BaseException {
555
555
  readonly name: "DependencyFailedException";
556
556
  readonly $fault: "client";
557
- Message?: string;
557
+ Message?: string | undefined;
558
558
  /**
559
559
  * @internal
560
560
  */
@@ -567,7 +567,7 @@ export declare class DependencyFailedException extends __BaseException {
567
567
  export declare class LoopDetectedException extends __BaseException {
568
568
  readonly name: "LoopDetectedException";
569
569
  readonly $fault: "server";
570
- Message?: string;
570
+ Message?: string | undefined;
571
571
  /**
572
572
  * @internal
573
573
  */
@@ -643,7 +643,7 @@ export interface PostContentRequest {
643
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
644
  * @public
645
645
  */
646
- sessionAttributes?: __LazyJsonString | string;
646
+ sessionAttributes?: __LazyJsonString | string | undefined;
647
647
  /**
648
648
  * <p>You pass this value as the <code>x-amz-lex-request-attributes</code>
649
649
  * HTTP header.</p>
@@ -658,7 +658,7 @@ export interface PostContentRequest {
658
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
659
  * @public
660
660
  */
661
- requestAttributes?: __LazyJsonString | string;
661
+ requestAttributes?: __LazyJsonString | string | undefined;
662
662
  /**
663
663
  * <p> You pass this value as the <code>Content-Type</code> HTTP header. </p>
664
664
  * <p> Indicates the audio format or text. The header value must start with
@@ -744,7 +744,7 @@ export interface PostContentRequest {
744
744
  * </ul>
745
745
  * @public
746
746
  */
747
- accept?: string;
747
+ accept?: string | undefined;
748
748
  /**
749
749
  * <p> User input in PCM or Opus audio format or text format as described in
750
750
  * the <code>Content-Type</code> HTTP header. </p>
@@ -764,7 +764,7 @@ export interface PostContentRequest {
764
764
  * contexts for the session are cleared.</p>
765
765
  * @public
766
766
  */
767
- activeContexts?: __LazyJsonString | string;
767
+ activeContexts?: __LazyJsonString | string | undefined;
768
768
  }
769
769
  /**
770
770
  * @public
@@ -791,12 +791,12 @@ export interface PostContentResponse {
791
791
  * the request.</p>
792
792
  * @public
793
793
  */
794
- contentType?: string;
794
+ contentType?: string | undefined;
795
795
  /**
796
796
  * <p>Current user intent that Amazon Lex is aware of.</p>
797
797
  * @public
798
798
  */
799
- intentName?: string;
799
+ intentName?: string | undefined;
800
800
  /**
801
801
  * <p>Provides a score that indicates how confident Amazon Lex is that the
802
802
  * returned intent is the one that matches the user's intent. The score is
@@ -805,7 +805,7 @@ export interface PostContentResponse {
805
805
  * change based on improvements to Amazon Lex. </p>
806
806
  * @public
807
807
  */
808
- nluIntentConfidence?: __LazyJsonString | string;
808
+ nluIntentConfidence?: __LazyJsonString | string | undefined;
809
809
  /**
810
810
  * <p>One to four alternative intents that may be applicable to the user's
811
811
  * intent.</p>
@@ -814,7 +814,7 @@ export interface PostContentResponse {
814
814
  * the confidence score.</p>
815
815
  * @public
816
816
  */
817
- alternativeIntents?: __LazyJsonString | string;
817
+ alternativeIntents?: __LazyJsonString | string | undefined;
818
818
  /**
819
819
  * <p>Map of zero or more intent slots (name/value pairs) Amazon Lex detected
820
820
  * from the user input during the conversation. The field is base-64
@@ -832,20 +832,20 @@ export interface PostContentResponse {
832
832
  * <code>ORIGINAL_VALUE</code>.</p>
833
833
  * @public
834
834
  */
835
- slots?: __LazyJsonString | string;
835
+ slots?: __LazyJsonString | string | undefined;
836
836
  /**
837
837
  * <p> Map of key/value pairs representing the session-specific context
838
838
  * information. </p>
839
839
  * @public
840
840
  */
841
- sessionAttributes?: __LazyJsonString | string;
841
+ sessionAttributes?: __LazyJsonString | string | undefined;
842
842
  /**
843
843
  * <p>The sentiment expressed in an utterance.</p>
844
844
  * <p>When the bot is configured to send utterances to Amazon Comprehend for
845
845
  * sentiment analysis, this field contains the result of the analysis.</p>
846
846
  * @public
847
847
  */
848
- sentimentResponse?: string;
848
+ sentimentResponse?: string | undefined;
849
849
  /**
850
850
  * @deprecated
851
851
  *
@@ -871,7 +871,7 @@ export interface PostContentResponse {
871
871
  * in its response.</p>
872
872
  * @public
873
873
  */
874
- message?: string;
874
+ message?: string | undefined;
875
875
  /**
876
876
  * <p>The message to convey to the user. The message can come from the bot's
877
877
  * configuration or from a Lambda function.</p>
@@ -893,7 +893,7 @@ export interface PostContentResponse {
893
893
  * decode the field before you can use the value.</p>
894
894
  * @public
895
895
  */
896
- encodedMessage?: string;
896
+ encodedMessage?: string | undefined;
897
897
  /**
898
898
  * <p>The format of the response message. One of the following
899
899
  * values:</p>
@@ -922,7 +922,7 @@ export interface PostContentResponse {
922
922
  * </ul>
923
923
  * @public
924
924
  */
925
- messageFormat?: MessageFormatType;
925
+ messageFormat?: MessageFormatType | undefined;
926
926
  /**
927
927
  * <p>Identifies the current state of the user interaction. Amazon Lex returns
928
928
  * one of the following values as <code>dialogState</code>. The client can
@@ -981,13 +981,13 @@ export interface PostContentResponse {
981
981
  * </ul>
982
982
  * @public
983
983
  */
984
- dialogState?: DialogState;
984
+ dialogState?: DialogState | undefined;
985
985
  /**
986
986
  * <p> If the <code>dialogState</code> value is <code>ElicitSlot</code>,
987
987
  * returns the name of the slot for which Amazon Lex is eliciting a value. </p>
988
988
  * @public
989
989
  */
990
- slotToElicit?: string;
990
+ slotToElicit?: string | undefined;
991
991
  /**
992
992
  * @deprecated
993
993
  *
@@ -1003,7 +1003,7 @@ export interface PostContentResponse {
1003
1003
  * audio that you send.</p>
1004
1004
  * @public
1005
1005
  */
1006
- inputTranscript?: string;
1006
+ inputTranscript?: string | undefined;
1007
1007
  /**
1008
1008
  * <p>The text used to process the request.</p>
1009
1009
  * <p>If the input was an audio stream, the
@@ -1015,7 +1015,7 @@ export interface PostContentResponse {
1015
1015
  * decode the field before you can use the value.</p>
1016
1016
  * @public
1017
1017
  */
1018
- encodedInputTranscript?: string;
1018
+ encodedInputTranscript?: string | undefined;
1019
1019
  /**
1020
1020
  * <p>The prompt (or statement) to convey to the user. This is based on the
1021
1021
  * bot configuration and context. For example, if Amazon Lex did not understand
@@ -1027,19 +1027,19 @@ export interface PostContentResponse {
1027
1027
  * message in the response. </p>
1028
1028
  * @public
1029
1029
  */
1030
- audioStream?: StreamingBlobTypes;
1030
+ audioStream?: StreamingBlobTypes | undefined;
1031
1031
  /**
1032
1032
  * <p>The version of the bot that responded to the conversation. You can use
1033
1033
  * this information to help determine if one version of a bot is performing
1034
1034
  * better than another version.</p>
1035
1035
  * @public
1036
1036
  */
1037
- botVersion?: string;
1037
+ botVersion?: string | undefined;
1038
1038
  /**
1039
1039
  * <p>The unique identifier for the session.</p>
1040
1040
  * @public
1041
1041
  */
1042
- sessionId?: string;
1042
+ sessionId?: string | undefined;
1043
1043
  /**
1044
1044
  * <p>A list of active contexts for the session. A context can be set when
1045
1045
  * an intent is fulfilled or by calling the <code>PostContent</code>,
@@ -1048,7 +1048,7 @@ export interface PostContentResponse {
1048
1048
  * intent, or to modify the operation of your application.</p>
1049
1049
  * @public
1050
1050
  */
1051
- activeContexts?: __LazyJsonString | string;
1051
+ activeContexts?: __LazyJsonString | string | undefined;
1052
1052
  }
1053
1053
  /**
1054
1054
  * <p>The input speech is too long.</p>
@@ -1128,7 +1128,7 @@ export interface PostTextRequest {
1128
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
1129
  * @public
1130
1130
  */
1131
- sessionAttributes?: Record<string, string>;
1131
+ sessionAttributes?: Record<string, string> | undefined;
1132
1132
  /**
1133
1133
  * <p>Request-specific information passed between Amazon Lex and a client
1134
1134
  * application.</p>
@@ -1138,7 +1138,7 @@ export interface PostTextRequest {
1138
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
1139
  * @public
1140
1140
  */
1141
- requestAttributes?: Record<string, string>;
1141
+ requestAttributes?: Record<string, string> | undefined;
1142
1142
  /**
1143
1143
  * <p>The text that the user entered (Amazon Lex interprets this text).</p>
1144
1144
  * @public
@@ -1153,7 +1153,7 @@ export interface PostTextRequest {
1153
1153
  * contexts for the session are cleared.</p>
1154
1154
  * @public
1155
1155
  */
1156
- activeContexts?: ActiveContext[];
1156
+ activeContexts?: ActiveContext[] | undefined;
1157
1157
  }
1158
1158
  /**
1159
1159
  * <p>Provides a score that indicates the confidence that Amazon Lex has that an
@@ -1167,7 +1167,7 @@ export interface IntentConfidence {
1167
1167
  * higher confidence.</p>
1168
1168
  * @public
1169
1169
  */
1170
- score?: number;
1170
+ score?: number | undefined;
1171
1171
  }
1172
1172
  /**
1173
1173
  * <p>An intent that Amazon Lex suggests satisfies the user's intent. Includes
@@ -1181,18 +1181,18 @@ export interface PredictedIntent {
1181
1181
  * intent.</p>
1182
1182
  * @public
1183
1183
  */
1184
- intentName?: string;
1184
+ intentName?: string | undefined;
1185
1185
  /**
1186
1186
  * <p>Indicates how confident Amazon Lex is that an intent satisfies the user's
1187
1187
  * intent.</p>
1188
1188
  * @public
1189
1189
  */
1190
- nluIntentConfidence?: IntentConfidence;
1190
+ nluIntentConfidence?: IntentConfidence | undefined;
1191
1191
  /**
1192
1192
  * <p>The slot and slot values associated with the predicted intent.</p>
1193
1193
  * @public
1194
1194
  */
1195
- slots?: Record<string, string>;
1195
+ slots?: Record<string, string> | undefined;
1196
1196
  }
1197
1197
  /**
1198
1198
  * @public
@@ -1234,27 +1234,27 @@ export interface GenericAttachment {
1234
1234
  * <p>The title of the option.</p>
1235
1235
  * @public
1236
1236
  */
1237
- title?: string;
1237
+ title?: string | undefined;
1238
1238
  /**
1239
1239
  * <p>The subtitle shown below the title.</p>
1240
1240
  * @public
1241
1241
  */
1242
- subTitle?: string;
1242
+ subTitle?: string | undefined;
1243
1243
  /**
1244
1244
  * <p>The URL of an attachment to the response card.</p>
1245
1245
  * @public
1246
1246
  */
1247
- attachmentLinkUrl?: string;
1247
+ attachmentLinkUrl?: string | undefined;
1248
1248
  /**
1249
1249
  * <p>The URL of an image that is displayed to the user.</p>
1250
1250
  * @public
1251
1251
  */
1252
- imageUrl?: string;
1252
+ imageUrl?: string | undefined;
1253
1253
  /**
1254
1254
  * <p>The list of options to show to the user.</p>
1255
1255
  * @public
1256
1256
  */
1257
- buttons?: Button[];
1257
+ buttons?: Button[] | undefined;
1258
1258
  }
1259
1259
  /**
1260
1260
  * <p>If you configure a response card when creating your bots, Amazon Lex
@@ -1269,17 +1269,17 @@ export interface ResponseCard {
1269
1269
  * <p>The version of the response card format.</p>
1270
1270
  * @public
1271
1271
  */
1272
- version?: string;
1272
+ version?: string | undefined;
1273
1273
  /**
1274
1274
  * <p>The content type of the response.</p>
1275
1275
  * @public
1276
1276
  */
1277
- contentType?: ContentType;
1277
+ contentType?: ContentType | undefined;
1278
1278
  /**
1279
1279
  * <p>An array of attachment objects representing options.</p>
1280
1280
  * @public
1281
1281
  */
1282
- genericAttachments?: GenericAttachment[];
1282
+ genericAttachments?: GenericAttachment[] | undefined;
1283
1283
  }
1284
1284
  /**
1285
1285
  * <p>The sentiment expressed in an utterance.</p>
@@ -1294,12 +1294,12 @@ export interface SentimentResponse {
1294
1294
  * confidence in.</p>
1295
1295
  * @public
1296
1296
  */
1297
- sentimentLabel?: string;
1297
+ sentimentLabel?: string | undefined;
1298
1298
  /**
1299
1299
  * <p>The likelihood that the sentiment was correctly inferred.</p>
1300
1300
  * @public
1301
1301
  */
1302
- sentimentScore?: string;
1302
+ sentimentScore?: string | undefined;
1303
1303
  }
1304
1304
  /**
1305
1305
  * @public
@@ -1309,7 +1309,7 @@ export interface PostTextResponse {
1309
1309
  * <p>The current user intent that Amazon Lex is aware of.</p>
1310
1310
  * @public
1311
1311
  */
1312
- intentName?: string;
1312
+ intentName?: string | undefined;
1313
1313
  /**
1314
1314
  * <p>Provides a score that indicates how confident Amazon Lex is that the
1315
1315
  * returned intent is the one that matches the user's intent. The score is
@@ -1318,7 +1318,7 @@ export interface PostTextResponse {
1318
1318
  * change based on improvements to Amazon Lex.</p>
1319
1319
  * @public
1320
1320
  */
1321
- nluIntentConfidence?: IntentConfidence;
1321
+ nluIntentConfidence?: IntentConfidence | undefined;
1322
1322
  /**
1323
1323
  * <p>One to four alternative intents that may be applicable to the user's
1324
1324
  * intent.</p>
@@ -1327,7 +1327,7 @@ export interface PostTextResponse {
1327
1327
  * the confidence score.</p>
1328
1328
  * @public
1329
1329
  */
1330
- alternativeIntents?: PredictedIntent[];
1330
+ alternativeIntents?: PredictedIntent[] | undefined;
1331
1331
  /**
1332
1332
  * <p> The intent slots that Amazon Lex detected from the user input in the
1333
1333
  * conversation. </p>
@@ -1344,13 +1344,13 @@ export interface PostTextResponse {
1344
1344
  * <code>ORIGINAL_VALUE</code>.</p>
1345
1345
  * @public
1346
1346
  */
1347
- slots?: Record<string, string>;
1347
+ slots?: Record<string, string> | undefined;
1348
1348
  /**
1349
1349
  * <p>A map of key-value pairs representing the session-specific context
1350
1350
  * information.</p>
1351
1351
  * @public
1352
1352
  */
1353
- sessionAttributes?: Record<string, string>;
1353
+ sessionAttributes?: Record<string, string> | undefined;
1354
1354
  /**
1355
1355
  * <p>The message to convey to the user. The message can come from the bot's
1356
1356
  * configuration or from a Lambda function.</p>
@@ -1370,14 +1370,14 @@ export interface PostTextResponse {
1370
1370
  * in its response.</p>
1371
1371
  * @public
1372
1372
  */
1373
- message?: string;
1373
+ message?: string | undefined;
1374
1374
  /**
1375
1375
  * <p>The sentiment expressed in and utterance.</p>
1376
1376
  * <p>When the bot is configured to send utterances to Amazon Comprehend for
1377
1377
  * sentiment analysis, this field contains the result of the analysis.</p>
1378
1378
  * @public
1379
1379
  */
1380
- sentimentResponse?: SentimentResponse;
1380
+ sentimentResponse?: SentimentResponse | undefined;
1381
1381
  /**
1382
1382
  * <p>The format of the response message. One of the following
1383
1383
  * values:</p>
@@ -1406,7 +1406,7 @@ export interface PostTextResponse {
1406
1406
  * </ul>
1407
1407
  * @public
1408
1408
  */
1409
- messageFormat?: MessageFormatType;
1409
+ messageFormat?: MessageFormatType | undefined;
1410
1410
  /**
1411
1411
  * <p> Identifies the current state of the user interaction. Amazon Lex returns
1412
1412
  * one of the following values as <code>dialogState</code>. The client can
@@ -1466,13 +1466,13 @@ export interface PostTextResponse {
1466
1466
  * </ul>
1467
1467
  * @public
1468
1468
  */
1469
- dialogState?: DialogState;
1469
+ dialogState?: DialogState | undefined;
1470
1470
  /**
1471
1471
  * <p>If the <code>dialogState</code> value is <code>ElicitSlot</code>,
1472
1472
  * returns the name of the slot for which Amazon Lex is eliciting a value. </p>
1473
1473
  * @public
1474
1474
  */
1475
- slotToElicit?: string;
1475
+ slotToElicit?: string | undefined;
1476
1476
  /**
1477
1477
  * <p>Represents the options that the user has to respond to the current
1478
1478
  * prompt. Response Card can come from the bot configuration (in the
@@ -1480,19 +1480,19 @@ export interface PostTextResponse {
1480
1480
  * code hook (Lambda function). </p>
1481
1481
  * @public
1482
1482
  */
1483
- responseCard?: ResponseCard;
1483
+ responseCard?: ResponseCard | undefined;
1484
1484
  /**
1485
1485
  * <p>A unique identifier for the session.</p>
1486
1486
  * @public
1487
1487
  */
1488
- sessionId?: string;
1488
+ sessionId?: string | undefined;
1489
1489
  /**
1490
1490
  * <p>The version of the bot that responded to the conversation. You can use
1491
1491
  * this information to help determine if one version of a bot is performing
1492
1492
  * better than another version.</p>
1493
1493
  * @public
1494
1494
  */
1495
- botVersion?: string;
1495
+ botVersion?: string | undefined;
1496
1496
  /**
1497
1497
  * <p>A list of active contexts for the session. A context can be set when
1498
1498
  * an intent is fulfilled or by calling the <code>PostContent</code>,
@@ -1501,7 +1501,7 @@ export interface PostTextResponse {
1501
1501
  * intent, or to modify the operation of your application.</p>
1502
1502
  * @public
1503
1503
  */
1504
- activeContexts?: ActiveContext[];
1504
+ activeContexts?: ActiveContext[] | undefined;
1505
1505
  }
1506
1506
  /**
1507
1507
  * @public
@@ -1529,13 +1529,13 @@ export interface PutSessionRequest {
1529
1529
  * a client application.</p>
1530
1530
  * @public
1531
1531
  */
1532
- sessionAttributes?: Record<string, string>;
1532
+ sessionAttributes?: Record<string, string> | undefined;
1533
1533
  /**
1534
1534
  * <p>Sets the next action that the bot should take to fulfill the
1535
1535
  * conversation.</p>
1536
1536
  * @public
1537
1537
  */
1538
- dialogAction?: DialogAction;
1538
+ dialogAction?: DialogAction | undefined;
1539
1539
  /**
1540
1540
  * <p>A summary of the recent intents for the bot. You can use the intent
1541
1541
  * summary view to set a checkpoint label on an intent and modify attributes
@@ -1567,7 +1567,7 @@ export interface PutSessionRequest {
1567
1567
  * call to <code>GetSession</code> will only return one intent.</p>
1568
1568
  * @public
1569
1569
  */
1570
- recentIntentSummaryView?: IntentSummary[];
1570
+ recentIntentSummaryView?: IntentSummary[] | undefined;
1571
1571
  /**
1572
1572
  * <p>The message that Amazon Lex returns in the response can be either text or
1573
1573
  * speech based depending on the value of this field.</p>
@@ -1619,7 +1619,7 @@ export interface PutSessionRequest {
1619
1619
  * </ul>
1620
1620
  * @public
1621
1621
  */
1622
- accept?: string;
1622
+ accept?: string | undefined;
1623
1623
  /**
1624
1624
  * <p>A list of contexts active for the request. A context can be activated
1625
1625
  * when a previous intent is fulfilled, or by including the context in the
@@ -1629,7 +1629,7 @@ export interface PutSessionRequest {
1629
1629
  * contexts for the session are cleared.</p>
1630
1630
  * @public
1631
1631
  */
1632
- activeContexts?: ActiveContext[];
1632
+ activeContexts?: ActiveContext[] | undefined;
1633
1633
  }
1634
1634
  /**
1635
1635
  * @public
@@ -1640,12 +1640,12 @@ export interface PutSessionResponse {
1640
1640
  * the request.</p>
1641
1641
  * @public
1642
1642
  */
1643
- contentType?: string;
1643
+ contentType?: string | undefined;
1644
1644
  /**
1645
1645
  * <p>The name of the current intent.</p>
1646
1646
  * @public
1647
1647
  */
1648
- intentName?: string;
1648
+ intentName?: string | undefined;
1649
1649
  /**
1650
1650
  * <p>Map of zero or more intent slots Amazon Lex detected from the user input
1651
1651
  * during the conversation.</p>
@@ -1662,13 +1662,13 @@ export interface PutSessionResponse {
1662
1662
  * <code>ORIGINAL_VALUE</code>. </p>
1663
1663
  * @public
1664
1664
  */
1665
- slots?: __LazyJsonString | string;
1665
+ slots?: __LazyJsonString | string | undefined;
1666
1666
  /**
1667
1667
  * <p>Map of key/value pairs representing session-specific context
1668
1668
  * information.</p>
1669
1669
  * @public
1670
1670
  */
1671
- sessionAttributes?: __LazyJsonString | string;
1671
+ sessionAttributes?: __LazyJsonString | string | undefined;
1672
1672
  /**
1673
1673
  * @deprecated
1674
1674
  *
@@ -1679,14 +1679,14 @@ export interface PutSessionResponse {
1679
1679
  * <code>encodedMessage</code> field instead.</p>
1680
1680
  * @public
1681
1681
  */
1682
- message?: string;
1682
+ message?: string | undefined;
1683
1683
  /**
1684
1684
  * <p>The next message that should be presented to the user.</p>
1685
1685
  * <p>The <code>encodedMessage</code> field is base-64 encoded. You must
1686
1686
  * decode the field before you can use the value.</p>
1687
1687
  * @public
1688
1688
  */
1689
- encodedMessage?: string;
1689
+ encodedMessage?: string | undefined;
1690
1690
  /**
1691
1691
  * <p>The format of the response message. One of the following
1692
1692
  * values:</p>
@@ -1715,7 +1715,7 @@ export interface PutSessionResponse {
1715
1715
  * </ul>
1716
1716
  * @public
1717
1717
  */
1718
- messageFormat?: MessageFormatType;
1718
+ messageFormat?: MessageFormatType | undefined;
1719
1719
  /**
1720
1720
  * <p></p>
1721
1721
  * <ul>
@@ -1754,28 +1754,28 @@ export interface PutSessionResponse {
1754
1754
  * </ul>
1755
1755
  * @public
1756
1756
  */
1757
- dialogState?: DialogState;
1757
+ dialogState?: DialogState | undefined;
1758
1758
  /**
1759
1759
  * <p>If the <code>dialogState</code> is <code>ElicitSlot</code>, returns
1760
1760
  * the name of the slot for which Amazon Lex is eliciting a value.</p>
1761
1761
  * @public
1762
1762
  */
1763
- slotToElicit?: string;
1763
+ slotToElicit?: string | undefined;
1764
1764
  /**
1765
1765
  * <p>The audio version of the message to convey to the user.</p>
1766
1766
  * @public
1767
1767
  */
1768
- audioStream?: StreamingBlobTypes;
1768
+ audioStream?: StreamingBlobTypes | undefined;
1769
1769
  /**
1770
1770
  * <p>A unique identifier for the session.</p>
1771
1771
  * @public
1772
1772
  */
1773
- sessionId?: string;
1773
+ sessionId?: string | undefined;
1774
1774
  /**
1775
1775
  * <p>A list of active contexts for the session.</p>
1776
1776
  * @public
1777
1777
  */
1778
- activeContexts?: __LazyJsonString | string;
1778
+ activeContexts?: __LazyJsonString | string | undefined;
1779
1779
  }
1780
1780
  /**
1781
1781
  * @internal
@@ -5,8 +5,8 @@ import {
5
5
  import { StreamingBlobTypes } from "@smithy/types";
6
6
  import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
7
7
  export interface ActiveContextTimeToLive {
8
- timeToLiveInSeconds?: number;
9
- turnsToLive?: number;
8
+ timeToLiveInSeconds?: number | undefined;
9
+ turnsToLive?: number | undefined;
10
10
  }
11
11
  export interface ActiveContext {
12
12
  name: string | undefined;
@@ -31,10 +31,10 @@ export interface DeleteSessionRequest {
31
31
  userId: string | undefined;
32
32
  }
33
33
  export interface DeleteSessionResponse {
34
- botName?: string;
35
- botAlias?: string;
36
- userId?: string;
37
- sessionId?: string;
34
+ botName?: string | undefined;
35
+ botAlias?: string | undefined;
36
+ userId?: string | undefined;
37
+ sessionId?: string | undefined;
38
38
  }
39
39
  export declare class InternalFailureException extends __BaseException {
40
40
  readonly name: "InternalFailureException";
@@ -46,7 +46,7 @@ export declare class InternalFailureException extends __BaseException {
46
46
  export declare class LimitExceededException extends __BaseException {
47
47
  readonly name: "LimitExceededException";
48
48
  readonly $fault: "client";
49
- retryAfterSeconds?: string;
49
+ retryAfterSeconds?: string | undefined;
50
50
  constructor(
51
51
  opts: __ExceptionOptionType<LimitExceededException, __BaseException>
52
52
  );
@@ -60,7 +60,7 @@ export interface GetSessionRequest {
60
60
  botName: string | undefined;
61
61
  botAlias: string | undefined;
62
62
  userId: string | undefined;
63
- checkpointLabelFilter?: string;
63
+ checkpointLabelFilter?: string | undefined;
64
64
  }
65
65
  export declare const FulfillmentState: {
66
66
  readonly FAILED: "Failed";
@@ -88,12 +88,12 @@ export type DialogActionType =
88
88
  (typeof DialogActionType)[keyof typeof DialogActionType];
89
89
  export interface DialogAction {
90
90
  type: DialogActionType | undefined;
91
- intentName?: string;
92
- slots?: Record<string, string>;
93
- slotToElicit?: string;
94
- fulfillmentState?: FulfillmentState;
95
- message?: string;
96
- messageFormat?: MessageFormatType;
91
+ intentName?: string | undefined;
92
+ slots?: Record<string, string> | undefined;
93
+ slotToElicit?: string | undefined;
94
+ fulfillmentState?: FulfillmentState | undefined;
95
+ message?: string | undefined;
96
+ messageFormat?: MessageFormatType | undefined;
97
97
  }
98
98
  export declare const ConfirmationStatus: {
99
99
  readonly CONFIRMED: "Confirmed";
@@ -103,25 +103,25 @@ export declare const ConfirmationStatus: {
103
103
  export type ConfirmationStatus =
104
104
  (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
105
105
  export interface IntentSummary {
106
- intentName?: string;
107
- checkpointLabel?: string;
108
- slots?: Record<string, string>;
109
- confirmationStatus?: ConfirmationStatus;
106
+ intentName?: string | undefined;
107
+ checkpointLabel?: string | undefined;
108
+ slots?: Record<string, string> | undefined;
109
+ confirmationStatus?: ConfirmationStatus | undefined;
110
110
  dialogActionType: DialogActionType | undefined;
111
- fulfillmentState?: FulfillmentState;
112
- slotToElicit?: string;
111
+ fulfillmentState?: FulfillmentState | undefined;
112
+ slotToElicit?: string | undefined;
113
113
  }
114
114
  export interface GetSessionResponse {
115
- recentIntentSummaryView?: IntentSummary[];
116
- sessionAttributes?: Record<string, string>;
117
- sessionId?: string;
118
- dialogAction?: DialogAction;
119
- activeContexts?: ActiveContext[];
115
+ recentIntentSummaryView?: IntentSummary[] | undefined;
116
+ sessionAttributes?: Record<string, string> | undefined;
117
+ sessionId?: string | undefined;
118
+ dialogAction?: DialogAction | undefined;
119
+ activeContexts?: ActiveContext[] | undefined;
120
120
  }
121
121
  export declare class BadGatewayException extends __BaseException {
122
122
  readonly name: "BadGatewayException";
123
123
  readonly $fault: "server";
124
- Message?: string;
124
+ Message?: string | undefined;
125
125
  constructor(
126
126
  opts: __ExceptionOptionType<BadGatewayException, __BaseException>
127
127
  );
@@ -129,7 +129,7 @@ export declare class BadGatewayException extends __BaseException {
129
129
  export declare class DependencyFailedException extends __BaseException {
130
130
  readonly name: "DependencyFailedException";
131
131
  readonly $fault: "client";
132
- Message?: string;
132
+ Message?: string | undefined;
133
133
  constructor(
134
134
  opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
135
135
  );
@@ -137,7 +137,7 @@ export declare class DependencyFailedException extends __BaseException {
137
137
  export declare class LoopDetectedException extends __BaseException {
138
138
  readonly name: "LoopDetectedException";
139
139
  readonly $fault: "server";
140
- Message?: string;
140
+ Message?: string | undefined;
141
141
  constructor(
142
142
  opts: __ExceptionOptionType<LoopDetectedException, __BaseException>
143
143
  );
@@ -153,12 +153,12 @@ export interface PostContentRequest {
153
153
  botName: string | undefined;
154
154
  botAlias: string | undefined;
155
155
  userId: string | undefined;
156
- sessionAttributes?: __LazyJsonString | string;
157
- requestAttributes?: __LazyJsonString | string;
156
+ sessionAttributes?: __LazyJsonString | string | undefined;
157
+ requestAttributes?: __LazyJsonString | string | undefined;
158
158
  contentType: string | undefined;
159
- accept?: string;
159
+ accept?: string | undefined;
160
160
  inputStream: StreamingBlobTypes | undefined;
161
- activeContexts?: __LazyJsonString | string;
161
+ activeContexts?: __LazyJsonString | string | undefined;
162
162
  }
163
163
  export declare const DialogState: {
164
164
  readonly CONFIRM_INTENT: "ConfirmIntent";
@@ -170,24 +170,24 @@ export declare const DialogState: {
170
170
  };
171
171
  export type DialogState = (typeof DialogState)[keyof typeof DialogState];
172
172
  export interface PostContentResponse {
173
- contentType?: string;
174
- intentName?: string;
175
- nluIntentConfidence?: __LazyJsonString | string;
176
- alternativeIntents?: __LazyJsonString | string;
177
- slots?: __LazyJsonString | string;
178
- sessionAttributes?: __LazyJsonString | string;
179
- sentimentResponse?: string;
180
- message?: string;
181
- encodedMessage?: string;
182
- messageFormat?: MessageFormatType;
183
- dialogState?: DialogState;
184
- slotToElicit?: string;
185
- inputTranscript?: string;
186
- encodedInputTranscript?: string;
187
- audioStream?: StreamingBlobTypes;
188
- botVersion?: string;
189
- sessionId?: string;
190
- activeContexts?: __LazyJsonString | string;
173
+ contentType?: string | undefined;
174
+ intentName?: string | undefined;
175
+ nluIntentConfidence?: __LazyJsonString | string | undefined;
176
+ alternativeIntents?: __LazyJsonString | string | undefined;
177
+ slots?: __LazyJsonString | string | undefined;
178
+ sessionAttributes?: __LazyJsonString | string | undefined;
179
+ sentimentResponse?: string | undefined;
180
+ message?: string | undefined;
181
+ encodedMessage?: string | undefined;
182
+ messageFormat?: MessageFormatType | undefined;
183
+ dialogState?: DialogState | undefined;
184
+ slotToElicit?: string | undefined;
185
+ inputTranscript?: string | undefined;
186
+ encodedInputTranscript?: string | undefined;
187
+ audioStream?: StreamingBlobTypes | undefined;
188
+ botVersion?: string | undefined;
189
+ sessionId?: string | undefined;
190
+ activeContexts?: __LazyJsonString | string | undefined;
191
191
  }
192
192
  export declare class RequestTimeoutException extends __BaseException {
193
193
  readonly name: "RequestTimeoutException";
@@ -207,18 +207,18 @@ export interface PostTextRequest {
207
207
  botName: string | undefined;
208
208
  botAlias: string | undefined;
209
209
  userId: string | undefined;
210
- sessionAttributes?: Record<string, string>;
211
- requestAttributes?: Record<string, string>;
210
+ sessionAttributes?: Record<string, string> | undefined;
211
+ requestAttributes?: Record<string, string> | undefined;
212
212
  inputText: string | undefined;
213
- activeContexts?: ActiveContext[];
213
+ activeContexts?: ActiveContext[] | undefined;
214
214
  }
215
215
  export interface IntentConfidence {
216
- score?: number;
216
+ score?: number | undefined;
217
217
  }
218
218
  export interface PredictedIntent {
219
- intentName?: string;
220
- nluIntentConfidence?: IntentConfidence;
221
- slots?: Record<string, string>;
219
+ intentName?: string | undefined;
220
+ nluIntentConfidence?: IntentConfidence | undefined;
221
+ slots?: Record<string, string> | undefined;
222
222
  }
223
223
  export declare const ContentType: {
224
224
  readonly GENERIC: "application/vnd.amazonaws.card.generic";
@@ -229,60 +229,60 @@ export interface Button {
229
229
  value: string | undefined;
230
230
  }
231
231
  export interface GenericAttachment {
232
- title?: string;
233
- subTitle?: string;
234
- attachmentLinkUrl?: string;
235
- imageUrl?: string;
236
- buttons?: Button[];
232
+ title?: string | undefined;
233
+ subTitle?: string | undefined;
234
+ attachmentLinkUrl?: string | undefined;
235
+ imageUrl?: string | undefined;
236
+ buttons?: Button[] | undefined;
237
237
  }
238
238
  export interface ResponseCard {
239
- version?: string;
240
- contentType?: ContentType;
241
- genericAttachments?: GenericAttachment[];
239
+ version?: string | undefined;
240
+ contentType?: ContentType | undefined;
241
+ genericAttachments?: GenericAttachment[] | undefined;
242
242
  }
243
243
  export interface SentimentResponse {
244
- sentimentLabel?: string;
245
- sentimentScore?: string;
244
+ sentimentLabel?: string | undefined;
245
+ sentimentScore?: string | undefined;
246
246
  }
247
247
  export interface PostTextResponse {
248
- intentName?: string;
249
- nluIntentConfidence?: IntentConfidence;
250
- alternativeIntents?: PredictedIntent[];
251
- slots?: Record<string, string>;
252
- sessionAttributes?: Record<string, string>;
253
- message?: string;
254
- sentimentResponse?: SentimentResponse;
255
- messageFormat?: MessageFormatType;
256
- dialogState?: DialogState;
257
- slotToElicit?: string;
258
- responseCard?: ResponseCard;
259
- sessionId?: string;
260
- botVersion?: string;
261
- activeContexts?: ActiveContext[];
248
+ intentName?: string | undefined;
249
+ nluIntentConfidence?: IntentConfidence | undefined;
250
+ alternativeIntents?: PredictedIntent[] | undefined;
251
+ slots?: Record<string, string> | undefined;
252
+ sessionAttributes?: Record<string, string> | undefined;
253
+ message?: string | undefined;
254
+ sentimentResponse?: SentimentResponse | undefined;
255
+ messageFormat?: MessageFormatType | undefined;
256
+ dialogState?: DialogState | undefined;
257
+ slotToElicit?: string | undefined;
258
+ responseCard?: ResponseCard | undefined;
259
+ sessionId?: string | undefined;
260
+ botVersion?: string | undefined;
261
+ activeContexts?: ActiveContext[] | undefined;
262
262
  }
263
263
  export interface PutSessionRequest {
264
264
  botName: string | undefined;
265
265
  botAlias: string | undefined;
266
266
  userId: string | undefined;
267
- sessionAttributes?: Record<string, string>;
268
- dialogAction?: DialogAction;
269
- recentIntentSummaryView?: IntentSummary[];
270
- accept?: string;
271
- activeContexts?: ActiveContext[];
267
+ sessionAttributes?: Record<string, string> | undefined;
268
+ dialogAction?: DialogAction | undefined;
269
+ recentIntentSummaryView?: IntentSummary[] | undefined;
270
+ accept?: string | undefined;
271
+ activeContexts?: ActiveContext[] | undefined;
272
272
  }
273
273
  export interface PutSessionResponse {
274
- contentType?: string;
275
- intentName?: string;
276
- slots?: __LazyJsonString | string;
277
- sessionAttributes?: __LazyJsonString | string;
278
- message?: string;
279
- encodedMessage?: string;
280
- messageFormat?: MessageFormatType;
281
- dialogState?: DialogState;
282
- slotToElicit?: string;
283
- audioStream?: StreamingBlobTypes;
284
- sessionId?: string;
285
- activeContexts?: __LazyJsonString | string;
274
+ contentType?: string | undefined;
275
+ intentName?: string | undefined;
276
+ slots?: __LazyJsonString | string | undefined;
277
+ sessionAttributes?: __LazyJsonString | string | undefined;
278
+ message?: string | undefined;
279
+ encodedMessage?: string | undefined;
280
+ messageFormat?: MessageFormatType | undefined;
281
+ dialogState?: DialogState | undefined;
282
+ slotToElicit?: string | undefined;
283
+ audioStream?: StreamingBlobTypes | undefined;
284
+ sessionId?: string | undefined;
285
+ activeContexts?: __LazyJsonString | string | undefined;
286
286
  }
287
287
  export declare const ActiveContextFilterSensitiveLog: (
288
288
  obj: ActiveContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-service",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
4
- "version": "3.686.0",
4
+ "version": "3.691.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-runtime-service",
@@ -22,19 +22,19 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.686.0",
26
- "@aws-sdk/client-sts": "3.686.0",
27
- "@aws-sdk/core": "3.686.0",
28
- "@aws-sdk/credential-provider-node": "3.686.0",
25
+ "@aws-sdk/client-sso-oidc": "3.691.0",
26
+ "@aws-sdk/client-sts": "3.691.0",
27
+ "@aws-sdk/core": "3.691.0",
28
+ "@aws-sdk/credential-provider-node": "3.691.0",
29
29
  "@aws-sdk/middleware-host-header": "3.686.0",
30
30
  "@aws-sdk/middleware-logger": "3.686.0",
31
31
  "@aws-sdk/middleware-recursion-detection": "3.686.0",
32
- "@aws-sdk/middleware-user-agent": "3.686.0",
32
+ "@aws-sdk/middleware-user-agent": "3.691.0",
33
33
  "@aws-sdk/region-config-resolver": "3.686.0",
34
34
  "@aws-sdk/types": "3.686.0",
35
35
  "@aws-sdk/util-endpoints": "3.686.0",
36
36
  "@aws-sdk/util-user-agent-browser": "3.686.0",
37
- "@aws-sdk/util-user-agent-node": "3.686.0",
37
+ "@aws-sdk/util-user-agent-node": "3.691.0",
38
38
  "@smithy/config-resolver": "^3.0.10",
39
39
  "@smithy/core": "^2.5.1",
40
40
  "@smithy/fetch-http-handler": "^4.0.0",