@aws-sdk/client-kinesis-video-archived-media 3.252.0 → 3.254.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).toString() }),
104
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
105
105
  ...(input.Format != null && { Format: input.Format }),
106
106
  ...(input.FormatConfig != null && {
107
107
  FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
@@ -111,9 +111,7 @@ 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 && {
115
- StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
116
- }),
114
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
117
115
  ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
118
116
  ...(input.StreamName != null && { StreamName: input.StreamName }),
119
117
  ...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
@@ -601,10 +599,8 @@ const serializeAws_restJson1ClipFragmentSelector = (input, context) => {
601
599
  };
602
600
  const serializeAws_restJson1ClipTimestampRange = (input, context) => {
603
601
  return {
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
- }),
602
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
603
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
608
604
  };
609
605
  };
610
606
  const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
@@ -617,10 +613,8 @@ const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
617
613
  };
618
614
  const serializeAws_restJson1DASHTimestampRange = (input, context) => {
619
615
  return {
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
- }),
616
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
617
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
624
618
  };
625
619
  };
626
620
  const serializeAws_restJson1FormatConfig = (input, context) => {
@@ -657,18 +651,14 @@ const serializeAws_restJson1HLSFragmentSelector = (input, context) => {
657
651
  };
658
652
  const serializeAws_restJson1HLSTimestampRange = (input, context) => {
659
653
  return {
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
- }),
654
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
655
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
664
656
  };
665
657
  };
666
658
  const serializeAws_restJson1TimestampRange = (input, context) => {
667
659
  return {
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
- }),
660
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
661
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
672
662
  };
673
663
  };
674
664
  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).toString() }),
98
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
99
99
  ...(input.Format != null && { Format: input.Format }),
100
100
  ...(input.FormatConfig != null && {
101
101
  FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
@@ -105,9 +105,7 @@ 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 && {
109
- StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000).toString(),
110
- }),
108
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
111
109
  ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
112
110
  ...(input.StreamName != null && { StreamName: input.StreamName }),
113
111
  ...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
@@ -586,10 +584,8 @@ const serializeAws_restJson1ClipFragmentSelector = (input, context) => {
586
584
  };
587
585
  const serializeAws_restJson1ClipTimestampRange = (input, context) => {
588
586
  return {
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
- }),
587
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
588
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
593
589
  };
594
590
  };
595
591
  const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
@@ -602,10 +598,8 @@ const serializeAws_restJson1DASHFragmentSelector = (input, context) => {
602
598
  };
603
599
  const serializeAws_restJson1DASHTimestampRange = (input, context) => {
604
600
  return {
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
- }),
601
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
602
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
609
603
  };
610
604
  };
611
605
  const serializeAws_restJson1FormatConfig = (input, context) => {
@@ -642,18 +636,14 @@ const serializeAws_restJson1HLSFragmentSelector = (input, context) => {
642
636
  };
643
637
  const serializeAws_restJson1HLSTimestampRange = (input, context) => {
644
638
  return {
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
- }),
639
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
640
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
649
641
  };
650
642
  };
651
643
  const serializeAws_restJson1TimestampRange = (input, context) => {
652
644
  return {
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
- }),
645
+ ...(input.EndTimestamp != null && { EndTimestamp: Math.round(input.EndTimestamp.getTime() / 1000) }),
646
+ ...(input.StartTimestamp != null && { StartTimestamp: Math.round(input.StartTimestamp.getTime() / 1000) }),
657
647
  };
658
648
  };
659
649
  const deserializeAws_restJson1Fragment = (output, context) => {
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { GetClipCommandInput, GetClipCommandOutput } from "./commands/GetClipCommand";
11
11
  import { GetDASHStreamingSessionURLCommandInput, GetDASHStreamingSessionURLCommandOutput } from "./commands/GetDASHStreamingSessionURLCommand";
12
12
  import { GetHLSStreamingSessionURLCommandInput, GetHLSStreamingSessionURLCommandOutput } from "./commands/GetHLSStreamingSessionURLCommand";
@@ -22,11 +22,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
22
22
  */
23
23
  requestHandler?: __HttpHandler;
24
24
  /**
25
- * A constructor for a class implementing the {@link __Hash} interface
25
+ * A constructor for a class implementing the {@link __Checksum} interface
26
26
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
27
27
  * @internal
28
28
  */
29
- sha256?: __HashConstructor;
29
+ sha256?: __ChecksumConstructor | __HashConstructor;
30
30
  /**
31
31
  * The function that will be used to convert strings into HTTP endpoints.
32
32
  * @internal
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -90,7 +91,7 @@ export declare type ServiceOutputTypes =
90
91
  export interface ClientDefaults
91
92
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
92
93
  requestHandler?: __HttpHandler;
93
- sha256?: __HashConstructor;
94
+ sha256?: __ChecksumConstructor | __HashConstructor;
94
95
  urlParser?: __UrlParser;
95
96
  bodyLengthChecker?: __BodyLengthCalculator;
96
97
  streamCollector?: __StreamCollector;
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.252.0",
4
+ "version": "3.254.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,41 +18,41 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-stream-browser": "3.226.0",
53
- "@aws-sdk/util-stream-node": "3.226.0",
54
- "@aws-sdk/util-user-agent-browser": "3.226.0",
55
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-stream-browser": "3.254.0",
53
+ "@aws-sdk/util-stream-node": "3.254.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
55
+ "@aws-sdk/util-user-agent-node": "3.254.0",
56
56
  "@aws-sdk/util-utf8-browser": "3.188.0",
57
57
  "@aws-sdk/util-utf8-node": "3.208.0",
58
58
  "tslib": "^2.3.1"