@aws-sdk/client-lex-runtime-service 3.186.0 → 3.190.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +9 -7
- package/dist-cjs/runtimeConfig.js +9 -7
- package/dist-es/LexRuntimeService.js +22 -29
- package/dist-es/LexRuntimeServiceClient.js +22 -28
- package/dist-es/commands/DeleteSessionCommand.js +21 -28
- package/dist-es/commands/GetSessionCommand.js +21 -28
- package/dist-es/commands/PostContentCommand.js +21 -28
- package/dist-es/commands/PostTextCommand.js +21 -28
- package/dist-es/commands/PutSessionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LexRuntimeServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +223 -152
- package/dist-es/protocols/Aws_restJson1.js +755 -913
- package/dist-es/runtimeConfig.browser.js +28 -12
- package/dist-es/runtimeConfig.js +32 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/LexRuntimeServiceClient.d.ts +6 -1
- package/dist-types/commands/PostContentCommand.d.ts +2 -2
- package/dist-types/commands/PutSessionCommand.d.ts +2 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LexRuntimeServiceClient.d.ts +2 -0
- package/dist-types/ts3.4/commands/PostContentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -33
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, LexRuntimeServiceServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class LexRuntimeServiceServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, LexRuntimeServiceServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { LexRuntimeServiceServiceException };
|
|
7
|
+
}
|
|
@@ -1,67 +1,66 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { SENSITIVE_STRING, } from "@aws-sdk/smithy-client";
|
|
3
2
|
import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export class BadRequestException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "BadRequestException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "BadRequestException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ConflictException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ConflictException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
}
|
|
27
|
+
export class InternalFailureException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "InternalFailureException",
|
|
31
|
+
$fault: "server",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "InternalFailureException";
|
|
35
|
+
this.$fault = "server";
|
|
36
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
}
|
|
39
|
+
export class LimitExceededException extends __BaseException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "LimitExceededException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "LimitExceededException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
49
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
}
|
|
52
|
+
export class NotFoundException extends __BaseException {
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "NotFoundException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
this.name = "NotFoundException";
|
|
60
|
+
this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
}(__BaseException));
|
|
64
|
-
export { NotFoundException };
|
|
63
|
+
}
|
|
65
64
|
export var FulfillmentState;
|
|
66
65
|
(function (FulfillmentState) {
|
|
67
66
|
FulfillmentState["FAILED"] = "Failed";
|
|
@@ -89,57 +88,57 @@ export var ConfirmationStatus;
|
|
|
89
88
|
ConfirmationStatus["DENIED"] = "Denied";
|
|
90
89
|
ConfirmationStatus["NONE"] = "None";
|
|
91
90
|
})(ConfirmationStatus || (ConfirmationStatus = {}));
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
export class BadGatewayException extends __BaseException {
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "BadGatewayException",
|
|
95
|
+
$fault: "server",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
this.name = "BadGatewayException";
|
|
99
|
+
this.$fault = "server";
|
|
100
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
101
|
+
this.Message = opts.Message;
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
}
|
|
104
|
+
export class DependencyFailedException extends __BaseException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "DependencyFailedException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "DependencyFailedException";
|
|
112
|
+
this.$fault = "client";
|
|
113
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
114
|
+
this.Message = opts.Message;
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
}
|
|
117
|
+
export class LoopDetectedException extends __BaseException {
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "LoopDetectedException",
|
|
121
|
+
$fault: "server",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
this.name = "LoopDetectedException";
|
|
125
|
+
this.$fault = "server";
|
|
126
|
+
Object.setPrototypeOf(this, LoopDetectedException.prototype);
|
|
127
|
+
this.Message = opts.Message;
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
129
|
+
}
|
|
130
|
+
export class NotAcceptableException extends __BaseException {
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "NotAcceptableException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
this.name = "NotAcceptableException";
|
|
138
|
+
this.$fault = "client";
|
|
139
|
+
Object.setPrototypeOf(this, NotAcceptableException.prototype);
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
}(__BaseException));
|
|
142
|
-
export { NotAcceptableException };
|
|
141
|
+
}
|
|
143
142
|
export var DialogState;
|
|
144
143
|
(function (DialogState) {
|
|
145
144
|
DialogState["CONFIRM_INTENT"] = "ConfirmIntent";
|
|
@@ -149,57 +148,129 @@ export var DialogState;
|
|
|
149
148
|
DialogState["FULFILLED"] = "Fulfilled";
|
|
150
149
|
DialogState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment";
|
|
151
150
|
})(DialogState || (DialogState = {}));
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
export class RequestTimeoutException extends __BaseException {
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "RequestTimeoutException",
|
|
155
|
+
$fault: "client",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
this.name = "RequestTimeoutException";
|
|
159
|
+
this.$fault = "client";
|
|
160
|
+
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
160
161
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
}
|
|
163
|
+
export class UnsupportedMediaTypeException extends __BaseException {
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "UnsupportedMediaTypeException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
this.name = "UnsupportedMediaTypeException";
|
|
171
|
+
this.$fault = "client";
|
|
172
|
+
Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
|
|
172
173
|
}
|
|
173
|
-
|
|
174
|
-
}(__BaseException));
|
|
175
|
-
export { UnsupportedMediaTypeException };
|
|
174
|
+
}
|
|
176
175
|
export var ContentType;
|
|
177
176
|
(function (ContentType) {
|
|
178
177
|
ContentType["GENERIC"] = "application/vnd.amazonaws.card.generic";
|
|
179
178
|
})(ContentType || (ContentType = {}));
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
})
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
})
|
|
205
|
-
export
|
|
179
|
+
export const ActiveContextTimeToLiveFilterSensitiveLog = (obj) => ({
|
|
180
|
+
...obj,
|
|
181
|
+
});
|
|
182
|
+
export const ActiveContextFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
...(obj.parameters && { parameters: SENSITIVE_STRING }),
|
|
185
|
+
});
|
|
186
|
+
export const DeleteSessionRequestFilterSensitiveLog = (obj) => ({
|
|
187
|
+
...obj,
|
|
188
|
+
});
|
|
189
|
+
export const DeleteSessionResponseFilterSensitiveLog = (obj) => ({
|
|
190
|
+
...obj,
|
|
191
|
+
});
|
|
192
|
+
export const GetSessionRequestFilterSensitiveLog = (obj) => ({
|
|
193
|
+
...obj,
|
|
194
|
+
});
|
|
195
|
+
export const DialogActionFilterSensitiveLog = (obj) => ({
|
|
196
|
+
...obj,
|
|
197
|
+
...(obj.slots && { slots: SENSITIVE_STRING }),
|
|
198
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
199
|
+
});
|
|
200
|
+
export const IntentSummaryFilterSensitiveLog = (obj) => ({
|
|
201
|
+
...obj,
|
|
202
|
+
...(obj.slots && { slots: SENSITIVE_STRING }),
|
|
203
|
+
});
|
|
204
|
+
export const GetSessionResponseFilterSensitiveLog = (obj) => ({
|
|
205
|
+
...obj,
|
|
206
|
+
...(obj.recentIntentSummaryView && {
|
|
207
|
+
recentIntentSummaryView: obj.recentIntentSummaryView.map((item) => IntentSummaryFilterSensitiveLog(item)),
|
|
208
|
+
}),
|
|
209
|
+
...(obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING }),
|
|
210
|
+
...(obj.dialogAction && { dialogAction: DialogActionFilterSensitiveLog(obj.dialogAction) }),
|
|
211
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
212
|
+
});
|
|
213
|
+
export const PostContentRequestFilterSensitiveLog = (obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...(obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING }),
|
|
216
|
+
...(obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }),
|
|
217
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
218
|
+
});
|
|
219
|
+
export const PostContentResponseFilterSensitiveLog = (obj) => ({
|
|
220
|
+
...obj,
|
|
221
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
222
|
+
...(obj.encodedMessage && { encodedMessage: SENSITIVE_STRING }),
|
|
223
|
+
...(obj.encodedInputTranscript && { encodedInputTranscript: SENSITIVE_STRING }),
|
|
224
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
225
|
+
});
|
|
226
|
+
export const PostTextRequestFilterSensitiveLog = (obj) => ({
|
|
227
|
+
...obj,
|
|
228
|
+
...(obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING }),
|
|
229
|
+
...(obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }),
|
|
230
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
231
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
232
|
+
});
|
|
233
|
+
export const IntentConfidenceFilterSensitiveLog = (obj) => ({
|
|
234
|
+
...obj,
|
|
235
|
+
});
|
|
236
|
+
export const PredictedIntentFilterSensitiveLog = (obj) => ({
|
|
237
|
+
...obj,
|
|
238
|
+
...(obj.slots && { slots: SENSITIVE_STRING }),
|
|
239
|
+
});
|
|
240
|
+
export const ButtonFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
});
|
|
243
|
+
export const GenericAttachmentFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
});
|
|
246
|
+
export const ResponseCardFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
export const SentimentResponseFilterSensitiveLog = (obj) => ({
|
|
250
|
+
...obj,
|
|
251
|
+
});
|
|
252
|
+
export const PostTextResponseFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
...(obj.alternativeIntents && {
|
|
255
|
+
alternativeIntents: obj.alternativeIntents.map((item) => PredictedIntentFilterSensitiveLog(item)),
|
|
256
|
+
}),
|
|
257
|
+
...(obj.slots && { slots: SENSITIVE_STRING }),
|
|
258
|
+
...(obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING }),
|
|
259
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
260
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
261
|
+
});
|
|
262
|
+
export const PutSessionRequestFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
...(obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING }),
|
|
265
|
+
...(obj.dialogAction && { dialogAction: DialogActionFilterSensitiveLog(obj.dialogAction) }),
|
|
266
|
+
...(obj.recentIntentSummaryView && {
|
|
267
|
+
recentIntentSummaryView: obj.recentIntentSummaryView.map((item) => IntentSummaryFilterSensitiveLog(item)),
|
|
268
|
+
}),
|
|
269
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
270
|
+
});
|
|
271
|
+
export const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
272
|
+
...obj,
|
|
273
|
+
...(obj.message && { message: SENSITIVE_STRING }),
|
|
274
|
+
...(obj.encodedMessage && { encodedMessage: SENSITIVE_STRING }),
|
|
275
|
+
...(obj.activeContexts && { activeContexts: SENSITIVE_STRING }),
|
|
276
|
+
});
|