@aws-sdk/client-lex-runtime-v2 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/LexRuntimeV2.js +33 -26
- package/dist-es/LexRuntimeV2Client.js +30 -24
- package/dist-es/commands/DeleteSessionCommand.js +28 -21
- package/dist-es/commands/GetSessionCommand.js +28 -21
- package/dist-es/commands/PutSessionCommand.js +28 -21
- package/dist-es/commands/RecognizeTextCommand.js +28 -21
- package/dist-es/commands/RecognizeUtteranceCommand.js +28 -21
- package/dist-es/commands/StartConversationCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LexRuntimeV2ServiceException.js +10 -5
- package/dist-es/models/models_0.js +141 -237
- package/dist-es/protocols/Aws_restJson1.js +1301 -1063
- package/dist-es/runtimeConfig.browser.js +12 -29
- package/dist-es/runtimeConfig.js +19 -33
- package/dist-es/runtimeConfig.native.js +5 -10
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var LexRuntimeV2ServiceException = (function (_super) {
|
|
4
|
+
__extends(LexRuntimeV2ServiceException, _super);
|
|
5
|
+
function LexRuntimeV2ServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, LexRuntimeV2ServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return LexRuntimeV2ServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { LexRuntimeV2ServiceException };
|
|
@@ -1,77 +1,78 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.$fault = "client";
|
|
12
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
4
|
+
var AccessDeniedException = (function (_super) {
|
|
5
|
+
__extends(AccessDeniedException, _super);
|
|
6
|
+
function AccessDeniedException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "AccessDeniedException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
16
|
+
var ConflictException = (function (_super) {
|
|
17
|
+
__extends(ConflictException, _super);
|
|
18
|
+
function ConflictException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ConflictException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
23
|
+
return _this;
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
return ConflictException;
|
|
26
|
+
}(__BaseException));
|
|
27
|
+
export { ConflictException };
|
|
28
|
+
var InternalServerException = (function (_super) {
|
|
29
|
+
__extends(InternalServerException, _super);
|
|
30
|
+
function InternalServerException(opts) {
|
|
31
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
32
|
+
_this.name = "InternalServerException";
|
|
33
|
+
_this.$fault = "server";
|
|
34
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
35
|
+
return _this;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
return InternalServerException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { InternalServerException };
|
|
40
|
+
var ResourceNotFoundException = (function (_super) {
|
|
41
|
+
__extends(ResourceNotFoundException, _super);
|
|
42
|
+
function ResourceNotFoundException(opts) {
|
|
43
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
44
|
+
_this.name = "ResourceNotFoundException";
|
|
45
|
+
_this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
47
|
+
return _this;
|
|
49
48
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
return ResourceNotFoundException;
|
|
50
|
+
}(__BaseException));
|
|
51
|
+
export { ResourceNotFoundException };
|
|
52
|
+
var ThrottlingException = (function (_super) {
|
|
53
|
+
__extends(ThrottlingException, _super);
|
|
54
|
+
function ThrottlingException(opts) {
|
|
55
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
56
|
+
_this.name = "ThrottlingException";
|
|
57
|
+
_this.$fault = "client";
|
|
58
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
59
|
+
return _this;
|
|
61
60
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
return ThrottlingException;
|
|
62
|
+
}(__BaseException));
|
|
63
|
+
export { ThrottlingException };
|
|
64
|
+
var ValidationException = (function (_super) {
|
|
65
|
+
__extends(ValidationException, _super);
|
|
66
|
+
function ValidationException(opts) {
|
|
67
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
68
|
+
_this.name = "ValidationException";
|
|
69
|
+
_this.$fault = "client";
|
|
70
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
71
|
+
return _this;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
return ValidationException;
|
|
74
|
+
}(__BaseException));
|
|
75
|
+
export { ValidationException };
|
|
75
76
|
export var ConfirmationState;
|
|
76
77
|
(function (ConfirmationState) {
|
|
77
78
|
ConfirmationState["CONFIRMED"] = "Confirmed";
|
|
@@ -122,30 +123,30 @@ export var DialogActionType;
|
|
|
122
123
|
DialogActionType["ELICIT_SLOT"] = "ElicitSlot";
|
|
123
124
|
DialogActionType["NONE"] = "None";
|
|
124
125
|
})(DialogActionType || (DialogActionType = {}));
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.$fault = "server";
|
|
134
|
-
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
126
|
+
var BadGatewayException = (function (_super) {
|
|
127
|
+
__extends(BadGatewayException, _super);
|
|
128
|
+
function BadGatewayException(opts) {
|
|
129
|
+
var _this = _super.call(this, __assign({ name: "BadGatewayException", $fault: "server" }, opts)) || this;
|
|
130
|
+
_this.name = "BadGatewayException";
|
|
131
|
+
_this.$fault = "server";
|
|
132
|
+
Object.setPrototypeOf(_this, BadGatewayException.prototype);
|
|
133
|
+
return _this;
|
|
135
134
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
135
|
+
return BadGatewayException;
|
|
136
|
+
}(__BaseException));
|
|
137
|
+
export { BadGatewayException };
|
|
138
|
+
var DependencyFailedException = (function (_super) {
|
|
139
|
+
__extends(DependencyFailedException, _super);
|
|
140
|
+
function DependencyFailedException(opts) {
|
|
141
|
+
var _this = _super.call(this, __assign({ name: "DependencyFailedException", $fault: "client" }, opts)) || this;
|
|
142
|
+
_this.name = "DependencyFailedException";
|
|
143
|
+
_this.$fault = "client";
|
|
144
|
+
Object.setPrototypeOf(_this, DependencyFailedException.prototype);
|
|
145
|
+
return _this;
|
|
147
146
|
}
|
|
148
|
-
|
|
147
|
+
return DependencyFailedException;
|
|
148
|
+
}(__BaseException));
|
|
149
|
+
export { DependencyFailedException };
|
|
149
150
|
export var ConversationMode;
|
|
150
151
|
(function (ConversationMode) {
|
|
151
152
|
ConversationMode["AUDIO"] = "AUDIO";
|
|
@@ -165,7 +166,7 @@ export var PlaybackInterruptionReason;
|
|
|
165
166
|
})(PlaybackInterruptionReason || (PlaybackInterruptionReason = {}));
|
|
166
167
|
export var StartConversationRequestEventStream;
|
|
167
168
|
(function (StartConversationRequestEventStream) {
|
|
168
|
-
StartConversationRequestEventStream.visit = (value, visitor)
|
|
169
|
+
StartConversationRequestEventStream.visit = function (value, visitor) {
|
|
169
170
|
if (value.ConfigurationEvent !== undefined)
|
|
170
171
|
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
171
172
|
if (value.AudioInputEvent !== undefined)
|
|
@@ -183,7 +184,7 @@ export var StartConversationRequestEventStream;
|
|
|
183
184
|
})(StartConversationRequestEventStream || (StartConversationRequestEventStream = {}));
|
|
184
185
|
export var StartConversationResponseEventStream;
|
|
185
186
|
(function (StartConversationResponseEventStream) {
|
|
186
|
-
StartConversationResponseEventStream.visit = (value, visitor)
|
|
187
|
+
StartConversationResponseEventStream.visit = function (value, visitor) {
|
|
187
188
|
if (value.PlaybackInterruptionEvent !== undefined)
|
|
188
189
|
return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
|
|
189
190
|
if (value.TranscriptEvent !== undefined)
|
|
@@ -215,131 +216,47 @@ export var StartConversationResponseEventStream;
|
|
|
215
216
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
216
217
|
};
|
|
217
218
|
})(StartConversationResponseEventStream || (StartConversationResponseEventStream = {}));
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
export
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
});
|
|
225
|
-
export
|
|
226
|
-
|
|
227
|
-
});
|
|
228
|
-
export
|
|
229
|
-
|
|
230
|
-
});
|
|
231
|
-
export
|
|
232
|
-
|
|
233
|
-
});
|
|
234
|
-
export
|
|
235
|
-
|
|
236
|
-
});
|
|
237
|
-
export
|
|
238
|
-
|
|
239
|
-
});
|
|
240
|
-
export
|
|
241
|
-
|
|
242
|
-
});
|
|
243
|
-
export
|
|
244
|
-
|
|
245
|
-
});
|
|
246
|
-
export
|
|
247
|
-
|
|
248
|
-
});
|
|
249
|
-
export
|
|
250
|
-
|
|
251
|
-
})
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
});
|
|
255
|
-
export
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
...obj,
|
|
260
|
-
...(obj.content && { content: SENSITIVE_STRING }),
|
|
261
|
-
});
|
|
262
|
-
export const RuntimeHintValueFilterSensitiveLog = (obj) => ({
|
|
263
|
-
...obj,
|
|
264
|
-
});
|
|
265
|
-
export const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
266
|
-
...obj,
|
|
267
|
-
});
|
|
268
|
-
export const RecognizeUtteranceRequestFilterSensitiveLog = (obj) => ({
|
|
269
|
-
...obj,
|
|
270
|
-
...(obj.sessionState && { sessionState: SENSITIVE_STRING }),
|
|
271
|
-
...(obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }),
|
|
272
|
-
});
|
|
273
|
-
export const RecognizeUtteranceResponseFilterSensitiveLog = (obj) => ({
|
|
274
|
-
...obj,
|
|
275
|
-
});
|
|
276
|
-
export const DisconnectionEventFilterSensitiveLog = (obj) => ({
|
|
277
|
-
...obj,
|
|
278
|
-
});
|
|
279
|
-
export const DTMFInputEventFilterSensitiveLog = (obj) => ({
|
|
280
|
-
...obj,
|
|
281
|
-
...(obj.inputCharacter && { inputCharacter: SENSITIVE_STRING }),
|
|
282
|
-
});
|
|
283
|
-
export const PlaybackCompletionEventFilterSensitiveLog = (obj) => ({
|
|
284
|
-
...obj,
|
|
285
|
-
});
|
|
286
|
-
export const TextInputEventFilterSensitiveLog = (obj) => ({
|
|
287
|
-
...obj,
|
|
288
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
289
|
-
});
|
|
290
|
-
export const HeartbeatEventFilterSensitiveLog = (obj) => ({
|
|
291
|
-
...obj,
|
|
292
|
-
});
|
|
293
|
-
export const PlaybackInterruptionEventFilterSensitiveLog = (obj) => ({
|
|
294
|
-
...obj,
|
|
295
|
-
});
|
|
296
|
-
export const TextResponseEventFilterSensitiveLog = (obj) => ({
|
|
297
|
-
...obj,
|
|
298
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
299
|
-
});
|
|
300
|
-
export const TranscriptEventFilterSensitiveLog = (obj) => ({
|
|
301
|
-
...obj,
|
|
302
|
-
});
|
|
303
|
-
export const ElicitSubSlotFilterSensitiveLog = (obj) => ({
|
|
304
|
-
...obj,
|
|
305
|
-
});
|
|
306
|
-
export const DialogActionFilterSensitiveLog = (obj) => ({
|
|
307
|
-
...obj,
|
|
308
|
-
});
|
|
309
|
-
export const RuntimeHintDetailsFilterSensitiveLog = (obj) => ({
|
|
310
|
-
...obj,
|
|
311
|
-
});
|
|
312
|
-
export const RuntimeHintsFilterSensitiveLog = (obj) => ({
|
|
313
|
-
...obj,
|
|
314
|
-
});
|
|
315
|
-
export const SlotFilterSensitiveLog = (obj) => ({
|
|
316
|
-
...obj,
|
|
317
|
-
});
|
|
318
|
-
export const IntentFilterSensitiveLog = (obj) => ({
|
|
319
|
-
...obj,
|
|
320
|
-
});
|
|
321
|
-
export const InterpretationFilterSensitiveLog = (obj) => ({
|
|
322
|
-
...obj,
|
|
323
|
-
});
|
|
324
|
-
export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
325
|
-
...obj,
|
|
326
|
-
...(obj.activeContexts && {
|
|
327
|
-
activeContexts: obj.activeContexts.map((item) => ActiveContextFilterSensitiveLog(item)),
|
|
328
|
-
}),
|
|
329
|
-
});
|
|
330
|
-
export const ConfigurationEventFilterSensitiveLog = (obj) => ({
|
|
331
|
-
...obj,
|
|
332
|
-
...(obj.welcomeMessages && { welcomeMessages: obj.welcomeMessages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
333
|
-
});
|
|
334
|
-
export const PutSessionRequestFilterSensitiveLog = (obj) => ({
|
|
335
|
-
...obj,
|
|
336
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
337
|
-
});
|
|
338
|
-
export const RecognizeTextRequestFilterSensitiveLog = (obj) => ({
|
|
339
|
-
...obj,
|
|
340
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
341
|
-
});
|
|
342
|
-
export const StartConversationRequestEventStreamFilterSensitiveLog = (obj) => {
|
|
219
|
+
export var ActiveContextTimeToLiveFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
220
|
+
export var ActiveContextFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.contextAttributes && { contextAttributes: SENSITIVE_STRING }))); };
|
|
221
|
+
export var AudioInputEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
222
|
+
export var AudioResponseEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
|
+
export var DeleteSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
224
|
+
export var DeleteSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
225
|
+
export var GetSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
226
|
+
export var ValueFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
227
|
+
export var ConfidenceScoreFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
228
|
+
export var SentimentScoreFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
229
|
+
export var SentimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
230
|
+
export var ButtonFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
|
+
export var ImageResponseCardFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
232
|
+
export var MessageFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.content && { content: SENSITIVE_STRING }))); };
|
|
233
|
+
export var RuntimeHintValueFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
234
|
+
export var PutSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
235
|
+
export var RecognizeUtteranceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.sessionState && { sessionState: SENSITIVE_STRING })), (obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }))); };
|
|
236
|
+
export var RecognizeUtteranceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
237
|
+
export var DisconnectionEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
238
|
+
export var DTMFInputEventFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.inputCharacter && { inputCharacter: SENSITIVE_STRING }))); };
|
|
239
|
+
export var PlaybackCompletionEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
|
+
export var TextInputEventFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.text && { text: SENSITIVE_STRING }))); };
|
|
241
|
+
export var HeartbeatEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
242
|
+
export var PlaybackInterruptionEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
243
|
+
export var TextResponseEventFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.messages && { messages: obj.messages.map(function (item) { return MessageFilterSensitiveLog(item); }) }))); };
|
|
244
|
+
export var TranscriptEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
+
export var ElicitSubSlotFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
246
|
+
export var DialogActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
|
+
export var RuntimeHintDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
248
|
+
export var RuntimeHintsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
249
|
+
export var SlotFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
250
|
+
export var IntentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
251
|
+
export var InterpretationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
|
+
export var SessionStateFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.activeContexts && {
|
|
253
|
+
activeContexts: obj.activeContexts.map(function (item) { return ActiveContextFilterSensitiveLog(item); }),
|
|
254
|
+
}))); };
|
|
255
|
+
export var ConfigurationEventFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.welcomeMessages && { welcomeMessages: obj.welcomeMessages.map(function (item) { return MessageFilterSensitiveLog(item); }) }))); };
|
|
256
|
+
export var PutSessionRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.messages && { messages: obj.messages.map(function (item) { return MessageFilterSensitiveLog(item); }) }))); };
|
|
257
|
+
export var RecognizeTextRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.text && { text: SENSITIVE_STRING }))); };
|
|
258
|
+
export var StartConversationRequestEventStreamFilterSensitiveLog = function (obj) {
|
|
259
|
+
var _a;
|
|
343
260
|
if (obj.ConfigurationEvent !== undefined)
|
|
344
261
|
return { ConfigurationEvent: ConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
|
|
345
262
|
if (obj.AudioInputEvent !== undefined)
|
|
@@ -353,24 +270,14 @@ export const StartConversationRequestEventStreamFilterSensitiveLog = (obj) => {
|
|
|
353
270
|
if (obj.DisconnectionEvent !== undefined)
|
|
354
271
|
return { DisconnectionEvent: DisconnectionEventFilterSensitiveLog(obj.DisconnectionEvent) };
|
|
355
272
|
if (obj.$unknown !== undefined)
|
|
356
|
-
return { [obj.$unknown[0]]
|
|
273
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
357
274
|
};
|
|
358
|
-
export
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
});
|
|
362
|
-
export
|
|
363
|
-
|
|
364
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
365
|
-
});
|
|
366
|
-
export const IntentResultEventFilterSensitiveLog = (obj) => ({
|
|
367
|
-
...obj,
|
|
368
|
-
});
|
|
369
|
-
export const RecognizeTextResponseFilterSensitiveLog = (obj) => ({
|
|
370
|
-
...obj,
|
|
371
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
372
|
-
});
|
|
373
|
-
export const StartConversationResponseEventStreamFilterSensitiveLog = (obj) => {
|
|
275
|
+
export var StartConversationRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }))); };
|
|
276
|
+
export var GetSessionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.messages && { messages: obj.messages.map(function (item) { return MessageFilterSensitiveLog(item); }) }))); };
|
|
277
|
+
export var IntentResultEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
278
|
+
export var RecognizeTextResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.messages && { messages: obj.messages.map(function (item) { return MessageFilterSensitiveLog(item); }) }))); };
|
|
279
|
+
export var StartConversationResponseEventStreamFilterSensitiveLog = function (obj) {
|
|
280
|
+
var _a;
|
|
374
281
|
if (obj.PlaybackInterruptionEvent !== undefined)
|
|
375
282
|
return { PlaybackInterruptionEvent: PlaybackInterruptionEventFilterSensitiveLog(obj.PlaybackInterruptionEvent) };
|
|
376
283
|
if (obj.TranscriptEvent !== undefined)
|
|
@@ -400,9 +307,6 @@ export const StartConversationResponseEventStreamFilterSensitiveLog = (obj) => {
|
|
|
400
307
|
if (obj.BadGatewayException !== undefined)
|
|
401
308
|
return { BadGatewayException: obj.BadGatewayException };
|
|
402
309
|
if (obj.$unknown !== undefined)
|
|
403
|
-
return { [obj.$unknown[0]]
|
|
310
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
404
311
|
};
|
|
405
|
-
export
|
|
406
|
-
...obj,
|
|
407
|
-
...(obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }),
|
|
408
|
-
});
|
|
312
|
+
export var StartConversationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }))); };
|