@aws-sdk/client-lex-runtime-service 3.934.0 → 3.935.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.
@@ -0,0 +1,160 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
3
+ /**
4
+ * <p> Request validation failed, there is no usable message in the context,
5
+ * or the bot build failed, is still in progress, or contains unbuilt
6
+ * changes. </p>
7
+ * @public
8
+ */
9
+ export declare class BadRequestException extends __BaseException {
10
+ readonly name: "BadRequestException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p> Two clients are using the same AWS account, Amazon Lex bot, and user
19
+ * ID. </p>
20
+ * @public
21
+ */
22
+ export declare class ConflictException extends __BaseException {
23
+ readonly name: "ConflictException";
24
+ readonly $fault: "client";
25
+ /**
26
+ * @internal
27
+ */
28
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
29
+ }
30
+ /**
31
+ * <p>Internal service error. Retry the call.</p>
32
+ * @public
33
+ */
34
+ export declare class InternalFailureException extends __BaseException {
35
+ readonly name: "InternalFailureException";
36
+ readonly $fault: "server";
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>Exceeded a limit.</p>
44
+ * @public
45
+ */
46
+ export declare class LimitExceededException extends __BaseException {
47
+ readonly name: "LimitExceededException";
48
+ readonly $fault: "client";
49
+ retryAfterSeconds?: string | undefined;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>The resource (such as the Amazon Lex bot or an alias) that is referred
57
+ * to is not found.</p>
58
+ * @public
59
+ */
60
+ export declare class NotFoundException extends __BaseException {
61
+ readonly name: "NotFoundException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
67
+ }
68
+ /**
69
+ * <p>Either the Amazon Lex bot is still building, or one of the dependent
70
+ * services (Amazon Polly, AWS Lambda) failed with an internal service
71
+ * error.</p>
72
+ * @public
73
+ */
74
+ export declare class BadGatewayException extends __BaseException {
75
+ readonly name: "BadGatewayException";
76
+ readonly $fault: "server";
77
+ Message?: string | undefined;
78
+ /**
79
+ * @internal
80
+ */
81
+ constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
82
+ }
83
+ /**
84
+ * <p> One of the dependencies, such as AWS Lambda or Amazon Polly, threw an
85
+ * exception. For example, </p>
86
+ * <ul>
87
+ * <li>
88
+ * <p>If Amazon Lex does not have sufficient permissions to call a Lambda
89
+ * function.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>If a Lambda function takes longer than 30 seconds to
93
+ * execute.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>If a fulfillment Lambda function returns a <code>Delegate</code>
97
+ * dialog action without removing any slot values.</p>
98
+ * </li>
99
+ * </ul>
100
+ * @public
101
+ */
102
+ export declare class DependencyFailedException extends __BaseException {
103
+ readonly name: "DependencyFailedException";
104
+ readonly $fault: "client";
105
+ Message?: string | undefined;
106
+ /**
107
+ * @internal
108
+ */
109
+ constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
110
+ }
111
+ /**
112
+ * <p>This exception is not used.</p>
113
+ * @public
114
+ */
115
+ export declare class LoopDetectedException extends __BaseException {
116
+ readonly name: "LoopDetectedException";
117
+ readonly $fault: "server";
118
+ Message?: string | undefined;
119
+ /**
120
+ * @internal
121
+ */
122
+ constructor(opts: __ExceptionOptionType<LoopDetectedException, __BaseException>);
123
+ }
124
+ /**
125
+ * <p>The accept header in the request does not have a valid value.</p>
126
+ * @public
127
+ */
128
+ export declare class NotAcceptableException extends __BaseException {
129
+ readonly name: "NotAcceptableException";
130
+ readonly $fault: "client";
131
+ /**
132
+ * @internal
133
+ */
134
+ constructor(opts: __ExceptionOptionType<NotAcceptableException, __BaseException>);
135
+ }
136
+ /**
137
+ * <p>The input speech is too long.</p>
138
+ * @public
139
+ */
140
+ export declare class RequestTimeoutException extends __BaseException {
141
+ readonly name: "RequestTimeoutException";
142
+ readonly $fault: "client";
143
+ /**
144
+ * @internal
145
+ */
146
+ constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
147
+ }
148
+ /**
149
+ * <p>The Content-Type header (<code>PostContent</code> API) has an invalid
150
+ * value. </p>
151
+ * @public
152
+ */
153
+ export declare class UnsupportedMediaTypeException extends __BaseException {
154
+ readonly name: "UnsupportedMediaTypeException";
155
+ readonly $fault: "client";
156
+ /**
157
+ * @internal
158
+ */
159
+ constructor(opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>);
160
+ }
@@ -1,6 +1,6 @@
1
- import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion, ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
2
2
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
3
+ import { ConfirmationStatus, ContentType, DialogActionType, DialogState, FulfillmentState, MessageFormatType } from "./enums";
4
4
  /**
5
5
  * <p>The length of time or number of turns that a context remains
6
6
  * active.</p>
@@ -50,33 +50,6 @@ export interface ActiveContext {
50
50
  */
51
51
  parameters: Record<string, string> | undefined;
52
52
  }
53
- /**
54
- * <p> Request validation failed, there is no usable message in the context,
55
- * or the bot build failed, is still in progress, or contains unbuilt
56
- * changes. </p>
57
- * @public
58
- */
59
- export declare class BadRequestException extends __BaseException {
60
- readonly name: "BadRequestException";
61
- readonly $fault: "client";
62
- /**
63
- * @internal
64
- */
65
- constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
66
- }
67
- /**
68
- * <p> Two clients are using the same AWS account, Amazon Lex bot, and user
69
- * ID. </p>
70
- * @public
71
- */
72
- export declare class ConflictException extends __BaseException {
73
- readonly name: "ConflictException";
74
- readonly $fault: "client";
75
- /**
76
- * @internal
77
- */
78
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
79
- }
80
53
  /**
81
54
  * @public
82
55
  */
@@ -122,44 +95,6 @@ export interface DeleteSessionResponse {
122
95
  */
123
96
  sessionId?: string | undefined;
124
97
  }
125
- /**
126
- * <p>Internal service error. Retry the call.</p>
127
- * @public
128
- */
129
- export declare class InternalFailureException extends __BaseException {
130
- readonly name: "InternalFailureException";
131
- readonly $fault: "server";
132
- /**
133
- * @internal
134
- */
135
- constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
136
- }
137
- /**
138
- * <p>Exceeded a limit.</p>
139
- * @public
140
- */
141
- export declare class LimitExceededException extends __BaseException {
142
- readonly name: "LimitExceededException";
143
- readonly $fault: "client";
144
- retryAfterSeconds?: string | undefined;
145
- /**
146
- * @internal
147
- */
148
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
149
- }
150
- /**
151
- * <p>The resource (such as the Amazon Lex bot or an alias) that is referred
152
- * to is not found.</p>
153
- * @public
154
- */
155
- export declare class NotFoundException extends __BaseException {
156
- readonly name: "NotFoundException";
157
- readonly $fault: "client";
158
- /**
159
- * @internal
160
- */
161
- constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
162
- }
163
98
  /**
164
99
  * @public
165
100
  */
@@ -190,48 +125,6 @@ export interface GetSessionRequest {
190
125
  */
191
126
  checkpointLabelFilter?: string | undefined;
192
127
  }
193
- /**
194
- * @public
195
- * @enum
196
- */
197
- export declare const FulfillmentState: {
198
- readonly FAILED: "Failed";
199
- readonly FULFILLED: "Fulfilled";
200
- readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
201
- };
202
- /**
203
- * @public
204
- */
205
- export type FulfillmentState = (typeof FulfillmentState)[keyof typeof FulfillmentState];
206
- /**
207
- * @public
208
- * @enum
209
- */
210
- export declare const MessageFormatType: {
211
- readonly COMPOSITE: "Composite";
212
- readonly CUSTOM_PAYLOAD: "CustomPayload";
213
- readonly PLAIN_TEXT: "PlainText";
214
- readonly SSML: "SSML";
215
- };
216
- /**
217
- * @public
218
- */
219
- export type MessageFormatType = (typeof MessageFormatType)[keyof typeof MessageFormatType];
220
- /**
221
- * @public
222
- * @enum
223
- */
224
- export declare const DialogActionType: {
225
- readonly CLOSE: "Close";
226
- readonly CONFIRM_INTENT: "ConfirmIntent";
227
- readonly DELEGATE: "Delegate";
228
- readonly ELICIT_INTENT: "ElicitIntent";
229
- readonly ELICIT_SLOT: "ElicitSlot";
230
- };
231
- /**
232
- * @public
233
- */
234
- export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
235
128
  /**
236
129
  * <p>Describes the next action that the bot should take in its interaction
237
130
  * with the user and provides information about the context in which the
@@ -348,19 +241,6 @@ export interface DialogAction {
348
241
  */
349
242
  messageFormat?: MessageFormatType | undefined;
350
243
  }
351
- /**
352
- * @public
353
- * @enum
354
- */
355
- export declare const ConfirmationStatus: {
356
- readonly CONFIRMED: "Confirmed";
357
- readonly DENIED: "Denied";
358
- readonly NONE: "None";
359
- };
360
- /**
361
- * @public
362
- */
363
- export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
364
244
  /**
365
245
  * <p>Provides information about the state of an intent. You can use this
366
246
  * information to get the current state of an intent so that you can process
@@ -517,74 +397,6 @@ export interface GetSessionResponse {
517
397
  */
518
398
  activeContexts?: ActiveContext[] | undefined;
519
399
  }
520
- /**
521
- * <p>Either the Amazon Lex bot is still building, or one of the dependent
522
- * services (Amazon Polly, AWS Lambda) failed with an internal service
523
- * error.</p>
524
- * @public
525
- */
526
- export declare class BadGatewayException extends __BaseException {
527
- readonly name: "BadGatewayException";
528
- readonly $fault: "server";
529
- Message?: string | undefined;
530
- /**
531
- * @internal
532
- */
533
- constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
534
- }
535
- /**
536
- * <p> One of the dependencies, such as AWS Lambda or Amazon Polly, threw an
537
- * exception. For example, </p>
538
- * <ul>
539
- * <li>
540
- * <p>If Amazon Lex does not have sufficient permissions to call a Lambda
541
- * function.</p>
542
- * </li>
543
- * <li>
544
- * <p>If a Lambda function takes longer than 30 seconds to
545
- * execute.</p>
546
- * </li>
547
- * <li>
548
- * <p>If a fulfillment Lambda function returns a <code>Delegate</code>
549
- * dialog action without removing any slot values.</p>
550
- * </li>
551
- * </ul>
552
- * @public
553
- */
554
- export declare class DependencyFailedException extends __BaseException {
555
- readonly name: "DependencyFailedException";
556
- readonly $fault: "client";
557
- Message?: string | undefined;
558
- /**
559
- * @internal
560
- */
561
- constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
562
- }
563
- /**
564
- * <p>This exception is not used.</p>
565
- * @public
566
- */
567
- export declare class LoopDetectedException extends __BaseException {
568
- readonly name: "LoopDetectedException";
569
- readonly $fault: "server";
570
- Message?: string | undefined;
571
- /**
572
- * @internal
573
- */
574
- constructor(opts: __ExceptionOptionType<LoopDetectedException, __BaseException>);
575
- }
576
- /**
577
- * <p>The accept header in the request does not have a valid value.</p>
578
- * @public
579
- */
580
- export declare class NotAcceptableException extends __BaseException {
581
- readonly name: "NotAcceptableException";
582
- readonly $fault: "client";
583
- /**
584
- * @internal
585
- */
586
- constructor(opts: __ExceptionOptionType<NotAcceptableException, __BaseException>);
587
- }
588
400
  /**
589
401
  * @public
590
402
  */
