@aws-sdk/client-lex-runtime-service 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 +35 -34
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +34 -0
- package/dist-es/models/errors.js +141 -0
- package/dist-es/models/models_0.js +1 -175
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +82 -0
- package/dist-types/models/errors.d.ts +160 -0
- package/dist-types/models/models_0.d.ts +2 -242
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +44 -0
- package/dist-types/ts3.4/models/errors.d.ts +79 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -126
- package/package.json +19 -19
- 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,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AutomaticJsonStringConversion as __AutomaticJsonStringConversion,
|
|
3
|
-
ExceptionOptionType as __ExceptionOptionType,
|
|
4
|
-
} from "@smithy/smithy-client";
|
|
1
|
+
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
|
|
5
2
|
import { StreamingBlobTypes } from "@smithy/types";
|
|
6
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ConfirmationStatus,
|
|
5
|
+
ContentType,
|
|
6
|
+
DialogActionType,
|
|
7
|
+
DialogState,
|
|
8
|
+
FulfillmentState,
|
|
9
|
+
MessageFormatType,
|
|
10
|
+
} from "./enums";
|
|
7
11
|
export interface ActiveContextTimeToLive {
|
|
8
12
|
timeToLiveInSeconds?: number | undefined;
|
|
9
13
|
turnsToLive?: number | undefined;
|
|
@@ -13,18 +17,6 @@ export interface ActiveContext {
|
|
|
13
17
|
timeToLive: ActiveContextTimeToLive | undefined;
|
|
14
18
|
parameters: Record<string, string> | undefined;
|
|
15
19
|
}
|
|
16
|
-
export declare class BadRequestException extends __BaseException {
|
|
17
|
-
readonly name: "BadRequestException";
|
|
18
|
-
readonly $fault: "client";
|
|
19
|
-
constructor(
|
|
20
|
-
opts: __ExceptionOptionType<BadRequestException, __BaseException>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
export declare class ConflictException extends __BaseException {
|
|
24
|
-
readonly name: "ConflictException";
|
|
25
|
-
readonly $fault: "client";
|
|
26
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
27
|
-
}
|
|
28
20
|
export interface DeleteSessionRequest {
|
|
29
21
|
botName: string | undefined;
|
|
30
22
|
botAlias: string | undefined;
|
|
@@ -36,56 +28,12 @@ export interface DeleteSessionResponse {
|
|
|
36
28
|
userId?: string | undefined;
|
|
37
29
|
sessionId?: string | undefined;
|
|
38
30
|
}
|
|
39
|
-
export declare class InternalFailureException extends __BaseException {
|
|
40
|
-
readonly name: "InternalFailureException";
|
|
41
|
-
readonly $fault: "server";
|
|
42
|
-
constructor(
|
|
43
|
-
opts: __ExceptionOptionType<InternalFailureException, __BaseException>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
export declare class LimitExceededException extends __BaseException {
|
|
47
|
-
readonly name: "LimitExceededException";
|
|
48
|
-
readonly $fault: "client";
|
|
49
|
-
retryAfterSeconds?: string | undefined;
|
|
50
|
-
constructor(
|
|
51
|
-
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
export declare class NotFoundException extends __BaseException {
|
|
55
|
-
readonly name: "NotFoundException";
|
|
56
|
-
readonly $fault: "client";
|
|
57
|
-
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
58
|
-
}
|
|
59
31
|
export interface GetSessionRequest {
|
|
60
32
|
botName: string | undefined;
|
|
61
33
|
botAlias: string | undefined;
|
|
62
34
|
userId: string | undefined;
|
|
63
35
|
checkpointLabelFilter?: string | undefined;
|
|
64
36
|
}
|
|
65
|
-
export declare const FulfillmentState: {
|
|
66
|
-
readonly FAILED: "Failed";
|
|
67
|
-
readonly FULFILLED: "Fulfilled";
|
|
68
|
-
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
69
|
-
};
|
|
70
|
-
export type FulfillmentState =
|
|
71
|
-
(typeof FulfillmentState)[keyof typeof FulfillmentState];
|
|
72
|
-
export declare const MessageFormatType: {
|
|
73
|
-
readonly COMPOSITE: "Composite";
|
|
74
|
-
readonly CUSTOM_PAYLOAD: "CustomPayload";
|
|
75
|
-
readonly PLAIN_TEXT: "PlainText";
|
|
76
|
-
readonly SSML: "SSML";
|
|
77
|
-
};
|
|
78
|
-
export type MessageFormatType =
|
|
79
|
-
(typeof MessageFormatType)[keyof typeof MessageFormatType];
|
|
80
|
-
export declare const DialogActionType: {
|
|
81
|
-
readonly CLOSE: "Close";
|
|
82
|
-
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
83
|
-
readonly DELEGATE: "Delegate";
|
|
84
|
-
readonly ELICIT_INTENT: "ElicitIntent";
|
|
85
|
-
readonly ELICIT_SLOT: "ElicitSlot";
|
|
86
|
-
};
|
|
87
|
-
export type DialogActionType =
|
|
88
|
-
(typeof DialogActionType)[keyof typeof DialogActionType];
|
|
89
37
|
export interface DialogAction {
|
|
90
38
|
type: DialogActionType | undefined;
|
|
91
39
|
intentName?: string | undefined;
|
|
@@ -95,13 +43,6 @@ export interface DialogAction {
|
|
|
95
43
|
message?: string | undefined;
|
|
96
44
|
messageFormat?: MessageFormatType | undefined;
|
|
97
45
|
}
|
|
98
|
-
export declare const ConfirmationStatus: {
|
|
99
|
-
readonly CONFIRMED: "Confirmed";
|
|
100
|
-
readonly DENIED: "Denied";
|
|
101
|
-
readonly NONE: "None";
|
|
102
|
-
};
|
|
103
|
-
export type ConfirmationStatus =
|
|
104
|
-
(typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
105
46
|
export interface IntentSummary {
|
|
106
47
|
intentName?: string | undefined;
|
|
107
48
|
checkpointLabel?: string | undefined;
|
|
@@ -118,37 +59,6 @@ export interface GetSessionResponse {
|
|
|
118
59
|
dialogAction?: DialogAction | undefined;
|
|
119
60
|
activeContexts?: ActiveContext[] | undefined;
|
|
120
61
|
}
|
|
121
|
-
export declare class BadGatewayException extends __BaseException {
|
|
122
|
-
readonly name: "BadGatewayException";
|
|
123
|
-
readonly $fault: "server";
|
|
124
|
-
Message?: string | undefined;
|
|
125
|
-
constructor(
|
|
126
|
-
opts: __ExceptionOptionType<BadGatewayException, __BaseException>
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
export declare class DependencyFailedException extends __BaseException {
|
|
130
|
-
readonly name: "DependencyFailedException";
|
|
131
|
-
readonly $fault: "client";
|
|
132
|
-
Message?: string | undefined;
|
|
133
|
-
constructor(
|
|
134
|
-
opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
export declare class LoopDetectedException extends __BaseException {
|
|
138
|
-
readonly name: "LoopDetectedException";
|
|
139
|
-
readonly $fault: "server";
|
|
140
|
-
Message?: string | undefined;
|
|
141
|
-
constructor(
|
|
142
|
-
opts: __ExceptionOptionType<LoopDetectedException, __BaseException>
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
export declare class NotAcceptableException extends __BaseException {
|
|
146
|
-
readonly name: "NotAcceptableException";
|
|
147
|
-
readonly $fault: "client";
|
|
148
|
-
constructor(
|
|
149
|
-
opts: __ExceptionOptionType<NotAcceptableException, __BaseException>
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
62
|
export interface PostContentRequest {
|
|
153
63
|
botName: string | undefined;
|
|
154
64
|
botAlias: string | undefined;
|
|
@@ -160,15 +70,6 @@ export interface PostContentRequest {
|
|
|
160
70
|
inputStream: StreamingBlobTypes | undefined;
|
|
161
71
|
activeContexts?: __AutomaticJsonStringConversion | string | undefined;
|
|
162
72
|
}
|
|
163
|
-
export declare const DialogState: {
|
|
164
|
-
readonly CONFIRM_INTENT: "ConfirmIntent";
|
|
165
|
-
readonly ELICIT_INTENT: "ElicitIntent";
|
|
166
|
-
readonly ELICIT_SLOT: "ElicitSlot";
|
|
167
|
-
readonly FAILED: "Failed";
|
|
168
|
-
readonly FULFILLED: "Fulfilled";
|
|
169
|
-
readonly READY_FOR_FULFILLMENT: "ReadyForFulfillment";
|
|
170
|
-
};
|
|
171
|
-
export type DialogState = (typeof DialogState)[keyof typeof DialogState];
|
|
172
73
|
export interface PostContentResponse {
|
|
173
74
|
contentType?: string | undefined;
|
|
174
75
|
intentName?: string | undefined;
|
|
@@ -189,20 +90,6 @@ export interface PostContentResponse {
|
|
|
189
90
|
sessionId?: string | undefined;
|
|
190
91
|
activeContexts?: __AutomaticJsonStringConversion | string | undefined;
|
|
191
92
|
}
|
|
192
|
-
export declare class RequestTimeoutException extends __BaseException {
|
|
193
|
-
readonly name: "RequestTimeoutException";
|
|
194
|
-
readonly $fault: "client";
|
|
195
|
-
constructor(
|
|
196
|
-
opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
export declare class UnsupportedMediaTypeException extends __BaseException {
|
|
200
|
-
readonly name: "UnsupportedMediaTypeException";
|
|
201
|
-
readonly $fault: "client";
|
|
202
|
-
constructor(
|
|
203
|
-
opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
93
|
export interface PostTextRequest {
|
|
207
94
|
botName: string | undefined;
|
|
208
95
|
botAlias: string | undefined;
|
|
@@ -220,10 +107,6 @@ export interface PredictedIntent {
|
|
|
220
107
|
nluIntentConfidence?: IntentConfidence | undefined;
|
|
221
108
|
slots?: Record<string, string> | undefined;
|
|
222
109
|
}
|
|
223
|
-
export declare const ContentType: {
|
|
224
|
-
readonly GENERIC: "application/vnd.amazonaws.card.generic";
|
|
225
|
-
};
|
|
226
|
-
export type ContentType = (typeof ContentType)[keyof typeof ContentType];
|
|
227
110
|
export interface Button {
|
|
228
111
|
text: string | undefined;
|
|
229
112
|
value: string | undefined;
|
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.
|
|
4
|
+
"version": "3.936.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,38 +22,38 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
25
|
+
"@aws-sdk/core": "3.936.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.936.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.936.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.936.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
32
|
+
"@aws-sdk/types": "3.936.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.936.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.936.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.4.3",
|
|
37
|
-
"@smithy/core": "^3.18.
|
|
37
|
+
"@smithy/core": "^3.18.5",
|
|
38
38
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
39
39
|
"@smithy/hash-node": "^4.2.5",
|
|
40
40
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
41
41
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
42
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
43
|
-
"@smithy/middleware-retry": "^4.4.
|
|
44
|
-
"@smithy/middleware-serde": "^4.2.
|
|
42
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
43
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
44
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
45
45
|
"@smithy/middleware-stack": "^4.2.5",
|
|
46
46
|
"@smithy/node-config-provider": "^4.3.5",
|
|
47
47
|
"@smithy/node-http-handler": "^4.4.5",
|
|
48
48
|
"@smithy/protocol-http": "^5.3.5",
|
|
49
|
-
"@smithy/smithy-client": "^4.9.
|
|
49
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
50
50
|
"@smithy/types": "^4.9.0",
|
|
51
51
|
"@smithy/url-parser": "^4.2.5",
|
|
52
52
|
"@smithy/util-base64": "^4.3.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
57
57
|
"@smithy/util-endpoints": "^3.2.5",
|
|
58
58
|
"@smithy/util-middleware": "^4.2.5",
|
|
59
59
|
"@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";
|