@aws-sdk/client-lex-runtime-service 3.51.0 → 3.54.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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-lex-runtime-service
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexRuntimeServiceServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./LexRuntimeService"), exports);
5
6
  tslib_1.__exportStar(require("./LexRuntimeServiceClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var LexRuntimeServiceServiceException_1 = require("./models/LexRuntimeServiceServiceException");
10
+ Object.defineProperty(exports, "LexRuntimeServiceServiceException", { enumerable: true, get: function () { return LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LexRuntimeServiceServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class LexRuntimeServiceServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, LexRuntimeServiceServiceException.prototype);
9
+ }
10
+ }
11
+ exports.LexRuntimeServiceServiceException = LexRuntimeServiceServiceException;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutSessionResponse = exports.PutSessionRequest = exports.PostTextResponse = exports.SentimentResponse = exports.ResponseCard = exports.GenericAttachment = exports.Button = exports.ContentType = exports.PredictedIntent = exports.IntentConfidence = exports.PostTextRequest = exports.PostContentResponse = exports.DialogState = exports.PostContentRequest = exports.GetSessionResponse = exports.IntentSummary = exports.ConfirmationStatus = exports.DialogAction = exports.DialogActionType = exports.MessageFormatType = exports.FulfillmentState = exports.GetSessionRequest = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ActiveContext = exports.ActiveContextTimeToLive = void 0;
3
+ exports.PutSessionResponse = exports.PutSessionRequest = exports.PostTextResponse = exports.SentimentResponse = exports.ResponseCard = exports.GenericAttachment = exports.Button = exports.ContentType = exports.PredictedIntent = exports.IntentConfidence = exports.PostTextRequest = exports.UnsupportedMediaTypeException = exports.RequestTimeoutException = exports.PostContentResponse = exports.DialogState = exports.PostContentRequest = exports.NotAcceptableException = exports.LoopDetectedException = exports.DependencyFailedException = exports.BadGatewayException = exports.GetSessionResponse = exports.IntentSummary = exports.ConfirmationStatus = exports.DialogAction = exports.DialogActionType = exports.MessageFormatType = exports.FulfillmentState = exports.GetSessionRequest = exports.NotFoundException = exports.LimitExceededException = exports.InternalFailureException = exports.DeleteSessionResponse = exports.DeleteSessionRequest = exports.ConflictException = exports.BadRequestException = exports.ActiveContext = exports.ActiveContextTimeToLive = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const LexRuntimeServiceServiceException_1 = require("./LexRuntimeServiceServiceException");
5
6
  var ActiveContextTimeToLive;
6
7
  (function (ActiveContextTimeToLive) {
7
8
  ActiveContextTimeToLive.filterSensitiveLog = (obj) => ({
@@ -15,6 +16,32 @@ var ActiveContext;
15
16
  ...(obj.parameters && { parameters: smithy_client_1.SENSITIVE_STRING }),
16
17
  });
17
18
  })(ActiveContext = exports.ActiveContext || (exports.ActiveContext = {}));
19
+ class BadRequestException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "BadRequestException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "BadRequestException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, BadRequestException.prototype);
29
+ }
30
+ }
31
+ exports.BadRequestException = BadRequestException;
32
+ class ConflictException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
33
+ constructor(opts) {
34
+ super({
35
+ name: "ConflictException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ this.name = "ConflictException";
40
+ this.$fault = "client";
41
+ Object.setPrototypeOf(this, ConflictException.prototype);
42
+ }
43
+ }
44
+ exports.ConflictException = ConflictException;
18
45
  var DeleteSessionRequest;
19
46
  (function (DeleteSessionRequest) {
20
47
  DeleteSessionRequest.filterSensitiveLog = (obj) => ({
@@ -27,6 +54,46 @@ var DeleteSessionResponse;
27
54
  ...obj,
28
55
  });
29
56
  })(DeleteSessionResponse = exports.DeleteSessionResponse || (exports.DeleteSessionResponse = {}));
57
+ class InternalFailureException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "InternalFailureException",
61
+ $fault: "server",
62
+ ...opts,
63
+ });
64
+ this.name = "InternalFailureException";
65
+ this.$fault = "server";
66
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
67
+ }
68
+ }
69
+ exports.InternalFailureException = InternalFailureException;
70
+ class LimitExceededException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "LimitExceededException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "LimitExceededException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
80
+ this.retryAfterSeconds = opts.retryAfterSeconds;
81
+ }
82
+ }
83
+ exports.LimitExceededException = LimitExceededException;
84
+ class NotFoundException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "NotFoundException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ this.name = "NotFoundException";
92
+ this.$fault = "client";
93
+ Object.setPrototypeOf(this, NotFoundException.prototype);
94
+ }
95
+ }
96
+ exports.NotFoundException = NotFoundException;
30
97
  var GetSessionRequest;
31
98
  (function (GetSessionRequest) {
32
99
  GetSessionRequest.filterSensitiveLog = (obj) => ({
@@ -87,6 +154,61 @@ var GetSessionResponse;
87
154
  ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
88
155
  });
89
156
  })(GetSessionResponse = exports.GetSessionResponse || (exports.GetSessionResponse = {}));
157
+ class BadGatewayException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
158
+ constructor(opts) {
159
+ super({
160
+ name: "BadGatewayException",
161
+ $fault: "server",
162
+ ...opts,
163
+ });
164
+ this.name = "BadGatewayException";
165
+ this.$fault = "server";
166
+ Object.setPrototypeOf(this, BadGatewayException.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
170
+ exports.BadGatewayException = BadGatewayException;
171
+ class DependencyFailedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
172
+ constructor(opts) {
173
+ super({
174
+ name: "DependencyFailedException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ this.name = "DependencyFailedException";
179
+ this.$fault = "client";
180
+ Object.setPrototypeOf(this, DependencyFailedException.prototype);
181
+ this.Message = opts.Message;
182
+ }
183
+ }
184
+ exports.DependencyFailedException = DependencyFailedException;
185
+ class LoopDetectedException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
186
+ constructor(opts) {
187
+ super({
188
+ name: "LoopDetectedException",
189
+ $fault: "server",
190
+ ...opts,
191
+ });
192
+ this.name = "LoopDetectedException";
193
+ this.$fault = "server";
194
+ Object.setPrototypeOf(this, LoopDetectedException.prototype);
195
+ this.Message = opts.Message;
196
+ }
197
+ }
198
+ exports.LoopDetectedException = LoopDetectedException;
199
+ class NotAcceptableException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
200
+ constructor(opts) {
201
+ super({
202
+ name: "NotAcceptableException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ this.name = "NotAcceptableException";
207
+ this.$fault = "client";
208
+ Object.setPrototypeOf(this, NotAcceptableException.prototype);
209
+ }
210
+ }
211
+ exports.NotAcceptableException = NotAcceptableException;
90
212
  var PostContentRequest;
91
213
  (function (PostContentRequest) {
92
214
  PostContentRequest.filterSensitiveLog = (obj) => ({
@@ -115,6 +237,32 @@ var PostContentResponse;
115
237
  ...(obj.activeContexts && { activeContexts: smithy_client_1.SENSITIVE_STRING }),
116
238
  });
117
239
  })(PostContentResponse = exports.PostContentResponse || (exports.PostContentResponse = {}));
240
+ class RequestTimeoutException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
241
+ constructor(opts) {
242
+ super({
243
+ name: "RequestTimeoutException",
244
+ $fault: "client",
245
+ ...opts,
246
+ });
247
+ this.name = "RequestTimeoutException";
248
+ this.$fault = "client";
249
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
250
+ }
251
+ }
252
+ exports.RequestTimeoutException = RequestTimeoutException;
253
+ class UnsupportedMediaTypeException extends LexRuntimeServiceServiceException_1.LexRuntimeServiceServiceException {
254
+ constructor(opts) {
255
+ super({
256
+ name: "UnsupportedMediaTypeException",
257
+ $fault: "client",
258
+ ...opts,
259
+ });
260
+ this.name = "UnsupportedMediaTypeException";
261
+ this.$fault = "client";
262
+ Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
263
+ }
264
+ }
265
+ exports.UnsupportedMediaTypeException = UnsupportedMediaTypeException;
118
266
  var PostTextRequest;
119
267
  (function (PostTextRequest) {
120
268
  PostTextRequest.filterSensitiveLog = (obj) => ({