@aws-sdk/client-lex-runtime-v2 3.934.0 → 3.936.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,98 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
3
+ /**
4
+ * <p></p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p></p>
17
+ * @public
18
+ */
19
+ export declare class ConflictException extends __BaseException {
20
+ readonly name: "ConflictException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
26
+ }
27
+ /**
28
+ * <p></p>
29
+ * @public
30
+ */
31
+ export declare class InternalServerException extends __BaseException {
32
+ readonly name: "InternalServerException";
33
+ readonly $fault: "server";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p></p>
41
+ * @public
42
+ */
43
+ export declare class ResourceNotFoundException extends __BaseException {
44
+ readonly name: "ResourceNotFoundException";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p></p>
53
+ * @public
54
+ */
55
+ export declare class ThrottlingException extends __BaseException {
56
+ readonly name: "ThrottlingException";
57
+ readonly $fault: "client";
58
+ /**
59
+ * @internal
60
+ */
61
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
62
+ }
63
+ /**
64
+ * <p></p>
65
+ * @public
66
+ */
67
+ export declare class ValidationException extends __BaseException {
68
+ readonly name: "ValidationException";
69
+ readonly $fault: "client";
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
74
+ }
75
+ /**
76
+ * <p></p>
77
+ * @public
78
+ */
79
+ export declare class BadGatewayException extends __BaseException {
80
+ readonly name: "BadGatewayException";
81
+ readonly $fault: "server";
82
+ /**
83
+ * @internal
84
+ */
85
+ constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
86
+ }
87
+ /**
88
+ * <p></p>
89
+ * @public
90
+ */
91
+ export declare class DependencyFailedException extends __BaseException {
92
+ readonly name: "DependencyFailedException";
93
+ readonly $fault: "client";
94
+ /**
95
+ * @internal
96
+ */
97
+ constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
98
+ }
@@ -1,18 +1,6 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
1
  import { StreamingBlobTypes } from "@smithy/types";
3
- import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
4
- /**
5
- * <p></p>
6
- * @public
7
- */
8
- export declare class AccessDeniedException extends __BaseException {
9
- readonly name: "AccessDeniedException";
10
- readonly $fault: "client";
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
- }
2
+ import { ConfirmationState, ConversationMode, DialogActionType, InputMode, IntentState, InterpretationSource, MessageContentType, PlaybackInterruptionReason, SentimentType, Shape, StyleType } from "./enums";
3
+ import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException } from "./errors";
16
4
  /**
17
5
  * <p>The time that a context is active. You can specify the time to live
18
6
  * in seconds or in conversation turns.</p>
@@ -131,18 +119,6 @@ export interface AudioResponseEvent {
131
119
  */
132
120
  eventId?: string | undefined;
133
121
  }
134
- /**
135
- * <p></p>
136
- * @public
137
- */
138
- export declare class ConflictException extends __BaseException {
139
- readonly name: "ConflictException";
140
- readonly $fault: "client";
141
- /**
142
- * @internal
143
- */
144
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
145
- }
146
122
  /**
147
123
  * @public
148
124
  */
@@ -195,54 +171,6 @@ export interface DeleteSessionResponse {
195
171
  */
196
172
  sessionId?: string | undefined;
197
173
  }
198
- /**
199
- * <p></p>
200
- * @public
201
- */
202
- export declare class InternalServerException extends __BaseException {
203
- readonly name: "InternalServerException";
204
- readonly $fault: "server";
205
- /**
206
- * @internal
207
- */
208
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
209
- }
210
- /**
211
- * <p></p>
212
- * @public
213
- */
214
- export declare class ResourceNotFoundException extends __BaseException {
215
- readonly name: "ResourceNotFoundException";
216
- readonly $fault: "client";
217
- /**
218
- * @internal
219
- */
220
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
221
- }
222
- /**
223
- * <p></p>
224
- * @public
225
- */
226
- export declare class ThrottlingException extends __BaseException {
227
- readonly name: "ThrottlingException";
228
- readonly $fault: "client";
229
- /**
230
- * @internal
231
- */
232
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
233
- }
234
- /**
235
- * <p></p>
236
- * @public
237
- */
238
- export declare class ValidationException extends __BaseException {
239
- readonly name: "ValidationException";
240
- readonly $fault: "client";
241
- /**
242
- * @internal
243
- */
244
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
245
- }
246
174
  /**
247
175
  * @public
248
176
  */
