@aws-sdk/client-kinesis-video-media 3.1137.0 → 3.1139.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/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1138.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -251,10 +251,10 @@ const _hH = "httpHeader";
251
251
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideomedia";
252
252
  const _st = "streaming";
253
253
  const n0 = "com.amazonaws.kinesisvideomedia";
254
- const _s_registry = TypeRegistry.for(_s);
254
+ const _s_registry = new TypeRegistry(_s);
255
255
  var KinesisVideoMediaServiceException$ = [-3, _s, "KinesisVideoMediaServiceException", 0, [], []];
256
256
  _s_registry.registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
257
- const n0_registry = TypeRegistry.for(n0);
257
+ const n0_registry = new TypeRegistry(n0);
258
258
  var ClientLimitExceededException$ = [-3, n0, _CLEE,
259
259
  { [_e]: _c, [_hE]: 400 },
260
260
  [_M],
@@ -29,10 +29,10 @@ const n0 = "com.amazonaws.kinesisvideomedia";
29
29
  import { TypeRegistry } from "@smithy/core/schema";
30
30
  import { ClientLimitExceededException, ConnectionLimitExceededException, InvalidArgumentException, InvalidEndpointException, NotAuthorizedException, ResourceNotFoundException, } from "../models/errors";
31
31
  import { KinesisVideoMediaServiceException } from "../models/KinesisVideoMediaServiceException";
32
- const _s_registry = TypeRegistry.for(_s);
32
+ const _s_registry = new TypeRegistry(_s);
33
33
  export var KinesisVideoMediaServiceException$ = [-3, _s, "KinesisVideoMediaServiceException", 0, [], []];
34
34
  _s_registry.registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
35
- const n0_registry = TypeRegistry.for(n0);
35
+ const n0_registry = new TypeRegistry(n0);
36
36
  export var ClientLimitExceededException$ = [-3, n0, _CLEE,
37
37
  { [_e]: _c, [_hE]: 400 },
38
38
  [_M],
@@ -1,13 +1,19 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type GetMediaCommandInput, type GetMediaCommandOutput } from "./commands/GetMediaCommand";
3
3
  import { KinesisVideoMediaClient } from "./KinesisVideoMediaClient";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface KinesisVideoMediaRequestOptions extends __HttpHandlerOptions {
8
+ metricsRecorder?: __MetricsRecorder<unknown>;
9
+ }
4
10
  export interface KinesisVideoMedia {
5
11
  /**
6
12
  * @see {@link GetMediaCommand}
7
13
  */
8
- getMedia(args: GetMediaCommandInput, options?: __HttpHandlerOptions): Promise<GetMediaCommandOutput>;
14
+ getMedia(args: GetMediaCommandInput, options?: KinesisVideoMediaRequestOptions): Promise<GetMediaCommandOutput>;
9
15
  getMedia(args: GetMediaCommandInput, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
10
- getMedia(args: GetMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
16
+ getMedia(args: GetMediaCommandInput, options: KinesisVideoMediaRequestOptions, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
11
17
  }
12
18
  /**
13
19
  * <p></p>
@@ -1,15 +1,21 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
3
6
  import { KinesisVideoMediaClient } from "./KinesisVideoMediaClient";
7
+ export interface KinesisVideoMediaRequestOptions extends __HttpHandlerOptions {
8
+ metricsRecorder?: __MetricsRecorder<unknown>;
9
+ }
4
10
  export interface KinesisVideoMedia {
5
11
  getMedia(
6
12
  args: GetMediaCommandInput,
7
- options?: __HttpHandlerOptions,
13
+ options?: KinesisVideoMediaRequestOptions,
8
14
  ): Promise<GetMediaCommandOutput>;
9
15
  getMedia(args: GetMediaCommandInput, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
10
16
  getMedia(
11
17
  args: GetMediaCommandInput,
12
- options: __HttpHandlerOptions,
18
+ options: KinesisVideoMediaRequestOptions,
13
19
  cb: (err: any, data?: GetMediaCommandOutput) => void,
14
20
  ): void;
15
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-media",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kinesis-video-media",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {