@aws-sdk/client-codeartifact 3.287.0 → 3.288.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/README.md +16 -0
- package/dist-cjs/Codeartifact.js +15 -0
- package/dist-cjs/commands/PublishPackageVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/protocols/Aws_restJson1.js +106 -2
- package/dist-es/Codeartifact.js +15 -0
- package/dist-es/commands/PublishPackageVersionCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +102 -0
- package/dist-types/Codeartifact.d.ts +20 -1
- package/dist-types/CodeartifactClient.d.ts +11 -2
- package/dist-types/commands/DeletePackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/PublishPackageVersionCommand.d.ts +58 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +194 -10
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Codeartifact.d.ts +17 -0
- package/dist-types/ts3.4/CodeartifactClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/PublishPackageVersionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +29 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
CodeartifactClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../CodeartifactClient";
|
|
14
|
+
import {
|
|
15
|
+
PublishPackageVersionRequest,
|
|
16
|
+
PublishPackageVersionResult,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
declare type PublishPackageVersionCommandInputType = Pick<
|
|
19
|
+
PublishPackageVersionRequest,
|
|
20
|
+
Exclude<keyof PublishPackageVersionRequest, "assetContent">
|
|
21
|
+
> & {
|
|
22
|
+
assetContent:
|
|
23
|
+
| PublishPackageVersionRequest["assetContent"]
|
|
24
|
+
| string
|
|
25
|
+
| Uint8Array
|
|
26
|
+
| Buffer;
|
|
27
|
+
};
|
|
28
|
+
export interface PublishPackageVersionCommandInput
|
|
29
|
+
extends PublishPackageVersionCommandInputType {}
|
|
30
|
+
export interface PublishPackageVersionCommandOutput
|
|
31
|
+
extends PublishPackageVersionResult,
|
|
32
|
+
__MetadataBearer {}
|
|
33
|
+
export declare class PublishPackageVersionCommand extends $Command<
|
|
34
|
+
PublishPackageVersionCommandInput,
|
|
35
|
+
PublishPackageVersionCommandOutput,
|
|
36
|
+
CodeartifactClientResolvedConfig
|
|
37
|
+
> {
|
|
38
|
+
readonly input: PublishPackageVersionCommandInput;
|
|
39
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
40
|
+
constructor(input: PublishPackageVersionCommandInput);
|
|
41
|
+
resolveMiddleware(
|
|
42
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
43
|
+
configuration: CodeartifactClientResolvedConfig,
|
|
44
|
+
options?: __HttpHandlerOptions
|
|
45
|
+
): Handler<
|
|
46
|
+
PublishPackageVersionCommandInput,
|
|
47
|
+
PublishPackageVersionCommandOutput
|
|
48
|
+
>;
|
|
49
|
+
private serialize;
|
|
50
|
+
private deserialize;
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -28,6 +28,7 @@ export * from "./ListPackagesCommand";
|
|
|
28
28
|
export * from "./ListRepositoriesCommand";
|
|
29
29
|
export * from "./ListRepositoriesInDomainCommand";
|
|
30
30
|
export * from "./ListTagsForResourceCommand";
|
|
31
|
+
export * from "./PublishPackageVersionCommand";
|
|
31
32
|
export * from "./PutDomainPermissionsPolicyCommand";
|
|
32
33
|
export * from "./PutPackageOriginConfigurationCommand";
|
|
33
34
|
export * from "./PutRepositoryPermissionsPolicyCommand";
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region?: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -34,6 +34,7 @@ export interface AssociateExternalConnectionRequest {
|
|
|
34
34
|
externalConnection: string | undefined;
|
|
35
35
|
}
|
|
36
36
|
export declare enum PackageFormat {
|
|
37
|
+
GENERIC = "generic",
|
|
37
38
|
MAVEN = "maven",
|
|
38
39
|
NPM = "npm",
|
|
39
40
|
NUGET = "nuget",
|
|
@@ -591,6 +592,28 @@ export interface ListTagsForResourceRequest {
|
|
|
591
592
|
export interface ListTagsForResourceResult {
|
|
592
593
|
tags?: Tag[];
|
|
593
594
|
}
|
|
595
|
+
export interface PublishPackageVersionRequest {
|
|
596
|
+
domain: string | undefined;
|
|
597
|
+
domainOwner?: string;
|
|
598
|
+
repository: string | undefined;
|
|
599
|
+
format: PackageFormat | string | undefined;
|
|
600
|
+
namespace?: string;
|
|
601
|
+
package: string | undefined;
|
|
602
|
+
packageVersion: string | undefined;
|
|
603
|
+
assetContent: Readable | ReadableStream | Blob | undefined;
|
|
604
|
+
assetName: string | undefined;
|
|
605
|
+
assetSHA256: string | undefined;
|
|
606
|
+
unfinished?: boolean;
|
|
607
|
+
}
|
|
608
|
+
export interface PublishPackageVersionResult {
|
|
609
|
+
format?: PackageFormat | string;
|
|
610
|
+
namespace?: string;
|
|
611
|
+
package?: string;
|
|
612
|
+
version?: string;
|
|
613
|
+
versionRevision?: string;
|
|
614
|
+
status?: PackageVersionStatus | string;
|
|
615
|
+
asset?: AssetSummary;
|
|
616
|
+
}
|
|
594
617
|
export interface PutDomainPermissionsPolicyRequest {
|
|
595
618
|
domain: string | undefined;
|
|
596
619
|
domainOwner?: string;
|
|
@@ -898,6 +921,12 @@ export declare const ListTagsForResourceRequestFilterSensitiveLog: (
|
|
|
898
921
|
export declare const ListTagsForResourceResultFilterSensitiveLog: (
|
|
899
922
|
obj: ListTagsForResourceResult
|
|
900
923
|
) => any;
|
|
924
|
+
export declare const PublishPackageVersionRequestFilterSensitiveLog: (
|
|
925
|
+
obj: PublishPackageVersionRequest
|
|
926
|
+
) => any;
|
|
927
|
+
export declare const PublishPackageVersionResultFilterSensitiveLog: (
|
|
928
|
+
obj: PublishPackageVersionResult
|
|
929
|
+
) => any;
|
|
901
930
|
export declare const PutDomainPermissionsPolicyRequestFilterSensitiveLog: (
|
|
902
931
|
obj: PutDomainPermissionsPolicyRequest
|
|
903
932
|
) => any;
|
|
@@ -126,6 +126,10 @@ import {
|
|
|
126
126
|
ListTagsForResourceCommandInput,
|
|
127
127
|
ListTagsForResourceCommandOutput,
|
|
128
128
|
} from "../commands/ListTagsForResourceCommand";
|
|
129
|
+
import {
|
|
130
|
+
PublishPackageVersionCommandInput,
|
|
131
|
+
PublishPackageVersionCommandOutput,
|
|
132
|
+
} from "../commands/PublishPackageVersionCommand";
|
|
129
133
|
import {
|
|
130
134
|
PutDomainPermissionsPolicyCommandInput,
|
|
131
135
|
PutDomainPermissionsPolicyCommandOutput,
|
|
@@ -274,6 +278,10 @@ export declare const serializeAws_restJson1ListTagsForResourceCommand: (
|
|
|
274
278
|
input: ListTagsForResourceCommandInput,
|
|
275
279
|
context: __SerdeContext
|
|
276
280
|
) => Promise<__HttpRequest>;
|
|
281
|
+
export declare const serializeAws_restJson1PublishPackageVersionCommand: (
|
|
282
|
+
input: PublishPackageVersionCommandInput,
|
|
283
|
+
context: __SerdeContext
|
|
284
|
+
) => Promise<__HttpRequest>;
|
|
277
285
|
export declare const serializeAws_restJson1PutDomainPermissionsPolicyCommand: (
|
|
278
286
|
input: PutDomainPermissionsPolicyCommandInput,
|
|
279
287
|
context: __SerdeContext
|
|
@@ -422,6 +430,10 @@ export declare const deserializeAws_restJson1ListTagsForResourceCommand: (
|
|
|
422
430
|
output: __HttpResponse,
|
|
423
431
|
context: __SerdeContext
|
|
424
432
|
) => Promise<ListTagsForResourceCommandOutput>;
|
|
433
|
+
export declare const deserializeAws_restJson1PublishPackageVersionCommand: (
|
|
434
|
+
output: __HttpResponse,
|
|
435
|
+
context: __SerdeContext
|
|
436
|
+
) => Promise<PublishPackageVersionCommandOutput>;
|
|
425
437
|
export declare const deserializeAws_restJson1PutDomainPermissionsPolicyCommand: (
|
|
426
438
|
output: __HttpResponse,
|
|
427
439
|
context: __SerdeContext
|
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.
|
|
4
|
+
"version": "3.288.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",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.288.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.287.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.288.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.282.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.272.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.272.0",
|
|
29
29
|
"@aws-sdk/middleware-content-length": "3.282.0",
|
|
30
30
|
"@aws-sdk/middleware-endpoint": "3.282.0",
|
|
31
31
|
"@aws-sdk/middleware-host-header": "3.282.0",
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.288.0",
|
|
33
33
|
"@aws-sdk/middleware-recursion-detection": "3.282.0",
|
|
34
34
|
"@aws-sdk/middleware-retry": "3.287.0",
|
|
35
35
|
"@aws-sdk/middleware-serde": "3.272.0",
|