@@ -766,22 +578,6 @@ export interface PostContentRequest {
766
578
  */
767
579
  activeContexts?: __AutomaticJsonStringConversion | string | undefined;
768
580
  }
769
- /**
770
- * @public
771
- * @enum
772
- */
773
- export declare const DialogState: {
774
- readonly CONFIRM_INTENT: "ConfirmIntent";
775
- readonly ELICIT_INTENT: "ElicitIntent";
776
- readonly ELICIT_SLOT: "ElicitSlot";
777
- readonly FAILED: "Failed";
778
- readonly FULFILLED: "Fulfilled";
779
- readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
780
- };
781
- /**
782
- * @public
783
- */
784
- export type DialogState = (typeof DialogState)[keyof typeof DialogState];
785
581
  /**
786
582
  * @public
787
583
  */
@@ -1050,31 +846,6 @@ export interface PostContentResponse {
1050
846
  */
1051
847
  activeContexts?: __AutomaticJsonStringConversion | string | undefined;
1052
848
  }
1053
- /**
1054
- * <p>The input speech is too long.</p>
1055
- * @public
1056
- */
1057
- export declare class RequestTimeoutException extends __BaseException {
1058
- readonly name: "RequestTimeoutException";
1059
- readonly $fault: "client";
1060
- /**
1061
- * @internal
1062
- */
1063
- constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
1064
- }
1065
- /**
1066
- * <p>The Content-Type header (<code>PostContent</code> API) has an invalid
1067
- * value. </p>
1068
- * @public
1069
- */
1070
- export declare class UnsupportedMediaTypeException extends __BaseException {
1071
- readonly name: "UnsupportedMediaTypeException";
1072
- readonly $fault: "client";
1073
- /**
1074
- * @internal
1075
- */
1076
- constructor(opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>);
1077
- }
1078
849
  /**
1079
850
  * @public
1080
851
  */
@@ -1194,17 +965,6 @@ export interface PredictedIntent {
1194
965
  */
1195
966
  slots?: Record<string, string> | undefined;
1196
967
  }
1197
- /**
1198
- * @public
1199
- * @enum
1200
- */
1201
- export declare const ContentType: {
1202
- readonly GENERIC: "application/vnd.amazonaws.card.generic";
1203
- };
1204
- /**
1205
- * @public
1206
- */
1207
- export type ContentType = (typeof ContentType)[keyof typeof ContentType];
1208
968
  /**
1209
969
  * <p>Represents an option to be shown on the client platform (Facebook,
1210
970
  * Slack, etc.)</p>
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { LexRuntimeServiceExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { LexRuntimeServiceServiceException } from "./models/LexRuntimeServiceServiceException";
@@ -0,0 +1,44 @@
1
+ export declare const FulfillmentState: {
2
+ readonly FAILED: "Failed";
3
+ readonly FULFILLED: "Fulfilled";
4
+ readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
5
+ };
6
+ export type FulfillmentState =
7
+ (typeof FulfillmentState)[keyof typeof FulfillmentState];
8
+ export declare const MessageFormatType: {
9
+ readonly COMPOSITE: "Composite";
10
+ readonly CUSTOM_PAYLOAD: "CustomPayload";
11
+ readonly PLAIN_TEXT: "PlainText";
12
+ readonly SSML: "SSML";
13
+ };
14
+ export type MessageFormatType =
15
+ (typeof MessageFormatType)[keyof typeof MessageFormatType];
16
+ export declare const DialogActionType: {
17
+ readonly CLOSE: "Close";
18
+ readonly CONFIRM_INTENT: "ConfirmIntent";
19
+ readonly DELEGATE: "Delegate";
20
+ readonly ELICIT_INTENT: "ElicitIntent";
21
+ readonly ELICIT_SLOT: "ElicitSlot";
22
+ };
23
+ export type DialogActionType =
24
+ (typeof DialogActionType)[keyof typeof DialogActionType];
25
+ export declare const ConfirmationStatus: {
26
+ readonly CONFIRMED: "Confirmed";
27
+ readonly DENIED: "Denied";
28
+ readonly NONE: "None";
29
+ };
30
+ export type ConfirmationStatus =
31
+ (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
32
+ export declare const DialogState: {
33
+ readonly CONFIRM_INTENT: "ConfirmIntent";
34
+ readonly ELICIT_INTENT: "ElicitIntent";
35
+ readonly ELICIT_SLOT: "ElicitSlot";
36
+ readonly FAILED: "Failed";
37
+ readonly FULFILLED: "Fulfilled";
38
+ readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
39
+ };
40
+ export type DialogState = (typeof DialogState)[keyof typeof DialogState];
41
+ export declare const ContentType: {
42
+ readonly GENERIC: "application/vnd.amazonaws.card.generic";
43
+ };
44
+ export type ContentType = (typeof ContentType)[keyof typeof ContentType];
@@ -0,0 +1,79 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
3
+ export declare class BadRequestException extends __BaseException {
4
+ readonly name: "BadRequestException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<BadRequestException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ConflictException extends __BaseException {
11
+ readonly name: "ConflictException";
12
+ readonly $fault: "client";
13
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
+ }
15
+ export declare class InternalFailureException extends __BaseException {
16
+ readonly name: "InternalFailureException";
17
+ readonly $fault: "server";
18
+ constructor(
19
+ opts: __ExceptionOptionType<InternalFailureException, __BaseException>
20
+ );
21
+ }
22
+ export declare class LimitExceededException extends __BaseException {
23
+ readonly name: "LimitExceededException";
24
+ readonly $fault: "client";
25
+ retryAfterSeconds?: string | undefined;
26
+ constructor(
27
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
28
+ );
29
+ }
30
+ export declare class NotFoundException extends __BaseException {
31
+ readonly name: "NotFoundException";
32
+ readonly $fault: "client";
33
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
34
+ }
35
+ export declare class BadGatewayException extends __BaseException {
36
+ readonly name: "BadGatewayException";
37
+ readonly $fault: "server";
38
+ Message?: string | undefined;
39
+ constructor(
40
+ opts: __ExceptionOptionType<BadGatewayException, __BaseException>
41
+ );
42
+ }
43
+ export declare class DependencyFailedException extends __BaseException {
44
+ readonly name: "DependencyFailedException";
45
+ readonly $fault: "client";
46
+ Message?: string | undefined;
47
+ constructor(
48
+ opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
49
+ );
50
+ }
51
+ export declare class LoopDetectedException extends __BaseException {
52
+ readonly name: "LoopDetectedException";
53
+ readonly $fault: "server";
54
+ Message?: string | undefined;
55
+ constructor(
56
+ opts: __ExceptionOptionType<LoopDetectedException, __BaseException>
57
+ );
58
+ }
59
+ export declare class NotAcceptableException extends __BaseException {
60
+ readonly name: "NotAcceptableException";
61
+ readonly $fault: "client";
62
+ constructor(
63
+ opts: __ExceptionOptionType<NotAcceptableException, __BaseException>
64
+ );
65
+ }
66
+ export declare class RequestTimeoutException extends __BaseException {
67
+ readonly name: "RequestTimeoutException";
68
+ readonly $fault: "client";
69
+ constructor(
70
+ opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>
71
+ );
72
+ }
73
+ export declare class UnsupportedMediaTypeException extends __BaseException {
74
+ readonly name: "UnsupportedMediaTypeException";
75
+ readonly $fault: "client";
76
+ constructor(
77
+ opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>
78
+ );
79
+ }