@aws-sdk/client-mediapackagev2 3.606.0 → 3.613.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
@@ -235,6 +235,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
235
235
  var import_core2 = require("@aws-sdk/core");
236
236
 
237
237
 
238
+ var import_uuid = require("uuid");
238
239
 
239
240
  // src/models/MediaPackageV2ServiceException.ts
240
241
 
@@ -531,7 +532,7 @@ var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
531
532
  const b = (0, import_core.requestBuilder)(input, context);
532
533
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
533
534
  "content-type": "application/json",
534
- [_xact]: input[_CT]
535
+ [_xact]: input[_CT] ?? (0, import_uuid.v4)()
535
536
  });
536
537
  b.bp("/channelGroup/{ChannelGroupName}/channel");
537
538
  b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
@@ -551,7 +552,7 @@ var se_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context)
551
552
  const b = (0, import_core.requestBuilder)(input, context);
552
553
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
553
554
  "content-type": "application/json",
554
- [_xact]: input[_CT]
555
+ [_xact]: input[_CT] ?? (0, import_uuid.v4)()
555
556
  });
556
557
  b.bp("/channelGroup");
557
558
  let body;
@@ -569,7 +570,7 @@ var se_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, contex
569
570
  const b = (0, import_core.requestBuilder)(input, context);
570
571
  const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
571
572
  "content-type": "application/json",
572
- [_xact]: input[_CT]
573
+ [_xact]: input[_CT] ?? (0, import_uuid.v4)()
573
574
  });
574
575
  b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint");
575
576
  b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
@@ -1,13 +1,14 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { MediaPackageV2ServiceException as __BaseException } from "../models/MediaPackageV2ServiceException";
5
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
7
  export const se_CreateChannelCommand = async (input, context) => {
7
8
  const b = rb(input, context);
8
9
  const headers = map({}, isSerializableHeaderValue, {
9
10
  "content-type": "application/json",
10
- [_xact]: input[_CT],
11
+ [_xact]: input[_CT] ?? generateIdempotencyToken(),
11
12
  });
12
13
  b.bp("/channelGroup/{ChannelGroupName}/channel");
13
14
  b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
@@ -25,7 +26,7 @@ export const se_CreateChannelGroupCommand = async (input, context) => {
25
26
  const b = rb(input, context);
26
27
  const headers = map({}, isSerializableHeaderValue, {
27
28
  "content-type": "application/json",
28
- [_xact]: input[_CT],
29
+ [_xact]: input[_CT] ?? generateIdempotencyToken(),
29
30
  });
30
31
  b.bp("/channelGroup");
31
32
  let body;
@@ -41,7 +42,7 @@ export const se_CreateOriginEndpointCommand = async (input, context) => {
41
42
  const b = rb(input, context);
42
43
  const headers = map({}, isSerializableHeaderValue, {
43
44
  "content-type": "application/json",
44
- [_xact]: input[_CT],
45
+ [_xact]: input[_CT] ?? generateIdempotencyToken(),
45
46
  });
46
47
  b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint");
47
48
  b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackagev2",
3
3
  "description": "AWS SDK for JavaScript Mediapackagev2 Client for Node.js, Browser and React Native",
4
- "version": "3.606.0",
4
+ "version": "3.613.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mediapackagev2",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.606.0",
24
- "@aws-sdk/client-sts": "3.606.0",
25
- "@aws-sdk/core": "3.598.0",
26
- "@aws-sdk/credential-provider-node": "3.600.0",
27
- "@aws-sdk/middleware-host-header": "3.598.0",
28
- "@aws-sdk/middleware-logger": "3.598.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.598.0",
30
- "@aws-sdk/middleware-user-agent": "3.598.0",
31
- "@aws-sdk/region-config-resolver": "3.598.0",
32
- "@aws-sdk/types": "3.598.0",
33
- "@aws-sdk/util-endpoints": "3.598.0",
34
- "@aws-sdk/util-user-agent-browser": "3.598.0",
35
- "@aws-sdk/util-user-agent-node": "3.598.0",
36
- "@smithy/config-resolver": "^3.0.2",
37
- "@smithy/core": "^2.2.1",
38
- "@smithy/fetch-http-handler": "^3.0.2",
39
- "@smithy/hash-node": "^3.0.1",
40
- "@smithy/invalid-dependency": "^3.0.1",
41
- "@smithy/middleware-content-length": "^3.0.1",
42
- "@smithy/middleware-endpoint": "^3.0.2",
43
- "@smithy/middleware-retry": "^3.0.4",
44
- "@smithy/middleware-serde": "^3.0.1",
45
- "@smithy/middleware-stack": "^3.0.1",
46
- "@smithy/node-config-provider": "^3.1.1",
47
- "@smithy/node-http-handler": "^3.0.1",
48
- "@smithy/protocol-http": "^4.0.1",
49
- "@smithy/smithy-client": "^3.1.2",
50
- "@smithy/types": "^3.1.0",
51
- "@smithy/url-parser": "^3.0.1",
23
+ "@aws-sdk/client-sso-oidc": "3.613.0",
24
+ "@aws-sdk/client-sts": "3.613.0",
25
+ "@aws-sdk/core": "3.609.0",
26
+ "@aws-sdk/credential-provider-node": "3.613.0",
27
+ "@aws-sdk/middleware-host-header": "3.609.0",
28
+ "@aws-sdk/middleware-logger": "3.609.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.609.0",
30
+ "@aws-sdk/middleware-user-agent": "3.609.0",
31
+ "@aws-sdk/region-config-resolver": "3.609.0",
32
+ "@aws-sdk/types": "3.609.0",
33
+ "@aws-sdk/util-endpoints": "3.609.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.609.0",
35
+ "@aws-sdk/util-user-agent-node": "3.609.0",
36
+ "@smithy/config-resolver": "^3.0.4",
37
+ "@smithy/core": "^2.2.4",
38
+ "@smithy/fetch-http-handler": "^3.2.0",
39
+ "@smithy/hash-node": "^3.0.3",
40
+ "@smithy/invalid-dependency": "^3.0.3",
41
+ "@smithy/middleware-content-length": "^3.0.3",
42
+ "@smithy/middleware-endpoint": "^3.0.4",
43
+ "@smithy/middleware-retry": "^3.0.7",
44
+ "@smithy/middleware-serde": "^3.0.3",
45
+ "@smithy/middleware-stack": "^3.0.3",
46
+ "@smithy/node-config-provider": "^3.1.3",
47
+ "@smithy/node-http-handler": "^3.1.1",
48
+ "@smithy/protocol-http": "^4.0.3",
49
+ "@smithy/smithy-client": "^3.1.5",
50
+ "@smithy/types": "^3.3.0",
51
+ "@smithy/url-parser": "^3.0.3",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.4",
56
- "@smithy/util-defaults-mode-node": "^3.0.4",
57
- "@smithy/util-endpoints": "^2.0.2",
58
- "@smithy/util-middleware": "^3.0.1",
59
- "@smithy/util-retry": "^3.0.1",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.7",
56
+ "@smithy/util-defaults-mode-node": "^3.0.7",
57
+ "@smithy/util-endpoints": "^2.0.4",
58
+ "@smithy/util-middleware": "^3.0.3",
59
+ "@smithy/util-retry": "^3.0.3",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2",
62
62
  "uuid": "^9.0.1"