@aws-sdk/client-lex-runtime-v2 3.489.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.
- package/dist-cjs/LexRuntimeV2.js +1 -23
- package/dist-cjs/LexRuntimeV2Client.js +1 -47
- package/dist-cjs/commands/DeleteSessionCommand.js +1 -28
- package/dist-cjs/commands/GetSessionCommand.js +1 -29
- package/dist-cjs/commands/PutSessionCommand.js +1 -29
- package/dist-cjs/commands/RecognizeTextCommand.js +1 -29
- package/dist-cjs/commands/RecognizeUtteranceCommand.js +1 -29
- package/dist-cjs/commands/StartConversationCommand.js +1 -36
- package/dist-cjs/commands/index.js +1 -9
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1830 -10
- package/dist-cjs/models/LexRuntimeV2ServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -357
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1104
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +46 -46
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LexRuntimeV2ServiceException = 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 LexRuntimeV2ServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, LexRuntimeV2ServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.LexRuntimeV2ServiceException = LexRuntimeV2ServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,357 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartConversationResponseFilterSensitiveLog = exports.StartConversationResponseEventStreamFilterSensitiveLog = exports.RecognizeTextResponseFilterSensitiveLog = exports.IntentResultEventFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.StartConversationRequestFilterSensitiveLog = exports.StartConversationRequestEventStreamFilterSensitiveLog = exports.RecognizeTextRequestFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.ConfigurationEventFilterSensitiveLog = exports.SessionStateFilterSensitiveLog = exports.TextResponseEventFilterSensitiveLog = exports.TextInputEventFilterSensitiveLog = exports.DTMFInputEventFilterSensitiveLog = exports.RecognizeUtteranceResponseFilterSensitiveLog = exports.RecognizeUtteranceRequestFilterSensitiveLog = exports.PutSessionResponseFilterSensitiveLog = exports.MessageFilterSensitiveLog = exports.ActiveContextFilterSensitiveLog = exports.StartConversationResponseEventStream = exports.StartConversationRequestEventStream = exports.PlaybackInterruptionReason = exports.InputMode = exports.ConversationMode = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogActionType = exports.StyleType = exports.MessageContentType = exports.SentimentType = exports.InterpretationSource = exports.IntentState = exports.Shape = exports.ConfirmationState = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const LexRuntimeV2ServiceException_1 = require("./LexRuntimeV2ServiceException");
|
|
6
|
-
class AccessDeniedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
7
|
-
constructor(opts) {
|
|
8
|
-
super({
|
|
9
|
-
name: "AccessDeniedException",
|
|
10
|
-
$fault: "client",
|
|
11
|
-
...opts,
|
|
12
|
-
});
|
|
13
|
-
this.name = "AccessDeniedException";
|
|
14
|
-
this.$fault = "client";
|
|
15
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
-
class ConflictException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
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 InternalServerException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
33
|
-
constructor(opts) {
|
|
34
|
-
super({
|
|
35
|
-
name: "InternalServerException",
|
|
36
|
-
$fault: "server",
|
|
37
|
-
...opts,
|
|
38
|
-
});
|
|
39
|
-
this.name = "InternalServerException";
|
|
40
|
-
this.$fault = "server";
|
|
41
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.InternalServerException = InternalServerException;
|
|
45
|
-
class ResourceNotFoundException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "ResourceNotFoundException",
|
|
49
|
-
$fault: "client",
|
|
50
|
-
...opts,
|
|
51
|
-
});
|
|
52
|
-
this.name = "ResourceNotFoundException";
|
|
53
|
-
this.$fault = "client";
|
|
54
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
58
|
-
class ThrottlingException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
59
|
-
constructor(opts) {
|
|
60
|
-
super({
|
|
61
|
-
name: "ThrottlingException",
|
|
62
|
-
$fault: "client",
|
|
63
|
-
...opts,
|
|
64
|
-
});
|
|
65
|
-
this.name = "ThrottlingException";
|
|
66
|
-
this.$fault = "client";
|
|
67
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.ThrottlingException = ThrottlingException;
|
|
71
|
-
class ValidationException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
72
|
-
constructor(opts) {
|
|
73
|
-
super({
|
|
74
|
-
name: "ValidationException",
|
|
75
|
-
$fault: "client",
|
|
76
|
-
...opts,
|
|
77
|
-
});
|
|
78
|
-
this.name = "ValidationException";
|
|
79
|
-
this.$fault = "client";
|
|
80
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.ValidationException = ValidationException;
|
|
84
|
-
exports.ConfirmationState = {
|
|
85
|
-
CONFIRMED: "Confirmed",
|
|
86
|
-
DENIED: "Denied",
|
|
87
|
-
NONE: "None",
|
|
88
|
-
};
|
|
89
|
-
exports.Shape = {
|
|
90
|
-
COMPOSITE: "Composite",
|
|
91
|
-
LIST: "List",
|
|
92
|
-
SCALAR: "Scalar",
|
|
93
|
-
};
|
|
94
|
-
exports.IntentState = {
|
|
95
|
-
FAILED: "Failed",
|
|
96
|
-
FULFILLED: "Fulfilled",
|
|
97
|
-
FULFILLMENT_IN_PROGRESS: "FulfillmentInProgress",
|
|
98
|
-
IN_PROGRESS: "InProgress",
|
|
99
|
-
READY_FOR_FULFILLMENT: "ReadyForFulfillment",
|
|
100
|
-
WAITING: "Waiting",
|
|
101
|
-
};
|
|
102
|
-
exports.InterpretationSource = {
|
|
103
|
-
BEDROCK: "Bedrock",
|
|
104
|
-
LEX: "Lex",
|
|
105
|
-
};
|
|
106
|
-
exports.SentimentType = {
|
|
107
|
-
MIXED: "MIXED",
|
|
108
|
-
NEGATIVE: "NEGATIVE",
|
|
109
|
-
NEUTRAL: "NEUTRAL",
|
|
110
|
-
POSITIVE: "POSITIVE",
|
|
111
|
-
};
|
|
112
|
-
exports.MessageContentType = {
|
|
113
|
-
CUSTOM_PAYLOAD: "CustomPayload",
|
|
114
|
-
IMAGE_RESPONSE_CARD: "ImageResponseCard",
|
|
115
|
-
PLAIN_TEXT: "PlainText",
|
|
116
|
-
SSML: "SSML",
|
|
117
|
-
};
|
|
118
|
-
exports.StyleType = {
|
|
119
|
-
DEFAULT: "Default",
|
|
120
|
-
SPELL_BY_LETTER: "SpellByLetter",
|
|
121
|
-
SPELL_BY_WORD: "SpellByWord",
|
|
122
|
-
};
|
|
123
|
-
exports.DialogActionType = {
|
|
124
|
-
CLOSE: "Close",
|
|
125
|
-
CONFIRM_INTENT: "ConfirmIntent",
|
|
126
|
-
DELEGATE: "Delegate",
|
|
127
|
-
ELICIT_INTENT: "ElicitIntent",
|
|
128
|
-
ELICIT_SLOT: "ElicitSlot",
|
|
129
|
-
NONE: "None",
|
|
130
|
-
};
|
|
131
|
-
class BadGatewayException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "BadGatewayException",
|
|
135
|
-
$fault: "server",
|
|
136
|
-
...opts,
|
|
137
|
-
});
|
|
138
|
-
this.name = "BadGatewayException";
|
|
139
|
-
this.$fault = "server";
|
|
140
|
-
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.BadGatewayException = BadGatewayException;
|
|
144
|
-
class DependencyFailedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
145
|
-
constructor(opts) {
|
|
146
|
-
super({
|
|
147
|
-
name: "DependencyFailedException",
|
|
148
|
-
$fault: "client",
|
|
149
|
-
...opts,
|
|
150
|
-
});
|
|
151
|
-
this.name = "DependencyFailedException";
|
|
152
|
-
this.$fault = "client";
|
|
153
|
-
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.DependencyFailedException = DependencyFailedException;
|
|
157
|
-
exports.ConversationMode = {
|
|
158
|
-
AUDIO: "AUDIO",
|
|
159
|
-
TEXT: "TEXT",
|
|
160
|
-
};
|
|
161
|
-
exports.InputMode = {
|
|
162
|
-
DTMF: "DTMF",
|
|
163
|
-
SPEECH: "Speech",
|
|
164
|
-
TEXT: "Text",
|
|
165
|
-
};
|
|
166
|
-
exports.PlaybackInterruptionReason = {
|
|
167
|
-
DTMF_START_DETECTED: "DTMF_START_DETECTED",
|
|
168
|
-
TEXT_DETECTED: "TEXT_DETECTED",
|
|
169
|
-
VOICE_START_DETECTED: "VOICE_START_DETECTED",
|
|
170
|
-
};
|
|
171
|
-
var StartConversationRequestEventStream;
|
|
172
|
-
(function (StartConversationRequestEventStream) {
|
|
173
|
-
StartConversationRequestEventStream.visit = (value, visitor) => {
|
|
174
|
-
if (value.ConfigurationEvent !== undefined)
|
|
175
|
-
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
176
|
-
if (value.AudioInputEvent !== undefined)
|
|
177
|
-
return visitor.AudioInputEvent(value.AudioInputEvent);
|
|
178
|
-
if (value.DTMFInputEvent !== undefined)
|
|
179
|
-
return visitor.DTMFInputEvent(value.DTMFInputEvent);
|
|
180
|
-
if (value.TextInputEvent !== undefined)
|
|
181
|
-
return visitor.TextInputEvent(value.TextInputEvent);
|
|
182
|
-
if (value.PlaybackCompletionEvent !== undefined)
|
|
183
|
-
return visitor.PlaybackCompletionEvent(value.PlaybackCompletionEvent);
|
|
184
|
-
if (value.DisconnectionEvent !== undefined)
|
|
185
|
-
return visitor.DisconnectionEvent(value.DisconnectionEvent);
|
|
186
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
187
|
-
};
|
|
188
|
-
})(StartConversationRequestEventStream = exports.StartConversationRequestEventStream || (exports.StartConversationRequestEventStream = {}));
|
|
189
|
-
var StartConversationResponseEventStream;
|
|
190
|
-
(function (StartConversationResponseEventStream) {
|
|
191
|
-
StartConversationResponseEventStream.visit = (value, visitor) => {
|
|
192
|
-
if (value.PlaybackInterruptionEvent !== undefined)
|
|
193
|
-
return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
|
|
194
|
-
if (value.TranscriptEvent !== undefined)
|
|
195
|
-
return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
196
|
-
if (value.IntentResultEvent !== undefined)
|
|
197
|
-
return visitor.IntentResultEvent(value.IntentResultEvent);
|
|
198
|
-
if (value.TextResponseEvent !== undefined)
|
|
199
|
-
return visitor.TextResponseEvent(value.TextResponseEvent);
|
|
200
|
-
if (value.AudioResponseEvent !== undefined)
|
|
201
|
-
return visitor.AudioResponseEvent(value.AudioResponseEvent);
|
|
202
|
-
if (value.HeartbeatEvent !== undefined)
|
|
203
|
-
return visitor.HeartbeatEvent(value.HeartbeatEvent);
|
|
204
|
-
if (value.AccessDeniedException !== undefined)
|
|
205
|
-
return visitor.AccessDeniedException(value.AccessDeniedException);
|
|
206
|
-
if (value.ResourceNotFoundException !== undefined)
|
|
207
|
-
return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
|
|
208
|
-
if (value.ValidationException !== undefined)
|
|
209
|
-
return visitor.ValidationException(value.ValidationException);
|
|
210
|
-
if (value.ThrottlingException !== undefined)
|
|
211
|
-
return visitor.ThrottlingException(value.ThrottlingException);
|
|
212
|
-
if (value.InternalServerException !== undefined)
|
|
213
|
-
return visitor.InternalServerException(value.InternalServerException);
|
|
214
|
-
if (value.ConflictException !== undefined)
|
|
215
|
-
return visitor.ConflictException(value.ConflictException);
|
|
216
|
-
if (value.DependencyFailedException !== undefined)
|
|
217
|
-
return visitor.DependencyFailedException(value.DependencyFailedException);
|
|
218
|
-
if (value.BadGatewayException !== undefined)
|
|
219
|
-
return visitor.BadGatewayException(value.BadGatewayException);
|
|
220
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
|
-
};
|
|
222
|
-
})(StartConversationResponseEventStream = exports.StartConversationResponseEventStream || (exports.StartConversationResponseEventStream = {}));
|
|
223
|
-
const ActiveContextFilterSensitiveLog = (obj) => ({
|
|
224
|
-
...obj,
|
|
225
|
-
...(obj.contextAttributes && { contextAttributes: smithy_client_1.SENSITIVE_STRING }),
|
|
226
|
-
});
|
|
227
|
-
exports.ActiveContextFilterSensitiveLog = ActiveContextFilterSensitiveLog;
|
|
228
|
-
const MessageFilterSensitiveLog = (obj) => ({
|
|
229
|
-
...obj,
|
|
230
|
-
...(obj.content && { content: smithy_client_1.SENSITIVE_STRING }),
|
|
231
|
-
});
|
|
232
|
-
exports.MessageFilterSensitiveLog = MessageFilterSensitiveLog;
|
|
233
|
-
const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
});
|
|
236
|
-
exports.PutSessionResponseFilterSensitiveLog = PutSessionResponseFilterSensitiveLog;
|
|
237
|
-
const RecognizeUtteranceRequestFilterSensitiveLog = (obj) => ({
|
|
238
|
-
...obj,
|
|
239
|
-
...(obj.sessionState && { sessionState: smithy_client_1.SENSITIVE_STRING }),
|
|
240
|
-
...(obj.requestAttributes && { requestAttributes: smithy_client_1.SENSITIVE_STRING }),
|
|
241
|
-
});
|
|
242
|
-
exports.RecognizeUtteranceRequestFilterSensitiveLog = RecognizeUtteranceRequestFilterSensitiveLog;
|
|
243
|
-
const RecognizeUtteranceResponseFilterSensitiveLog = (obj) => ({
|
|
244
|
-
...obj,
|
|
245
|
-
});
|
|
246
|
-
exports.RecognizeUtteranceResponseFilterSensitiveLog = RecognizeUtteranceResponseFilterSensitiveLog;
|
|
247
|
-
const DTMFInputEventFilterSensitiveLog = (obj) => ({
|
|
248
|
-
...obj,
|
|
249
|
-
...(obj.inputCharacter && { inputCharacter: smithy_client_1.SENSITIVE_STRING }),
|
|
250
|
-
});
|
|
251
|
-
exports.DTMFInputEventFilterSensitiveLog = DTMFInputEventFilterSensitiveLog;
|
|
252
|
-
const TextInputEventFilterSensitiveLog = (obj) => ({
|
|
253
|
-
...obj,
|
|
254
|
-
...(obj.text && { text: smithy_client_1.SENSITIVE_STRING }),
|
|
255
|
-
});
|
|
256
|
-
exports.TextInputEventFilterSensitiveLog = TextInputEventFilterSensitiveLog;
|
|
257
|
-
const TextResponseEventFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
...(obj.messages && { messages: obj.messages.map((item) => (0, exports.MessageFilterSensitiveLog)(item)) }),
|
|
260
|
-
});
|
|
261
|
-
exports.TextResponseEventFilterSensitiveLog = TextResponseEventFilterSensitiveLog;
|
|
262
|
-
const SessionStateFilterSensitiveLog = (obj) => ({
|
|
263
|
-
...obj,
|
|
264
|
-
...(obj.activeContexts && {
|
|
265
|
-
activeContexts: obj.activeContexts.map((item) => (0, exports.ActiveContextFilterSensitiveLog)(item)),
|
|
266
|
-
}),
|
|
267
|
-
});
|
|
268
|
-
exports.SessionStateFilterSensitiveLog = SessionStateFilterSensitiveLog;
|
|
269
|
-
const ConfigurationEventFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
...(obj.welcomeMessages && { welcomeMessages: obj.welcomeMessages.map((item) => (0, exports.MessageFilterSensitiveLog)(item)) }),
|
|
272
|
-
});
|
|
273
|
-
exports.ConfigurationEventFilterSensitiveLog = ConfigurationEventFilterSensitiveLog;
|
|
274
|
-
const PutSessionRequestFilterSensitiveLog = (obj) => ({
|
|
275
|
-
...obj,
|
|
276
|
-
...(obj.messages && { messages: obj.messages.map((item) => (0, exports.MessageFilterSensitiveLog)(item)) }),
|
|
277
|
-
});
|
|
278
|
-
exports.PutSessionRequestFilterSensitiveLog = PutSessionRequestFilterSensitiveLog;
|
|
279
|
-
const RecognizeTextRequestFilterSensitiveLog = (obj) => ({
|
|
280
|
-
...obj,
|
|
281
|
-
...(obj.text && { text: smithy_client_1.SENSITIVE_STRING }),
|
|
282
|
-
});
|
|
283
|
-
exports.RecognizeTextRequestFilterSensitiveLog = RecognizeTextRequestFilterSensitiveLog;
|
|
284
|
-
const StartConversationRequestEventStreamFilterSensitiveLog = (obj) => {
|
|
285
|
-
if (obj.ConfigurationEvent !== undefined)
|
|
286
|
-
return { ConfigurationEvent: (0, exports.ConfigurationEventFilterSensitiveLog)(obj.ConfigurationEvent) };
|
|
287
|
-
if (obj.AudioInputEvent !== undefined)
|
|
288
|
-
return { AudioInputEvent: obj.AudioInputEvent };
|
|
289
|
-
if (obj.DTMFInputEvent !== undefined)
|
|
290
|
-
return { DTMFInputEvent: (0, exports.DTMFInputEventFilterSensitiveLog)(obj.DTMFInputEvent) };
|
|
291
|
-
if (obj.TextInputEvent !== undefined)
|
|
292
|
-
return { TextInputEvent: (0, exports.TextInputEventFilterSensitiveLog)(obj.TextInputEvent) };
|
|
293
|
-
if (obj.PlaybackCompletionEvent !== undefined)
|
|
294
|
-
return { PlaybackCompletionEvent: obj.PlaybackCompletionEvent };
|
|
295
|
-
if (obj.DisconnectionEvent !== undefined)
|
|
296
|
-
return { DisconnectionEvent: obj.DisconnectionEvent };
|
|
297
|
-
if (obj.$unknown !== undefined)
|
|
298
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
299
|
-
};
|
|
300
|
-
exports.StartConversationRequestEventStreamFilterSensitiveLog = StartConversationRequestEventStreamFilterSensitiveLog;
|
|
301
|
-
const StartConversationRequestFilterSensitiveLog = (obj) => ({
|
|
302
|
-
...obj,
|
|
303
|
-
...(obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }),
|
|
304
|
-
});
|
|
305
|
-
exports.StartConversationRequestFilterSensitiveLog = StartConversationRequestFilterSensitiveLog;
|
|
306
|
-
const GetSessionResponseFilterSensitiveLog = (obj) => ({
|
|
307
|
-
...obj,
|
|
308
|
-
...(obj.messages && { messages: obj.messages.map((item) => (0, exports.MessageFilterSensitiveLog)(item)) }),
|
|
309
|
-
});
|
|
310
|
-
exports.GetSessionResponseFilterSensitiveLog = GetSessionResponseFilterSensitiveLog;
|
|
311
|
-
const IntentResultEventFilterSensitiveLog = (obj) => ({
|
|
312
|
-
...obj,
|
|
313
|
-
});
|
|
314
|
-
exports.IntentResultEventFilterSensitiveLog = IntentResultEventFilterSensitiveLog;
|
|
315
|
-
const RecognizeTextResponseFilterSensitiveLog = (obj) => ({
|
|
316
|
-
...obj,
|
|
317
|
-
...(obj.messages && { messages: obj.messages.map((item) => (0, exports.MessageFilterSensitiveLog)(item)) }),
|
|
318
|
-
});
|
|
319
|
-
exports.RecognizeTextResponseFilterSensitiveLog = RecognizeTextResponseFilterSensitiveLog;
|
|
320
|
-
const StartConversationResponseEventStreamFilterSensitiveLog = (obj) => {
|
|
321
|
-
if (obj.PlaybackInterruptionEvent !== undefined)
|
|
322
|
-
return { PlaybackInterruptionEvent: obj.PlaybackInterruptionEvent };
|
|
323
|
-
if (obj.TranscriptEvent !== undefined)
|
|
324
|
-
return { TranscriptEvent: obj.TranscriptEvent };
|
|
325
|
-
if (obj.IntentResultEvent !== undefined)
|
|
326
|
-
return { IntentResultEvent: (0, exports.IntentResultEventFilterSensitiveLog)(obj.IntentResultEvent) };
|
|
327
|
-
if (obj.TextResponseEvent !== undefined)
|
|
328
|
-
return { TextResponseEvent: (0, exports.TextResponseEventFilterSensitiveLog)(obj.TextResponseEvent) };
|
|
329
|
-
if (obj.AudioResponseEvent !== undefined)
|
|
330
|
-
return { AudioResponseEvent: obj.AudioResponseEvent };
|
|
331
|
-
if (obj.HeartbeatEvent !== undefined)
|
|
332
|
-
return { HeartbeatEvent: obj.HeartbeatEvent };
|
|
333
|
-
if (obj.AccessDeniedException !== undefined)
|
|
334
|
-
return { AccessDeniedException: obj.AccessDeniedException };
|
|
335
|
-
if (obj.ResourceNotFoundException !== undefined)
|
|
336
|
-
return { ResourceNotFoundException: obj.ResourceNotFoundException };
|
|
337
|
-
if (obj.ValidationException !== undefined)
|
|
338
|
-
return { ValidationException: obj.ValidationException };
|
|
339
|
-
if (obj.ThrottlingException !== undefined)
|
|
340
|
-
return { ThrottlingException: obj.ThrottlingException };
|
|
341
|
-
if (obj.InternalServerException !== undefined)
|
|
342
|
-
return { InternalServerException: obj.InternalServerException };
|
|
343
|
-
if (obj.ConflictException !== undefined)
|
|
344
|
-
return { ConflictException: obj.ConflictException };
|
|
345
|
-
if (obj.DependencyFailedException !== undefined)
|
|
346
|
-
return { DependencyFailedException: obj.DependencyFailedException };
|
|
347
|
-
if (obj.BadGatewayException !== undefined)
|
|
348
|
-
return { BadGatewayException: obj.BadGatewayException };
|
|
349
|
-
if (obj.$unknown !== undefined)
|
|
350
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
351
|
-
};
|
|
352
|
-
exports.StartConversationResponseEventStreamFilterSensitiveLog = StartConversationResponseEventStreamFilterSensitiveLog;
|
|
353
|
-
const StartConversationResponseFilterSensitiveLog = (obj) => ({
|
|
354
|
-
...obj,
|
|
355
|
-
...(obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }),
|
|
356
|
-
});
|
|
357
|
-
exports.StartConversationResponseFilterSensitiveLog = StartConversationResponseFilterSensitiveLog;
|
|
1
|
+
module.exports = require("../index.js");
|