@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.
Files changed (34) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -0
  3. package/dist-cjs/runtimeConfig.browser.js +9 -7
  4. package/dist-cjs/runtimeConfig.js +9 -7
  5. package/dist-es/LexRuntimeService.js +22 -29
  6. package/dist-es/LexRuntimeServiceClient.js +22 -28
  7. package/dist-es/commands/DeleteSessionCommand.js +21 -28
  8. package/dist-es/commands/GetSessionCommand.js +21 -28
  9. package/dist-es/commands/PostContentCommand.js +21 -28
  10. package/dist-es/commands/PostTextCommand.js +21 -28
  11. package/dist-es/commands/PutSessionCommand.js +21 -28
  12. package/dist-es/endpoints.js +8 -8
  13. package/dist-es/models/LexRuntimeServiceServiceException.js +5 -10
  14. package/dist-es/models/models_0.js +223 -152
  15. package/dist-es/protocols/Aws_restJson1.js +755 -913
  16. package/dist-es/runtimeConfig.browser.js +28 -12
  17. package/dist-es/runtimeConfig.js +32 -12
  18. package/dist-es/runtimeConfig.native.js +8 -5
  19. package/dist-es/runtimeConfig.shared.js +8 -11
  20. package/dist-types/LexRuntimeServiceClient.d.ts +6 -1
  21. package/dist-types/commands/PostContentCommand.d.ts +2 -2
  22. package/dist-types/commands/PutSessionCommand.d.ts +2 -2
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -3
  24. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  25. package/dist-types/runtimeConfig.d.ts +1 -0
  26. package/dist-types/runtimeConfig.native.d.ts +1 -0
  27. package/dist-types/ts3.4/LexRuntimeServiceClient.d.ts +2 -0
  28. package/dist-types/ts3.4/commands/PostContentCommand.d.ts +2 -1
  29. package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +2 -1
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -3
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  32. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  33. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  34. 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
- var LexRuntimeServiceServiceException = (function (_super) {
4
- __extends(LexRuntimeServiceServiceException, _super);
5
- function LexRuntimeServiceServiceException(options) {
6
- var _this = _super.call(this, options) || this;
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
- return LexRuntimeServiceServiceException;
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
- var BadRequestException = (function (_super) {
5
- __extends(BadRequestException, _super);
6
- function BadRequestException(opts) {
7
- var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
8
- _this.name = "BadRequestException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, BadRequestException.prototype);
11
- return _this;
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
- return BadRequestException;
14
- }(__BaseException));
15
- export { BadRequestException };
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 InternalFailureException = (function (_super) {
29
- __extends(InternalFailureException, _super);
30
- function InternalFailureException(opts) {
31
- var _this = _super.call(this, __assign({ name: "InternalFailureException", $fault: "server" }, opts)) || this;
32
- _this.name = "InternalFailureException";
33
- _this.$fault = "server";
34
- Object.setPrototypeOf(_this, InternalFailureException.prototype);
35
- return _this;
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
- return InternalFailureException;
38
- }(__BaseException));
39
- export { InternalFailureException };
40
- var LimitExceededException = (function (_super) {
41
- __extends(LimitExceededException, _super);
42
- function LimitExceededException(opts) {
43
- var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
44
- _this.name = "LimitExceededException";
45
- _this.$fault = "client";
46
- Object.setPrototypeOf(_this, LimitExceededException.prototype);
47
- _this.retryAfterSeconds = opts.retryAfterSeconds;
48
- return _this;
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
- return LimitExceededException;
51
- }(__BaseException));
52
- export { LimitExceededException };
53
- var NotFoundException = (function (_super) {
54
- __extends(NotFoundException, _super);
55
- function NotFoundException(opts) {
56
- var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
57
- _this.name = "NotFoundException";
58
- _this.$fault = "client";
59
- Object.setPrototypeOf(_this, NotFoundException.prototype);
60
- return _this;
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
- return NotFoundException;
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
- var BadGatewayException = (function (_super) {
93
- __extends(BadGatewayException, _super);
94
- function BadGatewayException(opts) {
95
- var _this = _super.call(this, __assign({ name: "BadGatewayException", $fault: "server" }, opts)) || this;
96
- _this.name = "BadGatewayException";
97
- _this.$fault = "server";
98
- Object.setPrototypeOf(_this, BadGatewayException.prototype);
99
- _this.Message = opts.Message;
100
- return _this;
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
- return BadGatewayException;
103
- }(__BaseException));
104
- export { BadGatewayException };
105
- var DependencyFailedException = (function (_super) {
106
- __extends(DependencyFailedException, _super);
107
- function DependencyFailedException(opts) {
108
- var _this = _super.call(this, __assign({ name: "DependencyFailedException", $fault: "client" }, opts)) || this;
109
- _this.name = "DependencyFailedException";
110
- _this.$fault = "client";
111
- Object.setPrototypeOf(_this, DependencyFailedException.prototype);
112
- _this.Message = opts.Message;
113
- return _this;
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
- return DependencyFailedException;
116
- }(__BaseException));
117
- export { DependencyFailedException };
118
- var LoopDetectedException = (function (_super) {
119
- __extends(LoopDetectedException, _super);
120
- function LoopDetectedException(opts) {
121
- var _this = _super.call(this, __assign({ name: "LoopDetectedException", $fault: "server" }, opts)) || this;
122
- _this.name = "LoopDetectedException";
123
- _this.$fault = "server";
124
- Object.setPrototypeOf(_this, LoopDetectedException.prototype);
125
- _this.Message = opts.Message;
126
- return _this;
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
- return LoopDetectedException;
129
- }(__BaseException));
130
- export { LoopDetectedException };
131
- var NotAcceptableException = (function (_super) {
132
- __extends(NotAcceptableException, _super);
133
- function NotAcceptableException(opts) {
134
- var _this = _super.call(this, __assign({ name: "NotAcceptableException", $fault: "client" }, opts)) || this;
135
- _this.name = "NotAcceptableException";
136
- _this.$fault = "client";
137
- Object.setPrototypeOf(_this, NotAcceptableException.prototype);
138
- return _this;
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
- return NotAcceptableException;
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
- var RequestTimeoutException = (function (_super) {
153
- __extends(RequestTimeoutException, _super);
154
- function RequestTimeoutException(opts) {
155
- var _this = _super.call(this, __assign({ name: "RequestTimeoutException", $fault: "client" }, opts)) || this;
156
- _this.name = "RequestTimeoutException";
157
- _this.$fault = "client";
158
- Object.setPrototypeOf(_this, RequestTimeoutException.prototype);
159
- return _this;
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
- return RequestTimeoutException;
162
- }(__BaseException));
163
- export { RequestTimeoutException };
164
- var UnsupportedMediaTypeException = (function (_super) {
165
- __extends(UnsupportedMediaTypeException, _super);
166
- function UnsupportedMediaTypeException(opts) {
167
- var _this = _super.call(this, __assign({ name: "UnsupportedMediaTypeException", $fault: "client" }, opts)) || this;
168
- _this.name = "UnsupportedMediaTypeException";
169
- _this.$fault = "client";
170
- Object.setPrototypeOf(_this, UnsupportedMediaTypeException.prototype);
171
- return _this;
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
- return UnsupportedMediaTypeException;
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 var ActiveContextTimeToLiveFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var ActiveContextFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.parameters && { parameters: SENSITIVE_STRING }))); };
182
- export var DeleteSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var DeleteSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- export var GetSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
- export var DialogActionFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.slots && { slots: SENSITIVE_STRING })), (obj.message && { message: SENSITIVE_STRING }))); };
186
- export var IntentSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.slots && { slots: SENSITIVE_STRING }))); };
187
- export var GetSessionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.recentIntentSummaryView && {
188
- recentIntentSummaryView: obj.recentIntentSummaryView.map(function (item) { return IntentSummaryFilterSensitiveLog(item); }),
189
- })), (obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING })), (obj.dialogAction && { dialogAction: DialogActionFilterSensitiveLog(obj.dialogAction) })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
190
- export var PostContentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING })), (obj.requestAttributes && { requestAttributes: SENSITIVE_STRING })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
191
- export var PostContentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.message && { message: SENSITIVE_STRING })), (obj.encodedMessage && { encodedMessage: SENSITIVE_STRING })), (obj.encodedInputTranscript && { encodedInputTranscript: SENSITIVE_STRING })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
192
- export var PostTextRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING })), (obj.requestAttributes && { requestAttributes: SENSITIVE_STRING })), (obj.inputText && { inputText: SENSITIVE_STRING })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
193
- export var IntentConfidenceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- export var PredictedIntentFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.slots && { slots: SENSITIVE_STRING }))); };
195
- export var ButtonFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
- export var GenericAttachmentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- export var ResponseCardFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
- export var SentimentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
- export var PostTextResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.alternativeIntents && {
200
- alternativeIntents: obj.alternativeIntents.map(function (item) { return PredictedIntentFilterSensitiveLog(item); }),
201
- })), (obj.slots && { slots: SENSITIVE_STRING })), (obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING })), (obj.message && { message: SENSITIVE_STRING })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
202
- export var PutSessionRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.sessionAttributes && { sessionAttributes: SENSITIVE_STRING })), (obj.dialogAction && { dialogAction: DialogActionFilterSensitiveLog(obj.dialogAction) })), (obj.recentIntentSummaryView && {
203
- recentIntentSummaryView: obj.recentIntentSummaryView.map(function (item) { return IntentSummaryFilterSensitiveLog(item); }),
204
- })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
205
- export var PutSessionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.message && { message: SENSITIVE_STRING })), (obj.encodedMessage && { encodedMessage: SENSITIVE_STRING })), (obj.activeContexts && { activeContexts: SENSITIVE_STRING }))); };
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
+ });