@aws-sdk/client-lex-runtime-v2 3.181.0 → 3.183.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,78 +1,77 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
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;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
13
  }
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;
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
- 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;
26
+ }
27
+ export class InternalServerException extends __BaseException {
28
+ constructor(opts) {
29
+ super({
30
+ name: "InternalServerException",
31
+ $fault: "server",
32
+ ...opts,
33
+ });
34
+ this.name = "InternalServerException";
35
+ this.$fault = "server";
36
+ Object.setPrototypeOf(this, InternalServerException.prototype);
36
37
  }
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;
38
+ }
39
+ export class ResourceNotFoundException extends __BaseException {
40
+ constructor(opts) {
41
+ super({
42
+ name: "ResourceNotFoundException",
43
+ $fault: "client",
44
+ ...opts,
45
+ });
46
+ this.name = "ResourceNotFoundException";
47
+ this.$fault = "client";
48
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
48
49
  }
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;
50
+ }
51
+ export class ThrottlingException extends __BaseException {
52
+ constructor(opts) {
53
+ super({
54
+ name: "ThrottlingException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ this.name = "ThrottlingException";
59
+ this.$fault = "client";
60
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
60
61
  }
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;
62
+ }
63
+ export class ValidationException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ValidationException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ValidationException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ValidationException.prototype);
72
73
  }
73
- return ValidationException;
74
- }(__BaseException));
75
- export { ValidationException };
74
+ }
76
75
  export var ConfirmationState;
77
76
  (function (ConfirmationState) {
78
77
  ConfirmationState["CONFIRMED"] = "Confirmed";
@@ -123,30 +122,30 @@ export var DialogActionType;
123
122
  DialogActionType["ELICIT_SLOT"] = "ElicitSlot";
124
123
  DialogActionType["NONE"] = "None";
125
124
  })(DialogActionType || (DialogActionType = {}));
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;
125
+ export class BadGatewayException extends __BaseException {
126
+ constructor(opts) {
127
+ super({
128
+ name: "BadGatewayException",
129
+ $fault: "server",
130
+ ...opts,
131
+ });
132
+ this.name = "BadGatewayException";
133
+ this.$fault = "server";
134
+ Object.setPrototypeOf(this, BadGatewayException.prototype);
134
135
  }
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;
136
+ }
137
+ export class DependencyFailedException extends __BaseException {
138
+ constructor(opts) {
139
+ super({
140
+ name: "DependencyFailedException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ this.name = "DependencyFailedException";
145
+ this.$fault = "client";
146
+ Object.setPrototypeOf(this, DependencyFailedException.prototype);
146
147
  }
147
- return DependencyFailedException;
148
- }(__BaseException));
149
- export { DependencyFailedException };
148
+ }
150
149
  export var ConversationMode;
151
150
  (function (ConversationMode) {
152
151
  ConversationMode["AUDIO"] = "AUDIO";
@@ -166,7 +165,7 @@ export var PlaybackInterruptionReason;
166
165
  })(PlaybackInterruptionReason || (PlaybackInterruptionReason = {}));
167
166
  export var StartConversationRequestEventStream;
168
167
  (function (StartConversationRequestEventStream) {
169
- StartConversationRequestEventStream.visit = function (value, visitor) {
168
+ StartConversationRequestEventStream.visit = (value, visitor) => {
170
169
  if (value.ConfigurationEvent !== undefined)
171
170
  return visitor.ConfigurationEvent(value.ConfigurationEvent);
172
171
  if (value.AudioInputEvent !== undefined)
@@ -184,7 +183,7 @@ export var StartConversationRequestEventStream;
184
183
  })(StartConversationRequestEventStream || (StartConversationRequestEventStream = {}));
185
184
  export var StartConversationResponseEventStream;
186
185
  (function (StartConversationResponseEventStream) {
187
- StartConversationResponseEventStream.visit = function (value, visitor) {
186
+ StartConversationResponseEventStream.visit = (value, visitor) => {
188
187
  if (value.PlaybackInterruptionEvent !== undefined)
189
188
  return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
190
189
  if (value.TranscriptEvent !== undefined)
@@ -216,47 +215,131 @@ export var StartConversationResponseEventStream;
216
215
  return visitor._(value.$unknown[0], value.$unknown[1]);
217
216
  };
218
217
  })(StartConversationResponseEventStream || (StartConversationResponseEventStream = {}));
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;
218
+ export const ActiveContextTimeToLiveFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ });
221
+ export const ActiveContextFilterSensitiveLog = (obj) => ({
222
+ ...obj,
223
+ ...(obj.contextAttributes && { contextAttributes: SENSITIVE_STRING }),
224
+ });
225
+ export const AudioInputEventFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ });
228
+ export const AudioResponseEventFilterSensitiveLog = (obj) => ({
229
+ ...obj,
230
+ });
231
+ export const DeleteSessionRequestFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ });
234
+ export const DeleteSessionResponseFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const GetSessionRequestFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const ValueFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ export const ConfidenceScoreFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const SentimentScoreFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const SentimentResponseFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ export const ButtonFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ export const ImageResponseCardFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ });
258
+ export const MessageFilterSensitiveLog = (obj) => ({
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) => {
260
343
  if (obj.ConfigurationEvent !== undefined)
261
344
  return { ConfigurationEvent: ConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
262
345
  if (obj.AudioInputEvent !== undefined)
@@ -270,14 +353,24 @@ export var StartConversationRequestEventStreamFilterSensitiveLog = function (obj
270
353
  if (obj.DisconnectionEvent !== undefined)
271
354
  return { DisconnectionEvent: DisconnectionEventFilterSensitiveLog(obj.DisconnectionEvent) };
272
355
  if (obj.$unknown !== undefined)
273
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
356
+ return { [obj.$unknown[0]]: "UNKNOWN" };
274
357
  };
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;
358
+ export const StartConversationRequestFilterSensitiveLog = (obj) => ({
359
+ ...obj,
360
+ ...(obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }),
361
+ });
362
+ export const GetSessionResponseFilterSensitiveLog = (obj) => ({
363
+ ...obj,
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) => {
281
374
  if (obj.PlaybackInterruptionEvent !== undefined)
282
375
  return { PlaybackInterruptionEvent: PlaybackInterruptionEventFilterSensitiveLog(obj.PlaybackInterruptionEvent) };
283
376
  if (obj.TranscriptEvent !== undefined)
@@ -307,6 +400,9 @@ export var StartConversationResponseEventStreamFilterSensitiveLog = function (ob
307
400
  if (obj.BadGatewayException !== undefined)
308
401
  return { BadGatewayException: obj.BadGatewayException };
309
402
  if (obj.$unknown !== undefined)
310
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
403
+ return { [obj.$unknown[0]]: "UNKNOWN" };
311
404
  };
312
- export var StartConversationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }))); };
405
+ export const StartConversationResponseFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ ...(obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }),
408
+ });