@aws-sdk/client-kinesis-video-media 3.474.0 → 3.477.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.
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_GetMediaCommand = exports.se_GetMediaCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const KinesisVideoMediaServiceException_1 = require("../models/KinesisVideoMediaServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_GetMediaCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/getMedia");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
StartSelector: (_) => se_StartSelector(_, context),
|
|
17
17
|
StreamARN: [],
|
|
18
18
|
StreamName: [],
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("POST").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
exports.se_GetMediaCommand = se_GetMediaCommand;
|
|
31
24
|
const de_GetMediaCommand = async (output, context) => {
|
|
@@ -34,7 +27,7 @@ const de_GetMediaCommand = async (output, context) => {
|
|
|
34
27
|
}
|
|
35
28
|
const contents = (0, smithy_client_1.map)({
|
|
36
29
|
$metadata: deserializeMetadata(output),
|
|
37
|
-
|
|
30
|
+
[_CT]: [, output.headers[_ct]],
|
|
38
31
|
});
|
|
39
32
|
const data = output.body;
|
|
40
33
|
context.sdkStreamMixin(data);
|
|
@@ -175,6 +168,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
175
168
|
value !== "" &&
|
|
176
169
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
177
170
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
171
|
+
const _CT = "ContentType";
|
|
172
|
+
const _ct = "content-type";
|
|
178
173
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
179
174
|
if (encoded.length) {
|
|
180
175
|
return JSON.parse(encoded);
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { KinesisVideoMediaServiceException as __BaseException } from "../models/KinesisVideoMediaServiceException";
|
|
4
4
|
import { ClientLimitExceededException, ConnectionLimitExceededException, InvalidArgumentException, InvalidEndpointException, NotAuthorizedException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_GetMediaCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/getMedia");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
StartSelector: (_) => se_StartSelector(_, context),
|
|
14
14
|
StreamARN: [],
|
|
15
15
|
StreamName: [],
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "POST",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
17
|
+
b.m("POST").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
26
19
|
};
|
|
27
20
|
export const de_GetMediaCommand = async (output, context) => {
|
|
28
21
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -30,7 +23,7 @@ export const de_GetMediaCommand = async (output, context) => {
|
|
|
30
23
|
}
|
|
31
24
|
const contents = map({
|
|
32
25
|
$metadata: deserializeMetadata(output),
|
|
33
|
-
|
|
26
|
+
[_CT]: [, output.headers[_ct]],
|
|
34
27
|
});
|
|
35
28
|
const data = output.body;
|
|
36
29
|
context.sdkStreamMixin(data);
|
|
@@ -170,6 +163,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
170
163
|
value !== "" &&
|
|
171
164
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
172
165
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
166
|
+
const _CT = "ContentType";
|
|
167
|
+
const _ct = "content-type";
|
|
173
168
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
174
169
|
if (encoded.length) {
|
|
175
170
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-video-media",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|