@aws-sdk/client-kinesis-video-archived-media 3.241.0 → 3.252.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.
|
@@ -101,7 +101,7 @@ const serializeAws_restJson1GetImagesCommand = async (input, context) => {
|
|
|
101
101
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getImages";
|
|
102
102
|
let body;
|
|
103
103
|
body = JSON.stringify({
|
|
104
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
104
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
105
105
|
...(input.Format != null && { Format: input.Format }),
|
|
106
106
|
...(input.FormatConfig != null && {
|
|
107
107
|
FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
|
|
@@ -111,7 +111,9 @@ const serializeAws_restJson1GetImagesCommand = async (input, context) => {
|
|
|
111
111
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
112
112
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
113
113
|
...(input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval }),
|
|
114
|
-
...(input.StartTimestamp != null && {
|
|
114
|
+
...(input.StartTimestamp != null && {
|
|
115
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
116
|
+
}),
|
|
115
117
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
116
118
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
117
119
|
...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
|
|
@@ -599,8 +601,10 @@ const serializeAws_restJson1ClipFragmentSelector = (input, context) => {
|
|
|
599
601
|
};
|
|
600
602
|
const serializeAws_restJson1ClipTimestampRange = (input, context) => {
|
|
601
603
|
return {
|
|
602
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
603
|
-
...(input.StartTimestamp != null && {
|
|
604
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
605
|
+
...(input.StartTimestamp != null && {
|
|
606
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
607
|
+
}),
|
|
604
608
|
};
|
|
605
609
|
};
|
|
606
610
|
const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
|
|
@@ -613,8 +617,10 @@ const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
|
|
|
613
617
|
};
|
|
614
618
|
const serializeAws_restJson1DASHTimestampRange = (input, context) => {
|
|
615
619
|
return {
|
|
616
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
617
|
-
...(input.StartTimestamp != null && {
|
|
620
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
621
|
+
...(input.StartTimestamp != null && {
|
|
622
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
623
|
+
}),
|
|
618
624
|
};
|
|
619
625
|
};
|
|
620
626
|
const serializeAws_restJson1FormatConfig = (input, context) => {
|
|
@@ -651,14 +657,18 @@ const serializeAws_restJson1HLSFragmentSelector = (input, context) => {
|
|
|
651
657
|
};
|
|
652
658
|
const serializeAws_restJson1HLSTimestampRange = (input, context) => {
|
|
653
659
|
return {
|
|
654
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
655
|
-
...(input.StartTimestamp != null && {
|
|
660
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
661
|
+
...(input.StartTimestamp != null && {
|
|
662
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
663
|
+
}),
|
|
656
664
|
};
|
|
657
665
|
};
|
|
658
666
|
const serializeAws_restJson1TimestampRange = (input, context) => {
|
|
659
667
|
return {
|
|
660
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
661
|
-
...(input.StartTimestamp != null && {
|
|
668
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
669
|
+
...(input.StartTimestamp != null && {
|
|
670
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
671
|
+
}),
|
|
662
672
|
};
|
|
663
673
|
};
|
|
664
674
|
const deserializeAws_restJson1Fragment = (output, context) => {
|
|
@@ -95,7 +95,7 @@ export const serializeAws_restJson1GetImagesCommand = async (input, context) =>
|
|
|
95
95
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getImages";
|
|
96
96
|
let body;
|
|
97
97
|
body = JSON.stringify({
|
|
98
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
98
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
99
99
|
...(input.Format != null && { Format: input.Format }),
|
|
100
100
|
...(input.FormatConfig != null && {
|
|
101
101
|
FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
|
|
@@ -105,7 +105,9 @@ export const serializeAws_restJson1GetImagesCommand = async (input, context) =>
|
|
|
105
105
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
106
106
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
107
107
|
...(input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval }),
|
|
108
|
-
...(input.StartTimestamp != null && {
|
|
108
|
+
...(input.StartTimestamp != null && {
|
|
109
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
110
|
+
}),
|
|
109
111
|
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
110
112
|
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
111
113
|
...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
|
|
@@ -584,8 +586,10 @@ const serializeAws_restJson1ClipFragmentSelector = (input, context) => {
|
|
|
584
586
|
};
|
|
585
587
|
const serializeAws_restJson1ClipTimestampRange = (input, context) => {
|
|
586
588
|
return {
|
|
587
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
588
|
-
...(input.StartTimestamp != null && {
|
|
589
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
590
|
+
...(input.StartTimestamp != null && {
|
|
591
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
592
|
+
}),
|
|
589
593
|
};
|
|
590
594
|
};
|
|
591
595
|
const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
|
|
@@ -598,8 +602,10 @@ const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
|
|
|
598
602
|
};
|
|
599
603
|
const serializeAws_restJson1DASHTimestampRange = (input, context) => {
|
|
600
604
|
return {
|
|
601
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
602
|
-
...(input.StartTimestamp != null && {
|
|
605
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
606
|
+
...(input.StartTimestamp != null && {
|
|
607
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
608
|
+
}),
|
|
603
609
|
};
|
|
604
610
|
};
|
|
605
611
|
const serializeAws_restJson1FormatConfig = (input, context) => {
|
|
@@ -636,14 +642,18 @@ const serializeAws_restJson1HLSFragmentSelector = (input, context) => {
|
|
|
636
642
|
};
|
|
637
643
|
const serializeAws_restJson1HLSTimestampRange = (input, context) => {
|
|
638
644
|
return {
|
|
639
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
640
|
-
...(input.StartTimestamp != null && {
|
|
645
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
646
|
+
...(input.StartTimestamp != null && {
|
|
647
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
648
|
+
}),
|
|
641
649
|
};
|
|
642
650
|
};
|
|
643
651
|
const serializeAws_restJson1TimestampRange = (input, context) => {
|
|
644
652
|
return {
|
|
645
|
-
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
646
|
-
...(input.StartTimestamp != null && {
|
|
653
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000).toString() }),
|
|
654
|
+
...(input.StartTimestamp != null && {
|
|
655
|
+
StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
|
|
656
|
+
}),
|
|
647
657
|
};
|
|
648
658
|
};
|
|
649
659
|
const deserializeAws_restJson1Fragment = (output, context) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-video-archived-media",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Video Archived Media Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.252.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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo kinesis-video-archived-media"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.245.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.229.0",
|
|
52
52
|
"@aws-sdk/util-stream-browser": "3.226.0",
|
|
53
53
|
"@aws-sdk/util-stream-node": "3.226.0",
|