@aws-sdk/client-codeartifact 3.658.0 → 3.662.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
@@ -48,6 +48,7 @@ __export(src_exports, {
48
48
  DisassociateExternalConnectionCommand: () => DisassociateExternalConnectionCommand,
49
49
  DisposePackageVersionsCommand: () => DisposePackageVersionsCommand,
50
50
  DomainStatus: () => DomainStatus,
51
+ EndpointType: () => EndpointType,
51
52
  ExternalConnectionStatus: () => ExternalConnectionStatus,
52
53
  GetAssociatedPackageGroupCommand: () => GetAssociatedPackageGroupCommand,
53
54
  GetAuthorizationTokenCommand: () => GetAuthorizationTokenCommand,
@@ -485,6 +486,10 @@ var PackageVersionOriginType = {
485
486
  INTERNAL: "INTERNAL",
486
487
  UNKNOWN: "UNKNOWN"
487
488
  };
489
+ var EndpointType = {
490
+ DUALSTACK: "dualstack",
491
+ IPV4: "ipv4"
492
+ };
488
493
  var PackageVersionSortType = {
489
494
  PUBLISHED_TIME: "PUBLISHED_TIME"
490
495
  };
@@ -906,7 +911,8 @@ var se_GetRepositoryEndpointCommand = /* @__PURE__ */ __name(async (input, conte
906
911
  [_d]: [, (0, import_smithy_client.expectNonNull)(input[_d], `domain`)],
907
912
  [_do]: [, input[_dO]],
908
913
  [_r]: [, (0, import_smithy_client.expectNonNull)(input[_r], `repository`)],
909
- [_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)]
914
+ [_f]: [, (0, import_smithy_client.expectNonNull)(input[_f], `format`)],
915
+ [_eT]: [, input[_eT]]
910
916
  });
911
917
  let body;
912
918
  b.m("GET").h(headers).q(query).b(body);
@@ -1123,7 +1129,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
1123
1129
  }, "se_ListTagsForResourceCommand");
1124
1130
  var se_PublishPackageVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
1125
1131
  const b = (0, import_core.requestBuilder)(input, context);
1126
- const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
1132
+ const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1127
1133
  "content-type": "application/octet-stream",
1128
1134
  [_xacs]: input[_aSHA]
1129
1135
  });
@@ -2294,7 +2300,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2294
2300
  extendedRequestId: output.headers["x-amz-id-2"],
2295
2301
  cfId: output.headers["x-amz-cf-id"]
2296
2302
  }), "deserializeMetadata");
2297
- var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
2298
2303
  var _a = "asset";
2299
2304
  var _aA = "administratorAccount";
2300
2305
  var _aN = "assetName";
@@ -2308,6 +2313,7 @@ var _do = "domain-owner";
2308
2313
  var _dr = "destination-repository";
2309
2314
  var _du = "duration";
2310
2315
  var _eC = "externalConnection";
2316
+ var _eT = "endpointType";
2311
2317
  var _ec = "external-connection";
2312
2318
  var _f = "format";
2313
2319
  var _mR = "maxResults";
@@ -3200,6 +3206,7 @@ var paginateListSubPackageGroups = (0, import_core.createPaginator)(Codeartifact
3200
3206
  PackageGroupOriginRestrictionType,
3201
3207
  PackageGroupOriginRestrictionMode,
3202
3208
  PackageVersionOriginType,
3209
+ EndpointType,
3203
3210
  PackageVersionSortType,
3204
3211
  PackageGroupAllowedRepositoryUpdateType,
3205
3212
  GetAuthorizationTokenResultFilterSensitiveLog,
@@ -172,6 +172,10 @@ export const PackageVersionOriginType = {
172
172
  INTERNAL: "INTERNAL",
173
173
  UNKNOWN: "UNKNOWN",
174
174
  };
175
+ export const EndpointType = {
176
+ DUALSTACK: "dualstack",
177
+ IPV4: "ipv4",
178
+ };
175
179
  export const PackageVersionSortType = {
176
180
  PUBLISHED_TIME: "PUBLISHED_TIME",
177
181
  };
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CodeartifactServiceException as __BaseException } from "../models/CodeartifactServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
6
  export const se_AssociateExternalConnectionCommand = async (input, context) => {
@@ -395,6 +395,7 @@ export const se_GetRepositoryEndpointCommand = async (input, context) => {
395
395
  [_do]: [, input[_dO]],
396
396
  [_r]: [, __expectNonNull(input[_r], `repository`)],
397
397
  [_f]: [, __expectNonNull(input[_f], `format`)],
398
+ [_eT]: [, input[_eT]],
398
399
  });
399
400
  let body;
400
401
  b.m("GET").h(headers).q(query).b(body);
@@ -1769,11 +1770,6 @@ const deserializeMetadata = (output) => ({
1769
1770
  cfId: output.headers["x-amz-cf-id"],
1770
1771
  });
1771
1772
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1772
- const isSerializableHeaderValue = (value) => value !== undefined &&
1773
- value !== null &&
1774
- value !== "" &&
1775
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1776
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1777
1773
  const _a = "asset";
1778
1774
  const _aA = "administratorAccount";
1779
1775
  const _aN = "assetName";
@@ -1787,6 +1783,7 @@ const _do = "domain-owner";
1787
1783
  const _dr = "destination-repository";
1788
1784
  const _du = "duration";
1789
1785
  const _eC = "externalConnection";
1786
+ const _eT = "endpointType";
1790
1787
  const _ec = "external-connection";
1791
1788
  const _f = "format";
1792
1789
  const _mR = "maxResults";
@@ -84,6 +84,7 @@ declare const GetRepositoryEndpointCommand_base: {
84
84
  * domainOwner: "STRING_VALUE",
85
85
  * repository: "STRING_VALUE", // required
86
86
  * format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
87
+ * endpointType: "dualstack" || "ipv4",
87
88
  * };
88
89
  * const command = new GetRepositoryEndpointCommand(input);
89
90
  * const response = await client.send(command);
@@ -296,6 +296,26 @@ export interface RepositoryExternalConnectionInfo {
296
296
  * <code>nuget</code>: A NuGet package.
297
297
  * </p>
298
298
  * </li>
299
+ * <li>
300
+ * <p>
301
+ * <code>generic</code>: A generic package.
302
+ * </p>
303
+ * </li>
304
+ * <li>
305
+ * <p>
306
+ * <code>ruby</code>: A Ruby package.
307
+ * </p>
308
+ * </li>
309
+ * <li>
310
+ * <p>
311
+ * <code>swift</code>: A Swift package.
312
+ * </p>
313
+ * </li>
314
+ * <li>
315
+ * <p>
316
+ * <code>cargo</code>: A Cargo package.
317
+ * </p>
318
+ * </li>
299
319
  * </ul>
300
320
  * @public
301
321
  */
@@ -3014,6 +3034,18 @@ export interface GetPackageVersionReadmeResult {
3014
3034
  */
3015
3035
  readme?: string;
3016
3036
  }
3037
+ /**
3038
+ * @public
3039
+ * @enum
3040
+ */
3041
+ export declare const EndpointType: {
3042
+ readonly DUALSTACK: "dualstack";
3043
+ readonly IPV4: "ipv4";
3044
+ };
3045
+ /**
3046
+ * @public
3047
+ */
3048
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
3017
3049
  /**
3018
3050
  * @public
3019
3051
  */
@@ -3048,6 +3080,11 @@ export interface GetRepositoryEndpointRequest {
3048
3080
  * @public
3049
3081
  */
3050
3082
  format: PackageFormat | undefined;
3083
+ /**
3084
+ * <p>A string that specifies the type of endpoint.</p>
3085
+ * @public
3086
+ */
3087
+ endpointType?: EndpointType;
3051
3088
  }
3052
3089
  /**
3053
3090
  * @public
@@ -544,11 +544,17 @@ export interface GetPackageVersionReadmeResult {
544
544
  versionRevision?: string;
545
545
  readme?: string;
546
546
  }
547
+ export declare const EndpointType: {
548
+ readonly DUALSTACK: "dualstack";
549
+ readonly IPV4: "ipv4";
550
+ };
551
+ export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
547
552
  export interface GetRepositoryEndpointRequest {
548
553
  domain: string | undefined;
549
554
  domainOwner?: string;
550
555
  repository: string | undefined;
551
556
  format: PackageFormat | undefined;
557
+ endpointType?: EndpointType;
552
558
  }
553
559
  export interface GetRepositoryEndpointResult {
554
560
  repositoryEndpoint?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeartifact",
3
3
  "description": "AWS SDK for JavaScript Codeartifact Client for Node.js, Browser and React Native",
4
- "version": "3.658.0",
4
+ "version": "3.662.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-codeartifact",
@@ -20,44 +20,44 @@
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.658.0",
24
- "@aws-sdk/client-sts": "3.658.0",
25
- "@aws-sdk/core": "3.658.0",
26
- "@aws-sdk/credential-provider-node": "3.658.0",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
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.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
60
- "@smithy/util-stream": "^3.1.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
+ "@smithy/util-stream": "^3.1.9",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },