@aws-sdk/client-kinesis-video-signaling 3.52.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KinesisVideoSignalingServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./KinesisVideoSignaling"), exports);
5
6
  tslib_1.__exportStar(require("./KinesisVideoSignalingClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var KinesisVideoSignalingServiceException_1 = require("./models/KinesisVideoSignalingServiceException");
10
+ Object.defineProperty(exports, "KinesisVideoSignalingServiceException", { enumerable: true, get: function () { return KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KinesisVideoSignalingServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class KinesisVideoSignalingServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, KinesisVideoSignalingServiceException.prototype);
9
+ }
10
+ }
11
+ exports.KinesisVideoSignalingServiceException = KinesisVideoSignalingServiceException;
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SendAlexaOfferToMasterResponse = exports.SendAlexaOfferToMasterRequest = exports.GetIceServerConfigResponse = exports.IceServer = exports.GetIceServerConfigRequest = exports.Service = void 0;
3
+ exports.SendAlexaOfferToMasterResponse = exports.SendAlexaOfferToMasterRequest = exports.SessionExpiredException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidClientException = exports.InvalidArgumentException = exports.GetIceServerConfigResponse = exports.IceServer = exports.GetIceServerConfigRequest = exports.Service = exports.ClientLimitExceededException = void 0;
4
+ const KinesisVideoSignalingServiceException_1 = require("./KinesisVideoSignalingServiceException");
5
+ class ClientLimitExceededException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "ClientLimitExceededException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "ClientLimitExceededException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.ClientLimitExceededException = ClientLimitExceededException;
4
19
  var Service;
5
20
  (function (Service) {
6
21
  Service["TURN"] = "TURN";
@@ -23,6 +38,74 @@ var GetIceServerConfigResponse;
23
38
  ...obj,
24
39
  });
25
40
  })(GetIceServerConfigResponse = exports.GetIceServerConfigResponse || (exports.GetIceServerConfigResponse = {}));
41
+ class InvalidArgumentException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "InvalidArgumentException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "InvalidArgumentException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
51
+ this.Message = opts.Message;
52
+ }
53
+ }
54
+ exports.InvalidArgumentException = InvalidArgumentException;
55
+ class InvalidClientException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "InvalidClientException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "InvalidClientException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
65
+ }
66
+ }
67
+ exports.InvalidClientException = InvalidClientException;
68
+ class NotAuthorizedException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
69
+ constructor(opts) {
70
+ super({
71
+ name: "NotAuthorizedException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ this.name = "NotAuthorizedException";
76
+ this.$fault = "client";
77
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
78
+ this.Message = opts.Message;
79
+ }
80
+ }
81
+ exports.NotAuthorizedException = NotAuthorizedException;
82
+ class ResourceNotFoundException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
83
+ constructor(opts) {
84
+ super({
85
+ name: "ResourceNotFoundException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ this.name = "ResourceNotFoundException";
90
+ this.$fault = "client";
91
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
92
+ this.Message = opts.Message;
93
+ }
94
+ }
95
+ exports.ResourceNotFoundException = ResourceNotFoundException;
96
+ class SessionExpiredException extends KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException {
97
+ constructor(opts) {
98
+ super({
99
+ name: "SessionExpiredException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ this.name = "SessionExpiredException";
104
+ this.$fault = "client";
105
+ Object.setPrototypeOf(this, SessionExpiredException.prototype);
106
+ }
107
+ }
108
+ exports.SessionExpiredException = SessionExpiredException;
26
109
  var SendAlexaOfferToMasterRequest;
27
110
  (function (SendAlexaOfferToMasterRequest) {
28
111
  SendAlexaOfferToMasterRequest.filterSensitiveLog = (obj) => ({
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1SendAlexaOfferToMasterCommand = exports.deserializeAws_restJson1GetIceServerConfigCommand = exports.serializeAws_restJson1SendAlexaOfferToMasterCommand = exports.serializeAws_restJson1GetIceServerConfigCommand = 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 KinesisVideoSignalingServiceException_1 = require("../models/KinesisVideoSignalingServiceException");
7
+ const models_0_1 = require("../models/models_0");
6
8
  const serializeAws_restJson1GetIceServerConfigCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -78,67 +80,31 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
78
80
  switch (errorCode) {
79
81
  case "ClientLimitExceededException":
80
82
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
81
- response = {
82
- ...(await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)),
83
- name: errorCode,
84
- $metadata: deserializeMetadata(output),
85
- };
86
- break;
83
+ throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
87
84
  case "InvalidArgumentException":
88
85
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
89
- response = {
90
- ...(await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)),
91
- name: errorCode,
92
- $metadata: deserializeMetadata(output),
93
- };
94
- break;
86
+ throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
95
87
  case "InvalidClientException":
96
88
  case "com.amazonaws.kinesisvideosignaling#InvalidClientException":
97
- response = {
98
- ...(await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context)),
99
- name: errorCode,
100
- $metadata: deserializeMetadata(output),
101
- };
102
- break;
89
+ throw await deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context);
103
90
  case "NotAuthorizedException":
104
91
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
105
- response = {
106
- ...(await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)),
107
- name: errorCode,
108
- $metadata: deserializeMetadata(output),
109
- };
110
- break;
92
+ throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
111
93
  case "ResourceNotFoundException":
112
94
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
113
- response = {
114
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
115
- name: errorCode,
116
- $metadata: deserializeMetadata(output),
117
- };
118
- break;
95
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
119
96
  case "SessionExpiredException":
120
97
  case "com.amazonaws.kinesisvideosignaling#SessionExpiredException":
121
- response = {
122
- ...(await deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context)),
123
- name: errorCode,
124
- $metadata: deserializeMetadata(output),
125
- };
126
- break;
98
+ throw await deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context);
127
99
  default:
128
100
  const parsedBody = parsedOutput.body;
129
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
130
- response = {
131
- ...parsedBody,
132
- name: `${errorCode}`,
133
- message: parsedBody.message || parsedBody.Message || errorCode,
101
+ response = new KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException({
102
+ name: parsedBody.code || parsedBody.Code || errorCode,
134
103
  $fault: "client",
135
104
  $metadata: deserializeMetadata(output),
136
- };
105
+ });
106
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
137
107
  }
138
- const message = response.message || response.Message || errorCode;
139
- response.message = message;
140
- delete response.Message;
141
- return Promise.reject(Object.assign(new Error(message), response));
142
108
  };
143
109
  const deserializeAws_restJson1SendAlexaOfferToMasterCommand = async (output, context) => {
144
110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -166,129 +132,97 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
166
132
  switch (errorCode) {
167
133
  case "ClientLimitExceededException":
168
134
  case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
169
- response = {
170
- ...(await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)),
171
- name: errorCode,
172
- $metadata: deserializeMetadata(output),
173
- };
174
- break;
135
+ throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
175
136
  case "InvalidArgumentException":
176
137
  case "com.amazonaws.kinesisvideosignaling#InvalidArgumentException":
177
- response = {
178
- ...(await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)),
179
- name: errorCode,
180
- $metadata: deserializeMetadata(output),
181
- };
182
- break;
138
+ throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
183
139
  case "NotAuthorizedException":
184
140
  case "com.amazonaws.kinesisvideosignaling#NotAuthorizedException":
185
- response = {
186
- ...(await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)),
187
- name: errorCode,
188
- $metadata: deserializeMetadata(output),
189
- };
190
- break;
141
+ throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
191
142
  case "ResourceNotFoundException":
192
143
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException":
193
- response = {
194
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
195
- name: errorCode,
196
- $metadata: deserializeMetadata(output),
197
- };
198
- break;
144
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
199
145
  default:
200
146
  const parsedBody = parsedOutput.body;
201
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
202
- response = {
203
- ...parsedBody,
204
- name: `${errorCode}`,
205
- message: parsedBody.message || parsedBody.Message || errorCode,
147
+ response = new KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException({
148
+ name: parsedBody.code || parsedBody.Code || errorCode,
206
149
  $fault: "client",
207
150
  $metadata: deserializeMetadata(output),
208
- };
151
+ });
152
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
209
153
  }
210
- const message = response.message || response.Message || errorCode;
211
- response.message = message;
212
- delete response.Message;
213
- return Promise.reject(Object.assign(new Error(message), response));
214
154
  };
215
155
  const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (parsedOutput, context) => {
216
- const contents = {
217
- name: "ClientLimitExceededException",
218
- $fault: "client",
219
- $metadata: deserializeMetadata(parsedOutput),
220
- Message: undefined,
221
- };
156
+ const contents = {};
222
157
  const data = parsedOutput.body;
223
158
  if (data.Message !== undefined && data.Message !== null) {
224
159
  contents.Message = smithy_client_1.expectString(data.Message);
225
160
  }
226
- return contents;
161
+ const exception = new models_0_1.ClientLimitExceededException({
162
+ $metadata: deserializeMetadata(parsedOutput),
163
+ ...contents,
164
+ });
165
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
227
166
  };
228
167
  const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
229
- const contents = {
230
- name: "InvalidArgumentException",
231
- $fault: "client",
232
- $metadata: deserializeMetadata(parsedOutput),
233
- Message: undefined,
234
- };
168
+ const contents = {};
235
169
  const data = parsedOutput.body;
236
170
  if (data.Message !== undefined && data.Message !== null) {
237
171
  contents.Message = smithy_client_1.expectString(data.Message);
238
172
  }
239
- return contents;
173
+ const exception = new models_0_1.InvalidArgumentException({
174
+ $metadata: deserializeMetadata(parsedOutput),
175
+ ...contents,
176
+ });
177
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
240
178
  };
241
179
  const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
242
- const contents = {
243
- name: "InvalidClientException",
244
- $fault: "client",
245
- $metadata: deserializeMetadata(parsedOutput),
246
- message: undefined,
247
- };
180
+ const contents = {};
248
181
  const data = parsedOutput.body;
249
182
  if (data.message !== undefined && data.message !== null) {
250
183
  contents.message = smithy_client_1.expectString(data.message);
251
184
  }
252
- return contents;
185
+ const exception = new models_0_1.InvalidClientException({
186
+ $metadata: deserializeMetadata(parsedOutput),
187
+ ...contents,
188
+ });
189
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
253
190
  };
254
191
  const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
255
- const contents = {
256
- name: "NotAuthorizedException",
257
- $fault: "client",
258
- $metadata: deserializeMetadata(parsedOutput),
259
- Message: undefined,
260
- };
192
+ const contents = {};
261
193
  const data = parsedOutput.body;
262
194
  if (data.Message !== undefined && data.Message !== null) {
263
195
  contents.Message = smithy_client_1.expectString(data.Message);
264
196
  }
265
- return contents;
197
+ const exception = new models_0_1.NotAuthorizedException({
198
+ $metadata: deserializeMetadata(parsedOutput),
199
+ ...contents,
200
+ });
201
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
266
202
  };
267
203
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
268
- const contents = {
269
- name: "ResourceNotFoundException",
270
- $fault: "client",
271
- $metadata: deserializeMetadata(parsedOutput),
272
- Message: undefined,
273
- };
204
+ const contents = {};
274
205
  const data = parsedOutput.body;
275
206
  if (data.Message !== undefined && data.Message !== null) {
276
207
  contents.Message = smithy_client_1.expectString(data.Message);
277
208
  }
278
- return contents;
209
+ const exception = new models_0_1.ResourceNotFoundException({
210
+ $metadata: deserializeMetadata(parsedOutput),
211
+ ...contents,
212
+ });
213
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
279
214
  };
280
215
  const deserializeAws_restJson1SessionExpiredExceptionResponse = async (parsedOutput, context) => {
281
- const contents = {
282
- name: "SessionExpiredException",
283
- $fault: "client",
284
- $metadata: deserializeMetadata(parsedOutput),
285
- message: undefined,
286
- };
216
+ const contents = {};
287
217
  const data = parsedOutput.body;
288
218
  if (data.message !== undefined && data.message !== null) {
289
219
  contents.message = smithy_client_1.expectString(data.message);
290
220
  }
291
- return contents;
221
+ const exception = new models_0_1.SessionExpiredException({
222
+ $metadata: deserializeMetadata(parsedOutput),
223
+ ...contents,
224
+ });
225
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
292
226
  };
293
227
  const deserializeAws_restJson1IceServer = (output, context) => {
294
228
  return {
@@ -301,7 +235,7 @@ const deserializeAws_restJson1IceServer = (output, context) => {
301
235
  };
302
236
  };
303
237
  const deserializeAws_restJson1IceServerList = (output, context) => {
304
- return (output || [])
238
+ const retVal = (output || [])
305
239
  .filter((e) => e != null)
306
240
  .map((entry) => {
307
241
  if (entry === null) {
@@ -309,9 +243,10 @@ const deserializeAws_restJson1IceServerList = (output, context) => {
309
243
  }
310
244
  return deserializeAws_restJson1IceServer(entry, context);
311
245
  });
246
+ return retVal;
312
247
  };
313
248
  const deserializeAws_restJson1Uris = (output, context) => {
314
- return (output || [])
249
+ const retVal = (output || [])
315
250
  .filter((e) => e != null)
316
251
  .map((entry) => {
317
252
  if (entry === null) {
@@ -319,6 +254,7 @@ const deserializeAws_restJson1Uris = (output, context) => {
319
254
  }
320
255
  return smithy_client_1.expectString(entry);
321
256
  });
257
+ return retVal;
322
258
  };
323
259
  const deserializeMetadata = (output) => {
324
260
  var _a;
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./KinesisVideoSignaling";
2
2
  export * from "./KinesisVideoSignalingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoSignalingServiceException } from "./models/KinesisVideoSignalingServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var KinesisVideoSignalingServiceException = (function (_super) {
4
+ __extends(KinesisVideoSignalingServiceException, _super);
5
+ function KinesisVideoSignalingServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, KinesisVideoSignalingServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return KinesisVideoSignalingServiceException;
11
+ }(__ServiceException));
12
+ export { KinesisVideoSignalingServiceException };
@@ -1,4 +1,18 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { KinesisVideoSignalingServiceException as __BaseException } from "./KinesisVideoSignalingServiceException";
3
+ var ClientLimitExceededException = (function (_super) {
4
+ __extends(ClientLimitExceededException, _super);
5
+ function ClientLimitExceededException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "ClientLimitExceededException", $fault: "client" }, opts)) || this;
7
+ _this.name = "ClientLimitExceededException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, ClientLimitExceededException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
12
+ }
13
+ return ClientLimitExceededException;
14
+ }(__BaseException));
15
+ export { ClientLimitExceededException };
2
16
  export var Service;
3
17
  (function (Service) {
4
18
  Service["TURN"] = "TURN";
@@ -15,6 +29,69 @@ export var GetIceServerConfigResponse;
15
29
  (function (GetIceServerConfigResponse) {
16
30
  GetIceServerConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
31
  })(GetIceServerConfigResponse || (GetIceServerConfigResponse = {}));
32
+ var InvalidArgumentException = (function (_super) {
33
+ __extends(InvalidArgumentException, _super);
34
+ function InvalidArgumentException(opts) {
35
+ var _this = _super.call(this, __assign({ name: "InvalidArgumentException", $fault: "client" }, opts)) || this;
36
+ _this.name = "InvalidArgumentException";
37
+ _this.$fault = "client";
38
+ Object.setPrototypeOf(_this, InvalidArgumentException.prototype);
39
+ _this.Message = opts.Message;
40
+ return _this;
41
+ }
42
+ return InvalidArgumentException;
43
+ }(__BaseException));
44
+ export { InvalidArgumentException };
45
+ var InvalidClientException = (function (_super) {
46
+ __extends(InvalidClientException, _super);
47
+ function InvalidClientException(opts) {
48
+ var _this = _super.call(this, __assign({ name: "InvalidClientException", $fault: "client" }, opts)) || this;
49
+ _this.name = "InvalidClientException";
50
+ _this.$fault = "client";
51
+ Object.setPrototypeOf(_this, InvalidClientException.prototype);
52
+ return _this;
53
+ }
54
+ return InvalidClientException;
55
+ }(__BaseException));
56
+ export { InvalidClientException };
57
+ var NotAuthorizedException = (function (_super) {
58
+ __extends(NotAuthorizedException, _super);
59
+ function NotAuthorizedException(opts) {
60
+ var _this = _super.call(this, __assign({ name: "NotAuthorizedException", $fault: "client" }, opts)) || this;
61
+ _this.name = "NotAuthorizedException";
62
+ _this.$fault = "client";
63
+ Object.setPrototypeOf(_this, NotAuthorizedException.prototype);
64
+ _this.Message = opts.Message;
65
+ return _this;
66
+ }
67
+ return NotAuthorizedException;
68
+ }(__BaseException));
69
+ export { NotAuthorizedException };
70
+ var ResourceNotFoundException = (function (_super) {
71
+ __extends(ResourceNotFoundException, _super);
72
+ function ResourceNotFoundException(opts) {
73
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
74
+ _this.name = "ResourceNotFoundException";
75
+ _this.$fault = "client";
76
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
77
+ _this.Message = opts.Message;
78
+ return _this;
79
+ }
80
+ return ResourceNotFoundException;
81
+ }(__BaseException));
82
+ export { ResourceNotFoundException };
83
+ var SessionExpiredException = (function (_super) {
84
+ __extends(SessionExpiredException, _super);
85
+ function SessionExpiredException(opts) {
86
+ var _this = _super.call(this, __assign({ name: "SessionExpiredException", $fault: "client" }, opts)) || this;
87
+ _this.name = "SessionExpiredException";
88
+ _this.$fault = "client";
89
+ Object.setPrototypeOf(_this, SessionExpiredException.prototype);
90
+ return _this;
91
+ }
92
+ return SessionExpiredException;
93
+ }(__BaseException));
94
+ export { SessionExpiredException };
18
95
  export var SendAlexaOfferToMasterRequest;
19
96
  (function (SendAlexaOfferToMasterRequest) {
20
97
  SendAlexaOfferToMasterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,6 +1,8 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
4
+ import { KinesisVideoSignalingServiceException as __BaseException } from "../models/KinesisVideoSignalingServiceException";
5
+ import { ClientLimitExceededException, InvalidArgumentException, InvalidClientException, NotAuthorizedException, ResourceNotFoundException, SessionExpiredException, } from "../models/models_0";
4
6
  export var serializeAws_restJson1GetIceServerConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
7
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
8
  return __generator(this, function (_c) {
@@ -76,16 +78,16 @@ export var deserializeAws_restJson1GetIceServerConfigCommand = function (output,
76
78
  });
77
79
  }); };
78
80
  var deserializeAws_restJson1GetIceServerConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
79
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
80
- var _j;
81
- return __generator(this, function (_k) {
82
- switch (_k.label) {
81
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
82
+ var _c;
83
+ return __generator(this, function (_d) {
84
+ switch (_d.label) {
83
85
  case 0:
84
86
  _a = [__assign({}, output)];
85
- _j = {};
87
+ _c = {};
86
88
  return [4, parseBody(output.body, context)];
87
89
  case 1:
88
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
90
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
89
91
  errorCode = "UnknownError";
90
92
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
91
93
  _b = errorCode;
@@ -104,52 +106,26 @@ var deserializeAws_restJson1GetIceServerConfigCommandError = function (output, c
104
106
  case "com.amazonaws.kinesisvideosignaling#SessionExpiredException": return [3, 12];
105
107
  }
106
108
  return [3, 14];
107
- case 2:
108
- _c = [{}];
109
- return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
110
- case 3:
111
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
112
- return [3, 15];
113
- case 4:
114
- _d = [{}];
115
- return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
116
- case 5:
117
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
118
- return [3, 15];
119
- case 6:
120
- _e = [{}];
121
- return [4, deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context)];
122
- case 7:
123
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
124
- return [3, 15];
125
- case 8:
126
- _f = [{}];
127
- return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
128
- case 9:
129
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
130
- return [3, 15];
131
- case 10:
132
- _g = [{}];
133
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
134
- case 11:
135
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
136
- return [3, 15];
137
- case 12:
138
- _h = [{}];
139
- return [4, deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context)];
140
- case 13:
141
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
142
- return [3, 15];
109
+ case 2: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
110
+ case 3: throw _d.sent();
111
+ case 4: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
112
+ case 5: throw _d.sent();
113
+ case 6: return [4, deserializeAws_restJson1InvalidClientExceptionResponse(parsedOutput, context)];
114
+ case 7: throw _d.sent();
115
+ case 8: return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
116
+ case 9: throw _d.sent();
117
+ case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
118
+ case 11: throw _d.sent();
119
+ case 12: return [4, deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context)];
120
+ case 13: throw _d.sent();
143
121
  case 14:
144
122
  parsedBody = parsedOutput.body;
145
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
146
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
147
- _k.label = 15;
148
- case 15:
149
- message = response.message || response.Message || errorCode;
150
- response.message = message;
151
- delete response.Message;
152
- return [2, Promise.reject(Object.assign(new Error(message), response))];
123
+ response = new __BaseException({
124
+ name: parsedBody.code || parsedBody.Code || errorCode,
125
+ $fault: "client",
126
+ $metadata: deserializeMetadata(output),
127
+ });
128
+ throw __decorateServiceException(response, parsedBody);
153
129
  }
154
130
  });
155
131
  }); };
