@aws-sdk/client-lex-runtime-v2 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.
- 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 +12 -12
- 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
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { StreamingBlobTypes } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import {
|
|
3
|
+
ConfirmationState,
|
|
4
|
+
ConversationMode,
|
|
5
|
+
DialogActionType,
|
|
6
|
+
InputMode,
|
|
7
|
+
IntentState,
|
|
8
|
+
InterpretationSource,
|
|
9
|
+
MessageContentType,
|
|
10
|
+
PlaybackInterruptionReason,
|
|
11
|
+
SentimentType,
|
|
12
|
+
Shape,
|
|
13
|
+
StyleType,
|
|
14
|
+
} from "./enums";
|
|
15
|
+
import {
|
|
16
|
+
AccessDeniedException,
|
|
17
|
+
BadGatewayException,
|
|
18
|
+
ConflictException,
|
|
19
|
+
DependencyFailedException,
|
|
20
|
+
InternalServerException,
|
|
21
|
+
ResourceNotFoundException,
|
|
22
|
+
ThrottlingException,
|
|
23
|
+
ValidationException,
|
|
24
|
+
} from "./errors";
|
|
11
25
|
export interface ActiveContextTimeToLive {
|
|
12
26
|
timeToLiveInSeconds: number | undefined;
|
|
13
27
|
turnsToLive: number | undefined;
|
|
@@ -28,11 +42,6 @@ export interface AudioResponseEvent {
|
|
|
28
42
|
contentType?: string | undefined;
|
|
29
43
|
eventId?: string | undefined;
|
|
30
44
|
}
|
|
31
|
-
export declare class ConflictException extends __BaseException {
|
|
32
|
-
readonly name: "ConflictException";
|
|
33
|
-
readonly $fault: "client";
|
|
34
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
35
|
-
}
|
|
36
45
|
export interface DeleteSessionRequest {
|
|
37
46
|
botId: string | undefined;
|
|
38
47
|
botAliasId: string | undefined;
|
|
@@ -45,83 +54,20 @@ export interface DeleteSessionResponse {
|
|
|
45
54
|
localeId?: string | undefined;
|
|
46
55
|
sessionId?: string | undefined;
|
|
47
56
|
}
|
|
48
|
-
export declare class InternalServerException extends __BaseException {
|
|
49
|
-
readonly name: "InternalServerException";
|
|
50
|
-
readonly $fault: "server";
|
|
51
|
-
constructor(
|
|
52
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
56
|
-
readonly name: "ResourceNotFoundException";
|
|
57
|
-
readonly $fault: "client";
|
|
58
|
-
constructor(
|
|
59
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
export declare class ThrottlingException extends __BaseException {
|
|
63
|
-
readonly name: "ThrottlingException";
|
|
64
|
-
readonly $fault: "client";
|
|
65
|
-
constructor(
|
|
66
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
export declare class ValidationException extends __BaseException {
|
|
70
|
-
readonly name: "ValidationException";
|
|
71
|
-
readonly $fault: "client";
|
|
72
|
-
constructor(
|
|
73
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
57
|
export interface GetSessionRequest {
|
|
77
58
|
botId: string | undefined;
|
|
78
59
|
botAliasId: string | undefined;
|
|
79
60
|
localeId: string | undefined;
|
|
80
61
|
sessionId: string | undefined;
|
|
81
62
|
}
|
|
82
|
-
export declare const ConfirmationState: {
|
|
83
|
-
readonly CONFIRMED: "Confirmed";
|
|
84
|
-
readonly DENIED: "Denied";
|
|
85
|
-
readonly NONE: "None";
|
|
86
|
-
};
|
|
87
|
-
export type ConfirmationState =
|
|
88
|
-
(typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
89
|
-
export declare const Shape: {
|
|
90
|
-
readonly COMPOSITE: "Composite";
|
|
91
|
-
readonly LIST: "List";
|
|
92
|
-
readonly SCALAR: "Scalar";
|
|
93
|
-
};
|
|
94
|
-
export type Shape = (typeof Shape)[keyof typeof Shape];
|
|
95
63
|
export interface Value {
|
|
96
64
|
originalValue?: string | undefined;
|
|
97
65
|
interpretedValue: string | undefined;
|
|
98
66
|
resolvedValues?: string[] | undefined;
|
|
99
67
|
}
|
|
100
|
-
export declare const IntentState: {
|
|
101
|
-
readonly FAILED: "Failed";
|
|
102
|
-
readonly FULFILLED: "Fulfilled";
|
|
103
|
-
readonly FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress";
|
|
104
|
-
readonly IN_PROGRESS: "InProgress";
|
|
105
|
-
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
106
|
-
readonly WAITING: "Waiting";
|
|
107
|
-
};
|
|
108
|
-
export type IntentState = (typeof IntentState)[keyof typeof IntentState];
|
|
109
|
-
export declare const InterpretationSource: {
|
|
110
|
-
readonly BEDROCK: "Bedrock";
|
|
111
|
-
readonly LEX: "Lex";
|
|
112
|
-
};
|
|
113
|
-
export type InterpretationSource =
|
|
114
|
-
(typeof InterpretationSource)[keyof typeof InterpretationSource];
|
|
115
68
|
export interface ConfidenceScore {
|
|
116
69
|
score?: number | undefined;
|
|
117
70
|
}
|
|
118
|
-
export declare const SentimentType: {
|
|
119
|
-
readonly MIXED: "MIXED";
|
|
120
|
-
readonly NEGATIVE: "NEGATIVE";
|
|
121
|
-
readonly NEUTRAL: "NEUTRAL";
|
|
122
|
-
readonly POSITIVE: "POSITIVE";
|
|
123
|
-
};
|
|
124
|
-
export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
|
|
125
71
|
export interface SentimentScore {
|
|
126
72
|
positive?: number | undefined;
|
|
127
73
|
negative?: number | undefined;
|
|
@@ -132,14 +78,6 @@ export interface SentimentResponse {
|
|
|
132
78
|
sentiment?: SentimentType | undefined;
|
|
133
79
|
sentimentScore?: SentimentScore | undefined;
|
|
134
80
|
}
|
|
135
|
-
export declare const MessageContentType: {
|
|
136
|
-
readonly CUSTOM_PAYLOAD: "CustomPayload";
|
|
137
|
-
readonly IMAGE_RESPONSE_CARD: "ImageResponseCard";
|
|
138
|
-
readonly PLAIN_TEXT: "PlainText";
|
|
139
|
-
readonly SSML: "SSML";
|
|
140
|
-
};
|
|
141
|
-
export type MessageContentType =
|
|
142
|
-
(typeof MessageContentType)[keyof typeof MessageContentType];
|
|
143
81
|
export interface Button {
|
|
144
82
|
text: string | undefined;
|
|
145
83
|
value: string | undefined;
|
|
@@ -155,39 +93,9 @@ export interface Message {
|
|
|
155
93
|
contentType: MessageContentType | undefined;
|
|
156
94
|
imageResponseCard?: ImageResponseCard | undefined;
|
|
157
95
|
}
|
|
158
|
-
export declare const StyleType: {
|
|
159
|
-
readonly DEFAULT: "Default";
|
|
160
|
-
readonly SPELL_BY_LETTER: "SpellByLetter";
|
|
161
|
-
readonly SPELL_BY_WORD: "SpellByWord";
|
|
162
|
-
};
|
|
163
|
-
export type StyleType = (typeof StyleType)[keyof typeof StyleType];
|
|
164
|
-
export declare const DialogActionType: {
|
|
165
|
-
readonly CLOSE: "Close";
|
|
166
|
-
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
167
|
-
readonly DELEGATE: "Delegate";
|
|
168
|
-
readonly ELICIT_INTENT: "ElicitIntent";
|
|
169
|
-
readonly ELICIT_SLOT: "ElicitSlot";
|
|
170
|
-
readonly NONE: "None";
|
|
171
|
-
};
|
|
172
|
-
export type DialogActionType =
|
|
173
|
-
(typeof DialogActionType)[keyof typeof DialogActionType];
|
|
174
96
|
export interface RuntimeHintValue {
|
|
175
97
|
phrase: string | undefined;
|
|
176
98
|
}
|
|
177
|
-
export declare class BadGatewayException extends __BaseException {
|
|
178
|
-
readonly name: "BadGatewayException";
|
|
179
|
-
readonly $fault: "server";
|
|
180
|
-
constructor(
|
|
181
|
-
opts: __ExceptionOptionType<BadGatewayException, __BaseException>
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
export declare class DependencyFailedException extends __BaseException {
|
|
185
|
-
readonly name: "DependencyFailedException";
|
|
186
|
-
readonly $fault: "client";
|
|
187
|
-
constructor(
|
|
188
|
-
opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
99
|
export interface PutSessionResponse {
|
|
192
100
|
contentType?: string | undefined;
|
|
193
101
|
messages?: string | undefined;
|
|
@@ -223,12 +131,6 @@ export interface RecognizeUtteranceResponse {
|
|
|
223
131
|
audioStream?: StreamingBlobTypes | undefined;
|
|
224
132
|
recognizedBotMember?: string | undefined;
|
|
225
133
|
}
|
|
226
|
-
export declare const ConversationMode: {
|
|
227
|
-
readonly AUDIO: "AUDIO";
|
|
228
|
-
readonly TEXT: "TEXT";
|
|
229
|
-
};
|
|
230
|
-
export type ConversationMode =
|
|
231
|
-
(typeof ConversationMode)[keyof typeof ConversationMode];
|
|
232
134
|
export interface DisconnectionEvent {
|
|
233
135
|
eventId?: string | undefined;
|
|
234
136
|
clientTimestampMillis?: number | undefined;
|
|
@@ -250,19 +152,6 @@ export interface TextInputEvent {
|
|
|
250
152
|
export interface HeartbeatEvent {
|
|
251
153
|
eventId?: string | undefined;
|
|
252
154
|
}
|
|
253
|
-
export declare const InputMode: {
|
|
254
|
-
readonly DTMF: "DTMF";
|
|
255
|
-
readonly SPEECH: "Speech";
|
|
256
|
-
readonly TEXT: "Text";
|
|
257
|
-
};
|
|
258
|
-
export type InputMode = (typeof InputMode)[keyof typeof InputMode];
|
|
259
|
-
export declare const PlaybackInterruptionReason: {
|
|
260
|
-
readonly DTMF_START_DETECTED: "DTMF_START_DETECTED";
|
|
261
|
-
readonly TEXT_DETECTED: "TEXT_DETECTED";
|
|
262
|
-
readonly VOICE_START_DETECTED: "VOICE_START_DETECTED";
|
|
263
|
-
};
|
|
264
|
-
export type PlaybackInterruptionReason =
|
|
265
|
-
(typeof PlaybackInterruptionReason)[keyof typeof PlaybackInterruptionReason];
|
|
266
155
|
export interface PlaybackInterruptionEvent {
|
|
267
156
|
eventReason?: PlaybackInterruptionReason | undefined;
|
|
268
157
|
causedByEventId?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.935.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-v2",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.935.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.930.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
32
32
|
"@aws-sdk/types": "3.930.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.4.3",
|
|
37
|
-
"@smithy/core": "^3.18.
|
|
37
|
+
"@smithy/core": "^3.18.5",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^4.2.5",
|
|
39
39
|
"@smithy/eventstream-serde-config-resolver": "^4.3.5",
|
|
40
40
|
"@smithy/eventstream-serde-node": "^4.2.5",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"@smithy/hash-node": "^4.2.5",
|
|
43
43
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
44
44
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
46
|
-
"@smithy/middleware-retry": "^4.4.
|
|
47
|
-
"@smithy/middleware-serde": "^4.2.
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
46
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
47
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
48
48
|
"@smithy/middleware-stack": "^4.2.5",
|
|
49
49
|
"@smithy/node-config-provider": "^4.3.5",
|
|
50
50
|
"@smithy/node-http-handler": "^4.4.5",
|
|
51
51
|
"@smithy/protocol-http": "^5.3.5",
|
|
52
|
-
"@smithy/smithy-client": "^4.9.
|
|
52
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
53
53
|
"@smithy/types": "^4.9.0",
|
|
54
54
|
"@smithy/url-parser": "^4.2.5",
|
|
55
55
|
"@smithy/util-base64": "^4.3.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
60
60
|
"@smithy/util-endpoints": "^3.2.5",
|
|
61
61
|
"@smithy/util-middleware": "^4.2.5",
|
|
62
62
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|