@aws-sdk/client-kinesis-video-signaling 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.
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
@@ -248,10 +248,10 @@ const deserializeAws_restJson1Uris = (output, context) => {
248
248
  return retVal;
249
249
  };
250
250
  const deserializeMetadata = (output) => {
251
- var _a;
251
+ var _a, _b;
252
252
  return ({
253
253
  httpStatusCode: output.statusCode,
254
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
254
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
255
255
  extendedRequestId: output.headers["x-amz-id-2"],
256
256
  cfId: output.headers["x-amz-cf-id"],
257
257
  });
@@ -1,33 +1,40 @@
1
+ import { __extends } from "tslib";
1
2
  import { GetIceServerConfigCommand, } from "./commands/GetIceServerConfigCommand";
2
3
  import { SendAlexaOfferToMasterCommand, } from "./commands/SendAlexaOfferToMasterCommand";
3
4
  import { KinesisVideoSignalingClient } from "./KinesisVideoSignalingClient";
4
- export class KinesisVideoSignaling extends KinesisVideoSignalingClient {
5
- getIceServerConfig(args, optionsOrCb, cb) {
6
- const command = new GetIceServerConfigCommand(args);
5
+ var KinesisVideoSignaling = (function (_super) {
6
+ __extends(KinesisVideoSignaling, _super);
7
+ function KinesisVideoSignaling() {
8
+ return _super !== null && _super.apply(this, arguments) || this;
9
+ }
10
+ KinesisVideoSignaling.prototype.getIceServerConfig = function (args, optionsOrCb, cb) {
11
+ var command = new GetIceServerConfigCommand(args);
7
12
  if (typeof optionsOrCb === "function") {
8
13
  this.send(command, optionsOrCb);
9
14
  }
10
15
  else if (typeof cb === "function") {
11
16
  if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
13
18
  this.send(command, optionsOrCb || {}, cb);
14
19
  }
15
20
  else {
16
21
  return this.send(command, optionsOrCb);
17
22
  }
18
- }
19
- sendAlexaOfferToMaster(args, optionsOrCb, cb) {
20
- const command = new SendAlexaOfferToMasterCommand(args);
23
+ };
24
+ KinesisVideoSignaling.prototype.sendAlexaOfferToMaster = function (args, optionsOrCb, cb) {
25
+ var command = new SendAlexaOfferToMasterCommand(args);
21
26
  if (typeof optionsOrCb === "function") {
22
27
  this.send(command, optionsOrCb);
23
28
  }
24
29
  else if (typeof cb === "function") {
25
30
  if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
32
  this.send(command, optionsOrCb || {}, cb);
28
33
  }
29
34
  else {
30
35
  return this.send(command, optionsOrCb);
31
36
  }
32
- }
33
- }
37
+ };
38
+ return KinesisVideoSignaling;
39
+ }(KinesisVideoSignalingClient));
40
+ export { KinesisVideoSignaling };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,27 +9,32 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class KinesisVideoSignalingClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
29
- this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
12
+ var KinesisVideoSignalingClient = (function (_super) {
13
+ __extends(KinesisVideoSignalingClient, _super);
14
+ function KinesisVideoSignalingClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ _this.middlewareStack.use(getOmitRetryHeadersPlugin(_this.config));
33
+ return _this;
30
34
  }
31
- destroy() {
32
- super.destroy();
33
- }
34
- }
35
+ KinesisVideoSignalingClient.prototype.destroy = function () {
36
+ _super.prototype.destroy.call(this);
37
+ };
38
+ return KinesisVideoSignalingClient;
39
+ }(__Client));
40
+ export { KinesisVideoSignalingClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetIceServerConfigRequestFilterSensitiveLog, GetIceServerConfigResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetIceServerConfigCommand, serializeAws_restJson1GetIceServerConfigCommand, } from "../protocols/Aws_restJson1";
5
- export class GetIceServerConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetIceServerConfigCommand = (function (_super) {
7
+ __extends(GetIceServerConfigCommand, _super);
8
+ function GetIceServerConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetIceServerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisVideoSignalingClient";
15
- const commandName = "GetIceServerConfigCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisVideoSignalingClient";
18
+ var commandName = "GetIceServerConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetIceServerConfigRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetIceServerConfigResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetIceServerConfigCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetIceServerConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetIceServerConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetIceServerConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetIceServerConfigCommand;
38
+ }($Command));
39
+ export { GetIceServerConfigCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SendAlexaOfferToMasterRequestFilterSensitiveLog, SendAlexaOfferToMasterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1SendAlexaOfferToMasterCommand, serializeAws_restJson1SendAlexaOfferToMasterCommand, } from "../protocols/Aws_restJson1";
5
- export class SendAlexaOfferToMasterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SendAlexaOfferToMasterCommand = (function (_super) {
7
+ __extends(SendAlexaOfferToMasterCommand, _super);
8
+ function SendAlexaOfferToMasterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SendAlexaOfferToMasterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisVideoSignalingClient";
15
- const commandName = "SendAlexaOfferToMasterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisVideoSignalingClient";
18
+ var commandName = "SendAlexaOfferToMasterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SendAlexaOfferToMasterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SendAlexaOfferToMasterResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SendAlexaOfferToMasterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1SendAlexaOfferToMasterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SendAlexaOfferToMasterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1SendAlexaOfferToMasterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SendAlexaOfferToMasterCommand;
38
+ }($Command));
39
+ export { SendAlexaOfferToMasterCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "kinesisvideo",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "kinesisvideo", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class KinesisVideoSignalingServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, KinesisVideoSignalingServiceException.prototype);
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;
6
9
  }
