@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.
- package/dist-cjs/index.js +62 -61
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +61 -0
- package/dist-es/models/errors.js +97 -0
- package/dist-es/models/models_0.js +1 -158
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +149 -0
- package/dist-types/models/errors.d.ts +98 -0
- package/dist-types/models/models_0.d.ts +2 -247
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +78 -0
- package/dist-types/ts3.4/models/errors.d.ts +56 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -134
- package/package.json +21 -21
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -193,53 +193,6 @@ let ValidationException$1 = class ValidationException extends LexRuntimeV2Servic
|
|
|
193
193
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
const ConfirmationState = {
|
|
197
|
-
CONFIRMED: "Confirmed",
|
|
198
|
-
DENIED: "Denied",
|
|
199
|
-
NONE: "None",
|
|
200
|
-
};
|
|
201
|
-
const Shape = {
|
|
202
|
-
COMPOSITE: "Composite",
|
|
203
|
-
LIST: "List",
|
|
204
|
-
SCALAR: "Scalar",
|
|
205
|
-
};
|
|
206
|
-
const IntentState = {
|
|
207
|
-
FAILED: "Failed",
|
|
208
|
-
FULFILLED: "Fulfilled",
|
|
209
|
-
FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
|
|
210
|
-
IN_PROGRESS: "InProgress",
|
|
211
|
-
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
212
|
-
WAITING: "Waiting",
|
|
213
|
-
};
|
|
214
|
-
const InterpretationSource = {
|
|
215
|
-
BEDROCK: "Bedrock",
|
|
216
|
-
LEX: "Lex",
|
|
217
|
-
};
|
|
218
|
-
const SentimentType = {
|
|
219
|
-
MIXED: "MIXED",
|
|
220
|
-
NEGATIVE: "NEGATIVE",
|
|
221
|
-
NEUTRAL: "NEUTRAL",
|
|
222
|
-
POSITIVE: "POSITIVE",
|
|
223
|
-
};
|
|
224
|
-
const MessageContentType = {
|
|
225
|
-
CUSTOM_PAYLOAD: "CustomPayload",
|
|
226
|
-
IMAGE_RESPONSE_CARD: "ImageResponseCard",
|
|
227
|
-
PLAIN_TEXT: "PlainText",
|
|
228
|
-
SSML: "SSML",
|
|
229
|
-
};
|
|
230
|
-
const StyleType = {
|
|
231
|
-
DEFAULT: "Default",
|
|
232
|
-
SPELL_BY_LETTER: "SpellByLetter",
|
|
233
|
-
SPELL_BY_WORD: "SpellByWord",
|
|
234
|
-
};
|
|
235
|
-
const DialogActionType = {
|
|
236
|
-
CLOSE: "Close",
|
|
237
|
-
CONFIRM_INTENT: "ConfirmIntent",
|
|
238
|
-
DELEGATE: "Delegate",
|
|
239
|
-
ELICIT_INTENT: "ElicitIntent",
|
|
240
|
-
ELICIT_SLOT: "ElicitSlot",
|
|
241
|
-
NONE: "None",
|
|
242
|
-
};
|
|
243
196
|
let BadGatewayException$1 = class BadGatewayException extends LexRuntimeV2ServiceException$1 {
|
|
244
197
|
name = "BadGatewayException";
|
|
245
198
|
$fault = "server";
|
|
@@ -264,20 +217,6 @@ let DependencyFailedException$1 = class DependencyFailedException extends LexRun
|
|
|
264
217
|
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
265
218
|
}
|
|
266
219
|
};
|
|
267
|
-
const ConversationMode = {
|
|
268
|
-
AUDIO: "AUDIO",
|
|
269
|
-
TEXT: "TEXT",
|
|
270
|
-
};
|
|
271
|
-
const InputMode = {
|
|
272
|
-
DTMF: "DTMF",
|
|
273
|
-
SPEECH: "Speech",
|
|
274
|
-
TEXT: "Text",
|
|
275
|
-
};
|
|
276
|
-
const PlaybackInterruptionReason = {
|
|
277
|
-
DTMF_START_DETECTED: "DTMF_START_DETECTED",
|
|
278
|
-
TEXT_DETECTED: "TEXT_DETECTED",
|
|
279
|
-
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
280
|
-
};
|
|
281
220
|
|
|
282
221
|
const _AC = "ActiveContext";
|
|
283
222
|
const _ACL = "ActiveContextsList";
|
|
@@ -1109,6 +1048,68 @@ class LexRuntimeV2 extends LexRuntimeV2Client {
|
|
|
1109
1048
|
}
|
|
1110
1049
|
smithyClient.createAggregatedClient(commands, LexRuntimeV2);
|
|
1111
1050
|
|
|
1051
|
+
const ConfirmationState = {
|
|
1052
|
+
CONFIRMED: "Confirmed",
|
|
1053
|
+
DENIED: "Denied",
|
|
1054
|
+
NONE: "None",
|
|
1055
|
+
};
|
|
1056
|
+
const Shape = {
|
|
1057
|
+
COMPOSITE: "Composite",
|
|
1058
|
+
LIST: "List",
|
|
1059
|
+
SCALAR: "Scalar",
|
|
1060
|
+
};
|
|
1061
|
+
const IntentState = {
|
|
1062
|
+
FAILED: "Failed",
|
|
1063
|
+
FULFILLED: "Fulfilled",
|
|
1064
|
+
FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
|
|
1065
|
+
IN_PROGRESS: "InProgress",
|
|
1066
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
1067
|
+
WAITING: "Waiting",
|
|
1068
|
+
};
|
|
1069
|
+
const InterpretationSource = {
|
|
1070
|
+
BEDROCK: "Bedrock",
|
|
1071
|
+
LEX: "Lex",
|
|
1072
|
+
};
|
|
1073
|
+
const SentimentType = {
|
|
1074
|
+
MIXED: "MIXED",
|
|
1075
|
+
NEGATIVE: "NEGATIVE",
|
|
1076
|
+
NEUTRAL: "NEUTRAL",
|
|
1077
|
+
POSITIVE: "POSITIVE",
|
|
1078
|
+
};
|
|
1079
|
+
const MessageContentType = {
|
|
1080
|
+
CUSTOM_PAYLOAD: "CustomPayload",
|
|
1081
|
+
IMAGE_RESPONSE_CARD: "ImageResponseCard",
|
|
1082
|
+
PLAIN_TEXT: "PlainText",
|
|
1083
|
+
SSML: "SSML",
|
|
1084
|
+
};
|
|
1085
|
+
const StyleType = {
|
|
1086
|
+
DEFAULT: "Default",
|
|
1087
|
+
SPELL_BY_LETTER: "SpellByLetter",
|
|
1088
|
+
SPELL_BY_WORD: "SpellByWord",
|
|
1089
|
+
};
|
|
1090
|
+
const DialogActionType = {
|
|
1091
|
+
CLOSE: "Close",
|
|
1092
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
1093
|
+
DELEGATE: "Delegate",
|
|
1094
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
1095
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
1096
|
+
NONE: "None",
|
|
1097
|
+
};
|
|
1098
|
+
const ConversationMode = {
|
|
1099
|
+
AUDIO: "AUDIO",
|
|
1100
|
+
TEXT: "TEXT",
|
|
1101
|
+
};
|
|
1102
|
+
const InputMode = {
|
|
1103
|
+
DTMF: "DTMF",
|
|
1104
|
+
SPEECH: "Speech",
|
|
1105
|
+
TEXT: "Text",
|
|
1106
|
+
};
|
|
1107
|
+
const PlaybackInterruptionReason = {
|
|
1108
|
+
DTMF_START_DETECTED: "DTMF_START_DETECTED",
|
|
1109
|
+
TEXT_DETECTED: "TEXT_DETECTED",
|
|
1110
|
+
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1112
1113
|
Object.defineProperty(exports, "$Command", {
|
|
1113
1114
|
enumerable: true,
|
|
1114
1115
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./LexRuntimeV2Client";
|
|
2
2
|
export * from "./LexRuntimeV2";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./models";
|
|
4
|
+
export * from "./models/enums";
|
|
5
|
+
export * from "./models/errors";
|
|
5
6
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export const ConfirmationState = {
|
|
2
|
+
CONFIRMED: "Confirmed",
|
|
3
|
+
DENIED: "Denied",
|
|
4
|
+
NONE: "None",
|
|
5
|
+
};
|
|
6
|
+
export const Shape = {
|
|
7
|
+
COMPOSITE: "Composite",
|
|
8
|
+
LIST: "List",
|
|
9
|
+
SCALAR: "Scalar",
|
|
10
|
+
};
|
|
11
|
+
export const IntentState = {
|
|
12
|
+
FAILED: "Failed",
|
|
13
|
+
FULFILLED: "Fulfilled",
|
|
14
|
+
FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
|
|
15
|
+
IN_PROGRESS: "InProgress",
|
|
16
|
+
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
17
|
+
WAITING: "Waiting",
|
|
18
|
+
};
|
|
19
|
+
export const InterpretationSource = {
|
|
20
|
+
BEDROCK: "Bedrock",
|
|
21
|
+
LEX: "Lex",
|
|
22
|
+
};
|
|
23
|
+
export const SentimentType = {
|
|
24
|
+
MIXED: "MIXED",
|
|
25
|
+
NEGATIVE: "NEGATIVE",
|
|
26
|
+
NEUTRAL: "NEUTRAL",
|
|
27
|
+
POSITIVE: "POSITIVE",
|
|
28
|
+
};
|
|
29
|
+
export const MessageContentType = {
|
|
30
|
+
CUSTOM_PAYLOAD: "CustomPayload",
|
|
31
|
+
IMAGE_RESPONSE_CARD: "ImageResponseCard",
|
|
32
|
+
PLAIN_TEXT: "PlainText",
|
|
33
|
+
SSML: "SSML",
|
|
34
|
+
};
|
|
35
|
+
export const StyleType = {
|
|
36
|
+
DEFAULT: "Default",
|
|
37
|
+
SPELL_BY_LETTER: "SpellByLetter",
|
|
38
|
+
SPELL_BY_WORD: "SpellByWord",
|
|
39
|
+
};
|
|
40
|
+
export const DialogActionType = {
|
|
41
|
+
CLOSE: "Close",
|
|
42
|
+
CONFIRM_INTENT: "ConfirmIntent",
|
|
43
|
+
DELEGATE: "Delegate",
|
|
44
|
+
ELICIT_INTENT: "ElicitIntent",
|
|
45
|
+
ELICIT_SLOT: "ElicitSlot",
|
|
46
|
+
NONE: "None",
|
|
47
|
+
};
|
|
48
|
+
export const ConversationMode = {
|
|
49
|
+
AUDIO: "AUDIO",
|
|
50
|
+
TEXT: "TEXT",
|
|
51
|
+
};
|
|
52
|
+
export const InputMode = {
|
|
53
|
+
DTMF: "DTMF",
|
|
54
|
+
SPEECH: "Speech",
|
|
55
|
+
TEXT: "Text",
|
|
56
|
+
};
|
|
57
|
+
export const PlaybackInterruptionReason = {
|
|
58
|
+
DTMF_START_DETECTED: "DTMF_START_DETECTED",
|
|
59
|
+
TEXT_DETECTED: "TEXT_DETECTED",
|
|
60
|
+
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
61
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ConflictException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class InternalServerException extends __BaseException {
|
|
27
|
+
name = "InternalServerException";
|
|
28
|
+
$fault = "server";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "InternalServerException",
|
|
32
|
+
$fault: "server",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
39
|
+
name = "ResourceNotFoundException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ResourceNotFoundException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ThrottlingException extends __BaseException {
|
|
51
|
+
name = "ThrottlingException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ThrottlingException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export class ValidationException extends __BaseException {
|
|
63
|
+
name = "ValidationException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "ValidationException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class BadGatewayException extends __BaseException {
|
|
75
|
+
name = "BadGatewayException";
|
|
76
|
+
$fault = "server";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "BadGatewayException",
|
|
80
|
+
$fault: "server",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export class DependencyFailedException extends __BaseException {
|
|
87
|
+
name = "DependencyFailedException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "DependencyFailedException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -1,158 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class ConflictException extends __BaseException {
|
|
15
|
-
name = "ConflictException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ConflictException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class InternalServerException extends __BaseException {
|
|
27
|
-
name = "InternalServerException";
|
|
28
|
-
$fault = "server";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "InternalServerException",
|
|
32
|
-
$fault: "server",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
39
|
-
name = "ResourceNotFoundException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "ResourceNotFoundException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export class ThrottlingException extends __BaseException {
|
|
51
|
-
name = "ThrottlingException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "ThrottlingException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export class ValidationException extends __BaseException {
|
|
63
|
-
name = "ValidationException";
|
|
64
|
-
$fault = "client";
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "ValidationException",
|
|
68
|
-
$fault: "client",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export const ConfirmationState = {
|
|
75
|
-
CONFIRMED: "Confirmed",
|
|
76
|
-
DENIED: "Denied",
|
|
77
|
-
NONE: "None",
|
|
78
|
-
};
|
|
79
|
-
export const Shape = {
|
|
80
|
-
COMPOSITE: "Composite",
|
|
81
|
-
LIST: "List",
|
|
82
|
-
SCALAR: "Scalar",
|
|
83
|
-
};
|
|
84
|
-
export const IntentState = {
|
|
85
|
-
FAILED: "Failed",
|
|
86
|
-
FULFILLED: "Fulfilled",
|
|
87
|
-
FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
|
|
88
|
-
IN_PROGRESS: "InProgress",
|
|
89
|
-
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
90
|
-
WAITING: "Waiting",
|
|
91
|
-
};
|
|
92
|
-
export const InterpretationSource = {
|
|
93
|
-
BEDROCK: "Bedrock",
|
|
94
|
-
LEX: "Lex",
|
|
95
|
-
};
|
|
96
|
-
export const SentimentType = {
|
|
97
|
-
MIXED: "MIXED",
|
|
98
|
-
NEGATIVE: "NEGATIVE",
|
|
99
|
-
NEUTRAL: "NEUTRAL",
|
|
100
|
-
POSITIVE: "POSITIVE",
|
|
101
|
-
};
|
|
102
|
-
export const MessageContentType = {
|
|
103
|
-
CUSTOM_PAYLOAD: "CustomPayload",
|
|
104
|
-
IMAGE_RESPONSE_CARD: "ImageResponseCard",
|
|
105
|
-
PLAIN_TEXT: "PlainText",
|
|
106
|
-
SSML: "SSML",
|
|
107
|
-
};
|
|
108
|
-
export const StyleType = {
|
|
109
|
-
DEFAULT: "Default",
|
|
110
|
-
SPELL_BY_LETTER: "SpellByLetter",
|
|
111
|
-
SPELL_BY_WORD: "SpellByWord",
|
|
112
|
-
};
|
|
113
|
-
export const DialogActionType = {
|
|
114
|
-
CLOSE: "Close",
|
|
115
|
-
CONFIRM_INTENT: "ConfirmIntent",
|
|
116
|
-
DELEGATE: "Delegate",
|
|
117
|
-
ELICIT_INTENT: "ElicitIntent",
|
|
118
|
-
ELICIT_SLOT: "ElicitSlot",
|
|
119
|
-
NONE: "None",
|
|
120
|
-
};
|
|
121
|
-
export class BadGatewayException extends __BaseException {
|
|
122
|
-
name = "BadGatewayException";
|
|
123
|
-
$fault = "server";
|
|
124
|
-
constructor(opts) {
|
|
125
|
-
super({
|
|
126
|
-
name: "BadGatewayException",
|
|
127
|
-
$fault: "server",
|
|
128
|
-
...opts,
|
|
129
|
-
});
|
|
130
|
-
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
export class DependencyFailedException extends __BaseException {
|
|
134
|
-
name = "DependencyFailedException";
|
|
135
|
-
$fault = "client";
|
|
136
|
-
constructor(opts) {
|
|
137
|
-
super({
|
|
138
|
-
name: "DependencyFailedException",
|
|
139
|
-
$fault: "client",
|
|
140
|
-
...opts,
|
|
141
|
-
});
|
|
142
|
-
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
export const ConversationMode = {
|
|
146
|
-
AUDIO: "AUDIO",
|
|
147
|
-
TEXT: "TEXT",
|
|
148
|
-
};
|
|
149
|
-
export const InputMode = {
|
|
150
|
-
DTMF: "DTMF",
|
|
151
|
-
SPEECH: "Speech",
|
|
152
|
-
TEXT: "Text",
|
|
153
|
-
};
|
|
154
|
-
export const PlaybackInterruptionReason = {
|
|
155
|
-
DTMF_START_DETECTED: "DTMF_START_DETECTED",
|
|
156
|
-
TEXT_DETECTED: "TEXT_DETECTED",
|
|
157
|
-
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
158
|
-
};
|
|
1
|
+
export {};
|
|
@@ -169,7 +169,7 @@ const _xalsi = "x-amz-lex-session-id";
|
|
|
169
169
|
const _xalss = "x-amz-lex-session-state";
|
|
170
170
|
const n0 = "com.amazonaws.lexruntimev2";
|
|
171
171
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
172
|
-
import { AccessDeniedException as __AccessDeniedException, BadGatewayException as __BadGatewayException, ConflictException as __ConflictException, DependencyFailedException as __DependencyFailedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
172
|
+
import { AccessDeniedException as __AccessDeniedException, BadGatewayException as __BadGatewayException, ConflictException as __ConflictException, DependencyFailedException as __DependencyFailedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
173
173
|
import { LexRuntimeV2ServiceException as __LexRuntimeV2ServiceException } from "../models/LexRuntimeV2ServiceException";
|
|
174
174
|
export var BlobStream = [
|
|
175
175
|
0,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -9,5 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
9
9
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
10
|
export type { LexRuntimeV2ExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
|
-
export * from "./models";
|
|
12
|
+
export * from "./models/enums";
|
|
13
|
+
export * from "./models/errors";
|
|
14
|
+
export type * from "./models/models_0";
|
|
13
15
|
export { LexRuntimeV2ServiceException } from "./models/LexRuntimeV2ServiceException";
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ConfirmationState: {
|
|
6
|
+
readonly CONFIRMED: "Confirmed";
|
|
7
|
+
readonly DENIED: "Denied";
|
|
8
|
+
readonly NONE: "None";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type ConfirmationState = (typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
* @enum
|
|
17
|
+
*/
|
|
18
|
+
export declare const Shape: {
|
|
19
|
+
readonly COMPOSITE: "Composite";
|
|
20
|
+
readonly LIST: "List";
|
|
21
|
+
readonly SCALAR: "Scalar";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export type Shape = (typeof Shape)[keyof typeof Shape];
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* @enum
|
|
30
|
+
*/
|
|
31
|
+
export declare const IntentState: {
|
|
32
|
+
readonly FAILED: "Failed";
|
|
33
|
+
readonly FULFILLED: "Fulfilled";
|
|
34
|
+
readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
|
|
35
|
+
readonly IN_PROGRESS: "InProgress";
|
|
36
|
+
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
37
|
+
readonly WAITING: "Waiting";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export type IntentState = (typeof IntentState)[keyof typeof IntentState];
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @enum
|
|
46
|
+
*/
|
|
47
|
+
export declare const InterpretationSource: {
|
|
48
|
+
readonly BEDROCK: "Bedrock";
|
|
49
|
+
readonly LEX: "Lex";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export type InterpretationSource = (typeof InterpretationSource)[keyof typeof InterpretationSource];
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @enum
|
|
58
|
+
*/
|
|
59
|
+
export declare const SentimentType: {
|
|
60
|
+
readonly MIXED: "MIXED";
|
|
61
|
+
readonly NEGATIVE: "NEGATIVE";
|
|
62
|
+
readonly NEUTRAL: "NEUTRAL";
|
|
63
|
+
readonly POSITIVE: "POSITIVE";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* @enum
|
|
72
|
+
*/
|
|
73
|
+
export declare const MessageContentType: {
|
|
74
|
+
readonly CUSTOM_PAYLOAD: "CustomPayload";
|
|
75
|
+
readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
|
|
76
|
+
readonly PLAIN_TEXT: "PlainText";
|
|
77
|
+
readonly SSML: "SSML";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export type MessageContentType = (typeof MessageContentType)[keyof typeof MessageContentType];
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @enum
|
|
86
|
+
*/
|
|
87
|
+
export declare const StyleType: {
|
|
88
|
+
readonly DEFAULT: "Default";
|
|
89
|
+
readonly SPELL_BY_LETTER: "SpellByLetter";
|
|
90
|
+
readonly SPELL_BY_WORD: "SpellByWord";
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export type StyleType = (typeof StyleType)[keyof typeof StyleType];
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* @enum
|
|
99
|
+
*/
|
|
100
|
+
export declare const DialogActionType: {
|
|
101
|
+
readonly CLOSE: "Close";
|
|
102
|
+
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
103
|
+
readonly DELEGATE: "Delegate";
|
|
104
|
+
readonly ELICIT_INTENT: "ElicitIntent";
|
|
105
|
+
readonly ELICIT_SLOT: "ElicitSlot";
|
|
106
|
+
readonly NONE: "None";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export type DialogActionType = (typeof DialogActionType)[keyof typeof DialogActionType];
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
* @enum
|
|
115
|
+
*/
|
|
116
|
+
export declare const ConversationMode: {
|
|
117
|
+
readonly AUDIO: "AUDIO";
|
|
118
|
+
readonly TEXT: "TEXT";
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export type ConversationMode = (typeof ConversationMode)[keyof typeof ConversationMode];
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* @enum
|
|
127
|
+
*/
|
|
128
|
+
export declare const InputMode: {
|
|
129
|
+
readonly DTMF: "DTMF";
|
|
130
|
+
readonly SPEECH: "Speech";
|
|
131
|
+
readonly TEXT: "Text";
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export type InputMode = (typeof InputMode)[keyof typeof InputMode];
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* @enum
|
|
140
|
+
*/
|
|
141
|
+
export declare const PlaybackInterruptionReason: {
|
|
142
|
+
readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
|
|
143
|
+
readonly TEXT_DETECTED: "TEXT_DETECTED";
|
|
144
|
+
readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export type PlaybackInterruptionReason = (typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
|