@aws-sdk/client-kinesis-video-webrtc-storage 3.490.0 → 3.495.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/dist-cjs/KinesisVideoWebRTCStorage.js +1 -13
- package/dist-cjs/KinesisVideoWebRTCStorageClient.js +1 -43
- package/dist-cjs/commands/JoinStorageSessionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -4
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +412 -10
- package/dist-cjs/models/KinesisVideoWebRTCStorageServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -56
- package/dist-cjs/protocols/Aws_restJson1.js +1 -165
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KinesisVideoWebRTCStorage = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const JoinStorageSessionCommand_1 = require("./commands/JoinStorageSessionCommand");
|
|
6
|
-
const KinesisVideoWebRTCStorageClient_1 = require("./KinesisVideoWebRTCStorageClient");
|
|
7
|
-
const commands = {
|
|
8
|
-
JoinStorageSessionCommand: JoinStorageSessionCommand_1.JoinStorageSessionCommand,
|
|
9
|
-
};
|
|
10
|
-
class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient_1.KinesisVideoWebRTCStorageClient {
|
|
11
|
-
}
|
|
12
|
-
exports.KinesisVideoWebRTCStorage = KinesisVideoWebRTCStorage;
|
|
13
|
-
(0, smithy_client_1.createAggregatedClient)(commands, KinesisVideoWebRTCStorage);
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KinesisVideoWebRTCStorageClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
|
-
class KinesisVideoWebRTCStorageClient extends smithy_client_1.Client {
|
|
19
|
-
constructor(...[configuration]) {
|
|
20
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
22
|
-
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
23
|
-
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
|
-
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
|
-
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
-
super(_config_8);
|
|
30
|
-
this.config = _config_8;
|
|
31
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
38
|
-
}
|
|
39
|
-
destroy() {
|
|
40
|
-
super.destroy();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.KinesisVideoWebRTCStorageClient = KinesisVideoWebRTCStorageClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JoinStorageSessionCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class JoinStorageSessionCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep({
|
|
13
|
-
...EndpointParameters_1.commonParams,
|
|
14
|
-
})
|
|
15
|
-
.m(function (Command, cs, config, o) {
|
|
16
|
-
return [
|
|
17
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
-
];
|
|
20
|
-
})
|
|
21
|
-
.s("AWSAcuityRoutingServiceLambda", "JoinStorageSession", {})
|
|
22
|
-
.n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionCommand")
|
|
23
|
-
.f(void 0, void 0)
|
|
24
|
-
.ser(Aws_restJson1_1.se_JoinStorageSessionCommand)
|
|
25
|
-
.de(Aws_restJson1_1.de_JoinStorageSessionCommand)
|
|
26
|
-
.build() {
|
|
27
|
-
}
|
|
28
|
-
exports.JoinStorageSessionCommand = JoinStorageSessionCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return {
|
|
6
|
-
...options,
|
|
7
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "kinesisvideo",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
-
Region: { type: "builtInParams", name: "region" },
|
|
17
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,413 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
$Command: () => import_smithy_client.Command,
|
|
25
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
26
|
+
ClientLimitExceededException: () => ClientLimitExceededException,
|
|
27
|
+
InvalidArgumentException: () => InvalidArgumentException,
|
|
28
|
+
JoinStorageSessionCommand: () => JoinStorageSessionCommand,
|
|
29
|
+
KinesisVideoWebRTCStorage: () => KinesisVideoWebRTCStorage,
|
|
30
|
+
KinesisVideoWebRTCStorageClient: () => KinesisVideoWebRTCStorageClient,
|
|
31
|
+
KinesisVideoWebRTCStorageServiceException: () => KinesisVideoWebRTCStorageServiceException,
|
|
32
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
33
|
+
__Client: () => import_smithy_client.Client,
|
|
34
|
+
__MetadataBearer: () => import_types.MetadataBearer
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
|
+
|
|
38
|
+
// src/KinesisVideoWebRTCStorageClient.ts
|
|
39
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
40
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
41
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
42
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
43
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
44
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
45
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
46
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
47
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
// src/endpoint/EndpointParameters.ts
|
|
51
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
52
|
+
return {
|
|
53
|
+
...options,
|
|
54
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
55
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
56
|
+
defaultSigningName: "kinesisvideo"
|
|
57
|
+
};
|
|
58
|
+
}, "resolveClientEndpointParameters");
|
|
59
|
+
var commonParams = {
|
|
60
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
61
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
62
|
+
Region: { type: "builtInParams", name: "region" },
|
|
63
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// src/KinesisVideoWebRTCStorageClient.ts
|
|
67
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
68
|
+
|
|
69
|
+
// src/runtimeExtensions.ts
|
|
70
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
71
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
72
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
74
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = {
|
|
76
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
77
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
78
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
79
|
+
};
|
|
80
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
81
|
+
return {
|
|
82
|
+
...runtimeConfig,
|
|
83
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
84
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
85
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
86
|
+
};
|
|
87
|
+
}, "resolveRuntimeExtensions");
|
|
88
|
+
|
|
89
|
+
// src/KinesisVideoWebRTCStorageClient.ts
|
|
90
|
+
var _KinesisVideoWebRTCStorageClient = class _KinesisVideoWebRTCStorageClient extends import_smithy_client.Client {
|
|
91
|
+
constructor(...[configuration]) {
|
|
92
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
93
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
94
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
95
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
96
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
97
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
98
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
99
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
100
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
101
|
+
super(_config_8);
|
|
102
|
+
this.config = _config_8;
|
|
103
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
104
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
105
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
106
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
107
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
108
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
109
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
113
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
114
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
115
|
+
*/
|
|
116
|
+
destroy() {
|
|
117
|
+
super.destroy();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
__name(_KinesisVideoWebRTCStorageClient, "KinesisVideoWebRTCStorageClient");
|
|
121
|
+
var KinesisVideoWebRTCStorageClient = _KinesisVideoWebRTCStorageClient;
|
|
122
|
+
|
|
123
|
+
// src/KinesisVideoWebRTCStorage.ts
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
// src/commands/JoinStorageSessionCommand.ts
|
|
127
|
+
|
|
128
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
129
|
+
|
|
130
|
+
var import_types = require("@smithy/types");
|
|
131
|
+
|
|
132
|
+
// src/protocols/Aws_restJson1.ts
|
|
133
|
+
var import_core = require("@smithy/core");
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
// src/models/KinesisVideoWebRTCStorageServiceException.ts
|
|
137
|
+
|
|
138
|
+
var _KinesisVideoWebRTCStorageServiceException = class _KinesisVideoWebRTCStorageServiceException extends import_smithy_client.ServiceException {
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
constructor(options) {
|
|
143
|
+
super(options);
|
|
144
|
+
Object.setPrototypeOf(this, _KinesisVideoWebRTCStorageServiceException.prototype);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
__name(_KinesisVideoWebRTCStorageServiceException, "KinesisVideoWebRTCStorageServiceException");
|
|
148
|
+
var KinesisVideoWebRTCStorageServiceException = _KinesisVideoWebRTCStorageServiceException;
|
|
149
|
+
|
|
150
|
+
// src/models/models_0.ts
|
|
151
|
+
var _AccessDeniedException = class _AccessDeniedException extends KinesisVideoWebRTCStorageServiceException {
|
|
152
|
+
/**
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "AccessDeniedException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts
|
|
160
|
+
});
|
|
161
|
+
this.name = "AccessDeniedException";
|
|
162
|
+
this.$fault = "client";
|
|
163
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
167
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
168
|
+
var _ClientLimitExceededException = class _ClientLimitExceededException extends KinesisVideoWebRTCStorageServiceException {
|
|
169
|
+
/**
|
|
170
|
+
* @internal
|
|
171
|
+
*/
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ClientLimitExceededException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts
|
|
177
|
+
});
|
|
178
|
+
this.name = "ClientLimitExceededException";
|
|
179
|
+
this.$fault = "client";
|
|
180
|
+
Object.setPrototypeOf(this, _ClientLimitExceededException.prototype);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
__name(_ClientLimitExceededException, "ClientLimitExceededException");
|
|
184
|
+
var ClientLimitExceededException = _ClientLimitExceededException;
|
|
185
|
+
var _InvalidArgumentException = class _InvalidArgumentException extends KinesisVideoWebRTCStorageServiceException {
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "InvalidArgumentException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts
|
|
194
|
+
});
|
|
195
|
+
this.name = "InvalidArgumentException";
|
|
196
|
+
this.$fault = "client";
|
|
197
|
+
Object.setPrototypeOf(this, _InvalidArgumentException.prototype);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
__name(_InvalidArgumentException, "InvalidArgumentException");
|
|
201
|
+
var InvalidArgumentException = _InvalidArgumentException;
|
|
202
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends KinesisVideoWebRTCStorageServiceException {
|
|
203
|
+
/**
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "ResourceNotFoundException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts
|
|
211
|
+
});
|
|
212
|
+
this.name = "ResourceNotFoundException";
|
|
213
|
+
this.$fault = "client";
|
|
214
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
218
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
219
|
+
|
|
220
|
+
// src/protocols/Aws_restJson1.ts
|
|
221
|
+
var se_JoinStorageSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
222
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
223
|
+
const headers = {
|
|
224
|
+
"content-type": "application/json"
|
|
225
|
+
};
|
|
226
|
+
b.bp("/joinStorageSession");
|
|
227
|
+
let body;
|
|
228
|
+
body = JSON.stringify(
|
|
229
|
+
(0, import_smithy_client.take)(input, {
|
|
230
|
+
channelArn: []
|
|
231
|
+
})
|
|
232
|
+
);
|
|
233
|
+
b.m("POST").h(headers).b(body);
|
|
234
|
+
return b.build();
|
|
235
|
+
}, "se_JoinStorageSessionCommand");
|
|
236
|
+
var de_JoinStorageSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
237
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
|
+
return de_JoinStorageSessionCommandError(output, context);
|
|
239
|
+
}
|
|
240
|
+
const contents = (0, import_smithy_client.map)({
|
|
241
|
+
$metadata: deserializeMetadata(output)
|
|
242
|
+
});
|
|
243
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
244
|
+
return contents;
|
|
245
|
+
}, "de_JoinStorageSessionCommand");
|
|
246
|
+
var de_JoinStorageSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
247
|
+
const parsedOutput = {
|
|
248
|
+
...output,
|
|
249
|
+
body: await parseErrorBody(output.body, context)
|
|
250
|
+
};
|
|
251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
|
+
switch (errorCode) {
|
|
253
|
+
case "AccessDeniedException":
|
|
254
|
+
case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
|
|
255
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
256
|
+
case "ClientLimitExceededException":
|
|
257
|
+
case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
|
|
258
|
+
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
259
|
+
case "InvalidArgumentException":
|
|
260
|
+
case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
|
|
261
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
262
|
+
case "ResourceNotFoundException":
|
|
263
|
+
case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
|
|
264
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
265
|
+
default:
|
|
266
|
+
const parsedBody = parsedOutput.body;
|
|
267
|
+
return throwDefaultError({
|
|
268
|
+
output,
|
|
269
|
+
parsedBody,
|
|
270
|
+
errorCode
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}, "de_JoinStorageSessionCommandError");
|
|
274
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisVideoWebRTCStorageServiceException);
|
|
275
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
276
|
+
const contents = (0, import_smithy_client.map)({});
|
|
277
|
+
const data = parsedOutput.body;
|
|
278
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
279
|
+
message: import_smithy_client.expectString
|
|
280
|
+
});
|
|
281
|
+
Object.assign(contents, doc);
|
|
282
|
+
const exception = new AccessDeniedException({
|
|
283
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
284
|
+
...contents
|
|
285
|
+
});
|
|
286
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
287
|
+
}, "de_AccessDeniedExceptionRes");
|
|
288
|
+
var de_ClientLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
289
|
+
const contents = (0, import_smithy_client.map)({});
|
|
290
|
+
const data = parsedOutput.body;
|
|
291
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
292
|
+
message: import_smithy_client.expectString
|
|
293
|
+
});
|
|
294
|
+
Object.assign(contents, doc);
|
|
295
|
+
const exception = new ClientLimitExceededException({
|
|
296
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
297
|
+
...contents
|
|
298
|
+
});
|
|
299
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
300
|
+
}, "de_ClientLimitExceededExceptionRes");
|
|
301
|
+
var de_InvalidArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
302
|
+
const contents = (0, import_smithy_client.map)({});
|
|
303
|
+
const data = parsedOutput.body;
|
|
304
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
305
|
+
message: import_smithy_client.expectString
|
|
306
|
+
});
|
|
307
|
+
Object.assign(contents, doc);
|
|
308
|
+
const exception = new InvalidArgumentException({
|
|
309
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
310
|
+
...contents
|
|
311
|
+
});
|
|
312
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
313
|
+
}, "de_InvalidArgumentExceptionRes");
|
|
314
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
315
|
+
const contents = (0, import_smithy_client.map)({});
|
|
316
|
+
const data = parsedOutput.body;
|
|
317
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
318
|
+
message: import_smithy_client.expectString
|
|
319
|
+
});
|
|
320
|
+
Object.assign(contents, doc);
|
|
321
|
+
const exception = new ResourceNotFoundException({
|
|
322
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
323
|
+
...contents
|
|
324
|
+
});
|
|
325
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
326
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
327
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
328
|
+
httpStatusCode: output.statusCode,
|
|
329
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
330
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
331
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
332
|
+
}), "deserializeMetadata");
|
|
333
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
334
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
335
|
+
if (encoded.length) {
|
|
336
|
+
return JSON.parse(encoded);
|
|
337
|
+
}
|
|
338
|
+
return {};
|
|
339
|
+
}), "parseBody");
|
|
340
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
341
|
+
const value = await parseBody(errorBody, context);
|
|
342
|
+
value.message = value.message ?? value.Message;
|
|
343
|
+
return value;
|
|
344
|
+
}, "parseErrorBody");
|
|
345
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
346
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
347
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
348
|
+
let cleanValue = rawValue;
|
|
349
|
+
if (typeof cleanValue === "number") {
|
|
350
|
+
cleanValue = cleanValue.toString();
|
|
351
|
+
}
|
|
352
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
353
|
+
cleanValue = cleanValue.split(",")[0];
|
|
354
|
+
}
|
|
355
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
356
|
+
cleanValue = cleanValue.split(":")[0];
|
|
357
|
+
}
|
|
358
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
359
|
+
cleanValue = cleanValue.split("#")[1];
|
|
360
|
+
}
|
|
361
|
+
return cleanValue;
|
|
362
|
+
}, "sanitizeErrorCode");
|
|
363
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
364
|
+
if (headerKey !== void 0) {
|
|
365
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
366
|
+
}
|
|
367
|
+
if (data.code !== void 0) {
|
|
368
|
+
return sanitizeErrorCode(data.code);
|
|
369
|
+
}
|
|
370
|
+
if (data["__type"] !== void 0) {
|
|
371
|
+
return sanitizeErrorCode(data["__type"]);
|
|
372
|
+
}
|
|
373
|
+
}, "loadRestJsonErrorCode");
|
|
374
|
+
|
|
375
|
+
// src/commands/JoinStorageSessionCommand.ts
|
|
376
|
+
var _JoinStorageSessionCommand = class _JoinStorageSessionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
377
|
+
...commonParams
|
|
378
|
+
}).m(function(Command, cs, config, o) {
|
|
379
|
+
return [
|
|
380
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
381
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
382
|
+
];
|
|
383
|
+
}).s("AWSAcuityRoutingServiceLambda", "JoinStorageSession", {}).n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionCommand").f(void 0, void 0).ser(se_JoinStorageSessionCommand).de(de_JoinStorageSessionCommand).build() {
|
|
384
|
+
};
|
|
385
|
+
__name(_JoinStorageSessionCommand, "JoinStorageSessionCommand");
|
|
386
|
+
var JoinStorageSessionCommand = _JoinStorageSessionCommand;
|
|
387
|
+
|
|
388
|
+
// src/KinesisVideoWebRTCStorage.ts
|
|
389
|
+
var commands = {
|
|
390
|
+
JoinStorageSessionCommand
|
|
391
|
+
};
|
|
392
|
+
var _KinesisVideoWebRTCStorage = class _KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient {
|
|
393
|
+
};
|
|
394
|
+
__name(_KinesisVideoWebRTCStorage, "KinesisVideoWebRTCStorage");
|
|
395
|
+
var KinesisVideoWebRTCStorage = _KinesisVideoWebRTCStorage;
|
|
396
|
+
(0, import_smithy_client.createAggregatedClient)(commands, KinesisVideoWebRTCStorage);
|
|
397
|
+
|
|
398
|
+
// src/index.ts
|
|
399
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
400
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
401
|
+
0 && (module.exports = {
|
|
402
|
+
$Command,
|
|
403
|
+
AccessDeniedException,
|
|
404
|
+
ClientLimitExceededException,
|
|
405
|
+
InvalidArgumentException,
|
|
406
|
+
JoinStorageSessionCommand,
|
|
407
|
+
KinesisVideoWebRTCStorage,
|
|
408
|
+
KinesisVideoWebRTCStorageClient,
|
|
409
|
+
KinesisVideoWebRTCStorageServiceException,
|
|
410
|
+
ResourceNotFoundException,
|
|
411
|
+
__Client,
|
|
412
|
+
__MetadataBearer
|
|
413
|
+
});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KinesisVideoWebRTCStorageServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class KinesisVideoWebRTCStorageServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, KinesisVideoWebRTCStorageServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.KinesisVideoWebRTCStorageServiceException = KinesisVideoWebRTCStorageServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,56 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceNotFoundException = exports.InvalidArgumentException = exports.ClientLimitExceededException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const KinesisVideoWebRTCStorageServiceException_1 = require("./KinesisVideoWebRTCStorageServiceException");
|
|
5
|
-
class AccessDeniedException extends KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException {
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
this.name = "AccessDeniedException";
|
|
13
|
-
this.$fault = "client";
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
class ClientLimitExceededException extends KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException {
|
|
19
|
-
constructor(opts) {
|
|
20
|
-
super({
|
|
21
|
-
name: "ClientLimitExceededException",
|
|
22
|
-
$fault: "client",
|
|
23
|
-
...opts,
|
|
24
|
-
});
|
|
25
|
-
this.name = "ClientLimitExceededException";
|
|
26
|
-
this.$fault = "client";
|
|
27
|
-
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ClientLimitExceededException = ClientLimitExceededException;
|
|
31
|
-
class InvalidArgumentException extends KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException {
|
|
32
|
-
constructor(opts) {
|
|
33
|
-
super({
|
|
34
|
-
name: "InvalidArgumentException",
|
|
35
|
-
$fault: "client",
|
|
36
|
-
...opts,
|
|
37
|
-
});
|
|
38
|
-
this.name = "InvalidArgumentException";
|
|
39
|
-
this.$fault = "client";
|
|
40
|
-
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.InvalidArgumentException = InvalidArgumentException;
|
|
44
|
-
class ResourceNotFoundException extends KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException {
|
|
45
|
-
constructor(opts) {
|
|
46
|
-
super({
|
|
47
|
-
name: "ResourceNotFoundException",
|
|
48
|
-
$fault: "client",
|
|
49
|
-
...opts,
|
|
50
|
-
});
|
|
51
|
-
this.name = "ResourceNotFoundException";
|
|
52
|
-
this.$fault = "client";
|
|
53
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,165 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_JoinStorageSessionCommand = exports.se_JoinStorageSessionCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const KinesisVideoWebRTCStorageServiceException_1 = require("../models/KinesisVideoWebRTCStorageServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_JoinStorageSessionCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {
|
|
11
|
-
"content-type": "application/json",
|
|
12
|
-
};
|
|
13
|
-
b.bp("/joinStorageSession");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
-
channelArn: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
exports.se_JoinStorageSessionCommand = se_JoinStorageSessionCommand;
|
|
22
|
-
const de_JoinStorageSessionCommand = async (output, context) => {
|
|
23
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
24
|
-
return de_JoinStorageSessionCommandError(output, context);
|
|
25
|
-
}
|
|
26
|
-
const contents = (0, smithy_client_1.map)({
|
|
27
|
-
$metadata: deserializeMetadata(output),
|
|
28
|
-
});
|
|
29
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
30
|
-
return contents;
|
|
31
|
-
};
|
|
32
|
-
exports.de_JoinStorageSessionCommand = de_JoinStorageSessionCommand;
|
|
33
|
-
const de_JoinStorageSessionCommandError = async (output, context) => {
|
|
34
|
-
const parsedOutput = {
|
|
35
|
-
...output,
|
|
36
|
-
body: await parseErrorBody(output.body, context),
|
|
37
|
-
};
|
|
38
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
39
|
-
switch (errorCode) {
|
|
40
|
-
case "AccessDeniedException":
|
|
41
|
-
case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
|
|
42
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
43
|
-
case "ClientLimitExceededException":
|
|
44
|
-
case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
|
|
45
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
46
|
-
case "InvalidArgumentException":
|
|
47
|
-
case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
|
|
48
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
49
|
-
case "ResourceNotFoundException":
|
|
50
|
-
case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
|
|
51
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
52
|
-
default:
|
|
53
|
-
const parsedBody = parsedOutput.body;
|
|
54
|
-
return throwDefaultError({
|
|
55
|
-
output,
|
|
56
|
-
parsedBody,
|
|
57
|
-
errorCode,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisVideoWebRTCStorageServiceException_1.KinesisVideoWebRTCStorageServiceException);
|
|
62
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
63
|
-
const contents = (0, smithy_client_1.map)({});
|
|
64
|
-
const data = parsedOutput.body;
|
|
65
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
66
|
-
message: smithy_client_1.expectString,
|
|
67
|
-
});
|
|
68
|
-
Object.assign(contents, doc);
|
|
69
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
70
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
71
|
-
...contents,
|
|
72
|
-
});
|
|
73
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
74
|
-
};
|
|
75
|
-
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
76
|
-
const contents = (0, smithy_client_1.map)({});
|
|
77
|
-
const data = parsedOutput.body;
|
|
78
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
79
|
-
message: smithy_client_1.expectString,
|
|
80
|
-
});
|
|
81
|
-
Object.assign(contents, doc);
|
|
82
|
-
const exception = new models_0_1.ClientLimitExceededException({
|
|
83
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
84
|
-
...contents,
|
|
85
|
-
});
|
|
86
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
87
|
-
};
|
|
88
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
89
|
-
const contents = (0, smithy_client_1.map)({});
|
|
90
|
-
const data = parsedOutput.body;
|
|
91
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
92
|
-
message: smithy_client_1.expectString,
|
|
93
|
-
});
|
|
94
|
-
Object.assign(contents, doc);
|
|
95
|
-
const exception = new models_0_1.InvalidArgumentException({
|
|
96
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
97
|
-
...contents,
|
|
98
|
-
});
|
|
99
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
100
|
-
};
|
|
101
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
102
|
-
const contents = (0, smithy_client_1.map)({});
|
|
103
|
-
const data = parsedOutput.body;
|
|
104
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
105
|
-
message: smithy_client_1.expectString,
|
|
106
|
-
});
|
|
107
|
-
Object.assign(contents, doc);
|
|
108
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
109
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
110
|
-
...contents,
|
|
111
|
-
});
|
|
112
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
113
|
-
};
|
|
114
|
-
const deserializeMetadata = (output) => ({
|
|
115
|
-
httpStatusCode: output.statusCode,
|
|
116
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
117
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
118
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
119
|
-
});
|
|
120
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
121
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
122
|
-
value !== null &&
|
|
123
|
-
value !== "" &&
|
|
124
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
125
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
126
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
127
|
-
if (encoded.length) {
|
|
128
|
-
return JSON.parse(encoded);
|
|
129
|
-
}
|
|
130
|
-
return {};
|
|
131
|
-
});
|
|
132
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
133
|
-
const value = await parseBody(errorBody, context);
|
|
134
|
-
value.message = value.message ?? value.Message;
|
|
135
|
-
return value;
|
|
136
|
-
};
|
|
137
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
138
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
139
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
140
|
-
let cleanValue = rawValue;
|
|
141
|
-
if (typeof cleanValue === "number") {
|
|
142
|
-
cleanValue = cleanValue.toString();
|
|
143
|
-
}
|
|
144
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
145
|
-
cleanValue = cleanValue.split(",")[0];
|
|
146
|
-
}
|
|
147
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
148
|
-
cleanValue = cleanValue.split(":")[0];
|
|
149
|
-
}
|
|
150
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
151
|
-
cleanValue = cleanValue.split("#")[1];
|
|
152
|
-
}
|
|
153
|
-
return cleanValue;
|
|
154
|
-
};
|
|
155
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
156
|
-
if (headerKey !== undefined) {
|
|
157
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
158
|
-
}
|
|
159
|
-
if (data.code !== undefined) {
|
|
160
|
-
return sanitizeErrorCode(data.code);
|
|
161
|
-
}
|
|
162
|
-
if (data["__type"] !== undefined) {
|
|
163
|
-
return sanitizeErrorCode(data["__type"]);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-webrtc-storage",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|