@aws-sdk/client-kinesis-video-archived-media 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +61 -94
- package/dist-es/protocols/Aws_restJson1.js +24 -57
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-kinesis-video-archived-media
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -13,12 +13,11 @@ const serializeAws_restJson1GetClipCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getClip";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.ClipFragmentSelector
|
|
17
|
-
input.ClipFragmentSelector !== null && {
|
|
16
|
+
...(input.ClipFragmentSelector != null && {
|
|
18
17
|
ClipFragmentSelector: serializeAws_restJson1ClipFragmentSelector(input.ClipFragmentSelector, context),
|
|
19
18
|
}),
|
|
20
|
-
...(input.StreamARN
|
|
21
|
-
...(input.StreamName
|
|
19
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
20
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
22
21
|
});
|
|
23
22
|
return new protocol_http_1.HttpRequest({
|
|
24
23
|
protocol,
|
|
@@ -39,20 +38,16 @@ const serializeAws_restJson1GetDASHStreamingSessionURLCommand = async (input, co
|
|
|
39
38
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getDASHStreamingSessionURL";
|
|
40
39
|
let body;
|
|
41
40
|
body = JSON.stringify({
|
|
42
|
-
...(input.DASHFragmentSelector
|
|
43
|
-
input.DASHFragmentSelector !== null && {
|
|
41
|
+
...(input.DASHFragmentSelector != null && {
|
|
44
42
|
DASHFragmentSelector: serializeAws_restJson1DASHFragmentSelector(input.DASHFragmentSelector, context),
|
|
45
43
|
}),
|
|
46
|
-
...(input.DisplayFragmentNumber
|
|
47
|
-
|
|
48
|
-
...(input.
|
|
49
|
-
|
|
50
|
-
...(input.
|
|
51
|
-
...(input.
|
|
52
|
-
|
|
53
|
-
...(input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode }),
|
|
54
|
-
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
55
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
44
|
+
...(input.DisplayFragmentNumber != null && { DisplayFragmentNumber: input.DisplayFragmentNumber }),
|
|
45
|
+
...(input.DisplayFragmentTimestamp != null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp }),
|
|
46
|
+
...(input.Expires != null && { Expires: input.Expires }),
|
|
47
|
+
...(input.MaxManifestFragmentResults != null && { MaxManifestFragmentResults: input.MaxManifestFragmentResults }),
|
|
48
|
+
...(input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode }),
|
|
49
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
50
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
56
51
|
});
|
|
57
52
|
return new protocol_http_1.HttpRequest({
|
|
58
53
|
protocol,
|
|
@@ -73,24 +68,19 @@ const serializeAws_restJson1GetHLSStreamingSessionURLCommand = async (input, con
|
|
|
73
68
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getHLSStreamingSessionURL";
|
|
74
69
|
let body;
|
|
75
70
|
body = JSON.stringify({
|
|
76
|
-
...(input.ContainerFormat
|
|
77
|
-
|
|
78
|
-
...(input.
|
|
79
|
-
|
|
80
|
-
...(input.
|
|
81
|
-
input.DisplayFragmentTimestamp !== null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp }),
|
|
82
|
-
...(input.Expires !== undefined && input.Expires !== null && { Expires: input.Expires }),
|
|
83
|
-
...(input.HLSFragmentSelector !== undefined &&
|
|
84
|
-
input.HLSFragmentSelector !== null && {
|
|
71
|
+
...(input.ContainerFormat != null && { ContainerFormat: input.ContainerFormat }),
|
|
72
|
+
...(input.DiscontinuityMode != null && { DiscontinuityMode: input.DiscontinuityMode }),
|
|
73
|
+
...(input.DisplayFragmentTimestamp != null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp }),
|
|
74
|
+
...(input.Expires != null && { Expires: input.Expires }),
|
|
75
|
+
...(input.HLSFragmentSelector != null && {
|
|
85
76
|
HLSFragmentSelector: serializeAws_restJson1HLSFragmentSelector(input.HLSFragmentSelector, context),
|
|
86
77
|
}),
|
|
87
|
-
...(input.MaxMediaPlaylistFragmentResults
|
|
88
|
-
input.MaxMediaPlaylistFragmentResults !== null && {
|
|
78
|
+
...(input.MaxMediaPlaylistFragmentResults != null && {
|
|
89
79
|
MaxMediaPlaylistFragmentResults: input.MaxMediaPlaylistFragmentResults,
|
|
90
80
|
}),
|
|
91
|
-
...(input.PlaybackMode
|
|
92
|
-
...(input.StreamARN
|
|
93
|
-
...(input.StreamName
|
|
81
|
+
...(input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode }),
|
|
82
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
83
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
94
84
|
});
|
|
95
85
|
return new protocol_http_1.HttpRequest({
|
|
96
86
|
protocol,
|
|
@@ -111,23 +101,20 @@ const serializeAws_restJson1GetImagesCommand = async (input, context) => {
|
|
|
111
101
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getImages";
|
|
112
102
|
let body;
|
|
113
103
|
body = JSON.stringify({
|
|
114
|
-
...(input.EndTimestamp
|
|
115
|
-
|
|
116
|
-
...(input.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
...(input.HeightPixels
|
|
120
|
-
...(input.ImageSelectorType
|
|
121
|
-
|
|
122
|
-
...(input.
|
|
123
|
-
...(input.
|
|
124
|
-
...(input.
|
|
125
|
-
|
|
126
|
-
...(input.
|
|
127
|
-
|
|
128
|
-
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
129
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
130
|
-
...(input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels }),
|
|
104
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
105
|
+
...(input.Format != null && { Format: input.Format }),
|
|
106
|
+
...(input.FormatConfig != null && {
|
|
107
|
+
FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
|
|
108
|
+
}),
|
|
109
|
+
...(input.HeightPixels != null && { HeightPixels: input.HeightPixels }),
|
|
110
|
+
...(input.ImageSelectorType != null && { ImageSelectorType: input.ImageSelectorType }),
|
|
111
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
112
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
113
|
+
...(input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval }),
|
|
114
|
+
...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
115
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
116
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
117
|
+
...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
|
|
131
118
|
});
|
|
132
119
|
return new protocol_http_1.HttpRequest({
|
|
133
120
|
protocol,
|
|
@@ -148,10 +135,9 @@ const serializeAws_restJson1GetMediaForFragmentListCommand = async (input, conte
|
|
|
148
135
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getMediaForFragmentList";
|
|
149
136
|
let body;
|
|
150
137
|
body = JSON.stringify({
|
|
151
|
-
...(input.Fragments
|
|
152
|
-
|
|
153
|
-
...(input.
|
|
154
|
-
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
138
|
+
...(input.Fragments != null && { Fragments: serializeAws_restJson1FragmentNumberList(input.Fragments, context) }),
|
|
139
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
140
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
155
141
|
});
|
|
156
142
|
return new protocol_http_1.HttpRequest({
|
|
157
143
|
protocol,
|
|
@@ -172,14 +158,13 @@ const serializeAws_restJson1ListFragmentsCommand = async (input, context) => {
|
|
|
172
158
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listFragments";
|
|
173
159
|
let body;
|
|
174
160
|
body = JSON.stringify({
|
|
175
|
-
...(input.FragmentSelector
|
|
176
|
-
input.FragmentSelector !== null && {
|
|
161
|
+
...(input.FragmentSelector != null && {
|
|
177
162
|
FragmentSelector: serializeAws_restJson1FragmentSelector(input.FragmentSelector, context),
|
|
178
163
|
}),
|
|
179
|
-
...(input.MaxResults
|
|
180
|
-
...(input.NextToken
|
|
181
|
-
...(input.StreamARN
|
|
182
|
-
...(input.StreamName
|
|
164
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
165
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
166
|
+
...(input.StreamARN != null && { StreamARN: input.StreamARN }),
|
|
167
|
+
...(input.StreamName != null && { StreamName: input.StreamName }),
|
|
183
168
|
});
|
|
184
169
|
return new protocol_http_1.HttpRequest({
|
|
185
170
|
protocol,
|
|
@@ -635,38 +620,30 @@ const deserializeAws_restJson1UnsupportedStreamMediaTypeExceptionResponse = asyn
|
|
|
635
620
|
};
|
|
636
621
|
const serializeAws_restJson1ClipFragmentSelector = (input, context) => {
|
|
637
622
|
return {
|
|
638
|
-
...(input.FragmentSelectorType
|
|
639
|
-
|
|
640
|
-
...(input.TimestampRange !== undefined &&
|
|
641
|
-
input.TimestampRange !== null && {
|
|
623
|
+
...(input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType }),
|
|
624
|
+
...(input.TimestampRange != null && {
|
|
642
625
|
TimestampRange: serializeAws_restJson1ClipTimestampRange(input.TimestampRange, context),
|
|
643
626
|
}),
|
|
644
627
|
};
|
|
645
628
|
};
|
|
646
629
|
const serializeAws_restJson1ClipTimestampRange = (input, context) => {
|
|
647
630
|
return {
|
|
648
|
-
...(input.EndTimestamp
|
|
649
|
-
|
|
650
|
-
...(input.StartTimestamp !== undefined &&
|
|
651
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
631
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
632
|
+
...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
652
633
|
};
|
|
653
634
|
};
|
|
654
635
|
const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
|
|
655
636
|
return {
|
|
656
|
-
...(input.FragmentSelectorType
|
|
657
|
-
|
|
658
|
-
...(input.TimestampRange !== undefined &&
|
|
659
|
-
input.TimestampRange !== null && {
|
|
637
|
+
...(input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType }),
|
|
638
|
+
...(input.TimestampRange != null && {
|
|
660
639
|
TimestampRange: serializeAws_restJson1DASHTimestampRange(input.TimestampRange, context),
|
|
661
640
|
}),
|
|
662
641
|
};
|
|
663
642
|
};
|
|
664
643
|
const serializeAws_restJson1DASHTimestampRange = (input, context) => {
|
|
665
644
|
return {
|
|
666
|
-
...(input.EndTimestamp
|
|
667
|
-
|
|
668
|
-
...(input.StartTimestamp !== undefined &&
|
|
669
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
645
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
646
|
+
...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
670
647
|
};
|
|
671
648
|
};
|
|
672
649
|
const serializeAws_restJson1FormatConfig = (input, context) => {
|
|
@@ -692,38 +669,30 @@ const serializeAws_restJson1FragmentNumberList = (input, context) => {
|
|
|
692
669
|
};
|
|
693
670
|
const serializeAws_restJson1FragmentSelector = (input, context) => {
|
|
694
671
|
return {
|
|
695
|
-
...(input.FragmentSelectorType
|
|
696
|
-
|
|
697
|
-
...(input.TimestampRange !== undefined &&
|
|
698
|
-
input.TimestampRange !== null && {
|
|
672
|
+
...(input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType }),
|
|
673
|
+
...(input.TimestampRange != null && {
|
|
699
674
|
TimestampRange: serializeAws_restJson1TimestampRange(input.TimestampRange, context),
|
|
700
675
|
}),
|
|
701
676
|
};
|
|
702
677
|
};
|
|
703
678
|
const serializeAws_restJson1HLSFragmentSelector = (input, context) => {
|
|
704
679
|
return {
|
|
705
|
-
...(input.FragmentSelectorType
|
|
706
|
-
|
|
707
|
-
...(input.TimestampRange !== undefined &&
|
|
708
|
-
input.TimestampRange !== null && {
|
|
680
|
+
...(input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType }),
|
|
681
|
+
...(input.TimestampRange != null && {
|
|
709
682
|
TimestampRange: serializeAws_restJson1HLSTimestampRange(input.TimestampRange, context),
|
|
710
683
|
}),
|
|
711
684
|
};
|
|
712
685
|
};
|
|
713
686
|
const serializeAws_restJson1HLSTimestampRange = (input, context) => {
|
|
714
687
|
return {
|
|
715
|
-
...(input.EndTimestamp
|
|
716
|
-
|
|
717
|
-
...(input.StartTimestamp !== undefined &&
|
|
718
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
688
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
689
|
+
...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
719
690
|
};
|
|
720
691
|
};
|
|
721
692
|
const serializeAws_restJson1TimestampRange = (input, context) => {
|
|
722
693
|
return {
|
|
723
|
-
...(input.EndTimestamp
|
|
724
|
-
|
|
725
|
-
...(input.StartTimestamp !== undefined &&
|
|
726
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
694
|
+
...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
|
|
695
|
+
...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
|
|
727
696
|
};
|
|
728
697
|
};
|
|
729
698
|
const deserializeAws_restJson1Fragment = (output, context) => {
|
|
@@ -731,10 +700,10 @@ const deserializeAws_restJson1Fragment = (output, context) => {
|
|
|
731
700
|
FragmentLengthInMilliseconds: (0, smithy_client_1.expectLong)(output.FragmentLengthInMilliseconds),
|
|
732
701
|
FragmentNumber: (0, smithy_client_1.expectString)(output.FragmentNumber),
|
|
733
702
|
FragmentSizeInBytes: (0, smithy_client_1.expectLong)(output.FragmentSizeInBytes),
|
|
734
|
-
ProducerTimestamp: output.ProducerTimestamp
|
|
703
|
+
ProducerTimestamp: output.ProducerTimestamp != null
|
|
735
704
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ProducerTimestamp)))
|
|
736
705
|
: undefined,
|
|
737
|
-
ServerTimestamp: output.ServerTimestamp
|
|
706
|
+
ServerTimestamp: output.ServerTimestamp != null
|
|
738
707
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ServerTimestamp)))
|
|
739
708
|
: undefined,
|
|
740
709
|
};
|
|
@@ -754,9 +723,7 @@ const deserializeAws_restJson1Image = (output, context) => {
|
|
|
754
723
|
return {
|
|
755
724
|
Error: (0, smithy_client_1.expectString)(output.Error),
|
|
756
725
|
ImageContent: (0, smithy_client_1.expectString)(output.ImageContent),
|
|
757
|
-
TimeStamp: output.TimeStamp
|
|
758
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TimeStamp)))
|
|
759
|
-
: undefined,
|
|
726
|
+
TimeStamp: output.TimeStamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TimeStamp))) : undefined,
|
|
760
727
|
};
|
|
761
728
|
};
|
|
762
729
|
const deserializeAws_restJson1Images = (output, context) => {
|
|
@@ -14,10 +14,9 @@ export var serializeAws_restJson1GetClipCommand = function (input, context) { re
|
|
|
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 || "") + "/getClip";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ClipFragmentSelector
|
|
18
|
-
input.ClipFragmentSelector !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ClipFragmentSelector != null && {
|
|
19
18
|
ClipFragmentSelector: serializeAws_restJson1ClipFragmentSelector(input.ClipFragmentSelector, context),
|
|
20
|
-
})), (input.StreamARN
|
|
19
|
+
})), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -41,13 +40,9 @@ export var serializeAws_restJson1GetDASHStreamingSessionURLCommand = function (i
|
|
|
41
40
|
"content-type": "application/json",
|
|
42
41
|
};
|
|
43
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getDASHStreamingSessionURL";
|
|
44
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DASHFragmentSelector
|
|
45
|
-
input.DASHFragmentSelector !== null && {
|
|
43
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DASHFragmentSelector != null && {
|
|
46
44
|
DASHFragmentSelector: serializeAws_restJson1DASHFragmentSelector(input.DASHFragmentSelector, context),
|
|
47
|
-
})), (input.DisplayFragmentNumber
|
|
48
|
-
input.DisplayFragmentNumber !== null && { DisplayFragmentNumber: input.DisplayFragmentNumber })), (input.DisplayFragmentTimestamp !== undefined &&
|
|
49
|
-
input.DisplayFragmentTimestamp !== null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp })), (input.Expires !== undefined && input.Expires !== null && { Expires: input.Expires })), (input.MaxManifestFragmentResults !== undefined &&
|
|
50
|
-
input.MaxManifestFragmentResults !== null && { MaxManifestFragmentResults: input.MaxManifestFragmentResults })), (input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
45
|
+
})), (input.DisplayFragmentNumber != null && { DisplayFragmentNumber: input.DisplayFragmentNumber })), (input.DisplayFragmentTimestamp != null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp })), (input.Expires != null && { Expires: input.Expires })), (input.MaxManifestFragmentResults != null && { MaxManifestFragmentResults: input.MaxManifestFragmentResults })), (input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
|
|
51
46
|
return [2, new __HttpRequest({
|
|
52
47
|
protocol: protocol,
|
|
53
48
|
hostname: hostname,
|
|
@@ -71,16 +66,11 @@ export var serializeAws_restJson1GetHLSStreamingSessionURLCommand = function (in
|
|
|
71
66
|
"content-type": "application/json",
|
|
72
67
|
};
|
|
73
68
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getHLSStreamingSessionURL";
|
|
74
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainerFormat
|
|
75
|
-
input.ContainerFormat !== null && { ContainerFormat: input.ContainerFormat })), (input.DiscontinuityMode !== undefined &&
|
|
76
|
-
input.DiscontinuityMode !== null && { DiscontinuityMode: input.DiscontinuityMode })), (input.DisplayFragmentTimestamp !== undefined &&
|
|
77
|
-
input.DisplayFragmentTimestamp !== null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp })), (input.Expires !== undefined && input.Expires !== null && { Expires: input.Expires })), (input.HLSFragmentSelector !== undefined &&
|
|
78
|
-
input.HLSFragmentSelector !== null && {
|
|
69
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContainerFormat != null && { ContainerFormat: input.ContainerFormat })), (input.DiscontinuityMode != null && { DiscontinuityMode: input.DiscontinuityMode })), (input.DisplayFragmentTimestamp != null && { DisplayFragmentTimestamp: input.DisplayFragmentTimestamp })), (input.Expires != null && { Expires: input.Expires })), (input.HLSFragmentSelector != null && {
|
|
79
70
|
HLSFragmentSelector: serializeAws_restJson1HLSFragmentSelector(input.HLSFragmentSelector, context),
|
|
80
|
-
})), (input.MaxMediaPlaylistFragmentResults
|
|
81
|
-
input.MaxMediaPlaylistFragmentResults !== null && {
|
|
71
|
+
})), (input.MaxMediaPlaylistFragmentResults != null && {
|
|
82
72
|
MaxMediaPlaylistFragmentResults: input.MaxMediaPlaylistFragmentResults,
|
|
83
|
-
})), (input.PlaybackMode
|
|
73
|
+
})), (input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
|
|
84
74
|
return [2, new __HttpRequest({
|
|
85
75
|
protocol: protocol,
|
|
86
76
|
hostname: hostname,
|
|
@@ -104,12 +94,9 @@ export var serializeAws_restJson1GetImagesCommand = function (input, context) {
|
|
|
104
94
|
"content-type": "application/json",
|
|
105
95
|
};
|
|
106
96
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getImages";
|
|
107
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTimestamp
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
input.ImageSelectorType !== null && { ImageSelectorType: input.ImageSelectorType })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SamplingInterval !== undefined &&
|
|
111
|
-
input.SamplingInterval !== null && { SamplingInterval: input.SamplingInterval })), (input.StartTimestamp !== undefined &&
|
|
112
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels })));
|
|
97
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.Format != null && { Format: input.Format })), (input.FormatConfig != null && {
|
|
98
|
+
FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
|
|
99
|
+
})), (input.HeightPixels != null && { HeightPixels: input.HeightPixels })), (input.ImageSelectorType != null && { ImageSelectorType: input.ImageSelectorType })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval })), (input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })), (input.WidthPixels != null && { WidthPixels: input.WidthPixels })));
|
|
113
100
|
return [2, new __HttpRequest({
|
|
114
101
|
protocol: protocol,
|
|
115
102
|
hostname: hostname,
|
|
@@ -133,8 +120,7 @@ export var serializeAws_restJson1GetMediaForFragmentListCommand = function (inpu
|
|
|
133
120
|
"content-type": "application/json",
|
|
134
121
|
};
|
|
135
122
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getMediaForFragmentList";
|
|
136
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Fragments
|
|
137
|
-
input.Fragments !== null && { Fragments: serializeAws_restJson1FragmentNumberList(input.Fragments, context) })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
123
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Fragments != null && { Fragments: serializeAws_restJson1FragmentNumberList(input.Fragments, context) })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
|
|
138
124
|
return [2, new __HttpRequest({
|
|
139
125
|
protocol: protocol,
|
|
140
126
|
hostname: hostname,
|
|
@@ -158,10 +144,9 @@ export var serializeAws_restJson1ListFragmentsCommand = function (input, context
|
|
|
158
144
|
"content-type": "application/json",
|
|
159
145
|
};
|
|
160
146
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listFragments";
|
|
161
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FragmentSelector
|
|
162
|
-
input.FragmentSelector !== null && {
|
|
147
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FragmentSelector != null && {
|
|
163
148
|
FragmentSelector: serializeAws_restJson1FragmentSelector(input.FragmentSelector, context),
|
|
164
|
-
})), (input.MaxResults
|
|
149
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
|
|
165
150
|
return [2, new __HttpRequest({
|
|
166
151
|
protocol: protocol,
|
|
167
152
|
hostname: hostname,
|
|
@@ -747,28 +732,20 @@ var deserializeAws_restJson1UnsupportedStreamMediaTypeExceptionResponse = functi
|
|
|
747
732
|
});
|
|
748
733
|
}); };
|
|
749
734
|
var serializeAws_restJson1ClipFragmentSelector = function (input, context) {
|
|
750
|
-
return __assign(__assign({}, (input.FragmentSelectorType
|
|
751
|
-
input.FragmentSelectorType !== null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange !== undefined &&
|
|
752
|
-
input.TimestampRange !== null && {
|
|
735
|
+
return __assign(__assign({}, (input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange != null && {
|
|
753
736
|
TimestampRange: serializeAws_restJson1ClipTimestampRange(input.TimestampRange, context),
|
|
754
737
|
}));
|
|
755
738
|
};
|
|
756
739
|
var serializeAws_restJson1ClipTimestampRange = function (input, context) {
|
|
757
|
-
return __assign(__assign({}, (input.EndTimestamp
|
|
758
|
-
input.EndTimestamp !== null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp !== undefined &&
|
|
759
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
740
|
+
return __assign(__assign({}, (input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
760
741
|
};
|
|
761
742
|
var serializeAws_restJson1DASHFragmentSelector = function (input, context) {
|
|
762
|
-
return __assign(__assign({}, (input.FragmentSelectorType
|
|
763
|
-
input.FragmentSelectorType !== null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange !== undefined &&
|
|
764
|
-
input.TimestampRange !== null && {
|
|
743
|
+
return __assign(__assign({}, (input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange != null && {
|
|
765
744
|
TimestampRange: serializeAws_restJson1DASHTimestampRange(input.TimestampRange, context),
|
|
766
745
|
}));
|
|
767
746
|
};
|
|
768
747
|
var serializeAws_restJson1DASHTimestampRange = function (input, context) {
|
|
769
|
-
return __assign(__assign({}, (input.EndTimestamp
|
|
770
|
-
input.EndTimestamp !== null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp !== undefined &&
|
|
771
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
748
|
+
return __assign(__assign({}, (input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
772
749
|
};
|
|
773
750
|
var serializeAws_restJson1FormatConfig = function (input, context) {
|
|
774
751
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -791,38 +768,30 @@ var serializeAws_restJson1FragmentNumberList = function (input, context) {
|
|
|
791
768
|
});
|
|
792
769
|
};
|
|
793
770
|
var serializeAws_restJson1FragmentSelector = function (input, context) {
|
|
794
|
-
return __assign(__assign({}, (input.FragmentSelectorType
|
|
795
|
-
input.FragmentSelectorType !== null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange !== undefined &&
|
|
796
|
-
input.TimestampRange !== null && {
|
|
771
|
+
return __assign(__assign({}, (input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange != null && {
|
|
797
772
|
TimestampRange: serializeAws_restJson1TimestampRange(input.TimestampRange, context),
|
|
798
773
|
}));
|
|
799
774
|
};
|
|
800
775
|
var serializeAws_restJson1HLSFragmentSelector = function (input, context) {
|
|
801
|
-
return __assign(__assign({}, (input.FragmentSelectorType
|
|
802
|
-
input.FragmentSelectorType !== null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange !== undefined &&
|
|
803
|
-
input.TimestampRange !== null && {
|
|
776
|
+
return __assign(__assign({}, (input.FragmentSelectorType != null && { FragmentSelectorType: input.FragmentSelectorType })), (input.TimestampRange != null && {
|
|
804
777
|
TimestampRange: serializeAws_restJson1HLSTimestampRange(input.TimestampRange, context),
|
|
805
778
|
}));
|
|
806
779
|
};
|
|
807
780
|
var serializeAws_restJson1HLSTimestampRange = function (input, context) {
|
|
808
|
-
return __assign(__assign({}, (input.EndTimestamp
|
|
809
|
-
input.EndTimestamp !== null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp !== undefined &&
|
|
810
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
781
|
+
return __assign(__assign({}, (input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
811
782
|
};
|
|
812
783
|
var serializeAws_restJson1TimestampRange = function (input, context) {
|
|
813
|
-
return __assign(__assign({}, (input.EndTimestamp
|
|
814
|
-
input.EndTimestamp !== null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp !== undefined &&
|
|
815
|
-
input.StartTimestamp !== null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
784
|
+
return __assign(__assign({}, (input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) })), (input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }));
|
|
816
785
|
};
|
|
817
786
|
var deserializeAws_restJson1Fragment = function (output, context) {
|
|
818
787
|
return {
|
|
819
788
|
FragmentLengthInMilliseconds: __expectLong(output.FragmentLengthInMilliseconds),
|
|
820
789
|
FragmentNumber: __expectString(output.FragmentNumber),
|
|
821
790
|
FragmentSizeInBytes: __expectLong(output.FragmentSizeInBytes),
|
|
822
|
-
ProducerTimestamp: output.ProducerTimestamp
|
|
791
|
+
ProducerTimestamp: output.ProducerTimestamp != null
|
|
823
792
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ProducerTimestamp)))
|
|
824
793
|
: undefined,
|
|
825
|
-
ServerTimestamp: output.ServerTimestamp
|
|
794
|
+
ServerTimestamp: output.ServerTimestamp != null
|
|
826
795
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ServerTimestamp)))
|
|
827
796
|
: undefined,
|
|
828
797
|
};
|
|
@@ -842,9 +811,7 @@ var deserializeAws_restJson1Image = function (output, context) {
|
|
|
842
811
|
return {
|
|
843
812
|
Error: __expectString(output.Error),
|
|
844
813
|
ImageContent: __expectString(output.ImageContent),
|
|
845
|
-
TimeStamp: output.TimeStamp
|
|
846
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TimeStamp)))
|
|
847
|
-
: undefined,
|
|
814
|
+
TimeStamp: output.TimeStamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TimeStamp))) : undefined,
|
|
848
815
|
};
|
|
849
816
|
};
|
|
850
817
|
var deserializeAws_restJson1Images = function (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.127.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.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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"
|