@aws-sdk/client-kinesis-video-signaling 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +18 -21
- package/dist-es/protocols/Aws_restJson1.js +13 -16
- package/package.json +26 -26
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
|
|
@@ -13,10 +13,10 @@ const serializeAws_restJson1GetIceServerConfigCommand = async (input, context) =
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/get-ice-server-config";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.ChannelARN
|
|
17
|
-
...(input.ClientId
|
|
18
|
-
...(input.Service
|
|
19
|
-
...(input.Username
|
|
16
|
+
...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
|
|
17
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
18
|
+
...(input.Service != null && { Service: input.Service }),
|
|
19
|
+
...(input.Username != null && { Username: input.Username }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -37,11 +37,9 @@ const serializeAws_restJson1SendAlexaOfferToMasterCommand = async (input, contex
|
|
|
37
37
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/send-alexa-offer-to-master";
|
|
38
38
|
let body;
|
|
39
39
|
body = JSON.stringify({
|
|
40
|
-
...(input.ChannelARN
|
|
41
|
-
...(input.MessagePayload
|
|
42
|
-
|
|
43
|
-
...(input.SenderClientId !== undefined &&
|
|
44
|
-
input.SenderClientId !== null && { SenderClientId: input.SenderClientId }),
|
|
40
|
+
...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
|
|
41
|
+
...(input.MessagePayload != null && { MessagePayload: input.MessagePayload }),
|
|
42
|
+
...(input.SenderClientId != null && { SenderClientId: input.SenderClientId }),
|
|
45
43
|
});
|
|
46
44
|
return new protocol_http_1.HttpRequest({
|
|
47
45
|
protocol,
|
|
@@ -75,8 +73,7 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
|
|
|
75
73
|
body: await parseBody(output.body, context),
|
|
76
74
|
};
|
|
77
75
|
let response;
|
|
78
|
-
|
|
79
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
76
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
80
77
|
switch (errorCode) {
|
|
81
78
|
case "ClientLimitExceededException":
|
|
82
79
|
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
@@ -98,10 +95,12 @@ const deserializeAws_restJson1GetIceServerConfigCommandError = async (output, co
|
|
|
98
95
|
throw await deserializeAws_restJson1SessionExpiredExceptionResponse(parsedOutput, context);
|
|
99
96
|
default:
|
|
100
97
|
const parsedBody = parsedOutput.body;
|
|
98
|
+
const $metadata = deserializeMetadata(output);
|
|
99
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
101
100
|
response = new KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException({
|
|
102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
103
102
|
$fault: "client",
|
|
104
|
-
$metadata
|
|
103
|
+
$metadata,
|
|
105
104
|
});
|
|
106
105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
107
106
|
}
|
|
@@ -127,8 +126,7 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
|
|
|
127
126
|
body: await parseBody(output.body, context),
|
|
128
127
|
};
|
|
129
128
|
let response;
|
|
130
|
-
|
|
131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
132
130
|
switch (errorCode) {
|
|
133
131
|
case "ClientLimitExceededException":
|
|
134
132
|
case "com.amazonaws.kinesisvideosignaling#ClientLimitExceededException":
|
|
@@ -144,10 +142,12 @@ const deserializeAws_restJson1SendAlexaOfferToMasterCommandError = async (output
|
|
|
144
142
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
145
143
|
default:
|
|
146
144
|
const parsedBody = parsedOutput.body;
|
|
145
|
+
const $metadata = deserializeMetadata(output);
|
|
146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
147
147
|
response = new KinesisVideoSignalingServiceException_1.KinesisVideoSignalingServiceException({
|
|
148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
149
149
|
$fault: "client",
|
|
150
|
-
$metadata
|
|
150
|
+
$metadata,
|
|
151
151
|
});
|
|
152
152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
153
153
|
}
|
|
@@ -228,9 +228,7 @@ const deserializeAws_restJson1IceServer = (output, context) => {
|
|
|
228
228
|
return {
|
|
229
229
|
Password: (0, smithy_client_1.expectString)(output.Password),
|
|
230
230
|
Ttl: (0, smithy_client_1.expectInt32)(output.Ttl),
|
|
231
|
-
Uris: output.Uris
|
|
232
|
-
? deserializeAws_restJson1Uris(output.Uris, context)
|
|
233
|
-
: undefined,
|
|
231
|
+
Uris: output.Uris != null ? deserializeAws_restJson1Uris(output.Uris, context) : undefined,
|
|
234
232
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
235
233
|
};
|
|
236
234
|
};
|
|
@@ -305,5 +303,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
305
303
|
if (data["__type"] !== undefined) {
|
|
306
304
|
return sanitizeErrorCode(data["__type"]);
|
|
307
305
|
}
|
|
308
|
-
return "";
|
|
309
306
|
};
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1GetIceServerConfigCommand = function (input, co
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/get-ice-server-config";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChannelARN
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.ClientId != null && { ClientId: input.ClientId })), (input.Service != null && { Service: input.Service })), (input.Username != null && { Username: input.Username })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -38,9 +38,7 @@ export var serializeAws_restJson1SendAlexaOfferToMasterCommand = function (input
|
|
|
38
38
|
"content-type": "application/json",
|
|
39
39
|
};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/send-alexa-offer-to-master";
|
|
41
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelARN
|
|
42
|
-
input.MessagePayload !== null && { MessagePayload: input.MessagePayload })), (input.SenderClientId !== undefined &&
|
|
43
|
-
input.SenderClientId !== null && { SenderClientId: input.SenderClientId })));
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.MessagePayload != null && { MessagePayload: input.MessagePayload })), (input.SenderClientId != null && { SenderClientId: input.SenderClientId })));
|
|
44
42
|
return [2, new __HttpRequest({
|
|
45
43
|
protocol: protocol,
|
|
46
44
|
hostname: hostname,
|
|
@@ -78,7 +76,7 @@ export var deserializeAws_restJson1GetIceServerConfigCommand = function (output,
|
|
|
78
76
|
});
|
|
79
77
|
}); };
|
|
80
78
|
var deserializeAws_restJson1GetIceServerConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
79
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
82
80
|
var _c;
|
|
83
81
|
return __generator(this, function (_d) {
|
|
84
82
|
switch (_d.label) {
|
|
@@ -88,7 +86,6 @@ var deserializeAws_restJson1GetIceServerConfigCommandError = function (output, c
|
|
|
88
86
|
return [4, parseBody(output.body, context)];
|
|
89
87
|
case 1:
|
|
90
88
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
91
|
-
errorCode = "UnknownError";
|
|
92
89
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
93
90
|
_b = errorCode;
|
|
94
91
|
switch (_b) {
|
|
@@ -120,10 +117,12 @@ var deserializeAws_restJson1GetIceServerConfigCommandError = function (output, c
|
|
|
120
117
|
case 13: throw _d.sent();
|
|
121
118
|
case 14:
|
|
122
119
|
parsedBody = parsedOutput.body;
|
|
120
|
+
$metadata = deserializeMetadata(output);
|
|
121
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
123
122
|
response = new __BaseException({
|
|
124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
125
124
|
$fault: "client",
|
|
126
|
-
$metadata:
|
|
125
|
+
$metadata: $metadata,
|
|
127
126
|
});
|
|
128
127
|
throw __decorateServiceException(response, parsedBody);
|
|
129
128
|
}
|
|
@@ -154,7 +153,7 @@ export var deserializeAws_restJson1SendAlexaOfferToMasterCommand = function (out
|
|
|
154
153
|
});
|
|
155
154
|
}); };
|
|
156
155
|
var deserializeAws_restJson1SendAlexaOfferToMasterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
156
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
158
157
|
var _c;
|
|
159
158
|
return __generator(this, function (_d) {
|
|
160
159
|
switch (_d.label) {
|
|
@@ -164,7 +163,6 @@ var deserializeAws_restJson1SendAlexaOfferToMasterCommandError = function (outpu
|
|
|
164
163
|
return [4, parseBody(output.body, context)];
|
|
165
164
|
case 1:
|
|
166
165
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
167
|
-
errorCode = "UnknownError";
|
|
168
166
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
169
167
|
_b = errorCode;
|
|
170
168
|
switch (_b) {
|
|
@@ -188,10 +186,12 @@ var deserializeAws_restJson1SendAlexaOfferToMasterCommandError = function (outpu
|
|
|
188
186
|
case 9: throw _d.sent();
|
|
189
187
|
case 10:
|
|
190
188
|
parsedBody = parsedOutput.body;
|
|
189
|
+
$metadata = deserializeMetadata(output);
|
|
190
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
191
191
|
response = new __BaseException({
|
|
192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
193
193
|
$fault: "client",
|
|
194
|
-
$metadata:
|
|
194
|
+
$metadata: $metadata,
|
|
195
195
|
});
|
|
196
196
|
throw __decorateServiceException(response, parsedBody);
|
|
197
197
|
}
|
|
@@ -273,9 +273,7 @@ var deserializeAws_restJson1IceServer = function (output, context) {
|
|
|
273
273
|
return {
|
|
274
274
|
Password: __expectString(output.Password),
|
|
275
275
|
Ttl: __expectInt32(output.Ttl),
|
|
276
|
-
Uris: output.Uris
|
|
277
|
-
? deserializeAws_restJson1Uris(output.Uris, context)
|
|
278
|
-
: undefined,
|
|
276
|
+
Uris: output.Uris != null ? deserializeAws_restJson1Uris(output.Uris, context) : undefined,
|
|
279
277
|
Username: __expectString(output.Username),
|
|
280
278
|
};
|
|
281
279
|
};
|
|
@@ -357,5 +355,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
357
355
|
if (data["__type"] !== undefined) {
|
|
358
356
|
return sanitizeErrorCode(data["__type"]);
|
|
359
357
|
}
|
|
360
|
-
return "";
|
|
361
358
|
};
|
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.
|
|
4
|
+
"version": "3.128.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,35 +18,35 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.128.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.128.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.128.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|