@aws-sdk/client-codeartifact 3.934.0 → 3.936.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 +93 -92
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +92 -0
- package/dist-es/models/errors.js +101 -0
- package/dist-es/models/models_0.js +1 -193
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +228 -0
- package/dist-types/models/errors.d.ts +155 -0
- package/dist-types/models/models_0.d.ts +1 -382
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +119 -0
- package/dist-types/ts3.4/models/errors.d.ts +58 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -176
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -129,44 +129,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends CodeartifactSe
|
|
|
129
129
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
const AllowPublish = {
|
|
133
|
-
ALLOW: "ALLOW",
|
|
134
|
-
BLOCK: "BLOCK",
|
|
135
|
-
};
|
|
136
|
-
const AllowUpstream = {
|
|
137
|
-
ALLOW: "ALLOW",
|
|
138
|
-
BLOCK: "BLOCK",
|
|
139
|
-
};
|
|
140
|
-
const HashAlgorithm = {
|
|
141
|
-
MD5: "MD5",
|
|
142
|
-
SHA1: "SHA-1",
|
|
143
|
-
SHA256: "SHA-256",
|
|
144
|
-
SHA512: "SHA-512",
|
|
145
|
-
};
|
|
146
|
-
const PackageGroupAssociationType = {
|
|
147
|
-
STRONG: "STRONG",
|
|
148
|
-
WEAK: "WEAK",
|
|
149
|
-
};
|
|
150
|
-
const PackageFormat = {
|
|
151
|
-
CARGO: "cargo",
|
|
152
|
-
GENERIC: "generic",
|
|
153
|
-
MAVEN: "maven",
|
|
154
|
-
NPM: "npm",
|
|
155
|
-
NUGET: "nuget",
|
|
156
|
-
PYPI: "pypi",
|
|
157
|
-
RUBY: "ruby",
|
|
158
|
-
SWIFT: "swift",
|
|
159
|
-
};
|
|
160
|
-
const ExternalConnectionStatus = {
|
|
161
|
-
AVAILABLE: "Available",
|
|
162
|
-
};
|
|
163
|
-
const ResourceType = {
|
|
164
|
-
ASSET: "asset",
|
|
165
|
-
DOMAIN: "domain",
|
|
166
|
-
PACKAGE: "package",
|
|
167
|
-
PACKAGE_VERSION: "package-version",
|
|
168
|
-
REPOSITORY: "repository",
|
|
169
|
-
};
|
|
170
132
|
let ConflictException$1 = class ConflictException extends CodeartifactServiceException$1 {
|
|
171
133
|
name = "ConflictException";
|
|
172
134
|
$fault = "client";
|
|
@@ -241,13 +203,6 @@ let ThrottlingException$1 = class ThrottlingException extends CodeartifactServic
|
|
|
241
203
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
242
204
|
}
|
|
243
205
|
};
|
|
244
|
-
const ValidationExceptionReason = {
|
|
245
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
246
|
-
ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
|
|
247
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
248
|
-
OTHER: "OTHER",
|
|
249
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
250
|
-
};
|
|
251
206
|
let ValidationException$1 = class ValidationException extends CodeartifactServiceException$1 {
|
|
252
207
|
name = "ValidationException";
|
|
253
208
|
$fault = "client";
|
|
@@ -262,53 +217,6 @@ let ValidationException$1 = class ValidationException extends CodeartifactServic
|
|
|
262
217
|
this.reason = opts.reason;
|
|
263
218
|
}
|
|
264
219
|
};
|
|
265
|
-
const PackageVersionErrorCode = {
|
|
266
|
-
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
267
|
-
MISMATCHED_REVISION: "MISMATCHED_REVISION",
|
|
268
|
-
MISMATCHED_STATUS: "MISMATCHED_STATUS",
|
|
269
|
-
NOT_ALLOWED: "NOT_ALLOWED",
|
|
270
|
-
NOT_FOUND: "NOT_FOUND",
|
|
271
|
-
SKIPPED: "SKIPPED",
|
|
272
|
-
};
|
|
273
|
-
const PackageVersionStatus = {
|
|
274
|
-
ARCHIVED: "Archived",
|
|
275
|
-
DELETED: "Deleted",
|
|
276
|
-
DISPOSED: "Disposed",
|
|
277
|
-
PUBLISHED: "Published",
|
|
278
|
-
UNFINISHED: "Unfinished",
|
|
279
|
-
UNLISTED: "Unlisted",
|
|
280
|
-
};
|
|
281
|
-
const DomainStatus = {
|
|
282
|
-
ACTIVE: "Active",
|
|
283
|
-
DELETED: "Deleted",
|
|
284
|
-
};
|
|
285
|
-
const PackageGroupOriginRestrictionType = {
|
|
286
|
-
EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM",
|
|
287
|
-
INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM",
|
|
288
|
-
PUBLISH: "PUBLISH",
|
|
289
|
-
};
|
|
290
|
-
const PackageGroupOriginRestrictionMode = {
|
|
291
|
-
ALLOW: "ALLOW",
|
|
292
|
-
ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES",
|
|
293
|
-
BLOCK: "BLOCK",
|
|
294
|
-
INHERIT: "INHERIT",
|
|
295
|
-
};
|
|
296
|
-
const PackageVersionOriginType = {
|
|
297
|
-
EXTERNAL: "EXTERNAL",
|
|
298
|
-
INTERNAL: "INTERNAL",
|
|
299
|
-
UNKNOWN: "UNKNOWN",
|
|
300
|
-
};
|
|
301
|
-
const EndpointType = {
|
|
302
|
-
DUALSTACK: "dualstack",
|
|
303
|
-
IPV4: "ipv4",
|
|
304
|
-
};
|
|
305
|
-
const PackageVersionSortType = {
|
|
306
|
-
PUBLISHED_TIME: "PUBLISHED_TIME",
|
|
307
|
-
};
|
|
308
|
-
const PackageGroupAllowedRepositoryUpdateType = {
|
|
309
|
-
ADDED: "ADDED",
|
|
310
|
-
REMOVED: "REMOVED",
|
|
311
|
-
};
|
|
312
220
|
|
|
313
221
|
const _A = "Asset";
|
|
314
222
|
const _ADE = "AccessDeniedException";
|
|
@@ -4020,6 +3928,99 @@ const paginateListRepositories = core.createPaginator(CodeartifactClient, ListRe
|
|
|
4020
3928
|
|
|
4021
3929
|
const paginateListSubPackageGroups = core.createPaginator(CodeartifactClient, ListSubPackageGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
4022
3930
|
|
|
3931
|
+
const AllowPublish = {
|
|
3932
|
+
ALLOW: "ALLOW",
|
|
3933
|
+
BLOCK: "BLOCK",
|
|
3934
|
+
};
|
|
3935
|
+
const AllowUpstream = {
|
|
3936
|
+
ALLOW: "ALLOW",
|
|
3937
|
+
BLOCK: "BLOCK",
|
|
3938
|
+
};
|
|
3939
|
+
const HashAlgorithm = {
|
|
3940
|
+
MD5: "MD5",
|
|
3941
|
+
SHA1: "SHA-1",
|
|
3942
|
+
SHA256: "SHA-256",
|
|
3943
|
+
SHA512: "SHA-512",
|
|
3944
|
+
};
|
|
3945
|
+
const PackageGroupAssociationType = {
|
|
3946
|
+
STRONG: "STRONG",
|
|
3947
|
+
WEAK: "WEAK",
|
|
3948
|
+
};
|
|
3949
|
+
const PackageFormat = {
|
|
3950
|
+
CARGO: "cargo",
|
|
3951
|
+
GENERIC: "generic",
|
|
3952
|
+
MAVEN: "maven",
|
|
3953
|
+
NPM: "npm",
|
|
3954
|
+
NUGET: "nuget",
|
|
3955
|
+
PYPI: "pypi",
|
|
3956
|
+
RUBY: "ruby",
|
|
3957
|
+
SWIFT: "swift",
|
|
3958
|
+
};
|
|
3959
|
+
const ExternalConnectionStatus = {
|
|
3960
|
+
AVAILABLE: "Available",
|
|
3961
|
+
};
|
|
3962
|
+
const ResourceType = {
|
|
3963
|
+
ASSET: "asset",
|
|
3964
|
+
DOMAIN: "domain",
|
|
3965
|
+
PACKAGE: "package",
|
|
3966
|
+
PACKAGE_VERSION: "package-version",
|
|
3967
|
+
REPOSITORY: "repository",
|
|
3968
|
+
};
|
|
3969
|
+
const ValidationExceptionReason = {
|
|
3970
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
3971
|
+
ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
|
|
3972
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
3973
|
+
OTHER: "OTHER",
|
|
3974
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
3975
|
+
};
|
|
3976
|
+
const PackageVersionErrorCode = {
|
|
3977
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
3978
|
+
MISMATCHED_REVISION: "MISMATCHED_REVISION",
|
|
3979
|
+
MISMATCHED_STATUS: "MISMATCHED_STATUS",
|
|
3980
|
+
NOT_ALLOWED: "NOT_ALLOWED",
|
|
3981
|
+
NOT_FOUND: "NOT_FOUND",
|
|
3982
|
+
SKIPPED: "SKIPPED",
|
|
3983
|
+
};
|
|
3984
|
+
const PackageVersionStatus = {
|
|
3985
|
+
ARCHIVED: "Archived",
|
|
3986
|
+
DELETED: "Deleted",
|
|
3987
|
+
DISPOSED: "Disposed",
|
|
3988
|
+
PUBLISHED: "Published",
|
|
3989
|
+
UNFINISHED: "Unfinished",
|
|
3990
|
+
UNLISTED: "Unlisted",
|
|
3991
|
+
};
|
|
3992
|
+
const DomainStatus = {
|
|
3993
|
+
ACTIVE: "Active",
|
|
3994
|
+
DELETED: "Deleted",
|
|
3995
|
+
};
|
|
3996
|
+
const PackageGroupOriginRestrictionType = {
|
|
3997
|
+
EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM",
|
|
3998
|
+
INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM",
|
|
3999
|
+
PUBLISH: "PUBLISH",
|
|
4000
|
+
};
|
|
4001
|
+
const PackageGroupOriginRestrictionMode = {
|
|
4002
|
+
ALLOW: "ALLOW",
|
|
4003
|
+
ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES",
|
|
4004
|
+
BLOCK: "BLOCK",
|
|
4005
|
+
INHERIT: "INHERIT",
|
|
4006
|
+
};
|
|
4007
|
+
const PackageVersionOriginType = {
|
|
4008
|
+
EXTERNAL: "EXTERNAL",
|
|
4009
|
+
INTERNAL: "INTERNAL",
|
|
4010
|
+
UNKNOWN: "UNKNOWN",
|
|
4011
|
+
};
|
|
4012
|
+
const EndpointType = {
|
|
4013
|
+
DUALSTACK: "dualstack",
|
|
4014
|
+
IPV4: "ipv4",
|
|
4015
|
+
};
|
|
4016
|
+
const PackageVersionSortType = {
|
|
4017
|
+
PUBLISHED_TIME: "PUBLISHED_TIME",
|
|
4018
|
+
};
|
|
4019
|
+
const PackageGroupAllowedRepositoryUpdateType = {
|
|
4020
|
+
ADDED: "ADDED",
|
|
4021
|
+
REMOVED: "REMOVED",
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4023
4024
|
Object.defineProperty(exports, "$Command", {
|
|
4024
4025
|
enumerable: true,
|
|
4025
4026
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./CodeartifactClient";
|
|
|
2
2
|
export * from "./Codeartifact";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { CodeartifactServiceException } from "./models/CodeartifactServiceException";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export const AllowPublish = {
|
|
2
|
+
ALLOW: "ALLOW",
|
|
3
|
+
BLOCK: "BLOCK",
|
|
4
|
+
};
|
|
5
|
+
export const AllowUpstream = {
|
|
6
|
+
ALLOW: "ALLOW",
|
|
7
|
+
BLOCK: "BLOCK",
|
|
8
|
+
};
|
|
9
|
+
export const HashAlgorithm = {
|
|
10
|
+
MD5: "MD5",
|
|
11
|
+
SHA1: "SHA-1",
|
|
12
|
+
SHA256: "SHA-256",
|
|
13
|
+
SHA512: "SHA-512",
|
|
14
|
+
};
|
|
15
|
+
export const PackageGroupAssociationType = {
|
|
16
|
+
STRONG: "STRONG",
|
|
17
|
+
WEAK: "WEAK",
|
|
18
|
+
};
|
|
19
|
+
export const PackageFormat = {
|
|
20
|
+
CARGO: "cargo",
|
|
21
|
+
GENERIC: "generic",
|
|
22
|
+
MAVEN: "maven",
|
|
23
|
+
NPM: "npm",
|
|
24
|
+
NUGET: "nuget",
|
|
25
|
+
PYPI: "pypi",
|
|
26
|
+
RUBY: "ruby",
|
|
27
|
+
SWIFT: "swift",
|
|
28
|
+
};
|
|
29
|
+
export const ExternalConnectionStatus = {
|
|
30
|
+
AVAILABLE: "Available",
|
|
31
|
+
};
|
|
32
|
+
export const ResourceType = {
|
|
33
|
+
ASSET: "asset",
|
|
34
|
+
DOMAIN: "domain",
|
|
35
|
+
PACKAGE: "package",
|
|
36
|
+
PACKAGE_VERSION: "package-version",
|
|
37
|
+
REPOSITORY: "repository",
|
|
38
|
+
};
|
|
39
|
+
export const ValidationExceptionReason = {
|
|
40
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
41
|
+
ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
|
|
42
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
43
|
+
OTHER: "OTHER",
|
|
44
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
45
|
+
};
|
|
46
|
+
export const PackageVersionErrorCode = {
|
|
47
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
48
|
+
MISMATCHED_REVISION: "MISMATCHED_REVISION",
|
|
49
|
+
MISMATCHED_STATUS: "MISMATCHED_STATUS",
|
|
50
|
+
NOT_ALLOWED: "NOT_ALLOWED",
|
|
51
|
+
NOT_FOUND: "NOT_FOUND",
|
|
52
|
+
SKIPPED: "SKIPPED",
|
|
53
|
+
};
|
|
54
|
+
export const PackageVersionStatus = {
|
|
55
|
+
ARCHIVED: "Archived",
|
|
56
|
+
DELETED: "Deleted",
|
|
57
|
+
DISPOSED: "Disposed",
|
|
58
|
+
PUBLISHED: "Published",
|
|
59
|
+
UNFINISHED: "Unfinished",
|
|
60
|
+
UNLISTED: "Unlisted",
|
|
61
|
+
};
|
|
62
|
+
export const DomainStatus = {
|
|
63
|
+
ACTIVE: "Active",
|
|
64
|
+
DELETED: "Deleted",
|
|
65
|
+
};
|
|
66
|
+
export const PackageGroupOriginRestrictionType = {
|
|
67
|
+
EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM",
|
|
68
|
+
INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM",
|
|
69
|
+
PUBLISH: "PUBLISH",
|
|
70
|
+
};
|
|
71
|
+
export const PackageGroupOriginRestrictionMode = {
|
|
72
|
+
ALLOW: "ALLOW",
|
|
73
|
+
ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES",
|
|
74
|
+
BLOCK: "BLOCK",
|
|
75
|
+
INHERIT: "INHERIT",
|
|
76
|
+
};
|
|
77
|
+
export const PackageVersionOriginType = {
|
|
78
|
+
EXTERNAL: "EXTERNAL",
|
|
79
|
+
INTERNAL: "INTERNAL",
|
|
80
|
+
UNKNOWN: "UNKNOWN",
|
|
81
|
+
};
|
|
82
|
+
export const EndpointType = {
|
|
83
|
+
DUALSTACK: "dualstack",
|
|
84
|
+
IPV4: "ipv4",
|
|
85
|
+
};
|
|
86
|
+
export const PackageVersionSortType = {
|
|
87
|
+
PUBLISHED_TIME: "PUBLISHED_TIME",
|
|
88
|
+
};
|
|
89
|
+
export const PackageGroupAllowedRepositoryUpdateType = {
|
|
90
|
+
ADDED: "ADDED",
|
|
91
|
+
REMOVED: "REMOVED",
|
|
92
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CodeartifactServiceException as __BaseException } from "./CodeartifactServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
resourceId;
|
|
18
|
+
resourceType;
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
+
this.resourceId = opts.resourceId;
|
|
27
|
+
this.resourceType = opts.resourceType;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServerException extends __BaseException {
|
|
31
|
+
name = "InternalServerException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
constructor(opts) {
|
|
34
|
+
super({
|
|
35
|
+
name: "InternalServerException",
|
|
36
|
+
$fault: "server",
|
|
37
|
+
...opts,
|
|
38
|
+
});
|
|
39
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
43
|
+
name = "ResourceNotFoundException";
|
|
44
|
+
$fault = "client";
|
|
45
|
+
resourceId;
|
|
46
|
+
resourceType;
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ResourceNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
54
|
+
this.resourceId = opts.resourceId;
|
|
55
|
+
this.resourceType = opts.resourceType;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
59
|
+
name = "ServiceQuotaExceededException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
resourceId;
|
|
62
|
+
resourceType;
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "ServiceQuotaExceededException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
70
|
+
this.resourceId = opts.resourceId;
|
|
71
|
+
this.resourceType = opts.resourceType;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class ThrottlingException extends __BaseException {
|
|
75
|
+
name = "ThrottlingException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
retryAfterSeconds;
|
|
78
|
+
constructor(opts) {
|
|
79
|
+
super({
|
|
80
|
+
name: "ThrottlingException",
|
|
81
|
+
$fault: "client",
|
|
82
|
+
...opts,
|
|
83
|
+
});
|
|
84
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
85
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export class ValidationException extends __BaseException {
|
|
89
|
+
name = "ValidationException";
|
|
90
|
+
$fault = "client";
|
|
91
|
+
reason;
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "ValidationException",
|
|
95
|
+
$fault: "client",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
99
|
+
this.reason = opts.reason;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -1,193 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
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 PackageGroupAssociationType = {
|
|
29
|
-
STRONG: "STRONG",
|
|
30
|
-
WEAK: "WEAK",
|
|
31
|
-
};
|
|
32
|
-
export const PackageFormat = {
|
|
33
|
-
CARGO: "cargo",
|
|
34
|
-
GENERIC: "generic",
|
|
35
|
-
MAVEN: "maven",
|
|
36
|
-
NPM: "npm",
|
|
37
|
-
NUGET: "nuget",
|
|
38
|
-
PYPI: "pypi",
|
|
39
|
-
RUBY: "ruby",
|
|
40
|
-
SWIFT: "swift",
|
|
41
|
-
};
|
|
42
|
-
export const ExternalConnectionStatus = {
|
|
43
|
-
AVAILABLE: "Available",
|
|
44
|
-
};
|
|
45
|
-
export const ResourceType = {
|
|
46
|
-
ASSET: "asset",
|
|
47
|
-
DOMAIN: "domain",
|
|
48
|
-
PACKAGE: "package",
|
|
49
|
-
PACKAGE_VERSION: "package-version",
|
|
50
|
-
REPOSITORY: "repository",
|
|
51
|
-
};
|
|
52
|
-
export class ConflictException extends __BaseException {
|
|
53
|
-
name = "ConflictException";
|
|
54
|
-
$fault = "client";
|
|
55
|
-
resourceId;
|
|
56
|
-
resourceType;
|
|
57
|
-
constructor(opts) {
|
|
58
|
-
super({
|
|
59
|
-
name: "ConflictException",
|
|
60
|
-
$fault: "client",
|
|
61
|
-
...opts,
|
|
62
|
-
});
|
|
63
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
64
|
-
this.resourceId = opts.resourceId;
|
|
65
|
-
this.resourceType = opts.resourceType;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export class InternalServerException extends __BaseException {
|
|
69
|
-
name = "InternalServerException";
|
|
70
|
-
$fault = "server";
|
|
71
|
-
constructor(opts) {
|
|
72
|
-
super({
|
|
73
|
-
name: "InternalServerException",
|
|
74
|
-
$fault: "server",
|
|
75
|
-
...opts,
|
|
76
|
-
});
|
|
77
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
81
|
-
name = "ResourceNotFoundException";
|
|
82
|
-
$fault = "client";
|
|
83
|
-
resourceId;
|
|
84
|
-
resourceType;
|
|
85
|
-
constructor(opts) {
|
|
86
|
-
super({
|
|
87
|
-
name: "ResourceNotFoundException",
|
|
88
|
-
$fault: "client",
|
|
89
|
-
...opts,
|
|
90
|
-
});
|
|
91
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
92
|
-
this.resourceId = opts.resourceId;
|
|
93
|
-
this.resourceType = opts.resourceType;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
97
|
-
name = "ServiceQuotaExceededException";
|
|
98
|
-
$fault = "client";
|
|
99
|
-
resourceId;
|
|
100
|
-
resourceType;
|
|
101
|
-
constructor(opts) {
|
|
102
|
-
super({
|
|
103
|
-
name: "ServiceQuotaExceededException",
|
|
104
|
-
$fault: "client",
|
|
105
|
-
...opts,
|
|
106
|
-
});
|
|
107
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
108
|
-
this.resourceId = opts.resourceId;
|
|
109
|
-
this.resourceType = opts.resourceType;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
export class ThrottlingException extends __BaseException {
|
|
113
|
-
name = "ThrottlingException";
|
|
114
|
-
$fault = "client";
|
|
115
|
-
retryAfterSeconds;
|
|
116
|
-
constructor(opts) {
|
|
117
|
-
super({
|
|
118
|
-
name: "ThrottlingException",
|
|
119
|
-
$fault: "client",
|
|
120
|
-
...opts,
|
|
121
|
-
});
|
|
122
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
123
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
export const ValidationExceptionReason = {
|
|
127
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
128
|
-
ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR",
|
|
129
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
130
|
-
OTHER: "OTHER",
|
|
131
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
132
|
-
};
|
|
133
|
-
export class ValidationException extends __BaseException {
|
|
134
|
-
name = "ValidationException";
|
|
135
|
-
$fault = "client";
|
|
136
|
-
reason;
|
|
137
|
-
constructor(opts) {
|
|
138
|
-
super({
|
|
139
|
-
name: "ValidationException",
|
|
140
|
-
$fault: "client",
|
|
141
|
-
...opts,
|
|
142
|
-
});
|
|
143
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
144
|
-
this.reason = opts.reason;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
export const PackageVersionErrorCode = {
|
|
148
|
-
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
149
|
-
MISMATCHED_REVISION: "MISMATCHED_REVISION",
|
|
150
|
-
MISMATCHED_STATUS: "MISMATCHED_STATUS",
|
|
151
|
-
NOT_ALLOWED: "NOT_ALLOWED",
|
|
152
|
-
NOT_FOUND: "NOT_FOUND",
|
|
153
|
-
SKIPPED: "SKIPPED",
|
|
154
|
-
};
|
|
155
|
-
export const PackageVersionStatus = {
|
|
156
|
-
ARCHIVED: "Archived",
|
|
157
|
-
DELETED: "Deleted",
|
|
158
|
-
DISPOSED: "Disposed",
|
|
159
|
-
PUBLISHED: "Published",
|
|
160
|
-
UNFINISHED: "Unfinished",
|
|
161
|
-
UNLISTED: "Unlisted",
|
|
162
|
-
};
|
|
163
|
-
export const DomainStatus = {
|
|
164
|
-
ACTIVE: "Active",
|
|
165
|
-
DELETED: "Deleted",
|
|
166
|
-
};
|
|
167
|
-
export const PackageGroupOriginRestrictionType = {
|
|
168
|
-
EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM",
|
|
169
|
-
INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM",
|
|
170
|
-
PUBLISH: "PUBLISH",
|
|
171
|
-
};
|
|
172
|
-
export const PackageGroupOriginRestrictionMode = {
|
|
173
|
-
ALLOW: "ALLOW",
|
|
174
|
-
ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES",
|
|
175
|
-
BLOCK: "BLOCK",
|
|
176
|
-
INHERIT: "INHERIT",
|
|
177
|
-
};
|
|
178
|
-
export const PackageVersionOriginType = {
|
|
179
|
-
EXTERNAL: "EXTERNAL",
|
|
180
|
-
INTERNAL: "INTERNAL",
|
|
181
|
-
UNKNOWN: "UNKNOWN",
|
|
182
|
-
};
|
|
183
|
-
export const EndpointType = {
|
|
184
|
-
DUALSTACK: "dualstack",
|
|
185
|
-
IPV4: "ipv4",
|
|
186
|
-
};
|
|
187
|
-
export const PackageVersionSortType = {
|
|
188
|
-
PUBLISHED_TIME: "PUBLISHED_TIME",
|
|
189
|
-
};
|
|
190
|
-
export const PackageGroupAllowedRepositoryUpdateType = {
|
|
191
|
-
ADDED: "ADDED",
|
|
192
|
-
REMOVED: "REMOVED",
|
|
193
|
-
};
|
|
1
|
+
export {};
|
|
@@ -341,7 +341,7 @@ const _xacs = "x-amz-content-sha256";
|
|
|
341
341
|
const n0 = "com.amazonaws.codeartifact";
|
|
342
342
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
343
343
|
import { CodeartifactServiceException as __CodeartifactServiceException } from "../models/CodeartifactServiceException";
|
|
344
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/
|
|
344
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
|
|
345
345
|
export var Asset = [
|
|
346
346
|
0,
|
|
347
347
|
n0,
|
package/dist-types/index.d.ts
CHANGED
|
@@ -353,5 +353,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
353
353
|
export type { CodeartifactExtensionConfiguration } from "./extensionConfiguration";
|
|
354
354
|
export * from "./commands";
|
|
355
355
|
export * from "./pagination";
|
|
356
|
-
export * from "./models";
|
|
356
|
+
export * from "./models/enums";
|
|
357
|
+
export * from "./models/errors";
|
|
358
|
+
export type * from "./models/models_0";
|
|
357
359
|
export { CodeartifactServiceException } from "./models/CodeartifactServiceException";
|