@@ -178,16 +154,16 @@ export var deserializeAws_restJson1SendAlexaOfferToMasterCommand = function (out
178
154
  });
179
155
  }); };
180
156
  var deserializeAws_restJson1SendAlexaOfferToMasterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
181
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
182
- var _g;
183
- return __generator(this, function (_h) {
184
- switch (_h.label) {
157
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
158
+ var _c;
159
+ return __generator(this, function (_d) {
160
+ switch (_d.label) {
185
161
  case 0:
186
162
  _a = [__assign({}, output)];
187
- _g = {};
163
+ _c = {};
188
164
  return [4, parseBody(output.body, context)];
189
165
  case 1:
190
- parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
166
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
191
167
  errorCode = "UnknownError";
192
168
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
193
169
  _b = errorCode;
@@ -202,137 +178,95 @@ var deserializeAws_restJson1SendAlexaOfferToMasterCommandError = function (outpu
202
178
  case "com.amazonaws.kinesisvideosignaling#ResourceNotFoundException": return [3, 8];
203
179
  }
204
180
  return [3, 10];
205
- case 2:
206
- _c = [{}];
207
- return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
208
- case 3:
209
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
210
- return [3, 11];
211
- case 4:
212
- _d = [{}];
213
- return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
214
- case 5:
215
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
216
- return [3, 11];
217
- case 6:
218
- _e = [{}];
219
- return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
220
- case 7:
221
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
222
- return [3, 11];
223
- case 8:
224
- _f = [{}];
225
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
226
- case 9:
227
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
228
- return [3, 11];
181
+ case 2: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
182
+ case 3: throw _d.sent();
183
+ case 4: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
184
+ case 5: throw _d.sent();
185
+ case 6: return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
186
+ case 7: throw _d.sent();
187
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
188
+ case 9: throw _d.sent();
229
189
  case 10:
230
190
  parsedBody = parsedOutput.body;
231
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
232
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
233
- _h.label = 11;
234
- case 11:
235
- message = response.message || response.Message || errorCode;
236
- response.message = message;
237
- delete response.Message;
238
- return [2, Promise.reject(Object.assign(new Error(message), response))];
191
+ response = new __BaseException({
192
+ name: parsedBody.code || parsedBody.Code || errorCode,
193
+ $fault: "client",
194
+ $metadata: deserializeMetadata(output),
195
+ });
196
+ throw __decorateServiceException(response, parsedBody);
239
197
  }
240
198
  });
241
199
  }); };
242
200
  var deserializeAws_restJson1ClientLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
243
- var contents, data;
201
+ var contents, data, exception;
244
202
  return __generator(this, function (_a) {
245
- contents = {
246
- name: "ClientLimitExceededException",
247
- $fault: "client",
248
- $metadata: deserializeMetadata(parsedOutput),
249
- Message: undefined,
250
- };
203
+ contents = {};
251
204
  data = parsedOutput.body;
252
205
  if (data.Message !== undefined && data.Message !== null) {
253
206
  contents.Message = __expectString(data.Message);
254
207
  }
255
- return [2, contents];
208
+ exception = new ClientLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
209
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
256
210
  });
257
211
  }); };
258
212
  var deserializeAws_restJson1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
259
- var contents, data;
213
+ var contents, data, exception;
260
214
  return __generator(this, function (_a) {
261
- contents = {
262
- name: "InvalidArgumentException",
263
- $fault: "client",
264
- $metadata: deserializeMetadata(parsedOutput),
265
- Message: undefined,
266
- };
215
+ contents = {};
267
216
  data = parsedOutput.body;
268
217
  if (data.Message !== undefined && data.Message !== null) {
269
218
  contents.Message = __expectString(data.Message);
270
219
  }
271
- return [2, contents];
220
+ exception = new InvalidArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
221
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
272
222
  });
273
223
  }); };
274
224
  var deserializeAws_restJson1InvalidClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
275
- var contents, data;
225
+ var contents, data, exception;
276
226
  return __generator(this, function (_a) {
277
- contents = {
278
- name: "InvalidClientException",
279
- $fault: "client",
280
- $metadata: deserializeMetadata(parsedOutput),
281
- message: undefined,
282
- };
227
+ contents = {};
283
228
  data = parsedOutput.body;
284
229
  if (data.message !== undefined && data.message !== null) {
285
230
  contents.message = __expectString(data.message);
286
231
  }
287
- return [2, contents];
232
+ exception = new InvalidClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
233
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
288
234
  });
289
235
  }); };
290
236
  var deserializeAws_restJson1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
291
- var contents, data;
237
+ var contents, data, exception;
292
238
  return __generator(this, function (_a) {
293
- contents = {
294
- name: "NotAuthorizedException",
295
- $fault: "client",
296
- $metadata: deserializeMetadata(parsedOutput),
297
- Message: undefined,
298
- };
239
+ contents = {};
299
240
  data = parsedOutput.body;
300
241
  if (data.Message !== undefined && data.Message !== null) {
301
242
  contents.Message = __expectString(data.Message);
302
243
  }
303
- return [2, contents];
244
+ exception = new NotAuthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
245
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
304
246
  });
305
247
  }); };
306
248
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
307
- var contents, data;
249
+ var contents, data, exception;
308
250
  return __generator(this, function (_a) {
309
- contents = {
310
- name: "ResourceNotFoundException",
311
- $fault: "client",
312
- $metadata: deserializeMetadata(parsedOutput),
313
- Message: undefined,
314
- };
251
+ contents = {};
315
252
  data = parsedOutput.body;
316
253
  if (data.Message !== undefined && data.Message !== null) {
317
254
  contents.Message = __expectString(data.Message);
318
255
  }
319
- return [2, contents];
256
+ exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
257
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
320
258
  });
321
259
  }); };
322
260
  var deserializeAws_restJson1SessionExpiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
323
- var contents, data;
261
+ var contents, data, exception;
324
262
  return __generator(this, function (_a) {
325
- contents = {
326
- name: "SessionExpiredException",
327
- $fault: "client",
328
- $metadata: deserializeMetadata(parsedOutput),
329
- message: undefined,
330
- };
263
+ contents = {};
331
264
  data = parsedOutput.body;
332
265
  if (data.message !== undefined && data.message !== null) {
333
266
  contents.message = __expectString(data.message);
334
267
  }
335
- return [2, contents];
268
+ exception = new SessionExpiredException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
269
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
336
270
  });
337
271
  }); };
338
272
  var deserializeAws_restJson1IceServer = function (output, context) {
@@ -346,7 +280,7 @@ var deserializeAws_restJson1IceServer = function (output, context) {
346
280
  };
347
281
  };
348
282
  var deserializeAws_restJson1IceServerList = function (output, context) {
349
- return (output || [])
283
+ var retVal = (output || [])
350
284
  .filter(function (e) { return e != null; })
351
285
  .map(function (entry) {
352
286
  if (entry === null) {
@@ -354,9 +288,10 @@ var deserializeAws_restJson1IceServerList = function (output, context) {
354
288
  }
355
289
  return deserializeAws_restJson1IceServer(entry, context);
356
290
  });
291
+ return retVal;
357
292
  };
358
293
  var deserializeAws_restJson1Uris = function (output, context) {
359
- return (output || [])
294
+ var retVal = (output || [])
360
295
  .filter(function (e) { return e != null; })
361
296
  .map(function (entry) {
362
297
  if (entry === null) {
@@ -364,6 +299,7 @@ var deserializeAws_restJson1Uris = function (output, context) {
364
299
  }
365
300
  return __expectString(entry);
366
301
  });
302
+ return retVal;
367
303
  };
368
304
  var deserializeMetadata = function (output) {
369
305
  var _a;
@@ -2,3 +2,4 @@ export * from "./KinesisVideoSignaling";
2
2
  export * from "./KinesisVideoSignalingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoSignalingServiceException } from "./models/KinesisVideoSignalingServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from KinesisVideoSignaling service.
4
+ */
5
+ export declare class KinesisVideoSignalingServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,12 +1,17 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { KinesisVideoSignalingServiceException as __BaseException } from "./KinesisVideoSignalingServiceException";
2
3
  /**
3
4
  * <p>Your request was throttled because you have exceeded the limit of allowed client
4
5
  * calls. Try making the call later.</p>
5
6
  */
6
- export interface ClientLimitExceededException extends __SmithyException, $MetadataBearer {
7
- name: "ClientLimitExceededException";
8
- $fault: "client";
7
+ export declare class ClientLimitExceededException extends __BaseException {
8
+ readonly name: "ClientLimitExceededException";
9
+ readonly $fault: "client";
9
10
  Message?: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
10
15
  }
11
16
  export declare enum Service {
12
17
  TURN = "TURN"
@@ -81,44 +86,62 @@ export declare namespace GetIceServerConfigResponse {
81
86
  /**
82
87
  * <p>The value for this input parameter is invalid.</p>
83
88
  */
84
- export interface InvalidArgumentException extends __SmithyException, $MetadataBearer {
85
- name: "InvalidArgumentException";
86
- $fault: "client";
89
+ export declare class InvalidArgumentException extends __BaseException {
90
+ readonly name: "InvalidArgumentException";
91
+ readonly $fault: "client";
87
92
  Message?: string;
93
+ /**
94
+ * @internal
95
+ */
96
+ constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
88
97
  }
89
98
  /**
90
99
  * <p>The specified client is invalid.</p>
91
100
  */
92
- export interface InvalidClientException extends __SmithyException, $MetadataBearer {
93
- name: "InvalidClientException";
94
- $fault: "client";
95
- message?: string;
101
+ export declare class InvalidClientException extends __BaseException {
102
+ readonly name: "InvalidClientException";
103
+ readonly $fault: "client";
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
96
108
  }
97
109
  /**
98
110
  * <p>The caller is not authorized to perform this operation.</p>
99
111
  */
100
- export interface NotAuthorizedException extends __SmithyException, $MetadataBearer {
101
- name: "NotAuthorizedException";
102
- $fault: "client";
112
+ export declare class NotAuthorizedException extends __BaseException {
113
+ readonly name: "NotAuthorizedException";
114
+ readonly $fault: "client";
103
115
  Message?: string;
116
+ /**
117
+ * @internal
118
+ */
119
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
104
120
  }
105
121
  /**
106
122
  * <p>The specified resource is not found.</p>
107
123
  */
108
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
109
- name: "ResourceNotFoundException";
110
- $fault: "client";
124
+ export declare class ResourceNotFoundException extends __BaseException {
125
+ readonly name: "ResourceNotFoundException";
126
+ readonly $fault: "client";
111
127
  Message?: string;
128
+ /**
129
+ * @internal
130
+ */
131
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
112
132
  }
113
133
  /**
114
134
  * <p>If the client session is expired. Once the client is connected, the session is valid
115
135
  * for 45 minutes. Client should reconnect to the channel to continue sending/receiving
116
136
  * messages.</p>
117
137
  */
118
- export interface SessionExpiredException extends __SmithyException, $MetadataBearer {
119
- name: "SessionExpiredException";
120
- $fault: "client";
121
- message?: string;
138
+ export declare class SessionExpiredException extends __BaseException {
139
+ readonly name: "SessionExpiredException";
140
+ readonly $fault: "client";
141
+ /**
142
+ * @internal
143
+ */
144
+ constructor(opts: __ExceptionOptionType<SessionExpiredException, __BaseException>);
122
145
  }
123
146
  export interface SendAlexaOfferToMasterRequest {
124
147
  /**
@@ -2,3 +2,4 @@ export * from "./KinesisVideoSignaling";
2
2
  export * from "./KinesisVideoSignalingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoSignalingServiceException } from "./models/KinesisVideoSignalingServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class KinesisVideoSignalingServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { KinesisVideoSignalingServiceException as __BaseException } from "./KinesisVideoSignalingServiceException";
2
3
 
3
- export interface ClientLimitExceededException extends __SmithyException, $MetadataBearer {
4
- name: "ClientLimitExceededException";
5
- $fault: "client";
4
+ export declare class ClientLimitExceededException extends __BaseException {
5
+ readonly name: "ClientLimitExceededException";
6
+ readonly $fault: "client";
6
7
  Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
7
10
  }
8
11
  export declare enum Service {
9
12
  TURN = "TURN"
@@ -46,34 +49,42 @@ export declare namespace GetIceServerConfigResponse {
46
49
  const filterSensitiveLog: (obj: GetIceServerConfigResponse) => any;
47
50
  }
48
51
 
49
- export interface InvalidArgumentException extends __SmithyException, $MetadataBearer {
50
- name: "InvalidArgumentException";
51
- $fault: "client";
52
+ export declare class InvalidArgumentException extends __BaseException {
53
+ readonly name: "InvalidArgumentException";
54
+ readonly $fault: "client";
52
55
  Message?: string;
56
+
57
+ constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
53
58
  }
54
59
 
55
- export interface InvalidClientException extends __SmithyException, $MetadataBearer {
56
- name: "InvalidClientException";
57
- $fault: "client";
58
- message?: string;
60
+ export declare class InvalidClientException extends __BaseException {
61
+ readonly name: "InvalidClientException";
62
+ readonly $fault: "client";
63
+
64
+ constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
59
65
  }
60
66
 
61
- export interface NotAuthorizedException extends __SmithyException, $MetadataBearer {
62
- name: "NotAuthorizedException";
63
- $fault: "client";
67
+ export declare class NotAuthorizedException extends __BaseException {
68
+ readonly name: "NotAuthorizedException";
69
+ readonly $fault: "client";
64
70
  Message?: string;
71
+
72
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
65
73
  }
66
74
 
67
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
68
- name: "ResourceNotFoundException";
69
- $fault: "client";
75
+ export declare class ResourceNotFoundException extends __BaseException {
76
+ readonly name: "ResourceNotFoundException";
77
+ readonly $fault: "client";
70
78
  Message?: string;
79
+
80
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
71
81
  }
72
82
 
73
- export interface SessionExpiredException extends __SmithyException, $MetadataBearer {
74
- name: "SessionExpiredException";
75
- $fault: "client";
76
- message?: string;
83
+ export declare class SessionExpiredException extends __BaseException {
84
+ readonly name: "SessionExpiredException";
85
+ readonly $fault: "client";
86
+
87
+ constructor(opts: __ExceptionOptionType<SessionExpiredException, __BaseException>);
77
88
  }
78
89
  export interface SendAlexaOfferToMasterRequest {
79
90
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-signaling",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Signaling Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"