@aws-sdk/client-codeartifact 3.934.0 → 3.935.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 +12 -12
- 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
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AllowPublish: {
|
|
6
|
+
readonly ALLOW: "ALLOW";
|
|
7
|
+
readonly BLOCK: "BLOCK";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type AllowPublish = (typeof AllowPublish)[keyof typeof AllowPublish];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const AllowUpstream: {
|
|
18
|
+
readonly ALLOW: "ALLOW";
|
|
19
|
+
readonly BLOCK: "BLOCK";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type AllowUpstream = (typeof AllowUpstream)[keyof typeof AllowUpstream];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const HashAlgorithm: {
|
|
30
|
+
readonly MD5: "MD5";
|
|
31
|
+
readonly SHA1: "SHA-1";
|
|
32
|
+
readonly SHA256: "SHA-256";
|
|
33
|
+
readonly SHA512: "SHA-512";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type HashAlgorithm = (typeof HashAlgorithm)[keyof typeof HashAlgorithm];
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @enum
|
|
42
|
+
*/
|
|
43
|
+
export declare const PackageGroupAssociationType: {
|
|
44
|
+
readonly STRONG: "STRONG";
|
|
45
|
+
readonly WEAK: "WEAK";
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export type PackageGroupAssociationType = (typeof PackageGroupAssociationType)[keyof typeof PackageGroupAssociationType];
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
* @enum
|
|
54
|
+
*/
|
|
55
|
+
export declare const PackageFormat: {
|
|
56
|
+
readonly CARGO: "cargo";
|
|
57
|
+
readonly GENERIC: "generic";
|
|
58
|
+
readonly MAVEN: "maven";
|
|
59
|
+
readonly NPM: "npm";
|
|
60
|
+
readonly NUGET: "nuget";
|
|
61
|
+
readonly PYPI: "pypi";
|
|
62
|
+
readonly RUBY: "ruby";
|
|
63
|
+
readonly SWIFT: "swift";
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type PackageFormat = (typeof PackageFormat)[keyof typeof PackageFormat];
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* @enum
|
|
72
|
+
*/
|
|
73
|
+
export declare const ExternalConnectionStatus: {
|
|
74
|
+
readonly AVAILABLE: "Available";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export type ExternalConnectionStatus = (typeof ExternalConnectionStatus)[keyof typeof ExternalConnectionStatus];
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
* @enum
|
|
83
|
+
*/
|
|
84
|
+
export declare const ResourceType: {
|
|
85
|
+
readonly ASSET: "asset";
|
|
86
|
+
readonly DOMAIN: "domain";
|
|
87
|
+
readonly PACKAGE: "package";
|
|
88
|
+
readonly PACKAGE_VERSION: "package-version";
|
|
89
|
+
readonly REPOSITORY: "repository";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @enum
|
|
98
|
+
*/
|
|
99
|
+
export declare const ValidationExceptionReason: {
|
|
100
|
+
readonly CANNOT_PARSE: "CANNOT_PARSE";
|
|
101
|
+
readonly ENCRYPTION_KEY_ERROR: "ENCRYPTION_KEY_ERROR";
|
|
102
|
+
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
103
|
+
readonly OTHER: "OTHER";
|
|
104
|
+
readonly UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
* @enum
|
|
113
|
+
*/
|
|
114
|
+
export declare const PackageVersionErrorCode: {
|
|
115
|
+
readonly ALREADY_EXISTS: "ALREADY_EXISTS";
|
|
116
|
+
readonly MISMATCHED_REVISION: "MISMATCHED_REVISION";
|
|
117
|
+
readonly MISMATCHED_STATUS: "MISMATCHED_STATUS";
|
|
118
|
+
readonly NOT_ALLOWED: "NOT_ALLOWED";
|
|
119
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
120
|
+
readonly SKIPPED: "SKIPPED";
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export type PackageVersionErrorCode = (typeof PackageVersionErrorCode)[keyof typeof PackageVersionErrorCode];
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
* @enum
|
|
129
|
+
*/
|
|
130
|
+
export declare const PackageVersionStatus: {
|
|
131
|
+
readonly ARCHIVED: "Archived";
|
|
132
|
+
readonly DELETED: "Deleted";
|
|
133
|
+
readonly DISPOSED: "Disposed";
|
|
134
|
+
readonly PUBLISHED: "Published";
|
|
135
|
+
readonly UNFINISHED: "Unfinished";
|
|
136
|
+
readonly UNLISTED: "Unlisted";
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export type PackageVersionStatus = (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus];
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
* @enum
|
|
145
|
+
*/
|
|
146
|
+
export declare const DomainStatus: {
|
|
147
|
+
readonly ACTIVE: "Active";
|
|
148
|
+
readonly DELETED: "Deleted";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus];
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
* @enum
|
|
157
|
+
*/
|
|
158
|
+
export declare const PackageGroupOriginRestrictionType: {
|
|
159
|
+
readonly EXTERNAL_UPSTREAM: "EXTERNAL_UPSTREAM";
|
|
160
|
+
readonly INTERNAL_UPSTREAM: "INTERNAL_UPSTREAM";
|
|
161
|
+
readonly PUBLISH: "PUBLISH";
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export type PackageGroupOriginRestrictionType = (typeof PackageGroupOriginRestrictionType)[keyof typeof PackageGroupOriginRestrictionType];
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @enum
|
|
170
|
+
*/
|
|
171
|
+
export declare const PackageGroupOriginRestrictionMode: {
|
|
172
|
+
readonly ALLOW: "ALLOW";
|
|
173
|
+
readonly ALLOW_SPECIFIC_REPOSITORIES: "ALLOW_SPECIFIC_REPOSITORIES";
|
|
174
|
+
readonly BLOCK: "BLOCK";
|
|
175
|
+
readonly INHERIT: "INHERIT";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export type PackageGroupOriginRestrictionMode = (typeof PackageGroupOriginRestrictionMode)[keyof typeof PackageGroupOriginRestrictionMode];
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
* @enum
|
|
184
|
+
*/
|
|
185
|
+
export declare const PackageVersionOriginType: {
|
|
186
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
187
|
+
readonly INTERNAL: "INTERNAL";
|
|
188
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export type PackageVersionOriginType = (typeof PackageVersionOriginType)[keyof typeof PackageVersionOriginType];
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
* @enum
|
|
197
|
+
*/
|
|
198
|
+
export declare const EndpointType: {
|
|
199
|
+
readonly DUALSTACK: "dualstack";
|
|
200
|
+
readonly IPV4: "ipv4";
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export type EndpointType = (typeof EndpointType)[keyof typeof EndpointType];
|
|
206
|
+
/**
|
|
207
|
+
* @public
|
|
208
|
+
* @enum
|
|
209
|
+
*/
|
|
210
|
+
export declare const PackageVersionSortType: {
|
|
211
|
+
readonly PUBLISHED_TIME: "PUBLISHED_TIME";
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
export type PackageVersionSortType = (typeof PackageVersionSortType)[keyof typeof PackageVersionSortType];
|
|
217
|
+
/**
|
|
218
|
+
* @public
|
|
219
|
+
* @enum
|
|
220
|
+
*/
|
|
221
|
+
export declare const PackageGroupAllowedRepositoryUpdateType: {
|
|
222
|
+
readonly ADDED: "ADDED";
|
|
223
|
+
readonly REMOVED: "REMOVED";
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
export type PackageGroupAllowedRepositoryUpdateType = (typeof PackageGroupAllowedRepositoryUpdateType)[keyof typeof PackageGroupAllowedRepositoryUpdateType];
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CodeartifactServiceException as __BaseException } from "./CodeartifactServiceException";
|
|
3
|
+
import { ResourceType, ValidationExceptionReason } from "./enums";
|
|
4
|
+
/**
|
|
5
|
+
* <p>
|
|
6
|
+
* The operation did not succeed because of an unauthorized access attempt.
|
|
7
|
+
* </p>
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
11
|
+
readonly name: "AccessDeniedException";
|
|
12
|
+
readonly $fault: "client";
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>
|
|
20
|
+
* The operation did not succeed because prerequisites are not met.
|
|
21
|
+
* </p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class ConflictException extends __BaseException {
|
|
25
|
+
readonly name: "ConflictException";
|
|
26
|
+
readonly $fault: "client";
|
|
27
|
+
/**
|
|
28
|
+
* <p>
|
|
29
|
+
* The ID of the resource.
|
|
30
|
+
* </p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
resourceId?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* <p>
|
|
36
|
+
* The type of Amazon Web Services resource.
|
|
37
|
+
* </p>
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
resourceType?: ResourceType | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export declare class InternalServerException extends __BaseException {
|
|
51
|
+
readonly name: "InternalServerException";
|
|
52
|
+
readonly $fault: "server";
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* <p>
|
|
60
|
+
* The operation did not succeed because the resource requested is not found in the service.
|
|
61
|
+
* </p>
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
65
|
+
readonly name: "ResourceNotFoundException";
|
|
66
|
+
readonly $fault: "client";
|
|
67
|
+
/**
|
|
68
|
+
* <p>
|
|
69
|
+
* The ID of the resource.
|
|
70
|
+
* </p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
resourceId?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* <p>
|
|
76
|
+
* The type of Amazon Web Services resource.
|
|
77
|
+
* </p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
resourceType?: ResourceType | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* <p>
|
|
88
|
+
* The operation did not succeed because it would have exceeded a service limit for your account.
|
|
89
|
+
* </p>
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
93
|
+
readonly name: "ServiceQuotaExceededException";
|
|
94
|
+
readonly $fault: "client";
|
|
95
|
+
/**
|
|
96
|
+
* <p>
|
|
97
|
+
* The ID of the resource.
|
|
98
|
+
* </p>
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
resourceId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* <p>
|
|
104
|
+
* The type of Amazon Web Services resource.
|
|
105
|
+
* </p>
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
resourceType?: ResourceType | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* <p>
|
|
116
|
+
* The operation did not succeed because too many requests are sent to the service.
|
|
117
|
+
* </p>
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export declare class ThrottlingException extends __BaseException {
|
|
121
|
+
readonly name: "ThrottlingException";
|
|
122
|
+
readonly $fault: "client";
|
|
123
|
+
/**
|
|
124
|
+
* <p>
|
|
125
|
+
* The time period, in seconds, to wait before retrying the request.
|
|
126
|
+
* </p>
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
retryAfterSeconds?: number | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* <p>
|
|
137
|
+
* The operation did not succeed because a parameter in the request was sent with an invalid value.
|
|
138
|
+
* </p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export declare class ValidationException extends __BaseException {
|
|
142
|
+
readonly name: "ValidationException";
|
|
143
|
+
readonly $fault: "client";
|
|
144
|
+
/**
|
|
145
|
+
* <p>
|
|
146
|
+
*
|
|
147
|
+
* </p>
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
reason?: ValidationExceptionReason | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
155
|
+
}
|