@@ -269,32 +197,6 @@ export interface GetSessionRequest {
269
197
  */
270
198
  sessionId: string | undefined;
271
199
  }
272
- /**
273
- * @public
274
- * @enum
275
- */
276
- export declare const ConfirmationState: {
277
- readonly CONFIRMED: "Confirmed";
278
- readonly DENIED: "Denied";
279
- readonly NONE: "None";
280
- };
281
- /**
282
- * @public
283
- */
284
- export type ConfirmationState = (typeof ConfirmationState)[keyof typeof ConfirmationState];
285
- /**
286
- * @public
287
- * @enum
288
- */
289
- export declare const Shape: {
290
- readonly COMPOSITE: "Composite";
291
- readonly LIST: "List";
292
- readonly SCALAR: "Scalar";
293
- };
294
- /**
295
- * @public
296
- */
297
- export type Shape = (typeof Shape)[keyof typeof Shape];
298
200
  /**
299
201
  * <p>Information about the value provided for a slot and Amazon Lex V2's interpretation.</p>
300
202
  * @public
@@ -316,34 +218,6 @@ export interface Value {
316
218
  */
317
219
  resolvedValues?: string[] | undefined;
318
220
  }
319
- /**
320
- * @public
321
- * @enum
322
- */
323
- export declare const IntentState: {
324
- readonly FAILED: "Failed";
325
- readonly FULFILLED: "Fulfilled";
326
- readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
327
- readonly IN_PROGRESS: "InProgress";
328
- readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
329
- readonly WAITING: "Waiting";
330
- };
331
- /**
332
- * @public
333
- */
334
- export type IntentState = (typeof IntentState)[keyof typeof IntentState];
335
- /**
336
- * @public
337
- * @enum
338
- */
339
- export declare const InterpretationSource: {
340
- readonly BEDROCK: "Bedrock";
341
- readonly LEX: "Lex";
342
- };
343
- /**
344
- * @public
345
- */
346
- export type InterpretationSource = (typeof InterpretationSource)[keyof typeof InterpretationSource];
347
221
  /**
348
222
  * <p>Provides a score that indicates the confidence that Amazon Lex V2 has that
349
223
  * an intent is the one that satisfies the user's intent.</p>
@@ -358,20 +232,6 @@ export interface ConfidenceScore {
358
232
  */
359
233
  score?: number | undefined;
360
234
  }
361
- /**
362
- * @public
363
- * @enum
364
- */
365
- export declare const SentimentType: {
366
- readonly MIXED: "MIXED";
367
- readonly NEGATIVE: "NEGATIVE";
368
- readonly NEUTRAL: "NEUTRAL";
369
- readonly POSITIVE: "POSITIVE";
370
- };
371
- /**
372
- * @public
373
- */
374
- export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
375
235
  /**
376
236
  * <p>The individual sentiment responses for the utterance.</p>
377
237
  * @public
@@ -426,20 +286,6 @@ export interface SentimentResponse {
426
286
  */
427
287
  sentimentScore?: SentimentScore | undefined;
428
288
  }
429
- /**
430
- * @public
431
- * @enum
432
- */
433
- export declare const MessageContentType: {
434
- readonly CUSTOM_PAYLOAD: "CustomPayload";
435
- readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
436
- readonly PLAIN_TEXT: "PlainText";
437
- readonly SSML: "SSML";
438
- };
439
- /**
440
- * @public
441
- */
442
- export type MessageContentType = (typeof MessageContentType)[keyof typeof MessageContentType];
443
289
  /**
444
290
  * <p>A button that appears on a response card show to the user.</p>
445
291
  * @public
@@ -516,35 +362,6 @@ export interface Message {
516
362
  */
517
363
  imageResponseCard?: ImageResponseCard | undefined;
518
364
  }
519
- /**
520
- * @public
521
- * @enum
522
- */
523
- export declare const StyleType: {
524
- readonly DEFAULT: "Default";
525
- readonly SPELL_BY_LETTER: "SpellByLetter";
526
- readonly SPELL_BY_WORD: "SpellByWord";
527
- };
528
- /**
529
- * @public
530
- */
531
- export type StyleType = (typeof StyleType)[keyof typeof StyleType];
532
- /**
533
- * @public
534
- * @enum
535
- */
536
- export declare const DialogActionType: {
537
- readonly CLOSE: "Close";
538
- readonly CONFIRM_INTENT: "ConfirmIntent";
539
- readonly DELEGATE: "Delegate";
540
- readonly ELICIT_INTENT: "ElicitIntent";
541
- readonly ELICIT_SLOT: "ElicitSlot";
542
- readonly NONE: "None";
543
- };
544
- /**
545
- * @public
546
- */
547
- export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
548
365
  /**
549
366
  * <p>Provides the phrase that Amazon Lex V2 should look for in the user's input
550
367
  * to the bot.</p>
@@ -558,30 +375,6 @@ export interface RuntimeHintValue {
558
375
  */
559
376
  phrase: string | undefined;
560
377
  }
561
- /**
562
- * <p></p>
563
- * @public
564
- */
565
- export declare class BadGatewayException extends __BaseException {
566
- readonly name: "BadGatewayException";
567
- readonly $fault: "server";
568
- /**
569
- * @internal
570
- */
571
- constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
572
- }
573
- /**
574
- * <p></p>
575
- * @public
576
- */
577
- export declare class DependencyFailedException extends __BaseException {
578
- readonly name: "DependencyFailedException";
579
- readonly $fault: "client";
580
- /**
581
- * @internal
582
- */
583
- constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
584
- }
585
378
  /**
586
379
  * @public
587
380
  */
@@ -880,18 +673,6 @@ export interface RecognizeUtteranceResponse {
880
673
  */
881
674
  recognizedBotMember?: string | undefined;
882
675
  }
883
- /**
884
- * @public
885
- * @enum
886
- */
887
- export declare const ConversationMode: {
888
- readonly AUDIO: "AUDIO";
889
- readonly TEXT: "TEXT";
890
- };
891
- /**
892
- * @public
893
- */
894
- export type ConversationMode = (typeof ConversationMode)[keyof typeof ConversationMode];
895
676
  /**
896
677
  * <p>A notification from the client that it is disconnecting from Amazon Lex V2.
897
678
  * Sending a <code>DisconnectionEvent</code> event is optional, but can
@@ -999,32 +780,6 @@ export interface HeartbeatEvent {
999
780
  */
1000
781
  eventId?: string | undefined;
1001
782
  }
