@aws-sdk/client-codeartifact 3.301.0 → 3.306.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.
@@ -15,43 +15,37 @@ class AccessDeniedException extends CodeartifactServiceException_1.CodeartifactS
15
15
  }
16
16
  }
17
17
  exports.AccessDeniedException = AccessDeniedException;
18
- var AllowPublish;
19
- (function (AllowPublish) {
20
- AllowPublish["ALLOW"] = "ALLOW";
21
- AllowPublish["BLOCK"] = "BLOCK";
22
- })(AllowPublish = exports.AllowPublish || (exports.AllowPublish = {}));
23
- var AllowUpstream;
24
- (function (AllowUpstream) {
25
- AllowUpstream["ALLOW"] = "ALLOW";
26
- AllowUpstream["BLOCK"] = "BLOCK";
27
- })(AllowUpstream = exports.AllowUpstream || (exports.AllowUpstream = {}));
28
- var HashAlgorithm;
29
- (function (HashAlgorithm) {
30
- HashAlgorithm["MD5"] = "MD5";
31
- HashAlgorithm["SHA1"] = "SHA-1";
32
- HashAlgorithm["SHA256"] = "SHA-256";
33
- HashAlgorithm["SHA512"] = "SHA-512";
34
- })(HashAlgorithm = exports.HashAlgorithm || (exports.HashAlgorithm = {}));
35
- var PackageFormat;
36
- (function (PackageFormat) {
37
- PackageFormat["GENERIC"] = "generic";
38
- PackageFormat["MAVEN"] = "maven";
39
- PackageFormat["NPM"] = "npm";
40
- PackageFormat["NUGET"] = "nuget";
41
- PackageFormat["PYPI"] = "pypi";
42
- })(PackageFormat = exports.PackageFormat || (exports.PackageFormat = {}));
43
- var ExternalConnectionStatus;
44
- (function (ExternalConnectionStatus) {
45
- ExternalConnectionStatus["AVAILABLE"] = "Available";
46
- })(ExternalConnectionStatus = exports.ExternalConnectionStatus || (exports.ExternalConnectionStatus = {}));
47
- var ResourceType;
48
- (function (ResourceType) {
49
- ResourceType["ASSET"] = "asset";
50
- ResourceType["DOMAIN"] = "domain";
51
- ResourceType["PACKAGE"] = "package";
52
- ResourceType["PACKAGE_VERSION"] = "package-version";
53
- ResourceType["REPOSITORY"] = "repository";
54
- })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
18
+ exports.AllowPublish = {
19
+ ALLOW: "ALLOW",
20
+ BLOCK: "BLOCK",
21
+ };
22
+ exports.AllowUpstream = {
23
+ ALLOW: "ALLOW",
24
+ BLOCK: "BLOCK",
25
+ };
26
+ exports.HashAlgorithm = {
27
+ MD5: "MD5",
28
+ SHA1: "SHA-1",
29
+ SHA256: "SHA-256",
30
+ SHA512: "SHA-512",
31
+ };
32
+ exports.PackageFormat = {
33
+ GENERIC: "generic",
34
+ MAVEN: "maven",
35
+ NPM: "npm",
36
+ NUGET: "nuget",
37
+ PYPI: "pypi",
38
+ };
39
+ exports.ExternalConnectionStatus = {
40
+ AVAILABLE: "Available",
41
+ };
42
+ exports.ResourceType = {
43
+ ASSET: "asset",
44
+ DOMAIN: "domain",
45
+ PACKAGE: "package",
46
+ PACKAGE_VERSION: "package-version",
47
+ REPOSITORY: "repository",
48
+ };
55
49
  class ConflictException extends CodeartifactServiceException_1.CodeartifactServiceException {
56
50
  constructor(opts) {
57
51
  super({
@@ -124,14 +118,13 @@ class ThrottlingException extends CodeartifactServiceException_1.CodeartifactSer
124
118
  }
125
119
  }
126
120
  exports.ThrottlingException = ThrottlingException;
127
- var ValidationExceptionReason;
128
- (function (ValidationExceptionReason) {
129
- ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
130
- ValidationExceptionReason["ENCRYPTION_KEY_ERROR"] = "ENCRYPTION_KEY_ERROR";
131
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
132
- ValidationExceptionReason["OTHER"] = "OTHER";
133
- ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
134
- })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
121
+ exports.ValidationExceptionReason = {
122
+ CANNOT_PARSE: "CANNOT_PARSE",
123
+ ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
124
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
125
+ OTHER: "OTHER",
126
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
127
+ };
135
128
  class ValidationException extends CodeartifactServiceException_1.CodeartifactServiceException {
136
129
  constructor(opts) {
137
130
  super({
@@ -146,39 +139,34 @@ class ValidationException extends CodeartifactServiceException_1.CodeartifactSer
146
139
  }
147
140
  }
148
141
  exports.ValidationException = ValidationException;
149
- var PackageVersionErrorCode;
150
- (function (PackageVersionErrorCode) {
151
- PackageVersionErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
152
- PackageVersionErrorCode["MISMATCHED_REVISION"] = "MISMATCHED_REVISION";
153
- PackageVersionErrorCode["MISMATCHED_STATUS"] = "MISMATCHED_STATUS";
154
- PackageVersionErrorCode["NOT_ALLOWED"] = "NOT_ALLOWED";
155
- PackageVersionErrorCode["NOT_FOUND"] = "NOT_FOUND";
156
- PackageVersionErrorCode["SKIPPED"] = "SKIPPED";
157
- })(PackageVersionErrorCode = exports.PackageVersionErrorCode || (exports.PackageVersionErrorCode = {}));
158
- var PackageVersionStatus;
159
- (function (PackageVersionStatus) {
160
- PackageVersionStatus["ARCHIVED"] = "Archived";
161
- PackageVersionStatus["DELETED"] = "Deleted";
162
- PackageVersionStatus["DISPOSED"] = "Disposed";
163
- PackageVersionStatus["PUBLISHED"] = "Published";
164
- PackageVersionStatus["UNFINISHED"] = "Unfinished";
165
- PackageVersionStatus["UNLISTED"] = "Unlisted";
166
- })(PackageVersionStatus = exports.PackageVersionStatus || (exports.PackageVersionStatus = {}));
167
- var DomainStatus;
168
- (function (DomainStatus) {
169
- DomainStatus["ACTIVE"] = "Active";
170
- DomainStatus["DELETED"] = "Deleted";
171
- })(DomainStatus = exports.DomainStatus || (exports.DomainStatus = {}));
172
- var PackageVersionOriginType;
173
- (function (PackageVersionOriginType) {
174
- PackageVersionOriginType["EXTERNAL"] = "EXTERNAL";
175
- PackageVersionOriginType["INTERNAL"] = "INTERNAL";
176
- PackageVersionOriginType["UNKNOWN"] = "UNKNOWN";
177
- })(PackageVersionOriginType = exports.PackageVersionOriginType || (exports.PackageVersionOriginType = {}));
178
- var PackageVersionSortType;
179
- (function (PackageVersionSortType) {
180
- PackageVersionSortType["PUBLISHED_TIME"] = "PUBLISHED_TIME";
181
- })(PackageVersionSortType = exports.PackageVersionSortType || (exports.PackageVersionSortType = {}));
142
+ exports.PackageVersionErrorCode = {
143
+ ALREADY_EXISTS: "ALREADY_EXISTS",
144
+ MISMATCHED_REVISION: "MISMATCHED_REVISION",
145
+ MISMATCHED_STATUS: "MISMATCHED_STATUS",
146
+ NOT_ALLOWED: "NOT_ALLOWED",
147
+ NOT_FOUND: "NOT_FOUND",
148
+ SKIPPED: "SKIPPED",
149
+ };
150
+ exports.PackageVersionStatus = {
151
+ ARCHIVED: "Archived",
152
+ DELETED: "Deleted",
153
+ DISPOSED: "Disposed",
154
+ PUBLISHED: "Published",
155
+ UNFINISHED: "Unfinished",
156
+ UNLISTED: "Unlisted",
157
+ };
158
+ exports.DomainStatus = {
159
+ ACTIVE: "Active",
160
+ DELETED: "Deleted",
161
+ };
162
+ exports.PackageVersionOriginType = {
163
+ EXTERNAL: "EXTERNAL",
164
+ INTERNAL: "INTERNAL",
165
+ UNKNOWN: "UNKNOWN",
166
+ };
167
+ exports.PackageVersionSortType = {
168
+ PUBLISHED_TIME: "PUBLISHED_TIME",
169
+ };
182
170
  const GetPackageVersionAssetResultFilterSensitiveLog = (obj) => ({
183
171
  ...obj,
184
172
  });
@@ -11,43 +11,37 @@ export class AccessDeniedException extends __BaseException {
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
14
- export var AllowPublish;
15
- (function (AllowPublish) {
16
- AllowPublish["ALLOW"] = "ALLOW";
17
- AllowPublish["BLOCK"] = "BLOCK";
18
- })(AllowPublish || (AllowPublish = {}));
19
- export var AllowUpstream;
20
- (function (AllowUpstream) {
21
- AllowUpstream["ALLOW"] = "ALLOW";
22
- AllowUpstream["BLOCK"] = "BLOCK";
23
- })(AllowUpstream || (AllowUpstream = {}));
24
- export var HashAlgorithm;
25
- (function (HashAlgorithm) {
26
- HashAlgorithm["MD5"] = "MD5";
27
- HashAlgorithm["SHA1"] = "SHA-1";
28
- HashAlgorithm["SHA256"] = "SHA-256";
29
- HashAlgorithm["SHA512"] = "SHA-512";
30
- })(HashAlgorithm || (HashAlgorithm = {}));
31
- export var PackageFormat;
32
- (function (PackageFormat) {
33
- PackageFormat["GENERIC"] = "generic";
34
- PackageFormat["MAVEN"] = "maven";
35
- PackageFormat["NPM"] = "npm";
36
- PackageFormat["NUGET"] = "nuget";
37
- PackageFormat["PYPI"] = "pypi";
38
- })(PackageFormat || (PackageFormat = {}));
39
- export var ExternalConnectionStatus;
40
- (function (ExternalConnectionStatus) {
41
- ExternalConnectionStatus["AVAILABLE"] = "Available";
42
- })(ExternalConnectionStatus || (ExternalConnectionStatus = {}));
43
- export var ResourceType;
44
- (function (ResourceType) {
45
- ResourceType["ASSET"] = "asset";
46
- ResourceType["DOMAIN"] = "domain";
47
- ResourceType["PACKAGE"] = "package";
48
- ResourceType["PACKAGE_VERSION"] = "package-version";
49
- ResourceType["REPOSITORY"] = "repository";
50
- })(ResourceType || (ResourceType = {}));
14
+ export const AllowPublish = {
15
+ ALLOW: "ALLOW",
16
+ BLOCK: "BLOCK",
17
+ };
18
+ export const AllowUpstream = {
19
+ ALLOW: "ALLOW",
20
+ BLOCK: "BLOCK",
21
+ };
22
+ export const HashAlgorithm = {
23
+ MD5: "MD5",
24
+ SHA1: "SHA-1",
25
+ SHA256: "SHA-256",
26
+ SHA512: "SHA-512",
27
+ };
28
+ export const PackageFormat = {
29
+ GENERIC: "generic",
30
+ MAVEN: "maven",
31
+ NPM: "npm",
32
+ NUGET: "nuget",
33
+ PYPI: "pypi",
34
+ };
35
+ export const ExternalConnectionStatus = {
36
+ AVAILABLE: "Available",
37
+ };
38
+ export const ResourceType = {
39
+ ASSET: "asset",
40
+ DOMAIN: "domain",
41
+ PACKAGE: "package",
42
+ PACKAGE_VERSION: "package-version",
43
+ REPOSITORY: "repository",
44
+ };
51
45
  export class ConflictException extends __BaseException {
52
46
  constructor(opts) {
53
47
  super({
@@ -115,14 +109,13 @@ export class ThrottlingException extends __BaseException {
115
109
  this.retryAfterSeconds = opts.retryAfterSeconds;
116
110
  }
117
111
  }
118
- export var ValidationExceptionReason;
119
- (function (ValidationExceptionReason) {
120
- ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
121
- ValidationExceptionReason["ENCRYPTION_KEY_ERROR"] = "ENCRYPTION_KEY_ERROR";
122
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
123
- ValidationExceptionReason["OTHER"] = "OTHER";
124
- ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
125
- })(ValidationExceptionReason || (ValidationExceptionReason = {}));
112
+ export const ValidationExceptionReason = {
113
+ CANNOT_PARSE: "CANNOT_PARSE",
114
+ ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
115
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
116
+ OTHER: "OTHER",
117
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
118
+ };
126
119
  export class ValidationException extends __BaseException {
127
120
  constructor(opts) {
128
121
  super({
@@ -136,39 +129,34 @@ export class ValidationException extends __BaseException {
136
129
  this.reason = opts.reason;
137
130
  }
138
131
  }
139
- export var PackageVersionErrorCode;
140
- (function (PackageVersionErrorCode) {
141
- PackageVersionErrorCode["ALREADY_EXISTS"] = "ALREADY_EXISTS";
142
- PackageVersionErrorCode["MISMATCHED_REVISION"] = "MISMATCHED_REVISION";
143
- PackageVersionErrorCode["MISMATCHED_STATUS"] = "MISMATCHED_STATUS";
144
- PackageVersionErrorCode["NOT_ALLOWED"] = "NOT_ALLOWED";
145
- PackageVersionErrorCode["NOT_FOUND"] = "NOT_FOUND";
146
- PackageVersionErrorCode["SKIPPED"] = "SKIPPED";
147
- })(PackageVersionErrorCode || (PackageVersionErrorCode = {}));
148
- export var PackageVersionStatus;
149
- (function (PackageVersionStatus) {
150
- PackageVersionStatus["ARCHIVED"] = "Archived";
151
- PackageVersionStatus["DELETED"] = "Deleted";
152
- PackageVersionStatus["DISPOSED"] = "Disposed";
153
- PackageVersionStatus["PUBLISHED"] = "Published";
154
- PackageVersionStatus["UNFINISHED"] = "Unfinished";
155
- PackageVersionStatus["UNLISTED"] = "Unlisted";
156
- })(PackageVersionStatus || (PackageVersionStatus = {}));
157
- export var DomainStatus;
158
- (function (DomainStatus) {
159
- DomainStatus["ACTIVE"] = "Active";
160
- DomainStatus["DELETED"] = "Deleted";
161
- })(DomainStatus || (DomainStatus = {}));
162
- export var PackageVersionOriginType;
163
- (function (PackageVersionOriginType) {
164
- PackageVersionOriginType["EXTERNAL"] = "EXTERNAL";
165
- PackageVersionOriginType["INTERNAL"] = "INTERNAL";
166
- PackageVersionOriginType["UNKNOWN"] = "UNKNOWN";
167
- })(PackageVersionOriginType || (PackageVersionOriginType = {}));
168
- export var PackageVersionSortType;
169
- (function (PackageVersionSortType) {
170
- PackageVersionSortType["PUBLISHED_TIME"] = "PUBLISHED_TIME";
171
- })(PackageVersionSortType || (PackageVersionSortType = {}));
132
+ export const PackageVersionErrorCode = {
133
+ ALREADY_EXISTS: "ALREADY_EXISTS",
134
+ MISMATCHED_REVISION: "MISMATCHED_REVISION",
135
+ MISMATCHED_STATUS: "MISMATCHED_STATUS",
136
+ NOT_ALLOWED: "NOT_ALLOWED",
137
+ NOT_FOUND: "NOT_FOUND",
138
+ SKIPPED: "SKIPPED",
139
+ };
140
+ export const PackageVersionStatus = {
141
+ ARCHIVED: "Archived",
142
+ DELETED: "Deleted",
143
+ DISPOSED: "Disposed",
144
+ PUBLISHED: "Published",
145
+ UNFINISHED: "Unfinished",
146
+ UNLISTED: "Unlisted",
147
+ };
148
+ export const DomainStatus = {
149
+ ACTIVE: "Active",
150
+ DELETED: "Deleted",
151
+ };
152
+ export const PackageVersionOriginType = {
153
+ EXTERNAL: "EXTERNAL",
154
+ INTERNAL: "INTERNAL",
155
+ UNKNOWN: "UNKNOWN",
156
+ };
157
+ export const PackageVersionSortType = {
158
+ PUBLISHED_TIME: "PUBLISHED_TIME",
159
+ };
172
160
  export const GetPackageVersionAssetResultFilterSensitiveLog = (obj) => ({
173
161
  ...obj,
174
162
  });
@@ -18,27 +18,42 @@ export declare class AccessDeniedException extends __BaseException {
18
18
  }
19
19
  /**
20
20
  * @public
21
+ * @enum
21
22
  */
22
- export declare enum AllowPublish {
23
- ALLOW = "ALLOW",
24
- BLOCK = "BLOCK"
25
- }
23
+ export declare const AllowPublish: {
24
+ readonly ALLOW: "ALLOW";
25
+ readonly BLOCK: "BLOCK";
26
+ };
26
27
  /**
27
28
  * @public
28
29
  */
29
- export declare enum AllowUpstream {
30
- ALLOW = "ALLOW",
31
- BLOCK = "BLOCK"
32
- }
30
+ export type AllowPublish = (typeof AllowPublish)[keyof typeof AllowPublish];
33
31
  /**
34
32
  * @public
33
+ * @enum
35
34
  */
36
- export declare enum HashAlgorithm {
37
- MD5 = "MD5",
38
- SHA1 = "SHA-1",
39
- SHA256 = "SHA-256",
40
- SHA512 = "SHA-512"
41
- }
35
+ export declare const AllowUpstream: {
36
+ readonly ALLOW: "ALLOW";
37
+ readonly BLOCK: "BLOCK";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type AllowUpstream = (typeof AllowUpstream)[keyof typeof AllowUpstream];
43
+ /**
44
+ * @public
45
+ * @enum
46
+ */
47
+ export declare const HashAlgorithm: {
48
+ readonly MD5: "MD5";
49
+ readonly SHA1: "SHA-1";
50
+ readonly SHA256: "SHA-256";
51
+ readonly SHA512: "SHA-512";
52
+ };
53
+ /**
54
+ * @public
55
+ */
56
+ export type HashAlgorithm = (typeof HashAlgorithm)[keyof typeof HashAlgorithm];
42
57
  /**
43
58
  * @public
44
59
  * <p>
@@ -136,20 +151,30 @@ export interface AssociateExternalConnectionRequest {
136
151
  }
137
152
  /**
138
153
  * @public
154
+ * @enum
139
155
  */
140
- export declare enum PackageFormat {
141
- GENERIC = "generic",
142
- MAVEN = "maven",
143
- NPM = "npm",
144
- NUGET = "nuget",
145
- PYPI = "pypi"
146
- }
156
+ export declare const PackageFormat: {
157
+ readonly GENERIC: "generic";
158
+ readonly MAVEN: "maven";
159
+ readonly NPM: "npm";
160
+ readonly NUGET: "nuget";
161
+ readonly PYPI: "pypi";
162
+ };
147
163
  /**
148
164
  * @public
149
165
  */
150
- export declare enum ExternalConnectionStatus {
151
- AVAILABLE = "Available"
152
- }
166
+ export type PackageFormat = (typeof PackageFormat)[keyof typeof PackageFormat];
167
+ /**
168
+ * @public
169
+ * @enum
170
+ */
171
+ export declare const ExternalConnectionStatus: {
172
+ readonly AVAILABLE: "Available";
173
+ };
174
+ /**
175
+ * @public
176
+ */
177
+ export type ExternalConnectionStatus = (typeof ExternalConnectionStatus)[keyof typeof ExternalConnectionStatus];
153
178
  /**
154
179
  * @public
155
180
  * <p>
@@ -281,14 +306,19 @@ export interface AssociateExternalConnectionResult {
281
306
  }
282
307
  /**
283
308
  * @public
309
+ * @enum
284
310
  */
285
- export declare enum ResourceType {
286
- ASSET = "asset",
287
- DOMAIN = "domain",
288
- PACKAGE = "package",
289
- PACKAGE_VERSION = "package-version",
290
- REPOSITORY = "repository"
291
- }
311
+ export declare const ResourceType: {
312
+ readonly ASSET: "asset";
313
+ readonly DOMAIN: "domain";
314
+ readonly PACKAGE: "package";
315
+ readonly PACKAGE_VERSION: "package-version";
316
+ readonly REPOSITORY: "repository";
317
+ };
318
+ /**
319
+ * @public
320
+ */
321
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
292
322
  /**
293
323
  * @public
294
324
  * <p>
@@ -401,14 +431,19 @@ export declare class ThrottlingException extends __BaseException {
401
431
  }
402
432
  /**
403
433
  * @public
434
+ * @enum
404
435
  */
405
- export declare enum ValidationExceptionReason {
406
- CANNOT_PARSE = "CANNOT_PARSE",
407
- ENCRYPTION_KEY_ERROR = "ENCRYPTION_KEY_ERROR",
408
- FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
409
- OTHER = "OTHER",
410
- UNKNOWN_OPERATION = "UNKNOWN_OPERATION"
411
- }
436
+ export declare const ValidationExceptionReason: {
437
+ readonly CANNOT_PARSE: "CANNOT_PARSE";
438
+ readonly ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR";
439
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
440
+ readonly OTHER: "OTHER";
441
+ readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
442
+ };
443
+ /**
444
+ * @public
445
+ */
446
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
412
447
  /**
413
448
  * @public
414
449
  * <p>
@@ -538,15 +573,20 @@ export interface CopyPackageVersionsRequest {
538
573
  }
539
574
  /**
540
575
  * @public
576
+ * @enum
541
577
  */
542
- export declare enum PackageVersionErrorCode {
543
- ALREADY_EXISTS = "ALREADY_EXISTS",
544
- MISMATCHED_REVISION = "MISMATCHED_REVISION",
545
- MISMATCHED_STATUS = "MISMATCHED_STATUS",
546
- NOT_ALLOWED = "NOT_ALLOWED",
547
- NOT_FOUND = "NOT_FOUND",
548
- SKIPPED = "SKIPPED"
549
- }
578
+ export declare const PackageVersionErrorCode: {
579
+ readonly ALREADY_EXISTS: "ALREADY_EXISTS";
580
+ readonly MISMATCHED_REVISION: "MISMATCHED_REVISION";
581
+ readonly MISMATCHED_STATUS: "MISMATCHED_STATUS";
582
+ readonly NOT_ALLOWED: "NOT_ALLOWED";
583
+ readonly NOT_FOUND: "NOT_FOUND";
584
+ readonly SKIPPED: "SKIPPED";
585
+ };
586
+ /**
587
+ * @public
588
+ */
589
+ export type PackageVersionErrorCode = (typeof PackageVersionErrorCode)[keyof typeof PackageVersionErrorCode];
550
590
  /**
551
591
  * @public
552
592
  * <p>l
@@ -599,15 +639,20 @@ export interface PackageVersionError {
599
639
  }
600
640
  /**
601
641
  * @public
642
+ * @enum
602
643
  */
603
- export declare enum PackageVersionStatus {
604
- ARCHIVED = "Archived",
605
- DELETED = "Deleted",
606
- DISPOSED = "Disposed",
607
- PUBLISHED = "Published",
608
- UNFINISHED = "Unfinished",
609
- UNLISTED = "Unlisted"
610
- }
644
+ export declare const PackageVersionStatus: {
645
+ readonly ARCHIVED: "Archived";
646
+ readonly DELETED: "Deleted";
647
+ readonly DISPOSED: "Disposed";
648
+ readonly PUBLISHED: "Published";
649
+ readonly UNFINISHED: "Unfinished";
650
+ readonly UNLISTED: "Unlisted";
651
+ };
652
+ /**
653
+ * @public
654
+ */
655
+ export type PackageVersionStatus = (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus];
611
656
  /**
612
657
  * @public
613
658
  * <p>
@@ -724,11 +769,16 @@ export interface CreateDomainRequest {
724
769
  }
725
770
  /**
726
771
  * @public
772
+ * @enum
727
773
  */
728
- export declare enum DomainStatus {
729
- ACTIVE = "Active",
730
- DELETED = "Deleted"
731
- }
774
+ export declare const DomainStatus: {
775
+ readonly ACTIVE: "Active";
776
+ readonly DELETED: "Deleted";
777
+ };
778
+ /**
779
+ * @public
780
+ */
781
+ export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus];
732
782
  /**
733
783
  * @public
734
784
  * <p>
@@ -1529,12 +1579,17 @@ export interface DomainEntryPoint {
1529
1579
  }
1530
1580
  /**
1531
1581
  * @public
1582
+ * @enum
1532
1583
  */
1533
- export declare enum PackageVersionOriginType {
1534
- EXTERNAL = "EXTERNAL",
1535
- INTERNAL = "INTERNAL",
1536
- UNKNOWN = "UNKNOWN"
1537
- }
1584
+ export declare const PackageVersionOriginType: {
1585
+ readonly EXTERNAL: "EXTERNAL";
1586
+ readonly INTERNAL: "INTERNAL";
1587
+ readonly UNKNOWN: "UNKNOWN";
1588
+ };
1589
+ /**
1590
+ * @public
1591
+ */
1592
+ export type PackageVersionOriginType = (typeof PackageVersionOriginType)[keyof typeof PackageVersionOriginType];
1538
1593
  /**
1539
1594
  * @public
1540
1595
  * <p>Information about how a package version was added to a repository.</p>
@@ -2775,10 +2830,15 @@ export interface ListPackageVersionDependenciesResult {
2775
2830
  }
2776
2831
  /**
2777
2832
  * @public
2833
+ * @enum
2778
2834
  */
2779
- export declare enum PackageVersionSortType {
2780
- PUBLISHED_TIME = "PUBLISHED_TIME"
2781
- }
2835
+ export declare const PackageVersionSortType: {
2836
+ readonly PUBLISHED_TIME: "PUBLISHED_TIME";
2837
+ };
2838
+ /**
2839
+ * @public
2840
+ */
2841
+ export type PackageVersionSortType = (typeof PackageVersionSortType)[keyof typeof PackageVersionSortType];
2782
2842
  /**
2783
2843
  * @public
2784
2844
  */
@@ -8,20 +8,23 @@ export declare class AccessDeniedException extends __BaseException {
8
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
9
  );
10
10
  }
11
- export declare enum AllowPublish {
12
- ALLOW = "ALLOW",
13
- BLOCK = "BLOCK",
14
- }
15
- export declare enum AllowUpstream {
16
- ALLOW = "ALLOW",
17
- BLOCK = "BLOCK",
18
- }
19
- export declare enum HashAlgorithm {
20
- MD5 = "MD5",
21
- SHA1 = "SHA-1",
22
- SHA256 = "SHA-256",
23
- SHA512 = "SHA-512",
24
- }
11
+ export declare const AllowPublish: {
12
+ readonly ALLOW: "ALLOW";
13
+ readonly BLOCK: "BLOCK";
14
+ };
15
+ export type AllowPublish = (typeof AllowPublish)[keyof typeof AllowPublish];
16
+ export declare const AllowUpstream: {
17
+ readonly ALLOW: "ALLOW";
18
+ readonly BLOCK: "BLOCK";
19
+ };
20
+ export type AllowUpstream = (typeof AllowUpstream)[keyof typeof AllowUpstream];
21
+ export declare const HashAlgorithm: {
22
+ readonly MD5: "MD5";
23
+ readonly SHA1: "SHA-1";
24
+ readonly SHA256: "SHA-256";
25
+ readonly SHA512: "SHA-512";
26
+ };
27
+ export type HashAlgorithm = (typeof HashAlgorithm)[keyof typeof HashAlgorithm];
25
28
  export interface AssetSummary {
26
29
  name: string | undefined;
27
30
  size?: number;
@@ -33,16 +36,19 @@ export interface AssociateExternalConnectionRequest {
33
36
  repository: string | undefined;
34
37
  externalConnection: string | undefined;
35
38
  }
36
- export declare enum PackageFormat {
37
- GENERIC = "generic",
38
- MAVEN = "maven",
39
- NPM = "npm",
40
- NUGET = "nuget",
41
- PYPI = "pypi",
42
- }
43
- export declare enum ExternalConnectionStatus {
44
- AVAILABLE = "Available",
45
- }
39
+ export declare const PackageFormat: {
40
+ readonly GENERIC: "generic";
41
+ readonly MAVEN: "maven";
42
+ readonly NPM: "npm";
43
+ readonly NUGET: "nuget";
44
+ readonly PYPI: "pypi";
45
+ };
46
+ export type PackageFormat = (typeof PackageFormat)[keyof typeof PackageFormat];
47
+ export declare const ExternalConnectionStatus: {
48
+ readonly AVAILABLE: "Available";
49
+ };
50
+ export type ExternalConnectionStatus =
51
+ (typeof ExternalConnectionStatus)[keyof typeof ExternalConnectionStatus];
46
52
  export interface RepositoryExternalConnectionInfo {
47
53
  externalConnectionName?: string;
48
54
  packageFormat?: PackageFormat | string;
@@ -65,13 +71,14 @@ export interface RepositoryDescription {
65
71
  export interface AssociateExternalConnectionResult {
66
72
  repository?: RepositoryDescription;
67
73
  }
68
- export declare enum ResourceType {
69
- ASSET = "asset",
70
- DOMAIN = "domain",
71
- PACKAGE = "package",
72
- PACKAGE_VERSION = "package-version",
73
- REPOSITORY = "repository",
74
- }
74
+ export declare const ResourceType: {
75
+ readonly ASSET: "asset";
76
+ readonly DOMAIN: "domain";
77
+ readonly PACKAGE: "package";
78
+ readonly PACKAGE_VERSION: "package-version";
79
+ readonly REPOSITORY: "repository";
80
+ };
81
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
75
82
  export declare class ConflictException extends __BaseException {
76
83
  readonly name: "ConflictException";
77
84
  readonly $fault: "client";
@@ -112,13 +119,15 @@ export declare class ThrottlingException extends __BaseException {
112
119
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
113
120
  );
114
121
  }
115
- export declare enum ValidationExceptionReason {
116
- CANNOT_PARSE = "CANNOT_PARSE",
117
- ENCRYPTION_KEY_ERROR = "ENCRYPTION_KEY_ERROR",
118
- FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
119
- OTHER = "OTHER",
120
- UNKNOWN_OPERATION = "UNKNOWN_OPERATION",
121
- }
122
+ export declare const ValidationExceptionReason: {
123
+ readonly CANNOT_PARSE: "CANNOT_PARSE";
124
+ readonly ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR";
125
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
126
+ readonly OTHER: "OTHER";
127
+ readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
128
+ };
129
+ export type ValidationExceptionReason =
130
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
122
131
  export declare class ValidationException extends __BaseException {
123
132
  readonly name: "ValidationException";
124
133
  readonly $fault: "client";
@@ -140,26 +149,30 @@ export interface CopyPackageVersionsRequest {
140
149
  allowOverwrite?: boolean;
141
150
  includeFromUpstream?: boolean;
142
151
  }
143
- export declare enum PackageVersionErrorCode {
144
- ALREADY_EXISTS = "ALREADY_EXISTS",
145
- MISMATCHED_REVISION = "MISMATCHED_REVISION",
146
- MISMATCHED_STATUS = "MISMATCHED_STATUS",
147
- NOT_ALLOWED = "NOT_ALLOWED",
148
- NOT_FOUND = "NOT_FOUND",
149
- SKIPPED = "SKIPPED",
150
- }
152
+ export declare const PackageVersionErrorCode: {
153
+ readonly ALREADY_EXISTS: "ALREADY_EXISTS";
154
+ readonly MISMATCHED_REVISION: "MISMATCHED_REVISION";
155
+ readonly MISMATCHED_STATUS: "MISMATCHED_STATUS";
156
+ readonly NOT_ALLOWED: "NOT_ALLOWED";
157
+ readonly NOT_FOUND: "NOT_FOUND";
158
+ readonly SKIPPED: "SKIPPED";
159
+ };
160
+ export type PackageVersionErrorCode =
161
+ (typeof PackageVersionErrorCode)[keyof typeof PackageVersionErrorCode];
151
162
  export interface PackageVersionError {
152
163
  errorCode?: PackageVersionErrorCode | string;
153
164
  errorMessage?: string;
154
165
  }
155
- export declare enum PackageVersionStatus {
156
- ARCHIVED = "Archived",
157
- DELETED = "Deleted",
158
- DISPOSED = "Disposed",
159
- PUBLISHED = "Published",
160
- UNFINISHED = "Unfinished",
161
- UNLISTED = "Unlisted",
162
- }
166
+ export declare const PackageVersionStatus: {
167
+ readonly ARCHIVED: "Archived";
168
+ readonly DELETED: "Deleted";
169
+ readonly DISPOSED: "Disposed";
170
+ readonly PUBLISHED: "Published";
171
+ readonly UNFINISHED: "Unfinished";
172
+ readonly UNLISTED: "Unlisted";
173
+ };
174
+ export type PackageVersionStatus =
175
+ (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus];
163
176
  export interface SuccessfulPackageVersionInfo {
164
177
  revision?: string;
165
178
  status?: PackageVersionStatus | string;
@@ -177,10 +190,11 @@ export interface CreateDomainRequest {
177
190
  encryptionKey?: string;
178
191
  tags?: Tag[];
179
192
  }
180
- export declare enum DomainStatus {
181
- ACTIVE = "Active",
182
- DELETED = "Deleted",
183
- }
193
+ export declare const DomainStatus: {
194
+ readonly ACTIVE: "Active";
195
+ readonly DELETED: "Deleted";
196
+ };
197
+ export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus];
184
198
  export interface DomainDescription {
185
199
  name?: string;
186
200
  owner?: string;
@@ -325,11 +339,13 @@ export interface DomainEntryPoint {
325
339
  repositoryName?: string;
326
340
  externalConnectionName?: string;
327
341
  }
328
- export declare enum PackageVersionOriginType {
329
- EXTERNAL = "EXTERNAL",
330
- INTERNAL = "INTERNAL",
331
- UNKNOWN = "UNKNOWN",
332
- }
342
+ export declare const PackageVersionOriginType: {
343
+ readonly EXTERNAL: "EXTERNAL";
344
+ readonly INTERNAL: "INTERNAL";
345
+ readonly UNKNOWN: "UNKNOWN";
346
+ };
347
+ export type PackageVersionOriginType =
348
+ (typeof PackageVersionOriginType)[keyof typeof PackageVersionOriginType];
333
349
  export interface PackageVersionOrigin {
334
350
  domainEntryPoint?: DomainEntryPoint;
335
351
  originType?: PackageVersionOriginType | string;
@@ -528,9 +544,11 @@ export interface ListPackageVersionDependenciesResult {
528
544
  nextToken?: string;
529
545
  dependencies?: PackageDependency[];
530
546
  }
531
- export declare enum PackageVersionSortType {
532
- PUBLISHED_TIME = "PUBLISHED_TIME",
533
- }
547
+ export declare const PackageVersionSortType: {
548
+ readonly PUBLISHED_TIME: "PUBLISHED_TIME";
549
+ };
550
+ export type PackageVersionSortType =
551
+ (typeof PackageVersionSortType)[keyof typeof PackageVersionSortType];
534
552
  export interface ListPackageVersionsRequest {
535
553
  domain: string | undefined;
536
554
  domainOwner?: 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.301.0",
4
+ "version": "3.306.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",
@@ -21,44 +21,44 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-stream-browser": "3.296.0",
54
- "@aws-sdk/util-stream-node": "3.296.0",
55
- "@aws-sdk/util-user-agent-browser": "3.299.0",
56
- "@aws-sdk/util-user-agent-node": "3.300.0",
57
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-stream-browser": "3.306.0",
54
+ "@aws-sdk/util-stream-node": "3.306.0",
55
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
56
+ "@aws-sdk/util-user-agent-node": "3.306.0",
57
+ "@aws-sdk/util-utf8": "3.303.0",
58
58
  "tslib": "^2.5.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "concurrently": "7.0.0",