@aws-sdk/client-lex-runtime-service 3.490.0 → 3.495.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.
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LexRuntimeServiceServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class LexRuntimeServiceServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, LexRuntimeServiceServiceException.prototype);
10
- }
11
- }
12
- exports.LexRuntimeServiceServiceException = LexRuntimeServiceServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,268 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutSessionResponseFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.PostTextResponseFilterSensitiveLog = exports.PredictedIntentFilterSensitiveLog = exports.PostTextRequestFilterSensitiveLog = exports.PostContentResponseFilterSensitiveLog = exports.PostContentRequestFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.IntentSummaryFilterSensitiveLog = exports.DialogActionFilterSensitiveLog = exports.ActiveContextFilterSensitiveLog = exports.ContentType = exports.UnsupportedMediaTypeException = exports.RequestTimeoutException = exports.DialogState = exports.NotAcceptableException = exports.LoopDetectedException = exports.DependencyFailedException = exports.BadGatewayException = exports.ConfirmationStatus = exports.DialogActionType = exports.MessageFormatType = exports.FulfillmentState = exports.NotFoundException = exports.LimitExceededException = exports.InternalFailureException = exports.ConflictException = exports.BadRequestException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const LexRuntimeServiceServiceException_1 = require("./LexRuntimeServiceServiceException");
6
- class BadRequestException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
7
- constructor(opts) {
8
- super({
9
- name: "BadRequestException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- this.name = "BadRequestException";
14
- this.$fault = "client";
15
- Object.setPrototypeOf(this, BadRequestException.prototype);
16
- }
17
- }
18
- exports.BadRequestException = BadRequestException;
19
- class ConflictException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
20
- constructor(opts) {
21
- super({
22
- name: "ConflictException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- this.name = "ConflictException";
27
- this.$fault = "client";
28
- Object.setPrototypeOf(this, ConflictException.prototype);
29
- }
30
- }
31
- exports.ConflictException = ConflictException;
32
- class InternalFailureException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
33
- constructor(opts) {
34
- super({
35
- name: "InternalFailureException",
36
- $fault: "server",
37
- ...opts,
38
- });
39
- this.name = "InternalFailureException";
40
- this.$fault = "server";
41
- Object.setPrototypeOf(this, InternalFailureException.prototype);
42
- }
43
- }
44
- exports.InternalFailureException = InternalFailureException;
45
- class LimitExceededException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
46
- constructor(opts) {
47
- super({
48
- name: "LimitExceededException",
49
- $fault: "client",
50
- ...opts,
51
- });
52
- this.name = "LimitExceededException";
53
- this.$fault = "client";
54
- Object.setPrototypeOf(this, LimitExceededException.prototype);
55
- this.retryAfterSeconds = opts.retryAfterSeconds;
56
- }
57
- }
58
- exports.LimitExceededException = LimitExceededException;
59
- class NotFoundException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
60
- constructor(opts) {
61
- super({
62
- name: "NotFoundException",
63
- $fault: "client",
64
- ...opts,
65
- });
66
- this.name = "NotFoundException";
67
- this.$fault = "client";
68
- Object.setPrototypeOf(this, NotFoundException.prototype);
69
- }
70
- }
71
- exports.NotFoundException = NotFoundException;
72
- exports.FulfillmentState = {
73
- FAILED: "Failed",
74
- FULFILLED: "Fulfilled",
75
- READY_FOR_FULFILLMENT: "ReadyForFulfillment",
76
- };
77
- exports.MessageFormatType = {
78
- COMPOSITE: "Composite",
79
- CUSTOM_PAYLOAD: "CustomPayload",
80
- PLAIN_TEXT: "PlainText",
81
- SSML: "SSML",
82
- };
83
- exports.DialogActionType = {
84
- CLOSE: "Close",
85
- CONFIRM_INTENT: "ConfirmIntent",
86
- DELEGATE: "Delegate",
87
- ELICIT_INTENT: "ElicitIntent",
88
- ELICIT_SLOT: "ElicitSlot",
89
- };
90
- exports.ConfirmationStatus = {
91
- CONFIRMED: "Confirmed",
92
- DENIED: "Denied",
93
- NONE: "None",
94
- };
95
- class BadGatewayException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
96
- constructor(opts) {
97
- super({
98
- name: "BadGatewayException",
99
- $fault: "server",
100
- ...opts,
101
- });
102
- this.name = "BadGatewayException";
103
- this.$fault = "server";
104
- Object.setPrototypeOf(this, BadGatewayException.prototype);
105
- this.Message = opts.Message;
106
- }
107
- }
108
- exports.BadGatewayException = BadGatewayException;
109
- class DependencyFailedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
110
- constructor(opts) {
111
- super({
112
- name: "DependencyFailedException",
113
- $fault: "client",
114
- ...opts,
115
- });
116
- this.name = "DependencyFailedException";
117
- this.$fault = "client";
118
- Object.setPrototypeOf(this, DependencyFailedException.prototype);
119
- this.Message = opts.Message;
120
- }
121
- }
122
- exports.DependencyFailedException = DependencyFailedException;
123
- class LoopDetectedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
124
- constructor(opts) {
125
- super({
126
- name: "LoopDetectedException",
127
- $fault: "server",
128
- ...opts,
129
- });
130
- this.name = "LoopDetectedException";
131
- this.$fault = "server";
132
- Object.setPrototypeOf(this, LoopDetectedException.prototype);
133
- this.Message = opts.Message;
134
- }
135
- }
136
- exports.LoopDetectedException = LoopDetectedException;
137
- class NotAcceptableException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
138
- constructor(opts) {
139
- super({
140
- name: "NotAcceptableException",
141
- $fault: "client",
142
- ...opts,
143
- });
144
- this.name = "NotAcceptableException";
145
- this.$fault = "client";
146
- Object.setPrototypeOf(this, NotAcceptableException.prototype);
147
- }
148
- }
149
- exports.NotAcceptableException = NotAcceptableException;
150
- exports.DialogState = {
151
- CONFIRM_INTENT: "ConfirmIntent",
152
- ELICIT_INTENT: "ElicitIntent",
153
- ELICIT_SLOT: "ElicitSlot",
154
- FAILED: "Failed",
155
- FULFILLED: "Fulfilled",
156
- READY_FOR_FULFILLMENT: "ReadyForFulfillment",
157
- };
158
- class RequestTimeoutException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
159
- constructor(opts) {
160
- super({
161
- name: "RequestTimeoutException",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- this.name = "RequestTimeoutException";
166
- this.$fault = "client";
167
- Object.setPrototypeOf(this, RequestTimeoutException.prototype);
168
- }
169
- }
170
- exports.RequestTimeoutException = RequestTimeoutException;
171
- class UnsupportedMediaTypeException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
172
- constructor(opts) {
173
- super({
174
- name: "UnsupportedMediaTypeException",
175
- $fault: "client",
176
- ...opts,
177
- });
178
- this.name = "UnsupportedMediaTypeException";
179
- this.$fault = "client";
180
- Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
181
- }
182
- }
183
- exports.UnsupportedMediaTypeException = UnsupportedMediaTypeException;
184
- exports.ContentType = {
185
- GENERIC: "application/vnd.amazonaws.card.generic",
186
- };
187
- const ActiveContextFilterSensitiveLog = (obj) => ({
188
- ...obj,
189
- ...(obj.parameters && { parameters: smithy_client_1.SENSITIVE_STRING }),
190
- });
191
- exports.ActiveContextFilterSensitiveLog = ActiveContextFilterSensitiveLog;
192
- const DialogActionFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- ...(obj.slots && { slots: smithy_client_1.SENSITIVE_STRING }),
195
- ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
196
- });
197
- exports.DialogActionFilterSensitiveLog = DialogActionFilterSensitiveLog;
198
- const IntentSummaryFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- ...(obj.slots && { slots: smithy_client_1.SENSITIVE_STRING }),
201
- });
202
- exports.IntentSummaryFilterSensitiveLog = IntentSummaryFilterSensitiveLog;
203
- const GetSessionResponseFilterSensitiveLog = (obj) => ({
204
- ...obj,
205
- ...(obj.recentIntentSummaryView && {
206
- recentIntentSummaryView: obj.recentIntentSummaryView.map((item) => (0, exports.IntentSummaryFilterSensitiveLog)(item)),
207
- }),
208
- ...(obj.sessionAttributes && { sessionAttributes: smithy_client_1.SENSITIVE_STRING }),
209
- ...(obj.dialogAction && { dialogAction: (0, exports.DialogActionFilterSensitiveLog)(obj.dialogAction) }),
210
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
211
- });
212
- exports.GetSessionResponseFilterSensitiveLog = GetSessionResponseFilterSensitiveLog;
213
- const PostContentRequestFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- ...(obj.sessionAttributes && { sessionAttributes: smithy_client_1.SENSITIVE_STRING }),
216
- ...(obj.requestAttributes && { requestAttributes: smithy_client_1.SENSITIVE_STRING }),
217
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
218
- });
219
- exports.PostContentRequestFilterSensitiveLog = PostContentRequestFilterSensitiveLog;
220
- const PostContentResponseFilterSensitiveLog = (obj) => ({
221
- ...obj,
222
- ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
223
- ...(obj.encodedMessage && { encodedMessage: smithy_client_1.SENSITIVE_STRING }),
224
- ...(obj.encodedInputTranscript && { encodedInputTranscript: smithy_client_1.SENSITIVE_STRING }),
225
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
226
- });
227
- exports.PostContentResponseFilterSensitiveLog = PostContentResponseFilterSensitiveLog;
228
- const PostTextRequestFilterSensitiveLog = (obj) => ({
229
- ...obj,
230
- ...(obj.sessionAttributes && { sessionAttributes: smithy_client_1.SENSITIVE_STRING }),
231
- ...(obj.requestAttributes && { requestAttributes: smithy_client_1.SENSITIVE_STRING }),
232
- ...(obj.inputText && { inputText: smithy_client_1.SENSITIVE_STRING }),
233
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
234
- });
235
- exports.PostTextRequestFilterSensitiveLog = PostTextRequestFilterSensitiveLog;
236
- const PredictedIntentFilterSensitiveLog = (obj) => ({
237
- ...obj,
238
- ...(obj.slots && { slots: smithy_client_1.SENSITIVE_STRING }),
239
- });
240
- exports.PredictedIntentFilterSensitiveLog = PredictedIntentFilterSensitiveLog;
241
- const PostTextResponseFilterSensitiveLog = (obj) => ({
242
- ...obj,
243
- ...(obj.alternativeIntents && {
244
- alternativeIntents: obj.alternativeIntents.map((item) => (0, exports.PredictedIntentFilterSensitiveLog)(item)),
245
- }),
246
- ...(obj.slots && { slots: smithy_client_1.SENSITIVE_STRING }),
247
- ...(obj.sessionAttributes && { sessionAttributes: smithy_client_1.SENSITIVE_STRING }),
248
- ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
249
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
250
- });
251
- exports.PostTextResponseFilterSensitiveLog = PostTextResponseFilterSensitiveLog;
252
- const PutSessionRequestFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- ...(obj.sessionAttributes && { sessionAttributes: smithy_client_1.SENSITIVE_STRING }),
255
- ...(obj.dialogAction && { dialogAction: (0, exports.DialogActionFilterSensitiveLog)(obj.dialogAction) }),
256
- ...(obj.recentIntentSummaryView && {
257
- recentIntentSummaryView: obj.recentIntentSummaryView.map((item) => (0, exports.IntentSummaryFilterSensitiveLog)(item)),
258
- }),
259
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
260
- });
261
- exports.PutSessionRequestFilterSensitiveLog = PutSessionRequestFilterSensitiveLog;
262
- const PutSessionResponseFilterSensitiveLog = (obj) => ({
263
- ...obj,
264
- ...(obj.message && { message: smithy_client_1.SENSITIVE_STRING }),
265
- ...(obj.encodedMessage && { encodedMessage: smithy_client_1.SENSITIVE_STRING }),
266
- ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
267
- });
268
- exports.PutSessionResponseFilterSensitiveLog = PutSessionResponseFilterSensitiveLog;
1
+ module.exports = require("../index.js");