@aws-sdk/client-connect-contact-lens 3.50.0 → 3.53.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 (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/ConnectContactLensServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +72 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +49 -79
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/ConnectContactLensServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +67 -1
  9. package/dist-es/protocols/Aws_restJson1.js +53 -89
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/ConnectContactLensServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +37 -16
  13. package/dist-types/ts3.4/ConnectContactLens.d.ts +10 -0
  14. package/dist-types/ts3.4/ConnectContactLensClient.d.ts +74 -0
  15. package/dist-types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  17. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  18. package/dist-types/ts3.4/index.d.ts +6 -0
  19. package/dist-types/ts3.4/models/ConnectContactLensServiceException.d.ts +6 -0
  20. package/dist-types/ts3.4/models/index.d.ts +1 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +158 -0
  22. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  23. package/dist-types/ts3.4/pagination/ListRealtimeContactAnalysisSegmentsPaginator.d.ts +4 -0
  24. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  25. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +5 -0
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  29. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  30. package/package.json +33 -33
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectContactLensServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./ConnectContactLens"), exports);
5
6
  tslib_1.__exportStar(require("./ConnectContactLensClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var ConnectContactLensServiceException_1 = require("./models/ConnectContactLensServiceException");
11
+ Object.defineProperty(exports, "ConnectContactLensServiceException", { enumerable: true, get: function () { return ConnectContactLensServiceException_1.ConnectContactLensServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectContactLensServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class ConnectContactLensServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, ConnectContactLensServiceException.prototype);
9
+ }
10
+ }
11
+ exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
@@ -1,6 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListRealtimeContactAnalysisSegmentsResponse = exports.RealtimeContactAnalysisSegment = exports.Transcript = exports.SentimentValue = exports.IssueDetected = exports.CharacterOffsets = exports.Categories = exports.CategoryDetails = exports.PointOfInterest = exports.ListRealtimeContactAnalysisSegmentsRequest = void 0;
3
+ exports.ThrottlingException = exports.ResourceNotFoundException = exports.ListRealtimeContactAnalysisSegmentsResponse = exports.RealtimeContactAnalysisSegment = exports.Transcript = exports.SentimentValue = exports.IssueDetected = exports.CharacterOffsets = exports.Categories = exports.CategoryDetails = exports.PointOfInterest = exports.ListRealtimeContactAnalysisSegmentsRequest = exports.InvalidRequestException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
4
+ const ConnectContactLensServiceException_1 = require("./ConnectContactLensServiceException");
5
+ class AccessDeniedException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ class InternalServiceException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "InternalServiceException",
23
+ $fault: "server",
24
+ ...opts,
25
+ });
26
+ this.name = "InternalServiceException";
27
+ this.$fault = "server";
28
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ exports.InternalServiceException = InternalServiceException;
33
+ class InvalidRequestException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "InvalidRequestException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ this.name = "InvalidRequestException";
41
+ this.$fault = "client";
42
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
43
+ this.Message = opts.Message;
44
+ }
45
+ }
46
+ exports.InvalidRequestException = InvalidRequestException;
4
47
  var ListRealtimeContactAnalysisSegmentsRequest;
5
48
  (function (ListRealtimeContactAnalysisSegmentsRequest) {
6
49
  ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = (obj) => ({
@@ -61,3 +104,31 @@ var ListRealtimeContactAnalysisSegmentsResponse;
61
104
  ...obj,
62
105
  });
63
106
  })(ListRealtimeContactAnalysisSegmentsResponse = exports.ListRealtimeContactAnalysisSegmentsResponse || (exports.ListRealtimeContactAnalysisSegmentsResponse = {}));
107
+ class ResourceNotFoundException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
108
+ constructor(opts) {
109
+ super({
110
+ name: "ResourceNotFoundException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ this.name = "ResourceNotFoundException";
115
+ this.$fault = "client";
116
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
117
+ this.Message = opts.Message;
118
+ }
119
+ }
120
+ exports.ResourceNotFoundException = ResourceNotFoundException;
121
+ class ThrottlingException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
122
+ constructor(opts) {
123
+ super({
124
+ name: "ThrottlingException",
125
+ $fault: "client",
126
+ ...opts,
127
+ });
128
+ this.name = "ThrottlingException";
129
+ this.$fault = "client";
130
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ exports.ThrottlingException = ThrottlingException;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = exports.serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const ConnectContactLensServiceException_1 = require("../models/ConnectContactLensServiceException");
7
+ const models_0_1 = require("../models/models_0");
6
8
  const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -58,124 +60,88 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
58
60
  switch (errorCode) {
59
61
  case "AccessDeniedException":
60
62
  case "com.amazonaws.connectcontactlens#AccessDeniedException":
61
- response = {
62
- ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
63
- name: errorCode,
64
- $metadata: deserializeMetadata(output),
65
- };
66
- break;
63
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
67
64
  case "InternalServiceException":
68
65
  case "com.amazonaws.connectcontactlens#InternalServiceException":
69
- response = {
70
- ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
71
- name: errorCode,
72
- $metadata: deserializeMetadata(output),
73
- };
74
- break;
66
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
75
67
  case "InvalidRequestException":
76
68
  case "com.amazonaws.connectcontactlens#InvalidRequestException":
77
- response = {
78
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
79
- name: errorCode,
80
- $metadata: deserializeMetadata(output),
81
- };
82
- break;
69
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
83
70
  case "ResourceNotFoundException":
84
71
  case "com.amazonaws.connectcontactlens#ResourceNotFoundException":
85
- response = {
86
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
87
- name: errorCode,
88
- $metadata: deserializeMetadata(output),
89
- };
90
- break;
72
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
91
73
  case "ThrottlingException":
92
74
  case "com.amazonaws.connectcontactlens#ThrottlingException":
93
- response = {
94
- ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
95
- name: errorCode,
96
- $metadata: deserializeMetadata(output),
97
- };
98
- break;
75
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
99
76
  default:
100
77
  const parsedBody = parsedOutput.body;
101
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
102
- response = {
103
- ...parsedBody,
104
- name: `${errorCode}`,
105
- message: parsedBody.message || parsedBody.Message || errorCode,
78
+ response = new ConnectContactLensServiceException_1.ConnectContactLensServiceException({
79
+ name: parsedBody.code || parsedBody.Code || errorCode,
106
80
  $fault: "client",
107
81
  $metadata: deserializeMetadata(output),
108
- };
82
+ });
83
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
109
84
  }
110
- const message = response.message || response.Message || errorCode;
111
- response.message = message;
112
- delete response.Message;
113
- return Promise.reject(Object.assign(new Error(message), response));
114
85
  };
115
86
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
116
- const contents = {
117
- name: "AccessDeniedException",
118
- $fault: "client",
119
- $metadata: deserializeMetadata(parsedOutput),
120
- Message: undefined,
121
- };
87
+ const contents = {};
122
88
  const data = parsedOutput.body;
123
89
  if (data.Message !== undefined && data.Message !== null) {
124
90
  contents.Message = smithy_client_1.expectString(data.Message);
125
91
  }
126
- return contents;
92
+ const exception = new models_0_1.AccessDeniedException({
93
+ $metadata: deserializeMetadata(parsedOutput),
94
+ ...contents,
95
+ });
96
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
127
97
  };
128
98
  const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
129
- const contents = {
130
- name: "InternalServiceException",
131
- $fault: "server",
132
- $metadata: deserializeMetadata(parsedOutput),
133
- Message: undefined,
134
- };
99
+ const contents = {};
135
100
  const data = parsedOutput.body;
136
101
  if (data.Message !== undefined && data.Message !== null) {
137
102
  contents.Message = smithy_client_1.expectString(data.Message);
138
103
  }
139
- return contents;
104
+ const exception = new models_0_1.InternalServiceException({
105
+ $metadata: deserializeMetadata(parsedOutput),
106
+ ...contents,
107
+ });
108
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
140
109
  };
141
110
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
142
- const contents = {
143
- name: "InvalidRequestException",
144
- $fault: "client",
145
- $metadata: deserializeMetadata(parsedOutput),
146
- Message: undefined,
147
- };
111
+ const contents = {};
148
112
  const data = parsedOutput.body;
149
113
  if (data.Message !== undefined && data.Message !== null) {
150
114
  contents.Message = smithy_client_1.expectString(data.Message);
151
115
  }
152
- return contents;
116
+ const exception = new models_0_1.InvalidRequestException({
117
+ $metadata: deserializeMetadata(parsedOutput),
118
+ ...contents,
119
+ });
120
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
153
121
  };
154
122
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
155
- const contents = {
156
- name: "ResourceNotFoundException",
157
- $fault: "client",
158
- $metadata: deserializeMetadata(parsedOutput),
159
- Message: undefined,
160
- };
123
+ const contents = {};
161
124
  const data = parsedOutput.body;
162
125
  if (data.Message !== undefined && data.Message !== null) {
163
126
  contents.Message = smithy_client_1.expectString(data.Message);
164
127
  }
165
- return contents;
128
+ const exception = new models_0_1.ResourceNotFoundException({
129
+ $metadata: deserializeMetadata(parsedOutput),
130
+ ...contents,
131
+ });
132
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
166
133
  };
167
134
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
168
- const contents = {
169
- name: "ThrottlingException",
170
- $fault: "client",
171
- $metadata: deserializeMetadata(parsedOutput),
172
- Message: undefined,
173
- };
135
+ const contents = {};
174
136
  const data = parsedOutput.body;
175
137
  if (data.Message !== undefined && data.Message !== null) {
176
138
  contents.Message = smithy_client_1.expectString(data.Message);
177
139
  }
178
- return contents;
140
+ const exception = new models_0_1.ThrottlingException({
141
+ $metadata: deserializeMetadata(parsedOutput),
142
+ ...contents,
143
+ });
144
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
179
145
  };
180
146
  const deserializeAws_restJson1Categories = (output, context) => {
181
147
  return {
@@ -208,7 +174,7 @@ const deserializeAws_restJson1IssueDetected = (output, context) => {
208
174
  };
209
175
  };
210
176
  const deserializeAws_restJson1IssuesDetected = (output, context) => {
211
- return (output || [])
177
+ const retVal = (output || [])
212
178
  .filter((e) => e != null)
213
179
  .map((entry) => {
214
180
  if (entry === null) {
@@ -216,9 +182,10 @@ const deserializeAws_restJson1IssuesDetected = (output, context) => {
216
182
  }
217
183
  return deserializeAws_restJson1IssueDetected(entry, context);
218
184
  });
185
+ return retVal;
219
186
  };
220
187
  const deserializeAws_restJson1MatchedCategories = (output, context) => {
221
- return (output || [])
188
+ const retVal = (output || [])
222
189
  .filter((e) => e != null)
223
190
  .map((entry) => {
224
191
  if (entry === null) {
@@ -226,6 +193,7 @@ const deserializeAws_restJson1MatchedCategories = (output, context) => {
226
193
  }
227
194
  return smithy_client_1.expectString(entry);
228
195
  });
196
+ return retVal;
229
197
  };
230
198
  const deserializeAws_restJson1MatchedDetails = (output, context) => {
231
199
  return Object.entries(output).reduce((acc, [key, value]) => {
@@ -245,7 +213,7 @@ const deserializeAws_restJson1PointOfInterest = (output, context) => {
245
213
  };
246
214
  };
247
215
  const deserializeAws_restJson1PointsOfInterest = (output, context) => {
248
- return (output || [])
216
+ const retVal = (output || [])
249
217
  .filter((e) => e != null)
250
218
  .map((entry) => {
251
219
  if (entry === null) {
@@ -253,6 +221,7 @@ const deserializeAws_restJson1PointsOfInterest = (output, context) => {
253
221
  }
254
222
  return deserializeAws_restJson1PointOfInterest(entry, context);
255
223
  });
224
+ return retVal;
256
225
  };
257
226
  const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context) => {
258
227
  return {
@@ -265,7 +234,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegment = (output, context)
265
234
  };
266
235
  };
267
236
  const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context) => {
268
- return (output || [])
237
+ const retVal = (output || [])
269
238
  .filter((e) => e != null)
270
239
  .map((entry) => {
271
240
  if (entry === null) {
@@ -273,6 +242,7 @@ const deserializeAws_restJson1RealtimeContactAnalysisSegments = (output, context
273
242
  }
274
243
  return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
275
244
  });
245
+ return retVal;
276
246
  };
277
247
  const deserializeAws_restJson1Transcript = (output, context) => {
278
248
  return {
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./ConnectContactLensClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var ConnectContactLensServiceException = (function (_super) {
4
+ __extends(ConnectContactLensServiceException, _super);
5
+ function ConnectContactLensServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, ConnectContactLensServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return ConnectContactLensServiceException;
11
+ }(__ServiceException));
12
+ export { ConnectContactLensServiceException };
@@ -1,4 +1,44 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
12
+ }
13
+ return AccessDeniedException;
14
+ }(__BaseException));
15
+ export { AccessDeniedException };
16
+ var InternalServiceException = (function (_super) {
17
+ __extends(InternalServiceException, _super);
18
+ function InternalServiceException(opts) {
19
+ var _this = _super.call(this, __assign({ name: "InternalServiceException", $fault: "server" }, opts)) || this;
20
+ _this.name = "InternalServiceException";
21
+ _this.$fault = "server";
22
+ Object.setPrototypeOf(_this, InternalServiceException.prototype);
23
+ _this.Message = opts.Message;
24
+ return _this;
25
+ }
26
+ return InternalServiceException;
27
+ }(__BaseException));
28
+ export { InternalServiceException };
29
+ var InvalidRequestException = (function (_super) {
30
+ __extends(InvalidRequestException, _super);
31
+ function InvalidRequestException(opts) {
32
+ var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
33
+ _this.name = "InvalidRequestException";
34
+ _this.$fault = "client";
35
+ Object.setPrototypeOf(_this, InvalidRequestException.prototype);
36
+ _this.Message = opts.Message;
37
+ return _this;
38
+ }
39
+ return InvalidRequestException;
40
+ }(__BaseException));
41
+ export { InvalidRequestException };
2
42
  export var ListRealtimeContactAnalysisSegmentsRequest;
3
43
  (function (ListRealtimeContactAnalysisSegmentsRequest) {
4
44
  ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -41,3 +81,29 @@ export var ListRealtimeContactAnalysisSegmentsResponse;
41
81
  (function (ListRealtimeContactAnalysisSegmentsResponse) {
42
82
  ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
83
  })(ListRealtimeContactAnalysisSegmentsResponse || (ListRealtimeContactAnalysisSegmentsResponse = {}));
84
+ var ResourceNotFoundException = (function (_super) {
85
+ __extends(ResourceNotFoundException, _super);
86
+ function ResourceNotFoundException(opts) {
87
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
88
+ _this.name = "ResourceNotFoundException";
89
+ _this.$fault = "client";
90
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
91
+ _this.Message = opts.Message;
92
+ return _this;
93
+ }
94
+ return ResourceNotFoundException;
95
+ }(__BaseException));
96
+ export { ResourceNotFoundException };
97
+ var ThrottlingException = (function (_super) {
98
+ __extends(ThrottlingException, _super);
99
+ function ThrottlingException(opts) {
100
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
101
+ _this.name = "ThrottlingException";
102
+ _this.$fault = "client";
103
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
104
+ _this.Message = opts.Message;
105
+ return _this;
106
+ }
107
+ return ThrottlingException;
108
+ }(__BaseException));
109
+ export { ThrottlingException };