@aws-sdk/client-lex-runtime-service 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.
@@ -1,66 +1,67 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SENSITIVE_STRING, } from "@aws-sdk/smithy-client";
2
3
  import { LexRuntimeServiceServiceException as __BaseException } from "./LexRuntimeServiceServiceException";
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);
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;
13
12
  }
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);
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;
25
24
  }
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);
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;
37
36
  }
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;
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;
50
49
  }
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);
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;
62
61
  }
63
- }
62
+ return NotFoundException;
63
+ }(__BaseException));
64
+ export { NotFoundException };
64
65
  export var FulfillmentState;
65
66
  (function (FulfillmentState) {
66
67
  FulfillmentState["FAILED"] = "Failed";
@@ -88,57 +89,57 @@ export var ConfirmationStatus;
88
89
  ConfirmationStatus["DENIED"] = "Denied";
89
90
  ConfirmationStatus["NONE"] = "None";
90
91
  })(ConfirmationStatus || (ConfirmationStatus = {}));
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;
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;
102
101
  }
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;
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;
115
114
  }
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;
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;
128
127
  }
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);
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;
140
139
  }
141
- }
140
+ return NotAcceptableException;
141
+ }(__BaseException));
142
+ export { NotAcceptableException };
142
143
  export var DialogState;
143
144
  (function (DialogState) {
144
145
  DialogState["CONFIRM_INTENT"] = "ConfirmIntent";
@@ -148,129 +149,57 @@ export var DialogState;
148
149
  DialogState["FULFILLED"] = "Fulfilled";
149
150
  DialogState["READY_FOR_FULFILLMENT"] = "ReadyForFulfillment";
150
151
  })(DialogState || (DialogState = {}));
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);
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;
161
160
  }
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);
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;
173
172
  }
174
- }
173
+ return UnsupportedMediaTypeException;
174
+ }(__BaseException));
175
+ export { UnsupportedMediaTypeException };
175
176
  export var ContentType;
176
177
  (function (ContentType) {
177
178
  ContentType["GENERIC"] = "application/vnd.amazonaws.card.generic";
178
179
  })(ContentType || (ContentType = {}));
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
- });
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 }))); };