1002
- /**
1003
- * @public
1004
- * @enum
1005
- */
1006
- export declare const InputMode: {
1007
- readonly DTMF: "DTMF";
1008
- readonly SPEECH: "Speech";
1009
- readonly TEXT: "Text";
1010
- };
1011
- /**
1012
- * @public
1013
- */
1014
- export type InputMode = (typeof InputMode)[keyof typeof InputMode];
1015
- /**
1016
- * @public
1017
- * @enum
1018
- */
1019
- export declare const PlaybackInterruptionReason: {
1020
- readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
1021
- readonly TEXT_DETECTED: "TEXT_DETECTED";
1022
- readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
1023
- };
1024
- /**
1025
- * @public
1026
- */
1027
- export type PlaybackInterruptionReason = (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
1028
783
  /**
1029
784
  * <p>Event sent from Amazon Lex V2 to indicate to the client application should
1030
785
  * stop playback of audio. For example, if the client is playing a prompt
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { LexRuntimeV2ExtensionConfiguration } 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 { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
@@ -0,0 +1,78 @@
1
+ export declare const ConfirmationState: {
2
+ readonly CONFIRMED: "Confirmed";
3
+ readonly DENIED: "Denied";
4
+ readonly NONE: "None";
5
+ };
6
+ export type ConfirmationState =
7
+ (typeof ConfirmationState)[keyof typeof ConfirmationState];
8
+ export declare const Shape: {
9
+ readonly COMPOSITE: "Composite";
10
+ readonly LIST: "List";
11
+ readonly SCALAR: "Scalar";
12
+ };
13
+ export type Shape = (typeof Shape)[keyof typeof Shape];
14
+ export declare const IntentState: {
15
+ readonly FAILED: "Failed";
16
+ readonly FULFILLED: "Fulfilled";
17
+ readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
18
+ readonly IN_PROGRESS: "InProgress";
19
+ readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
20
+ readonly WAITING: "Waiting";
21
+ };
22
+ export type IntentState = (typeof IntentState)[keyof typeof IntentState];
23
+ export declare const InterpretationSource: {
24
+ readonly BEDROCK: "Bedrock";
25
+ readonly LEX: "Lex";
26
+ };
27
+ export type InterpretationSource =
28
+ (typeof InterpretationSource)[keyof typeof InterpretationSource];
29
+ export declare const SentimentType: {
30
+ readonly MIXED: "MIXED";
31
+ readonly NEGATIVE: "NEGATIVE";
32
+ readonly NEUTRAL: "NEUTRAL";
33
+ readonly POSITIVE: "POSITIVE";
34
+ };
35
+ export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
36
+ export declare const MessageContentType: {
37
+ readonly CUSTOM_PAYLOAD: "CustomPayload";
38
+ readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
39
+ readonly PLAIN_TEXT: "PlainText";
40
+ readonly SSML: "SSML";
41
+ };
42
+ export type MessageContentType =
43
+ (typeof MessageContentType)[keyof typeof MessageContentType];
44
+ export declare const StyleType: {
45
+ readonly DEFAULT: "Default";
46
+ readonly SPELL_BY_LETTER: "SpellByLetter";
47
+ readonly SPELL_BY_WORD: "SpellByWord";
48
+ };
49
+ export type StyleType = (typeof StyleType)[keyof typeof StyleType];
50
+ export declare const DialogActionType: {
51
+ readonly CLOSE: "Close";
52
+ readonly CONFIRM_INTENT: "ConfirmIntent";
53
+ readonly DELEGATE: "Delegate";
54
+ readonly ELICIT_INTENT: "ElicitIntent";
55
+ readonly ELICIT_SLOT: "ElicitSlot";
56
+ readonly NONE: "None";
57
+ };
58
+ export type DialogActionType =
59
+ (typeof DialogActionType)[keyof typeof DialogActionType];
60
+ export declare const ConversationMode: {
61
+ readonly AUDIO: "AUDIO";
62
+ readonly TEXT: "TEXT";
63
+ };
64
+ export type ConversationMode =
65
+ (typeof ConversationMode)[keyof typeof ConversationMode];
66
+ export declare const InputMode: {
67
+ readonly DTMF: "DTMF";
68
+ readonly SPEECH: "Speech";
69
+ readonly TEXT: "Text";
70
+ };
71
+ export type InputMode = (typeof InputMode)[keyof typeof InputMode];
72
+ export declare const PlaybackInterruptionReason: {
73
+ readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
74
+ readonly TEXT_DETECTED: "TEXT_DETECTED";
75
+ readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
76
+ };
77
+ export type PlaybackInterruptionReason =
78
+ (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
@@ -0,0 +1,56 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __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 InternalServerException extends __BaseException {
16
+ readonly name: "InternalServerException";
17
+ readonly $fault: "server";
18
+ constructor(
19
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
20
+ );
21
+ }
22
+ export declare class ResourceNotFoundException extends __BaseException {
23
+ readonly name: "ResourceNotFoundException";
24
+ readonly $fault: "client";
25
+ constructor(
26
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
27
+ );
28
+ }
29
+ export declare class ThrottlingException extends __BaseException {
30
+ readonly name: "ThrottlingException";
31
+ readonly $fault: "client";
32
+ constructor(
33
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
34
+ );
35
+ }
36
+ export declare class ValidationException extends __BaseException {
37
+ readonly name: "ValidationException";
38
+ readonly $fault: "client";
39
+ constructor(
40
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
41
+ );
42
+ }
43
+ export declare class BadGatewayException extends __BaseException {
44
+ readonly name: "BadGatewayException";
45
+ readonly $fault: "server";
46
+ constructor(
47
+ opts: __ExceptionOptionType<BadGatewayException, __BaseException>
48
+ );
49
+ }
50
+ export declare class DependencyFailedException extends __BaseException {
51
+ readonly name: "DependencyFailedException";
52
+ readonly $fault: "client";
53
+ constructor(
54
+ opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
55
+ );
56
+ }