@aws-sdk/client-kinesis-video-media 3.956.0 → 3.958.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/README.md CHANGED
@@ -9,10 +9,8 @@ AWS SDK for JavaScript KinesisVideoMedia Client for Node.js, Browser and React N
9
9
  <p></p>
10
10
 
11
11
  ## Installing
12
-
13
12
  To install this package, simply type add or install @aws-sdk/client-kinesis-video-media
14
13
  using your favorite package manager:
15
-
16
14
  - `npm install @aws-sdk/client-kinesis-video-media`
17
15
  - `yarn add @aws-sdk/client-kinesis-video-media`
18
16
  - `pnpm add @aws-sdk/client-kinesis-video-media`
@@ -48,9 +46,7 @@ To send a request, you:
48
46
  // a client can be shared by different commands.
49
47
  const client = new KinesisVideoMediaClient({ region: "REGION" });
50
48
 
51
- const params = {
52
- /** input parameters */
53
- };
49
+ const params = { /** input parameters */ };
54
50
  const command = new GetMediaCommand(params);
55
51
  ```
56
52
 
@@ -209,5 +205,4 @@ GetMedia
209
205
  </summary>
210
206
 
211
207
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis-video-media/command/GetMediaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis-video-media/Interface/GetMediaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis-video-media/Interface/GetMediaCommandOutput/)
212
-
213
208
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultKinesisVideoMediaHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultKinesisVideoMediaHttpAuthSchemeParametersProvider = defaultKinesisVideoMediaHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -231,47 +231,61 @@ const _s = "streaming";
231
231
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideomedia";
232
232
  const n0 = "com.amazonaws.kinesisvideomedia";
233
233
  var Payload = [0, n0, _P, { [_s]: 1 }, 42];
234
- var ClientLimitExceededException$ = [-3, n0, _CLEE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
234
+ var ClientLimitExceededException$ = [-3, n0, _CLEE,
235
+ { [_e]: _c, [_hE]: 400 },
236
+ [_M],
237
+ [0]
238
+ ];
235
239
  schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException$, ClientLimitExceededException);
236
- var ConnectionLimitExceededException$ = [-3, n0, _CLEEo, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
240
+ var ConnectionLimitExceededException$ = [-3, n0, _CLEEo,
241
+ { [_e]: _c, [_hE]: 400 },
242
+ [_M],
243
+ [0]
244
+ ];
237
245
  schema.TypeRegistry.for(n0).registerError(ConnectionLimitExceededException$, ConnectionLimitExceededException);
238
- var GetMediaInput$ = [3, n0, _GMI, 0, [_SN, _SARN, _SS], [0, 0, () => StartSelector$]];
239
- var GetMediaOutput$ = [
240
- 3,
241
- n0,
242
- _GMO,
246
+ var GetMediaInput$ = [3, n0, _GMI,
247
+ 0,
248
+ [_SN, _SARN, _SS],
249
+ [0, 0, () => StartSelector$]
250
+ ];
251
+ var GetMediaOutput$ = [3, n0, _GMO,
243
252
  0,
244
253
  [_CT, _P],
245
- [
246
- [0, { [_hH]: _CT_ }],
247
- [() => Payload, 16],
248
- ],
254
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
255
+ ];
256
+ var InvalidArgumentException$ = [-3, n0, _IAE,
257
+ { [_e]: _c, [_hE]: 400 },
258
+ [_M],
259
+ [0]
249
260
  ];
250
- var InvalidArgumentException$ = [-3, n0, _IAE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
251
261
  schema.TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
252
- var InvalidEndpointException$ = [-3, n0, _IEE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
262
+ var InvalidEndpointException$ = [-3, n0, _IEE,
263
+ { [_e]: _c, [_hE]: 400 },
264
+ [_M],
265
+ [0]
266
+ ];
253
267
  schema.TypeRegistry.for(n0).registerError(InvalidEndpointException$, InvalidEndpointException);
254
- var NotAuthorizedException$ = [-3, n0, _NAE, { [_e]: _c, [_hE]: 401 }, [_M], [0]];
268
+ var NotAuthorizedException$ = [-3, n0, _NAE,
269
+ { [_e]: _c, [_hE]: 401 },
270
+ [_M],
271
+ [0]
272
+ ];
255
273
  schema.TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
256
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
274
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
275
+ { [_e]: _c, [_hE]: 404 },
276
+ [_M],
277
+ [0]
278
+ ];
257
279
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
258
- var StartSelector$ = [3, n0, _SS, 0, [_SST, _AFN, _ST, _CTo], [0, 0, 4, 0]];
259
- var KinesisVideoMediaServiceException$ = [
260
- -3,
261
- _sm,
262
- "KinesisVideoMediaServiceException",
280
+ var StartSelector$ = [3, n0, _SS,
263
281
  0,
264
- [],
265
- [],
282
+ [_SST, _AFN, _ST, _CTo],
283
+ [0, 0, 4, 0]
266
284
  ];
285
+ var KinesisVideoMediaServiceException$ = [-3, _sm, "KinesisVideoMediaServiceException", 0, [], []];
267
286
  schema.TypeRegistry.for(_sm).registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
268
- var GetMedia$ = [
269
- 9,
270
- n0,
271
- _GM,
272
- { [_h]: ["POST", "/getMedia", 200] },
273
- () => GetMediaInput$,
274
- () => GetMediaOutput$,
287
+ var GetMedia$ = [9, n0, _GM,
288
+ { [_h]: ["POST", "/getMedia", 200] }, () => GetMediaInput$, () => GetMediaOutput$
275
289
  ];
276
290
 
277
291
  class GetMediaCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultKinesisVideoMediaHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -30,45 +30,59 @@ 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
32
  var Payload = [0, n0, _P, { [_s]: 1 }, 42];
33
- export var ClientLimitExceededException$ = [-3, n0, _CLEE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
33
+ export var ClientLimitExceededException$ = [-3, n0, _CLEE,
34
+ { [_e]: _c, [_hE]: 400 },
35
+ [_M],
36
+ [0]
37
+ ];
34
38
  TypeRegistry.for(n0).registerError(ClientLimitExceededException$, ClientLimitExceededException);
35
- export var ConnectionLimitExceededException$ = [-3, n0, _CLEEo, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
39
+ export var ConnectionLimitExceededException$ = [-3, n0, _CLEEo,
40
+ { [_e]: _c, [_hE]: 400 },
41
+ [_M],
42
+ [0]
43
+ ];
36
44
  TypeRegistry.for(n0).registerError(ConnectionLimitExceededException$, ConnectionLimitExceededException);
37
- export var GetMediaInput$ = [3, n0, _GMI, 0, [_SN, _SARN, _SS], [0, 0, () => StartSelector$]];
38
- export var GetMediaOutput$ = [
39
- 3,
40
- n0,
41
- _GMO,
45
+ export var GetMediaInput$ = [3, n0, _GMI,
46
+ 0,
47
+ [_SN, _SARN, _SS],
48
+ [0, 0, () => StartSelector$]
49
+ ];
50
+ export var GetMediaOutput$ = [3, n0, _GMO,
42
51
  0,
43
52
  [_CT, _P],
44
- [
45
- [0, { [_hH]: _CT_ }],
46
- [() => Payload, 16],
47
- ],
53
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
54
+ ];
55
+ export var InvalidArgumentException$ = [-3, n0, _IAE,
56
+ { [_e]: _c, [_hE]: 400 },
57
+ [_M],
58
+ [0]
48
59
  ];
49
- export var InvalidArgumentException$ = [-3, n0, _IAE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
50
60
  TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
51
- export var InvalidEndpointException$ = [-3, n0, _IEE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
61
+ export var InvalidEndpointException$ = [-3, n0, _IEE,
62
+ { [_e]: _c, [_hE]: 400 },
63
+ [_M],
64
+ [0]
65
+ ];
52
66
  TypeRegistry.for(n0).registerError(InvalidEndpointException$, InvalidEndpointException);
53
- export var NotAuthorizedException$ = [-3, n0, _NAE, { [_e]: _c, [_hE]: 401 }, [_M], [0]];
67
+ export var NotAuthorizedException$ = [-3, n0, _NAE,
68
+ { [_e]: _c, [_hE]: 401 },
69
+ [_M],
70
+ [0]
71
+ ];
54
72
  TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
55
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
73
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
74
+ { [_e]: _c, [_hE]: 404 },
75
+ [_M],
76
+ [0]
77
+ ];
56
78
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
57
- export var StartSelector$ = [3, n0, _SS, 0, [_SST, _AFN, _ST, _CTo], [0, 0, 4, 0]];
58
- export var KinesisVideoMediaServiceException$ = [
59
- -3,
60
- _sm,
61
- "KinesisVideoMediaServiceException",
79
+ export var StartSelector$ = [3, n0, _SS,
62
80
  0,
63
- [],
64
- [],
81
+ [_SST, _AFN, _ST, _CTo],
82
+ [0, 0, 4, 0]
65
83
  ];
84
+ export var KinesisVideoMediaServiceException$ = [-3, _sm, "KinesisVideoMediaServiceException", 0, [], []];
66
85
  TypeRegistry.for(_sm).registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
67
- export var GetMedia$ = [
68
- 9,
69
- n0,
70
- _GM,
71
- { [_h]: ["POST", "/getMedia", 200] },
72
- () => GetMediaInput$,
73
- () => GetMediaOutput$,
86
+ export var GetMedia$ = [9, n0, _GM,
87
+ { [_h]: ["POST", "/getMedia", 200] }, () => GetMediaInput$, () => GetMediaOutput$
74
88
  ];
package/package.json CHANGED
@@ -1,12 +1,12 @@
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.956.0",
4
+ "version": "3.958.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-media",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.8",