7
- }
10
+ return KinesisVideoSignalingServiceException;
11
+ }(__ServiceException));
12
+ export { KinesisVideoSignalingServiceException };
@@ -1,96 +1,87 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { KinesisVideoSignalingServiceException as __BaseException } from "./KinesisVideoSignalingServiceException";
2
- export class ClientLimitExceededException extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "ClientLimitExceededException",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "ClientLimitExceededException";
10
- this.$fault = "client";
11
- Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
12
- this.Message = opts.Message;
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;
13
12
  }
14
- }
13
+ return ClientLimitExceededException;
14
+ }(__BaseException));
15
+ export { ClientLimitExceededException };
15
16
  export var Service;
16
17
  (function (Service) {
17
18
  Service["TURN"] = "TURN";
18
19
  })(Service || (Service = {}));
19
- export class InvalidArgumentException extends __BaseException {
20
- constructor(opts) {
21
- super({
22
- name: "InvalidArgumentException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- this.name = "InvalidArgumentException";
27
- this.$fault = "client";
28
- Object.setPrototypeOf(this, InvalidArgumentException.prototype);
29
- this.Message = opts.Message;
20
+ var InvalidArgumentException = (function (_super) {
21
+ __extends(InvalidArgumentException, _super);
22
+ function InvalidArgumentException(opts) {
23
+ var _this = _super.call(this, __assign({ name: "InvalidArgumentException", $fault: "client" }, opts)) || this;
24
+ _this.name = "InvalidArgumentException";
25
+ _this.$fault = "client";
26
+ Object.setPrototypeOf(_this, InvalidArgumentException.prototype);
27
+ _this.Message = opts.Message;
28
+ return _this;
30
29
  }
31
- }
32
- export class InvalidClientException extends __BaseException {
33
- constructor(opts) {
34
- super({
35
- name: "InvalidClientException",
36
- $fault: "client",
37
- ...opts,
38
- });
39
- this.name = "InvalidClientException";
40
- this.$fault = "client";
41
- Object.setPrototypeOf(this, InvalidClientException.prototype);
30
+ return InvalidArgumentException;
31
+ }(__BaseException));
32
+ export { InvalidArgumentException };
33
+ var InvalidClientException = (function (_super) {
34
+ __extends(InvalidClientException, _super);
35
+ function InvalidClientException(opts) {
36
+ var _this = _super.call(this, __assign({ name: "InvalidClientException", $fault: "client" }, opts)) || this;
37
+ _this.name = "InvalidClientException";
38
+ _this.$fault = "client";
39
+ Object.setPrototypeOf(_this, InvalidClientException.prototype);
40
+ return _this;
42
41
  }
43
- }
44
- export class NotAuthorizedException extends __BaseException {
45
- constructor(opts) {
46
- super({
47
- name: "NotAuthorizedException",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "NotAuthorizedException";
52
- this.$fault = "client";
53
- Object.setPrototypeOf(this, NotAuthorizedException.prototype);
54
- this.Message = opts.Message;
42
+ return InvalidClientException;
43
+ }(__BaseException));
44
+ export { InvalidClientException };
45
+ var NotAuthorizedException = (function (_super) {
46
+ __extends(NotAuthorizedException, _super);
47
+ function NotAuthorizedException(opts) {
48
+ var _this = _super.call(this, __assign({ name: "NotAuthorizedException", $fault: "client" }, opts)) || this;
49
+ _this.name = "NotAuthorizedException";
50
+ _this.$fault = "client";
51
+ Object.setPrototypeOf(_this, NotAuthorizedException.prototype);
52
+ _this.Message = opts.Message;
53
+ return _this;
55
54
  }
56
- }
57
- export class ResourceNotFoundException extends __BaseException {
58
- constructor(opts) {
59
- super({
60
- name: "ResourceNotFoundException",
61
- $fault: "client",
62
- ...opts,
63
- });
64
- this.name = "ResourceNotFoundException";
65
- this.$fault = "client";
66
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
- this.Message = opts.Message;
55
+ return NotAuthorizedException;
56
+ }(__BaseException));
57
+ export { NotAuthorizedException };
58
+ var ResourceNotFoundException = (function (_super) {
59
+ __extends(ResourceNotFoundException, _super);
60
+ function ResourceNotFoundException(opts) {
61
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
62
+ _this.name = "ResourceNotFoundException";
63
+ _this.$fault = "client";
64
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
65
+ _this.Message = opts.Message;
66
+ return _this;
68
67
  }
69
- }
70
- export class SessionExpiredException extends __BaseException {
71
- constructor(opts) {
72
- super({
73
- name: "SessionExpiredException",
74
- $fault: "client",
75
- ...opts,
76
- });
77
- this.name = "SessionExpiredException";
78
- this.$fault = "client";
79
- Object.setPrototypeOf(this, SessionExpiredException.prototype);
68
+ return ResourceNotFoundException;
69
+ }(__BaseException));
70
+ export { ResourceNotFoundException };
71
+ var SessionExpiredException = (function (_super) {
72
+ __extends(SessionExpiredException, _super);
73
+ function SessionExpiredException(opts) {
74
+ var _this = _super.call(this, __assign({ name: "SessionExpiredException", $fault: "client" }, opts)) || this;
75
+ _this.name = "SessionExpiredException";
76
+ _this.$fault = "client";
77
+ Object.setPrototypeOf(_this, SessionExpiredException.prototype);
78
+ return _this;
80
79
  }
81
- }
82
- export const GetIceServerConfigRequestFilterSensitiveLog = (obj) => ({
83
- ...obj,
84
- });
85
- export const IceServerFilterSensitiveLog = (obj) => ({
86
- ...obj,
87
- });
88
- export const GetIceServerConfigResponseFilterSensitiveLog = (obj) => ({
89
- ...obj,
90
- });
91
- export const SendAlexaOfferToMasterRequestFilterSensitiveLog = (obj) => ({
92
- ...obj,
93
- });
94
- export const SendAlexaOfferToMasterResponseFilterSensitiveLog = (obj) => ({
95
- ...obj,
96
- });
80
+ return SessionExpiredException;
81
+ }(__BaseException));
82
+ export { SessionExpiredException };
83
+ export var GetIceServerConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
+ export var IceServerFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
+ export var GetIceServerConfigResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
+ export var SendAlexaOfferToMasterRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
+ export var SendAlexaOfferToMasterResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };