@aws-sdk/client-kinesis-video-webrtc-storage 3.310.0 → 3.315.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.
|
@@ -12,9 +12,9 @@ const se_JoinStorageSessionCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/joinStorageSession";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
channelArn: [],
|
|
17
|
+
}));
|
|
18
18
|
return new protocol_http_1.HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -30,7 +30,7 @@ const de_JoinStorageSessionCommand = async (output, context) => {
|
|
|
30
30
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
31
31
|
return de_JoinStorageSessionCommandError(output, context);
|
|
32
32
|
}
|
|
33
|
-
const contents = map({
|
|
33
|
+
const contents = (0, smithy_client_1.map)({
|
|
34
34
|
$metadata: deserializeMetadata(output),
|
|
35
35
|
});
|
|
36
36
|
await collectBody(output.body, context);
|
|
@@ -58,21 +58,21 @@ const de_JoinStorageSessionCommandError = async (output, context) => {
|
|
|
58
58
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
59
59
|
default:
|
|
60
60
|
const parsedBody = parsedOutput.body;
|
|
61
|
-
|
|
61
|
+
return throwDefaultError({
|
|
62
62
|
output,
|
|
63
63
|
parsedBody,
|
|
64
|
-
exceptionCtor: KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException,
|
|
65
64
|
errorCode,
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
|
-
const
|
|
68
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException);
|
|
70
69
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
71
|
-
const contents = map({});
|
|
70
|
+
const contents = (0, smithy_client_1.map)({});
|
|
72
71
|
const data = parsedOutput.body;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
72
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
73
|
+
message: smithy_client_1.expectString,
|
|
74
|
+
});
|
|
75
|
+
Object.assign(contents, doc);
|
|
76
76
|
const exception = new models_0_1.AccessDeniedException({
|
|
77
77
|
$metadata: deserializeMetadata(parsedOutput),
|
|
78
78
|
...contents,
|
|
@@ -80,11 +80,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
80
80
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
81
81
|
};
|
|
82
82
|
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
83
|
-
const contents = map({});
|
|
83
|
+
const contents = (0, smithy_client_1.map)({});
|
|
84
84
|
const data = parsedOutput.body;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
86
|
+
message: smithy_client_1.expectString,
|
|
87
|
+
});
|
|
88
|
+
Object.assign(contents, doc);
|
|
88
89
|
const exception = new models_0_1.ClientLimitExceededException({
|
|
89
90
|
$metadata: deserializeMetadata(parsedOutput),
|
|
90
91
|
...contents,
|
|
@@ -92,11 +93,12 @@ const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
92
93
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
93
94
|
};
|
|
94
95
|
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
95
|
-
const contents = map({});
|
|
96
|
+
const contents = (0, smithy_client_1.map)({});
|
|
96
97
|
const data = parsedOutput.body;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
98
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
99
|
+
message: smithy_client_1.expectString,
|
|
100
|
+
});
|
|
101
|
+
Object.assign(contents, doc);
|
|
100
102
|
const exception = new models_0_1.InvalidArgumentException({
|
|
101
103
|
$metadata: deserializeMetadata(parsedOutput),
|
|
102
104
|
...contents,
|
|
@@ -104,11 +106,12 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
104
106
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
105
107
|
};
|
|
106
108
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
107
|
-
const contents = map({});
|
|
109
|
+
const contents = (0, smithy_client_1.map)({});
|
|
108
110
|
const data = parsedOutput.body;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
111
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
112
|
+
message: smithy_client_1.expectString,
|
|
113
|
+
});
|
|
114
|
+
Object.assign(contents, doc);
|
|
112
115
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
113
116
|
$metadata: deserializeMetadata(parsedOutput),
|
|
114
117
|
...contents,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, map
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, map, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KinesisVideoWebRTCStorageServiceException as __BaseException } from "../models/KinesisVideoWebRTCStorageServiceException";
|
|
4
4
|
import { AccessDeniedException, ClientLimitExceededException, InvalidArgumentException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_JoinStorageSessionCommand = async (input, context) => {
|
|
@@ -9,9 +9,9 @@ export const se_JoinStorageSessionCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/joinStorageSession";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
channelArn: [],
|
|
14
|
+
}));
|
|
15
15
|
return new __HttpRequest({
|
|
16
16
|
protocol,
|
|
17
17
|
hostname,
|
|
@@ -53,21 +53,21 @@ const de_JoinStorageSessionCommandError = async (output, context) => {
|
|
|
53
53
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
54
54
|
default:
|
|
55
55
|
const parsedBody = parsedOutput.body;
|
|
56
|
-
throwDefaultError({
|
|
56
|
+
return throwDefaultError({
|
|
57
57
|
output,
|
|
58
58
|
parsedBody,
|
|
59
|
-
exceptionCtor: __BaseException,
|
|
60
59
|
errorCode,
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
|
-
const
|
|
63
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
65
64
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
66
65
|
const contents = map({});
|
|
67
66
|
const data = parsedOutput.body;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
67
|
+
const doc = take(data, {
|
|
68
|
+
message: __expectString,
|
|
69
|
+
});
|
|
70
|
+
Object.assign(contents, doc);
|
|
71
71
|
const exception = new AccessDeniedException({
|
|
72
72
|
$metadata: deserializeMetadata(parsedOutput),
|
|
73
73
|
...contents,
|
|
@@ -77,9 +77,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
77
77
|
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
78
78
|
const contents = map({});
|
|
79
79
|
const data = parsedOutput.body;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
80
|
+
const doc = take(data, {
|
|
81
|
+
message: __expectString,
|
|
82
|
+
});
|
|
83
|
+
Object.assign(contents, doc);
|
|
83
84
|
const exception = new ClientLimitExceededException({
|
|
84
85
|
$metadata: deserializeMetadata(parsedOutput),
|
|
85
86
|
...contents,
|
|
@@ -89,9 +90,10 @@ const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
89
90
|
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
90
91
|
const contents = map({});
|
|
91
92
|
const data = parsedOutput.body;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
93
|
+
const doc = take(data, {
|
|
94
|
+
message: __expectString,
|
|
95
|
+
});
|
|
96
|
+
Object.assign(contents, doc);
|
|
95
97
|
const exception = new InvalidArgumentException({
|
|
96
98
|
$metadata: deserializeMetadata(parsedOutput),
|
|
97
99
|
...contents,
|
|
@@ -101,9 +103,10 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
101
103
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
102
104
|
const contents = map({});
|
|
103
105
|
const data = parsedOutput.body;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
106
|
+
const doc = take(data, {
|
|
107
|
+
message: __expectString,
|
|
108
|
+
});
|
|
109
|
+
Object.assign(contents, doc);
|
|
107
110
|
const exception = new ResourceNotFoundException({
|
|
108
111
|
$metadata: deserializeMetadata(parsedOutput),
|
|
109
112
|
...contents,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-video-webrtc-storage",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Video Webrtc Storage Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|